*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
63f7ffb3
JL
12005-06-30 Juri Linkov <juri@jurta.org>
2
3 * xdisp.c (x_draw_vertical_border): If left fringe is not present
4 decrease x coord of vertical border by 1 pixel to not occupy text
5 area of the right window.
6
7 * xterm.c (x_draw_vertical_window_border): Use foreground of
8 VERTICAL_BORDER_FACE_ID for vertical border line.
9
10 * term.c (turn_on_face): In standout mode apply specified
11 fg to bg, and specified bg to fg (this makes the logic of
12 inversion on terminal consistent with X).
13
b26860ad
JB
142005-06-29 Juanma Barranquero <lekktu@gmail.com>
15
16 * eval.c (user_variable_p_eh): New function.
17 (Fuser_variable_p): Use it. Clarify docstring.
18 Return t for aliases of user options, nil for alias loops.
19
3a1f1d79
RS
202005-06-27 Richard M. Stallman <rms@gnu.org>
21
22 * eval.c (Fdefvar): Improve error message.
23
92de1e01
YM
242005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25
26 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
27 change.
28
69410484
JB
292005-06-27 Juanma Barranquero <lekktu@gmail.com>
30
31 * eval.c (Fdefvar): Don't try to set constant symbols.
32
09352e8f
RS
332005-06-25 Richard M. Stallman <rms@gnu.org>
34
a68d870b
RS
35 * macfns.c (Fx_show_tip): Pass new arg to try_window.
36
37 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
38
39 * xfns.c (Fx_show_tip): Pass new arg to try_window.
40
41 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
42 (redisplay_window): Handle try_window reporting point in scroll margin.
43
44 * dispextern.h (try_window): Declare new arg.
45
46 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
47 Use fchmod to copy the file modes.
48 (Frename_file): Don't copy UID and GID here;
49 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
50
df13531d
RS
51 * eval.c (call_debugger): Take full care of extending stack limits
52 to make space for the debugger, and restore the change afterward.
53 Bind debug-on-error to nil.
54 (restore_stack_limits): New subroutine.
55 (Fsignal): Extend specpdl bound along with eval depth bound,
56 for calling edebug. Don't do either one, for calling debugger.
57 (find_handler_clause): Don't bind debug-on-error here.
58 Don't unbind anything either.
59 Temporarily advance max_specpdl_size for calling
60 internal_with_output_to_temp_buffer.
61 (grow_specpdl): Don't alter max_specpdl_size before signaling
62 an error.
63 (syms_of_eval) <max-specpdl-size>: Doc fix.
64
09352e8f
RS
65 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
66
90296dd3
EZ
672005-06-24 Eli Zaretskii <eliz@gnu.org>
68
69 * fileio.c (Frename_file): Undo last change: no need to ifdef away
70 chown on DOS_NT platforms.
71
72 * w32.c (sys_chown): New function.
73
74 * s/ms-w32.h (chown): New; define to sys_chown.
75
c4f6ca24
JB
762005-06-24 Juanma Barranquero <lekktu@gmail.com>
77
3338c0ad
JB
78 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
79 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
80
9a1505e9 81 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 82
528b6abc
RS
832005-06-23 Richard M. Stallman <rms@gnu.org>
84
85 * xdisp.c (get_next_display_element): Finish reversing the tests of
86 Vnobreak_char_display.
87
9a1505e9 88 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 89 All uses changed.
9a1505e9 90 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
91 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
92
93 * fileio.c (Frename_file): Preserve owner and group, if possible,
94 when copying.
95
1d1c7e75
JB
962005-06-23 Juanma Barranquero <lekktu@gmail.com>
97
253b2298
JB
98 * abbrev.c (Funexpand_abbrev):
99 * category.c (Fmake_category_set):
100 * dispnew.c (Fsleep_for, Fsit_for):
101 * editfns.c (Fsubst_char_in_region):
102 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
103 * frame.c (make_frame_without_minibuffer):
104 * lread.c (read_vector):
105 * macfns.c (check_x_frame):
106 * process.c (Fstop_process, Fcontinue_process):
107 * search.c (Freplace_match):
108 * syntax.c (Fstring_to_syntax):
109 * w32fns.c (check_x_frame, check_x_display_info):
110 * xfaces.c (x_supports_face_attributes_p):
111 * xselect.c (Fx_own_selection_internal): Follow error conventions.
112
1d1c7e75
JB
113 * image.c (fn_png_init_io): Don't define it.
114 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
115 (png_read_from_file): New function, based on png_read_from_memory.
116 (png_load): Use it, instead of fn_png_init_io.
117
d1fab151
KS
1182005-06-23 Kim F. Storm <storm@cua.dk>
119
120 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 121 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
122 Add commentary explaining evaporate arg (for internal use only).
123 (unwind_set_match_data): Add comment on evaporate use.
124
53abc3bf
MB
1252005-06-22 Miles Bader <miles@gnu.org>
126
127 * xfaces.c (Qvertical_border): Renamed from `Qvertical_divider'.
128 (realize_basic_faces, syms_of_xfaces): Update references to it.
129 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
130 to `VERTICAL_BORDER_FACE_ID'.
131 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
132
36a3b076
JL
1332005-06-21 Juri Linkov <juri@jurta.org>
134
135 * dispextern.h: Add extern Qframe_set_background_mode.
136
137 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
138 Qframe_set_background_mode.
139
140 * frame.c (Fmodify_frame_parameters):
141 Call frame-set-background-mode after changing the background color
142 on non-window non-dos branch.
143
23873c96
JB
1442005-06-21 Juanma Barranquero <lekktu@gmail.com>
145
146 * fns.c (Fchar_table_range):
147 * process.c (Fmake_network_process): Fix spellings.
148
b7d1f38f
KS
1492005-06-20 Kim F. Storm <storm@cua.dk>
150
151 * fns.c (Fsort): Doc fix.
152
b4e49aee
MB
1532005-06-20 Miles Bader <miles@gnu.org>
154
155 * xfaces.c (Qvertical_divider): New variable.
156 (realize_basic_faces): Realize its face.
157 (syms_of_xfaces): Initialize it.
158
159 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
160
161 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
162 window-separator on ttys using `vertical-divider' face by default.
163
b7da00ba
RS
1642005-06-17 Richard M. Stallman <rms@gnu.org>
165
166 * xdisp.c (get_next_display_element): Reverse
167 test of Vshow_nonbreak_escape.
168
169 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
170 (Ftty_no_underline): New function.
171 (syms_of_term): defsubr it.
b7d1f38f 172
b7da00ba
RS
173 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
174
175 * dispnew.c (spec_glyph_lookup_face): New function.
176 (build_frame_matrix_from_leaf_window): Use it.
177
178 * dispextern.h (spec_glyph_lookup_face): Add declaration.
179
180 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
181
1822005-06-12 Richard M. Stallman <rms@gnu.org>
183
184 * keyboard.c (read_char): After catching a longjmp,
185 call restore_getcjmp.
186
289824a3
JB
1872005-06-17 Juanma Barranquero <lekktu@gmail.com>
188
189 * xselect.c (lisp_data_to_selection_data): Fix spelling.
190
95085023
YM
1912005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
192
193 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
194 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
195 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
196 events.
197 (XTread_socket): Don't pass keyboard events with the option
198 modifier to the system when Vmac_command_key_is_meta is nil or
199 Vmac_option_modifier is non-nil.
200 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
201 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
202 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
203 handler function.
204 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
205 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
206 handler part to mac_handle_mouse_event.
207
4a9308b8
JB
2082005-06-14 Juanma Barranquero <lekktu@gmail.com>
209
210 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
211 NEW-ALIAS and BASE-VARIABLE, respectively.
212
5aa6db57
SM
2132005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
214
215 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
216 (get_phys_cursor_geometry, format_mode_line_unwind_data)
217 (get_line_height_property, x_produce_glyphs): Remove unused vars.
218
219 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
220
0e0dddda
EZ
2212005-06-13 Eli Zaretskii <eliz@gnu.org>
222
223 * w32term.c (x_use_underline_position_properties): New variable.
224 (x_draw_glyph_string): Remind in a comment to change doc string of
225 x-use-underline-position-properties if/when underline positioning
226 is implemented.
227 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
228 and initialize it to nil.
229
7f2b4738
JR
2302005-06-12 Jason Rumney <jasonr@gnu.org>
231
232 * w32fns.c (NEWOPENFILENAME): New struct.
233 (Fx_file_dialog): Use it to trick the system into giving us up to
234 date dialogs on systems that are documented to support it.
235 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
236
a1e8cad6
EZ
2372005-06-12 Eli Zaretskii <eliz@gnu.org>
238
239 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
240 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
241
099a3eea
EZ
2422005-06-11 Eli Zaretskii <eliz@gnu.org>
243
2e09fef1
EZ
244 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
245 to CreateDIBSection to avoid a compiler warning.
246 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
247 warning.
248 (png_load): Cast return values of fn_png_create_read_struct and
249 fn_png_create_info_struct, to avoid compiler warnings on W32.
250 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
251 to avoid compiler warnings.
252 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
253 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
254 avoid a compiler warning.
255 (tiff_load): Cast return values of fn_TIFFOpen and
256 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
257 to IMAGE_BACKGROUND to avoid a compiler warning.
258 (gif_load): Cast return values of fn_DGifOpenFileName and
259 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
260 IMAGE_BACKGROUND to avoid a compiler warning.
261 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
262 before redefining.
263
099a3eea
EZ
264 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
265 the call to CreateDIBSection, to avoid a compiler warning.
266
d11f8e1a
JR
2672005-06-11 Jason Rumney <jasonr@gnu.org>
268
269 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
270 minibuffer.
271 * macfns.c (Fx_file_dialog): Likewise.
272
cd4344a3
EZ
2732005-06-10 Eli Zaretskii <eliz@gnu.org>
274
275 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
276
578c1340
JB
2772005-06-10 Juanma Barranquero <lekktu@gmail.com>
278
279 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
280 * w32fns.c (syms_of_w32fns): Fix spellings.
281
4162f25f
EZ
2822005-06-10 Eli Zaretskii <eliz@gnu.org>
283
284 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
285 `verbose'; print diagnostic messages only if it is non-zero.
286 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
287 in the environment.
288 (copy_executable_and_dump_data): Print section names with %.8s.
289
121c59a3
MY
2902005-06-10 Masatake YAMATO <jet@gyve.org>
291
292 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
293 when mouse_face is not given.
121c59a3 294
c869384d
LT
2952005-06-09 Luc Teirlinck <teirllm@auburn.edu>
296
297 * window.c (Fselect_window): Adapt call to Fselect_frame.
298
299 * lisp.h: Update EXFUN of Fselect_frame.
300
301 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
302
6ecf436d
LT
303 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
304 no_enter.
305 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
306 Adapt to above change.
307
c14ec135
JB
3082005-06-10 Juanma Barranquero <lekktu@gmail.com>
309
310 * fns.c (Fmemq, Fmaphash): Doc fixes.
311
9fed2905
JB
3122005-06-09 Juanma Barranquero <lekktu@gmail.com>
313
314 * xfaces.c (Fdisplay_supports_face_attributes_p):
315 Fix typo in docstring.
316
427c5b1b
ST
3172005-06-08 Steven Tamm <steventamm@mac.com>
318
319 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
320 used by gcc4 on intel mac.
321
b7aae902
KS
3222005-06-09 Kim F. Storm <storm@cua.dk>
323
324 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
325 in REUSE list if non-nil; free them if equal to evaporate.
326 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
327 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
328 (restore_search_regs): Rename from restore_match_data. Uses changed.
329 (unwind_set_match_data): New function.
330 (record_unwind_save_match_data): New function like save-match-data.
331
332 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
333 (record_unwind_save_match_data): Add prototype.
334 (restore_search_regs): Rename from restore_match_data.
335
336 * composite.c (compose_chars_in_text):
337 * eval.c (do_autoload):
338 * macmenu.c (set_frame_menubar):
339 * process.c (read_process_output, exec_sentinel):
340 * xmenu.c (set_frame_menubar):
341 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
342 * w32menu.c (set_frame_menubar):
343 Use record_unwind_save_match_data.
344
547d2b37
RS
3452005-06-08 Richard M. Stallman <rms@gnu.org>
346
347 * xdisp.c (get_next_display_element): Alter previous change:
348 Distinguish Vshow_nonbreak_escape = t or not t.
349 For t, use escape_glyph once again, as before previous change.
350 Use space or hyphen for display, instead of the non-ASCII char.
351 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
352
353 * process.c (Fstart_process): Don't touch command_channel_p slot.
354
99598737 355 * process.h (struct process): Delete command_channel_p.
547d2b37 356
602907ae
MY
3572005-06-07 Masatake YAMATO <jet@gyve.org>
358
5aa6db57
SM
359 * xdisp.c (note_mode_line_or_margin_highlight):
360 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 361 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
362 is not ON_MODE_LINE nor ON_HEADER_LINE.
363
8b793bed
KS
3642005-06-07 Kim F. Storm <storm@cua.dk>
365
366 * process.c: Improve commentary for adaptive read buffering.
367
3d031334
SM
3682005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
369
370 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
371 if available.
372
16d2e704
JD
3732005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
374
5aa6db57
SM
375 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
376 New functions for popping down menus on C-g.
16d2e704
JD
377 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
378
379 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
380 non-static.
381
9fed2905 382 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 383
b6cc2ad0
EZ
3842005-06-06 Eli Zaretskii <eliz@gnu.org>
385
9a1505e9 386 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 387
5aa6db57 388 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
389
390 * w32proc.c (RVA_TO_PTR): New macro.
391
392 * w32heap.c (RVA_TO_PTR): No need to #undef now.
393
394 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
395 Depend on w32heap.h.
396
24e55feb
LT
3972005-06-06 Luc Teirlinck <teirllm@auburn.edu>
398
399 * keyboard.c (command_loop_1): Update Vthis_original_command.
400
ce6e10af
RS
4012005-06-06 Richard M. Stallman <rms@gnu.org>
402
403 * xmenu.c (popup_get_selection): Undo previous change.
404
c476bcb0
JL
4052005-06-06 Juri Linkov <juri@jurta.org>
406
407 * xdisp.c (Qno_break_space): New variable.
408 (syms_of_xdisp): Initialize it.
409 (get_next_display_element): Add no-break space and soft hypen
410 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
411 Use `no-break-space' face for no-break spaces.
412
5494d7bc
JD
4132005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
414
415 * window.c (delete_window): Handle the case where a h/vchild has
416 a h/vchild.
417
a0c38328
EZ
4182005-06-05 Eli Zaretskii <eliz@gnu.org>
419
420 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
421 call to pfn_setsockopt, cast optval to `const char *'.
422
91018229
EZ
4232005-06-04 Eli Zaretskii <eliz@gnu.org>
424
1a8fb426
EZ
425 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
426 (open_unc_volume): Cast return value of map_w32_filename, to avoid
427 compiler warnings.
428
b6f0a397
EZ
429 * s/ms-w32.h (fileno): Don't define if already defined.
430
17a7c5c2 431 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 432
91018229
EZ
433 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
434
196ac78c
RS
4352005-06-04 Richard M. Stallman <rms@gnu.org>
436
437 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
438
b8987570
JD
4392005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
440
441 * macmenu.c (cleanup_popup_menu): New function.
442 (Fx_popup_menu): unwind protect cleanup_popup_menu in case
443 mac_menu_show Quit:s.
444 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
445 a dialog).
446
555228aa
KS
4472005-06-04 Kim F. Storm <storm@cua.dk>
448
449 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
450
451 * callproc.c (Fcall_process): Don't use alloca to gradually
452 increase size of buf, as it effectively uses twice the necessary
453 space on the stack. Instead, pre-allocate buf of full size, and
454 gradually increase the read size.
455
456 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
457
458 * eval.c (unbind_to): Preserve value of Vquit_flag.
459
460 * xterm.c (handle_one_xevent): Also ignore mouse motion just
461 before a button release event.
462
6312e5f7
JB
4632005-06-03 Juanma Barranquero <lekktu@gmail.com>
464
465 * xfaces.c (Finternal_lisp_face_equal_p): Really report
466 on faces in a frame, if the argument FRAME is non-nil.
467 Improve argument/docstring consistency.
468
0493f7be
KS
4692005-06-02 Kim F. Storm <storm@cua.dk>
470
471 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
472 (x_consider_frame_title, Fformat_mode_line): Save offset into
473 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
474
89fe657e
KS
4752005-06-01 Kim F. Storm <storm@cua.dk>
476
477 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
478
02a6375c
YM
4792005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
480
481 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
482 resolution fields for scalable fonts to 0.
483
484 * xfaces.c (build_scalable_font_name): Round pixel size to the
485 nearest integer.
486
95d4fad8
KS
4872005-06-01 Kim F. Storm <storm@cua.dk>
488
489 * xdisp.c (display_mode_line): Support nested calls to redisplay
490 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
491
3c1b433a
SM
4922005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
493
494 * fileio.c (Finsert_file_contents):
495 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
496
13cc7d61
KS
4972005-05-31 Kim F. Storm <storm@cua.dk>
498
499 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
500 (mode_line_noprop_ptr): Rename from frame_title_*.
501 (store_mode_line_noprop_char): Rename from store_frame_title_char.
502 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 503 (mode_line_target): New enum to specify current output target
13cc7d61
KS
504 for mode line formatting.
505 (display_mode_element): Test it rather than frame_title_ptr and
506 mode_line_string_list to determine where output should go.
507 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
508 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
509 (format_mode_line_unwind_data, unwind_format_mode_line):
510 New functions for unwind protection in mode line formatting.
13cc7d61 511 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
512 to support nested calls to format-mode-line and redisplay.
513 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 514 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
515 support nested calls to format-mode-line and redisplay.
516 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 517 Don't trim trailing dashes.
13cc7d61
KS
518 (decode_mode_spec): Don't make infinite number of trailing dashes
519 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
520 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
521 mode_line_string_face_prop, and Vmode_line_unwind_vector.
522 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
523 Initialize mode_line_target to MODE_LINE_DISPLAY.
524
c16b1394
RS
5252005-05-29 Richard M. Stallman <rms@gnu.org>
526
527 * buffer.c (Fbuffer_local_value): Call indirect_variable.
528
edfaeb4e
MY
5292005-05-28 Masatake YAMATO <jet@gyve.org>
530
531 * xdisp.c (note_mode_line_or_margin_highlight): Change the
532 pointer to a hand cursor when hoovering over a mouse-face.
533
7cf49add
KH
5342005-05-27 Kenichi Handa <handa@m17n.org>
535
536 * xterm.c (x_encode_char): Call check_ccl_update in advance.
537
538 * ccl.c: Now an element of Vccl_program_table is a vector of
539 length 4, not 3.
3c1b433a
SM
540 (ccl_get_compiled_code): New arg idx. Caller changed.
541 Adjust for the change of Vccl_program_table.
542 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
543 (check_ccl_update): New function.
544 (Fregister_ccl_program): Use ASET to set an element of a vector.
545 Adjusted for the change of Vccl_program_table.
546
547 * ccl.h (struct ccl_program): New member idx.
548 (check_ccl_update): Extern it.
549
5e2ad10b
JB
5502005-05-27 Juanma Barranquero <lekktu@gmail.com>
551
3c1b433a 552 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
553 (syms_of_image): Defvar it.
554 (lookup_image_type): Use it.
555
5e2ad10b
JB
556 * buffer.c (Fbuffer_local_value): Make argument name match its use
557 in docstring.
558
6e604a9b
JB
5592005-05-26 Juanma Barranquero <lekktu@gmail.com>
560
561 * keyboard.c (Frecursive_edit): Fix typo in docstring.
562 (Fposn_at_x_y): Make argument name match its use in docstring.
563
59244a3f
LK
5642005-05-26 Lute Kamstra <lute@gnu.org>
565
566 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
567
55ce5058
MY
5682005-05-24 Masatake YAMATO <jet@gyve.org>
569
570 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
571 as loop sentinels.
572
cb5db137
NR
5732005-05-24 Nick Roberts <nickrob@snap.net.nz>
574
575 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
576 select frame title ("Question"/"Information").
577 (xdialog_show): Use it.
578
13dcfc35
NR
579 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
580
581 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
582
d3393daa
NR
583 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
584 a third argument (Qnil).
585
586 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
587
588 * editfns.c (Fmessage_box): Use "Information" for frame title.
589
71d4fba1
TTN
5902005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
591
592 * termcap.c [VMS]: Include <starlet.h>.
593
359e4563
MY
5942005-05-23 Masatake YAMATO <jet@gyve.org>
595
6e604a9b
JB
596 * xdisp.c (note_mode_line_or_margin_highlight): Add code
597 for mouse-face. Change the type of the first argument from `window'
598 to `Lisp_Object'.
359e4563
MY
599 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
600 window instead of w.
601
edceb51c
AS
6022005-05-22 Andreas Schwab <schwab@suse.de>
603
41c4895c 604 * process.c (send_process): Move misplaced volatile.
edceb51c 605
5c213fcc
RS
6062005-05-21 Richard M. Stallman <rms@gnu.org>
607
608 * xdisp.c (display_mode_element): If we're processing a list and
609 padding is specified, put it after the last element.
610
aa4060b9
EZ
6112005-05-21 Eli Zaretskii <eliz@gnu.org>
612
613 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
614 "superroot" on DOS_NT systems.
615
a2c9aee6
EZ
6162005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
617
618 * process.c (send_process): Restore the SIGPIPE handler if we
619 catch a SIGPIPE.
620
09e8eb5b
JB
6212005-05-20 Juanma Barranquero <lekktu@gmail.com>
622
623 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
624 misleading comments).
625 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
626
f3fbdb1f
LK
6272005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
628
629 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
630 Correct the right value.
631
639ec765
NR
6322005-05-19 Nick Roberts <nickrob@snap.net.nz>
633
240d926e 634 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
635 post-command-idle-hook and post-command-idle-delay.
636 (command_loop_1): Don't try to execute post-command-idle-hook.
637
03d42907
KS
6382005-05-16 Kim F. Storm <storm@cua.dk>
639
1cb83e13
KS
640 * xdisp.c (handle_display_prop): Handle empty replacement.
641 (handle_single_display_spec): Return -1 for empty replacement.
642
643 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
644
03d42907
KS
645 * .gdbinit (pitx): Print more info about iterator.
646
0da46b6e
AS
6472005-05-16 Andreas Schwab <schwab@suse.de>
648
3c1b433a 649 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 650
d06ba294
RS
6512005-05-14 Richard M. Stallman <rms@gnu.org>
652
653 * xdisp.c (message3): Call cancel_echoing.
654
655 * alloc.c (Fmemory_full_p): New function.
656 (syms_of_alloc): defsubr it.
657
658 * process.c (send_process_trap): Unblock SIGPIPE.
659 (send_process): Reset SIGPIPE handler before reporting error.
660
90713743
NR
6612005-05-14 Nick Roberts <nickrob@snap.net.nz>
662
663 * emacs.c (syms_of_emacs): Fix doc string for system-type.
664
68780e2a
RS
6652005-05-13 Richard M. Stallman <rms@gnu.org>
666
667 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
668 (Finsert_file_contents): If we read 0 bytes from a special file,
669 unlock the visited file if we locked it.
670 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 671 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 672
5063dbbf
YM
6732005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
674
675 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
676
3c1b433a
SM
677 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
678 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
679 redisplay from being paused by them.
680
681 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
682 [!MAC_OSX] (target_ticks): Remove variable.
683 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
684 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
685 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 686 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
687 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
688 handling using Time Manager routines.
3c1b433a
SM
689 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
690 New variables.
5063dbbf
YM
691 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
692 (setitimer): New functions.
693
694 * macfns.c, macmenu.c: Don't include signal.h.
695
696 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
697 Rename from get_control_part_bound. All callers changed.
698 (x_scroll_bar_clear): New function.
699 (x_clear_frame): Use it.
700 (XTset_vertical_scroll_bar): Don't call Draw1Control.
701 (x_scroll_bar_handle_click): Change type of second argument from
702 int to ControlPartCode.
703 (check_alarm): Remove declaration.
02a6375c
YM
704 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
705 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
706
7072005-05-13 Nozomu Ando <nand@mac.com>
708
709 * unexmacosx.c: Include assert.h.
710 (MACOSX_MALLOC_MULT16): New define.
711 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
712 ptr is in unexec regions by checking it is multiple of 16.
713 (unexec_malloc_header_t): New typedef.
714 (unexec_malloc, unexec_realloc, unexec_free): Store and use
715 allocated size information in unexec_malloc_header.
716
d101bf56
RS
7172005-05-10 Richard M. Stallman <rms@gnu.org>
718
719 * xterm.c (noinclude): Add #undef.
720
721 * image.c, xfns.c, xmenu.c: Don't include signal.h.
722
2f60660a
JB
7232005-05-09 Juanma Barranquero <lekktu@gmail.com>
724
f1701e65
JB
725 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
726 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
727 Doc fixes.
728
2f60660a
JB
729 * dired.c (Ffile_name_completion): Make argument name
730 match its use in docstring.
731
9f29e806
LT
7322005-05-08 Luc Teirlinck <teirllm@auburn.edu>
733
734 * eval.c (Fdefvaralias): Remove any pre-existing
735 variable-documentation property of the alias.
736
a790bcd4
TTN
7372005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
738
739 * xfns.c (start_hourglass): Do nothing when running on a tty.
740
d5fb8dab
JB
7412005-05-07 Juanma Barranquero <lekktu@gmail.com>
742
743 * fns.c (Fchar_table_range): Fix typos in docstring.
744
7ec64183
SM
7452005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
746
747 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
748
6ff95f1d
EZ
7492005-05-06 Eli Zaretskii <eliz@gnu.org>
750
2c6b25c7
EZ
751 * lread.c (Flocate_file_internal): Doc fix.
752
6ff95f1d
EZ
753 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
754
17d28d26
YM
7552005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
756
757 * macselect.c (x_own_selection): Accept Lisp string as result of
758 selection converter function.
759 (x_clear_frame_selections): Don't call x-lost-selection-functions
760 if Emacs is not owner of the selection.
761 (Vmac_services_selection): Put variable and initialization in
762 #ifdef MAC_OSX.
763 (syms_of_macselect) [MAC_OSX]: Set default value of
764 Vmac_services_selection to PRIMARY.
765
7ec64183
SM
766 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
767 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
768 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
769 (install_scroll_bar_timer, set_scroll_bar_timer)
770 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
771 (get_control_part_bound, x_scroll_bar_handle_press)
772 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
773 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
774 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
775 (scroll_bar_timer_event_posted_p): New variables.
776 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
777 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
778 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
779 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
780 Initialize track_top and track_height to nil.
781 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
782 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
783 (XTset_vertical_scroll_bar): Don't make space between scroll bar
784 and associated window.
785 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
786 from window config.
7ec64183
SM
787 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
788 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
789 Recalculate them if they are nil.
790 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
791 clicked control is a scroll bar.
792 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
793 event handler functions. Don't add modifiers to scroll bar click
7ec64183 794 events. Call scroll bar release handler when window is deactivated.
17d28d26 795 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
796 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
797 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 798
7ec64183
SM
799 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
800 New members track_top and track_height.
17d28d26
YM
801
802 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
803 init_process when including sys/select.h.
804
643b4cf5
LT
8052005-05-05 Luc Teirlinck <teirllm@auburn.edu>
806
807 * eval.c (Fdefvaralias): Doc fix.
808
809 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
810
99bda128
KS
8112005-05-05 Kim F. Storm <storm@cua.dk>
812
813 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
814 default value.
815 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
816 Fix type of cursor-in-non-selected-windows.
817
3a3563e9
JD
8182005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
819
820 * mac.c: #undef init_process so not to conflict with system headers.
821
0124c5bd
RS
8222005-05-02 Richard M. Stallman <rms@gnu.org>
823
824 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
825
826 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
827
828 * xdisp.c (Vcursor_in_non_selected_windows)
829 (Qcursor_in_non_selected_windows): Vars deleted.
830 (syms_of_xdisp): Don't initialize them.
831 (get_window_cursor_type): Use cursor_in_non_selected_windows
832 buffer slot.
833
4b3f161f
KS
8342005-05-02 Kim F. Storm <storm@cua.dk>
835
e40527dc
KS
836 * macros.c (executing_kbd_macro_index): Rename from
837 executing_macro_index. All uses changed.
838 (executing_kbd_macro_iterations): Rename from
839 executing_macro_iterations. All uses changed.
840 (executing_kbd_macro): Rename from executing_macro.
841 All uses changed.
842 (syms_of_macros): Rename Lisp var executing-macro-index to
843 executing-kbd-macro-index.
844
4b3f161f
KS
845 * xdisp.c (move_it_in_display_line_to): Fix last change.
846
4d49edf6
LT
8472005-05-01 Luc Teirlinck <teirllm@auburn.edu>
848
f6b1b15a
LT
849 * xmenu.c (Fx_popup_menu): Doc fix.
850
4d49edf6
LT
851 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
852
4a766fe6
JR
8532005-05-02 Jason Rumney <jasonr@gnu.org>
854
855 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
856
c924d3ff
TTN
8572005-05-02 Nozomu Ando <nand@mac.com>
858
859 * sysselect.h: Fix typo.
860
b161ea4e 8612005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 862
b161ea4e
NR
863 * charset.c (Fchars_in_region): Remove as obsolete.
864
d37e919d 8652005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
866
867 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 868 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 869 glyph.
5c2e5a5e 870
bec0b768
LT
8712005-05-01 Luc Teirlinck <teirllm@auburn.edu>
872
873 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
874
ebbfa918
RS
8752005-05-01 Richard M. Stallman <rms@gnu.org>
876
877 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
878 If user cancels the menu, quit unless FOR_CLICK.
879
7ec64183 880 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
881 All uses changed.
882 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
883 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
884 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
885 * commands.h (Vexecuting_kbd_macro): Likewise.
886
a72c2d97
TTN
8872005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
888
889 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
890
7e995a23
RS
8912005-04-30 Richard M. Stallman <rms@gnu.org>
892
893 * fileio.c (Ffind_file_name_handler): Handle the `operations'
894 property of the file name handler.
895 (Qoperations): New variable.
896 (syms_of_fileio): Initialize and staticpro it.
897
898 * xdisp.c (set_message_1): Delete xassert.
899
7a92caf8
YM
9002005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
901
7ec64183 902 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
903
904 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
905
906 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
907 before/after including Carbon.h if there is a working mktime.
908
5ae91803
KS
9092005-04-28 Kim F. Storm <storm@cua.dk>
910
911 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
912 Fix cyclic alias check. If alias loop is detected, signal
913 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
914
d79b6c21
LK
9152005-04-28 Lute Kamstra <lute@gnu.org>
916
917 * eval.c (do_autoload): Record only autoloads in the autoload
918 property of symbols.
919
8c75afbf
NR
9202005-04-28 Nick Roberts <nickrob@snap.net.nz>
921
922 * emacs.c (USAGE1): Add --basic-display and --quick options.
923
832e294f
KS
9242005-04-27 Kim F. Storm <storm@cua.dk>
925
926 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
927
f03f317a
RS
9282005-04-26 Richard M. Stallman <rms@gnu.org>
929
c019856e
RS
930 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
931 (syms_of_window): Doc fixes.
932
f03f317a
RS
933 * indent.c (Fvertical_motion): Undo previous change.
934
38f60cd9
KH
9352005-04-26 Kenichi Handa <handa@m17n.org>
936
937 * fns.c (char_table_range): New function.
938 (Fchar_table_range): Signal an error if characters in the range
939 have inconsistent values. Don't check the parent.
940
87ede5a1
KH
9412005-04-25 Kenichi Handa <handa@m17n.org>
942
943 * fontset.c (fontset_set): Fix previous change.
944
a6390474
RS
9452005-04-24 Richard M. Stallman <rms@gnu.org>
946
947 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
948
7fce7dfe
EZ
9492005-04-24 Eli Zaretskii <eliz@gnu.org>
950
cf1982d9
EZ
951 * regex.c (re_search_2, re_match_2_internal): Convert second arg
952 of RE_TRANSLATE to int, to shut up GCC warnings.
953
7fce7dfe
EZ
954 * fileio.c (Fcopy_file): Doc fix.
955 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
956 not needed.
957
49ed33c7
YM
9582005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
959
960 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
961 (SOME_MACHINE_OBJECTS): Likewise.
962 (mac.o): Depend on ccl.h.
963 (macselect.o): New target.
964
7ec64183
SM
965 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
966 Call syms_of_macselect.
49ed33c7
YM
967
968 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
969
7ec64183 970 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
971 (QCLIPBOARD): Remove variable.
972 (syms_of_mac): Don't initialize it.
973 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
974 Remove functions.
975 (syms_of_mac): Don't defsubr them.
976 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
977 (QHFS_plus_D, QHFS_plus_C): New variables.
978 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
979 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
980 (cfstring_create_normalized): New functions.
981 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
982 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
983
7ec64183
SM
984 * macterm.c (handling_window_update, terminate_flag):
985 Remove variables.
986 (do_window_update, do_ae_quit_application, XTread_socket):
987 Don't use them.
49ed33c7
YM
988 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
989 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
990 (init_service_handler): Move to macselect.c. Remove declarations.
991 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
992 (Qapplication, Qabout): New variables.
993 (syms_of_mac): Initialize them.
994 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
995 (Qperform): New variables.
996 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 997 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
998 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
999 (mac_store_application_menu_event, init_menu_bar): New functions.
1000 [USE_CARBON_EVENTS] (mac_handle_command_event)
1001 (init_command_handler): New functions.
1002 (mac_handle_window_event): Return noErr on window update event.
1003 (do_ae_quit_application): Call mac_store_application_menu_event.
1004 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
1005 and init_menu_bar.
1006
1007 * macterm.h (x_clear_frame_selections): Add extern.
1008
1009 * macselect.c: New file for selection processing on Mac OS.
1010
469bc679
RS
10112005-04-23 Richard M. Stallman <rms@gnu.org>
1012
1013 * fileio.c (Fcopy_file): New arg MUSTBENEW.
1014 (Frename_file): Pass new arg to Fcopy_file.
1015
1016 * window.c (window_size_fixed): Variable deleted.
1017 (syms_of_window): Initialize window-size-fixed to nil.
1018 But don't DEFVAR window_size_fixed.
1019
d379c558
AS
10202005-04-23 Andreas Schwab <schwab@suse.de>
1021
1022 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
1023 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
1024 use lib64 instead of lib.
1025 (_LP64) [_ARCH_PPC64]: Define if not defined.
1026
007d105b
TTN
10272005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
1028
1029 * s/ms-w32.h (HAVE_PWD_H): Define.
1030
b9c15916
KH
10312005-04-22 Kenichi Handa <handa@m17n.org>
1032
1033 * fns.c (copy_sub_char_table): Explicitly copy the default value
1034 of the sub-chartable.
1035
1036 * fontset.c (fontset_set): When a sub-chartable is created,
1037 explicitly sets the defalt value.
1038
1ba52906
KS
10392005-04-22 Kim F. Storm <storm@cua.dk>
1040
1041 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
1042 (Fsafe_plist_get): Rename to Fplist_get.
1043 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
1044 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
1045
1046 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
1047
1048 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
1049 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1050 Use Fplist_get instead of Fsafe_plist_get.
1051
1052 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
1053
e235145c
MB
10542005-04-21 Miles Bader <miles@gnu.org>
1055
1056 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
1057
766c5349
TTN
10582005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
1059
c164a7e6
TTN
1060 * sysdep.c: Remove reference to defunct vms-pwd.h.
1061 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
1062 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
1063
766c5349
TTN
1064 * config.in: Regenerate.
1065
2b048bf5
KH
10662005-04-20 Kenichi Handa <handa@m17n.org>
1067
1068 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
1069 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
1070 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
1071
1072 * alloc.c (make_sub_char_table): Argument changed to initial
1073 value of the slots.
1074
1075 * data.c (Faref): Handle special slots used as default values of
1076 ascii, eight-bit-control, eight-bit-control. Don't ignore a
1077 default value set for a group of characters.
1078 (Faset): Signal an error if IDXVAL is not a valid character code.
1079 Make a sub-chartable with correct initial value.
1080
1081 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
1082 values for ascii, eight-bit-control, eight-bit-graphic.
1083 Don't call Faref with charset-id.
2b048bf5
KH
1084 (Fset_char_table_default): Document how to treat normal character
1085 argument. Handle special slots used as default values of ascii,
1086 eight-bit-control, eight-bit-control. Make a sub chartable if
1087 necessary.
1088
b0a35939
KH
10892005-04-20 Kenichi Handa <handa@m17n.org>
1090
1091 * search.c (boyer_moore): Fix previous change.
1092
98dde726
KS
10932005-04-19 Kim F. Storm <storm@cua.dk>
1094
1095 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
1096 face unless last visible char and first invisible char have the
1097 same face. Also use default face if saved_face_id is undefined.
1098
327a3376
YM
10992005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1100
1101 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
1102 `full_name'.
1103 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
1104 mac_scriptcode member.
1105
1106 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
1107 (syms_of_mac): Don't initialize them.
1108 (Vmac_charset_info_alist): New variable.
1109 (syms_of_mac): Defvar it.
1110 (create_text_encoding_info_alist): New function.
1111 (decode_mac_font_name, mac_to_x_fontname)
1112 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
1113 code the correspondence among XLFD charsets, Mac script codes, and
1114 Emacs coding systems. Use Vmac_charset_info_alist and result of
1115 create_text_encoding_info_alist instead.
1116 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
1117 routines also on Mac OS Classic.
7ec64183
SM
1118 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
1119 Use add_font_name_table_entry.
327a3376
YM
1120 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
1121 specified. Derive unspecified scalable fields from specified one.
1122 (x_list_fonts): Consider Valternate_fontname_alist.
1123 (kDefaultFontSize): Change value from 9 to 12.
1124 (XLoadQueryFont): Get decoded font family, font face, and charset
1125 from x_font_name_to_mac_font_name. Set full name of loaded font.
1126 (mac_unload_font): Free `full_name' member.
1127 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
1128 NULL. Copy full_name member of struct MacFontStruct to that of
1129 struct font_info.
1130
d0636839
KS
11312005-04-19 Kim F. Storm <storm@cua.dk>
1132
5827e9d4
KS
1133 * xdisp.c (handle_stop): Set saved_face_id to current face if
1134 selective_display_ellipsis_p so ellipsis will be shown in same
1135 face as preceding text.
1136 (setup_for_ellipsis): Don't set saved_face_id here.
1137 (next_element_from_display_vector): Default to saved_face_id.
1138
d0636839
KS
1139 * fns.c (Fsafe_get): New function.
1140 (syms_of_fns): Defsubr it.
1141
1142 * lisp.h (Fsafe_get): EXFUN it.
1143
1144 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
1145 loops in case of bad face property lists. Limit number of face
1146 alias lookups to 10 (in case of face alias loops).
1147
e5c78c9d
KS
11482005-04-18 Kim F. Storm <storm@cua.dk>
1149
1150 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
1151 It replaces the corresponding member from struct window, as a
1152 window may now show multiple overlay arrows.
1153 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
1154
1155 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
1156 Compare overlay_arrow_bitmap than overlay_arrow_p members.
1157
1158 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
1159 rather than from window.
1160 (update_window_fringes): Compare overlay_arrow_bitmap rather than
1161 overlay_arrow_p members.
1162 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
1163 if not default.
1164
1165 * window.h (struct window): Remove member overlay_arrow_bitmap.
1166
1167 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
1168
1169 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
1170 Calls changed. Don't check for overlay-arrow-bitmap property here.
1171 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
1172 fringe is present, return Lisp integer for bitmap (or -1 for default).
1173 Fix value of overlay-arrow-bitmap property to be a symbol, use
1174 lookup_fringe_bitmap to parse it.
1175 (display_line): Change call to overlay_arrow_at_row. Store integer
1176 return value as overlay bitmap in row rather than window.
1177 Only show overlay arrow if row displays text, or if no other overlay
1178 arrow is seen in window (if overlay marker is at point-max).
1179
7d603e3f
TTN
11802005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1181
1182 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
1183
9942fa0c
LK
11842005-04-18 Lute Kamstra <lute@gnu.org>
1185
1186 * lread.c (Vloads_in_progress): Static.
1187 * fns.c (Vloads_in_progress): Remove extern.
1188 (load_in_progress): Add extern.
1189 (Frequire): Use load_in_progress instead of Vloads_in_progress.
1190
999cdb8f
TTN
11912005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1192
1193 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
1194
3f4413f8
YM
11952005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1196
1197 * macterm.c (XTread_socket): Don't beep on keyboard input even if
1198 no frame is visible.
1199
60ec7b7e
DN
12002005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1201
1202 * term.c (struct keys): Add support for shifted keys.
1203
a8a1c0ee
RS
12042005-04-16 Richard M. Stallman <rms@gnu.org>
1205
1206 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
1207 (set_message): Call with_echo_area_buffer with WHICH = 0.
1208 (set_message_1): Erase the echo area buffer first thing.
1209 (echo_area_display): Don't clear echo_message_buffer.
1210
f3cf04d3
YM
12112005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1212
1213 * Makefile.in (mac.o): Depend on charset.h and coding.h.
1214
1215 * mac.c: Include charset.h and coding.h.
1216 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 1217 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
1218 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
1219
1220 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1221
1222 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
1223
1224 * macterm.c (x_autoselect_window_p): Remove variable.
1225 (last_window): New variable.
7ec64183
SM
1226 (XTreassert_line_highlight, x_change_line_highlight):
1227 Remove declarations.
f3cf04d3
YM
1228 (mac_focus_changed, x_detect_focus_change): New functions and
1229 declarations.
1230 (XTextExtents16, front_emacs_window): Remove function.
1231 (mac_focus_frame): New function.
1232 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
1233 (mac_check_for_quit_char): Use it instead of front_emacs_window.
1234 (x_scroll_bar_report_motion): Obtain window from control owner.
1235 (x_make_frame_invisible): Set window manager size hint.
1236 (do_mouse_moved): Remove function.
1237 (XTread_socket): Move its contents here. Generate select-window
1238 event on mouse movement if needed. Use x_detect_focus_change on
1239 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
1240 window rectangle when dnd items are dropped.
1241 Don't activate/deactivate root control.
f3cf04d3
YM
1242 (frame_highlight, frame_unhighlight): Activate/deactivate root
1243 control here.
1244 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
1245
1246 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
1247 New extern.
1248
9e5b2858
LT
12492005-04-15 Luc Teirlinck <teirllm@auburn.edu>
1250
1251 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
1252 (lisp): Use it.
1253 (SOME_MACHINE_LISP): Add tooltip.
1254
42c6741e
YM
12552005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1256
7ec64183
SM
1257 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
1258 Don't include TextEncodingConverter.h.
42c6741e
YM
1259 (mac_system_script_code, Vmac_system_locale): New variables.
1260 (syms_of_mac): Defvar them.
1261 (mac_get_system_locale): New function.
1262
7ec64183
SM
1263 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
1264 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 1265 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
1266 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
1267 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
1268
1269 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
1270 TextEncodingConverter.h.
1271
0614c575
ST
12722005-04-13 Steven Tamm <steventamm@mac.com>
1273
7e26f91b
KS
1274 * macterm.c (syms_of_macterm): Remove redundant definition of
1275 mac-pass-control-to-system.
0614c575 1276
203eb0aa
SM
12772005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1278
1279 * window.c (Fset_window_configuration): Be careful when you choose
1280 among several possible points for the new_current_buffer.
1281
a56e6111
YM
12822005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1283
1284 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
1285 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
1286 (Qlanguage_change) [MAC_OS]: New variable.
1287 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 1288 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
1289
1290 * macterm.c (mac_keyboard_text_encoding)
1291 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
1292 (XTread_socket): Store language-change event if keyboard script change
1293 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 1294 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 1295
7e26f91b 1296 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 1297
6695c528
RS
12982005-04-10 Richard M. Stallman <rms@gnu.org>
1299
1300 * emacs.c (standard_args): Rename --bare-bones to --quick.
1301 Add -D aka --basic-display.
1302
1303 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
1304
18e2d91f
RS
13052005-04-09 Richard M. Stallman <rms@gnu.org>
1306
1307 * keymap.c (where_is_internal): Convert a string used as event type
1308 into "(any string)".
1309
1310 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
1311 * fns.c (Vloads_in_progress): Add extern.
1312 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
1313
13142005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
1315
1316 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
1317
1cf21850
LK
13182005-04-09 Lute Kamstra <lute@gnu.org>
1319
1320 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
1321 within the accessible part of the buffer.
1322
bfd93240
KS
13232005-04-09 Kim F. Storm <storm@cua.dk>
1324
1325 * lread.c (readevalloop): Add args START and END as region in
1326 current buffer to read. Callers changed.
1327 When specified, narrow to this region only when reading,
1328 not during eval. Track next point to read from during eval.
1329 Also restore point to "real" buffer position before eval.
1330 (Feval_region): Don't save excursion and restriction here, and
1331 don't narrow to region. Just pass region to readevalloop.
1332 Note: Point is now preserved even when PRINTFLAG is nil.
1333
9ba27690
KS
13342005-04-08 Kim F. Storm <storm@cua.dk>
1335
1336 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
1337
73f0d996
KS
13382005-04-06 Kim F. Storm <storm@cua.dk>
1339
1340 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
1341
369f76bb
YM
13422005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1343
1344 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
1345 (Fmac_get_preference): Doc fix.
1346
203eb0aa
SM
1347 * macfns.c (Fx_create_frame, x_create_tip_frame):
1348 Add "fontset-mac" to fallback font/fontsets.
369f76bb 1349
2ba613a6
KS
13502005-04-04 Kim F. Storm <storm@cua.dk>
1351
4d5ddddc
KS
1352 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
1353
2ba613a6
KS
1354 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
1355 Call it again after autoload.
1356
1673df2e
JD
13572005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1358
1359 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
1360 mallopt.
1361
1362 * ralloc.c (r_alloc_init): Ditto.
1363
41639988
KH
13642005-04-01 Kenichi Handa <handa@m17n.org>
1365
1cf21850
LK
1366 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
1367 (Vascii_eqv_table): Extern them.
41639988
KH
1368
1369 * casetab.c (set_case_table): If standard is nonzero, setup
1370 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
1371
1372 * search.c (looking_at_1): Use current_buffer->case_canon_table,
1373 not DOWNCASE_TABLE.
1374 (string_match_1): Likewise.
1375 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
1376 Vascii_downcase_table.
1377 (fast_string_match_ignore_case): Likewise.
1378 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
1379 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
1380 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
1381 simple_translate.
1382
6ca53601
SM
13832005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1384
1385 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
1386 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
1387 Use XtNtopShadowPixel and XtNbottomShadowPixel.
1388 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
1389 really work and that breaks with some versions of Xaw3d.
1390
fafbb99d 13912005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
1392
1393 * coding.c (syms_of_coding): Fix previous change.
1394
6ca53601
SM
13952005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
1396
1397 * fileio.c (search_embedded_absfilename): Fix last change.
1398
bf762c98
KH
13992005-03-25 Kenichi Handa <handa@m17n.org>
1400
1401 * coding.c (syms_of_coding): Suggest to use set-coding-category in
1402 the docstring of coding-category-list.
1403
f793f885
KS
14042005-03-31 Kim F. Storm <storm@cua.dk>
1405
1406 * keyboard.c (Qmouse_fixup_help_message): New var.
1407 (syms_of_keyboard): Intern and staticpro it.
1408 (show_help_echo): Apply mouse-fixup-help-message to help string.
1409
c364fe19
KS
14102005-03-30 Kim F. Storm <storm@cua.dk>
1411
1412 * xdisp.c (display_line): Allow multiple overlay arrows in window.
1413
c70a4df6
SM
14142005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1415
1416 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
1417 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
1418 (Ffile_name_absolute_p): Use it.
1419 (search_embedded_absfilename): New fun, extracted from
1420 Fsubstitute_in_file_name. Use file_name_absolute_p.
1421 Free the pw data after use.
1422 (Fsubstitute_in_file_name): Use it.
1423 After cutting a prefix, re-check file-name-handler.
1424
6e7d0438
JR
14252005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
1426
6ca53601 1427 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
1428
1429 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
1430 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
1431
65671706
SM
14322005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
1433
1434 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
1435 Use Fexit_minibuffer.
1436 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
1437
0de4dad4
SM
14382005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1439
781da985
SM
1440 * dired.c (Ffile_attributes): Add a missing gcpro.
1441
0de4dad4
SM
1442 * alloc.c (make_number): The arg can be bigger than `int'.
1443 * lisp.h (make_number): Make prototype more precise.
1444
1445 * process.c, dired.c (Vfile_name_coding_system)
1446 (Vdefault_file_name_coding_system):
1447 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
1448 (Vdefault_file_name_coding_system): Remove unused declarations.
1449
ff18668f
JD
14502005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1451
1452 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
1453 if it failed to pop up (Gnome "show pointer on ctrl" option makes
1454 menus fail to pop up).
1455
0de4dad4 14562005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
1457
1458 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 1459 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 1460
8df0ffbe
KS
14612005-03-22 Kim F. Storm <storm@cua.dk>
1462
1463 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
1464 * dispextern.h (lookup_derived_face): Fix prototype.
1465 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
1466
1467 * xdisp.c (handle_single_display_spec): Derive left-fringe and
1468 right-fringe face from fringe face.
1469
1470 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
1471 Derive face from fringe face.
1472
6ca30ba4
JD
14732005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1474
1475 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
1476
d615870a
DK
14772005-03-22 David Kastrup <dak@gnu.org>
1478
1479 * textprop.c (Fnext_char_property_change)
66347da7 1480 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
1481 (Fnext_single_char_property_change)
1482 (Fprevious_single_char_property_change): Check that limit is a
1483 number in strings.
1484 (Fnext_single_char_property_change): Coerce position to integer.
1485 (Fprevious_single_char_property_change): Same here.
1486
32b939ea
TTN
14872005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
1488
1489 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
1490
6027e473
SM
14912005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
1492
1493 * frame.c (Fignore_event): Remove.
1494 (syms_of_frame): Don't defsubr it.
1495
1496 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
1497 redundant `ignore-event'.
1498
730f4d72
EZ
14992005-03-19 Eli Zaretskii <eliz@gnu.org>
1500
1501 * unexec.c (write_segment, unexec): Move these functions to avoid
1502 forward references (which cause errors with "gcc -gcoff").
1503
c7f6afd5
JD
15042005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1505
6027e473 1506 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 1507 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 1508
c7f6afd5
JD
1509 * xrdb.c (x_load_resources): Use different char *helv when I18N
1510 is present.
1511
db328182
KH
15122005-03-17 Kenichi Handa <handa@m17n.org>
1513
66347da7 1514 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 1515
211f2210
SM
15162005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1517
1518 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
1519 Use xic_create_fontsetname even for non-Motif menus.
1520 Don't forget to free the fontsetname.
1521
1522 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
1523
c7bd5d57
RS
15242005-03-17 Richard M. Stallman <rms@gnu.org>
1525
1526 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
1527
1528 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
1529 (Fmake_symbolic_link): Use G to read the new file name.
1530
1531 * callint.c (Finteractive): Document G option.
1532 (Fcall_interactively): Implement G option.
1533
1534 * buffer.c (buffer_lisp_local_variables): New function,
1535 broken out from Fbuffer_local_variables.
1536 (clone_per_buffer_values): Use buffer_lisp_local_variables.
1537
888953f1
SM
15382005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1539
3c916d65
SM
1540 * xfns.c (xic_create_fontsetname): Add `motif' argument.
1541 Always return a freshly allocated string.
1542 (xic_create_xfontset): Adjust call.
1543
1544 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
1545 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
1546 (dump_realized_face): Fix warning.
1547
9f9e5275
SM
1548 * emacs.c (Fkill_emacs): YAILOM.
1549
888953f1
SM
1550 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
1551
48502d68
YM
15522005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1553
1554 * mac.c (HASHKEY_TERMINAL): Remove.
1555 (HASHKEY_MAX_NID): New macro.
1556 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
1557 argument.
888953f1 1558 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
1559 (xrm_create_database, xrm_q_put_resource)
1560 (xrm_merge_string_database, xrm_q_get_resource_1)
1561 (xrm_q_get_resource): Change resource database representation so
1562 that it may not use multiple hash tables for a single database.
1563 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
1564
d5161e8c
SM
15652005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
1566
11a646cd
SM
1567 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
1568
1569 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
1570 locale-coding-system, as was already done for WINDOWSNT.
1571
d5161e8c
SM
1572 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
1573 translation for chars in the 0-255 range.
1574
568b6e41
LK
15752005-03-16 Lute Kamstra <lute@gnu.org>
1576
1577 * floatfns.c (Ffloor): Doc fix.
1578
469fb3cf
YM
15792005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1580
1581 * mac.c: Include macterm.h instead of directly including Carbon.h.
1582 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
1583 (Qarray, Qdictionary): New variables.
1584 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
1585 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
1586 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
1587 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
1588 in callback for CFDictionaryApplyFunction.
1589 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1590 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1591 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
1592 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
1593 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
1594 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1595 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 1596 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
1597 (parse_binding, parse_component, parse_resource_name, parse_value)
1598 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
1599 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
1600 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
1601 New functions.
469fb3cf
YM
1602
1603 * macfns.c (mac_get_rdb_resource): Remove function.
1604 (x_get_string_resource): Use xrm_get_resource.
1605
1606 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
1607
1608 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
1609 name_list_element.
1610 (mac_make_rdb): Create resource database from preferences and
1611 argument string.
1612 (mac_term_init): Save resource database to cddr part of
1613 name_list_element.
1614
1615 * macterm.h (xrm_merge_string_database, xrm_get_resource)
1616 (xrm_get_preference_database): Add externs.
1617 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1618 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1619 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
1620
1621 * process.c (init_process): Change `#ifdef DARWIN' to `#if
1622 defined (DARWIN) || defined (MAC_OSX)'
1623
1624 * s/darwin.h (DARWIN): Don't define.
1625
6a3fac90
YM
16262005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1627
1628 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
1629 Remove unused variables.
1630 (syms_of_macfns): Don't initialize them. Likewise for
1631 Qface_set_after_frame_default. Defvar and initialize
1632 Vx_window_horizontal_drag_shape.
1633 (x_set_mouse_color): Change mouse pointer shape.
1634 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 1635 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
1636 (hourglass_started): New function (from xfns.c).
1637 (start_hourglass, cancel_hourglass): Put function body in #ifdef
1638 MAC_OSX.
1639 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
1640 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 1641 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
1642
1643 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
1644 Controls.h. Use ThemeCursor instead of CursHandle.
1645
d5161e8c
SM
1646 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
1647 Remove functions and declarations.
1648 (mac_set_colors): Take argument for saving background color.
1649 All callers changed.
6a3fac90
YM
1650 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
1651 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
1652 background color.
1653 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
1654 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
1655 Use SetThemeCursor.
6a3fac90
YM
1656 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
1657 indicator control to the upper-right corner of the window.
1658 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
1659 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
1660 (do_window_update): Update controls after updating content area.
1661 (mac_handle_window_event): Remove unused extern.
1662 (XTread_socket): Check both control handle and control part code
1663 to determine whether a scroll bar is clicked. Activate/deactivate
1664 root control instead of contained scroll bar controls.
1665 (make_mac_terminal_frame): Use ThemeCursor constants.
1666
d5161e8c
SM
1667 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
1668 New member hourglass_control.
6a3fac90 1669 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 1670 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 1671
a7321976
YM
16722005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1673
1674 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 1675 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
1676 laptops, and fn + `enter' on laptops.
1677
f7b758bd
SM
16782005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1679
1680 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
1681 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
1682 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
1683
1684 * xfns.c (xic_defaut_fontset): New constant.
1685 (xic_create_fontsetname): New function.
1686 Extracted from create_frame_xic. Try to generate a slightly
1687 better fontset.
1688 (xic_create_xfontset): Use it.
1689 (create_frame_xic): Simplify.
1690
dac24db4
SM
16912005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
1692
1693 * fileio.c (Fmake_symbolic_link): Fix last change.
1694
e0402468
RS
16952005-03-11 Richard M. Stallman <rms@gnu.org>
1696
1697 * fileio.c (Frename_file, Fadd_name_to_file)
1698 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
1699 expand the basename of FILE relative to it.
1700
fa815b14
KH
17012005-03-11 Kenichi Handa <handa@m17n.org>
1702
1703 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
1704 before calling setup_coding_system so that autoloading of a coding
1705 system work.
1706
817d354b
JD
17072005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1708
68a505ef
JD
1709 * xfns.c (hourglass_started): New function.
1710
1711 * dispextern.h: Declare hourglass_started.
1712
1713 * keyboard.c (Fexecute_extended_command): Restart hourglass
1714 after call to Fcompleting_read if already started.
1715
817d354b
JD
1716 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
1717 GTK main loop is entered in xterm.c, thus doing the redraw.
1718
b0a6f45c
KS
17192005-03-10 Kim F. Storm <storm@cua.dk>
1720
1721 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
1722
ee5d57b0
KH
17232005-03-08 Kenichi Handa <handa@m17n.org>
1724
1725 * frame.c (x_set_font): Call set_default_ascii_font if an
1726 available font is found.
1727
1728 * fontset.c (set_default_ascii_font): New function.
dac24db4 1729 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
1730
1731 * fontset.h (set_default_ascii_font): Extern it.
1732
f30c4a5c
KS
17332005-03-07 Kim F. Storm <storm@cua.dk>
1734
3fb26a86
KS
1735 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
1736 (clear_image_cache_count): New var.
1737 (redisplay_internal): Don't clear face and image caches in the
1738 middle of redisplay; do it afterwards.
1739
a54595d4
KS
1740 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
1741
f30c4a5c
KS
1742 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
1743 is valid. If not, clear phys_cursor_on_p and return.
1744
3d182f9d
AS
17452005-03-07 Andreas Schwab <schwab@suse.de>
1746
1747 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
1748
85d964de
RS
17492005-03-06 Richard M. Stallman <rms@gnu.org>
1750
1751 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
1752
1753 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
1754 (Feval, Ffuncall): Use CHECK_CONS_LIST.
1755
1756 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
1757
1758 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
1759 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
1760
3ff96c81
JL
17612005-03-05 Juri Linkov <juri@jurta.org>
1762
1763 * emacs.c (USAGE1): Replace Info node name "command arguments"
1764 with "emacs invocation".
1765 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
1766 allow arguments `--color' and `MODE' to be separated by space.
1767 Add --no-blinking-cursor, -nbc.
1768 (standard_args): Add -nbc, --no-blinking-cursor.
1769
64eb0083
TTN
17702005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1771
1772 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
1773 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
1774 * fileio.c (Fexpand_file_name) [VMS]:
1775 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
1776 * doc.c (munge_doc_file_name) [VMS]: Likewise.
1777 (Fsnarf_documentation): Call munge_doc_file_name.
1778
ad708ae5
TTN
17792005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1780
1781 * s/vms.h (FILE_SYSTEM_CASE): New macro.
1782 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
1783 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
1784
ba025f6d
YM
17852005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1786
1787 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
1788 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 1789
dac24db4 1790 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
1791
1792 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1793 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 1794 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
1795 (mac_clear_font_name_table): Move extern to macterm.h.
1796
1797 * macfns.c (install_window_handler): Move extern to macterm.h.
1798 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
1799 valid. Don't check !NILP (dir) because it is already checked with
1800 CHECK_STRING.
1801 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 1802 specifying the default location and obtaining the selected filename.
ba025f6d
YM
1803
1804 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1805
2313f861 1806 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
1807 are included via Carbon.h.
1808
dac24db4
SM
1809 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
1810 Define USE_CARBON_EVENTS to 1.
2313f861 1811 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
1812 (x_free_frame_resources): Call remove_window_handler for
1813 non-tooltip windows.
1814 [TARGET_API_MAC_CARBON]: Don't include headers that are included
1815 via Carbon.h.
1816 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
1817 (mac_do_receive_dragUPP): New variables.
1818 (mac_handle_service_event, init_service_handler): Put declarations
1819 and definitions in #ifdef MAC_OSX.
1820 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
1821 drag-and-drop handler functions and register them.
1822 (remove_window_handler): New function.
dac24db4
SM
1823 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
1824 Use fsspec_to_posix_pathname.
ba025f6d
YM
1825 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
1826 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
1827 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
1828 Set default cursors.
ba025f6d
YM
1829 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
1830 init_service_handler or init_quit_char_handler.
1831 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
1832
1833 * macterm.h (install_window_handler, remove_window_handler)
1834 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
1835 (mac_clear_font_name_table): New externs.
ad708ae5 1836
c1558952
TTN
18372005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1838
1839 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
1840 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
1841 (Fexpand_file_name): Likewise.
1842
fa439170
TTN
18432005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1844
1845 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
1846 no longer special-case VMS. Add bogus return value.
1847
db2dacf6
KS
18482005-03-02 Kim F. Storm <storm@cua.dk>
1849
1850 * dispextern.h (XASSERTS): Define to 0 if not already defined.
1851 (xassert) [!XASSERTS]: Define dummy version.
1852
0870514c
KS
18532005-03-02 Kim F. Storm <storm@cua.dk>
1854
1855 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
1856 Reported by David Kastrup.
1857
6b640092
KS
18582005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
1859
1860 * xdisp.c (get_next_display_element): Fix control and escape
1861 glyph from display vector.
1862
f4a5a485
SM
18632005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
1864
1865 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
1866
85d964de
RS
18672005-02-27 Richard M. Stallman <rms@gnu.org>
1868
1869 * xdisp.c (fast_find_position): Rename END to BEG.
1870 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
1871
6e8db3ea
JD
18722005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1873
f4a5a485 1874 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
1875 gtk_window_resize and x_wm_set_size_hint.
1876
0f465b55
KS
18772005-02-25 Kim F. Storm <storm@cua.dk>
1878
1879 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
1880
1881 * xdisp.c (init_from_display_pos): Don't read past end of
1882 it->overlay_strings array.
1883
d5fb8dab 18842005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
1885
1886 * buffer.c (syms_of_buffer): Fix typo.
1887
b02c3eed
LK
18882005-02-23 Lute Kamstra <lute@gnu.org>
1889
1890 * buffer.c (Foverlay_buffer): Doc fix.
1891
c8500765
KS
18922005-02-22 Kim F. Storm <storm@cua.dk>
1893
b686dd59
KS
1894 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
1895 and symbol keys in alists and hash tables.
1896
c8500765
KS
1897 * xdisp.c (fast_find_position): Fix search for start of overlay.
1898
81c85b53
KS
18992005-02-21 Kim F. Storm <storm@cua.dk>
1900
1901 * window.c (window_scroll_pixel_based): When scrolling backwards,
1902 handle partial visible line at end of window even when we hit PT.
1903
f4a5a485 19042005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
1905
1906 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
1907
0dd5a842
KS
19082005-02-21 Kim F. Storm <storm@cua.dk>
1909
1910 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
1911 I think those asserts are bogus if buffer contains invisible text
1912 or images.
1913
d5fb8dab 19142005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
1915
1916 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
1917
0fba9f25
KS
19182005-02-20 Kim F. Storm <storm@cua.dk>
1919
1920 * xdisp.c (pos_visible_p): Be sure to move to the specified
1921 position. Always get the full ascent / descent of the
1922 corresponding row, to return reliable rtop and rbot values.
1923 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
1924 Must look one character back, as back_to_previous_line_start
1925 returns position after the newline.
1926 (move_it_vertically_backward): Fix heuristic for when to move further
1927 back in case line_height * 2/3 is larger than window height.
1928 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
1929 as it does not do anything anymore. Add arg current_matrix_p to
1930 use current matrix rather than desired matrix when set.
1931 (try_cursor_movement): Don't scroll to make cursor row fully
1932 visible if cursor didn't move. This avoids unexpected recentering
1933 in case of blinking cursor or accepting process output.
1934 Use current matrix to check cursor row visibility.
1935 (redisplay_window): Fix whether to recenter or move to top in case
1936 cursor line is taller than window height.
1937 (find_first_unchanged_at_end_row): Stop search if we reach a row
1938 which not enabled (instead of abort).
1939
b1c2adc3
KS
19402005-02-18 Kim F. Storm <storm@cua.dk>
1941
c2ee48fb
KS
1942 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
1943 to be nil in a :box attribute value list; customize prints that
1944 as lisp value when no box color is specified.
1945
b1c2adc3
KS
1946 * .gdbinit (pitx, pit): Pretty print display iterator.
1947 (prowx, prow): Pretty print glyph row.
1948 (pcursorx, pcursor): Pretty print a window cursor.
1949 (pwinx, pwin): Pretty print struct window.
1950
f102186f
SM
19512005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1952
1953 * alloc.c (BLOCK_BYTES): Harmless typo.
1954
9b516537
AS
19552005-02-17 Andreas Schwab <schwab@suse.de>
1956
1957 * xfns.c (hack_wm_protocols): Use correct type for last parameter
1958 of XGetWindowProperty to avoid aliasing issues.
1959 (Fx_window_property): Likewise.
1960
1961 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 1962 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
1963
1964 * xterm.c (handle_one_xevent): Use union of struct input_event and
1965 struct selection_input_event to avoid aliasing issues.
1966 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
1967
886b1418
KS
19682005-02-17 Kim F. Storm <storm@cua.dk>
1969
1970 * dispextern.h (enum it_method): New enum.
1971 (GET_FROM_*): Its members.
1972 (struct it): Change member method from function pointer to enum.
1973
1974 * xdisp.c (check_it, init_from_display_pos, handle_stop)
1975 (setup_for_ellipsis, handle_single_display_spec)
1976 (handle_composition_prop, next_overlay_string)
1977 (get_overlay_strings, reseat_1, reseat_to_string)
1978 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
1979 (in_display_vector_p, display_line, get_next_display_element):
1980 Change it->method from function pointer to enum.
1981 (get_next_element): New array to map it->method to function.
1982 (get_next_display_element): Use it.
1983 (set_iterator_to_next): Use switch instead of if/else chain.
1984
99ee2c6a 19852005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
1986
1987 * w32select.c: Summary: Thorough rework to implement Unicode
1988 clipboard operations and delayed rendering.
1989
1990 Drop last_clipboard_text and related code, keep track of
f4a5a485 1991 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
1992
1993 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
1994 (clipboard_owner, modifying_clipboard, cfg_coding_system)
1995 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
1996 (current_coding_system, current_requires_encoding)
f4a5a485
SM
1997 (current_num_nls, current_clipboard_type, current_lcid):
1998 New static variables.
52c7f9ee
JR
1999
2000 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
2001 (render, render_all, run_protected, lisp_error_handler)
2002 (owner_callback, create_owner, setup_config)
f4a5a485
SM
2003 (enum_locale_callback, cp_from_locale, coding_from_cp):
2004 New local functions.
52c7f9ee
JR
2005
2006 (term_w32select, globals_of_w32select): New global functions.
2007
2008 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
2009 clipboard_owner instead. Use delayed rendering and provide
2010 all text formats. Provide CF_LOCALE if necessary.
2011
2012 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
2013 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
2014 available. Force DOS line-ends for decoding.
2015
2016 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
2017
2018 (syms_of_w32select): Init and register new variables.
2019
2020 * w32.h: Add prototypes for globals_of_w32select and
2021 term_w32select. Make the neighboring K&R declarations into
2022 prototypes, too.
2023
2024 * emacs.c: Include w32.h to get function prototypes.
2025 (main): Call globals_of_w32select.
2026
886b1418 2027 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
2028
2029 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
2030
86e61586
KS
20312005-02-16 Kim F. Storm <storm@cua.dk>
2032
2033 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
2034 at end of display vector.
2035
6407f07b
RS
20362005-02-15 Richard M. Stallman <rms@gnu.org>
2037
2038 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
2039 for mode and header lines.
2040
2041 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
2042
2043 * keymap.h (describe_map_tree): Change decl.
2044
2045 * keyboard.c (command_loop_1): Always use safe_run_hooks
2046 to run Qdeferred_action_function.
2047
2048 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
2049 (describe_map, describe_vector): Likewise. When it's 1,
2050 don't omit shadowed bindings, instead mark them as shadowed.
2051
2052 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
2053 for describe_map_tree. Pass 1 for MENTION_SHADOW.
2054
2055 * data.c (Fsetq_default): Allow no arg case.
2056
3bb917bf
KH
20572005-02-14 Kenichi Handa <handa@m17n.org>
2058
2059 * coding.c (encode_coding_string): Always return a unibyte string.
2060 If NOCOPY is nonzero and there's no need of encoding, make STR
2061 unibyte directly.
2062
2063 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
2064 multibyte string, signal an error instead of aborting.
2065
e31d908f
DN
20662005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
2067
2068 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
2069
48e029b6
KS
20702005-02-12 Kim F. Storm <storm@cua.dk>
2071
2072 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
2073
c10bb00a
KS
20742005-02-10 Kim F. Storm <storm@cua.dk>
2075
2076 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
2077 if it moves outside window or it doesn't display text.
2078
9ca0f64a
KS
20792005-02-09 Kim F. Storm <storm@cua.dk>
2080
2081 * undo.c (Fprimitive_undo): Check that undo function does not
2082 switch buffer.
2083
b8d6f4af
JD
20842005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2085
2086 * xselect.c (selection_data_to_lisp_data): For the special case
2087 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
2088 (x_property_data_to_lisp, selection_data_to_lisp_data):
2089 Comment update: data must be array of int for format == 32.
b8d6f4af 2090
3419757d
SM
20912005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2092
2093 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
2094
3a441526
JD
20952005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2096
fc34503b
JD
2097 * xfns.c (Fx_change_window_property): Use long array when format is 32.
2098 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
2099 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
2100 (x_set_tool_bar_lines): Check that width and height is greater than
2101 zero before clearing area.
fc34503b
JD
2102
2103 * xselect.c (x_reply_selection_request): Pass long array to
2104 XChangeProperty so that 64 bit longs are handeled correctly.
2105 (x_get_window_property): If format is 32 and long is bigger than 32
2106 bits convert data from XGetWindowProperty from long array to int array.
2107 (lisp_data_to_selection_data): When the input is a vector and the
2108 format is 32, allocate a long array even if long is bigger than 32 bits.
2109 (x_fill_property_data): Use char, short and long as the man page
2110 for XChangeProperty specifies. This way the data returned is OK for
2111 both 32 and 64 bit machines.
2112 (x_handle_dnd_message): Calculate size correctly even for 64 bit
2113 machines.
2114 (Fx_send_client_event): Undo change from 2005-02-05,
2115 x_fill_property_data now handles that case.
2116
3419757d 2117 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
2118 reason for the approach in the code.
2119
82ec225b
KS
21202005-02-07 Kim F. Storm <storm@cua.dk>
2121
2122 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
2123
ba2c991c
RS
21242005-02-06 Richard M. Stallman <rms@gnu.org>
2125
2126 * eval.c (Frun_hook_with_args)
2127 (Frun_hook_with_args_until_success)
2128 (Frun_hook_with_args_until_failure): Doc fixes.
2129
e120ea40
AS
21302005-02-05 Andreas Schwab <schwab@suse.de>
2131
3419757d 2132 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 2133
31f16913
JD
21342005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2135
2136 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
2137 the longs in a XClientMessageEvent correctly when long is 64 bits.
2138
6082a820
EZ
21392005-02-05 Eli Zaretskii <eliz@gnu.org>
2140
2141 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
2142 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
2143
0e95095b
JD
21442005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2145
2146 * xmenu.c (menubar_selection_callback): Force out GTK buffered
2147 events so the menu event comes after them. This is to prevent sit-for
2148 from exiting on buffered events directly after a menu selection,
2149 lisp code for Help => About Emacs uses sit-for.
2150
2151 * gtkutil.c (create_menus): Connect selection-done event instead of
2152 the deactivate event to deactivate_cb. This will make the last
2153 leave event come before the call to deactivate_cb, so the leave
2154 event does not make sit-for exit after a menu selection.
2155
5bb6a3c1
KS
21562005-02-03 Kim F. Storm <storm@cua.dk>
2157
2158 * dispnew.c (build_frame_matrix_from_leaf_window)
2159 [!GLYPH_DEBUG]: Fix xassert.
2160
2161 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
2162
2163 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2164
e9859e26
YM
21652005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2166
2167 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
2168 the compiling OS version.
2169
2170 * macfns.c (x_create_tip_frame): Likewise.
2171
3419757d 2172 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 2173
4e07258f
RS
21742005-02-03 Richard M. Stallman <rms@gnu.org>
2175
2176 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
2177
2178 * xdisp.c (echo_area_display): Clear echo_message_buffer.
2179
2180 * buffer.c (Fbury_buffer): Doc fix.
2181
4a34b529
ST
21822005-02-02 Steven Tamm <steventamm@mac.com>
2183
7e26f91b 2184 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 2185 xassert being uncondition, but predicate is.
7e26f91b 2186 * dispnew.c (update_window): Fix compile error due to
f6c62d96 2187 xassert being uncondition, but predicate is.
4a34b529 2188
d78f30b8
MB
21892005-02-02 Miles Bader <miles@gnu.org>
2190
2191 * dispextern.h (xassert): Enable unconditionally.
2192
b044278d
KS
21932005-02-02 Kim F. Storm <storm@cua.dk>
2194
2195 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
2196
56072160
KH
21972005-02-02 Kenichi Handa <handa@m17n.org>
2198
2199 * casefiddle.c (casify_object): Enable changing characters of
2200 different byte length.
2201 (casify_region): Fix loop condition, args to replace_range_2, and
2202 update opoint_byte.
2203
f4a5a485 2204 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 2205
5e1674c5
KS
22062005-02-01 Kim F. Storm <storm@cua.dk>
2207
2208 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
2209 stack before calling handle_display_prop.
2210
fb89c330
KS
22112005-01-31 Kim F. Storm <storm@cua.dk>
2212
2213 * undo.c (Qapply): New lisp var.
2214 (syms_of_undo): Intern and staticpro it.
2215 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
2216 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
2217
2218 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2219
7bf72fa6
JH
22202005-01-30 Jesper Harder <harder@phys.au.dk>
2221
a050b1a9
KS
2222 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
2223 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 2224
03c64f2e
LT
22252005-01-29 Luc Teirlinck <teirllm@auburn.edu>
2226
2227 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 2228 Increase value to 3 Meg.
03c64f2e 2229
49b8b5dc
JD
22302005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2231
2232 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
2233 button events are not received otherwise.
2234
5a92a9eb
RS
22352005-01-29 Richard M. Stallman <rms@gnu.org>
2236
2237 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2238
2239 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
2240
5c243ee4
SM
22412005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2242
2243 * keymap.c (access_keymap): YAILOM.
2244
caf533af
KS
22452005-01-27 Kim F. Storm <storm@cua.dk>
2246
2247 * xdisp.c (get_phys_cursor_geometry): New function to calculate
2248 phys cursor position and size for hollow cursor. Position is
2249 aligned with get_glyph_string_clip_rect and ensures that a hollow
2250 cursor is shown, even when the actual glyph is not visible.
2251
2252 * dispextern.h (get_phys_cursor_geometry): Add prototype.
2253
2254 * xterm.c (x_clip_to_row): Ensure y >= 0.
2255 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2256
2257 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2258
2259 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2260
043f7f73
SM
22612005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
2262
2263 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
2264
889f3641
KS
22652005-01-27 Kim F. Storm <storm@cua.dk>
2266
2267 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
2268 glyph, even when row is only partially visible and actual cursor
2269 position is not visible.
2270
29099c2f
RS
22712005-01-24 Richard M. Stallman <rms@gnu.org>
2272
2273 * xterm.c (x_error_quitter): No longer static, and moved after
2274 x_error_handler.
2275
6adb6f01
KS
22762005-01-24 Kim F. Storm <storm@cua.dk>
2277
2278 * xdisp.c (move_it_by_lines): If we move forward after going too
2279 far back, cancel move if end position is same as start position.
2280
4d904fa0
ST
22812005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2282
2283 * dispextern.h (struct glyph_string): New members clip_head and
2284 clip_tail.
6adb6f01 2285
4d904fa0
ST
2286 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
2287 region to the area between clip_head and clip_tail.
2288 (draw_glyphs): Record the area that need to be actually redrawn to
2289 the new variables clip_head and clip_tail when there are
2290 overhangs. Set values of these variables to the corresponding
2291 members in struct glyph_string. Refine x coordinates for
2292 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 2293
4d904fa0
ST
2294 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
2295
2296 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
2297 QDTextBounds.
2298 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 2299 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 2300 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 2301 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 2302
f2417699
KS
23032005-01-24 Kim F. Storm <storm@cua.dk>
2304
6f67f013
KS
2305 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
2306 direction if window height was smaller than next-screen-context-lines.
2307 Now always scroll at least one line in the requested direction.
2308 Ensure that we actually do scroll backwards when requested to do so.
2309
f2417699
KS
2310 * xdisp.c (redisplay_window): Only try to make cursor line fully
2311 visible once (to avoid redisplay loop).
2312
a354b72c
KS
23132005-01-23 Kim F. Storm <storm@cua.dk>
2314
6b3d88f7 2315 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 2316 partially visible rows.
6b3d88f7
KS
2317 (window_scroll_pixel_based): Adapt to that change.
2318
5c20cae2
KS
2319 * window.c (window_scroll_pixel_based): Force moving to next line
2320 if scrolling doesn't move start point, e.g. if looking at tall image.
2321
a354b72c 2322 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
2323 Clear last_height before calling line_bottom_y to get real height.
2324 Fix calculation of y.
a354b72c 2325
d9e7c622
ST
23262005-01-22 Steven Tamm <steventamm@mac.com>
2327
2328 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 2329 (DARWIN): Define.
7e26f91b 2330
d9e7c622
ST
2331 * process.c (init_process): Default process-connection-type to
2332 nil on darwin 6 or less, t if it is 7 or higher. This way the
2333 broken pty behavior is still allowed on darwin 6 for interactive
2334 processes for people that know what they are doing.
2335
d00e399a
KS
23362005-01-22 Kim F. Storm <storm@cua.dk>
2337
2338 * window.c (auto_window_vscroll_p): New boolean.
2339 (syms_of_window): DEFVAR_BOOL it.
2340 (Fpos_visible_in_window_p): Extend return value to include RTOP
2341 and RBOT values if FULLY is nil.
2342 (window_scroll_pixel_based): Adjust vscroll for partially visible
2343 rows if auto_window_vscroll_p is set.
2344 (Fset_window_vscroll): Do nothing if vscroll is not modified.
2345
2346 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
2347 to return number of partially invisible pixels at top and bottom
2348 of the dislay row at POS.
2349
2350 * lisp.h (pos_visible_p): Fix prototype.
2351
f95a20e7
RS
23522005-01-21 Richard M. Stallman <rms@gnu.org>
2353
2354 * fileio.c (Fcopy_file): Doc fix.
2355
eee141ce
JD
23562005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2357
2358 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
2359 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
2360 start of function for older compilers.
2361
6f771c32
RS
23622005-01-20 Richard M. Stallman <rms@gnu.org>
2363
2364 * editfns.c (Fmessage): If arg is "", return "" (as before).
2365
2366 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
2367
2368 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
2369 variable.
2370
a15252fd
ST
23712005-01-20 Steven Tamm <steventamm@mac.com>
2372
043f7f73 2373 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
2374 (init_editfns): Assign new variable operating-system-release
2375 based on call to uname if available.
043f7f73 2376 (get_operating_system_release): Add function to
d00e399a 2377 allow c-level access to operating system release.
a15252fd
ST
2378
2379 * config.h: Regenerated.
2380
043f7f73
SM
2381 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
2382 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
2383 using ptys as '7'.
2384
3d6a4b2d
KS
23852005-01-20 Kim F. Storm <storm@cua.dk>
2386
62fc9b0f
KS
2387 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
2388
c310aca4
KS
2389 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
2390 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
2391
2392 * macterm.c (x_draw_glyph_string_box): Likewise.
2393
2394 * w32term.c (x_draw_glyph_string_box): Likewise.
2395
3d6a4b2d
KS
2396 * indent.c (Fvertical_motion): Temporarily disable selective display.
2397
27c8be45
KS
23982005-01-19 Kim F. Storm <storm@cua.dk>
2399
77db5cf3
KS
2400 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
2401 image property.
2402
27c8be45
KS
2403 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
2404
81f498dc
KS
24052005-01-18 Kim F. Storm <storm@cua.dk>
2406
2407 * xdisp.c (fast_find_position): Backtrack to find first row if
2408 charpos is inside a display overlay that spans multiple lines.
2409
1cdb0707
KH
24102005-01-18 Kenichi Handa <handa@m17n.org>
2411
2412 * coding.c (decode_coding_iso2022): Translate invalid codes if
2413 translation-table is specified.
2414
677159ce
KS
24152005-01-18 Kim F. Storm <storm@cua.dk>
2416
2417 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
2418 change. If handle_display_prop indicates newline is replaced by
2419 image or text, move back to start of relevant overlay or interval
2420 and continue scan from there. Simplify.
2421
977284cc
KS
24222005-01-17 Kim F. Storm <storm@cua.dk>
2423
043f7f73
SM
2424 * dispnew.c (mode_line_string, marginal_area_string):
2425 Fix off-by-one error in search for glyph.
977284cc 2426
e24531b7
KS
24272005-01-16 Kim F. Storm <storm@cua.dk>
2428
2429 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
2430
5ddd7664
ST
24312005-01-16 Steven Tamm <steventamm@mac.com>
2432
043f7f73 2433 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 2434
fc2ff44b
AS
24352005-01-16 Andreas Schwab <schwab@suse.de>
2436
2437 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
2438
50af5100
JD
24392005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2440
2441 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
2442 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
2443
a2d5fca0
JD
24442005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2445
2446 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
2447 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
2448 New flags for readable_events.
043f7f73 2449 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
2450 (tracking_off): Call readable_events and get_input_pending with
2451 flag READABLE_EVENTS_DO_TIMERS_NOW.
2452 (readable_events): Move code from old readable_filtered_events here,
2453 but check new READABLE_EVENTS_* in argument flags instead of previous
2454 two boolean arguments do_timers_now and filter_events.
2455 If we are doing mouse tracking and the mouse moved, return only if
2456 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
2457 (swallow_events): Call get_input_pending with flag
2458 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 2459 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
2460 here. Replace boolean arguments do_timers_now, filter_events with
2461 flags, and pass flags to readable_events. Document new
2462 READABLE_EVENTS_* flags.
2463 (detect_input_pending_ignore_squeezables): New function.
2464 (detect_input_pending_run_timers): Call get_input_pending with flag
2465 READABLE_EVENTS_DO_TIMERS_NOW.
2466 (Finput_pending_p): Call get_input_pending with flags
2467 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
2468
2469 * dispnew.c (update_window, update_frame_1): Replace calls to
2470 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 2471 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
2472 mouse movements.
2473
2474 * lisp.h: Declare detect_input_pending_ignore_squeezables.
2475
42afbcda
ST
24762005-01-15 Steven Tamm <steventamm@mac.com>
2477
e24531b7
KS
2478 * macterm.c (Vmac_use_core_graphics): Declare variable for
2479 mac-allow-anti-aliasing.
2480 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 2481 (mac_draw_string_common): Use core graphics text rendering if
0530c679 2482 mac-allow-anti-aliasing is enabled.
743d0696 2483
42afbcda
ST
2484 * macfns.c (Fx_file_dialog): Save As dialog includes only the
2485 file name in the text box.
2486
9cdd4884
ST
24872005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2488
043f7f73
SM
2489 * macfns.c (x_set_foreground_color, x_set_background_color):
2490 Sync with xfns.c.
9cdd4884
ST
2491 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
2492 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
2493 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
2494
88948d55
KS
24952005-01-14 Kim F. Storm <storm@cua.dk>
2496
2497 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
2498
20d6de82
RS
24992005-01-13 Richard M. Stallman <rms@gnu.org>
2500
2501 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
2502 if Voverriding_terminal_local_map is non-nil.
2503
2504 * keyboard.c (syms_of_keyboard): Doc fix.
2505
f75a592e
KS
25062005-01-13 Kim F. Storm <storm@cua.dk>
2507
2508 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 2509 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 2510
28f94a34
RS
25112005-01-12 Richard M. Stallman <rms@gnu.org>
2512
2513 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
2514 face property for characters that don't specify one.
2515
2516 * fns.c (Frequire): Record in load-history unconditionally.
2517
57a230b1
KS
25182005-01-10 Kim F. Storm <storm@cua.dk>
2519
2520 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
2521
2522 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
2523 Callers changed.
2524 Add support to merge with lisp face id too (if face_name is t).
2525
2526 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2527 Don't lookup lface_id from display table glyphs here; instead use
2528 merge_faces to merge the lisp face id into current face.
2529
8ab2c119
KS
25302005-01-09 Kim F. Storm <storm@cua.dk>
2531
2532 * dispextern.h (struct it): New member dpvec_face_id.
2533 (merge_into_realized_face): Add prototype.
2534
2535 * xfaces.c (merge_into_realized_face): New function. Used to
2536 merge escape-glyph face or face from display table into current face.
2537
2538 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
2539 (syms_of_xdisp): DEFVAR_LISP it.
2540 (escape_glyph_face): Remove var.
2541 (redisplay_window): Don't initialize it.
2542 (setup_for_ellipsis, get_next_display_element):
2543 Set it->dpvec_face_id to -1.
2544 (get_next_display_element): Test Vshow_nonbreak_escape.
2545 Do not setup escape_glyph_face.
2546 Properly merge escape-glyph face or face from display table with
043f7f73
SM
2547 current face for escape and control characters.
2548 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
2549 element of display vector.
2550 (next_element_from_display_vector): If it->dpvec_face_id is set,
2551 use that instead of lface_id from glyph itself.
2552
e0910857
JD
25532005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2554
2555 * xterm.h (struct x_output): New member, toolbar_detached.
2556
2557 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
2558 38.
2559 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
2560 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
2561 (xg_create_tool_bar): Initialize toolbar_detached.
2562 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
2563 toolbar_detached is zero.
2564
ff59904a
JD
25652005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2566
9b85e63d
JD
2567 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
2568 gtk_menu_popup if not for_click, so callbacks for the menu are called.
2569
ff59904a
JD
2570 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
2571 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 2572 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
2573
2574 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 2575 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
2576 XFLOAT_DATA to get extract number from Lisp object.
2577
f9a23a6f
KS
25782005-01-07 Kim F. Storm <storm@cua.dk>
2579
2580 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
2581 Set stop_charpos to current charpos instead of 0.
2582
28f94a34
RS
25832005-01-06 Nick Roberts <nickrob@snap.net.nz>
2584
2585 * xdisp.c (Fformat_mode_line): First arg now required.
2586
a6fffcdc
ST
25872005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2588
2589 * macterm.c (XLoadQueryFont): Correctly handle 0 size
2590 font widths that are returned from some Japanese fonts.
2591
c35b0c6b
KS
25922005-01-06 Kim F. Storm <storm@cua.dk>
2593
2594 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
2595 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
2596 (destroy_fringe_bitmap): Set fringe_faces element to nil.
2597 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
2598 fringe_faces array and init elements to nil.
2599 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
2600 non-persistent face id.
2601 (mark_fringe_data): New function for GC.
2602
2603 * alloc.c (mark_fringe_data): Declare extern.
2604 (Fgarbage_collect): Call mark_fringe_data.
2605
2606 * alloc.c (overrun_check_free): Invalidate freed memory if
2607 XMALLOC_CLEAR_FREE_MEMORY is defined.
2608
e0e76ab9
ST
26092005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2610
2611 * macfns.c: Include sys/param.h.
2612 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
2613 and function.
2614 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
2615 of filename string. Set event callback function when creating
2616 dialog boxes. Add code conversions for filenames. Don't dispose
2617 apple event descriptor record if failed to create it.
2618
2619 * macterm.c: Include sys/param.h.
2620 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
2621 kEventWindowUpdate.
2622 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
2623 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
2624 of FSSpec from apple event descriptor record.
2625 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
2626 size of filename string.
2627 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
2628 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
2629 file dialog is in action.
043f7f73
SM
2630 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
2631 Reject only when there are no filename items. Set background color
e0e76ab9 2632 before (un)highlighting the window below the dragged items.
2313f861 2633 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 2634
043bc640
KH
26352005-01-05 Romain Francoise <romain@orebokech.com>
2636
2637 * term.c (encode_terminal_code): Fix buffer size computation.
2638
dd496df6
RS
26392005-01-04 Richard M. Stallman <rms@gnu.org>
2640
2641 * xdisp.c (Fformat_mode_line): Doc fix.
2642
026cdede
SM
26432005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2644
2645 * alloc.c (refill_memory_reserve): Move.
2646 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
2647 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
2648
d57c7572
RS
26492005-01-03 Richard M. Stallman <rms@gnu.org>
2650
2651 * window.c (window_scroll_pixel_based): Don't correct preserve_y
2652 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
2653
b14f868c
JR
26542005-01-03 Jason Rumney <jasonr@gnu.org>
2655
2656 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
2657 fontp->space_width to FONT_WIDTH so they are valid.
2658
2659 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 2660 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
2661 their appropriate values.
2662
2663 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2664 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
2665 fontp->space_width.
2666
e169f939
ST
26672005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2668
2669 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
2670 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
2671 metrics for max and min bounds.
2672 (x_load_font): Correctly calculate average font width metrics.
2673
19996af4
RS
26742005-01-02 Richard M. Stallman <rms@gnu.org>
2675
2676 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
2677
42d02da0
JD
26782004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2679
2680 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
2681
1db7dd46
RS
26822004-12-31 Richard M. Stallman <rms@gnu.org>
2683
b437860a
RS
2684 * xdisp.c (setup_for_ellipsis, get_next_display_element):
2685 Set it->ellipsis_p to 1 or 0.
2686 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 2687 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
2688 (cursor_row_p): If PT's at the end of the ellipsis the row
2689 ends within, don't display cursor on this row.
2690
2691 * dispextern.h (struct it): New element ellipsis_p.
2692 (struct glyph_row): New element ends_in_ellipsis_p.
2693
2694 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
2695 position if we're reading from something other than the buffer.
2696
1db7dd46
RS
2697 * window.c (window_scroll_pixel_based): Only look at
2698 Vscroll_preserve_screen_position if the old PT can't be kept.
2699 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2700
1225f637
KS
27012004-12-30 Kim F. Storm <storm@cua.dk>
2702
2703 * xdisp.c (get_line_height_property): New function extracted from
2704 original calc_line_height_property.
2705 (calc_line_height_property): Rework. Handle t and (nil . ratio).
2706 (x_produce_glyphs): Use them to handle line-height and
2707 line-spacing according to new height spec.
2708 (Qtotal): Remove.
33b2f4ea 2709 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 2710
c243063e
KH
27112004-12-30 Kenichi Handa <handa@m17n.org>
2712
2713 * fileio.c (Finsert_file_contents): Don't use
2714 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 2715 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
2716
2717 * fontset.h (struct font_info): New members space_width and
2718 average_width.
2719
2720 * frame.h (struct frame): New member space_width.
2721 (FRAME_SPACE_WIDTH): New macro.
2722
2723 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
2724
2725 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2726 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 2727 fontp->space_width.
043f7f73 2728 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
2729 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
2730
2731 * xdisp.c (x_produce_glyphs): Calculate tab width by
2732 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
2733
456e761b
ST
27342004-12-29 Sanghyuk Suh <han9kin@mac.com>
2735
2736 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 2737 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 2738
188577ce
LT
27392004-12-29 Luc Teirlinck <teirllm@auburn.edu>
2740
2741 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
2742
99ec74b9
RS
27432004-12-29 Richard M. Stallman <rms@gnu.org>
2744
2745 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
2746
30c92fab
ST
27472004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2748
2749 * macfns.c (install_window_handler): Modify extern to return OSErr
2750 value.
2751 (mac_window): Handle return value of install_window_handler.
2752
2753 * macterm.c (reflect_byte): Remove function.
2754 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
2755 Lookup table instead.
2756 (mac_do_font_lists): Simplify calculation of the longest
2757 nonspecial string.
2758 (init_mac_drag_n_drop): Remove function and declaration.
2759 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
2760 init_mac_drag_n_drop.
2761 (mac_do_track_drag): New function and declaration.
2762 (install_window_handler): Return OSErr value.
043f7f73
SM
2763 (install_window_handler) [TARGET_API_MAC_CARBON]:
2764 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 2765 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
2766 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
2767 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 2768
4b982924
DN
27692004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2770
2771 * coding.c (decode_coding): Fix previous change.
2772
93fdf45f
RS
27732004-12-28 Richard M. Stallman <rms@gnu.org>
2774
2775 * xdisp.c (back_to_previous_visible_line_start):
2776 Don't call handle_display_prop.
2777
5bdca8af
DN
27782004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2779
2780 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
2781 (decode_coding_emacs_mule, encode_coding_emacs_mule)
2782 (decode_coding_iso2022, encode_designation_at_bol)
2783 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
2784 (decode_coding): Constify arguments and local vars.
2785
33385c6f
JD
27862004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2787
2788 * xmenu.c (popup_get_selection): Only pop down dialogs
2789 on C-g and Escape.
95bdef2e 2790 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
2791 (create_and_show_popup_menu, create_and_show_dialog):
2792 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 2793
b15325b2
ST
27942004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2795
2796 * dispextern.h: Change HAVE_CARBON to MAC_OS.
2797 (struct glyph_string): Likewise.
a2c7e69a 2798
b15325b2
ST
2799 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
2800 mac_initialize.
a2c7e69a 2801
b15325b2
ST
2802 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
2803 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 2804
b15325b2 2805 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 2806
b15325b2
ST
2807 * frame.c (x_set_frame_parameters, x_report_frame_params)
2808 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
2809 (x_set_border_width, Vdefault_frame_scroll_bars):
2810 Change HAVE_CARBON to MAC_OS.
a2c7e69a 2811
b15325b2
ST
2812 * image.c [MAC_OS]: Include sys/stat.h.
2813 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
2814 QuickTimeComponents.h.
a2c7e69a 2815
b15325b2
ST
2816 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
2817 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 2818 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
2819 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
2820 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2821 (mac_clear_font_name_table): Add extern.
2822 (Fmac_clear_font_name_table): New defun.
2823 (syms_of_mac): Defsubr it.
2824 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
2825 [MAC_OSX] (select_and_poll_event): New function.
2826 [MAC_OSX] (sys_select): Use it.
2827 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
2828 [MAC_OSX && SELECT_USE_CFSOCKET]
2829 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
2830 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
2831 RunLoop for simultaneously monitoring two kinds of inputs, window
2832 events and process outputs, without periodically polling.
a2c7e69a 2833
b15325b2
ST
2834 * macfns.c (mac_initialized): Remove extern.
2835 (stricmp): Put in #if 0. All callers changed to use xstricmp in
2836 xfaces.c.
043f7f73
SM
2837 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
2838 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
2839 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
2840 (mac_get_rdb_resource): New function (from w32reg.c).
2841 (x_get_string_resource): Use it.
2842 (install_window_handler): Add extern.
2843 (mac_window): New function.
043f7f73
SM
2844 (Fx_create_frame): Use it instead of make_mac_frame.
2845 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
2846 (Fx_open_connection, Fx_close_connection): New defuns.
2847 (syms_of_macfns): Defsubr them.
043f7f73
SM
2848 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
2849 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
2850 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
2851 (x_create_tip_frame): Don't call ShowWindow.
2852 (Fx_show_tip): Call ShowWindow.
2853 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
2854 TARGET_API_MAC_CARBON'.
2855 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
2856 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 2857
043f7f73 2858 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
2859 (Window): Typedef to WindowPtr and move outside `#if
2860 TARGET_API_MAC_CARBON'.
2861 (XSizeHints): New struct.
a2c7e69a 2862
b15325b2
ST
2863 * macterm.c (x_update_begin, x_update_end)
2864 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
2865 frame.
2866 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2867 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
2868 (construct_mouse_click): Put in #if 0.
2869 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
2870 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
2871 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2872 (activate_scroll_bars, deactivate_scroll_bars)
2873 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
2874 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
2875 if the position is neither user-specified nor program-specified.
2876 (x_free_frame_resources): Free size_hints.
043f7f73 2877 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
2878 (mac_clear_font_name_table): New function.
2879 (mac_do_list_fonts): Initialize font_name_table if needed.
2880 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
2881 around mac_do_list_fonts.
2882 (mac_unload_font): New function.
2883 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
2884 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
2885 and definitions with #if TARGET_API_MAC_CARBON.
2886 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
2887 (install_window_handler): Add decl.
2888 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
2889 window. Use UpdateControls. Get the rectangle that should be
2890 updated and restrict the target of expose_frame to it.
043f7f73 2891 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
2892 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
2893 (do_zoom_window): Don't use x_set_window_size.
2894 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
2895 (install_window_handler): New function.
2896 [!USE_CARBON_EVENTS] (mouse_region): New variable.
2897 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
2898 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
2899 GetEventDispatcherTarget inside BLOCK_INPUT.
2900 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
2901 Update mouse_region when mouse is moved.
2902 (make_mac_frame): Remove.
043f7f73
SM
2903 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
2904 Initialize mouse pointer shapes. Change values of f->left_pos and
2905 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
2906 Don't call ShowWindow.
b15325b2
ST
2907 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
2908 Vinvocation_name and Vsystem_name.
2909 (mac_make_rdb): New function (from w32term.c).
2910 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
2911 already been opened. Don't pass argument to
2912 mac_initialize_display_info. Don't set dpyinfo->height/width.
2913 Add entries to x_display_list and x_display_name_list.
2914 (x_delete_display): New function.
2915 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
2916 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
2917
b15325b2
ST
2918 * macterm.h (check_mac): Add extern.
2919 (struct mac_output): New member size_hints.
2920 (FRAME_SIZE_HINTS): New macro.
2921 (mac_unload_font): Add extern.
a2c7e69a 2922
b15325b2 2923 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 2924
1d1c7e75 2925 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 2926
92d2947b
RS
29272004-12-27 Richard M. Stallman <rms@gnu.org>
2928
043f7f73 2929 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
2930 (syms_of_buffer): Don't defsubr it.
2931
2932 * process.c (list_processes_1): Set undo_list instead
2933 of calling Fbuffer_disable_undo.
2934
043f7f73 2935 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 2936 single_display_prop_string_p.
043f7f73 2937 (single_display_spec_intangible_p): Rename from
92d2947b 2938 single_display_prop_intangible_p.
043f7f73 2939 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
2940 Rewritten to be easier to understand.
2941
a2c7e69a 2942 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
2943 and variables get just NAME.
2944
2945 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2946
2947 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2948 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
2949 (Qdefvar): Var deleted.
2950 (syms_of_eval): Don't initialze it.
2951
2952 * lread.c (syms_of_lread) <load-history>: Doc fix.
2953
9f6fcdc5
JD
29542004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2955
2956 * xmenu.c (popup_get_selection): Pop down on C-g.
2957 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
2958 pops down menu on C-g.
2959 (xdialog_show): If dialog popped down and no button in the dialog was
2960 pushed, call Fsignal to quit.
2961 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
2962 Fsignal to quit.
2963
1d1c7e75 2964 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
2965
2966 * gtkutil.c (xg_initialize): Install bindings for C-g so that
2967 dialogs and menus pop down.
2968
d8ca23a0
KH
29692004-12-27 Kenichi Handa <handa@m17n.org>
2970
2971 * coding.c (code_convert_region): Fix calculation of `ratio'.
2972
857ae68b
JD
29732004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2974
133c0116
JD
2975 * gtkutil.c (update_frame_tool_bar): Make the value of
2976 tool-bar-button-margin control margins of images in tool bar.
2977
857ae68b
JD
2978 * alloc.c (check_depth): New variable.
2979 (overrun_check_malloc, overrun_check_realloc): Only add
2980 overhead and write check pattern if check_depth is 1 (to handle
2981 recursive calls). Increase/decrease check_depth in entry/exit.
2982 (overrun_check_free): Only check for overhead if check_depth is 1.
2983 Increase/decrease check_depth in entry/exit.
2984
bd55c35c
JD
29852004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2986
2987 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
2988 before touching input_available_clear_time, to avoid accessing it
2989 from multiple threads.
2990
66354420
JR
29912004-12-23 Jason Rumney <jasonr@gnu.org>
2992
2993 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
2994 of JPEG library.
2995
55f4edbc
RS
29962004-12-22 Richard M. Stallman <rms@gnu.org>
2997
2998 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
2999
3000 * lisp.h (Vundo_outer_limit): Fix decl.
3001
3002 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
3003 Uses changed.
3004 (syms_of_undo): Initialize appropriately.
3005 (truncate_undo_list): If it's nil, there's no limit.
3006
7a0ea9e3
KH
30072004-12-22 Kenichi Handa <handa@m17n.org>
3008
3009 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
3010
fda2922a
RS
30112004-12-21 Richard M. Stallman <rms@gnu.org>
3012
3013 * eval.c (unwind_to_catch): Clear immediate_quit.
3014
3015 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
3016 specially as `\ ' and `\-'.
3017
3018 * keyboard.c (kbd_buffer_store_event_hold):
3019 In the code for while-no-input, handle immediate_quit.
3020
3021 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
3022 Call that at the very start.
043f7f73 3023 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
3024 (syms_of_alloc): Don't define undo-limit,
3025 undo-strong-limit and undo-outer-limit here.
3026
3027 * undo.c (truncate_undo_list): Return void.
3028 Take just one argument, the buffer.
3029 Make it current, and inhibit recursive GC.
3030 Access and update the undo list directly; return void.
3031 Refer to the undo...limit variables directly.
3032 Test undo_outer_limit only after counting the whole current command.
3033 When it's exceeded, call the function in undo-outer-limit-function.
3034 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
3035 (Vundo_outer_limit_function): New variable.
3036 (syms_of_undo): Define undo-limit, undo-strong-limit
3037 and undo-outer-limit here, and undo-outer-limit-function.
3038 Doc fixes.
3039
3040 * lisp.h (truncate_undo_list): Update decl.
3041
30422004-12-21 Piet van Oostrum <piet@cs.uu.nl>
3043
3044 * fileio.c (Fread_file_name): Delete duplicates in
3045 file-name-history when history_delete_duplicates is true.
3046
68c69027
ST
30472004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3048
3049 * macterm.c (mac_do_list_fonts): Fix memory leak
3050
134579f2
RS
30512004-12-20 Richard M. Stallman <rms@gnu.org>
3052
3053 * regex.c (re_match_2_internal) <symend, wordend>:
3054 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
3055
fbe6152f
ST
30562004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3057
043f7f73
SM
3058 * macterm.c (endif, x_font_name_to_mac_font_name):
3059 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
3060 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
3061 quickly finding a specific font without needing regexps.
3062
fecad3f6
JD
30632004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3064
333f1b6f
JD
3065 * syssignal.h: Declare main_thread.
3066 (SIGNAL_THREAD_CHECK): New macro.
3067
3068 * keyboard.c (input_available_signal): Move thread checking code
3069 to macro SIGNAL_THREAD_CHECK and call that macro.
3070 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
3071
3072 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
3073
3074 * emacs.c: Define main_thread.
3075 (main): Initialize main_thread.
3076 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
3077 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
3078
3079 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
3080
3081 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
3082
3083 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
3084
043f7f73
SM
3085 * process.c (send_process_trap, sigchld_handler):
3086 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
3087
3088 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
3089
3090 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
3091
fecad3f6
JD
3092 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
3093 returning when xg_ignore_gtk_scrollbar is true.
3094
2a84c6da
KS
30952004-12-14 Kim F. Storm <storm@cua.dk>
3096
3097 * keyboard.c (read_char): Save and restore echo_string when
3098 handling input method.
3099
d9c1ce9d
RS
31002004-12-13 Richard M. Stallman <rms@gnu.org>
3101
3102 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
3103
3104 * keyboard.c (Vthrow_on_input): New variable.
3105 (syms_of_keyboard): Defvar and initialize it.
3106 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
3107
3108 * lisp.h (QUIT): Check for Vthrow_on_input.
3109 (Vthrow_on_input): Declare it.
3110
a6495ed5
KS
31112004-12-13 Kim F. Storm <storm@cua.dk>
3112
3113 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
3114 vector.
3115
24a0e22f
RS
31162004-12-12 Richard M. Stallman <rms@gnu.org>
3117
3118 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
3119
3120 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
3121 (Ftry_completion): Really use outer `zero'; eliminate inner one.
3122
d6d31e57
KH
31232004-12-12 Kenichi Handa <handa@m17n.org>
3124
3125 * term.c (encode_terminal_code): Fix previous change.
3126
6f8ffb88
SM
31272004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
3128
fb6f5cbf
SM
3129 * keyboard.c (handle_async_input): Remove pthread mutex handling.
3130 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
3131
6f8ffb88
SM
3132 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
3133 in macro arguments.
3134
3135 * minibuf.c (Ftry_completion, Fall_completions): Don't use
3136 XFASTINT blindly.
3137
3138 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
3139
c83c9f9d
JD
31402004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3141
2f25767f
JD
3142 * w32term.c (x_calc_absolute_position): Remove calculation of
3143 difference between inner and outer window. Don't subtract difference
3144 for left and top calculations.
3145
c83c9f9d
JD
3146 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
3147 for left and top calculations. Remove call to x_real_positions.
24a0e22f 3148 [Bug report by Drew Adams in November]
c83c9f9d
JD
3149 (x_check_expected_move): Do not set change_gravity to 1 when calling
3150 x_set_offset.
3151
cc1caa4e
RS
31522004-12-08 Richard M. Stallman <rms@gnu.org>
3153
3154 * xdisp.c (get_next_display_element): Use `escape-glyph' for
3155 control chars and escaped octal codes.
3156 (Qescape_glyph): New variable.
3157 (syms_of_xdisp): Initialize it.
3158 (escape_glyph_face): New variable.
3159 (redisplay_window): Initialize it.
3160
e0e30823
RS
31612004-12-07 Paul Eggert <eggert@cs.ucla.edu>
3162
3163 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
3164 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
3165
f415cacd
JD
31662004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3167
cf435f39
JD
3168 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
3169 reset_malloc_hooks.
3170
6f8ffb88
SM
3171 * keyboard.c (handle_async_input, input_available_signal):
3172 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 3173
f415cacd
JD
3174 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
3175
043f7f73 31762004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
3177
3178 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
3179
3180 * config.in: Regenerate.
3181
ded997c1
JD
31822004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3183
453a4f1b
JD
3184 * xmenu.c (Fx_popup_menu): Correct documentation about position.
3185 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
3186 if not given by a mouse click to correspond with x-popup-menu
3187 documentation.
3188
9a38524c
JD
3189 * config.in: Regenerate.
3190
aa477689
JD
3191 * gtkutil.c: Include signal.h and syssignal.h.
3192 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
3193
3194 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
3195 new variables main_thread and alloc_mutex,
3196 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
3197 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
3198 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
3199 (UN)BLOCK_INPUT.
3200 (emacs_blocked_free, emacs_blocked_malloc)
3201 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
3202 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
3203 (reset_malloc_hooks): New function.
3204
3205 * lisp.h: Declare reset_malloc_hooks.
3206
3207 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
3208
3209 * keyboard.c: Conditionally include pthread.h
6f8ffb88 3210 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
3211 thread, block signal, send signal to main thread and return.
3212
ded997c1 3213 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 3214 Set current folder in file chooser if default_filename is a directory.
ded997c1 3215
c72b0edd
SM
32162004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
3217
3218 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
3219 Remove redundant correctness checks.
3220 (regex_compile): Fix up error codes for \{..\} expressions.
3221
c721eee5
RS
32222004-12-05 Richard M. Stallman <rms@gnu.org>
3223
3224 * regex.c (regex_compile): Fix end-of-pattern case for space.
3225
d8f96db8
ST
32262004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3227
6108209e
KS
3228 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
3229 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 3230 crashes with invalid characters.
6108209e
KS
3231 * macmenu.c (add_menu_item): Use it.
3232 * image.c (image_load_quartz2d): Likewise.
3233 * macfns.c (x_set_name, x_set_title): Likewise.
3234 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
3235 creating them each time for labels.
d8f96db8 3236
ab67e8b6
RS
32372004-12-02 Richard M. Stallman <rms@gnu.org>
3238
3239 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
3240 don't use it here.
3241
3242 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
3243 (interactive_p): Skip Scalled_interactively_p frames
3244 like Sinteractive_p frames.
b8217ea6 3245 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
3246
3247 * data.c (Fmake_variable_buffer_local): Doc fix.
3248 (Fmake_local_variable): Doc fix.
3249
3250 * insdel.c (insert_from_string_before_markers)
3251 (insert_from_string): Don't modify buffer on empty insertion.
3252
3253 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
3254
f86bdc80
ST
32552004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3256
3257 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
3258 menu text as UTF8 fails.
3259
1cae6d39
KS
32602004-12-01 Kim F. Storm <storm@cua.dk>
3261
3262 * alloc.c: Add commentary for last change.
3263 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
3264 sizeof(size_t) != 4.
3265 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
3266 Use them. Also clear header and trailer of freed memory.
3267 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
3268 (string_overrun_cookie): Rename from string_overrun_pattern.
3269 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
3270
77ea0764
AS
32712004-12-01 Andreas Schwab <schwab@suse.de>
3272
3273 * lisp.h: Declare string_to_multibyte.
3274
2d5cd4e6
KH
32752004-12-01 Kenichi Handa <handa@m17n.org>
3276
3277 * w32console.c (w32con_write_glyphs): Decide coding here.
3278 Adjusted for the change of encode_terminal_code.
3279
3280 * term.c (encode_terminal_code): Don't make it "static".
3281
25a0994a
KH
32822004-11-30 Kenichi Handa <handa@m17n.org>
3283
19b1f29a 3284 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 3285 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
3286 characters at once, and return a pointer to the result of encoding.
3287 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
3288 (insert_glyphs): Likewise.
3289 (term_init): Initialize encode_terminal_bufsize to 0.
3290
3291 * coding.c (Vcode_conversion_workbuf_name): New variable.
3292 (syms_of_coding): Initialize and staticpro it.
3293 (set_conversion_work_buffer): New function.
3294 (run_pre_post_conversion_on_str): Use it.
3295 (run_pre_write_conversin_on_c_str): New function.
3296
3297 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
3298
fc7a70cc
ST
32992004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3300
3301 * keyboard.c: Don't undef SIGIO
3302 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
3303 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
3304 (macfns.o): Don't depend on ccl.h.
3305 * macfns.c (mac_frame_parm_handlers): Set handlers for
3306 Qleft_fringe and Qright_fringe.
3307 * macterm.c (mac_fill_rectangle_to_pixmap)
3308 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
3309 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
3310 Put in #if 0.
3311 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
3312 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
3313 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
3314 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3315 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
3316 XDrawImageString. Always draw background and foreground separately.
3317 (x_draw_image_foreground): Use clipping instead of computing the
3318 intersection rectangle.
3319 (x_draw_image_glyph_string): Don't draw an image with mask to a
3320 pixmap.
3321 (x_redisplay_interface): Set flush_display_optional member to 0.
3322 (XTread_socket): Correctly reset the TEConverter
3323 object.
3324
fc368889
KS
33252004-11-30 Kim F. Storm <storm@cua.dk>
3326
3327 * lisp.h: New defines to enable buffer overrun checking.
3328 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
3329 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
3330
3331 * alloc.c: Add more checks for buffer overruns.
3332 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
3333 xmalloc_overrun_check_trailer, overrun_check_malloc)
3334 overrun_check_realloc, overrun_check_free): Add.
3335 (GC_STRING_EXTRA, string_overrun_pattern): Add.
3336 (check_sblock, allocate_string_data, compact_small_strings):
3337 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
3338 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
3339 (check_string_free_list): Add.
3340 (allocate_string, sweep_strings): Call check_string_free_list.
3341
3342 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
3343 XMALLOC_OVERRUN_CHECK to avoid crash during load.
3344
0af8cfe1
KS
33452004-11-29 Kim F. Storm <storm@cua.dk>
3346
3347 * fns.c (concat): Use SAFE_ALLOCA.
3348
77220eeb
SM
33492004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
3350
3351 * sysdep.c (emacs_write): Don't use QUIT.
3352
a778cf63
KH
33532004-11-29 Kenichi Handa <handa@m17n.org>
3354
3355 * buffer.c (init_buffer): Set current_buffer->directory to a
3356 multibyte string made by string_to_multibyte.
3357
77220eeb 3358 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 3359
e3177e43
AS
33602004-11-27 Andreas Schwab <schwab@suse.de>
3361
3362 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
3363
3364 * s/gnu-linux.h: Enable no-op gcpros on ia64.
3365 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
3366
77220eeb
SM
3367 * filelock.c (lock_file_1): Call get_boot_time early.
3368 Increase buffer size.
e3177e43 3369
ca5e6fef
EZ
33702004-11-27 Eli Zaretskii <eliz@gnu.org>
3371
3372 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
3373 is not defined.
3374
e2811828
KS
33752004-11-27 Kim F. Storm <storm@cua.dk>
3376
3377 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
3378 marker out of doc string.
3379
7a262394
SM
33802004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
3381
3382 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
3383 which was not mentioned in the log.
3384
f33cc5a9
KS
33852004-11-26 Kim F. Storm <storm@cua.dk>
3386
048bb03f
KS
3387 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
3388 angle bitmaps at top/bottom line.
3389
52eb0373 3390 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
3391 set it when it->method is set to next_element_from_display_vector.
3392 (setup_for_ellipsis): Add LEN argument. Callers changed.
3393 Set it->saved_face_id.
3394 (get_next_display_element): Use loop instead of recursion.
3395 Set it->saved_face_id. Combine duplicate code for ctr chars.
3396 (next_element_from_display_vector): Do not set it->saved_face_id.
3397 (next_element_from_ellipsis): Use setup_for_ellipsis.
3398
670e8906
EZ
33992004-11-26 Eli Zaretskii <eliz@gnu.org>
3400
3401 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
3402 prevent compiler warnings.
3403
275464e7
SM
34042004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
3405
1bf0e604
SM
3406 * keyboard.c (command_loop_1): Print a message describing the key
3407 the user just pressed when this key has no binding.
3408
275464e7
SM
3409 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
3410 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
3411
3412 * lread.c (readchar): Check QUIT when `getc' is interrupted.
3413
261b01c6
RS
34142004-11-24 Richard M. Stallman <rms@gnu.org>
3415
3416 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
3417
3418 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
3419
a5bd504e
KS
34202004-11-24 Kim F. Storm <storm@cua.dk>
3421
3422 * xdisp.c (move_it_in_display_line_to, display_line):
3423 Restore saved_face_id also when truncate-lines or hscrolled.
3424
255e4140
JD
34252004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3426
3427 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
3428 x-use-old-gtk-file-dialog.
3429
3430 * xfns.c: Define x_use_old_gtk_file_dialog.
3431 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
3432 outside ifdef USE_GTK.
3433
cab27d04
SM
34342004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
3435
3436 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
3437 Don't use XFASTINT blindly.
3438
3439 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
3440
3441 * indent.c (skip_invisible): Avoid non-idempotent side-effects
3442 in macro arguments.
3443
3444 * keymap.c (Flookup_key): Check INTEGERP before XINT.
3445
3446 * lread.c (oblookup): Don't use XFASTINT blindly.
3447
3448 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
3449 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
3450
11e0be49
KS
34512004-11-23 Kim F. Storm <storm@cua.dk>
3452
4d721114
KS
3453 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
3454 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
3455
11e0be49
KS
3456 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
3457 signal_p is zero and face name is unknown.
3458 (Fx_list_fonts): Don't signal error in lookup_named_face.
3459 (Fface_font): Signal error in lookup_named_face.
3460 (ascii_face_of_lisp_face): Likewise.
3461
3462 * dispextern.h (lookup_named_face): Fix prototype.
3463
3464 * xdisp.c (handle_single_display_prop): Don't signal error in
3465 lookup_named_face for unknown fringe face name.
3466 (highlight_trailing_whitespace): Don't signal error in
3467 lookup_named_face if trailing-whitespace face unknown.
3468 (calc_line_height_property): Don't signal error in
3469 lookup_named_face if specified face name is unknown.
3470
3471 * fringe.c (update_window_fringes): Show top row indicator if
3472 window has header-line. Don't show arrow at bob and eob
3473 if the boundary indicators are not used.
3474 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
3475
3476 * window.c (set_window_buffer): Clear display_error_modiff.
3477
0960a582
KS
34782004-11-22 Kim F. Storm <storm@cua.dk>
3479
3480 * fringe.c (update_window_fringes): Provide sensible fall-back
3481 value for non-nil indicate-buffer-boundaries setting.
3482
b0e9bb28
MR
34832004-11-22 Markus Rost <rost@ias.edu>
3484
3485 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
3486
d0bce91e
SM
34872004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
3488
3489 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
3490
e1814672
KS
34912004-11-21 Kim F. Storm <storm@cua.dk>
3492
b7fd3518
KS
3493 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
3494
3495 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
3496 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3497
3498 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
3499 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3500
3501 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
3502 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3503
d0bce91e
SM
3504 * xdisp.c (move_it_in_display_line_to, display_line):
3505 Restore saved_face_id if overflow-newline-into-fringe is enabled and
3506 line is continued before or in middle of element from display vector.
f01d4d05 3507
f1a61389
KS
3508 * indent.c (Fvertical_motion): Fix last change. Use another
3509 method to detect if iterator moved too far ahead after reseat.
3510
e1814672
KS
3511 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
3512 expand matrix width for overflow in zero-width area.
3513 (append_glyph, append_composite_glyph, produce_image_glyph)
3514 (append_stretch_glyph): Use it to avoid loop in redisplay.
3515 (note_mode_line_or_margin_highlight): Don't let help-echo from
3516 string override help-echo from image map.
3517
2dafe1c9
LT
35182004-11-20 Luc Teirlinck <teirllm@auburn.edu>
3519
d0bce91e 3520 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
3521 * callint.c (Fcall_interactively): Ditto.
3522
fd6866c8 35232004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
3524
3525 * minibuf.c (Fminibuffer_complete_and_exit):
3526 Fixup the case of the completed value, for case-indep completion.
3527
dedbac89
RS
35282004-11-20 Richard M. Stallman <rms@gnu.org>
3529
fd6866c8
RS
3530 * lisp.h (Fread_from_minibuffer): Add arg in decl.
3531
9d00469f 3532 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 3533 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 3534
dedbac89 3535 * search.c (Vsearch_spaces_regexp):
d0bce91e 3536 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 3537
2f672bb5
TTN
35382004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
3539
3540 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
3541
f31a9a68
RS
35422004-11-19 Richard M. Stallman <rms@gnu.org>
3543
3544 * search.c (Vsearch_whitespace_regexp): New variable.
3545 (syms_of_search): Defvar it.
3546 (compile_pattern_1): Call re_set_whitespace_regexp with it.
3547 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
3548 is non-nil.
6de891db
RS
3549 (struct regexp_cache): New element whitespace_regexp.
3550 (syms_of_search): Initialize whitespace_regexp elements.
3551 (compile_pattern): Compare whitespace_regexp elements.
3552 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
3553
3554 * regex.c (regex_compile): Substitute whitespace_regexp
3555 for spaces, if it is nonzero.
3556 (whitespace_regexp): New variable.
3557 (re_set_whitespace_regexp): New function.
3558
cbc34cb3
KS
35592004-11-19 Kim F. Storm <storm@cua.dk>
3560
3561 * indent.c (Fvertical_motion): Fix last change.
3562
b54a7539
KS
35632004-11-18 Kim F. Storm <storm@cua.dk>
3564
3565 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
3566 Instead, move back again if reseating moves too far ahead.
3567
35682004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
3569
3570 * xdisp.c (message3): Call clear_message.
3571
5ff504fe
KS
35722004-11-17 Kim F. Storm <storm@cua.dk>
3573
3574 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
3575
5ae53dcf
JD
35762004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3577
d0bce91e 3578 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 3579
6abf3a27 3580 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
3581 (x_menu_set_in_use): Also set popup_activated_flag.
3582
5ff504fe 3583 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
3584 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
3585
52eb0373 3586 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 3587
ee31cd78
RS
35882004-11-16 Richard M. Stallman <rms@gnu.org>
3589
6abf3a27
SM
3590 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
3591 Use map-keymap-internal to implement that.
ee31cd78
RS
3592
3593 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
3594
6abf3a27
SM
35952004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3596
3597 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
3598 a window before using XWINDOW.
3599
3600 * window.c (make_window, Fselect_window, make_dummy_parent)
3601 (save_window_save):
3602 * frame.c (make_frame):
3603 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
3604
3605 * lisp.h (NILP): Use EQ rather than XFASTINT.
3606
b4d61105
KS
36072004-11-16 Kim F. Storm <storm@cua.dk>
3608
6abf3a27 3609 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 3610
b4d61105
KS
3611 * indent.c (Fvertical_motion): Fix last change. Only reseat when
3612 moving backwards.
3613
36142004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
3615
3616 * dispextern.h: Extern reseat_at_previous_visible_line_start.
3617
ab5b02b0
KH
36182004-11-16 Kenichi Handa <handa@m17n.org>
3619
3620 * xdisp.c (display_mode_element): Fix previous change (calculate
3621 end position of substring to display correctly).
3622
c482cf97
KS
36232004-11-16 Kim F. Storm <storm@cua.dk>
3624
3625 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
3626 Reported by Andrew M. Scott.
3627
9f89426b
KS
36282004-11-15 Kim F. Storm <storm@cua.dk>
3629
3630 * fns.c (Fsafe_plist_get): New defun.
3631 (syms_of_fns): Defsubr it.
3632
3633 * lisp.h (Fsafe_plist_get): Add EXFUN.
3634
3635 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
3636 Use Fsafe_plist_get.
3637 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3638 Fix image map element parsing. Use Fsafe_plist_get.
3639
27418463
RS
36402004-11-15 Richard M. Stallman <rms@gnu.org>
3641
3642 * xdisp.c (get_next_display_element): Fix previous change.
3643
a130b901
JD
36442004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3645
ef614e04
JD
3646 * window.c (shrink_windows): Handle special case of one window left
3647 when trying to shrink the final reminder. Grow windows if
3648 total_removed is less than total_shrink.
3649
a130b901
JD
3650 * xmenu.c (pop_down_menu): Remove global variable current_menu,
3651 extract pointer from arg with XSAVE_VALUE.
46303896
KS
3652 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
3653 Construct arg to record_unwind_protect with make_save_value.
a130b901 3654
d9a03ad2
RS
36552004-11-13 Richard M. Stallman <rms@gnu.org>
3656
3657 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
3658 (get_next_display_element): Fix previous change to apply only to \n.
3659
3660 * indent.c (Fvertical_motion): Scan to PT from start of line to
3661 make iterator consistent.
3662
3663 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3664
b3935289
JD
36652004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3666
3667 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
3668
3669 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
3670 Record unwind with clean_up_file_dialog.
3671
78819ebb
KS
3672 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
3673 Declare.
b3935289
JD
3674
3675 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
3676
af89e871
JD
36772004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3678
457a8155 3679 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 3680 (xg_file_sel_destroy): Remove.
46303896
KS
3681 (xg_file_response_cb, pop_down_file_dialog)
3682 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 3683 New functions.
6abf3a27
SM
3684 (xg_get_file_with_chooser, xg_get_file_with_selection):
3685 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
3686 Move common code to xg_get_file_name. Return widget created.
3687 (xg_get_file_name): Set name, transient for, modal and destroy
3688 with parent here. Connect response signal to xg_file_response_cb,
3689 connect delete-event to gtk_true. Record pop_down_file_dialog
3690 for unwind. Do event loop and call x_menu_wait_for_event in loop.
3691 (xg_create_widget): Make dialogs modal.
3692
af89e871
JD
3693 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
3694 Lisp_Object.
3695 (popup_get_selection): Move unwind protect ...
3696 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3697 Move destroy of widget to pop_down_menu.
3698 (popup_widget_loop): Move unwind protect ...
3699 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3700 Move destroy of widget to pop_down_menu.
3701 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 3702 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
3703 x_mouse_leave and grabbed = 0 to pop_down_menu.
3704
5596fbf1
KS
37052004-11-13 Kim F. Storm <storm@cua.dk>
3706
3707 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
3708 (syms_of_xdisp): DEFVAR_BOOL it.
3709 (make_cursor_line_fully_visible, try_cursor_movement)
3710 (try_window_id): Use it.
3711
b9de078a
KS
37122004-11-12 Kim F. Storm <storm@cua.dk>
3713
381f7091
KS
3714 * dispextern.h (struct glyph_row): New member extra_line_spacing.
3715 (struct it): New member max_extra_line_spacing.
3716 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
3717 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
3718 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
3719 part of last line is only extra line spacing (so the text on the
52eb0373 3720 line is fully visible). Use helper macros.
381f7091
KS
3721 Add W arg (to use them). All callers changed.
3722 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
3723 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
3724
6abf3a27
SM
3725 * window.c (window_scroll_pixel_based, Frecenter):
3726 Use move_it_vertically_backward directly.
381f7091
KS
3727 (Frecenter): Fix calculation of new start pos for negative arg.
3728 Before, the new start pos was sometimes chosen too far back, so
3729 the last line became only partially visible, and thus would be
3730 either only semi-visible or automatically scrolled to the middle
3731 of the window by redisplay.
3732
3733 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
3734 (move_it_vertically_backward): Don't recure to move further back.
3735 (move_it_vertically): Remove superfluous condition.
3736 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 3737 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
3738 (display_tool_bar_line): Clear row->extra_line_spacing.
3739 (try_scrolling): Use move_it_vertically_backward directly.
3740 (redisplay_window): Likewise.
3741 (compute_line_metrics): Set row->extra_line_spacing.
3742 (display_line, display_string): Likewise.
3743 (x_produce_glyphs): Update it->max_extra_line_spacing.
3744
b9de078a
KS
3745 * xmenu.c (pop_down_menu): Return nil.
3746
c3438661
JD
37472004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3748
3749 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 3750 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 3751 to handle timers.
df00f436
JD
3752 (popup_widget_loop): Add argument do_timers.
3753 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
3754 do_timers to popup_widget_loop.
c3438661
JD
3755 (xmenu_show): Call XMenuActivateSetWaitFunction so that
3756 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 3757 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 3758 popup_get_selection.
f1d1cd24
JD
3759 (pop_down_menu): New function.
3760 (popup_get_selection, popup_widget_loop): Unwind protect to
3761 pop_down_menu.
3762 (popup_widget_loop): Add argument widget.
3763 (create_and_show_popup_menu, create_and_show_dialog): Pass new
3764 argument widget to popup_widget_loop.
c3438661 3765
32e2fb04
SM
37662004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3767
3768 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
3769
0faf6806
KS
37702004-11-09 Kim F. Storm <storm@cua.dk>
3771
3772 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
3773 Fix various comments referring to XEvents instead of input events.
3774 (x_queue_event): Fix format strings.
3775 (x_stop_queuing_selection_requests): Likewise.
3776
3777 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
3778 (pint2hrstr): Add extra braces to silence compiler.
3779
3780 * print.c (print_object): Fix format string.
3781
3782 * lread.c (read1): Fix next_char matching.
3783
3784 * lisp.h (Fdelete): Add EXFUN.
3785 (replace_range_2): Add prototype.
3786
3787 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
3788
3789 * intervals.h (NULL_INTERVAL_P): Add separate version when
3790 ENABLE_CHECKING is not defined to silence compiler.
3791 (compare_string_intervals): Add prototype.
3792
3793 * fringe.c (destroy_fringe_bitmap): Fix return type.
3794 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
3795
3796 * emacs.c (Fdump_emacs): Fix format string.
3797
3798 * doc.c: Include <ctype.h>.
3799 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
3800
3801 * data.c (store_symval_forwarding): Remove unused variables.
3802
3803 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
3804
16bf4e32
JD
38052004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3806
3807 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
3808 to ${OLDXMENU}.
3809
cdb805a9
KS
38102004-11-09 Kim F. Storm <storm@cua.dk>
3811
3812 * process.c (Fmake_network_process): Remove kludge for interrupted
3813 connects on BSD. If connect is interrupted, just close socket and
3814 start over rather than sleeping and retry with same socket.
3815
d87a9ab8 38162004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 3817
a8b16c80
JD
3818 * .cvsignore: Add buildobj.lst.
3819
d87a9ab8
JD
3820 * doc.c: New variable Vbuild_files.
3821 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 3822 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
3823 that are in Vbuild_files.
3824 (syms_of_doc): Defvar Vbuild_files.
3825
3826 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
3827 and w32*.o.
3828 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 3829 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
3830
3831 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
3832 is linked.
3833
b6709e77
KS
38342004-11-09 Kim F. Storm <storm@cua.dk>
3835
3836 * fringe.c (update_window_fringes): Update fringe bitmaps if
3837 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
3838 also update previous row to get rid of misc. artifacts.
3839
bae9677d
KS
38402004-11-08 Kim F. Storm <storm@cua.dk>
3841
3842 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 3843 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 3844
3f8ea68c
EZ
38452004-11-08 Eli Zaretskii <eliz@gnu.org>
3846
3847 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
3848 Don't include <sys/time.h> explicitly.
3849 Include <stdio.h> unconditionally, not just on MacOS.
3850
a653f812
KH
38512004-11-08 Kenichi Handa <handa@m17n.org>
3852
3853 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
3854 don't pay attention to '\' before '*'.
3855 (fontset_pattern_regexp): Change the meaning of the second arg.
3856 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
3857 (check_fontset_name): Try NAME as literal at first, and if it
3858 failes, try NAME as pattern.
3859
c37caf9d
JD
38602004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3861
3862 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
3863
b72915a7
AS
38642004-11-07 Andreas Schwab <schwab@suse.de>
3865
78819ebb
KS
3866 * lisp.h (Fmsdos_downcase_filename): Declare.
3867 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
3868 * fileio.c: Likewise.
3869
238a44a8
JD
38702004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3871
3872 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
3873 comparisons with integers instead of Lisp_Object address.
3874 (Fmsdos_set_keyboard): Declare argument allkeys.
3875
3876 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
3877
78819ebb 3878 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
3879 int/Lisp_Object mixup.
3880
3881 * fileio.c: Ditto.
3882
31141c13
ST
38832004-11-06 Steven Tamm <steventamm@mac.com>
3884
3885 * editfns.c: Need to include sys/time.h before resource.h on darwin.
3886
f28c1bd9
RS
38872004-11-06 Richard M. Stallman <rms@gnu.org>
3888
3889 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
3890
3891 * xfaces.c (merge_named_face): GCPRO the face_name in the
3892 named_merge_point struct that we make.
3893 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
3894
3895 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
3896 before deciding whether to inactivate mark.
3897
59dede22
EZ
38982004-11-06 Lars Brinkhoff <lars@nocrew.org>
3899
3900 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
3901 * editfns.c (Fget_internal_run_time): New function.
3902 (syms_of_data): Defsubr it.
3903 * fns.c (sxhash): As far as possible, merge calculation of
3904 hash code for symbols and strings.
59dede22 3905
27540e81
EZ
39062004-11-06 Eli Zaretskii <eliz@gnu.org>
3907
3908 * frame.c (syms_of_frame): Fix the example in the doc string.
3909
df470e3b
JD
39102004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3911
3912 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
3913
3914 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
3915 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 3916
4cc8522c
LT
39172004-11-05 Luc Teirlinck <teirllm@auburn.edu>
3918
3919 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
3920
d4a42098
KS
39212004-11-05 Kim F. Storm <storm@cua.dk>
3922
a8490886
KS
3923 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
3924
d4a42098
KS
3925 * fileio.c (Ffile_modes): Doc fix.
3926 (auto_save_1): Check for Ffile_modes nil value.
3927
36a2b04c
KS
39282004-11-05 Kim F. Storm <storm@cua.dk>
3929
3930 * xselect.c (struct selection_event_queue, selection_queue)
3931 (x_queue_selection_requests, x_queue_event)
3932 (x_start_queuing_selection_requests)
3933 (x_stop_queuing_selection_requests): Add new queue for selection
3934 input events to replace previous XEvent queue in xterm.c.
3935 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
3936 (x_reply_selection_request): Adapt to new queue.
3937 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
3938 (x_handle_selection_request, x_handle_selection_clear): Make static.
3939 (x_handle_selection_event): New function. May queue selection events.
3940 (wait_for_property_change_unwind): Use save_value instead of cons.
3941 Clear property_change_reply_object.
3942 (wait_for_property_change): Abort if already waiting.
3943 Use save_value instead of cons for unwind data.
3944 (x_handle_property_notify): Skip events already arrived, but don't
3945 free them, as "arrived" field is checked by wait_for_property_change,
3946 and it will be freed by unwind or explicit unexpect_property_change.
3947 (x_get_foreign_selection): Add to new queue.
3948 (receive_incremental_selection): Don't unexpect wait_object when done
3949 as it has already been freed by previous wait_for_property_change.
3950
3951 * xterm.h (x_start_queuing_selection_requests)
3952 (x_stop_queuing_selection_requests, x_handle_selection_request)
3953 (x_handle_selection_clear): Remove prototypes.
3954 (x_handle_selection_event): Add prototype.
3955
3956 * xterm.c (handle_one_xevent): Don't queue X selection events
3957 here, it may be too late if we start queuing after we have already
3958 stored some selection events into the kbd buffer.
3959 (struct selection_event_queue, queue, x_queue_selection_requests)
3960 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
3961 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
3962 (x_catch_errors_unwind): Block input around final XSync.
3963
3964 * keyboard.h (kbd_buffer_unget_event): Add prototype.
3965
3966 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
3967 (kbd_buffer_unget_event): New function.
3968 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
3969 and use x_handle_selection_event.
3970 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
3971
9c3ad9e1
JD
39722004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3973
3974 * xselect.c (TRACE3): New debug macro.
3975 (x_reply_selection_request): Use it.
3976 (receive_incremental_selection): In call to TRACE0, the name of
3977 a symbol is in xname.
3978
a33b89de
KS
39792004-11-05 Kim F. Storm <storm@cua.dk>
3980
3981 * fontset.c (fontset_pattern_regexp): Use unsigned char.
3982
a872928c
JD
39832004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3984
88208bb8
JD
3985 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
3986
78819ebb 3987 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
3988
3989 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 3990 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
3991 * xfns.c (syms_of_xfns): ... to here.
3992
a872928c
JD
3993 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
3994 it doesn't start with /.
3995
b912921c
KH
39962004-11-04 Kenichi Handa <handa@m17n.org>
3997
3998 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
3999 treat it as a literal character.
4000
c524d9a6
KS
40012004-11-03 Kim F. Storm <storm@cua.dk>
4002
4003 * .gdbinit (ppt): New function.
4004
8cfd0f36
JD
40052004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4006
a11e1dce
JD
4007 * xterm.c (x_window_to_scroll_bar): Only call
4008 xg_get_scroll_id_for_window if toolkit scroll bars are used.
4009
8cfd0f36
JD
4010 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
4011 of save.
4012
a93563fd
AS
40132004-11-02 Andreas Schwab <schwab@suse.de>
4014
4015 * window.c (Fscroll_right): Fix last change.
4016
2b2d59d8
KS
40172004-11-02 Kim F. Storm <storm@cua.dk>
4018
4019 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
4020
40212004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4022
4023 * callproc.c (Fcall_process): Block input around vfork.
4024
ca28104d
KS
40252004-11-02 Kim F. Storm <storm@cua.dk>
4026
4027 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
4028 (syms_of_eval): Defsubr it.
4029
29bb7127
RS
40302004-11-02 Richard M. Stallman <rms@gnu.org>
4031
4032 * insdel.c (replace_range_2): New function.
4033
4034 * casefiddle.c (casify_region): Handle changes in byte-length
4035 using replace_range_2.
4036
4037 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
4038
b6189c3b 4039 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
4040 Subtract 1 from pos when checking previous newline for invisibility.
4041
4042 * window.c (window_scroll_pixel_based): Update preserve_y
4043 for header line if any.
4044 (Fscroll_left, Fscroll_right): Don't call interactive_p;
4045 use a new second argument instead.
4046
4047 * eval.c (Fcall_interactive_p): New function.
4048 (interactive_p): Don't test INTERACTIVE here.
4049 (Finteractive_p): Doc fix.
4050
4051 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
4052
b6189c3b 40532004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
4054
4055 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 4056 comparing font names.
a3fe4aaf 4057
2a00cdb4
JD
40582004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4059
f9d64bb3
JD
4060 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
4061 Fx_file_dialog if only directories should be read.
4062
4063 * lisp.h: Fx_file_dialog takes 5 parameters.
4064
32e2fb04
SM
4065 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
4066 Add parameter only_dir_p.
f9d64bb3
JD
4067 In Motif version, don't put DEFAULT_FILENAME in filter part of the
4068 dialog, just text field part. Do not add DEFAULT_FILENAME
4069 to list of files if it isn't there.
4070 In GTK version, pass only_dir_p parameter to xg_get_file_name.
4071
32e2fb04
SM
4072 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
4073 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
4074 a save dialog, add option kNavDontConfirmReplacement, change title
4075 to "Enter name", change text for save button to "Ok".
4076
32e2fb04
SM
4077 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
4078 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
4079
4080 * gtkutil.c (xg_get_file_with_chooser)
4081 (xg_get_file_with_selection): New functions, only defined ifdef
4082 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
4083 respectively.
4084 (xg_get_file_name): Add parameter only_dir_p.
4085 Call xg_get_file_with_chooser or xg_get_file_with_selection
4086 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
4087 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
4088
4089 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
4090
2a00cdb4
JD
4091 * config.in: Rebuild (added HAVE_GTK_FILE_*).
4092
f6749d5d
KS
40932004-11-01 Kim F. Storm <storm@cua.dk>
4094
32e2fb04
SM
4095 * process.c (connect_wait_mask, num_pending_connects):
4096 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 4097 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
4098 (IF_NON_BLOCKING_CONNECT): New helper macro.
4099 (wait_reading_process_output): Only declare and use local vars
4100 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 4101
1a99fe1a
JR
41022004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
4103
4104 * w32term.c (x_scroll_run): Delete region objects after use.
4105
fcdb28b4
JD
41062004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4107
495ef86b
JD
4108 * xmenu.c: Add prototypes for forward function declarations.
4109 (popup_get_selection): Remove parameter do_timers, remove call to
4110 timer_check.
32e2fb04
SM
4111 (create_and_show_popup_menu, create_and_show_dialog):
4112 Remove parameter do_timers from call to popup_get_selection.
495ef86b 4113
12e6566a
JD
4114 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
4115 tool_bar_items and assign the result to f->tool_bar_items if
4116 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
4117 tool_bar_items to assignment of result.
4118
fcdb28b4
JD
4119 * atimer.c (alarm_signal_handler): Do not call set_alarm if
4120 pending_atmers is non-zero.
4121
1a1a0c4c
KS
41222004-10-31 Kim F. Storm <storm@cua.dk>
4123
4124 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
4125
a36f1680
JW
41262004-10-28 Will <will@glozer.net>
4127
1d1c7e75 4128 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
4129 key via a 'mac-option-modifier' variable.
4130
32e2fb04 41312004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
4132
4133 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
4134 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
4135 (x_handle_selection_request, x_handle_selection_clear)
4136 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
4137
4f71c13f
RS
41382004-10-28 Richard M. Stallman <rms@gnu.org>
4139
4140 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
4141
4142 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
4143
068f3848
SM
41442004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
4145
4146 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
4147 comment-starter over a 1-char one.
4148
4660a9e3
RS
41492004-10-27 Richard M. Stallman <rms@gnu.org>
4150
4151 * xdisp.c (get_next_display_element): In mode lines,
4152 treat newline and tab like other control characters.
4153
4154 * editfns.c (Fmessage): Doc fix.
4155
4156 * indent.c (vmotion): When moving up, check the newline before.
4157 Make prevline an int, not a Lisp_Object.
4158
233f3db6
KS
41592004-10-27 Kim F. Storm <storm@cua.dk>
4160
4161 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
4162 Only allocate info and discarded tables once.
4163
4164 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
4165 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
4166 (SAFE_FREE): Test it to determine if we need to unwind to free.
4167 Remove size arg. All users changed.
4168 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
4169
1442465d
JD
41702004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4171
4172 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
4173 (xg_destroy_widgets): Rename from remove_from_container.
4174 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
4175 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
4176 instead of remove_from_container.
4177 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
4178 (free_frame_tool_bar): Add comment.
4179
4180 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
4181 is not NULL before strcmp.
4182
c8636435
KS
41832004-10-26 Kim F. Storm <storm@cua.dk>
4184
4185 * callint.c (Fcall_interactively): Add 'U' code to get the
4186 up-event discarded by a previous 'k' or 'K' argument.
4187
5629f29b
DK
41882004-10-26 David Kastrup <dak@gnu.org>
4189
4190 * buffer.c (syms_of_buffer): Fix a few typos.
4191
4f2f546e
JD
41922004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4193
4194 * xsmfns.c: Put empty line between comment and function body.
4195 Use two spaces before comment end.
4196
fc1062f5
KH
41972004-10-25 Kenichi Handa <handa@m17n.org>
4198
4199 * fontset.c (fontset_pattern_regexp): Optimize for the case that
4200 PATTERN is full XLFD.
4201
be13f5e5
KH
42022004-10-24 Kenichi Handa <handa@m17n.org>
4203
4204 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
4205
4206 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
4207 (regex_compile): Return REG_ERANGEX if appropriate.
4208
d0ee2ed3
KH
42092004-10-22 Kenichi Handa <handa@m17n.org>
4210
4211 * editfns.c (Ftranslate_region_internal): New function.
4212 (syms_of_editfns): Defsubr it.
4213
63ea8ea5
JD
42142004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4215
4216 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
4217
9ba27690 42182004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 4219
068f3848
SM
4220 * xterm.h (x_output): New member `xic_base_fontname'.
4221 (FRAME_XIC_BASE_FONTNAME): New macro.
4222 (xic_free_xfontset): Declare.
c27ed90a 4223
068f3848
SM
4224 * xfns.c (xic_create_xfontset): Share fontsets between frames
4225 based on base_fontname.
4226 (xic_free_xfontset): New function.
4227 (free_frame_xic): Use it.
4228 (xic_set_xfontset): Ditto.
c27ed90a 4229
068f3848 4230 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
4231
4232
59508699
JR
42332004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
4234
4235 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
4236
dede2792
JD
42372004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4238
3aca2078
JD
4239 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
4240 XSync.
4241
dede2792
JD
4242 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
4243 New variables and constant.
4244 (main): Calculate heap_bss_diff. If we are dumping and the
4245 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
4246 and exec ourself again.
4247 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
4248 print a warning.
4249
4250 * lastfile.c: Make my_endbss and my_endbss_static available on all
4251 platforms.
4252
4253 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
4254 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
4255
1dc5ba01
LT
42562004-10-19 Luc Teirlinck <teirllm@auburn.edu>
4257
4258 * data.c (Flocal_variable_if_set_p): Doc fix.
4259
950090be
JR
42602004-10-19 Jason Rumney <jasonr@gnu.org>
4261
4262 * w32.c (init_environment): Set emacs_dir correctly when running
4263 emacs from the build directory.
4264
8550b998
RS
42652004-10-19 Richard M. Stallman <rms@gnu.org>
4266
4267 * editfns.c (Fdelete_and_extract_region):
4268 If region is empty, return null string.
4269
08dedea6
JD
42702004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4271
1dc5ba01 4272 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 4273 and canon_width.
068f3848 4274 (xg_frame_cleared): Remove.
08dedea6 4275
068f3848
SM
4276 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
4277 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
4278 (xg_create_scroll_bar): Put an event box widget between
4279 the scroll bar widget and the edit widget.
4280 (xg_show_scroll_bar): Show the parent widget (the event box).
4281 (xg_remove_scroll_bar): Destroy parent (the event box) also.
4282 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
4283 Move the parent (the event box) widget inside the fixed widget.
4284 Move window clear to xterm.c.
4285
068f3848 4286 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 4287
08dedea6 4288 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
4289 (x_scroll_bar_create, XTset_vertical_scroll_bar):
4290 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
4291 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
4292
8550b998 42932004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
4294
4295 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 4296
84338890
JD
42972004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4298
4299 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
4300 gdk_window_clear and move gdk_window_process_all_updates after
4301 clear so events are sent to the X server in correct order.
4302
6e1b0d8c
KH
43032004-10-18 Kenichi Handa <handa@m17n.org>
4304
4305 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
4306 comparing font names.
8550b998 4307 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
4308 (list_fontsets): Likewise.
4309
4310 * search.c (fast_string_match_ignore_case): New function.
4311
4312 * lisp.h (fast_string_match_ignore_case): Extern it.
4313
345e75a8
KS
43142004-10-17 Kim F. Storm <storm@cua.dk>
4315
4316 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
4317 than bitmap if there is not left fringe.
4318 (get_overlay_arrow_glyph_row): Also used on windows system.
4319 (display_line): Display overlay string if no left fringe.
4320
be13cbb7
JR
43212004-10-16 Jason Rumney <jasonr@gnu.org>
4322
4323 * w32fns.c (w32_font_match): Encode font name being matched.
4324
c2e2ede7
RS
43252004-10-16 Richard M. Stallman <rms@gnu.org>
4326
4327 * window.c (Fspecial_display_p): Doc fix.
4328
043f7f73 43292004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
4330
4331 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
4332 Don't ignore menus, because where-is-internal already does it for us.
4333
699a0392
KS
43342004-10-15 Kim F. Storm <storm@cua.dk>
4335
b3c7a89b
KS
4336 * xdisp.c (redisplay_window): Only update fringes and vertical
4337 border on window frames.
699a0392 4338
4e382b0f
AS
43392004-10-14 Andreas Schwab <schwab@suse.de>
4340
4341 * m/ia64.h (DATA_SEG_BITS): Don't define.
4342
329a7be2
KS
43432004-10-14 Kim F. Storm <storm@cua.dk>
4344
4345 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 4346 in some X versions.
329a7be2 4347
982241b1
SM
43482004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4349
4350 * fns.c (map_char_table): Add missing gcpros.
4351
9238467d
SM
43522004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4353
4354 * keymap.c (get_keymap): An autoload form is not a keymap.
4355
4356 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
4357
4440e3ca
KS
43582004-10-13 Kim F. Storm <storm@cua.dk>
4359
7cfdabde
KS
4360 * callproc.c (Fcall_process): Simplify handling of display arg.
4361 Resume `display_on_the_fly' once a coding system is determined.
4362
4440e3ca
KS
4363 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
4364
1c8dec6a
KS
43652004-10-12 Kim F. Storm <storm@cua.dk>
4366
4367 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
4368 caller, such as call-process, is not going to poll for input.
4369 (calc_line_height_property): Handle case where it->object is nil.
4370
4371 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
4372
170b174c
KH
43732004-10-12 Kenichi Handa <handa@m17n.org>
4374
9238467d
SM
4375 * xdisp.c (get_next_display_element):
4376 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
4377 chars in octal in unibyte buffer.
4378
b583964c
KS
43792004-10-12 Kim F. Storm <storm@cua.dk>
4380
4381 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
4382 are no ordinary bindings.
4383
29fabd8c
JD
43842004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4385
9238467d 4386 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 4387
c3f4c690
ST
43882004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4389
9238467d
SM
4390 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
4391 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 4392 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
4393 terminal frame.
4394 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
4395 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
4396 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
4397 Make a cancel file-open dialog be like C-g.
9238467d
SM
4398 * mac.c (mktime): Use emacs_mktime.
4399 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
4400 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 4401
9688f9eb
KS
44022004-10-10 Kim F. Storm <storm@cua.dk>
4403
4404 * keyboard.c (timer_resume_idle): New function to resume idle
4405 timer without resetting timers on the idle list.
52eb0373 4406 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
4407 (timer_start_idle, timer_stop_idle): Declare static.
4408 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
4409
4410 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
4411
f7f3a65f
ST
44122004-10-08 Steven Tamm <steventamm@mac.com>
4413
9238467d 4414 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 4415 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 4416 NULL where 0 should be used.
f7f3a65f
ST
4417 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
4418 objc/malloc.h
9238467d 4419 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 4420
3c7d999a
KS
44212004-10-07 Kim F. Storm <storm@cua.dk>
4422
4423 * xdisp.c (redisplay_window): Fix flicker on vertical line between
4424 windows. Update vertical line after drawing window fringes, but
4425 only if actually drawing any bitmaps--or there is no fringe.
4426
4427 * xterm.c (x_update_window_end): Likewise.
4428 * macterm.c (x_update_window_end): Likewise.
4429 * w32term.c (x_update_window_end): Likewise.
4430
4431 * fringe.c (draw_window_fringes): Return value now indicates if
4432 any fringe bitmaps were redrawn (or there are no fringes).
4433
4434 * dispextern.h (draw_window_fringes): Update prototype.
4435
bf06c82f
ST
44362004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4437
4438 * macfns.c (mac_get_window_bounds): Add extern.
4439 (x_real_positions): Use mac_get_window_bounds.
4440
4441 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
4442 xmenu.c (YAILOM).
3c7d999a 4443
bf06c82f
ST
4444 * macterm.c [!MAC_OSX]: Include Windows.h.
4445 (front_emacs_window): Rename from mac_front_window. All uses
4446 changed. Return the frontmost non-tooltip emacs window.
4447 (mac_get_window_bounds): New function.
4448 (x_calc_absolute_position): Use the difference of width and height
4449 between the inner and outer window.
4450 (x_set_offset): Specify window position by the coordinae of the
4451 outer window. Adjust the position if the title bar is completely
4452 outside the screen.
4453 (app_is_suspended, app_sleep_time): Remove unused variables.
4454 (do_app_resume, do_app_suspend): Remove their contents because
4455 window-activate/deactivate events will do the job.
4456 (do_zoom_window): Remove unused variables. Make compliant to the
4457 standard way of zooming. Set f->left_pos and f->top_pos.
4458 (XTread_socket): Don't use argument `expected'. Don't use
4459 FrontWindow to determine the clicked window. Exclude unprocessed
4460 mouseUp cases in the early stage. Add parentheses to fix operator
4461 precedence.
4462 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
4463
4cbbf6b7 44642004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
4465
4466 * config.in: Regenerate.
4467
4468 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
4469 HAVE_EXECSHIELD.
4470
b90ee8b5
JD
44712004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4472
4473 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
4474 a row if Alt or Meta has been found for that row. Also stop scanning
4475 for Keysyms for that row.
4476
904db1a2
KS
44772004-10-04 Kim F. Storm <storm@cua.dk>
4478
0207b8ad
KS
4479 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
4480 to list. Include overlay arrow bitmap in return value.
4481
25f7220c
KS
4482 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
4483 bars with fractional column width. If scroll bar separates two
4484 windows, move it towards the window it belongs to. Only update
4485 the padding area below the scroll bar widget when necessary,
4486 i.e. when scroll bar widget is created, moved, or resized.
4487
562020fe
KS
4488 * xdisp.c (define_frame_cursor1): Do not change frame cursor
4489 while tracking/dragging mouse.
4490 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
4491
37e34af7
KS
4492 * window.c (coordinates_in_window): Relax check for cursor
4493 on vertial border between mode lines.
4494 (Fset_window_fringes): Do not allow negative widths.
4495 (Fset_window_scroll_bars): Likewise.
4496
904db1a2
KS
4497 * .gdbinit (pp): Shorthand for p ARG + pr.
4498 (ff): New command: flush frame updates (X only).
4499
38fe4f64
MA
45002004-10-03 Michael Albinus <michael.albinus@gmx.de>
4501
4502 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
4503
9de36315
KH
45042004-09-30 Kenichi Handa <handa@m17n.org>
4505
07c381ad 4506 * process.c (send_process): Free composition data.
9de36315 4507
07c381ad 4508 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
4509
4510 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
4511 compositions to encode.
4512 (encode_coding_string): Likewise. Free composition data.
4513
d5fb8dab 45142004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
4515
4516 * coding.c (code_convert_region): Free composition data.
9de36315 4517
f2a54fbc
KS
45182004-09-29 Kim F. Storm <storm@cua.dk>
4519
dc5d6435
KS
4520 * fringe.c: Remove limit on number of bitmaps.
4521 (fringe_bitmaps, fringe_faces): Change to pointers.
4522 (max_fringe_bitmaps): New var.
4523 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
4524 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
4525
4526 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
4527 (struct glyph_row): Reorder fringe_bitmap related fields.
4528 (struct it): Likewise.
4529
4530 * w32term.c (fringe_bmp): Change to pointer.
4531 (max_fringe_bmp): New var.
4532 (w32_define_fringe_bitmap): Expand fringe_bmp.
4533 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
4534 (w32_destroy_fringe_bitmap): Likewise.
4535
45362004-09-29 Kim F. Storm <storm@cua.dk>
4537
4538 * fringe.c: Simplify last change.
f2a54fbc
KS
4539 (lookup_fringe_bitmap): New function.
4540 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
4541 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
4542 Keep standard bitmaps in Vfringe_bitmaps.
4543 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
4544 (Fset_fringe_bitmap_face): Likewise.
4545
4546 * dispextern.h (lookup_fringe_bitmap): Add prototype.
4547 (valid_fringe_bitmap_p): Remove prototype.
4548
4549 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
4550
841a8bca
KS
45512004-09-29 Kim F. Storm <storm@cua.dk>
4552
1f2da365
KS
4553 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
4554 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
4555
841a8bca
KS
4556 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
4557
4558 * fringe.c (Vfringe_bitmaps): New variable.
4559 (syms_of_fringe): DEFVAR_LISP it.
4560 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
4561 Change arg to Lisp_Object and fail if not an integer.
4562 (get_fringe_bitmap_name, resolve_fringe_bitmap)
4563 (destroy_fringe_bitmap): New functions.
9238467d
SM
4564 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
4565 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
4566 clear its fringe property.
4567 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
4568 Fdestroy_fringe_bitmap.
4569 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
4570 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
4571 and set fringe property. Signal error if no free slots.
4572 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
4573 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
4574
4575 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
4576 symbols with a fringe property.
4577
4d965590
KS
45782004-09-27 Kim F. Storm <storm@cua.dk>
4579
4580 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
4581 Doc fix. Format may now be a symbol or alist, not a cons.
4582
4583 * fringe.c (update_window_fringes): Handle new formats of
4584 indicate-buffer-boundaries (symbol or alist). No longer
4585 allow a simple cons.
4586 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
4587
e888c2b3
JD
45882004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4589
9238467d 4590 * config.in: Rebuild.
e888c2b3 4591
83f1cb94
JD
45922004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4593
4594 * config.in: Rebuild.
4595
dd3b1d60 4596 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 4597
2c51754c
SM
45982004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
4599
4600 * xterm.c (x_term_init): Work around a bug in some X servers.
4601
3df5f8aa
RS
46022004-09-18 Richard M. Stallman <rms@gnu.org>
4603
557ca2c1
RS
4604 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
4605
3df5f8aa
RS
4606 * xdisp.c (try_window_reusing_current_matrix):
4607 Handle the case where we reach the old displayed text,
4608 out of sync with the old line boundary.
4609
9238467d 46102004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
4611
4612 * fileio.c (Finsert_file_contents): Fix case of replacement in a
4613 narrowed buffer.
4614
bfa02563
KS
46152004-09-14 Kim F. Storm <storm@cua.dk>
4616
a25fe164
KS
4617 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
4618
bfa02563
KS
4619 * xfaces.c (Qface_no_inherit): New var.
4620 (syms_of_xfaces): Intern and staticpro it.
4621 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
4622 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
4623 Don't increment face_change_count when face has non-nil
4624 face-no-inherit property.
4625
126f9c02
SM
46262004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
4627
892a8eb5
SM
4628 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
4629 (Fbyte_code): Remove dead code after `wrong_type_argument'.
4630
126f9c02 4631 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 4632 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 4633
c0ad3b38
KS
46342004-09-12 Kim F. Storm <storm@cua.dk>
4635
4636 * editfns.c (Fformat): Handle format strings with multiple text
4637 properties. Reverse text property list from the format string,
4638 so the positions are in increasing order.
4639
844fc085
JD
46402004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4641
4642 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
4643 x_uncatch_errors so that possible protocol errors are delivered.
4644
b106731c
EZ
46452004-09-10 Eli Zaretskii <eliz@gnu.org>
4646
21065c92
EZ
4647 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
4648 blockinput.h.
4649 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
4650 charset.h, and coding.h
9238467d 4651 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
4652 (term.o): Depend on window.h and keymap.h.
4653 (abbrev.o): Depend on syntax.h.
4654 (callint.o): Depend on keymap.h.
4655 (casefiddle.o): Depend on charset.h and keymap.h.
4656 (category.o): Depend on keymap.h.
4657 (coding.o): Depend on dispextern.h.
4658 (cmds.o): Depend on keyboard.h and keymap.h.
4659 (dispnew.o): Depend on indent.h and intervals.h.
4660 (doc.o): Depend on keymap.h.
4661 (editfns.o): Depend on frame.h.
4662 (emacs.o): Depend on dispextern.h.
4663 (fileio.o): Don't depend on ccl.h.
4664 (filelock.o): Depend on charset.h and coding.h.
4665 (frame.o): Depend on w32term.h and macterm.h.
4666 (insdel.o): Depend on region-cache.h.
4667 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
4668 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
4669 (search.o): Depend on $(INTERVALS_SRC).
4670 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
4671 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
4672 xterm.h, w32term.h, and macterm.h.
4673 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
4674 w32term.h, and macterm.h.
4675 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
4676 region-cache.h, xterm.h, w32term.h, and macterm.h.
4677 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
4678 (data.o): Depend on frame.h.
4679 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
4680 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
4681 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
4682 (intervals.o): Depend on keymap.h.
4683
9238467d
SM
4684 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
4685 Add debugging print-out to termscript.
b106731c 4686
64b7122d
RS
46872004-09-09 Richard M. Stallman <rms@gnu.org>
4688
4689 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
4690
5670531e
RS
46912004-09-08 Richard M. Stallman <rms@gnu.org>
4692
6cb4a892
RS
4693 * window.c (Fset_window_buffer): Doc fix.
4694
5670531e
RS
4695 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
4696
7e388eb7
JL
46972004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
4698
4699 * minibuf.c (history_delete_duplicates): New variable.
4700 (read_minibuf): Use it.
4701 (syms_of_minibuf): Create the corresponding lisp variable.
4702
370e3587
KS
47032004-09-08 Kim F. Storm <storm@cua.dk>
4704
4705 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
4706 overlay just before point.
4707
f844ba4e
LT
47082004-09-07 Luc Teirlinck <teirllm@auburn.edu>
4709
4710 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
4711 * buffer.c (reset_buffer, init_buffer_once):
4712 Handle auto_save_file_format field.
f844ba4e
LT
4713 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
4714 `buffer-auto-save-file-format'.
f844ba4e
LT
4715 * fileio.c: Delete declaration for removed Vauto_save_file_format.
4716 (build_annotations): Adapt to replacement of
4717 `auto-save-file-format' with the new buffer-local variable
4718 `buffer-auto-save-file-format'.
4719 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
4720
f0f90717
JR
47212004-09-07 Jason Rumney <jasonr@gnu.org>
4722
4723 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
4724
9238467d
SM
4725 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
4726 Handle Unicode menu titles.
f0f90717 4727
4e14f66c
KS
47282004-09-07 Kim F. Storm <storm@cua.dk>
4729
4730 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
4731 property from text property or overlay strings at point.
4732
9238467d 47332004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
4734
4735 * xmenu.c (update_submenu_strings): YAILOM.
4736 (set_frame_menubar): Make sure last_i is initialized.
4737
1f06d367
JR
47382004-09-03 Jason Rumney <jasonr@gnu.org>
4739
1806714a 4740 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
4741 (digest_single_submenu): Set lname and lkey in widget_value
4742 instead of name and key.
4743 (update_submenu_strings): New function.
4744 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4745 call update_submenu_strings.
4746
4747 * w32menu.c (globals_of_w32menu): Check for Unicode API.
4748 (digest_single_submenu, w32_menu_show): Encode menu strings as
4749 UTF-8 if Unicode API is available.
4750 (utf8to16): New function.
4751 (add_menu_item): Use it when calling Unicode API.
1806714a 4752
46540080
KS
47532004-09-03 Kim F. Storm <storm@cua.dk>
4754
4755 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
4756 in overlay or text-property strings; set cursor on corresponding
4757 glyph rather than at end of the string.
4758
9277ba61 47592004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 4760
9277ba61 4761 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
4762 set a new one before obtaining the global coordinate.
4763 Use FRAME_MAC_WINDOW.
4764 (x_set_name, x_set_title): Encode title to UTF8.
4765 Use SetWindowTitleWithCFString.
9277ba61
ST
4766 (Fx_server_version): Get correct OS version.
4767
1806714a
SM
4768 * macmenu.c (add_menu_item): Remove unused variable `i'.
4769 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
4770
4771 * macterm.c (x_update_end): Move SetPortWindowPort to inside
4772 BLOCK_INPUT.
4773 (x_set_offset): Use FRAME_MAC_WINDOW.
4774
4775 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
4776 nontext_cursor if it is on a scroll bar.
4777
4778 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
4779 Carbon support.
1806714a
SM
4780 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
4781 Use LIBS_CARBON.
9277ba61 4782
b10daec7
JD
47832004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4784
4785 * xfns.c (x_set_name_internal): New function. Check if we shall call
4786 xfree before ENCODE_UTF_8.
4787 (x_set_name, x_set_title): Call x_set_name_internal.
4788
f7e22385
JR
47892004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
4790
4791 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
4792 reload it.
4793
2bf436c3
JD
47942004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4795
1806714a 4796 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
4797 (single_submenu): Set lname and lkey in widget_value
4798 instead of name and key.
4799 (update_submenu_strings): New function.
4800 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4801 call update_submenu_strings.
4802
2bf436c3
JD
4803 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
4804 instead of name and key.
4805 (update_submenu_strings): New function.
4806 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 4807 call update_submenu_strings.
2bf436c3
JD
4808
4809 * gtkutil.h (_widget_value): Added lname and lkey.
4810
11715f92
ST
48112004-08-30 Steven Tamm <steventamm@mac.com>
4812
4813 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
4814 by using different names for inner loop variables.
4815
5500be54
JD
48162004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4817
059cd329
JD
4818 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
4819 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
4820
5500be54
JD
4821 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
4822 tool bar items is 0.
4823
383418e5
ST
48242004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4825
4826 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
4827 strings in menu items.
4828 (single_submenu): Use ENCODE_MENU_STRING
4829 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
4830 button release isn't passed to event loop
4831 (add_menu_item): Use SetMenuItemWithCFString
4832
6eb3ee72
ST
48332004-08-26 Steven Tamm <steventamm@mac.com>
4834
4835 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
4836 tool-bar/menu click.
4837 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 4838
10b43ac3
JD
48392004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4840
2728b5d0
JD
4841 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
4842
10b43ac3
JD
4843 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4844 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4845 (x_top_window_to_frame): Return 0 if wdesc is None.
4846
2ee3b79e
RS
48472004-08-22 Richard M. Stallman <rms@gnu.org>
4848
4849 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
4850 HAVE_TERMIOS]: If there's no char for this signal, drop through
4851 and use system calls.
4852
4853 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
4854
9a1ba2ea
KS
48552004-08-20 Kim F. Storm <storm@cua.dk>
4856
4857 * process.c (wait_reading_process_output): Rename from
4858 wait_reading_process_input. All uses changed.
4859 (wait_reading_process_output_1): Rename from
4860 wait_reading_process_input_1. All uses changed.
4861
4862 * dispnew.c (Fsleep_for): Remove obsolete code.
4863
295f3b30
KH
48642004-08-20 Kenichi Handa <handa@m17n.org>
4865
4866 * syntax.c (skip_chars): Fix for unibyte case.
4867
27615979
SM
48682004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4869
4870 * syntax.c (char_quoted): Mixup byte/char pos.
4871 (back_comment): Fixup globals in all cases.
4872
00267f94
JD
48732004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4874
4875 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
4876 passing it to gtk_window_set_title.
4877
2439909e
KS
48782004-08-19 Kim F. Storm <storm@cua.dk>
4879
6ba0f14c
KS
4880 * process.c (wait_reading_process_input): Clean up.
4881 Add wait_for_cell, wait_proc, and just_wait_proc args
4882 to avoid overloading `read_kbd' and `do_display' args.
4883 Change read_kbd arg to int. All callers changed.
4884
2439909e
KS
4885 * process.c (process_send_signal): Use CDISABLE.
4886
4887 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
4888
101c421e
KS
48892004-08-18 Kim F. Storm <storm@cua.dk>
4890
4891 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
4892 forward to wait_reading_process_input via DO_DISPLAY arg.
4893 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
4894 object, only process output from that process; also inhibit
4895 running timers if DO_DISPLAY==-2.
4896
c438dc33
KS
48972004-08-17 Kim F. Storm <storm@cua.dk>
4898
4899 * process.c (process_send_signal): Fix last change--use
4900 _POSIX_VDISABLE instead of CVDISABLE when available.
4901
8afc13c6
RS
49022004-08-16 Richard M. Stallman <rms@gnu.org>
4903
4904 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
4905 Set VQUIT and VINTR chars to the standard ones if they are unset.
4906 [AIX]: Don't do that here. And don't force VINTR to standard
4907 when SIGNALS_VIA_CHARACTERS.
4908
c438dc33 4909 * process.c (process_send_signal)
8afc13c6
RS
4910 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
4911 Do nothing if the character is CVDISABLE.
4912
4913 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
4914
c438dc33 4915 * intervals.c (move_if_not_intangible):
8afc13c6
RS
4916 Force POSITION to be between BEGV and ZV.
4917
6dad1714
JPW
49182004-08-14 John Paul Wallington <jpw@gnu.org>
4919
4920 * buffer.c (Frestore_buffer_modified_p): Doc fix.
4921
4922 * fileio.c (Fread_file_name): Doc fix.
4923
4924 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
4925
2bd77330
LT
49262004-08-09 Luc Teirlinck <teirllm@auburn.edu>
4927
4928 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
4929
c90e7e43
LT
49302004-08-08 Luc Teirlinck <teirllm@auburn.edu>
4931
4932 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 4933 Qdisabled_command_hook.
c90e7e43 4934 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 4935 Qdisabled_command_hook.
c90e7e43
LT
4936 (syms_of_keyboard): Ditto.
4937
81909a1a
LT
49382004-08-07 Luc Teirlinck <teirllm@auburn.edu>
4939
4940 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
4941 (syms_of_keymap) <key-translation-map>: Doc fixes.
4942
0cedd530
SM
49432004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
4944
1725a7c9
SM
4945 * window.c (window_list_1): YAILOM.
4946
0cedd530
SM
4947 * fileio.c (make_temp_name): Handle multibyte prefixes.
4948
2515a131
LT
49492004-08-06 Luc Teirlinck <teirllm@auburn.edu>
4950
4951 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4952 Doc fix.
4953
c8b20fb7
KH
49542004-08-03 Kenichi Handa <handa@m17n.org>
4955
4956 * coding.c (decode_coding_string): Adjust coding->consumed, and
4957 etc. with shrinked_bytes.
4958
fb8b092b
KS
49592004-08-03 Kim F. Storm <storm@cua.dk>
4960
4961 * indent.c (compute_motion): Fix check for full width window
4962 in non-window case. Do not count left truncation glyph on
4963 window systems.
4964
df133612
LT
49652004-08-02 Luc Teirlinck <teirllm@auburn.edu>
4966
4967 * data.c (Finteractive_form): Doc fix.
4968
0f7a93c1
KS
49692004-08-02 Kim F. Storm <storm@cua.dk>
4970
4971 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
4972 properly accounting for continuation glyph on non-window systems.
4973 (Fcompute_motion): Use actual window width if WIDTH is nil, and
4974 actual window width/height if TOPOS is nil, properly accounting for
4975 continuation glyphs on non-window systems, and optional header lines.
4976 (vmotion): Let compute_motion calculate actual window width.
4977
4978 * window.c (window_scroll_line_based): Let compute_motion
4979 calculate actual window width.
4980
f491e1ed
KS
49812004-08-02 Kim F. Storm <storm@cua.dk>
4982
4983 * process.c (read_process_output): Use whole read buffer.
4984 Don't trigger adaptive read buffering on errors.
4985
83f64226
LT
49862004-07-31 Luc Teirlinck <teirllm@auburn.edu>
4987
4988 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
4989
1d1c7e75 4990 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
4991
4992 * callint.c (Fcall_interactively): Doc fix.
4993
8afc13c6
RS
49942004-07-30 Richard M. Stallman <rms@gnu.org>
4995
4996 * abbrev.c (Fexpand_abbrev): Undo previous change.
4997
7c111482
KS
49982004-07-30 Kim F. Storm <storm@cua.dk>
4999
5000 * editfns.c (Fformat): Allocate extra (dummy) element in info.
5001
ee945d08
LT
50022004-07-28 Luc Teirlinck <teirllm@auburn.edu>
5003
5004 * eval.c (Fdefvar, Fdefconst): Doc fixes.
5005
3f911c94
KS
50062004-07-27 Kim F. Storm <storm@cua.dk>
5007
5008 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
5009 we have ensured that the glyph fits on the current line (or returned
5010 MOVE_LINE_CONTINUED otherwise).
5011
f29ff8c7
KS
50122004-07-26 Kim F. Storm <storm@cua.dk>
5013
5014 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
5015 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
5016 if target position is at end of display line but char is not a newline.
5017
81159bb9
RS
50182004-07-25 Richard M. Stallman <rms@gnu.org>
5019
ab431b61
RS
5020 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
5021 instead of ON_VERTICAL_BORDER, when on scroll bar.
5022 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
5023
5024 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
5025
f29ff8c7 5026 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
5027 Take account of FRAME_INTERNAL_BORDER_WIDTH.
5028
5029 * alloc.c (check_cons_list): New function (contents commented out).
5030
fc820cc5
LT
50312004-07-24 Luc Teirlinck <teirllm@auburn.edu>
5032
5033 * xfaces.c (Fcolor_supported_p): Doc fix.
5034
5035 * frame.c (Fselect_frame, Fset_frame_selected_window)
5036 (Fframe_visible_p, Fraise_frame): Doc fixes.
5037
289978b5
LT
50382004-07-24 Richard M. Stallman <rms@gnu.org>
5039
78819ebb 5040 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
5041
5042 * fileio.c (Fwrite_region): Doc fix.
5043
5044 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
5045
5046 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
5047 only when a real abbrev is present.
5048
289978b5
LT
5049 * xfns.c (x_icon_verify): New function.
5050 (Fx_create_frame): Use it.
5051
d5fb8dab 50522004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
5053
5054 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
5055
36f826d4
KS
50562004-07-21 Kim F. Storm <storm@cua.dk>
5057
5058 * window.h (struct glyph_matrix): New members nrows_scale_factor
5059 and ncols_scale_factor.
5060
5061 * window.c (make_window): Initialize nrows_scale_factor and
5062 ncols_scale_factor members.
5063
5064 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
5065 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
5066 (required_matrix_height): Apply nrows_scale_factor.
5067 (required_matrix_width): Apply ncols_scale_factor.
5068
5069 * xdisp.c (display_line): Increment nrows_scale_factor and set
5070 fonts_changed_p if past last allocated row.
5071 (append_glyph, append_composite_glyph, produce_image_glyph)
5072 (append_stretch_glyph): Increment ncols_scale_factor and set
5073 fonts_changed_p if current area is full.
5074
5fc1c546
JD
50752004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5076
5077 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
5078
cb7516e5
LT
50792004-07-19 Luc Teirlinck <teirllm@auburn.edu>
5080
5081 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
5082 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
5083 (Fset_window_start, Fscroll_up, Fscroll_down)
5084 (Fother_window_for_scrolling, Fscroll_other_window)
5085 (Fsave_window_excursion, Fset_window_vscroll)
5086 (syms_of_window) <window-size-fixed>: Doc fixes.
5087
b6189c3b 50882004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
5089
5090 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
5091 ENCODE_SYSTEM for filenames.
5092
bfcf6608
ST
50932004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5094
5095 * mac.c (sys_select): Block input around call to
5096 ReceiveNextEvent to prevent breakage. Correctly handle
5097 blocking on event queue only by calling ReceiveNextEvent
5098 instead of select (since GUI events aren't on an fd).
5099 (sys_read): Remove function
5100 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
5101
e082ac9d
ST
51022004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5103
5104 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 5105 polling instead of 1 sec timeouts (like solaris).
e082ac9d 5106
cb7516e5 5107 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
5108 frame creation.
5109
5110 * keyboard.c: Undef SIGIO on Carbon
5111
5112 * atimer.c (alarm_signal_handler): Call alarm handlers after
5113 scheduling.
5114
5115 * eval.c (Feval): Remove quit_char test
5116
5117 * process.c (wait_reading_process_input): Remove clearing
5118 stdin for select call on process input.
5119
4b9da0fb
LT
51202004-07-18 Luc Teirlinck <teirllm@auburn.edu>
5121
1204e81c
LT
5122 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
5123 capitalization error in docstring.
4b9da0fb 5124
26503ad2
JB
51252004-07-17 Juanma Barranquero <lektu@terra.es>
5126
5127 * keyboard.c (not_single_kboard_state): Do nothing unless
5128 MULTI_KBOARD is defined.
5129
3751eb00
RS
51302004-07-17 Richard M. Stallman <rms@gnu.org>
5131
5132 * window.c (coordinates_in_window): Inside the window but outside
5133 its box to the L or R, return ON_VERTICAL_BORDER.
5134 (window_list_1): Rotate the list to start with WINDOW.
5135
5136 * print.c (print_preprocess): Test for print_depth at limit
5137 before entering in being_printed.
5138
5139 * keyboard.c (not_single_kboard_state): New function.
5140 (stuff_buffered_input): Now no-op only if no SIGTSTP.
5141
5142 * frame.c (Fdelete_frame): If we're in single_bboard_state on
5143 this kboard, and we delete its last frame, go to any_kboard_state.
5144
5145 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
5146
b6189c3b 51472004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
5148
5149 * w32fns.c (Fx_file_dialog): Encode strings in system coding
5150 system before passing them to OS functions for display.
5151
0f6af254
DK
51522004-07-15 David Kastrup <dak@gnu.org>
5153
f9253326
KS
5154 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
5155 Apparently fixes an abort condition.
0f6af254 5156
386c8f42
LT
51572004-07-14 Luc Teirlinck <teirllm@auburn.edu>
5158
5159 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
5160 instead of a cons.
5161
366511da
MB
51622004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
5163
5164 * keyboard.c (echo_dash): Do nothing if there already is a dash
5165 at the end of the echo string.
5166
f85409d3
KS
51672004-07-12 Kim F. Storm <storm@cua.dk>
5168
5169 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
5170 if GC_MARK_STACK.
5171
0ba2e87b
LT
51722004-07-10 Luc Teirlinck <teirllm@auburn.edu>
5173
da38045d
LT
5174 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
5175
0ba2e87b
LT
5176 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
5177 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
5178 (Freplace_buffer_in_windows, Fset_window_buffer)
5179 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
5180 (syms_of_window): Expand docstring of `display-buffer-function'.
5181
5668fbb8
LT
51822004-07-09 Luc Teirlinck <teirllm@auburn.edu>
5183
5184 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
5185 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
5186 that time values of the type (HIGH . LOW) are considered obsolete.
5187
a085bf9d
LT
51882004-07-06 Luc Teirlinck <teirllm@auburn.edu>
5189
669de2fb
LT
5190 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
5191 docstring.
5192
bac66325 5193 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 5194
8e975df9
JPW
51952004-07-06 John Paul Wallington <jpw@gnu.org>
5196
5197 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
5198
fa164e6a
JPW
5199 * fns.c (Fclear_string): Signal an error if STRING is not a string.
5200
2bac9bb1
JD
52012004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5202
5203 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
5204 instead of CGMainDisplayID (only in OSX 10.2 and later).
5205
316ef0dc
JPW
52062004-07-04 John Paul Wallington <jpw@gnu.org>
5207
5208 * fileio.c (read_file_name_completion_ignore_case): New variable.
5209 (syms_of_fileio): Declare and initialise it.
5210 (Fread_file_name): Bind `completion-ignore-case' to respect it.
5211
2a1a35c6
EZ
52122004-07-03 Eli Zaretskii <eliz@gnu.org>
5213
5214 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
5215 for event.x and event.y.
5216
33a72331
KH
52172004-07-01 Kenichi Handa <handa@m17n.org>
5218
5219 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
5220 after getting a new string by pre-write-conversion.
5221
9238467d 52222004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
5223
5224 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
5225 (x_calc_absolute_position): Remove unused var `child'.
5226
5227 * xfaces.c (x_supports_face_attributes_p)
5228 (Fdisplay_supports_face_attributes_p): YAILOM.
5229 (tty_supports_face_attributes_p): Remove unused var `i'.
5230
5231 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
5232 back_unibyte_ok.
5233
5234 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
5235
5236 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
5237
5238 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
5239
f96ec754
AS
52402004-06-30 Andreas Schwab <schwab@suse.de>
5241
5242 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
5243 (Finit_image_library): Pass LIBRARIES through to
5244 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
5245 (lookup_image_type): Pass Qnil as second argument to
5246 Finit_image_library.
5247
78819ebb 5248 * lisp.h (Finit_image_library): Declare.
f96ec754 5249
59feca74 52502004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 5251
31983645
AS
5252 * macterm.c (do_window_activate, do_window_deactivate): Remove.
5253 (XTread_socket): Send mouse button events to the toolbox
5254 dispatcher even when the mouse is grabbed. Don't process window
5255 activate events for non-Emacs windows. Replace function calls to
5256 do_window_activate and do_window_deactivate with their contents.
5257 Reset mouse grabbing status when a window is deactivated.
59feca74 5258
c61278bb
ST
52592004-06-29 Steven Tamm <steventamm@mac.com>
5260
5261 * macterm.c (mac_get_emulated_btn)
5262 (mac_event_to_emacs_modifiers): Fix emulated mouse button
5263 support to correctly mask out modifiers.
5264
c3762cbd
DK
52652004-06-29 David Kastrup <dak@gnu.org>
5266
5267 * search.c (Fset_match_data): Allow buffer before end of list
5268 which can happen if set-match-data is using a pre-consed list.
5269
c61278bb 52702004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
5271
5272 * macterm.c (XTread_socket): Correctly set the frame position
5273 after the window is moved.
5274
74cdfe05
JD
52752004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5276
5277 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
5278 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
5279 (xg_get_image_for_pixmap): Add workaround for monochrome displays
5280 so insensitive and activated icons look ok.
74cdfe05 5281
ef544dc8
JR
52822004-06-27 Jason Rumney <jasonr@gnu.org>
5283
5284 * w32fns.c (file_dialog_callback): Disable edit control if set
5285 to directories only on CDN_INITDONE message.
5286 (Fx_file_dialog): Default to directories only when prompt starts
5287 with "Dired".
5288
7b7990cc
KS
52892004-06-25 Kim F. Storm <storm@cua.dk>
5290
5291 * alloc.c (allocate_misc): Update total_free_markers.
5292 (free_misc): New function.
5293 (safe_alloca_unwind, free_marker): Use it.
5294
5295 * lisp.h (free_misc): Add prototype.
5296
5297 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
5298
d8c379f8
RS
52992004-06-24 Richard M. Stallman <rms@gnu.org>
5300
5301 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
5302 (syms_of_emacs): Lisp variables deleted.
5303
559cdd07
DK
53042004-06-23 David Kastrup <dak@gnu.org>
5305
94939b84
DK
5306 * search.c (Freplace_match): Adjust the match-data more thoroughly
5307 when replacing strings in the buffer.
5308 (Fmatch_data): When INTEGERS is non-nil and the last match was in
5309 a buffer, add the buffer as last element to the match data.
5310 (Fset_match_data): If an additional element of the match-data is a
5311 buffer, restore it to last_thing_searched.
c8d09ad8 5312 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
5313 (restore_match_data): Restore it again.
5314
dce417e7
LT
53152004-06-23 Luc Teirlinck <teirllm@auburn.edu>
5316
5317 * keymap.c (Ftext_char_description): Doc fix.
5318 * doc.c (Fsnarf_documentation): Doc fix.
5319
ef54b2d0
KS
53202004-06-22 Kim F. Storm <storm@cua.dk>
5321
b5bc4d05
KS
5322 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
5323
ef54b2d0
KS
5324 * lisp.h (struct Lisp_Save_Value): New member dogc.
5325 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
5326 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
5327 (SAFE_FREE_LISP): New macro.
5328
5329 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
5330 (make_save_value): Init new dogc member.
5331 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
5332
5333 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
5334 SAFE_FREE_LISP macros.
5335
3d33d993
KS
53362004-06-22 Kim F. Storm <storm@cua.dk>
5337
5338 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
5339 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
5340 in that memory area are unknown to GC. Add comments.
5341
5342 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
5343
5c917f98
KS
53442004-06-21 Kim F. Storm <storm@cua.dk>
5345
5346 * lisp.h (MAX_ALLOCA): Define here.
5347 (safe_alloca_unwind): Add prototype.
5348 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
5349
5350 * alloc.c (safe_alloca_unwind): New function.
5351
5352 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
5353
5354 * charset.c (Fstring): Use SAFE_ALLOCA.
5355
5356 * coding.c (MAX_ALLOCA): Remove define.
5357
5358 * data.c (MAX_ALLOCA): Remove define.
5359 (Faset): Use SAFE_ALLOCA.
5360
5361 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
5362
5363 * fns.c (string_make_multibyte, string_to_multibyte)
5364 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
5365 (MAX_ALLOCA): Remove define.
5366 (Fbase64_encode_region, Fbase64_encode_string)
5367 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
5368 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
5369 memory leak if encoding fails.
5370
5371 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
5372
9a09408e
EZ
53732004-06-21 Eli Zaretskii <eliz@gnu.org>
5374
5375 * print.c (Fwith_output_to_temp_buffer): Doc fix.
5376
376de739
RS
53772004-06-20 Richard M. Stallman <rms@gnu.org>
5378
5379 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
5380
5381 * search.c (match_limit): Cleaner err msg when no match data available.
5382
5383 * window.c (syms_of_window): Doc fix.
5384
5385 * keyboard.c (command_loop_1): Handle values `only' and `identity'
5386 for Vtransient_mark_mode.
5387
5388 * buffer.c (syms_of_buffer): Doc fix.
5389
acd81db9
DK
53902004-06-21 David Kastrup <dak@gnu.org>
5391
5392 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
5393 and unbinding of `case-fold-search' according to
5394 `completion-ignore-case' around calls of string-match and
5395 predicates, respectively. Should give satisfactory performance
5396 in all relevant cases.
5397
f303762d
JD
53982004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5399
95911c74
JD
5400 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
5401 clip_x/y_origin.
5402
a6cb6b78
JD
5403 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
5404
f303762d
JD
5405 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
5406
5407 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
5408 on Mac OSX.
5409
bbdb2684
LT
54102004-06-16 Luc Teirlinck <teirllm@auburn.edu>
5411
5412 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
5413
5ea48b1c
KS
54142004-06-16 Kim F. Storm <storm@cua.dk>
5415
5416 * dispextern.h (Vimage_types): Remove extern.
5417
803aac3e
MB
54182004-06-16 Miles Bader <miles@gnu.org>
5419
5420 * image.c (lookup_image_type): Initialize image type if necessary.
5421
cdc97764
KS
54222004-06-15 Kim F. Storm <storm@cua.dk>
5423
c4a5739c
KS
5424 * xdisp.c (try_cursor_movement): Exclude header line from scroll
5425 margin at top of window.
5426 (try_window_reusing_current_matrix): Calculate proper cursor position
5427 after scrolling up with non-zero scroll margin, as the old cursor
5428 position corresponds to value of PT before executing this command.
5429 (try_window_id): Consider scroll margin at bottom of window too;
5430 otherwise we fail to scroll when hl-line-mode is enabled.
5431
cdc97764
KS
5432 * syntax.c (skip_chars): Only recognize [:class:] when it has the
5433 proper format and class is a lower-case word.
5434
5b166323
JD
54352004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5436
5437 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 5438 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
5439 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
5440 xg_get_gdk_pixmap_and_mask.
cdc97764 5441
5b166323
JD
5442 * xterm.h (struct x_display_info): Typo in comment fixed.
5443
1ebd4f78
JB
54442004-06-14 Juanma Barranquero <lektu@terra.es>
5445
5446 * dispextern.h (Vimage_types): Make it conditional on
5447 HAVE_WINDOW_SYSTEM.
5448
5449 * image.c (Vimage_types): Move from xdisp.c.
5450 (Vimage_type_cache): New variable.
5451 (define_image_type): New argument indicating whether an image
5452 library was loaded; cache loaded status and return t on success,
5453 nil otherwise.
5454 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
5455 (w32_delayed_load): New function to load an image library from a
5456 list of possible filenames.
5457 (init_xpm_functions, init_png_functions, init_jpeg_functions)
5458 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 5459 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
5460 (Finit_image_library): New function, extracted from `init_image'.
5461 Try to initialize an image library on demand and cache whether we
5462 were successful or not.
5463 (syms_of_image): Initialize `Vimage_types' and
5464 `Vimage_type_cache'. Add recognized image types to Vimage_types.
5465 Export `init-image-library'.
5466 (init_image): Remove initialization of all image types, except xbm
5467 and pbm.
5468
5469 * xdisp.c (Vimage_types): Delete (moved to image.c).
5470
904ee128
AS
54712004-06-14 Andreas Schwab <schwab@suse.de>
5472
5473 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
5474 Avoid calling specbind when completion-regexp-list is empty.
5475
092de21d
RS
54762004-06-13 Richard M. Stallman <rms@gnu.org>
5477
5478 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5479 (re_wctype, re_iswctype, re_wctype_to_bit):
5480 Non-function definitions moved here from regex.c.
1ebd4f78 5481
092de21d
RS
5482 * regex.c (re_wctype, re_iswctype): Function defs longer static.
5483 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5484 (re_wctype, re_iswctype, re_wctype_to_bit):
5485 Non-function definitions moved to regex.h.
5486
5487 * window.c (Fselect_window): Doc fix.
5488
5489 * syntax.c: Include regex.h.
5490 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
5491 If requested, make a list of classes, then check the scanned
5492 chars for membership in them.
5493 (in_classes): New function.
5494 Doc fix.
5495
5496 * keyboard.c (cmd_error): Don't call any_kboard_state
5497 if inside a recursive edit level.
5498
9ba27690 54992004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
5500
5501 * keyboard.c (command_loop): Call any_kboard_state before
5502 command_loop_2 when at top level.
5503
3ebc0939
AS
55042004-06-13 Andreas Schwab <schwab@suse.de>
5505
cea5d0d4
AS
5506 * print.c (print_object): Always use %ld for printing EMACS_INT.
5507
5508 * keyboard.c (cancel_hourglass_unwind): Return a value.
5509 (modify_event_symbol): Always use %ld for printing EMACS_INT.
5510 (Fexecute_extended_command): Likewise.
5511
5512 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
5513 avoid clashes.
5514 (SYNTAX): Likewise.
5515 (SYNTAX_WITH_FLAGS): Likewise.
5516 (SYNTAX_MATCH): Likewise.
5517
5518 * syntax.c (char_quoted): Avoid warning about undefined operation.
5519 (find_defun_start): Likewise.
5520 (scan_lists): Likewise.
5521 (INC_FROM): Likewise.
5522 (scan_sexps_forward): Likewise.
5523
be8c4ce4
AS
5524 * image.c: Include <ctype.h>.
5525
3ebc0939
AS
5526 * xfaces.c (face_attr_equal_p): Declare parameters.
5527
6fb41b5b
KH
55282004-06-13 Kenichi Handa <handa@m17n.org>
5529
5530 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
5531
fc3095ce
EZ
55322004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
5533
5534 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
5535
66189a40
KH
55362004-06-12 Kenichi Handa <handa@m17n.org>
5537
5538 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
5539 ccl_prog_stack_struct and update it.
5540 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
5541 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
5542 ccl->eof_ic on EOF.
5543 (ccl_debug_hook): New function.
5544 (struct ccl_prog_stack): New member eof_ic.
5545 (ccl_driver): Handle EOF in subrountine call correctly.
5546
55472004-06-11 Kenichi Handa <handa@m17n.org>
5548
a9b43336 5549 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 5550
1da71023
KS
55512004-06-11 Kim F. Storm <storm@cua.dk>
5552
5553 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
5554
e9efcef4
JB
55552004-06-11 Juanma Barranquero <lektu@terra.es>
5556
5557 * keyboard.c (Fposn_at_point): Doc fix.
5558
9b9ceb61
DK
55592004-06-11 David Kastrup <dak@gnu.org>
5560
5561 * search.c (match_limit): Don't flag an error if match-data
5562 exceeding the allocated search_regs.num_regs gets requested, just
5563 return Qnil.
5564
6e87ac8f
MB
55652004-06-08 Miles Bader <miles@gnu.org>
5566
5567 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
5568
0b0dea7b
JB
55692004-06-07 Juanma Barranquero <lektu@terra.es>
5570
5571 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
5572 (Fcurrent_time_string, Fcurrent_time_zone)
5573 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
5574
a0a23346
MB
55752004-06-07 Miles Bader <miles@gnu.org>
5576
08384afd 5577 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
5578 (push_named_merge_point): New function.
5579 (merge_named_face): New function.
5580 (merge_face_ref, face_at_buffer_position, face_at_string_position):
5581 Use `merge_named_face'.
5582 (merge_face_inheritance): Function removed.
c8d09ad8 5583 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
5584 Add new `err_msgs' and `named_merge_points' args. Return error
5585 status. Only print error messages if ERR_MSGS is true. Don't try to
5586 do :inherit attribute validation.
5587 (merge_face_heights): Handle `unspecified' in both directions.
5588 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
5589 Call `merge_face_ref' instead of `merge_face_inheritance'.
5590 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
5591 (compute_char_face, face_at_buffer_position)
5592 (face_at_string_position): Call `merge_face_ref' instead of
5593 `merge_face_vector_with_property'.
5594
12d5b185
KH
55952004-06-07 Kenichi Handa <handa@m17n.org>
5596
5597 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
5598 the necessary places.
5599
2e2d7ee6
KS
56002004-06-07 Kim F. Storm <storm@cua.dk>
5601
5602 * process.c (Fdelete_process): Undo 2004-05-28 change.
5603 Instead, call status_notify also for network process.
5604 (status_message): Use process instead of status as arg.
5605 Give messages "deleted" or "connection broken by remote peer" for
5606 an exited network process.
5607 (status_notify): Change call to status_message.
5608 (read_process_output): Increase readmax to 4096. Do not increase
5609 buffer size for datagram channels (default is now large enough).
5610
fcf0d299
ST
56112004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
5612
5613 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
5614 problem due to newly defined variable.
5615
0722292b
MB
56162004-06-06 Miles Bader <miles@gnu.org>
5617
5618 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
5619 immediately if non-interactive or not initialized.
5620
ddfb8369
RS
56212004-06-05 Richard M. Stallman <rms@gnu.org>
5622
5623 * minibuf.c (Fcompleting_read): Doc fix.
5624
57015754
AS
56252004-06-05 Andreas Schwab <schwab@suse.de>
5626
5627 * macfns.c (x_create_tip_frame): Fix declaration after statement.
5628
23715ea6
JB
56292004-06-05 Juanma Barranquero <lektu@terra.es>
5630
5631 * keymap.c (Fdescribe_vector): Fix docstring.
5632 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
5633
8e330b22
MB
56342004-06-05 Miles Bader <miles@gnu.org>
5635
5636 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
5637 attributes have different values than the default face.
5638
9742a3a6
EZ
56392004-06-04 Eli Zaretskii <eliz@gnu.org>
5640
5641 * xfaces.c (x_supports_face_attributes_p): Make this function
5642 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
5643 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
5644 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 5645
9717e36c
MB
56462004-06-04 Miles Bader <miles@gnu.org>
5647
5648 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
5649 from Ftty_supports_face_attributes_p.
5650 (x_supports_face_attributes_p): New function.
5651 (Ftty_supports_face_attributes_p): Function deleted.
5652 (Fdisplay_supports_face_attributes_p): New function.
5653 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 5654 (face_attr_equal_p): New function.
9717e36c
MB
5655 (lface_equal_p): Use it.
5656
52deb19f
JB
56572004-06-03 Juanma Barranquero <lektu@terra.es>
5658
5659 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
5660 (Vw32_color_map): Fix typo in docstring.
5661 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
5662 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
5663 Make argument names match their use in docstring.
5664
86d373e6
JB
56652004-06-02 Juanma Barranquero <lektu@terra.es>
5666
5667 Work around bugs/problems with MinGW builds of graphics libraries
5668 called from MSVC builds of Emacs.
5669
5670 * image.c (lookup_image): Make pointer to img static.
5671 (png_read_from_memory): Disable "global" optimization.
5672
2fb0ce67
SM
56732004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
5674
c8d09ad8
SM
5675 * eval.c (Fcondition_case): Fix usage. Simplify.
5676
2fb0ce67
SM
5677 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
5678
50bf7673
ST
56792004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5680
5681 * macfns.c: Don't include ccl.h.
5682 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
5683 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
5684 TextUtils.h.
c8d09ad8 5685 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
5686 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
5687 display height/width.
5688 (compute_tip_xy, Vx_max_tooltip_size): Declare.
5689 (unwind_create_tip_frame, compute_tip_xy): New functions.
5690 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
5691 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
5692 and last_show_tip_args.
2fb0ce67 5693
50bf7673
ST
5694 * macgui.h [!MAC_OSX]: Include Gestalt.h.
5695 (Cursor, No_Cursor): New defines.
c8d09ad8 5696 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
5697 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
5698
5699 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
5700
5701 * macterm.c: Don't include Gestalt.h.
5702 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
5703 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
5704 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
5705 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
5706 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
5707 (construct_mouse_click, XTmouse_position)
5708 (x_scroll_bar_report_motion, x_calc_absolute_position)
5709 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
5710 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
5711 (note_mouse_movement): Clear the mouse face and reset the pointer
5712 shape when the pointer goes outside the frame without grabbing.
5713 (mac_front_window): New function.
5714 (mac_window_to_frame): New macro.
5715 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
5716 (do_window_activate, do_window_deactivate, do_app_resume)
5717 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
5718 (do_zoom_window, mac_do_receive_drag, XTread_socket)
5719 (mac_check_for_quit_char): Use mac_front_window and/or
5720 mac_window_to_frame.
5721 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
5722 scroll-bar click event.
5723 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 5724 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 5725 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 5726 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
5727 (do_window_update): Don't do anything if the updated window is the
5728 tooltip window.
5729 (do_mouse_moved): Handle mouse movement events here (previously in
5730 XTread_socket). Clear the mouse face if
5731 dpyinfo->mouse_face_hidden is set.
5732 (do_os_event, do_events): Remove (now in XTread_socket).
5733 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
5734 Loop until all the events in the queue are processed.
5735 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
5736 contents of do_os_event and do_events. Remove mouse movement
5737 handling (now in do_mouse_moved). Add the case where
5738 Vmouse_highlight has an integer value.
5739 (NewMacWindow): Remove.
5740 (make_mac_frame): Do what NewMacWindow previously did. Don't do
5741 excess initializations.
5742 (make_mac_terminal_frame): Previous initializations in
5743 make_mac_frame are moved here.
c8d09ad8
SM
5744 (mac_initialize_display_info):
5745 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
5746
5747 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
5748 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
5749
08fd1251
RS
57502004-05-29 Richard M. Stallman <rms@gnu.org>
5751
5752 * lisp.h (truncate_undo_list): Update decl.
5753
5754 * alloc.c (undo_outer_limit): New variable.
5755 (syms_of_alloc): Defvar it.
5756 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
5757
5758 * undo.c (truncate_undo_list): New arg LIMITSIZE.
5759
5760 * alloc.c (lisp_align_malloc): Check for base == 0
5761 regardless of HAVE_POSIX_MEMALIGN.
5762 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
5763
227ef0ff
SM
57642004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5765
5766 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
5767 (marker_blocks_pending_free): Remove.
5768 (Fgarbage_collect): Sweep after cleaning up undo-lists.
5769 Mark the undo lists after claning them up.
5770 Don't free block in marker_blocks_pending_free.
5771 (mark_buffer): Don't mark undo_list.
5772 (gc_sweep): Sweep hash-tables and strings first.
5773 Do free marker blocks that are empty.
5774
034a6113
SM
57752004-05-28 Jim Blandy <jimb@redhat.com>
5776
5777 * regex.c (print_partial_compiled_pattern): Add missing 'break'
5778 after 'case wordend'. For symbeg and symend, print to stderr,
5779 like the other cases.
5780
33594a8d
NF
57812004-05-28 Noah Friedman <friedman@splode.com>
5782
5783 * process.c (Fdelete_process): Do not call remove_process.
5784
ce50a847
SM
57852004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5786
5787 * alloc.c (struct backtrace): Remove.
5788 (Fgarbage_collect): Use the new mark_backtrace.
5789
5790 * eval.c (mark_backtrace): New function.
5791
5792 * minibuf.c (run_exit_minibuf_hook): New function.
5793 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
5794 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
5795
1e8dae36
KS
57962004-05-27 Kim F. Storm <storm@cua.dk>
5797
5798 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
5799 over display properties, e.g. images, that replace buffer text.
5800
846faa3b
KS
58012004-05-25 Kim F. Storm <storm@cua.dk>
5802
5803 * alloc.c (marker_blocks_pending_free): New var.
5804 (gc_sweep): Store free marker blocks on that list.
5805 (Fgarbage_collect): Free them after undo-list cleanup.
5806
5807 * process.c (wait_reading_process_input): Check connect_wait_mask
5808 before actually accepting connection in case it has already been
5809 accepted due to recursion.
5810
b6189c3b 58112004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 5812
ce50a847
SM
5813 * coding.c (Fset_safe_terminal_coding_system_internal):
5814 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 5815
71d5a208
RS
58162004-05-22 Richard M. Stallman <rms@gnu.org>
5817
5818 * alloc.c (Fmake_string): Doc fix.
5819
5820 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
5821 and the alist pairs too.
5822
5823 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
5824
5825 * emacs.c (main): Update copyright year.
5826
5827 * fileio.c (Fread_file_name): Expand DIR if not absolute.
5828
5829 * insdel.c (del_range_2, replace_range): Don't write an anchor
5830 if the gap is empty.
5831
5832 * xdisp.c (try_scrolling): If scroll-up-aggressively or
5833 scroll-down-aggressively is small but positive, put point
5834 near the screen edge.
5835
f63fd14e
JB
58362004-05-22 Juanma Barranquero <lektu@terra.es>
5837
5838 * keymap.c (Fdefine_key): Doc fix.
5839
4d12067c
KS
58402004-05-22 Kim F. Storm <storm@cua.dk>
5841
5842 * alloc.c (struct backtrace): Add debug_on_exit member.
5843 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
5844 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
5845 the removed cons cells.
5846 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
5847 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
5848 any cons cells pointing to unallocated stings.
5849 Do not lisp_free any marker blocks, as there may still be pointers
5850 to them from buffer undo lists at this stage of GC.
5851
5852 * keyboard.c (struct backtrace): Add debug_on_exit member.
5853 (Fcommand_execute): Clear it.
5854
931285e2
LT
58552004-05-20 Luc Teirlinck <teirllm@auburn.edu>
5856
5857 * intervals.c (lookup_char_property): Do not prematurely return nil.
5858
669fa600
SM
58592004-05-19 Jim Blandy <jimb@redhat.com>
5860
5861 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 5862 beginning and end of symbols.
4d12067c 5863
669fa600
SM
5864 * regex.c (enum syntaxcode): Add Ssymbol.
5865 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
5866 (re_opcode_t): New opcodes `symbeg' and `symend'.
5867 (print_partial_compiled_pattern): Print the new opcodes properly.
5868 (regex_compile): Parse the new operators.
ce50a847 5869 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
5870 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
5871 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
5872 (re_match_2_internal): Match symbeg and symend.
5873
5874 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
5875
0d8c2e5c
KS
58762004-05-19 Kim F. Storm <storm@cua.dk>
5877
5878 * .gdbinit (xsymbol): Fix last change.
5879
669fa600
SM
58802004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
5881
5882 * .gdbinit (xprintstr): New fun.
5883 (xstring, xprintsym): Use it.
5884
5885 * w32proc.c (create_child): Use INTMASK.
5886
5887 * alloc.c (Fgarbage_collect): Do all the marking before flushing
5888 unmarked elements of the undo list.
5889
9a6a4c40
DP
58902004-05-18 David Ponce <david@dponce.com>
5891
5892 * print.c (print): Reset print_depth before to call print_object.
5893
f3c4ec74
JR
58942004-05-18 Jason Rumney <jasonr@gnu.org>
5895
5896 * w32console.c: Prefix RIF functions with w32con_ to avoid
5897 namespace clash with functions in term.c and w32term.c.
5898
5899 * w32menu.c (add_menu_item, w32_menu_display_help)
5900 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
5901
0d8c2e5c 5902 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 5903
6be49c3a
EZ
59042004-05-18 Eli Zaretskii <eliz@gnu.org>
5905
4d0b9a0a
EZ
5906 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
5907
6be49c3a
EZ
5908 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
5909 with make_number.
5910 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
5911 with XINT.
5912
0bc90bba
KS
59132004-05-18 Kim F. Storm <storm@cua.dk>
5914
89d19988
KS
5915 * blockinput.h (INPUT_BLOCKED_P): New macros.
5916
5917 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
5918 (Ftop_level): Unblock input if blocked.
5919
0bc90bba
KS
5920 * buffer.h (GET_OVERLAYS_AT): New macro.
5921 * msdos.c (IT_note_mouse_highlight): Use it.
5922 * textprop.c (get_char_property_and_overlay): Use it.
5923 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
5924 * xfaces.c (face_at_buffer_position): Use it.
5925
5926 * print.c (print_object): Increase buf size.
5927
653bd0f6
JR
59282004-05-17 Jason Rumney <jasonr@gnu.org>
5929
5930 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
5931 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
5932 Lisp_Object using i member.
5933 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
5934 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
5935 consistently.
5936
5937 * w32proc.c (create_child): Use make_number instead of masking pid.
5938
5939 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
5940 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
5941 Use EQ to compare Lisp_Objects.
5942 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
5943
5944 * w32term.c (w32_num_mouse_buttons): Rename from
5945 Vw32_num_mouse_buttons and make it an int.
5946
5947 * w32.c (init_environment): Use it.
5948
5949 * w32fns.c (w32_wnd_proc): Likewise.
5950
5951 * w32proc.c (w32_pipe_read_delay): Rename from
5952 Vw32_pipe_read_delay and make it an int.
5953
5954 * w32.c (_sys_read_ahead): Use it.
5955
5956 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
5957
5958 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
5959
5960 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
5961 (key_event): Don't mix Lisp_Object and int.
5962
5963 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
5964
5965 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
5966 modifiers in language change event.
5967
54b53ba7
KS
59682004-05-17 Kim F. Storm <storm@cua.dk>
5969
5970 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
5971 Such objects may be freed markers which still exist on an undo list.
5972
6e86a75d
JB
59732004-05-16 Juanma Barranquero <lektu@terra.es>
5974
5975 * data.c (Fset_default): Make argument names match their use in
5976 docstring.
5977
fc80da24
AS
59782004-05-15 Andreas Schwab <schwab@suse.de>
5979
5980 * emacs.c (gdb_array_mark_flag): Define.
5981 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
5982
c1380aa6
EZ
59832004-05-15 Eli Zaretskii <eliz@gnu.org>
5984
5985 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
5986 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
5987 defined for the MS-DOS build.
5988
89458937
SM
59892004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5990
5991 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
5992
08020f9a
KH
59932004-05-14 Kenichi Handa <handa@m17n.org>
5994
5995 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
5996
a433994a
ST
59972004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5998
5999 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
6000 section to frame.c section.
6001 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 6002 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 6003
a433994a 6004 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 6005
a433994a 6006 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 6007
a433994a
ST
6008 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
6009 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
6010 (XTread_socket): Fix int/Lisp_Object mixup.
6011 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 6012
a433994a
ST
6013 * macterm.h (struct frame, struct face, struct image)
6014 (display_x_get_resource, Fx_display_color_p)
89458937
SM
6015 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
6016 Add prototypes.
a433994a 6017
b51a51b9
KS
60182004-05-14 Kim F. Storm <storm@cua.dk>
6019
6020 * process.c (wait_reading_process_input): Make reentrant.
6021 Make Available and Connecting non-static. Save and restore value
6022 of waiting_for_user_input_p.
6023
2bde1dd8
KS
60242004-05-13 Kim F. Storm <storm@cua.dk>
6025
6026 * keyboard.c (mark_kboards): Don't mark x and y members
6027 that are overloaded in selection request events.
6028
a267ab4d
SM
60292004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
6030
6031 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
6032
eb15ce9e
GM
60332004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
6034
6035 * window.c (Fdisplay_buffer, Fsplit_window)
6036 (split-height-threshold): Doc fix.
6037
7fc92635
JB
60382004-05-13 Juanma Barranquero <lektu@terra.es>
6039
6040 * xfaces.c (Ftty_supports_face_attributes_p)
6041 (Finternal_copy_lisp_face): Fix typo in docstring.
6042 (Finternal_get_lisp_face_attribute): Fix docstring.
6043
1ec2a572
JD
60442004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6045
6046 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
6047
ae9292e0
ST
60482004-05-11 Steven Tamm <steventamm@mac.com>
6049
6050 * macfns.c (Fx_create_frame): Default to using tool-bar by
6051 setting tool-bar-lines to 1 in default-frame-alist.
6052
60532004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
6054
6055 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
6056 (xpm_get_color_table_v, xpm_make_color_table_h)
6057 (xpm_put_color_table_h, xpm_get_color_table_h)
6058 (xpm_str_to_color_key, xpm_load_image, xpm_load)
6059 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 6060 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 6061
fe97e8df
ST
60622004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6063
a267ab4d 6064 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
6065 instead of FRAME_X_P
6066
b47e779e
KS
60672004-05-11 Kim F. Storm <storm@cua.dk>
6068
6069 * process.c (read_process_output): Grow decoding_buf when needed;
6070 this could cause a crash in allocate_string and compact_small_strings.
6071
cdc9b845
EZ
60722004-04-29 Jim Blandy <jimb@redhat.com>
6073
6074 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
6075 against proper opcode.
6076
aa7094ba
JB
60772004-05-10 Juanma Barranquero <lektu@terra.es>
6078
6079 * process.c (Fstart_process): Fix docstring.
6080
6081 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
6082 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
6083 (Fsplit_char, Fchar_charset): Make argument names match their use
6084 in docstring.
6085
e109331a
RS
60862004-05-10 Richard M. Stallman <rms@gnu.org>
6087
6088 * print.c (print_preprocess): Use being_printed, loop_count and
6089 halftail to detect overdeep nesting and cyclic cdr chains.
6090
9a28b921
AS
60912004-05-10 Andreas Schwab <schwab@suse.de>
6092
78819ebb 6093 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
6094
6095 * fileio.c (Frename_file): Remove extra argument in call to
6096 Fmake_symbolic_link.
6097
e2c02c1a
KS
60982004-05-10 Kim F. Storm <storm@cua.dk>
6099
6100 * xdisp.c (calc_line_height_property): Use string position when
6101 object is a string.
6102
cfe9d13e
KH
61032004-05-10 Kenichi Handa <handa@m17n.org>
6104
a57e8159
KH
6105 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
6106 inhibit-modification-hooks to t temporarily before calling
6107 Ferase_buffer.
6108
6109 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
6110 inhibit-modification-hooks to t temporarily before calling
6111 Ferase_buffer.
6112
6113 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
6114 inhibit-modification-hooks to t temporarily before calling
6115 Ferase_buffer.
6116
cfe9d13e
KH
6117 * fns.c (count_combining): Delete it.
6118 (concat): Don't check combining bytes.
6119
ceb96489
JR
61202004-05-09 Jason Rumney <jasonr@gnu.org>
6121
6122 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
6123 (globals_of_w32fns): Set it.
6124
b6189c3b 61252004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
6126
6127 * data.c (Fquo): Simplify.
6128
28712a21
JB
61292004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
6130
6131 * data.c (Fquo): If any argument is float, do the computation in
6132 floating point.
6133
0f0af7a8
JB
61342004-05-08 Juanma Barranquero <lektu@terra.es>
6135
88214ef6
JB
6136 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
6137 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
6138 Fix spelling of Emacs on docstring.
6139 (Fset_process_coding_system, Fprocess_coding_system)
6140 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
6141 Make argument names match their use in docstring.
6142 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
6143 Fix docstring.
6144
0f0af7a8
JB
6145 * editfns.c (Finsert_buffer_substring): Make argument names match their
6146 use in docstring.
6147
6148 * syntax.c (Fmodify_syntax_entry): Fix docstring.
6149
2a316a84
ST
61502004-05-07 Steven Tamm <steventamm@mac.com>
6151
6152 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
6153 around call to ReceiveEvent to avoid certain crashes.
6154
61552004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 6156
2a316a84
ST
6157 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
6158 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
6159 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
6160 Save/restore the current graphics port and device handle when
6161 drawing into an offscreen graphics world.
6162
6163 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
6164 (gif_load): Likewise.
6165
ab80314b
JB
61662004-05-07 Juanma Barranquero <lektu@terra.es>
6167
6168 * window.c (Fset_window_buffer): Fix docstring.
6169
70646bb5
TTN
61702004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
6171
6172 * emacs.c (main) [VMS]: Fix var ref.
6173
b6189c3b 61742004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
6175
6176 * data.c (Fsetq_default): Fix docstring.
6177
279d3293
JR
61782004-05-06 Jason Rumney <jasonr@gnu.org>
6179
6180 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
6181 to avoid name clash.
6182
f72b5416
JD
61832004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6184
6185 * fileio.c (barf_or_query_if_file_exists): Use lstat.
6186 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 6187 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 6188
6ab66799
KS
61892004-05-04 Kim F. Storm <storm@cua.dk>
6190
6191 * xdisp.c (Qtotal): New var.
6192 (syms_of_xdisp): Intern and staticpro it.
6193 (calc_line_height_property): New arg total. Set it if
6194 line-spacing property has format (total . VALUE).
6195 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
6196 Handle total line-spacing property.
6197
ab2d724b
JD
61982004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6199
6200 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
6201 "under" scroll bar when size/position changes.
6202
238add5e
JR
62032004-05-03 Jason Rumney <jasonr@gnu.org>
6204
6205 * makefile.nt: Remove.
6206
1644f4e4
EZ
62072004-05-02 Eli Zaretskii <eliz@gnu.org>
6208
a267ab4d
SM
6209 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
6210 Avoid compiler warnings.
05fdbeb8 6211
1644f4e4
EZ
6212 * Makefile.in (region-cache.o): Depend on config.h.
6213
b6189c3b 62142004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
6215
6216 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
6217 with continuation lines, too.
6218
2b98b088
TTN
62192004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
6220
6221 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
6222
d9bf7950
SM
62232004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * xdisp.c (calc_line_height_property): YAILOM (yet another
6226 int/Lisp_Object mixup).
6227
affa509c
EZ
62282004-05-01 Eli Zaretskii <eliz@gnu.org>
6229
6230 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
6231 undo bad effect of pack(4) in some versions of system headers.
6232
07c07cfe
JR
62332004-05-01 Jason Rumney <jasonr@gnu.org>
6234
6235 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
6236
e71caa4e
KS
62372004-04-30 Kim F. Storm <storm@cua.dk>
6238
6239 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 6240 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
6241
6242 * dispextern.h (struct it): Remove member use_default_face.
6243 Add members override_ascent, override_descent, override_boff.
6244
6245 * xdisp.c (init_iterator): Handle line-spacing float value.
6246 Initialize override_ascent member.
6247 (append_space_for_newline): Reset override_ascent.
6248 Remove use_default_face.
6249 (calc_line_height_property): New function to calculate value of
6250 line-height and line-spacing properties. Look at overlays, too.
6251 Set override_ascent, override_descent, override_boff members when
6252 using another face than the current face. Float values are now
6253 relative to the frame default font, by default; accept a cons
6254 of ratio and face name to specify value relative to a specific face.
6255 (x_produce_glyphs): Use calc_line_height_property.
6256 Use override_ascent etc. when set to handle different face heights.
6257 A negative line-spacing property value is interpreted as a total
6258 line height, rather than inter-line spacing.
6259 (note_mouse_highlight): Allocate room for 40 overlays initially.
6260
0fddae66
SM
62612004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
6262
6263 * data.c (Fsubr_name): New fun.
6264 (syms_of_data): Defsubr it.
6265
712d23dc
KS
62662004-04-29 Kim F. Storm <storm@cua.dk>
6267
6268 * xdisp.c (null_glyph_slice): New var.
6269 (append_glyph, append_composite_glyph, append_stretch_glyph):
6270 Use it to initialize glyph slice.
6271
033ad8c6
SM
62722004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
6273
6274 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
6275 (on_hot_spot_p): Make sure we always return a value.
6276 (Flookup_image_map): Remove unused var ix and iy.
6277 (note_mode_line_or_margin_highlight): Remove unused var `image'.
6278
93397360
EZ
62792004-04-27 Eli Zaretskii <eliz@gnu.org>
6280
6281 * msdos.c (init_environment): If one of the TMP... environment
6282 variables is set to a drive letter without a trailing slash,
6283 append a slash.
6284
0c54865e
EZ
62852004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
6286
6287 * editfns.c (lisp_time_argument): Provide externally.
6288
6289 * fileio.c (Fset_file_times): New function.
6290 (syms_of_fileio): Intern and staticpro it.
6291
d3b111bd
KS
62922004-04-27 Kim F. Storm <storm@cua.dk>
6293
07dc1231
KS
6294 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
6295 header line strings.
6296
360fe9d2
KS
6297 * dispextern.h (struct it): New member use_default_face.
6298
d3b111bd
KS
6299 * xdisp.c (Qline_height): New variable.
6300 (syms_of_xdisp): Intern and staticpro it.
6301 (append_space_for_newline): Partially undo 2004-04-25 change;
6302 add default_face_p arg, and restore callers.
6303 Clear it->use_default_face after use.
6304 (x_produce_glyphs): Set default font for ascii char if
6305 it->use_default_font is set. Change line-spacing property to set
6306 just extra line spacing. Handle new line-height property.
6307
0448588b
AS
63082004-04-26 Andreas Schwab <schwab@suse.de>
6309
6310 * print.c (print_object): Print non-ascii characters in bool
6311 vector representation as octal escapes.
6312
6313 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
6314 * print.c (print_object): Use it instead of BITS_PER_CHAR for
6315 bool vectors.
6316 * lread.c (read1): Likewise.
6317 * alloc.c (Fmake_bool_vector): Likewise.
6318 * data.c (Faref, Faset): Likewise.
6319 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
6320 (mapcar1): Likewise.
d3b111bd 6321
536d6baa
ST
63222004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
6323
7e26f91b 6324 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 6325
ae11577a
MB
63262004-04-26 Miles Bader <miles@gnu.org>
6327
6328 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
6329
e198ba87
JB
63302004-04-26 Juanma Barranquero <lektu@terra.es>
6331
6332 * buffer.c (Fpop_to_buffer): Fix docstring.
6333
f3d5f92d 63342004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 6335
f3d5f92d
ST
6336 * lread.c (init_lread): Don't display missing lisp directory
6337 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 6338 may be built without correct installation path.
f3d5f92d 6339
03e35edc
KS
63402004-04-25 Kim F. Storm <storm@cua.dk>
6341
9ff3aa31
KS
6342 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6343
6344 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6345
03e35edc
KS
6346 * xdisp.c (append_space_for_newline): Rename from append_space.
6347 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
6348 (x_produce_glyphs): Handle line-spacing property on newline char.
6349 If value is t, adjust ascent and descent to fit current row height.
6350 If value is an integer or float, set extra_line_spacing to integer
6351 value, or to float value x current line height.
6352
f24814e0
KH
63532004-04-23 Kenichi Handa <handa@m17n.org>
6354
6355 * fontset.c (Finternal_char_font): If POSITION is nil, return
6356 font for displaying CH with the default face.
6357
d814862a
JB
63582004-04-23 Juanma Barranquero <lektu@terra.es>
6359
6360 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
6361
063a45c5
SM
63622004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
6363
6364 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
6365 Don't make assumptions about the relative place of i and val.
6366 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
6367
ae7ab2d3
KS
63682004-04-21 Kim F. Storm <storm@cua.dk>
6369
6370 * dispextern.h (struct glyph_slice): New struct.
6371 (struct glyph): New member slice.
6372 (GLYPH_SLICE_EQUAL_P): New macro.
6373 (GLYPH_EQUAL_P): Use it.
6374 (struct glyph_string): New member slice.
6375 (struct it_slice): New struct.
6376 (struct it): New member slice, add member to stack too.
6377 New member constrain_row_ascent_descent_p.
6378 (image_ascent): Add prototype.
6379
6380 * dispnew.c (buffer_posn_from_coords): Return full image width
6381 and height even for image slices (posn is relative to full image).
6382 (marginal_area_string): Adjust x0,y0 for image slice.
6383
6384 * image.c (image_ascent): Add slice arg; calculate ascent for
6385 image slice (or full image).
6386
6387 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
6388 (syms_of_keyboard): Defsubr them.
6389
6390 * lisp.h (pos_visible_p): Fix prototype.
6391
c62aec78 6392 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
6393 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6394 (x_draw_image_foreground, x_draw_image_relief)
6395 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6396 Draw sliced images.
6397
6398 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
6399 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6400 (x_draw_image_foreground, x_draw_image_relief)
6401 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
6402 Draw sliced images.
6403
6404 * w32term.h (image_ascent): Remove prototype.
6405
6406 * window.c (Fpos_visible_in_window_p): Return pixel position if
6407 PARTIALLY arg is non-nil. Simplify. Doc fix.
6408 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
6409 to return/set vscroll in pixels.
6410
6411 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
6412
6413 * xdisp.c (Qslice): New variable.
6414 (syms_of_xdisp): Intern and staticpro it.
6415 (pos_visible_p): Return pixel position in new x and y args.
6416 (init_iterator): Reset it->slice info.
6417 (handle_display_prop): Parse (slice ...) property.
6418 (push_it, pop_it): Save/restore slice info.
6419 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
6420 force repositioning of tall row if window is vscrolled, as that
6421 would reset vscroll.
6422 (append_space): Set it->constrain_row_ascent_descent_p to avoid
6423 increasing row height if row is non-empty.
6424 (fill_image_glyph_string): Copy slice info.
6425 (take_vertical_position_into_account): Simplify.
6426 (produce_image_glyph): Handle iterator slice info, setup glyph
6427 slice info. Do not force minimum line height.
6428 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
6429 do not increase height (ascent/descent) of non-empty row when
6430 adding normal character glyph; instead reduce glyph ascent/descent
6431 appropriately; if row is higher than current glyph, adjust glyph
6432 descent/ascent to reposition glyph within the existing row.
6433 Likewise, when char is newline, only set ascent/descent if row is
6434 currently empty.
6435 (note_mouse_highlight): Handle hotspots with sliced image.
6436
6437 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
6438 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6439 (x_draw_image_foreground, x_draw_image_relief)
6440 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6441 Draw sliced images.
6442
6443 * xterm.h (image_ascent): Remove prototype.
6444
d58f8753
SM
64452004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6446
6447 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
6448
4ce2719d
JPW
64492004-04-20 John Paul Wallington <jpw@gnu.org>
6450
6451 * fns.c (Fassoc, Feql): Fix indentation.
6452
d58f8753 6453 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 6454
95f8c3b9
JPW
64552004-04-19 John Paul Wallington <jpw@gnu.org>
6456
6457 * fns.c (Feql): New function.
d58f8753 6458 (syms_of_fns): Defsubr it.
95f8c3b9 6459
b7e85537
JR
64602004-04-18 Jason Rumney <jasonr@gnu.org>
6461
6462 * w32select.c (Fw32_set_clipboard_data): Get sequence number
6463 after closing the clipboard.
6464
5a72efd4
LT
64652004-04-16 Luc Teirlinck <teirllm@auburn.edu>
6466
6467 * buffer.c (Fbuffer_base_buffer): Doc fix.
6468
20dc8583
KS
64692004-04-17 Kim F. Storm <storm@cua.dk>
6470
60962ec4
KS
6471 * keymap.c (Fkey_description): Add optional PREFIX arg.
6472 Combine prefix with KEYS to make up the full key sequence to describe.
6473 Correlate meta_prefix_char and following (simple) key to describe
6474 as meta modifier. All callers changed.
6475 (describe_map): Rename arg `keys' to `prefix'. Remove local
6476 `elt_prefix' var. Use Fkey_description with prefix instead of
6477 elt_prefix combined with Fsingle_key_description.
6478 (describe_vector): Declare static. Replace arg `elt_prefix' with
6479 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 6480 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
6481 Fsingle_key_description.
6482
6483 * keymap.h (Fkey_description): Fix prototype.
6484 (describe_vector): Remove prototype.
6485
409368b9
KS
6486 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
6487
20dc8583
KS
6488 * image.c (PNG_BG_COLOR_SHIFT): Remove.
6489 (png_load): Fix calculation of transparent background color on X
6490 and W32 platforms.
6491
75c5501b
JB
64922004-04-16 Juanma Barranquero <lektu@terra.es>
6493
6494 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
6495 not too large before computing how much to scroll.
6496
da879ae8
SM
64972004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
6498
6499 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
6500
d01ca4a8
LT
65012004-04-14 Luc Teirlinck <teirllm@auburn.edu>
6502
6503 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
6504 Add hyperlink to Elisp manual to the docstring.
6505
572943b3
SM
65062004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * callint.c (fix_command): Use XDCR.
6509
5e30a0fb
NR
65102004-04-14 Nick Roberts <nick@nick.uklinux.net>
6511
6512 * window.c (Fget_lru_window): Doc fix.
6513
a27ddfaf
KS
65142004-04-14 Kim F. Storm <storm@cua.dk>
6515
6516 * editfns.c (Fformat): Fix allocation size of precision array.
6517
6518 * dispnew.c (update_window): Only set changed_p if
6519 scrolling_window actually did scroll.
6520 (scrolling_window): Only return 1 if we actually did scroll.
6521
6522 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
6523 height to glyph height when cursor row is not fully visible.
6524 (make_cursor_line_fully_visible): Add FORCE_P arg to return
6525 failure in case row is higher than window. Callers changed.
6526 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
6527 Try to scroll partially visible, higher-than-window cursor row.
6528 (redisplay_window): Always try to scroll partially visible,
6529 higher-than-window cursor row - both initially and again with
6530 centering_position = 0.
6531 Clear desired matrix before retrying with centering_position = 0.
6532
da879ae8
SM
65332004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6534
6535 * syntax.c (scan_lists): Simplify backward string scan.
6536 Fix off-by-one boundary check for string and comment fences.
6537
5fc16e8e
SM
65382004-04-13 Joe Buehler <jbuehler@hekimian.com>
6539
6540 * sheap.c, unexcw.c: New files.
6541
c9aac8e6
LT
65422004-04-12 Luc Teirlinck <teirllm@auburn.edu>
6543
6544 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
6545 base buffer has been killed. Correct the error message if the
6546 base buffer does not exist.
6547
1e88a355
SM
65482004-04-12 Joe Buehler <jbuehler@hekimian.com>
6549
6550 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
6551 Cygwin itself. Add support for Xaw3d scrollbars.
6552
6553 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
6554
6555 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
6556
6557 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
6558 before Cygwin unexec.
6559
6560 * Makefile.in: Link changes for Cygwin unexec() support.
6561
8dbff9a0
AS
65622004-04-12 Andreas Schwab <schwab@suse.de>
6563
6564 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
6565
54dffe35
LT
65662004-04-11 Luc Teirlinck <teirllm@auburn.edu>
6567
6568 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
6569 IGNORE argument equals NAME. Doc fix.
6570
99a72bdf
MY
65712004-04-11 Masatake YAMATO <jet@gyve.org>
6572
1e88a355 6573 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
6574 empty if they are backwards.
6575
40899d7b
SM
65762004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6577
6578 * xfaces.c (face_color_supported_p): Fix compilation without X11.
6579
f8f853de
SM
65802004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
6581
6582 * doc.c (Fsnarf_documentation): Ignore new file name entries.
6583
c953fe1b
KS
65842004-04-06 Kim F. Storm <storm@cua.dk>
6585
661e85c1
KS
6586 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6587 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
6588
6589 * w32term.c (w32_read_socket): Set mouse_face_hidden after
6590 clearing highlight.
6591
6592 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6593
6594 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
6595 clearing highlight.
6596
c953fe1b
KS
6597 * indent.c (vmotion): Do not reserve one column for continuation
6598 marks on window frames.
6599
c1994268
EZ
66002004-04-04 Eli Zaretskii <eliz@gnu.org>
6601
6602 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
6603 from GCC.
6604
9f691b0d
SM
66052004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
6606
6607 * .gdbinit-union: Remove.
6608
6609 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
6610 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
6611 ($nonvalbits): Remove.
6612 ($valmask): Set it by calling xreload to avoid redundancy.
6613
6614 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
6615 (gdb_emacs_intbits): Remove.
6616
7a8560d7
JD
66172004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6618
9f691b0d 6619 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 6620
3c8111fc
KH
66212004-03-30 Kenichi Handa <handa@m17n.org>
6622
6623 * editfns.c (Fformat): Fix initialization of the array info.
6624
48a0bce4
KS
66252004-03-30 Kim F. Storm <storm@cua.dk>
6626
6627 * xterm.c (x_mouse_click_focus_ignore_position): New var.
6628 (syms_of_xterm): DEFVAR_BOOL it.
6629 (ignore_next_mouse_click_timeout): New var.
6630 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
6631 Use it to filter mouse clicks following focus event.
6632
1cd0066c
KS
66332004-03-29 David Ponce <david@dponce.com>
6634
6635 * callint.c (Fcall_interactively): Fix last change.
6636
adb3b353
SM
66372004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6638
6639 * eval.c (Fcommandp): Simplify.
6640
6641 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
6642 Extend to handle all kinds of functions.
6643
6644 * lisp.h (Finteractive_form): Declare.
6645
6646 * callint.c (Fcall_interactively): Use it.
6647
6fc4c9c9
KS
66482004-03-26 Kim F. Storm <storm@cua.dk>
6649
6650 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
6651 to catch errors in calc_pixel_width_or_height during redisplay.
6652
abdb9b83
MY
66532004-03-26 Masatake YAMATO <jet@gyve.org>
6654
b17856dd 6655 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 6656
b17856dd 6657 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 6658
b17856dd 6659 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 6660
b17856dd 6661 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 6662
e8a84b6c
JD
66632004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6664
b17856dd 6665 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 6666
36a3fd05
RS
66672004-03-19 Richard M. Stallman <rms@gnu.org>
6668
6669 * s/sol2-6.h: Delete previous change.
6670
ab24c127
KS
66712004-03-19 Kim F. Storm <storm@cua.dk>
6672
6673 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
6674 to_charpos corresponds to newline in right fringe. Use local
6675 BUFFER_POS_REACHED_P macro.
6676
992126de
JD
66772004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6678
6679 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
6680 to compile on non-window system.
6681
45dbfc84
KS
66822004-03-19 Kim F. Storm <storm@cua.dk>
6683
6684 * dispextern.h (calc_pixel_width_or_height): Add prototype.
6685
6686 * image.c (Qcenter): Move to xdisp.c.
6687
6688 * xdisp.c (Qcenter): Declare here.
adb3b353 6689 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
6690 (handle_single_display_prop): Allow space display property on all
6691 platforms.
6692 (display_mode_line): Set mode_line_p before displaying line.
6693 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
6694 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 6695 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
6696 width/height. Return width or height for image specs.
6697 (produce_stretch_glyph): Improve handling of :align-to. Is now
6698 relative to left of text area by default, but other base offsets
6699 can be specified -- also for text lines.
6700
6701 * term.c (produce_glyphs): Handle IT_STRETCH.
6702 (produce_stretch_glyph): New function to handle space width and
6703 align-to display properties on non-window systems.
6704
37264101
SM
67052004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6706
6707 * fileio.c (Fread_file_name): Set completion-ignore-case for
6708 case-insensitive systems.
6709
73bc43da
MY
67102004-03-14 Masatake YAMATO <jet@gyve.org>
6711
6712 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
6713 when keymap and cursor are setup.
6714
d5fb8dab 67152004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 6716
b17856dd 6717 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 6718
e4b1b5ab
KS
67192004-03-14 Kim F. Storm <storm@cua.dk>
6720
6721 * dispextern.h (x_find_image_file): Add prototype.
6722
6723 * image.c (x_find_image_file): Make extern.
6724
6725 * xfns.c (x_find_image_file): Remove prototype.
6726
a6eeaa81 67272004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 6728
37264101 6729 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 6730
37264101 6731 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 6732
e69cfac2
RS
67332004-03-12 Richard M. Stallman <rms@gnu.org>
6734
6735 * fns.c (internal_equal): New arg PROPS controls comparing
6736 text properties. All callers changed.
6737 (Fequal_including_properties): New function.
6738 (syms_of_fns): defsubr it.
6739
45034953
KS
67402004-03-12 Kim F. Storm <storm@cua.dk>
6741
6742 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 6743
45034953
KS
6744 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
6745 (image_background, image_background_transparent): Fix prototypes.
6746
37264101 6747 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
6748
6749 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
6750 (x_query_font, x_find_ccl_program, x_set_window_size)
6751 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6752 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6753 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
6754
6755 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
6756 (x_query_font, x_find_ccl_program, x_set_window_size)
6757 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6758 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6759 (mac_draw_line_to_pixmap): Add prototypes.
6760
67612004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6762
6763 * macterm.c (XTread_socket): Fix mouse click on tool bar.
6764
a12d3d87
KS
67652004-03-11 Kim F. Storm <storm@cua.dk>
6766
d3ab1cf1
KS
6767 * dispextern.h: Move image related prototypes from xfns.c section
6768 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
6769 HAVE_X_WINDOWS.
37264101 6770
37de9f51 6771 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 6772 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
6773 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
6774 (GTK_OBJ) [USE_GTK]: New declaration.
6775 (obj): Add $(GTK_OBJ) to list.
6776
d5fb8dab 67772004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 6778
7e26f91b 6779 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
6780
6781 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 6782 defined in image.c.
5243c06a 6783
c0f97789
KS
67842004-03-11 Kim F. Storm <storm@cua.dk>
6785
6786 The following changes consolidates the identical/similar image
6787 support code previously found in xfns.c, w32fns.c, and macfns.c
6788 into a new file image.c.
6789
6790 * makefile.w32-in (OBJ1): Add image.o.
6791 ($(BLD)/image.$(O)): Add dependencies.
6792
6793 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
6794 (image.o): Add dependencies.
37264101 6795
c0f97789
KS
6796 * image.c: New file with consolidated image support code.
6797 (COLOR_TABLE_SUPPORT): New define to control whether
6798 color table support is available (X only).
6799 (Bitmap_Record): Common name for x_bitmap_record,
6800 w32_bitmap_record, and mac_bitmap_record.
6801 (XImagePtr): Common name for pointer to XImage or equivalent.
6802 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
6803 to XImagePtr on X+MAC, and to HDC on W32.
6804 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
6805 (NO_PIXMAP): Common name for "None" or equivalent.
6806 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
6807 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
6808 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
6809 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
6810 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
6811 (XDrawLine): Define on MAC for code sharing.
6812 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
6813 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
6814 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6815 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6816 (x_reference_bitmap, x_create_bitmap_from_data)
6817 (x_create_bitmap_from_file, x_destroy_bitmap)
6818 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6819 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6820 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6821 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6822 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6823 (define_image_type, lookup_image_type, valid_image_p)
6824 (image_error, enum image_value_type, struct image_keyword)
6825 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6826 (make_image, free_image, prepare_image_for_display, image_ascent)
6827 (four_corners_best, image_background, image_background_transparent)
6828 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6829 (make_image_cache, free_image_cache, clear_image_cache)
6830 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6831 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6832 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6833 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6834 (init_image_func_pointer, image_load_quartz2d)
6835 (struct ct_color, init_color_table, free_color_table)
6836 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6837 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6838 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6839 (x_disable_image, x_build_heuristic_mask)
6840 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6841 (TIFF support, GIF support, Ghostscript support): Consolidate image
6842 code from xfns.c, w32fns.c, and macfns.c.
6843 (syms_of_image): Consolidate image related symbol setup here.
6844 (init_image): Consolidate image related initializations here.
37264101 6845
c0f97789
KS
6846 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
6847 and init_image. Remove call to init_xfns.
6848
37264101
SM
6849 * macterm.h (struct mac_bitmap_record): Add file member.
6850 Not currently used, but simplifies code sharing.
c0f97789
KS
6851
6852 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6853 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6854 (x_reference_bitmap, x_create_bitmap_from_data)
6855 (x_create_bitmap_from_file, x_destroy_bitmap)
6856 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6857 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6858 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6859 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6860 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6861 (define_image_type, lookup_image_type, valid_image_p)
6862 (image_error, enum image_value_type, struct image_keyword)
6863 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6864 (make_image, free_image, prepare_image_for_display, image_ascent)
6865 (four_corners_best, image_background, image_background_transparent)
6866 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6867 (make_image_cache, free_image_cache, clear_image_cache)
6868 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6869 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6870 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6871 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6872 (init_image_func_pointer, image_load_quartz2d)
6873 (struct ct_color, init_color_table, free_color_table)
6874 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6875 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6876 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6877 (x_disable_image, x_build_heuristic_mask)
6878 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6879 (TIFF support, GIF support, Ghostscript support): Merge with image
6880 code from xfns.c and macfns.c into image.c.
6881 (syms_of_xfns): Move image related symbols to image.c.
6882 (init_external_image_libraries, init_xfns): Remove; initialization
6883 moved to init_image in image.c.
6884
6885 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6886 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6887 (x_reference_bitmap, x_create_bitmap_from_data)
6888 (x_create_bitmap_from_file, x_destroy_bitmap)
6889 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6890 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6891 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6892 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6893 (define_image_type, lookup_image_type, valid_image_p)
6894 (image_error, enum image_value_type, struct image_keyword)
6895 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6896 (make_image, free_image, prepare_image_for_display, image_ascent)
6897 (four_corners_best, image_background, image_background_transparent)
6898 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6899 (make_image_cache, free_image_cache, clear_image_cache)
6900 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6901 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6902 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6903 (struct ct_color, init_color_table, free_color_table)
6904 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6905 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6906 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6907 (x_disable_image, x_build_heuristic_mask)
6908 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6909 (TIFF support, GIF support, Ghostscript support): Merge with image
6910 code from xfns.c and macfns.c into image.c.
6911 (syms_of_xfns): Move image related symbols to image.c.
6912 (init_external_image_libraries, init_xfns): Remove; initialization
6913 moved to init_image in image.c.
6914
6915 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6916 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6917 (x_reference_bitmap, x_create_bitmap_from_data)
6918 (x_create_bitmap_from_file, x_destroy_bitmap)
6919 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6920 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6921 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6922 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6923 (define_image_type, lookup_image_type, valid_image_p)
6924 (image_error, enum image_value_type, struct image_keyword)
6925 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6926 (make_image, free_image, prepare_image_for_display, image_ascent)
6927 (four_corners_best, image_background, image_background_transparent)
6928 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6929 (make_image_cache, free_image_cache, clear_image_cache)
6930 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6931 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6932 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6933 (struct ct_color, init_color_table, free_color_table)
6934 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6935 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6936 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6937 (x_disable_image, x_build_heuristic_mask)
6938 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6939 (TIFF support, GIF support, Ghostscript support): Merge with
6940 w32fns.c and macfns.c image code into image.c.
6941 (syms_of_xfns): Move image related symbols to image.c.
6942 (init_xfns): Remove; initialization moved to init_image in image.c.
6943
6944 * lisp.h (syms_of_image, init_image): Add protoypes.
6945 (init_xfns): Remove prototype.
6946
6947 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6948 (x_reference_bitmap, x_create_bitmap_from_data)
6949 (x_create_bitmap_from_file, x_destroy_bitmap)
6950 (x_create_bitmap_mask): Move prototypes from dispextern.h.
6951 (gamma_correct) [MAC_OS]: Add prototype.
6952
6953 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6954 (x_reference_bitmap, x_create_bitmap_from_data)
6955 (x_create_bitmap_from_file, x_destroy_bitmap)
6956 (x_create_bitmap_mask): Move prototypes to dispextern.h.
6957
6eced09c
KH
69582004-03-09 Kenichi Handa <handa@etlken2>
6959
6960 * coding.c (decode_coding_emacs_mule): Handle insufficent source
6961 correctly.
6962
9a7e95f3
RS
69632004-03-04 Richard M. Stallman <rms@gnu.org>
6964
04a6e76b
RS
6965 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
6966
9a7e95f3
RS
6967 * window.c (Fdisplay_buffer): Doc fix.
6968
6969 * buffer.c (Fpop_to_buffer): Doc fix.
6970
6c2488df
KS
69712004-03-03 Kim F. Storm <storm@cua.dk>
6972
6973 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
6974
d8d95bc7
SM
69752004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
6976
6977 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
6978
357589bf
RS
69792004-03-02 Richard M. Stallman <rms@gnu.org>
6980
6981 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
6982
409949b5
KH
69832004-03-02 Kenichi Handa <handa@m17n.org>
6984
6985 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
6986
d24bc50f
KS
69872004-03-02 Kim F. Storm <storm@cua.dk>
6988
6989 * window.h (struct window): New member overlay_arrow_bitmap.
6990
6991 * window.c (make_window): Initialize overlay_arrow_bitmap.
6992
6993 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
6994 implement and integrate multiple overlay arrows with redisplay.
6995 (syms_of_xdisp): DEFVAR_LISP and initialize it.
6996 (last_arrow_position, last_arrow_string): Replace by properties.
6997 (Qlast_arrow_position, Qlast_arrow_string)
6998 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
6999 (syms_of_xdisp): Intern and staticpro them.
7000 (overlay_arrow_string_or_property, update_overlay_arrows)
7001 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
7002 (overlay_arrow_at_row): New functions for multiple overlay arrows.
7003 (redisplay_internal): Use them instead of directly accessing
7004 Voverlay_arrow_position etc. for multiple overlay arrows.
7005 (mark_window_display_accurate): Use update_overlay_arrows.
7006 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
7007 (try_window_id): Use overlay_arrows_changed_p.
7008 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
7009 (display_line): Use overlay_arrow_at_row to check multiple
7010 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 7011 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
7012 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
7013 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
7014
7015 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
7016 (update_window_fringes): Remove unused code.
7017
c1464661
JR
70182004-03-01 Jason Rumney <jasonr@gnu.org>
7019
7020 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
7021
a64387ee
JB
70222004-03-01 Juanma Barranquero <lektu@terra.es>
7023
7024 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
7025
7026 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
7027
334faa08
JD
70282004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7029
7030 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
7031 how many colors can be displayed.
7032
bb62616f
KH
70332004-03-01 Kenichi Handa <handa@m17n.org>
7034
7035 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
7036 correctly.
7037
0fd16104
KS
70382004-02-28 Kim F. Storm <storm@cua.dk>
7039
7040 * dispnew.c (update_window): Update header line also if there are
7041 no other changes in window (move code after set_cursor label).
7042
7043 * lisp.h (mark_window_display_accurate): Remove prototype.
7044
7045 * window.c (window_loop, Fforce_window_update): Force mode line
7046 updates by setting prevent_redisplay_optimizations_p and
7047 update_mode_lines.
7048
b59dd9c8
JD
70492004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7050
d8d95bc7 7051 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
7052
7053 * xterm.c (x_calc_absolute_position): Call x_real_positions
7054 to get WM window sizes and use those to calculate position.
d8d95bc7 7055 (x_set_offset): Remove code commented out.
b59dd9c8 7056
a874691c
MB
70572004-02-28 Miles Bader <miles@gnu.org>
7058
7059 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
7060
3e0c6482
KS
70612004-02-28 Kim F. Storm <storm@cua.dk>
7062
7063 * keyboard.c (kbd_buffer_store_event_hold): New function to store
7064 an event into kbd fifo, but with special handling of quit event;
7065 a quit event is saved for later, and further events are discarded
7066 until the saved quit event has been processed.
7067 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
7068 (gen_help_event): Store help event in kbd fifo.
7069 (NREAD_INPUT_EVENTS): Remove.
7070 (read_avail_input): Adapt to new read_socket_hook interface.
7071 Remove allocation and initialization of local input_event buffer,
7072 as read_socket_hook stores events directly in fifo. Allocate and
7073 initialize local hold_quit event to handle postponed quit event
7074 (and store it if set by kbd_buffer_store_event_hold).
7075
7076 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
7077 (gen_help_event): Fix prototype.
7078
a64387ee 7079 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 7080 numcharsp args. Add hold_quit arg.
f63fd14e 7081 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
7082 directly in fifo using kbd_buffer_store_event_hold.
7083
7084 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
7085 (read_input_waiting): Adapt to new read_socket_hook interface.
7086 Remove allocation and initialization of local input_event buffer,
7087 as read_socket_hook stores events directly in fifo. Allocate and
7088 initialize local hold_quit event to handle postponed quit event
7089 (and store it if set by kbd_buffer_store_event_hold).
7090
a64387ee 7091 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
7092
7093 * termhooks.h (read_socket_hook): Fix prototype.
7094
7095 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
7096 numcharsp args. Add hold_quit arg.
f63fd14e 7097 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
7098 directly in fifo using kbd_buffer_store_event_hold.
7099
7100 * w32inevt.h (w32_console_mouse_position): Fix prototype.
7101
7102 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
7103 Add hold_quit arg. Rework to use just one, local, inev
7104 input_event. Store inev directly in fifo using
3e0c6482
KS
7105 kbd_buffer_store_event_hold. Update count in one place.
7106 Postpone call to gen_help_event until inev is stored; use new
7107 local do_help for this.
7108 Remove local emacs_event in handing of ButtonPress event; just use
7109 inev instead (so no reason to copy it later).
7110
7111 * xsmfns.c (x_session_check_input): Remove numchars arg.
7112
d8d95bc7
SM
7113 * xterm.c (x_focus_changed, x_detect_focus_change):
7114 Remove numchars arg. Always store event into bufp arg.
7115 Return nothing. Callers changed accordingly.
3e0c6482
KS
7116 (glyph_rect): Simplify.
7117 (STORE_KEYSYM_FOR_DEBUG): New macro.
7118 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
7119 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
7120 (current_hold_quit) [USE_GTK]: Add.
7121 (event_handler_gdk): Adapt to new handle_one_xevent.
7122 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
7123 Add hold_quit arg. Rework to use just one, local, inev
7124 input_event. Store inev directly in fifo using
3e0c6482
KS
7125 kbd_buffer_store_event_hold. Update count in one place.
7126 Postpone call to gen_help_event until inev is stored; use new
7127 local do_help for this.
7128 Simplify handling of keysyms (consolidate common code). Fix bug
7129 where count was updated with nchars instead of nbytes.
7130 Remove local emacs_event in handing of ButtonPress event; just use
7131 inev instead (so no reason to copy it later).
7132 Remove `out' label. Rename label `ret' to `done'; add various
7133 `goto done' to clarify code flow in deeply nested blocks.
7134 (x_dispatch_event): Simplify as handle_one_xevent now calls
7135 kbd_buffer_store_event itself.
f63fd14e 7136 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
7137 arg. Call handle_one_xevent with new arglist. Store event from
7138 x_session_check_input in fifo.
7139 [USE_GTK]: Setup current_hold_quit.
7140 Decrement handling_signal before unblocking input.
7141 (x_initialize) [USE_GTK]: Initialize current_count.
7142
7143 * xterm.h (x_session_check_input): Fix prototype.
7144
e3564461 71452004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 7146
d8d95bc7 7147 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 7148
e3564461
ST
7149 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
7150 macgui.h).
a64387ee 7151
e3564461 7152 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 7153
e3564461
ST
7154 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
7155 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
7156 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
7157 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
7158 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
7159 (Bitmap): Remove typedef.
7160 (Pixmap): Change int to GWorldPtr.
7161
d8d95bc7 7162 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 7163
d8d95bc7
SM
7164 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
7165 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
7166 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
7167 long representation.
7168 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
7169 colors used for masks.
7170 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 7171
e3564461
ST
7172 * macfns.c: Include sys/types.h and sys/stat.h.
7173 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
7174 Include QuickTime/QuickTime.h.
7175 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7176 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
7177 functions defined in macterm.c.
7178 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
7179 (ZPixmap): New #define for compatibility with xfns.c.
7180 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7181 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
7182 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
7183 New functions.
e3564461 7184 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
7185 (x_destroy_x_image, unwind_create_frame, x_disable_image)
7186 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
7187 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
7188 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
7189 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
7190 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
7191 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
7192 long mixup.
7193 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
7194 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
7195 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
7196 (x_set_cursor_type, Fxw_color_values, valid_image_p)
7197 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
7198 (x_alloc_image_color, clear_image_cache, lookup_image)
7199 (x_find_image_file, xbm_read_bitmap_file_data)
7200 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
7201 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
7202 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
7203 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
7204 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 7205 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
7206 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
7207 #if 0.
7208 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
7209 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
7210 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
7211 New functions (from xfns.c).
e3564461
ST
7212 (Fx_create_frame): Record unwind_create_frame.
7213 (Fxw_display_color_p): Use dpyinfo->color_p.
7214 (Fx_display_grayscale_p, Fx_display_planes): Don't use
7215 dpyinfo->n_cbits.
7216 (Fx_display_color_cells): Use dpyinfo->n_planes;
7217 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
7218 (Qheuristic, cross_disabled_images, emboss_matrix)
7219 (laplace_matrix): New variables (from xfns.c).
7220 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
7221 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
7222 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
7223 (image_background_transparent): New function (from xfns.c).
7224 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7225 (image_load_quicktime): Add declaration.
7226 [MAC_OSX] (image_load_quartz2d): Likewise.
7227 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
7228 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 7229 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
7230 (xbm_load_image_from_file, x_laplace_read_row)
7231 (x_laplace_write_row, pbm_read_file): Remove functions.
7232 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
7233 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
7234 (colors_in_color_table): Sync with xfns.c (although not used).
7235 (lookup_rgb_color): Don't lookup color table. Just do gamma
7236 correction.
7237 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
7238 (x_disable_image): New function (from xfns.c).
7239 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7240 (x_build_heuristic_mask): Sync with xfns.c.
7241 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7242 (HAVE_PBM): Remove #ifdef.
7243 (pbm_load): Sync with xfns.c. Set img->width and img->height
7244 before IMAGE_BACKGROUND.
d8d95bc7 7245 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
7246 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
7247 Don't enclose with #if HAVE_PNG.
7248 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
7249 symbol _CGImageCreateWithPNGDataProvider is defined.
7250 Otherwise use image_load_quicktime.
e3564461 7251 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
7252 [HAVE_PNG] (png_load): Sync with xfns.c.
7253 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7254 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
7255 HAVE_JPEG.
7256 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
7257 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
7258 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
7259 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
7260 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
7261 (tiff_image_p, tiff_load): Don't enclose declarations with #if
7262 HAVE_TIFF.
7263 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
7264 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
7265 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
7266 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
7267 New functions (from xfns.c).
e3564461 7268 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 7269 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
7270 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
7271 Don't enclose with #if HAVE_GIF.
7272 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
7273 animated gif. Otherwise use image_load_quicktime.
7274 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
7275 gif_DrawText to avoid conflict with QuickdrawText.h.
7276 [HAVE_GIF] (gif_load): Sync with xfns.c.
7277 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
7278 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
7279 Ghostscript is not supported yet).
7280 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
7281 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
7282 cross_disabled_images (from xfns.c). Remove #if 0 for supported
7283 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
7284 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
7285 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
7286 HAVE_PNG. Call EnterMovies to support animated gifs.
7287 Call init_image_func_pointer to bind a symbol
e3564461 7288 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 7289
d8d95bc7 7290 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
7291 (x_draw_bar_cursor): Sync declaration with xterm.c.
7292 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
7293 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
7294 graphics).
7295 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
7296 (mac_draw_line_to_pixmap, XCreatePixmap)
7297 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
7298 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
7299 New functions.
7300 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
7301 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
7302 Cast bits to char *.
e3564461
ST
7303 (reflect_byte): New function (from w32fns.c).
7304 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
7305 due to byte alignment.
d8d95bc7
SM
7306 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
7307 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
7308 (XSetForeground): Remove static (now used in macfns.c).
7309 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
7310 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
7311 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
7312 (x_draw_glyph_string_box, x_draw_image_foreground)
7313 (x_draw_image_foreground_1, x_draw_image_glyph_string)
7314 (x_draw_stretch_glyph_string, x_draw_glyph_string)
7315 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
7316 Sync with xterm.c.
7317 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
7318 than the xterm.c version when a strictly horizontal or vertical
7319 line is drawn.
7320 (XTset_terminal_window): Add static.
7321 (x_make_frame_visible): Add UNBLOCK_INPUT.
7322 (x_free_frame_resources): New funcion (from xterm.c).
7323 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
7324 occurs in tool bar area.
d8d95bc7
SM
7325 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
7326 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
7327 Initialize image cache.
7328 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
7329 Enclose unused functions with #if 0.
7330 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
7331 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 7332 from a mac font name to an XLFD font name according to its script code.
e3564461 7333 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 7334 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
7335 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
7336 whose name starts with `.'.
7337 (init_font_name_table): Use decode_mac_font_name. Add both
7338 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
7339 of a font is smJapanese.
7340 (mac_do_list_fonts): New function to list fonts that match a given
7341 pattern.
7342 (x_list_fonts, XLoadQueryFont): Use it.
7343 (XLoadQueryFont): Set rbearing field for each variable width
7344 character to avoid needless redraw.
7345 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
7346
446f5f3d
KS
73472004-02-26 Kim F. Storm <storm@cua.dk>
7348
af617d0f
KS
7349 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
7350 as read_socket_hook handler on X aborts if buffer is too small
7351 and W32 handler doesn't always check buffer limit.
7352
446f5f3d
KS
7353 * xdisp.c (handle_single_display_prop): Handle left-fringe and
7354 right-fringe similar to a display margin image. Specifically,
7355 the characters having the fringe prop are no longer shown, and
7356 we use IT_IMAGE/next_element_from_image with image_id = -1 to
7357 do this. Set fringe bitmap face_id in it->face_id.
7358 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
7359 still realize it->face (i.e. the fringe bitmap face).
7360
7d8a0b55
MB
73612004-02-25 Miles Bader <miles@gnu.org>
7362
7363 * xdisp.c (check_it): Check string/string_pos consistency.
7364 (init_iterator): Initialize string-related fields properly.
7365
73662004-02-11 Miles Bader <miles@gnu.org>
7367
7368 * xdisp.c (produce_image_glyph): Force negative descents to zero.
7369
73702004-02-10 Miles Bader <miles@gnu.org>
7371
7372 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
7373 BLOCK_INPUT can be nested, so it doesn't make much sense.
7374
a64387ee 73752004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
7376
7377 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
7378 (xbm_read_bitmap_data): Use unsigned char for image data.
7379
92f5fba2
LT
73802004-02-23 Luc Teirlinck <teirllm@auburn.edu>
7381
7382 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
7383
8565fb3d
JR
73842004-02-22 Jason Rumney <jasonr@gnu.org>
7385
7386 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
7387 correctly over other bitmaps.
7388
a6eeaa81 73892004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
7390
7391 * emacs.c (USAGE1): Split into two halves.
7392 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
7393 (USAGE3): Rename from USAGE2.
7394 (USAGE4): Rename from USAGE3.
f8125c39 7395
4effffca
EZ
73962004-02-21 Juri Linkov <juri@jurta.org>
7397
7398 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
7399 Fix --multibyte. Move --help, --version to USAGE2. Add alias
7400 --file. Fix -f, -l. Sort options. Untabify.
7401 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
7402
923c1e6f
LT
74032004-02-19 Luc Teirlinck <teirllm@auburn.edu>
7404
7405 * category.c (Fdefine_category, Fcategory_docstring)
7406 (Fget_unused_category, Fset_category_table)
7407 (Fcategory_set_mnemonics): Doc fixes.
7408
b0e225fd
KS
74092004-02-20 Kim F. Storm <storm@cua.dk>
7410
7411 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
7412 The following changes are relative to the 2004-01-21 revision.
7413 (NREAD_INPUT_EVENTS): Define as max number of input events to read
7414 in one call to read_socket_hook. Value is 8.
7415 (read_avail_input): Separate and rework handling of read_socket_hook
7416 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
7417 in read_socket_hook case, and repeat if full buffer is read.
7418 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
7419 In non-read_socket_hook case, just use a single input_event, and
7420 call kbd_buffer_store_event on the fly for each character.
7421
b15aa9f9
SM
74222004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7423
7424 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
7425 Remove unused `gu' alternative.
7426
83c9aa95
AS
74272004-02-19 Andreas Schwab <schwab@suse.de>
7428
7429 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
7430 warning.
7431
cc808173
KS
74322004-02-18 Kim F. Storm <storm@cua.dk>
7433
7434 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
7435 Fix last change.
7436
ab90a54d
KS
74372004-02-17 Kim F. Storm <storm@cua.dk>
7438
b26f249f
KS
7439 * xdisp.c (fast_find_position): Fix return value of new version;
7440 it was inverted compared to the 21.1 version.
7441 (get_window_cursor_type): Don't look at glyph if NULL.
7442 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 7443
ab90a54d
KS
7444 * keyboard.c: Rework previous change; it didn't consider that the
7445 buf array was allocated on the stack.
7446 (prev_read): Remove variable.
7447 (read_avail_input_buf): New static event buffer array.
b9568dfc 7448 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 7449 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
7450 Use in_read_avail_input to handle re-entrance; when re-entered,
7451 fully initialize and use tmp_buf array instead of read_avail_input_buf.
7452 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
7453 is always cleared on entry. To ensure that, we clear (just) the
7454 entries that were used before we return.
7455 (init_keyboard): Initialize read_avail_input_buf here.
7456
b6189c3b 74572004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
7458
7459 * cmds.c (Fend_of_line): Doc fix.
7460
7b5368c1
EZ
74612004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
7462
7463 * keyboard.c (prev_read): New static variable.
7464 (read_avail_input): Use it to zero out only those slots in buf[]
7465 that were used last time we were called.
7466
a6eeaa81 74672004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
7468
7469 * Makefile.in (obj): Move fringe.o from here...
7470 (XOBJ, MAC_OBJ): ...to here.
7471
159c348e
SE
74722004-02-16 Stephen Eglen <stephen@gnu.org>
7473
7474 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
7475
d2f14999
SM
74762004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
7477
b15aa9f9
SM
7478 * data.c (Fbyteorder):
7479 * fringe.c (Fdefine_fringe_bitmap):
7480 * xdisp.c (handle_single_display_prop):
d2f14999
SM
7481 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
7482
8d50508a
JR
74832004-02-16 Jason Rumney <jasonr@gnu.org>
7484
7485 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
7486
dd4497dc
ST
74872004-02-15 Steven Tamm <steventamm@mac.com>
7488
7489 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
7490 controlling emulation of a three button mouse with option and
7491 command keys.
7e26f91b 7492 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 7493 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 7494
c9159cb3
KS
74952004-02-15 Kim F. Storm <storm@cua.dk>
7496
2cc52658
KS
7497 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
7498
c9159cb3
KS
7499 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
7500 Perform byte-swapping.
7501
12fde2dc
KS
75022004-02-14 Kim F. Storm <storm@cua.dk>
7503
7504 * dispextern.h (struct draw_fringe_bitmap_params): Change member
7505 bits from char to short to facilitate wider bitmaps.
7506 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
7507 member.
7508
7509 * fringe.c (struct fringe_bitmap): Change member bits from char to
7510 short to facilitate 16 bits wide bitmaps. Modify all standard
7511 bitmaps accordingly.
7512 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
7513 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
7514 (draw_fringe_bitmap): Ditto.
7515 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
7516 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
7517 handle up to 16 bits wide bitmaps.
7518 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 7519 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
7520
7521 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
7522 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
7523 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
7524
7525 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
7526 so it is no longer necessary to expand them here.
7527
7528 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
7529
9d7271e8
KS
75302004-02-12 Kim F. Storm <storm@cua.dk>
7531
7532 * window.c (Fwindow_fringes): Doc fix.
7533
706c1e4f
JD
75342004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7535
7536 * xselect.c (x_get_foreign_selection): Add new optional parameter
7537 time_stamp.
7538 (Fx_get_selection_internal): Ditto, pass time_stamp to
7539 x_get_foreign_selection.
7540
7541 * data.c (Fbyteorder): New function.
7542
c2d12b5d
JD
75432004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7544
7545 * atimer.c: Move include stdio.h to same place as in other files.
7546
7547 * region-cache.c: Ditto.
7548
7549 * sysdep.c: Ditto.
7550
7551 * xfaces.c: Ditto.
7552
4c1947b9
SS
75532004-02-09 Sam Steingold <sds@gnu.org>
7554
89458937 7555 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 7556
82722af3
KS
75572004-02-09 Kim F. Storm <storm@cua.dk>
7558
7559 * fringe.c: New file. Move original fringe related declarations
7560 and code from dispextern.h and xdisp.c here.
7561 Rework code to support user defined fringe bitmaps, redefining
7562 standard bitmaps, ability to overlay user defined bitmap with
7563 overlay arrow bitmap, and add faces to bitmaps.
7564 (Voverflow_newline_into_fringe): Declare here.
7565 (enum fringe_bitmap_align): New enum.
7566 (..._bits): All bitmaps are now defined without bitswapping; that
7567 is now done in init_fringe_once (if necessary).
7568 (standard_bitmaps): New array with specifications for the
7569 standard fringe bitmaps.
7570 (fringe_faces): New array.
7571 (valid_fringe_bitmap_id_p): New function.
7572 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
7573 (draw_fringe_bitmap): New function which draws fringe bitmap,
7574 possibly overlaying bitmap with cursor in right fringe or the
7575 overlay arrow in the left fringe.
7576 (update_window_fringes): Do not handle overlay arrow here.
7577 Compare and copy fringe bitmap faces.
7578 (init_fringe_bitmap): New function.
7579 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
7580 define and destroy user defined fringe bitmaps.
7581 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
7582 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
7583 (syms_of_fringe): New function. Defsubr new DEFUNs.
7584 DEFVAR_LISP Voverflow_newline_into_fringe.
7585 (init_fringe_once, init_fringe): New functions.
7586 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 7587
82722af3
KS
7588 * Makefile.in (obj): Add fringe.o.
7589 (fringe.o): New dependencies.
7590
7591 * dispextern.h (FRINGE_ID_BITS): New definition for number of
7592 bits allocated to hold a fringe number. Increase number of bits
7593 from 4 to 8 to allow user defined fringe bitmaps.
7594 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
7595 left_user_fringe_face_id, right_user_fringe_bitmap,
7596 right_user_fringe_face_id.
7597 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
7598 Move to new file fringe.c.
7599 (MAX_FRINGE_BITMAPS): Define here.
7600 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
7601 and overlay_p. Change member which to int.
7602 (struct redisplay_interface): New members define_fringe_bitmap
7603 and destroy_fringe_bitmap.
7604 (valid_fringe_bitmap_id_p): Add prototype.
7605 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
7606
7607 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
7608 arrows.
7609 (update_frame): Do flush_display if force_flush_display_p to
7610 ensure display (specifically fringes) are updated in a timely
7611 manner when resizing the frame by dragging the mouse.
7612 (update_window_line): Update row if overlay arrow changed.
7613 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
7614 or overlay arrow changed.
7615
7616 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
7617 syms_of_fringe, and init_fringe.
7618
7619 * frame.h (struct frame): New member force_flush_display_p.
7620
7621 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
7622 Add prototypes.
7623
a3993cc8 7624 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 7625 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
7626 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
7627 Use cursor color for displaying cursor in fringe.
82722af3
KS
7628 (x_redisplay_interface): Add null handlers for
7629 define_fringe_bitmap and destroy_fringe_bitmap functions.
7630
7631 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
7632 xterm.c to handle overlayed fringe bitmaps and to use cursor color
7633 for displaying cursor in fringe.
7634 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
7635 specific functions to define and destroy fringe bitmaps in fringe_bmp.
7636 (w32_redisplay_interface): Add them to redisplay_interface.
7637 (w32_term_init): Call w32_init_fringe instead of explicitly
7638 defining fringe bitmaps in fringe_bmp array.
7639 (x_delete_display): Call w32_reset_fringes instead of explicitly
7640 destroying fringe bitmaps in fringe_bmp array.
7641
7642 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
7643 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
7644 (continued_bits, continuation_bits, ov_bits, first_line_bits)
7645 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
7646 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
7647 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
7648 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
7649 Move fringe handling vars and code to new file fringe.c.
7650 (handle_display_prop): Handle left-fringe and right-fringe
7651 display properties; store user fringe bitmaps in iterator.
7652 (move_it_in_display_line_to): Handle cursor in fringe at eob.
7653 (clear_garbaged_frames): Set force_flush_display_p if resized.
7654 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
7655 (display_line): Handle cursor in fringe at eob.
7656 (display_line): Set row user fringe bitmaps from iterator.
7657
7658 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
7659 Use cursor color for displaying cursor in fringe.
7660 (x_redisplay_interface): Add null handlers for
7661 define_fringe_bitmap and destroy_fringe_bitmap functions.
7662
030400eb
JD
76632004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7664
7665 * macfns.c (Fx_change_window_property): Make doc string and
7666 parameters same as for X version.
7667
7668 * w32fns.c (Fx_change_window_property): Ditto.
7669
3af55251
KS
76702004-02-07 Kim F. Storm <storm@cua.dk>
7671
ec110e9e
KS
7672 * xdisp.c (hscroll_window_tree): Position cursor near to right
7673 margin in hscrolled window when jumping to end of line (rather
7674 than centering cursor).
7675
3af55251
KS
7676 * process.c (wait_reading_process_input): Don't do adaptive read
7677 buffering if waiting for a specific process.
7678
b0c138ce
LT
76792004-02-05 Luc Teirlinck <teirllm@auburn.edu>
7680
7681 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
7682 (Fread_minibuffer, Feval_minibuffer)
7683 (Fread_string, Fread_no_blanks_input)
7684 (Fcompleting_read): Doc fixes.
7685 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
7686 completion-regexp-list. Define Qcase_fold_search and staticpro it.
7687 (read_minibuf): Fix initial comment.
7688 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 7689 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
7690 checking completion-regexp-list.
7691 (Fdisplay_completion_list): Make it handle arguments that are
7692 symbols. Doc fix.
7693
9676f5ad 76942004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 7695
9676f5ad 7696 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 7697
9676f5ad
JD
7698 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
7699 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 7700 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 7701 format. Remove unused variable cons.
5b698285
JD
7702
7703 * xselect.c: Include stdio,h.
7704
fc1d15f6
KH
77052004-02-05 Kenichi Handa <handa@m17n.org>
7706
ebaff4af
KH
7707 * fns.c (Fset_char_table_range): Fix previous change.
7708
fc1d15f6
KH
7709 * buffer.c (Fset_buffer_multibyte): Fix docstring.
7710
9676f5ad
JD
77112004-02-04 Luc Teirlinck <teirllm@auburn.edu>
7712
7713 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
7714
da75761f
SM
77152004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
7716
7717 * keymap.c (Vmouse_events): Rename from Vmenu_events.
7718 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
7719
13c5d120
KH
77202004-02-04 Kenichi Handa <handa@m17n.org>
7721
7722 * fns.c (Fset_char_table_range): Handle charsets ascii,
7723 eight-bit-control, and eight-bit-graphic correctly.
7724
2883d842
JR
77252004-02-03 Jason Rumney <jasonr@gnu.org>
7726
7727 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
7728
7729 * w32fns.c (x_to_w32_font): Likewise.
7730
69eff41f
JD
77312004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7732
7733 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
7734 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
7735
7736 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
7737 ClientMessages.
7738
7739 * xselect.c: Include termhooks.h and X11/Xproto.h
7740 (x_check_property_data, x_fill_property_data)
7741 (x_property_data_to_lisp, mouse_position_for_drop)
7742 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 7743 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
7744 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
7745
da75761f 7746 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
7747 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
7748 OUTER_P.
7749 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
7750 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
7751 if vector_ret_p is true.
7752 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 7753
a6eeaa81 77542004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
7755
7756 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
7757 basename of FILE relative to it, not FILE itself.
7758
09721b31
KH
77592004-02-02 Kenichi Handa <handa@m17n.org>
7760
7761 * coding.c (coding_restore_composition): Check invalid
7762 composition data more rigidly.
7763
eb996101
LT
77642004-01-30 Luc Teirlinck <teirllm@auburn.edu>
7765
7766 * fileio.c (Fread_file_name_internal): Correctly handle the case
7767 where insert-default-directory is nil.
7768 (Fread_file_name): Always return an empty string if the user exits
7769 with an empty minibuffer. Adapt the docstring accordingly.
7770 (syms_of_fileio): Adapt the docstring of insert-default-directory
7771 to the change in Fread_file_name.
7772
a6eeaa81 77732004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
7774
7775 * alloca.c [!alloca]: Fix the prototype for xfree.
7776
13f52ed8
KH
77772004-01-29 Kenichi Handa <handa@m17n.org>
7778
7779 * fns.c (string_char_to_byte): Optimize for ASCII only string.
7780 (string_byte_to_char): Likewise.
7781
d57625a0
JR
77822004-01-28 Peter Runestig <peter@runestig.com>
7783
7784 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
7785
a64387ee 77862004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
7787
7788 * unexmacosx.c (unexec_copy): Do not copy more than was
7789 requested to prevent overwriting during unexec.
7790
eb37b8fd
JD
77912004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7792
ce38070a
JD
7793 * process.c (sigchld_handler): Add comment about not calling malloc.
7794
eb37b8fd
JD
7795 * process.h: Add extern to synch_process_termsig.
7796
a64387ee 77972004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 7798
da75761f
SM
7799 * macterm.c (make_mac_frame, make_mac_terminal_frame):
7800 Move setting of scroll bars from make_mac_frame to
7801 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 7802
d62a265d
RS
78032004-01-26 Richard M. Stallman <rms@gnu.org>
7804
7805 * search.c (Freplace_match): Handle nonexistent
7806 back-references properly.
7807
78082004-01-03 Richard M. Stallman <rms@gnu.org>
7809
7810 * window.c (decode_any_window): New function.
7811 (Fwindow_height, Fwindow_width, Fwindow_edges)
7812 (Fwindow_pixel_edges, Fwindow_inside_edges)
7813 (Fwindow_inside_pixel_edges): Use decode_any_window.
7814
ff236419
JD
78152004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7816
7817 * process.h: synch_process_termsig new variable.
7818
7819 * callproc.c: Define synch_process_termsig.
7820 (Fcall_process): Initiate synch_process_termsig to zero and
7821 check if non-zero and get signal name after subprocess has ended.
7822
7823 * process.c (sigchld_handler): Set synch_process_termsig
7824 if terminated by a signal. synch_process_death setting removed.
7825
7826 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
7827
41b867ea
AS
78282004-01-26 Andreas Schwab <schwab@suse.de>
7829
7830 * print.c (print_preprocess): Declare size as EMACS_INT to not
7831 lose bits.
7832 (print_object): Likewise.
7833 * alloc.c (Fpurecopy): Likewise.
7834
a08084ff
LT
78352004-01-25 Luc Teirlinck <teirllm@auburn.edu>
7836
7837 * window.c (Fwindow_minibuffer_p): Doc fix.
7838
b19ac475
JY
78392004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
7840
7841 * editfns.c (Fformat): Make both passes accept the same set of flags.
7842
fe905025
KH
78432004-01-23 Kenichi Handa <handa@m17n.org>
7844
7845 * fns.c (Fmd5): If OBJECT is a buffer different from the current
7846 one, set buffer to OBJECT temporarily.
7847
438fc6c0
SM
78482004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7849
455316e2
SM
7850 * keyboard.c (kbd_buffer_gcpro): Remove.
7851 (kbd_buffer_store_event, clear_event, Fdiscard_input)
7852 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
7853 Don't initialize and/or maintain the variable any more. It was made
7854 redundant by my commit of 2003-06-15.
7855
438fc6c0
SM
7856 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
7857
5335a4ee
JD
78582004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7859
7860 * lisp.h: Add undef DECL_ALIGN.
7861
dcdaeebc
SM
78622004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7863
7864 * process.c (wait_reading_process_input) [SYNC_INPUT]:
7865 Check interrupt_input_pending explicitly.
7866
7867 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
7868
7869 * keyboard.c (handle_async_input): New fun,
7870 extracted from input_available_signal.
7871 (input_available_signal, reinvoke_input_signal): Use it.
7872
9076a823
SM
78732004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
7874
d7107586
SM
7875 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
7876
7877 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
7878 manipulation macros for when tags are in the lower bits.
7879 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
7880 (DECL_ALIGN): New macro.
7881 (DEFUN): Use it.
7882
7883 * lisp.h [ENABLE_CHECKING]: Don't force union type.
7884
7885 * s/darwin.h (__attribute__): Remove outdated workaround.
7886
7887 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
7888
7889 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
7890 Don't check range of malloc address.
7891 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
7892
9076a823
SM
7893 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
7894
7895 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
7896
ba029065
KH
78972004-01-19 Kenichi Handa <handa@m17n.org>
7898
7899 * fontset.c (fontset_font_pattern): Fix previous change.
7900
7af0e8d7
MB
79012004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
7902
7903 * xdisp.c (Voverflow_newline_into_fringe)
7904 (move_it_in_display_line_to, redisplay_internal)
7905 (update_window_fringes, redisplay_window, display_line, window):
7906 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
7907 that it compiles without a window-system.
7908 * dispnew.c (direct_output_for_insert, update_window): Likewise.
7909
77a9cf69
KS
79102004-01-16 Kim F. Storm <storm@cua.dk>
7911
7912 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
7913
a64387ee 7914 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
7915 buffer_local_flags for indicate_buffer_boundaries.
7916 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
7917 default- variable for it.
7918
7919 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
7920 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 7921 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
7922 overflowing newlines into right fringe.
7923 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
7924 and indicate_bottom_line_p for buffer boundaries and scrolling.
7925 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
7926 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
7927 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
7928 and HOLLOW_SQUARE_BITMAP.
7929 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
7930 Add prototypes.
7931
7932 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
7933 instead of related indicator fields.
7934 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
7935 (direct_output_for_insert): Handle exact width lines like
7936 contined lines. Call update_window_fringes.
7937 (update_window): Call update_window_fringes.
7938 (scrolling_window): Don't skip desired rows with changed bitmaps.
7939 Check if fringe bitmaps changes when assigning scrolled rows.
7940
7941 * xdisp.c (Voverflow_newline_into_fringe): New variable.
7942 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
7943 (move_it_in_display_line_to): Overflow newline into fringe for
7944 rows that are exactly as wide as the window.
7945 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
7946 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
7947 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
7948 (fringe_bitmaps): Add new bitmaps.
7949 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
7950 Select proper bitmap for cursor in fringe when appropriate.
7951 Handle alignment of bitmap to top or bottom of row.
7952 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
7953 done by update_window_fringes.
7954 (update_window_fringes, draw_window_fringes): New functions.
7955 (redisplay_internal): Call update_window_fringes in case only
7956 cursor row is updated.
7957 (redisplay_window): Call update_window_fringes.
7958 Explicitly call draw_window_fringes if redisplay was done using
7959 the current matrix or the overlay arrow is in the window.
7960 (try_window_reusing_current_matrix): Mark scrolled rows for
7961 fringe update (to update buffer-boundaries / scrolling icons).
7962 (find_last_unchanged_at_beg_row): Handle exact width lines line
7963 continued lines.
7964 (display_line): Overflow newline into fringe for rows that are
7965 exactly as wide as the window. Don't append space for newline
d7107586 7966 in this case.
77a9cf69
KS
7967 (notice_overwritten_cursor): Explicitly clear cursor bitmap
7968 in fringe as if it had been overwritten.
7969 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 7970 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
7971 void-text-area-pointer as user options.
7972 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 7973
77a9cf69
KS
7974 * xterm.c (x_update_window_end): Call draw_window_fringes.
7975 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7976 in row instead of actually drawing fringe bitmaps.
7977 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7978 (x_draw_window_cursor): Draw cursor in fringe.
7979
7980 * w32term.c (x_update_window_end): Call draw_window_fringes.
7981 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7982 in row instead of actually drawing fringe bitmaps.
7983 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7984 (w32_draw_window_cursor): Draw cursor in fringe.
7985
7986 * macterm.c (x_update_window_end): Call draw_window_fringes.
7987 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7988 in row instead of actually drawing fringe bitmaps.
7989 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7990 (mac_draw_window_cursor): Draw cursor in fringe.
7991
a633a954
JD
79922004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7993
7994 * xterm.c (handle_one_xevent): Don't handle characters that are part
7995 of an old style (XLookupString) compose sequence.
7996
80460525
KH
79972004-01-15 Kenichi Handa <handa@m17n.org>
7998
7999 * search.c (Freplace_match): Use make_multibyte_string or
8000 make_unibyte_string according to the buffer multibyteness.
8001
7fc34f85
SM
80022004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
8003
8004 * alloc.c (struct interval_block, struct string_block)
8005 (struct symbol_block, struct marker_block, live_string_p)
8006 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
8007 Better preserve alignment for objects in blocks.
8008 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
8009
8010 * lread.c (defvar_per_buffer): Remove dead declaration.
8011
8012 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
8013 space size.
8014
66070bd1
JD
80152004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8016
8017 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
8018 if a key press should pop down. Only pop down if a key is pressed
8019 outside the menu/dialog.
8020 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
8021 popup_get_selection.
8022 (create_and_show_dialog): Pass 1 for down_on_keypress to
8023 popup_get_selection.
8024
de7515d6
JD
80252004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8026
8027 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
8028 BLOCK/UNBLOCK_INPUT.
8029
160b1b50
JD
80302004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8031
8032 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
8033 specified.
8034
3a9f36e6
KH
80352004-01-08 Kenichi Handa <handa@m17n.org>
8036
8037 * editfns.c (Fformat): Fix '&' to '&&'.
8038
3803eb32
AS
80392004-01-08 Andreas Schwab <schwab@suse.de>
8040
8041 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
8042 size if PSEUDOVECTOR_FLAG is set.
8043
9da88f37
KH
80442004-01-07 Kenichi Handa <handa@m17n.org>
8045
74ac5074
KH
8046 * charset.c (Fdeclare_equiv_charset): Fix docstring.
8047
9da88f37
KH
8048 * fontset.c (fontset_ref_via_base): Fix previous change.
8049
05faee07
KS
80502004-01-07 Kim F. Storm <storm@cua.dk>
8051
8052 * process.c (read_process_output): Only activate adaptive
8053 buffering if we read less than 256 bytes at a time.
8054
634910c8
KS
80552004-01-06 Kim F. Storm <storm@cua.dk>
8056
8057 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
8058 object and image object. Return glyph width and height.
8059 (mode_line_string, marginal_area_string): Ditto.
8060
8061 * dispextern.h (buffer_posn_from_coords, mode_line_string)
8062 (marginal_area_string): Fix prototypes.
8063
8064 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 8065 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
8066 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
8067
8068 * keyboard.c (make_lispy_position): Use modified mode_line_string,
8069 buffer_posn_from_coords, and marginal_area_string functions to
8070 include both string object and image object in the lispy position.
8071 Also add actual glyph width and height to position.
8072 (read_key_sequence): Use real buffer position from mouse
8073 event to find keymap property even when click is in marginal area.
8074
8075 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
8076 mode_line_string and marginal_area_string functions to handle
8077 both string object and image object properties.
d7107586 8078
57951c2e
AS
80792004-01-06 Andreas Schwab <schwab@suse.de>
8080
8081 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
8082 character.
8083
181e6a61
AS
80842004-01-02 Andreas Schwab <schwab@suse.de>
8085
d7107586
SM
8086 * macterm.c (emacs_options, x_initialized, same_x_server):
8087 Remove unused (and duplicated) definitions.
181e6a61 8088
31e0fbdd
KS
80892004-01-02 Kim F. Storm <storm@cua.dk>
8090
8091 * process.h (struct Lisp_Process): New members for adaptive read
8092 buffering: adaptive_read_buffering, read_output_delay, and
8093 read_output_skip.
8094
8095 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
8096 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
8097 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
8098 (process_output_delay_count, process_output_skip): New vars.
8099 (Vprocess_adaptive_read_buffering): New variable.
8100 (make_process): Initialize adaptive read buffering members.
8101 (Fstart_process): Set adaptive_read_buffering member.
8102 (deactivate_process): Cleanup adaptive read buffering.
8103 (wait_reading_process_input): Temporarily omit delayed
8104 subprocesses from the set of file descriptors to read from;
8105 adjust the select timeout if we skipped any subprocesses.
8106 (read_process_output): Increase adaptive read buffering delay if
8107 we read less than a full buffer; reduce delay when we read a
8108 full buffer.
8109 (send_process): Simplify using local Lisp_Process var.
8110 Reset adaptive read buffering delay after write.
8111 (init_process): Initialize process_output_delay_count and
8112 process_output_skip.
8113 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
8114
68c6a789
JR
81152004-01-01 Jason Rumney <jasonr@gnu.org>
8116
d7107586 8117 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 8118
3f70fe82
LT
81192003-12-30 Luc Teirlinck <teirllm@auburn.edu>
8120
8121 * print.c (Ferror_message_string): Add hyperlink in the docstring
8122 to the definition of `signal' in the Elisp manual.
8123 * eval.c (Fsignal): Ditto.
8124
b6189c3b 81252003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
8126
8127 * fns.c (internal_equal): Return t for two NaN arguments.
8128
7abd90ea
RS
81292003-12-29 Richard M. Stallman <rms@gnu.org>
8130
8131 * data.c (store_symval_forwarding): Handle setting
8132 default-fill-column, etc., by changing the value in
8133 buffers that use the default.
8134
8135 * minibuf.c (Fset_minibuffer_window): Doc fix.
8136
8137 * fileio.c (choose_write_coding_system): Ignore auto_saving
8138 if using the visited file for auto saves.
8139 (Fwrite_region): Don't update SAVE_MODIFF
8140 if auto-saving in visited file.
8141
3e7cfcdc
KH
81422003-12-29 Kenichi Handa <handa@m17n.org>
8143
8144 * dispextern.h (face_font_available_p): Extern it.
8145
8146 * fontset.c (Voverriding_fontspec_alist): New variable.
8147 (lookup_overriding_fontspec): New function.
d7107586 8148 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
8149 (fontset_font_pattern): Likewise.
8150 (regulalize_fontname): New function.
8151 (Fset_fontset_font): Call regulalize_fontname.
8152 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
8153 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
8154 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
8155
8156 * xfaces.c (face_font_available_p): New function.
8157
7abd90ea
RS
81582003-12-28 Richard M. Stallman <rms@gnu.org>
8159
8160 * buffer.c (Fother_buffer): Don't crash if BUF is nil
8161 or if its name is nil.
8162
8163 * buffer.c (Fkill_buffer): Don't delete auto-save file
8164 if it's the same as the visited file.
8165
de1d1a40
LT
81662003-12-28 Luc Teirlinck <teirllm@auburn.edu>
8167
8168 * coding.c (Fcheck_coding_system): Doc fix.
8169
204fb75e
KS
81702003-12-28 Kim F. Storm <storm@cua.dk>
8171
8172 * Makefile.in (eval.o): Depend on dispextern.h.
8173
8174 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
8175 image glyph using image's ascent.
8176 (mode_line_string): Return image glyph as object clicked on.
8177 Adjust y0 for image glyph using image's ascent.
8178
8179 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
8180 (struct glyph): New members, ascent and descent. Used to save
8181 this glyph's ascent and descent, instead of having.
8182 (struct glyph): Declare member face_id using FACE_ID_BITS.
8183 (find_hot_spot): Add prototype.
8184
8185 * keyboard.c (Qimage): Remove extern (now in lisp.h).
8186 (QCmap): Declare extern.
8187 (make_lispy_position): When position is inside image hot-spot,
8188 use hot-spot element's id as posn element.
8189
8190 * lisp.h (IMAGEP): New macro to test for image object type.
8191 (Qimage): Declare extern.
8192
8193 * macfns.c (Qimage): Remove extern (now in lisp.h).
8194 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8195
8196 * macterm.c (Qface, Qmouse_face): Remove unused externs.
8197
8198 * w32fns.c (Qimage): Remove extern (now in lisp.h).
8199 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8200
8201 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
8202
8203 * w32term.c (Qface, Qmouse_face): Remove unused externs.
8204
8205 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
8206 pointer types.
8207 (Qrelative_width, Qalign_to): Remove unused variables.
8208 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
8209 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
8210 image maps.
d7107586 8211 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
8212 new dx and dy args.
8213 Remove buffer_only_p arg (always 0). Simplify code accordingly.
8214 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
8215 than row's ascent and height, to get sensible height on tall rows.
8216 (build_desired_tool_bar_string): Remove Qimage extern.
8217 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
8218 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
8219 image glyph is alone on the last line.
8220 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 8221 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 8222 (on_hot_spot_p): New function to check if position is inside an
d7107586 8223 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
8224 (find_hot_spot): New function to search for image hot-spot.
8225 (Flookup_image_map): New defun to search for image hot-spot.
8226 (define_frame_cursor1): New aux function to determine frame pointer.
8227 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8228 Handle `pointer' text property and :pointer image property to
8229 control frame pointer shape. Detect image hot-spots for pointer
8230 and help_echo properties. Use define_frame_cursor1.
8231 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 8232 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
8233 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
8234
8235 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
8236
8237 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
8238 (Qimage): Remove extern (now in lisp.h).
8239 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8240
8241 * xmenu.c (show_help_event): Remove unused code.
8242
8243 * xterm.c (Qface, Qmouse_face): Remove unused externs.
8244 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
8245 row's ascent and descent, to get a sensible height on tall rows.
8246
fc052137
LT
82472003-12-25 Luc Teirlinck <teirllm@auburn.edu>
8248
8249 * minibuf.c (Fcompleting_read): Undo previous change.
8250
a64387ee 82512003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
8252
8253 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
8254 Arguments GCPRO'ed in call to file name handler.
8255
56ffd194
TTN
82562003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
8257
8258 * termcap.c (tgetst1): Scan for "%pN"; if all
8259 N are continuous in [1,9], remove all "%pN".
8260
5202d23d
JD
82612003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8262
f26fab36
JD
8263 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
8264
5202d23d
JD
8265 * xfaces.c (lface_fully_specified_p): Take into account that
8266 MAC OS always have unspecified stipple.
8267
8babaa59
TTN
82682003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8269
8270 * tparam.c (tparam1): Add handling for `%pN', which
8271 means use param N for the next substitution.
8272
2d176448
TTN
82732003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8274
8275 * xfaces.c (Fcolor_gray_p): Fix omission bug:
8276 In case `frame' is nil, consult the selected frame.
8277 (Fcolor_supported_p): Likewise.
8278
adb0708c
LT
82792003-12-23 Luc Teirlinck <teirllm@auburn.edu>
8280
000eeb15
LT
8281 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
8282 Doc fixes.
0dc72b11
LT
8283
8284 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
8285 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
8286 (Fread_from_minibuffer): Delete code moved into read_minibuf.
8287 Doc fix.
8288 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
8289 read_minibuf.
8290 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 8291 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 8292
2e4d132b
KH
82932003-12-03 Kenichi Handa <handa@m17n.org>
8294
8295 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
8296 encoding sequence.
8297
3999c705
KH
82982003-12-01 Kenichi Handa <handa@m17n.org>
8299
8300 * composite.c (syms_of_composite): Don't make the compostion hash
8301 table week.
8302
d344ecbb
LT
83032003-11-30 Luc Teirlinck <teirllm@auburn.edu>
8304
8305 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
8306 * textprop.c (Fget_char_property_and_overlay): New function.
8307 (syms_of_textprop): Defsubr it.
8308
03d6484e
JD
83092003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8310
019b1f0e
JD
8311 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
8312 to compile on terminal configuration.
8313
03d6484e
JD
8314 * fileio.c (Fread_file_name): Check use_file_dialog also before
8315 calling Fx_file_dialog.
8316
1d1c7e75 8317 * fns.c (use_file_dialog): New variable.
03d6484e
JD
8318 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
8319
442d3fd0
KS
83202003-11-29 Kim F. Storm <storm@cua.dk>
8321
8322 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
8323 (syms_of_msdos): Don't intern and staticpro them.
8324
0f6a07a8
KS
83252003-11-27 Kim F. Storm <storm@cua.dk>
8326
8327 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
8328 coordinates relative to glyph at posn. If glyph is an image,
8329 return that as object at posn. Callers changed.
8330 (mode_line_string, marginal_area_string): Calculate and return
8331 pixel coordinates relative to glyph. Callers changed.
8332
8333 * dispextern.h (buffer_posn_from_coords, mode_line_string)
8334 (marginal_area_string): Fix prototypes.
8335 (window_box_left_offset, window_box_right_offset): Add prototypes.
8336
8337 * frame.h (get_specified_cursor_type, get_window_cursor_type):
8338 Remove prototypes.
8339
8340 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
8341
8342 * keyboard.c (make_lispy_position): Add x and y coordinates
8343 relative to the current glyph as 7th element of position.
8344 If glyph is an image, return it in the object element.
8345 (read_key_sequence): Skip checks for keymap property in cases
8346 where POSN_STRING is not a string (e.g. an image).
8347
8348 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
8349 (Vshow_text_cursor_in_void): New variable.
8350 (glyph_to_pixel_coords): Don't use negative hpos.
8351 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
8352 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 8353 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
8354 (calc_pixel_width_or_height): New aux function, implementing
8355 pixel based artihmetic for glyph widths and heights.
8356 (produce_stretch_glyph): Use calc_pixel_width_or_height for
8357 :width, :height, :align-to, and :ascent, thus allowing these to
8358 be specified in pixels as well as multiples of characters.
8359 Don't produce stretch glyphs with zero width or height.
8360 (get_specified_cursor_type): Declare static.
8361 (get_window_cursor_type): Declare static. Add glyph arg to be
8362 able to know when cursor is on an image; always substitute
8363 hollow-box cursor for filled-box cursor on images, to avoid
8364 negative images and flicker when blinking the cursor.
8365 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
8366 (note_mode_line_or_margin_highlight): Use non-text cursor rather
8367 than vertical scroll-bar cursor in display margins.
8368 (note_mouse_highlight): Use non-text cursor rather than text
8369 cursor in fringes and over images in the text area.
8370 Use non-text cursor when mouse pointer is outside editable text,
8371 i.e. in the void after end-of-line or end-of-buffer; this was
8372 already done for W32, but is now standard for all systems --
8373 user can toggle show-text-cursor-in-void to get old behaviour.
8374 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
8375 Vdisplay_pixels_per_inch.
8376
00498bfc
AS
83772003-11-25 Andreas Schwab <schwab@suse.de>
8378
8379 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
8380 EMACS_INT to not lose bits.
8381 (Ffillarray): Don't set bits beyond the size of a bool vector.
8382
edaa824d
KS
83832003-11-25 Kim F. Storm <storm@cua.dk>
8384
8385 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
8386 define this defun on systems that cannot use stderr as lvalue.
8387
74d6f539
GM
83882003-11-24 Gerd Moellmann <gerd@gnu.org>
8389
8390 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
8391 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
8392 ld's default is incompatible with unexec.
8393
6a1ff3ba
KS
83942003-11-23 Kim F. Storm <storm@cua.dk>
8395
63dc7c6b
KS
8396 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
8397 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
8398 (Fforce_window_update): New defun.
8399 (syms_of_window): Defsubr it.
8400 (Fset_window_margins, Fset_window_fringes): Doc fix.
8401
6a1ff3ba
KS
8402 * print.c (Fredirect_debugging_output): New defun.
8403 (syms_of_print): Defsubr it.
8404
aef109b7
LT
84052003-11-22 Luc Teirlinck <teirllm@auburn.edu>
8406
8407 * fns.c (Fset_char_table_parent): Doc fix.
8408
6a1ff3ba 84092003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
8410
8411 * dispnew.c (buffer_posn_from_coords): Return actual row/column
8412 for glyph clicked on, rather than (unused) pixel positions.
8413 (mode_line_string, marginal_area_string): Change X and Y args to
8414 pointers for returning actual row/column for glyph clicked on.
8415 Simplify and optimize loops.
8416
aef109b7
LT
8417 * dispextern.h (mode_line_string, marginal_area_string):
8418 Update prototypes.
63ccbe21
KS
8419
8420 * keyboard.c (make_lispy_position): New function for generating
8421 mouse click positions from frame and pixel coordinates.
8422 Enhanced to return buffer position and actual row/column for
8423 events outside the text area using updated mode_line_string and
8424 marginal_area_string functions.
8425 Return left-fringe and right-fringe clicks as such, rather than
8426 clicks in text area.
8427 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
8428 pixel_to_glyph_coords, as we never use the results.
8429 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
8430 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
8431 Eliminate unused code in WHEEL_EVENT handling.
8432 (make_lispy_movement): Use make_lispy_position.
8433
8434 * window.c (coordinates_in_window): Remove redundant tests.
8435 Fix returned X pixel value for left-margin.
8436
8437 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
8438 mode_line_string and marginal_area_string parameters.
8439
a64387ee 84402003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 8441
d7107586
SM
8442 * w32.c (struct the_group, getgrgid): Add.
8443 * mac.c (struct my_group, getgrgid): Add.
aef109b7 8444
3dbf3426
LT
84452003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8446
8447 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
8448
cae8ddbb 84492003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 8450
d7107586
SM
8451 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
8452 include in call to file name handler. Optionally translate numeric
8453 UID and GID to strings. Update docstring.
8454 (directory_files_internal): Add parameter ID-FORMAT.
8455 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
8456 include in call to file name handler and call to
8457 directory_files_internal. Update Docstring.
8458 (Fdirectory_files): Add dummy parameter in call to
8459 directory_files_internal.
8460 * lisp.h (Qinteger): Add.
8461 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
8462 (Ffile_attributes): Add parameter.
8463 * data.c (Qinteger): Export.
cae8ddbb 8464
2550b848
LT
84652003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8466
3dbf3426 8467 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 8468
88380018
KS
84692003-11-19 Kim F. Storm <storm@cua.dk>
8470
8471 * xdisp.c (init_iterator): Initialize it->start to position
8472 before reseating (in case start position is invisible).
8473 (init_to_row_start): Set it->start to row-start.
8474 (redisplay_window): Accept optional_new_start if start position
8475 is invisible (in which case IT_CHARPOS overshoots PT).
8476 (display_line): Setup row->start from it->start (rather than
8477 it->current which is wrong if first char on line is invisible).
8478 When done, reseat it->start to it->current (= start of next row).
8479 (expose_area): Fix exposure of text area when first char (e.g. TAB)
8480 is only partially visible.
8481
8482 * dispextern.h (struct it): New member start.
8483
854c1a59
SM
84842003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8485
455316e2
SM
8486 * alloc.c (make_float, Fcons): Clear the markbit at init time.
8487 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
8488 of block_index outside of the macro call.
8489 (Fgarbage_collect): Remove null code.
8490
8491 * m/amdx86-64.h: Don't redefine XPNTR.
8492
854c1a59
SM
8493 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
8494 of VALMASK.
8495
8496 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
8497 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
8498 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
8499
8500 * lisp.h (VALMASK): Only define for non-union type.
8501 (MARKBIT): Remove.
8502 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
8503 (XTYPE): Define unconditionally.
8504 (XSETTYPE): Remove one more remnant.
8505 (EQ): Define differently for the union and non-union cases.
8506 (INTMASK): New bit mask.
8507 (struct Lisp_Marker): Move down to prepare for upcoming patch.
8508 (GC_EQ): Delegate to EQ.
8509
8510 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
8511
a0c6ef2d
JD
85122003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8513
8514 * xterm.c (x_window_to_scroll_bar): Move check of display to
8515 where window_id is compared.
8516
859492c4
KS
85172003-11-17 Kim F. Storm <storm@cua.dk>
8518
8519 * dispextern.h (struct it): New member first_vpos.
8520
8521 * xdisp.c (start_display): Set it->first_vpos.
8522 (try_window_id): Use first_vpos to start display in first _text_
8523 line if no reusable lines at start of window with header line.
8524
810f2256
JD
85252003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8526
7c402969 8527 * w32fns.c (XPutPixel):
854c1a59
SM
8528 * w32bdf.c (w32_init_bdf_font):
8529 * sunfns.c (sel_read):
8530 * process.c (Fmake_network_process):
8531 * frame.c (store_frame_param):
8532 * fontset.c (Fset_fontset_font):
8533 * emacs.c (shut_down_emacs):
a64387ee 8534 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 8535
a32e9bfd
JD
8536 * config.in: Regenerate.
8537
810f2256
JD
8538 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8539 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8540 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
8541 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
8542 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
8543
8544 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
8545
8546 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
8547 (XTmouse_position, handle_one_xevent): Pass Display* to
8548 x_window_to_scroll_bar.
8549 (x_window_to_scroll_bar): Take a Display* argument.
8550 Check that display for frame is equal to Display* argument.
854c1a59 8551 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
8552 x_display_info_for_display instead. Use Display in xev instead
8553 of GDK_DISPLAY.
8554 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 8555 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
8556 (x_connection_closed): Call xg_display_close for GTK.
8557 (x_term_init): Call xg_display_open for additional displays.
8558 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
8559 for GTK.
8560
8561 * xmenu.c (single_menu_item, mouse_position_for_popup)
8562 (x_activate_menubar): Formatting adjustments.
8563
8564 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
8565 adjustments.
8566
8567 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
8568 (xg_display_close, xg_create_default_cursor)
8569 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
8570 handling.
854c1a59
SM
8571 (xg_left_ptr_cursor): Remove.
8572 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
8573 cursor here.
8574 (xg_win_to_widget): Take Display* argument, call
8575 gdk_xid_table_lookup_for_display.
8576 (xg_create_frame_widgets, xg_get_file_name, create_menus)
8577 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
8578 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
8579 in FRAME_X_DISPLAY_INFO.
8580 (xg_get_scroll_id_for_window): Take Display* argument.
8581 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 8582 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 8583
78819ebb
KS
8584 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
8585 Display* argument.
8586 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 8587
0b03cc78
JD
85882003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8589
8590 * xterm.c (x_detect_focus_change): Do not change focus frame for
8591 Enter/LeaveNotify if the current focus frame has explicit focus.
8592
77e688fa
KS
85932003-11-14 Kim F. Storm <storm@cua.dk>
8594
8595 * dispnew.c (update_text_area): Fix redisplay error when hscroll
8596 is active and first glyph is only partially visible.
854c1a59 8597
dd429b03
KH
85982003-11-13 Kenichi Handa <handa@m17n.org>
8599
8600 * xdisp.c (select_frame_for_redisplay): New function.
8601 (redisplay_internal): Record also selected_frame for
8602 unwind_redisplay. Call select_frame_for_redisplay before
8603 redrawing each frame.
8604 (unwind_redisplay): Argument changed to a cons.
8605
6d9266f4
LT
86062003-11-12 Luc Teirlinck <teirllm@auburn.edu>
8607
8608 * fns.c (Fstring_to_multibyte): Doc fix.
8609
80060eb3
KH
86102003-11-11 Kenichi Handa <handa@m17n.org>
8611
8612 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8613
74305183
JD
86142003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8615
8616 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
8617 program specified positions.
8618
cfda993e
JD
86192003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8620
8621 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
8622
df211069
KH
86232003-11-08 Kenichi Handa <handa@m17n.org>
8624
8625 * Makefile.in (lisp): Add kannada.el.
8626 (shortlisp): Likewise.
8627
4307d534
KH
86282003-11-07 Kenichi Handa <handa@m17n.org>
8629
854c1a59
SM
8630 * coding.c (coding_allocate_composition_data):
8631 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
8632 (coding_restore_composition): Detect invalid composition data.
8633 Give Fstring and Fvector a Lispy integer, not C int.
8634
854c1a59
SM
86352003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 * floatfns.c (Flogb): Don't use VALMASK.
8638
8639 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
8640 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
8641
8642 * lisp.h (XINT): Move the cast to clarify what is going on.
8643 (GCTYPEMASK, XSETTYPE): Remove.
8644 (XGCTYPE): Make it an alias of XTYPE.
8645
d04103a1
JD
86462003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8647
8648 * xterm.c (x_term_init): Fix formatting.
8649
da18b5ac
JD
86502003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8651
78819ebb
KS
8652 * gtkutil.h (xg_have_tear_offs): Declare.
8653 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
8654
8655 * gtkutil.c: Remove variable xg_did_tearoff.
8656 (xg_have_tear_offs): New function.
8657 (tearoff_remove): Just decrease xg_detached_menus.
8658 (tearoff_activate): Increase xg_detached_menus and call
8659 tearoff_remove when tearoff is removed.
854c1a59 8660 (xg_keep_popup): Remove function.
da18b5ac
JD
8661 (create_menus): Give add_tearoff_p as argument to recursive
8662 call to create_menus.
8663 (xg_create_widget): Use variables instead of multiple
8664 strcmp. Tell create_menus to create tear off only for
8665 menu bar menus.
8666 (xg_update_menubar): Change title for a detached menu also.
8667 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
8668 of deep_p.
8669 (xg_initialize): Initialize xg_detached_menus, remove
8670 initialization of xg_did_tearoff.
8671
8672 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
8673 xg_have_tear_offs returns non-zero.
8674 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
8675 call to xg_keep_popup.
8676
64d4923e
AC
86772003-11-01 Andrew Choi <akochoi@shaw.ca>
8678
8679 * macterm.c (XTread_socket): Handle menubar selection and grow
8680 window only for mouseDown events.
854c1a59 8681
6cc8bc07
JD
86822003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8683
8684 * xterm.c (x_term_init): For GTK part, increase x_initialized
8685 to check for more than one display. Use error instead of return 0.
8686
043131c4
AC
86872003-10-31 Andrew Choi <akochoi@shaw.ca>
8688
854c1a59 8689 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
8690 (copy_dysymtab): Call it.
8691
bdda99a1
LT
86922003-10-31 Luc Teirlinck <teirllm@auburn.edu>
8693
8694 * eval.c (Fdefvaralias): Doc fix.
8695
800f42ff 86962003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
8697
8698 * data.c (Fsetplist): Doc fix.
8699
ef35b389
LK
87002003-10-14 Lute Kamstra <lute@gnu.org>
8701
8702 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 8703
ef35b389 87042003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 8705
07107abc
KS
8706 * window.c (Fset_window_margins): Simplify arg checking.
8707
f7005886
RS
87082003-10-13 Richard M. Stallman <rms@gnu.org>
8709
8710 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
8711 (print_partial_compiled_pattern): Replace assert with a printout.
8712 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
8713
8714 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
8715
8716 * window.c (Fset_window_margins): Allow only integers as args.
8717 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
8718 Doc fixes.
8719
9c0c2af5
LK
87202003-10-13 Lute Kamstra <lute@gnu.org>
8721
8722 * window.c (Fset_window_fringes): Elaborate docstring.
8723
3f080e4e
AC
87242003-10-12 Andrew Choi <akochoi@shaw.ca>
8725
854c1a59 8726 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 8727
3f080e4e
AC
8728 * s/darwin.h (GC_MARK_STACK): Define.
8729
0aa513ed
JD
87302003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8731
8732 * window.c (shrink_windows): New function.
8733 (size_window): Call shrink_windows to calculate window sizes when
8734 shrinking frame with more than one window.
8735
6aa8858a
KS
87362003-10-12 Kim F. Storm <storm@cua.dk>
8737
8738 * xdisp.c (compute_fringe_widths): Doc fix.
8739
c2164d91
KH
87402003-10-08 Kenichi Handa <handa@m17n.org>
8741
854c1a59 8742 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 8743
f82ac129
KH
87442003-10-07 Kenichi Handa <handa@m17n.org>
8745
8746 * coding.c (Qcoding_system_define_form): New variable.
8747 (syms_of_coding): Intern and staticpro it.
8748 (Fcheck_coding_system): Try to autoload the definition of
8749 CODING-SYSTEM.
8750
9296c947
LT
87512003-10-05 Luc Teirlinck <teirllm@auburn.edu>
8752
8753 * fns.c (Frequire): Doc fix.
8754
c1f0671a
JD
87552003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8756
3d8c3826
JD
8757 * xfns.c (Fx_send_client_event): New function as a base for
8758 manipulating extended window manager hints.
6dc15d98 8759 (Fx_send_client_event): Remove unused variable s.
3d8c3826 8760
068ae0fd
JD
8761 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
8762 that function is removed.
8763
8764 * xterm.c (x_set_offset): Use move_offset_left/top instead of
8765 x/y_pixels_outer_diff.
8766 (x_check_expected_move): Calculate move_offset_left/top.
8767
8768 * xterm.h (struct x_output): New members: move_offset_top/left.
8769
854c1a59 8770 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
8771 call x_set_offset directly.
8772
8773 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
8774
96f09305
JD
8775 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
8776
8777 * xterm.c (x_delete_display): Free font names and font_encoder
8778 in dpyinfo->font_table.
8779
854c1a59
SM
8780 * xfns.c (Fx_close_connection): Only call XFreeFont here.
8781 Move xfree of font names to x_delete_display.
96f09305 8782
c1f0671a
JD
8783 * xterm.h (struct x_display_info): New member, wm_type.
8784 (struct x_output): New members, expected_top/left and
8785 check_expected_move.
8786
8787 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
8788 is received.
854c1a59
SM
8789 (handle_one_xevent): Rename x_check_expected_move from
8790 x_check_fullscreen_move.
c1f0671a
JD
8791 (x_set_offset): Only add WM decoration sizes to modified_top/left
8792 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 8793 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
8794 Removed fullscreen specific code. Use check_expected_move,
8795 expected_left/top instead. Also, set wm_type.
8796 (x_term_init): Initialize wm_type to unknown.
8797
8798 * frame.c (x_fullscreen_move): Remove addition of WM decoration
8799 sizes to move_x/y.
8800
be2fdba9
KH
88012003-10-03 Kenichi Handa <handa@m17n.org>
8802
8803 * macterm.c (x_load_font): Clear all members of FONTP before start
8804 filling them.
8805
88062003-10-02 Kenichi Handa <handa@m17n.org>
8807
8808 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
8809 before calling find_ccl_program_func. Call find_ccl_program_func
8810 only when fontp->font_encoder is not NULL.
8811
8812 * xterm.c (x_load_font): Clear all members of FONTP before start
8813 filling them.
8814
26a6e439
JPW
88152003-10-03 John Paul Wallington <jpw@gnu.org>
8816
8817 * keymap.c (map_keymap): Don't abort when binding is a vector.
8818
0d4c2dc2
JR
88192003-10-02 Jason Rumney <jasonr@gnu.org>
8820
854c1a59
SM
8821 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
8822 Sync dependencies with Makefile.in.
a63cf46f
JR
8823 (alloca.o): Remove.
8824
0d4c2dc2
JR
8825 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
8826 filling them.
8827
8828 * w32bdf.c (w32_load_bdf_font): Likewise.
8829
ab8f7d5c
RS
88302003-09-30 Richard M. Stallman <rms@gnu.org>
8831
8832 * term.c (set_tty_color_mode): Calculate current_mode_spec
8833 regardless of value of VAL.
8834
854c1a59 8835 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
8836 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
8837 Handle over_used when splitting UNDER.
8838
a64387ee 88392003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
8840
8841 * regex.c (regex_compile): Free the stack when returning from function.
8842
3413f972
KH
88432003-09-28 Kenichi Handa <handa@m17n.org>
8844
8845 * fontset.c (Finternal_char_font): Change return value to
8846 cons (FONT-NAME . GLYPH-CODE).
8847
a6eeaa81 88482003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
8849
8850 * term.c (tty_setup_colors): Treat any negative argument as -1.
8851
f98ddc99
KH
88522003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
8853
8854 * process.c (send_process): Delete unused temp_buf.
8855
66c8f1a8
DL
88562003-09-26 Dave Love <fx@gnu.org>
8857
8858 * xterm.c (x_bitmap_mask): Declare.
8859
ca716c26
DL
88602003-09-25 Dave Love <fx@gnu.org>
8861
8862 * Makefile.in (fns.o): Depend on md5.h.
8863
fbe57420
KS
88642003-09-25 Kim F. Storm <storm@cua.dk>
8865
8866 * window.c (set_window_buffer): Fix redisplay problems when
8867 switching between buffers with different display margin widths.
8868
ef6ae4ff
KS
88692003-09-23 Kim F. Storm <storm@cua.dk>
8870
8871 * process.c (set_socket_option): Fix :bindtodevice option.
8872 (Fset_network_process_option): Update process contact list when
8873 setting option succeeds.
8874 (Fmake_network_process): Doc fix.
8875
68e03c1c
DL
88762003-09-23 Dave Love <fx@gnu.org>
8877
7146d1c1 8878 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 8879
a6eeaa81 88802003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
8881
8882 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
8883 color mode is an integer number (it could be -1).
8884
8fe7d8c8
RS
88852003-09-22 Richard M. Stallman <rms@gnu.org>
8886
8887 * intervals.c (graft_intervals_into_buffer): Correct the main loop
8888 in the case where OVER is longer than UNDER.
8889
2f71b5ea
MY
88902003-09-22 Masatake YAMATO <jet@gyve.org>
8891
7146d1c1 8892 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 8893 `vertical_type'.
7146d1c1 8894
0c4da023
KS
88952003-09-21 Kim F. Storm <storm@cua.dk>
8896
8897 * frame.c (Vdefault_frame_scroll_bars): New variable.
8898 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
8899 (syms_of_frame): DEFVAR_LISP it, and initialize according to
8900 window-system default scroll bar position.
8901
b648413b
KS
8902 * window.c (Fwindow_scroll_bars): Doc fix.
8903
8f5b9e34
JD
89042003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8905
854c1a59 8906 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 8907
b0f23edf
RS
89082003-09-19 Richard M. Stallman <rms@gnu.org>
8909
8910 * atimer.h: Don't include lisp.h.
8911 (P_): Define it here (as well as elsewhere).
8912
8913 * print.c (Fprin1_to_string): Move the PRINTPREPARE
8914 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
8915
8916 * data.c (Fvariable_binding_locus): New function.
8917 (syms_of_data): defsubr it.
8918 (Flocal_variable_p): Delete duplicate call to indirect_variable.
8919
e1283999
DL
89202003-09-18 Dave Love <fx@gnu.org>
8921
ad5f3636
DL
8922 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
8923
e1283999
DL
8924 * process.c (Fnetwork_interface_info): Fix type error.
8925 (Fnetwork_interface_list): Doc fix.
8926 (read_process_output, read_process_output): Delete unused var.
8927
b8c7fd71
KS
89282003-09-17 Kim F. Storm <storm@cua.dk>
8929
8930 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
8931 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
8932 (Fnetwork_interface_info): Check that ifreq struct has required
8933 fields before accessing them; this requires that those fields are
8934 defined as macros, which may be too restrictive on some platforms,
8935 but it is better than failing on other platforms.
8936 (syms_of_process): Only defsubr above fns when included.
8937
11e0a411
DL
89382003-09-17 Dave Love <fx@gnu.org>
8939
8940 * unexalpha.c: Don't include varargs.h.
8941
e9c50801
KS
89422003-09-17 Kim F. Storm <storm@cua.dk>
8943
8944 * process.c (Fset_process_sentinel): Add sentinel to childp plist
8945 for network process.
8946 (socket_options): Add `:' prefix to option names. Add optbit field.
8947 (set_socket_option): Remove no_error arg and special handling of s < 0.
8948 Return 1<<optbit for known option, 0 for unknown.
8949 Do not interpret 0 as false for boolean option (only nil).
8950 Pass failed option and value to report_file_error.
7146d1c1 8951 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
8952 (Fset_network_process_option): New function to set just one option.
8953 (Fmake_network_process): Allow :coding arg to be a cons.
8954 Allow :server arg to be an integer specifying backlog size.
8955 Remove :options arg, and allow options to be specified directly
8956 as :KEY, VALUE pairs. Parse these options before binding socket.
8957 As before, :reuseaddr t is default for a server process, but this
8958 can now be disabled by specifying :reuseaddr nil.
8959 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
8960 (init_process): Availability of network options is now checked with
8961 simpler syntax (featurep 'make-network-process :OPTION); use loop to
8962 setup features.
8963 (syms_of_process): Fix defsubr's for the replaced functions.
8964
a0fc3644
DL
89652003-09-16 Dave Love <fx@gnu.org>
8966
8967 * Makefile.in: Depend on coding.h.
8968
6df2a645
KS
89692003-09-14 Kim F. Storm <storm@cua.dk>
8970
8971 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
8972 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
8973 (syms_of_process): Defsubr them.
8974
8975 * config.in: Regenerate.
7146d1c1
SM
8976
89772003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8978
8979 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
8980 * m/news-r6.h (XUNMARK): Remove.
8981 * m/mips.h (XUNMARK): Remove.
8982 * m/mips-siemens.h (XUNMARK): Remove.
8983 * m/iris4d.h (XUNMARK): Remove.
8984 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
8985
0930c1a1
SM
89862003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8987
31003b9e
SM
8988 * lisp.h (VALBITS): Don't remove 1 for the markbit.
8989 (union Lisp_Object): Use unsigned int for types. Remove markbit.
8990 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
8991 (XTYPE): Use unsigned right-shift.
8992 (XMARKBIT, XMARK, XUNMARK): Remove.
8993
0930c1a1
SM
8994 * alloc.c (init_intervals, init_symbol, init_marker):
8995 Don't preallocate anything.
8996 (Fgarbage_collect, mark_object): Ignore the markbit.
8997
8998 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
8999
19bb0fcd 90002003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
9001
9002 * xdisp.c (pint2hrstr): New function.
9003 (decode_mode_spec): Add `%i' and `%I' specs.
9004 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
9005 for `mode-line-format'.
9006
03bb6a06
AS
90072003-09-07 Andreas Schwab <schwab@suse.de>
9008
9009 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
9010 avoid warning.
9011
a6eeaa81 90122003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 9013
0930c1a1 9014 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 9015
ed159bbf
KS
90162003-09-03 Kim F. Storm <storm@cua.dk>
9017
9018 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
9019 change (superseded by 2002-08-30 change); the default blink-off
9020 cursor is now again "no cursor".
9021
fe64a394
JR
90222003-09-01 Jason Rumney <jasonr@gnu.org>
9023
9024 * makefile.w32-in (alloca.o): Remove.
9025 (coding.o): Depend on intervals.h
9026 (emacs.o, bytecode.o): Depend on window.h
9027
c0175e24
DL
90282003-09-01 Dave Love <fx@gnu.org>
9029
9030 * Makefile.in (alloca.o): Remove commands.
9031 (coding.o): Depend on intervals.h composite.h window.h.
9032 (emacs.o): Depend on window.h keyboard.h keymap.h.
9033 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
9034 (bytecode.o): Depend on window.h.
9035
a24d4cb2
JR
90362003-08-31 Jason Rumney <jasonr@gnu.org>
9037
4bc2315e
JR
9038 * w32term.c (w32_per_char_metric): Allow cached metrics to be
9039 returned even when font_type is unknown.
9040
a24d4cb2
JR
9041 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
9042
9d35adc7
JD
90432003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9044
9045 * xterm.c (x_term_init): Initialize new fields in x_display_info.
9046
9047 * xterm.h (struct x_display_info): Add red/green/blue_bits and
9048 *_offset.
9049
9050 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
9051 calculate pixel value.
9052
6f68b035
GM
90532003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
9054
0930c1a1
SM
9055 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
9056 Don't tell redisplay display is accurate when it's actually been
9057 paused for pending input.
6f68b035 9058
4828b4d7
RS
90592003-08-29 Richard M. Stallman <rms@gnu.org>
9060
9061 * dispnew.c (adjust_glyph_matrix): Call window_box
9062 whenever W is nonzero.
9063
9064 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9065 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 9066 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
9067 Use indirect_variable to trace thru variable aliases.
9068
9069 * config.in: Updated.
9070
9071 * callint.c (Fcall_interactively): Save and restore
9072 Vthis_command, Vthis_original_command, real_this_command,
9073 and current_kboard->Vlast_command.
9074
9075 * abbrev.c (Fexpand_abbrev): Insert before deleting.
9076
e019878d
GM
90772003-08-29 Gerd Moellmann <gerd@gnu.org>
9078
9079 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
9080
85478bc6
KH
90812003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
9082
0930c1a1 9083 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
9084 (decode_coding_sjis_big5): Likewise.
9085
07ce82d3
JR
90862003-08-27 Jason Rumney <jasonr@gnu.org>
9087
d3703de3
JR
9088 * w32.c (sys_pipe): Protect against file descriptor overflow.
9089
ee4a01d1
JR
9090 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
9091
07ce82d3
JR
9092 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
9093
a64387ee 90942003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
9095
9096 * xfns.c (Vgtk_version_string): New variable.
9097 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
9098
a6eeaa81 90992003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 9100
0930c1a1 9101 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 9102
5459e42a
EZ
9103 * Makefile.in (msdos.o): Depend on intervals.h.
9104
0930c1a1 9105 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 9106
231d6cfb
JD
91072003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9108
9109 * xterm.h (struct x_display_info): New fields: client_leader_window
9110 and Xatom_wm_client_leader.
9111
9112 * xterm.c (x_initialize): Move call to x_session_initialize to ...
9113 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
9114
9115 * xsmfns.c (create_client_leader_window): New function.
9116 (x_session_initialize): Call create_client_leader_window, take
9117 dpyinfo as argument.
9118
9119 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
9120
9121 * Makefile.in (xsmfns.o): Add more depenedencies.
9122
afa88464
DL
91232003-08-21 Dave Love <fx@gnu.org>
9124
9125 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
9126
f730033e
KH
91272003-08-21 Kenichi Handa <handa@m17n.org>
9128
9129 * term.c (term_init): Fix previous change; don't rely on the
9130 length of `buffer' if TERMINFO is defined.
9131
6dca786c
DL
91322003-08-20 Dave Love <fx@gnu.org>
9133
9134 * atimer.h: Include lisp.h.
9135
9136 * lisp.h (EMACS_LISP_H): New.
9137 (popup_activated_flag): Don't declare.
9138
9139 * alloca.c: Some merging with gnulib. Change logic and doc
9140 concerning (x)malloc/(x)free -- no longer Emacs-specific.
9141 [DO_BLOCK_INPUT]: Don't include lisp.h.
9142 (xmalloc, xfree): Declare.
9143 (malloc): Don't declare.
9144
0930c1a1 9145 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
9146 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
9147 atimer.h, blockinput.h.
9148
9149 * alloc.c (lisp_align_malloc): Change type of `aligned'.
9150
78819ebb 9151 * alloca.s: Remove.
6dca786c 9152
3a06a6d9
RS
91532003-08-19 Gerd Moellmann <gerd@gnu.org>
9154
9155 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
9156 use -lncurses.
9157
9158 * term.c (term_init): Use a buffer of size 4096 for tgetent since
9159 FreeBSD returns something longer than 2044. Abort if the end of
9160 the buffer is overwritten.
9161
27eeee55
MB
91622003-08-19 Miles Bader <miles@gnu.org>
9163
9164 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
9165
2f297815
GM
91662003-08-19 Gerd Moellmann <gerd@gnu.org>
9167
f4446bbf
GM
9168 * alloc.c (lisp_align_malloc): Check for memory full when
9169 allocating ablocks, which also avoids freeing a pointer into an
9170 ablocks structure.
9171
9172 * puresize.h (BASE_PURESIZE): Increase to 1100000.
9173
0930c1a1 9174 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 9175
0e7d7aae
RS
91762003-08-16 Richard M. Stallman <rms@gnu.org>
9177
9178 * editfns.c (Fencode_time): Doc fix.
9179
91802003-08-16 David Ponce <david@dponce.com>
9181
9182 * fileio.c (Fwrite_region): Fix conditional expression to issue
9183 the right message.
9184
b6189c3b 91852003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
9186
9187 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 9188 Set default value to 1.
0e7d7aae 9189
5d551295
KH
91902003-08-15 Kenichi Handa <handa@m17n.org>
9191
9192 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
9193 what autoscaled.
9194 (best_matching_font): Once we find a better scalable font, set
9195 non_scalable_has_exact_height_p to 1.
9196 (try_font_list): Call try_alternative_families to try any family
9197 with the given registry.
9198
1661e56b
AS
91992003-08-09 Andreas Schwab <schwab@suse.de>
9200
f29181dc
AS
9201 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
9202
1661e56b
AS
9203 * print.c (print_string): Fix printing of multibyte string with
9204 nontrivial printcharfun.
9205
465aa50a
JD
92062003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9207
9208 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
9209
9210 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
9211
e430e5ba
KH
92122003-07-31 Kenichi Handa <handa@m17n.org>
9213
9214 * process.c (read_process_output): Return the actually read bytes
9215 instead of the result of decoding.
9216
97e7188e
KH
92172003-07-31 Kenichi Handa <handa@m17n.org>
9218
9219 * xterm.h (struct x_bitmap_record): New member have_mask.
9220
9221 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
9222 to 0.
9223 (x_create_bitmap_from_file): Likewise.
9224 (x_destroy_bitmap): Check have_mask member before freeing a mask.
9225 (x_destroy_all_bitmaps): Likewise.
9226 (x_create_bitmap_mask): Set have_mask member to 1.
9227
b53094d6
RS
92282003-07-30 Richard M. Stallman <rms@gnu.org>
9229
9230 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
9231
631f2082
JD
92322003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9233
9234 * gtkutil.c (xg_mark_data): Update calls to mark_object.
9235
c855f2ca
RS
92362003-07-29 Richard M. Stallman <rms@gnu.org>
9237
9238 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
9239 Conditionalize XIM code on HAVE_XIM.
9240
9241 * fns.c (Fclear_string): New function.
9242 (syms_of_fns): defsubr it.
9243
b6189c3b 92442003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 9245
0930c1a1 9246 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 9247
29ea8ae9
SM
92482003-07-22 Stefan Monnier <monnier@cs.yale.edu>
9249
9250 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
9251
9252 * buffer.c (delete_all_overlays): New function.
9253 * buffer.h (delete_all_overlays): Declare.
9254 * coding.c (run_pre_post_conversion_on_str):
9255 * print.c (temp_output_buffer_setup):
9256 * fileio.c (Finsert_file_contents):
9257 * minibuf.c (get_minibuffer): Use it.
9258
1dd7ccf2
AC
92592003-07-22 Andrew Choi <akochoi@shaw.ca>
9260
9261 * unexmacosx.c (unexec_regions_sort_compare):
9262 (unexec_regions_merge): New functions. Sort and merge unexec
9263 regions before dumping them.
9264
f57bd967
DL
92652003-07-22 Dave Love <fx@gnu.org>
9266
9267 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
9268
7cdee936
SM
92692003-07-21 Stefan Monnier <monnier@cs.yale.edu>
9270
9271 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
9272 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
9273 MARKBIT as the gcmarkbit for strings.
9274
e50886d3
RS
92752003-07-21 Richard M. Stallman <rms@gnu.org>
9276
9277 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
9278
29ea8ae9 9279 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
9280 (syms_of_fns): Corresponding change.
9281
9282 * alloc.c (syms_of_alloc): Doc fixes.
9283
92842003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
9285
9286 * s/netbsd.h: Use -Wl syntax.
9287
fdc39b59
RS
92882003-07-17 Richard M. Stallman <rms@gnu.org>
9289
9290 * xterm.c (xim_initialize): Redo 6/24 change.
9291
9c53385f
SM
92922003-07-15 Stefan Monnier <monnier@cs.yale.edu>
9293
9294 * buffer.c (copy_overlays): Use EMACS_INT for positions.
9295 (Fswitch_to_buffer): Don't signal an error when switching to the same
9296 buffer in a dedicated window.
9297
9298 * alloc.c: Use bitmaps for cons, as was done for floats.
9299 (init_float, init_cons): Let the normal code allocate the first block.
9300 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
9301 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
9302 New macros.
9303 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
9304 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
9305 (live_cons_p): Check the pointer is not past the `conses' array.
9306 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
9307 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
9308 (survives_gc_p): Use CONS_MARKED_P and simplify.
9309 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
9310
dde13196
PE
93112003-07-13 Paul Eggert <eggert@twinsun.com>
9312
9313 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
9314 puts it into BSS instead, at least on Solaris 8 and 9.
9315 This is a valid optimization, and it may occur on other platforms,
9316 so Emacs should not assume that initializing a static variable to
9317 zero puts it into data.
9318 * alloc.c (pure, staticvec):
9319 Initialize these arrays to nonzero, so that they're not
9320 put into BSS by that optimization.
9321
a801bc34
SM
93222003-07-13 Stefan Monnier <monnier@cs.yale.edu>
9323
9324 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
9325 (lisp_align_malloc): Use posix_memalign is available.
9326 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
9327 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
9328 for consistency. Update users.
9329
0c8b2afa
RS
93302003-07-13 Richard M. Stallman <rms@gnu.org>
9331
9332 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
9333
668c2ab0
JB
93342003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
9335
9336 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
9337 and use the Gtk+ function gtk_window_icon_from_file if available.
9338
9339 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
9340 handle mask of bitmaps.
9341 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
9342 mask property.
9343 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
9344
9345 * xterm.h (xg_set_icon): New function.
9346
800bebe3
RS
93472003-07-12 Paul Eggert <eggert@twinsun.com>
9348
9349 * unexelf.c (unexec): Consider a section to precede the .bss
9350 section if its addresses overlap that of .bss.
9351
69e38995
RS
93522003-07-12 Richard M. Stallman <rms@gnu.org>
9353
9354 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
9355
9356 * config.in (HAVE_CRTIN): Add #undef.
9357 (INLINE): Really inline only if OPTIMIZE is defined.
9358
9359 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
9360 END_FILES_1.
9361 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 9362 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
9363
9364 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
9365 (TERMINFO): Define.
9366 (LIBS_TERMCAP): Define.
9367 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
9368
9369 * xfns.c: Include libpng/png.h instead of png.h.
9370
f1d0c238
AS
93712003-07-11 Andreas Schwab <schwab@suse.de>
9372
9373 * buffer.c (modify_overlay): Update prototype.
9374 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
9375 Likewise.
9376
5f6bf5fe
SM
93772003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9378
9379 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
9380 (struct interval): Move to intervals.h.
9381 (struct Lisp_Marker): Use EMACS_INT for position info.
9382 (forward_point): Remove prototype of defunct function.
9383 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
9384 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
9385 (syms_of_textprop, set_text_properties): Remove prototypes that are
9386 already in intervals.h.
9387
9388 * intervals.h (struct interval): Move from lisp.h.
9389 Use EMACS_INT for position and size info.
9390
9391 * coding.c: Include intervals.h for Fset_text_properties.
9392
9393 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9394 position and length information.
9395
2765b457
SM
93962003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9397
9398 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9399 position and length information.
9400
2410d73a
SM
94012003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9402
9403 Change overlays_after and overlays_before so the overlays themselves
9404 are linked into lists, rather than using cons cells. After all each
9405 Lisp_Misc already occupies 5 words, so we can add a `next' field to
9406 Lisp_Overlay for free and save up one cons cell per overlay (not
9407 to mention one indirection when traversing the list of overlay).
9408
9409 * lisp.h (struct Lisp_Overlay): New field `next'.
9410
9411 * buffer.h (struct buffer): Change overlays_before and overlays_after
9412 from Lisp lists of overlays to pointers to overlays.
9413
9414 * buffer.c (overlay_strings, recenter_overlay_lists):
9415 Fix typo in eassert in last commit.
9416 (unchain_overlay): New function.
9417 (add_overlay_mod_hooklist): Use AREF.
9418 (copy_overlays, reset_buffer, overlays_at, overlays_in)
9419 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
9420 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
9421 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
9422 (report_overlay_modification, evaporate_overlays, init_buffer_once):
9423 Adjust to new type of overlays_(before|after).
9424
9425 * alloc.c (mark_object): Mark the new `next' field of overlays.
9426 (mark_buffer): Manually mark the overlays_(after|before) fields.
9427
9428 * coding.c (run_pre_post_conversion_on_str):
9429 * editfns.c (overlays_around):
9430 * xdisp.c (load_overlay_strings):
9431 * fileio.c (Finsert_file_contents):
9432 * indent.c (current_column):
9433 * insdel.c (signal_before_change, signal_after_change):
9434 * intervals.c (set_point_both):
9435 * print.c (temp_output_buffer_setup): Use new type for
9436 overlays_(before|after).
9437
04812929
SM
94382003-07-08 Stefan Monnier <monnier@cs.yale.edu>
9439
9440 * buffer.c (report_overlay_modification): Don't run hooks while
9441 traversing the list of overlays.
9442
9443 * buffer.h (struct buffer): Use an int for overlay_center.
9444 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9445 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9446
9447 * buffer.c (reset_buffer, recenter_overlay_lists)
9448 (adjust_overlays_for_insert, adjust_overlays_for_delete)
9449 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
9450 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
9451 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9452 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9453
9454 * xdisp.c (fast_find_position): Remove unused var.
9455
9456 * cmds.c (Qexpand_abbrev): New sym.
9457 (syms_of_cmds): Initialize it.
9458 (internal_self_insert): Use it to call expand-abbrev.
9459
2e7ecf15
KS
94602003-07-09 Kim F. Storm <storm@cua.dk>
9461
f9711de4 9462 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 9463 was configured with --without-xim.
42f81f64 9464 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 9465
c6de56a0
RS
94662003-07-07 Richard M. Stallman <rms@gnu.org>
9467
9468 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
9469
9470 * alloc.c (Fgarbage_collect): Doc fix.
9471
b6189c3b 94722003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
9473
9474 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
9475
bfe1a3f7
SM
94762003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9477
04812929
SM
9478 * minibuf.c (read_minibuf): UNGCPRO before returning.
9479 (Ftry_completion, Fall_completions): Doc fix.
9480
bfe1a3f7
SM
9481 * alloc.c (live_float_p): Check that p is not past the `floats' array,
9482 now that `floats' is not the last element of the struct any more.
9483
ee79d1aa
JR
94842003-07-06 Jason Rumney <jasonr@gnu.org>
9485
9486 * w32term.h (ClipboardSequence_Proc): New type.
9487
9488 * w32fns.c (clipboard_sequence_fn): New variable.
9489 (globals_of_w32fns): Initialize it.
9490
9491 * w32select.c (last_clipboard_sequence_number): New variable.
9492 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
9493 number if possible.
9494
49723c04
SM
94952003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9496
4698665f
SM
9497 * m/amdx86-64.h (MARKBIT):
9498 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
9499 MARKBIT and ARRAY_MARK_FLAG any more.
9500
9501 * m/hp800.h (XSETMARKBIT):
9502 * m/sr2k.h (XSETMARKBIT):
9503 * lisp.h (XSETMARKBIT): Remove unused macro.
9504
49723c04
SM
9505 * lisp.h (mark_object): Change prototype.
9506
9507 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
9508 (last_marked): Change accordingly.
9509 (mark_interval, mark_maybe_object, mark_maybe_pointer)
9510 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
9511 (mark_buffer): Update calls to mark_object.
9512
9513 * bytecode.c (mark_byte_stack):
9514 * fns.c (sweep_weak_table):
9515 * keyboard.c (mark_kboards): Update calls to mark_object.
9516
1d660eca
JR
95172003-07-06 Jason Rumney <jasonr@gnu.org>
9518
9519 * alloc.c (struct ablock): Only include padding when there is some.
9520
618b5ae4
SM
95212003-07-04 Stefan Monnier <monnier@cs.yale.edu>
9522
9523 * alloc.c (ALIGN): Add casts to simplify usage.
9524 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
9525 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
9526 (struct ablock, struct ablocks): New types.
9527 (free_ablock): New global var.
9528 (lisp_align_malloc, lisp_align_free): New functions.
9529 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
9530 (struct float_block): Reorder and add gcmarkbits.
9531 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
9532 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
9533 (init_float, make_float): Use lisp_align_malloc.
9534 (free_float, live_float_p): Don't use `type' any more.
9535 (make_float): Use FLOAT_UNMARK to access to mark bit.
9536 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
9537 Use FLOAT_MARKED_P to access the mark bit.
9538 (pure_alloc): Simplify use of ALIGN.
9539 (mark_object): Use FLOAT_MARK to access the mark bit.
9540 (gc_sweep): Use new macros to access the float's mark bit.
9541 (init_alloc_once): Init free_ablock.
9542
9543 * lisp.h (struct Lisp_Float): Remove unused field `type'.
9544
3ef06d12
SM
95452003-06-27 Stefan Monnier <monnier@cs.yale.edu>
9546
9547 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
9548 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
9549 (allocate_buffer): Move.
9550 (string_bytes): Don't mask markbit of `size_byte'.
9551 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9552 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
9553 Use the `size' field of buffers (rather than the `name' field) for
9554 the mark bit, as is done for all other vectorlike objects.
9555 Use the new macros to access the mark bit of vectorlike objects.
9556
e81043aa
RS
95572003-06-26 Richard M. Stallman <rms@gnu.org>
9558
9559 * puresize.h (BASE_PURESIZE): Increment base size.
9560
9561 * xdisp.c (fast_find_position): Enable Gerd's new definition.
9562
9563 * xterm.c (xim_initialize): Undo previous change.
9564
2d0834cc
SM
95652003-06-26 Stefan Monnier <monnier@cs.yale.edu>
9566
9567 * alloc.c (survives_gc_p): Simplify.
9568
9569 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
9570
9571 * window.c (Fset_window_dedicated_p): Simplify.
9572 (display_buffer_1): Don't raise the win from which minibuf was entered.
9573 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
9574 (Fminibuffer_selected_window): Simplify.
9575
9576 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
9577
9578 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
9579 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
9580
9581 * insdel.c (check_markers, adjust_markers_for_delete)
9582 (adjust_markers_for_insert, adjust_markers_for_replace)
9583 (prepare_to_modify_buffer, RESTORE_VALUE):
9584 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
9585 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
9586 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
9587 * alloc.c (Fmake_marker, free_marker, gc_sweep):
9588 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
9589 * editfns.c (save_excursion_restore, transpose_markers):
9590 * window.c (delete_window):
9591 * xdisp.c (message_dolog): Update for new types.
9592
d54ae3d8
JD
95932003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9594
a5f696ac
JD
9595 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
9596 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 9597 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
9598
9599 * frame.c (make_frame): Initialize default_face_done_p.
9600
9601 * frame.h (struct frame): Add default_face_done_p.
9602
d54ae3d8
JD
9603 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
9604 will be defined.
9605
2336fe58
SM
96062003-06-25 Stefan Monnier <monnier@cs.yale.edu>
9607
9608 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
9609 Initialize the new field `gcmarkbit'.
9610 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
9611 (mark_interval_tree): Don't mark the tree separately from the nodes.
9612 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
9613 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9614 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
9615
9616 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
9617 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
9618 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
9619 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
9620 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
9621
bcea31c2
DL
96222003-06-24 Dave Love <fx@gnu.org>
9623
9624 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
9625
9626 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
9627 from gnulib.
9628
2601f59e
RS
96292003-06-21 Richard M. Stallman <rms@gnu.org>
9630
9631 * fileio.c (Fwrite_region): Alternate messages
9632 for append and partial write.
9633
9634 * keyboard.c (read_key_sequence): When converting upcase fn key to
9635 downcase, update fkey and keytran so `backspace' gets translated.
9636
9637 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
9638
9639 * process.c (wait_reading_process_input): Don't signal SIGIO
9640 in batch mode.
9641
b5d2c621
KH
96422003-06-17 Kenichi Handa <handa@m17n.org>
9643
9644 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
9645 composite.h.
9646
9647 * xselect.c: Don't include charset.h, coding.h, composite.h.
9648 (Qforeign_selection): New variable.
9649 (syms_of_xselect): Intern and static it.
9650 (selection_data_to_lisp_data): Return a unibyte string made from
9651 data with `foreign-selection' text property.
9652
6793bc63
SM
96532003-06-15 Stefan Monnier <monnier@cs.yale.edu>
9654
9655 * termhooks.h (EVENT_INIT): New macro.
9656
9657 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
9658
9659 * alloc.c (mark_kboards): Move to keyboard.c.
9660
9661 * keyboard.c (record_asynch_buffer_change, read_avail_input):
9662 * xterm.c (x_dispatch_event):
9663 * xmenu.c (find_and_call_menu_selection):
9664 * xdisp.c (handle_tool_bar_click):
9665 * w32menu.c (menubar_selection_callback):
9666 * sysdep.c (kbd_input_ast, read_input_waiting):
9667 * msdos.c (dos_rawgetc):
9668 * macterm.c (mac_check_for_quit_char):
9669 * macmenu.c (menubar_selection_callback):
9670 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
9671 data to kbd_buffer_store_event.
9672
b3ea810c
KS
96732003-06-15 Kim F. Storm <storm@cua.dk>
9674
9675 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 9676 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 9677
b8f75eda
KG
96782003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9679
9680 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
9681
ba92ce48
KH
96822003-06-12 Kenichi Handa <handa@m17n.org>
9683
9684 * fileio.c (Fwrite_region): Save and restore restriction.
9685
b80263be
DL
96862003-06-12 Dave Love <fx@gnu.org>
9687
9688 * alloca.c (alloca): Declare arg as size_t.
9689
6793bc63
SM
9690 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
9691 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 9692
b23c0a83
DL
96932003-06-11 Dave Love <fx@gnu.org>
9694
9695 * search.c (shrink_regexp_cache): Use xrealloc.
9696 (syms_of_search): Use xmalloc.
9697
700e47c2
KS
96982003-06-10 Kim F. Storm <storm@cua.dk>
9699
9700 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
9701 Adjust phys_cursor.x to be relative to window box, rather than
9702 text area before checking -- to ensure cursor is redrawn when
9703 exposing window.
9704 Note: This also fixes a similar (older) bug if display margins
9705 are present.
9706
f11aa0b2
KH
97072003-06-06 Kenichi Handa <handa@m17n.org>
9708
9709 * coding.c (encoding_buffer_size): If coding->type is
9710 coding_type_ccl, double magnification on CRLF encoding.
9711
3d143690
JR
97122003-06-06 Jason Rumney <jasonr@gnu.org>
9713
9714 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
9715 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
9716
9717 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
9718 Mac too.
9719
f16205ca
DL
97202003-06-05 Dave Love <fx@gnu.org>
9721
b23c0a83
DL
9722 * strftime.c: Merge changes from gnulib.
9723
f16205ca
DL
9724 * mktime.c (__mktime_internal): Merge changes from gnulib
9725 involving year 69 and dst2.
9726
9727 Changes to merge with gnulib version and be consistent with the
9728 autoconf test:
9729
6793bc63
SM
9730 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
9731 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
9732 [HAVE_LOCALE_H]: Include locale.h.
9733 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
9734
9b87a0bc
KS
97352003-06-05 Kim F. Storm <storm@cua.dk>
9736
9737 * window.c (coordinates_in_window): Convert X and Y to window
9738 relative coordinates inside mode-line and header-line parts.
9739 Convert X and Y to margin area relative coordinates inside left
9740 and right display margin parts.
9741
5a8a15ec
JR
97422003-06-05 Jason Rumney <jasonr@gnu.org>
9743
9744 * w32fns.c (add_system_logical_colors_to_map): New function.
9745 (Fx_open_connection): Use it.
9746
01ed8ff1
SM
97472003-06-04 Stefan Monnier <monnier@cs.yale.edu>
9748
9749 * process.c (allocate_pty): Revert part of the previous patch.
9750 (Faccept_process_output): Simplify.
9751
b427b65d
JR
97522003-06-04 Jason Rumney <jasonr@gnu.org>
9753
9754 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
9755
9756 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
9757 (lispy_mouse_wheel_names): Remove.
9758 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
9759 Always define drag_and_drop_syms.
9760
9761 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
9762 WHEEL_EVENT events.
9763
914a8c47
SM
97642003-06-03 Stefan Monnier <monnier@cs.yale.edu>
9765
01ed8ff1
SM
9766 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
9767
914a8c47
SM
9768 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
9769
adcb132c
JD
97702003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9771
9772 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
9773 menu item label.
9774
be781fa7
RS
97752003-06-03 Richard M. Stallman <rms@gnu.org>
9776
9777 * window.c (Fwindow_edges): Doc fix.
9778 (Fwindow_pixel_edges, Fwindow_inside_edges)
9779 (Fwindow_inside_pixel_edges): New functions.
9780 (syms_of_window): defsubr them.
9781
9782 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
9783 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
9784
914a8c47
SM
97852003-06-02 Stefan Monnier <monnier@cs.yale.edu>
9786
9787 * dispnew.c (Fsit_for): Don't lie about the number of args.
9788
5b07197a
DL
97892003-06-02 Dave Love <fx@gnu.org>
9790
9791 * callproc.c: Use HAVE_FCNTL_H, not USG5.
9792 (syms_of_callproc) <process-environment>: Doc fix.
9793
9794 * doc.c: Use HAVE_FCNTL_H, not USG5.
9795
9796 * xfaces.c (font_rescale_ratio): Fix for K&R.
9797
9798 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
9799
9800 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
9801
9802 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
9803
9804 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
9805 (xg_create_frame_widgets): Use ENCODE_UTF_8.
9806
d7107586 9807 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
9808
9809 * xmenu.c (ENCODE_MENU_STRING): New.
9810 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
9811 Use it.
9812
9813 * coding.h (ENCODE_UTF_8): New.
9814 (Qutf_8): Declare.
9815
9816 * coding.c (Qutf_8): New.
9817 (syms_of_coding): Intern it.
9818
9819 * fns.c: Doc fixes.
9820
7335b336
KH
98212003-06-02 Kenichi Handa <handa@m17n.org>
9822
9823 * buffer.c (Fset_buffer_multibyte): Fix previous change.
9824
914a8c47
SM
98252003-06-01 Stefan Monnier <monnier@cs.yale.edu>
9826
9827 * lread.c (openp): Make sure STR is a string.
9828
9862c135
JR
98292003-06-01 David Ponce <david@dponce.com>
9830
cab27d04 9831 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
9832 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
9833
9834 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
9835 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
9836 (discard_mouse_events): Discard WHEEL_EVENT events too.
9837 (lispy_wheel_names, wheel_syms): New.
9838 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 9839 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 9840 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
9841
9842 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
9843 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9844 WHEEL_EVENT events.
9845
f984e73e
JPW
98462003-05-31 John Paul Wallington <jpw@gnu.org>
9847
9848 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
9849 timer are in lisp/emacs-lisp.
9850
1efcd78f
KH
98512003-05-31 Kenichi Handa <handa@m17n.org>
9852
458c8af4
KH
9853 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
9854 region when a buffer is changed to unibyte.
9855
1efcd78f
KH
9856 * charset.h (VALID_LEADING_CODE_P): New macro.
9857 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
9858
778e2804
KH
9859 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
9860 is nonzero, accept multibyte form of eight-bit-control chars.
9861 (decode_composition_emacs_mule): Likewise.
9862 (decode_coding_emacs_mule): Likewise.
9863 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
9864 multibyte form of eight-bit-control chars.
9865
9866 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
9867 (Finsert_file_contents): If coding-system-for-read is bound to
9868 Qauto_save_coding, use the coding system emacs-mule with special
9869 setting for recovering a file.
9870 (choose_write_coding_system): On auto saving, use the coding
9871 system emacs-mule with special setting for auto saving.
9872 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
9873
034060e4
KH
98742003-05-30 Kenichi Handa <handa@m17n.org>
9875
9876 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
9877 properly before calling ccl_driver.
9878
778e2804 9879 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 9880
cab27d04 9881 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
9882 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
9883 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
9884
595f5aa5
GM
98852003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
9886
9887 * xfaces.c (realize_default_face): Do not abort if lface is
9888 non-existent - reverts change from 2003-05-19.
9889
103e0180
KH
98902003-05-29 Kenichi Handa <handa@m17n.org>
9891
9892 * coding.c (decode_coding_iso2022): Pay attention to the byte
9893 sequence of CTEXT extended segment, and retain those bytes as is.
9894
98952003-05-28 Kenichi Handa <handa@m17n.org>
9896
cab27d04 9897 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
9898 of CODING_REPLACEMENT_CHARACTER.
9899 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
9900 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
9901 check this flag on encoding.
cab27d04
SM
9902 (encode_coding_sjis_big5):
9903 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
9904 (Fset_terminal_coding_system_internal):
9905 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
9906 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
9907
9908 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
9909 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9910 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
9911
ff6a3bfb 99122003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 9913
ff6a3bfb
RS
9914 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
9915
9916 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 9917
1963c428
KS
99182003-05-28 Kim F. Storm <storm@cua.dk>
9919
9920 * xdisp.c (expose_window): Fix error in calculation of
9921 window relative coordinates of area to redisplay.
9922
2b5d4601
JR
99232003-05-27 Jason Rumney <jasonr@gnu.org>
9924
9925 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
9926
1c64a4a2
JB
99272003-05-27 David Ponce <david@dponce.com>
9928
9929 Handle W32 mouse wheel events as mouse click events, like in X.
9930
9931 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
9932 MOUSE_WHEEL_EVENT anymore.
9933
9934 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
9935 Scrolling down/up the mouse wheel is respectively mapped to mouse
9936 button 4 and 5.
9937 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9938 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
9939 WM_MOUSEWHEEL events.
9940
2d031b89
AS
99412003-05-27 Andreas Schwab <schwab@suse.de>
9942
20464fdf
AS
9943 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
9944
2d031b89
AS
9945 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
9946 partially visible line.
9947
9948 * alloc.c (Fgarbage_collect): Fix last change.
9949
97bc76d4
JPW
99502003-05-26 John Paul Wallington <jpw@gnu.org>
9951
9952 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
9953
56613f06
SM
99542003-05-25 Stefan Monnier <monnier@cs.yale.edu>
9955
9956 * window.c (Fset_window_buffer): Add type of `keep_margins'.
9957 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
9958
9959 * window.h (window_box_text_cols): Declare.
9960
9961 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
9962 (x_draw_vertical_border): Remove unused var `f'.
9963
9964 * xfaces.c (build_scalable_font_name): Remove `unused var
9965 pixel_size' warning.
9966
9967 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
9968
9969 * unexelf.c (unexec): Remove `unused var n' warning.
9970
9971 * strftime.c (my_strftime_localtime_r): Remove `defined but
9972 unused' warning.
9973
9974 * process.c (allocate_pty): Remove `unused var stb' and
9975 `cp might be used uninitialized' warnings.
9976
9977 * dispnew.c (mode_line_string): Remove unused var `f'.
9978
9979 * coding.c (find_safe_codings): Remove unused var `i'.
9980
9981 * bytecode.c (Fbyte_code): Remove `unused val' warning.
9982
9983 * buffer.c (Fkill_buffer): Remove unused var `list'.
9984
9985 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
9986
93421a1f
JD
99872003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9988
9989 * frame.c (make_frame): Condition want_fullscreen with
9990 HAVE_WINDOW_SYSTEM.
9991
c4b8aebc
JB
99922003-05-25 Juanma Barranquero <lektu@terra.es>
9993
9994 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
9995 (Fwindow_scroll_bars): Fix typo in docstring.
9996
0416870b
KS
99972003-05-24 Kim F. Storm <storm@cua.dk>
9998
9999 The following changes serve several purposes:
10000
10001 1) Swap the position of fringes and display margins in windows, i.e.
10002 the fringes are now displayed between the margins and the text area
10003 (by default).
10004
10005 2) Allow fringe and scroll bar parameters to be set per-buffer and
10006 per-window (like display margins). Such settings are now stored
10007 in window configurations, preserved when frames are resized, and
9018a88e 10008 copied when windows are split vertically or horizontally.
0416870b
KS
10009 Several bugs related to display margins have been fixed.
10010
10011 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 10012
0416870b
KS
10013 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
10014 rather than FRAME_WIDTH (FRAME_FONT (f)).
10015
10016 5) Introduce a consistent naming of variables, members and macros
10017 depending on whether their value is measured in pixels or in
10018 canonical columns/lines. Pixel dimensions are named *_width and
10019 *_height, while canonical columns/lines are named *_cols and
10020 *_lines. Pixel positions are named *_x and *_y, while column/line
10021 positions are named *_col and *_line.
10022
10023 6) Consolidate more of the X, W32, and MAC gui code by moving
10024 common data into struct frame, and generalize it for the non-gui
10025 case by using suitable defaults.
10026
10027 7) Cleanup and consolidate the macros controlling frame and window
10028 layout into frame.h and window.h, and generalize the use of the
10029 various window_box_* functions (enhanced to handle the new fringe
10030 position and the per-window fringe and scroll bar settings).
10031
10032 * frame.h (struct frame): Rename members height to text_lines,
10033 width to text_cols, window_height to total_lines, window_width to
10034 total_cols, new_height to new_text_lines, new_width to
10035 new_text_cols. All uses changed.
10036 (struct frame): New members which consolidate common members of
10037 x_output, w32_output, and mac_output structures: left_pos,
10038 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
10039 win_gravity, size_hint_flags, border_width, internal_border_width,
10040 line_height, fringe_cols, left_fringe_width, right_fringe_width,
10041 want_fullscreen. All uses changed.
10042 (struct frame): New member column_width contaning the canonical
10043 column width, analogue to line_height. All uses changed.
10044 (struct frame): Rename members scroll_bar_pixel_width to
10045 config_scroll_bar_width, and scroll_bar_cols to
10046 config_scroll_bar_cols. All uses changed.
10047 (struct frame): New member scroll_bar_actual_width which
10048 consolidates and renames the vertical_scroll_bar_extra member of
10049 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 10050 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
10051 from x/w32/macterm.h files. All uses changed. Also change code
10052 which referred to f->output_data...->pixel_height.
cab27d04 10053 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 10054 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 10055 which referred to f->output_data...->pixel_width.
cab27d04 10056 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 10057 Also change code which referred to f->height.
cab27d04 10058 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
10059 Also change code which referred to f->width.
10060 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
10061 to update new_text_lines and new_text_cols members directly.
cab27d04 10062 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 10063 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 10064 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
10065 FRAME_SCROLL_BAR_COLS. All uses changed.
10066 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 10067 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
10068 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
10069 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
10070 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
10071 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
10072 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
10073 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
10074 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
10075 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
10076 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
10077 Unconditionally return line_height member (it now has proper value
10078 also for non-window frames).
10079 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
10080 return new column_width member (rather than the default font width).
10081 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 10082 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
10083 from x/w32/macterm.h files. Unconditionally return corresponding
10084 member of frame structure (they now have proper values also for
10085 non-window frames).
cab27d04 10086 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
10087 Calculate return value from left and right widths.
10088 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
10089 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
10090 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
10091 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
10092 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
10093 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
10094 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 10095 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 10096 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 10097 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 10098 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 10099 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 10100 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 10101 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 10102 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 10103 consolidated from x/mac/w32term.h.
cab27d04 10104 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 10105 consolidated from x/mac/w32term.h.
cab27d04 10106 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 10107 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 10108 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
10109 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
10110
10111 * window.h (struct window): Rename members left to left_col,
10112 top to top_line, height to total_lines, width to total_cols,
10113 left_margin_width to left_margin_cols, right_margin_width to
10114 right_margin_cols, orig_height to orig_total_lines, orig_top to
10115 orig_top_line. All uses changed.
10116 (struct window): New members left_fringe_width, right_fringe_width,
10117 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
10118 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
10119 New macros primarily used to simplify other macros.
10120 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
10121 referred to XINT (w->width).
10122 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
10123 referred to XINT (w->height).
10124 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
10125 referred to XINT (w->width) * canon_x_unit.
10126 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
10127 referred to XINT (w->height) * canon_y_unit.
10128 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
10129 referred to XINT (w->left).
cab27d04 10130 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
10131 all uses and code that referred to XINT (w->left) + XINT (w->width).
10132 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
10133 referred to XINT (w->top).
10134 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
10135 referred to XINT (w->top) + XINT (w->height).
10136 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
10137 referred to XINT (w->left) * canon_x_unit.
10138 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
10139 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
10140 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
10141 referred to XINT (w->top) * canon_y_unit.
10142 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
10143 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
10144 (WINDOW_LEFTMOST_P): New macro.
cab27d04 10145 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 10146 All uses changed.
cab27d04 10147 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 10148 All uses changed.
cab27d04 10149 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
10150 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
10151 Do not exclude left fringe width.
cab27d04 10152 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
10153 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
10154 Do not exclude fringe widths.
10155 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
10156 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
10157 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
10158 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
10159 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
10160 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
10161 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
10162 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
10163 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
10164 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
10165 New macros. Change code which referenced corresponding
10166 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
10167 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
10168 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
10169 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
10170 allow per-window scroll-bar settings.
10171 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
10172 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
10173 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
10174 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
10175 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
10176 FRAME_SCROLL_BAR_WIDTH.
10177 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 10178 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 10179 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 10180 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 10181 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 10182 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 10183 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
10184 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
10185 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10186 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
10187 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
10188 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 10189 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 10190 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
10191 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
10192 (window_from_coordinates): Update prototype.
10193 (Fset_window_buffer): Update EXFUN.
10194 (set_window_buffer): Update prototype.
9018a88e 10195
0416870b 10196 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 10197 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
10198 changed.
10199 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
10200 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
10201 internal_border_width is now set to 0 for non-window frames.
10202 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
10203 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
10204 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
10205 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
10206 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
10207 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10208 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
10209 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
10210 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 10211 Move to window.h and renamed [see window.h changes].
0416870b
KS
10212 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
10213 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
10214 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
10215 Use WINDOW_TOTAL_LINES.
0416870b
KS
10216 (frame_update_line_height): Remove prototype.
10217
10218 * buffer.h (struct buffer): Rename members measured in columns:
10219 left_margin_width to left_margin_cols, right_margin_width to
10220 right_margin_cols. All uses changed.
10221 New members left_fringe_width, right_fringe_width,
10222 fringes_outside_margins for per-buffer fringe settings.
10223 New members scroll_bar_width and vertical_scroll_bar_type for
10224 per-buffer scroll bar settings.
10225
10226 * buffer.c (init_buffer_once): Set buffer_defaults and
10227 buffer_local_flags for new buffer-local variables
10228 left_fringe_width, right_fringe_width, fringes_outside_margins,
10229 scroll_bar_width, and vertical_scroll_bar_type.
10230 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
10231 default-* variables for them.
10232
10233 * dispnew.c: Make (many) trivial substitutions for renamed and
10234 new macros in dispextern.h, frame.h and window.h.
10235 (mode_line_string): No need to adjust width for mode lines, as it
10236 is already adjusted by the caller.
10237 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 10238
0416870b
KS
10239 * frame.c: Make (many) trivial substitutions for renamed and
10240 new macros in dispextern.h, frame.h and window.h.
10241 (make_frame): Initialize left_fringe_width, right_fringe_width,
10242 fringe_cols, scroll_bar_actual_width, border_width,
10243 internal_border_width, column_width, line_height, x_pixels_diff,
10244 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
10245 members with values suitable for a non-window frames.
10246
10247 * gtkutil.c: Make (many) trivial substitutions for renamed and
10248 new macros in dispextern.h, frame.h and window.h.
9018a88e 10249
0416870b
KS
10250 * indent.c: Make (few) trivial substitutions for renamed and
10251 new macros in dispextern.h, frame.h and window.h.
10252
10253 * keyboard.c: Make (many) trivial substitutions for renamed and
10254 new macros in dispextern.h, frame.h and window.h.
10255 (make_lispy_event): Use window positions returned from
10256 window_from_coordinates when constructing the lisp event for
10257 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
10258 (incorrect) values locally.
10259 (make_lispy_movement): Use window positions returned from
10260 window_from_coordinates when constructing the lisp event, rather
10261 than calculating (incorrect) values locally.
10262
10263 * scroll.c: Make (some) trivial substitutions for renamed and
10264 new macros in dispextern.h, frame.h and window.h.
10265
10266 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
10267 scroll-bars.
10268
10269 * sysdep.c: Make (few) trivial substitutions for renamed and
10270 new macros in dispextern.h, frame.h and window.h.
10271
10272 * term.c: Make (some) trivial substitutions for renamed and
10273 new macros in dispextern.h, frame.h and window.h.
10274
10275 * widget.c: Make (few) trivial substitutions for renamed and
10276 new macros in dispextern.h, frame.h and window.h.
10277
10278 * window.c: Make (many) trivial substitutions for renamed and
10279 new macros in dispextern.h, frame.h and window.h.
10280 (make_window): Initialize new members
10281 left_margin_cols, right_margin_cols, left_fringe_width,
10282 right_fringe_width, fringes_outside_margins, scroll_bar_width,
10283 and vertical_scroll_bar_type.
cab27d04 10284 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 10285 and per-window fringes and scroll-bars.
0416870b 10286 Fix bug related to incorrectly adjusting coordinates by
9018a88e 10287 frame's internal_border_width (the effect normally negible since
0416870b
KS
10288 the internal_border_width is typically 0 or 1 pixel, but very
10289 noticeable for an internal_border_width of e.g. 25 pixels).
10290 Upon successful return (other than ON_NOTHING), the coordinates
10291 are now always properly converted to window relative for the
10292 given display element.
10293 (window_from_coordinates): Add new parameters wx and wy to
10294 return the window relative x and y position in the returned
10295 window and part. A null arg means, don't return the position.
10296 All callers changed.
10297 (adjust_window_margins): New function which may reduce the width
10298 of the display margins if a window's text area is too small after
10299 resizing or splitting windows.
10300 (size_window): Fix bug that did not account for display margin
10301 widths when checking the minimum width of a window; use
10302 adjust_window_margins.
10303 (set_window_buffer): Call Fset_window_fringes and
10304 Fset_window_scroll_bars to setup per-window elements.
10305 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
10306 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
10307 (e.g. after splitting a window or resizing the frame).
10308 All callers changed.
0416870b
KS
10309 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
10310 (Fsplit_window): Duplicate original window's display margin,
10311 fringe, and scroll-bar settings; then call Fset_window_buffer with
10312 KEEP_MARGINS non-nil. This fixes a bug which caused a split
10313 window to only preserve the display margins in one of the windows.
c4b8aebc 10314 When splitting horizontally, call adjust_window_margins on both
0416870b 10315 windows to ensure that the text area of the new windows is non too
f9711de4 10316 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
10317 width of the split window was less than the width of the display
10318 margins.
cab27d04 10319 (window_box_text_cols): Rename from window_internal_width.
9018a88e 10320 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
10321 Fix bug that caused vertical separator to be subtracted also on
10322 window frames. Fix another bug that did not reduce the returned
10323 value by the columns used for display margins.
10324 (window_scroll_line_based): Fix bug related to scrolling too much
10325 when display margins are present (implicitly fixed by the fix to
10326 window_box_text_cols).
10327 (scroll_left, scroll_right): Fix bug related to scrolling too far
10328 by default when display margins are present (implicitly fixed by
10329 the fix to window_box_text_cols).
10330 (struct saved_window): Rename members left to left_col, top to
10331 top_line, width to total_cols, height to total_lines, orig_top to
10332 orig_top_line, orig_height to orig_total_lines. All uses changed.
10333 New members left_margin_cols, right_margin_cols,
10334 left_fringe_width, right_fringe_width, fringes_outside_margins,
10335 scroll_bar_width, and vertical_scroll_bar_type for saving
10336 per-window display elements.
10337 (Fset_window_configuration): Restore display margins, fringes,
10338 and scroll bar settings. This fixes a bug which caused display
10339 margins to be discarded when saving and restoring a window
10340 configuration.
10341 (save_window_save): Save display margins, fringes, and scroll bar
10342 settings. This fixes a bug which caused display margins to be
10343 discarded when saving and restoring a window configuration.
10344 (Fset_window_margins): Do nothing if display margins are not
10345 really changed. Otherwise, call adjust_window_margins to ensure
10346 the text area doesn't get too narrow. This fixes a bug which
f9711de4 10347 could cause Emacs to trap if setting display margins wider than
0416870b
KS
10348 the width of the window.
10349 (Fset_window_fringes): New defun to allow user to specifically set
10350 this window's fringe widths and position vs. display margins.
cab27d04 10351 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
10352 (Fset_window_scroll_bars): New defun to allow user to specifically
10353 set this window's scroll bar width and position.
10354 (Fwindow_scroll_bars): New defun to return window's actual scroll
10355 bar settings.
10356 (compare_window_configurations): Also compare display margins,
10357 fringes, and scroll bar settings.
10358 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
10359
10360 * xdisp.c: Make (many) trivial substitutions for renamed and
10361 new macros in dispextern.h, frame.h and window.h.
10362 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 10363 and new fringe vs. display margin position. Note that returned
0416870b
KS
10364 value is no longer guaranteed to be a whole multiple of the frame
10365 column width, since per-window fringes may now be any width.
10366 (window_box_left_offset): New function like window_box_left, but
10367 value is relative to left border of window (rather than frame).
10368 (window_box_right_offset): New function like window_box_right,
10369 but value is relative to left border of window.
10370 (window_box_left): Adapt to per-window fringes and scroll bars,
10371 and new fringe vs. display margin position. Simplify by using
10372 WINDOW_LEFT_EDGE_X and window_box_left_offset.
10373 (window_box): Allow null args for unnecessary return values;
10374 change/simplify relevant callers.
10375 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
10376 and new fringe vs. display margin position.
10377 Use window_box_left_offset and window_box_right_offset
0416870b 10378 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
10379 scroll bars, and new fringe vs. display margin position.
10380 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
10381 (draw_fringe_bitmap): Rework to handle per-window fringes and new
10382 fringe vs. display margin position.
10383 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
10384 (redisplay_window): Adapt to per-window scroll bars.
10385 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
10386 bars, and new fringe vs. display margin position.
10387 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 10388 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
10389 bars, and new fringe vs. display margin position. Fix bug which
10390 increased total width of full_width rows by width of scroll bars
10391 although window's total width already includes that.
10392 (x_fix_overlapping_area): Simplify using window_box_left_offset.
10393 (expose_area): Simplify using window_box_left_offset.
10394 (x_draw_vertical_border): Handle per-window scroll bar settings,
10395 mixing windows with left, right and no scroll bars.
10396
10397 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
10398 where it's used in x_list_fonts (for clarity).
10399 (frame_update_line_height): Remove unused function; functionality
10400 is now done directly when setting the default font in x_set_font.
10401
10402 * xfns.c: Make (many) trivial substitutions for renamed and
10403 new macros in dispextern.h, frame.h and window.h.
10404
10405 * xmenu.c: Make (some) trivial substitutions for renamed and
10406 new macros in dispextern.h, frame.h and window.h.
10407
10408 * xterm.h (struct x_output): Move members left_pos, top_pos,
10409 border_width, pixel_height, pixel_width, line_height,
10410 internal_border_width, vertical_scroll_bar_extra,
10411 left_fringe_width, right_fringe_width, fringe_cols,
10412 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10413 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10414 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10415 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10416 (PIXEL_WIDTH, PIXEL_HEIGHT)
10417 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10418 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10419 frame.h and renamed [see frame.h changes].
10420 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10421 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10422 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10423 and renamed [see frame.h changes].
9018a88e 10424
0416870b
KS
10425 * xterm.c: Make (several) trivial substitutions for renamed and
10426 new macros in dispextern.h, frame.h and window.h.
cab27d04 10427 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10428 (scroll_run): Adapt to new fringe position.
10429 (glyph_rect): Use window coordinates returned from
10430 window_from_coordinates rather than frame_to_window_pixel_xy.
10431 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10432 scroll-bars.
10433 (handle_one_xevent): Simplify a USE_GTK conditional.
10434 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10435 (fringes are now inside margins, i.e. always in the clipping area).
10436 All callers changed.
10437 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10438 directly, then call compute_fringe_widths. Don't call
10439 frame_update_line_height.
10440
10441 * w32term.h (struct w32_output): Move members left_pos, top_pos,
10442 border_width, pixel_height, pixel_width, line_height,
10443 internal_border_width, vertical_scroll_bar_extra,
10444 left_fringe_width, right_fringe_width, fringe_cols,
10445 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10446 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10447 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10448 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10449 (PIXEL_WIDTH, PIXEL_HEIGHT)
10450 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10451 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10452 frame.h and renamed [see frame.h changes].
10453 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10454 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10455 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10456 and renamed [see frame.h changes].
9018a88e 10457
0416870b
KS
10458 * w32term.c: Make (several) trivial substitutions for renamed and
10459 new macros in dispextern.h, frame.h and window.h.
cab27d04 10460 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10461 (glyph_rect): Use window coordinates returned from
10462 window_from_coordinates rather than frame_to_window_pixel_xy.
10463 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10464 scroll-bars.
10465 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
10466 (fringes are now inside margins, i.e. always in the clipping area).
10467 All callers changed.
10468 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10469 directly, then call compute_fringe_widths. Don't call
10470 frame_update_line_height.
10471
10472 * w32console.c: Make (few) trivial substitutions for renamed and
10473 new macros in dispextern.h, frame.h and window.h.
10474
10475 * w32fns.c: Make (many) trivial substitutions for renamed and
10476 new macros in dispextern.h, frame.h and window.h.
10477
10478 * w32menu.c: Make (few) trivial substitutions for renamed and
10479 new macros in dispextern.h, frame.h and window.h.
10480
10481 * macterm.h (struct mac_output): Move members left_pos, top_pos,
10482 border_width, pixel_height, pixel_width, line_height,
10483 internal_border_width, vertical_scroll_bar_extra,
10484 left_fringe_width, right_fringe_width, fringe_cols,
10485 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10486 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
10487 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10488 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10489 (PIXEL_WIDTH, PIXEL_HEIGHT)
10490 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 10491 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
10492 frame.h and renamed [see frame.h changes].
10493 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10494 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 10495 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 10496 and renamed [see frame.h changes].
9018a88e 10497
0416870b
KS
10498 * macterm.c: Make (several) trivial substitutions for renamed and
10499 new macros in dispextern.h, frame.h and window.h.
cab27d04 10500 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
10501 (glyph_rect): Use window coordinates returned from
10502 window_from_coordinates rather than frame_to_window_pixel_xy.
10503 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10504 scroll-bars.
10505 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10506 (fringes are now inside margins, i.e. always in the clipping area).
10507 All callers changed.
10508 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10509 directly, then call compute_fringe_widths. Don't call
10510 frame_update_line_height.
10511
10512 * macfns.c: Make (several) trivial substitutions for renamed and
10513 new macros in dispextern.h, frame.h and window.h.
9018a88e 10514 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
10515
10516 * macmenu.c: Make (few) trivial substitutions for renamed and
10517 new macros in dispextern.h, frame.h and window.h.
10518
10519 * msdos.h (struct x_output): Remove members left_pos, top_pos,
10520 and line_height, and use corresponding new members in struct
10521 frame. All uses changed.
10522 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
10523 superseeded by corresponding macros in frame.h.
10524
10525 * msdos.c: Make (several) trivial substitutions for renamed and
10526 new macros in dispextern.h, frame.h and window.h.
10527 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 10528 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
10529 (internal_terminal_init): No need to initialize line_height here;
10530 it now defaults to 1.
10531
9018a88e
SM
105322003-05-24 Stefan Monnier <monnier@cs.yale.edu>
10533
10534 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
10535 dropping `down' events.
10536
016bd3c0
AS
105372003-05-24 Andreas Schwab <schwab@suse.de>
10538
10539 * coding.c (find_safe_codings): Fix last change.
10540
4dacadcc
TTN
105412003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
10542
10543 * xfns.c (x_window): Fix typo from 2003-05-21 change.
10544
319830ce
SM
105452003-05-23 Stefan Monnier <monnier@cs.yale.edu>
10546
9018a88e
SM
10547 * xdisp.c (display_mode_element): Increase max depth.
10548 Simplify the error handling code. Use a different error string
10549 for the case where we hit the depth limit.
10550
319830ce
SM
10551 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
10552
10553 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
10554
105552003-05-21 Stefan Monnier <monnier@cs.yale.edu>
10556
10557 * intervals.c (get_local_map): Don't get char-property of previous
10558 point any more: get_pos_property already does it and better.
10559
c67de8ba
DL
105602003-05-21 Dave Love <fx@gnu.org>
10561
10562 [Merged from unicode branch.]
10563
10564 * xfns.c (x_window, x_window): Use use_xim.
10565
10566 * xterm.c (use_xim): Initialize.
10567 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10568 (x_term_init): Maybe set use_xim.
10569
10570 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10571
edd3ff1d
JR
105722003-05-21 Jason Rumney <jasonr@gnu.org>
10573
10574 * unexw32.c (_start): Remove _fmode initialization.
10575
10576 * emacs.c (main) [WINDOWSNT]: Move it here.
10577
463f55ee
DL
105782003-05-20 Dave Love <fx@gnu.org>
10579
10580 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
10581
af253914
RS
105822003-05-19 Richard M. Stallman <rms@gnu.org>
10583
10584 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
10585 as value for QCfont attribute.
10586 (realize_default_face): lface should already exist; crash if not.
10587 Specify 0 for FORCE_P when calling set_lface_from_font_name.
10588
10589 * frame.c (Fignore_event): Doc fix.
10590
1d211019
KH
105912003-05-19 Kenichi Handa <handa@m17n.org>
10592
10593 * coding.c (decode_coding_string): Handle post-read-conversion
10594 even if the coding doesn't require decoding.
10595
4dd68254
RS
105962003-05-18 Richard M. Stallman <rms@gnu.org>
10597
10598 * callproc.c (Fcall_process_region): Doc fix.
10599
14d87dc9
SM
106002003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10601
deca5d96
SM
10602 * lread.c (Fload): Print a message if package is obsolete.
10603
14d87dc9
SM
10604 * window.c (Fselect_window): Add optional `norecord' arg.
10605 (select_window_1): Fold into Fselect_window.
10606 (select_window_norecord): New function.
10607 (temp_output_buffer_show): Use it. Preserve current buffer.
10608
10609 * window.h (Fselect_window): Update declaration.
10610
10611 * window.c (delete_window, Fother_window, Fset_window_configuration):
10612 * minibuf.c (read_minibuf):
10613 * macterm.c (x_new_focus_frame):
10614 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
10615 * callint.c (Fcall_interactively):
10616 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
10617
10618 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
10619
78f52183
DK
106202003-05-17 David Kastrup <dak@gnu.org>
10621
10622 * process.c (read_process_output): Back out change from 2003-03-09.
10623
14d87dc9
SM
106242003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10625
10626 * editfns.c (get_pos_property): Don't assume that `object' = nil.
10627
10628 * textprop.c (text_property_stickiness): New arg `buffer'.
10629
10630 * intervals.h (text_property_stickiness): New arg `buffer'.
10631 (get_pos_property): Declare.
10632
10633 * intervals.c (get_local_map): Use get_pos_property, to obey
10634 stickiness and empty overlays.
10635 (create_root_interval, graft_intervals_into_buffer): Use BEG.
10636 (merge_properties, intervals_equal, merge_properties_sticky):
10637 Use XCAR, XCDR.
10638 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
10639
1fd1cc2f
RS
106402003-05-17 Richard M. Stallman <rms@gnu.org>
10641
4f9f637a
RS
10642 * minibuf.c (read_minibuf): If buffer is empty, record the default
10643 in the history.
10644 (Fminibuffer_complete_word): When deleting the overlap, take account
10645 of its real position.
10646
10647 * fns.c (map_char_table): Fix previous change.
10648
1fd1cc2f
RS
10649 * syntax.c (find_defun_start):
10650 When open_paren_in_column_0_is_defun_start,
10651 return beginning of buffer.
10652
10653 * lisp.h (map_char_table): Declare added arg.
10654
10655 * fns.c (map_char_table): New arg TABLE gets the master table.
10656 All calls changed.
10657 Process default and inheritance, resorting to Faref if necessary.
10658
10659 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10660 (Faccessible_keymaps): Pass new arg to map_char_table.
10661
10662 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
10663
10664 * casetab.c (set_case_table): Pass new arg to map_char_table.
10665
10666 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
10667
10668 * lisp.h (specbinding_func): New typedef.
10669 (struct specbinding): Use specbinding_func, to put the `volatile'
10670 in the right place.
10671
10672 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
10673 to avoid GCC warning.
14d87dc9 10674
b6189c3b 106752003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 10676
14d87dc9 10677 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 10678
35fb885d
SM
106792003-05-15 Stefan Monnier <monnier@cs.yale.edu>
10680
10681 * keyboard.c (apply_modifiers): Don't fill the other cache.
10682
9a274fbd
SM
106832003-05-14 Stefan Monnier <monnier@cs.yale.edu>
10684
c55b5fad
SM
10685 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
10686
9a274fbd
SM
10687 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
10688 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
10689 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
10690 (Fset_window_configuration, Fcurrent_window_configuration)
10691 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
10692 (Fpos_visible_in_window_p, mark_window_cursors_off)
10693 (window_internal_height, window_internal_width, Frecenter)
10694 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
10695 (replace_buffer_in_all_windows, init_window_once, init_window)
10696 (syms_of_window, keys_of_window): Move from lisp.h.
10697 * lisp.h: Move window.c declarations to window.h.
10698
10699 * bytecode.c: Include window.h.
10700 * emacs.c: Include window.h.
10701
14d87dc9 10702 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
10703 (keyremap): Add `parent' field.
10704 (keyremap_step): Use it. Remove `parent' argument.
10705 (read_key_sequence): Setup and use the new `parent' field.
10706
fd93e331
SM
107072003-05-11 Stefan Monnier <monnier@cs.yale.edu>
10708
10709 * keyboard.c (adjust_point_for_property): Ensure termination.
10710
1c4001a1
SM
107112003-05-10 Stefan Monnier <monnier@cs.yale.edu>
10712
10713 * keyboard.c (follow_key): Remove dead variable `did_meta'.
10714 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
10715 duplicated handling of function-key-map and key-translation-map
10716 in read_key_sequence.
10717 (read_key_sequence): Use them.
10718
10719 * keyboard.c (adjust_point_for_property): Try harder to move point
10720 to the non-sticky end of an invisible property.
10721
10722 * xdisp.c (single_display_prop_intangible_p): Make `space' display
10723 property intangible as well.
10724
780379b1
AS
107252003-05-10 Andreas Schwab <schwab@suse.de>
10726
10727 * xmenu.c (single_menu_item): Change last parameter to void* to
10728 avoid warning.
10729
ca2de342
RS
107302003-05-09 Richard M. Stallman <rms@gnu.org>
10731
10732 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
10733 Bind Qinhibit_modification_hooks to t so there will be no GC.
10734 Rename local `tem' to `save_deactivate_mark'.
10735
10736 * eval.c (specpdl_ptr): Declare volatile.
10737 (unbind_to): Copy the whole binding and decrement specpdl_ptr
10738 before doing the work of unbinding it.
10739
10740 * lisp.h (struct specbinding): Declare elements volatile.
10741 (specpdl_ptr): Declare volatile.
10742
10743 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
10744
10745 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
10746 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
10747
347003be
DL
107482003-05-08 Dave Love <fx@gnu.org>
10749
10750 * coding.c (Vlast_coding_system_used): Doc fix.
10751
5adcec23
JR
107522003-05-07 Jason Rumney <jasonr@gnu.org>
10753
10754 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
10755 when system does not support them.
10756
5fe3b8a4
SM
107572003-05-05 Stefan Monnier <monnier@cs.yale.edu>
10758
10759 * fileio.c (Qwrite_region_annotate_functions): New var.
10760 (build_annotations): Use it to process the global part of the hook.
10761 (syms_of_fileio): Init and staticpro it.
10762
10763 * keyboard.c (safe_run_hooks_error): Display a message instead of
10764 silently ignoring the error.
10765
107662003-05-03 Stefan Monnier <monnier@cs.yale.edu>
10767
10768 * keyboard.c (input_available_signal): Mark static.
10769 (menu_bar_items): Use map_keymap.
10770 (menu_bar_one_keymap): Remove.
10771 (menu_bar_item): Adjust arglist (for use in map_keymap).
10772 Properly hide a second binding when not both are keymaps.
10773
10774 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
10775 (single_keymap_panes): Use it and map_keymap.
10776 (single_menu_item): Use skp as well.
10777
10778 * keymap.h (map_keymap_function_t): New type.
10779 (map_keymap): Declare.
10780
10781 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
10782 (map_keymap_call, Fmap_keymap): New functions.
10783 (syms_of_keymap): Defsubr map-keymap.
10784
4b1b4443
JD
107852003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10786
10787 * gtkutil.c (create_dialog, make_widget_for_menu_item)
10788 (make_menu_item, create_menus, xg_update_menu_item): Don't call
10789 ..._with_mnemonic functions for menu items.
10790
1f816871
KH
107912003-05-01 Kenichi Handa <handa@m17n.org>
10792
10793 * coding.c (coding_system_accept_latin_extra_p): Delete this
10794 function.
10795 (find_safe_codings): Pay attention to
10796 the property tranlsation-table-for-encode of each codings.
10797 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
10798
5ed6ba5b
SM
107992003-05-01 Stefan Monnier <monnier@cs.yale.edu>
10800
10801 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
10802
32c06229
SM
108032003-04-30 Stefan Monnier <monnier@cs.yale.edu>
10804
10805 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
10806
10807 * lisp.h (CHECK): Wrap args in parenthesis.
10808 (specbind): Fix doc: symbol = Qnil is not supported any more.
10809
10810 * bytecode.c (Fbyte_code) <unwind-protect>:
10811 Use Fprogn rather than 0 and Qnil.
10812
10813 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
10814 `double', and `triple' modifiers as well.
10815
ed3c3314
RS
108162003-04-30 Richard M. Stallman <rms@gnu.org>
10817
10818 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
10819
10820 * alloc.c (abort_on_gc): New variable.
10821 (Fgarbage_collect): Abort if abort_on_gc is set.
10822
10823 * lisp.h (abort_on_gc): Add decl.
10824
10825 * eval.c (Fsignal): Clear abort_on_gc.
10826
10827 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 10828 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
10829
10830 * xdisp.c (move_it_vertically_backward): Do the final big else
10831 even if nlines is 0.
10832
10833 * xdisp.c (redisplay_internal): Finish the per-frame loop
10834 even if redisplay is suspended by input.
10835
0b325c12
AC
108362003-04-24 Andrew Choi <akochoi@shaw.ca>
10837
10838 * macterm.c (x_list_fonts): Return all fonts that match if
10839 maxnames = -1.
10840
4e837cd0
KH
108412003-04-25 Kenichi Handa <handa@m17n.org>
10842
10843 * syntax.c (skip_chars): Fix previous change.
10844
9af7511a
KH
108452003-04-24 Kenichi Handa <handa@m17n.org>
10846
10847 * syntax.c (skip_chars): Make the code faster by using the common
10848 technique of *p, *stop, and *endp.
10849
e3b2c21f
JD
108502003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10851
10852 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 10853 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
10854 being updated.
10855
32c06229
SM
108562003-04-19 Stefan Monnier <monnier@cs.yale.edu>
10857
10858 * eval.c (Fapply): Undo last change and add a comment about why.
10859
c6464167
MB
108602003-04-18 Miles Bader <miles@gnu.org>
10861
10862 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
10863 pickier PARSE_MULTIBYTE_SEQ.
10864
e509f168
SM
108652003-04-17 Stefan Monnier <monnier@cs.yale.edu>
10866
10867 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
10868 Use XCDR, XCAR, CONSP.
10869 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
10870 (Fapply): Remove unnecessary GCPRO.
10871
10872 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
10873
10874 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
10875
10876 * buffer.h: Don't hardcode BEG==1.
10877
10878 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
10879
5ceea398
RS
108802003-04-16 Richard M. Stallman <rms@gnu.org>
10881
10882 * xdisp.c (try_window, try_window_reusing_current_matrix):
10883 When at end of window, set window_end_pos to Z-ZV.
10884
10885 * buffer.c (Foverlay_recenter): Doc fix.
10886
e509f168
SM
108872003-04-14 Stefan Monnier <monnier@cs.yale.edu>
10888
10889 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
10890
d243e605
AC
108912003-04-14 Andrew Choi <akochoi@shaw.ca>
10892
10893 * macterm.c (mac_check_for_quit_char): Don't check more often than
10894 once a second.
10895
6901b111
SM
108962003-04-11 Stefan Monnier <monnier@cs.yale.edu>
10897
10898 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
10899 specially, so that they can't hide an implicit switch-frame event.
10900 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
10901 (head_table): Use switch-frame as event_kind for select-window.
10902 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
10903
10904 * editfns.c (Fformat): Lisp_Object/int mixup.
10905 (format2): Remove unused var numargs.
10906
e301806f 109072003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 10908
6901b111 10909 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
10910 (Qafter_insert_file_set_coding): New variable.
10911 (syms_of_fileio): Initialize and staticpro it. Delete declaration
10912 for after-insert-file-adjust-coding-function.
10913 (Finsert_file_contents): Call Qafter_insert_file_set_coding
10914 instead of Vafter_insert_file_adjust_coding_function.
10915
38914424
KH
109162003-04-11 Kenichi Handa <handa@m17n.org>
10917
10918 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
10919
10920 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
10921 string. Callers changed.
10922
109232003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 10924
6901b111 10925 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 10926 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
10927 (Finsert_file_contents):
10928 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
10929 decode-format.
10930
f979dc05
JD
109312003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10932
10933 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
10934 get GtkAdjustment as widget now is a GtkRange.
10935
10936 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
10937 GtkRange to avoid memory leak.
10938
f8c6b4c2 109392003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 10940
50ebc53d
KH
10941 * xfaces.c (Vface_font_rescale_alist): New variable.
10942 (struct font_name): New member rescale_ratio.
10943 (font_rescale_ratio): New function.
6901b111 10944 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
10945 (better_font_p): On comparing point sized, pay attention to
10946 recale_ratio member of fonts.
10947 (build_scalable_font_name): Reflect font->rescale_ratio in the
10948 font name.
6901b111 10949 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 10950
cb98871c
KH
10951 * lread.c (read1): Before calling index, check if the 2nd
10952 arguemnt is in ASCII range.
10953
4773b8ca
RS
109542003-04-08 Richard M. Stallman <rms@gnu.org>
10955
b0ada147
RS
10956 * fileio.c (Ffile_symlink_p): Doc fix.
10957
10958 * editfns.c (Fformat): Translate positions of text properties
10959 in the format string to apply them to the result.
10960
4773b8ca
RS
10961 * fileio.c (Finsert_file_contents): Doc fix.
10962 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
10963
109642003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 10965
4773b8ca
RS
10966 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
10967
e8f25745 109682003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 10969
e8f25745
ST
10970 * mac.c (init_mac_osx_environment): Switch libexec and bin so
10971 that self-contained application finds libexec files.
10972
f8c6b4c2 109732003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 10974
6901b111
SM
10975 * coding.c (code_convert_region_unwind):
10976 Set Vlast_coding_system_used to the argument.
2310d84c
KH
10977 (code_convert_region): If post-read-conversion function changed
10978 the value of last-coding-sytem, keep the new value in
10979 coding->symbol so that it won't be overridden.
10980 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
10981 (coding_system_accept_latin_extra_p): New function.
10982 (find_safe_codings): Pay attention to characters registered in
10983 latin-extra-code-table.
2310d84c 10984
39c9a034
TTN
109852003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
10986
10987 * Makefile.in (md5.o): Add missing dependency info.
10988
eb67c5d6
RS
109892003-04-06 Richard M. Stallman <rms@gnu.org>
10990
10991 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
10992
10993 * marker.c (verify_bytepos): New function.
10994
10995 * intervals.c (set_intervals_multibyte_1): When becoming
10996 multibyte, adjust right and left child sizes to a whole set of
10997 characters. If an interval gets zero total-length, delete it.
10998 If an interval consists of just its children, delete one of them.
10999
11000 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
11001 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 11002
52eb0373 11003 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
11004 All calls deleted.
11005 (lisp_malloc): Do the work here directly.
11006
b1f81fc5
JB
110072003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
11008
11009 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
11010 char tables.
11011
110122003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
11013
11014 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
11015 destructively change "%S" to "%s".
11016
774666fb
MB
110172003-04-03 Miles Bader <miles@gnu.org>
11018
11019 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
11020 always set.
11021
19c37f01
DL
110222003-04-01 Dave Love <fx@gnu.org>
11023
11024 * xfns.c (xpm_lookup_color): Grok "opaque".
11025
2f4b24c3
AC
110262003-03-31 Andrew Choi <akochoi@shaw.ca>
11027
11028 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
11029 parent window ID.
11030
11031 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
11032
11033 * macterm.h (struct mac_output): Define x_pixels_diff and
11034 y_pixels_diff.
b1f81fc5 11035
9443fcf6
JB
110362003-03-31 Juanma Barranquero <lektu@terra.es>
11037
11038 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
11039 blockinput.h and files included from it.
11040
e072891b
KS
110412003-03-31 Kim F. Storm <storm@cua.dk>
11042
11043 The following changes consolidates the common code related to
11044 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
11045 files into frame.c.
9443fcf6 11046
e072891b
KS
11047 * frame.c: Include blockinput.h.
11048 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
11049 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
11050 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
11051 related vars here.
11052 (struct frame_parm_table, frame_parms): New table for describing
11053 frame parameters and their associated Q-variable.
11054 The order of the parameters corresponds to the sequence of the
11055 frame_parm_handlers table in redisplay_interface.
11056 (x_fullscreen_move, x_set_frame_parameters)
11057 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
11058 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
11059 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11060 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
11061 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
11062 Generic functions for processing of frame parameters.
11063 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
11064 (display_x_get_resource, x_get_resource_string): Functions for
11065 generic access to X resources.
11066 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
11067 (x_default_parameter, Fx_parse_geometry): Functions for generic
11068 access to frame parameters.
6901b111
SM
11069 (x_figure_window_size): Generic calculation of frame size.
11070 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
11071 (syms_of_frame): Intern and staticpro frame parameter variables.
11072 Defvar_lisp Vx_resource_class and Vx_resource_name here.
11073 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 11074
e072891b
KS
11075 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
11076 parameter related vars defined in frame.c.
11077 (EMACS_CLASS): Define here.
11078 (enum FULLSCREEN_*): Define here.
11079 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
11080 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
11081 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
11082 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
11083 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
11084 (x_set_visibility, x_set_autoraise, x_set_autolower)
11085 (x_set_unsplittable, x_set_vertical_scroll_bars)
11086 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
11087 (x_figure_window_size): Add prototypes.
11088
11089 * dispextern.h (frame_parm_handler): New typedef.
11090 (struct redisplay_interface): New member frame_parm_handlers.
11091 (enum resource_types): Move declaration here.
11092 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
11093 (x_default_parameter): Add prototypes.
11094
11095 * window.c: Remove extern decl for frame parameter vars.
11096 (change_window_heights): New generic function;
11097 replaces x_change_window_heights. All users changed.
11098
11099 * window.h (change_window_heights): Add prototype.
11100
11101 * xfaces.c: Remove extern decl for frame parameter vars.
11102
11103 * xterm.h (EMACS_CLASS): Remove. Use generic define.
11104 (struct w32_display_info): Fix type of xrdb member.
11105 (enum FULLSCREEN_*): Remove.
11106 Remove prototypes for generic functions (in frame.h).
11107
11108 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11109 parameters now defined in frame.h and frame.c.
f63fd14e 11110 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11111 (enum x_frame_parms): Remove (bogus, unused enum).
11112 (check_x_display_info): Make non-static (for frame.c).
11113 (struct x_frame_parm_table, x_frame_parms): Remove.
11114 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11115 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11116 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11117 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11118 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11119 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11120 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11121 Remove. Use generic functions instead.
11122 (enum resource_types): Remove.
11123 (x_set_scroll_bar_default_width): New global function (for frame.c).
11124 (Fx_create_frame): Depend on x_figure_window_size to add space for
11125 toolbar and setup size_hint_flags.
11126 (x_frame_parm_handlers): New table for redisplay_interface.
11127 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 11128
e072891b 11129 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 11130 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
11131 (x_redisplay_interface): Add x_frame_parm_handlers member.
11132
11133 * w32gui.h (XrmDatabase): New (dummy) typedef.
11134
11135 * w32term.h (EMACS_CLASS): Remove. Use generic define.
11136 (struct w32_display_info): Fix type of xrdb member.
11137 (enum FULLSCREEN_*): Remove.
11138 (x_fullscreen_adjust): Remove prototype.
11139
11140 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11141 parameters now defined in frame.h and frame.c.
f63fd14e 11142 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11143 (enum x_frame_parms): Remove (bogus, unused enum).
11144 (check_x_display_info): Make non-static (for frame.c).
11145 (struct x_frame_parm_table, x_frame_parms): Remove.
11146 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11147 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11148 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11149 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11150 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11151 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11152 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11153 Remove. Use generic functions instead.
11154 (enum resource_types): Remove.
11155 (x_set_scroll_bar_default_width): New global function (for frame.c).
11156 (Fx_create_frame): Depend on x_figure_window_size to add space for
11157 toolbar and setup size_hint_flags.
11158 (w32_frame_parm_handlers): New table for redisplay_interface.
11159 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 11160
e072891b 11161 * w32term.c: Remove unnecessary extern declarations.
52eb0373 11162 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
11163 (x_redisplay_interface): Add w32_frame_parm_handlers member.
11164
11165 * w32reg.c (x_get_string_resource): Use XrmDatabase.
11166
11167 * macgui.h (XrmDatabase): New (dummy) typedef.
11168
11169 * macterm.h (EMACS_CLASS): Remove.
11170 (struct mac_display_info): Add xrdb member.
11171 (struct mac_output): Add want_fullscreen member.
11172
11173 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11174 parameters now defined in frame.h and frame.c.
f63fd14e 11175 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11176 (check_x_display_info): Make non-static (for frame.c).
11177 (struct x_frame_parm_table, x_frame_parms): Remove.
11178 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11179 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11180 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11181 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11182 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11183 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11184 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11185 Remove. Use generic functions instead.
11186 (enum resource_types): Remove.
11187 (x_set_scroll_bar_default_width): New global function (for frame.c).
11188 (mac_frame_parm_handlers): New table for redisplay_interface.
11189 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 11190
e072891b
KS
11191 * macterm.c: Remove unnecessary extern declarations.
11192 (x_redisplay_interface): Add mac_frame_parm_handlers member.
11193
3e6a560b
KS
11194 * Makefile.in (frame.o): Add dependency on blockinput.h and files
11195 included from it (atimer.h and systime.h).
11196
7b7b454e
AS
111972003-03-30 Andreas Schwab <schwab@suse.de>
11198
11199 * xdisp.c (x_insert_glyphs): Fix swapped width and height
11200 parameters for shift_glyphs_for_insert.
11201
11202 * macterm.c (x_redisplay_interface): Add missing entry for
11203 draw_vertical_window_border.
11204
beb402de
KG
112052003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11206
11207 * fileio.c (Fexpand_file_name): In the no-handler case, after
11208 expanding, look again for a handler and invoke it. This is needed
11209 for filenames like "/foo/../user@host:/bar/../baz" -- the first
11210 expansion produces "/user@host:/bar/../baz" which needs to be
11211 expanded again for the finame result "/user@host:/baz".
11212
b676f356
JD
112132003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11214
11215 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
11216 of area to be redrawn for better performance.
11217
3c671a56
SM
112182003-03-28 Stefan Monnier <monnier@cs.yale.edu>
11219
11220 * xterm.c (take_vertical_position_into_account): Remove.
11221 (xt_action_hook): Call set_vertical_scroll_bar if needed.
11222 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
11223 (xm_scroll_callback, x_create_toolkit_scroll_bar)
11224 (x_set_toolkit_scroll_bar_thumb): Simplify.
11225 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
11226 (XTread_socket): Remove unused var.
11227 (x_make_frame_invisible): Replace goto with else.
11228
11229 * xdisp.c (set_vertical_scroll_bar): New fun.
11230 (redisplay_window): Use it.
11231
84f2e615
RS
112322003-03-26 Richard M. Stallman <rms@gnu.org>
11233
11234 * xdisp.c (update_tool_bar): Recompute tool bar if
11235 update_mode_lines is set. Set w->update_mode_line
11236 only if the tool bar contents actually change.
11237 (update_menu_bar): Undo previous change.
11238
70b6104c
JD
112392003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11240
5fd6f727
JD
11241 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
11242 (xg_frame_set_char_size): Calculate scroll bar width before frame
11243 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
11244 (xg_separator_p): Check for all documented separator types.
11245 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
11246 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
11247
70b6104c
JD
11248 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
11249 so tool bar gets updated.
11250
d9b36d19
SM
112512003-03-26 Stefan Monnier <monnier@cs.yale.edu>
11252
11253 * data.c (store_symval_forwarding): Re-instate part of the code
11254 that was deleted with too much enthusiasm.
11255
112562003-03-25 Stefan Monnier <monnier@cs.yale.edu>
11257
11258 * data.c (store_symval_forwarding): Delete special read-only
11259 hack for type == -1, since we now use ->constant instead.
11260 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
11261
11262 * buffer.c (overlays_in): Declare static.
11263 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
11264 `constant' field rather than the variable's `type' field.
11265
365fa1b3
AC
112662003-03-24 Andrew Choi <akochoi@shaw.ca>
11267
11268 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
11269
11270 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
11271
11272 * fns.c [MAC_OSX]: Do not redefine vector.
11273
11274 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
11275
11276 * macgui.h: Remove definition of No_Cursor.
11277
d9b36d19 11278 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
11279
11280 * xdisp.c: Define No_Cursor.
11281 (x_write_glyphs, notice_overwritten_cursor)
11282 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
11283 (note_mouse_highlight): Remove Mac-specific code.
11284 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 11285
c0bcce6f
JPW
112862003-03-24 John Paul Wallington <jpw@gnu.org>
11287
11288 * xdisp.c (redisplay_window): If mini window's buffer is not
11289 empty, then redisplay it like other windows.
11290
a526b96c
KS
112912003-03-23 Kim F. Storm <storm@cua.dk>
11292
11293 * w32term.c (w32_draw_window_cursor): Fix last change.
11294
37ab321e
KH
112952003-03-23 Kenichi Handa <handa@m17n.org>
11296
a526b96c
KS
11297 * alloc.c (make_string_from_bytes, make_specified_string):
11298 Add `const' for the arg CONTENTS.
37ab321e
KH
11299
11300 * lisp.h (make_string_from_bytes, make_specified_string):
11301 Prototypes adjusted.
11302
7863d625
JD
113032003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11304
a526b96c 11305 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 11306
7863d625
JD
11307 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
11308 (XG_SB_RANGE): New define.
11309
11310 * gtkutil.c (xg_fixed_handle_expose): New function.
11311 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
11312 expose events.
11313 (xg_update_scrollbar_pos): Take two more arguments, left and width
11314 of scroll bar including borders.
11315 Clear left and right part outside scroll bar separately as some
11316 themes have bars that are not an even number of pixels.
d9b36d19 11317 Don't set reallocate_redraws, don't call
7863d625
JD
11318 gdk_window_process_all_updates.
11319 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
11320 so no need to change it. Calculate size and value with XG_SB_RANGE.
11321
d9b36d19
SM
11322 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
11323 Pass left and width of scroll bar including borders to
7863d625
JD
11324 xg_update_scrollbar_pos.
11325
af0ad939
TTN
113262003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
11327
11328 * Makefile.in: Make sure space precedes end-of-line backslashes.
11329
b22139fd
KS
113302003-03-22 Kim F. Storm <storm@cua.dk>
11331
11332 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
11333 Add generic versions here. Remove system specific versions
11334 defined elsewhere.
11335
11336 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
11337 Add prototypes.
11338
6e6410cf
KS
11339 * xterm.h (STORE_NATIVE_RECT): New macro.
11340
5c9cc435
KS
113412003-03-21 Kim F. Storm <storm@cua.dk>
11342
00c64fab
SM
11343 * xdisp.c (get_glyph_string_clip_rect):
11344 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
11345
11346 * dispextern.h (struct redisplay_interface): Add active_p
11347 argument to draw_window_cursor member. All uses changed.
11348
acd37560
KS
113492003-03-21 Kim F. Storm <storm@cua.dk>
11350
11351 The following changes consolidate code related to writing and
11352 inserting glyphs, exposing frame, the tool bar, the mouse face,
11353 the output cursor, and help echo from xterm.c, w32term.c and
11354 macterm.c into xdisp.c. It also generalizes the use of the
11355 window_part enum instead of using numeric values throughout.
af0ad939 11356
acd37560
KS
11357 * xdisp.c: Consolidate gui-independent code here.
11358 Include keymap.h.
11359 (Qhelp_echo): Import.
11360 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
11361 (help_echo_string, help_echo_window, help_echo_object)
11362 (previous_help_echo_string, help_echo_pos): Declare here.
11363 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
11364 (estimate_mode_line_height): Define here. Handle windowing
11365 systems directly (without using estimate_mode_line_height_hook).
11366 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
11367 (update_window_cursor, update_cursor_in_window_tree)
11368 (fast_find_position, fast_find_string_pos)
11369 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
11370 (expose_area, expose_line, expose_overlaps, expose_window)
11371 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
11372 declared static as they are only used locally in xdisp.c.
11373 (draw_glyphs): Rename from x_draw_glyphs and make static.
11374 (tool_bar_item_info, notice_overwritten_cursor): Make static.
11375 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11376 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 11377 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
11378 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11379 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
11380 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
11381 (note_mouse_highlight, x_clear_window_mouse_face)
11382 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
11383 (x_intersect_rectangles): New generic functions for use by xdisp.c
11384 and GUI front-ends.
11385 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
11386 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
11387
11388 * dispextern.h (Display_Info): Generic typedef for *_display_info.
11389 (NativeRectangle): Generic typedef for rectangle type.
11390 (enum window_part): Move here from window.c.
11391 (struct redisplay_interface): New members flush_display_optional,
11392 define_frame_cursor, clear_frame_area, draw_window_cursor,
11393 draw_vertical_window_border, shift_glyphs_for_insert.
11394 Rename member clear_mouse_face to clear_window_mouse_face.
11395 (estimate_mode_line_height_hook): Remove hook.
11396 (auto_raise_tool_bar_buttons_p): Don't declare extern.
11397 (tool_bar_item_info): Remove prototype.
11398 (help_echo_string, help_echo_window, help_echo_object)
11399 (previous_help_echo_string, help_echo_pos)
11400 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
11401 (x_stretch_cursor_p, output_cursor): Declare extern.
11402 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
11403 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
11404 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11405 (display_and_set_cursor, set_output_cursor, x_cursor_to)
11406 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
11407 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11408 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
11409 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
11410 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
11411 Add prototypes.
11412 (mode_line_string, marginal_area_string): Fix prototypes.
11413
11414 * window.c (enum window_part): Move to dispextern.h.
11415 (coordinates_in_window): Use enum window_part member names
11416 instead of numbers to describe return value.
11417 (struct check_window_data): Change part member to window_part.
11418 (check_window_containing): Return window_part unaltered.
11419 (window_from_coordinates): Change part arg from int to enum
11420 window_part. Allow part arg to be null. All users changed.
11421
11422 * window.h (window_from_coordinates): Fix prototype.
11423
11424 * term.c (estimate_mode_line_height): Move to xdisp.c.
11425
11426 * keyboard.c (make_lispy_event): Use enum window_part.
11427
11428 * dispnew.c (mode_line_string, marginal_area_string): Use enum
11429 window_part instead of int in arg list. Users changed.
11430
11431 * xterm.h (No_Cursor): Declare as None for X.
11432 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 11433
acd37560
KS
11434 * xterm.c: Remove consolidated defines and code.
11435 (BETWEEN): Remove unused macro.
11436 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
11437 (x_define_frame_cursor, x_clear_frame_area)
11438 (x_draw_window_cursor): New X-specific functions for RIF.
11439 (x_redisplay_interface): Add new members.
11440
11441 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
11442
11443 * w32term.h (struct w32_output): Remove cross_cursor member.
11444
11445 * w32term.c: Remove consolidated defines and code.
11446 (BETWEEN): Remove unused macro.
11447 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
11448 (w32_define_frame_cursor, w32_clear_frame_area)
11449 (w32_draw_window_cursor): New W32-specific functions for RIF.
11450 (w32_redisplay_interface): Add new members.
11451
a64387ee 11452 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
11453 (XRectangle): Add X compatible rectangle type.
11454 (NativeRectangle): Declare as RECT for W32.
11455 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11456
11457 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
11458
11459 * w32console.c: Remove consolidated defines and code.
af0ad939 11460
acd37560
KS
11461 * msdos.h (Display_Info): Add generic typedef.
11462
11463 * msdos.c: Remove consolidated defines and code.
11464 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
11465
11466 * macterm.h (struct mac_output): Replace member cross_cursor by
11467 hand_cursor.
11468 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
11469
11470 * macterm.c: Remove consolidated defines and code.
11471 (BETWEEN): Remove unused macro.
11472 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
11473 (mac_define_frame_cursor, mac_clear_frame_area)
11474 (mac_draw_window_cursor): New Mac-specific functions for RIF.
11475 (x_redisplay_interface): Add new members.
11476
11477 * macgui.h (No_Cursor): Define as 0 for Mac.
11478 (XRectangle): Add X compatible rectangle type.
11479 (NativeRectangle): Declare as Rect for Mac.
11480 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11481
204ccab1
KS
11482 * macfns.c (x_set_mouse_color): Setup hand_cursor.
11483 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 11484
9443fcf6 11485 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
11486 included from it. Add dependency on keymap.h.
11487
11488 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
11489
8ba01a70 114902003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
11491
11492 * fileio.c (Fexpand_file_name): Fix previous change.
11493
8ba01a70 114942003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
11495
11496 * fileio.c (Ffile_name_directory): Reconstruct file name by
11497 make_specified_string.
11498 (Ffile_name_nondirectory, Ffile_name_as_directory)
11499 (Fdirectory_file_name, Fexpand_file_name)
11500 (Fsubstitute_in_file_name): Likewise.
11501 (Fread_file_name): Compare decoded homedir with DIR and
11502 DEFAULT_FILENAME.
11503
11504 * alloc.c (make_specified_string): If NCHARS is negative, count
11505 the number of characters.
11506
19536747
JD
115072003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11508
de38ae5a
JD
11509 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
11510 all widgets.
11511
19536747
JD
11512 * gtkutil.h: Removed xg_ignore_next_thumb.
11513
37ab321e 115142003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
11515
11516 * coding.c (Vchar_coding_system_table): Remove this variable.
11517 (Vcoding_system_safe_chars): New variable.
11518 (intersection): Remove this function.
11519 (find_safe_codings): Don't use Vchar_coding_system_table, but try
11520 all codings in SAFE_CODINGS.
00c64fab 11521 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
11522 find_safe_codings. Get generic coding systems from
11523 Vcoding_system_safe_chars.
11524 (Fdefine_coding_system_internal): New function.
11525 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
11526 Initialize and staticpro Vcoding_system_safe_chars.
11527
17097258
JD
115282003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11529
2a2071c3
JD
11530 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
11531 equal old values before updating.
11532
17097258
JD
11533 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
11534
11535 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
11536
115372003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11538
11539 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
11540 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
11541 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
11542 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
11543 (xg_create_scroll_bar): Pass bar to button event callback.
11544 (xg_find_top_left_in_fixed): New function.
11545 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
11546 whole scroll bar area. Get old position with
11547 xg_find_top_left_in_fixed, calculate and only clear needed areas.
11548 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
11549 dragging is in progress. Calculate whole as for Motif.
11550 Remove code that saved last values. Call gtk_range functions to
11551 set scroll bar sizes.
11552
11553 * gtkutil.h: Removed xg_ignore_next_thumb.
11554
8cb9dfbf
JB
115552003-03-17 Juanma Barranquero <lektu@terra.es>
11556
11557 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
11558 and files included from it.
11559
00c64fab
SM
115602003-03-18 Stefan Monnier <monnier@cs.yale.edu>
11561
11562 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
11563 multiple occurrences of the same keymap under different prefixes.
11564 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
11565
c45bb3b2
JR
115662003-03-16 Jason Rumney <jasonr@gnu.org>
11567
11568 * w32gui.h: Use HDC for Display.
11569
11570 * w32term.c (w32_encode_char): Prevent double-byte chars from
11571 crashing Emacs.
11572
11573 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
11574 as binary.
11575
2a6d0874
JB
115762003-03-16 Juanma Barranquero <lektu@terra.es>
11577
11578 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
11579
03eb5fab
KS
115802003-03-16 Kim F. Storm <storm@cua.dk>
11581
11582 The following changes consolidate some of the gui-independent
11583 parts of the processing and drawing of "glyph strings" from
11584 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 11585
03eb5fab
KS
11586 * dispextern.h (struct glyph): Reduce face_id member from 22 to
11587 21 bits (this reduces number of faces from 4M to 2M).
11588 Replace W32 specific w32_font_type member (2 bits) by generic
11589 font_type member (3 bits) for portability.
11590 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
11591 (enum draw_glyphs_face): Define here.
11592 (struct glyph_string): Define here. Merge W32 and X versions.
11593 (struct redisplay_interface): New members per_char_metric,
11594 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
11595 (VCENTER_BASELINE_OFFSET): Define here.
11596 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
11597 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
11598
11599 * xdisp.c: Consolidate gui-independent "glyph string" code here.
11600 (dump_glyph_string): Moved here.
11601 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
11602 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
11603 (fill_composite_glyph_string, fill_glyph_string)
11604 (fill_image_glyph_string, fill_stretch_glyph_string)
11605 (left_overwritten, left_overwriting, right_overwritten)
11606 (right_overwriting, get_char_face_and_encoding)
11607 (set_glyph_string_background_width, compute_overhangs_and_x)
11608 (append_glyph, append_composite_glyph, produce_image_glyph)
11609 (take_vertical_position_into_account, append_stretch_glyph)
11610 (produce_stretch_glyph): New generic functions (based on X version).
11611 Call platform specific functions through rif.
11612 (INIT_GLYPH_STRING): New macro, hides W32 details.
11613 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
11614 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
11615 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
11616 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
11617 (notice_overwritten_cursor):
11618 Generic functions exported to platform modules. Users changed.
11619
11620 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
11621 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
11622 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 11623 New macros for consolidated code.
2a6d0874 11624
03eb5fab
KS
11625 * xterm.c: Remove consolidated defines and code.
11626 (x_per_char_metric, x_encode_char)
11627 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
11628 (x_redisplay_interface): Add new members.
11629
11630 * w32gui.h (Display): Add dummy typedef for consolidation.
11631 (XChar2b): Define alias for wchar_t for consolidation.
11632 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11633
11634 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 11635 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
11636 New macros for consolidation.
11637
fad49844 11638 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
11639 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
11640 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
11641 (w32_per_char_metric): Change font_type arg to int for RIF.
11642 (w32_encode_char): Return int according to RIF requirements.
11643 (w32_compute_glyph_string_overhangs): Adapt to RIF.
11644 (w32_get_glyph_overhangs): New function for RIF. Uses generic
11645 x_get_glyph_overhangs.
11646 (w32_redisplay_interface): Add new members.
11647
11648 * macgui.h (XChar2b): Move typedef here for consolidation.
11649 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11650
11651 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
11652 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
11653 consolidation.
11654
11655 * macterm.c: Remove consolidated defines and code.
11656 (mac_per_char_metric): New function for RIF.
00c64fab 11657 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
11658 (mac_compute_glyph_string_overhangs): Adapt for RIF.
11659 (x_redisplay_interface): Add new members.
11660
00c64fab
SM
116612003-03-15 Stefan Monnier <monnier@cs.yale.edu>
11662
11663 * keymap.c (Vmenu_events): New var.
11664 (syms_of_keymap): Initialize it.
11665 (where_is_internal): Check more carefully what is a menu event.
11666
225c7a07
RS
116672003-03-14 Richard M. Stallman <rms@gnu.org>
11668
11669 * lread.c (read1): After #!, exit loop on eof.
11670
cea9be54
JD
116712003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11672
9ea0e54d
JD
11673 * gtkutil.h: Add declaration for xg_frame_cleared.
11674
0cb35f4e
JD
11675 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
11676
cea9be54
JD
11677 * gtkutil.c (struct xg_last_sb_pos): New structure.
11678 (handle_fixed_child): New function.
11679 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
11680 and force a redraw on them.
11681 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
11682 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
11683 so we can avoid unneeded redraws.
11684 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
11685 and force a redraw on the scroll bar.
11686 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
11687 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 11688 (xg_frame_cleared): New function.
cea9be54 11689
20b853f3
KH
116902003-03-13 Kenichi Handa <handa@m17n.org>
11691
11692 * coding.c (Fdetect_coding_region): Fix docstring.
11693 (Fdetect_coding_string): Fix docstring.
11694
7a555aff
AS
116952003-03-13 Andreas Schwab <schwab@suse.de>
11696
25cc0080
AS
11697 * gtkutil.c: Add prototype for create_menus.
11698
30225431
AS
11699 * data.c (long_to_cons): Fix type of top.
11700
11701 * xselect.c (selection_data_to_lisp_data): Use int instead of
11702 long for an integer of size 4.
11703
7a555aff 11704 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 11705 (xg_tool_bar_help_callback): Likewise.
7a555aff 11706
a3e4741f
AS
117072003-03-12 Andreas Schwab <schwab@suse.de>
11708
11709 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
11710
9668be7c
KS
117112003-03-12 Kim F. Storm <storm@cua.dk>
11712
03eb5fab 11713 The following changes consolidate the fringe handling from
9668be7c 11714 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 11715
9668be7c
KS
11716 * xdisp.c: Consolidate fringe handling code here.
11717 (left_bits, right_bits, continued_bits, continuation_bits)
11718 (ov_bits, zv_bits): Define fringe bitmaps.
11719 (fringe_bitmaps): New array holding fringe bitmaps.
11720 (draw_fringe_bitmap): Draw a specific bitmap; call display
11721 specific drawing routine via rif->draw_fringe_bitmap.
11722 (draw_row_fringe_bitmaps): Generic replacement for
11723 x_draw_row_fringe_bitmaps; all callers changed.
11724 (compute_fringe_widths): Generic replacement for
11725 x_compute_fringe_widths; all callers changed.
11726
11727 * dispextern.h (enum fringe_bitmap_type): Define here.
11728 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
11729 (fringe_bitmaps): Declare extern.
11730 (struct redisplay_interface): New member draw_fringe_bitmap.
11731 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
11732
11733 * xterm.c: Remove generic fringe code.
11734 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11735 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11736
11737 * w32term.c: Remove generic fringe code.
11738 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
11739 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 11740
9668be7c
KS
11741 * macterm.c: Remove generic fringe code.
11742 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11743 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11744
00a88f32
SM
117452003-03-11 Stefan Monnier <monnier@cs.yale.edu>
11746
11747 * print.c (Fprin1_to_string): Return unibyte string if possible.
11748
1d1de695
DK
117492003-03-09 David Kastrup <dak@gnu.org>
11750
11751 * process.c (read_process_output): We have allocated enough space
11752 for readmax and carryover, so actually use the alloted space.
11753
257f40f2
JD
117542003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11755
11756 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
11757 toolkit scrollbar click.
11758
11759 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
11760 for USE_GTK.
11761 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
11762 also.
1d1c7e75 11763 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 11764 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 11765
78819ebb 11766 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
11767
11768 * gtkutil.c (xg_get_scroll_id_for_window): New function.
11769 (xg_tool_bar_item_expose_callback): New function.
11770 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
11771 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
11772 on the tool bar widget.
11773 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
11774 to expose on the tool bar item widgets.
11775
15213141
JD
117762003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11777
26b74a0b 11778 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 11779 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
11780 deleted from the image cache).
11781
15213141
JD
11782 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
11783 the event isn't for a frame (i.e. for dialogs).
11784
20b853f3 117852003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
11786
11787 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
11788 composition components reaches the limit, terminate composing.
11789 (COMPOSITION_OK): New macro.
00a88f32 11790 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
11791 composition is found.
11792 (coding_restore_composition): Adjust the number of composition
11793 components if it is not sane.
11794
c9029fe5
JB
117952003-03-06 Juanma Barranquero <lektu@terra.es>
11796
11797 * w32term.h (struct w32_display_info): Add xrdb member to support
11798 passing resources via -xrm on Windows.
11799
11800 * w32term.c (w32_make_rdb): New function.
11801 (w32_term_init): Use it to initialize xrdb member of w32_display_info
11802 struct. Delete leftover code.
11803
11804 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
11805 for resources passed on the command line.
11806
11807 * w32reg.c (w32_get_rdb_resource): New function.
11808 (x_get_string_resource): Use it, so resources passed with -xrm
11809 supercede the ones in the registry.
11810
9d00001f
JD
118112003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11812
11813 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
11814 instead of x_top_window_to_frame.
11815
ca2417b9
JD
118162003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11817
11818 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
11819 when restarting Emacs.
11820
5b20caf0
RS
118212003-03-03 Richard M. Stallman <rms@gnu.org>
11822
11823 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
11824 to run kill-buffer-query-functions.
11825 (Qkill_buffer_query_functions): New var.
11826 (syms_of_buffer): Init and staticpro it.
11827
58e91b77
JD
118282003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11829
11830 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
11831
932357b4
KS
118322003-02-25 Kim F. Storm <storm@cua.dk>
11833
11834 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
11835 If centering point failed to make whole line visible and vscroll
11836 is non-zero, disable vscroll and try centering point again.
11837
11838 * lread.c (read1): Accept `single space' syntax like (? x).
11839
bb8db7e1
JD
118402003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11841
11842 * keyboard.c (cancel_hourglass_unwind): Surround with
11843 #ifdef HAVE_X_WINDOWS
11844
47d77aab
KH
118452003-02-25 Kenichi Handa <handa@m17n.org>
11846
11847 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
11848 process only when "subprocesses" is defined.
11849
6a097c0c
SM
118502003-02-24 Stefan Monnier <monnier@cs.yale.edu>
11851
11852 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
11853
0b063c27
JB
118542003-02-24 Juanma Barranquero <lektu@terra.es>
11855
d1135afc
JB
11856 * callint.c (fix_command): Declare as static void and move before
11857 Fcall_interactively.
11858
0b063c27
JB
11859 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
11860 (syms_of_xdisp): Don't initialize Qwhen.
11861
0af912f0
JD
118622003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11863
11864 * keyboard.c (cancel_hourglass_unwind): New function.
11865 (command_loop_1): Cancel hourglass with unwind-protect.
11866
120d0a23
RS
118672003-02-23 Richard M. Stallman <rms@gnu.org>
11868
11869 * callint.c (fix_command): New subroutine, from Fcall_interactively.
11870 Detect (when ... (region-beginning)) etc.
11871 (Fcall_interactively): Call fix_command.
11872 (Qif, Qwhen): New variables.
11873 (syms_of_callint): Init and staticpro them.
0b063c27 11874
120d0a23
RS
11875 * regex.c (print_partial_compiled_pattern): Output to stderr.
11876
4ece81a6
KG
118772003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11878
11879 * dired.c (directory_files_internal): Don't expand directory.
11880 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
11881 instead. From Lars Hansen <larsh@math.ku.dk>.
11882
e52bd6b7
SM
118832003-02-22 Stefan Monnier <monnier@cs.yale.edu>
11884
11885 * fns.c (string_to_multibyte): Remove unused var i.
11886 (Flanginfo): Fix int/Lisp_Object mixup.
11887 (void_call2): New fun.
11888 (Fmap_char_table): Use it in place of call2.
11889
11890 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
11891
11892 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
11893
11894 * keymap.c (copy_keymap_1): Make it static.
11895
11896 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
11897
c33ef7c4
JB
118982003-02-22 David Ponce <david@dponce.com>
11899
11900 * lread.c (Fload): Don't check STRING_MULTIBYTE.
11901
16782258
JD
119022003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11903
11904 * process.h: Removed subtty field from struct Lisp_Process.
11905
11906 * process.c (create_process): Remove setting of subtty.
11907 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
11908 (Fprocess_running_child_p, process_send_signal):
11909 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
11910 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
11911
3abeca61
KG
119122003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11913
11914 * keymap.c (Fdefine_key): Doc fix.
11915
92a8ce63
JB
119162003-02-21 Juanma Barranquero <lektu@terra.es>
11917
11918 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
11919
11920 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
11921 POLLING_PROBLEM_IN_SELECT.
11922
11923 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
11924 Delete #undef of POLLING_PROBLEM_IN_SELECT.
11925
11926 * s/hpux10-20.h: New file.
11927
e52bd6b7
SM
11928 * process.c (wait_reading_process_input):
11929 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 11930
20f1ef2e
KH
119312003-02-20 Kenichi Handa <handa@m17n.org>
11932
32d0a9dc
KH
11933 * fontset.c (check_fontset_name): If NAME is nil, return the
11934 default fontset.
11935 (override_font_info): New function.
e52bd6b7 11936 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
11937 (Ffontset_info): If FONTSET is not the default fontset, merge
11938 FONTSET onto the copy of the default fontset, and work on that
11939 copy. Document that NAME nil means the default fontset.
11940 (Ffontset_font): Document that NAME nil means the default fontset.
11941
20f1ef2e
KH
11942 * process.c (setup_process_coding_systems): If the process's
11943 in/out descriptor is -1, do nothing.
11944
77d1daf2
AS
119452003-02-19 Andreas Schwab <schwab@suse.de>
11946
e52bd6b7
SM
11947 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
11948 Add prototypes.
77d1daf2 11949
f9a45bb3
KH
119502003-02-19 Kenichi Handa <handa@m17n.org>
11951
11952 * xfaces.c (try_alternative_families): Try all scalable fonts if
11953 Vscalable_fonts_allowed is not Qt.
11954
72ecb43c
JD
119552003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11956
11957 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
11958
ee5be7c3
JD
119592003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11960
11961 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
11962 names.
11963
11964 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 11965 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
11966 x_face_list_fonts.
11967 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
11968 (Fx_list_fonts): Set maxnames to -1 to get all font names.
11969
4cd519a7
KS
119702003-02-18 Kim F. Storm <storm@cua.dk>
11971
068f9882
KS
11972 * lread.c (read1): Fix last change.
11973 "`" is not always special. Allow "?" after a character constant.
4cd519a7 11974
7290a344
AC
119752003-02-18 Andrew Choi <akochoi@shaw.ca>
11976
11977 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
11978
1f7fa69b
AS
119792003-02-18 Andreas Schwab <schwab@suse.de>
11980
11981 * window.c (window_scroll_pixel_based): Move outside a
11982 multi-glyph character before setting new window start.
11983
11984 * xdisp.c (in_display_vector_p): New function.
11985 * dispextern.h (in_display_vector_p): Declare.
11986
23e21195
KS
119872003-02-18 Kim F. Storm <storm@cua.dk>
11988
11989 * lread.c (read1): Fix and relax read syntax.
11990 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
11991 Only recognize "," after dotted-pair dot if inside backquote.
11992 Never include "`" or "," (inside backquote) in a symbol.
11993 Allow dotted-pair dot after a character constant.
11994 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 11995
f098b121
JD
119962003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11997
11998 * gtkutil.c (xg_tool_bar_expose_callback): New function.
11999 (xg_create_tool_bar): Force style of tool bar to be horizontal with
12000 icons. Set name of tool bar to emacs-toolbar.
12001 (update_frame_tool_bar): Connect expose event to
12002 xg_tool_bar_expose_callback.
12003
63020c46
RS
120042003-02-17 Richard M. Stallman <rms@gnu.org>
12005
12006 * keyboard.c (this_command_key_count_reset): New variable.
12007 Initiatize to 0 where this_command_key_count is set.
12008 (read_char): Save and restore this_command_key_count_reset
12009 around input method code.
12010 (read_char): If this_command_key_count_reset, echo reread commands.
12011 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
12012
fb4452cc
KH
120132003-02-17 Kenichi Handa <handa@m17n.org>
12014
12015 * fns.c (string_to_multibyte): Always return a multibyte string.
12016
bd11cc09
JR
120172003-02-16 Jason Rumney <jasonr@gnu.org>
12018
e52bd6b7
SM
12019 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
12020 Negative max_fonts parameter means list all.
bd11cc09 12021
4cdf4bde
DL
120222003-02-14 Dave Love <fx@gnu.org>
12023
12024 * fns.c (Flanginfo): Doc fix.
12025
023b93f6
KS
120262003-02-13 Kim F. Storm <storm@cua.dk>
12027
37cd4238
KS
12028 * lread.c (read_escape): Interpret \s as a SPACE character, except
12029 for \s-X in a character constant which still is the super modifier.
12030 (read1): Signal an `invalid read syntax' error if a character
12031 constant is immediately followed by a digit or symbol character.
12032
140a6b7e
KS
12033 * search.c (Fmatch_data): Doc fix. Explicitly state that
12034 match-data is undefined if last search failed.
12035
3419757d 12036 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
12037 All uses changed.
12038
7d5c86e5
JB
120392003-02-12 Juanma Barranquero <lektu@terra.es>
12040
12041 * eval.c (Fdefmacro): Fix typo.
12042
295fff2c
KS
120432003-02-12 Kim F. Storm <storm@cua.dk>
12044
12045 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
12046 macro is a string, convert meta modifiers in string when copying
12047 the string into a vector.
12048
60f3202d
KS
120492003-02-11 Kim F. Storm <storm@cua.dk>
12050
12051 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
12052
61cb0b53
KH
120532003-02-11 Kenichi Handa <handa@m17n.org>
12054
12055 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
12056
7392e23c
KS
120572003-02-10 Kim F. Storm <storm@cua.dk>
12058
12059 * process.c: Doc fixes.
12060 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
12061
ce4254bd
KH
120622003-02-10 Kenichi Handa <handa@m17n.org>
12063
9c7a329a
KH
12064 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
12065
ce4254bd
KH
12066 * process.c (QCfilter_multibyte): New variable.
12067 (setup_process_coding_systems): New function.
e52bd6b7
SM
12068 (Fset_process_buffer, Fset_process_filter):
12069 Call setup_process_coding_systems.
ce4254bd
KH
12070 (Fstart_process): Initialize the member `filter_multibyte' of
12071 struct Lisp_Process.
12072 (create_process): Call setup_process_coding_systems.
12073 (Fmake_network_process): New keyward `:filter-multibyte'.
12074 Initialize the member `filter_multibyte' of struct Lisp_Process.
12075 Call setup_process_coding_systems.
12076 (server_accept_connection): Call setup_process_coding_systems.
12077 (read_process_output): If the process has a filter, decide the
12078 multibyteness of a string to given to the filter by
12079 `filter_multibyte' member of the process. If the process doesn't
12080 have a filter and the result of conversion is unibyte, use
12081 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
12082 multibyte form.
12083 (Fset_process_coding_system): Call setup_process_coding_systems.
12084 (Fset_process_filter_multibyte): New function.
12085 (Fprocess_filter_multibyte_p): New function.
12086 (syms_of_process): Intern and staticpro QCfilter_multibyte.
12087 Defsubr Sset_process_filter_multibyte and
12088 Sprocess_filter_multibyte_p.
12089
12090 * process.h (struct Lisp_Process): New member filter_multibyte.
12091
12092 * lisp.h (setup_process_coding_systems): Add prototype.
12093
12094 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
12095 process, update coding systems for the process.
12096
b08d5f59
KH
120972003-02-09 Kenichi Handa <handa@m17n.org>
12098
12099 * fns.c (string_to_multibyte): New function.
12100 (Fstring_to_multibyte): New function.
12101 (syms_of_fns): Defsubr it.
12102
0dfd93c0
AS
121032003-02-08 Andreas Schwab <schwab@suse.de>
12104
12105 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
12106 instead of the substitution.
12107
7b76ca1c
JD
121082003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12109
12110 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
12111
12112 * xmenu.c (menu_position_func): Adjust menu popup position so that
12113 the menu is fully visible.
7b76ca1c 12114
2436a4e4
JD
121152003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12116
12117 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
12118 (x_make_frame_invisible, x_wm_set_icon_position):
12119 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
12120
12121 * xfns.c (x_set_name, x_set_title): Ditto.
12122
37d1e680
RS
121232003-02-04 Richard M. Stallman <rms@gnu.org>
12124
12125 * keyboard.c (echo_now): Update before_command_echo_length.
12126 (Freset_this_command_lengths): Reset this_command_key_count etc.
12127 immediately rather than arranging to do it later.
12128 (before_command_key_count_1, before_command_echo_length_1)
12129 (before_command_restore_flag): Vars deleted.
12130 (add_command_key): Don't handle before_command_restore_flag.
12131 (read_char, record_menu_key): Don't update before_command_key_count or
12132 before_command_echo_length.
12133 (read_char): Don't handle before_command_restore_flag.
12134
12135 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
12136 in direct-output clauses if it wouldn't be called in the ordinary case.
12137
578846a3
KS
121382003-02-04 Kim F. Storm <storm@cua.dk>
12139
12140 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
12141
49853a4d
JD
121422003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12143
12144 * gtkutil.c (remove_from_container): Copying list is not needed.
12145 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
12146 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
12147 on list returned from gtk_container_get_children to avoid memory leak.
12148
8b53dc06
JR
121492003-02-01 Jason Rumney <jasonr@gnu.org>
12150
5d54d177
JR
12151 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
12152 local malloc.
12153 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
12154 definitions in xpm.h.
12155 (init_xpm_functions): New function.
f63fd14e 12156 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
12157 (init_external_image_libraries): Try to load libXpm.dll.
12158
8b53dc06
JR
12159 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
12160 timestamp.
12161
b222e415
DL
121622003-01-31 Dave Love <fx@gnu.org>
12163
12164 * syntax.c (Fskip_chars_forward)
12165 (open-paren-in-column-0-is-defun-start): Doc fix.
12166
c60ee5e7
JB
121672003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
12168
12169 * fileio.c: Support // at start of name for Cygwin (just added proper
12170 preprocessor tests).
12171
12172 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
12173
12174 * Makefile.in: Use @EXEEXT@ for Cygwin.
12175
12176 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
12177
12178 * s/cygwin.h: Added for Cygwin port.
12179
53b37591
JB
121802003-01-31 Juanma Barranquero <lektu@terra.es>
12181
12182 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
12183 when including gif_lib.h.
fe929957 12184 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
12185 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
12186 Windows. Disable color table lookups. Call library functions
53b37591 12187 through pointers determined at runtime.
fe929957
JB
12188 (init_external_image_libraries): Try to load libungif.dll and
12189 libtiff.dll.
53b37591 12190
45415a8f
KH
121912003-01-31 Kenichi Handa <handa@m17n.org>
12192
12193 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 12194 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 12195
a97e4138
JD
121962003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12197
e52bd6b7 12198 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 12199
6eed9bed
DL
122002003-01-30 Dave Love <fx@gnu.org>
12201
12202 * alloc.c (Vgc_elapsed, gcs_done): New variables.
12203 (Fgarbage_collect): Use them.
12204 (init_alloc, syms_of_alloc): Set them up.
12205
100dcd40
JB
122062003-01-30 Juanma Barranquero <lektu@terra.es>
12207
12208 * w32fns.c (init_external_image_libraries): Add missing operator.
12209
fbd852af
JR
122102003-01-29 Jason Rumney <jasonr@gnu.org>
12211
12212 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
12213 an alternative name for jpeg.dll.
12214
8a2d8020
KH
122152003-01-29 Kenichi Handa <handa@m17n.org>
12216
12217 * xdisp.c (set_cursor_from_row): Pay attention to string display
12218 properties.
12219
058c18c7
AC
122202003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
12221
12222 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
12223 <escape>.
12224 (keycode_to_xkeysym_table): Reformat and add more comments.
12225 (XTread_socket): Drop special case for backspace.
12226
385f11cf
AC
122272003-01-28 Andrew Choi <akochoi@shaw.ca>
12228
12229 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
12230 values in old-style RGB specs.
12231
c922a224
JB
122322003-01-27 Juanma Barranquero <lektu@terra.es>
12233
12234 * w32fns.c (init_external_image_libraries): Try alternate names for the
12235 jpeg dll.
12236
0a1d6de0
JD
122372003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12238
12239 * gtkutil.c (create_dialog, xg_separator_p)
12240 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
12241 before calling strcmp or strlen.
12242
a97e4138 122432003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
12244
12245 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
12246 and handle image load failure.
12247
28908312
JR
122482003-01-26 Jason Rumney <jasonr@gnu.org>
12249
12250 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
12251 New functions.
f63fd14e
JB
12252 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
12253 Disable color table lookups. Call jpeg library functions
28908312
JR
12254 through pointers determined at runtime.
12255 (init_external_image_libraries): Try to load jpeg.dll.
12256
84e47416
RS
122572003-01-25 Richard M. Stallman <rms@gnu.org>
12258
12259 * lisp.h: Declare format2 instead of format1.
12260
12261 * fileio.c (barf_or_query_if_file_exists):
12262 Call format2 instead of format1.
12263
12264 * editfns.c (format2): New function, replaces format1
12265 but takes exactly two Lisp Objects as format args.
12266
12267 * buffer.c (Fkill_buffer): Call format2 instead of format1.
12268
a97e4138 122692003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
12270
12271 * xterm.h: Change to return value of x_dispatch_event to int.
12272
12273 * xterm.c (x_filter_event): New function.
12274 (event_handler_gdk, XTread_socket): Call x_filter_event.
12275 (x_dispatch_event): Change to return value of finish.
12276 (event_handler_gdk): Use return value from x_dispatch_event.
12277
12278 * xfns.c (x_window): Call create_frame_xic for GTK version to
12279 initialize input methods.
12280
12281 * gtkutil.h: Add (void) prototypes.
12282
12283 * gtkutil.c (create_menus): Remove code that puts the help menu to
12284 the right.
12285
54eefef1
JR
122862003-01-25 Jason Rumney <jasonr@gnu.org>
12287
12288 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
12289 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
12290 (png_load): Adjust colors for Windows. Use Windows
12291 bitmaps. Disable color table lookups.
c262430d
JR
12292 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
12293 (init_png_functions): New function.
12294 (png_read_from_memory, png_load): Call png library functions
12295 through pointers determined at runtime.
12296 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
12297 (init_external_image_libraries): New function.
12298 (init_xfns): Call it.
54eefef1 12299
1a9e275b
AS
123002003-01-24 Andreas Schwab <schwab@suse.de>
12301
12302 * minibuf.c (Fminibuffer_message): Verify type of parameter.
12303
a97e4138 123042003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
12305
12306 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
12307 of static initializer.
12308
422eec7e
DL
123092003-01-24 Dave Love <fx@gnu.org>
12310
12311 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
12312 architectures.
12313
12314 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
12315 Use __alignof__.
12316
2a026b04
KH
123172003-01-24 Kenichi Handa <handa@m17n.org>
12318
12319 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 12320 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
12321 (command_loop_1): Call adjust_point_for_property with proper
12322 second arg.
12323
a18bb28d
JR
123242003-01-22 Jason Rumney <jasonr@gnu.org>
12325
12326 Sync changes with xterm.c and xfns.c.
12327
12328 * w32term.c (x_draw_glyph_string_foreground)
12329 (x_draw_composite_glyph_string_foreground): Implement overstriking.
12330
12331 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
12332 phys_cursor's hpos is overwritten. This is still not completely
12333 correct, as it doesn't really make sense to use hpos at all to
12334 get the cursor glyph (as that is relative to the width of the
12335 characters on the line, which may have changed during the update).
12336
12337 * w32term.c (notice_overwritten_cursor): Handle the special case
12338 of the cursor being in the first blank non-text line at the
12339 end of a window.
12340
12341 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12342 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12343 Compute from the x position returned by x_draw_glyphs.
12344
12345 (x_display_and_set_cursor): Don't set phys_cursor_width here,
12346 except for NO_CURSOR and system caret, to make phys_cursor_width
12347 contain what its name suggests.
12348 (notice_overwritten_cursor): Consider the cursor image erased if
12349 the output area intersects the cursor image in y-direction.
12350
6a097c0c
SM
12351 * w32term.c (note_mode_line_or_margin_highlight): Rename from
12352 note_mode_line_highlight and extend.
a18bb28d
JR
12353
12354 * w32term.c (last_window): New variable.
12355 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
12356 (note_mouse_movement): Remove reimplemented code in #if 0.
12357
12358 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
12359 not update_mode_lines, and always set it to 1.
12360
ac6e47ef
JR
123612003-01-21 Jason Rumney <jasonr@gnu.org>
12362
12363 * w32fns.c (IDC_HAND): Define it if system headers don't.
12364
123652003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12366
12367 * w32term.h (struct w32_output): New member hand_cursor.
12368 (WM_EMACS_SETCURSOR): New message definition.
12369
12370 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
12371 function w32_define_cursor.
12372 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
12373 position, change member name output_data.x to output_data.w32 and
12374 add function w32_define_cursor.
12375 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
12376 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
12377 (w32_initialize_display_info):
12378 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
12379
12380 * w32fns.c (Vx_hand_shape): New variable.
12381 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
12382 WM_EMACS_SETCURSOR.
12383 (x-create-frame): Setup Cursor types.
12384
ceb39a17
JB
123852003-01-21 David Ponce <david@dponce.com>
12386
ac6e47ef 12387 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
12388 ccl->reg[2] to -1 before calling ccl_driver.
12389 (Sync. with xterm.c x_encode_char change by Kenichi Handa
12390 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
12391 (w32_draw_relief_rect): Declare all args.
12392 (w32_define_cursor): New.
12393
12394 * w32fns.c (w32_load_cursor): New function.
12395 (w32_init_class): Use it.
12396 (x_put_x_image): Declare all args.
12397
b6189c3b 123982003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
12399
12400 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
12401
a97e4138 124022003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
12403
12404 * gtkutil.c: Must include stdio.h before termhooks.h
12405
83fc9c63
DL
124062003-01-21 Dave Love <fx@gnu.org>
12407
12408 * alloc.c (Fgc_status): Print zombie list.
12409 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12410 Fix assignment of zombies.
12411 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12412 Don't take car of non-cons.
12413
12414 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12415
12416 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12417
fe04b8c8
JR
124182003-01-20 David Ponce <david@dponce.com>
12419
12420 * w32menu.c (digest_single_submenu): Declare all args.
12421
12422 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
12423 changes in xmenu.c:
12424
12425 (parse_single_submenu): Use individual keymap's prompt
12426 string as pane name, if there is one.
12427 (set_frame_menubar): Save menu_items_n_panes from each call to
12428 parse_single_submenu and use it when calling digest_single_submenu.
12429
539e69a9
ST
124302003-01-20 Steven Tamm <steventamm@mac.com>
12431
7e26f91b 12432 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
12433 before sending a scroll-wheel event.
12434
675d000f
RS
124352003-01-20 Richard M. Stallman <rms@gnu.org>
12436
12437 * xdisp.c (redisplay_window): If mini window's buffer is not
12438 a minibuffer, then redisplay it like other windows.
12439
a97e4138 124402003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
12441
12442 * gtkutil.c (xg_create_frame_widgets): Check if there is an
12443 external tool bar before setting tool bar height.
12444
048addec
JD
124452003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12446
12447 * xterm.c (handle_one_xevent): Surround popup_activated
12448 with #ifdef:s for non-toolkit version.
12449
12450 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
12451 (gtkutil.o): New file.
12452 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
12453 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
12454
12455 * gtkutil.c: New file for GTK version.
12456
12457 * gtkutil.h: New file for GTK version.
12458
12459 * xterm.h: Add xt_or_gtk_widget.
12460 Include gtk files for USE_GTK.
12461 (struct x_output): Add toolbar_height.
12462 (struct x_output): Add GTK widgets and Gdk size_hints.
12463 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
12464 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
12465 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
12466
12467 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 12468 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
12469 (note_mouse_highlight): Check popup_activated for USE_GTK.
12470 (xt_action_hook): Don't compile if USE_GTK.
12471 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
12472 (xg_scroll_callback): New function.
12473 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
12474 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
12475 for USE_GTK.
12476 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
12477 xg_show_scroll_bar for USE_GTK.
12478 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
12479 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
12480 (event_handler_gdk): New function for USE_GTK.
12481 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
12482 (handle_one_xevent): Make sure widget is mapped before
12483 calling x_real_positions for USE_GTK.
12484 (XTread_socket): Add GTK event loop for USE_GTK.
12485 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
12486 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
12487 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
12488 (x_iconify_frame): Add code for USE_GTK.
12489 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
12490 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
12491 is in gtkutil.c.
12492 (x_term_init): Add initialization for GTK.
12493 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
12494
12495 * xmenu.c: Include gtkutil.h for USE_GTK.
12496 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
12497 (single_menu_item, single_menu_item, Fx_popup_dialog):
12498 Check for USE_GTK.
048addec
JD
12499 (popup_widget_loop): New function for USE_GTK.
12500 (x_activate_menubar): Add code for USE_GTK.
12501 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
12502 (menu_highlight_callback, menubar_selection_callback):
12503 Add USE_GTK versions.
048addec
JD
12504 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
12505 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
12506 (free_frame_menubar): Only compile if not USE_GTK. GTK version
12507 is in gtkutil.c.
12508 (popup_selection_callback): New version for USE_GTK.
12509 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 12510 one USE_X_TOOLKIT version.
048addec
JD
12511 (xmenu_show): Call create_and_show_popup_menu.
12512 (dialog_selection_callback): New version for USE_GTK.
12513 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 12514 one USE_X_TOOLKIT version.
048addec
JD
12515 (xdialog_show): Call create_and_show_dialog.
12516
12517 * xfns.c: Include gtkutil for USE_GTK.
12518 (x_window_to_frame, x_any_window_to_frame)
12519 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12520 (x_top_window_to_frame): Add code for USE_GTK.
12521 (x_set_background_color): Call xg_set_background_color for GTK.
12522 (x_set_menu_bar_lines): Check for USE_GTK.
12523 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
12524 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
12525 (x_window): Call xg_create_frame_widgets for USE_GTK.
12526 (Fx_create_frame): Check for USE_GTK
12527 (Fx_file_dialog): New implementation for USE_GTK.
12528
12529 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
12530 (update_menu_bar): Add check for USE_GTK.
12531 (update_tool_bar): Add check for USE_GTK and external tool bar.
12532 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
12533 (redisplay_internal): Add check for USE_GTK and popup_activated.
12534 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
12535 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
12536 (display_menu_bar): Add check for USE_GTK
12537
78819ebb 12538 * lisp.h (Vx_resource_name): Declare extern.
048addec 12539
a64387ee 12540 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
12541 for USE_GTK.
12542 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
12543
12544 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
12545 (FRAME_EXTERNAL_TOOL_BAR): New macro.
12546 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
12547
12548 * fileio.c (Fread_file_name): Add check for USE_GTK.
12549
6bdb309a
SM
12550 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
12551 Add check for USE_GTK.
048addec
JD
12552
12553 * config.in: Added HAVE_GTK
12554
12555 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
12556
125572003-01-18 Stefan Monnier <monnier@cs.yale.edu>
12558
12559 * charset.h (Funibyte_char_to_multibyte): Export.
12560
125612003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12562
12563 * xmenu.c (mouse_position_for_popup): New function.
12564 (Fx_popup_menu): Call mouse_position_for_popup for X and
12565 mouse_position_hook for others.
12566
125672003-01-17 Kim F. Storm <storm@cua.dk>
12568
12569 * editfns.c (Finsert): Mention `string-make-multibyte' and
12570 `string-as-multibyte' in doc string.
12571
125722003-01-17 Kenichi Handa <handa@m17n.org>
12573
12574 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 12575
048addec
JD
12576 * editfns.c (Fformat): Convert an unibyte char argument that is
12577 formatted by "%c" to multibyte if the total result must be a
12578 multibyte string.
cd7df9c0 12579
048addec 125802003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 12581
048addec
JD
12582 * process.c (set-process-filter): Document unibyte/multibyte-ness
12583 of string argument.
56210ecd 12584
048addec 125852003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 12586
048addec 12587 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 12588
048addec
JD
12589 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
12590 (re_search_2): Likewise.
6df8b9fe 12591
048addec 125922003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 12593
048addec
JD
12594 * xdisp.c (message_dolog): Fix bug of the case that *Message*
12595 buffer is unibyte.
292ddc31 12596
048addec 125972003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 12598
048addec 12599 * fns.c (Fsubstring): Clarify doc string.
292ddc31 12600
048addec
JD
12601 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
12602 (Fprevious_char_property_change)
12603 (Fnext_single_char_property_change)
12604 (Fprevious_single_char_property_change, Fnext_property_change)
12605 (Fnext_single_property_change, Fprevious_property_change)
12606 (Fprevious_single_property_change, Fadd_text_properties)
12607 (Fput_text_property, Fset_text_properties)
12608 (Fremove_text_properties, Fremove_list_of_text_properties)
12609 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 12610
048addec 126112003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 12612
048addec
JD
12613 * process.h (struct Lisp_Process): New member plist replaces old
12614 member private_vars. All uses changed.
63e4e4c6 12615
048addec 12616 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 12617 (QCplist): Rename from QCvars. Change all uses.
048addec 12618 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 12619 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 12620 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 12621 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 12622
048addec 126232003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 12624
6bdb309a 12625 * m/delta.h: Remove (obsolete).
e833850f 12626
048addec 126272003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 12628
048addec
JD
12629 * fileio.c (Fdelete_directory, Fdelete_file): Document the
12630 behaviour in front of symlinks.
12631 (Fdelete_file): Raise an error on directories.
817cb127 12632
048addec 126332003-01-13 Dave Love <fx@gnu.org>
817cb127 12634
048addec 12635 * fns.c (Freverse): Use QUIT.
3e8cf2ea 12636
048addec 126372003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 12638
048addec
JD
12639 * minibuf.c (minibuffer_completion_contents):
12640 Error if point is inside prompt.
3e8cf2ea 12641
048addec
JD
12642 * keyboard.c (command_loop_1): Don't redisplay directly
12643 if there's a post-command-hook.
3e8cf2ea 12644
048addec
JD
12645 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
12646 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 12647
048addec 126482003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 12649
048addec 12650 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 12651
048addec
JD
12652 * process.c (QCvars): New variable.
12653 (syms_of_process): Intern and staticpro it.
12654 (Fset_process_contact): Removed function.
12655 (Fprocess_variable, Fset_process_variable): New functions.
12656 (syms_of_process): Defsubr them.
12657 (Fstart_process): Initialize private_vars plist to nil.
12658 (Fmake_network_process): New arg :vars to setup the private
12659 variables for new network process.
12660 (server_accept_connection): Copy server's private variables to
12661 client process.
2c10f029 12662
048addec
JD
12663 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
12664 crashes). Code rewritten and simplified. Now directly aligns the
12665 pointer and recalculates pure_bytes_used, rather than aligning the
12666 size and adjusting the pointer.
b8a76c6c 12667
048addec 126682003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 12669
048addec
JD
12670 * process.c (Fset_process_contact): New function.
12671 (syms_of_process): defsubr it.
12672 (make-network-process): Update doc.
3a8d0899 12673
048addec 126742003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 12675
048addec
JD
12676 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
12677 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 12678
048addec 126792003-01-10 Dave Love <fx@gnu.org>
4abc7470 12680
048addec 12681 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 12682
048addec 126832003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 12684
048addec
JD
12685 * process.c (Fmake_network_process): Convert new port number
12686 to host byte order for `:service t' case. From Mario Lang.
bf338245 12687
048addec 126882003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 12689
048addec
JD
12690 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
12691 instead of XtAppProcessEvent.
bf338245 12692
048addec
JD
12693 * xterm.c (handle_one_xevent): New function.
12694 (x_dispatch_event): New function.
12695 (XTread_socket): Call handle_one_xevent.
bf338245 12696
048addec 12697 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 12698
048addec
JD
12699 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
12700 call XQueryPointer to get coordinates.
12701 (popup_get_selection): Do not set popup_activated_flag to zero,
12702 let popup_deactivate_callback do that. Needed for Motif.
12703 Call x_dispatch_event instead of XtDispatchEvent.
12704 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 12705
048addec 127062003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 12707
6bdb309a 12708 * process.c (server_accept_connection): Fix recording of new
048addec
JD
12709 connection's local address in :local property of contact info.
12710 (Fmake_network_process): Record local network address for new
12711 client processes in :local property of contact info.
6bdb309a 12712 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 12713
048addec 127142003-01-07 Dave Love <fx@gnu.org>
00e3ab56 12715
048addec 12716 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 12717
048addec 127182003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 12719
048addec 12720 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 12721
048addec
JD
12722 * eval.c (Fuser_variable_p): Doc change. For custom variables,
12723 use the same test as for custom-variable-p.
8c6d74c6 12724
048addec 127252003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 12726
048addec
JD
12727 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
12728 Count LAST_LINE_MISFIT in scroll margin for end of window.
12729 Move label too_near_end before setting SCROLL_MARGIN_POS.
12730 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 12731
048addec
JD
12732 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
12733 scroll_conservatively case. If scrolling that much doesn't change
12734 STARTP, move it down one line.
e833850f 12735
048addec
JD
12736 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
12737 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 12738
048addec
JD
12739 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
12740 selected frame.
8c6d74c6 12741
048addec 12742 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 12743 (syms_of_keymap): Staticpro them.
048addec
JD
12744 (Fapropos_internal): Initialize them and clear them out.
12745 Don't GCPRO them.
8c6d74c6 12746
048addec
JD
12747 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
12748 Doc fixes.
8c6d74c6 12749
048addec
JD
12750 * lisp.h: New misc type Lisp_Save_Value.
12751 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
12752 (XSAVE_VALUE): New macro.
12753 (struct Lisp_Save_Value): New data type.
12754 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 12755 (make_save_value): Declare.
8c6d74c6 12756
048addec 12757 * alloc.c (make_save_value): New function.
8c6d74c6 12758
048addec
JD
12759 * xterm.c (x_catch_errors): Save dpy using make_save_value.
12760 (x_catch_errors_unwind): Call XSync.
8c6d74c6 12761
048addec 127622003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 12763
048addec 12764 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 12765
048addec
JD
12766 * keyboard.c (command_loop_1): Call adjust_point_for_property
12767 in direct action cases for Qforward_char and Qbackward_char.
12768 Set already_adjusted so it won't be done twice.
8c6d74c6 12769
b6189c3b 127702002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 12771
048addec
JD
12772 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
12773 type definition of size_t.
8c609cff 12774
048addec 127752003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 12776
048addec
JD
12777 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
12778 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 12779
048addec 127802002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 12781
048addec
JD
12782 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
12783 to default to t.
fa634a5e 12784
048addec 127852002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 12786
048addec 12787 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 12788
048addec 127892002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 12790
7e26f91b 12791 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
12792 allow building in a different directory than source. Uses some
12793 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 12794
048addec 127952002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 12796
048addec
JD
12797 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
12798 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
12799 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
12800 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 12801
048addec 128022002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 12803
048addec
JD
12804 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
12805 <scroll-down-aggressively>: Doc fix.
2155ecf3 12806
048addec
JD
12807 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
12808 string as pane name, if there is one.
12809 (set_frame_menubar): Save menu_items_n_panes from each call to
12810 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 12811
048addec
JD
12812 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
12813 Don't try to make last line fully visible if it is past end of window.
61f1d295 12814
048addec 128152002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 12816
048addec
JD
12817 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
12818 (mac_menu_show): Add support for hierarchical popup menus.
12819 (add_menu_item): Remove indentation support.
12820 (fill_submenu, fill_menu): Create hierarchical menus
12821 instead of using indentation.
0b17a217 12822
048addec 128232002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 12824
048addec
JD
12825 * xdisp.c (try_cursor_movement): Don't call try_window here.
12826 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 12827
048addec 12828 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 12829
048addec 128302002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 12831
048addec
JD
12832 * macterm.c (XTread_socket): Call KeyTranslate for control and
12833 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 12834 being treated like C-%. Do not look for shift key to deal
048addec 12835 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 12836
048addec 128372002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 12838
048addec
JD
12839 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
12840 If it is non-nil, run timers. Use an unwind-protect to requeue
12841 the events that were read ahead.
12842 (popup_get_selection_unwind): New subroutine.
12843 (popup_get_selection_queue): File-scope variable now holds that queue.
12844 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
12845 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
12846 Use an unwind-protect to pop down the dialog box.
12847 (xdialog_show_unwind): New subroutine implements that.
f02cac82 12848
048addec
JD
12849 * xdisp.c (row_containing_pos): Change exit test using last_y.
12850 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 12851
048addec
JD
12852 * lread.c (load_error_handler): New function.
12853 (Fload): Handle errors in Fsubstitute_in_file_name.
12854 Don't expect Fsignal to return.
f02cac82 12855
048addec
JD
12856 * eval.c: Errors and throws work right with interrupt blocking.
12857 (struct catchtag): New elt interrupt_input_blocked.
12858 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
12859 (internal_catch, Fcondition_case, internal_condition_case)
12860 (internal_condition_case_1, internal_condition_case_2): Save it.
12861 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 12862
048addec 12863 * editfns.c (Fformat): Add parens.
f02cac82 12864
048addec
JD
12865 * dired.c (file_name_completion): Fix that change.
12866 Delete special quit-handling code; just use QUIT.
f02cac82 12867
b6189c3b 128682002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 12869
048addec
JD
12870 * dired.c (file_name_completion): Close directory on error
12871 just as in directory_files_internal.
1a590729 12872
048addec 128732002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 12874
048addec
JD
12875 * window.c (Fset_window_configuration): Set old_point to correct
12876 value when new_current_buffer == current_buffer.
f02cac82 12877
048addec 128782002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 12879
048addec
JD
12880 Revisited my earlier fix for the following entry in etc/PROBLEMS:
12881 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
12882 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 12883
048addec
JD
12884 These changes were in part based upon suggestions made by Peter
12885 'Luna' Runestig [peter@runestig.com].
9785d95b 12886
f4a5a485
SM
12887 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
12888 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
12889 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 12890 global variables.
9785d95b 12891
048addec
JD
12892 * w32.c (globals_of_w32): New function. Used to initialize those
12893 global variables that must always be initialized on startup even
12894 when the global variable initialized is non zero. Its primary
12895 purpose at this time is to set the global variables
12896 g_b_init_is_windows_9x, g_b_init_open_process_token,
12897 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
12898 g_b_init_get_sid_identifier_authority to 0 on startup.
12899 Called from main.
9785d95b 12900
048addec
JD
12901 * w32.c (is_windows_9x): Perform initialization only if
12902 g_b_init_is_windows_9x is equal to 0. On initialization set
12903 g_b_init_is_windows_9x equal to 1.
2308af15 12904
048addec
JD
12905 * w32.c (open_process_token): Perform initialization only if
12906 g_b_init_open_process_token is equal to 0. On initialization set
12907 g_b_init_open_process_token equal to 1.
2308af15 12908
048addec
JD
12909 * w32.c (get_token_information): Perform initialization only if
12910 g_b_init_get_token_information is equal to 0. On initialization
12911 set g_b_init_get_token_information equal to 1.
9785d95b 12912
048addec
JD
12913 * w32.c (lookup_account_sid): Perform initialization only if
12914 g_b_init_lookup_account_sid is equal to 0. On initialization
12915 set g_b_init_lookup_account_sid equal to 1.
9785d95b 12916
048addec
JD
12917 * w32.c (get_sid_identifier_authority): Perform initialization
12918 only if g_b_init_get_sid_identifier_authority is equal to 0.
12919 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 12920
f63fd14e 12921 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
12922 those global variables that must always be initialized on startup
12923 even when the global variable initialized is non zero.
12924 Its primary purpose at this time is to initialize the global variable
12925 track_mouse_event_fn.
9785d95b 12926
a64387ee 12927 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 12928 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 12929
048addec 12930 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 12931
f63fd14e 12932 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
12933 initialize those global variables that must always be initialized
12934 on startup even when the global variable initialized is non zero.
12935 Its primary purpose at this time is to initialize the global
12936 variables get_menu_item_info and set_menu_item_info.
9785d95b 12937
048addec
JD
12938 * w32menu.c (initialize_frame_menubar): Remove initialization of
12939 get_menu_item_info and set_menu_item_info.
9785d95b 12940
048addec 12941 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 12942
048addec
JD
12943 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
12944 Declare them.
9785d95b 12945
048addec
JD
12946 * emacs.c (main): Call globals_of_w32 prior to calling
12947 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
12948 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
12949 is defined.
9785d95b 12950
048addec
JD
12951 * w32term.c (x_update_window_begin): Fix Windows API error
12952 detected by BoundsChecker. Test to determine if
12953 w32_system_caret_hwnd is NULL prior to attempting to use
12954 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 12955
048addec
JD
12956 * w32term.c (x_update_window_end): Fix Windows API error
12957 detected by BoundsChecker. Test to determine if
12958 w32_system_caret_hwnd is NULL prior to attempting to use
12959 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 12960
048addec 129612002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 12962
048addec
JD
12963 * coding.c (coding_system_require_warning): New variable.
12964 (syms_of_coding): DEFVAR it.
b6da19ef 12965
048addec 12966 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 12967
048addec
JD
12968 * fileio.c (choose_write_coding_system): Even if
12969 Vcoding_system_for_write is non-nil, if
12970 coding_system_require_warning is nonzero, call
12971 Vselect_safe_coding_system_function.
bfcf6dbe 12972
048addec 129732002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 12974
048addec
JD
12975 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
12976 (lisp): Add font-core.
2c568af5 12977
048addec 129782002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 12979
048addec
JD
12980 * textprop.c (text_read_only): New arg `propval'.
12981 (get_char_property_and_overlay): Remove unused var `next_overlay'.
12982 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 12983
048addec 129842002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 12985
048addec 12986 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 12987
048addec 129882002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 12989
048addec
JD
12990 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
12991 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
12992 Be more careful about when help_events are generated.
96720f09 12993
048addec 129942002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 12995
048addec
JD
12996 * macterm.c (mac_check_for_quit_char): Correctly set the
12997 modifiers of the event to 0.
12998 * mac.c (sys_select): Duplicate rfds before calling select to
12999 ensure that rfds survive the while loop.
e5ae1c49 13000
048addec 130012002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 13002
048addec
JD
13003 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
13004 row_containing_pos returned NULL.
2eb46b2d 13005
048addec 130062002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 13007
6bdb309a 13008 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 13009 non-blocking.
6bdb309a 13010 (sys_select): Fix sys_select to not use a timeout larger than
048addec 13011 the one given.
b11f1d8a 13012
048addec 130132002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 13014
048addec 13015 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 13016
048addec 130172002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 13018
048addec
JD
13019 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
13020 as the last thing.
a4ac5b17 13021
048addec 130222002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 13023
048addec 13024 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 13025
048addec 130262002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 13027
048addec
JD
13028 * editfns.c (Fformat): Handle precision in string conversion
13029 specifiers like libc functions do (ie, print at most that many
13030 characters).
85cce843 13031
048addec 130322002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 13033
048addec
JD
13034 * xdisp.c (row_containing_pos): Check more carefully
13035 whether charpos is really in the row before returning it.
0d4d26a7 13036
048addec 130372002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 13038
048addec 13039 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 13040
048addec
JD
13041 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
13042 each stack frame. This may change as it could be time consuming.
0d4d26a7 13043
048addec
JD
13044 * macterm.c (mac_check_for_quit_char, quit_char_comp)
13045 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 13046 (mac_initialize): Add code to check for pressing of quit_char
048addec 13047 in the OS event queue.
b11f1d8a 13048
048addec
JD
13049 * mac.c (sys_select): Call mac_check_for_quit_char every second
13050 while blocking on select.
0d4d26a7 13051
048addec
JD
13052 * mac.c (sys_read): Use sys_select to test for input first
13053 before calling read, to allow C-g to break.
9252f7bc 13054
048addec 130552002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 13056
048addec 13057 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 13058
048addec 13059 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 13060
048addec 13061 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 13062
048addec
JD
13063 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
13064 autoload.
9252f7bc 13065
048addec 13066 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 13067
048addec 13068 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 13069
048addec 130702002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 13071
048addec 13072 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 13073
048addec 130742002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 13075
048addec 13076 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 13077
048addec 13078 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 13079
048addec 13080 * alloca.c: Don't use #error.
02d588e2 13081
048addec 130822002-12-03 Dave Love <fx@gnu.org>
02d588e2 13083
048addec
JD
13084 * buffer.c (Qucs_set_table_for_input): New.
13085 (Fget_buffer_create): Use it.
13086 (Qset_buffer_major_mode_hook): Deleted.
13087 (Fset_buffer_major_mode): Revert previous change.
13088 (init_buffer_once): Intern ucs-set-table-for-input.
13089 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
13090 Add &Qucs_set_table_for_input.
451e2697 13091
048addec 130922002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 13093
048addec
JD
13094 * callint.c (Fcall_interactively): Use next_event only if less
13095 than key_count.
72742a99 13096
048addec 130972002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 13098
048addec
JD
13099 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
13100 names to 255 characters.
72742a99 13101
048addec
JD
13102 * macterm.c (XTread_socket): If all frames have been collapsed,
13103 expand the first one before handling drag-and-drop events.
72742a99 13104
048addec
JD
13105 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
13106 which is detected by autoconf.
40e6ff95 13107
048addec 131082002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 13109
048addec
JD
13110 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
13111 offset in two hints table to allow prebinding to be redone and
13112 allow the executable to be stripped.
c02138c6 13113
048addec 131142002-11-29 Dave Love <fx@gnu.org>
c02138c6 13115
048addec
JD
13116 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
13117 already provided.
0e47bbf7 13118
048addec 131192002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 13120
048addec
JD
13121 * xdisp.c (start_display): Check more intelligently for
13122 whether the line is continued.
13123 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 13124
048addec 131252002-11-28 Dave Love <fx@gnu.org>
44129dcb 13126
048addec
JD
13127 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
13128 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 13129
048addec 131302002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 13131
048addec
JD
13132 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
13133 more descriptive error output from lread.c:Fload upon most require
13134 cycles during boostrapping.
1637fd2c 13135
048addec 131362002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 13137
048addec
JD
13138 * fileio.c (Finsert_file_contents): Give a more appropriate error
13139 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 13140
048addec
JD
13141 * dired.c (Ffile_attributes): Don't return negative file sizes for
13142 files bigger than 2Gb when off_t is 32 bit.
540c2788 13143
048addec 131442002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 13145
048addec 13146 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 13147
048addec
JD
13148 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
13149 Test GETPGRP_VOID instead.
13150 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 13151
048addec
JD
13152 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
13153 Don't define.
13154 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 13155
048addec 13156 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 13157
048addec 131582002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 13159
048addec
JD
13160 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
13161 supported.
4042a81a 13162
048addec 131632002-11-25 Dave Love <fx@gnu.org>
4042a81a 13164
048addec 13165 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 13166
048addec 13167 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 13168
048addec 131692002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 13170
048addec 13171 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 13172
048addec 131732002-11-24 Steven Tamm <steventamm@mac.com>
82122254 13174
048addec
JD
13175 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
13176 determine the size of pointers alloced in unexed space instead
13177 of using possibly invalid emacs_zone pointers. This fixes the
13178 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 13179
048addec 131802002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 13181
048addec 13182 * search.c (Fstring_match): Doc fix.
c1ee53bc 13183
048addec
JD
13184 * callint.c (Fcall_interactively): If a command fails because
13185 `*' detects a read-only buffer, but RECORD_FLAG is set,
13186 record it anyway if the args don't actually do tty input.
5598c32e 13187
048addec 131882002-11-22 Dave Love <fx@gnu.org>
5598c32e 13189
048addec 13190 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 13191
048addec
JD
13192 * keyboard.c (interrupt_signal): Provide forward declaration.
13193 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 13194
048addec 13195 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 13196
048addec 131972002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 13198
048addec
JD
13199 * eval.c (interactive_p): Skip any number of bytecode
13200 and special form frames, in any order.
516eea8e 13201
048addec 132022002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 13203
048addec
JD
13204 * w32fns.c (convert_mono_to_color_image): New function.
13205 (xbm_load, xbm_load_image): Use it when foreground or background
13206 is explicitly set.
04dbfa08 13207
048addec 132082002-11-19 Dave Love <fx@gnu.org>
04dbfa08 13209
048addec 13210 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 13211
048addec 132122002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 13213
048addec
JD
13214 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
13215 (XPutPixel): Swap blue and red.
13216 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
13217 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13218 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
13219 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 13220
048addec 132212002-11-18 Dave Love <fx@gnu.org>
d824beee 13222
048addec 13223 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 13224
048addec 13225 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 13226
048addec 13227 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 13228
048addec
JD
13229 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
13230 malloc, realloc, calloc.
d824beee 13231
048addec
JD
13232 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
13233 (bcmp): Don't define.
d824beee 13234
048addec 13235 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 13236
048addec 13237 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 13238
048addec 13239 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 13240
048addec 13241 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 13242
048addec
JD
13243 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
13244 Don't include alloca.h.
d824beee 13245
048addec 13246 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 13247
048addec 13248 * regex.c (_GNU_SOURCE): Don't define.
1998560a 13249
048addec 13250 * process.c (_GNU_SOURCE): Don't define.
1998560a 13251
048addec 13252 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 13253
048addec 132542002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 13255
048addec 13256 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 13257
048addec 132582002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 13259
048addec
JD
13260 * dispextern.h (struct face): Add `overstrike' field.
13261 * xterm.c (x_draw_glyph_string_foreground)
13262 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13263 * xfaces.c (load_face_font): Set `face->overstrike' based on
13264 result from choose_face_font.
13265 (best_matching_font, choose_face_font): Add `needs_overstrike'
13266 argument, and use it to return whether overstriking is desirable
13267 for this face/font combo.
13268 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 13269
048addec 132702002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 13271
048addec
JD
13272 This change is my fix for the following entry in etc/PROBLEMS:
13273 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
13274 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 13275
048addec
JD
13276 * w32.c: Added wrapper functions around the win32 API functions
13277 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
13278 GetSidIdentifierAuthority. These wrapper functions serve two
13279 purposes:
13280 1. They ensure that the wrapped function can never be called
13281 when Emacs is running on an operating system on which they are
13282 not supported (Microsoft Windows 95 / 98 / ME).
13283 2. They call the wrapped functions via function pointers rather
13284 than calling them directly. This avoids taking advantage of the
13285 undocumented fact that although these functions are not supported
13286 in the 9x branch of Microsoft Windows, the functions do exist in
13287 the version of advapi32.dll that is found in the 9x branch of
13288 Microsoft Windows.
f60ae425 13289
6bdb309a 13290 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
13291 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
13292 and GetSidIdentifierAuthority with calls to the newly added
13293 wrapper functions.
f60ae425 13294
048addec
JD
13295 * w32.h: Added extern declarations for the following functions:
13296 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
13297 syms_of_w32menu, and void syms_of_fontset.
f60ae425 13298
6bdb309a 13299 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
13300 function pointer track_mouse_event_fn in the handler for the
13301 WM_SETFOCUS message.
3582b6a3 13302
6bdb309a 13303 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
13304 reinitialize the function pointers set_menu_item_info and
13305 get_menu_item_info.
f60ae425 13306
048addec 133072002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 13308
048addec
JD
13309 * sound.c: Added a partial implementation of play-sound-internal
13310 for Microsoft Windows. Added various #ifdef / #else / #endif
13311 code blocks to separate the code that will compile under
9fed2905 13312 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 13313 Moved several blocks of code around to make this separation of code
9fed2905 13314 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 13315
048addec 13316 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 13317
048addec
JD
13318 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
13319 added support for play-sound-internal under Windows would be
13320 included in the build of Emacs.
517f42a0 13321
048addec 133222002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 13323
048addec 13324 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 13325
048addec 13326 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 13327
048addec 133282002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 13329
048addec
JD
13330 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
13331 (adjust_point_for_property): Move out of display and invisible even if
13332 we were already inside before (in case a property was added while
13333 we weren't looking). Be more careful when handling invisible props.
13334 Skip invisible text as if it really wasn't there at all.
aab83f91 13335
048addec 133362002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 13337
048addec
JD
13338 * w32term.c (x_draw_image_foreground)
13339 (w32_draw_image_foreground_1): Use standard copy and invert
13340 operations to draw images.
aab83f91 13341
048addec
JD
13342 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
13343 depth of 1.
13344 (xbm_read_bitmap_data): Invert bits as xbm is read in.
13345 (XPutPixel): Don't invert bits here.
a4478a76 13346
048addec 133472002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 13348
048addec
JD
13349 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
13350 (w32_draw_image_foreground_1): Handle image masks.
13351 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 13352
048addec
JD
13353 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
13354 (x_from_xcolors): Adjust RGB values for W32.
13355 (image_background, image_background_transparent)
13356 (postprocess_image, x_to_xcolors, x_disable_image)
13357 (x_build_heuristic_mask): Adapt for W32 and enable.
13358 (x_create_x_image_and_pixmap): Mark images with palettes as such.
13359 (xbm_load): Remove unused variable.
03670a65 13360
048addec 133612002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 13362
048addec 13363 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 13364
048addec 133652002-11-14 Dave Love <fx@gnu.org>
59daa29a 13366
048addec 13367 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 13368
048addec
JD
13369 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
13370 * xmenu.c (unuse_menu_items, digest_single_submenu):
13371 * xfns.c (x_put_x_image):
13372 * xdisp.c (message2_nolog, set_message):
13373 * undo.c (record_point):
13374 * terminfo.c (tparam):
13375 * syntax.c (scan_sexps_forward):
13376 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13377 * composite.c (update_compositions):
13378 * cm.c (calccost, cmgoto):
13379 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 13380
048addec 13381 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 13382
048addec
JD
13383 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
13384 Don't declare.
59daa29a 13385
048addec 13386 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 13387
048addec
JD
13388 * fns.c (Fcopy_sequence): Doc fix.
13389 (Fmap_char_table): Cast `call2'.
3947677c 13390
048addec
JD
133912002-11-14 Francesco Potorti` <pot@gnu.org>
13392
13393 * s/sol2-8.h: New file.
13394
133952002-11-14 Kim F. Storm <storm@cua.dk>
13396
13397 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
13398 dependency on `risky-local-variable' and the :propertize form.
13399
134002002-11-12 Stefan Monnier <monnier@cs.yale.edu>
13401
13402 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
13403
13404 * syntax.c (scan_sexps_forward): Undo last patch.
13405 Use a more obvious fix: check eob before updating the syntax table.
13406
134072002-11-09 Stefan Monnier <monnier@cs.yale.edu>
13408
13409 * syntax.c (scan_sexps_forward): Update syntax table before reading
13410 a char rather than after so we don't update the table past eob.
13411
134122002-11-09 Dave Love <fx@gnu.org>
13413
13414 * buffer.c (Fset_buffer_major_mode): Fix last change.
13415
13416 * regex.c (regexec): Fix pmatch declaration.
13417
13418 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
13419
13420 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
13421 to self-inserting characters.
13422 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
13423
13424 * coding.c (Vtranslation_table_for_input): New.
13425 (syms_of_coding): DEFVAR it.
13426
134272002-11-08 Juanma Barranquero <lektu@terra.es>
13428
13429 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
13430 window.
13431
134322002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13433
6bdb309a 13434 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
13435 cp, and i.
13436
134372002-11-06 Dave Love <fx@gnu.org>
13438
13439 * buffer.c (Qset_buffer_major_mode_hook): New.
13440 (Fset_buffer_major_mode): Use it.
13441
134422002-11-06 Richard M. Stallman <rms@gnu.org>
13443
13444 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
13445 and stop_polling.
13446
13447 * process.c (wait_reading_process_input):
13448 Test POLLING_PROBLEM_IN_SELECT, not hpux.
13449 Avoid initialization for auto Lisp_Object var.
13450
13451 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
13452
13453 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
13454
134552002-11-05 Richard M. Stallman <rms@gnu.org>
13456
13457 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
13458
13459 * callint.c (Fcall_interactively): New local filter_specs.
13460 (Fcall_interactively): Check for progn as well as let.
13461 Add a gcpro.
13462 (Qprogn): New variable.
13463 (syms_of_callint): Staticpro and init Qprogn.
13464
134652002-11-04 John Paul Wallington <jpw@shootybangbang.com>
13466
13467 * lread.c (Feval_buffer): Doc fix.
13468
134692002-11-04 Dave Love <fx@gnu.org>
13470
13471 * keyboard.c (read_char): Always translate iff
13472 Vkeyboard_translate_table is a char table and c is valid.
13473
13474 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13475 and fix C types.
13476
134772002-11-03 Stefan Monnier <monnier@cs.yale.edu>
13478
13479 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
13480
13481 * editfns.c (get_pos_property): Don't hardcode Qfield.
13482
13483 * keyboard.c (adjust_point_for_property): Handle `display' prop on
13484 overlays. Also handle `invisible' prop.
13485
134862002-11-02 Stefan Monnier <monnier@cs.yale.edu>
13487
13488 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
13489 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
13490
134912002-11-01 Andreas Schwab <schwab@suse.de>
13492
13493 * editfns.c (Fmessage): Revert last change to properly handle %%.
13494
134952002-11-01 Stefan Monnier <monnier@cs.yale.edu>
13496
13497 * xmenu.c (unuse_menu_items): New fun.
13498 (menu_items_inuse): New var.
13499 (syms_of_xmenu): Initialize it.
13500 (init_menu_items): Use it to detect re-entrance.
13501 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
13502 (Fx_popup_menu): Remove spurious XSETFRAME.
13503
13504 * editfns.c (find_field): Make an exception for nil fields.
13505
135062002-11-01 Dave Love <fx@gnu.org>
13507
13508 * m/gec63.h: Deleted.
13509
135102002-10-31 Dave Love <fx@gnu.org>
13511
13512 * xterm.c (XTread_socket): Fix last change.
13513 (xaw_scroll_callback): Cast call_data to long to avoid warning.
13514
135152002-10-31 Stefan Monnier <monnier@cs.yale.edu>
13516
13517 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
13518
135192002-10-30 Stefan Monnier <monnier@cs.yale.edu>
13520
13521 * editfns.c (overlays_around, get_pos_property): New funs.
13522 (find_field): Use them.
13523 Also be careful not to modify POS before its last use.
13524 (Fmessage): Don't Fformat if there's nothing to format.
13525
135262002-10-30 Dave Love <fx@gnu.org>
13527
13528 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
13529 [HAVE_PTY_H]; Include pty.h.
13530
13531 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
13532
13533 * xterm.c (Qeql): Declare.
13534 (Vx_keysym_table): New.
13535 (syms_of_xterm): Initialize it.
13536 (XTread_socket): Use it. Deal with ASCII keysyms.
13537 (XSetIMValues) [HAVE_X11R6]: Prototype.
13538
13539 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
13540 (lispy_kana_keys): Comment out.
13541 (make_lispy_event) [XK_kana_A]: Comment out.
13542 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
13543 Fix sprintf call.
13544
13545 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
13546 regexp.h change).
13547 (TERMINFO, LIBS_TERMCAP): Define.
13548
13549 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
13550 (bcmp): Define conditional on HAVE_BCMP.
13551 (NO_SIOCTL_H): Don't define.
13552 (TIOCSIGSEND): Don't make conditional on IRIX6.
13553
13554 * s/sol2-5.h: Don't include strings.h.
13555 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
13556
13557 * s/irix6-0.h (IRIX6): Don't define.
13558 (bcopy, bcmp, bzero): Don't undef.
13559
13560 * s/irix6-5.h: Don't include strings.h.
13561 (IRIX6): Don't define.
13562 (bcopy, bcmp, bzero): Don't undef.
13563
13564 * syntax.c (Fforward_comment): Doc fix.
13565
135662002-10-29 Kim F. Storm <storm@cua.dk>
13567
13568 * process.c (Fsignal_process): Allow PROCESS to be specified by
13569 name in addition to pid (as integer or string).
13570
135712002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
13572
13573 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
13574 environments.
13575
135762002-10-27 Kim F. Storm <storm@cua.dk>
13577
13578 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13579
13580 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
13581
13582 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
13583
13584 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13585
135862002-10-26 Richard M. Stallman <rms@gnu.org>
13587
13588 * editfns.c (Fformat): Detect invalid format letters for floats.
13589
135902002-10-25 Kenichi Handa <handa@m17n.org>
13591
13592 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
13593 (x_set_title): Likewise.
13594
135952002-10-25 Juanma Barranquero <lektu@terra.es>
13596
13597 * macgui.h:
13598 * w32gui.h: Remove definition of XColor.
13599
13600 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
13601
136022002-10-24 Kim F. Storm <storm@cua.dk>
13603
13604 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
13605 Callers changed (supply dummy arg).
13606
13607 * lisp.h (get_window_cursor_type): Update prototype.
13608
13609 * w32term.c (x_display_and_set_cursor): Get active_cursor from
13610 get_window_cursor_type to track system caret.
13611
136122002-10-24 Kim F. Storm <storm@cua.dk>
13613
13614 * process.c (Fformat_network_address): New function.
13615 (syms_of_process): Defsubr it.
13616 (list_processes_1): Use it to format :local/:remote address if
f9711de4 13617 service/host is not set; before Emacs would crash in that case.
048addec
JD
13618 (Fmake_network_process): Don't use Ffind_operation_coding_system
13619 to setup coding system if host or service is not set.
13620
136212002-10-23 Juanma Barranquero <lektu@terra.es>
13622
13623 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
13624
13625 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
13626 COLORREF.
13627
13628 * macgui.h:
13629 * w32gui.h: Add definition of XColor.
13630
13631 * macfns.c:
13632 * w32fns.c:
13633 * xfaces.c: Remove definition of XColor.
13634
136352002-10-22 Stefan Monnier <monnier@cs.yale.edu>
13636
13637 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
13638
13639 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
13640 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
13641 window if it is dedicated.
13642 (Fshrink_window): Add preserve_before as was done for enlarge_window.
13643 (Vspecial_display_function): Update docstring.
13644
13645 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
13646 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
13647 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
13648
136492002-10-21 Stefan Monnier <monnier@cs.yale.edu>
13650
13651 * casefiddle.c (casify_region): Don't treat a prefix char as part
13652 of a word when at the beginning.
13653
136542002-10-17 Juanma Barranquero <lektu@terra.es>
13655
13656 * lread.c (syms_of_lread): Fix typos.
13657
136582002-10-17 Dave Love <fx@gnu.org>
13659
13660 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
13661
136622002-10-16 Richard M. Stallman <rms@gnu.org>
13663
13664 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
13665
136662002-10-14 Juanma Barranquero <lektu@terra.es>
13667
13668 * w16select.c (syms_of_win16select): Fix docstring for
13669 `selection-coding-system'.
13670
13671 * w32select.c (syms_of_w32select): Likewise.
13672
136732002-10-14 Stefan Monnier <monnier@cs.yale.edu>
13674
13675 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
13676 a backslash-quoted char.
13677 (scan_lists, scan_sexps_forward): Pacify the compiler.
13678
136792002-10-13 Richard M. Stallman <rms@gnu.org>
13680
13681 * window.c (window_scroll): Set immediate_quit.
13682
13683 * print.c (print): When backquote form is the car of a list,
13684 output in old style. Use old_backquote_output to output all
13685 comma forms inside it in old style too.
13686
13687 * buffer.h (struct buffer): Move `undo_list' down below `name'.
13688
136892002-10-11 Markus Rost <rost@math.ohio-state.edu>
13690
13691 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
13692 batch mode).
13693
13694 * lread.c (Fload): Doc fix (load-suffixes).
13695
136962002-10-10 Steven Tamm <steventamm@mac.com>
13697
13698 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
13699 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
13700 Also switch the default to Qnil from Qt.
13701
137022002-10-08 Kenichi Handa <handa@m17n.org>
13703
13704 * coding.c (code_convert_region): When we need more GAP for
13705 conversion, pay attention to the case that coding->produced is not
13706 greater than coding->consumed.
13707
137082002-10-07 Richard M. Stallman <rms@gnu.org>
13709
13710 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
13711
137122002-10-06 Andrew Choi <akochoi@shaw.ca>
13713
13714 * macmenu.c (mac_menu_show): Add j to count menu items; match
13715 menu_item_selection to it to find selected item.
13716
137172002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13718
13719 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
13720 cases. The correct fix is to pass ReparentNotify to Xt.
13721 The shell widget interprets ConfigureNotify differently depending
13722 on if it has been reparented or not.
13723
137242002-10-05 Markus Rost <rost@math.ohio-state.edu>
13725
13726 * editfns.c (Fformat_time_string): Doc fix.
13727
137282002-10-05 John Paul Wallington <jpw@shootybangbang.com>
13729
13730 * fns.c (Flength): Doc fix.
13731
137322002-10-04 Stefan Monnier <monnier@cs.yale.edu>
13733
13734 * keyboard.c (keyremap): New struct.
13735 (read_key_sequence): Use it: globally replace keytran_foo with
13736 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
13737 keytran_next and fkey_next to just `next'.
13738
137392002-10-04 Steven Tamm <steventamm@mac.com>
13740
13741 * macterm.c (keycode_to_xkeysym_table): Change return to be
13742 treated like an X keysym.
13743
137442002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13745
13746 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
13747 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
13748 This is to also handle x/y changes that occur because of a resize.
13749
137502002-10-02 John Paul Wallington <jpw@shootybangbang.com>
13751
13752 * frame.c (Vdelete_frame_functions): New variable.
13753 (syms_of_frame): Initialize and defvar it.
13754 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
13755 it when frame's `tooltip' parameter is non-nil.
13756
13757 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
13758
13759 * w32fns.c (x_create_tip_frame): Likewise.
13760
13761 * macfns.c (x_create_tip_frame): Likewise.
13762
137632002-09-30 Kenichi Handa <handa@m17n.org>
13764
13765 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
13766 -1 before calling ccl_driver.
13767
13768 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
13769 Only when it is non-nil, handle composition sequence.
13770 (setup_coding_system) <0>: Don't force composition handling.
13771
13772 * Makefile.in (lisp, shortlisp): Add utf-16.elc
13773
137742002-09-29 Richard M. Stallman <rms@gnu.org>
13775
13776 * search.c (Freplace_match): Adjust match data for the substitution
13777 just made in the buffer.
13778
13779 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
13780 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
13781
137822002-09-27 Richard M. Stallman <rms@gnu.org>
13783
13784 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
13785 (read_char): Use them. Do all exits thru the end of the function.
13786
137872002-09-27 Kenichi Handa <handa@etl.go.jp>
13788
13789 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
13790 is nil.
13791
137922002-09-26 Richard M. Stallman <rms@gnu.org>
13793
13794 * regex.h (__restrict_arr): Don't define if already defined.
13795
13796 * coding.c (run_pre_post_conversion_on_str):
13797 Save and restore Vdeactivate_mark.
13798
137992002-09-26 John Paul Wallington <jpw@shootybangbang.com>
13800
13801 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
13802
138032002-09-26 Kenichi Handa <handa@etl.go.jp>
13804
13805 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
13806 nonzero, try face's family at first. Otherwise try FAMILY at first.
13807 (choose_face_font): If C is a single byte char or latin-1, call
13808 try_font_list with PREFER_FACE_FAMILY 1.
13809
138102002-09-21 Richard M. Stallman <rms@gnu.org>
13811
13812 * window.c (select_window_1): Don't select frame.
13813 Set frame's selected window only when frame itself is selected.
13814 (Fselect_window): Doc fix.
13815
138162002-09-18 Kim F. Storm <storm@cua.dk>
13817
13818 * process.c (make-network-process): Doc fix (there is no
13819 network-server-log-function hook).
13820
138212002-09-18 Richard M. Stallman <rms@gnu.org>
13822
13823 * print.c (print): Clear out the unused parts of Vprint_number_table.
13824 (syms_of_print): Doc fix for `print-number-table'.
13825
13826 * unexelf.c (unexec): Undo previous change.
13827
138282002-09-17 Andreas Schwab <schwab@suse.de>
13829
13830 * m/alpha.h [LINUX]: Don't define DATA_START.
13831
138322002-09-16 Dave Love <fx@gnu.org>
13833
13834 * unexelf.c (unexec): Deal with .got, reinstating change from
13835 25-08-1999.
13836
138372002-09-13 Richard M. Stallman <rms@gnu.org>
13838
13839 * s/sol2-6.h (UNEXEC): Comment out definition.
13840
13841 * unexsol.c (unexec): Don't downcase first letter of error msg.
13842
13843 * xfaces.c (Fcolor_supported_p): Just one arg is required.
13844
138452002-09-12 Markus Rost <rost@math.ohio-state.edu>
13846
13847 * unexsol.c: Include buffer.h, charset.h, coding.h.
13848
138492002-09-11 Richard M. Stallman <rms@gnu.org>
13850
13851 * unexsol.c: Don't use report_file_error; do it by hand
13852 using dlerror.
13853
13854 * process.c (wait_reading_process_input, both versions):
13855 Before calling turn_on_atimers, call stop_polling.
13856
13857 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
13858
13859 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
13860 we go to too_near_end, call clear_glyph_matrix.
13861 (redisplay_window): After make_cursor_line_fully_visible,
13862 call clear_glyph_matrix and bypass `goto done'.
13863
13864 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
13865 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
13866
138672002-09-10 Richard M. Stallman <rms@gnu.org>
13868
13869 * fileio.c (Fdo_auto_save): Catch error making directory.
13870 Only call push_message if we need to.
13871 At the same time, make an unwind-protect to pop it.
13872 Rename local message_p to old_message_p.
13873 (do_auto_save_make_dir, do_auto_save_eh): New functions.
13874 (do_auto_save_unwind): Don't call pop_message.
13875
13876 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
13877
13878 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
13879
13880 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
13881
13882 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
13883
138842002-09-10 Stefan Monnier <monnier@cs.yale.edu>
13885
13886 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
13887 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
13888 (re_match_2_internal): Be more careful with infinite loops.
13889
138902002-09-10 Kim F. Storm <storm@cua.dk>
13891
13892 * macros.c (end_kbd_macro): New function.
13893 (Fend_kbd_macro): Use it.
13894
13895 * macros.h (end_kbd_macro): Declare extern.
13896
13897 * keyboard.c (Fdiscard_input): If defining keyboard macro,
13898 end and save it instead of discarding it.
13899
139002002-09-09 Markus Rost <rost@math.ohio-state.edu>
13901
13902 * s/sol2-6.h: Fix typo. Add comment.
13903
139042002-09-09 Richard M. Stallman <rms@gnu.org>
13905
13906 * regex.c (regnum_t): Use signed int, not unsigned int.
13907
13908 * s/sol2-6.h: New file.
13909
13910 * s/sol2-5.h (UNEXEC): Definition deleted.
13911
139122002-09-08 Kim F. Storm <storm@cua.dk>
13913
13914 * macros.c (executing_macro_index): Change type to EMACS_INT.
13915 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
13916
13917 * macros.h (executing_macro_index): Change type to EMACS_INT.
13918
139192002-09-06 Richard M. Stallman <rms@gnu.org>
13920
13921 * casetab.c (set_case_table): Make canon table point to eqv table.
13922
139232002-09-06 Juanma Barranquero <lektu@terra.es>
13924
13925 * coding.c (syms_of_coding): Fix spacing.
13926
13927 * composite.c (Fcompose_region_internal)
13928 (Fcompose_string_internal): Likewise.
13929
13930 * data.c (Flsh): Likewise.
13931
13932 * fontset.c (Fset_fontset_font): Likewise.
13933
13934 * macfns.c (Fx_server_max_request_size): Likewise.
13935
13936 * w16select.c (syms_of_win16select): Likewise.
13937
13938 * w32select.c (syms_of_w32select): Likewise.
13939
13940 * xselect.c (syms_of_xselect): Likewise.
13941
139422002-09-05 Richard M. Stallman <rms@gnu.org>
13943
13944 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
13945 call EXTEND_RANGE_TABLE and return a proper value.
13946 (set_image_of_range): Don't call set_image_of_range_1
13947 if no TRANSLATE or if range includes all of Latin-1.
13948 Only call it for the Latin-1 part of the range.
13949 For other cases, make two separate ranges,
13950 one for the original specified characters and one for
13951 their case-conversions.
13952
139532002-09-04 Richard M. Stallman <rms@gnu.org>
13954
13955 * s/sol2-5.h (UNEXEC): Use unexsol.o.
13956
13957 * window.c (displayed_window_lines): Correct for one-off bug
13958 in HEIGHT on non-window displays.
13959
13960 * regex.c (set_image_of_range_1): New function.
13961 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
13962 Return a value to indicate running out of memory.
13963 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
13964 (extend_range_table_work_area): New subroutine.
13965 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
13966 Different calling conventions, and used from set_image_of_range{,_1}.
13967 (IMMEDIATE_QUIT_CHECK): Definitions moved.
13968
139692002-09-04 Juanma Barranquero <lektu@terra.es>
13970
13971 * makefile.w32-in: All dependencies updated.
13972
139732002-09-01 Richard M. Stallman <rms@gnu.org>
13974
13975 * unexsol.c: New file.
13976
13977 * xfns.c (Qbox): Declare external, don't define.
13978
13979 * xdisp.c (redisplay_window) <force-start case>:
13980 If point is on semi-visible last line, reposition
13981 it at previous line.
13982
13983 * alloc.c (display_malloc_warning): Use display-warning.
13984 (malloc_warning_1): Function deleted.
13985
13986 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
13987
13988 * lread.c (read1): Handle #! by skipping the line.
13989
139902002-08-31 Richard M. Stallman <rms@gnu.org>
13991
13992 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
13993 Don't include LDFLAGS.
13994 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
13995
139962002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
13997
13998 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
13999 member of x_display_info unless we compile for some window system.
14000
140012002-08-31 Kim F. Storm <storm@cua.dk>
14002
14003 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
14004 (get_window_cursor_type): Don't use them.
14005 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
14006
140072002-08-30 Kenichi Handa <handa@etl.go.jp>
14008
14009 * xdisp.c (get_next_display_element): Fix previous change.
14010
140112002-08-30 Andrew Choi <akochoi@shaw.ca>
14012
14013 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
14014 (expose_window): Use it to fix the display of overlapping
14015 rows (merge code from xterm.c).
14016
14017 * macfns.c (Qbox): Add extern declaration.
14018
140192002-08-30 Juanma Barranquero <lektu@terra.es>
14020
14021 * w32fns.c (Qbox): Make extern.
14022 (syms_of_w32fns): Remove initialization of Qbox.
14023
140242002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
14025
14026 * xfns.c (Fx_open_connection): Fix error message.
14027
140282002-08-30 Kim F. Storm <storm@cua.dk>
14029
14030 The following changes consolidates the handling of the cursor
14031 type in xdisp.c, moving duplicate code and functionality from
14032 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
14033
14034 * frame.h (enum text_cursor_kinds): Consolidated here.
14035 Added DEFAULT_CURSOR value.
14036 (struct frame) <desired_cursor, cursor_width>
14037 <blink_off_cursor, blink_off_cursor_width>: New fields.
14038 Consolidated from output_x, output_w32 and output_mac structs.
14039 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14040 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
14041
14042 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
14043 Variables consolidated here.
14044 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
14045 (Vcursor_in_non_selected_windows): Renamed from
14046 cursor_in_non_selected_windows and changed to Lisp_Object.
14047 (syms_of_xdisp): Define and staticpro new and moved variables.
14048 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
14049 consolidated here. Recognize Qhollow setting.
14050 (set_frame_cursor_types): New function to set frame cursor types
14051 based on the frame parameters.
14052 (get_window_cursor_type): New function to calculate new cursor
14053 type and width for the specified window. Based on duplicated
14054 code consolidated here.
14055 Enhancements: cursor-in-non-selected-windows may be a cursor type,
14056 check buffer-local alternate-cursor-type and blink-cursor-alist
14057 before using built-in blink off methods.
14058
14059 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
14060
14061 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
14062 (get_specified_cursor_type, get_window_cursor_type)
14063 (set_frame_cursor_types): Added prototypes.
14064
14065 * macfns.c (x_specified_cursor_type): Removed.
14066 (x_set_cursor_type): Use set_frame_cursor_types.
14067 (Qbar, Qbox): Removed.
14068 (syms_of_macfns): Don't intern or staticpro them.
14069
14070 * macterm.c (x_specified_cursor_type): Remove prototype.
14071 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14072 (x_display_and_set_cursor): Use get_window_cursor_type.
14073 Remove unused local variables cursor_non_selected, active_cursor.
14074 Redraw cursor if hbar cursor width changes.
14075 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
14076
14077 * macterm.h (enum text_cursor_kinds): Removed.
14078 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
14079 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14080 (FRAME_DESIRED_CURSOR): Macro removed.
14081
14082 * w32fns.c (Vblink_cursor_alist): Removed.
14083 (Qbar, Qhbar, Qbox, Qhollow): Removed.
14084 (syms_of_w32fns): Don't intern, staticpro, or define them.
14085 (x_specified_cursor_type): Removed.
14086 (x_set_cursor_type): Use set_frame_cursor_types.
14087
14088 * w32term.c (x_specified_cursor_type): Remove prototype.
14089 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14090 (x_display_and_set_cursor): Use get_window_cursor_type.
14091 Remove unused local variables cursor_off_state.
14092 Redraw cursor if hbar cursor width changes.
14093 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
14094
14095 * w32term.h (enum text_cursor_kinds): Removed.
14096 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
14097 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14098 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14099 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
14100 (struct w32_display_info) <x_highlight_frame>: Renamed member from
14101 w32_highlight_frame.
14102
14103 * xfns.c (Vblink_cursor_alist): Removed.
14104 (Qbar, Qhbar, Qbox, Qhollow): Removed.
14105 (syms_of_xfns): Don't intern, staticpro, or define them.
14106 (x_specified_cursor_type): Removed.
14107 (x_set_cursor_type): Use set_frame_cursor_types.
14108
14109 * xterm.c (x_specified_cursor_type): Remove prototype.
14110 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14111 (x_display_and_set_cursor): Use get_window_cursor_type.
14112 Remove unused local variables cursor_off_state.
14113 Redraw cursor if hbar cursor width changes.
14114
14115 * xterm.h (enum text_cursor_kinds): Removed.
14116 (struct output_x) <current_cursor, desired_cursor, cursor_width>
14117 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14118 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14119 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
14120 (x_specified_cursor_type): Remove prototype.
14121
141222002-08-28 Richard M. Stallman <rms@gnu.org>
14123
14124 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14125 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14126 (Vblink_cursor_alist): New variable.
14127 (syms_of_w32fns): Initialize and defvar it.
14128 (x_specified_cursor_type): Recognize Qbox for filled box.
14129 Exceptions are hollow boxes.
14130 (Qbox, Qhollow): New variables.
14131 (syms_of_w32fns): Initialize and staticpro them.
14132
14133 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14134 New macros.
14135 (struct w32_output): New fields blink_off_cursor,
14136 blink_off_cursor_width.
14137 (FRAME_CURSOR_WIDTH): New macro.
14138
14139 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14140 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14141
14142 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14143 for bar cursor.
14144
14145 * w32term.c (expose_overlaps): New function.
14146 (expose_window): Use it to fix the display of overlapping rows.
14147
141482002-08-28 Simon Josefsson <jas@extundo.com>
14149
14150 * xfns.c (Fx_open_connection): Improve help when X connection
14151 fails, xhost is insecure and xauth is better.
14152
141532002-08-28 Juanma Barranquero <lektu@terra.es>
14154
14155 * makefile.w32-in: Add missing dependencies on w32term.h and
14156 composite.h.
14157
14158 * emacs.c (USAGE1): Add missing newline.
14159
141602002-08-27 Andrew Choi <akochoi@shaw.ca>
14161
14162 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
14163
141642002-08-27 Richard M. Stallman <rms@gnu.org>
14165
14166 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14167 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14168 (Vblink_cursor_alist): New variable.
14169 (syms_of_xfns): Initialize and defvar it.
14170 (x_specified_cursor_type): Recognize Qbox for filled box.
14171 Exceptions are hollow boxes.
14172 (Qbox, Qhollow): New variables.
14173 (syms_of_xfns): Initialize and staticpro them.
14174
14175 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14176 New macros.
14177 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
14178
14179 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14180 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14181
14182 * emacs.c (main): Handle --script.
14183 (USAGE1): Mention --script.
14184 (standard_args): Define sort order for --script.
14185
141862002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
14187
14188 * xdisp.c (redisplay_updating_p): Variable removed.
14189 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
14190 New variables.
14191 (init_iterator): Don't free realized faces if
14192 inhibit_free_realized_faces is set.
14193 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
14194 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
14195 initialize Qinhibit_free_realized_faces.
14196
14197 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
14198 when iterator is adding glyphs to a glyph matrix.
14199
142002002-08-27 Kenichi Handa <handa@etl.go.jp>
14201
14202 * xdisp.c (get_next_display_element): In unibyte case, don't use
14203 octal form for such eight-bit characters that can be converted to
14204 multibyte char.
14205
142062002-08-26 Kim F. Storm <storm@cua.dk>
14207
b6189c3b
KS
14208 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
14209 foreground and background colors. From Joe Buehler.
048addec
JD
14210
142112002-08-26 Miles Bader <miles@gnu.org>
14212
14213 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
14214
142152002-08-25 Andrew Choi <akochoi@shaw.ca>
14216
14217 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
14218 defined instead of MAC_OSX.
14219
14220 * s/darwin.h (select): Define select to sys_select only if
14221 HAVE_CARBON is defined.
14222 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
14223 (DONT_REOPEN_PTY): #def it.
14224
14225 * macterm.c (XTread_socket): Remove code to call
14226 SendEventToEventTarget for keys with command modifiers when
14227 mac_command_key_is_meta is nil.
14228
142292002-08-24 Andreas Schwab <schwab@suse.de>
14230
14231 * eval.c (Fdefvar): Fix last change.
14232
142332002-08-23 Richard M. Stallman <rms@gnu.org>
14234
14235 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
14236 Record variables in load history as (defvar . VAR).
14237 (Fdefvar): Don't record in load history if no initial value.
14238 (Qdefvar): New variable.
14239 (syms_of_eval): Init and staticpro it.
14240
14241 * lread.c (syms_of_lread): Doc fix.
14242 (build_load_history): Use Fmember to see if a definition
14243 is already in the Vload_history element.
14244
14245 * process.c (Fstart_process): Remove /: from program name.
14246
14247 * emacs.c (decode_env_path): Don't add /: if file name handler
14248 has a `safe-magic' property.
14249
14250 * callproc.c (Fcall_process): Remove /: from program name.
14251
142522002-08-23 Stefan Monnier <monnier@cs.yale.edu>
14253
14254 * regex.c (PATFETCH): Remove the translating fetch.
14255 (PATFETCH_RAW): Rename to PATFETCH.
14256 (set_image_of_range): New fun.
14257 (SET_RANGE_TABLE_WORK_AREA): Use it.
14258 (regex_compile): Don't translate the pattern chars so eagerly.
14259 Only do it when inserting an `exactn' bytecode or when handling
14260 a char-range.
14261 (mutually_exclusive_p): Avoid empty statement.
14262
142632002-08-22 Kim F. Storm <storm@cua.dk>
14264
14265 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
14266 end up on a partially visible line; this reverts a specific part
14267 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
14268 display error which has been reported several times now.
14269 However it introduces the problem that changes was supposed to fix.
14270 See my comments in the source if you want to debug this further.
14271
142722002-08-20 Kenichi Handa <handa@etl.go.jp>
14273
14274 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14275
142762002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
14277
14278 * msdos.c (croak): Add `void' to definition.
14279
c1380aa6 14280 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
14281 Don't define them, they are defined in msdos.c.
14282
14283 * mem-limits.h [MSDOS]: Declare etext.
14284
14285 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
14286 `const' since CORRECT_DIR_SEPS modifies its target.
14287
142882002-08-19 Kim F. Storm <storm@cua.dk>
14289
2fb0ce67 14290 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
14291 KEEP-RECORD to avoid clearing lossage when we just want to clear
14292 the current key sequence (kmacro needs this).
14293
142942002-08-19 Kenichi Handa <handa@localhost>
14295
14296 * composite.c (run_composition_function): Call FUNC if it is fboundp.
14297
14298 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
14299 cons, return Qnil.
14300
143012002-08-17 Richard M. Stallman <rms@gnu.org>
14302
14303 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
14304
14305 * sysdep.c [!VMS]: Include sys/files.h.
14306
14307 * editfns.c (save_restriction_restore): Defend from unchained marker.
14308
14309 * buffer.c (overlays_at): Handle extending vec uniformly.
14310 (overlays_in): Handle extending vec from length 0 as in overlays_at.
14311
143122002-08-15 Andrew Choi <akochoi@shaw.ca>
14313
14314 * mac.c (init_mac_osx_environment): New function.
14315
14316 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
14317
143182002-08-14 Kim F. Storm <storm@cua.dk>
14319
14320 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
14321 executing macro before appending to it (when used from Lisp).
14322 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
14323 which is called prior to each iteration of macro (for kmacro.el).
14324 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
14325
14326 * lisp.h (Fexecute_kbd_macro): Update prototype.
14327
14328 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
14329
143302002-08-14 Kenichi Handa <handa@etl.go.jp>
14331
14332 * xselect.c (QUTF8_STRING): New variable.
14333 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
14334 (x_atom_to_symbol): Likewise.
14335 (x_get_local_selection): New argument local_request. If it is
14336 nonzero, call handler_fn with the second arg nil.
14337 (x_handle_selection_request): Call x_get_local_selection with
14338 local_request 0.
14339 (lisp_data_to_selection_data): Don't encode the string here.
14340 (Fx_get_selection_internal): Call x_get_local_selection with
14341 local_request 1.
14342 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
14343
14344 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
14345
14346 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
14347
143482002-08-13 Richard M. Stallman <rms@gnu.org>
14349
14350 * minibuf.c (Fminibufferp): New function.
14351 (syms_of_minibuf): Defsubr it.
14352 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
14353
143542002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
14355
14356 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
14357
143582002-08-12 Richard M. Stallman <rms@gnu.org>
14359
14360 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
14361 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
14362 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
14363 already.
14364
14365 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
14366
143672002-08-11 Andrew Choi <akochoi@shaw.ca>
14368
14369 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
14370 (Vmac_pass_command_to_system): New variable.
14371 (Vmac_pass_control_to_system): New variable.
14372 (do_mouse_moved): Check wp with is_emacs_window.
14373 (XTread_socket): Check window_ptr with is_emacs_window.
14374 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
14375 events back to Mac Toolbox for processing, depending on values of
14376 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
14377 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
14378 Vmac_pass_control_to_system.
14379
143802002-08-10 Kenichi Handa <handa@etl.go.jp>
14381
14382 * coding.c (unencodable_char_position): New function.
14383 (Funencodable_char_position): New function.
14384 (syms_of_coding): Defsubr Funencodable_char_position.
14385
143862002-08-10 Andrew Choi <akochoi@shaw.ca>
14387
14388 * mac.c (sys_select) [MAC_OSX]: New function.
14389
14390 * macterm.c (MakeMeTheFrontProcess): New function.
14391 (mac_initialize): Call MakeMeTheFrontProcess.
14392
14393 * s/darwin.h: Define select to sys_select.
14394
143952002-08-09 Richard M. Stallman <rms@gnu.org>
14396
14397 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
14398
143992002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
14400
14401 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
14402 end of the buffer.
14403
144042002-08-08 Ken Raeburn <raeburn@mit.edu>
14405
14406 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
14407
14408 * puresize.h (BASE_PURESIZE): Increase to 910000.
14409
144102002-08-08 Kenichi Handa <handa@etl.go.jp>
14411
14412 * coding.c (Ffind_operation_coding_system): For write-region, if
14413 VISIT is a filename, make it the target.
14414
144152002-08-07 Richard M. Stallman <rms@gnu.org>
14416
14417 * alloc.c (mark_object): Detect long lists for debugging.
14418 (mark_object_loop_halt): New variable.
14419
14420 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
14421
14422 * data.c (Fmake_variable_frame_local): Doc fix.
14423
144242002-08-01 David Ponce <david@dponce.com>
14425
14426 * w32menu.c (local_heap, local_alloc, local_free): New macros.
14427 (malloc_widget_value, free_widget_value)
14428 (w32_free_submenu_strings): Use them.
14429
14430 (push_submenu_start, push_submenu_end, push_left_right_boundary)
14431 (push_menu_pane, push_menu_item, single_keymap_panes)
14432 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
14433 (single_submenu, set_frame_menubar)
14434 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
14435
14436 (Fx_popup_menu): Don't show pop up menu until preceding one is
14437 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
14438
14439 * w32menu.c: Changes adapted from xmenu.c
14440 (set_frame_menubar): First parse all submenus,
14441 then make widget_value trees from them.
14442 Don't allocate any widget_value objects
14443 until we are done with the parsing.
14444 (parse_single_submenu): New function.
14445 (digest_single_submenu): New function.
14446 (single_submenu): Function deleted, replaced by those two.
14447
144482002-08-04 Andrew Choi <akochoi@shaw.ca>
14449
14450 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
14451 returns a valid window pointer before proceeding for keyDown and
14452 autoKey events.
14453
144542002-08-03 Andrew Choi <akochoi@shaw.ca>
14455
14456 * macterm.c (USE_CARBON_EVENTS): New macro.
14457 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
14458 (x_iconify_frame): Call CollapseWindow.
14459 (Vmac_reverse_ctrl_meta): New variable.
14460 (Vmac_wheel_button_is_mouse_2): New variable.
14461 (init_mac_drag_n_drop): New function.
14462 (mac_do_receive_drag): New function.
14463 (mac_handle_service_event): New function.
14464 (init_service_handler): New function.
14465 (mac_to_emacs_modifiers): New function.
14466 (mac_event_to_emacs_modifiers): New function.
14467 (mac_get_mouse_btn): New function.
14468 (mac_convert_event_ref): New function.
14469 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
14470 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
14471 mac_get_mouse_btn.
14472 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
14473
14474 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
14475 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
14476 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
14477 TOOL_BAR_EVENT for MAC_OS as well.
14478 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
14479 as for WINDOWS_NT.
14480 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
14481
14482 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
14483
144842002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
14485
14486 * xdisp.c (forward_to_next_line_start): Fix a condition that
14487 lead to a newline being skipped.
14488
144892002-08-02 Andrew Choi <akochoi@shaw.ca>
14490
14491 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
14492
144932002-08-01 Richard M. Stallman <rms@gnu.org>
14494
14495 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
14496
144972002-07-31 Andrew Choi <akochoi@shaw.ca>
14498
14499 * macfns.c: #undef init_process before #define-ing it.
14500
14501 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
14502 HAVE_CARBON is defined.
14503
145042002-07-31 Richard M. Stallman <rms@gnu.org>
14505
14506 * xmenu.c (set_frame_menubar): First parse all submenus,
14507 then make widget_value trees from them.
14508 Don't allocate any widget_value objects
14509 until we are done with the parsing.
14510 (parse_single_submenu): New function.
14511 (digest_single_submenu): New function.
14512 (single_submenu): Function deleted, replaced by those two.
14513
145142002-07-30 Juanma Barranquero <lektu@terra.es>
14515
14516 * w32proc.c (syms_of_ntproc): Fix docstring of
14517 `w32-get-true-file-attributes'.
14518
145192002-07-28 Richard M. Stallman <rms@gnu.org>
14520
14521 * s/hpux8.h (HPUX8): Define this before including hpux.h.
14522 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
14523
14524 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
14525
14526 * keyboard.c (make_lispy_event):
14527 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
14528 Explicitly clear up_modifier in event->modifiers.
14529
145302002-07-27 Richard M. Stallman <rms@gnu.org>
14531
14532 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
14533
14534 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14535 for bar cursor.
14536
145372002-07-26 Kenichi Handa <handa@etl.go.jp>
14538
14539 * coding.c (detect_coding_iso2022): While checking a byte sequence
14540 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
14541 it in the normal loop.
14542
145432002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
14544
14545 * xterm.c (expose_overlaps): New function.
14546 (expose_window): Use it to fix the display of overlapping rows.
14547
14548 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
14549
145502002-07-23 Ken Raeburn <raeburn@gnu.org>
14551
14552 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
14553 since it only depends on XUINT.
14554
14555 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
14556 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
14557 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
14558 Macros deleted.
3947677c 14559
77d1daf2
AS
14560 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
14561 its value over other approaches.
14562 * sysdep.c (start_of_data): Don't define the function if a macro
14563 form has been defined.
8a8e19a3 14564
048addec
JD
145652002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
14566
14567 * xdisp.c (redisplay_updating_p): New variable.
14568 (init_iterator): Don't free realized faces when
14569 redisplay_updating_p is set.
14570 (redisplay_internal): Set redisplay_updating_p while updating
14571 the display.
14572
145732002-07-23 Richard M. Stallman <rms@gnu.org>
14574
14575 * editfns.c (Fmessage): Treat "" like nil.
14576
145772002-07-23 Kenichi Handa <handa@etl.go.jp>
14578
14579 * xdisp.c (face_before_or_after_it_pos):
14580 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14581
145822002-07-22 Juanma Barranquero <lektu@terra.es>
14583
14584 * callproc.c (init_callproc) [DOS_NT]:
14585 Initialize Vshared_game_score_directory to nil.
14586 (syms_of_callproc) [DOS_NT]: Likewise.
14587
145882002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
14589
14590 * xdisp.c (display_line): Replace an abort with xassert.
14591
145922002-07-21 Richard M. Stallman <rms@gnu.org>
14593
14594 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
14595 and END_UNCHANGED when setting buffer_unchanged_p.
14596 Use current_matrix_up_to_date_p to decide whether to use
14597 try_cursor_movement.
14598
14599 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
14600
14601 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
14602
14603 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
14604 Set to nil if dir does not exist.
14605 (syms_of_callproc): Init unconditionally and simply.
14606
14607 * buffer.c (Fbuffer_list): Doc fix.
14608
146092002-07-21 Ken Raeburn <raeburn@gnu.org>
14610
14611 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
14612
14613 * buffer.c (mmap_realloc): When shrinking, make sure number of
14614 pages to unmap is rounded towards zero.
14615
14616 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
14617 (XSETINT): Deleted.
14618
14619 * m/att3b.h (XINT): Don't define.
14620 (VALBITS, VALMASK, XTYPE): Deleted.
14621 (DATA_SEG_BITS): Define.
14622 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
14623 ARRAY_MARK_FLAG): Deleted.
14624 (DATA_SEG_BITS): Define.
14625 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
14626 (DATA_SEG_BITS): Define.
14627
146282002-07-20 Richard M. Stallman <rms@gnu.org>
14629
14630 * print.c (print_error_message): New args CONTEXT and CALLER.
14631 Calls changed.
14632
14633 * lisp.h (print_error_message): Declare new args.
14634
14635 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
14636 and CONTEXT to print_error_message, don't print them here.
14637 For a Quit, don't use Vsignaling_function.
14638 Call message_log_maybe_newline.
14639
14640 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
14641
146422002-07-20 Kim F. Storm <storm@cua.dk>
14643
14644 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
14645
146462002-07-19 Ken Raeburn <raeburn@gnu.org>
14647
14648 * bytecode.c (struct byte_stack): Pointers into byte string now
14649 point to const.
14650 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
14651 const.
14652 * charset.h (BCOPY_SHORT): Source pointer now points to const.
14653 * coding.c (encode_eol, detect_coding, detect_eol):
14654 (decode_coding, encode_coding, detect_coding_system):
14655 Source strings now treated as const.
14656 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
14657 modify Lisp string contents.
14658 * coding.h (decode_coding, encode_coding, detect_coding,
14659 detect_eol): Declarations updated.
14660 * composite.c (compose_chars_in_text): Treat Lisp string contents
14661 as const.
14662 * dispnew.c (safe_bcopy): Source pointer now points to const.
14663 * lisp.h (STRING_COPYIN): New macro.
14664 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
14665 (internal_with_output_to_temp_buffer): Declarations updated.
14666 * print.c (temp_output_buffer_setup):
14667 (internal_with_output_to_temp_buffer): Buffer name argument is now
14668 pointer to const.
14669 * sound.c (struct sound_device): Function pointer field "write"
14670 buffer argument now points to const.
14671 (vox_write): Buffer argument points to const.
14672 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
14673 contents as const.
14674 * sysdep.c (emacs_write): Buffer pointer now const.
14675 * term.c (encode_terminal_code): Buffer pointer now const.
14676 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
14677 (x_face_list_fonts, x_update_menu_appearance):
14678 (hash_string_case_insensitive): Treat Lisp string contents as const.
14679
146802002-07-19 Juanma Barranquero <lektu@terra.es>
14681
048addec
JD
14682 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
14683
14684 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
14685 (Ffile_name_as_directory): Fix argument name in docstring.
14686 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
14687
146882002-07-18 Richard M. Stallman <rms@gnu.org>
14689
14690 * data.c (Fdefalias): Doc fix.
14691
146922002-07-17 Dave Love <fx@gnu.org>
14693
14694 * intervals.h (text_property_stickiness): Use P_.
14695
14696 * ccl.c: Remove `emacs' conditionals.
14697 (ccl_backtrace_table): Fix size spec.
14698 (ccl_driver): Fix type errors.
14699
147002002-07-16 Ken Raeburn <raeburn@gnu.org>
14701
14702 * alloc.c (xstrdup, make_string, make_unibyte_string)
14703 (make_multibyte_string, build_string): String pointer args now
14704 point to const.
14705 * charset.c (find_charset_in_text, c_string_width):
14706 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
14707 * fileio.c (report_file_error):
14708 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
14709 (count_combining_before, count_combining_after, insert_1_both):
14710 (insert, insert_and_inherit, insert_string):
14711 (insert_before_markers, insert_before_markers_and_inherit):
14712 * lread.c (intern, oblookup, hash_string):
14713 * minibuf.c (temp_echo_area_glyphs):
14714 * search.c (fast_c_string_match_ignore_case):
14715 * sysdep.c (emacs_open, set_file_times):
14716 * xfaces.c (xstricmp):
14717 * xdisp.c (store_frame_title, string_char_and_length):
14718 (message_dolog, message2, message2_nolog, set_message): Likewise.
14719 (set_message_1): Cast message string argument to const pointer.
14720 * editfns.c (general_insert_function): Insertion function now
14721 takes pointer to const for input data.
14722 * charset.h (find_charset_in_text, c_string_width):
14723 (parse_str_as_multibyte): Declarations updated.
14724 * dispextern.h (xstricmp): Declaration updated.
14725 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
14726 (count_size_as_multibyte, count_combining_before):
14727 (count_combining_after, insert_1, insert_1_both, message_dolog):
14728 (insert, insert_and_inherit, insert_before_markers)
14729 (insert_before_markers_and_inherit, set_message, message2):
14730 (message2_dolog, build_string, make_string, make_unibyte_string):
14731 (make_multibyte_string, intern, oblookup, report_file_error):
14732 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
14733 (emacs_open, xstrdup): Declarations updated.
14734 * systime.h (set_file_times): Declaration updated.
14735
14736 * charset.c (find_charset_in_text, lisp_string_width): Use const
14737 for pointer to lisp string data.
14738 * charset.h (FETCH_STRING_CHAR_ADVANCE):
14739 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
14740 * coding.c (Ffind_coding_systems_region_interval):
14741 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
14742 (Fmake_directory_internal, Fdelete_directory):
14743 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
14744 * fontset.c (font_family_registry, fs_query_fontset):
14745 (list_fontsets):
14746 * frame.c (Fframe_parameter):
14747 * keyboard.c (cmd_error_internal):
14748 * keymap.c (Fdescribe_buffer_bindings):
14749 * lread.c (complete_filename_p, openp):
14750 * minibuf.c (Fminibuffer_complete_word):
14751 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
14752 (face_before_or_after_it_pos, next_element_from_string):
14753 (get_overlay_arrow_glyph_row, display_mode_element):
14754 (decode_mode_spec_coding):
14755 * xterm.c (same_x_server): Likewise.
14756
14757 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
14758 settings of non-existent fields.
14759
14760 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
14761 copy a lisp value.
14762
14763 * lread.c (Fintern_soft): Use string macros instead of
14764 Lisp_String fields.
14765 * keyboard.c (echo_char, parse_modifiers_uncached):
14766 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
14767 * textprop.c (validate_interval_range, interval_of): Likewise.
14768
14769 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
14770
14771 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14772 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
14773 XSTRING()->size_byte.
14774
14775 * lisp.h (SDATA, SREF): Produce rvalue.
14776 (SSET): New macro.
14777 * alloc.c (make_event_array): Use SSET for storing into a string.
14778 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
14779 a string.
14780 * casefiddle.c (casify_object): Use SSET.
14781 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14782 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
14783 address of string contents.
14784 * data.c (Faref): Use SDATA.
14785 (Faset): Use SDATA, SSET.
14786 * dired.c (directory_files_internal): Use SSET.
14787 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
14788 (Fread_file_name): Use SREF, SSET.
14789 * fns.c (concat): Use SSET.
14790 (concat, Fdelete): Use SDATA.
14791 * insdel.c (insert_from_string_1): Use SDATA.
14792 * keyboard.c (Fevent_convert_list): Use SREF.
14793 * lread.c (Fload): Use SDATA, SSET.
14794 * macfns.c (validate_x_resource_name): Use SSET.
14795 * process.c (status_message): Use SSET.
14796 * search.c (wordify): Use SDATA.
14797 (Freplace_match): Use SREF.
14798 * w32fns.c (validate_x_resource_name): Use SSET.
14799 * xfns.c (validate_x_resource_name): Use SSET.
14800 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
14801
148022002-07-16 Richard M. Stallman <rms@gnu.org>
14803
14804 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
14805
14806 * xdisp.c (reconsider_clip_changes):
14807 Don't test prevent_redisplay_optimizations_p.
14808 (redisplay_internal): Test prevent_redisplay_optimizations_p
14809 along with clip_changed in some cases.
14810 (try_window_id): Likewise.
14811 (redisplay_window): New local var buffer_unchanged_p.
14812
14813 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
14814
14815 * process.c (create_process): Test USG_SUBTTY_WORKS.
14816 (process_send_signal): Clean up handling of GID.
14817 Detect errors in ioctls meant to set GID.
14818
14819 * window.c (temp_output_buffer_show):
14820 Don't set prevent_redisplay_optimizations_p.
14821
148222002-07-15 Juanma Barranquero <lektu@terra.es>
14823
14824 * eval.c (Fdefvaralias): Add docstring argument.
14825
148262002-07-15 Ken Raeburn <raeburn@gnu.org>
14827
14828 * lisp.h (STRING_INTERVALS): Produce rvalue.
14829 (STRING_SET_INTERVALS): New macro.
14830 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
14831 * fns.c (Fstring_as_multibyte): Likewise.
14832 * intervals.c (balance_possible_root_interval, delete_interval)
14833 (create_root_interval, copy_intervals_to_string): Likewise.
14834 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
14835 instead of 0.
14836
148372002-07-14 Ken Raeburn <raeburn@gnu.org>
14838
14839 * lisp.h (STRING_SET_CHARS): New macro.
14840 (SCHARS, SBYTES): Produce rvalues.
14841 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
14842 * fns.c (concat): Likewise.
14843 * lread.c (read_vector): Likewise.
14844
3419757d 14845 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 14846 (STRING_SET_UNIBYTE): New macro.
3419757d 14847 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
14848 length of -1) changed to use STRING_SET_UNIBYTE.
14849 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14850 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
14851 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
14852 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
14853 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
14854 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
14855 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
14856 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
14857 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
14858 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
14859 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
14860 STRING_BYTES or indirection changed to SCHARS, SBYTES,
14861 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
14862 unchanged for now.
14863
148642002-07-13 Kim F. Storm <storm@cua.dk>
14865
14866 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
14867
148682002-07-12 Richard M. Stallman <rms@gnu.org>
14869
14870 * fileio.c (Fwrite_region): Doc fix.
14871
14872 * print.c (print_error_message): Don't handle Vsignaling_function here.
14873
14874 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
14875 (command_loop_1): Avoid certain actions after memory-full error.
14876
14877 * eval.c (Fsignal): Don't call cancel_hourglass.
14878 For a memory-full error, don't call Vsignal_hook_function
14879 and don't set Vsignaling_function.
14880
14881 * process.c (process_send_signal): Add abort call.
14882
148832002-07-11 Markus Rost <rost@math.ohio-state.edu>
14884
14885 * keymap.c (Fkey_binding): Fix typo.
14886
148872002-07-11 Richard M. Stallman <rms@gnu.org>
14888
14889 * alloc.c (Vmemory_full): New variable.
3419757d 14890 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
14891 Uses changed.
14892 (syms_of_alloc): Defvar them.
14893 (memory_full, buffer_memory_full): Set Vmemory_full.
14894
14895 * lisp.h (Vmemory_full): Add declaration.
14896 (current_column, indented_beyond_p): Change declaration.
14897
14898 * indent.c (last_known_column): Declare as double, not float.
14899 (current_column, current_column_1, string_display_width)
14900 (position_indentation): Return `double'.
14901 (indented_beyond_p): Arg `column' is `double'. Callers changed.
14902
14903 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
14904 (back_to_previous_visible_line_start)
14905 (reseat_at_next_visible_line_start, next_element_from_buffer):
14906 Use `double', not `float', when calling indented_beyond_p.
14907
3419757d 14908 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
14909
14910 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
14911
149122002-07-11 Juanma Barranquero <lektu@terra.es>
14913
14914 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
14915 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
14916 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
14917 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
14918 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
14919 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
14920
149212002-07-10 Juanma Barranquero <lektu@terra.es>
14922
d814862a
JB
14923 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
14924 All callers changed.
048addec
JD
14925
149262002-07-09 Stefan Monnier <monnier@cs.yale.edu>
14927
14928 * data.c (Fdefalias): Add an optional `docstring' argument.
14929 (set_internal, Fsetq_default): Use XCAR/XCDR.
14930
14931 * composite.c (HASH_VALUE, HASH_KEY):
14932 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
14933
149342002-07-09 Kenichi Handa <handa@etl.go.jp>
14935
14936 * callproc.c (Fcall_process): Fix previous change.
14937
149382002-07-07 Stefan Monnier <monnier@cs.yale.edu>
14939
14940 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14941 Add support for hash-tables.
14942 (Ftry_completion): Return t even if the string appears multiple times.
14943
14944 * fns.c (Fnconc): Use XCDR.
14945 (Fprovide): Use CONSP and XCDR.
14946 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14947 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
14948 (Fmake_hash_table): Accept `:size nil'.
14949 (Fmakehash): Delete: moved to subr.el.
14950 (syms_of_fns): Don't defsubr makehash.
14951
14952 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14953 (HASH_TABLE_SIZE): Move from fns.c.
14954
149552002-07-07 Richard M. Stallman <rms@gnu.org>
14956
14957 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
14958 Instead just return 0 when there is something to be done.
14959 (try_scrolling): If make_cursor_line_fully_visible returns 0,
14960 retry scrolling as if cursor were off the bottom.
14961 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
14962 return CURSOR_MOVEMENT_MUST_SCROLL.
14963 (redisplay_window): If make_cursor_line_fully_visible returns 0,
14964 go to try_to_scroll.
14965
14966 * buffer.c (Fbuffer_local_value): Store current value into its binding
14967 so we get the up-to-date value for the binding that is loaded.
14968
14969 * eval.c (Fdefmacro): Doc fix.
14970
149712002-07-05 Dave Love <fx@gnu.org>
14972
14973 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
14974 correctly.
14975
14976 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
14977 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
14978 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
14979 CCL_LookupCharConstTbl.
14980 (syms_of_ccl): Defvar translation-hash-table-vector.
14981
149822002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14983
14984 * xdisp.c: Remove unused variable `face'.
14985
149862002-07-04 Juanma Barranquero <lektu@terra.es>
14987
14988 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
14989 obsolescence information.
14990
149912002-07-03 Andrew Choi <akochoi@shaw.ca>
14992
14993 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
14994 pattern. Search cache first.
14995 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
14996 for Japanese font.
14997 (XLoadQueryFont): Use it.
14998
149992002-07-02 Richard M. Stallman <rms@gnu.org>
15000
15001 * keymap.c (Fdefine_key): Doc fix.
15002
15003 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
15004
150052002-07-02 Juanma Barranquero <lektu@terra.es>
15006
15007 * keymap.c (syms_of_keymap): Fix typo.
15008
150092002-07-01 Andrew Choi <akochoi@shaw.ca>
15010
15011 * s/darwin.h: Define POSIX_SIGNALS.
15012
15013 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
15014 and FSRefMakePath to convert FSSpec returned with Apple Event to
15015 Posix pathname.
15016 (mac_initialize) [TARGET_API_MAC_CARBON]:
15017 Call init_required_apple_events and disable the `Quit' menu item
15018 provided automatically by the Carbon Toolbox.
15019
150202002-07-01 Dave Love <fx@gnu.org>
15021
15022 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15023 for K&R.
15024
15025 * xterm.c: Fix prototype for K&R.
15026
15027 * term.c (costs_set): Declare static, non-initialized for pcc.
15028
150292002-07-01 Richard M. Stallman <rms@gnu.org>
15030
15031 * keyboard.c (timer_last_idleness_start_time): New variable.
15032 (timer_start_idle): Set that.
15033 (read_key_sequence): Use that to reset timer_idleness_start_time
15034 to previous value.
15035
15036 * window.c (Frecenter): With arg, set optional_new_start.
15037
15038 * xdisp.c (redisplay_internal): Make optional_new_start really work.
15039
15040 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
15041 buffer for completion.
15042
150432002-06-29 Ken Raeburn <raeburn@gnu.org>
15044
15045 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
15046
150472002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15048
15049 * keyboard.c (readable_filtered_events): New function that filters
15050 FOCUS_IN_EVENT depending on parameter.
15051 (readable_events): Calls readable_filtered_events, not filtering
15052 FOCUS_IN_EVENT.
15053 (get_filtered_input_pending): New function, filtering parameter passed
15054 to readable_filtered_events.
15055 (get_input_pending): Calls get_filtered_input_pending, not filtering
15056 FOCUS_IN_EVENT.
15057 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
15058 FOCUS_IN_EVENT.
15059
15060 * xterm.h (struct x_output): Add focus_state.
15061
15062 * xterm.c (x_focus_changed): New function.
15063 (x_detect_focus_change): New function.
15064 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
15065 EnterNotify and LeaveNotify to track X focus changes.
15066
150672002-06-28 Andreas Schwab <schwab@suse.de>
15068
15069 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
15070
150712002-06-27 Kim F. Storm <storm@cua.dk>
15072
52eb0373 15073 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
15074 (mode_line_string_face_prop): New variables.
15075 (store_mode_line_string): New function.
15076 (display_mode_element): Use store_mode_line_string to
15077 add mode-line string elements to mode_line_string_list
15078 when mode_line_string_list is non-nil.
15079 (Fformat_mode_line): Now returns propertized string by
15080 default. New arg NO-PROPS to ignore properties.
15081 (decode_mode_spec): Only add two dashes for %- in propertized
15082 mode-line string.
15083 (syms_of_xdisp): Init and staticpro mode_line_string_list.
15084
150852002-06-27 Stefan Monnier <monnier@cs.yale.edu>
15086
15087 * minibuf.c (minibuffer_completion_contents): Add return type.
15088
150892002-06-27 Juanma Barranquero <lektu@terra.es>
15090
15091 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
15092
150932002-06-26 Juanma Barranquero <lektu@terra.es>
15094
15095 * fileio.c (read_file_name_cleanup): Add missing return.
15096
150972002-06-26 Richard M. Stallman <rms@gnu.org>
15098
15099 * window.c (Frecenter): Don't set force_start flag.
15100
15101 * minibuf.c (do_completion, Fminibuffer_complete_word)
15102 (Fminibuffer_completion_help): Complete just the text before point.
15103 (minibuffer_completion_contents): New function.
15104
15105 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
15106
15107 * frame.c (frames_bury_buffer): Function deleted.
15108
151092002-06-25 Miles Bader <miles@gnu.org>
15110
15111 * callint.c (Fcall_interactively): When checking to see if doprnt hit
15112 the end of callint_message, allow for a terminating '\0'.
15113
151142002-06-24 Juanma Barranquero <lektu@terra.es>
15115
52eb0373 15116 * w32select.c: Include composite.h.
048addec
JD
15117
15118 * w16select.c: Likewise.
15119
151202002-06-24 Kenichi Handa <handa@etl.go.jp>
15121
15122 * callproc.c (Fcall_process): If code detection is necessary,
15123 call detect_coding directly here.
15124
15125 * coding.c (detect_eol): Preserve coding->cmp_data.
15126
15127 * w16select.c (Fw16_get_clipboard_data):
15128 * w32fns.c (w32_to_x_font):
15129 * w32select.c (Fw32_get_clipboard_data):
15130 * xselect.c (selection_data_to_lisp_data):
15131 * xterm.c (XTread_socket): Disable composition handling.
15132
151332002-06-24 Stefan Monnier <monnier@cs.yale.edu>
15134
15135 * print.c (temp_output_buffer_setup): Kill all local variables.
15136
151372002-06-22 Stefan Monnier <monnier@cs.yale.edu>
15138
15139 * lread.c (Fread): Remove redundant and imprecise declaration.
15140
15141 * xfns.c (check_x_display_info): Use check_x_frame.
15142
15143 * .gdbinit (xprintsym): Use the new `xname' field.
15144 (xsymbol): Use it.
15145
151462002-06-22 Jason Rumney <jasonr@gnu.org>
15147
15148 * w32fns.c (file_dialog_callback): New function.
15149 (Fx_file_dialog): Allow selecting directories as well as files.
15150
151512002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15152
15153 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 15154 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
15155
151562002-06-17 Andrew Choi <akochoi@shaw.ca>
15157
15158 * macterm.c (mac_scroll_area): Set foreground and backcolor to
15159 black and white before scrolling. Restore frame background and
15160 foreground color after scrolling.
15161 (do_window_update): Call XClearWindow before calling expose_frame.
15162 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
15163 FRAME_FOREGROUND_PIXEL of frame.
15164
15165 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15166 test Mac command key as <ALT> key.
15167
151682002-06-17 Stefan Monnier <monnier@cs.yale.edu>
15169
15170 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
15171
15172 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
15173 Lookup keys in function-key-map immediately so that key-translation-map
15174 can be applied earlier.
15175 Remove function_key_possible and key_translation_possible, replaced
15176 by checking `keytran_start < t'.
15177
15178 * .gdbinit (xsymbol): Use the new `xname' field.
15179
151802002-06-17 Andrew Choi <akochoi@shaw.ca>
15181
15182 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15183 test Mac command key as <ALT> key.
15184
15185 * mac.c (do_applescript): Call initialize_applescript if necessary
15186 when first called. Dispose of result_desc only when there is no error.
15187 (Fdo_applescript): Use %d format specifier instead of %ld.
15188
151892002-06-16 Andrew Choi <akochoi@shaw.ca>
15190
15191 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
15192 of FrontWindow for cases keyDown and autoKey.
15193
15194 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
15195 Vdefault_fontset to Monaco with mac-roman coding.
15196
15197 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
15198 init_process before and after inclusion of Carbon/Carbon.h, resp.
15199
15200 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
15201 cursor_gc.
15202 (add_font_name_table_entry): New function.
15203 (init_font_name_table): Use add_font_name_table_entry; add italic,
15204 bold, and bold-italic entries for truetype fonts.
15205
15206 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
15207 for Mac too.
15208 (try_font_list) [MAC_OS]: If no font matches given registry, try
15209 fonts with any registry matching face_family.
15210 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
15211
15212 * s/darwin.h: If autoconf detects the Ncurses library, define
15213 LIBS_TERMCAP to -lncurses to use it.
15214
152152002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
15216
15217 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
15218
152192002-06-15 Richard M. Stallman <rms@gnu.org>
15220
15221 * window.c (Fset_window_configuration): Explicitly preserve
15222 the point value that new_current_buffer had at the start.
15223
152242002-06-14 Juanma Barranquero <lektu@terra.es>
15225
15226 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
15227 Fix typos.
15228
152292002-06-14 Kim F. Storm <storm@cua.dk>
15230
15231 * insdel.c (insert_1_both, insert_from_string_1)
15232 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
15233 insert happened in the end_unchanged region. Otherwise, the
15234 redisplay may be confused and duplicate the last line in the
15235 buffer [seen after save-buffer when require-final-newline==t].
15236
152372002-06-13 Jason Rumney <jasonr@gnu.org>
15238
15239 * w32.c (init_environment): Remove EMACSLOCKDIR.
15240 (stat): Swap _S_IFDIR and _S_IFREG.
15241
152422002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15243
15244 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
15245 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
15246 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
15247 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
15248 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
15249 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
15250 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
15251 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
15252 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
15253 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
15254 SELECTION_REQUEST_EVENT, selection_clear_event to
15255 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
15256 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
15257 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
15258 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
15259 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
15260 no_event to NO_EVENT.
15261
152622002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15263
15264 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
15265
152662002-06-12 Stefan Monnier <monnier@cs.yale.edu>
15267
15268 * intervals.c (textget): Don't forget to `return'.
15269 (lookup_char_property): Use XCAR/XCDR.
15270
152712002-06-12 Juanma Barranquero <lektu@terra.es>
15272
15273 * xdisp.c (Fformat_mode_line): Fix typo.
15274
152752002-06-12 Kim F. Storm <storm@cua.dk>
15276
15277 * xdisp.c (Fformat_mode_line): New function.
15278 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
15279 (store_frame_title_char, store_frame_title): Use unconditionally.
15280 (init_xdisp): Defsubr Fformat_mode_line.
15281 Initialize frame_title_buf etc. unconditionally.
15282
152832002-06-11 Stefan Monnier <monnier@cs.yale.edu>
15284
15285 * keyboard.c (read_key_sequence):
15286 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
15287 things through those maps after downcasing events.
15288 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
15289 applies after function-key-map.
15290 Make sure that keytran can be done in the middle in the sequence.
15291 Be careful not to throw away events past the one we downcase.
15292
15293 * lread.c (read_integer): Remove unused var `tem'.
15294 (read1): Fix int/Lisp_Object mixup.
15295
15296 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
15297
152982002-06-11 Richard M. Stallman <rms@gnu.org>
15299
15300 * keyboard.c (readable_events): Ignore any number of
15301 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
15302
153032002-06-09 Miles Bader <miles@gnu.org>
15304
15305 * xfaces.c (Ftty_supports_face_attributes_p): New function.
15306 (parse_rgb_list, tty_lookup_color): New functions.
15307 (tty_defined_color): Use `tty_lookup_color' to do all the work.
15308 (color_distance, Fcolor_distance): New functions.
15309 (TTY_SAME_COLOR_THRESHOLD): New macro.
15310 (Qtty_color_standard_values): New variable.
15311 (syms_of_xfaces): Initialize new vars & functions.
15312
153132002-06-08 Colin Walters <walters@verbum.org>
15314
15315 * textprop.c (Vchar_property_alias_alist): New variable.
15316 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
15317
15318 * intervals.c (lookup_char_property): New function for looking up
15319 overlay and text properties, created from textget.
15320 (textget): Use it.
15321
15322 * intervals.h (lookup_char_property): Declare.
15323 (Vchar_property_alias_alist): Declare.
15324
15325 * buffer.c (Foverlay_get): Use lookup_char_property.
15326
153272002-06-07 Sam Steingold <sds@gnu.org>
15328
15329 * xselect.c (lisp_data_to_selection_data): Fix last change:
15330 *data_ret is not a Lisp string, while unibyte_string is.
15331
153322002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
15333
15334 * xselect.c (lisp_data_to_selection_data): Fix last change:
15335 set size_ret.
15336
153372002-06-07 Andreas Schwab <schwab@suse.de>
15338
15339 * m/amdx86-64.h: New file.
15340
153412002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
15342
15343 * fns.c (Fstring_make_unibyte): Doc fix.
15344
15345 * xselect.c (lisp_data_to_selection_data): If the requested type
15346 is STRING, call string_make_unibyte to encode the selected text
15347 as a string.
15348
15349 * window.c (Fset_window_hscroll): Doc fix.
15350
153512002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15352
15353 * fileio.c (choose_write_coding_system):
15354 Call select-safe-coding-system properly.
15355
153562002-06-03 Richard M. Stallman <rms@gnu.org>
15357
15358 * xdisp.c (message_with_string): Error if STRING is not a string.
15359
15360 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
15361
15362 * fileio.c (choose_write_coding_system): Pass FILE arg to
15363 Vselect_safe_coding_system_function.
15364
153652002-06-03 Ken Raeburn <raeburn@gnu.org>
15366
15367 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
15368
153692002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
15370
15371 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
15372 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
15373 * keymap.c (describe_command): Likewise.
15374 * minibuf.c (read_minibuf): Likewise.
15375
15376 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
15377 Cast `current_column' return value to int.
15378 (back_to_previous_visible_line_start)
15379 (reseat_at_next_visible_line_start, next_element_from_buffer):
15380 Cast `indented_beyond_p' 3rd arg to float.
15381
15382 * indent.c (last_known_column): Now a float.
15383 (current_column_1, position_indentation, current_column)
15384 (string_display_width): Return float.
15385 (Fcurrent_column): Cast `current_column' return value to int.
15386 (Fcurrent_indentation): Cast `position_indentation' retval to int.
15387 (indented_beyond_p): Third arg now a float.
15388 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
15389
15390 * lisp.h (current_column): Now returns float.
15391 (indented_beyond_p): 3rd arg now a float.
15392
153932002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
15394
15395 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
15396 is Qcompound_text_with_extensions.
15397
15398 * xselect.c (lisp_data_to_selection_data): Always set selection
15399 type as string if x_encode_text returns streingp non-NULL.
15400
15401 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
15402
154032002-05-30 Richard M. Stallman <rms@gnu.org>
15404
15405 * window.c (Fset_window_configuration): Correct the handling
15406 of point in current buffer, to work with multiple windows.
15407
154082002-05-29 Colin Walters <walters@verbum.org>
15409
15410 * lread.c (Fread_from_string): Don't depend on order of evaluation
15411 for C function parameters.
15412
154132002-05-28 Richard M. Stallman <rms@gnu.org>
15414
15415 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
15416 way for blinked-off state and for a nonselected window.
15417
15418 * window.c (window_scroll_pixel_based): Don't call Fbolp;
15419 instead, see if the new start pos is at beginning of line.
15420
15421 * fileio.c (Fwrite_region): If START is a string, don't
15422 make any annotations.
15423
15424 * eval.c (syms_of_eval): Doc fix.
15425
154262002-05-28 Colin Walters <walters@debian.org>
15427
15428 * emacs.c (USAGE1): Add --no-splash.
15429 (standard_args): Ditto.
15430
154312002-05-28 Colin Walters <walters@gnu.org>
15432
15433 * lread.c (readchar_count): New variable.
15434 (readchar): Increment it.
15435 (unreadchar): Decrement it.
15436 (read_multibyte): Decrement it.
15437 (Vread_with_symbol_positions): New variable.
15438 (Vread_symbol_positions_list): New variable.
15439 (read_internal_start): New function, created from Fread and
15440 Fread_from_string. Handle Vread_symbol_positions_list and
15441 Vread_with_symbol_positions.
15442 (readevalloop, Fread, Fread_from_string): Use it.
15443 (read1): Use readchar_count to add symbol positions to
15444 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
15445 (syms_of_lread): DEFVAR_LISP and initialize them.
15446
15447 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
15448 (substitute_object_recurse, substitute_object_in_subtree)
15449 (substitute_in_interval): Prototype.
15450 (read_multibyte): Return c if it's less than zero.
15451
154522002-05-28 Kim F. Storm <storm@cua.dk>
15453
15454 * fileio.c (Fread_file_name_internal): Added brute-force
15455 speed up for using predicate file-directory-p.
15456
154572002-05-28 Kim F. Storm <storm@cua.dk>
15458
15459 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
15460 New variables.
15461 (syms_of_fileio): DEFVAR_LISP them.
15462 (read_file_name_cleanup): New unwind function.
15463 (Fread_file_name_internal): Only return completions satifying
15464 Vread_file_name_predicate. Temporarily unwind protect and rebind
15465 default-directory while checking completions against the predicate.
15466 (Fread_file_name): Added PREDICATE argument. Specbind it to
15467 Vread_file_name_predicate during completion.
15468 Call Vread_file_name_function to read the file name if non-nil.
15469
15470 * lisp.h (Fread_file_name): Now has 6 args.
15471
15472 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
15473 predicate for Fread_file_name when reading directory name.
15474 Supply Qnil for predicate in other calls to Fread_file_name.
15475
154762002-05-26 Miles Bader <miles@gnu.org>
15477
15478 * term.c (tty_capable_p): New function.
15479 * dispextern.h (tty_capable_p): New function declaration.
15480 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
15481 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
15482
154832002-05-23 Stefan Monnier <monnier@cs.yale.edu>
15484
15485 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
15486 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
15487 (Vwrite_region_annotate_functions): Docstring fix.
15488
154892002-05-23 Kim F. Storm <storm@cua.dk>
15490
15491 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
15492 phys_cursor's hpos is overwritten. This is still not completely
15493 correct, as it doesn't really make sense to use hpos at all to
15494 get the cursor glyph (as that is relative to the width of the
15495 characters on the line, which may have changed during the update).
15496
154972002-05-22 Jason Rumney <jasonr@gnu.org>
15498
15499 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
15500 Lisp_Object.
15501 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
15502 Use modified enumfont_t struct.
15503
15504 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15505
15506 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
15507 Handle the `hbar' cursor type.
15508 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15509
15510 * w32fns.c (Qhbar): New variable.
15511 (x_specified_cursor_type): Use it.
15512
155132002-05-21 Ken Raeburn <raeburn@gnu.org>
15514
15515 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
15516 now, when the address is needed.
15517
155182002-05-21 Colin Walters <walters@gnu.org>
15519
15520 * Makefile.in (shortlisp): Add font-core.el.
15521
155222002-05-20 Richard M. Stallman <rms@gnu.org>
15523
15524 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
15525
15526 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
15527 equivalent key bindings here.
15528
155292002-05-20 Ken Raeburn <raeburn@gnu.org>
15530
15531 Change symbol structure to contain a lisp object for the symbol
15532 name:
15533 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
15534 object field named "xname".
15535 (SYMBOL_NAME): New macro.
15536 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
15537 name field.
15538 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
15539 (mark_object, gc_sweep): Use symbol xname field and XSTRING
15540 instead of name field.
15541 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
15542 SYMBOL_NAME instead of XSYMBOL and name field.
15543 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
15544 instead of XSYMBOL and name field.
15545 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
15546 and SYMBOL_NAME instead of XSYMBOL and name field.
15547 * coding.c (Fread_coding_system, code_convert_region1)
15548 (code_convert_string1, code_convert_string_norecord)
15549 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
15550 XSYMBOL and name field.
15551 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
15552 (Fmake_variable_buffer_local, Fmake_local_variable)
15553 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
15554 of XSYMBOL and name field.
15555 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
15556 XSYMBOL and name field.
15557 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
15558 instead of XSYMBOL and name field.
15559 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
15560 XSYMBOL and name field.
15561 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
15562 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15563 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
15564 instead of XSYMBOL and name field.
15565 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
15566 (parse_modifiers, apply_modifiers, Fevent_convert_list)
15567 (parse_solitary_modifier, Fexecute_extended_command):
15568 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15569 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
15570 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
15571 of XSYMBOL and name field.
15572 (describe_command, describe_translation): Use SYMBOL_NAME and
15573 assignment instead of XSYMBOL and name field and XSETSTRING.
15574 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
15575 instead of XSYMBOL and name field.
15576 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
15577 name field and XSETSTRING.
15578 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15579 of XSYMBOL and name field.
15580 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
15581 assignment instead of XSYMBOL and name field and XSETSTRING.
15582 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
15583 XSTRING instead of XSYMBOL and name field.
15584 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
15585 and XSTRING instead of XSYMBOL and name field.
15586 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
15587 and XSTRING instead of XSYMBOL and name field.
15588 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
15589 XSTRING instead of XSYMBOL and name field.
15590 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15591 of XSYMBOL and name field.
15592 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
15593 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15594
155952002-05-19 Ken Raeburn <raeburn@gnu.org>
15596
15597 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
15598 and XCDR real rvalues in most configurations.
15599
15600 * buffer.c (fix_overlays_in_range, fix_overlays_before):
15601 Don't take the address of the cdr part of a cons cell; instead, track
15602 the parent cell and call XSETCDR, or set the variable for the head
15603 of the list if we haven't started down the list yet.
15604
156052002-05-19 Richard M. Stallman <rms@gnu.org>
15606
15607 * doc.c (reread_doc_file): Don't ask for confirmation.
15608
156092002-05-18 Jason Rumney <jasonr@gnu.org>
15610
15611 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
15612 (xbm_load_image): Use it.
15613 (xbm_load): Ditto.
15614 (xbm_read_bitmap_data): Reverted to xfns.c version.
15615 From David Ponce <david@dponce.com>.
15616
156172002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
15618
15619 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
15620 2.02 and later.
15621
156222002-05-16 Juanma Barranquero <lektu@terra.es>
15623
15624 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
15625
156262002-05-15 Stefan Monnier <monnier@cs.yale.edu>
15627
15628 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
15629 meaningful test.
15630 (read_char_minibuf_menu_prompt): Fix typo.
15631
156322002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
15633
15634 * eval.c (Fcommandp): Doc fix.
15635
156362002-05-13 Stefan Monnier <monnier@cs.yale.edu>
15637
15638 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
15639 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
15640 (Fset_keymap_parent): Gcpro a bit more.
15641 (access_keymap): Gcpro around meta_map call and around the main loop.
15642 (get_keyelt): Gcpro when following indirect references.
15643 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
15644 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
15645 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
15646 Remove useless ad-hoc remap code.
15647
156482002-05-13 Richard M. Stallman <rms@gnu.org>
15649
15650 * search.c (search_buffer): Give up boyer moore search if inverse
15651 translation change charset_base.
15652
156532002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
15654
15655 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
15656 characters is carried over from the previous block of text, adjust
15657 coding->produced to account for the extra character.
15658
156592002-05-11 Andreas Schwab <schwab@suse.de>
15660
15661 * coding.c (intersection): Keep the elements of the returned list
15662 in the same order as in the first list.
15663
156642002-05-11 Kim F. Storm <storm@cua.dk>
15665
3419757d 15666 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
15667 only update cmm_size if realloc actually succeeds.
15668 Testing with initial size of 2 elements revealed that using
15669 realloc on GNU/Linux would cause a random trap in xmalloc
15670 later on, so I rewrote the code to use malloc/bcopy/free instead
15671 of realloc.
15672
156732002-05-10 Jason Rumney <jasonr@gnu.org>
15674
15675 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
15676
156772002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
15678
15679 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
15680 parens, to ensure correct evaluation order.
15681
156822002-05-10 Kim F. Storm <storm@cua.dk>
15683
15684 * keymap.c (Vemulation_mode_map_alists): New variable.
15685 (syms_of_keymap): DEFVAR_LISP it.
15686 (current_minor_maps): Process keymap alists in that list before
15687 minor-mode-overriding-map-alist and minor-mode-map-alist.
15688
156892002-05-09 Richard M. Stallman <rms@gnu.org>
15690
15691 * search.c (Freplace_match): Doc fix.
15692
156932002-05-09 Kim F. Storm <storm@cua.dk>
15694
15695 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15696 Enlarge cursor rectangle drawn around image with non-zero relief.
15697
15698 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
15699 Enlarge cursor rectangle drawn around image with non-zero relief.
15700
15701 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15702 Enlarge cursor rectangle drawn around image with non-zero relief.
15703
157042002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
15705
15706 * xselect.c (lisp_data_to_selection_data): Don't set selection
15707 type if comes from the Lisp object's car. If the selection
15708 contains a pure ASCII text, always return QSTRING as its type.
15709
157102002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15711
15712 * mac.c (mac-cut-function): Doc fix.
15713
157142002-05-05 Richard M. Stallman <rms@gnu.org>
15715
15716 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
15717
157182002-05-04 Jason Rumney <jasonr@gnu.org>
15719
15720 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
15721 for event-click-count.
15722
15723 * process.c (init_process): Only add server subfeature if we can
15724 use non-blocking I/O.
15725
157262002-05-04 Andrew Choi <akochoi@shaw.ca>
15727
15728 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
15729 repeatedly.
15730
157312002-05-03 Jason Rumney <jasonr@gnu.org>
15732
15733 * process.c (Fmake_network_process): Only support server sockets
15734 when we can make them non-blocking.
15735
15736 * s/ms-w32.h (HAVE_SELECT): Define.
15737
15738 * w32.h (FILE_NDELAY): New flag.
15739
15740 * w32.c (sys_getpeername, fcntl): New functions.
15741 (_sys_read_ahead): Temporarily block on non-blocking sockets.
15742
15743 * w32proc.c: include sys/file.h.
15744
157452002-05-03 Colin Walters <walters@verbum.org>
15746
15747 * callproc.c (Vgame_score_directory): Renamed to
15748 Vshared_game_score_directory.
15749
157502002-04-30 Richard M. Stallman <rms@gnu.org>
15751
15752 * s/gnu.h [emacs]: Include stdio.h.
15753 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
15754
15755 * eval.c (do_autoload): Error if called while preparing to dump.
15756
15757 * fns.c (Frequire): Error if need to load while preparing to dump.
15758
157592002-04-28 Colin Walters <walters@verbum.org>
15760
15761 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
15762 Default to "~/.emacs.d/games".
15763
157642002-04-29 Stefan Monnier <monnier@cs.yale.edu>
15765
15766 * lread.c (openp): Change arg exec_only to predicate.
15767 (build_load_history): Use XCAR/XCDR.
15768 (Flocate_file_internal): New fun.
15769 (syms_of_lread): Defsubr it.
15770 (Fload): Update call to openp.
15771
15772 * lisp.h (openp): Update prototype.
15773
15774 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
15775 * w32proc.c (sys_spawnve):
15776 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
15777 * w32.c (check_windows_init_file):
15778 * sound.c (Fplay_sound_internal):
15779 * process.c (Fstart_process):
15780 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
15781 * mac.c (run_mac_command):
15782 * emacs.c (init_cmdargs):
15783 * callproc.c (Fcall_process): Update call to openp.
15784
15785 * textprop.c (remove_properties): Don't use XCAR without CONSP.
15786
15787 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
15788
157892002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15790
15791 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
15792 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
15793
157942002-04-28 Richard M. Stallman <rms@gnu.org>
15795
15796 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
15797
15798 * eval.c (Fcommandp): New arg for_call_interactively.
15799 * lisp.h (Fcommandp): Declare new arg.
15800
158012002-04-28 Jason Rumney <jasonr@gnu.org>
15802
15803 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
15804
15805 * w32.c (stat, fstat): Use file index information to generate
15806 inodes for directories where available.
15807
158082002-04-26 Andrew Choi <akochoi@shaw.ca>
15809
15810 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
15811 [HAVE_CARBON]: Include Mac object files.
15812
15813 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
15814 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
15815 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
15816 MAC_OSX, and MAC_OS instead of macintosh.
15817
15818 * editfns.c [MAC_OS8]: Include stdio.h.
15819
15820 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
15821
15822 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
15823 Apple Monaco.
15824
78819ebb 15825 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
15826 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
15827 calling select.
15828
15829 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
15830
15831 * tparam.c [MAC_OSX]: Don't define BC and UP.
15832
15833 * config.in [HAVE_CARBON]: Add.
15834
15835 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
15836 Move here from mac/src and mac/inc.
15837
15838 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
15839
158402002-04-26 Gerd Moellmann <gerd@gnu.org>
15841
15842 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
15843 Compute phys_cursor_width from the x position returned
15844 by x_draw_glyhs, which is cheaper.
15845 (x_display_and_set_cursor): Compute the buffer-local value
15846 of `cursor-in-non-selected-windows' only when needed.
15847
158482002-04-25 Gerd Moellmann <gerd@gnu.org>
15849
15850 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
15851 cursor on a stretch glyph has a width that depends on
15852 x_stretch_cursor_p.
15853
158542002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15855
15856 * abbrev.c (abbrev-start-location): Doc fix.
15857
15858 * indent.c (Fvertical_motion): Fix last change.
15859
158602002-04-25 Gerd Moellmann <gerd@gnu.org>
15861
15862 * indent.c (Fvertical_motion): Move to the start of the line
15863 containing PT before moving up or down.
15864
158652002-04-24 Gerd Moellmann <gerd@gnu.org>
15866
15867 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
15868 case of writing a whole row, more or less analogous to the case of
15869 writing only parts of a row.
15870
15871 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
15872 0 for NO_CURSOR.
15873
15874 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
15875
158762002-04-23 Colin Walters <walters@verbum.org>
15877
15878 * buffer.c (syms_of_buffer): Doc fix.
15879
158802002-04-23 Gerd Moellmann <gerd@gnu.org>
15881
15882 * xterm.c (notice_overwritten_cursor): Handle the special case
15883 of the cursor being in the first blank non-text line at the
15884 end of a window.
15885
15886 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15887 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15888 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
15889 bar cursors only, to make phys_cursor_width contain what its name
15890 suggests.
15891 (notice_overwritten_cursor): Consider the cursor image erased if
15892 the output area intersects the cursor image in y-direction.
15893
158942002-04-23 Simon Marshall <simon@gnu.org>
15895
15896 * xfns.c (x_set_mouse_color): Change default for cross_cursor
15897 to XC_hand2.
15898
158992002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15900
15901 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
15902
159032002-04-22 Kim F. Storm <storm@cua.dk>
15904
15905 * textprop.c (remove_properties): Fixed trap for malformed plist.
15906
159072002-04-22 Richard M. Stallman <rms@gnu.org>
15908
15909 * cmds.c (Fend_of_line): Handle intangible text in mid line.
15910
15911 * window.c (make_window): Initialize height_fixed_p,
15912 last_cursor_off_p, and p->cursor_off_p slots.
15913
159142002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15915
15916 * fns.c (use-dialog-box): Doc fix.
15917
159182002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15919
15920 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
15921 variables `row', `i' and `area'.
15922 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
15923 toolkit library.
15924
159252002-04-19 Stefan Monnier <monnier@cs.yale.edu>
15926
15927 * xfaces.c (clear_font_table): Don't free the default font of
15928 a frame even if it's on another display.
15929 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
15930 that could be Qt.
15931
159322002-04-19 Juanma Barranquero <lektu@terra.es>
15933
15934 * indent.c (Fmove_to_column): Remove unused local variable
15935 `next_boundary_byte'.
15936 (current_column_1): Likewise.
15937
159382002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
15939
15940 * msdos.c (Qhbar): New variable.
15941 (syms_of_msdos): Intern and staticpro it.
15942 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
15943 cursor type.
15944
159452002-04-19 Dave Lambert <dlambert@acm.org>
15946
15947 Theses change implement an underscore-like (`hbar') cursor.
15948
15949 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15950
15951 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
15952 Handle the `hbar' cursor type.
15953 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15954
15955 * xfns.c (Qhbar): New variable.
15956 (syms_of_xfns): Intern and staticpro it.
15957 (x_specified_cursor_type): Handle `hbar' cursor.
15958
15959 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
15960 not defined.
15961
159622002-04-18 Richard M. Stallman <rms@gnu.org>
15963
15964 * textprop.c (remove_properties): New arg LIST allows scanning
15965 either a list or a plist.
15966 (interval_has_some_properties_list): New function, like
15967 interval_has_some_properties using list instead of plist.
15968 All callers changed.
15969 (Fremove_list_of_text_properties): New function.
15970 (syms_of_textprop): Defsubr it.
15971
159722002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15973
15974 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
15975
159762002-04-17 Juanma Barranquero <lektu@terra.es>
15977
15978 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
15979
159802002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15981
15982 * window.c (coordinates_in_window): Don't report on margin area
15983 if its width is zero.
15984
159852002-04-16 Jason Rumney <jasonr@gnu.org>
15986
15987 * w32fns.c (Fx_file_dialog): Decode file name before using.
15988
15989 * w32term.c (construct_drag_n_drop): Likewise.
15990
159912002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
15992
15993 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
15994 store load-history in pure space.
15995
15996 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
15997
159982002-04-16 Stefan Monnier <monnier@cs.yale.edu>
15999
16000 * xterm.c (Qlatin_1, Qutf_8): New vars.
16001 (syms_of_xterm): Initialize them.
16002 (XTread_socket): Eliminate incorrect optimization that tried to avoid
16003 decoding the output of X*LookupString.
16004 Always use latin-1 to decode the output of XLookupString.
16005 Try Xutf8LookupString if XmbLookupString failed.
16006
16007 * region-cache.c (new_region_cache): Use BEG.
16008
160092002-04-16 Gerd Moellmann <gerd@gnu.org>
16010
16011 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
16012 configuration files.
16013 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
16014 returns 0.
16015
160162002-04-15 Andreas Schwab <schwab@suse.de>
16017
16018 * config.in: Regenerated using autoheader.
16019
16020 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
16021 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
16022 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
16023 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
16024 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
16025 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
16026 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
16027 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
16028 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
16029 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
16030 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
16031 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
16032 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
16033 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
16034 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
16035 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
16036 STACK_DIRECTION, now set by autoconf.
16037
160382002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16039
16040 * dispnew.c (marginal_area_string): Sort arguments.
16041
16042 * dispextern.h (marginal_area_string): Add prototype.
16043
160442002-04-13 Richard M. Stallman <rms@gnu.org>
16045
16046 * fileio.c (Finsert_file_contents):
16047 Don't call temp_output_buffer_setup--do just part, by hand.
16048
16049 * coding.c (run_pre_post_conversion_on_str):
16050 Don't call temp_output_buffer_setup--do just part, by hand.
16051
16052 * keyboard.c (command_loop_1): Don't call start_hourglass
16053 or cancel_hourglass when executing a macro.
16054
16055 * marker.c (count_markers): New function.
16056
16057 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
16058 grow without limit. Move recently used elements to the front.
16059
160602002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
16061
16062 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
16063
160642002-04-12 Gerd Moellmann <gerd@gnu.org>
16065
16066 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
16067 rows marginal areas.
16068 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
16069 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16070
16071 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
16072
160732002-04-12 Dave Love <fx@gnu.org>
16074
16075 * dispnew.c (marginal_area_string): New.
16076
16077 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
16078 (Qleft_margin, Qright_margin): Declare.
16079 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
16080
16081 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
16082 note_mode_line_highlight and extended.
16083
16084 * keyboard.c (Qleft_margin, Qright_margin): Declare.
16085 (make_lispy_event): Deal with mouse events in margins.
16086
160872002-04-12 Stefan Monnier <monnier@cs.yale.edu>
16088
16089 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
16090
16091 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
16092 than deactivating the mark if tmm is set to `lambda'.
16093 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
16094 Use a single event for HELP_EVENT.
16095 (Fexecute_extended_command): Save last_point_position.
16096
160972002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16098
16099 * lisp.h (Fpropertize): Add prototype.
16100
16101 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
16102
161032002-04-10 Colin Walters <walters@verbum.org>
16104
16105 * config.in: Add HAVE_SHARED_GAME_DIR.
16106
52eb0373 16107 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
16108 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
16109
161102002-04-10 Richard M. Stallman <rms@gnu.org>
16111
16112 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
16113
161142002-04-09 Stefan Monnier <monnier@cs.yale.edu>
16115
16116 * minibuf.c (read_minibuf): Use empty_string.
16117 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
16118 Short-circuit the search as soon as it "failed".
16119 (Fall_completions): Allow lambda forms and lists of strings for alist.
16120 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
16121 when require_match is nil.
16122 (Ftest_completion): Rename from `test_completion' and export to elisp.
16123 Call the predicate also when alist is a list.
16124 Obey Vcompletion_regexp_list.
16125 (do_completion, Fminibuffer_complete_and_exit): Use it.
16126 (Fassoc_string): Rename from `assoc_for_completion'.
16127 Allow list of strings as well and export to elisp.
16128
161292002-04-08 Stefan Monnier <monnier@cs.yale.edu>
16130
16131 * puresize.h (BASE_PURESIZE): Increase to 900KB.
16132
161332002-04-08 Juanma Barranquero <lektu@terra.es>
16134
16135 * w32.c (sys_accept): Don't hide variable `s'.
16136
161372002-04-05 Gerd Moellmann <gerd@gnu.org>
16138
16139 * callint.c (Fcall_interactively): Use INTEGERP instead of
16140 NUMBERP for checking Vhistory_length.
16141
161422002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16143
16144 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
16145 Doc fix to reflect it.
16146
161472002-04-04 Richard M. Stallman <rms@gnu.org>
16148
16149 * xdisp.c (display_mode_element): New arg RISKY.
16150 Disregard text props found or specified within a variable
16151 that isn't marked risky-local-variable.
16152 (Qrisky_local_variable): New variable.
16153 (syms_of_xdisp): Init and staticpro it.
16154
161552002-04-04 Stefan Monnier <monnier@cs.yale.edu>
16156
16157 * undo.c (record_point): New fun.
16158 (record_delete, record_insert): Use it.
16159
161602002-04-03 Juanma Barranquero <lektu@terra.es>
16161
16162 * doc.c (Fdocumentation): Add missing parentheses.
16163 (Fdocumentation_property): Likewise.
16164
161652002-04-03 Stefan Monnier <monnier@cs.yale.edu>
16166
16167 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
16168 data is 0, just return nil.
16169
161702002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
16171
16172 * msdos.c (syms_of_msdos): Fix last change with
16173 mouse_autoselect_window.
16174
161752002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16176
16177 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
16178 mouse_autoselect_window.
16179
161802002-04-02 Stefan Monnier <monnier@cs.yale.edu>
16181
16182 * keyboard.c (make_lispy_event): Handle unknown keysyms together
16183 with system-specific keysyms. Use it also for unknown function keys.
16184
16185 * doc.c (reread_doc_file): Return whether reload was attempted.
16186 (Fdocumentation, Fdocumentation_property): Don't try to reload
16187 if the doc is 0 and only ask once.
16188
16189 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
16190
161912002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
16192
16193 * keyboard.c (read_char): If the event was Qselect_window,
16194 restore timer_idleness_start_time to its previous value.
16195
16196 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
16197
161982002-04-01 Stefan Monnier <monnier@cs.yale.edu>
16199
16200 * region-cache.c (new_region_cache): Use BEG.
16201
16202 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
16203 Use BEG and BEG_BYTE.
16204
16205 * doc.c (get_doc_string): Return nil if the location is wrong.
16206 (reread_doc_file): New fun.
16207 (Fdocumentation, Fdocumentation_property):
16208 Call it if get_doc_string fails.
16209 (Fsnarf_documentation): Make it work for a dumped Emacs.
16210
16211 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
16212 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
16213
16214 * charset.c (Fstring): Allow 0 arguments.
16215
16216 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
16217
16218 * process.c (DATAGRAM_CONN_P, list_processes_1)
16219 (Fprocess_datagram_address, Fset_process_datagram_address)
16220 (Fset_network_process_options, server_accept_connection):
16221 Fix some int/Lisp_Object confusions (thank you union types).
16222
162232002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16224
16225 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
16226
16227 * w32term.c: Likewise.
16228 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
16229
16230 * keyboard.c (Qselect_window): New symbol.
16231 (head_table): Use it.
16232 (keys_of_keyboard): Bound select-window event to handle-select-window.
16233 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
16234
16235 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
16236 (last_window): New variable.
16237 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
16238 (note_mouse_movement): Remove reimplemented code in #if 0.
16239 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
16240 Emacs windows.
16241
16242 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
16243
162442002-03-31 Gerd Moellmann <gerd@gnu.org>
16245
16246 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
16247 Callers changed.
16248
162492002-03-30 Richard M. Stallman <rms@gnu.org>
16250
16251 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
16252 loop whenever it stops making progress.
16253
16254 * widget.c (set_frame_size): Don't call change_frame_size.
16255
162562002-03-30 Gerd Moellmann <gerd@gnu.org>
16257
16258 * dispnew.c (direct_output_for_insert):
16259 Call mark_window_display_accurate.
16260
162612002-03-29 Jason Rumney <jasonr@gnu.org>
16262
16263 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
16264
162652002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
16266
16267 * Makefile.in (lread.o): Depend on coding.h.
16268
16269 * lread.c (openp, Fload): Encode the file name before passing it
16270 to `stat', `access', and `emacs_open'.
16271 (openp): GCPRO the encoded file name. Don't recompute Lisp
16272 strings unnecessarily.
16273
162742002-03-29 Kim F. Storm <storm@cua.dk>
16275
16276 * fns.c (Flax_plist_put): Doc fix.
16277
162782002-03-28 Miles Bader <miles@gnu.org>
16279
16280 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
16281
162822002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16283
16284 * process.c (set-network-process-options): Add usage.
16285 (make-network-process): Doc fix.
16286
162872002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
16288
16289 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
16290
162912002-03-26 Richard M. Stallman <rms@gnu.org>
16292
16293 * fns.c (Fsubstring_no_properties): New function.
16294 (Flax_plist_get, Flax_plist_put): New functions.
16295 (syms_of_fns): defsubr them.
16296
16297 * xdisp.c (update_menu_bar): Test only update_mode_lines;
16298 don't test or alter w->update_mode_line.
16299
16300 * window.c (Fdisplay_buffer): Doc fix.
16301
163022002-03-24 Richard M. Stallman <rms@gnu.org>
16303
16304 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
16305
163062002-03-24 Gerd Moellmann <gerd@gnu.org>
16307
16308 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
16309 (Fdefmacro): Handle `(declare ...)'.
16310 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
16311 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
16312
163132002-03-24 Jason Rumney <jasonr@gnu.org>
16314
16315 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
16316 (xbm_file_p): Add prototypes.
16317 (xbm_format, xbm_image_p): Sync with xfns.c.
16318 (reflect_byte): New function.
16319 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
16320 (xbm_load_image): Create bitmaps with a depth of 1.
16321 (init_xfns): Enable XBM images.
16322
163232002-03-23 Jason Rumney <jasonr@gnu.org>
16324
16325 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
16326 correctly. Do not pass up_modifier to keyboard buffer.
16327
16328 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
16329
163302002-03-22 Stefan Monnier <monnier@cs.yale.edu>
16331
16332 * Makefile.in (bootstrapclean): New target.
16333 (bootstrap-temacs, bootstrap-doc): Remove.
16334 (bootstrap-emacs): Use a bog-standard `temacs'.
16335 Don't bother to build a DOC file.
16336
16337 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
16338
16339 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
16340 in temacs even if !CANNOT_DUMP.
16341 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
16342
16343 * alloc.c (check_pure_size): Only output a warning.
16344
163452002-03-22 Jason Rumney <jasonr@gnu.org>
16346
16347 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
16348 supported.
16349
16350 * w32term.c (zv_bits): Declare as short, for word alignment.
16351 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
16352 (syms_of_w32term): Define x-use-underline-position-properties.
16353
16354 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
16355 (clear_image_cache): Block input, fix logic, clear matrices in
16356 all frames that share this cache.
16357
163582002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
16359
16360 * emacs.c (main): Update the Copyright year in the blurb printed
16361 by "emacs --version".
16362
16363 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
16364
16365 * xterm.c (XTread_socket): If XK_ISO_Lock and
16366 XK_ISO_Last_Group_Lock are defined, handle keysyms between
16367 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
16368
163692002-03-21 Kim F. Storm <storm@cua.dk>
16370
16371 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
16372 menu-bar bindings in keymap and local-map properties _are_ used.
16373 But try keymap property first in accordance with 2002-01-03 patch.
16374 Added comment describing why this is not always reliable.
16375 (tool_bar_items): Ditto for tool-bar.
16376
163772002-03-21 Jason Rumney <jasonr@gnu.org>
16378
16379 * w32fns.c (x_clear_image_1): Disable color table code.
16380
163812002-03-21 Kim F. Storm <storm@cua.dk>
16382
16383 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
16384 removed the wrong version of the DEFUN macro; fixed it.
16385
16386 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
16387 Fmember rather than Fmemq).
16388 (Fprovide): Check that subfeatures is a list.
16389
16390 * process.c (QCfeature, QCdatagram): Removed variables.
16391 (QCtype, Qdatagram): New variables.
16392 (network_process_featurep): Removed function.
16393 (Fmake_network_process): Removed :feature check.
16394 Use :type 'datagram instead of :datagram t to create a datagram
16395 socket. This allows us to add other connection types (e.g. raw
16396 sockets) later in a consistent manner.
16397 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
16398 supported subfeatures for feature make-network-process.
16399 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
16400 Intern and staticpro QCtype and Qdatagram.
16401 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
16402
16403 * xfns.c: (QCtype): Remove duplicate declaration and
16404 initialization (is now declared in process.c).
16405
16406 * w32fns.c: (QCtype): Remove duplicate declaration and
16407 initialization (is now declared in process.c).
16408
164092002-03-21 Richard M. Stallman <rms@gnu.org>
16410
16411 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
16412 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
16413 when jumping to `fail' to avoid undoing reg changes in the
16414 last iteration of the loop.
16415 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
16416
16417 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
16418 Depend on process.h.
16419
164202002-03-20 Jason Rumney <jasonr@gnu.org>
16421
16422 Most of the following changes are still conditional on HAVE_IMAGES
16423 which is not set by default on Windows.
16424
16425 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
16426
16427 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
16428 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
16429 (four_corners_best, x_clear_image_1, x_clear_image)
16430 (x_alloc_image_color, postprocess_image)
16431 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
16432 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
16433 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
16434
16435 * w32gui.h (struct XImage): Define.
16436
16437 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
16438 extract mouse co-ordinates.
16439
164402002-03-20 Jason Rumney <jasonr@gnu.org>
16441
16442 * w32.c (init_winsock): Dynamically load new server and UDP
16443 socket functions.
16444 (socket_to_fd): New function.
16445 (sys_socket): Use it.
16446 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
16447 (sys_recvfrom, sys_sendto): New wrapper functions.
16448
16449 * process.c (QCfamily, QCfilter): Remove duplicate declaration
16450 and initialization.
16451
16452 * makefile.w32-in (LIBS): Remove $(WSOCK32).
16453
164542002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
16455
16456 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
16457 Don't use "sun" as a variable, it's a predefined constant on Sun
16458 machines.
16459
164602002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16461
16462 * bytecode.c (Fbyte_code): Revert last change.
16463
164642002-03-19 Kim F. Storm <storm@cua.dk>
16465
16466 * makefile.w32-in (LIBS): Add $(WSOCK32).
16467 From David Ponce <dponce@voila.fr>.
16468
164692002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16470
16471 * process.c (wait_reading_process_input): Move variables `pname'
16472 and `pnamelen' down where they are used.
16473
16474 * bytecode.c (Fbyte_code): Discard unused computed value to
16475 prevent gcc warning.
16476
16477 * lisp.h (Fplist_member): Add prototype.
16478
164792002-03-18 Kim F. Storm <storm@cua.dk>
16480
16481 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
16482 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
16483
16484 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
16485 Remove explicit GNU_LINUX settings for datagram support.
16486
164872002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16488
16489 * process.c (Fmake_network_process): Remove unused variable `sa'.
16490 Doc fix. Add usage:.
16491 (set_socket_options): Remove unused variables `optnum' and `opttype'.
16492
164932002-03-17 Richard M. Stallman <rms@gnu.org>
16494
16495 * xdisp.c (cursor_type_changed): New variable.
16496 (redisplay_internal): Redisplay all windows if cursor_type_changed.
16497 Clear it when clearing windows_or_buffers_changed.
16498 (try_cursor_movement, redisplay_window, try_window_id)
16499 (try_window_reusing_current_matrix): Test cursor_type_changed
16500 along with windows_or_buffers_changed.
16501
16502 * window.h (cursor_type_changed): New variable.
16503
16504 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
16505 not update_mode_lines, and always set it to 1.
16506
16507 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
16508 if no frames needed redrawing.
16509
165102002-03-17 Kim F. Storm <storm@cua.dk>
16511
16512 The following changes add support for network server processes,
16513 datagram connections, and local (unix) sockets.
16514
16515 * process.h (struct Lisp_Process): New member log.
16516 Doc fix: Member command used to indicate stopped network process.
16517 Doc fix: Member childp contains plist for network process.
16518 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
16519
16520 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
16521 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
16522 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
16523 New variables.
16524 (NETCONN1_P): New macro.
16525 (DATAGRAM_SOCKETS): New conditional symbol.
16526 (datagram_address): New array.
16527 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
16528 (status_message): Use concat3.
16529 (Fprocess_status): Add `listen' status to doc string. Return `stop'
16530 for a stopped network process.
16531 (Fset_process_buffer): Update contact plist for network process.
16532 (Fset_process_filter): Ditto. Don't enable input for stopped
16533 network processes. Server must listen, even if filter is t.
16534 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
16535 New functions.
16536 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
16537 (Fprocess_contact): Added KEY argument. Handle datagrams.
16538 (list_processes_1): Optionally show only processes with the query
16539 on exit flag set. Dynamically adjust column widths. Omit tty
16540 column if not needed. Report stopped network processes.
16541 Identify server and datagram network processes.
16542 (Flist_processes): New optional arg `query-only'.
16543 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
16544 (conv_lisp_to_sockaddr, set_socket_options)
16545 (network_process_featurep, unwind_request_sigio): New helper functions.
16546 (Fprocess_datagram_address, Fset_process_datagram_address):
16547 (Fset_network_process_options): New lisp functions.
16548 (Fopen_network_stream): Removed. Now defined in simple.el.
16549 (Fmake_network_process): New lisp function. Code is based on previous
16550 Fopen_network_stream, but heavily reworked with new property list based
16551 argument list, support for datagrams, server processes, and local
16552 sockets in addition to old client-only functionality.
16553 (server_accept_connection): New function.
16554 (wait_reading_process_input): Use it to handle incoming connects.
16555 Do not enable input on a new connection if process is stopped.
f63fd14e 16556 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
16557 (send_process): Handle datagram sockets.
16558 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
16559 network process is indicated by setting command field to t .
16560 (Fprocess_send_eof): No-op if datagram connection.
16561 (Fstatus_notify): Don't read input for a stream server socket or a
16562 stopped network process.
16563 (init_process): Initialize datagram_address array.
16564 (syms_of_process): Intern and staticpro new variables, defsubr new
16565 functions.
16566
165672002-03-16 Jason Rumney <jasonr@gnu.org>
16568
16569 * w32fns.c (w32_to_all_x_charsets): Return correct type in
16570 startup case.
16571
165722002-03-16 Richard M. Stallman <rms@gnu.org>
16573
16574 * xdisp.c (redisplay_internal, redisplay_windows):
16575 Use list_of_error to call internal_condition_case_1.
16576 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
16577 so as to catch all errors with no possibility of debugger redisplay.
16578 (list_of_error): New variable.
16579 (syms_of_xdisp): Init and staticpro it.
16580
16581 * print.c (print_object): Delete `\ ' from printed rep of frame.
16582
165832002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
16584
16585 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
16586 until its implementation is fixed.
16587
165882002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16589
16590 * xfns.c (png_load): Remove unused variable `gamma_str'.
16591
165922002-03-14 Richard M. Stallman <rms@gnu.org>
16593
16594 * xfns.c (x_real_positions): Handle failure in XQueryTree.
16595
165962002-03-14 Miles Bader <miles@gnu.org>
16597
16598 * intervals.c (adjust_for_invis_intang): New function.
16599 (set_point_both): Use `adjust_for_invis_intang' to do most of the
16600 work for dealing with invisible+intangible regions. Do so before
16601 and after both forward and backward movements, to handle both
16602 front-sticky and rear-sticky cases.
16603 * textprop.c (text_property_stickiness): Function moved here from
16604 `editfns.c'.
16605 * intervals.h (text_property_stickiness): New declaration.
16606 * editfns.c (char_property_eq): Function removed.
16607 (text_property_stickiness): Function moved to `textprop.c'.
16608
166092002-03-13 Jason Rumney <jasonr@gnu.org>
16610
16611 * config.in: Add STRFTIME_NO_POSIX2.
16612
16613 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
16614 and %OX when underlying strftime does not.
16615
166162002-03-13 Stefan Monnier <monnier@cs.yale.edu>
16617
16618 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
16619 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
16620 line) to avoid annoying flicker.
16621 (xm_scroll_callback): Get rid of the now unnecessary kludge.
16622 (XTread_socket): Mark it static.
16623
16624 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
16625
166262002-03-13 Kim F. Storm <storm@cua.dk>
16627
16628 * puresize.h (BASE_PURESIZE): Increase to 775000.
16629
166302002-03-12 Juanma Barranquero <lektu@terra.es>
16631
16632 * editfns.c (syms_of_editfns): Fix typo.
16633
166342002-03-12 Gerd Moellmann <gerd@gnu.org>
16635
16636 * xsmfns.c: Include stdio.h because termhooks.h needs it.
16637 Include termopt.h for interrupt_input.
16638
166392002-03-11 Andreas Schwab <schwab@suse.de>
16640
16641 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
16642
166432002-03-11 Gerd Moellmann <gerd@gnu.org>
16644
16645 * xterm.c (note_mouse_movement): Put code for
16646 x_autoselect_window_p in #if 0.
16647
16648 * lread.c (Fload): Don't assume that message_with_string uses the
16649 string it is given like a C string.
16650
166512002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16652
78819ebb 16653 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 16654
52eb0373 16655 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
16656 x_session_have_connection.
16657 (x_initialize): Add call to x_session_initialize.
16658
16659 * termhooks.h (enum event_kind): Add save_session_event.
16660
16661 * keyboard.c: Add Emacs event save_session_event.
16662
16663 * emacs.c (main): Add call to syms_of_xsmfns.
16664
78819ebb 16665 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
16666
16667 * config.in: Add HAVE_X_SM.
16668
16669 * Makefile.in (LIBXT): Add -lSM -lICE
16670 if HAVE_X_SM and not USE_X_TOOLKIT.
16671 (XOBJ): New file xsmfns.c added.
16672
16673 * xsmfns.c: New file for X session management.
16674
166752002-03-09 Jason Rumney <jasonr@gnu.org>
16676
16677 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
16678 read-only when setting modified time.
16679
166802002-03-08 Gerd Moellmann <gerd@gnu.org>
16681
16682 * xdisp.c (move_it_vertically_backward): At the end of the function,
16683 when moving forward by lines, treat terminal frames specially.
16684
16685 * keyboard.c (echo_char): Make sure to add a separator between
16686 keys even if echo_dash hasn't been called.
16687
16688 * xdisp.c: Use new string macros.
16689 (update_echo_area): Pass number of bytes to message3 instead of
16690 number of chars.
16691 (set_message_1): Don't access a string's size_byte directly.
16692 (decode_mode_spec_coding): Use number of bytes of eoltype string
16693 instead number of chars.
16694
16695 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
16696
166972002-03-08 Juanma Barranquero <lektu@terra.es>
16698
16699 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
16700 24-bit.
16701
167022002-03-06 Jason Rumney <jasonr@gnu.org>
16703
16704 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
16705
167062002-03-06 Gerd Moellmann <gerd@gnu.org>
16707
16708 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
16709 (cancel_echoing, echo_length, echo_truncate): Changed to
16710 work with new kboard definition.
16711 (echo_now): Use message3_nolog instead of message2_nolog.
16712
16713 * alloc.c (mark_kboards): Mark echo_string.
16714
16715 * keyboard.h (ECHOBUFSIZE): Removed.
16716 (struct kboard): Member echoptr removed, member echobuf renamed
16717 to echo_string.
16718
16719 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
16720 message3 instead of message2 to display the message using STRING's
16721 text properties.
16722
167232002-03-05 Andreas Schwab <schwab@suse.de>
16724
16725 * xdisp.c (hscroll_margin): Change to EMACS_INT.
16726
167272002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
16728
16729 * frame.c (default-frame-alist): Explain that setting it doesn't
16730 affect existing frames.
16731
167322002-03-05 Stefan Monnier <monnier@cs.yale.edu>
16733
16734 * indent.c (skip_invisible): Fix my brain fart.
16735
16736 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
16737
167382002-03-04 Stefan Monnier <monnier@cs.yale.edu>
16739
16740 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
16741 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
16742 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
16743 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
16744 and variables to use EMACS_INT instead of just int.
16745
16746 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
16747
167482002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
16749
16750 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
16751 environment, pass it down with corrected value.
16752
167532002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16754
16755 * lread.c (read_filtered_event): Do not call start_hourglass
16756 before returning.
16757
167582002-03-04 Juanma Barranquero <lektu@terra.es>
16759
16760 * w32term.c (x_display_and_set_cursor): Fix typo.
16761
167622002-03-03 Richard M. Stallman <rms@gnu.org>
16763
16764 * fileio.c (Fmake_temp_name): Doc fix.
16765
167662002-03-03 Gary Wong <gtw@gnu.org>
16767
16768 * termcap.c [!emacs]: Replace ospeed for building standalone
16769 libtermcap, for binary compatibility.
16770
16771 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
16772
167732002-03-03 Richard M. Stallman <rms@gnu.org>
16774
16775 * xrdb.c (file_p): Rename arg `path' to `filename'.
16776
16777 * abbrev.c (Fexpand_abbrev): Increment plist as use count
16778 only if it is an integer.
16779
16780 * xfns.c (png_load): Set screen_gamma based on f->gamma.
16781 If png_get_sRGB gives an answer, call png_set_gamma
16782 using the default image gamma value.
16783
16784 * lread.c (read1): When reading from a file, default string to
16785 multibyte only if it has some multibyte characters.
16786
16787 * print.c (print_object): Output multibyte chars 128...255
16788 using \x even if ! print_escape_multibyte.
16789
16790 * xdisp.c (display_mode_element): Move the places where
16791 bytepos, charpos, this, and lisp_string are set.
16792 Use lisp_string to set bytepos.
16793
16794 * xdisp.c (redisplay_internal):
16795 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
16796
16797 * xdisp.c (display_mode_element): Merge properties specified with
16798 :propertize onto those that come with the string.
16799
168002002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
16801
16802 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
16803 automatic-hscrolling. Users changed.
16804 <hscroll-margin>: Renamed from automatic-hscroll-margin.
16805 Users changed.
16806 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
16807
168082002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
16809
16810 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
16811
168122002-03-02 Kim F. Storm <storm@cua.dk>
16813
16814 * window.c (Fminibuffer_selected_window): New function.
16815 (syms_of_window): Defsubr it.
16816
168172002-03-01 Kim F. Storm <storm@cua.dk>
16818
16819 * window.h (struct window): New member phys_cursor_width.
16820
16821 * window.c (make_window, replace_window): Init phys_cursor_width.
16822
16823 * xterm.c (x_display_and_set_cursor): Blink box cursor using
16824 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16825
16826 * w32term.c (x_display_and_set_cursor): Blink box cursor using
16827 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16828
16829 * lisp.h (GCPRO6): New macro.
16830
16831 * process.c (Fopen_network_stream): Use GCPRO6.
16832
168332002-03-01 Kim F. Storm <storm@cua.dk>
16834
16835 * process.c (Qconnect, Qfailed): New variables.
16836 (syms_of_process): Intern and staticpro them.
16837 (Fprocess_status): Document connect and failed return values.
16838 [NON_BLOCKING_CONNECT]: New conditional.
16839 (connect_wait_mask, num_pending_connects): New variables.
16840 (status_message): Convert Qfailed status.
16841 (Fopen_network_stream): Added support for non-blocking connect.
16842 New optional args: filter, sentinel, non_blocking. Doc updated.
16843 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
16844 (deactivate_process): Handle pending non-blocking connect.
16845 (wait_reading_process_input): Poll for status of non-blocking
16846 connects. Exec sentinel directly when connect succeeds.
16847 (status_notify): Don't read process output if not yet connected.
16848
168492002-02-28 Kim F. Storm <storm@cua.dk>
16850
16851 * window.c: (minibuf_selected_window): Renamed from
16852 Vminibuf_selected_window. Users changed.
16853 (syms_of_window): Staticpro it.
16854
168552002-02-26 Kim F. Storm <storm@cua.dk>
16856
16857 The following changes add a new Vminibuf_selected_window variable
16858 which is similar to Vminibuf_scroll_window, but which is only set
16859 on entry to the minibuffer (from a non-minibuffer window):
16860
16861 * window.c: (Vminibuf_selected_window): New variable.
16862 (struct save_window_data): New member minibuf_selected_window.
16863 (Fset_window_configuration): Restore Vminibuf_selected_window.
16864 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
16865 Set minibuf_scroll_window member to nil if minibuf_level is 0.
16866 (compare_window_configurations): Compare minibuf_selected_window.
16867
16868 * window.h: (Vminibuf_selected_window): Declare extern.
16869
16870 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
16871 entry to minibuffer or on entry from a non-minibuffer window.
16872
16873 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
16874 Vminibuf_selected_window instead of Vminibuf_scroll_window.
16875
16876 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
16877 instead of Vminibuf_scroll_window when deciding in which window
16878 the region should be highlighted. Consequently, the region remains
16879 highlighteded even when a completion buffer is also displayed.
16880
168812002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
16882
16883 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
16884
16885 * xselect.c (Qcompound_text_with_extensions): Renamed from
16886 Qcompound_text_no_extensions.
16887 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
16888
168892002-02-26 Juanma Barranquero <lektu@terra.es>
16890
16891 * w32proc.c (syms_of_ntproc): Doc fix.
16892
168932002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16894
16895 * intervals.h: Include "dispextern.h" unconditionally.
16896
168972002-02-24 Jason Rumney <jasonr@gnu.org>
16898
16899 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
16900 and disp-table.elc.
16901 (lisp): Add emacs-lisp/backquote.elc.
16902
169032002-02-24 Kim F. Storm <storm@cua.dk>
16904
3419757d 16905 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
16906 The validation of the event type was too strict as it didn't
16907 allow string events; buffer names are used in bindings for
16908 menu-bar-select-buffer (see `menu-bar-update-buffers').
16909
169102002-02-23 Kim F. Storm <storm@cua.dk>
16911
16912 The following changes rework my patch of 2002-02-06 which
16913 added command remapping by entering the commands directly into
16914 the keymaps. Now, command remapping uses an explicit `remap'
16915 prefix in the keymaps, i.e. [remap COMMAND].
16916
16917 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 16918 (is_command_symbol): Remove function.
048addec
JD
16919 (Fdefine_key): No longer accept a symbol for KEY.
16920 Added validation of [remap COMMAND] argument for KEY.
16921 The DEF is no longer required to be a symbol when remapping a command.
16922 (Fremap_command): New function to remap command through keymaps.
16923 (Flookup_key): Perform command remapping initiated by
16924 Fremap_command directly for speed.
16925 (Fkey_binding): Use Fremap_command for command remapping.
16926 (where_is_internal): Handle new command remapping representation.
16927 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
16928 staticpro them. Defsubr Fremap_command.
16929
16930 * keymap.h (Fremap_command): Declare extern.
16931 (is_command_symbol): Remove extern.
16932
16933 * keyboard.c (command_loop_1): Use Fremap_command for command
16934 remapping; now try command remapping for all symbols.
16935
169362002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16937
16938 * coding.h (run_pre_post_conversion_on_str): Add prototype.
16939
169402002-02-23 Jason Rumney <jasonr@gnu.org>
16941
16942 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
16943 on the string before encoding it.
16944 (Fw32_get_clipboard_data): Run post-read-conversion on the string
16945 after decoding it.
16946
16947 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
16948
169492002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16950
16951 * w32term.c (enter_timestamp): Remove unused static variable to
16952 prevent warning.
16953
16954 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
16955
169562002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16957
16958 * w16select.c (Fw16_get_clipboard_data): Fix last change.
16959
16960 * xselect.c (selection_data_to_lisp_data): Fix last change.
16961
169622002-02-22 Jason Rumney <jasonr@gnu.org>
16963
16964 * w32term.h (struct w32_output): New member menu_command_in_progress.
16965
16966 * w32menu.c (menubar_selection_callback): Free the menu and
16967 clear the menu_command_in_progress flag.
16968
16969 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
16970 (menu_free_timer): New variable.
16971 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
16972 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
16973 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
16974 menu command is in progress.
16975 <WM_COMMAND>: Set the menu_command_in_progress flag.
16976 Kill any menu_free_timer that is running.
16977
16978 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
16979 Call ExtTextOutA rather than ExtTextOut.
16980
169812002-02-22 Eli Zaretskii <eliz@gnu.org>
16982
16983 * puresize.h (BASE_PURESIZE): Increase to 755000.
16984
169852002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16986
16987 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
16988 on the string before encoding it.
16989 (Fw16_get_clipboard_data): Run post-read-conversion on the string
16990 after decoding it.
16991
169922002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16993
16994 Support for ICCCM Extended Segments in X selections:
16995
16996 * xselect.c <Qcompound_text_no_extensions>: New variable.
16997 (syms_of_xselect): Intern and staticpro it.
16998 (selection_data_to_lisp_data): Run post-read-conversion on decoded
16999 selection text.
17000 (lisp_data_to_selection_data): If next-selection-coding-system is
17001 compound-text-no-extensions, set the type of selection to be
17002 compound-text.
17003
17004 * xterm.h (x_encode_text): Update prototype.
17005
17006 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
17007 callers changed. If SELECTIONP is non-zero, run the
17008 pre-write-conversion function before encoding the selection text.
17009
170102002-02-21 Kim F. Storm <storm@cua.dk>
17011
17012 * frame.c (syms_of_frame): Change mouse-highlight default to t.
17013
17014 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
17015 Correct composing of language-change event.
17016
170172002-02-20 Kim F. Storm <storm@cua.dk>
17018
17019 * keyboard.c (menu_bar_items): Don't include keymap or local-map
17020 bindings at PT when building menu (the menu is not updated often
17021 enough for this to work reliable).
17022 (tool_bar_items): Likewise.
17023 (current_active_maps): Removed unused (and buggy) function.
17024
170252002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17026
17027 * xfns.c (gif_load): Use correct width and height for GIF images.
17028
170292002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
17030
17031 * floatfns.c (Fatan): Accept an optional second arg and call
17032 atan2 if passed 2 args.
17033
170342002-02-18 Jason Rumney <jasonr@gnu.org>
17035
17036 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
17037
170382002-02-17 Jason Rumney <jasonr@gnu.org>
17039
17040 * w32term.c (x_autoselect_window_p): New variable.
17041 (syms_of_w32term): DEFVAR_BOOL and initialize it.
17042 (note_mouse_movement): Use it.
17043
17044 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
17045
17046 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
17047
17048 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
17049 New variables.
17050 (syms_of_w32fns): Intern and staticpro them.
17051 (x_frame_parms) <"fullscreen">: New parameter.
17052 (x_fullscreen_move, x_set_fullscreen): New functions.
17053 (x_set_frame_parameters): Support Qfullscreen.
17054 (x_real_positions): Save x/y_pixels_diff frame params.
17055 (x_figure_window_size): Support full-screen frames.
17056 (Fx_create_frame): Default the fullscreen parameter.
17057
17058 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
17059 (x_fullscreen_adjust): New functions.
17060 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
17061 fullscreen. Call x_check_fullscreen_move, and set the
17062 want_fullscreen member of output_data.w32
17063 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
17064
17065 * w32term.h: New enum for FULLSCREEN_* constants.
17066 (struct w32_output): New members want_fullscreen, x_pixels_diff,
17067 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
17068 (x-fullscreen-adjust): New prototype.
17069
170702002-02-17 Kim F. Storm <storm@cua.dk>
17071
52eb0373 17072 * frame.c (Vmouse_highlight): New variable.
048addec
JD
17073 (syms_of_frame): DEFVAR_LISP it.
17074
52eb0373 17075 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 17076
048addec 17077 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 17078
048addec
JD
17079 * xterm.c (disable_mouse_highlight): Removed variable.
17080 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
17081 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17082 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
17083 and on after keyboard input.
17084 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 17085
048addec 17086 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 17087
048addec
JD
17088 * msdos.c (disable_mouse_highlight): Removed variable.
17089 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17090 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
17091 (internal_terminal_init): Initialize mouse_face_hidden.
17092 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
17093 and on after keyboard input.
4f1b1854 17094
048addec 17095 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 17096
048addec
JD
17097 * w32term.c (disable_mouse_highlight): Removed variable.
17098 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
17099 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17100 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
17101 and on after keyboard input.
17102 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 17103
048addec 171042002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 17105
048addec
JD
17106 * msdos.c (last_mouse_window): New variable.
17107 (dos_rawgetc): Fix last change--if the mouse is in the same window
17108 as recorded in last_mouse_window, don't select this window.
5cb6905d 17109
048addec 17110 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 17111
048addec
JD
17112 * msdos.c (x_autoselect_window_p): New variable.
17113 (syms_of_msdos): Defvar it.
17114 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
17115 which the last mouse movement occured, unless it is already selected.
437dfb9f 17116
048addec
JD
17117 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
17118 New variables.
17119 (syms_of_xdisp): DEVFAR them.
17120 (hscroll_window_tree): Use automatic_hscroll_margin and
17121 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 17122
048addec 171232002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 17124
048addec
JD
17125 * xterm.c (x-autoselect-window): New variable.
17126 (note_mouse_movement): Use it.
9f696a00 17127
048addec 17128 * keyboard.c: Do not include "systime.h" twice.
d57966d7 17129
048addec 171302002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 17131
bfa02563 17132 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 17133
048addec 17134 * alloc.c (NSTATICS): Increase to 1280.
74779f52 17135
048addec 171362002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 17137
048addec 17138 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 17139
048addec
JD
17140 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
17141 (Vx_super_keysym): New variables.
17142 (syms_of_xterm): DEFVAR_LISP them.
17143 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
17144 variables to determine which keys to use for the various modifiers.
a474d59c 17145
048addec 171462002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 17147
048addec
JD
17148 * window.c: (Vmode_line_in_non_selected_windows): Removed.
17149 (mode_line_in_non_selected_windows): New variable.
17150 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 17151
048addec
JD
17152 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
17153 Use mode_line_in_non_selected_windows.
17154 (mode_line_in_non_selected_windows): Declare extern.
17155 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 17156
048addec 171572002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 17158
048addec
JD
17159 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
17160 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
17161 (Fclear_this_command_keys): Doc fixes.
2d10309f 17162
048addec
JD
17163 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
17164 (update_face_from_frame_parameter): Increment face_change_count
17165 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 17166
048addec
JD
17167 * xdisp.c (QCpropertize): New variable.
17168 (mode_line_proptrans_alist): New variable.
17169 (display_mode_element): New arg PROPS; all calls changed.
17170 Implement this, for strings.
17171 Handle literal output of strings by sharing the
17172 main-line code for strings, using local var `literal'.
17173 Handle :propertize feature.
17174 (syms_of_xdisp): Initialze and staticpro QCpropertize and
17175 mode_line_proptrans_alist.
0b1e6b54 17176
048addec 171772002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 17178
048addec
JD
17179 * window.c: (Vmode_line_in_non_selected_windows): New variable.
17180 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 17181
048addec
JD
17182 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
17183 (CURRENT_MODE_LINE_FACE_ID): Use it.
17184 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 17185
048addec
JD
17186 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
17187 to get mode line face.
e17144de 17188
048addec 171892002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17190
048addec
JD
17191 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
17192 variables; cus-start.el doesn't need them anymore.
44368f8f 17193
048addec 171942002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 17195
048addec
JD
17196 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
17197 reduction. This fixes a display problem where stray newlines were
17198 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 17199
048addec 172002002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17201
048addec 17202 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 17203
048addec 17204 * xdisp.c (display_mode_lines): Fix last change.
453c5510 17205
048addec 172062002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 17207
048addec
JD
17208 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
17209 match each other.
17210 (w32_load_system_font): Prevent Cleartype fonts from loading.
17211 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 17212
048addec 172132002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 17214
048addec
JD
17215 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
17216 (CURRENT_MODE_LINE_HEIGHT): Use it.
17217 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17218
048addec
JD
17219 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
17220 (pos_visible_p, handle_face_prop): Likewise.
17221 (display_mode_lines): Likewise, but for the real selected window.
17222 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17223
048addec
JD
17224 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
17225 in non-selected windows.
17226 (realize_basic_faces): Realize it.
17227 (syms_of_term): Intern and staticpro it.
308dd672 17228
048addec 172292002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 17230
048addec
JD
17231 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
17232 Changed mail addresses to emacs-devel@gnu.org.
308dd672 17233
048addec 172342002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 17235
048addec
JD
17236 * fileio.c (Fsubstitute_in_file_name): If the file name includes
17237 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 17238
048addec 17239 * floatfns.c (Fround): Doc fix.
3c1e6b46 17240
048addec 172412002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 17242
048addec 17243 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 17244
048addec 172452002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 17246
048addec 17247 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 17248
048addec 172492002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 17250
048addec
JD
17251 * keymap.c (where_is_internal): Only check whether definition is
17252 remapped if it fulfills is_command_symbol.
0065bb74 17253
048addec 172542002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 17255
048addec 17256 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 17257
048addec 17258 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 17259
048addec 172602002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 17261
048addec
JD
17262 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
17263 defining command remapping. Doc updated.
17264 (Flookup_key): Remap command through keymap if KEY is a symbol.
17265 (is_command_symbol): New function.
17266 (Fkey_binding): Use it. New optional argument NO-REMAP.
17267 Doc updated. Callers changed. Perform command remapping via
17268 recursive call unless that arg is non-nil.
17269 (where_is_internal): New argument no_remap. Callers changed.
17270 Call recursively to find original key bindings for a remapped
17271 comand unless that arg is non-nil.
17272 (Fwhere_is_internal): New optional argument NO-REMAP.
17273 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 17274
048addec 17275 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 17276 (is_command_symbol): Add prototype.
0d8466cc 17277
048addec
JD
17278 * keyboard.c (Vthis_original_command): New variable.
17279 (syms_of_keyboard): DEFVAR_LISP it.
17280 (command_loop_1): Set it, and perform command remapping.
15fff01d 17281
048addec 172822002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 17283
048addec 17284 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 17285
048addec 172862002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 17287
048addec 17288 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 17289
048addec 172902002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 17291
048addec 17292 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 17293
048addec 172942002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 17295
048addec 17296 * filelock.c (S_ISLNK): Define if not defined.
3a232704 17297
048addec 172982002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 17299
048addec 17300 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 17301
048addec
JD
17302 * lread.c (read1): Redesign strategy for force_multibyte and
17303 force_singlebyte. Now is_multibyte records whether read_buffer
17304 is multibyte. Encountering any multibyte character makes it so.
4e02881b 17305
048addec 173062002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 17307
048addec
JD
17308 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
17309 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 17310
048addec 173112002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 17312
048addec
JD
17313 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
17314 latter never being defined on GNU/Linux.
749f499f 17315
048addec 173162002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 17317
048addec
JD
17318 * xfaces.c (realize_default_face): Don't set the weight and slant of
17319 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 17320
048addec 173212002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 17322
048addec
JD
17323 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
17324 Call cancel_hourglass unconditionally.
d0fd26dd 17325
048addec
JD
17326 * eval.c (Fsignal): Remove duplicated declaration of
17327 the variable `display_hourglass_p'.
b4c45162 17328
048addec 173292002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 17330
048addec 17331 * editfns.c (region_limit): Nicer error message.
c95eaa61 17332
048addec
JD
17333 * coding.c (decode_composition_emacs_mule):
17334 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 17335
048addec
JD
17336 * callint.c (check_mark): New arg to specify clearer error message.
17337 Callers changed.
c95eaa61 17338
048addec 173392002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 17340
048addec 17341 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 17342
048addec 173432002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 17344
048addec
JD
17345 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
17346 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
17347 Fix doc-strings.
c95eaa61 17348
048addec 173492002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 17350
048addec 17351 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 17352
048addec
JD
17353 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
17354 and scroll_up_aggressively.
c95eaa61 17355
048addec 173562002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 17357
048addec 17358 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 17359
048addec 173602002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 17361
048addec
JD
17362 * textprop.c (Fnext_property_change, Fnext_single_property_change)
17363 (Fprevious_property_change, Fprevious_single_property_change):
17364 Stay within the narrowed-buffer boundaries.
e2c3786a 17365
048addec 173662002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 17367
048addec
JD
17368 * term.c (Ftty_display_color_cells): New function.
17369 (syms_of_term): Defsubr it.
17370 (Ftty_display_color_cells, Ftty_display_color_p): Change the
17371 argument name to DISPLAY. Doc fix.
bf794306 17372
048addec
JD
17373 * dispextern.h: Add prototype for set_tty_color_mode and
17374 tty_setup_colors.
bf794306 17375
048addec 173762002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 17377
048addec
JD
17378 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
17379 If region left to draw is not what was expected, mark the frame as
17380 garbaged.
62582985 17381
048addec
JD
17382 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
17383 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 17384
048addec 173852002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 17386
048addec
JD
17387 * w32term.c (x_update_window_begin): Only hide caret if
17388 w32_use_visible_system_caret is set.
17389 (x_update_window_end): Only show caret if
17390 w32_use_visible_system_caret is set.
17391 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 17392
048addec 17393 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 17394
048addec 173952002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 17396
048addec
JD
17397 * unexelf.c (unexec): Define n so as to cause compilation error
17398 for the code where people have often written n instead of nn.
1e9a6186 17399
048addec 17400 * .gdbinit (hookpost-run): Defined.
1e9a6186 17401
048addec 174022002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 17403
048addec 17404 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 17405
048addec 174062002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 17407
048addec
JD
17408 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
17409 if fullscreen is being set.
7c75be36 17410
048addec 174112002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 17412
048addec
JD
17413 * minibuf.c (Fminibuffer_contents)
17414 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
17415 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 17416
048addec 174172002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 17418
048addec 17419 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 17420
048addec 174212002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 17422
048addec
JD
17423 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
17424 height before comparison.
17425 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 17426
048addec 174272002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 17428
048addec
JD
17429 * w32term.c (w32_system_caret_width): Remove.
17430 (w32_use_visible_system_caret): New user flag.
17431 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
17432 Windows reports a screen reader running.
17433 (x_update_window_begin): Hide the system caret.
17434 (x_update_window_end): Show the system caret.
17435 (x_display_and_set_cursor): Don't draw a cursor when
17436 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 17437
048addec
JD
17438 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
17439 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
17440 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
17441 the user requests it. Use system default width when creating.
17442 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 17443
048addec
JD
17444 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
17445 New window messages.
905cc05a 17446
048addec 174472002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 17448
048addec 17449 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 17450
048addec 174512002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 17452
048addec 17453 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 17454
048addec 174552002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 17456
048addec 17457 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 17458
048addec 174592002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 17460
048addec
JD
17461 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
17462 that Windows returns. If a double check fails, try to guess how
17463 ExtTextOut is going to act.
4d0fa4f3 17464
048addec
JD
17465 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
17466 in place of stricmp.
17467 (w32_list_synthesized_fonts): Removed.
17468 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
17469 (struct enumfont_t): New element; list.
17470 (enum_font_cb2): List all style and charset variations of a font.
17471 (Fw32_select_font): New optional argument; include_proportional.
17472 Exclude vertical fonts. Exclude proportional fonts unless
17473 include_proportional is non-nil.
17474 (w32_enable_synthesized_fonts): Change to a boolean.
17475 (Fw32_send_sys_command): Doc fix.
493faf20 17476
048addec 174772002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 17478
048addec
JD
17479 * dispnew.c (update_frame): Move the variable `tem' to the block
17480 where it is used.
4971e491 17481
048addec 174822002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 17483
048addec
JD
17484 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
17485 call to face-set-after-frame-default.
4971e491 17486
048addec 174872002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 17488
048addec
JD
17489 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
17490 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 17491
048addec 174922002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 17493
048addec
JD
17494 * window.c (enlarge_window): When exceeding size of parent,
17495 directly delete all the siblings instead of trying to resize it.
201c831a 17496
048addec 174972002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 17498
048addec 17499 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 17500
048addec 175012002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 17502
048addec 17503 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 17504
048addec 175052002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 17506
048addec
JD
17507 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
17508 is invisible. This can happen if cursor is on top line of a
17509 window, and we switch to a buffer with a header line.
d77fbc16 17510
048addec 17511 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 17512
048addec 175132002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 17514
048addec
JD
17515 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
17516 `dont_resize' only when used.
61e3b944 17517
048addec 17518 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 17519
048addec 175202002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 17521
048addec
JD
17522 * xdisp.c (display_mode_element): When computing charpos, depend
17523 on multibyteness of elt, not the text in field.
8af01033 17524
048addec 175252002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 17526
048addec
JD
17527 * buffer.c (Fkill_all_local_variables):
17528 Increment `update_mode_lines' only once.
7363986a 17529
048addec 175302002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 17531
048addec
JD
17532 * lisp.h (adjust_after_replace_noundo)
17533 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 17534
048addec 17535 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 17536
048addec 175372002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 17538
048addec
JD
17539 Support for the --color command-line argument and tty-color-mode
17540 frame parameter:
f1a85b89 17541
048addec
JD
17542 * term.c (tty_default_color_capabilities, tty_setup_colors)
17543 (set_tty_color_mode): New functions.
17544 (term_init): Call tty_default_color_capabilities.
17545 (Qtty_color_mode_alist): New variable.
17546 (syms_of_term): Intern and staticpro it.
f1a85b89 17547
048addec
JD
17548 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
17549 frames.
17550 (do_switch_frame): For termcap frames, switch the tty
17551 color mode as specified by the frame's parameters.
17552 (Qtty_color_mode): New variable.
17553 (syms_of_frame): Intern and staticpro it.
3a62677f 17554
048addec
JD
17555 * emacs.c (USAGE2): Add the --color option.
17556 (standard_args): Ditto.
72244db2 17557
048addec
JD
175582002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17559
17560 * xterm.h (struct x_output): New members want_fullscreen,
17561 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
17562 y_pixels_outer_diff.
17563 New enum for FULLSCREEN_* constants.
17564 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
17565 is NULL.
17566 (x_fullscreen_adjust): Add prototype.
3a62677f 17567
048addec
JD
17568 * emacs.c (USAGE2): Add the new full-screen arguments.
17569 (standard_args): Ditto.
3a62677f 17570
048addec
JD
17571 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
17572 New variables.
17573 (syms_of_xfns): Intern and staticpro them.
17574 (x_frame_parms) <"fullscreen">: New parameter.
17575 (x_fullscreen_move, x_set_fullscreen): New functions.
17576 (x_set_frame_parameters): Support for Qfullscreen.
17577 (x_real_positions): More accurate computation of the frame position.
17578 (x_figure_window_size): Support full-screen frames.
17579 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 17580
048addec
JD
17581 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
17582 (XTread_socket) <Expose>: Call x_check_fullscreen.
17583 <ConfigureNotify>: Don't resize to fullscreen.
17584 Call x_check_fullscreen_move, and set the want_fullscreen member of
17585 output_data.x.
3a62677f 17586
048addec 175872002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 17588
048addec
JD
17589 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
17590 for mice with more than 3 buttons.
b8523839 17591
048addec
JD
17592 * w32term.c (parse_button): New parameter xbutton. Callers changed.
17593 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 17594
048addec
JD
17595 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
17596 (syms_of_w32fns): DEFVAR_BOOL it.
17597 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 17598
048addec 175992002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 17600
048addec 17601 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 17602
048addec 176032002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 17604
048addec 17605 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 17606
048addec 176072002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 17608
048addec
JD
17609 * .gdbinit (xbuffer): Remove address operator since data is now a
17610 pointer.
c93674bb 17611
048addec 176122002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 17613
048addec 17614 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 17615
048addec 17616 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 17617
048addec 176182002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 17619
048addec
JD
17620 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
17621 when checking for multiple frames.
91175673 17622
048addec 176232002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 17624
048addec
JD
17625 * window.c (delete_window): Rewrite the code for changing the
17626 selected window to handle the case where WINDOW is not a leaf.
91175673 17627
048addec 176282002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 17629
048addec
JD
17630 * process.c (send_process): Set src_multibyte to 1 after the call
17631 top setup_coding_system, not before the call.
e0fead5d 17632
048addec 176332002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 17634
048addec
JD
17635 * xmenu.c (set_frame_menubar, xmenu_show):
17636 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 17637
048addec
JD
17638 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
17639 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 17640
048addec 176412002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 17642
048addec 17643 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 17644
048addec 17645 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 17646
048addec 17647 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 17648
048addec 176492002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 17650
048addec
JD
17651 * insdel.c (make_gap_larger): Make sure buffer size does not
17652 overflow range of int.
62854fe2 17653
048addec 176542002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 17655
048addec
JD
17656 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
17657 OVERLAPS_P.
656f46bb 17658
048addec 17659 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 17660
048addec
JD
17661 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
17662 to the left or to the right of the pointer, put it against
17663 the left screen edge.
17664 (x_frame_parms): Add missing braces around initializer.
036e218d 17665
048addec
JD
17666 * w32term.c (x_setup_relief_colors): Don't compute an image's
17667 background color if it doesn't have a Pixmap.
17668 (notice_overwritten_cursor): Don't depend on
17669 output_cursor and updated_area. Compare pixel coordinates with
17670 window's cursor pixel coordinates.
17671 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17672 Call notice_overwritten_cursor with new arg list.
17673 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17674 unconditionally.
17675 (x_draw_image_relief): Use predefined macro instead of
17676 constant when the value of `tool_bar_button_relief' is negative.
036e218d 17677
048addec 17678 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 17679
048addec 176802002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 17681
048addec 17682 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 17683
048addec 176842002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 17685
048addec
JD
17686 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
17687 (Fkey_binding): Try the `keymap' property map first.
17688 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
17689 minor mode bindings.
90647b07 17690
048addec 176912002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 17692
3419757d 17693 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 17694
048addec 176952002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 17696
048addec
JD
17697 * keyboard.c (read_key_sequence): Handle the keymap property
17698 before minor mode maps.
9fbc32aa 17699
048addec
JD
17700 * editfns.c (Fformat): Update thissize from field_width
17701 based on the actual width, in the string case.
036e218d 17702
048addec 177032002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 17704
048addec
JD
17705 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
17706 when used as truth value to prevent gcc warnings.
9fbc32aa 17707
048addec
JD
17708 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
17709 * w32proc.c: Include <config.h>.
9fbc32aa 17710
048addec 177112002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 17712
048addec
JD
17713 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
17714 not EMACS_INT, to make them compatible with DEFVAR_INT.
17715 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 17716
048addec 177172002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 17718
048addec
JD
17719 * print.c (print_object): Test print_escape_nonascii only for
17720 unibyte strings.
17721 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
17722 when outputting to a multibyte buffer.
9fbc32aa 17723
048addec 177242001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 17725
048addec
JD
17726 * print.c (print_object): In multibyte string, use hex escapes.
17727 Use octal only for unibyte strings.
17728 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 17729
048addec
JD
17730 * lread.c (read_escape): New arg BYTEREP for reporting whether
17731 escape forces unibyte or multibyte.
17732 (read1): When reading a string, take note of that info.
0142178a 17733
048addec 177342001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 17735
048addec
JD
17736 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
17737 comparison to test lisp value returned by Fget.
d4824a5d 17738
048addec 177392001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 17740
048addec 17741 * lisp.h (max_specpdl_size): Add declaration.
b1356234 17742
048addec 17743 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 17744
048addec
JD
17745 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
17746 Handle modifier bits. Correct typo in error message.
99e380ee 17747
048addec 177482001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 17749
048addec
JD
17750 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
17751 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
17752 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17753 Update calls to Fdefine_abbrev.
17754 (write_abbrev): Update for changed data format.
17755 Don't list "system" abbrevs.
17756 (Fexpand_abbrev): Update use count with new data format.
17757 (describe_abbrev): Update for changed data format.
17758 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 17759
048addec 17760 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 17761
048addec 17762 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 17763
048addec
JD
17764 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
17765 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 17766
048addec
JD
17767 * keymap.c (Flookup_key): Error message if key has wrong data type.
17768 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
17769 (exclude_key): New variable.
59a86c99 17770
048addec 177712001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 17772
048addec
JD
17773 * xterm.c (x_setup_relief_colors): Don't compute an image's
17774 background color if it doesn't have a Pixmap.
eb77a5f4 17775
048addec
JD
17776 * xterm.c (notice_overwritten_cursor): Don't depend on
17777 output_cursor and updated_area. Compare pixel coordinates with
17778 window's cursor pixel coordinates.
17779 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17780 Call notice_overwritten_cursor with new arg list.
17781 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17782 unconditionally.
eb77a5f4 17783
048addec
JD
17784 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
17785 height of the cursor line to the amount to scroll.
eb77a5f4 17786
048addec 177872001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 17788
048addec
JD
17789 * intervals.c (set_point_both): The position after an invisible,
17790 intangible character is not an acceptable stopping point.
bb313871 17791
048addec 177922001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 17793
048addec
JD
17794 * window.c (enlarge_window): In new preserve_before code, convert
17795 CURBEG from lisp object to integer before doing arithmetic.
6052529b 17796
048addec 177972001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 17798
048addec 17799 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 17800
048addec 178012001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 17802
048addec
JD
17803 * keyboard.c (record_char): Ignore duplicate help-echo events only
17804 separated by mouse-movement. When tracking mouse, only record
17805 first and last mouse-movement event in same window.
17806 Don't record mouse-movement events in keyboard macros.
3ce081f5 17807
048addec 178082001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 17809
048addec
JD
17810 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
17811 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 17812
048addec
JD
17813 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
17814 instead of Fstring_as_unibyte.
9fabb2f5 17815
048addec 178162001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 17817
048addec 17818 The following changes remove mocklisp support:
9fabb2f5 17819
048addec 17820 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 17821
048addec
JD
17822 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
17823 `Qmocklisp' and `Qmocklisp_arguments'.
17824 Remove prototype of syms_of_mocklisp.
2fa0eedf 17825
048addec 17826 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 17827
048addec
JD
17828 * callint.c: Do not include mocklisp.h.
17829 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 17830
048addec
JD
17831 * eval.c: Remove variables `Qmocklisp_arguments',
17832 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
17833 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
17834 Do not test for mocklisp case.
17835 (Fwhile): Remove unused variable `tem'.
17836 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 17837
048addec 17838 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 17839
048addec 17840 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 17841
048addec 17842 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 17843
048addec 178442001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 17845
048addec
JD
17846 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
17847 to the left or to the right of the pointer, put it against
17848 the left screen edge.
6108b49c 17849
048addec 178502001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 17851
048addec
JD
17852 * Makefile.in (distclean): Remove .gdbinit if we are building
17853 outside the source tree.
5eea19a4 17854
048addec 178552001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 17856
048addec 17857 * w32.c (emacs_root_dir): New function.
5eea19a4 17858
048addec 17859 * msdos.c (emacs_root_dir): New function.
5eea19a4 17860
048addec
JD
17861 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
17862 of the current drive as the fallback for default_directory.
438e57dd 17863
048addec
JD
17864 * dired.c (file_name_completion): Run the elements of
17865 completion-ignored-extensions through ENCODE_FILE.
438e57dd 17866
048addec
JD
17867 * lisp.h (scmp): Remove prototype, since it's now a static
17868 function private to dired.c.
c88e5347 17869
048addec 178702001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 17871
048addec
JD
17872 * dired.c (scmp): Function moved from minibuf.c.
17873 Delete multibyte handling--used only on encoded strings.
59ce1461 17874
048addec 17875 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 17876
048addec 17877 * fns.c (merge): Add QUIT call.
59ce1461 17878
048addec 178792001-12-18 Dave Love <fx@gnu.org>
8727d588 17880
048addec
JD
17881 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
17882 language/georgian.el.
8727d588 17883
048addec 178842001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 17885
048addec
JD
17886 * Makefile.in (lisp, shortlisp): Synchronize with changes to
17887 lisp/Makefile.in:DONTCOMPILE.
cc63037e 17888
048addec 178892001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 17890
048addec
JD
17891 * xdisp.c (window_box_height): Do not return negative values.
17892 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 17893
048addec 17894 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 17895
048addec 17896 * term.c (keys): Likewise.
deece6f5 17897
048addec 17898 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 17899
048addec 179002001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 17901
048addec
JD
17902 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
17903 patch (COMPOSING_P, not COMPOSING).
28ff4293 17904
048addec 179052001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 17906
048addec 17907 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 17908
048addec
JD
17909 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
17910 before calling decode_coding.
9b46de40 17911
048addec 17912 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 17913
048addec
JD
17914 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
17915 instead of only for COMPOSITION_DISABLED.
9b46de40 17916
048addec 179172001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 17918
048addec 17919 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 17920
048addec 17921 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 17922
048addec
JD
17923 * buffer.h (struct buffer): New field `display_error_modiff'.
17924 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 17925
048addec 17926 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 17927
048addec
JD
17928 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
17929 Call redisplay_window, but not if display_error_modiff field says no.
17930 (redisplay_window_error): New function.
17931 (displayed_buffer): New variable.
17932 (redisplay_internal, redisplay_windows): Call the new functions
17933 instead of redisplay_window directly.
2cd23960 17934
048addec 179352001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 17936
048addec 17937 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 17938
048addec 179392001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 17940
048addec 17941 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 17942 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 17943 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 17944
048addec 179452001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 17946
048addec
JD
17947 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
17948 parameter have a numeric value all the time.
f6fa0866 17949
048addec 17950 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 17951
048addec 179522001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 17953
048addec 17954 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 17955
048addec
JD
17956 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
17957 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 17958
048addec 179592001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 17960
048addec
JD
17961 * xdisp.c (move_it_vertically_backward): Change heuristic
17962 for the case that we didn't move far enough initially.
91c153e2 17963
048addec
JD
17964 * window.c (Frecenter): Simplify computation in the case of window
17965 system frames and ARG < 0; use window_box_height.
65b7d3e7 17966
048addec 179672001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 17968
048addec
JD
17969 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
17970 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 17971
048addec 179722001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 17973
048addec
JD
17974 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
17975 arg is negative.
be676094 17976
048addec 179772001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 17978
048addec
JD
17979 * m/hp800.h: Split the __hpux conditional into the parts
17980 that are right for GNU/Linux too and the parts that are not.
17981 Use the former if GNU_LINUX.
17982 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 17983
048addec 17984 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 17985
048addec 179862001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 17987
048addec
JD
17988 * macros.c, msdos.c, w16select.c: Change doc-string comments to
17989 `new style' [w/`doc:' keyword].
032a857d 17990
048addec 179912001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 17992
048addec
JD
17993 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
17994 before using.
b6270150 17995
048addec 179962001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 17997
048addec
JD
17998 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
17999 keyword].
98cbb9fa 18000
048addec 180012001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 18002
048addec 18003 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 18004
048addec 18005 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 18006
048addec 180072001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 18008
048addec 18009 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 18010 Add comment to explain where the struct came from.
048addec
JD
18011 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
18012 (add_menu_item): Process pop-up menus first to avoid memory leak.
18013 (add_menu_item, w32_menu_display_help): Use `help' field as
18014 Lisp_Object.
18015 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 18016
048addec 180172001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 18018
048addec 18019 * COPYING: Moved back.
fa336b91 18020
048addec
JD
18021 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
18022 Add parentheses around && within ||.
077907d4 18023
048addec 18024 * indent.c (compute_motion): Likewise.
aa2af83a 18025
048addec 18026 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 18027
048addec
JD
18028 * coding.c (setup_coding_system, shrink_encoding_region)
18029 (Fdecode_sjis_char): Likewise.
60a653f1 18030
048addec 180312001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 18032
048addec
JD
18033 * xdisp.c (display_mode_element): Don't read past end of string if
18034 it ends with '%'.
60a653f1 18035
048addec
JD
18036 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
18037 can hold.
60a653f1 18038
048addec
JD
18039 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
18040 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
18041 type changed to Lisp_Object.
18042 (syms_of_data): DEFVAR_LISP them.
60a653f1 18043
048addec 180442001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 18045
048addec
JD
18046 * callproc.c (init_callproc): Set Vdata_directory based on the source
18047 location whenever Emacs was run uninstalled.
60a653f1 18048
048addec 180492001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 18050
048addec
JD
18051 * config.in (HAVE_WORKING_VFORK): New #undefs.
18052 * process.c (create_process):
18053 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
18054 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
18055 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
18056 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
18057 * m/intel386.h (HAVE_VFORK): Likewise.
18058 * m/mips-siemens.h (HAVE_VFORK): Likewise.
18059 * m/mips.h (HAVE_VFORK): Likewise.
18060 * s/freebsd.h (vfork): Remove #define.
18061 * s/lynxos.h (HAVE_VFORK): Remove #undef.
18062 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 18063
048addec 180642001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 18065
048addec
JD
18066 * s/hpux10.h (random): Add undef.
18067 (HAVE_RANDOM): Define it just once.
60a653f1 18068
048addec 180692001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18070
048addec 18071 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 18072
048addec 180732001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18074
048addec
JD
18075 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
18076 scroll bars of the frame before deleting the frame itself. If the
18077 frame has a widget, delete the frame with XtDestroyWidget, and do
18078 not call XDestroyWindow before that.
60a653f1 18079
048addec 180802001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 18081
048addec 18082 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 18083
048addec 18084 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 18085
048addec 180862001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 18087
048addec
JD
18088 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
18089 excessively large.
60a653f1 18090
048addec
JD
18091 * insdel.c (make_gap_larger): New function.
18092 (make_gap_smaller): New function.
18093 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
18094 Call make_gap_smaller if arg is negative.
60a653f1 18095
048addec 180962001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18097
048addec
JD
18098 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
18099 Pass a dummy argument when calling interrupt_signal.
18100 (parse_menu_item): Mark disabled items before checking for empty def.
18101 (read_char_minibuf_menu_prompt): Make safety more visible.
18102 (read_key_sequence): Add a `first_unbound' variable.
18103 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
18104 unbound prefix as soon as we can detect it.
60a653f1 18105
048addec
JD
18106 * doc.c (Fsnarf_documentation): Add prototype.
18107 (get_doc_string): Handle negative arguments.
18108 (Fdocumentation): Use AREF and ASIZE.
18109 Move the calls to get_doc_string to a single place.
18110 Don't confuse an interactive-spec for a docstring reference.
18111 (Fdocumentation_property): Take advantage of the fact that
18112 get_doc_string now ignores the sign of the docstring position.
60a653f1 18113
048addec 18114 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 18115
048addec 181162001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18117
a64387ee 18118 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 18119
048addec 181202001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18121
048addec
JD
18122 * xterm.c (x_draw_image_relief): Use predefined macro instead of
18123 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 18124
048addec 181252001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 18126
048addec
JD
18127 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
18128 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 18129
048addec 18130 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 18131
048addec 181322001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18133
048addec 18134 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 18135
048addec 181362001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 18137
048addec 18138 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 18139
048addec 181402001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 18141
f63fd14e 18142 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 18143
048addec
JD
18144 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
18145 [!WM_MOUSELEAVE]: Define.
60a653f1 18146
048addec
JD
18147 * w32menu.c (current_popup_menu, get_menu_item_info):
18148 (set_menu_item_info): New vars.
18149 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
18150 (w32_menu_show): Set current_popup_menu.
18151 (add_menu_item): Allocate new strings for owner-drawn menu items
18152 and help strings.
18153 Use owner-draw for disabled menu items again.
18154 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
18155 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 18156
048addec
JD
18157 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
18158 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
18159 <WM_EXITMENULOOP>: Free menu strings.
18160 <WM_MOUSELEAVE>: Stop tracking mouse.
18161 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 18162
048addec
JD
18163 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
18164 and mouse face.
60a653f1 18165
048addec 181662001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 18167
048addec
JD
18168 The following changes add left-fringe and right-fringe
18169 frame parameters to adjust fringe widths, or remove one or
18170 both fringes.
60a653f1 18171
048addec
JD
18172 * frame.h (struct frame): Remove trunc_area_pixel_width and
18173 trunc_area_cols fields.
18174 (Qleft_fringe, Qright_fringe): Declare.
18175 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 18176
048addec
JD
18177 * frame.c (Qleft_fringe, Qright_fringe): New vars.
18178 (syms_of_frame): Initialize them.
60a653f1 18179
048addec
JD
18180 * window.c (coordinates_in_window): Handle separate left and right
18181 fringe widths.
60a653f1 18182
048addec
JD
18183 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
18184 and fringe_cols fields.
18185 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
18186 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
18187 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
18188 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
18189 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
18190 (x_compute_fringe_widths): Add prototype.
60a653f1 18191
048addec
JD
18192 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
18193 fill fringe evenly with small dashes.
f63fd14e 18194 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
18195 clip the new ZV bitmap to avoid jitter between rows.
18196 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
18197 background. Don't draw fringe bitmaps if fringe width is zero.
18198 (x_compute_fringe_widths): New function.
18199 (x_new_font, x_set_window_size_1): Use it.
60a653f1 18200
048addec
JD
18201 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
18202 (x_set_frame_parameters): Process `font' parameter before other
18203 parameters as fringe widths depend on it.
18204 (x_set_fringe_width): New function.
18205 (x_figure_window_size): Use x_compute_fringe_widths.
18206 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
18207 parameters.
60a653f1 18208
048addec
JD
18209 * widget.c (set_frame_size): Use x_compute_fringe_widths.
18210 (EmacsFrameSetCharSize): Ditto.
60a653f1 18211
048addec
JD
18212 * w32term.h: Merged changes from xterm.h.
18213 * w32term.c: Merged changes from xterm.c.
18214 * w32fns.c: Merged changes from xfns.c.
60a653f1 18215
048addec 182162001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18217
048addec 18218 * COPYING: Removed.
60a653f1 18219
048addec 182202001-11-29 Dave Love <fx@gnu.org>
60a653f1 18221
048addec
JD
18222 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
18223 extra extra slot.
18224 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 18225
048addec 182262001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18227
048addec
JD
18228 * fileio.c (file-name-coding-system)
18229 (default-file-name-coding-system): Doc fix (links to referenced
18230 variables added).
60a653f1 18231
048addec 182322001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18233
048addec
JD
18234 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
18235 Add dummy uses of gcproN variables.
60a653f1 18236
048addec
JD
18237 * category.c (describe_category, describe_category_1)
18238 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
18239 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 18240
048addec 182412001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 18242
048addec 18243 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 18244
048addec
JD
18245 * Makefile.in (lispdir): New variable, referring to build dir.
18246 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 18247
048addec 182482001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 18249
048addec
JD
18250 * w32menu.c (w32_menu_display_help): Actually add the new argument
18251 OWNER.
60a653f1 18252
048addec 182532001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 18254
048addec
JD
18255 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
18256 menu items. From David Ponce <dponce@wanadoo.fr>.
18257 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
18258 conditionally.
f63fd14e 18259 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 18260 help event in the owner frame's keyboard buffer.
60a653f1 18261
048addec
JD
18262 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
18263 (Fx_show_tip): Don't subtract last width from row width.
18264
18265 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
18266 (w32_read_socket): Use EQ to compare frames.
60a653f1 18267
048addec 182682001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 18269
048addec
JD
18270 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
18271 OVERLAPS_P.
60a653f1 18272
048addec 182732001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18274
048addec
JD
18275 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
18276 `gcpro3' and `gcpro4'.
60a653f1 18277
048addec 18278 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 18279
048addec 182802001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18281
048addec 18282 * ccl.c: Use AREF and ASIZE.
60a653f1 18283
048addec 182842001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18285
048addec
JD
18286 * lisp.h (run_hook_list_with_args): Remove.
18287 (LIST_END_P): Fix call to wrong_type_argument.
18288 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 18289
048addec 182902001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18291
048addec
JD
18292 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
18293 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 18294
048addec
JD
18295 * eval.c: Use AREF and ASIZE.
18296 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 18297
048addec
JD
18298 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
18299 which match the end of the file-name.
18300 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
18301 is not a valid env var, but leave it as is instead.
60a653f1 18302
048addec
JD
18303 * keymap.c (access_keymap): Handle t bindings like nil bindings.
18304 Make nil bindings in char-tables transparent.
18305 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 18306
048addec 183072001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 18308
048addec
JD
18309 * textprop.c (set_text_properties_1): Allow START, END in either order.
18310 Do nothing if range is empty.
60a653f1 18311
048addec 18312 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 18313
048addec
JD
18314 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
18315 (clean): Not here.
60a653f1 18316
048addec 183172001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18318
048addec
JD
18319 * textprop.c (set_text_properties_1): Clearly mark that the
18320 interval should not be empty.
60a653f1 18321
048addec
JD
18322 * intervals.c (graft_intervals_into_buffer):
18323 Don't call set_text_properties_1 on an empty interval.
60a653f1 18324
048addec 183252001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 18326
048addec 18327 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 18328
048addec
JD
18329 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
18330 don't lose the data in it.
60a653f1 18331
048addec 183322001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 18333
048addec 18334 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 18335
c62aec78 18336 * buffer.c (Fkill_buffer): Likewise.
60a653f1 18337
c62aec78 18338 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 18339
048addec 183402001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18341
048addec 18342 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 18343
048addec 183442001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18345
048addec
JD
18346 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
18347 Niemitalo <kon@iki.fi>.
60a653f1 18348
048addec 183492001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 18350
048addec 18351 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 18352
048addec
JD
18353 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
18354 (Fx_show_tip): Block input during frame creation.
18355 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 18356
048addec 183572001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 18358
048addec
JD
18359 * lread.c (Fload): Detect recursive load error for more than 3
18360 nestings of the same file.
18361 (Vrecursive_load_depth_limit): Variable deleted.
18362 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 18363
048addec 183642001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 18365
048addec
JD
18366 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
18367 mouse position if either left or top is not specified.
60a653f1 18368
048addec
JD
18369 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
18370 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
18371 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
18372 (my_create_tip_window): Assign tip_window.
18373 (x_create_tip_frame): Use same defaults as X.
18374 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 18375 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 18376
048addec
JD
18377 * w32term.c (x_after_update_window_line): Doc fix.
18378 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
18379 frames.
18380 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 18381
048addec
JD
18382 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
18383 for all Windowed systems.
60a653f1 18384
048addec 183852001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18386
048addec
JD
18387 * msdos.c (IT_clear_screen): If the frame's faces are not yet
18388 realized, use the initial screen colors to clear the screen.
60a653f1 18389
048addec 183902001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18391
048addec
JD
18392 * textprop.c (Fset_text_properties): Remove unused variables
18393 `unchanged', `prev_changed', `s' and `len'.
60a653f1 18394
048addec
JD
18395 * search.c (Freplace_match): Remove unused variable `inslen'.
18396
18397 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
18398
183992001-11-22 Jason Rumney <jasonr@gnu.org>
18400
18401 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
18402 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
18403 (my_create_tip_window): New function.
18404 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
18405 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
18406
184072001-11-20 Jason Rumney <jasonr@gnu.org>
18408
18409 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
18410 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
18411
18412 * w32fns.c (Vw32_system_coding_system): Remove.
18413 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
18414
184152001-11-19 Stefan Monnier <monnier@cs.yale.edu>
18416
18417 * fileio.c (Fwrite_region): Move choose_write_coding_system to
18418 after build_annotations.
18419
18420 * syntax.c (describe_syntax): Add dummy arg.
18421 (describe_syntax_1): Update call to describe_vector.
18422
18423 * category.c (describe_category): Add dummy arg.
18424 (describe_category_1): Update call to describe_vector.
18425
18426 * keymap.c (Fdescribe_vector): Add `describer' parameter.
18427 (describe_command, describe_translation): Add dummy second param.
18428 (describe_map): Call elt_describer with two arguments.
18429 (describe_vector_princ): Add `fun' parameter.
18430 Call it instead of the hardcoded `princ'.
18431 (describe_vector): Add arg `args'.
18432 Pass it as a new second argument to elt_describer.
60a653f1 18433
048addec 18434 * keymap.h (describe_vector): Update prototype.
60a653f1 18435
048addec
JD
18436 * frame.c: Don't include keymap.h any more.
18437 (keys_of_frame): Remove.
60a653f1 18438
048addec 18439 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 18440
048addec 18441 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 18442
048addec 184432001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 18444
048addec
JD
18445 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
18446 if defined, 0 otherwise.
18447 (MAP_FAILED): Define if not defined and use it to test mmap failure.
18448 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 18449
048addec 184502001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 18451
048addec 18452 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 18453
048addec 184542001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 18455
048addec
JD
18456 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
18457 (x_draw_bar_cursor): If the background color of the glyph under
18458 the cursor equals the frame's cursor color, use the glyph's
18459 foreground color for drawing the bar cursor.
18460 (x_after_update_window_line): Clear internal border in different
18461 circumstances.
18462 (w32_set_vertical_scroll_bar): Check for width and height > 0.
18463 (w32_draw_relief_rect): Correct relief by 1 pixel.
18464 (x_set_glyph_string_background_width):
18465 Set extends_to_end_of_line_p if the row's fill_line_p is set and
18466 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
18467 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
18468 if cursor_in_non_selected_windows is false.
18469 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
18470 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
18471 Notice if cursor gets overwritten.
18472 (notice_overwritten_cursor): Renamed from
18473 note_overwritten_text_cursor. Rewritten to take glyph widths
18474 into account, and to take X positions as parameters.
18475 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18476 around call to x_draw_glyphs.
18477 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18478 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18479 color to use for image glyph reliefs.
18480 (x_draw_image_relief): Accept zero tool_bar_button_relief.
18481 (glyph_rect): Remove unused variable `area'.
60a653f1 18482
048addec
JD
18483 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
18484 some items.
18485 (x_set_internal_border_width): Set frame garbaged when window
18486 doesn't exist yet.
18487 (Fx_create_frame): Accept zero tool_bar_button_relief.
18488 (x_clear_image_1, four_corners_best, image_background)
18489 (image_background_transparent): New functions.
18490 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
18491 (gs_format): Add `:background' entry.
18492 (lookup_image): Set IMG's background color if specified.
18493 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18494 when appropriate.
18495 (x_clear_image_1): Reset `background_valid' and
18496 `background_transparent_valid' fields.
18497 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18498 calculating it here. Set IMG's background_transparent field.
18499 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18500 (enum png_keyword_index): Add PNG_BACKGROUND.
18501 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18502 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18503 (enum gif_keyword_index): Add GIF_BACKGROUND.
18504 (enum gs_keyword_index): Add GS_BACKGROUND.
18505 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
18506 Pre-calculate image background color where necessary.
18507 (x_create_x_image_and_pixmap, xbm_load, gs_load):
18508 Use display info's n_cbits entry for screen depth.
18509 (Fx_show_tip): Remove unused variables `buffer', `top',
18510 `left', `max_width' and `max_height'.
60a653f1 18511
048addec 18512 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 18513
048addec 185142001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 18515
048addec 18516 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 18517
048addec 185182001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18519
048addec 18520 * frame.c (Fframe_live_p): Doc fix.
60a653f1 18521
048addec 185222001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 18523
048addec
JD
18524 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
18525 (message_dolog_marker3): New static variables hold three markers.
18526 (syms_of_xdisp): Initialize and staticpro them.
18527 (message_dolog): Use message_dolog_marker1..3 instead of
18528 allocating markers each time. Unchain them when done.
60a653f1 18529
048addec 185302001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 18531
048addec 18532 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 18533
048addec 185342001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 18535
048addec 18536 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 18537
048addec 185382001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 18539
048addec 18540 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 18541
048addec 185422001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 18543
048addec 18544 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 18545
048addec 185462001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 18547
048addec
JD
18548 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
18549 with invalid position.
60a653f1 18550
048addec 185512001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 18552
048addec 18553 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 18554
048addec
JD
18555 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
18556 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
18557 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 18558
048addec 18559 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 18560
048addec 185612001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18562
048addec
JD
18563 * fileio.c (build_annotations): Split off the tail.
18564 (build_annotations_2): New fun. Extracted from build_annotations.
18565 (Fwrite_region): Split the call to build_annotations into two
18566 calls to build_annotations and build_annotations_2.
077907d4 18567
048addec 185682001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 18569
048addec
JD
18570 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
18571 clear_waiting_for_input with argument.
1756e2fb 18572
048addec 18573 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 18574
048addec 18575 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 18576
048addec 18577 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 18578
048addec 18579 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 18580
048addec 185812001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 18582
048addec
JD
18583 * fileio.c (choose_write_coding_system): New fun, extracted
18584 from Fwrite_region.
18585 (Fwrite_region): Use it.
fa336b91 18586
048addec
JD
18587 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
18588 (funcall_lambda, run_hook_with_args): Make static and add prototype.
18589 (ml_apply, find_handler_clause): Add prototype.
fa336b91 18590
048addec 185912001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 18592
048addec 18593 * config.in: Add #undef HAVE_COFF_H.
fa336b91 18594
048addec
JD
18595 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
18596 Required for ISC 4.1.
fa336b91 18597
048addec 185982001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 18599
52eb0373 18600 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 18601 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 18602
048addec 186032001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 18604
048addec
JD
18605 The following changes are made to clean up the various internal
18606 references to the fringes to actually use the term `fringe' for
18607 them. Previously, they were called `flags areas', `bitmap areas',
18608 `left/right side of windows', or implicitly as `flags' or
18609 `bitmaps':
fa336b91 18610
048addec 18611 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 18612 Comments fixed. Use renamed symbols.
06e8f738 18613
f63fd14e 18614 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 18615
048addec
JD
18616 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
18617 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
18618 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 18619
048addec 18620 * msdos.c: Comment fix.
9ce647f4 18621
048addec 18622 * w32fns.c: Use renamed symbols.
9b784ab8 18623
f63fd14e 18624 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
18625 (fringe_bitmap_type): Renamed from bitmap_type.
18626 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18627 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
18628 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 18629
f63fd14e 18630 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
18631 (fringes_extra): Renamed from flags_areas_extra.
18632 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18633 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18634 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18635 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18636 (FRAME_X_LEFT_FRINGE_WIDTH):
18637 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18638 (FRAME_X_RIGHT_FRINGE_WIDTH):
18639 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 18640
048addec 18641 * widget.c: Use renamed symbols.
9f7e52b4 18642
f63fd14e 18643 * window.c: Comment fixes. Use renamed symbols.
048addec 18644 (coordinates-in-window-p): Doc fix.
fa336b91 18645
f63fd14e 18646 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 18647
048addec 18648 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 18649
048addec 18650 * xfns.c: Use renamed symbols.
89512fcd 18651
f63fd14e 18652 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
18653 (fringe_bitmap_type): Renamed from bitmap_type.
18654 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18655 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
18656 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 18657
f63fd14e 18658 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
18659 (fringes_extra): Renamed from flags_areas_extra.
18660 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18661 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18662 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18663 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18664 (FRAME_X_LEFT_FRINGE_WIDTH):
18665 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18666 (FRAME_X_RIGHT_FRINGE_WIDTH):
18667 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
18668
186692001-11-15 Jason Rumney <jasonr@gnu.org>
18670
18671 * w32menu.c (add-menu-item): Make help_echo and radio buttons
18672 work for most menu items. From David Ponce
18673 <david.ponce@wanadoo.fr>.
18674
186752001-11-15 Gerd Moellmann <gerd@gnu.org>
18676
18677 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
18678 Some x_set_* function expect to be called even if old and new
18679 value are equal.
18680
18681 * xdisp.c (build_desired_tool_bar_string): Accept zero
18682 tool_bar_button_relief.
18683
18684 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
18685
18686 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
18687
18688 * xterm.c (x_draw_bar_cursor): If the background color of the
18689 glyph under the cursor equals the frame's cursor color, use
18690 the glyph's foreground color for drawing the bar cursor.
18691
18692 * dispnew.c (direct_output_forward_char): Fix character/byte
18693 position comparison.
7d18891d 18694
048addec 186952001-11-15 Miles Bader <miles@gnu.org>
d2936d21 18696
048addec
JD
18697 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
18698 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
18699 Update arguments to find_field.
18700 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
18701 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
18702 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
18703 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 18704
048addec 187052001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 18706
048addec 18707 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 18708
048addec
JD
18709 * dispextern.h (image_background, image_background_transparent):
18710 Conditionalize on HAVE_X_WINDOWS.
7d18891d 18711
048addec 187122001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 18713
048addec 18714 * print.c (Fprin1_to_string): Doc fix.
7d18891d 18715
048addec 18716 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 18717
048addec 18718 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 18719
048addec 18720 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 18721
048addec 18722 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 18723
048addec 18724 * eval.c (syms_of_eval): Doc fix.
7d18891d 18725
048addec 18726 * coding.c (syms_of_coding): Doc fix.
7d18891d 18727
048addec 18728 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 18729
048addec 18730 * dispnew.c (syms_of_display): Doc fix.
9474c847 18731
048addec 18732 * category.c (Fget_unused_category): Doc fix.
9474c847 18733
048addec 18734 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 18735
048addec 187362001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 18737
048addec 18738 * print.c (prin1, print): Doc fix.
e3059a5d 18739
048addec 187402001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 18741
048addec
JD
18742 * fontset.h: Remove declarations of variables
18743 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 18744
048addec
JD
18745 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
18746 `Vclip_large_size_font'.
eae936e2 18747
048addec 187482001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 18749
048addec 18750 * w32fns.c: Doc fix.
ddb67bdc 18751
048addec 187522001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 18753
048addec 18754 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 18755
048addec 18756 * fns.c: Doc fix.
6e1b91d7 18757
048addec 18758 * emacs.c: Doc fix.
1c1d3d69 18759
048addec 18760 * coding.c: Doc fix.
1c1d3d69 18761
048addec
JD
18762 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
18763 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
18764 `new style' [w/`doc:' keyword].
b6f4c7ba 18765
048addec 187662001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 18767
048addec
JD
18768 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
18769 LeaveNotify events. Only FocusIn and FocusOut do that now.
18770 (x_display_and_set_cursor): Do display hollow cursors in active
18771 minibuffer windows when they are not selected.
b6f4c7ba 18772
048addec 187732001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 18774
048addec 18775 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
18776 * w32term.c: Change doc-string comments to `new style'
18777 [w/`doc:' keyword]. Doc fixes.
a89f435d 18778
048addec
JD
18779 * w32fns.c: Don't define max.
18780 (Fx_open_connection): Only execute once.
a4cd0cd7 18781
048addec 187822001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 18783
048addec
JD
18784 * ccl.c: Change macros to use do-while block instead of if-else.
18785 Use braces to follow GNU Coding Standards.
eafb659a 18786
048addec 187872001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 18788
048addec 18789 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 18790
048addec 18791 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 18792
048addec
JD
18793 * insdel.c (replace_range): Use adjust_markers_for_replace
18794 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 18795
78819ebb 18796 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 18797
048addec
JD
18798 * textprop.c (set_text_properties_1): New subroutine
18799 broken out of set_text_properties.
18800 (set_text_properties): Use set_text_properties_1.
91823618 18801
048addec
JD
18802 * intervals.c (graft_intervals_into_buffer):
18803 Use set_text_properties_1 to clear out properties.
91823618 18804
048addec
JD
18805 * search.c (Freplace_match): Use replace_range to insert
18806 and delete. Don't request property inheritance from
18807 surrounding text.
86928dfb 18808
048addec 188092001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 18810
048addec 18811 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 18812 vertical fonts. Allow them if face name is explicitly specified.
048addec 18813 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 18814
048addec 188152001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 18816
048addec
JD
18817 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
18818 instead of malloc/free.
a78e0303 18819
048addec 188202001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 18821
048addec
JD
18822 * xfaces.c (merge_face_vectors): Use braces to follow GNU
18823 Coding Standards.
18824 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 18825
048addec 18826 * buffer.c (Fbury_buffer): Likewise.
0c99b139 18827
048addec 18828 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 18829
048addec
JD
18830 * coding.c (encode_coding): Use precomputed value of `src'.
18831 (encode_coding): Remove unused variable `src_end'.
18832 (code_convert_region): Remove unused variables `count'.
830ddd77 18833
048addec 188342001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 18835
048addec
JD
18836 * w32term.c (x_display_and_set_cursor): Do not move system caret
18837 if cursor_glyph is NULL.
55c6d645 18838
048addec 188392001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 18840
048addec 18841 * keymap.c (access_keymap): Fix compilation error.
5de38842 18842
048addec 188432001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 18844
048addec 18845 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 18846
048addec 188472001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 18848
048addec
JD
18849 * intervals.c (graft_intervals_into_buffer):
18850 Remove #ifdef'd-out code.
18851 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 18852
048addec
JD
18853 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
18854 code (eval-current-buffer).
18855 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 18856
048addec 188572001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 18858
048addec 18859 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 18860
048addec 188612001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 18862
048addec 18863 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 18864
048addec
JD
18865 * keyboard.c (make_lispy_event): Check integerness and fix
18866 Lisp_Object/int mixup.
17893c65 18867
048addec 188682001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 18869
048addec 18870 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 18871
048addec
JD
18872 * fontset.c (fontset_font_pattern): Remove unused variable
18873 `family_registry'.
d5360cc7 18874
048addec 18875 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 18876
048addec 188772001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 18878
048addec 18879 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 18880
048addec
JD
18881 * buffer.c (Fkill_buffer): Don't delete auto save file
18882 if buffer is modified.
d9d54213 18883
048addec 188842001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 18885
048addec
JD
18886 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
18887 CHECK_NUMBER_CDR.
b116830b 18888
048addec 188892001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 18890
048addec 18891 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 18892
048addec 188932001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 18894
048addec 18895 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 18896
048addec 188972001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 18898
048addec 18899 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 18900
048addec 189012001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 18902
048addec
JD
18903 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
18904 the program image directly.
982f6c7e 18905
048addec 189062001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 18907
048addec 18908 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 18909
048addec 189102001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 18911
048addec
JD
18912 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
18913 and CHECK_BUFFER.
d31053f9 18914
048addec
JD
18915 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
18916 (record_char): Likewise.
d31053f9 18917
048addec
JD
18918 * keyboard.c (make_lispy_event): Don't insist a drag event must
18919 move to a different buffer position. Instead, check for moving at
18920 least double_click_fuzz.
982f6c7e 18921
048addec 18922 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 18923
048addec 18924 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 18925
048addec
JD
18926 * indent.c (current_column_1, Fmove_to_column): Separate the code
18927 for display-table glyphs from the code for buffer text, to fix
18928 bugs in the former.
830047fd 18929
048addec 189302001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 18931
048addec
JD
18932 * buffer.c (Fbuffer_local_value): New function.
18933 (syms_of_buffer): Defsubr it.
2df5238c 18934
048addec
JD
18935 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
18936 value of `cursor-in-non-selected-windows'.
4e397688 18937
048addec
JD
18938 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
18939 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
18940 (syms_of_xdisp): Initialize it.
48b0f3ae 18941
048addec 189422001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 18943
048addec 18944 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 18945
048addec
JD
18946 * coding.c: Change doc-string comments to `new style' [w/`doc:'
18947 keyword].
3ecaf7e5 18948
048addec
JD
18949 * eval.c (top_level_value, top_level_set): Remove commented and
18950 #ifdef'd-out code.
18951 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 18952
048addec 189532001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 18954
048addec 18955 * xfns.c: Include unistd.h, if it exists.
8db2e33b 18956
048addec 18957 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 18958
048addec 18959 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 18960
048addec 189612001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 18962
048addec
JD
18963 * lisp.h (CHECK_STRING_CAR): New macro.
18964 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
18965 treating XCAR and XCDR as lvalues.
18966 (openp): Use CHECK_STRING_CAR.
18967 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 18968
048addec 189692001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 18970
048addec
JD
18971 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
18972 (SIGMASKTYPE): Define.
1b1acc13 18973
048addec 18974 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 18975
048addec 189762001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 18977
048addec
JD
18978 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
18979 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
18980 Fix typos in comments.
6cb16f95 18981
048addec
JD
18982 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
18983 and #ifdef'd-out code.
18984 Fix and reindent comments.
6cb16f95 18985
048addec 18986 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 18987
048addec
JD
18988 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
18989 argument `i' in macros.
6cb16f95 18990
048addec
JD
18991 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
18992 `i' in macros.
7e9d3c2f 18993
048addec
JD
18994 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
18995 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
18996 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
18997 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
18998 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
18999 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
19000 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
19001 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
19002 in macros.
7e9d3c2f 19003
048addec
JD
19004 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
19005 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
19006 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
19007 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
19008 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
19009 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
19010 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
19011 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
19012 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
19013 (remove unused second argument).
7e9d3c2f 19014
048addec 190152001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 19016
048addec
JD
19017 * syntax.c (describe_syntax): New wrapper.
19018 (Finternal_describe_syntax_value): Rename from describe_syntax.
19019 Don't insert space at front and \n at the end.
19020 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 19021
048addec
JD
19022 * regex.c (re_wctype): Try to fix some warnings.
19023 (regcomp, regexec): Don't forget the __restrict.
9ba48103 19024
048addec 190252001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 19026
048addec 19027 * textprop.c (Fget_char_property): Doc fix.
9ba48103 19028
048addec 190292001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 19030
048addec 19031 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 19032
048addec 19033 * data.c (Fsetq_default): Ditto.
c22e59e1 19034
048addec 19035 * callint.c (Finteractive): Ditto.
9271ed2c 19036
048addec 190372001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 19038
048addec
JD
19039 * macros.c: Don't include keymap.h any more.
19040
190412001-11-01 Richard M. Stallman <rms@gnu.org>
19042
19043 * data.c (Fmake_local_variable): Doc fix.
19044
19045 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
19046 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 19047
048addec 19048 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
19049 bindings along with or instead of the buffer local map.
19050 Make the overriding maps override what they should.
19051
f00691a3 190522001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
19053
19054 * window.c (grow_mini_window): Fix typo in comment.
19055
27188d11
GM
190562001-11-01 Gerd Moellmann <gerd@gnu.org>
19057
7b49b9d2
GM
19058 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
19059 (XTset_vertical_scroll_bar): Likewise.
19060
43f7c3ea
GM
19061 * xfns.c (x_build_heuristic_mask): Use four_corners_best
19062 instead of IMAGE_BACKGROUND.
c22e59e1 19063
b350c2e5
GM
19064 * xfns.c (four_corners_best): Reindent.
19065
c22e59e1 19066 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
19067 Handle :box so that it is possible to specify sexprs.
19068
bf00d461
EZ
190692001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
19070
19071 * s/hpux11.h: New file.
19072
f00691a3 190732001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 19074
2b209b97
PJ
19075 * emacs.c (USAGE1): Show command line option --no-window-system
19076 instead of --no-windows in usage.
19077 (standard_args): Rename --no-windows to --no-window-system.
19078 (bug_reporting_address): Follow Emacs coding conventions.
19079
9dbc9081
PJ
19080 * eval.c (Fcommandp): Doc fix.
19081 Change doc-string comments to `new style' [w/`doc:' keyword].
19082
4e10df59
PJ
19083 * frame.c (Fframe_live_p): Doc fix.
19084
19085 * buffer.c (selective-display-ellipses): Doc fix.
19086
dd387b25
GM
190872001-10-31 Gerd Moellmann <gerd@gnu.org>
19088
fe957e65
GM
19089 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
19090
dd387b25
GM
19091 * xfaces.c (realize_x_face): If C is not a single-byte character,
19092 set the face's colors_copied_bitwise_p instead of the defaulted_p
19093 members which have a different meaning.
19094 (free_face_colors): Do nothing for a face whose colors have been
19095 copied bitwise.
19096
c22e59e1 19097 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 19098
f00691a3 190992001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 19100
687784e8
PJ
19101 * marker.c, mocklisp.c: Change doc-string comments to `new style'
19102 [w/`doc:' keyword].
2e1280f8 19103
b9d9a9b9
GM
191042001-10-31 Gerd Moellmann <gerd@gnu.org>
19105
19106 * fns.c (require_unwind): Return Lisp_Object.
19107
f00691a3 191082001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 19109
fa1361cb
PJ
19110 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
19111 (last-input-char): Revert doc-string to be the same as the
19112 doc-string of `last-input-event'.
19113
6c465a15 19114 * xdisp.c: Fix typos in comments.
48400103 19115
eafa3196
GM
191162001-10-31 Gerd Moellmann <gerd@gnu.org>
19117
19118 * window.c (grow_mini_window): Handle case that the root
19119 window is already smaller than the nominal mininum height.
19120
747d3f2a
SM
191212001-10-30 Stefan Monnier <monnier@cs.yale.edu>
19122
bf9bb76f
SM
19123 * emacs.c (main): Don't call keys_of_macros any more.
19124
19125 * lisp.h (keys_of_macros): Remove.
19126
19127 * macros.c (keys_of_macros): Remove.
19128
747d3f2a
SM
19129 * xfaces.c (Fface_attribute_relative_p): Declare args.
19130
5e905a57
JR
191312001-10-30 Jason Rumney <jasonr@gnu.org>
19132
19133 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
19134 (enum_font_cb2): Ignore fonts with vertical orientation.
19135
3a426197
RS
191362001-10-30 Richard M. Stallman <rms@gnu.org>
19137
19138 * keyboard.c (Finput_pending_p): Doc fix.
19139
a742d646
GM
191402001-10-30 Gerd Moellmann <gerd@gnu.org>
19141
259cf6bc
GM
19142 * xterm.c (x_after_update_window_line): Don't run the code
19143 clearing in borders for rows whose visible height is 0.
19144
3f99f948
GM
19145 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
19146 resized_p flag is set. If not set, use the much less flickering
19147 method previously used.
19148
19149 * dispnew.c (change_frame_size_1): Set frame's resized_p.
19150
19151 * frame.h (struct frame) <resized_p>: New member.
19152
b4a3be43
GM
19153 * lread.c (to_multibyte): Ensure read_buffer is at least twice
19154 as large as the number of bytes to convert.
747d3f2a 19155
a742d646
GM
19156 * lread.c (to_multibyte): New function.
19157 (read1): Use it.
19158
cacbb9e9
EZ
191592001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
19160
19161 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
19162
99cb6b2f
GM
191632001-10-30 Gerd Moellmann <gerd@gnu.org>
19164
327f42ee 19165 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
19166 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
19167 if the row's fill_line_p is set and drawing the last glyph with
19168 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 19169
99cb6b2f
GM
19170 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
19171
8e8223e2
SM
191722001-10-29 Stefan Monnier <monnier@cs.yale.edu>
19173
19174 * xmenu.c: Include coding.h and charset.h.
19175 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
19176 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
19177 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
19178 Explicitly set wv->help. Use `TRUE' rather than `True'.
19179 (menu_help_callback): Use empty_string.
19180
19181 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
19182 (Fx_popup_dialog): Explicitly init f.
19183 (w32_menu_display_help): Use empty_string.
19184
4d083a8f
RS
191852001-10-29 Richard M. Stallman <rms@gnu.org>
19186
b2304472
RS
19187 * fns.c (Frequire): Detect recursive try to require the same
19188 feature 3 or more levels deep, and get error.
19189 (require_unwind): New subroutine.
19190 (require_nesting_list): New variable.
19191 (syms_of_fns): Init and staticpro it.
19192
4d083a8f
RS
19193 * print.c (print_object): Clarify indication of insertion type.
19194
2fe41216
EZ
191952001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
19196
90480000
EZ
19197 * coding.c (syms_of_coding): Document that locale-coding-system is
19198 used for decoding input on X.
19199
2fe41216
EZ
19200 * window.c (Fscroll_left, Fscroll_right): Doc fix.
19201
f00691a3 192022001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
19203
19204 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
19205 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
19206
60ebcfe8
GM
192072001-10-29 Gerd Moellmann <gerd@gnu.org>
19208
9a7bdceb
GM
19209 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
19210 use NO_CURSOR if cursor_in_non_selected_windows is false.
19211
3f08fcd2
GM
19212 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
19213 the slant attribute if FRAME is t.
19214
0ccfdad2
GM
19215 * xfns.c (x_set_internal_border_width): Set frame garbaged
19216 when X window doesn't exist yet.
19217
ef253080
GM
19218 * xterm.c (x_after_update_window_line): Clear internal border
19219 in different circumstances.
b116830b 19220
60ebcfe8
GM
19221 * xterm.c (XTread_socket) <KeyPress>: Don't use
19222 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
19223 <handa@etl.go.jp>.
19224
73d25f9c
EZ
192252001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
19226
19227 * m/ibms390.h: New file. From Adam Thornton
19228 <athornton@sinenomine.net>.
19229
cac1daf0
GM
192302001-10-28 Gerd Moellmann <gerd@gnu.org>
19231
053b3256 19232 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 19233
cac1daf0
GM
19234 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
19235 a loop counter.
19236
f00691a3 192372001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 19238
f9711de4 19239 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 19240
4707d2d0
PJ
19241 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
19242 keyword].
19243 Fix typos in comments.
b116830b 19244
d883731c
PJ
19245 * emacs.c (bug_reporting_address): New function.
19246 Use it when displaying usage message.
19247
04012254
PJ
19248 * minibuf.c (read_minibuf): Remove unused external declaration of
19249 variable `Qread_only'.
19250
13b1a09c
PJ
19251 * keymap.c (access_keymap): Remove unused variable `charset'.
19252
5bbf4378
MB
192532001-10-28 Miles Bader <miles@gnu.org>
19254
19255 * xfaces.c (merge_face_heights): Handle TO being relative as well.
19256 Remove #ifdef'd-out code.
19257 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
19258 (syms_of_xfaces): Initialize them.
19259
1ce1e4ee
JR
192602001-10-27 Jason Rumney <jasonr@gnu.org>
19261
19262 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
19263 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
19264 position using the system caret.
19265
19266 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
19267 (w32_system_caret_height, w32_system_caret_x)
19268 (w32_system_caret_y): New variables for tracking system caret.
19269 (w32_initialize): Initialize them.
c2d53558 19270 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 19271
c2d53558
SM
19272 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
19273 New messages types.
1ce1e4ee
JR
19274
19275 * w32term.c (note_mouse_highlight): Clear old help_echo.
19276
f00691a3 192772001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 19278
bb4600a4
PJ
19279 * xterm.c: Fix typo in a comment.
19280
7db35a48
PJ
19281 * emacs.c: Fix typos in comments.
19282 Remove unnecessary spaces.
19283 Change doc-string comments to `new style' [w/`doc:' keyword].
19284 (USAGE2): Fix typos in usage string.
19285
a7248e4f
PJ
19286 * xterm.c: Fix typo in a comment.
19287
52eb0373 19288 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
19289 emacs.c.
19290
62725a92
GM
192912001-10-27 Gerd Moellmann <gerd@gnu.org>
19292
798dbe1f 19293 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 19294 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
19295 farther backward when target_y was not reached.
19296
62725a92
GM
19297 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
19298 Display errno only if non-zero.
19299 (sound_warning): New function.
19300 (vox_configure): Don't treat failing to set sample rate as error.
19301 (various places): Improve error messages.
19302
d4e34d24
EZ
193032001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
19304
944e6f60
EZ
19305 * fileio.c (Faccess_file): Run the argument filename through
19306 Fexpand_file_name, before using it.
19307
d4e34d24
EZ
19308 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
19309 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
19310
38d2af0c
GM
193112001-10-26 Gerd Moellmann <gerd@gnu.org>
19312
da80a8d5
GM
19313 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
19314
38d2af0c
GM
19315 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19316 Fix clearing in the case of scroll bars on the right.
c2d53558 19317
45de4a6f 193182001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
19319
19320 * w32gui.h (XImage): Add a dummy typedef.
19321
fbd5ceb2
GM
193222001-10-26 Gerd Moellmann <gerd@gnu.org>
19323
c2d53558 19324 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 19325
b23236fb
EZ
193262001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
19327
19328 * frame.c (Fframe_parameter): Fix last change.
19329
5d991fc4
EZ
19330 * fileio.c: Revert last change (which removed old commented-out
19331 version of expand-file-name). Add a comment that explains why
19332 this old version should not be removed.
19333
879eadc3
GM
193342001-10-25 Gerd Moellmann <gerd@gnu.org>
19335
75700ff2
GM
19336 * frame.c (Fframe_parameter): Fix a bug whereby some
19337 ``artificial'' frame parameters, like `minibuffer' were not
19338 obtained by calling Fframe_parameters.
19339
dfe92a6a
GM
19340 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
19341 cursor differently.
19342
879eadc3
GM
19343 * xdisp.c (move_it_vertically_backward): Compute line height
19344 differently. Add heuristic to try to be more compatible to 20.x.
19345
e1010ebe
SM
193462001-10-25 Stefan Monnier <monnier@cs.yale.edu>
19347
d73a471b
SM
19348 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
19349
d6da5a06
GM
19350 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
19351 boolean.
e1010ebe 19352
f66bd220
MB
193532001-10-25 Miles Bader <miles@gnu.org>
19354
19355 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
19356 BG is a pointer to a structure, not a structure.
19357 (gif_format, png_format): Add missing commas.
19358
d436d538
RS
193592001-10-24 Richard M. Stallman <rms@gnu.org>
19360
19361 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 19362 (syms_of_xfaces): Defsubr it.
d436d538 19363
f00691a3 193642001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
19365
19366 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
19367 variable `area'.
19368
f00691a3 193692001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 19370
c2d53558 19371 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 19372
e2a57b34
MB
193732001-10-25 Miles Bader <miles@gnu.org>
19374
19375 * dispextern.h (struct image): Add `background',
19376 `background_valid', and `background_transparent' fields.
19377 (image_background, image_background_transparent): New declarations.
19378 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
19379 * xfns.c (image_background, image_background_transparent)
19380 (four_corners_best): New functions.
c2d53558 19381 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
19382 (gs_format): Add `:background' entry.
19383 (lookup_image): Set IMG's background color if specified.
19384 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19385 when appropriate.
19386 (x_clear_image_1): Reset `background_valid' and
19387 `background_transparent_valid' fields.
19388 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19389 calculating it here. Set IMG's background_transparent field.
19390 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19391 (enum png_keyword_index): Add PNG_BACKGROUND.
19392 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19393 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19394 (enum gif_keyword_index): Add GIF_BACKGROUND.
19395 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 19396 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
19397 Pre-calculate image background color where necessary.
19398 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19399 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19400 color to use for image glyph reliefs.
19401
b547b6e8
GM
194022001-10-24 Gerd Moellmann <gerd@gnu.org>
19403
d9e3b8c6
GM
19404 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
19405 in full-width rows.
c2d53558 19406
b547b6e8
GM
19407 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19408 Fix clearing of area not covered by scroll bar.
19409
f00691a3 194102001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 19411
52eb0373 19412 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 19413 and `real_start'.
c2d53558 19414 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
19415 (glyph_rect): Remove unused variable `area'.
19416
76cb5e06
GM
194172001-10-24 Gerd Moellmann <gerd@gnu.org>
19418
bdbdebff 19419 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
19420
19421 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
19422 (row_containing_pos): Take additional argument DY.
19423 Treat rows ending in middle of char differently.
62e33982
GM
19424 (display_line): Handle tabs on window systems differently.
19425
19426 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
19427 with additional argument.
19428
19429 * dispextern.h (row_containing_pos): Adjust prototype.
19430
76cb5e06
GM
19431 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
19432 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
19433 (try_window_id, try_window_reusing_current_matrix)
19434 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 19435 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 19436
f00691a3 194372001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 19438
c9e60620
PJ
19439 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
19440 gnuemacs).
19441 (HAVE_BOXES): Fix typo in comment.
19442 (push_menu_pane): Fix typo in comment.
19443
52eb0373 19444 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
19445 of `Qwhen'.
19446 (single_display_prop_string_p): Remove unused local declarations
19447 of `Qwhen' and `Qmargin'.
19448 (string_buffer_position): Remove unused variable `around'.
19449 (store_frame_title): Remove unused variable `width'.
19450
15c565ac
PJ
19451 * window.c: Don't define max.
19452 (coordinates_in_window): Remove unused variable `uy'.
19453
a8818eb9
PJ
19454 * widget.c: Don't define max.
19455
996fee11
PJ
19456 * process.c: Don't define max.
19457 (create_process): Remove unused variable `buffer'.
19458
496e1a5b
GM
194592001-10-23 Gerd Moellmann <gerd@gnu.org>
19460
c2d53558 19461 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 19462
5905ae8b
EZ
194632001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
19464
19465 * xfaces.c (Finternal_set_lisp_face_attribute)
19466 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
19467 frame is on a windowed display.
19468
24db49fb
GM
194692001-10-23 Gerd Moellmann <gerd@gnu.org>
19470
c2d53558
SM
19471 * dispnew.c (sync_window_with_frame_matrix_rows):
19472 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
19473 of marginal areas.
19474
c2d53558 19475 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 19476
f0487f05
EZ
194772001-10-23 Andreas Schwab <schwab@suse.de>
19478
19479 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
19480 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
19481
f0a48a01
GM
194822001-10-23 Gerd Moellmann <gerd@gnu.org>
19483
c2d53558 19484 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
19485 REAL_END. Notice if cursor gets overwritten.
19486 (notice_overwritten_cursor): Take X positions as parameters.
19487 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19488 around call to x_draw_glyphs.
19489
f00691a3 194902001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 19491
fc11dff0
PJ
19492 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
19493 instead of C) and usage.
a50a10a0 19494
fc11dff0
PJ
19495 * editfns.c (char-to-string): Fix argument names (use CHAR instead
19496 of C) and usage.
a50a10a0
PJ
19497
19498 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
19499 `left', `max_width' and `max_height'.
19500
8738febd
GM
195012001-10-23 Gerd Moellmann <gerd@gnu.org>
19502
19503 * xdisp.c (display_line): For a tab continued to the next line,
19504 set row's ends_in_middle_of_char_p.
19505
653c329b
GM
195062001-10-22 Gerd Moellmann <gerd@gnu.org>
19507
19508 * xdisp.c (display_line): Fix computation of continuation lines
19509 width for TABs.
19510
f00691a3 195112001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 19512
7ba51063
PJ
19513 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
19514 `Qlaplace'.
19515
f958c5ac
PJ
19516 * fileio.c: Remove unused code.
19517
eb360291
MB
195182001-10-22 Miles Bader <miles@gnu.org>
19519
19520 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
19521 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
19522 Remove `DOC_STRINGS_IN_COMMENTS' cases.
19523
98515cf0
JR
195242001-10-21 Jason Rumney <jasonr@gnu.org>
19525
19526 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
19527
93026d88
EZ
195282001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
19529
19530 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
19531 (Finsert_string): Avoid the multi-line string literals warning.
19532
c9a95b79
MB
195332001-10-22 Miles Bader <miles@gnu.org>
19534
19535 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
19536 (Fdocumentation): Don't use it.
19537 (syms_of_doc): Don't initialize it.
19538
19539 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
19540 * print.c (Fwith_output_to_temp_buffer): Likewise.
19541 * window.c (Fsave_window_excursion): Likewise.
c2d53558 19542 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 19543 (Fsave_restriction): Likewise.
c2d53558
SM
19544 * eval.c (Frun_hooks, Frun_hook_with_args)
19545 (Frun_hook_with_args_until_failure)
19546 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
19547 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
19548 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
19549 (Funwind_protect, Fcondition_case): Likewise.
19550 * coding.c (Ffind_operation_coding_system): Likewise.
19551 * keyboard.c (Ftrack_mouse): Likewise.
19552
a3b10252
MB
195532001-10-21 Miles Bader <miles@gnu.org>
19554
c2d53558 19555 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
19556 (Fmake_hash_table): Add usage: string to doc string.
19557 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 19558 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
19559 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
19560 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
19561 (Fml_prefix_argument_loop): Likewise.
19562
f00691a3 195632001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 19564
c2d53558 19565 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 19566
c6f73eec
PJ
19567 * sysdep.c (init_sys_modes): Change doc-string comments to `new
19568 style' [w/`doc:' keyword].
19569
19570 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
19571 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
19572 comments to `new style' [w/`doc:' keyword].
19573
3cf3436e
JR
195742001-10-21 Jason Rumney <jasonr@gnu.org>
19575
19576 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
19577
c169b8f1
JR
19578 * w32term.c (remember_mouse_glyph): New function.
19579 (w32_mouse_position): Use it.
19580 (note_mouse_movement): If the mouse moved off the glyph, remember
19581 its new position.
c2d53558 19582
4fdd691b
JR
19583 * w32term.h (struct w32_output): Correct spelling of x_compatible.
19584 (w32_display_info): Add mouse_face_overlay.
19585
c169b8f1
JR
19586 * w32term.c (notice_overwritten_cursor): Renamed from
19587 note_overwritten_text_cursor. Rewritten to take glyph widths into
19588 account.
19589 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
19590 (fast_find_string_pos): New function.
19591 (fast_find_position): Return the correct vpos. Add parameter
19592 STOP. In the final row, stop before glyphs having STOP as object.
19593 Don't consider glyphs that are not from a buffer.
19594 (fast_find_position) [0]: Add a presumably more correct version
19595 for after 21.1.
19596 (expose_window_tree, expose_frame): Don't compute intersections here.
19597 (expose_window): Do it here instead.
19598 (expose_window_tree, expose_window, expose_line): Return 1 when
19599 overwriting mouse-face.
19600 (expose_window): If W is the window currently being updated, mark
19601 the frame garbaged.
19602 (expose_frame): If mouse-face was overwritten, redo it.
19603 (x_use_underline_position_properties): New variable.
19604 (syms_of_xterm): DEFVAR_BOOL it.
19605 (x_draw_glyph_string): Add comment to use it in future.
19606 (x_draw_glyph_string): Restore clipping after drawing box.
19607 Fix a computation of the underline position.
19608 (w32_get_glyph_string_clip_rect): Minor cleanup.
19609 (x_fill_stretch_glyph_string): Remove an assertion.
19610 (x_produce_glyphs): Don't convert multibyte characters
19611 to unibyte characters in unibyte buffers.
19612 (cursor_in_mouse_face_p): New function.
19613 (x_draw_stretch_glyph_string): Use it to choose a different GC
19614 when drawing a cursor within highlighted text. Don't draw
19615 background again if it has already been drawn.
19616 (x_draw_glyph_string_box): Don't draw a full-width
19617 box just because the glyph row's full_width_p flag is set.
19618 (x_draw_glyphs): Fix computation of rightmost x for
19619 full-width rows.
19620 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
19621 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 19622 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
19623 (x_update_window_end): Handle overwritten mouse face
19624 also for tool bar windows.
19625 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
19626 DRAW is DRAW_IMAGE_RAISED.
19627 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
19628 actually redrawn. Make the function static.
19629 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
19630 optimize away highlighting if we pass over that same overlay again.
19631 (note_mouse_highlight): Call mouse_face_overlay_overlaps
19632 to detect a case where we have to highlight a different region
19633 despite not having left the currently highlighted region.
19634 Set mouse_face_overlay in the x_display_info. Avoid changing the
19635 mouse pointer shape when show_mouse_face has already done it, or
19636 there is no need. Handle mouse-face and help-echo in strings.
19637 (glyph_rect): New function.
19638 (w32_mouse_position): Use it to raise the threshold for mouse
19639 movement event generation.
19640 (w32_initialize_display_info): Initialize the x_display_info's
19641 mouse_face_overlay.
19642 (w32_set_vertical_scroll_bar): Don't clear a zero height
19643 or width area.
19644 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
19645 a widget to zero height.
19646
3cf3436e 19647 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 19648 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
19649 equivalents in menu_items.
19650 (w32_menu_show): Don't overwrite an item's name with its key
19651 description in case the description is a multibyte string.
19652 (single_submenu): Some cleanup.
19653
19654 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
19655 (postprocess_image): New function.
19656 (lookup_image): Call it for all image types except PostScript.
19657 (x_kill_gs_process): Call postprocess_image.
19658 (tiff_error_handler, tiff_warning_handler): New functions.
19659 (tiff_load): Install them as handlers.
19660 (x_kill_gs_process): Recognize if someone has cleared the image
19661 cache under us.
19662 (valid_image_p): Protect better against invalid image
19663 specifications. Previous code could signal an error.
19664 (Fx_hide_tip, Fshow_tip): Doc fix.
19665 (Fv_max_tooltip_size): New variable.
19666 (syns_of_xfns): DEFVAR_LISP it.
19667 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 19668 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
19669 window_width. Use a maximum tooltip size specified by
19670 Vx_max_tooltip_size, if that has valid contents.
19671 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
19672 Make sure the tooltip is completely visible.
19673 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
19674 (Fx_create_frame): Adjust the frame's height for presence
19675 of the tool bar before calling x_figure_window_size.
19676 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
19677 when the window gets smaller.
19678 (x_set_foreground_color): Set frame's cursor_pixel.
19679 (x_set_foreground_color, x_set_background_color): Cleaned up.
19680 (x_set_font): Handle case of x_new_fontset returning the same name
19681 as before, although there was a change in fontsets.
19682
386ca361
MB
196832001-10-21 Miles Bader <miles@gnu.org>
19684
c2d53558 19685 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
19686 (Flogxor): Add usage: string to doc string.
19687 * charset.c (Fstring): Likewise.
19688 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
19689 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
19690
f00691a3 196912001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 19692
03be2694
PJ
19693 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
19694
19695 * alloc.c: Reindent DEFUNs with doc: keywords.
19696
19697 * abbrev.c (Finsert_abbrev_table_description): Reindent.
19698
14ff1ee0
PJ
19699 * frame.c: Change doc-string comments to `new style' [w/`doc:'
19700 keyword].
19701
2f147815 19702See ChangeLog.9 for earlier changes.
6922b018
KH
19703
19704;; Local Variables:
49b3bd82 19705;; coding: iso-2022-7bit
6922b018 19706;; End:
2a34a036 19707
2f147815 19708 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
19709 Copying and distribution of this file, with or without modification,
19710 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
19711
19712;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4