(debugger-make-xrefs): Don't assume case-fold-search is nil.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a4b0e228
JD
12005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
3 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
4 so tool tips don't interfere with press on tool bar button.
5
f6a18aa2
RS
62005-10-23 Richard M. Stallman <rms@gnu.org>
7
8 * casetab.c (Fset_case_table): Doc fix.
9
10 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
11 (readevalloop): Compute ENTIRE properly.
12 (syms_of_lread) <load-history>: Doc fix.
13
45158e77
RS
142005-10-21 Richard M. Stallman <rms@gnu.org>
15
16 * lread.c (Fload): Simplify gcpro structure.
17 Gcpro FOUND as well as FILE, but not EFOUND.
18 Unless preloading, record FOUND instead of FILE in Vload_history.
19 Rename repeat local FILE to MSG_FILE.
20 (syms_of_lread) <load-history>: Doc fix.
21
dfa1cd4d
KH
222005-10-21 Kenichi Handa <handa@m17n.org>
23
96664fc0 24 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 25
1064a9ea
KS
262005-10-20 Kim F. Storm <storm@cua.dk>
27
28 * buffer.c (clone_per_buffer_values): Remove unused var tem.
29 (init_buffer): Remove unused vars dotstat, pwdstat.
30
31 * ccl.c (check_ccl_update): Remove unused var vp.
32
33 * fileio.c (auto_save_error): Call SAFE_FREE.
34
35 * fns.c (Fchar_table_range): Remove unused var i.
36
37 * minibuf.c (display_completion_list_1): New wrapper function
38 for Fdisplay_completion_list.
39 (Fminibuffer_completion_help): Use it.
40
41 * term.c (encode_terminal_code): Remove unused var src_start.
42
43 * window.c (Fwindow_tree): Remove unused var alist.
44
45 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
46
ce13796f
EZ
472005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
48
49 * unexelf.c (unexec): Fix calls to `fatal' with less than 3
50 arguments.
51
ad9c16d3
EZ
522005-10-20 Olli Savia <ops@iki.fi> (tiny change)
53
54 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
55
26e9d2cf
AS
562005-10-20 Andreas Schwab <schwab@suse.de>
57
58 * minibuf.c (Fdisplay_completion_list): Doc fix.
59
e50165ec
KS
602005-10-19 Kim F. Storm <storm@cua.dk>
61
62 * image.c (check_image_size): Handle integer Vmax_image_size value
63 directly as max pixel value. Use default frame size for null frame.
64 (syms_of_image) <max-image-size>: Describe integer value.
65
d7b94c98
RF
662005-10-19 Romain Francoise <romain@orebokech.com>
67
68 * emacs.c (main): Update copyright year.
69
f1f25b99
CY
702005-10-18 Chong Yidong <cyd@stupidchicken.com>
71
72 * image.c (Vmax_image_size): New variable.
73 (check_image_size): New function.
74 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
75 (gif_load, gs_load): Use it.
76 (lookup_image): Try loading again if previous load failed.
77 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
78 to display in, NULL if none.
79 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
80 argument.
81
f42d19a2
RS
822005-10-18 Richard M. Stallman <rms@gnu.org>
83
84 * search.c (Fstring_match): Doc fix.
85
bcbdafce
YM
862005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
87
88 * macterm.c (note_mouse_movement): Use PtInRect.
89 (XTread_socket): Also ignore mouse motion just before a button
90 release event. Don't process button release event when mouse is
91 not grabbed.
92
f5fab556
MY
932005-10-16 Masatake YAMATO <jet@gyve.org>
94
95 * minibuf.c (Fdisplay_completion_list): Add new optional
e50165ec 96 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
97 to the optional argument during running `completion-setup-hook'.
98
2ef1363e
YM
992005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
100
101 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
102 Allow nil as argument.
103 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
104 for encoding arguments as UTF-16 in native byte order, no BOM.
105
106 * macfns.c (Fx_create_frame): Add debugging code.
107 (Fx_show_tip): Set frame pixel width and height.
108
109 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
110 (FRAME_NORMAL_GC): New macro.
111 (mac_draw_line, mac_clear_area, mac_clear_window)
112 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
113 (mac_draw_image_string, mac_draw_image_string_16): Rename from
114 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
115 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
116 All uses changed.
117 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
118 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
119 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
120 (mac_draw_string_16, mac_draw_image_string)
121 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
122 (mac_scroll_area): Drawing functions now take frame as destination.
123 All uses changed.
124 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
125 (x_draw_fringe_bitmap): Set clipping area in face->gc.
126
127 * macterm.h (mac_clear_area): Add extern.
128
fc5c7550
YM
1292005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
130
131 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
132 changes for xterm.c.
133
134 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
135
fed91c38
KH
1362005-10-14 Kenichi Handa <handa@m17n.org>
137
138 * search.c (search_buffer): Give up BM search on case-fold-search
139 if one of a target character has a case-equivalence of different
140 charset even if that target charcter is an ASCII.
141
142 * casefiddle.c (casify_object): Fix for the case that case
143 conversion change the byte length.
144
0ea1a8af
KS
1452005-10-14 Kim F. Storm <storm@cua.dk>
146
147 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
148 (handle_one_xevent): Only clear help_echo_string; restore it if
149 note_mouse_movement didn't record any mouse movement.
150
151 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
152 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
153
154 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
155 (Fposn_at_x_y): Fix calculation of x coordinate.
156 (Fposn_at_point): Return nil if point is hscrolled out of view.
157
6e5b2385
AS
1582005-10-13 Andreas Schwab <schwab@suse.de>
159
160 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
161 non-interactive mode.
162
6de0e1a2
YM
1632005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
164
165 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
166
78f3b91f
KS
1672005-10-12 Kim F. Storm <storm@cua.dk>
168
169 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
170
b639c9be
RF
1712005-10-12 Romain Francoise <romain@orebokech.com>
172
173 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
174
76d8f04c
YM
1752005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
176
177 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
178 get end of text rows. Obtain header-line/mode-line rows directly.
179
621036f9
YM
180 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Restore
181 help_echo_string if mouse is moved inside last_mouse_glyph.
182
d76432f5
KS
1832005-10-12 Kim F. Storm <storm@cua.dk>
184
7a127784
KS
185 * xdisp.c (remember_mouse_glyph): New generic version based on
186 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
187 properly handle all different window areas.
188
189 * dispextern.h (remember_mouse_glyph): Add prototype.
190
191 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
192 (note_mouse_movement, XTmouse_position): Use generic
193 remember_mouse_glyph, add last_mouse_glyph arg.
194
195 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
196 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
197 (note_mouse_movement, w32_mouse_position): Use generic
198 remember_mouse_glyph, add last_mouse_glyph arg.
199
200 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
201 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
202 (XTmouse_position): Adapt to use generic remember_mouse_glyph
203 instead of pixel_to_glyph_coords.
204
d76432f5
KS
205 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
206 Fix x position for ON_TEXT when left margin width > 0.
207
55a4ac3e
KS
2082005-10-11 Kim F. Storm <storm@cua.dk>
209
d76432f5 210 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
211
212 * keyboard.c (make_lispy_position): Fix buffer calculations for
213 mouse click or movement in right fringe and the margins.
214
2d4713aa
JB
2152005-10-11 Juanma Barranquero <lekktu@gmail.com>
216
217 * image.c (fn_jpeg_stdio_src): Don't define it.
218 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
219 (our_common_init_source): Rename from `our_init_source'.
220 (our_common_term_source): Rename from `our_term_source'.
221 (our_memory_fill_input_buffer): Rename from
222 `our_fill_input_buffer'.
223 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
224 (jpeg_memory_src): Use the new names.
225 (struct jpeg_stdio_mgr): New struct.
226 (JPEG_STDIO_BUFFER_SIZE): New constant.
227 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
228 (jpeg_file_src): New functions.
229 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
230
71b7a47f
YM
2312005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
232
233 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
234 (fm_font_family_alist): New variable.
235 (syms_of_macterm): Initialize and staticpro it.
236 (decode_mac_font_name): Replace '-' in family name with '_' if it
237 occurs just once. Lower family name.
238 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
239 All uses changed. Remove argument MF and code conversion for it.
240 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
241 to CHARSET. Parse font size. Lower family name. Return integer
242 value for status of parsing.
243 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
244 Don't use Fdowncase because family name is already lowered by
245 decode_mac_font_name.
246 (init_font_name_table): Always call decode_mac_font_name. Add
247 pair of family name and its reference to fm_font_family_alist.
248 (mac_clear_font_name_table): Clear fm_font_family_alist.
249 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
250 Lookup fm_font_family_alist to get font family reference.
251 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
252 name is already lowered by parse_x_font_name.
253
74051a92
KS
2542005-10-11 Kim F. Storm <storm@cua.dk>
255
31ab1f05
KS
256 * xterm.c (glyph_rect): Return 0 if position is outside text area.
257
74051a92
KS
258 * keyboard.c (make_lispy_position): Fix buffer position calculation for
259 mouse click or movement in fringe.
260
9b909870
JR
2612005-10-10 Jason Rumney <jasonr@gnu.org>
262
263 * xterm.c (remember_mouse_glyph): New function.
58af5591 264 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 265 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 266 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 267
f9e36a6d
JD
2682005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
269
58af5591 270 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 271
04bc7945
JB
2722005-10-10 Juanma Barranquero <lekktu@gmail.com>
273
274 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
275 (next_frame, prev_frame, set_term_frame_name): Make static.
276
277 * window.c (Fwindow_tree): Fix spelling.
278
41791a20
RF
2792005-10-09 Romain Francoise <romain@orebokech.com>
280
281 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
282
e313fc07
JD
2832005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
284
58af5591
KS
285 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
286 Add options -nb, --no-bitmap-icon.
e313fc07
JD
287
288 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
289
61e62f5f
YM
2902005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
291
292 * macgui.h (MAX_CLIP_RECTS): New define.
293 (struct _XGC): New member clip_region.
294 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
295 clip_rects.
296
297 * macterm.c (GC_CLIP_REGION): New macro.
298 (saved_port_clip_region): New variable.
299 (mac_begin_clip, mac_end_clip): New functions.
300 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
301 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
302 (mac_copy_area_with_mask, mac_scroll_area): Use them.
303 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
304 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
305 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
306 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
307 rectangles stored in gc.
71b7a47f 308 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
309 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
310 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
311 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
312 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
313 (x_draw_bar_cursor): Use them.
314 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
315 get multiple clipping rectangles.
316
317 * macterm.h (mac_term_init): Add types to extern.
318 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 319 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
320 scroll_bar_background_pixel in #if 0.
321 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
322
323 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 324 Add debugging code.
61e62f5f 325
ef1b4c9e
KS
3262005-10-08 Kim F. Storm <storm@cua.dk>
327
328 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
329
f1010549
KS
3302005-10-07 Kim F. Storm <storm@cua.dk>
331
332 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
333 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
334 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
335
c2ded1b7
YM
3362005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
337
338 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
339 to for_overlaps. Now occupy 3 bits.
340 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
341 (OVERLAPS_ERASED_CURSOR): New defines.
342 (struct redisplay_interface): Add new OVERLAPS arg to member
343 fix_overlapping_area.
344 (x_fix_overlapping_area): Add new OVERLAPS arg.
345 (get_glyph_string_clip_rects): Add extern.
346
347 * dispnew.c (redraw_overlapping_rows): Call
348 rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
349
350 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
351 for_overlaps.
352 (get_glyph_string_clip_rects): New function created from
f1010549
KS
353 get_glyph_string_clip_rect. Set clipping rectangles according to the
354 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
355 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
356 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
357 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 358 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 359 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
360 calculating clipping rectangles later. Call x_fix_overlapping_area
361 with new OVERLAPS arg to draw only erased cursor area.
f7270128 362 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 363 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
364
365 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
366 struct glyph_string to for_overlaps.
367
a19a0003
RS
3682005-10-04 Richard M. Stallman <rms@gnu.org>
369
370 * alloc.c (refill_memory_reserve): Conditionalize the body,
371 not the function's existence.
372
abc8ce50
KS
3732005-10-04 Kim F. Storm <storm@cua.dk>
374
375 * window.c (window_split_tree): New function.
376 (Fwindow_split_tree): New defun.
377 (syms_of_window): Defsubr it.
378
66533b25
YM
3792005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
380
381 * macterm.c (mac_invert_rectangle): New function.
382 (XTflash): Use it.
383
4156359e
SM
3842005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
385
4e2f601f
SM
386 * regex.h (re_char): Don't expose it in the interface.
387 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
388
389 * regex.c (re_char): Move it back here.
390 (re_set_whitespace_regexp): Change the arg's type to not use it.
391
4156359e
SM
392 * keyboard.c (make_lispy_event): If point has moved between down and up
393 event, make it a drag, not a click, to mirror what
394 mouse-drag-region expects.
395
eb27c2ca
DN
3962005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
397
398 * lisp.h (fatal): Undo previous change.
399 * term.c (fatal): Undo previous change.
400
b059f7d0
RS
4012005-10-01 Richard M. Stallman <rms@gnu.org>
402
403 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
404
21a9a7be
KS
4052005-10-01 Kim F. Storm <storm@cua.dk>
406
407 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
408
ddcb7665
YM
4092005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
410
411 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
412
413 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 414 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
415 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
416 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
417
418 * macgui.h (struct _XCharStruct): New member valid_p.
419 (STORE_XCHARSTRUCT): Set valid_p.
420 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
421
422 * macterm.c (mac_draw_string_common, x_per_char_metric)
423 (mac_compute_glyph_string_overhangs, init_font_name_table)
424 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
425 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
426 (x_draw_glyph_string_background)
427 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
428 XDrawImageString. Always draw background and foreground separately.
429 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
430 functions for one-byte chars when using ATSUI-compatible fonts.
431 (atsu_font_id_hash) [USE_ATSUI]: New variable.
432 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
433 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
434 max_char_or_byte2 more in detail.
435 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
436
fa8459a3
DN
4372005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
438
4156359e 439 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
440 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
441
442 * unexelf.c (fatal): Fix prototype.
443
444 * term.c (fatal): Implement using varargs.
445
21a9a7be 446 * regex.c (re_char): Move typedef ...
fa8459a3 447 * regex.h (re_char): ... here.
4156359e 448 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
449
450 * emacs.c (malloc_set_state): Fix return type.
451 (endif): Fix type.
452
453 * lisp.h (fatal): Add argument types.
454
455 * dispextern.h (fatal): Delete prototype.
456
457 * systime.h: (make_time): Prototype moved from ...
458 * editfns.c (make_time): ... here.
459
460 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
461 * dired.c:
462 * xsmfns.c:
fa8459a3 463 * process.c: Likewise.
21a9a7be 464
fa8459a3
DN
465 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
466 Add parameter types.
467 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
468 (emacs_blocked_free): Change definition to match __free_hook.
469 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 470 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 471
97c3e4cc
RF
4722005-09-30 Romain Francoise <romain@orebokech.com>
473
474 * minibuf.c (Fread_buffer): Follow convention for reading from the
475 minibuffer with a default value. Doc fix.
476
8ad8c5ce
JL
4772005-09-29 Juri Linkov <juri@jurta.org>
478
479 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
480 Rename argument name `string' to `format-string'.
481 (Fformat): Doc fix.
482
64da5759
KS
4832005-09-28 Kim F. Storm <storm@cua.dk>
484
485 * image.c (gif_load): Fix size of allocated image buffer
486 for images where a sub-image may be larger than the image's
487 total height/width specifications.
488
eaf92438
YM
4892005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
490
491 * macgui.h (struct _XCharStruct): Each member now takes short value.
492
43f15d4a
DN
4932005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
494
495 * xfaces.c (lookup_derived_face): Add parameter type.
496
497 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
498
499 * marker.c (verify_bytepos): Add parameter type.
500
501 * process.c (get_operating_system_release): Move prototype ...
502
503 * systime.h (get_operating_system_release): ... here.
504
04bc7945
JB
505 * xterm.c (handle_one_xevent): Refer to union field to match the
506 type required by the function definition.
507 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
508
509 * xterm.h: ... here.
510
511 * fns.c (internal_equal, seed_random): Fix prototypes.
512 (internal_equal): Add missing parameter.
513
c769dcac
RS
5142005-09-25 Richard M. Stallman <rms@gnu.org>
515
516 * keyboard.c (update_menu_bindings): Variable deleted.
517 (syms_of_keyboard): Don't defvar it.
518 (parse_menu_item): Don't test it.
519
8dbf19c7
RS
5202005-09-23 Richard M. Stallman <rms@gnu.org>
521
522 * editfns.c (Fformat): Explicitly test for end of format string
523 and don't use `index'.
524
3480d92b
DN
5252005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
526
4156359e
SM
527 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
528 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
529
530 * sysdep.c (get_current_dir_name): Also define if
64da5759 531 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
532
533 * m/ibmrs6000.h: Test for USG5, not USG5_4.
534
5db60f31
KS
5352005-09-22 Kim F. Storm <storm@cua.dk>
536
537 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
538 (message2): Fix commentary. Ok to use alloca'ed memory.
539 Still not ok to use Lisp string data (because of GC).
540 (set_message): Add comment why GC cannot happen.
541
7c3d233d
YM
5422005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
543
544 * macterm.c (xlfdpat_block_match_1): Fix assertion.
545 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
546 variants for a scalable font multiple times.
547
acde1152
YM
5482005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
549
550 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
551 Setup slave tty options before forking.
552
52d166e0
JD
5532005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
554
555 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
556 positions have been set for the frame (as is done for frames in
557 special-display-buffer-names).
558
12d10bc7
KS
5592005-09-19 Kim F. Storm <storm@cua.dk>
560
561 * editfns.c (Fformat): Don't scan past end of format string that
562 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
563
9f1cf0e3
AS
5642005-09-18 Andreas Schwab <schwab@suse.de>
565
566 * window.h (struct window): Remove height_fixed_p, no longer set.
567
568 * window.c (make_window): Don't initialize height_fixed_p.
569 (window_fixed_size_p): Don't use it.
570
8a658a52
JPW
5712005-09-18 John Paul Wallington <jpw@pobox.com>
572
573 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
574
be9bb408
YM
5752005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
576
577 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
578
579 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
580 New variables.
581 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
582 file selection.
583
584 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
585
cbf223e1
EZ
5862005-09-17 Eli Zaretskii <eliz@gnu.org>
587
588 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
589 (obj): Use XMENU_OBJ, not a literal xmenu.o.
590
e3f509dd
RF
5912005-09-16 Romain Francoise <romain@orebokech.com>
592
8ccd3630 593 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 594
5c4757d3
RS
5952005-09-15 Richard M. Stallman <rms@gnu.org>
596
597 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
598 (display_mode_element): Instead of `lisp_string' and `this',
599 record `offset' and increment that.
600 `last_offset' replaces `last'.
601
602 * Makefile.in (XMENU_OBJ): Variable deleted.
603 (obj): Use xmenu.o unconditionally.
604 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
605
606 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
607
01978521
KS
6082005-09-15 Kim F. Storm <storm@cua.dk>
609
610 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
611 (reseat_at_next_visible_line_start): Likewise (in xassert).
612
ccf61795
RF
6132005-09-14 Romain Francoise <romain@orebokech.com>
614
615 * fileio.c (write_region_inhibit_fsync): New variable.
616 (Fwrite_region): Use it to skip call to fsync.
617 (syms_of_fileio): Initialize it.
618
2b046a72
KH
6192005-09-14 Kenichi Handa <handa@m17n.org>
620
24a2b282
KH
621 * coding.c (code_convert_region_unwind): Argument format changed.
622 (run_pre_post_conversion_on_str): If pre-write-conversion function
623 changed the current buffer, delete the new buffer.
624 (run_pre_write_conversin_on_c_str): Likewise.
625
2b046a72
KH
626 * fileio.c (Fexpand_file_name): Check multibyteness of
627 default_directory.
628
d008f7b7
KH
6292005-09-13 Kenichi Handa <handa@m17n.org>
630
631 * composite.c (compose_chars_in_text): Delete it.
632
633 * composite.h (compose_chars_in_text): Delete extern.
634
2ada8ac5
KS
6352005-09-13 Kim F. Storm <storm@cua.dk>
636
637 * print.c (print_error_message): Fix last change.
638
48c60938
KS
6392005-09-12 Kim F. Storm <storm@cua.dk>
640
0fdbe302
KS
641 * composite.c (compose_chars_in_text): Fix setup of `pend'.
642 Unconditionally reload `ptr' and `pend' after eval.
643
48c60938
KS
644 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
645
646 * print.c (print_error_message): Pass copy of caller name to
647 message_dolog.
648
649 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
650
5add1986
KH
6512005-09-12 Kenichi Handa <handa@m17n.org>
652
653 * xdisp.c (display_mode_element): Be sure to make variables THIS
654 and LISP_STRING point into a string data of ELT.
655
18bb66c7
KS
6562005-09-12 Kim F. Storm <storm@cua.dk>
657
658 * editfns.c (Ftranslate_region_internal): Reload `tt' after
659 signal_after_change that may have GC'ed.
660 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
661
662 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
663 after insert while runs signal_after_change.
664
665 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
666 declaration to where it is used.
667
668 * w32.c (check_windows_init_file): Fix allocation of error buffer.
669
670 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
671 (x_set_name_internal): Call x_encode_text with new FREEP arg to
672 know if xfree is needed instead of guessing.
673
674 * xterm.h (x_encode_text): Remove prototype.
675
945a75f8
JR
6762005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
677
678 * w32term.c (x_bitmap_icon): Load small icons too.
679
156bdb41
RF
6802005-09-10 Romain Francoise <romain@orebokech.com>
681
682 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 683 and terminal zero. Fix typos.
156bdb41 684
67b8391b
EZ
6852005-09-10 Eli Zaretskii <eliz@gnu.org>
686
a17b5ed1
EZ
687 * buffer.c (init_buffer): Fix error message for failed call to
688 get_current_dir_name.
689 (get_current_dir_name): Remove prototype.
690
691 * xsmfns.c: (get_current_dir_name): Remove prototype.
692
693 * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add
694 prototype.
695
ed326e35 696 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 697 Don't #undef NULL after including blockinput.h.
ed326e35 698
67b8391b
EZ
699 * config.in: Regenerated.
700
c187839d
EZ
7012005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
702
703 Remove the MAXPATHLEN limitations:
704
1486d036
EZ
705 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
706 New function.
c187839d
EZ
707
708 * buffer.c (init_buffer): Use it.
709
710 * xsmfns.c (smc_save_yourself_CB): Ditto.
711
ae8a5689
KS
7122005-09-09 Kim F. Storm <storm@cua.dk>
713
39cac6b3
KS
714 * doc.c (Fsubstitute_command_keys): Lookup key binding for
715 commands that are remapped from some other command.
716
aeb55c44
KS
717 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
718 flag in disabled rows below the window.
719
ae8a5689
KS
720 * frame.h (struct frame): New member updated_p.
721
722 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
723 member. Remove local `updated' array and associated variables.
724
821f6dae
KS
7252005-09-07 Kim F. Storm <storm@cua.dk>
726
6e5395f2
KS
727 * xdisp.c (handle_display_prop): Respect overlay window property.
728
821f6dae
KS
729 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
730 Fixes crash reported by YAMAMOTO Mitsuharu.
731
9655b404
YM
7322005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
733
734 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
735 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
736 (xlfdpat_block_match_1, xlfdpat_match): New functions.
737 (xlfdpat_block_match): New macro.
738 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
739 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
740 (add_font_name_table_entry): Increase font_name_table_size more
741 rapidly.
742 (mac_c_string_match): Remove function.
743 (mac_do_list_fonts): Use XLFD pattern match instead of regular
744 expression match.
745
746 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
747
d7ea8b71
RS
7482005-09-03 Richard M. Stallman <rms@gnu.org>
749
750 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
751 (move_it_in_display_line_to): Stop after last char on line even
752 on a windowing terminal, if that's the specified stop position.
753
754 * fns.c (Fsort): Doc fix.
755
756 * editfns.c (Fpropertize): Don't insist that properties be symbols.
757
1550ae60
SM
7582005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
759
760 * dired.c (directory_files_internal_unwind, directory_files_internal)
761 (file_name_completion): Use a Save_Value object rather than a cons of
762 two 16bit ints to store the DIR*.
763 (directory_files_internal, file_name_completion): Handle both EINTR and
764 EAGAIN consistently after `readdir'.
765
bdb4d6d8
SM
7662005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
767
1550ae60
SM
768 * intervals.c (update_interval): Add position info in error.
769
bdb4d6d8
SM
770 * dispnew.c (window_to_frame_hpos, update_window):
771 Avoid gcc warning about unused variable `f'.
772
6bcc3ca4
JR
7732005-08-31 Jason Rumney <jasonr@gnu.org>
774
775 * w32menu.c (add_menu_item): If unicode_append_menu returns an
776 error, revert to using AppendMenu.
777
07c5948c
YM
7782005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
779
bdb4d6d8
SM
780 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
781 All uses changed.
07c5948c
YM
782 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
783 cases.
784 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
785 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
786 Use posix_pathname_to_fsspec.
07c5948c
YM
787 [MAC_OS] (xpm_load_image): Fill in background_transparent field
788 while we have mask.
789
790 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
791
792 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
793
5a774522
SM
7942005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
795
796 * syntax.c (update_syntax_table): Properly reproduce the special +1
797 setting of e_property at the end of the buffer when bumping into the
798 INTERVALS_AT_ONCE limit.
799
0fb57cc0
EZ
8002005-08-27 Eli Zaretskii <eliz@gnu.org>
801
802 * emacs.c (USAGE1): Fix the description of the -Q option.
803
5a774522
SM
8042005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
805
806 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
807
4e6b8c5a
KS
8082005-08-26 Kim F. Storm <storm@cua.dk>
809
810 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
811 Don't move PT to new window start.
812
1f98fbb4
YM
8132005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
814
815 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
816 ICONIFY/DEICONIFY_EVENT.
817
5a774522
SM
818 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
819 Restore background color.
1f98fbb4
YM
820 (mac_handle_visibility_change): New function.
821 (x_make_frame_invisible, x_iconify_frame)
822 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
823 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 824 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
825 (x_make_frame_visible): Don't reposition window if it is iconified
826 or asked for visible before. Select and uncollapse window when it
827 is made visible.
828 (x_make_frame_invisible): Don't reset x_highlight_frame.
829 (x_iconify_frame): Likewise. Make invisible frame visible before
830 it is iconified.
831 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
832 (do_window_update): Don't change visibility of invisible frame.
833
16691d29
JL
8342005-08-22 Juri Linkov <juri@jurta.org>
835
836 * term.c (turn_on_face): Check for TS_set_foreground and
837 TS_set_background depending on standout_mode. Simplify.
838
7c3f805b
KS
8392005-08-21 Kim F. Storm <storm@cua.dk>
840
0f467468
KS
841 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
842 bitmaps on fully visible rows.
843
7c3f805b
KS
844 * fringe.c (update_window_fringes): Replace FORCE_P arg with
845 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
846 and return 0.
847
848 * xdisp.c (redisplay_window): Call update_window_fringes with
849 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
850
40b388f9
RS
8512005-08-20 Richard M. Stallman <rms@gnu.org>
852
853 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
854 (resize_mini_window): Set w->start, and PT, so as to display the tail
855 end of the buffer, if it doesn't all fit.
856
581360f0
KS
8572005-08-18 Kim F. Storm <storm@cua.dk>
858
859 * xdisp.c (calc_pixel_width_or_height): Use actual display
860 resolution when available instead of Vdisplay_pixels_per_inch.
861
0eefa6fb
KS
8622005-08-17 Kim F. Storm <storm@cua.dk>
863
864 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
865
866 * dispnew.c (buffer_posn_from_coords): Check that target row is
867 within matrix.
868
ada192ba
JD
8692005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
870
871 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
872 xg_set_frame_icon and call it.
873
874 * gtkutil.c (xg_set_frame_icon): New function.
875
0eefa6fb 876 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 877
ab89a403
KS
8782005-08-16 Kim F. Storm <storm@cua.dk>
879
880 * dispnew.c (increment_row_positions): Skip non-enabled rows.
881
882 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
883 (Fcurrent_window_configuration): Use VECSIZE macro instead.
884
8d34b5e1
RS
8852005-08-15 Richard M. Stallman <rms@gnu.org>
886
887 * xdisp.c (message3_nolog): Clear echo_message_buffer.
888
71e37f3c
KS
8892005-08-15 Kim F. Storm <storm@cua.dk>
890
0781c303
KS
891 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
892
71e37f3c
KS
893 * process.c (deactivate_process, status_notify, read_process_output)
894 (update_status, status_convert, decode_status, allocate_pty)
895 (make_process, remove_process, list_processes_1)
896 (create_process_1, unwind_request_sigio, read_process_output)
897 (send_process, keyboard_bit_set): Declare static.
898 (Fdelete_process): Simplify. Pass process to status_notify, so we
899 don't try to read output from it.
900 (status_notify): New arg deleting_process--don't try to read
901 output from that process.
902
903 * lisp.h (deactivate_process, status_notify, read_process_output):
904 Remove prototypes.
905
0bf14bfd
RS
9062005-08-14 Richard M. Stallman <rms@gnu.org>
907
bdb4d6d8
SM
908 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
909 define_image_type.
0bf14bfd 910
6c7eb721
JD
9112005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
912
913 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
914 (xg_get_image_for_pixmap): Move some code to
915 xg_get_pixbuf_from_pix_and_mask, and call it.
916
917 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
918
919 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
920 to get an GTK icon and set it with GTK functions to avoid having GTK
921 override an icon set with just X functions.
922
6e2d14c8
RS
9232005-08-11 Richard M. Stallman <rms@gnu.org>
924
bdb4d6d8
SM
925 * image.c (syms_of_image): Init image_types here, and call
926 define_image_type.
6e2d14c8
RS
927 (init_image): Not here.
928
61298e17
RS
9292005-08-09 Richard M. Stallman <rms@gnu.org>
930
931 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
932
933 * lisp.h (QUIT): Throw t to Vthrow_on_input.
934
5a9807a8
TTN
9352005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
936
937 * floatfns.c (Fexpt): Use floats for negative exponent.
938
93469010
JD
9392005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
940
941 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
942 should not be there, causing menu display errors with GTK 2.6.9.
943
44edd521
RS
9442005-08-07 Richard M. Stallman <rms@gnu.org>
945
8b6a9551
RS
946 * floatfns.c (Fexpt): Undo previous change.
947
44edd521
RS
948 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
949 so it can be used with various state vectors.
950
951 * emacs.c (endif): Convert -script into -scriptload.
952 (standard_args): Add -scriptload. Allow -basic-display with one dash.
953
954 * fns.c (syms_of_fns): Add `emacs' to features.
955
956 * term.c (set_terminal_modes): If no TS_termcap_modes string,
957 output newlines to scroll the old screen contents off the screen.
958
cac87e30
TTN
9592005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
960
2a205424
TTN
961 * floatfns.c (Fexpt): Use floats for negative exponent.
962 Reported by D Goel.
cac87e30 963
31b7cc74
JB
9642005-08-02 Richard M. Stallman <rms@gnu.org>
965
966 * frame.c (Fframe_char_width): Doc fix.
967
e2b64074
JB
9682005-07-30 Juanma Barranquero <lekktu@gmail.com>
969
970 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
971 Defvar it.
972
0962822d
JB
9732005-07-28 Juanma Barranquero <lekktu@gmail.com>
974
975 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
976 (my_create_window, my_create_tip_window): Make static.
977
978 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
979 (my_set_foreground_window, my_destroy_window): Make static.
980
9eff9fe3
PE
9812005-07-26 Paul Eggert <eggert@cs.ucla.edu>
982
983 Merge gnulib getopt implementation into Emacs.
984
985 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
986 now part of lib-src.
987
1c9916a1
SM
9882005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
989
990 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
991
94c7f257
JR
9922005-07-25 Jason Rumney <jasonr@gnu.org>
993
994 * w32menu.c (w32_menu_display_help): Suppress tooltip when
995 navigating menus with the keyboard.
996
bf0bf758
RS
9972005-07-23 Richard M. Stallman <rms@gnu.org>
998
999 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
1000
1001 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
1002 gc_relative_threshold, one by one.
1003
1004 * keyboard.c (read_char): Test gc_cons_threshold.
1005 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
1006
1007 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
1008 gc_relative_threshold, one by one.
1009
1010 * alloc.c (gc_cons_threshold): Not static.
1011 (gc_cons_combined_threshold): Var deleted.
1012 (gc_relative_threshold): New variable.
1013 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
1014 instead of gc_cons_combined_threshold.
1015
1c9916a1 1016 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
1017 (gc_cons_combined_threshold): Declaration deleted.
1018
99f963e4
YM
10192005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1020
1021 * mac.c: Don't include stdlib.h or string.h.
1022 (Fdo_applescript, Fmac_file_name_to_posix)
1023 (Fmac_file_name_to_posix): Doc fixes.
1024 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
1025 (Fmac_code_convert_string): Likewise.
1026 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
1027 if the executable is not contained in a bundle.
1028
1029 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
1030 (gray_width, gray_height): Remove defines.
1031 (gray_bits, gray_bitmap_width, gray_bitmap_height)
1032 (gray_bitmap_bits): Remove variables.
1033 (lispy_function_keys): Remove extern.
1034 (free_frame_menubar): Add extern.
1035 (x_window_to_frame): Remove function.
1036 (unwind_create_tip_frame): Add declaration.
1037 (x_set_name_internal): New function.
1038 (x_set_name, x_set_title): Use it.
1039 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
1040 (Fx_display_pixel_height, Fx_display_planes)
1041 (Fx_display_color_cells, Fx_server_max_request_size)
1042 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1043 (Fx_display_mm_height, Fx_display_mm_width)
1044 (Fx_display_backing_store, Fx_display_visual_class)
1045 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
1046
1047 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
1048
bdb4d6d8 1049 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
1050 (Fx_get_selection_internal, Fx_selection_owner_p)
1051 (Fx_selection_exists_p): Doc fixes.
1052 (syms_of_macselect) <selection-converter-alist>: Likewise.
1053
1d256714
JB
10542005-07-21 Juanma Barranquero <lekktu@gmail.com>
1055
1056 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1057
1058 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
1059 (Fccl_execute_on_string): Likewise; add usage info.
1060
1061 * composite.c (Fcompose_region_internal)
1062 (Fcompose_string_internal):
1063 Improve argument/docstring consistency.
1064
1065 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
1066 Fix typos in docstrings.
1067
1068 * textprop.c (Fnext_char_property_change)
1069 (Fprevious_char_property_change): Doc fixes.
1070
1071 * window.c (Fset_window_margins, Fset_window_fringes):
1072 Improve argument/docstring consistency.
1073
1074 * xfaces.c (Finternal_lisp_face_p): Doc fix.
1075
538f78c3
AS
10762005-07-21 Andreas Schwab <schwab@suse.de>
1077
1078 * eval.c (restore_stack_limits): Return a value.
1079
a5b5bf44
JB
10802005-07-20 Juanma Barranquero <lekktu@gmail.com>
1081
1082 * eval.c (Fdefvar): Doc fix.
1083
ae643123
KS
10842005-07-20 Kim F. Storm <storm@cua.dk>
1085
0ed4bf15
KS
1086 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
1087 Use make_save_value to unwind protect stream.
1088
1089 * lread.c (Fload, load_unwind):
1090 Use make_save_value to unwind protect stream.
ae643123 1091
82fc29a1
JB
10922005-07-19 Juanma Barranquero <lekktu@gmail.com>
1093
1094 * eval.c (Fprog2, Fcalled_interactively_p),
1095 (syms_of_eval) <debug-on-quit>: Doc fixes.
1096 (syms_of_eval) <max-specpdl-size>:
1097 (Finteractive_p): Fix typos in docstrings.
1098
73b90087
KS
10992005-07-19 Kim F. Storm <storm@cua.dk>
1100
1101 * w32fns.c (Vx_hand_shape): Variable removed.
1102 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
1103
dfc434d0
KH
11042005-07-19 Kenichi Handa <handa@m17n.org>
1105
bdb4d6d8 1106 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 1107
bcd98331
SM
11082005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
1109
1110 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
1111
2a85a754
KS
11122005-07-18 Kim F. Storm <storm@cua.dk>
1113
1114 * frame.h (struct frame): New member already_hscrolled_p.
1115
1116 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
1117 to avoid redisplay looping hscrolling back and forth ad infinitum.
1118
426179e1
JL
11192005-07-18 Juri Linkov <juri@jurta.org>
1120
1121 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
1122 * keymap.c (Fminor_mode_key_binding):
1123 * macterm.c (mac-emulate-three-button-mouse):
1124 Delete duplicate duplicate words.
1125
9f4a578d
KR
11262005-07-18 Ken Raeburn <raeburn@gnu.org>
1127
1128 * minibuf.c (Ftest_completion): Fix odd syntax in test.
1129
d005338b
YM
11302005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1131
bcd98331 1132 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
1133
1134 * macgui.h (struct _XGC): New struct.
1135 (GC): Use it.
1136 (GCForeground, GCBackground, GCFont): Use X11 mask values.
1137 (XCreateGC, XParseGeometry): Move externs to macterm.h.
1138
bcd98331 1139 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 1140 (XSetFont): Add declaration.
bcd98331
SM
1141 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
1142 Remove functions.
1143 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
1144 New defines.
d005338b
YM
1145 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
1146 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
1147 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
1148 Use them.
d005338b
YM
1149 (mac_erase_rectangle): New function.
1150 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
1151 (x_draw_stretch_glyph_string): Use it.
1152 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
1153 (XSetBackground, XSetFont): Adjust for new GC implementation.
1154 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
1155 (XTset_vertical_scroll_bar): Clear area under scroll bar.
1156
1157 * macterm.h (struct mac_display_info): Change types of
1158 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
1159 (XCreateGC, XParseGeometry): Move externs from macgui.h.
1160
1161 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
1162
9b0c2c56
RS
11632005-07-16 Richard M. Stallman <rms@gnu.org>
1164
1165 * buffer.c (Fmake_overlay): Doc fix.
1166
2e9c1c6d
EZ
11672005-07-16 Eli Zaretskii <eliz@gnu.org>
1168
1169 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
1170 Vw32_valid_locale_ids, and Vw32_valid_codepages.
1171
407289a4
YM
11722005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1173
bcd98331
SM
1174 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
1175 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 1176
e4b477a1
RS
11772005-07-15 Richard M. Stallman <rms@gnu.org>
1178
1179 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
1180
a8613adf
KS
11812005-07-15 Kim F. Storm <storm@cua.dk>
1182
1183 * xdisp.c: Fix redisplay loop in last change.
1184 (IT_POS_VALID_AFTER_MOVE_P): New macro.
1185 (move_it_vertically_backward, move_it_by_lines): Use it.
1186
2d5324c5
JR
11872005-07-14 Jason Rumney <jasonr@gnu.org>
1188
1189 * w32.c (init_environment): Default HOME directory to user's
1190 appdata directory if possible.
1191
3ed70dc4
KS
11922005-07-14 Kim F. Storm <storm@cua.dk>
1193
7b9389b0
KS
1194 * .gdbinit (pitx): Fix output format. Print string charpos.
1195
3ed70dc4
KS
1196 * lread.c (syms_of_lread): Initialize seen_list.
1197
1198 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
1199
1200 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
1201 Staticpro re_match_object.
1202
ef029e5a
YM
12032005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1204
1205 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
1206 dereference.
1207
1208 * macterm.c (mac_window_to_frame): Remove duplicate define.
1209
16ef9c56
KH
12102005-07-14 Kenichi Handa <handa@m17n.org>
1211
1212 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 1213 (code_convert_region): Adjust for the above change.
16ef9c56
KH
1214 (set_conversion_work_buffer): If the work buffer is already in
1215 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 1216 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
1217 (run_pre_write_conversin_on_c_str): Likewise.
1218
098e1273
KS
12192005-07-13 Kim F. Storm <storm@cua.dk>
1220
010b9a45
KS
1221 * xdisp.c (start_display): Don't reseat to next visible line start
1222 if current start position is in a string or image.
1223 (move_it_vertically_backward): Be sure to move out of strings and
1224 images when moving it2 forward.
1225 (move_it_by_lines): When moving forward, move to next buffer
1226 position if we end up in a string or image. When moving backward,
1227 count rows moved over when moving to start of current row in case
1228 row starts in middle of a string or image. Also move further
1229 backward if we end up in a string or image.
bcd98331 1230 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
1231 move backward to set cursor on start of an overlay string.
1232 (cursor_row_p): Row is ok if cursor is at newline from string, but
1233 string starts on this line (so we always position cursor at start
1234 of string).
1235
1236 * indent.c (Fvertical_motion): If start position is on an image,
1237 don't move back if we move too far (that's almost certain to happen).
1238
098e1273
KS
1239 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
1240 row in minibuffer windows.
1241 (try_window): Don't check margins in minibuffer windows.
1242
c229fb15
YM
12432005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1244
1245 * macterm.c: Don't include stdlib.h or composite.h.
1246 (x_use_underline_position_properties, last_mouse_press_frame)
1247 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
1248 (syms_of_macterm, mac_initialize): Don't initialize them.
1249 (waiting_for_input, initial_argv, initial_argc)
1250 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
1251 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
1252 (extra_keyboard_modifiers): Fix type in extern.
1253 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
1254 (x_scroll_bar_report_motion): Add argument types to declaration.
1255 (mac_compute_glyph_string_overhangs): Add declaration.
1256 (disable_mouse_highlight): Remove unused variable.
1257 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
1258 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
1259 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
1260 All callers changed.
c229fb15
YM
1261 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
1262 timestamp.
1263 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
1264 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
1265 only when its width is less than the height.
1266 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
1267 (font_name_table, font_name_table_size, font_name_count):
1268 Make static.
c229fb15
YM
1269 (drag_and_drop_file_list): Remove variable. Previous use is now
1270 local to function.
1271 (do_ae_open_documents): Move DRAG_N_DROP event construction part
1272 from XTread_socket.
bcd98331
SM
1273 (XTread_socket): Consolidate setting of event timestamp.
1274 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
1275 Support extra_keyboard_modifiers.
1276
1277 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
1278 beginning with that for ASCII.
1279
69d05d83
SM
12802005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1281
1282 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
1283 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
1284 (syms_of_alloc): Declare gc-cons-percentage.
1285
1286 * eval.c (Feval, Ffuncall):
1287 * keyboard.c (read_char):
1288 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
1289
1290 * lisp.h (gc_cons_combined_threshold): Declare.
1291
5c7f9de1
KS
12922005-07-12 Kim F. Storm <storm@cua.dk>
1293
1294 * coding.c (Qprocess_argument):
1295 * coding.h (Qprocess_argument): Remove unused var.
1296
1297 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
1298
c37efb7a
YM
12992005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1300
1301 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
1302 Endian.h.
1303 [!MAC_OSX] (fchmod, fchown): New functions.
1304 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
1305 Use SBYTES and EndianU32_BtoN.
1306 (mac_get_object_from_code): Return 4 byte string even if argument
1307 is 0. Use make_unibyte_string and EndianU32_NtoB.
1308 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1309 (Fmac_set_file_type): Fix documents and argument declarations.
1310 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
1311
a4429c5b
SM
13122005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1313
1314 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
1315
a2d7e722
JD
13162005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1317
1318 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
1319 Lucid if X_I18N, font otherwise.
1320
9a4183e9
ST
13212005-07-10 Steven Tamm <steventamm@mac.com>
1322
a4429c5b
SM
1323 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
1324 (Fmac_set_file_type, Fmac_set_file_creator): Add.
1325 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 1326
51f74c37
RS
13272005-07-10 Richard M. Stallman <rms@gnu.org>
1328
1329 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
1330 (syms_of_lread): Set up eval-buffer-list.
1331 (Feval_buffer, Feval_region): Bind eval-buffer-list.
1332
93c7da4c
RS
13332005-07-08 Richard M. Stallman <rms@gnu.org>
1334
1335 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
1336
64af5917
KS
13372005-07-08 Kim F. Storm <storm@cua.dk>
1338
1339 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
1340 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
1341
a96b333c
KS
13422005-07-07 Kim F. Storm <storm@cua.dk>
1343
1344 * window.c (Frecenter): Fix last change (set iarg before use).
1345
dc2204be
RS
13462005-07-06 Richard M. Stallman <rms@gnu.org>
1347
1348 * window.c (Frecenter): When arg is inside the scroll margin,
1349 move it out of the margin.
1350
3fb1d72b
JR
13512005-07-06 Jason Rumney <jasonr@gnu.org>
1352
1353 * w32console.c (initialize_w32_display): Detect when the console
1354 dimensions are insane, and default to 80x25 instead.
a4429c5b 1355 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 1356
dd15724d
YM
13572005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1358
1359 * macterm.c (mac_draw_vertical_window_border): Use foreground of
1360 VERTICAL_BORDER_FACE_ID for vertical border line.
1361 (mac_encode_char): Call check_ccl_update in advance.
1362 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
1363 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
1364 Don't assume that font family length is less than 32.
dd15724d
YM
1365 (x_compute_min_glyph_bounds): Make static.
1366 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 1367
68003d6b
LK
13682005-07-04 Lute Kamstra <lute@gnu.org>
1369
dc2204be 1370 * Update FSF's address in GPL notices.
68003d6b 1371
3d393029
RS
13722005-07-03 Richard M. Stallman <rms@gnu.org>
1373
1374 * xdisp.c (try_window): Fix previous change in how it handles
1375 a partially-visible line or one only partly past the margin.
1376
1377 * window.c (window_scroll_pixel_based): Take account
1378 of this_scroll_margin when finding point when scrolling up.
1379
13802005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
1381
1382 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1383 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
1384 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
1385
d6951bb4
EZ
13862005-07-02 Juri Linkov <juri@jurta.org>
1387
1388 * w32term.c (w32_draw_vertical_window_border): Use foreground of
1389 VERTICAL_BORDER_FACE_ID for vertical border line.
1390
b016179b
EZ
13912005-07-02 Eli Zaretskii <eliz@gnu.org>
1392
1393 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
1394 fchmod so that chmod doesn't get called on MSDOS before the file
1395 is closed.
1396
c2baa2b6
JR
13972005-07-01 Jason Rumney <jasonr@gnu.org>
1398
1399 * w32term.c (cleartype_active): New flag for enabling sub-pixel
1400 workaround.
1401 (w32_initialize): Initialize it.
1402 (w32_native_per_char_metric): Allow a couple of extra pixels when
1403 Cleartype is active.
1404
1405 * w32term.c (w32_initialize): Move check for screen reader here
1406 from syms_of_w32term.
1407
a6d0ae55
JD
14082005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1409
1410 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
1411 is not zero.
1412
711877f3
MY
14132005-07-01 Masatake YAMATO <jet@gyve.org>
1414
a4429c5b 1415 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 1416
63f7ffb3
JL
14172005-06-30 Juri Linkov <juri@jurta.org>
1418
1419 * xdisp.c (x_draw_vertical_border): If left fringe is not present
1420 decrease x coord of vertical border by 1 pixel to not occupy text
1421 area of the right window.
1422
1423 * xterm.c (x_draw_vertical_window_border): Use foreground of
1424 VERTICAL_BORDER_FACE_ID for vertical border line.
1425
1426 * term.c (turn_on_face): In standout mode apply specified
1427 fg to bg, and specified bg to fg (this makes the logic of
1428 inversion on terminal consistent with X).
1429
b26860ad
JB
14302005-06-29 Juanma Barranquero <lekktu@gmail.com>
1431
1432 * eval.c (user_variable_p_eh): New function.
1433 (Fuser_variable_p): Use it. Clarify docstring.
1434 Return t for aliases of user options, nil for alias loops.
1435
3a1f1d79
RS
14362005-06-27 Richard M. Stallman <rms@gnu.org>
1437
1438 * eval.c (Fdefvar): Improve error message.
1439
92de1e01
YM
14402005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1441
1442 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
1443 change.
1444
69410484
JB
14452005-06-27 Juanma Barranquero <lekktu@gmail.com>
1446
1447 * eval.c (Fdefvar): Don't try to set constant symbols.
1448
09352e8f
RS
14492005-06-25 Richard M. Stallman <rms@gnu.org>
1450
a68d870b
RS
1451 * macfns.c (Fx_show_tip): Pass new arg to try_window.
1452
1453 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
1454
1455 * xfns.c (Fx_show_tip): Pass new arg to try_window.
1456
1457 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
1458 (redisplay_window): Handle try_window reporting point in scroll margin.
1459
1460 * dispextern.h (try_window): Declare new arg.
1461
1462 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
1463 Use fchmod to copy the file modes.
1464 (Frename_file): Don't copy UID and GID here;
1465 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
1466
df13531d
RS
1467 * eval.c (call_debugger): Take full care of extending stack limits
1468 to make space for the debugger, and restore the change afterward.
1469 Bind debug-on-error to nil.
1470 (restore_stack_limits): New subroutine.
1471 (Fsignal): Extend specpdl bound along with eval depth bound,
1472 for calling edebug. Don't do either one, for calling debugger.
1473 (find_handler_clause): Don't bind debug-on-error here.
1474 Don't unbind anything either.
1475 Temporarily advance max_specpdl_size for calling
1476 internal_with_output_to_temp_buffer.
1477 (grow_specpdl): Don't alter max_specpdl_size before signaling
1478 an error.
1479 (syms_of_eval) <max-specpdl-size>: Doc fix.
1480
09352e8f
RS
1481 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
1482
90296dd3
EZ
14832005-06-24 Eli Zaretskii <eliz@gnu.org>
1484
1485 * fileio.c (Frename_file): Undo last change: no need to ifdef away
1486 chown on DOS_NT platforms.
1487
1488 * w32.c (sys_chown): New function.
1489
1490 * s/ms-w32.h (chown): New; define to sys_chown.
1491
c4f6ca24
JB
14922005-06-24 Juanma Barranquero <lekktu@gmail.com>
1493
3338c0ad
JB
1494 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
1495 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
1496
9a1505e9 1497 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 1498
528b6abc
RS
14992005-06-23 Richard M. Stallman <rms@gnu.org>
1500
1501 * xdisp.c (get_next_display_element): Finish reversing the tests of
1502 Vnobreak_char_display.
1503
9a1505e9 1504 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 1505 All uses changed.
9a1505e9 1506 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
1507 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
1508
1509 * fileio.c (Frename_file): Preserve owner and group, if possible,
1510 when copying.
1511
1d1c7e75
JB
15122005-06-23 Juanma Barranquero <lekktu@gmail.com>
1513
253b2298
JB
1514 * abbrev.c (Funexpand_abbrev):
1515 * category.c (Fmake_category_set):
1516 * dispnew.c (Fsleep_for, Fsit_for):
1517 * editfns.c (Fsubst_char_in_region):
1518 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
1519 * frame.c (make_frame_without_minibuffer):
1520 * lread.c (read_vector):
1521 * macfns.c (check_x_frame):
1522 * process.c (Fstop_process, Fcontinue_process):
1523 * search.c (Freplace_match):
1524 * syntax.c (Fstring_to_syntax):
1525 * w32fns.c (check_x_frame, check_x_display_info):
1526 * xfaces.c (x_supports_face_attributes_p):
1527 * xselect.c (Fx_own_selection_internal): Follow error conventions.
1528
1d1c7e75
JB
1529 * image.c (fn_png_init_io): Don't define it.
1530 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
1531 (png_read_from_file): New function, based on png_read_from_memory.
1532 (png_load): Use it, instead of fn_png_init_io.
1533
d1fab151
KS
15342005-06-23 Kim F. Storm <storm@cua.dk>
1535
1536 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 1537 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
1538 Add commentary explaining evaporate arg (for internal use only).
1539 (unwind_set_match_data): Add comment on evaporate use.
1540
53abc3bf
MB
15412005-06-22 Miles Bader <miles@gnu.org>
1542
a4429c5b 1543 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
1544 (realize_basic_faces, syms_of_xfaces): Update references to it.
1545 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
1546 to `VERTICAL_BORDER_FACE_ID'.
1547 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
1548
36a3b076
JL
15492005-06-21 Juri Linkov <juri@jurta.org>
1550
1551 * dispextern.h: Add extern Qframe_set_background_mode.
1552
1553 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
1554 Qframe_set_background_mode.
1555
1556 * frame.c (Fmodify_frame_parameters):
1557 Call frame-set-background-mode after changing the background color
1558 on non-window non-dos branch.
1559
23873c96
JB
15602005-06-21 Juanma Barranquero <lekktu@gmail.com>
1561
1562 * fns.c (Fchar_table_range):
1563 * process.c (Fmake_network_process): Fix spellings.
1564
b7d1f38f
KS
15652005-06-20 Kim F. Storm <storm@cua.dk>
1566
1567 * fns.c (Fsort): Doc fix.
1568
b4e49aee
MB
15692005-06-20 Miles Bader <miles@gnu.org>
1570
1571 * xfaces.c (Qvertical_divider): New variable.
1572 (realize_basic_faces): Realize its face.
1573 (syms_of_xfaces): Initialize it.
1574
1575 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
1576
1577 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
1578 window-separator on ttys using `vertical-divider' face by default.
1579
b7da00ba
RS
15802005-06-17 Richard M. Stallman <rms@gnu.org>
1581
a4429c5b
SM
1582 * xdisp.c (get_next_display_element):
1583 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
1584
1585 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
1586 (Ftty_no_underline): New function.
1587 (syms_of_term): defsubr it.
b7d1f38f 1588
b7da00ba
RS
1589 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
1590
1591 * dispnew.c (spec_glyph_lookup_face): New function.
1592 (build_frame_matrix_from_leaf_window): Use it.
1593
1594 * dispextern.h (spec_glyph_lookup_face): Add declaration.
1595
1596 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1597
15982005-06-12 Richard M. Stallman <rms@gnu.org>
1599
1600 * keyboard.c (read_char): After catching a longjmp,
1601 call restore_getcjmp.
1602
289824a3
JB
16032005-06-17 Juanma Barranquero <lekktu@gmail.com>
1604
1605 * xselect.c (lisp_data_to_selection_data): Fix spelling.
1606
95085023
YM
16072005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1608
1609 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
1610 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
1611 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
1612 events.
1613 (XTread_socket): Don't pass keyboard events with the option
1614 modifier to the system when Vmac_command_key_is_meta is nil or
1615 Vmac_option_modifier is non-nil.
1616 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
1617 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
1618 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
1619 handler function.
1620 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
1621 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
1622 handler part to mac_handle_mouse_event.
1623
4a9308b8
JB
16242005-06-14 Juanma Barranquero <lekktu@gmail.com>
1625
1626 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
1627 NEW-ALIAS and BASE-VARIABLE, respectively.
1628
5aa6db57
SM
16292005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1630
1631 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1632 (get_phys_cursor_geometry, format_mode_line_unwind_data)
1633 (get_line_height_property, x_produce_glyphs): Remove unused vars.
1634
1635 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
1636
0e0dddda
EZ
16372005-06-13 Eli Zaretskii <eliz@gnu.org>
1638
1639 * w32term.c (x_use_underline_position_properties): New variable.
1640 (x_draw_glyph_string): Remind in a comment to change doc string of
1641 x-use-underline-position-properties if/when underline positioning
1642 is implemented.
1643 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
1644 and initialize it to nil.
1645
7f2b4738
JR
16462005-06-12 Jason Rumney <jasonr@gnu.org>
1647
1648 * w32fns.c (NEWOPENFILENAME): New struct.
1649 (Fx_file_dialog): Use it to trick the system into giving us up to
1650 date dialogs on systems that are documented to support it.
1651 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
1652
a1e8cad6
EZ
16532005-06-12 Eli Zaretskii <eliz@gnu.org>
1654
1655 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
1656 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
1657
099a3eea
EZ
16582005-06-11 Eli Zaretskii <eliz@gnu.org>
1659
2e09fef1
EZ
1660 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
1661 to CreateDIBSection to avoid a compiler warning.
1662 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
1663 warning.
1664 (png_load): Cast return values of fn_png_create_read_struct and
1665 fn_png_create_info_struct, to avoid compiler warnings on W32.
1666 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
1667 to avoid compiler warnings.
1668 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
1669 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
1670 avoid a compiler warning.
1671 (tiff_load): Cast return values of fn_TIFFOpen and
1672 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
1673 to IMAGE_BACKGROUND to avoid a compiler warning.
1674 (gif_load): Cast return values of fn_DGifOpenFileName and
1675 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
1676 IMAGE_BACKGROUND to avoid a compiler warning.
1677 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
1678 before redefining.
1679
099a3eea
EZ
1680 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
1681 the call to CreateDIBSection, to avoid a compiler warning.
1682
d11f8e1a
JR
16832005-06-11 Jason Rumney <jasonr@gnu.org>
1684
1685 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
1686 minibuffer.
1687 * macfns.c (Fx_file_dialog): Likewise.
1688
cd4344a3
EZ
16892005-06-10 Eli Zaretskii <eliz@gnu.org>
1690
1691 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
1692
578c1340
JB
16932005-06-10 Juanma Barranquero <lekktu@gmail.com>
1694
1695 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
1696 * w32fns.c (syms_of_w32fns): Fix spellings.
1697
4162f25f
EZ
16982005-06-10 Eli Zaretskii <eliz@gnu.org>
1699
1700 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
1701 `verbose'; print diagnostic messages only if it is non-zero.
1702 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
1703 in the environment.
1704 (copy_executable_and_dump_data): Print section names with %.8s.
1705
121c59a3
MY
17062005-06-10 Masatake YAMATO <jet@gyve.org>
1707
1708 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
1709 when mouse_face is not given.
121c59a3 1710
c869384d
LT
17112005-06-09 Luc Teirlinck <teirllm@auburn.edu>
1712
1713 * window.c (Fselect_window): Adapt call to Fselect_frame.
1714
1715 * lisp.h: Update EXFUN of Fselect_frame.
1716
1717 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
1718
6ecf436d
LT
1719 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
1720 no_enter.
1721 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
1722 Adapt to above change.
1723
c14ec135
JB
17242005-06-10 Juanma Barranquero <lekktu@gmail.com>
1725
1726 * fns.c (Fmemq, Fmaphash): Doc fixes.
1727
9fed2905
JB
17282005-06-09 Juanma Barranquero <lekktu@gmail.com>
1729
1730 * xfaces.c (Fdisplay_supports_face_attributes_p):
1731 Fix typo in docstring.
1732
427c5b1b
ST
17332005-06-08 Steven Tamm <steventamm@mac.com>
1734
1735 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
1736 used by gcc4 on intel mac.
1737
b7aae902
KS
17382005-06-09 Kim F. Storm <storm@cua.dk>
1739
1740 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
1741 in REUSE list if non-nil; free them if equal to evaporate.
1742 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
1743 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
1744 (restore_search_regs): Rename from restore_match_data. Uses changed.
1745 (unwind_set_match_data): New function.
1746 (record_unwind_save_match_data): New function like save-match-data.
1747
1748 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
1749 (record_unwind_save_match_data): Add prototype.
1750 (restore_search_regs): Rename from restore_match_data.
1751
1752 * composite.c (compose_chars_in_text):
1753 * eval.c (do_autoload):
1754 * macmenu.c (set_frame_menubar):
1755 * process.c (read_process_output, exec_sentinel):
1756 * xmenu.c (set_frame_menubar):
1757 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
1758 * w32menu.c (set_frame_menubar):
1759 Use record_unwind_save_match_data.
1760
547d2b37
RS
17612005-06-08 Richard M. Stallman <rms@gnu.org>
1762
1763 * xdisp.c (get_next_display_element): Alter previous change:
1764 Distinguish Vshow_nonbreak_escape = t or not t.
1765 For t, use escape_glyph once again, as before previous change.
1766 Use space or hyphen for display, instead of the non-ASCII char.
1767 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
1768
1769 * process.c (Fstart_process): Don't touch command_channel_p slot.
1770
99598737 1771 * process.h (struct process): Delete command_channel_p.
547d2b37 1772
602907ae
MY
17732005-06-07 Masatake YAMATO <jet@gyve.org>
1774
5aa6db57
SM
1775 * xdisp.c (note_mode_line_or_margin_highlight):
1776 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 1777 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
1778 is not ON_MODE_LINE nor ON_HEADER_LINE.
1779
8b793bed
KS
17802005-06-07 Kim F. Storm <storm@cua.dk>
1781
1782 * process.c: Improve commentary for adaptive read buffering.
1783
3d031334
SM
17842005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
1785
1786 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
1787 if available.
1788
16d2e704
JD
17892005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1790
5aa6db57
SM
1791 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1792 New functions for popping down menus on C-g.
16d2e704
JD
1793 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
1794
1795 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
1796 non-static.
1797
9fed2905 1798 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 1799
b6cc2ad0
EZ
18002005-06-06 Eli Zaretskii <eliz@gnu.org>
1801
9a1505e9 1802 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 1803
5aa6db57 1804 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
1805
1806 * w32proc.c (RVA_TO_PTR): New macro.
1807
1808 * w32heap.c (RVA_TO_PTR): No need to #undef now.
1809
1810 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
1811 Depend on w32heap.h.
1812
24e55feb
LT
18132005-06-06 Luc Teirlinck <teirllm@auburn.edu>
1814
1815 * keyboard.c (command_loop_1): Update Vthis_original_command.
1816
ce6e10af
RS
18172005-06-06 Richard M. Stallman <rms@gnu.org>
1818
1819 * xmenu.c (popup_get_selection): Undo previous change.
1820
c476bcb0
JL
18212005-06-06 Juri Linkov <juri@jurta.org>
1822
1823 * xdisp.c (Qno_break_space): New variable.
1824 (syms_of_xdisp): Initialize it.
1825 (get_next_display_element): Add no-break space and soft hypen
1826 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
1827 Use `no-break-space' face for no-break spaces.
1828
5494d7bc
JD
18292005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1830
1831 * window.c (delete_window): Handle the case where a h/vchild has
1832 a h/vchild.
1833
a0c38328
EZ
18342005-06-05 Eli Zaretskii <eliz@gnu.org>
1835
1836 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
1837 call to pfn_setsockopt, cast optval to `const char *'.
1838
91018229
EZ
18392005-06-04 Eli Zaretskii <eliz@gnu.org>
1840
1a8fb426
EZ
1841 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
1842 (open_unc_volume): Cast return value of map_w32_filename, to avoid
1843 compiler warnings.
1844
b6f0a397
EZ
1845 * s/ms-w32.h (fileno): Don't define if already defined.
1846
17a7c5c2 1847 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 1848
91018229
EZ
1849 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
1850
196ac78c
RS
18512005-06-04 Richard M. Stallman <rms@gnu.org>
1852
1853 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
1854
b8987570
JD
18552005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1856
1857 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 1858 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
1859 mac_menu_show Quit:s.
1860 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
1861 a dialog).
1862
555228aa
KS
18632005-06-04 Kim F. Storm <storm@cua.dk>
1864
1865 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
1866
1867 * callproc.c (Fcall_process): Don't use alloca to gradually
1868 increase size of buf, as it effectively uses twice the necessary
1869 space on the stack. Instead, pre-allocate buf of full size, and
1870 gradually increase the read size.
1871
1872 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
1873
1874 * eval.c (unbind_to): Preserve value of Vquit_flag.
1875
1876 * xterm.c (handle_one_xevent): Also ignore mouse motion just
1877 before a button release event.
1878
6312e5f7
JB
18792005-06-03 Juanma Barranquero <lekktu@gmail.com>
1880
1881 * xfaces.c (Finternal_lisp_face_equal_p): Really report
1882 on faces in a frame, if the argument FRAME is non-nil.
1883 Improve argument/docstring consistency.
1884
0493f7be
KS
18852005-06-02 Kim F. Storm <storm@cua.dk>
1886
1887 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
1888 (x_consider_frame_title, Fformat_mode_line): Save offset into
1889 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
1890
89fe657e
KS
18912005-06-01 Kim F. Storm <storm@cua.dk>
1892
1893 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
1894
02a6375c
YM
18952005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1896
1897 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
1898 resolution fields for scalable fonts to 0.
1899
1900 * xfaces.c (build_scalable_font_name): Round pixel size to the
1901 nearest integer.
1902
95d4fad8
KS
19032005-06-01 Kim F. Storm <storm@cua.dk>
1904
1905 * xdisp.c (display_mode_line): Support nested calls to redisplay
1906 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
1907
3c1b433a
SM
19082005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1909
1910 * fileio.c (Finsert_file_contents):
1911 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1912
13cc7d61
KS
19132005-05-31 Kim F. Storm <storm@cua.dk>
1914
1915 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
1916 (mode_line_noprop_ptr): Rename from frame_title_*.
1917 (store_mode_line_noprop_char): Rename from store_frame_title_char.
1918 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 1919 (mode_line_target): New enum to specify current output target
13cc7d61
KS
1920 for mode line formatting.
1921 (display_mode_element): Test it rather than frame_title_ptr and
1922 mode_line_string_list to determine where output should go.
1923 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
1924 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
1925 (format_mode_line_unwind_data, unwind_format_mode_line):
1926 New functions for unwind protection in mode line formatting.
13cc7d61 1927 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
1928 to support nested calls to format-mode-line and redisplay.
1929 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 1930 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
1931 support nested calls to format-mode-line and redisplay.
1932 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 1933 Don't trim trailing dashes.
13cc7d61
KS
1934 (decode_mode_spec): Don't make infinite number of trailing dashes
1935 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
1936 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
1937 mode_line_string_face_prop, and Vmode_line_unwind_vector.
1938 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
1939 Initialize mode_line_target to MODE_LINE_DISPLAY.
1940
c16b1394
RS
19412005-05-29 Richard M. Stallman <rms@gnu.org>
1942
1943 * buffer.c (Fbuffer_local_value): Call indirect_variable.
1944
edfaeb4e
MY
19452005-05-28 Masatake YAMATO <jet@gyve.org>
1946
1947 * xdisp.c (note_mode_line_or_margin_highlight): Change the
1948 pointer to a hand cursor when hoovering over a mouse-face.
1949
7cf49add
KH
19502005-05-27 Kenichi Handa <handa@m17n.org>
1951
1952 * xterm.c (x_encode_char): Call check_ccl_update in advance.
1953
1954 * ccl.c: Now an element of Vccl_program_table is a vector of
1955 length 4, not 3.
3c1b433a
SM
1956 (ccl_get_compiled_code): New arg idx. Caller changed.
1957 Adjust for the change of Vccl_program_table.
1958 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
1959 (check_ccl_update): New function.
1960 (Fregister_ccl_program): Use ASET to set an element of a vector.
1961 Adjusted for the change of Vccl_program_table.
1962
1963 * ccl.h (struct ccl_program): New member idx.
1964 (check_ccl_update): Extern it.
1965
5e2ad10b
JB
19662005-05-27 Juanma Barranquero <lekktu@gmail.com>
1967
3c1b433a 1968 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
1969 (syms_of_image): Defvar it.
1970 (lookup_image_type): Use it.
1971
5e2ad10b
JB
1972 * buffer.c (Fbuffer_local_value): Make argument name match its use
1973 in docstring.
1974
6e604a9b
JB
19752005-05-26 Juanma Barranquero <lekktu@gmail.com>
1976
1977 * keyboard.c (Frecursive_edit): Fix typo in docstring.
1978 (Fposn_at_x_y): Make argument name match its use in docstring.
1979
59244a3f
LK
19802005-05-26 Lute Kamstra <lute@gnu.org>
1981
1982 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
1983
55ce5058
MY
19842005-05-24 Masatake YAMATO <jet@gyve.org>
1985
1986 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
1987 as loop sentinels.
1988
cb5db137
NR
19892005-05-24 Nick Roberts <nickrob@snap.net.nz>
1990
1991 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
1992 select frame title ("Question"/"Information").
1993 (xdialog_show): Use it.
1994
13dcfc35
NR
1995 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
1996
1997 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
1998
d3393daa
NR
1999 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
2000 a third argument (Qnil).
2001
2002 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
2003
2004 * editfns.c (Fmessage_box): Use "Information" for frame title.
2005
71d4fba1
TTN
20062005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
2007
2008 * termcap.c [VMS]: Include <starlet.h>.
2009
359e4563
MY
20102005-05-23 Masatake YAMATO <jet@gyve.org>
2011
6e604a9b
JB
2012 * xdisp.c (note_mode_line_or_margin_highlight): Add code
2013 for mouse-face. Change the type of the first argument from `window'
2014 to `Lisp_Object'.
359e4563
MY
2015 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
2016 window instead of w.
2017
edceb51c
AS
20182005-05-22 Andreas Schwab <schwab@suse.de>
2019
41c4895c 2020 * process.c (send_process): Move misplaced volatile.
edceb51c 2021
5c213fcc
RS
20222005-05-21 Richard M. Stallman <rms@gnu.org>
2023
2024 * xdisp.c (display_mode_element): If we're processing a list and
2025 padding is specified, put it after the last element.
2026
aa4060b9
EZ
20272005-05-21 Eli Zaretskii <eliz@gnu.org>
2028
2029 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
2030 "superroot" on DOS_NT systems.
2031
a2c9aee6
EZ
20322005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
2033
2034 * process.c (send_process): Restore the SIGPIPE handler if we
2035 catch a SIGPIPE.
2036
09e8eb5b
JB
20372005-05-20 Juanma Barranquero <lekktu@gmail.com>
2038
2039 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
2040 misleading comments).
2041 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
2042
f3fbdb1f
LK
20432005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2044
2045 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
2046 Correct the right value.
2047
639ec765
NR
20482005-05-19 Nick Roberts <nickrob@snap.net.nz>
2049
240d926e 2050 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
2051 post-command-idle-hook and post-command-idle-delay.
2052 (command_loop_1): Don't try to execute post-command-idle-hook.
2053
03d42907
KS
20542005-05-16 Kim F. Storm <storm@cua.dk>
2055
1cb83e13
KS
2056 * xdisp.c (handle_display_prop): Handle empty replacement.
2057 (handle_single_display_spec): Return -1 for empty replacement.
2058
2059 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
2060
03d42907
KS
2061 * .gdbinit (pitx): Print more info about iterator.
2062
0da46b6e
AS
20632005-05-16 Andreas Schwab <schwab@suse.de>
2064
3c1b433a 2065 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 2066
d06ba294
RS
20672005-05-14 Richard M. Stallman <rms@gnu.org>
2068
2069 * xdisp.c (message3): Call cancel_echoing.
2070
2071 * alloc.c (Fmemory_full_p): New function.
2072 (syms_of_alloc): defsubr it.
2073
2074 * process.c (send_process_trap): Unblock SIGPIPE.
2075 (send_process): Reset SIGPIPE handler before reporting error.
2076
90713743
NR
20772005-05-14 Nick Roberts <nickrob@snap.net.nz>
2078
2079 * emacs.c (syms_of_emacs): Fix doc string for system-type.
2080
68780e2a
RS
20812005-05-13 Richard M. Stallman <rms@gnu.org>
2082
2083 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
2084 (Finsert_file_contents): If we read 0 bytes from a special file,
2085 unlock the visited file if we locked it.
2086 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 2087 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 2088
5063dbbf
YM
20892005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2090
2091 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
2092
3c1b433a
SM
2093 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
2094 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
2095 redisplay from being paused by them.
2096
2097 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
2098 [!MAC_OSX] (target_ticks): Remove variable.
2099 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
2100 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
2101 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 2102 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
2103 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
2104 handling using Time Manager routines.
3c1b433a
SM
2105 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
2106 New variables.
5063dbbf
YM
2107 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
2108 (setitimer): New functions.
2109
2110 * macfns.c, macmenu.c: Don't include signal.h.
2111
2112 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
2113 Rename from get_control_part_bound. All callers changed.
2114 (x_scroll_bar_clear): New function.
2115 (x_clear_frame): Use it.
2116 (XTset_vertical_scroll_bar): Don't call Draw1Control.
2117 (x_scroll_bar_handle_click): Change type of second argument from
2118 int to ControlPartCode.
2119 (check_alarm): Remove declaration.
02a6375c
YM
2120 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
2121 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
2122
21232005-05-13 Nozomu Ando <nand@mac.com>
2124
2125 * unexmacosx.c: Include assert.h.
2126 (MACOSX_MALLOC_MULT16): New define.
2127 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
2128 ptr is in unexec regions by checking it is multiple of 16.
2129 (unexec_malloc_header_t): New typedef.
2130 (unexec_malloc, unexec_realloc, unexec_free): Store and use
2131 allocated size information in unexec_malloc_header.
2132
d101bf56
RS
21332005-05-10 Richard M. Stallman <rms@gnu.org>
2134
2135 * xterm.c (noinclude): Add #undef.
2136
2137 * image.c, xfns.c, xmenu.c: Don't include signal.h.
2138
2f60660a
JB
21392005-05-09 Juanma Barranquero <lekktu@gmail.com>
2140
f1701e65
JB
2141 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
2142 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
2143 Doc fixes.
2144
2f60660a
JB
2145 * dired.c (Ffile_name_completion): Make argument name
2146 match its use in docstring.
2147
9f29e806
LT
21482005-05-08 Luc Teirlinck <teirllm@auburn.edu>
2149
2150 * eval.c (Fdefvaralias): Remove any pre-existing
2151 variable-documentation property of the alias.
2152
a790bcd4
TTN
21532005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
2154
2155 * xfns.c (start_hourglass): Do nothing when running on a tty.
2156
d5fb8dab
JB
21572005-05-07 Juanma Barranquero <lekktu@gmail.com>
2158
2159 * fns.c (Fchar_table_range): Fix typos in docstring.
2160
7ec64183
SM
21612005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2162
2163 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
2164
6ff95f1d
EZ
21652005-05-06 Eli Zaretskii <eliz@gnu.org>
2166
2c6b25c7
EZ
2167 * lread.c (Flocate_file_internal): Doc fix.
2168
6ff95f1d
EZ
2169 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
2170
17d28d26
YM
21712005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2172
2173 * macselect.c (x_own_selection): Accept Lisp string as result of
2174 selection converter function.
2175 (x_clear_frame_selections): Don't call x-lost-selection-functions
2176 if Emacs is not owner of the selection.
2177 (Vmac_services_selection): Put variable and initialization in
2178 #ifdef MAC_OSX.
2179 (syms_of_macselect) [MAC_OSX]: Set default value of
2180 Vmac_services_selection to PRIMARY.
2181
7ec64183
SM
2182 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
2183 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
2184 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
2185 (install_scroll_bar_timer, set_scroll_bar_timer)
2186 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
2187 (get_control_part_bound, x_scroll_bar_handle_press)
2188 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
2189 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
2190 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
2191 (scroll_bar_timer_event_posted_p): New variables.
2192 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
2193 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
2194 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
2195 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2196 Initialize track_top and track_height to nil.
2197 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
2198 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
2199 (XTset_vertical_scroll_bar): Don't make space between scroll bar
2200 and associated window.
2201 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
2202 from window config.
7ec64183
SM
2203 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2204 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
2205 Recalculate them if they are nil.
2206 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
2207 clicked control is a scroll bar.
2208 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
2209 event handler functions. Don't add modifiers to scroll bar click
7ec64183 2210 events. Call scroll bar release handler when window is deactivated.
17d28d26 2211 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
2212 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
2213 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 2214
7ec64183
SM
2215 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2216 New members track_top and track_height.
17d28d26
YM
2217
2218 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
2219 init_process when including sys/select.h.
2220
643b4cf5
LT
22212005-05-05 Luc Teirlinck <teirllm@auburn.edu>
2222
2223 * eval.c (Fdefvaralias): Doc fix.
2224
2225 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2226
99bda128
KS
22272005-05-05 Kim F. Storm <storm@cua.dk>
2228
2229 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
2230 default value.
2231 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
2232 Fix type of cursor-in-non-selected-windows.
2233
3a3563e9
JD
22342005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2235
2236 * mac.c: #undef init_process so not to conflict with system headers.
2237
0124c5bd
RS
22382005-05-02 Richard M. Stallman <rms@gnu.org>
2239
2240 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
2241
2242 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
2243
2244 * xdisp.c (Vcursor_in_non_selected_windows)
2245 (Qcursor_in_non_selected_windows): Vars deleted.
2246 (syms_of_xdisp): Don't initialize them.
2247 (get_window_cursor_type): Use cursor_in_non_selected_windows
2248 buffer slot.
2249
4b3f161f
KS
22502005-05-02 Kim F. Storm <storm@cua.dk>
2251
e40527dc
KS
2252 * macros.c (executing_kbd_macro_index): Rename from
2253 executing_macro_index. All uses changed.
2254 (executing_kbd_macro_iterations): Rename from
2255 executing_macro_iterations. All uses changed.
2256 (executing_kbd_macro): Rename from executing_macro.
2257 All uses changed.
2258 (syms_of_macros): Rename Lisp var executing-macro-index to
2259 executing-kbd-macro-index.
2260
4b3f161f
KS
2261 * xdisp.c (move_it_in_display_line_to): Fix last change.
2262
4d49edf6
LT
22632005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2264
f6b1b15a
LT
2265 * xmenu.c (Fx_popup_menu): Doc fix.
2266
4d49edf6
LT
2267 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
2268
4a766fe6
JR
22692005-05-02 Jason Rumney <jasonr@gnu.org>
2270
2271 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
2272
c924d3ff
TTN
22732005-05-02 Nozomu Ando <nand@mac.com>
2274
2275 * sysselect.h: Fix typo.
2276
b161ea4e 22772005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 2278
b161ea4e
NR
2279 * charset.c (Fchars_in_region): Remove as obsolete.
2280
d37e919d 22812005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
2282
2283 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 2284 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 2285 glyph.
5c2e5a5e 2286
bec0b768
LT
22872005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2288
2289 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
2290
ebbfa918
RS
22912005-05-01 Richard M. Stallman <rms@gnu.org>
2292
2293 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
2294 If user cancels the menu, quit unless FOR_CLICK.
2295
7ec64183 2296 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
2297 All uses changed.
2298 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
2299 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
2300 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
2301 * commands.h (Vexecuting_kbd_macro): Likewise.
2302
a72c2d97
TTN
23032005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
2304
2305 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
2306
7e995a23
RS
23072005-04-30 Richard M. Stallman <rms@gnu.org>
2308
2309 * fileio.c (Ffind_file_name_handler): Handle the `operations'
2310 property of the file name handler.
2311 (Qoperations): New variable.
2312 (syms_of_fileio): Initialize and staticpro it.
2313
2314 * xdisp.c (set_message_1): Delete xassert.
2315
7a92caf8
YM
23162005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2317
7ec64183 2318 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
2319
2320 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
2321
2322 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
2323 before/after including Carbon.h if there is a working mktime.
2324
5ae91803
KS
23252005-04-28 Kim F. Storm <storm@cua.dk>
2326
2327 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
2328 Fix cyclic alias check. If alias loop is detected, signal
2329 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
2330
d79b6c21
LK
23312005-04-28 Lute Kamstra <lute@gnu.org>
2332
2333 * eval.c (do_autoload): Record only autoloads in the autoload
2334 property of symbols.
2335
8c75afbf
NR
23362005-04-28 Nick Roberts <nickrob@snap.net.nz>
2337
2338 * emacs.c (USAGE1): Add --basic-display and --quick options.
2339
832e294f
KS
23402005-04-27 Kim F. Storm <storm@cua.dk>
2341
2342 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
2343
f03f317a
RS
23442005-04-26 Richard M. Stallman <rms@gnu.org>
2345
c019856e
RS
2346 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
2347 (syms_of_window): Doc fixes.
2348
f03f317a
RS
2349 * indent.c (Fvertical_motion): Undo previous change.
2350
38f60cd9
KH
23512005-04-26 Kenichi Handa <handa@m17n.org>
2352
2353 * fns.c (char_table_range): New function.
2354 (Fchar_table_range): Signal an error if characters in the range
2355 have inconsistent values. Don't check the parent.
2356
87ede5a1
KH
23572005-04-25 Kenichi Handa <handa@m17n.org>
2358
2359 * fontset.c (fontset_set): Fix previous change.
2360
a6390474
RS
23612005-04-24 Richard M. Stallman <rms@gnu.org>
2362
2363 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
2364
7fce7dfe
EZ
23652005-04-24 Eli Zaretskii <eliz@gnu.org>
2366
cf1982d9
EZ
2367 * regex.c (re_search_2, re_match_2_internal): Convert second arg
2368 of RE_TRANSLATE to int, to shut up GCC warnings.
2369
7fce7dfe
EZ
2370 * fileio.c (Fcopy_file): Doc fix.
2371 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
2372 not needed.
2373
49ed33c7
YM
23742005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2375
2376 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
2377 (SOME_MACHINE_OBJECTS): Likewise.
2378 (mac.o): Depend on ccl.h.
2379 (macselect.o): New target.
2380
7ec64183
SM
2381 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
2382 Call syms_of_macselect.
49ed33c7
YM
2383
2384 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
2385
7ec64183 2386 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
2387 (QCLIPBOARD): Remove variable.
2388 (syms_of_mac): Don't initialize it.
2389 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
2390 Remove functions.
2391 (syms_of_mac): Don't defsubr them.
2392 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
2393 (QHFS_plus_D, QHFS_plus_C): New variables.
2394 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
2395 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
2396 (cfstring_create_normalized): New functions.
2397 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
2398 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2399
7ec64183
SM
2400 * macterm.c (handling_window_update, terminate_flag):
2401 Remove variables.
2402 (do_window_update, do_ae_quit_application, XTread_socket):
2403 Don't use them.
49ed33c7
YM
2404 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
2405 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
2406 (init_service_handler): Move to macselect.c. Remove declarations.
2407 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
2408 (Qapplication, Qabout): New variables.
2409 (syms_of_mac): Initialize them.
2410 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
2411 (Qperform): New variables.
2412 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 2413 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
2414 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
2415 (mac_store_application_menu_event, init_menu_bar): New functions.
2416 [USE_CARBON_EVENTS] (mac_handle_command_event)
2417 (init_command_handler): New functions.
2418 (mac_handle_window_event): Return noErr on window update event.
2419 (do_ae_quit_application): Call mac_store_application_menu_event.
2420 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
2421 and init_menu_bar.
2422
2423 * macterm.h (x_clear_frame_selections): Add extern.
2424
2425 * macselect.c: New file for selection processing on Mac OS.
2426
469bc679
RS
24272005-04-23 Richard M. Stallman <rms@gnu.org>
2428
2429 * fileio.c (Fcopy_file): New arg MUSTBENEW.
2430 (Frename_file): Pass new arg to Fcopy_file.
2431
2432 * window.c (window_size_fixed): Variable deleted.
2433 (syms_of_window): Initialize window-size-fixed to nil.
2434 But don't DEFVAR window_size_fixed.
2435
d379c558
AS
24362005-04-23 Andreas Schwab <schwab@suse.de>
2437
2438 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
2439 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
2440 use lib64 instead of lib.
2441 (_LP64) [_ARCH_PPC64]: Define if not defined.
2442
007d105b
TTN
24432005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
2444
2445 * s/ms-w32.h (HAVE_PWD_H): Define.
2446
b9c15916
KH
24472005-04-22 Kenichi Handa <handa@m17n.org>
2448
2449 * fns.c (copy_sub_char_table): Explicitly copy the default value
2450 of the sub-chartable.
2451
2452 * fontset.c (fontset_set): When a sub-chartable is created,
2453 explicitly sets the defalt value.
2454
1ba52906
KS
24552005-04-22 Kim F. Storm <storm@cua.dk>
2456
2457 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
2458 (Fsafe_plist_get): Rename to Fplist_get.
2459 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
2460 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
2461
2462 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
2463
2464 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
2465 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2466 Use Fplist_get instead of Fsafe_plist_get.
2467
2468 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
2469
e235145c
MB
24702005-04-21 Miles Bader <miles@gnu.org>
2471
2472 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
2473
766c5349
TTN
24742005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
2475
c164a7e6
TTN
2476 * sysdep.c: Remove reference to defunct vms-pwd.h.
2477 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
2478 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
2479
766c5349
TTN
2480 * config.in: Regenerate.
2481
2b048bf5
KH
24822005-04-20 Kenichi Handa <handa@m17n.org>
2483
2484 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
2485 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
2486 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
2487
2488 * alloc.c (make_sub_char_table): Argument changed to initial
2489 value of the slots.
2490
2491 * data.c (Faref): Handle special slots used as default values of
2492 ascii, eight-bit-control, eight-bit-control. Don't ignore a
2493 default value set for a group of characters.
2494 (Faset): Signal an error if IDXVAL is not a valid character code.
2495 Make a sub-chartable with correct initial value.
2496
2497 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
2498 values for ascii, eight-bit-control, eight-bit-graphic.
2499 Don't call Faref with charset-id.
2b048bf5
KH
2500 (Fset_char_table_default): Document how to treat normal character
2501 argument. Handle special slots used as default values of ascii,
2502 eight-bit-control, eight-bit-control. Make a sub chartable if
2503 necessary.
2504
b0a35939
KH
25052005-04-20 Kenichi Handa <handa@m17n.org>
2506
2507 * search.c (boyer_moore): Fix previous change.
2508
98dde726
KS
25092005-04-19 Kim F. Storm <storm@cua.dk>
2510
2511 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
2512 face unless last visible char and first invisible char have the
2513 same face. Also use default face if saved_face_id is undefined.
2514
327a3376
YM
25152005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2516
2517 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
2518 `full_name'.
2519 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
2520 mac_scriptcode member.
2521
2522 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
2523 (syms_of_mac): Don't initialize them.
2524 (Vmac_charset_info_alist): New variable.
2525 (syms_of_mac): Defvar it.
2526 (create_text_encoding_info_alist): New function.
2527 (decode_mac_font_name, mac_to_x_fontname)
2528 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
2529 code the correspondence among XLFD charsets, Mac script codes, and
2530 Emacs coding systems. Use Vmac_charset_info_alist and result of
2531 create_text_encoding_info_alist instead.
2532 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
2533 routines also on Mac OS Classic.
7ec64183
SM
2534 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
2535 Use add_font_name_table_entry.
327a3376
YM
2536 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
2537 specified. Derive unspecified scalable fields from specified one.
2538 (x_list_fonts): Consider Valternate_fontname_alist.
2539 (kDefaultFontSize): Change value from 9 to 12.
2540 (XLoadQueryFont): Get decoded font family, font face, and charset
2541 from x_font_name_to_mac_font_name. Set full name of loaded font.
2542 (mac_unload_font): Free `full_name' member.
2543 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
2544 NULL. Copy full_name member of struct MacFontStruct to that of
2545 struct font_info.
2546
d0636839
KS
25472005-04-19 Kim F. Storm <storm@cua.dk>
2548
5827e9d4
KS
2549 * xdisp.c (handle_stop): Set saved_face_id to current face if
2550 selective_display_ellipsis_p so ellipsis will be shown in same
2551 face as preceding text.
2552 (setup_for_ellipsis): Don't set saved_face_id here.
2553 (next_element_from_display_vector): Default to saved_face_id.
2554
d0636839
KS
2555 * fns.c (Fsafe_get): New function.
2556 (syms_of_fns): Defsubr it.
2557
2558 * lisp.h (Fsafe_get): EXFUN it.
2559
2560 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
2561 loops in case of bad face property lists. Limit number of face
2562 alias lookups to 10 (in case of face alias loops).
2563
e5c78c9d
KS
25642005-04-18 Kim F. Storm <storm@cua.dk>
2565
2566 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
2567 It replaces the corresponding member from struct window, as a
2568 window may now show multiple overlay arrows.
2569 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
2570
2571 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
2572 Compare overlay_arrow_bitmap than overlay_arrow_p members.
2573
2574 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
2575 rather than from window.
2576 (update_window_fringes): Compare overlay_arrow_bitmap rather than
2577 overlay_arrow_p members.
2578 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
2579 if not default.
2580
2581 * window.h (struct window): Remove member overlay_arrow_bitmap.
2582
2583 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
2584
2585 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
2586 Calls changed. Don't check for overlay-arrow-bitmap property here.
2587 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
2588 fringe is present, return Lisp integer for bitmap (or -1 for default).
2589 Fix value of overlay-arrow-bitmap property to be a symbol, use
2590 lookup_fringe_bitmap to parse it.
2591 (display_line): Change call to overlay_arrow_at_row. Store integer
2592 return value as overlay bitmap in row rather than window.
2593 Only show overlay arrow if row displays text, or if no other overlay
2594 arrow is seen in window (if overlay marker is at point-max).
2595
7d603e3f
TTN
25962005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2597
2598 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
2599
9942fa0c
LK
26002005-04-18 Lute Kamstra <lute@gnu.org>
2601
2602 * lread.c (Vloads_in_progress): Static.
2603 * fns.c (Vloads_in_progress): Remove extern.
2604 (load_in_progress): Add extern.
2605 (Frequire): Use load_in_progress instead of Vloads_in_progress.
2606
999cdb8f
TTN
26072005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2608
2609 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
2610
3f4413f8
YM
26112005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2612
2613 * macterm.c (XTread_socket): Don't beep on keyboard input even if
2614 no frame is visible.
2615
60ec7b7e
DN
26162005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2617
2618 * term.c (struct keys): Add support for shifted keys.
2619
a8a1c0ee
RS
26202005-04-16 Richard M. Stallman <rms@gnu.org>
2621
2622 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
2623 (set_message): Call with_echo_area_buffer with WHICH = 0.
2624 (set_message_1): Erase the echo area buffer first thing.
2625 (echo_area_display): Don't clear echo_message_buffer.
2626
f3cf04d3
YM
26272005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2628
2629 * Makefile.in (mac.o): Depend on charset.h and coding.h.
2630
2631 * mac.c: Include charset.h and coding.h.
2632 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 2633 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
2634 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
2635
2636 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2637
2638 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
2639
2640 * macterm.c (x_autoselect_window_p): Remove variable.
2641 (last_window): New variable.
7ec64183
SM
2642 (XTreassert_line_highlight, x_change_line_highlight):
2643 Remove declarations.
f3cf04d3
YM
2644 (mac_focus_changed, x_detect_focus_change): New functions and
2645 declarations.
2646 (XTextExtents16, front_emacs_window): Remove function.
2647 (mac_focus_frame): New function.
2648 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
2649 (mac_check_for_quit_char): Use it instead of front_emacs_window.
2650 (x_scroll_bar_report_motion): Obtain window from control owner.
2651 (x_make_frame_invisible): Set window manager size hint.
2652 (do_mouse_moved): Remove function.
2653 (XTread_socket): Move its contents here. Generate select-window
2654 event on mouse movement if needed. Use x_detect_focus_change on
2655 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
2656 window rectangle when dnd items are dropped.
2657 Don't activate/deactivate root control.
f3cf04d3
YM
2658 (frame_highlight, frame_unhighlight): Activate/deactivate root
2659 control here.
2660 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
2661
2662 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
2663 New extern.
2664
9e5b2858
LT
26652005-04-15 Luc Teirlinck <teirllm@auburn.edu>
2666
2667 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
2668 (lisp): Use it.
2669 (SOME_MACHINE_LISP): Add tooltip.
2670
42c6741e
YM
26712005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2672
7ec64183
SM
2673 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
2674 Don't include TextEncodingConverter.h.
42c6741e
YM
2675 (mac_system_script_code, Vmac_system_locale): New variables.
2676 (syms_of_mac): Defvar them.
2677 (mac_get_system_locale): New function.
2678
7ec64183
SM
2679 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
2680 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 2681 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
2682 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
2683 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
2684
2685 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
2686 TextEncodingConverter.h.
2687
0614c575
ST
26882005-04-13 Steven Tamm <steventamm@mac.com>
2689
7e26f91b
KS
2690 * macterm.c (syms_of_macterm): Remove redundant definition of
2691 mac-pass-control-to-system.
0614c575 2692
203eb0aa
SM
26932005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2694
2695 * window.c (Fset_window_configuration): Be careful when you choose
2696 among several possible points for the new_current_buffer.
2697
a56e6111
YM
26982005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2699
2700 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
2701 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
2702 (Qlanguage_change) [MAC_OS]: New variable.
2703 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 2704 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
2705
2706 * macterm.c (mac_keyboard_text_encoding)
2707 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
2708 (XTread_socket): Store language-change event if keyboard script change
2709 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 2710 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 2711
7e26f91b 2712 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 2713
6695c528
RS
27142005-04-10 Richard M. Stallman <rms@gnu.org>
2715
2716 * emacs.c (standard_args): Rename --bare-bones to --quick.
2717 Add -D aka --basic-display.
2718
2719 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
2720
18e2d91f
RS
27212005-04-09 Richard M. Stallman <rms@gnu.org>
2722
2723 * keymap.c (where_is_internal): Convert a string used as event type
2724 into "(any string)".
2725
2726 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
2727 * fns.c (Vloads_in_progress): Add extern.
2728 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
2729
27302005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
2731
2732 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
2733
1cf21850
LK
27342005-04-09 Lute Kamstra <lute@gnu.org>
2735
2736 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
2737 within the accessible part of the buffer.
2738
bfd93240
KS
27392005-04-09 Kim F. Storm <storm@cua.dk>
2740
2741 * lread.c (readevalloop): Add args START and END as region in
2742 current buffer to read. Callers changed.
2743 When specified, narrow to this region only when reading,
2744 not during eval. Track next point to read from during eval.
2745 Also restore point to "real" buffer position before eval.
2746 (Feval_region): Don't save excursion and restriction here, and
2747 don't narrow to region. Just pass region to readevalloop.
2748 Note: Point is now preserved even when PRINTFLAG is nil.
2749
9ba27690
KS
27502005-04-08 Kim F. Storm <storm@cua.dk>
2751
2752 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
2753
73f0d996
KS
27542005-04-06 Kim F. Storm <storm@cua.dk>
2755
2756 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
2757
369f76bb
YM
27582005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2759
2760 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
2761 (Fmac_get_preference): Doc fix.
2762
203eb0aa
SM
2763 * macfns.c (Fx_create_frame, x_create_tip_frame):
2764 Add "fontset-mac" to fallback font/fontsets.
369f76bb 2765
2ba613a6
KS
27662005-04-04 Kim F. Storm <storm@cua.dk>
2767
4d5ddddc
KS
2768 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
2769
2ba613a6
KS
2770 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
2771 Call it again after autoload.
2772
1673df2e
JD
27732005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2774
2775 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
2776 mallopt.
2777
2778 * ralloc.c (r_alloc_init): Ditto.
2779
41639988
KH
27802005-04-01 Kenichi Handa <handa@m17n.org>
2781
1cf21850
LK
2782 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
2783 (Vascii_eqv_table): Extern them.
41639988
KH
2784
2785 * casetab.c (set_case_table): If standard is nonzero, setup
2786 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
2787
2788 * search.c (looking_at_1): Use current_buffer->case_canon_table,
2789 not DOWNCASE_TABLE.
2790 (string_match_1): Likewise.
2791 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
2792 Vascii_downcase_table.
2793 (fast_string_match_ignore_case): Likewise.
2794 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
2795 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
2796 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
2797 simple_translate.
2798
6ca53601
SM
27992005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2800
2801 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
2802 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
2803 Use XtNtopShadowPixel and XtNbottomShadowPixel.
2804 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
2805 really work and that breaks with some versions of Xaw3d.
2806
fafbb99d 28072005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
2808
2809 * coding.c (syms_of_coding): Fix previous change.
2810
6ca53601
SM
28112005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
2812
2813 * fileio.c (search_embedded_absfilename): Fix last change.
2814
bf762c98
KH
28152005-03-25 Kenichi Handa <handa@m17n.org>
2816
2817 * coding.c (syms_of_coding): Suggest to use set-coding-category in
2818 the docstring of coding-category-list.
2819
f793f885
KS
28202005-03-31 Kim F. Storm <storm@cua.dk>
2821
2822 * keyboard.c (Qmouse_fixup_help_message): New var.
2823 (syms_of_keyboard): Intern and staticpro it.
2824 (show_help_echo): Apply mouse-fixup-help-message to help string.
2825
c364fe19
KS
28262005-03-30 Kim F. Storm <storm@cua.dk>
2827
2828 * xdisp.c (display_line): Allow multiple overlay arrows in window.
2829
c70a4df6
SM
28302005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2831
2832 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
2833 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
2834 (Ffile_name_absolute_p): Use it.
2835 (search_embedded_absfilename): New fun, extracted from
2836 Fsubstitute_in_file_name. Use file_name_absolute_p.
2837 Free the pw data after use.
2838 (Fsubstitute_in_file_name): Use it.
2839 After cutting a prefix, re-check file-name-handler.
2840
6e7d0438
JR
28412005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
2842
6ca53601 2843 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
2844
2845 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
2846 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
2847
65671706
SM
28482005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2849
2850 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
2851 Use Fexit_minibuffer.
2852 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
2853
0de4dad4
SM
28542005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2855
781da985
SM
2856 * dired.c (Ffile_attributes): Add a missing gcpro.
2857
0de4dad4
SM
2858 * alloc.c (make_number): The arg can be bigger than `int'.
2859 * lisp.h (make_number): Make prototype more precise.
2860
2861 * process.c, dired.c (Vfile_name_coding_system)
2862 (Vdefault_file_name_coding_system):
2863 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
2864 (Vdefault_file_name_coding_system): Remove unused declarations.
2865
ff18668f
JD
28662005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2867
2868 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
2869 if it failed to pop up (Gnome "show pointer on ctrl" option makes
2870 menus fail to pop up).
2871
0de4dad4 28722005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
2873
2874 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 2875 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 2876
8df0ffbe
KS
28772005-03-22 Kim F. Storm <storm@cua.dk>
2878
2879 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
2880 * dispextern.h (lookup_derived_face): Fix prototype.
2881 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
2882
2883 * xdisp.c (handle_single_display_spec): Derive left-fringe and
2884 right-fringe face from fringe face.
2885
2886 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
2887 Derive face from fringe face.
2888
6ca30ba4
JD
28892005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2890
2891 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
2892
d615870a
DK
28932005-03-22 David Kastrup <dak@gnu.org>
2894
2895 * textprop.c (Fnext_char_property_change)
66347da7 2896 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
2897 (Fnext_single_char_property_change)
2898 (Fprevious_single_char_property_change): Check that limit is a
2899 number in strings.
2900 (Fnext_single_char_property_change): Coerce position to integer.
2901 (Fprevious_single_char_property_change): Same here.
2902
32b939ea
TTN
29032005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
2904
2905 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
2906
6027e473
SM
29072005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2908
2909 * frame.c (Fignore_event): Remove.
2910 (syms_of_frame): Don't defsubr it.
2911
2912 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
2913 redundant `ignore-event'.
2914
730f4d72
EZ
29152005-03-19 Eli Zaretskii <eliz@gnu.org>
2916
2917 * unexec.c (write_segment, unexec): Move these functions to avoid
2918 forward references (which cause errors with "gcc -gcoff").
2919
c7f6afd5
JD
29202005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2921
6027e473 2922 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 2923 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 2924
c7f6afd5
JD
2925 * xrdb.c (x_load_resources): Use different char *helv when I18N
2926 is present.
2927
db328182
KH
29282005-03-17 Kenichi Handa <handa@m17n.org>
2929
66347da7 2930 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 2931
211f2210
SM
29322005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2933
2934 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
2935 Use xic_create_fontsetname even for non-Motif menus.
2936 Don't forget to free the fontsetname.
2937
2938 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
2939
c7bd5d57
RS
29402005-03-17 Richard M. Stallman <rms@gnu.org>
2941
2942 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
2943
2944 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
2945 (Fmake_symbolic_link): Use G to read the new file name.
2946
2947 * callint.c (Finteractive): Document G option.
2948 (Fcall_interactively): Implement G option.
2949
2950 * buffer.c (buffer_lisp_local_variables): New function,
2951 broken out from Fbuffer_local_variables.
2952 (clone_per_buffer_values): Use buffer_lisp_local_variables.
2953
888953f1
SM
29542005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2955
3c916d65
SM
2956 * xfns.c (xic_create_fontsetname): Add `motif' argument.
2957 Always return a freshly allocated string.
2958 (xic_create_xfontset): Adjust call.
2959
2960 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
2961 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
2962 (dump_realized_face): Fix warning.
2963
9f9e5275
SM
2964 * emacs.c (Fkill_emacs): YAILOM.
2965
888953f1
SM
2966 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
2967
48502d68
YM
29682005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2969
2970 * mac.c (HASHKEY_TERMINAL): Remove.
2971 (HASHKEY_MAX_NID): New macro.
2972 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
2973 argument.
888953f1 2974 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
2975 (xrm_create_database, xrm_q_put_resource)
2976 (xrm_merge_string_database, xrm_q_get_resource_1)
2977 (xrm_q_get_resource): Change resource database representation so
2978 that it may not use multiple hash tables for a single database.
2979 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
2980
d5161e8c
SM
29812005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
2982
11a646cd
SM
2983 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
2984
2985 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
2986 locale-coding-system, as was already done for WINDOWSNT.
2987
d5161e8c
SM
2988 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
2989 translation for chars in the 0-255 range.
2990
568b6e41
LK
29912005-03-16 Lute Kamstra <lute@gnu.org>
2992
2993 * floatfns.c (Ffloor): Doc fix.
2994
469fb3cf
YM
29952005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2996
2997 * mac.c: Include macterm.h instead of directly including Carbon.h.
2998 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
2999 (Qarray, Qdictionary): New variables.
3000 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3001 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
3002 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
3003 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
3004 in callback for CFDictionaryApplyFunction.
3005 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3006 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3007 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
3008 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
3009 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
3010 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3011 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 3012 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
3013 (parse_binding, parse_component, parse_resource_name, parse_value)
3014 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
3015 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
3016 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
3017 New functions.
469fb3cf
YM
3018
3019 * macfns.c (mac_get_rdb_resource): Remove function.
3020 (x_get_string_resource): Use xrm_get_resource.
3021
3022 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
3023
3024 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
3025 name_list_element.
3026 (mac_make_rdb): Create resource database from preferences and
3027 argument string.
3028 (mac_term_init): Save resource database to cddr part of
3029 name_list_element.
3030
3031 * macterm.h (xrm_merge_string_database, xrm_get_resource)
3032 (xrm_get_preference_database): Add externs.
3033 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3034 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3035 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
3036
3037 * process.c (init_process): Change `#ifdef DARWIN' to `#if
3038 defined (DARWIN) || defined (MAC_OSX)'
3039
3040 * s/darwin.h (DARWIN): Don't define.
3041
6a3fac90
YM
30422005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3043
3044 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
3045 Remove unused variables.
3046 (syms_of_macfns): Don't initialize them. Likewise for
3047 Qface_set_after_frame_default. Defvar and initialize
3048 Vx_window_horizontal_drag_shape.
3049 (x_set_mouse_color): Change mouse pointer shape.
3050 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 3051 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
3052 (hourglass_started): New function (from xfns.c).
3053 (start_hourglass, cancel_hourglass): Put function body in #ifdef
3054 MAC_OSX.
3055 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
3056 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 3057 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
3058
3059 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
3060 Controls.h. Use ThemeCursor instead of CursHandle.
3061
d5161e8c
SM
3062 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
3063 Remove functions and declarations.
3064 (mac_set_colors): Take argument for saving background color.
3065 All callers changed.
6a3fac90
YM
3066 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
3067 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
3068 background color.
3069 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
3070 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
3071 Use SetThemeCursor.
6a3fac90
YM
3072 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
3073 indicator control to the upper-right corner of the window.
3074 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
3075 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
3076 (do_window_update): Update controls after updating content area.
3077 (mac_handle_window_event): Remove unused extern.
3078 (XTread_socket): Check both control handle and control part code
3079 to determine whether a scroll bar is clicked. Activate/deactivate
3080 root control instead of contained scroll bar controls.
3081 (make_mac_terminal_frame): Use ThemeCursor constants.
3082
d5161e8c
SM
3083 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
3084 New member hourglass_control.
6a3fac90 3085 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 3086 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 3087
a7321976
YM
30882005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3089
3090 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 3091 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
3092 laptops, and fn + `enter' on laptops.
3093
f7b758bd
SM
30942005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3095
3096 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
3097 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
3098 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
3099
3100 * xfns.c (xic_defaut_fontset): New constant.
3101 (xic_create_fontsetname): New function.
3102 Extracted from create_frame_xic. Try to generate a slightly
3103 better fontset.
3104 (xic_create_xfontset): Use it.
3105 (create_frame_xic): Simplify.
3106
dac24db4
SM
31072005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
3108
3109 * fileio.c (Fmake_symbolic_link): Fix last change.
3110
e0402468
RS
31112005-03-11 Richard M. Stallman <rms@gnu.org>
3112
3113 * fileio.c (Frename_file, Fadd_name_to_file)
3114 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
3115 expand the basename of FILE relative to it.
3116
fa815b14
KH
31172005-03-11 Kenichi Handa <handa@m17n.org>
3118
3119 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
3120 before calling setup_coding_system so that autoloading of a coding
3121 system work.
3122
817d354b
JD
31232005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3124
68a505ef
JD
3125 * xfns.c (hourglass_started): New function.
3126
3127 * dispextern.h: Declare hourglass_started.
3128
3129 * keyboard.c (Fexecute_extended_command): Restart hourglass
3130 after call to Fcompleting_read if already started.
3131
817d354b
JD
3132 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
3133 GTK main loop is entered in xterm.c, thus doing the redraw.
3134
b0a6f45c
KS
31352005-03-10 Kim F. Storm <storm@cua.dk>
3136
3137 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
3138
ee5d57b0
KH
31392005-03-08 Kenichi Handa <handa@m17n.org>
3140
3141 * frame.c (x_set_font): Call set_default_ascii_font if an
3142 available font is found.
3143
3144 * fontset.c (set_default_ascii_font): New function.
dac24db4 3145 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
3146
3147 * fontset.h (set_default_ascii_font): Extern it.
3148
f30c4a5c
KS
31492005-03-07 Kim F. Storm <storm@cua.dk>
3150
3fb26a86
KS
3151 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
3152 (clear_image_cache_count): New var.
3153 (redisplay_internal): Don't clear face and image caches in the
3154 middle of redisplay; do it afterwards.
3155
a54595d4
KS
3156 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
3157
f30c4a5c
KS
3158 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
3159 is valid. If not, clear phys_cursor_on_p and return.
3160
3d182f9d
AS
31612005-03-07 Andreas Schwab <schwab@suse.de>
3162
3163 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
3164
85d964de
RS
31652005-03-06 Richard M. Stallman <rms@gnu.org>
3166
3167 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
3168
3169 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
3170 (Feval, Ffuncall): Use CHECK_CONS_LIST.
3171
3172 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
3173
3174 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
3175 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
3176
3ff96c81
JL
31772005-03-05 Juri Linkov <juri@jurta.org>
3178
3179 * emacs.c (USAGE1): Replace Info node name "command arguments"
3180 with "emacs invocation".
3181 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
3182 allow arguments `--color' and `MODE' to be separated by space.
3183 Add --no-blinking-cursor, -nbc.
3184 (standard_args): Add -nbc, --no-blinking-cursor.
3185
64eb0083
TTN
31862005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3187
3188 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
3189 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
3190 * fileio.c (Fexpand_file_name) [VMS]:
3191 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
3192 * doc.c (munge_doc_file_name) [VMS]: Likewise.
3193 (Fsnarf_documentation): Call munge_doc_file_name.
3194
ad708ae5
TTN
31952005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3196
3197 * s/vms.h (FILE_SYSTEM_CASE): New macro.
3198 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
3199 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
3200
ba025f6d
YM
32012005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3202
3203 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
3204 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 3205
dac24db4 3206 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
3207
3208 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3209 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 3210 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
3211 (mac_clear_font_name_table): Move extern to macterm.h.
3212
3213 * macfns.c (install_window_handler): Move extern to macterm.h.
3214 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
3215 valid. Don't check !NILP (dir) because it is already checked with
3216 CHECK_STRING.
3217 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 3218 specifying the default location and obtaining the selected filename.
ba025f6d
YM
3219
3220 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3221
2313f861 3222 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
3223 are included via Carbon.h.
3224
dac24db4
SM
3225 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
3226 Define USE_CARBON_EVENTS to 1.
2313f861 3227 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
3228 (x_free_frame_resources): Call remove_window_handler for
3229 non-tooltip windows.
3230 [TARGET_API_MAC_CARBON]: Don't include headers that are included
3231 via Carbon.h.
3232 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3233 (mac_do_receive_dragUPP): New variables.
3234 (mac_handle_service_event, init_service_handler): Put declarations
3235 and definitions in #ifdef MAC_OSX.
3236 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
3237 drag-and-drop handler functions and register them.
3238 (remove_window_handler): New function.
dac24db4
SM
3239 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
3240 Use fsspec_to_posix_pathname.
ba025f6d
YM
3241 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
3242 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
3243 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
3244 Set default cursors.
ba025f6d
YM
3245 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
3246 init_service_handler or init_quit_char_handler.
3247 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
3248
3249 * macterm.h (install_window_handler, remove_window_handler)
3250 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
3251 (mac_clear_font_name_table): New externs.
ad708ae5 3252
c1558952
TTN
32532005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3254
3255 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
3256 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
3257 (Fexpand_file_name): Likewise.
3258
fa439170
TTN
32592005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3260
3261 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
3262 no longer special-case VMS. Add bogus return value.
3263
db2dacf6
KS
32642005-03-02 Kim F. Storm <storm@cua.dk>
3265
3266 * dispextern.h (XASSERTS): Define to 0 if not already defined.
3267 (xassert) [!XASSERTS]: Define dummy version.
3268
0870514c
KS
32692005-03-02 Kim F. Storm <storm@cua.dk>
3270
3271 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
3272 Reported by David Kastrup.
3273
6b640092
KS
32742005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
3275
3276 * xdisp.c (get_next_display_element): Fix control and escape
3277 glyph from display vector.
3278
f4a5a485
SM
32792005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
3280
3281 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
3282
85d964de
RS
32832005-02-27 Richard M. Stallman <rms@gnu.org>
3284
3285 * xdisp.c (fast_find_position): Rename END to BEG.
3286 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
3287
6e8db3ea
JD
32882005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3289
f4a5a485 3290 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
3291 gtk_window_resize and x_wm_set_size_hint.
3292
0f465b55
KS
32932005-02-25 Kim F. Storm <storm@cua.dk>
3294
3295 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
3296
3297 * xdisp.c (init_from_display_pos): Don't read past end of
3298 it->overlay_strings array.
3299
d5fb8dab 33002005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
3301
3302 * buffer.c (syms_of_buffer): Fix typo.
3303
b02c3eed
LK
33042005-02-23 Lute Kamstra <lute@gnu.org>
3305
3306 * buffer.c (Foverlay_buffer): Doc fix.
3307
c8500765
KS
33082005-02-22 Kim F. Storm <storm@cua.dk>
3309
b686dd59
KS
3310 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
3311 and symbol keys in alists and hash tables.
3312
c8500765
KS
3313 * xdisp.c (fast_find_position): Fix search for start of overlay.
3314
81c85b53
KS
33152005-02-21 Kim F. Storm <storm@cua.dk>
3316
3317 * window.c (window_scroll_pixel_based): When scrolling backwards,
3318 handle partial visible line at end of window even when we hit PT.
3319
f4a5a485 33202005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
3321
3322 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
3323
0dd5a842
KS
33242005-02-21 Kim F. Storm <storm@cua.dk>
3325
3326 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
3327 I think those asserts are bogus if buffer contains invisible text
3328 or images.
3329
d5fb8dab 33302005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
3331
3332 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
3333
0fba9f25
KS
33342005-02-20 Kim F. Storm <storm@cua.dk>
3335
3336 * xdisp.c (pos_visible_p): Be sure to move to the specified
3337 position. Always get the full ascent / descent of the
3338 corresponding row, to return reliable rtop and rbot values.
3339 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
3340 Must look one character back, as back_to_previous_line_start
3341 returns position after the newline.
3342 (move_it_vertically_backward): Fix heuristic for when to move further
3343 back in case line_height * 2/3 is larger than window height.
3344 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
3345 as it does not do anything anymore. Add arg current_matrix_p to
3346 use current matrix rather than desired matrix when set.
3347 (try_cursor_movement): Don't scroll to make cursor row fully
3348 visible if cursor didn't move. This avoids unexpected recentering
3349 in case of blinking cursor or accepting process output.
3350 Use current matrix to check cursor row visibility.
3351 (redisplay_window): Fix whether to recenter or move to top in case
3352 cursor line is taller than window height.
3353 (find_first_unchanged_at_end_row): Stop search if we reach a row
3354 which not enabled (instead of abort).
3355
b1c2adc3
KS
33562005-02-18 Kim F. Storm <storm@cua.dk>
3357
c2ee48fb
KS
3358 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
3359 to be nil in a :box attribute value list; customize prints that
3360 as lisp value when no box color is specified.
3361
b1c2adc3
KS
3362 * .gdbinit (pitx, pit): Pretty print display iterator.
3363 (prowx, prow): Pretty print glyph row.
3364 (pcursorx, pcursor): Pretty print a window cursor.
3365 (pwinx, pwin): Pretty print struct window.
3366
f102186f
SM
33672005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3368
3369 * alloc.c (BLOCK_BYTES): Harmless typo.
3370
9b516537
AS
33712005-02-17 Andreas Schwab <schwab@suse.de>
3372
3373 * xfns.c (hack_wm_protocols): Use correct type for last parameter
3374 of XGetWindowProperty to avoid aliasing issues.
3375 (Fx_window_property): Likewise.
3376
3377 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 3378 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
3379
3380 * xterm.c (handle_one_xevent): Use union of struct input_event and
3381 struct selection_input_event to avoid aliasing issues.
3382 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
3383
886b1418
KS
33842005-02-17 Kim F. Storm <storm@cua.dk>
3385
3386 * dispextern.h (enum it_method): New enum.
3387 (GET_FROM_*): Its members.
3388 (struct it): Change member method from function pointer to enum.
3389
3390 * xdisp.c (check_it, init_from_display_pos, handle_stop)
3391 (setup_for_ellipsis, handle_single_display_spec)
3392 (handle_composition_prop, next_overlay_string)
3393 (get_overlay_strings, reseat_1, reseat_to_string)
3394 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
3395 (in_display_vector_p, display_line, get_next_display_element):
3396 Change it->method from function pointer to enum.
3397 (get_next_element): New array to map it->method to function.
3398 (get_next_display_element): Use it.
3399 (set_iterator_to_next): Use switch instead of if/else chain.
3400
99ee2c6a 34012005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
3402
3403 * w32select.c: Summary: Thorough rework to implement Unicode
3404 clipboard operations and delayed rendering.
3405
3406 Drop last_clipboard_text and related code, keep track of
f4a5a485 3407 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
3408
3409 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
3410 (clipboard_owner, modifying_clipboard, cfg_coding_system)
3411 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
3412 (current_coding_system, current_requires_encoding)
f4a5a485
SM
3413 (current_num_nls, current_clipboard_type, current_lcid):
3414 New static variables.
52c7f9ee
JR
3415
3416 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
3417 (render, render_all, run_protected, lisp_error_handler)
3418 (owner_callback, create_owner, setup_config)
f4a5a485
SM
3419 (enum_locale_callback, cp_from_locale, coding_from_cp):
3420 New local functions.
52c7f9ee
JR
3421
3422 (term_w32select, globals_of_w32select): New global functions.
3423
3424 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
3425 clipboard_owner instead. Use delayed rendering and provide
3426 all text formats. Provide CF_LOCALE if necessary.
3427
3428 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
3429 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
3430 available. Force DOS line-ends for decoding.
3431
3432 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
3433
3434 (syms_of_w32select): Init and register new variables.
3435
3436 * w32.h: Add prototypes for globals_of_w32select and
3437 term_w32select. Make the neighboring K&R declarations into
3438 prototypes, too.
3439
3440 * emacs.c: Include w32.h to get function prototypes.
3441 (main): Call globals_of_w32select.
3442
886b1418 3443 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
3444
3445 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
3446
86e61586
KS
34472005-02-16 Kim F. Storm <storm@cua.dk>
3448
3449 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
3450 at end of display vector.
3451
6407f07b
RS
34522005-02-15 Richard M. Stallman <rms@gnu.org>
3453
3454 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
3455 for mode and header lines.
3456
3457 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
3458
3459 * keymap.h (describe_map_tree): Change decl.
3460
3461 * keyboard.c (command_loop_1): Always use safe_run_hooks
3462 to run Qdeferred_action_function.
3463
3464 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
3465 (describe_map, describe_vector): Likewise. When it's 1,
3466 don't omit shadowed bindings, instead mark them as shadowed.
3467
3468 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
3469 for describe_map_tree. Pass 1 for MENTION_SHADOW.
3470
3471 * data.c (Fsetq_default): Allow no arg case.
3472
3bb917bf
KH
34732005-02-14 Kenichi Handa <handa@m17n.org>
3474
3475 * coding.c (encode_coding_string): Always return a unibyte string.
3476 If NOCOPY is nonzero and there's no need of encoding, make STR
3477 unibyte directly.
3478
3479 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
3480 multibyte string, signal an error instead of aborting.
3481
e31d908f
DN
34822005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
3483
3484 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
3485
48e029b6
KS
34862005-02-12 Kim F. Storm <storm@cua.dk>
3487
3488 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
3489
c10bb00a
KS
34902005-02-10 Kim F. Storm <storm@cua.dk>
3491
3492 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
3493 if it moves outside window or it doesn't display text.
3494
9ca0f64a
KS
34952005-02-09 Kim F. Storm <storm@cua.dk>
3496
3497 * undo.c (Fprimitive_undo): Check that undo function does not
3498 switch buffer.
3499
b8d6f4af
JD
35002005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3501
3502 * xselect.c (selection_data_to_lisp_data): For the special case
3503 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
3504 (x_property_data_to_lisp, selection_data_to_lisp_data):
3505 Comment update: data must be array of int for format == 32.
b8d6f4af 3506
3419757d
SM
35072005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3508
3509 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
3510
3a441526
JD
35112005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3512
fc34503b
JD
3513 * xfns.c (Fx_change_window_property): Use long array when format is 32.
3514 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
3515 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
3516 (x_set_tool_bar_lines): Check that width and height is greater than
3517 zero before clearing area.
fc34503b
JD
3518
3519 * xselect.c (x_reply_selection_request): Pass long array to
3520 XChangeProperty so that 64 bit longs are handeled correctly.
3521 (x_get_window_property): If format is 32 and long is bigger than 32
3522 bits convert data from XGetWindowProperty from long array to int array.
3523 (lisp_data_to_selection_data): When the input is a vector and the
3524 format is 32, allocate a long array even if long is bigger than 32 bits.
3525 (x_fill_property_data): Use char, short and long as the man page
3526 for XChangeProperty specifies. This way the data returned is OK for
3527 both 32 and 64 bit machines.
3528 (x_handle_dnd_message): Calculate size correctly even for 64 bit
3529 machines.
3530 (Fx_send_client_event): Undo change from 2005-02-05,
3531 x_fill_property_data now handles that case.
3532
3419757d 3533 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
3534 reason for the approach in the code.
3535
82ec225b
KS
35362005-02-07 Kim F. Storm <storm@cua.dk>
3537
3538 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
3539
ba2c991c
RS
35402005-02-06 Richard M. Stallman <rms@gnu.org>
3541
3542 * eval.c (Frun_hook_with_args)
3543 (Frun_hook_with_args_until_success)
3544 (Frun_hook_with_args_until_failure): Doc fixes.
3545
e120ea40
AS
35462005-02-05 Andreas Schwab <schwab@suse.de>
3547
3419757d 3548 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 3549
31f16913
JD
35502005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3551
3552 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
3553 the longs in a XClientMessageEvent correctly when long is 64 bits.
3554
6082a820
EZ
35552005-02-05 Eli Zaretskii <eliz@gnu.org>
3556
3557 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
3558 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
3559
0e95095b
JD
35602005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3561
3562 * xmenu.c (menubar_selection_callback): Force out GTK buffered
3563 events so the menu event comes after them. This is to prevent sit-for
3564 from exiting on buffered events directly after a menu selection,
3565 lisp code for Help => About Emacs uses sit-for.
3566
3567 * gtkutil.c (create_menus): Connect selection-done event instead of
3568 the deactivate event to deactivate_cb. This will make the last
3569 leave event come before the call to deactivate_cb, so the leave
3570 event does not make sit-for exit after a menu selection.
3571
5bb6a3c1
KS
35722005-02-03 Kim F. Storm <storm@cua.dk>
3573
3574 * dispnew.c (build_frame_matrix_from_leaf_window)
3575 [!GLYPH_DEBUG]: Fix xassert.
3576
3577 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
3578
3579 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3580
e9859e26
YM
35812005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3582
3583 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
3584 the compiling OS version.
3585
3586 * macfns.c (x_create_tip_frame): Likewise.
3587
3419757d 3588 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 3589
4e07258f
RS
35902005-02-03 Richard M. Stallman <rms@gnu.org>
3591
3592 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
3593
3594 * xdisp.c (echo_area_display): Clear echo_message_buffer.
3595
3596 * buffer.c (Fbury_buffer): Doc fix.
3597
4a34b529
ST
35982005-02-02 Steven Tamm <steventamm@mac.com>
3599
7e26f91b 3600 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 3601 xassert being uncondition, but predicate is.
7e26f91b 3602 * dispnew.c (update_window): Fix compile error due to
f6c62d96 3603 xassert being uncondition, but predicate is.
4a34b529 3604
d78f30b8
MB
36052005-02-02 Miles Bader <miles@gnu.org>
3606
3607 * dispextern.h (xassert): Enable unconditionally.
3608
b044278d
KS
36092005-02-02 Kim F. Storm <storm@cua.dk>
3610
3611 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
3612
56072160
KH
36132005-02-02 Kenichi Handa <handa@m17n.org>
3614
3615 * casefiddle.c (casify_object): Enable changing characters of
3616 different byte length.
3617 (casify_region): Fix loop condition, args to replace_range_2, and
3618 update opoint_byte.
3619
f4a5a485 3620 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 3621
5e1674c5
KS
36222005-02-01 Kim F. Storm <storm@cua.dk>
3623
3624 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
3625 stack before calling handle_display_prop.
3626
fb89c330
KS
36272005-01-31 Kim F. Storm <storm@cua.dk>
3628
3629 * undo.c (Qapply): New lisp var.
3630 (syms_of_undo): Intern and staticpro it.
3631 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
3632 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
3633
3634 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3635
7bf72fa6
JH
36362005-01-30 Jesper Harder <harder@phys.au.dk>
3637
a050b1a9
KS
3638 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
3639 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 3640
03c64f2e
LT
36412005-01-29 Luc Teirlinck <teirllm@auburn.edu>
3642
3643 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 3644 Increase value to 3 Meg.
03c64f2e 3645
49b8b5dc
JD
36462005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3647
3648 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
3649 button events are not received otherwise.
3650
5a92a9eb
RS
36512005-01-29 Richard M. Stallman <rms@gnu.org>
3652
3653 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3654
3655 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
3656
5c243ee4
SM
36572005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
3658
3659 * keymap.c (access_keymap): YAILOM.
3660
caf533af
KS
36612005-01-27 Kim F. Storm <storm@cua.dk>
3662
3663 * xdisp.c (get_phys_cursor_geometry): New function to calculate
3664 phys cursor position and size for hollow cursor. Position is
3665 aligned with get_glyph_string_clip_rect and ensures that a hollow
3666 cursor is shown, even when the actual glyph is not visible.
3667
3668 * dispextern.h (get_phys_cursor_geometry): Add prototype.
3669
3670 * xterm.c (x_clip_to_row): Ensure y >= 0.
3671 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3672
3673 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3674
3675 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3676
043f7f73
SM
36772005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
3678
3679 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
3680
889f3641
KS
36812005-01-27 Kim F. Storm <storm@cua.dk>
3682
3683 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
3684 glyph, even when row is only partially visible and actual cursor
3685 position is not visible.
3686
29099c2f
RS
36872005-01-24 Richard M. Stallman <rms@gnu.org>
3688
3689 * xterm.c (x_error_quitter): No longer static, and moved after
3690 x_error_handler.
3691
6adb6f01
KS
36922005-01-24 Kim F. Storm <storm@cua.dk>
3693
3694 * xdisp.c (move_it_by_lines): If we move forward after going too
3695 far back, cancel move if end position is same as start position.
3696
4d904fa0
ST
36972005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3698
3699 * dispextern.h (struct glyph_string): New members clip_head and
3700 clip_tail.
6adb6f01 3701
4d904fa0
ST
3702 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
3703 region to the area between clip_head and clip_tail.
3704 (draw_glyphs): Record the area that need to be actually redrawn to
3705 the new variables clip_head and clip_tail when there are
3706 overhangs. Set values of these variables to the corresponding
3707 members in struct glyph_string. Refine x coordinates for
3708 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 3709
4d904fa0
ST
3710 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
3711
3712 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
3713 QDTextBounds.
3714 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 3715 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 3716 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 3717 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 3718
f2417699
KS
37192005-01-24 Kim F. Storm <storm@cua.dk>
3720
6f67f013
KS
3721 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
3722 direction if window height was smaller than next-screen-context-lines.
3723 Now always scroll at least one line in the requested direction.
3724 Ensure that we actually do scroll backwards when requested to do so.
3725
f2417699
KS
3726 * xdisp.c (redisplay_window): Only try to make cursor line fully
3727 visible once (to avoid redisplay loop).
3728
a354b72c
KS
37292005-01-23 Kim F. Storm <storm@cua.dk>
3730
6b3d88f7 3731 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 3732 partially visible rows.
6b3d88f7
KS
3733 (window_scroll_pixel_based): Adapt to that change.
3734
5c20cae2
KS
3735 * window.c (window_scroll_pixel_based): Force moving to next line
3736 if scrolling doesn't move start point, e.g. if looking at tall image.
3737
a354b72c 3738 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
3739 Clear last_height before calling line_bottom_y to get real height.
3740 Fix calculation of y.
a354b72c 3741
d9e7c622
ST
37422005-01-22 Steven Tamm <steventamm@mac.com>
3743
3744 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 3745 (DARWIN): Define.
7e26f91b 3746
d9e7c622
ST
3747 * process.c (init_process): Default process-connection-type to
3748 nil on darwin 6 or less, t if it is 7 or higher. This way the
3749 broken pty behavior is still allowed on darwin 6 for interactive
3750 processes for people that know what they are doing.
3751
d00e399a
KS
37522005-01-22 Kim F. Storm <storm@cua.dk>
3753
3754 * window.c (auto_window_vscroll_p): New boolean.
3755 (syms_of_window): DEFVAR_BOOL it.
3756 (Fpos_visible_in_window_p): Extend return value to include RTOP
3757 and RBOT values if FULLY is nil.
3758 (window_scroll_pixel_based): Adjust vscroll for partially visible
3759 rows if auto_window_vscroll_p is set.
3760 (Fset_window_vscroll): Do nothing if vscroll is not modified.
3761
3762 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
3763 to return number of partially invisible pixels at top and bottom
3764 of the dislay row at POS.
3765
3766 * lisp.h (pos_visible_p): Fix prototype.
3767
f95a20e7
RS
37682005-01-21 Richard M. Stallman <rms@gnu.org>
3769
3770 * fileio.c (Fcopy_file): Doc fix.
3771
eee141ce
JD
37722005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3773
3774 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
3775 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
3776 start of function for older compilers.
3777
6f771c32
RS
37782005-01-20 Richard M. Stallman <rms@gnu.org>
3779
3780 * editfns.c (Fmessage): If arg is "", return "" (as before).
3781
3782 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
3783
3784 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
3785 variable.
3786
a15252fd
ST
37872005-01-20 Steven Tamm <steventamm@mac.com>
3788
043f7f73 3789 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
3790 (init_editfns): Assign new variable operating-system-release
3791 based on call to uname if available.
043f7f73 3792 (get_operating_system_release): Add function to
d00e399a 3793 allow c-level access to operating system release.
a15252fd
ST
3794
3795 * config.h: Regenerated.
3796
043f7f73
SM
3797 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
3798 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
3799 using ptys as '7'.
3800
3d6a4b2d
KS
38012005-01-20 Kim F. Storm <storm@cua.dk>
3802
62fc9b0f
KS
3803 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
3804
c310aca4
KS
3805 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
3806 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
3807
3808 * macterm.c (x_draw_glyph_string_box): Likewise.
3809
3810 * w32term.c (x_draw_glyph_string_box): Likewise.
3811
3d6a4b2d
KS
3812 * indent.c (Fvertical_motion): Temporarily disable selective display.
3813
27c8be45
KS
38142005-01-19 Kim F. Storm <storm@cua.dk>
3815
77db5cf3
KS
3816 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
3817 image property.
3818
27c8be45
KS
3819 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
3820
81f498dc
KS
38212005-01-18 Kim F. Storm <storm@cua.dk>
3822
3823 * xdisp.c (fast_find_position): Backtrack to find first row if
3824 charpos is inside a display overlay that spans multiple lines.
3825
1cdb0707
KH
38262005-01-18 Kenichi Handa <handa@m17n.org>
3827
3828 * coding.c (decode_coding_iso2022): Translate invalid codes if
3829 translation-table is specified.
3830
677159ce
KS
38312005-01-18 Kim F. Storm <storm@cua.dk>
3832
3833 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
3834 change. If handle_display_prop indicates newline is replaced by
3835 image or text, move back to start of relevant overlay or interval
3836 and continue scan from there. Simplify.
3837
977284cc
KS
38382005-01-17 Kim F. Storm <storm@cua.dk>
3839
043f7f73
SM
3840 * dispnew.c (mode_line_string, marginal_area_string):
3841 Fix off-by-one error in search for glyph.
977284cc 3842
e24531b7
KS
38432005-01-16 Kim F. Storm <storm@cua.dk>
3844
3845 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
3846
5ddd7664
ST
38472005-01-16 Steven Tamm <steventamm@mac.com>
3848
043f7f73 3849 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 3850
fc2ff44b
AS
38512005-01-16 Andreas Schwab <schwab@suse.de>
3852
3853 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
3854
50af5100
JD
38552005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3856
3857 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
3858 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
3859
a2d5fca0
JD
38602005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3861
3862 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
3863 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
3864 New flags for readable_events.
043f7f73 3865 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
3866 (tracking_off): Call readable_events and get_input_pending with
3867 flag READABLE_EVENTS_DO_TIMERS_NOW.
3868 (readable_events): Move code from old readable_filtered_events here,
3869 but check new READABLE_EVENTS_* in argument flags instead of previous
3870 two boolean arguments do_timers_now and filter_events.
3871 If we are doing mouse tracking and the mouse moved, return only if
3872 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
3873 (swallow_events): Call get_input_pending with flag
3874 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 3875 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
3876 here. Replace boolean arguments do_timers_now, filter_events with
3877 flags, and pass flags to readable_events. Document new
3878 READABLE_EVENTS_* flags.
3879 (detect_input_pending_ignore_squeezables): New function.
3880 (detect_input_pending_run_timers): Call get_input_pending with flag
3881 READABLE_EVENTS_DO_TIMERS_NOW.
3882 (Finput_pending_p): Call get_input_pending with flags
3883 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
3884
3885 * dispnew.c (update_window, update_frame_1): Replace calls to
3886 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 3887 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
3888 mouse movements.
3889
3890 * lisp.h: Declare detect_input_pending_ignore_squeezables.
3891
42afbcda
ST
38922005-01-15 Steven Tamm <steventamm@mac.com>
3893
e24531b7
KS
3894 * macterm.c (Vmac_use_core_graphics): Declare variable for
3895 mac-allow-anti-aliasing.
3896 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 3897 (mac_draw_string_common): Use core graphics text rendering if
0530c679 3898 mac-allow-anti-aliasing is enabled.
743d0696 3899
42afbcda
ST
3900 * macfns.c (Fx_file_dialog): Save As dialog includes only the
3901 file name in the text box.
3902
9cdd4884
ST
39032005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3904
043f7f73
SM
3905 * macfns.c (x_set_foreground_color, x_set_background_color):
3906 Sync with xfns.c.
9cdd4884
ST
3907 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
3908 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
3909 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
3910
88948d55
KS
39112005-01-14 Kim F. Storm <storm@cua.dk>
3912
3913 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
3914
20d6de82
RS
39152005-01-13 Richard M. Stallman <rms@gnu.org>
3916
3917 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
3918 if Voverriding_terminal_local_map is non-nil.
3919
3920 * keyboard.c (syms_of_keyboard): Doc fix.
3921
f75a592e
KS
39222005-01-13 Kim F. Storm <storm@cua.dk>
3923
3924 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 3925 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 3926
28f94a34
RS
39272005-01-12 Richard M. Stallman <rms@gnu.org>
3928
3929 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
3930 face property for characters that don't specify one.
3931
3932 * fns.c (Frequire): Record in load-history unconditionally.
3933
57a230b1
KS
39342005-01-10 Kim F. Storm <storm@cua.dk>
3935
3936 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
3937
3938 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
3939 Callers changed.
3940 Add support to merge with lisp face id too (if face_name is t).
3941
3942 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3943 Don't lookup lface_id from display table glyphs here; instead use
3944 merge_faces to merge the lisp face id into current face.
3945
8ab2c119
KS
39462005-01-09 Kim F. Storm <storm@cua.dk>
3947
3948 * dispextern.h (struct it): New member dpvec_face_id.
3949 (merge_into_realized_face): Add prototype.
3950
3951 * xfaces.c (merge_into_realized_face): New function. Used to
3952 merge escape-glyph face or face from display table into current face.
3953
3954 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
3955 (syms_of_xdisp): DEFVAR_LISP it.
3956 (escape_glyph_face): Remove var.
3957 (redisplay_window): Don't initialize it.
3958 (setup_for_ellipsis, get_next_display_element):
3959 Set it->dpvec_face_id to -1.
3960 (get_next_display_element): Test Vshow_nonbreak_escape.
3961 Do not setup escape_glyph_face.
3962 Properly merge escape-glyph face or face from display table with
043f7f73
SM
3963 current face for escape and control characters.
3964 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
3965 element of display vector.
3966 (next_element_from_display_vector): If it->dpvec_face_id is set,
3967 use that instead of lface_id from glyph itself.
3968
e0910857
JD
39692005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3970
3971 * xterm.h (struct x_output): New member, toolbar_detached.
3972
3973 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
3974 38.
3975 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
3976 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
3977 (xg_create_tool_bar): Initialize toolbar_detached.
3978 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
3979 toolbar_detached is zero.
3980
ff59904a
JD
39812005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3982
9b85e63d
JD
3983 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
3984 gtk_menu_popup if not for_click, so callbacks for the menu are called.
3985
ff59904a
JD
3986 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
3987 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 3988 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
3989
3990 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 3991 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
3992 XFLOAT_DATA to get extract number from Lisp object.
3993
f9a23a6f
KS
39942005-01-07 Kim F. Storm <storm@cua.dk>
3995
3996 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
3997 Set stop_charpos to current charpos instead of 0.
3998
28f94a34
RS
39992005-01-06 Nick Roberts <nickrob@snap.net.nz>
4000
4001 * xdisp.c (Fformat_mode_line): First arg now required.
4002
a6fffcdc
ST
40032005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4004
4005 * macterm.c (XLoadQueryFont): Correctly handle 0 size
4006 font widths that are returned from some Japanese fonts.
4007
c35b0c6b
KS
40082005-01-06 Kim F. Storm <storm@cua.dk>
4009
4010 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
4011 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
4012 (destroy_fringe_bitmap): Set fringe_faces element to nil.
4013 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
4014 fringe_faces array and init elements to nil.
4015 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
4016 non-persistent face id.
4017 (mark_fringe_data): New function for GC.
4018
4019 * alloc.c (mark_fringe_data): Declare extern.
4020 (Fgarbage_collect): Call mark_fringe_data.
4021
4022 * alloc.c (overrun_check_free): Invalidate freed memory if
4023 XMALLOC_CLEAR_FREE_MEMORY is defined.
4024
e0e76ab9
ST
40252005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4026
4027 * macfns.c: Include sys/param.h.
4028 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
4029 and function.
4030 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
4031 of filename string. Set event callback function when creating
4032 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 4033 of apple event descriptor record if failed to create it.
e0e76ab9
ST
4034
4035 * macterm.c: Include sys/param.h.
4036 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
4037 kEventWindowUpdate.
4038 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
4039 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
4040 of FSSpec from apple event descriptor record.
4041 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
4042 size of filename string.
4043 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
4044 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
4045 file dialog is in action.
043f7f73
SM
4046 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
4047 Reject only when there are no filename items. Set background color
e0e76ab9 4048 before (un)highlighting the window below the dragged items.
2313f861 4049 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 4050
043bc640
KH
40512005-01-05 Romain Francoise <romain@orebokech.com>
4052
4053 * term.c (encode_terminal_code): Fix buffer size computation.
4054
dd496df6
RS
40552005-01-04 Richard M. Stallman <rms@gnu.org>
4056
4057 * xdisp.c (Fformat_mode_line): Doc fix.
4058
026cdede
SM
40592005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4060
4061 * alloc.c (refill_memory_reserve): Move.
4062 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
4063 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
4064
d57c7572
RS
40652005-01-03 Richard M. Stallman <rms@gnu.org>
4066
4067 * window.c (window_scroll_pixel_based): Don't correct preserve_y
4068 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
4069
b14f868c
JR
40702005-01-03 Jason Rumney <jasonr@gnu.org>
4071
4072 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
4073 fontp->space_width to FONT_WIDTH so they are valid.
4074
4075 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 4076 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
4077 their appropriate values.
4078
4079 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4080 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
4081 fontp->space_width.
4082
e169f939
ST
40832005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4084
4085 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
4086 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
4087 metrics for max and min bounds.
4088 (x_load_font): Correctly calculate average font width metrics.
4089
19996af4
RS
40902005-01-02 Richard M. Stallman <rms@gnu.org>
4091
4092 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
4093
42d02da0
JD
40942004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4095
4096 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
4097
1db7dd46
RS
40982004-12-31 Richard M. Stallman <rms@gnu.org>
4099
b437860a
RS
4100 * xdisp.c (setup_for_ellipsis, get_next_display_element):
4101 Set it->ellipsis_p to 1 or 0.
4102 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 4103 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
4104 (cursor_row_p): If PT's at the end of the ellipsis the row
4105 ends within, don't display cursor on this row.
4106
4107 * dispextern.h (struct it): New element ellipsis_p.
4108 (struct glyph_row): New element ends_in_ellipsis_p.
4109
4110 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
4111 position if we're reading from something other than the buffer.
4112
1db7dd46
RS
4113 * window.c (window_scroll_pixel_based): Only look at
4114 Vscroll_preserve_screen_position if the old PT can't be kept.
4115 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4116
1225f637
KS
41172004-12-30 Kim F. Storm <storm@cua.dk>
4118
4119 * xdisp.c (get_line_height_property): New function extracted from
4120 original calc_line_height_property.
4121 (calc_line_height_property): Rework. Handle t and (nil . ratio).
4122 (x_produce_glyphs): Use them to handle line-height and
4123 line-spacing according to new height spec.
4124 (Qtotal): Remove.
33b2f4ea 4125 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 4126
c243063e
KH
41272004-12-30 Kenichi Handa <handa@m17n.org>
4128
4129 * fileio.c (Finsert_file_contents): Don't use
4130 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 4131 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
4132
4133 * fontset.h (struct font_info): New members space_width and
4134 average_width.
4135
4136 * frame.h (struct frame): New member space_width.
4137 (FRAME_SPACE_WIDTH): New macro.
4138
4139 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
4140
4141 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4142 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 4143 fontp->space_width.
043f7f73 4144 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
4145 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
4146
4147 * xdisp.c (x_produce_glyphs): Calculate tab width by
4148 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
4149
456e761b
ST
41502004-12-29 Sanghyuk Suh <han9kin@mac.com>
4151
4152 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 4153 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 4154
188577ce
LT
41552004-12-29 Luc Teirlinck <teirllm@auburn.edu>
4156
4157 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
4158
99ec74b9
RS
41592004-12-29 Richard M. Stallman <rms@gnu.org>
4160
4161 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
4162
30c92fab
ST
41632004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4164
4165 * macfns.c (install_window_handler): Modify extern to return OSErr
4166 value.
4167 (mac_window): Handle return value of install_window_handler.
4168
4169 * macterm.c (reflect_byte): Remove function.
4170 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
4171 Lookup table instead.
4172 (mac_do_font_lists): Simplify calculation of the longest
4173 nonspecial string.
4174 (init_mac_drag_n_drop): Remove function and declaration.
4175 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
4176 init_mac_drag_n_drop.
4177 (mac_do_track_drag): New function and declaration.
4178 (install_window_handler): Return OSErr value.
043f7f73
SM
4179 (install_window_handler) [TARGET_API_MAC_CARBON]:
4180 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 4181 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
4182 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
4183 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 4184
4b982924
DN
41852004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4186
4187 * coding.c (decode_coding): Fix previous change.
4188
93fdf45f
RS
41892004-12-28 Richard M. Stallman <rms@gnu.org>
4190
4191 * xdisp.c (back_to_previous_visible_line_start):
4192 Don't call handle_display_prop.
4193
5bdca8af
DN
41942004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4195
4196 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
4197 (decode_coding_emacs_mule, encode_coding_emacs_mule)
4198 (decode_coding_iso2022, encode_designation_at_bol)
4199 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
4200 (decode_coding): Constify arguments and local vars.
4201
33385c6f
JD
42022004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4203
4204 * xmenu.c (popup_get_selection): Only pop down dialogs
4205 on C-g and Escape.
95bdef2e 4206 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
4207 (create_and_show_popup_menu, create_and_show_dialog):
4208 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 4209
b15325b2
ST
42102004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4211
4212 * dispextern.h: Change HAVE_CARBON to MAC_OS.
4213 (struct glyph_string): Likewise.
a2c7e69a 4214
b15325b2
ST
4215 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
4216 mac_initialize.
a2c7e69a 4217
b15325b2
ST
4218 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
4219 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 4220
b15325b2 4221 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 4222
b15325b2
ST
4223 * frame.c (x_set_frame_parameters, x_report_frame_params)
4224 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
4225 (x_set_border_width, Vdefault_frame_scroll_bars):
4226 Change HAVE_CARBON to MAC_OS.
a2c7e69a 4227
b15325b2
ST
4228 * image.c [MAC_OS]: Include sys/stat.h.
4229 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
4230 QuickTimeComponents.h.
a2c7e69a 4231
b15325b2
ST
4232 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
4233 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 4234 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
4235 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
4236 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4237 (mac_clear_font_name_table): Add extern.
4238 (Fmac_clear_font_name_table): New defun.
4239 (syms_of_mac): Defsubr it.
4240 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
4241 [MAC_OSX] (select_and_poll_event): New function.
4242 [MAC_OSX] (sys_select): Use it.
4243 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
4244 [MAC_OSX && SELECT_USE_CFSOCKET]
4245 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
4246 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
4247 RunLoop for simultaneously monitoring two kinds of inputs, window
4248 events and process outputs, without periodically polling.
a2c7e69a 4249
b15325b2
ST
4250 * macfns.c (mac_initialized): Remove extern.
4251 (stricmp): Put in #if 0. All callers changed to use xstricmp in
4252 xfaces.c.
043f7f73
SM
4253 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
4254 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
4255 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
4256 (mac_get_rdb_resource): New function (from w32reg.c).
4257 (x_get_string_resource): Use it.
4258 (install_window_handler): Add extern.
4259 (mac_window): New function.
043f7f73
SM
4260 (Fx_create_frame): Use it instead of make_mac_frame.
4261 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
4262 (Fx_open_connection, Fx_close_connection): New defuns.
4263 (syms_of_macfns): Defsubr them.
043f7f73
SM
4264 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
4265 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
4266 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
4267 (x_create_tip_frame): Don't call ShowWindow.
4268 (Fx_show_tip): Call ShowWindow.
4269 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
4270 TARGET_API_MAC_CARBON'.
4271 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
4272 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 4273
043f7f73 4274 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
4275 (Window): Typedef to WindowPtr and move outside `#if
4276 TARGET_API_MAC_CARBON'.
4277 (XSizeHints): New struct.
a2c7e69a 4278
b15325b2
ST
4279 * macterm.c (x_update_begin, x_update_end)
4280 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
4281 frame.
4282 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4283 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
4284 (construct_mouse_click): Put in #if 0.
4285 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
4286 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
4287 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4288 (activate_scroll_bars, deactivate_scroll_bars)
4289 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
4290 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
4291 if the position is neither user-specified nor program-specified.
4292 (x_free_frame_resources): Free size_hints.
043f7f73 4293 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
4294 (mac_clear_font_name_table): New function.
4295 (mac_do_list_fonts): Initialize font_name_table if needed.
4296 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
4297 around mac_do_list_fonts.
4298 (mac_unload_font): New function.
4299 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
4300 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
4301 and definitions with #if TARGET_API_MAC_CARBON.
4302 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
4303 (install_window_handler): Add decl.
4304 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
4305 window. Use UpdateControls. Get the rectangle that should be
4306 updated and restrict the target of expose_frame to it.
043f7f73 4307 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
4308 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
4309 (do_zoom_window): Don't use x_set_window_size.
4310 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
4311 (install_window_handler): New function.
4312 [!USE_CARBON_EVENTS] (mouse_region): New variable.
4313 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
4314 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
4315 GetEventDispatcherTarget inside BLOCK_INPUT.
4316 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
4317 Update mouse_region when mouse is moved.
4318 (make_mac_frame): Remove.
043f7f73
SM
4319 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
4320 Initialize mouse pointer shapes. Change values of f->left_pos and
4321 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
4322 Don't call ShowWindow.
b15325b2
ST
4323 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
4324 Vinvocation_name and Vsystem_name.
4325 (mac_make_rdb): New function (from w32term.c).
4326 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
4327 already been opened. Don't pass argument to
4328 mac_initialize_display_info. Don't set dpyinfo->height/width.
4329 Add entries to x_display_list and x_display_name_list.
4330 (x_delete_display): New function.
4331 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
4332 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
4333
b15325b2
ST
4334 * macterm.h (check_mac): Add extern.
4335 (struct mac_output): New member size_hints.
4336 (FRAME_SIZE_HINTS): New macro.
4337 (mac_unload_font): Add extern.
a2c7e69a 4338
b15325b2 4339 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 4340
1d1c7e75 4341 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 4342
92d2947b
RS
43432004-12-27 Richard M. Stallman <rms@gnu.org>
4344
043f7f73 4345 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
4346 (syms_of_buffer): Don't defsubr it.
4347
4348 * process.c (list_processes_1): Set undo_list instead
4349 of calling Fbuffer_disable_undo.
4350
043f7f73 4351 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 4352 single_display_prop_string_p.
043f7f73 4353 (single_display_spec_intangible_p): Rename from
92d2947b 4354 single_display_prop_intangible_p.
043f7f73 4355 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
4356 Rewritten to be easier to understand.
4357
a2c7e69a 4358 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
4359 and variables get just NAME.
4360
4361 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4362
4363 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4364 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
4365 (Qdefvar): Var deleted.
4366 (syms_of_eval): Don't initialze it.
4367
4368 * lread.c (syms_of_lread) <load-history>: Doc fix.
4369
9f6fcdc5
JD
43702004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4371
4372 * xmenu.c (popup_get_selection): Pop down on C-g.
4373 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
4374 pops down menu on C-g.
4375 (xdialog_show): If dialog popped down and no button in the dialog was
4376 pushed, call Fsignal to quit.
4377 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
4378 Fsignal to quit.
4379
1d1c7e75 4380 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
4381
4382 * gtkutil.c (xg_initialize): Install bindings for C-g so that
4383 dialogs and menus pop down.
4384
d8ca23a0
KH
43852004-12-27 Kenichi Handa <handa@m17n.org>
4386
4387 * coding.c (code_convert_region): Fix calculation of `ratio'.
4388
857ae68b
JD
43892004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4390
133c0116
JD
4391 * gtkutil.c (update_frame_tool_bar): Make the value of
4392 tool-bar-button-margin control margins of images in tool bar.
4393
857ae68b
JD
4394 * alloc.c (check_depth): New variable.
4395 (overrun_check_malloc, overrun_check_realloc): Only add
4396 overhead and write check pattern if check_depth is 1 (to handle
4397 recursive calls). Increase/decrease check_depth in entry/exit.
4398 (overrun_check_free): Only check for overhead if check_depth is 1.
4399 Increase/decrease check_depth in entry/exit.
4400
bd55c35c
JD
44012004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4402
4403 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
4404 before touching input_available_clear_time, to avoid accessing it
4405 from multiple threads.
4406
66354420
JR
44072004-12-23 Jason Rumney <jasonr@gnu.org>
4408
4409 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
4410 of JPEG library.
4411
55f4edbc
RS
44122004-12-22 Richard M. Stallman <rms@gnu.org>
4413
4414 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
4415
4416 * lisp.h (Vundo_outer_limit): Fix decl.
4417
4418 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
4419 Uses changed.
4420 (syms_of_undo): Initialize appropriately.
4421 (truncate_undo_list): If it's nil, there's no limit.
4422
7a0ea9e3
KH
44232004-12-22 Kenichi Handa <handa@m17n.org>
4424
4425 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
4426
fda2922a
RS
44272004-12-21 Richard M. Stallman <rms@gnu.org>
4428
4429 * eval.c (unwind_to_catch): Clear immediate_quit.
4430
4431 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
4432 specially as `\ ' and `\-'.
4433
4434 * keyboard.c (kbd_buffer_store_event_hold):
4435 In the code for while-no-input, handle immediate_quit.
4436
4437 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
4438 Call that at the very start.
043f7f73 4439 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
4440 (syms_of_alloc): Don't define undo-limit,
4441 undo-strong-limit and undo-outer-limit here.
4442
4443 * undo.c (truncate_undo_list): Return void.
4444 Take just one argument, the buffer.
4445 Make it current, and inhibit recursive GC.
4446 Access and update the undo list directly; return void.
4447 Refer to the undo...limit variables directly.
4448 Test undo_outer_limit only after counting the whole current command.
4449 When it's exceeded, call the function in undo-outer-limit-function.
4450 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
4451 (Vundo_outer_limit_function): New variable.
4452 (syms_of_undo): Define undo-limit, undo-strong-limit
4453 and undo-outer-limit here, and undo-outer-limit-function.
4454 Doc fixes.
4455
4456 * lisp.h (truncate_undo_list): Update decl.
4457
44582004-12-21 Piet van Oostrum <piet@cs.uu.nl>
4459
4460 * fileio.c (Fread_file_name): Delete duplicates in
4461 file-name-history when history_delete_duplicates is true.
4462
68c69027
ST
44632004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4464
4465 * macterm.c (mac_do_list_fonts): Fix memory leak
4466
134579f2
RS
44672004-12-20 Richard M. Stallman <rms@gnu.org>
4468
4469 * regex.c (re_match_2_internal) <symend, wordend>:
4470 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
4471
fbe6152f
ST
44722004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4473
043f7f73
SM
4474 * macterm.c (endif, x_font_name_to_mac_font_name):
4475 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
4476 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
4477 quickly finding a specific font without needing regexps.
4478
fecad3f6
JD
44792004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4480
333f1b6f
JD
4481 * syssignal.h: Declare main_thread.
4482 (SIGNAL_THREAD_CHECK): New macro.
4483
4484 * keyboard.c (input_available_signal): Move thread checking code
4485 to macro SIGNAL_THREAD_CHECK and call that macro.
4486 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
4487
4488 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
4489
4490 * emacs.c: Define main_thread.
4491 (main): Initialize main_thread.
4492 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
4493 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
4494
4495 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
4496
4497 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
4498
4499 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
4500
043f7f73
SM
4501 * process.c (send_process_trap, sigchld_handler):
4502 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
4503
4504 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
4505
4506 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
4507
fecad3f6
JD
4508 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
4509 returning when xg_ignore_gtk_scrollbar is true.
4510
2a84c6da
KS
45112004-12-14 Kim F. Storm <storm@cua.dk>
4512
4513 * keyboard.c (read_char): Save and restore echo_string when
4514 handling input method.
4515
d9c1ce9d
RS
45162004-12-13 Richard M. Stallman <rms@gnu.org>
4517
4518 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
4519
4520 * keyboard.c (Vthrow_on_input): New variable.
4521 (syms_of_keyboard): Defvar and initialize it.
4522 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
4523
4524 * lisp.h (QUIT): Check for Vthrow_on_input.
4525 (Vthrow_on_input): Declare it.
4526
a6495ed5
KS
45272004-12-13 Kim F. Storm <storm@cua.dk>
4528
4529 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
4530 vector.
4531
24a0e22f
RS
45322004-12-12 Richard M. Stallman <rms@gnu.org>
4533
4534 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
4535
4536 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
4537 (Ftry_completion): Really use outer `zero'; eliminate inner one.
4538
d6d31e57
KH
45392004-12-12 Kenichi Handa <handa@m17n.org>
4540
4541 * term.c (encode_terminal_code): Fix previous change.
4542
6f8ffb88
SM
45432004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
4544
fb6f5cbf
SM
4545 * keyboard.c (handle_async_input): Remove pthread mutex handling.
4546 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
4547
6f8ffb88
SM
4548 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
4549 in macro arguments.
4550
4551 * minibuf.c (Ftry_completion, Fall_completions): Don't use
4552 XFASTINT blindly.
4553
4554 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
4555
c83c9f9d
JD
45562004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4557
2f25767f
JD
4558 * w32term.c (x_calc_absolute_position): Remove calculation of
4559 difference between inner and outer window. Don't subtract difference
4560 for left and top calculations.
4561
c83c9f9d
JD
4562 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
4563 for left and top calculations. Remove call to x_real_positions.
24a0e22f 4564 [Bug report by Drew Adams in November]
c83c9f9d
JD
4565 (x_check_expected_move): Do not set change_gravity to 1 when calling
4566 x_set_offset.
4567
cc1caa4e
RS
45682004-12-08 Richard M. Stallman <rms@gnu.org>
4569
4570 * xdisp.c (get_next_display_element): Use `escape-glyph' for
4571 control chars and escaped octal codes.
4572 (Qescape_glyph): New variable.
4573 (syms_of_xdisp): Initialize it.
4574 (escape_glyph_face): New variable.
4575 (redisplay_window): Initialize it.
4576
e0e30823
RS
45772004-12-07 Paul Eggert <eggert@cs.ucla.edu>
4578
4579 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
4580 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
4581
f415cacd
JD
45822004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4583
cf435f39
JD
4584 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
4585 reset_malloc_hooks.
4586
6f8ffb88
SM
4587 * keyboard.c (handle_async_input, input_available_signal):
4588 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 4589
f415cacd
JD
4590 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
4591
043f7f73 45922004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
4593
4594 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
4595
4596 * config.in: Regenerate.
4597
ded997c1
JD
45982004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4599
453a4f1b
JD
4600 * xmenu.c (Fx_popup_menu): Correct documentation about position.
4601 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
4602 if not given by a mouse click to correspond with x-popup-menu
4603 documentation.
4604
9a38524c
JD
4605 * config.in: Regenerate.
4606
aa477689
JD
4607 * gtkutil.c: Include signal.h and syssignal.h.
4608 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
4609
4610 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
4611 new variables main_thread and alloc_mutex,
4612 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
4613 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
4614 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
4615 (UN)BLOCK_INPUT.
4616 (emacs_blocked_free, emacs_blocked_malloc)
4617 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
4618 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
4619 (reset_malloc_hooks): New function.
4620
4621 * lisp.h: Declare reset_malloc_hooks.
4622
4623 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
4624
4625 * keyboard.c: Conditionally include pthread.h
6f8ffb88 4626 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
4627 thread, block signal, send signal to main thread and return.
4628
ded997c1 4629 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 4630 Set current folder in file chooser if default_filename is a directory.
ded997c1 4631
c72b0edd
SM
46322004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
4633
4634 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
4635 Remove redundant correctness checks.
4636 (regex_compile): Fix up error codes for \{..\} expressions.
4637
c721eee5
RS
46382004-12-05 Richard M. Stallman <rms@gnu.org>
4639
4640 * regex.c (regex_compile): Fix end-of-pattern case for space.
4641
d8f96db8
ST
46422004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4643
6108209e
KS
4644 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
4645 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 4646 crashes with invalid characters.
6108209e
KS
4647 * macmenu.c (add_menu_item): Use it.
4648 * image.c (image_load_quartz2d): Likewise.
4649 * macfns.c (x_set_name, x_set_title): Likewise.
4650 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
4651 creating them each time for labels.
d8f96db8 4652
ab67e8b6
RS
46532004-12-02 Richard M. Stallman <rms@gnu.org>
4654
4655 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
4656 don't use it here.
4657
4658 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
4659 (interactive_p): Skip Scalled_interactively_p frames
4660 like Sinteractive_p frames.
b8217ea6 4661 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
4662
4663 * data.c (Fmake_variable_buffer_local): Doc fix.
4664 (Fmake_local_variable): Doc fix.
4665
4666 * insdel.c (insert_from_string_before_markers)
4667 (insert_from_string): Don't modify buffer on empty insertion.
4668
4669 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
4670
f86bdc80
ST
46712004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4672
4673 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
4674 menu text as UTF8 fails.
4675
1cae6d39
KS
46762004-12-01 Kim F. Storm <storm@cua.dk>
4677
4678 * alloc.c: Add commentary for last change.
4679 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
4680 sizeof(size_t) != 4.
4681 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
4682 Use them. Also clear header and trailer of freed memory.
4683 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
4684 (string_overrun_cookie): Rename from string_overrun_pattern.
4685 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
4686
77ea0764
AS
46872004-12-01 Andreas Schwab <schwab@suse.de>
4688
4689 * lisp.h: Declare string_to_multibyte.
4690
2d5cd4e6
KH
46912004-12-01 Kenichi Handa <handa@m17n.org>
4692
4693 * w32console.c (w32con_write_glyphs): Decide coding here.
4694 Adjusted for the change of encode_terminal_code.
4695
4696 * term.c (encode_terminal_code): Don't make it "static".
4697
25a0994a
KH
46982004-11-30 Kenichi Handa <handa@m17n.org>
4699
19b1f29a 4700 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 4701 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
4702 characters at once, and return a pointer to the result of encoding.
4703 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
4704 (insert_glyphs): Likewise.
4705 (term_init): Initialize encode_terminal_bufsize to 0.
4706
4707 * coding.c (Vcode_conversion_workbuf_name): New variable.
4708 (syms_of_coding): Initialize and staticpro it.
4709 (set_conversion_work_buffer): New function.
4710 (run_pre_post_conversion_on_str): Use it.
4711 (run_pre_write_conversin_on_c_str): New function.
4712
4713 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
4714
fc7a70cc
ST
47152004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4716
4717 * keyboard.c: Don't undef SIGIO
4718 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
4719 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
4720 (macfns.o): Don't depend on ccl.h.
4721 * macfns.c (mac_frame_parm_handlers): Set handlers for
4722 Qleft_fringe and Qright_fringe.
4723 * macterm.c (mac_fill_rectangle_to_pixmap)
4724 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
4725 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
4726 Put in #if 0.
4727 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
4728 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
4729 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
4730 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4731 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
4732 XDrawImageString. Always draw background and foreground separately.
4733 (x_draw_image_foreground): Use clipping instead of computing the
4734 intersection rectangle.
4735 (x_draw_image_glyph_string): Don't draw an image with mask to a
4736 pixmap.
4737 (x_redisplay_interface): Set flush_display_optional member to 0.
4738 (XTread_socket): Correctly reset the TEConverter
4739 object.
4740
fc368889
KS
47412004-11-30 Kim F. Storm <storm@cua.dk>
4742
4743 * lisp.h: New defines to enable buffer overrun checking.
4744 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
4745 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
4746
4747 * alloc.c: Add more checks for buffer overruns.
4748 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
4749 xmalloc_overrun_check_trailer, overrun_check_malloc)
4750 overrun_check_realloc, overrun_check_free): Add.
4751 (GC_STRING_EXTRA, string_overrun_pattern): Add.
4752 (check_sblock, allocate_string_data, compact_small_strings):
4753 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
4754 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
4755 (check_string_free_list): Add.
4756 (allocate_string, sweep_strings): Call check_string_free_list.
4757
4758 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
4759 XMALLOC_OVERRUN_CHECK to avoid crash during load.
4760
0af8cfe1
KS
47612004-11-29 Kim F. Storm <storm@cua.dk>
4762
4763 * fns.c (concat): Use SAFE_ALLOCA.
4764
77220eeb
SM
47652004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
4766
4767 * sysdep.c (emacs_write): Don't use QUIT.
4768
a778cf63
KH
47692004-11-29 Kenichi Handa <handa@m17n.org>
4770
4771 * buffer.c (init_buffer): Set current_buffer->directory to a
4772 multibyte string made by string_to_multibyte.
4773
77220eeb 4774 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 4775
e3177e43
AS
47762004-11-27 Andreas Schwab <schwab@suse.de>
4777
4778 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
4779
4780 * s/gnu-linux.h: Enable no-op gcpros on ia64.
4781 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
4782
77220eeb
SM
4783 * filelock.c (lock_file_1): Call get_boot_time early.
4784 Increase buffer size.
e3177e43 4785
ca5e6fef
EZ
47862004-11-27 Eli Zaretskii <eliz@gnu.org>
4787
4788 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
4789 is not defined.
4790
e2811828
KS
47912004-11-27 Kim F. Storm <storm@cua.dk>
4792
4793 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
4794 marker out of doc string.
4795
7a262394
SM
47962004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
4797
4798 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
4799 which was not mentioned in the log.
4800
f33cc5a9
KS
48012004-11-26 Kim F. Storm <storm@cua.dk>
4802
048bb03f
KS
4803 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
4804 angle bitmaps at top/bottom line.
4805
52eb0373 4806 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
4807 set it when it->method is set to next_element_from_display_vector.
4808 (setup_for_ellipsis): Add LEN argument. Callers changed.
4809 Set it->saved_face_id.
4810 (get_next_display_element): Use loop instead of recursion.
4811 Set it->saved_face_id. Combine duplicate code for ctr chars.
4812 (next_element_from_display_vector): Do not set it->saved_face_id.
4813 (next_element_from_ellipsis): Use setup_for_ellipsis.
4814
670e8906
EZ
48152004-11-26 Eli Zaretskii <eliz@gnu.org>
4816
4817 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
4818 prevent compiler warnings.
4819
275464e7
SM
48202004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
4821
1bf0e604
SM
4822 * keyboard.c (command_loop_1): Print a message describing the key
4823 the user just pressed when this key has no binding.
4824
275464e7
SM
4825 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
4826 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
4827
4828 * lread.c (readchar): Check QUIT when `getc' is interrupted.
4829
261b01c6
RS
48302004-11-24 Richard M. Stallman <rms@gnu.org>
4831
4832 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
4833
4834 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
4835
a5bd504e
KS
48362004-11-24 Kim F. Storm <storm@cua.dk>
4837
4838 * xdisp.c (move_it_in_display_line_to, display_line):
4839 Restore saved_face_id also when truncate-lines or hscrolled.
4840
255e4140
JD
48412004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4842
4843 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
4844 x-use-old-gtk-file-dialog.
4845
4846 * xfns.c: Define x_use_old_gtk_file_dialog.
4847 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
4848 outside ifdef USE_GTK.
4849
cab27d04
SM
48502004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
4851
4852 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
4853 Don't use XFASTINT blindly.
4854
4855 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
4856
4857 * indent.c (skip_invisible): Avoid non-idempotent side-effects
4858 in macro arguments.
4859
4860 * keymap.c (Flookup_key): Check INTEGERP before XINT.
4861
4862 * lread.c (oblookup): Don't use XFASTINT blindly.
4863
4864 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
4865 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
4866
11e0be49
KS
48672004-11-23 Kim F. Storm <storm@cua.dk>
4868
4d721114
KS
4869 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
4870 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
4871
11e0be49
KS
4872 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
4873 signal_p is zero and face name is unknown.
4874 (Fx_list_fonts): Don't signal error in lookup_named_face.
4875 (Fface_font): Signal error in lookup_named_face.
4876 (ascii_face_of_lisp_face): Likewise.
4877
4878 * dispextern.h (lookup_named_face): Fix prototype.
4879
4880 * xdisp.c (handle_single_display_prop): Don't signal error in
4881 lookup_named_face for unknown fringe face name.
4882 (highlight_trailing_whitespace): Don't signal error in
4883 lookup_named_face if trailing-whitespace face unknown.
4884 (calc_line_height_property): Don't signal error in
4885 lookup_named_face if specified face name is unknown.
4886
4887 * fringe.c (update_window_fringes): Show top row indicator if
4888 window has header-line. Don't show arrow at bob and eob
4889 if the boundary indicators are not used.
4890 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
4891
4892 * window.c (set_window_buffer): Clear display_error_modiff.
4893
0960a582
KS
48942004-11-22 Kim F. Storm <storm@cua.dk>
4895
4896 * fringe.c (update_window_fringes): Provide sensible fall-back
4897 value for non-nil indicate-buffer-boundaries setting.
4898
b0e9bb28
MR
48992004-11-22 Markus Rost <rost@ias.edu>
4900
4901 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
4902
d0bce91e
SM
49032004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
4904
4905 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
4906
e1814672
KS
49072004-11-21 Kim F. Storm <storm@cua.dk>
4908
b7fd3518
KS
4909 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
4910
4911 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
4912 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4913
4914 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
4915 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4916
4917 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
4918 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4919
d0bce91e
SM
4920 * xdisp.c (move_it_in_display_line_to, display_line):
4921 Restore saved_face_id if overflow-newline-into-fringe is enabled and
4922 line is continued before or in middle of element from display vector.
f01d4d05 4923
f1a61389
KS
4924 * indent.c (Fvertical_motion): Fix last change. Use another
4925 method to detect if iterator moved too far ahead after reseat.
4926
e1814672
KS
4927 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
4928 expand matrix width for overflow in zero-width area.
4929 (append_glyph, append_composite_glyph, produce_image_glyph)
4930 (append_stretch_glyph): Use it to avoid loop in redisplay.
4931 (note_mode_line_or_margin_highlight): Don't let help-echo from
4932 string override help-echo from image map.
4933
2dafe1c9
LT
49342004-11-20 Luc Teirlinck <teirllm@auburn.edu>
4935
d0bce91e 4936 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
4937 * callint.c (Fcall_interactively): Ditto.
4938
fd6866c8 49392004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
4940
4941 * minibuf.c (Fminibuffer_complete_and_exit):
4942 Fixup the case of the completed value, for case-indep completion.
4943
dedbac89
RS
49442004-11-20 Richard M. Stallman <rms@gnu.org>
4945
fd6866c8
RS
4946 * lisp.h (Fread_from_minibuffer): Add arg in decl.
4947
9d00469f 4948 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 4949 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 4950
dedbac89 4951 * search.c (Vsearch_spaces_regexp):
d0bce91e 4952 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 4953
2f672bb5
TTN
49542004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
4955
4956 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
4957
f31a9a68
RS
49582004-11-19 Richard M. Stallman <rms@gnu.org>
4959
4960 * search.c (Vsearch_whitespace_regexp): New variable.
4961 (syms_of_search): Defvar it.
4962 (compile_pattern_1): Call re_set_whitespace_regexp with it.
4963 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
4964 is non-nil.
6de891db
RS
4965 (struct regexp_cache): New element whitespace_regexp.
4966 (syms_of_search): Initialize whitespace_regexp elements.
4967 (compile_pattern): Compare whitespace_regexp elements.
4968 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
4969
4970 * regex.c (regex_compile): Substitute whitespace_regexp
4971 for spaces, if it is nonzero.
4972 (whitespace_regexp): New variable.
4973 (re_set_whitespace_regexp): New function.
4974
cbc34cb3
KS
49752004-11-19 Kim F. Storm <storm@cua.dk>
4976
4977 * indent.c (Fvertical_motion): Fix last change.
4978
b54a7539
KS
49792004-11-18 Kim F. Storm <storm@cua.dk>
4980
4981 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
4982 Instead, move back again if reseating moves too far ahead.
4983
49842004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
4985
4986 * xdisp.c (message3): Call clear_message.
4987
5ff504fe
KS
49882004-11-17 Kim F. Storm <storm@cua.dk>
4989
4990 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
4991
5ae53dcf
JD
49922004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4993
d0bce91e 4994 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 4995
6abf3a27 4996 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
4997 (x_menu_set_in_use): Also set popup_activated_flag.
4998
5ff504fe 4999 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
5000 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
5001
52eb0373 5002 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 5003
ee31cd78
RS
50042004-11-16 Richard M. Stallman <rms@gnu.org>
5005
6abf3a27
SM
5006 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
5007 Use map-keymap-internal to implement that.
ee31cd78
RS
5008
5009 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
5010
6abf3a27
SM
50112004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
5012
5013 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
5014 a window before using XWINDOW.
5015
5016 * window.c (make_window, Fselect_window, make_dummy_parent)
5017 (save_window_save):
5018 * frame.c (make_frame):
5019 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
5020
5021 * lisp.h (NILP): Use EQ rather than XFASTINT.
5022
b4d61105
KS
50232004-11-16 Kim F. Storm <storm@cua.dk>
5024
6abf3a27 5025 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 5026
b4d61105
KS
5027 * indent.c (Fvertical_motion): Fix last change. Only reseat when
5028 moving backwards.
5029
50302004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
5031
5032 * dispextern.h: Extern reseat_at_previous_visible_line_start.
5033
ab5b02b0
KH
50342004-11-16 Kenichi Handa <handa@m17n.org>
5035
5036 * xdisp.c (display_mode_element): Fix previous change (calculate
5037 end position of substring to display correctly).
5038
c482cf97
KS
50392004-11-16 Kim F. Storm <storm@cua.dk>
5040
5041 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
5042 Reported by Andrew M. Scott.
5043
9f89426b
KS
50442004-11-15 Kim F. Storm <storm@cua.dk>
5045
5046 * fns.c (Fsafe_plist_get): New defun.
5047 (syms_of_fns): Defsubr it.
5048
5049 * lisp.h (Fsafe_plist_get): Add EXFUN.
5050
5051 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
5052 Use Fsafe_plist_get.
5053 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5054 Fix image map element parsing. Use Fsafe_plist_get.
5055
27418463
RS
50562004-11-15 Richard M. Stallman <rms@gnu.org>
5057
5058 * xdisp.c (get_next_display_element): Fix previous change.
5059
a130b901
JD
50602004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5061
ef614e04
JD
5062 * window.c (shrink_windows): Handle special case of one window left
5063 when trying to shrink the final reminder. Grow windows if
5064 total_removed is less than total_shrink.
5065
a130b901
JD
5066 * xmenu.c (pop_down_menu): Remove global variable current_menu,
5067 extract pointer from arg with XSAVE_VALUE.
46303896
KS
5068 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
5069 Construct arg to record_unwind_protect with make_save_value.
a130b901 5070
d9a03ad2
RS
50712004-11-13 Richard M. Stallman <rms@gnu.org>
5072
5073 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
5074 (get_next_display_element): Fix previous change to apply only to \n.
5075
5076 * indent.c (Fvertical_motion): Scan to PT from start of line to
5077 make iterator consistent.
5078
5079 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
5080
b3935289
JD
50812004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5082
5083 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
5084
5085 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
5086 Record unwind with clean_up_file_dialog.
5087
78819ebb
KS
5088 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
5089 Declare.
b3935289
JD
5090
5091 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
5092
af89e871
JD
50932004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5094
457a8155 5095 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 5096 (xg_file_sel_destroy): Remove.
46303896
KS
5097 (xg_file_response_cb, pop_down_file_dialog)
5098 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 5099 New functions.
6abf3a27
SM
5100 (xg_get_file_with_chooser, xg_get_file_with_selection):
5101 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
5102 Move common code to xg_get_file_name. Return widget created.
5103 (xg_get_file_name): Set name, transient for, modal and destroy
5104 with parent here. Connect response signal to xg_file_response_cb,
5105 connect delete-event to gtk_true. Record pop_down_file_dialog
5106 for unwind. Do event loop and call x_menu_wait_for_event in loop.
5107 (xg_create_widget): Make dialogs modal.
5108
af89e871
JD
5109 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
5110 Lisp_Object.
5111 (popup_get_selection): Move unwind protect ...
5112 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5113 Move destroy of widget to pop_down_menu.
5114 (popup_widget_loop): Move unwind protect ...
5115 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5116 Move destroy of widget to pop_down_menu.
5117 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 5118 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
5119 x_mouse_leave and grabbed = 0 to pop_down_menu.
5120
5596fbf1
KS
51212004-11-13 Kim F. Storm <storm@cua.dk>
5122
5123 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
5124 (syms_of_xdisp): DEFVAR_BOOL it.
5125 (make_cursor_line_fully_visible, try_cursor_movement)
5126 (try_window_id): Use it.
5127
b9de078a
KS
51282004-11-12 Kim F. Storm <storm@cua.dk>
5129
381f7091
KS
5130 * dispextern.h (struct glyph_row): New member extra_line_spacing.
5131 (struct it): New member max_extra_line_spacing.
5132 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
5133 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
5134 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
5135 part of last line is only extra line spacing (so the text on the
52eb0373 5136 line is fully visible). Use helper macros.
381f7091
KS
5137 Add W arg (to use them). All callers changed.
5138 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
5139 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
5140
6abf3a27
SM
5141 * window.c (window_scroll_pixel_based, Frecenter):
5142 Use move_it_vertically_backward directly.
381f7091
KS
5143 (Frecenter): Fix calculation of new start pos for negative arg.
5144 Before, the new start pos was sometimes chosen too far back, so
5145 the last line became only partially visible, and thus would be
5146 either only semi-visible or automatically scrolled to the middle
5147 of the window by redisplay.
5148
5149 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
5150 (move_it_vertically_backward): Don't recure to move further back.
5151 (move_it_vertically): Remove superfluous condition.
5152 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 5153 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
5154 (display_tool_bar_line): Clear row->extra_line_spacing.
5155 (try_scrolling): Use move_it_vertically_backward directly.
5156 (redisplay_window): Likewise.
5157 (compute_line_metrics): Set row->extra_line_spacing.
5158 (display_line, display_string): Likewise.
5159 (x_produce_glyphs): Update it->max_extra_line_spacing.
5160
b9de078a
KS
5161 * xmenu.c (pop_down_menu): Return nil.
5162
c3438661
JD
51632004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5164
5165 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 5166 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 5167 to handle timers.
df00f436
JD
5168 (popup_widget_loop): Add argument do_timers.
5169 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
5170 do_timers to popup_widget_loop.
c3438661
JD
5171 (xmenu_show): Call XMenuActivateSetWaitFunction so that
5172 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 5173 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 5174 popup_get_selection.
f1d1cd24
JD
5175 (pop_down_menu): New function.
5176 (popup_get_selection, popup_widget_loop): Unwind protect to
5177 pop_down_menu.
5178 (popup_widget_loop): Add argument widget.
5179 (create_and_show_popup_menu, create_and_show_dialog): Pass new
5180 argument widget to popup_widget_loop.
c3438661 5181
32e2fb04
SM
51822004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
5185
0faf6806
KS
51862004-11-09 Kim F. Storm <storm@cua.dk>
5187
5188 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
5189 Fix various comments referring to XEvents instead of input events.
5190 (x_queue_event): Fix format strings.
5191 (x_stop_queuing_selection_requests): Likewise.
5192
5193 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
5194 (pint2hrstr): Add extra braces to silence compiler.
5195
5196 * print.c (print_object): Fix format string.
5197
5198 * lread.c (read1): Fix next_char matching.
5199
5200 * lisp.h (Fdelete): Add EXFUN.
5201 (replace_range_2): Add prototype.
5202
5203 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
5204
5205 * intervals.h (NULL_INTERVAL_P): Add separate version when
5206 ENABLE_CHECKING is not defined to silence compiler.
5207 (compare_string_intervals): Add prototype.
5208
5209 * fringe.c (destroy_fringe_bitmap): Fix return type.
5210 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
5211
5212 * emacs.c (Fdump_emacs): Fix format string.
5213
5214 * doc.c: Include <ctype.h>.
5215 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
5216
5217 * data.c (store_symval_forwarding): Remove unused variables.
5218
5219 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
5220
16bf4e32
JD
52212004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5222
5223 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
5224 to ${OLDXMENU}.
5225
cdb805a9
KS
52262004-11-09 Kim F. Storm <storm@cua.dk>
5227
5228 * process.c (Fmake_network_process): Remove kludge for interrupted
5229 connects on BSD. If connect is interrupted, just close socket and
5230 start over rather than sleeping and retry with same socket.
5231
d87a9ab8 52322004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 5233
a8b16c80
JD
5234 * .cvsignore: Add buildobj.lst.
5235
d87a9ab8
JD
5236 * doc.c: New variable Vbuild_files.
5237 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 5238 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
5239 that are in Vbuild_files.
5240 (syms_of_doc): Defvar Vbuild_files.
5241
5242 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
5243 and w32*.o.
5244 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 5245 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
5246
5247 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
5248 is linked.
5249
b6709e77
KS
52502004-11-09 Kim F. Storm <storm@cua.dk>
5251
5252 * fringe.c (update_window_fringes): Update fringe bitmaps if
5253 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
5254 also update previous row to get rid of misc. artifacts.
5255
bae9677d
KS
52562004-11-08 Kim F. Storm <storm@cua.dk>
5257
5258 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 5259 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 5260
3f8ea68c
EZ
52612004-11-08 Eli Zaretskii <eliz@gnu.org>
5262
5263 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
5264 Don't include <sys/time.h> explicitly.
5265 Include <stdio.h> unconditionally, not just on MacOS.
5266
a653f812
KH
52672004-11-08 Kenichi Handa <handa@m17n.org>
5268
5269 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
5270 don't pay attention to '\' before '*'.
5271 (fontset_pattern_regexp): Change the meaning of the second arg.
5272 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
5273 (check_fontset_name): Try NAME as literal at first, and if it
5274 failes, try NAME as pattern.
5275
c37caf9d
JD
52762004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5277
5278 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
5279
b72915a7
AS
52802004-11-07 Andreas Schwab <schwab@suse.de>
5281
78819ebb
KS
5282 * lisp.h (Fmsdos_downcase_filename): Declare.
5283 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
5284 * fileio.c: Likewise.
5285
238a44a8
JD
52862004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5287
5288 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
5289 comparisons with integers instead of Lisp_Object address.
5290 (Fmsdos_set_keyboard): Declare argument allkeys.
5291
5292 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
5293
78819ebb 5294 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
5295 int/Lisp_Object mixup.
5296
5297 * fileio.c: Ditto.
5298
31141c13
ST
52992004-11-06 Steven Tamm <steventamm@mac.com>
5300
5301 * editfns.c: Need to include sys/time.h before resource.h on darwin.
5302
f28c1bd9
RS
53032004-11-06 Richard M. Stallman <rms@gnu.org>
5304
5305 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
5306
5307 * xfaces.c (merge_named_face): GCPRO the face_name in the
5308 named_merge_point struct that we make.
5309 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
5310
5311 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
5312 before deciding whether to inactivate mark.
5313
59dede22
EZ
53142004-11-06 Lars Brinkhoff <lars@nocrew.org>
5315
5316 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
5317 * editfns.c (Fget_internal_run_time): New function.
5318 (syms_of_data): Defsubr it.
5319 * fns.c (sxhash): As far as possible, merge calculation of
5320 hash code for symbols and strings.
59dede22 5321
27540e81
EZ
53222004-11-06 Eli Zaretskii <eliz@gnu.org>
5323
5324 * frame.c (syms_of_frame): Fix the example in the doc string.
5325
df470e3b
JD
53262004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5327
5328 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
5329
5330 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
5331 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 5332
4cc8522c
LT
53332004-11-05 Luc Teirlinck <teirllm@auburn.edu>
5334
5335 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
5336
d4a42098
KS
53372004-11-05 Kim F. Storm <storm@cua.dk>
5338
a8490886
KS
5339 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
5340
d4a42098
KS
5341 * fileio.c (Ffile_modes): Doc fix.
5342 (auto_save_1): Check for Ffile_modes nil value.
5343
36a2b04c
KS
53442004-11-05 Kim F. Storm <storm@cua.dk>
5345
5346 * xselect.c (struct selection_event_queue, selection_queue)
5347 (x_queue_selection_requests, x_queue_event)
5348 (x_start_queuing_selection_requests)
5349 (x_stop_queuing_selection_requests): Add new queue for selection
5350 input events to replace previous XEvent queue in xterm.c.
5351 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
5352 (x_reply_selection_request): Adapt to new queue.
5353 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
5354 (x_handle_selection_request, x_handle_selection_clear): Make static.
5355 (x_handle_selection_event): New function. May queue selection events.
5356 (wait_for_property_change_unwind): Use save_value instead of cons.
5357 Clear property_change_reply_object.
5358 (wait_for_property_change): Abort if already waiting.
5359 Use save_value instead of cons for unwind data.
5360 (x_handle_property_notify): Skip events already arrived, but don't
5361 free them, as "arrived" field is checked by wait_for_property_change,
5362 and it will be freed by unwind or explicit unexpect_property_change.
5363 (x_get_foreign_selection): Add to new queue.
5364 (receive_incremental_selection): Don't unexpect wait_object when done
5365 as it has already been freed by previous wait_for_property_change.
5366
5367 * xterm.h (x_start_queuing_selection_requests)
5368 (x_stop_queuing_selection_requests, x_handle_selection_request)
5369 (x_handle_selection_clear): Remove prototypes.
5370 (x_handle_selection_event): Add prototype.
5371
5372 * xterm.c (handle_one_xevent): Don't queue X selection events
5373 here, it may be too late if we start queuing after we have already
5374 stored some selection events into the kbd buffer.
5375 (struct selection_event_queue, queue, x_queue_selection_requests)
5376 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
5377 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
5378 (x_catch_errors_unwind): Block input around final XSync.
5379
5380 * keyboard.h (kbd_buffer_unget_event): Add prototype.
5381
5382 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
5383 (kbd_buffer_unget_event): New function.
5384 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
5385 and use x_handle_selection_event.
5386 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
5387
9c3ad9e1
JD
53882004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5389
5390 * xselect.c (TRACE3): New debug macro.
5391 (x_reply_selection_request): Use it.
5392 (receive_incremental_selection): In call to TRACE0, the name of
5393 a symbol is in xname.
5394
a33b89de
KS
53952004-11-05 Kim F. Storm <storm@cua.dk>
5396
5397 * fontset.c (fontset_pattern_regexp): Use unsigned char.
5398
a872928c
JD
53992004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5400
88208bb8
JD
5401 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
5402
78819ebb 5403 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
5404
5405 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 5406 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
5407 * xfns.c (syms_of_xfns): ... to here.
5408
a872928c
JD
5409 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
5410 it doesn't start with /.
5411
b912921c
KH
54122004-11-04 Kenichi Handa <handa@m17n.org>
5413
5414 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
5415 treat it as a literal character.
5416
c524d9a6
KS
54172004-11-03 Kim F. Storm <storm@cua.dk>
5418
5419 * .gdbinit (ppt): New function.
5420
8cfd0f36
JD
54212004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5422
a11e1dce
JD
5423 * xterm.c (x_window_to_scroll_bar): Only call
5424 xg_get_scroll_id_for_window if toolkit scroll bars are used.
5425
8cfd0f36
JD
5426 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
5427 of save.
5428
a93563fd
AS
54292004-11-02 Andreas Schwab <schwab@suse.de>
5430
5431 * window.c (Fscroll_right): Fix last change.
5432
2b2d59d8
KS
54332004-11-02 Kim F. Storm <storm@cua.dk>
5434
5435 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
5436
54372004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5438
5439 * callproc.c (Fcall_process): Block input around vfork.
5440
ca28104d
KS
54412004-11-02 Kim F. Storm <storm@cua.dk>
5442
5443 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
5444 (syms_of_eval): Defsubr it.
5445
29bb7127
RS
54462004-11-02 Richard M. Stallman <rms@gnu.org>
5447
5448 * insdel.c (replace_range_2): New function.
5449
5450 * casefiddle.c (casify_region): Handle changes in byte-length
5451 using replace_range_2.
5452
5453 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
5454
b6189c3b 5455 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
5456 Subtract 1 from pos when checking previous newline for invisibility.
5457
5458 * window.c (window_scroll_pixel_based): Update preserve_y
5459 for header line if any.
5460 (Fscroll_left, Fscroll_right): Don't call interactive_p;
5461 use a new second argument instead.
5462
5463 * eval.c (Fcall_interactive_p): New function.
5464 (interactive_p): Don't test INTERACTIVE here.
5465 (Finteractive_p): Doc fix.
5466
5467 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
5468
b6189c3b 54692004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
5470
5471 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 5472 comparing font names.
a3fe4aaf 5473
2a00cdb4
JD
54742004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5475
f9d64bb3
JD
5476 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
5477 Fx_file_dialog if only directories should be read.
5478
5479 * lisp.h: Fx_file_dialog takes 5 parameters.
5480
32e2fb04
SM
5481 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
5482 Add parameter only_dir_p.
f9d64bb3
JD
5483 In Motif version, don't put DEFAULT_FILENAME in filter part of the
5484 dialog, just text field part. Do not add DEFAULT_FILENAME
5485 to list of files if it isn't there.
5486 In GTK version, pass only_dir_p parameter to xg_get_file_name.
5487
32e2fb04
SM
5488 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
5489 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
5490 a save dialog, add option kNavDontConfirmReplacement, change title
5491 to "Enter name", change text for save button to "Ok".
5492
32e2fb04
SM
5493 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
5494 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
5495
5496 * gtkutil.c (xg_get_file_with_chooser)
5497 (xg_get_file_with_selection): New functions, only defined ifdef
5498 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
5499 respectively.
5500 (xg_get_file_name): Add parameter only_dir_p.
5501 Call xg_get_file_with_chooser or xg_get_file_with_selection
5502 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
5503 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
5504
5505 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
5506
2a00cdb4
JD
5507 * config.in: Rebuild (added HAVE_GTK_FILE_*).
5508
f6749d5d
KS
55092004-11-01 Kim F. Storm <storm@cua.dk>
5510
32e2fb04
SM
5511 * process.c (connect_wait_mask, num_pending_connects):
5512 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 5513 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
5514 (IF_NON_BLOCKING_CONNECT): New helper macro.
5515 (wait_reading_process_output): Only declare and use local vars
5516 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 5517
1a99fe1a
JR
55182004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
5519
5520 * w32term.c (x_scroll_run): Delete region objects after use.
5521
fcdb28b4
JD
55222004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5523
495ef86b
JD
5524 * xmenu.c: Add prototypes for forward function declarations.
5525 (popup_get_selection): Remove parameter do_timers, remove call to
5526 timer_check.
32e2fb04
SM
5527 (create_and_show_popup_menu, create_and_show_dialog):
5528 Remove parameter do_timers from call to popup_get_selection.
495ef86b 5529
12e6566a
JD
5530 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
5531 tool_bar_items and assign the result to f->tool_bar_items if
5532 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
5533 tool_bar_items to assignment of result.
5534
fcdb28b4
JD
5535 * atimer.c (alarm_signal_handler): Do not call set_alarm if
5536 pending_atmers is non-zero.
5537
1a1a0c4c
KS
55382004-10-31 Kim F. Storm <storm@cua.dk>
5539
5540 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
5541
a36f1680
JW
55422004-10-28 Will <will@glozer.net>
5543
1d1c7e75 5544 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
5545 key via a 'mac-option-modifier' variable.
5546
32e2fb04 55472004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
5548
5549 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
5550 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
5551 (x_handle_selection_request, x_handle_selection_clear)
5552 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
5553
4f71c13f
RS
55542004-10-28 Richard M. Stallman <rms@gnu.org>
5555
5556 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5557
5558 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5559
068f3848
SM
55602004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
5561
5562 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
5563 comment-starter over a 1-char one.
5564
4660a9e3
RS
55652004-10-27 Richard M. Stallman <rms@gnu.org>
5566
5567 * xdisp.c (get_next_display_element): In mode lines,
5568 treat newline and tab like other control characters.
5569
5570 * editfns.c (Fmessage): Doc fix.
5571
5572 * indent.c (vmotion): When moving up, check the newline before.
5573 Make prevline an int, not a Lisp_Object.
5574
233f3db6
KS
55752004-10-27 Kim F. Storm <storm@cua.dk>
5576
5577 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
5578 Only allocate info and discarded tables once.
5579
5580 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
5581 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
5582 (SAFE_FREE): Test it to determine if we need to unwind to free.
5583 Remove size arg. All users changed.
5584 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
5585
1442465d
JD
55862004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5587
5588 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
5589 (xg_destroy_widgets): Rename from remove_from_container.
5590 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
5591 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
5592 instead of remove_from_container.
5593 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
5594 (free_frame_tool_bar): Add comment.
5595
5596 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
5597 is not NULL before strcmp.
5598
c8636435
KS
55992004-10-26 Kim F. Storm <storm@cua.dk>
5600
5601 * callint.c (Fcall_interactively): Add 'U' code to get the
5602 up-event discarded by a previous 'k' or 'K' argument.
5603
5629f29b
DK
56042004-10-26 David Kastrup <dak@gnu.org>
5605
5606 * buffer.c (syms_of_buffer): Fix a few typos.
5607
4f2f546e
JD
56082004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5609
5610 * xsmfns.c: Put empty line between comment and function body.
5611 Use two spaces before comment end.
5612
fc1062f5
KH
56132004-10-25 Kenichi Handa <handa@m17n.org>
5614
5615 * fontset.c (fontset_pattern_regexp): Optimize for the case that
5616 PATTERN is full XLFD.
5617
be13f5e5
KH
56182004-10-24 Kenichi Handa <handa@m17n.org>
5619
5620 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
5621
5622 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
5623 (regex_compile): Return REG_ERANGEX if appropriate.
5624
d0ee2ed3
KH
56252004-10-22 Kenichi Handa <handa@m17n.org>
5626
5627 * editfns.c (Ftranslate_region_internal): New function.
5628 (syms_of_editfns): Defsubr it.
5629
63ea8ea5
JD
56302004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5631
5632 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
5633
9ba27690 56342004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 5635
068f3848
SM
5636 * xterm.h (x_output): New member `xic_base_fontname'.
5637 (FRAME_XIC_BASE_FONTNAME): New macro.
5638 (xic_free_xfontset): Declare.
c27ed90a 5639
068f3848
SM
5640 * xfns.c (xic_create_xfontset): Share fontsets between frames
5641 based on base_fontname.
5642 (xic_free_xfontset): New function.
5643 (free_frame_xic): Use it.
5644 (xic_set_xfontset): Ditto.
c27ed90a 5645
068f3848 5646 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
5647
5648
59508699
JR
56492004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
5650
5651 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
5652
dede2792
JD
56532004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5654
3aca2078
JD
5655 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
5656 XSync.
5657
dede2792
JD
5658 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
5659 New variables and constant.
5660 (main): Calculate heap_bss_diff. If we are dumping and the
5661 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
5662 and exec ourself again.
5663 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
5664 print a warning.
5665
5666 * lastfile.c: Make my_endbss and my_endbss_static available on all
5667 platforms.
5668
5669 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
5670 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
5671
1dc5ba01
LT
56722004-10-19 Luc Teirlinck <teirllm@auburn.edu>
5673
5674 * data.c (Flocal_variable_if_set_p): Doc fix.
5675
950090be
JR
56762004-10-19 Jason Rumney <jasonr@gnu.org>
5677
5678 * w32.c (init_environment): Set emacs_dir correctly when running
5679 emacs from the build directory.
5680
8550b998
RS
56812004-10-19 Richard M. Stallman <rms@gnu.org>
5682
5683 * editfns.c (Fdelete_and_extract_region):
5684 If region is empty, return null string.
5685
08dedea6
JD
56862004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5687
1dc5ba01 5688 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 5689 and canon_width.
068f3848 5690 (xg_frame_cleared): Remove.
08dedea6 5691
068f3848
SM
5692 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
5693 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
5694 (xg_create_scroll_bar): Put an event box widget between
5695 the scroll bar widget and the edit widget.
5696 (xg_show_scroll_bar): Show the parent widget (the event box).
5697 (xg_remove_scroll_bar): Destroy parent (the event box) also.
5698 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
5699 Move the parent (the event box) widget inside the fixed widget.
5700 Move window clear to xterm.c.
5701
068f3848 5702 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 5703
08dedea6 5704 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
5705 (x_scroll_bar_create, XTset_vertical_scroll_bar):
5706 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
5707 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
5708
8550b998 57092004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
5710
5711 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 5712
84338890
JD
57132004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5714
5715 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
5716 gdk_window_clear and move gdk_window_process_all_updates after
5717 clear so events are sent to the X server in correct order.
5718
6e1b0d8c
KH
57192004-10-18 Kenichi Handa <handa@m17n.org>
5720
5721 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
5722 comparing font names.
8550b998 5723 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
5724 (list_fontsets): Likewise.
5725
5726 * search.c (fast_string_match_ignore_case): New function.
5727
5728 * lisp.h (fast_string_match_ignore_case): Extern it.
5729
345e75a8
KS
57302004-10-17 Kim F. Storm <storm@cua.dk>
5731
5732 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
5733 than bitmap if there is not left fringe.
5734 (get_overlay_arrow_glyph_row): Also used on windows system.
5735 (display_line): Display overlay string if no left fringe.
5736
be13cbb7
JR
57372004-10-16 Jason Rumney <jasonr@gnu.org>
5738
5739 * w32fns.c (w32_font_match): Encode font name being matched.
5740
c2e2ede7
RS
57412004-10-16 Richard M. Stallman <rms@gnu.org>
5742
5743 * window.c (Fspecial_display_p): Doc fix.
5744
043f7f73 57452004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
5746
5747 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
5748 Don't ignore menus, because where-is-internal already does it for us.
5749
699a0392
KS
57502004-10-15 Kim F. Storm <storm@cua.dk>
5751
b3c7a89b
KS
5752 * xdisp.c (redisplay_window): Only update fringes and vertical
5753 border on window frames.
699a0392 5754
4e382b0f
AS
57552004-10-14 Andreas Schwab <schwab@suse.de>
5756
5757 * m/ia64.h (DATA_SEG_BITS): Don't define.
5758
329a7be2
KS
57592004-10-14 Kim F. Storm <storm@cua.dk>
5760
5761 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 5762 in some X versions.
329a7be2 5763
982241b1
SM
57642004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5765
5766 * fns.c (map_char_table): Add missing gcpros.
5767
9238467d
SM
57682004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5769
5770 * keymap.c (get_keymap): An autoload form is not a keymap.
5771
5772 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
5773
4440e3ca
KS
57742004-10-13 Kim F. Storm <storm@cua.dk>
5775
7cfdabde
KS
5776 * callproc.c (Fcall_process): Simplify handling of display arg.
5777 Resume `display_on_the_fly' once a coding system is determined.
5778
4440e3ca
KS
5779 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
5780
1c8dec6a
KS
57812004-10-12 Kim F. Storm <storm@cua.dk>
5782
5783 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
5784 caller, such as call-process, is not going to poll for input.
5785 (calc_line_height_property): Handle case where it->object is nil.
5786
5787 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
5788
170b174c
KH
57892004-10-12 Kenichi Handa <handa@m17n.org>
5790
9238467d
SM
5791 * xdisp.c (get_next_display_element):
5792 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
5793 chars in octal in unibyte buffer.
5794
b583964c
KS
57952004-10-12 Kim F. Storm <storm@cua.dk>
5796
5797 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
5798 are no ordinary bindings.
5799
29fabd8c
JD
58002004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5801
9238467d 5802 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 5803
c3f4c690
ST
58042004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5805
9238467d
SM
5806 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
5807 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 5808 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
5809 terminal frame.
5810 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
5811 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
5812 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
5813 Make a cancel file-open dialog be like C-g.
9238467d
SM
5814 * mac.c (mktime): Use emacs_mktime.
5815 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
5816 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 5817
9688f9eb
KS
58182004-10-10 Kim F. Storm <storm@cua.dk>
5819
5820 * keyboard.c (timer_resume_idle): New function to resume idle
5821 timer without resetting timers on the idle list.
52eb0373 5822 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
5823 (timer_start_idle, timer_stop_idle): Declare static.
5824 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
5825
5826 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
5827
f7f3a65f
ST
58282004-10-08 Steven Tamm <steventamm@mac.com>
5829
9238467d 5830 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 5831 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 5832 NULL where 0 should be used.
f7f3a65f
ST
5833 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
5834 objc/malloc.h
9238467d 5835 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 5836
3c7d999a
KS
58372004-10-07 Kim F. Storm <storm@cua.dk>
5838
5839 * xdisp.c (redisplay_window): Fix flicker on vertical line between
5840 windows. Update vertical line after drawing window fringes, but
5841 only if actually drawing any bitmaps--or there is no fringe.
5842
5843 * xterm.c (x_update_window_end): Likewise.
5844 * macterm.c (x_update_window_end): Likewise.
5845 * w32term.c (x_update_window_end): Likewise.
5846
5847 * fringe.c (draw_window_fringes): Return value now indicates if
5848 any fringe bitmaps were redrawn (or there are no fringes).
5849
5850 * dispextern.h (draw_window_fringes): Update prototype.
5851
bf06c82f
ST
58522004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5853
5854 * macfns.c (mac_get_window_bounds): Add extern.
5855 (x_real_positions): Use mac_get_window_bounds.
5856
5857 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
5858 xmenu.c (YAILOM).
3c7d999a 5859
bf06c82f
ST
5860 * macterm.c [!MAC_OSX]: Include Windows.h.
5861 (front_emacs_window): Rename from mac_front_window. All uses
5862 changed. Return the frontmost non-tooltip emacs window.
5863 (mac_get_window_bounds): New function.
5864 (x_calc_absolute_position): Use the difference of width and height
5865 between the inner and outer window.
5866 (x_set_offset): Specify window position by the coordinae of the
5867 outer window. Adjust the position if the title bar is completely
5868 outside the screen.
5869 (app_is_suspended, app_sleep_time): Remove unused variables.
5870 (do_app_resume, do_app_suspend): Remove their contents because
5871 window-activate/deactivate events will do the job.
5872 (do_zoom_window): Remove unused variables. Make compliant to the
5873 standard way of zooming. Set f->left_pos and f->top_pos.
5874 (XTread_socket): Don't use argument `expected'. Don't use
5875 FrontWindow to determine the clicked window. Exclude unprocessed
5876 mouseUp cases in the early stage. Add parentheses to fix operator
5877 precedence.
5878 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
5879
4cbbf6b7 58802004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
5881
5882 * config.in: Regenerate.
5883
5884 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
5885 HAVE_EXECSHIELD.
5886
b90ee8b5
JD
58872004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5888
5889 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
5890 a row if Alt or Meta has been found for that row. Also stop scanning
5891 for Keysyms for that row.
5892
904db1a2
KS
58932004-10-04 Kim F. Storm <storm@cua.dk>
5894
0207b8ad
KS
5895 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
5896 to list. Include overlay arrow bitmap in return value.
5897
25f7220c
KS
5898 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
5899 bars with fractional column width. If scroll bar separates two
5900 windows, move it towards the window it belongs to. Only update
5901 the padding area below the scroll bar widget when necessary,
5902 i.e. when scroll bar widget is created, moved, or resized.
5903
562020fe
KS
5904 * xdisp.c (define_frame_cursor1): Do not change frame cursor
5905 while tracking/dragging mouse.
5906 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
5907
37e34af7
KS
5908 * window.c (coordinates_in_window): Relax check for cursor
5909 on vertial border between mode lines.
5910 (Fset_window_fringes): Do not allow negative widths.
5911 (Fset_window_scroll_bars): Likewise.
5912
904db1a2
KS
5913 * .gdbinit (pp): Shorthand for p ARG + pr.
5914 (ff): New command: flush frame updates (X only).
5915
38fe4f64
MA
59162004-10-03 Michael Albinus <michael.albinus@gmx.de>
5917
5918 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
5919
9de36315
KH
59202004-09-30 Kenichi Handa <handa@m17n.org>
5921
07c381ad 5922 * process.c (send_process): Free composition data.
9de36315 5923
07c381ad 5924 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
5925
5926 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
5927 compositions to encode.
5928 (encode_coding_string): Likewise. Free composition data.
5929
d5fb8dab 59302004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
5931
5932 * coding.c (code_convert_region): Free composition data.
9de36315 5933
f2a54fbc
KS
59342004-09-29 Kim F. Storm <storm@cua.dk>
5935
dc5d6435
KS
5936 * fringe.c: Remove limit on number of bitmaps.
5937 (fringe_bitmaps, fringe_faces): Change to pointers.
5938 (max_fringe_bitmaps): New var.
5939 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
5940 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
5941
5942 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
5943 (struct glyph_row): Reorder fringe_bitmap related fields.
5944 (struct it): Likewise.
5945
5946 * w32term.c (fringe_bmp): Change to pointer.
5947 (max_fringe_bmp): New var.
5948 (w32_define_fringe_bitmap): Expand fringe_bmp.
5949 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
5950 (w32_destroy_fringe_bitmap): Likewise.
5951
59522004-09-29 Kim F. Storm <storm@cua.dk>
5953
5954 * fringe.c: Simplify last change.
f2a54fbc
KS
5955 (lookup_fringe_bitmap): New function.
5956 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
5957 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
5958 Keep standard bitmaps in Vfringe_bitmaps.
5959 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
5960 (Fset_fringe_bitmap_face): Likewise.
5961
5962 * dispextern.h (lookup_fringe_bitmap): Add prototype.
5963 (valid_fringe_bitmap_p): Remove prototype.
5964
5965 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
5966
841a8bca
KS
59672004-09-29 Kim F. Storm <storm@cua.dk>
5968
1f2da365
KS
5969 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
5970 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
5971
841a8bca
KS
5972 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
5973
5974 * fringe.c (Vfringe_bitmaps): New variable.
5975 (syms_of_fringe): DEFVAR_LISP it.
5976 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
5977 Change arg to Lisp_Object and fail if not an integer.
5978 (get_fringe_bitmap_name, resolve_fringe_bitmap)
5979 (destroy_fringe_bitmap): New functions.
9238467d
SM
5980 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
5981 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
5982 clear its fringe property.
5983 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
5984 Fdestroy_fringe_bitmap.
5985 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
5986 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
5987 and set fringe property. Signal error if no free slots.
5988 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
5989 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
5990
5991 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
5992 symbols with a fringe property.
5993
4d965590
KS
59942004-09-27 Kim F. Storm <storm@cua.dk>
5995
5996 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
5997 Doc fix. Format may now be a symbol or alist, not a cons.
5998
5999 * fringe.c (update_window_fringes): Handle new formats of
6000 indicate-buffer-boundaries (symbol or alist). No longer
6001 allow a simple cons.
6002 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
6003
e888c2b3
JD
60042004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6005
9238467d 6006 * config.in: Rebuild.
e888c2b3 6007
83f1cb94
JD
60082004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6009
6010 * config.in: Rebuild.
6011
dd3b1d60 6012 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 6013
2c51754c
SM
60142004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
6015
6016 * xterm.c (x_term_init): Work around a bug in some X servers.
6017
3df5f8aa
RS
60182004-09-18 Richard M. Stallman <rms@gnu.org>
6019
557ca2c1
RS
6020 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
6021
3df5f8aa
RS
6022 * xdisp.c (try_window_reusing_current_matrix):
6023 Handle the case where we reach the old displayed text,
6024 out of sync with the old line boundary.
6025
9238467d 60262004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
6027
6028 * fileio.c (Finsert_file_contents): Fix case of replacement in a
6029 narrowed buffer.
6030
bfa02563
KS
60312004-09-14 Kim F. Storm <storm@cua.dk>
6032
a25fe164
KS
6033 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
6034
bfa02563
KS
6035 * xfaces.c (Qface_no_inherit): New var.
6036 (syms_of_xfaces): Intern and staticpro it.
6037 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
6038 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
6039 Don't increment face_change_count when face has non-nil
6040 face-no-inherit property.
6041
126f9c02
SM
60422004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
6043
892a8eb5
SM
6044 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
6045 (Fbyte_code): Remove dead code after `wrong_type_argument'.
6046
126f9c02 6047 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 6048 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 6049
c0ad3b38
KS
60502004-09-12 Kim F. Storm <storm@cua.dk>
6051
6052 * editfns.c (Fformat): Handle format strings with multiple text
6053 properties. Reverse text property list from the format string,
6054 so the positions are in increasing order.
6055
844fc085
JD
60562004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6057
6058 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
6059 x_uncatch_errors so that possible protocol errors are delivered.
6060
b106731c
EZ
60612004-09-10 Eli Zaretskii <eliz@gnu.org>
6062
21065c92
EZ
6063 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
6064 blockinput.h.
6065 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
6066 charset.h, and coding.h
9238467d 6067 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
6068 (term.o): Depend on window.h and keymap.h.
6069 (abbrev.o): Depend on syntax.h.
6070 (callint.o): Depend on keymap.h.
6071 (casefiddle.o): Depend on charset.h and keymap.h.
6072 (category.o): Depend on keymap.h.
6073 (coding.o): Depend on dispextern.h.
6074 (cmds.o): Depend on keyboard.h and keymap.h.
6075 (dispnew.o): Depend on indent.h and intervals.h.
6076 (doc.o): Depend on keymap.h.
6077 (editfns.o): Depend on frame.h.
6078 (emacs.o): Depend on dispextern.h.
6079 (fileio.o): Don't depend on ccl.h.
6080 (filelock.o): Depend on charset.h and coding.h.
6081 (frame.o): Depend on w32term.h and macterm.h.
6082 (insdel.o): Depend on region-cache.h.
6083 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
6084 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
6085 (search.o): Depend on $(INTERVALS_SRC).
6086 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
6087 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
6088 xterm.h, w32term.h, and macterm.h.
6089 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
6090 w32term.h, and macterm.h.
6091 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
6092 region-cache.h, xterm.h, w32term.h, and macterm.h.
6093 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
6094 (data.o): Depend on frame.h.
6095 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
6096 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
6097 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
6098 (intervals.o): Depend on keymap.h.
6099
9238467d
SM
6100 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
6101 Add debugging print-out to termscript.
b106731c 6102
64b7122d
RS
61032004-09-09 Richard M. Stallman <rms@gnu.org>
6104
6105 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
6106
5670531e
RS
61072004-09-08 Richard M. Stallman <rms@gnu.org>
6108
6cb4a892
RS
6109 * window.c (Fset_window_buffer): Doc fix.
6110
5670531e
RS
6111 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
6112
7e388eb7
JL
61132004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
6114
6115 * minibuf.c (history_delete_duplicates): New variable.
6116 (read_minibuf): Use it.
6117 (syms_of_minibuf): Create the corresponding lisp variable.
6118
370e3587
KS
61192004-09-08 Kim F. Storm <storm@cua.dk>
6120
6121 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
6122 overlay just before point.
6123
f844ba4e
LT
61242004-09-07 Luc Teirlinck <teirllm@auburn.edu>
6125
6126 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
6127 * buffer.c (reset_buffer, init_buffer_once):
6128 Handle auto_save_file_format field.
f844ba4e
LT
6129 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
6130 `buffer-auto-save-file-format'.
f844ba4e
LT
6131 * fileio.c: Delete declaration for removed Vauto_save_file_format.
6132 (build_annotations): Adapt to replacement of
6133 `auto-save-file-format' with the new buffer-local variable
6134 `buffer-auto-save-file-format'.
6135 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
6136
f0f90717
JR
61372004-09-07 Jason Rumney <jasonr@gnu.org>
6138
6139 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
6140
9238467d
SM
6141 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
6142 Handle Unicode menu titles.
f0f90717 6143
4e14f66c
KS
61442004-09-07 Kim F. Storm <storm@cua.dk>
6145
6146 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
6147 property from text property or overlay strings at point.
6148
9238467d 61492004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
6150
6151 * xmenu.c (update_submenu_strings): YAILOM.
6152 (set_frame_menubar): Make sure last_i is initialized.
6153
1f06d367
JR
61542004-09-03 Jason Rumney <jasonr@gnu.org>
6155
1806714a 6156 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
6157 (digest_single_submenu): Set lname and lkey in widget_value
6158 instead of name and key.
6159 (update_submenu_strings): New function.
6160 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6161 call update_submenu_strings.
6162
6163 * w32menu.c (globals_of_w32menu): Check for Unicode API.
6164 (digest_single_submenu, w32_menu_show): Encode menu strings as
6165 UTF-8 if Unicode API is available.
6166 (utf8to16): New function.
6167 (add_menu_item): Use it when calling Unicode API.
1806714a 6168
46540080
KS
61692004-09-03 Kim F. Storm <storm@cua.dk>
6170
6171 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
6172 in overlay or text-property strings; set cursor on corresponding
6173 glyph rather than at end of the string.
6174
9277ba61 61752004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 6176
9277ba61 6177 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
6178 set a new one before obtaining the global coordinate.
6179 Use FRAME_MAC_WINDOW.
6180 (x_set_name, x_set_title): Encode title to UTF8.
6181 Use SetWindowTitleWithCFString.
9277ba61
ST
6182 (Fx_server_version): Get correct OS version.
6183
1806714a
SM
6184 * macmenu.c (add_menu_item): Remove unused variable `i'.
6185 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
6186
6187 * macterm.c (x_update_end): Move SetPortWindowPort to inside
6188 BLOCK_INPUT.
6189 (x_set_offset): Use FRAME_MAC_WINDOW.
6190
6191 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
6192 nontext_cursor if it is on a scroll bar.
6193
6194 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
6195 Carbon support.
1806714a
SM
6196 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
6197 Use LIBS_CARBON.
9277ba61 6198
b10daec7
JD
61992004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6200
6201 * xfns.c (x_set_name_internal): New function. Check if we shall call
6202 xfree before ENCODE_UTF_8.
6203 (x_set_name, x_set_title): Call x_set_name_internal.
6204
f7e22385
JR
62052004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
6206
6207 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
6208 reload it.
6209
2bf436c3
JD
62102004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6211
1806714a 6212 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
6213 (single_submenu): Set lname and lkey in widget_value
6214 instead of name and key.
6215 (update_submenu_strings): New function.
6216 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6217 call update_submenu_strings.
6218
2bf436c3
JD
6219 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
6220 instead of name and key.
6221 (update_submenu_strings): New function.
6222 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 6223 call update_submenu_strings.
2bf436c3
JD
6224
6225 * gtkutil.h (_widget_value): Added lname and lkey.
6226
11715f92
ST
62272004-08-30 Steven Tamm <steventamm@mac.com>
6228
6229 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
6230 by using different names for inner loop variables.
6231
5500be54
JD
62322004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6233
059cd329
JD
6234 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
6235 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
6236
5500be54
JD
6237 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
6238 tool bar items is 0.
6239
383418e5
ST
62402004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6241
6242 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
6243 strings in menu items.
6244 (single_submenu): Use ENCODE_MENU_STRING
6245 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
6246 button release isn't passed to event loop
6247 (add_menu_item): Use SetMenuItemWithCFString
6248
6eb3ee72
ST
62492004-08-26 Steven Tamm <steventamm@mac.com>
6250
6251 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
6252 tool-bar/menu click.
6253 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 6254
10b43ac3
JD
62552004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6256
2728b5d0
JD
6257 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
6258
10b43ac3
JD
6259 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6260 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6261 (x_top_window_to_frame): Return 0 if wdesc is None.
6262
2ee3b79e
RS
62632004-08-22 Richard M. Stallman <rms@gnu.org>
6264
6265 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
6266 HAVE_TERMIOS]: If there's no char for this signal, drop through
6267 and use system calls.
6268
6269 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
6270
9a1ba2ea
KS
62712004-08-20 Kim F. Storm <storm@cua.dk>
6272
6273 * process.c (wait_reading_process_output): Rename from
6274 wait_reading_process_input. All uses changed.
6275 (wait_reading_process_output_1): Rename from
6276 wait_reading_process_input_1. All uses changed.
6277
6278 * dispnew.c (Fsleep_for): Remove obsolete code.
6279
295f3b30
KH
62802004-08-20 Kenichi Handa <handa@m17n.org>
6281
6282 * syntax.c (skip_chars): Fix for unibyte case.
6283
27615979
SM
62842004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6285
6286 * syntax.c (char_quoted): Mixup byte/char pos.
6287 (back_comment): Fixup globals in all cases.
6288
00267f94
JD
62892004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6290
6291 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
6292 passing it to gtk_window_set_title.
6293
2439909e
KS
62942004-08-19 Kim F. Storm <storm@cua.dk>
6295
6ba0f14c
KS
6296 * process.c (wait_reading_process_input): Clean up.
6297 Add wait_for_cell, wait_proc, and just_wait_proc args
6298 to avoid overloading `read_kbd' and `do_display' args.
6299 Change read_kbd arg to int. All callers changed.
6300
2439909e
KS
6301 * process.c (process_send_signal): Use CDISABLE.
6302
6303 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
6304
101c421e
KS
63052004-08-18 Kim F. Storm <storm@cua.dk>
6306
6307 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
6308 forward to wait_reading_process_input via DO_DISPLAY arg.
6309 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
6310 object, only process output from that process; also inhibit
6311 running timers if DO_DISPLAY==-2.
6312
c438dc33
KS
63132004-08-17 Kim F. Storm <storm@cua.dk>
6314
6315 * process.c (process_send_signal): Fix last change--use
6316 _POSIX_VDISABLE instead of CVDISABLE when available.
6317
8afc13c6
RS
63182004-08-16 Richard M. Stallman <rms@gnu.org>
6319
6320 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
6321 Set VQUIT and VINTR chars to the standard ones if they are unset.
6322 [AIX]: Don't do that here. And don't force VINTR to standard
6323 when SIGNALS_VIA_CHARACTERS.
6324
c438dc33 6325 * process.c (process_send_signal)
8afc13c6
RS
6326 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
6327 Do nothing if the character is CVDISABLE.
6328
6329 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
6330
c438dc33 6331 * intervals.c (move_if_not_intangible):
8afc13c6
RS
6332 Force POSITION to be between BEGV and ZV.
6333
6dad1714
JPW
63342004-08-14 John Paul Wallington <jpw@gnu.org>
6335
6336 * buffer.c (Frestore_buffer_modified_p): Doc fix.
6337
6338 * fileio.c (Fread_file_name): Doc fix.
6339
6340 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6341
2bd77330
LT
63422004-08-09 Luc Teirlinck <teirllm@auburn.edu>
6343
6344 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
6345
c90e7e43
LT
63462004-08-08 Luc Teirlinck <teirllm@auburn.edu>
6347
6348 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 6349 Qdisabled_command_hook.
c90e7e43 6350 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 6351 Qdisabled_command_hook.
c90e7e43
LT
6352 (syms_of_keyboard): Ditto.
6353
81909a1a
LT
63542004-08-07 Luc Teirlinck <teirllm@auburn.edu>
6355
6356 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
6357 (syms_of_keymap) <key-translation-map>: Doc fixes.
6358
0cedd530
SM
63592004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
6360
1725a7c9
SM
6361 * window.c (window_list_1): YAILOM.
6362
0cedd530
SM
6363 * fileio.c (make_temp_name): Handle multibyte prefixes.
6364
2515a131
LT
63652004-08-06 Luc Teirlinck <teirllm@auburn.edu>
6366
6367 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6368 Doc fix.
6369
c8b20fb7
KH
63702004-08-03 Kenichi Handa <handa@m17n.org>
6371
6372 * coding.c (decode_coding_string): Adjust coding->consumed, and
6373 etc. with shrinked_bytes.
6374
fb8b092b
KS
63752004-08-03 Kim F. Storm <storm@cua.dk>
6376
6377 * indent.c (compute_motion): Fix check for full width window
6378 in non-window case. Do not count left truncation glyph on
6379 window systems.
6380
df133612
LT
63812004-08-02 Luc Teirlinck <teirllm@auburn.edu>
6382
6383 * data.c (Finteractive_form): Doc fix.
6384
0f7a93c1
KS
63852004-08-02 Kim F. Storm <storm@cua.dk>
6386
6387 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
6388 properly accounting for continuation glyph on non-window systems.
6389 (Fcompute_motion): Use actual window width if WIDTH is nil, and
6390 actual window width/height if TOPOS is nil, properly accounting for
6391 continuation glyphs on non-window systems, and optional header lines.
6392 (vmotion): Let compute_motion calculate actual window width.
6393
6394 * window.c (window_scroll_line_based): Let compute_motion
6395 calculate actual window width.
6396
f491e1ed
KS
63972004-08-02 Kim F. Storm <storm@cua.dk>
6398
6399 * process.c (read_process_output): Use whole read buffer.
6400 Don't trigger adaptive read buffering on errors.
6401
83f64226
LT
64022004-07-31 Luc Teirlinck <teirllm@auburn.edu>
6403
6404 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
6405
1d1c7e75 6406 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
6407
6408 * callint.c (Fcall_interactively): Doc fix.
6409
8afc13c6
RS
64102004-07-30 Richard M. Stallman <rms@gnu.org>
6411
6412 * abbrev.c (Fexpand_abbrev): Undo previous change.
6413
7c111482
KS
64142004-07-30 Kim F. Storm <storm@cua.dk>
6415
6416 * editfns.c (Fformat): Allocate extra (dummy) element in info.
6417
ee945d08
LT
64182004-07-28 Luc Teirlinck <teirllm@auburn.edu>
6419
6420 * eval.c (Fdefvar, Fdefconst): Doc fixes.
6421
3f911c94
KS
64222004-07-27 Kim F. Storm <storm@cua.dk>
6423
6424 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
6425 we have ensured that the glyph fits on the current line (or returned
6426 MOVE_LINE_CONTINUED otherwise).
6427
f29ff8c7
KS
64282004-07-26 Kim F. Storm <storm@cua.dk>
6429
6430 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
6431 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
6432 if target position is at end of display line but char is not a newline.
6433
81159bb9
RS
64342004-07-25 Richard M. Stallman <rms@gnu.org>
6435
ab431b61
RS
6436 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
6437 instead of ON_VERTICAL_BORDER, when on scroll bar.
6438 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
6439
6440 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
6441
f29ff8c7 6442 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
6443 Take account of FRAME_INTERNAL_BORDER_WIDTH.
6444
6445 * alloc.c (check_cons_list): New function (contents commented out).
6446
fc820cc5
LT
64472004-07-24 Luc Teirlinck <teirllm@auburn.edu>
6448
6449 * xfaces.c (Fcolor_supported_p): Doc fix.
6450
6451 * frame.c (Fselect_frame, Fset_frame_selected_window)
6452 (Fframe_visible_p, Fraise_frame): Doc fixes.
6453
289978b5
LT
64542004-07-24 Richard M. Stallman <rms@gnu.org>
6455
78819ebb 6456 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
6457
6458 * fileio.c (Fwrite_region): Doc fix.
6459
6460 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
6461
6462 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
6463 only when a real abbrev is present.
6464
289978b5
LT
6465 * xfns.c (x_icon_verify): New function.
6466 (Fx_create_frame): Use it.
6467
d5fb8dab 64682004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
6469
6470 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
6471
36f826d4
KS
64722004-07-21 Kim F. Storm <storm@cua.dk>
6473
6474 * window.h (struct glyph_matrix): New members nrows_scale_factor
6475 and ncols_scale_factor.
6476
6477 * window.c (make_window): Initialize nrows_scale_factor and
6478 ncols_scale_factor members.
6479
6480 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
6481 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
6482 (required_matrix_height): Apply nrows_scale_factor.
6483 (required_matrix_width): Apply ncols_scale_factor.
6484
6485 * xdisp.c (display_line): Increment nrows_scale_factor and set
6486 fonts_changed_p if past last allocated row.
6487 (append_glyph, append_composite_glyph, produce_image_glyph)
6488 (append_stretch_glyph): Increment ncols_scale_factor and set
6489 fonts_changed_p if current area is full.
6490
5fc1c546
JD
64912004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6492
6493 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
6494
cb7516e5
LT
64952004-07-19 Luc Teirlinck <teirllm@auburn.edu>
6496
6497 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
6498 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
6499 (Fset_window_start, Fscroll_up, Fscroll_down)
6500 (Fother_window_for_scrolling, Fscroll_other_window)
6501 (Fsave_window_excursion, Fset_window_vscroll)
6502 (syms_of_window) <window-size-fixed>: Doc fixes.
6503
b6189c3b 65042004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
6505
6506 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
6507 ENCODE_SYSTEM for filenames.
6508
bfcf6608
ST
65092004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6510
6511 * mac.c (sys_select): Block input around call to
6512 ReceiveNextEvent to prevent breakage. Correctly handle
6513 blocking on event queue only by calling ReceiveNextEvent
6514 instead of select (since GUI events aren't on an fd).
6515 (sys_read): Remove function
6516 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
6517
e082ac9d
ST
65182004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6519
6520 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 6521 polling instead of 1 sec timeouts (like solaris).
e082ac9d 6522
cb7516e5 6523 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
6524 frame creation.
6525
6526 * keyboard.c: Undef SIGIO on Carbon
6527
6528 * atimer.c (alarm_signal_handler): Call alarm handlers after
6529 scheduling.
6530
6531 * eval.c (Feval): Remove quit_char test
6532
6533 * process.c (wait_reading_process_input): Remove clearing
6534 stdin for select call on process input.
6535
4b9da0fb
LT
65362004-07-18 Luc Teirlinck <teirllm@auburn.edu>
6537
1204e81c
LT
6538 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
6539 capitalization error in docstring.
4b9da0fb 6540
26503ad2
JB
65412004-07-17 Juanma Barranquero <lektu@terra.es>
6542
6543 * keyboard.c (not_single_kboard_state): Do nothing unless
6544 MULTI_KBOARD is defined.
6545
3751eb00
RS
65462004-07-17 Richard M. Stallman <rms@gnu.org>
6547
6548 * window.c (coordinates_in_window): Inside the window but outside
6549 its box to the L or R, return ON_VERTICAL_BORDER.
6550 (window_list_1): Rotate the list to start with WINDOW.
6551
6552 * print.c (print_preprocess): Test for print_depth at limit
6553 before entering in being_printed.
6554
6555 * keyboard.c (not_single_kboard_state): New function.
6556 (stuff_buffered_input): Now no-op only if no SIGTSTP.
6557
6558 * frame.c (Fdelete_frame): If we're in single_bboard_state on
6559 this kboard, and we delete its last frame, go to any_kboard_state.
6560
6561 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
6562
b6189c3b 65632004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
6564
6565 * w32fns.c (Fx_file_dialog): Encode strings in system coding
6566 system before passing them to OS functions for display.
6567
0f6af254
DK
65682004-07-15 David Kastrup <dak@gnu.org>
6569
f9253326
KS
6570 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
6571 Apparently fixes an abort condition.
0f6af254 6572
386c8f42
LT
65732004-07-14 Luc Teirlinck <teirllm@auburn.edu>
6574
6575 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
6576 instead of a cons.
6577
366511da
MB
65782004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6579
6580 * keyboard.c (echo_dash): Do nothing if there already is a dash
6581 at the end of the echo string.
6582
f85409d3
KS
65832004-07-12 Kim F. Storm <storm@cua.dk>
6584
6585 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
6586 if GC_MARK_STACK.
6587
0ba2e87b
LT
65882004-07-10 Luc Teirlinck <teirllm@auburn.edu>
6589
da38045d
LT
6590 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
6591
0ba2e87b
LT
6592 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
6593 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
6594 (Freplace_buffer_in_windows, Fset_window_buffer)
6595 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
6596 (syms_of_window): Expand docstring of `display-buffer-function'.
6597
5668fbb8
LT
65982004-07-09 Luc Teirlinck <teirllm@auburn.edu>
6599
6600 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
6601 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
6602 that time values of the type (HIGH . LOW) are considered obsolete.
6603
a085bf9d
LT
66042004-07-06 Luc Teirlinck <teirllm@auburn.edu>
6605
669de2fb
LT
6606 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
6607 docstring.
6608
bac66325 6609 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 6610
8e975df9
JPW
66112004-07-06 John Paul Wallington <jpw@gnu.org>
6612
6613 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
6614
fa164e6a
JPW
6615 * fns.c (Fclear_string): Signal an error if STRING is not a string.
6616
2bac9bb1
JD
66172004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6618
6619 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
6620 instead of CGMainDisplayID (only in OSX 10.2 and later).
6621
316ef0dc
JPW
66222004-07-04 John Paul Wallington <jpw@gnu.org>
6623
6624 * fileio.c (read_file_name_completion_ignore_case): New variable.
6625 (syms_of_fileio): Declare and initialise it.
6626 (Fread_file_name): Bind `completion-ignore-case' to respect it.
6627
2a1a35c6
EZ
66282004-07-03 Eli Zaretskii <eliz@gnu.org>
6629
6630 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
6631 for event.x and event.y.
6632
33a72331
KH
66332004-07-01 Kenichi Handa <handa@m17n.org>
6634
6635 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
6636 after getting a new string by pre-write-conversion.
6637
9238467d 66382004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
6639
6640 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
6641 (x_calc_absolute_position): Remove unused var `child'.
6642
6643 * xfaces.c (x_supports_face_attributes_p)
6644 (Fdisplay_supports_face_attributes_p): YAILOM.
6645 (tty_supports_face_attributes_p): Remove unused var `i'.
6646
6647 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
6648 back_unibyte_ok.
6649
6650 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
6651
6652 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
6653
6654 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
6655
f96ec754
AS
66562004-06-30 Andreas Schwab <schwab@suse.de>
6657
6658 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
6659 (Finit_image_library): Pass LIBRARIES through to
6660 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
6661 (lookup_image_type): Pass Qnil as second argument to
6662 Finit_image_library.
6663
78819ebb 6664 * lisp.h (Finit_image_library): Declare.
f96ec754 6665
59feca74 66662004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 6667
31983645
AS
6668 * macterm.c (do_window_activate, do_window_deactivate): Remove.
6669 (XTread_socket): Send mouse button events to the toolbox
6670 dispatcher even when the mouse is grabbed. Don't process window
6671 activate events for non-Emacs windows. Replace function calls to
6672 do_window_activate and do_window_deactivate with their contents.
6673 Reset mouse grabbing status when a window is deactivated.
59feca74 6674
c61278bb
ST
66752004-06-29 Steven Tamm <steventamm@mac.com>
6676
6677 * macterm.c (mac_get_emulated_btn)
6678 (mac_event_to_emacs_modifiers): Fix emulated mouse button
6679 support to correctly mask out modifiers.
6680
c3762cbd
DK
66812004-06-29 David Kastrup <dak@gnu.org>
6682
6683 * search.c (Fset_match_data): Allow buffer before end of list
6684 which can happen if set-match-data is using a pre-consed list.
6685
c61278bb 66862004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
6687
6688 * macterm.c (XTread_socket): Correctly set the frame position
6689 after the window is moved.
6690
74cdfe05
JD
66912004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6692
6693 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
6694 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
6695 (xg_get_image_for_pixmap): Add workaround for monochrome displays
6696 so insensitive and activated icons look ok.
74cdfe05 6697
ef544dc8
JR
66982004-06-27 Jason Rumney <jasonr@gnu.org>
6699
6700 * w32fns.c (file_dialog_callback): Disable edit control if set
6701 to directories only on CDN_INITDONE message.
6702 (Fx_file_dialog): Default to directories only when prompt starts
6703 with "Dired".
6704
7b7990cc
KS
67052004-06-25 Kim F. Storm <storm@cua.dk>
6706
6707 * alloc.c (allocate_misc): Update total_free_markers.
6708 (free_misc): New function.
6709 (safe_alloca_unwind, free_marker): Use it.
6710
6711 * lisp.h (free_misc): Add prototype.
6712
6713 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
6714
d8c379f8
RS
67152004-06-24 Richard M. Stallman <rms@gnu.org>
6716
6717 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
6718 (syms_of_emacs): Lisp variables deleted.
6719
559cdd07
DK
67202004-06-23 David Kastrup <dak@gnu.org>
6721
94939b84
DK
6722 * search.c (Freplace_match): Adjust the match-data more thoroughly
6723 when replacing strings in the buffer.
6724 (Fmatch_data): When INTEGERS is non-nil and the last match was in
6725 a buffer, add the buffer as last element to the match data.
6726 (Fset_match_data): If an additional element of the match-data is a
6727 buffer, restore it to last_thing_searched.
c8d09ad8 6728 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
6729 (restore_match_data): Restore it again.
6730
dce417e7
LT
67312004-06-23 Luc Teirlinck <teirllm@auburn.edu>
6732
6733 * keymap.c (Ftext_char_description): Doc fix.
6734 * doc.c (Fsnarf_documentation): Doc fix.
6735
ef54b2d0
KS
67362004-06-22 Kim F. Storm <storm@cua.dk>
6737
b5bc4d05
KS
6738 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
6739
ef54b2d0
KS
6740 * lisp.h (struct Lisp_Save_Value): New member dogc.
6741 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
6742 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
6743 (SAFE_FREE_LISP): New macro.
6744
6745 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
6746 (make_save_value): Init new dogc member.
6747 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
6748
6749 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
6750 SAFE_FREE_LISP macros.
6751
3d33d993
KS
67522004-06-22 Kim F. Storm <storm@cua.dk>
6753
6754 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
6755 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
6756 in that memory area are unknown to GC. Add comments.
6757
6758 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
6759
5c917f98
KS
67602004-06-21 Kim F. Storm <storm@cua.dk>
6761
6762 * lisp.h (MAX_ALLOCA): Define here.
6763 (safe_alloca_unwind): Add prototype.
6764 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
6765
6766 * alloc.c (safe_alloca_unwind): New function.
6767
6768 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
6769
6770 * charset.c (Fstring): Use SAFE_ALLOCA.
6771
6772 * coding.c (MAX_ALLOCA): Remove define.
6773
6774 * data.c (MAX_ALLOCA): Remove define.
6775 (Faset): Use SAFE_ALLOCA.
6776
6777 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
6778
6779 * fns.c (string_make_multibyte, string_to_multibyte)
6780 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
6781 (MAX_ALLOCA): Remove define.
6782 (Fbase64_encode_region, Fbase64_encode_string)
6783 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
6784 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
6785 memory leak if encoding fails.
6786
6787 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
6788
9a09408e
EZ
67892004-06-21 Eli Zaretskii <eliz@gnu.org>
6790
6791 * print.c (Fwith_output_to_temp_buffer): Doc fix.
6792
376de739
RS
67932004-06-20 Richard M. Stallman <rms@gnu.org>
6794
6795 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
6796
6797 * search.c (match_limit): Cleaner err msg when no match data available.
6798
6799 * window.c (syms_of_window): Doc fix.
6800
6801 * keyboard.c (command_loop_1): Handle values `only' and `identity'
6802 for Vtransient_mark_mode.
6803
6804 * buffer.c (syms_of_buffer): Doc fix.
6805
acd81db9
DK
68062004-06-21 David Kastrup <dak@gnu.org>
6807
6808 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
6809 and unbinding of `case-fold-search' according to
6810 `completion-ignore-case' around calls of string-match and
6811 predicates, respectively. Should give satisfactory performance
6812 in all relevant cases.
6813
f303762d
JD
68142004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6815
95911c74
JD
6816 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
6817 clip_x/y_origin.
6818
a6cb6b78
JD
6819 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
6820
f303762d
JD
6821 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
6822
6823 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
6824 on Mac OSX.
6825
bbdb2684
LT
68262004-06-16 Luc Teirlinck <teirllm@auburn.edu>
6827
6828 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
6829
5ea48b1c
KS
68302004-06-16 Kim F. Storm <storm@cua.dk>
6831
6832 * dispextern.h (Vimage_types): Remove extern.
6833
803aac3e
MB
68342004-06-16 Miles Bader <miles@gnu.org>
6835
6836 * image.c (lookup_image_type): Initialize image type if necessary.
6837
cdc97764
KS
68382004-06-15 Kim F. Storm <storm@cua.dk>
6839
c4a5739c
KS
6840 * xdisp.c (try_cursor_movement): Exclude header line from scroll
6841 margin at top of window.
6842 (try_window_reusing_current_matrix): Calculate proper cursor position
6843 after scrolling up with non-zero scroll margin, as the old cursor
6844 position corresponds to value of PT before executing this command.
6845 (try_window_id): Consider scroll margin at bottom of window too;
6846 otherwise we fail to scroll when hl-line-mode is enabled.
6847
cdc97764
KS
6848 * syntax.c (skip_chars): Only recognize [:class:] when it has the
6849 proper format and class is a lower-case word.
6850
5b166323
JD
68512004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6852
6853 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 6854 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
6855 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
6856 xg_get_gdk_pixmap_and_mask.
cdc97764 6857
5b166323
JD
6858 * xterm.h (struct x_display_info): Typo in comment fixed.
6859
1ebd4f78
JB
68602004-06-14 Juanma Barranquero <lektu@terra.es>
6861
6862 * dispextern.h (Vimage_types): Make it conditional on
6863 HAVE_WINDOW_SYSTEM.
6864
6865 * image.c (Vimage_types): Move from xdisp.c.
6866 (Vimage_type_cache): New variable.
6867 (define_image_type): New argument indicating whether an image
6868 library was loaded; cache loaded status and return t on success,
6869 nil otherwise.
6870 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
6871 (w32_delayed_load): New function to load an image library from a
6872 list of possible filenames.
6873 (init_xpm_functions, init_png_functions, init_jpeg_functions)
6874 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 6875 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
6876 (Finit_image_library): New function, extracted from `init_image'.
6877 Try to initialize an image library on demand and cache whether we
6878 were successful or not.
6879 (syms_of_image): Initialize `Vimage_types' and
6880 `Vimage_type_cache'. Add recognized image types to Vimage_types.
6881 Export `init-image-library'.
6882 (init_image): Remove initialization of all image types, except xbm
6883 and pbm.
6884
6885 * xdisp.c (Vimage_types): Delete (moved to image.c).
6886
904ee128
AS
68872004-06-14 Andreas Schwab <schwab@suse.de>
6888
6889 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
6890 Avoid calling specbind when completion-regexp-list is empty.
6891
092de21d
RS
68922004-06-13 Richard M. Stallman <rms@gnu.org>
6893
6894 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6895 (re_wctype, re_iswctype, re_wctype_to_bit):
6896 Non-function definitions moved here from regex.c.
1ebd4f78 6897
092de21d
RS
6898 * regex.c (re_wctype, re_iswctype): Function defs longer static.
6899 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6900 (re_wctype, re_iswctype, re_wctype_to_bit):
6901 Non-function definitions moved to regex.h.
6902
6903 * window.c (Fselect_window): Doc fix.
6904
6905 * syntax.c: Include regex.h.
6906 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
6907 If requested, make a list of classes, then check the scanned
6908 chars for membership in them.
6909 (in_classes): New function.
6910 Doc fix.
6911
6912 * keyboard.c (cmd_error): Don't call any_kboard_state
6913 if inside a recursive edit level.
6914
9ba27690 69152004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
6916
6917 * keyboard.c (command_loop): Call any_kboard_state before
6918 command_loop_2 when at top level.
6919
3ebc0939
AS
69202004-06-13 Andreas Schwab <schwab@suse.de>
6921
cea5d0d4
AS
6922 * print.c (print_object): Always use %ld for printing EMACS_INT.
6923
6924 * keyboard.c (cancel_hourglass_unwind): Return a value.
6925 (modify_event_symbol): Always use %ld for printing EMACS_INT.
6926 (Fexecute_extended_command): Likewise.
6927
6928 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
6929 avoid clashes.
6930 (SYNTAX): Likewise.
6931 (SYNTAX_WITH_FLAGS): Likewise.
6932 (SYNTAX_MATCH): Likewise.
6933
6934 * syntax.c (char_quoted): Avoid warning about undefined operation.
6935 (find_defun_start): Likewise.
6936 (scan_lists): Likewise.
6937 (INC_FROM): Likewise.
6938 (scan_sexps_forward): Likewise.
6939
be8c4ce4
AS
6940 * image.c: Include <ctype.h>.
6941
3ebc0939
AS
6942 * xfaces.c (face_attr_equal_p): Declare parameters.
6943
6fb41b5b
KH
69442004-06-13 Kenichi Handa <handa@m17n.org>
6945
6946 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
6947
fc3095ce
EZ
69482004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
6949
6950 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
6951
66189a40
KH
69522004-06-12 Kenichi Handa <handa@m17n.org>
6953
6954 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
6955 ccl_prog_stack_struct and update it.
6956 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
6957 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
6958 ccl->eof_ic on EOF.
6959 (ccl_debug_hook): New function.
6960 (struct ccl_prog_stack): New member eof_ic.
6961 (ccl_driver): Handle EOF in subrountine call correctly.
6962
69632004-06-11 Kenichi Handa <handa@m17n.org>
6964
a9b43336 6965 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 6966
1da71023
KS
69672004-06-11 Kim F. Storm <storm@cua.dk>
6968
6969 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
6970
e9efcef4
JB
69712004-06-11 Juanma Barranquero <lektu@terra.es>
6972
6973 * keyboard.c (Fposn_at_point): Doc fix.
6974
9b9ceb61
DK
69752004-06-11 David Kastrup <dak@gnu.org>
6976
6977 * search.c (match_limit): Don't flag an error if match-data
6978 exceeding the allocated search_regs.num_regs gets requested, just
6979 return Qnil.
6980
6e87ac8f
MB
69812004-06-08 Miles Bader <miles@gnu.org>
6982
6983 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
6984
0b0dea7b
JB
69852004-06-07 Juanma Barranquero <lektu@terra.es>
6986
6987 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
6988 (Fcurrent_time_string, Fcurrent_time_zone)
6989 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
6990
a0a23346
MB
69912004-06-07 Miles Bader <miles@gnu.org>
6992
08384afd 6993 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
6994 (push_named_merge_point): New function.
6995 (merge_named_face): New function.
6996 (merge_face_ref, face_at_buffer_position, face_at_string_position):
6997 Use `merge_named_face'.
6998 (merge_face_inheritance): Function removed.
c8d09ad8 6999 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
7000 Add new `err_msgs' and `named_merge_points' args. Return error
7001 status. Only print error messages if ERR_MSGS is true. Don't try to
7002 do :inherit attribute validation.
7003 (merge_face_heights): Handle `unspecified' in both directions.
7004 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
7005 Call `merge_face_ref' instead of `merge_face_inheritance'.
7006 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
7007 (compute_char_face, face_at_buffer_position)
7008 (face_at_string_position): Call `merge_face_ref' instead of
7009 `merge_face_vector_with_property'.
7010
12d5b185
KH
70112004-06-07 Kenichi Handa <handa@m17n.org>
7012
7013 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
7014 the necessary places.
7015
2e2d7ee6
KS
70162004-06-07 Kim F. Storm <storm@cua.dk>
7017
7018 * process.c (Fdelete_process): Undo 2004-05-28 change.
7019 Instead, call status_notify also for network process.
7020 (status_message): Use process instead of status as arg.
7021 Give messages "deleted" or "connection broken by remote peer" for
7022 an exited network process.
7023 (status_notify): Change call to status_message.
7024 (read_process_output): Increase readmax to 4096. Do not increase
7025 buffer size for datagram channels (default is now large enough).
7026
fcf0d299
ST
70272004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7028
7029 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
7030 problem due to newly defined variable.
7031
0722292b
MB
70322004-06-06 Miles Bader <miles@gnu.org>
7033
7034 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
7035 immediately if non-interactive or not initialized.
7036
ddfb8369
RS
70372004-06-05 Richard M. Stallman <rms@gnu.org>
7038
7039 * minibuf.c (Fcompleting_read): Doc fix.
7040
57015754
AS
70412004-06-05 Andreas Schwab <schwab@suse.de>
7042
7043 * macfns.c (x_create_tip_frame): Fix declaration after statement.
7044
23715ea6
JB
70452004-06-05 Juanma Barranquero <lektu@terra.es>
7046
7047 * keymap.c (Fdescribe_vector): Fix docstring.
7048 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
7049
8e330b22
MB
70502004-06-05 Miles Bader <miles@gnu.org>
7051
7052 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
7053 attributes have different values than the default face.
7054
9742a3a6
EZ
70552004-06-04 Eli Zaretskii <eliz@gnu.org>
7056
7057 * xfaces.c (x_supports_face_attributes_p): Make this function
7058 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
7059 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
7060 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 7061
9717e36c
MB
70622004-06-04 Miles Bader <miles@gnu.org>
7063
7064 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
7065 from Ftty_supports_face_attributes_p.
7066 (x_supports_face_attributes_p): New function.
7067 (Ftty_supports_face_attributes_p): Function deleted.
7068 (Fdisplay_supports_face_attributes_p): New function.
7069 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 7070 (face_attr_equal_p): New function.
9717e36c
MB
7071 (lface_equal_p): Use it.
7072
52deb19f
JB
70732004-06-03 Juanma Barranquero <lektu@terra.es>
7074
7075 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
7076 (Vw32_color_map): Fix typo in docstring.
7077 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
7078 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
7079 Make argument names match their use in docstring.
7080
86d373e6
JB
70812004-06-02 Juanma Barranquero <lektu@terra.es>
7082
7083 Work around bugs/problems with MinGW builds of graphics libraries
7084 called from MSVC builds of Emacs.
7085
7086 * image.c (lookup_image): Make pointer to img static.
7087 (png_read_from_memory): Disable "global" optimization.
7088
2fb0ce67
SM
70892004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7090
c8d09ad8
SM
7091 * eval.c (Fcondition_case): Fix usage. Simplify.
7092
2fb0ce67
SM
7093 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
7094
50bf7673
ST
70952004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7096
7097 * macfns.c: Don't include ccl.h.
7098 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
7099 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
7100 TextUtils.h.
c8d09ad8 7101 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
7102 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
7103 display height/width.
7104 (compute_tip_xy, Vx_max_tooltip_size): Declare.
7105 (unwind_create_tip_frame, compute_tip_xy): New functions.
7106 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
7107 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
7108 and last_show_tip_args.
2fb0ce67 7109
50bf7673
ST
7110 * macgui.h [!MAC_OSX]: Include Gestalt.h.
7111 (Cursor, No_Cursor): New defines.
c8d09ad8 7112 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
7113 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
7114
7115 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
7116
7117 * macterm.c: Don't include Gestalt.h.
7118 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
7119 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
7120 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
7121 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
7122 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
7123 (construct_mouse_click, XTmouse_position)
7124 (x_scroll_bar_report_motion, x_calc_absolute_position)
7125 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
7126 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
7127 (note_mouse_movement): Clear the mouse face and reset the pointer
7128 shape when the pointer goes outside the frame without grabbing.
7129 (mac_front_window): New function.
7130 (mac_window_to_frame): New macro.
7131 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
7132 (do_window_activate, do_window_deactivate, do_app_resume)
7133 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
7134 (do_zoom_window, mac_do_receive_drag, XTread_socket)
7135 (mac_check_for_quit_char): Use mac_front_window and/or
7136 mac_window_to_frame.
7137 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
7138 scroll-bar click event.
7139 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
7140 (x_free_frame_resources): Reset tip_window to NULL when it is
7141 disposed of.
50bf7673 7142 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 7143 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
7144 (do_window_update): Don't do anything if the updated window is the
7145 tooltip window.
7146 (do_mouse_moved): Handle mouse movement events here (previously in
7147 XTread_socket). Clear the mouse face if
7148 dpyinfo->mouse_face_hidden is set.
7149 (do_os_event, do_events): Remove (now in XTread_socket).
7150 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
7151 Loop until all the events in the queue are processed.
7152 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
7153 contents of do_os_event and do_events. Remove mouse movement
7154 handling (now in do_mouse_moved). Add the case where
7155 Vmouse_highlight has an integer value.
7156 (NewMacWindow): Remove.
7157 (make_mac_frame): Do what NewMacWindow previously did. Don't do
7158 excess initializations.
7159 (make_mac_terminal_frame): Previous initializations in
7160 make_mac_frame are moved here.
c8d09ad8
SM
7161 (mac_initialize_display_info):
7162 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
7163
7164 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
7165 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
7166
08fd1251
RS
71672004-05-29 Richard M. Stallman <rms@gnu.org>
7168
7169 * lisp.h (truncate_undo_list): Update decl.
7170
7171 * alloc.c (undo_outer_limit): New variable.
7172 (syms_of_alloc): Defvar it.
7173 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
7174
7175 * undo.c (truncate_undo_list): New arg LIMITSIZE.
7176
7177 * alloc.c (lisp_align_malloc): Check for base == 0
7178 regardless of HAVE_POSIX_MEMALIGN.
7179 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
7180
227ef0ff
SM
71812004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7182
7183 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
7184 (marker_blocks_pending_free): Remove.
7185 (Fgarbage_collect): Sweep after cleaning up undo-lists.
7186 Mark the undo lists after claning them up.
7187 Don't free block in marker_blocks_pending_free.
7188 (mark_buffer): Don't mark undo_list.
7189 (gc_sweep): Sweep hash-tables and strings first.
7190 Do free marker blocks that are empty.
7191
034a6113
SM
71922004-05-28 Jim Blandy <jimb@redhat.com>
7193
7194 * regex.c (print_partial_compiled_pattern): Add missing 'break'
7195 after 'case wordend'. For symbeg and symend, print to stderr,
7196 like the other cases.
7197
33594a8d
NF
71982004-05-28 Noah Friedman <friedman@splode.com>
7199
7200 * process.c (Fdelete_process): Do not call remove_process.
7201
ce50a847
SM
72022004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7203
7204 * alloc.c (struct backtrace): Remove.
7205 (Fgarbage_collect): Use the new mark_backtrace.
7206
7207 * eval.c (mark_backtrace): New function.
7208
7209 * minibuf.c (run_exit_minibuf_hook): New function.
7210 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
7211 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
7212
1e8dae36
KS
72132004-05-27 Kim F. Storm <storm@cua.dk>
7214
7215 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
7216 over display properties, e.g. images, that replace buffer text.
7217
846faa3b
KS
72182004-05-25 Kim F. Storm <storm@cua.dk>
7219
7220 * alloc.c (marker_blocks_pending_free): New var.
7221 (gc_sweep): Store free marker blocks on that list.
7222 (Fgarbage_collect): Free them after undo-list cleanup.
7223
7224 * process.c (wait_reading_process_input): Check connect_wait_mask
7225 before actually accepting connection in case it has already been
7226 accepted due to recursion.
7227
b6189c3b 72282004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 7229
ce50a847
SM
7230 * coding.c (Fset_safe_terminal_coding_system_internal):
7231 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 7232
71d5a208
RS
72332004-05-22 Richard M. Stallman <rms@gnu.org>
7234
7235 * alloc.c (Fmake_string): Doc fix.
7236
7237 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
7238 and the alist pairs too.
7239
7240 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
7241
51391fb9
RF
7242 * emacs.c (main): Update copyright year.
7243
71d5a208
RS
7244 * fileio.c (Fread_file_name): Expand DIR if not absolute.
7245
7246 * insdel.c (del_range_2, replace_range): Don't write an anchor
7247 if the gap is empty.
7248
7249 * xdisp.c (try_scrolling): If scroll-up-aggressively or
7250 scroll-down-aggressively is small but positive, put point
7251 near the screen edge.
7252
f63fd14e
JB
72532004-05-22 Juanma Barranquero <lektu@terra.es>
7254
7255 * keymap.c (Fdefine_key): Doc fix.
7256
4d12067c
KS
72572004-05-22 Kim F. Storm <storm@cua.dk>
7258
7259 * alloc.c (struct backtrace): Add debug_on_exit member.
7260 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
7261 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
7262 the removed cons cells.
7263 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
7264 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
7265 any cons cells pointing to unallocated stings.
7266 Do not lisp_free any marker blocks, as there may still be pointers
7267 to them from buffer undo lists at this stage of GC.
7268
7269 * keyboard.c (struct backtrace): Add debug_on_exit member.
7270 (Fcommand_execute): Clear it.
7271
931285e2
LT
72722004-05-20 Luc Teirlinck <teirllm@auburn.edu>
7273
7274 * intervals.c (lookup_char_property): Do not prematurely return nil.
7275
669fa600
SM
72762004-05-19 Jim Blandy <jimb@redhat.com>
7277
7278 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 7279 beginning and end of symbols.
4d12067c 7280
669fa600
SM
7281 * regex.c (enum syntaxcode): Add Ssymbol.
7282 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
7283 (re_opcode_t): New opcodes `symbeg' and `symend'.
7284 (print_partial_compiled_pattern): Print the new opcodes properly.
7285 (regex_compile): Parse the new operators.
ce50a847 7286 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
7287 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
7288 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
7289 (re_match_2_internal): Match symbeg and symend.
7290
7291 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
7292
0d8c2e5c
KS
72932004-05-19 Kim F. Storm <storm@cua.dk>
7294
7295 * .gdbinit (xsymbol): Fix last change.
7296
669fa600
SM
72972004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
7298
7299 * .gdbinit (xprintstr): New fun.
7300 (xstring, xprintsym): Use it.
7301
7302 * w32proc.c (create_child): Use INTMASK.
7303
7304 * alloc.c (Fgarbage_collect): Do all the marking before flushing
7305 unmarked elements of the undo list.
7306
9a6a4c40
DP
73072004-05-18 David Ponce <david@dponce.com>
7308
7309 * print.c (print): Reset print_depth before to call print_object.
7310
f3c4ec74
JR
73112004-05-18 Jason Rumney <jasonr@gnu.org>
7312
7313 * w32console.c: Prefix RIF functions with w32con_ to avoid
7314 namespace clash with functions in term.c and w32term.c.
7315
7316 * w32menu.c (add_menu_item, w32_menu_display_help)
7317 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
7318
0d8c2e5c 7319 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 7320
6be49c3a
EZ
73212004-05-18 Eli Zaretskii <eliz@gnu.org>
7322
4d0b9a0a
EZ
7323 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
7324
6be49c3a
EZ
7325 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
7326 with make_number.
7327 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
7328 with XINT.
7329
0bc90bba
KS
73302004-05-18 Kim F. Storm <storm@cua.dk>
7331
89d19988
KS
7332 * blockinput.h (INPUT_BLOCKED_P): New macros.
7333
7334 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
7335 (Ftop_level): Unblock input if blocked.
7336
0bc90bba
KS
7337 * buffer.h (GET_OVERLAYS_AT): New macro.
7338 * msdos.c (IT_note_mouse_highlight): Use it.
7339 * textprop.c (get_char_property_and_overlay): Use it.
7340 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
7341 * xfaces.c (face_at_buffer_position): Use it.
7342
7343 * print.c (print_object): Increase buf size.
7344
653bd0f6
JR
73452004-05-17 Jason Rumney <jasonr@gnu.org>
7346
7347 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
7348 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
7349 Lisp_Object using i member.
7350 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
7351 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
7352 consistently.
7353
7354 * w32proc.c (create_child): Use make_number instead of masking pid.
7355
7356 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
7357 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
7358 Use EQ to compare Lisp_Objects.
7359 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
7360
7361 * w32term.c (w32_num_mouse_buttons): Rename from
7362 Vw32_num_mouse_buttons and make it an int.
7363
7364 * w32.c (init_environment): Use it.
7365
7366 * w32fns.c (w32_wnd_proc): Likewise.
7367
7368 * w32proc.c (w32_pipe_read_delay): Rename from
7369 Vw32_pipe_read_delay and make it an int.
7370
7371 * w32.c (_sys_read_ahead): Use it.
7372
7373 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
7374
7375 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
7376
7377 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
7378 (key_event): Don't mix Lisp_Object and int.
7379
7380 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
7381
7382 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
7383 modifiers in language change event.
7384
54b53ba7
KS
73852004-05-17 Kim F. Storm <storm@cua.dk>
7386
7387 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
7388 Such objects may be freed markers which still exist on an undo list.
7389
6e86a75d
JB
73902004-05-16 Juanma Barranquero <lektu@terra.es>
7391
7392 * data.c (Fset_default): Make argument names match their use in
7393 docstring.
7394
fc80da24
AS
73952004-05-15 Andreas Schwab <schwab@suse.de>
7396
7397 * emacs.c (gdb_array_mark_flag): Define.
7398 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
7399
c1380aa6
EZ
74002004-05-15 Eli Zaretskii <eliz@gnu.org>
7401
7402 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
7403 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
7404 defined for the MS-DOS build.
7405
89458937
SM
74062004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7407
7408 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
7409
08020f9a
KH
74102004-05-14 Kenichi Handa <handa@m17n.org>
7411
7412 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
7413
a433994a
ST
74142004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7415
7416 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
7417 section to frame.c section.
7418 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 7419 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 7420
a433994a 7421 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 7422
a433994a 7423 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 7424
a433994a
ST
7425 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
7426 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
7427 (XTread_socket): Fix int/Lisp_Object mixup.
7428 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 7429
a433994a
ST
7430 * macterm.h (struct frame, struct face, struct image)
7431 (display_x_get_resource, Fx_display_color_p)
89458937
SM
7432 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
7433 Add prototypes.
a433994a 7434
b51a51b9
KS
74352004-05-14 Kim F. Storm <storm@cua.dk>
7436
7437 * process.c (wait_reading_process_input): Make reentrant.
7438 Make Available and Connecting non-static. Save and restore value
7439 of waiting_for_user_input_p.
7440
2bde1dd8
KS
74412004-05-13 Kim F. Storm <storm@cua.dk>
7442
7443 * keyboard.c (mark_kboards): Don't mark x and y members
7444 that are overloaded in selection request events.
7445
a267ab4d
SM
74462004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7447
7448 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
7449
eb15ce9e
GM
74502004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
7451
7452 * window.c (Fdisplay_buffer, Fsplit_window)
7453 (split-height-threshold): Doc fix.
7454
7fc92635
JB
74552004-05-13 Juanma Barranquero <lektu@terra.es>
7456
7457 * xfaces.c (Ftty_supports_face_attributes_p)
7458 (Finternal_copy_lisp_face): Fix typo in docstring.
7459 (Finternal_get_lisp_face_attribute): Fix docstring.
7460
1ec2a572
JD
74612004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7462
7463 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
7464
ae9292e0
ST
74652004-05-11 Steven Tamm <steventamm@mac.com>
7466
7467 * macfns.c (Fx_create_frame): Default to using tool-bar by
7468 setting tool-bar-lines to 1 in default-frame-alist.
7469
74702004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
7471
7472 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
7473 (xpm_get_color_table_v, xpm_make_color_table_h)
7474 (xpm_put_color_table_h, xpm_get_color_table_h)
7475 (xpm_str_to_color_key, xpm_load_image, xpm_load)
7476 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 7477 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 7478
fe97e8df
ST
74792004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7480
a267ab4d 7481 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
7482 instead of FRAME_X_P
7483
b47e779e
KS
74842004-05-11 Kim F. Storm <storm@cua.dk>
7485
7486 * process.c (read_process_output): Grow decoding_buf when needed;
7487 this could cause a crash in allocate_string and compact_small_strings.
7488
cdc9b845
EZ
74892004-04-29 Jim Blandy <jimb@redhat.com>
7490
7491 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
7492 against proper opcode.
7493
aa7094ba
JB
74942004-05-10 Juanma Barranquero <lektu@terra.es>
7495
7496 * process.c (Fstart_process): Fix docstring.
7497
7498 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
7499 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
7500 (Fsplit_char, Fchar_charset): Make argument names match their use
7501 in docstring.
7502
e109331a
RS
75032004-05-10 Richard M. Stallman <rms@gnu.org>
7504
7505 * print.c (print_preprocess): Use being_printed, loop_count and
7506 halftail to detect overdeep nesting and cyclic cdr chains.
7507
9a28b921
AS
75082004-05-10 Andreas Schwab <schwab@suse.de>
7509
78819ebb 7510 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
7511
7512 * fileio.c (Frename_file): Remove extra argument in call to
7513 Fmake_symbolic_link.
7514
e2c02c1a
KS
75152004-05-10 Kim F. Storm <storm@cua.dk>
7516
7517 * xdisp.c (calc_line_height_property): Use string position when
7518 object is a string.
7519
cfe9d13e
KH
75202004-05-10 Kenichi Handa <handa@m17n.org>
7521
a57e8159
KH
7522 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
7523 inhibit-modification-hooks to t temporarily before calling
7524 Ferase_buffer.
7525
7526 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
7527 inhibit-modification-hooks to t temporarily before calling
7528 Ferase_buffer.
7529
7530 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
7531 inhibit-modification-hooks to t temporarily before calling
7532 Ferase_buffer.
7533
cfe9d13e
KH
7534 * fns.c (count_combining): Delete it.
7535 (concat): Don't check combining bytes.
7536
ceb96489
JR
75372004-05-09 Jason Rumney <jasonr@gnu.org>
7538
7539 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
7540 (globals_of_w32fns): Set it.
7541
b6189c3b 75422004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
7543
7544 * data.c (Fquo): Simplify.
7545
28712a21
JB
75462004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
7547
7548 * data.c (Fquo): If any argument is float, do the computation in
7549 floating point.
7550
0f0af7a8
JB
75512004-05-08 Juanma Barranquero <lektu@terra.es>
7552
88214ef6
JB
7553 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
7554 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
7555 Fix spelling of Emacs on docstring.
7556 (Fset_process_coding_system, Fprocess_coding_system)
7557 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
7558 Make argument names match their use in docstring.
7559 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
7560 Fix docstring.
7561
0f0af7a8
JB
7562 * editfns.c (Finsert_buffer_substring): Make argument names match their
7563 use in docstring.
7564
7565 * syntax.c (Fmodify_syntax_entry): Fix docstring.
7566
2a316a84
ST
75672004-05-07 Steven Tamm <steventamm@mac.com>
7568
7569 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
7570 around call to ReceiveEvent to avoid certain crashes.
7571
75722004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 7573
2a316a84
ST
7574 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
7575 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
7576 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
7577 Save/restore the current graphics port and device handle when
7578 drawing into an offscreen graphics world.
7579
7580 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
7581 (gif_load): Likewise.
7582
ab80314b
JB
75832004-05-07 Juanma Barranquero <lektu@terra.es>
7584
7585 * window.c (Fset_window_buffer): Fix docstring.
7586
70646bb5
TTN
75872004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
7588
7589 * emacs.c (main) [VMS]: Fix var ref.
7590
b6189c3b 75912004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
7592
7593 * data.c (Fsetq_default): Fix docstring.
7594
279d3293
JR
75952004-05-06 Jason Rumney <jasonr@gnu.org>
7596
7597 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
7598 to avoid name clash.
7599
f72b5416
JD
76002004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7601
7602 * fileio.c (barf_or_query_if_file_exists): Use lstat.
7603 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 7604 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 7605
6ab66799
KS
76062004-05-04 Kim F. Storm <storm@cua.dk>
7607
7608 * xdisp.c (Qtotal): New var.
7609 (syms_of_xdisp): Intern and staticpro it.
7610 (calc_line_height_property): New arg total. Set it if
7611 line-spacing property has format (total . VALUE).
7612 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
7613 Handle total line-spacing property.
7614
ab2d724b
JD
76152004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7616
7617 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
7618 "under" scroll bar when size/position changes.
7619
238add5e
JR
76202004-05-03 Jason Rumney <jasonr@gnu.org>
7621
7622 * makefile.nt: Remove.
7623
1644f4e4
EZ
76242004-05-02 Eli Zaretskii <eliz@gnu.org>
7625
a267ab4d
SM
7626 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
7627 Avoid compiler warnings.
05fdbeb8 7628
1644f4e4
EZ
7629 * Makefile.in (region-cache.o): Depend on config.h.
7630
b6189c3b 76312004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
7632
7633 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
7634 with continuation lines, too.
7635
2b98b088
TTN
76362004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
7637
7638 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
7639
d9bf7950
SM
76402004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
7641
7642 * xdisp.c (calc_line_height_property): YAILOM (yet another
7643 int/Lisp_Object mixup).
7644
affa509c
EZ
76452004-05-01 Eli Zaretskii <eliz@gnu.org>
7646
7647 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
7648 undo bad effect of pack(4) in some versions of system headers.
7649
07c07cfe
JR
76502004-05-01 Jason Rumney <jasonr@gnu.org>
7651
7652 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
7653
e71caa4e
KS
76542004-04-30 Kim F. Storm <storm@cua.dk>
7655
7656 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 7657 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
7658
7659 * dispextern.h (struct it): Remove member use_default_face.
7660 Add members override_ascent, override_descent, override_boff.
7661
7662 * xdisp.c (init_iterator): Handle line-spacing float value.
7663 Initialize override_ascent member.
7664 (append_space_for_newline): Reset override_ascent.
7665 Remove use_default_face.
7666 (calc_line_height_property): New function to calculate value of
7667 line-height and line-spacing properties. Look at overlays, too.
7668 Set override_ascent, override_descent, override_boff members when
7669 using another face than the current face. Float values are now
7670 relative to the frame default font, by default; accept a cons
7671 of ratio and face name to specify value relative to a specific face.
7672 (x_produce_glyphs): Use calc_line_height_property.
7673 Use override_ascent etc. when set to handle different face heights.
7674 A negative line-spacing property value is interpreted as a total
7675 line height, rather than inter-line spacing.
7676 (note_mouse_highlight): Allocate room for 40 overlays initially.
7677
0fddae66
SM
76782004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7679
7680 * data.c (Fsubr_name): New fun.
7681 (syms_of_data): Defsubr it.
7682
712d23dc
KS
76832004-04-29 Kim F. Storm <storm@cua.dk>
7684
7685 * xdisp.c (null_glyph_slice): New var.
7686 (append_glyph, append_composite_glyph, append_stretch_glyph):
7687 Use it to initialize glyph slice.
7688
033ad8c6
SM
76892004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
7690
7691 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
7692 (on_hot_spot_p): Make sure we always return a value.
7693 (Flookup_image_map): Remove unused var ix and iy.
7694 (note_mode_line_or_margin_highlight): Remove unused var `image'.
7695
93397360
EZ
76962004-04-27 Eli Zaretskii <eliz@gnu.org>
7697
7698 * msdos.c (init_environment): If one of the TMP... environment
7699 variables is set to a drive letter without a trailing slash,
7700 append a slash.
7701
0c54865e
EZ
77022004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
7703
7704 * editfns.c (lisp_time_argument): Provide externally.
7705
7706 * fileio.c (Fset_file_times): New function.
7707 (syms_of_fileio): Intern and staticpro it.
7708
d3b111bd
KS
77092004-04-27 Kim F. Storm <storm@cua.dk>
7710
07dc1231
KS
7711 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
7712 header line strings.
7713
360fe9d2
KS
7714 * dispextern.h (struct it): New member use_default_face.
7715
d3b111bd
KS
7716 * xdisp.c (Qline_height): New variable.
7717 (syms_of_xdisp): Intern and staticpro it.
7718 (append_space_for_newline): Partially undo 2004-04-25 change;
7719 add default_face_p arg, and restore callers.
7720 Clear it->use_default_face after use.
7721 (x_produce_glyphs): Set default font for ascii char if
7722 it->use_default_font is set. Change line-spacing property to set
7723 just extra line spacing. Handle new line-height property.
7724
0448588b
AS
77252004-04-26 Andreas Schwab <schwab@suse.de>
7726
7727 * print.c (print_object): Print non-ascii characters in bool
7728 vector representation as octal escapes.
7729
7730 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
7731 * print.c (print_object): Use it instead of BITS_PER_CHAR for
7732 bool vectors.
7733 * lread.c (read1): Likewise.
7734 * alloc.c (Fmake_bool_vector): Likewise.
7735 * data.c (Faref, Faset): Likewise.
7736 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
7737 (mapcar1): Likewise.
d3b111bd 7738
536d6baa
ST
77392004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7740
7e26f91b 7741 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 7742
ae11577a
MB
77432004-04-26 Miles Bader <miles@gnu.org>
7744
7745 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
7746
e198ba87
JB
77472004-04-26 Juanma Barranquero <lektu@terra.es>
7748
7749 * buffer.c (Fpop_to_buffer): Fix docstring.
7750
f3d5f92d 77512004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 7752
f3d5f92d
ST
7753 * lread.c (init_lread): Don't display missing lisp directory
7754 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 7755 may be built without correct installation path.
f3d5f92d 7756
03e35edc
KS
77572004-04-25 Kim F. Storm <storm@cua.dk>
7758
9ff3aa31
KS
7759 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7760
7761 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7762
03e35edc
KS
7763 * xdisp.c (append_space_for_newline): Rename from append_space.
7764 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
7765 (x_produce_glyphs): Handle line-spacing property on newline char.
7766 If value is t, adjust ascent and descent to fit current row height.
7767 If value is an integer or float, set extra_line_spacing to integer
7768 value, or to float value x current line height.
7769
f24814e0
KH
77702004-04-23 Kenichi Handa <handa@m17n.org>
7771
7772 * fontset.c (Finternal_char_font): If POSITION is nil, return
7773 font for displaying CH with the default face.
7774
d814862a
JB
77752004-04-23 Juanma Barranquero <lektu@terra.es>
7776
7777 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
7778
063a45c5
SM
77792004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7780
7781 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
7782 Don't make assumptions about the relative place of i and val.
7783 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
7784
ae7ab2d3
KS
77852004-04-21 Kim F. Storm <storm@cua.dk>
7786
7787 * dispextern.h (struct glyph_slice): New struct.
7788 (struct glyph): New member slice.
7789 (GLYPH_SLICE_EQUAL_P): New macro.
7790 (GLYPH_EQUAL_P): Use it.
7791 (struct glyph_string): New member slice.
7792 (struct it_slice): New struct.
7793 (struct it): New member slice, add member to stack too.
7794 New member constrain_row_ascent_descent_p.
7795 (image_ascent): Add prototype.
7796
7797 * dispnew.c (buffer_posn_from_coords): Return full image width
7798 and height even for image slices (posn is relative to full image).
7799 (marginal_area_string): Adjust x0,y0 for image slice.
7800
7801 * image.c (image_ascent): Add slice arg; calculate ascent for
7802 image slice (or full image).
7803
7804 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
7805 (syms_of_keyboard): Defsubr them.
7806
7807 * lisp.h (pos_visible_p): Fix prototype.
7808
c62aec78 7809 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
7810 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7811 (x_draw_image_foreground, x_draw_image_relief)
7812 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7813 Draw sliced images.
7814
7815 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
7816 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7817 (x_draw_image_foreground, x_draw_image_relief)
7818 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
7819 Draw sliced images.
7820
7821 * w32term.h (image_ascent): Remove prototype.
7822
7823 * window.c (Fpos_visible_in_window_p): Return pixel position if
7824 PARTIALLY arg is non-nil. Simplify. Doc fix.
7825 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
7826 to return/set vscroll in pixels.
7827
7828 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
7829
7830 * xdisp.c (Qslice): New variable.
7831 (syms_of_xdisp): Intern and staticpro it.
7832 (pos_visible_p): Return pixel position in new x and y args.
7833 (init_iterator): Reset it->slice info.
7834 (handle_display_prop): Parse (slice ...) property.
7835 (push_it, pop_it): Save/restore slice info.
7836 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
7837 force repositioning of tall row if window is vscrolled, as that
7838 would reset vscroll.
7839 (append_space): Set it->constrain_row_ascent_descent_p to avoid
7840 increasing row height if row is non-empty.
7841 (fill_image_glyph_string): Copy slice info.
7842 (take_vertical_position_into_account): Simplify.
7843 (produce_image_glyph): Handle iterator slice info, setup glyph
7844 slice info. Do not force minimum line height.
7845 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
7846 do not increase height (ascent/descent) of non-empty row when
7847 adding normal character glyph; instead reduce glyph ascent/descent
7848 appropriately; if row is higher than current glyph, adjust glyph
7849 descent/ascent to reposition glyph within the existing row.
7850 Likewise, when char is newline, only set ascent/descent if row is
7851 currently empty.
7852 (note_mouse_highlight): Handle hotspots with sliced image.
7853
7854 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
7855 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7856 (x_draw_image_foreground, x_draw_image_relief)
7857 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7858 Draw sliced images.
7859
7860 * xterm.h (image_ascent): Remove prototype.
7861
d58f8753
SM
78622004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7863
7864 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
7865
4ce2719d
JPW
78662004-04-20 John Paul Wallington <jpw@gnu.org>
7867
7868 * fns.c (Fassoc, Feql): Fix indentation.
7869
d58f8753 7870 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 7871
95f8c3b9
JPW
78722004-04-19 John Paul Wallington <jpw@gnu.org>
7873
7874 * fns.c (Feql): New function.
d58f8753 7875 (syms_of_fns): Defsubr it.
95f8c3b9 7876
b7e85537
JR
78772004-04-18 Jason Rumney <jasonr@gnu.org>
7878
7879 * w32select.c (Fw32_set_clipboard_data): Get sequence number
7880 after closing the clipboard.
7881
5a72efd4
LT
78822004-04-16 Luc Teirlinck <teirllm@auburn.edu>
7883
7884 * buffer.c (Fbuffer_base_buffer): Doc fix.
7885
20dc8583
KS
78862004-04-17 Kim F. Storm <storm@cua.dk>
7887
60962ec4
KS
7888 * keymap.c (Fkey_description): Add optional PREFIX arg.
7889 Combine prefix with KEYS to make up the full key sequence to describe.
7890 Correlate meta_prefix_char and following (simple) key to describe
7891 as meta modifier. All callers changed.
7892 (describe_map): Rename arg `keys' to `prefix'. Remove local
7893 `elt_prefix' var. Use Fkey_description with prefix instead of
7894 elt_prefix combined with Fsingle_key_description.
7895 (describe_vector): Declare static. Replace arg `elt_prefix' with
7896 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 7897 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
7898 Fsingle_key_description.
7899
7900 * keymap.h (Fkey_description): Fix prototype.
7901 (describe_vector): Remove prototype.
7902
409368b9
KS
7903 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
7904
20dc8583
KS
7905 * image.c (PNG_BG_COLOR_SHIFT): Remove.
7906 (png_load): Fix calculation of transparent background color on X
7907 and W32 platforms.
7908
75c5501b
JB
79092004-04-16 Juanma Barranquero <lektu@terra.es>
7910
7911 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
7912 not too large before computing how much to scroll.
7913
da879ae8
SM
79142004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
7915
7916 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
7917
d01ca4a8
LT
79182004-04-14 Luc Teirlinck <teirllm@auburn.edu>
7919
7920 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
7921 Add hyperlink to Elisp manual to the docstring.
7922
572943b3
SM
79232004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
7924
7925 * callint.c (fix_command): Use XDCR.
7926
5e30a0fb
NR
79272004-04-14 Nick Roberts <nick@nick.uklinux.net>
7928
7929 * window.c (Fget_lru_window): Doc fix.
7930
a27ddfaf
KS
79312004-04-14 Kim F. Storm <storm@cua.dk>
7932
7933 * editfns.c (Fformat): Fix allocation size of precision array.
7934
7935 * dispnew.c (update_window): Only set changed_p if
7936 scrolling_window actually did scroll.
7937 (scrolling_window): Only return 1 if we actually did scroll.
7938
7939 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
7940 height to glyph height when cursor row is not fully visible.
7941 (make_cursor_line_fully_visible): Add FORCE_P arg to return
7942 failure in case row is higher than window. Callers changed.
7943 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
7944 Try to scroll partially visible, higher-than-window cursor row.
7945 (redisplay_window): Always try to scroll partially visible,
7946 higher-than-window cursor row - both initially and again with
7947 centering_position = 0.
7948 Clear desired matrix before retrying with centering_position = 0.
7949
da879ae8
SM
79502004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7951
7952 * syntax.c (scan_lists): Simplify backward string scan.
7953 Fix off-by-one boundary check for string and comment fences.
7954
5fc16e8e
SM
79552004-04-13 Joe Buehler <jbuehler@hekimian.com>
7956
7957 * sheap.c, unexcw.c: New files.
7958
c9aac8e6
LT
79592004-04-12 Luc Teirlinck <teirllm@auburn.edu>
7960
7961 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
7962 base buffer has been killed. Correct the error message if the
7963 base buffer does not exist.
7964
1e88a355
SM
79652004-04-12 Joe Buehler <jbuehler@hekimian.com>
7966
7967 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
7968 Cygwin itself. Add support for Xaw3d scrollbars.
7969
7970 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
7971
7972 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
7973
7974 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
7975 before Cygwin unexec.
7976
7977 * Makefile.in: Link changes for Cygwin unexec() support.
7978
8dbff9a0
AS
79792004-04-12 Andreas Schwab <schwab@suse.de>
7980
7981 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
7982
54dffe35
LT
79832004-04-11 Luc Teirlinck <teirllm@auburn.edu>
7984
7985 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
7986 IGNORE argument equals NAME. Doc fix.
7987
99a72bdf
MY
79882004-04-11 Masatake YAMATO <jet@gyve.org>
7989
1e88a355 7990 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
7991 empty if they are backwards.
7992
40899d7b
SM
79932004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7994
7995 * xfaces.c (face_color_supported_p): Fix compilation without X11.
7996
f8f853de
SM
79972004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
7998
7999 * doc.c (Fsnarf_documentation): Ignore new file name entries.
8000
c953fe1b
KS
80012004-04-06 Kim F. Storm <storm@cua.dk>
8002
661e85c1
KS
8003 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8004 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
8005
8006 * w32term.c (w32_read_socket): Set mouse_face_hidden after
8007 clearing highlight.
8008
8009 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8010
8011 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
8012 clearing highlight.
8013
c953fe1b
KS
8014 * indent.c (vmotion): Do not reserve one column for continuation
8015 marks on window frames.
8016
c1994268
EZ
80172004-04-04 Eli Zaretskii <eliz@gnu.org>
8018
8019 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
8020 from GCC.
8021
9f691b0d
SM
80222004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8023
8024 * .gdbinit-union: Remove.
8025
8026 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
8027 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
8028 ($nonvalbits): Remove.
8029 ($valmask): Set it by calling xreload to avoid redundancy.
8030
8031 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
8032 (gdb_emacs_intbits): Remove.
8033
7a8560d7
JD
80342004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8035
9f691b0d 8036 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 8037
3c8111fc
KH
80382004-03-30 Kenichi Handa <handa@m17n.org>
8039
8040 * editfns.c (Fformat): Fix initialization of the array info.
8041
48a0bce4
KS
80422004-03-30 Kim F. Storm <storm@cua.dk>
8043
8044 * xterm.c (x_mouse_click_focus_ignore_position): New var.
8045 (syms_of_xterm): DEFVAR_BOOL it.
8046 (ignore_next_mouse_click_timeout): New var.
8047 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
8048 Use it to filter mouse clicks following focus event.
8049
1cd0066c
KS
80502004-03-29 David Ponce <david@dponce.com>
8051
8052 * callint.c (Fcall_interactively): Fix last change.
8053
adb3b353
SM
80542004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8055
8056 * eval.c (Fcommandp): Simplify.
8057
8058 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
8059 Extend to handle all kinds of functions.
8060
8061 * lisp.h (Finteractive_form): Declare.
8062
8063 * callint.c (Fcall_interactively): Use it.
8064
6fc4c9c9
KS
80652004-03-26 Kim F. Storm <storm@cua.dk>
8066
8067 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
8068 to catch errors in calc_pixel_width_or_height during redisplay.
8069
abdb9b83
MY
80702004-03-26 Masatake YAMATO <jet@gyve.org>
8071
b17856dd 8072 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 8073
b17856dd 8074 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 8075
b17856dd 8076 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 8077
b17856dd 8078 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 8079
e8a84b6c
JD
80802004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8081
b17856dd 8082 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 8083
36a3fd05
RS
80842004-03-19 Richard M. Stallman <rms@gnu.org>
8085
8086 * s/sol2-6.h: Delete previous change.
8087
ab24c127
KS
80882004-03-19 Kim F. Storm <storm@cua.dk>
8089
8090 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
8091 to_charpos corresponds to newline in right fringe. Use local
8092 BUFFER_POS_REACHED_P macro.
8093
992126de
JD
80942004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8095
8096 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
8097 to compile on non-window system.
8098
45dbfc84
KS
80992004-03-19 Kim F. Storm <storm@cua.dk>
8100
8101 * dispextern.h (calc_pixel_width_or_height): Add prototype.
8102
8103 * image.c (Qcenter): Move to xdisp.c.
8104
8105 * xdisp.c (Qcenter): Declare here.
adb3b353 8106 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
8107 (handle_single_display_prop): Allow space display property on all
8108 platforms.
8109 (display_mode_line): Set mode_line_p before displaying line.
8110 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
8111 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 8112 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
8113 width/height. Return width or height for image specs.
8114 (produce_stretch_glyph): Improve handling of :align-to. Is now
8115 relative to left of text area by default, but other base offsets
8116 can be specified -- also for text lines.
8117
8118 * term.c (produce_glyphs): Handle IT_STRETCH.
8119 (produce_stretch_glyph): New function to handle space width and
8120 align-to display properties on non-window systems.
8121
37264101
SM
81222004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8123
8124 * fileio.c (Fread_file_name): Set completion-ignore-case for
8125 case-insensitive systems.
8126
73bc43da
MY
81272004-03-14 Masatake YAMATO <jet@gyve.org>
8128
8129 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
8130 when keymap and cursor are setup.
8131
d5fb8dab 81322004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 8133
b17856dd 8134 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 8135
e4b1b5ab
KS
81362004-03-14 Kim F. Storm <storm@cua.dk>
8137
8138 * dispextern.h (x_find_image_file): Add prototype.
8139
8140 * image.c (x_find_image_file): Make extern.
8141
8142 * xfns.c (x_find_image_file): Remove prototype.
8143
a6eeaa81 81442004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 8145
37264101 8146 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 8147
37264101 8148 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 8149
e69cfac2
RS
81502004-03-12 Richard M. Stallman <rms@gnu.org>
8151
8152 * fns.c (internal_equal): New arg PROPS controls comparing
8153 text properties. All callers changed.
8154 (Fequal_including_properties): New function.
8155 (syms_of_fns): defsubr it.
8156
45034953
KS
81572004-03-12 Kim F. Storm <storm@cua.dk>
8158
8159 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 8160
45034953
KS
8161 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
8162 (image_background, image_background_transparent): Fix prototypes.
8163
37264101 8164 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
8165
8166 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
8167 (x_query_font, x_find_ccl_program, x_set_window_size)
8168 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8169 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8170 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
8171
8172 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
8173 (x_query_font, x_find_ccl_program, x_set_window_size)
8174 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8175 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8176 (mac_draw_line_to_pixmap): Add prototypes.
8177
81782004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8179
8180 * macterm.c (XTread_socket): Fix mouse click on tool bar.
8181
a12d3d87
KS
81822004-03-11 Kim F. Storm <storm@cua.dk>
8183
d3ab1cf1
KS
8184 * dispextern.h: Move image related prototypes from xfns.c section
8185 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
8186 HAVE_X_WINDOWS.
37264101 8187
37de9f51 8188 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 8189 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
8190 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
8191 (GTK_OBJ) [USE_GTK]: New declaration.
8192 (obj): Add $(GTK_OBJ) to list.
8193
d5fb8dab 81942004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 8195
7e26f91b 8196 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
8197
8198 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 8199 defined in image.c.
5243c06a 8200
c0f97789
KS
82012004-03-11 Kim F. Storm <storm@cua.dk>
8202
8203 The following changes consolidates the identical/similar image
8204 support code previously found in xfns.c, w32fns.c, and macfns.c
8205 into a new file image.c.
8206
8207 * makefile.w32-in (OBJ1): Add image.o.
8208 ($(BLD)/image.$(O)): Add dependencies.
8209
8210 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
8211 (image.o): Add dependencies.
37264101 8212
c0f97789
KS
8213 * image.c: New file with consolidated image support code.
8214 (COLOR_TABLE_SUPPORT): New define to control whether
8215 color table support is available (X only).
8216 (Bitmap_Record): Common name for x_bitmap_record,
8217 w32_bitmap_record, and mac_bitmap_record.
8218 (XImagePtr): Common name for pointer to XImage or equivalent.
8219 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
8220 to XImagePtr on X+MAC, and to HDC on W32.
8221 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
8222 (NO_PIXMAP): Common name for "None" or equivalent.
8223 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
8224 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
8225 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
8226 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
8227 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
8228 (XDrawLine): Define on MAC for code sharing.
8229 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
8230 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
8231 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8232 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8233 (x_reference_bitmap, x_create_bitmap_from_data)
8234 (x_create_bitmap_from_file, x_destroy_bitmap)
8235 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8236 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8237 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8238 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8239 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8240 (define_image_type, lookup_image_type, valid_image_p)
8241 (image_error, enum image_value_type, struct image_keyword)
8242 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8243 (make_image, free_image, prepare_image_for_display, image_ascent)
8244 (four_corners_best, image_background, image_background_transparent)
8245 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8246 (make_image_cache, free_image_cache, clear_image_cache)
8247 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8248 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8249 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8250 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8251 (init_image_func_pointer, image_load_quartz2d)
8252 (struct ct_color, init_color_table, free_color_table)
8253 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8254 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8255 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8256 (x_disable_image, x_build_heuristic_mask)
8257 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8258 (TIFF support, GIF support, Ghostscript support): Consolidate image
8259 code from xfns.c, w32fns.c, and macfns.c.
8260 (syms_of_image): Consolidate image related symbol setup here.
8261 (init_image): Consolidate image related initializations here.
37264101 8262
c0f97789
KS
8263 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
8264 and init_image. Remove call to init_xfns.
8265
37264101
SM
8266 * macterm.h (struct mac_bitmap_record): Add file member.
8267 Not currently used, but simplifies code sharing.
c0f97789
KS
8268
8269 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8270 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8271 (x_reference_bitmap, x_create_bitmap_from_data)
8272 (x_create_bitmap_from_file, x_destroy_bitmap)
8273 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8274 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8275 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8276 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8277 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8278 (define_image_type, lookup_image_type, valid_image_p)
8279 (image_error, enum image_value_type, struct image_keyword)
8280 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8281 (make_image, free_image, prepare_image_for_display, image_ascent)
8282 (four_corners_best, image_background, image_background_transparent)
8283 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8284 (make_image_cache, free_image_cache, clear_image_cache)
8285 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8286 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8287 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8288 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8289 (init_image_func_pointer, image_load_quartz2d)
8290 (struct ct_color, init_color_table, free_color_table)
8291 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8292 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8293 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8294 (x_disable_image, x_build_heuristic_mask)
8295 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8296 (TIFF support, GIF support, Ghostscript support): Merge with image
8297 code from xfns.c and macfns.c into image.c.
8298 (syms_of_xfns): Move image related symbols to image.c.
8299 (init_external_image_libraries, init_xfns): Remove; initialization
8300 moved to init_image in image.c.
8301
8302 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8303 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8304 (x_reference_bitmap, x_create_bitmap_from_data)
8305 (x_create_bitmap_from_file, x_destroy_bitmap)
8306 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8307 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8308 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8309 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8310 (define_image_type, lookup_image_type, valid_image_p)
8311 (image_error, enum image_value_type, struct image_keyword)
8312 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8313 (make_image, free_image, prepare_image_for_display, image_ascent)
8314 (four_corners_best, image_background, image_background_transparent)
8315 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8316 (make_image_cache, free_image_cache, clear_image_cache)
8317 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8318 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8319 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8320 (struct ct_color, init_color_table, free_color_table)
8321 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8322 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8323 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8324 (x_disable_image, x_build_heuristic_mask)
8325 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8326 (TIFF support, GIF support, Ghostscript support): Merge with image
8327 code from xfns.c and macfns.c into image.c.
8328 (syms_of_xfns): Move image related symbols to image.c.
8329 (init_external_image_libraries, init_xfns): Remove; initialization
8330 moved to init_image in image.c.
8331
8332 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8333 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8334 (x_reference_bitmap, x_create_bitmap_from_data)
8335 (x_create_bitmap_from_file, x_destroy_bitmap)
8336 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8337 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8338 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8339 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8340 (define_image_type, lookup_image_type, valid_image_p)
8341 (image_error, enum image_value_type, struct image_keyword)
8342 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8343 (make_image, free_image, prepare_image_for_display, image_ascent)
8344 (four_corners_best, image_background, image_background_transparent)
8345 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8346 (make_image_cache, free_image_cache, clear_image_cache)
8347 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8348 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8349 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8350 (struct ct_color, init_color_table, free_color_table)
8351 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8352 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8353 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8354 (x_disable_image, x_build_heuristic_mask)
8355 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8356 (TIFF support, GIF support, Ghostscript support): Merge with
8357 w32fns.c and macfns.c image code into image.c.
8358 (syms_of_xfns): Move image related symbols to image.c.
8359 (init_xfns): Remove; initialization moved to init_image in image.c.
8360
8361 * lisp.h (syms_of_image, init_image): Add protoypes.
8362 (init_xfns): Remove prototype.
8363
8364 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8365 (x_reference_bitmap, x_create_bitmap_from_data)
8366 (x_create_bitmap_from_file, x_destroy_bitmap)
8367 (x_create_bitmap_mask): Move prototypes from dispextern.h.
8368 (gamma_correct) [MAC_OS]: Add prototype.
8369
8370 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8371 (x_reference_bitmap, x_create_bitmap_from_data)
8372 (x_create_bitmap_from_file, x_destroy_bitmap)
8373 (x_create_bitmap_mask): Move prototypes to dispextern.h.
8374
6eced09c
KH
83752004-03-09 Kenichi Handa <handa@etlken2>
8376
8377 * coding.c (decode_coding_emacs_mule): Handle insufficent source
8378 correctly.
8379
9a7e95f3
RS
83802004-03-04 Richard M. Stallman <rms@gnu.org>
8381
04a6e76b
RS
8382 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
8383
9a7e95f3
RS
8384 * window.c (Fdisplay_buffer): Doc fix.
8385
8386 * buffer.c (Fpop_to_buffer): Doc fix.
8387
6c2488df
KS
83882004-03-03 Kim F. Storm <storm@cua.dk>
8389
8390 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
8391
d8d95bc7
SM
83922004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
8393
8394 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
8395
357589bf
RS
83962004-03-02 Richard M. Stallman <rms@gnu.org>
8397
8398 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
8399
409949b5
KH
84002004-03-02 Kenichi Handa <handa@m17n.org>
8401
8402 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
8403
d24bc50f
KS
84042004-03-02 Kim F. Storm <storm@cua.dk>
8405
8406 * window.h (struct window): New member overlay_arrow_bitmap.
8407
8408 * window.c (make_window): Initialize overlay_arrow_bitmap.
8409
8410 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
8411 implement and integrate multiple overlay arrows with redisplay.
8412 (syms_of_xdisp): DEFVAR_LISP and initialize it.
8413 (last_arrow_position, last_arrow_string): Replace by properties.
8414 (Qlast_arrow_position, Qlast_arrow_string)
8415 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
8416 (syms_of_xdisp): Intern and staticpro them.
8417 (overlay_arrow_string_or_property, update_overlay_arrows)
8418 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
8419 (overlay_arrow_at_row): New functions for multiple overlay arrows.
8420 (redisplay_internal): Use them instead of directly accessing
8421 Voverlay_arrow_position etc. for multiple overlay arrows.
8422 (mark_window_display_accurate): Use update_overlay_arrows.
8423 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
8424 (try_window_id): Use overlay_arrows_changed_p.
8425 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
8426 (display_line): Use overlay_arrow_at_row to check multiple
8427 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 8428 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
8429 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
8430 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
8431
8432 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
8433 (update_window_fringes): Remove unused code.
8434
c1464661
JR
84352004-03-01 Jason Rumney <jasonr@gnu.org>
8436
8437 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
8438
a64387ee
JB
84392004-03-01 Juanma Barranquero <lektu@terra.es>
8440
8441 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
8442
8443 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
8444
334faa08
JD
84452004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8446
8447 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
8448 how many colors can be displayed.
8449
bb62616f
KH
84502004-03-01 Kenichi Handa <handa@m17n.org>
8451
8452 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
8453 correctly.
8454
0fd16104
KS
84552004-02-28 Kim F. Storm <storm@cua.dk>
8456
8457 * dispnew.c (update_window): Update header line also if there are
8458 no other changes in window (move code after set_cursor label).
8459
8460 * lisp.h (mark_window_display_accurate): Remove prototype.
8461
8462 * window.c (window_loop, Fforce_window_update): Force mode line
8463 updates by setting prevent_redisplay_optimizations_p and
8464 update_mode_lines.
8465
b59dd9c8
JD
84662004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8467
d8d95bc7 8468 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
8469
8470 * xterm.c (x_calc_absolute_position): Call x_real_positions
8471 to get WM window sizes and use those to calculate position.
d8d95bc7 8472 (x_set_offset): Remove code commented out.
b59dd9c8 8473
a874691c
MB
84742004-02-28 Miles Bader <miles@gnu.org>
8475
8476 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
8477
3e0c6482
KS
84782004-02-28 Kim F. Storm <storm@cua.dk>
8479
8480 * keyboard.c (kbd_buffer_store_event_hold): New function to store
8481 an event into kbd fifo, but with special handling of quit event;
8482 a quit event is saved for later, and further events are discarded
8483 until the saved quit event has been processed.
8484 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
8485 (gen_help_event): Store help event in kbd fifo.
8486 (NREAD_INPUT_EVENTS): Remove.
8487 (read_avail_input): Adapt to new read_socket_hook interface.
8488 Remove allocation and initialization of local input_event buffer,
8489 as read_socket_hook stores events directly in fifo. Allocate and
8490 initialize local hold_quit event to handle postponed quit event
8491 (and store it if set by kbd_buffer_store_event_hold).
8492
8493 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
8494 (gen_help_event): Fix prototype.
8495
a64387ee 8496 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 8497 numcharsp args. Add hold_quit arg.
f63fd14e 8498 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8499 directly in fifo using kbd_buffer_store_event_hold.
8500
8501 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
8502 (read_input_waiting): Adapt to new read_socket_hook interface.
8503 Remove allocation and initialization of local input_event buffer,
8504 as read_socket_hook stores events directly in fifo. Allocate and
8505 initialize local hold_quit event to handle postponed quit event
8506 (and store it if set by kbd_buffer_store_event_hold).
8507
a64387ee 8508 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
8509
8510 * termhooks.h (read_socket_hook): Fix prototype.
8511
8512 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
8513 numcharsp args. Add hold_quit arg.
f63fd14e 8514 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8515 directly in fifo using kbd_buffer_store_event_hold.
8516
8517 * w32inevt.h (w32_console_mouse_position): Fix prototype.
8518
8519 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
8520 Add hold_quit arg. Rework to use just one, local, inev
8521 input_event. Store inev directly in fifo using
3e0c6482
KS
8522 kbd_buffer_store_event_hold. Update count in one place.
8523 Postpone call to gen_help_event until inev is stored; use new
8524 local do_help for this.
8525 Remove local emacs_event in handing of ButtonPress event; just use
8526 inev instead (so no reason to copy it later).
8527
8528 * xsmfns.c (x_session_check_input): Remove numchars arg.
8529
d8d95bc7
SM
8530 * xterm.c (x_focus_changed, x_detect_focus_change):
8531 Remove numchars arg. Always store event into bufp arg.
8532 Return nothing. Callers changed accordingly.
3e0c6482
KS
8533 (glyph_rect): Simplify.
8534 (STORE_KEYSYM_FOR_DEBUG): New macro.
8535 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
8536 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
8537 (current_hold_quit) [USE_GTK]: Add.
8538 (event_handler_gdk): Adapt to new handle_one_xevent.
8539 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
8540 Add hold_quit arg. Rework to use just one, local, inev
8541 input_event. Store inev directly in fifo using
3e0c6482
KS
8542 kbd_buffer_store_event_hold. Update count in one place.
8543 Postpone call to gen_help_event until inev is stored; use new
8544 local do_help for this.
8545 Simplify handling of keysyms (consolidate common code). Fix bug
8546 where count was updated with nchars instead of nbytes.
8547 Remove local emacs_event in handing of ButtonPress event; just use
8548 inev instead (so no reason to copy it later).
8549 Remove `out' label. Rename label `ret' to `done'; add various
8550 `goto done' to clarify code flow in deeply nested blocks.
8551 (x_dispatch_event): Simplify as handle_one_xevent now calls
8552 kbd_buffer_store_event itself.
f63fd14e 8553 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
8554 arg. Call handle_one_xevent with new arglist. Store event from
8555 x_session_check_input in fifo.
8556 [USE_GTK]: Setup current_hold_quit.
8557 Decrement handling_signal before unblocking input.
8558 (x_initialize) [USE_GTK]: Initialize current_count.
8559
8560 * xterm.h (x_session_check_input): Fix prototype.
8561
e3564461 85622004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 8563
d8d95bc7 8564 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 8565
e3564461
ST
8566 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
8567 macgui.h).
a64387ee 8568
e3564461 8569 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 8570
e3564461
ST
8571 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
8572 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
8573 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
8574 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
8575 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
8576 (Bitmap): Remove typedef.
8577 (Pixmap): Change int to GWorldPtr.
8578
d8d95bc7 8579 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 8580
d8d95bc7
SM
8581 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
8582 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
8583 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
8584 long representation.
8585 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
8586 colors used for masks.
8587 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 8588
e3564461
ST
8589 * macfns.c: Include sys/types.h and sys/stat.h.
8590 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
8591 Include QuickTime/QuickTime.h.
8592 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8593 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
8594 functions defined in macterm.c.
8595 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
8596 (ZPixmap): New #define for compatibility with xfns.c.
8597 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8598 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
8599 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
8600 New functions.
e3564461 8601 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
8602 (x_destroy_x_image, unwind_create_frame, x_disable_image)
8603 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
8604 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
8605 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
8606 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
8607 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
8608 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
8609 long mixup.
8610 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
8611 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
8612 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
8613 (x_set_cursor_type, Fxw_color_values, valid_image_p)
8614 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
8615 (x_alloc_image_color, clear_image_cache, lookup_image)
8616 (x_find_image_file, xbm_read_bitmap_file_data)
8617 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
8618 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
8619 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
8620 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
8621 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 8622 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
8623 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
8624 #if 0.
8625 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
8626 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
8627 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
8628 New functions (from xfns.c).
e3564461
ST
8629 (Fx_create_frame): Record unwind_create_frame.
8630 (Fxw_display_color_p): Use dpyinfo->color_p.
8631 (Fx_display_grayscale_p, Fx_display_planes): Don't use
8632 dpyinfo->n_cbits.
8633 (Fx_display_color_cells): Use dpyinfo->n_planes;
8634 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
8635 (Qheuristic, cross_disabled_images, emboss_matrix)
8636 (laplace_matrix): New variables (from xfns.c).
8637 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
8638 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
8639 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
8640 (image_background_transparent): New function (from xfns.c).
8641 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8642 (image_load_quicktime): Add declaration.
8643 [MAC_OSX] (image_load_quartz2d): Likewise.
8644 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
8645 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 8646 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
8647 (xbm_load_image_from_file, x_laplace_read_row)
8648 (x_laplace_write_row, pbm_read_file): Remove functions.
8649 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
8650 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
8651 (colors_in_color_table): Sync with xfns.c (although not used).
8652 (lookup_rgb_color): Don't lookup color table. Just do gamma
8653 correction.
8654 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
8655 (x_disable_image): New function (from xfns.c).
8656 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8657 (x_build_heuristic_mask): Sync with xfns.c.
8658 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8659 (HAVE_PBM): Remove #ifdef.
8660 (pbm_load): Sync with xfns.c. Set img->width and img->height
8661 before IMAGE_BACKGROUND.
d8d95bc7 8662 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
8663 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
8664 Don't enclose with #if HAVE_PNG.
8665 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
8666 symbol _CGImageCreateWithPNGDataProvider is defined.
8667 Otherwise use image_load_quicktime.
e3564461 8668 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
8669 [HAVE_PNG] (png_load): Sync with xfns.c.
8670 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8671 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
8672 HAVE_JPEG.
8673 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
8674 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
8675 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
8676 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
8677 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
8678 (tiff_image_p, tiff_load): Don't enclose declarations with #if
8679 HAVE_TIFF.
8680 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
8681 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
8682 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
8683 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
8684 New functions (from xfns.c).
e3564461 8685 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 8686 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
8687 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
8688 Don't enclose with #if HAVE_GIF.
8689 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
8690 animated gif. Otherwise use image_load_quicktime.
8691 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
8692 gif_DrawText to avoid conflict with QuickdrawText.h.
8693 [HAVE_GIF] (gif_load): Sync with xfns.c.
8694 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
8695 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
8696 Ghostscript is not supported yet).
8697 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
8698 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
8699 cross_disabled_images (from xfns.c). Remove #if 0 for supported
8700 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
8701 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
8702 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
8703 HAVE_PNG. Call EnterMovies to support animated gifs.
8704 Call init_image_func_pointer to bind a symbol
e3564461 8705 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 8706
d8d95bc7 8707 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
8708 (x_draw_bar_cursor): Sync declaration with xterm.c.
8709 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
8710 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
8711 graphics).
8712 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
8713 (mac_draw_line_to_pixmap, XCreatePixmap)
8714 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
8715 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
8716 New functions.
8717 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
8718 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
8719 Cast bits to char *.
e3564461
ST
8720 (reflect_byte): New function (from w32fns.c).
8721 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
8722 due to byte alignment.
d8d95bc7
SM
8723 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
8724 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
8725 (XSetForeground): Remove static (now used in macfns.c).
8726 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
8727 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
8728 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
8729 (x_draw_glyph_string_box, x_draw_image_foreground)
8730 (x_draw_image_foreground_1, x_draw_image_glyph_string)
8731 (x_draw_stretch_glyph_string, x_draw_glyph_string)
8732 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
8733 Sync with xterm.c.
8734 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
8735 than the xterm.c version when a strictly horizontal or vertical
8736 line is drawn.
8737 (XTset_terminal_window): Add static.
8738 (x_make_frame_visible): Add UNBLOCK_INPUT.
8739 (x_free_frame_resources): New funcion (from xterm.c).
8740 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
8741 occurs in tool bar area.
d8d95bc7
SM
8742 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
8743 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
8744 Initialize image cache.
8745 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
8746 Enclose unused functions with #if 0.
8747 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
8748 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 8749 from a mac font name to an XLFD font name according to its script code.
e3564461 8750 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 8751 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
8752 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
8753 whose name starts with `.'.
8754 (init_font_name_table): Use decode_mac_font_name. Add both
8755 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
8756 of a font is smJapanese.
8757 (mac_do_list_fonts): New function to list fonts that match a given
8758 pattern.
8759 (x_list_fonts, XLoadQueryFont): Use it.
8760 (XLoadQueryFont): Set rbearing field for each variable width
8761 character to avoid needless redraw.
8762 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
8763
446f5f3d
KS
87642004-02-26 Kim F. Storm <storm@cua.dk>
8765
af617d0f
KS
8766 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
8767 as read_socket_hook handler on X aborts if buffer is too small
8768 and W32 handler doesn't always check buffer limit.
8769
446f5f3d
KS
8770 * xdisp.c (handle_single_display_prop): Handle left-fringe and
8771 right-fringe similar to a display margin image. Specifically,
8772 the characters having the fringe prop are no longer shown, and
8773 we use IT_IMAGE/next_element_from_image with image_id = -1 to
8774 do this. Set fringe bitmap face_id in it->face_id.
8775 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
8776 still realize it->face (i.e. the fringe bitmap face).
8777
7d8a0b55
MB
87782004-02-25 Miles Bader <miles@gnu.org>
8779
8780 * xdisp.c (check_it): Check string/string_pos consistency.
8781 (init_iterator): Initialize string-related fields properly.
8782
87832004-02-11 Miles Bader <miles@gnu.org>
8784
8785 * xdisp.c (produce_image_glyph): Force negative descents to zero.
8786
87872004-02-10 Miles Bader <miles@gnu.org>
8788
8789 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
8790 BLOCK_INPUT can be nested, so it doesn't make much sense.
8791
a64387ee 87922004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
8793
8794 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
8795 (xbm_read_bitmap_data): Use unsigned char for image data.
8796
92f5fba2
LT
87972004-02-23 Luc Teirlinck <teirllm@auburn.edu>
8798
8799 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
8800
8565fb3d
JR
88012004-02-22 Jason Rumney <jasonr@gnu.org>
8802
8803 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
8804 correctly over other bitmaps.
8805
a6eeaa81 88062004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
8807
8808 * emacs.c (USAGE1): Split into two halves.
8809 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
8810 (USAGE3): Rename from USAGE2.
8811 (USAGE4): Rename from USAGE3.
f8125c39 8812
4effffca
EZ
88132004-02-21 Juri Linkov <juri@jurta.org>
8814
8815 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
8816 Fix --multibyte. Move --help, --version to USAGE2. Add alias
8817 --file. Fix -f, -l. Sort options. Untabify.
8818 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
8819
923c1e6f
LT
88202004-02-19 Luc Teirlinck <teirllm@auburn.edu>
8821
8822 * category.c (Fdefine_category, Fcategory_docstring)
8823 (Fget_unused_category, Fset_category_table)
8824 (Fcategory_set_mnemonics): Doc fixes.
8825
b0e225fd
KS
88262004-02-20 Kim F. Storm <storm@cua.dk>
8827
8828 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
8829 The following changes are relative to the 2004-01-21 revision.
8830 (NREAD_INPUT_EVENTS): Define as max number of input events to read
8831 in one call to read_socket_hook. Value is 8.
8832 (read_avail_input): Separate and rework handling of read_socket_hook
8833 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
8834 in read_socket_hook case, and repeat if full buffer is read.
8835 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
8836 In non-read_socket_hook case, just use a single input_event, and
8837 call kbd_buffer_store_event on the fly for each character.
8838
b15aa9f9
SM
88392004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8840
8841 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
8842 Remove unused `gu' alternative.
8843
83c9aa95
AS
88442004-02-19 Andreas Schwab <schwab@suse.de>
8845
8846 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
8847 warning.
8848
cc808173
KS
88492004-02-18 Kim F. Storm <storm@cua.dk>
8850
8851 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
8852 Fix last change.
8853
ab90a54d
KS
88542004-02-17 Kim F. Storm <storm@cua.dk>
8855
b26f249f
KS
8856 * xdisp.c (fast_find_position): Fix return value of new version;
8857 it was inverted compared to the 21.1 version.
8858 (get_window_cursor_type): Don't look at glyph if NULL.
8859 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 8860
ab90a54d
KS
8861 * keyboard.c: Rework previous change; it didn't consider that the
8862 buf array was allocated on the stack.
8863 (prev_read): Remove variable.
8864 (read_avail_input_buf): New static event buffer array.
b9568dfc 8865 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 8866 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
8867 Use in_read_avail_input to handle re-entrance; when re-entered,
8868 fully initialize and use tmp_buf array instead of read_avail_input_buf.
8869 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
8870 is always cleared on entry. To ensure that, we clear (just) the
8871 entries that were used before we return.
8872 (init_keyboard): Initialize read_avail_input_buf here.
8873
b6189c3b 88742004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
8875
8876 * cmds.c (Fend_of_line): Doc fix.
8877
7b5368c1
EZ
88782004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
8879
8880 * keyboard.c (prev_read): New static variable.
8881 (read_avail_input): Use it to zero out only those slots in buf[]
8882 that were used last time we were called.
8883
a6eeaa81 88842004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
8885
8886 * Makefile.in (obj): Move fringe.o from here...
8887 (XOBJ, MAC_OBJ): ...to here.
8888
159c348e
SE
88892004-02-16 Stephen Eglen <stephen@gnu.org>
8890
8891 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
8892
d2f14999
SM
88932004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
8894
b15aa9f9
SM
8895 * data.c (Fbyteorder):
8896 * fringe.c (Fdefine_fringe_bitmap):
8897 * xdisp.c (handle_single_display_prop):
d2f14999
SM
8898 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
8899
8d50508a
JR
89002004-02-16 Jason Rumney <jasonr@gnu.org>
8901
8902 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
8903
dd4497dc
ST
89042004-02-15 Steven Tamm <steventamm@mac.com>
8905
8906 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
8907 controlling emulation of a three button mouse with option and
8908 command keys.
7e26f91b 8909 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 8910 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 8911
c9159cb3
KS
89122004-02-15 Kim F. Storm <storm@cua.dk>
8913
2cc52658
KS
8914 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
8915
c9159cb3
KS
8916 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
8917 Perform byte-swapping.
8918
12fde2dc
KS
89192004-02-14 Kim F. Storm <storm@cua.dk>
8920
8921 * dispextern.h (struct draw_fringe_bitmap_params): Change member
8922 bits from char to short to facilitate wider bitmaps.
8923 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
8924 member.
8925
8926 * fringe.c (struct fringe_bitmap): Change member bits from char to
8927 short to facilitate 16 bits wide bitmaps. Modify all standard
8928 bitmaps accordingly.
8929 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
8930 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
8931 (draw_fringe_bitmap): Ditto.
8932 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
8933 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
8934 handle up to 16 bits wide bitmaps.
8935 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 8936 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
8937
8938 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
8939 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
8940 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
8941
8942 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
8943 so it is no longer necessary to expand them here.
8944
8945 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
8946
9d7271e8
KS
89472004-02-12 Kim F. Storm <storm@cua.dk>
8948
8949 * window.c (Fwindow_fringes): Doc fix.
8950
706c1e4f
JD
89512004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8952
8953 * xselect.c (x_get_foreign_selection): Add new optional parameter
8954 time_stamp.
8955 (Fx_get_selection_internal): Ditto, pass time_stamp to
8956 x_get_foreign_selection.
8957
8958 * data.c (Fbyteorder): New function.
8959
c2d12b5d
JD
89602004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8961
8962 * atimer.c: Move include stdio.h to same place as in other files.
8963
8964 * region-cache.c: Ditto.
8965
8966 * sysdep.c: Ditto.
8967
8968 * xfaces.c: Ditto.
8969
4c1947b9
SS
89702004-02-09 Sam Steingold <sds@gnu.org>
8971
89458937 8972 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 8973
82722af3
KS
89742004-02-09 Kim F. Storm <storm@cua.dk>
8975
8976 * fringe.c: New file. Move original fringe related declarations
8977 and code from dispextern.h and xdisp.c here.
8978 Rework code to support user defined fringe bitmaps, redefining
8979 standard bitmaps, ability to overlay user defined bitmap with
8980 overlay arrow bitmap, and add faces to bitmaps.
8981 (Voverflow_newline_into_fringe): Declare here.
8982 (enum fringe_bitmap_align): New enum.
8983 (..._bits): All bitmaps are now defined without bitswapping; that
8984 is now done in init_fringe_once (if necessary).
8985 (standard_bitmaps): New array with specifications for the
8986 standard fringe bitmaps.
8987 (fringe_faces): New array.
8988 (valid_fringe_bitmap_id_p): New function.
8989 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
8990 (draw_fringe_bitmap): New function which draws fringe bitmap,
8991 possibly overlaying bitmap with cursor in right fringe or the
8992 overlay arrow in the left fringe.
8993 (update_window_fringes): Do not handle overlay arrow here.
8994 Compare and copy fringe bitmap faces.
8995 (init_fringe_bitmap): New function.
8996 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
8997 define and destroy user defined fringe bitmaps.
8998 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
8999 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
9000 (syms_of_fringe): New function. Defsubr new DEFUNs.
9001 DEFVAR_LISP Voverflow_newline_into_fringe.
9002 (init_fringe_once, init_fringe): New functions.
9003 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 9004
82722af3
KS
9005 * Makefile.in (obj): Add fringe.o.
9006 (fringe.o): New dependencies.
9007
9008 * dispextern.h (FRINGE_ID_BITS): New definition for number of
9009 bits allocated to hold a fringe number. Increase number of bits
9010 from 4 to 8 to allow user defined fringe bitmaps.
9011 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
9012 left_user_fringe_face_id, right_user_fringe_bitmap,
9013 right_user_fringe_face_id.
9014 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
9015 Move to new file fringe.c.
9016 (MAX_FRINGE_BITMAPS): Define here.
9017 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
9018 and overlay_p. Change member which to int.
9019 (struct redisplay_interface): New members define_fringe_bitmap
9020 and destroy_fringe_bitmap.
9021 (valid_fringe_bitmap_id_p): Add prototype.
9022 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
9023
9024 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
9025 arrows.
9026 (update_frame): Do flush_display if force_flush_display_p to
9027 ensure display (specifically fringes) are updated in a timely
9028 manner when resizing the frame by dragging the mouse.
9029 (update_window_line): Update row if overlay arrow changed.
9030 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
9031 or overlay arrow changed.
9032
9033 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
9034 syms_of_fringe, and init_fringe.
9035
9036 * frame.h (struct frame): New member force_flush_display_p.
9037
9038 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
9039 Add prototypes.
9040
a3993cc8 9041 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 9042 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
9043 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
9044 Use cursor color for displaying cursor in fringe.
82722af3
KS
9045 (x_redisplay_interface): Add null handlers for
9046 define_fringe_bitmap and destroy_fringe_bitmap functions.
9047
9048 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
9049 xterm.c to handle overlayed fringe bitmaps and to use cursor color
9050 for displaying cursor in fringe.
9051 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
9052 specific functions to define and destroy fringe bitmaps in fringe_bmp.
9053 (w32_redisplay_interface): Add them to redisplay_interface.
9054 (w32_term_init): Call w32_init_fringe instead of explicitly
9055 defining fringe bitmaps in fringe_bmp array.
9056 (x_delete_display): Call w32_reset_fringes instead of explicitly
9057 destroying fringe bitmaps in fringe_bmp array.
9058
9059 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
9060 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
9061 (continued_bits, continuation_bits, ov_bits, first_line_bits)
9062 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
9063 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
9064 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
9065 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
9066 Move fringe handling vars and code to new file fringe.c.
9067 (handle_display_prop): Handle left-fringe and right-fringe
9068 display properties; store user fringe bitmaps in iterator.
9069 (move_it_in_display_line_to): Handle cursor in fringe at eob.
9070 (clear_garbaged_frames): Set force_flush_display_p if resized.
9071 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
9072 (display_line): Handle cursor in fringe at eob.
9073 (display_line): Set row user fringe bitmaps from iterator.
9074
9075 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
9076 Use cursor color for displaying cursor in fringe.
9077 (x_redisplay_interface): Add null handlers for
9078 define_fringe_bitmap and destroy_fringe_bitmap functions.
9079
030400eb
JD
90802004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9081
9082 * macfns.c (Fx_change_window_property): Make doc string and
9083 parameters same as for X version.
9084
9085 * w32fns.c (Fx_change_window_property): Ditto.
9086
3af55251
KS
90872004-02-07 Kim F. Storm <storm@cua.dk>
9088
ec110e9e
KS
9089 * xdisp.c (hscroll_window_tree): Position cursor near to right
9090 margin in hscrolled window when jumping to end of line (rather
9091 than centering cursor).
9092
3af55251
KS
9093 * process.c (wait_reading_process_input): Don't do adaptive read
9094 buffering if waiting for a specific process.
9095
b0c138ce
LT
90962004-02-05 Luc Teirlinck <teirllm@auburn.edu>
9097
9098 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
9099 (Fread_minibuffer, Feval_minibuffer)
9100 (Fread_string, Fread_no_blanks_input)
9101 (Fcompleting_read): Doc fixes.
9102 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
9103 completion-regexp-list. Define Qcase_fold_search and staticpro it.
9104 (read_minibuf): Fix initial comment.
9105 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 9106 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
9107 checking completion-regexp-list.
9108 (Fdisplay_completion_list): Make it handle arguments that are
9109 symbols. Doc fix.
9110
9676f5ad 91112004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 9112
9676f5ad 9113 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 9114
9676f5ad
JD
9115 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
9116 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 9117 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 9118 format. Remove unused variable cons.
5b698285
JD
9119
9120 * xselect.c: Include stdio,h.
9121
fc1d15f6
KH
91222004-02-05 Kenichi Handa <handa@m17n.org>
9123
ebaff4af
KH
9124 * fns.c (Fset_char_table_range): Fix previous change.
9125
fc1d15f6
KH
9126 * buffer.c (Fset_buffer_multibyte): Fix docstring.
9127
9676f5ad
JD
91282004-02-04 Luc Teirlinck <teirllm@auburn.edu>
9129
9130 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
9131
da75761f
SM
91322004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
9133
9134 * keymap.c (Vmouse_events): Rename from Vmenu_events.
9135 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
9136
13c5d120
KH
91372004-02-04 Kenichi Handa <handa@m17n.org>
9138
9139 * fns.c (Fset_char_table_range): Handle charsets ascii,
9140 eight-bit-control, and eight-bit-graphic correctly.
9141
2883d842
JR
91422004-02-03 Jason Rumney <jasonr@gnu.org>
9143
9144 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
9145
9146 * w32fns.c (x_to_w32_font): Likewise.
9147
69eff41f
JD
91482004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9149
9150 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
9151 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
9152
9153 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
9154 ClientMessages.
9155
9156 * xselect.c: Include termhooks.h and X11/Xproto.h
9157 (x_check_property_data, x_fill_property_data)
9158 (x_property_data_to_lisp, mouse_position_for_drop)
9159 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 9160 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
9161 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
9162
da75761f 9163 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
9164 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
9165 OUTER_P.
9166 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
9167 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
9168 if vector_ret_p is true.
9169 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 9170
a6eeaa81 91712004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
9172
9173 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
9174 basename of FILE relative to it, not FILE itself.
9175
09721b31
KH
91762004-02-02 Kenichi Handa <handa@m17n.org>
9177
9178 * coding.c (coding_restore_composition): Check invalid
9179 composition data more rigidly.
9180
eb996101
LT
91812004-01-30 Luc Teirlinck <teirllm@auburn.edu>
9182
9183 * fileio.c (Fread_file_name_internal): Correctly handle the case
9184 where insert-default-directory is nil.
9185 (Fread_file_name): Always return an empty string if the user exits
9186 with an empty minibuffer. Adapt the docstring accordingly.
9187 (syms_of_fileio): Adapt the docstring of insert-default-directory
9188 to the change in Fread_file_name.
9189
a6eeaa81 91902004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
9191
9192 * alloca.c [!alloca]: Fix the prototype for xfree.
9193
13f52ed8
KH
91942004-01-29 Kenichi Handa <handa@m17n.org>
9195
9196 * fns.c (string_char_to_byte): Optimize for ASCII only string.
9197 (string_byte_to_char): Likewise.
9198
d57625a0
JR
91992004-01-28 Peter Runestig <peter@runestig.com>
9200
9201 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
9202
a64387ee 92032004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
9204
9205 * unexmacosx.c (unexec_copy): Do not copy more than was
9206 requested to prevent overwriting during unexec.
9207
eb37b8fd
JD
92082004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9209
ce38070a
JD
9210 * process.c (sigchld_handler): Add comment about not calling malloc.
9211
eb37b8fd
JD
9212 * process.h: Add extern to synch_process_termsig.
9213
a64387ee 92142004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 9215
da75761f
SM
9216 * macterm.c (make_mac_frame, make_mac_terminal_frame):
9217 Move setting of scroll bars from make_mac_frame to
9218 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 9219
d62a265d
RS
92202004-01-26 Richard M. Stallman <rms@gnu.org>
9221
9222 * search.c (Freplace_match): Handle nonexistent
9223 back-references properly.
9224
92252004-01-03 Richard M. Stallman <rms@gnu.org>
9226
9227 * window.c (decode_any_window): New function.
9228 (Fwindow_height, Fwindow_width, Fwindow_edges)
9229 (Fwindow_pixel_edges, Fwindow_inside_edges)
9230 (Fwindow_inside_pixel_edges): Use decode_any_window.
9231
ff236419
JD
92322004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9233
9234 * process.h: synch_process_termsig new variable.
9235
9236 * callproc.c: Define synch_process_termsig.
9237 (Fcall_process): Initiate synch_process_termsig to zero and
9238 check if non-zero and get signal name after subprocess has ended.
9239
9240 * process.c (sigchld_handler): Set synch_process_termsig
9241 if terminated by a signal. synch_process_death setting removed.
9242
9243 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
9244
41b867ea
AS
92452004-01-26 Andreas Schwab <schwab@suse.de>
9246
9247 * print.c (print_preprocess): Declare size as EMACS_INT to not
9248 lose bits.
9249 (print_object): Likewise.
9250 * alloc.c (Fpurecopy): Likewise.
9251
a08084ff
LT
92522004-01-25 Luc Teirlinck <teirllm@auburn.edu>
9253
9254 * window.c (Fwindow_minibuffer_p): Doc fix.
9255
b19ac475
JY
92562004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
9257
9258 * editfns.c (Fformat): Make both passes accept the same set of flags.
9259
fe905025
KH
92602004-01-23 Kenichi Handa <handa@m17n.org>
9261
9262 * fns.c (Fmd5): If OBJECT is a buffer different from the current
9263 one, set buffer to OBJECT temporarily.
9264
438fc6c0
SM
92652004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9266
455316e2
SM
9267 * keyboard.c (kbd_buffer_gcpro): Remove.
9268 (kbd_buffer_store_event, clear_event, Fdiscard_input)
9269 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
9270 Don't initialize and/or maintain the variable any more. It was made
9271 redundant by my commit of 2003-06-15.
9272
438fc6c0
SM
9273 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
9274
5335a4ee
JD
92752004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9276
9277 * lisp.h: Add undef DECL_ALIGN.
9278
dcdaeebc
SM
92792004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * process.c (wait_reading_process_input) [SYNC_INPUT]:
9282 Check interrupt_input_pending explicitly.
9283
9284 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
9285
9286 * keyboard.c (handle_async_input): New fun,
9287 extracted from input_available_signal.
9288 (input_available_signal, reinvoke_input_signal): Use it.
9289
9076a823
SM
92902004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
9291
d7107586
SM
9292 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
9293
9294 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
9295 manipulation macros for when tags are in the lower bits.
9296 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
9297 (DECL_ALIGN): New macro.
9298 (DEFUN): Use it.
9299
9300 * lisp.h [ENABLE_CHECKING]: Don't force union type.
9301
9302 * s/darwin.h (__attribute__): Remove outdated workaround.
9303
9304 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
9305
9306 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
9307 Don't check range of malloc address.
9308 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
9309
9076a823
SM
9310 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
9311
9312 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
9313
ba029065
KH
93142004-01-19 Kenichi Handa <handa@m17n.org>
9315
9316 * fontset.c (fontset_font_pattern): Fix previous change.
9317
7af0e8d7
MB
93182004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
9319
9320 * xdisp.c (Voverflow_newline_into_fringe)
9321 (move_it_in_display_line_to, redisplay_internal)
9322 (update_window_fringes, redisplay_window, display_line, window):
9323 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
9324 that it compiles without a window-system.
9325 * dispnew.c (direct_output_for_insert, update_window): Likewise.
9326
77a9cf69
KS
93272004-01-16 Kim F. Storm <storm@cua.dk>
9328
9329 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
9330
a64387ee 9331 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
9332 buffer_local_flags for indicate_buffer_boundaries.
9333 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
9334 default- variable for it.
9335
9336 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
9337 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 9338 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
9339 overflowing newlines into right fringe.
9340 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
9341 and indicate_bottom_line_p for buffer boundaries and scrolling.
9342 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
9343 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
9344 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
9345 and HOLLOW_SQUARE_BITMAP.
9346 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
9347 Add prototypes.
9348
9349 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
9350 instead of related indicator fields.
9351 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
9352 (direct_output_for_insert): Handle exact width lines like
9353 contined lines. Call update_window_fringes.
9354 (update_window): Call update_window_fringes.
9355 (scrolling_window): Don't skip desired rows with changed bitmaps.
9356 Check if fringe bitmaps changes when assigning scrolled rows.
9357
9358 * xdisp.c (Voverflow_newline_into_fringe): New variable.
9359 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
9360 (move_it_in_display_line_to): Overflow newline into fringe for
9361 rows that are exactly as wide as the window.
9362 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
9363 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
9364 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
9365 (fringe_bitmaps): Add new bitmaps.
9366 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
9367 Select proper bitmap for cursor in fringe when appropriate.
9368 Handle alignment of bitmap to top or bottom of row.
9369 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
9370 done by update_window_fringes.
9371 (update_window_fringes, draw_window_fringes): New functions.
9372 (redisplay_internal): Call update_window_fringes in case only
9373 cursor row is updated.
9374 (redisplay_window): Call update_window_fringes.
9375 Explicitly call draw_window_fringes if redisplay was done using
9376 the current matrix or the overlay arrow is in the window.
9377 (try_window_reusing_current_matrix): Mark scrolled rows for
9378 fringe update (to update buffer-boundaries / scrolling icons).
9379 (find_last_unchanged_at_beg_row): Handle exact width lines line
9380 continued lines.
9381 (display_line): Overflow newline into fringe for rows that are
9382 exactly as wide as the window. Don't append space for newline
d7107586 9383 in this case.
77a9cf69
KS
9384 (notice_overwritten_cursor): Explicitly clear cursor bitmap
9385 in fringe as if it had been overwritten.
9386 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 9387 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
9388 void-text-area-pointer as user options.
9389 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 9390
77a9cf69
KS
9391 * xterm.c (x_update_window_end): Call draw_window_fringes.
9392 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9393 in row instead of actually drawing fringe bitmaps.
9394 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9395 (x_draw_window_cursor): Draw cursor in fringe.
9396
9397 * w32term.c (x_update_window_end): Call draw_window_fringes.
9398 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9399 in row instead of actually drawing fringe bitmaps.
9400 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9401 (w32_draw_window_cursor): Draw cursor in fringe.
9402
9403 * macterm.c (x_update_window_end): Call draw_window_fringes.
9404 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9405 in row instead of actually drawing fringe bitmaps.
9406 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9407 (mac_draw_window_cursor): Draw cursor in fringe.
9408
a633a954
JD
94092004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9410
9411 * xterm.c (handle_one_xevent): Don't handle characters that are part
9412 of an old style (XLookupString) compose sequence.
9413
80460525
KH
94142004-01-15 Kenichi Handa <handa@m17n.org>
9415
9416 * search.c (Freplace_match): Use make_multibyte_string or
9417 make_unibyte_string according to the buffer multibyteness.
9418
7fc34f85
SM
94192004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
9420
9421 * alloc.c (struct interval_block, struct string_block)
9422 (struct symbol_block, struct marker_block, live_string_p)
9423 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
9424 Better preserve alignment for objects in blocks.
9425 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
9426
9427 * lread.c (defvar_per_buffer): Remove dead declaration.
9428
9429 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
9430 space size.
9431
66070bd1
JD
94322004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9433
9434 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
9435 if a key press should pop down. Only pop down if a key is pressed
9436 outside the menu/dialog.
9437 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
9438 popup_get_selection.
9439 (create_and_show_dialog): Pass 1 for down_on_keypress to
9440 popup_get_selection.
9441
de7515d6
JD
94422004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9443
9444 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
9445 BLOCK/UNBLOCK_INPUT.
9446
160b1b50
JD
94472004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9448
9449 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
9450 specified.
9451
3a9f36e6
KH
94522004-01-08 Kenichi Handa <handa@m17n.org>
9453
9454 * editfns.c (Fformat): Fix '&' to '&&'.
9455
3803eb32
AS
94562004-01-08 Andreas Schwab <schwab@suse.de>
9457
9458 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
9459 size if PSEUDOVECTOR_FLAG is set.
9460
9da88f37
KH
94612004-01-07 Kenichi Handa <handa@m17n.org>
9462
74ac5074
KH
9463 * charset.c (Fdeclare_equiv_charset): Fix docstring.
9464
9da88f37
KH
9465 * fontset.c (fontset_ref_via_base): Fix previous change.
9466
05faee07
KS
94672004-01-07 Kim F. Storm <storm@cua.dk>
9468
9469 * process.c (read_process_output): Only activate adaptive
9470 buffering if we read less than 256 bytes at a time.
9471
634910c8
KS
94722004-01-06 Kim F. Storm <storm@cua.dk>
9473
9474 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
9475 object and image object. Return glyph width and height.
9476 (mode_line_string, marginal_area_string): Ditto.
9477
9478 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9479 (marginal_area_string): Fix prototypes.
9480
9481 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 9482 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
9483 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
9484
9485 * keyboard.c (make_lispy_position): Use modified mode_line_string,
9486 buffer_posn_from_coords, and marginal_area_string functions to
9487 include both string object and image object in the lispy position.
9488 Also add actual glyph width and height to position.
9489 (read_key_sequence): Use real buffer position from mouse
9490 event to find keymap property even when click is in marginal area.
9491
9492 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
9493 mode_line_string and marginal_area_string functions to handle
9494 both string object and image object properties.
d7107586 9495
57951c2e
AS
94962004-01-06 Andreas Schwab <schwab@suse.de>
9497
9498 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
9499 character.
9500
181e6a61
AS
95012004-01-02 Andreas Schwab <schwab@suse.de>
9502
d7107586
SM
9503 * macterm.c (emacs_options, x_initialized, same_x_server):
9504 Remove unused (and duplicated) definitions.
181e6a61 9505
31e0fbdd
KS
95062004-01-02 Kim F. Storm <storm@cua.dk>
9507
9508 * process.h (struct Lisp_Process): New members for adaptive read
9509 buffering: adaptive_read_buffering, read_output_delay, and
9510 read_output_skip.
9511
9512 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
9513 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
9514 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
9515 (process_output_delay_count, process_output_skip): New vars.
9516 (Vprocess_adaptive_read_buffering): New variable.
9517 (make_process): Initialize adaptive read buffering members.
9518 (Fstart_process): Set adaptive_read_buffering member.
9519 (deactivate_process): Cleanup adaptive read buffering.
9520 (wait_reading_process_input): Temporarily omit delayed
9521 subprocesses from the set of file descriptors to read from;
9522 adjust the select timeout if we skipped any subprocesses.
9523 (read_process_output): Increase adaptive read buffering delay if
9524 we read less than a full buffer; reduce delay when we read a
9525 full buffer.
9526 (send_process): Simplify using local Lisp_Process var.
9527 Reset adaptive read buffering delay after write.
9528 (init_process): Initialize process_output_delay_count and
9529 process_output_skip.
9530 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
9531
68c6a789
JR
95322004-01-01 Jason Rumney <jasonr@gnu.org>
9533
d7107586 9534 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 9535
3f70fe82
LT
95362003-12-30 Luc Teirlinck <teirllm@auburn.edu>
9537
9538 * print.c (Ferror_message_string): Add hyperlink in the docstring
9539 to the definition of `signal' in the Elisp manual.
9540 * eval.c (Fsignal): Ditto.
9541
b6189c3b 95422003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
9543
9544 * fns.c (internal_equal): Return t for two NaN arguments.
9545
7abd90ea
RS
95462003-12-29 Richard M. Stallman <rms@gnu.org>
9547
9548 * data.c (store_symval_forwarding): Handle setting
9549 default-fill-column, etc., by changing the value in
9550 buffers that use the default.
9551
9552 * minibuf.c (Fset_minibuffer_window): Doc fix.
9553
9554 * fileio.c (choose_write_coding_system): Ignore auto_saving
9555 if using the visited file for auto saves.
9556 (Fwrite_region): Don't update SAVE_MODIFF
9557 if auto-saving in visited file.
9558
3e7cfcdc
KH
95592003-12-29 Kenichi Handa <handa@m17n.org>
9560
9561 * dispextern.h (face_font_available_p): Extern it.
9562
9563 * fontset.c (Voverriding_fontspec_alist): New variable.
9564 (lookup_overriding_fontspec): New function.
d7107586 9565 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
9566 (fontset_font_pattern): Likewise.
9567 (regulalize_fontname): New function.
9568 (Fset_fontset_font): Call regulalize_fontname.
9569 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
9570 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
9571 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
9572
9573 * xfaces.c (face_font_available_p): New function.
9574
7abd90ea
RS
95752003-12-28 Richard M. Stallman <rms@gnu.org>
9576
9577 * buffer.c (Fother_buffer): Don't crash if BUF is nil
9578 or if its name is nil.
9579
9580 * buffer.c (Fkill_buffer): Don't delete auto-save file
9581 if it's the same as the visited file.
9582
de1d1a40
LT
95832003-12-28 Luc Teirlinck <teirllm@auburn.edu>
9584
9585 * coding.c (Fcheck_coding_system): Doc fix.
9586
204fb75e
KS
95872003-12-28 Kim F. Storm <storm@cua.dk>
9588
9589 * Makefile.in (eval.o): Depend on dispextern.h.
9590
9591 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
9592 image glyph using image's ascent.
9593 (mode_line_string): Return image glyph as object clicked on.
9594 Adjust y0 for image glyph using image's ascent.
9595
9596 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
9597 (struct glyph): New members, ascent and descent. Used to save
9598 this glyph's ascent and descent, instead of having.
9599 (struct glyph): Declare member face_id using FACE_ID_BITS.
9600 (find_hot_spot): Add prototype.
9601
9602 * keyboard.c (Qimage): Remove extern (now in lisp.h).
9603 (QCmap): Declare extern.
9604 (make_lispy_position): When position is inside image hot-spot,
9605 use hot-spot element's id as posn element.
9606
9607 * lisp.h (IMAGEP): New macro to test for image object type.
9608 (Qimage): Declare extern.
9609
9610 * macfns.c (Qimage): Remove extern (now in lisp.h).
9611 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9612
9613 * macterm.c (Qface, Qmouse_face): Remove unused externs.
9614
9615 * w32fns.c (Qimage): Remove extern (now in lisp.h).
9616 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9617
9618 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
9619
9620 * w32term.c (Qface, Qmouse_face): Remove unused externs.
9621
9622 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
9623 pointer types.
9624 (Qrelative_width, Qalign_to): Remove unused variables.
9625 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
9626 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
9627 image maps.
d7107586 9628 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
9629 new dx and dy args.
9630 Remove buffer_only_p arg (always 0). Simplify code accordingly.
9631 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
9632 than row's ascent and height, to get sensible height on tall rows.
9633 (build_desired_tool_bar_string): Remove Qimage extern.
9634 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
9635 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
9636 image glyph is alone on the last line.
9637 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 9638 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 9639 (on_hot_spot_p): New function to check if position is inside an
d7107586 9640 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
9641 (find_hot_spot): New function to search for image hot-spot.
9642 (Flookup_image_map): New defun to search for image hot-spot.
9643 (define_frame_cursor1): New aux function to determine frame pointer.
9644 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9645 Handle `pointer' text property and :pointer image property to
9646 control frame pointer shape. Detect image hot-spots for pointer
9647 and help_echo properties. Use define_frame_cursor1.
9648 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 9649 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
9650 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
9651
9652 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
9653
9654 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
9655 (Qimage): Remove extern (now in lisp.h).
9656 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9657
9658 * xmenu.c (show_help_event): Remove unused code.
9659
9660 * xterm.c (Qface, Qmouse_face): Remove unused externs.
9661 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
9662 row's ascent and descent, to get a sensible height on tall rows.
9663
fc052137
LT
96642003-12-25 Luc Teirlinck <teirllm@auburn.edu>
9665
9666 * minibuf.c (Fcompleting_read): Undo previous change.
9667
a64387ee 96682003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
9669
9670 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
9671 Arguments GCPRO'ed in call to file name handler.
9672
56ffd194
TTN
96732003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
9674
9675 * termcap.c (tgetst1): Scan for "%pN"; if all
9676 N are continuous in [1,9], remove all "%pN".
9677
5202d23d
JD
96782003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9679
f26fab36
JD
9680 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
9681
5202d23d
JD
9682 * xfaces.c (lface_fully_specified_p): Take into account that
9683 MAC OS always have unspecified stipple.
9684
8babaa59
TTN
96852003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9686
9687 * tparam.c (tparam1): Add handling for `%pN', which
9688 means use param N for the next substitution.
9689
2d176448
TTN
96902003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9691
9692 * xfaces.c (Fcolor_gray_p): Fix omission bug:
9693 In case `frame' is nil, consult the selected frame.
9694 (Fcolor_supported_p): Likewise.
9695
adb0708c
LT
96962003-12-23 Luc Teirlinck <teirllm@auburn.edu>
9697
000eeb15
LT
9698 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
9699 Doc fixes.
0dc72b11
LT
9700
9701 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
9702 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
9703 (Fread_from_minibuffer): Delete code moved into read_minibuf.
9704 Doc fix.
9705 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
9706 read_minibuf.
9707 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 9708 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 9709
2e4d132b
KH
97102003-12-03 Kenichi Handa <handa@m17n.org>
9711
9712 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
9713 encoding sequence.
9714
3999c705
KH
97152003-12-01 Kenichi Handa <handa@m17n.org>
9716
9717 * composite.c (syms_of_composite): Don't make the compostion hash
9718 table week.
9719
d344ecbb
LT
97202003-11-30 Luc Teirlinck <teirllm@auburn.edu>
9721
9722 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
9723 * textprop.c (Fget_char_property_and_overlay): New function.
9724 (syms_of_textprop): Defsubr it.
9725
03d6484e
JD
97262003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9727
019b1f0e
JD
9728 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
9729 to compile on terminal configuration.
9730
03d6484e
JD
9731 * fileio.c (Fread_file_name): Check use_file_dialog also before
9732 calling Fx_file_dialog.
9733
1d1c7e75 9734 * fns.c (use_file_dialog): New variable.
03d6484e
JD
9735 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
9736
442d3fd0
KS
97372003-11-29 Kim F. Storm <storm@cua.dk>
9738
9739 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
9740 (syms_of_msdos): Don't intern and staticpro them.
9741
0f6a07a8
KS
97422003-11-27 Kim F. Storm <storm@cua.dk>
9743
9744 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
9745 coordinates relative to glyph at posn. If glyph is an image,
9746 return that as object at posn. Callers changed.
9747 (mode_line_string, marginal_area_string): Calculate and return
9748 pixel coordinates relative to glyph. Callers changed.
9749
9750 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9751 (marginal_area_string): Fix prototypes.
9752 (window_box_left_offset, window_box_right_offset): Add prototypes.
9753
9754 * frame.h (get_specified_cursor_type, get_window_cursor_type):
9755 Remove prototypes.
9756
9757 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
9758
9759 * keyboard.c (make_lispy_position): Add x and y coordinates
9760 relative to the current glyph as 7th element of position.
9761 If glyph is an image, return it in the object element.
9762 (read_key_sequence): Skip checks for keymap property in cases
9763 where POSN_STRING is not a string (e.g. an image).
9764
9765 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
9766 (Vshow_text_cursor_in_void): New variable.
9767 (glyph_to_pixel_coords): Don't use negative hpos.
9768 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
9769 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 9770 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
9771 (calc_pixel_width_or_height): New aux function, implementing
9772 pixel based artihmetic for glyph widths and heights.
9773 (produce_stretch_glyph): Use calc_pixel_width_or_height for
9774 :width, :height, :align-to, and :ascent, thus allowing these to
9775 be specified in pixels as well as multiples of characters.
9776 Don't produce stretch glyphs with zero width or height.
9777 (get_specified_cursor_type): Declare static.
9778 (get_window_cursor_type): Declare static. Add glyph arg to be
9779 able to know when cursor is on an image; always substitute
9780 hollow-box cursor for filled-box cursor on images, to avoid
9781 negative images and flicker when blinking the cursor.
9782 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
9783 (note_mode_line_or_margin_highlight): Use non-text cursor rather
9784 than vertical scroll-bar cursor in display margins.
9785 (note_mouse_highlight): Use non-text cursor rather than text
9786 cursor in fringes and over images in the text area.
9787 Use non-text cursor when mouse pointer is outside editable text,
9788 i.e. in the void after end-of-line or end-of-buffer; this was
9789 already done for W32, but is now standard for all systems --
9790 user can toggle show-text-cursor-in-void to get old behaviour.
9791 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
9792 Vdisplay_pixels_per_inch.
9793
00498bfc
AS
97942003-11-25 Andreas Schwab <schwab@suse.de>
9795
9796 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
9797 EMACS_INT to not lose bits.
9798 (Ffillarray): Don't set bits beyond the size of a bool vector.
9799
edaa824d
KS
98002003-11-25 Kim F. Storm <storm@cua.dk>
9801
9802 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
9803 define this defun on systems that cannot use stderr as lvalue.
9804
74d6f539
GM
98052003-11-24 Gerd Moellmann <gerd@gnu.org>
9806
9807 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
9808 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
9809 ld's default is incompatible with unexec.
9810
6a1ff3ba
KS
98112003-11-23 Kim F. Storm <storm@cua.dk>
9812
63dc7c6b
KS
9813 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
9814 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
9815 (Fforce_window_update): New defun.
9816 (syms_of_window): Defsubr it.
9817 (Fset_window_margins, Fset_window_fringes): Doc fix.
9818
6a1ff3ba
KS
9819 * print.c (Fredirect_debugging_output): New defun.
9820 (syms_of_print): Defsubr it.
9821
aef109b7
LT
98222003-11-22 Luc Teirlinck <teirllm@auburn.edu>
9823
9824 * fns.c (Fset_char_table_parent): Doc fix.
9825
6a1ff3ba 98262003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
9827
9828 * dispnew.c (buffer_posn_from_coords): Return actual row/column
9829 for glyph clicked on, rather than (unused) pixel positions.
9830 (mode_line_string, marginal_area_string): Change X and Y args to
9831 pointers for returning actual row/column for glyph clicked on.
9832 Simplify and optimize loops.
9833
aef109b7
LT
9834 * dispextern.h (mode_line_string, marginal_area_string):
9835 Update prototypes.
63ccbe21
KS
9836
9837 * keyboard.c (make_lispy_position): New function for generating
9838 mouse click positions from frame and pixel coordinates.
9839 Enhanced to return buffer position and actual row/column for
9840 events outside the text area using updated mode_line_string and
9841 marginal_area_string functions.
9842 Return left-fringe and right-fringe clicks as such, rather than
9843 clicks in text area.
9844 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
9845 pixel_to_glyph_coords, as we never use the results.
9846 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
9847 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
9848 Eliminate unused code in WHEEL_EVENT handling.
9849 (make_lispy_movement): Use make_lispy_position.
9850
9851 * window.c (coordinates_in_window): Remove redundant tests.
9852 Fix returned X pixel value for left-margin.
9853
9854 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
9855 mode_line_string and marginal_area_string parameters.
9856
a64387ee 98572003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 9858
d7107586
SM
9859 * w32.c (struct the_group, getgrgid): Add.
9860 * mac.c (struct my_group, getgrgid): Add.
aef109b7 9861
3dbf3426
LT
98622003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9863
9864 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
9865
cae8ddbb 98662003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 9867
d7107586
SM
9868 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
9869 include in call to file name handler. Optionally translate numeric
9870 UID and GID to strings. Update docstring.
9871 (directory_files_internal): Add parameter ID-FORMAT.
9872 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
9873 include in call to file name handler and call to
9874 directory_files_internal. Update Docstring.
9875 (Fdirectory_files): Add dummy parameter in call to
9876 directory_files_internal.
9877 * lisp.h (Qinteger): Add.
9878 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
9879 (Ffile_attributes): Add parameter.
9880 * data.c (Qinteger): Export.
cae8ddbb 9881
2550b848
LT
98822003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9883
3dbf3426 9884 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 9885
88380018
KS
98862003-11-19 Kim F. Storm <storm@cua.dk>
9887
9888 * xdisp.c (init_iterator): Initialize it->start to position
9889 before reseating (in case start position is invisible).
9890 (init_to_row_start): Set it->start to row-start.
9891 (redisplay_window): Accept optional_new_start if start position
9892 is invisible (in which case IT_CHARPOS overshoots PT).
9893 (display_line): Setup row->start from it->start (rather than
9894 it->current which is wrong if first char on line is invisible).
9895 When done, reseat it->start to it->current (= start of next row).
9896 (expose_area): Fix exposure of text area when first char (e.g. TAB)
9897 is only partially visible.
9898
9899 * dispextern.h (struct it): New member start.
9900
854c1a59
SM
99012003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9902
455316e2
SM
9903 * alloc.c (make_float, Fcons): Clear the markbit at init time.
9904 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
9905 of block_index outside of the macro call.
9906 (Fgarbage_collect): Remove null code.
9907
9908 * m/amdx86-64.h: Don't redefine XPNTR.
9909
854c1a59
SM
9910 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
9911 of VALMASK.
9912
9913 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
9914 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
9915 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
9916
9917 * lisp.h (VALMASK): Only define for non-union type.
9918 (MARKBIT): Remove.
9919 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
9920 (XTYPE): Define unconditionally.
9921 (XSETTYPE): Remove one more remnant.
9922 (EQ): Define differently for the union and non-union cases.
9923 (INTMASK): New bit mask.
9924 (struct Lisp_Marker): Move down to prepare for upcoming patch.
9925 (GC_EQ): Delegate to EQ.
9926
9927 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
9928
a0c6ef2d
JD
99292003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9930
9931 * xterm.c (x_window_to_scroll_bar): Move check of display to
9932 where window_id is compared.
9933
859492c4
KS
99342003-11-17 Kim F. Storm <storm@cua.dk>
9935
9936 * dispextern.h (struct it): New member first_vpos.
9937
9938 * xdisp.c (start_display): Set it->first_vpos.
9939 (try_window_id): Use first_vpos to start display in first _text_
9940 line if no reusable lines at start of window with header line.
9941
810f2256
JD
99422003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9943
7c402969 9944 * w32fns.c (XPutPixel):
854c1a59
SM
9945 * w32bdf.c (w32_init_bdf_font):
9946 * sunfns.c (sel_read):
9947 * process.c (Fmake_network_process):
9948 * frame.c (store_frame_param):
9949 * fontset.c (Fset_fontset_font):
9950 * emacs.c (shut_down_emacs):
a64387ee 9951 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 9952
a32e9bfd
JD
9953 * config.in: Regenerate.
9954
810f2256
JD
9955 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9956 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9957 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
9958 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
9959 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
9960
9961 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
9962
9963 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
9964 (XTmouse_position, handle_one_xevent): Pass Display* to
9965 x_window_to_scroll_bar.
9966 (x_window_to_scroll_bar): Take a Display* argument.
9967 Check that display for frame is equal to Display* argument.
854c1a59 9968 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
9969 x_display_info_for_display instead. Use Display in xev instead
9970 of GDK_DISPLAY.
9971 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 9972 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
9973 (x_connection_closed): Call xg_display_close for GTK.
9974 (x_term_init): Call xg_display_open for additional displays.
9975 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
9976 for GTK.
9977
9978 * xmenu.c (single_menu_item, mouse_position_for_popup)
9979 (x_activate_menubar): Formatting adjustments.
9980
9981 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
9982 adjustments.
9983
9984 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
9985 (xg_display_close, xg_create_default_cursor)
9986 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
9987 handling.
854c1a59
SM
9988 (xg_left_ptr_cursor): Remove.
9989 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
9990 cursor here.
9991 (xg_win_to_widget): Take Display* argument, call
9992 gdk_xid_table_lookup_for_display.
9993 (xg_create_frame_widgets, xg_get_file_name, create_menus)
9994 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
9995 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
9996 in FRAME_X_DISPLAY_INFO.
9997 (xg_get_scroll_id_for_window): Take Display* argument.
9998 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 9999 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 10000
78819ebb
KS
10001 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
10002 Display* argument.
10003 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 10004
0b03cc78
JD
100052003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10006
10007 * xterm.c (x_detect_focus_change): Do not change focus frame for
10008 Enter/LeaveNotify if the current focus frame has explicit focus.
10009
77e688fa
KS
100102003-11-14 Kim F. Storm <storm@cua.dk>
10011
10012 * dispnew.c (update_text_area): Fix redisplay error when hscroll
10013 is active and first glyph is only partially visible.
854c1a59 10014
dd429b03
KH
100152003-11-13 Kenichi Handa <handa@m17n.org>
10016
10017 * xdisp.c (select_frame_for_redisplay): New function.
10018 (redisplay_internal): Record also selected_frame for
10019 unwind_redisplay. Call select_frame_for_redisplay before
10020 redrawing each frame.
10021 (unwind_redisplay): Argument changed to a cons.
10022
6d9266f4
LT
100232003-11-12 Luc Teirlinck <teirllm@auburn.edu>
10024
10025 * fns.c (Fstring_to_multibyte): Doc fix.
10026
80060eb3
KH
100272003-11-11 Kenichi Handa <handa@m17n.org>
10028
10029 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
10030
74305183
JD
100312003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10032
10033 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
10034 program specified positions.
10035
cfda993e
JD
100362003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10037
10038 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
10039
df211069
KH
100402003-11-08 Kenichi Handa <handa@m17n.org>
10041
10042 * Makefile.in (lisp): Add kannada.el.
10043 (shortlisp): Likewise.
10044
4307d534
KH
100452003-11-07 Kenichi Handa <handa@m17n.org>
10046
854c1a59
SM
10047 * coding.c (coding_allocate_composition_data):
10048 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
10049 (coding_restore_composition): Detect invalid composition data.
10050 Give Fstring and Fvector a Lispy integer, not C int.
10051
854c1a59
SM
100522003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
10053
10054 * floatfns.c (Flogb): Don't use VALMASK.
10055
10056 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
10057 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
10058
10059 * lisp.h (XINT): Move the cast to clarify what is going on.
10060 (GCTYPEMASK, XSETTYPE): Remove.
10061 (XGCTYPE): Make it an alias of XTYPE.
10062
d04103a1
JD
100632003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10064
10065 * xterm.c (x_term_init): Fix formatting.
10066
da18b5ac
JD
100672003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10068
78819ebb
KS
10069 * gtkutil.h (xg_have_tear_offs): Declare.
10070 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
10071
10072 * gtkutil.c: Remove variable xg_did_tearoff.
10073 (xg_have_tear_offs): New function.
10074 (tearoff_remove): Just decrease xg_detached_menus.
10075 (tearoff_activate): Increase xg_detached_menus and call
10076 tearoff_remove when tearoff is removed.
854c1a59 10077 (xg_keep_popup): Remove function.
da18b5ac
JD
10078 (create_menus): Give add_tearoff_p as argument to recursive
10079 call to create_menus.
10080 (xg_create_widget): Use variables instead of multiple
10081 strcmp. Tell create_menus to create tear off only for
10082 menu bar menus.
10083 (xg_update_menubar): Change title for a detached menu also.
10084 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
10085 of deep_p.
10086 (xg_initialize): Initialize xg_detached_menus, remove
10087 initialization of xg_did_tearoff.
10088
10089 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
10090 xg_have_tear_offs returns non-zero.
10091 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
10092 call to xg_keep_popup.
10093
64d4923e
AC
100942003-11-01 Andrew Choi <akochoi@shaw.ca>
10095
10096 * macterm.c (XTread_socket): Handle menubar selection and grow
10097 window only for mouseDown events.
854c1a59 10098
6cc8bc07
JD
100992003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10100
10101 * xterm.c (x_term_init): For GTK part, increase x_initialized
10102 to check for more than one display. Use error instead of return 0.
10103
043131c4
AC
101042003-10-31 Andrew Choi <akochoi@shaw.ca>
10105
854c1a59 10106 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
10107 (copy_dysymtab): Call it.
10108
bdda99a1
LT
101092003-10-31 Luc Teirlinck <teirllm@auburn.edu>
10110
10111 * eval.c (Fdefvaralias): Doc fix.
10112
800f42ff 101132003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
10114
10115 * data.c (Fsetplist): Doc fix.
10116
ef35b389
LK
101172003-10-14 Lute Kamstra <lute@gnu.org>
10118
10119 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 10120
ef35b389 101212003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 10122
07107abc
KS
10123 * window.c (Fset_window_margins): Simplify arg checking.
10124
f7005886
RS
101252003-10-13 Richard M. Stallman <rms@gnu.org>
10126
10127 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
10128 (print_partial_compiled_pattern): Replace assert with a printout.
10129 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
10130
10131 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
10132
10133 * window.c (Fset_window_margins): Allow only integers as args.
10134 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
10135 Doc fixes.
10136
9c0c2af5
LK
101372003-10-13 Lute Kamstra <lute@gnu.org>
10138
10139 * window.c (Fset_window_fringes): Elaborate docstring.
10140
3f080e4e
AC
101412003-10-12 Andrew Choi <akochoi@shaw.ca>
10142
854c1a59 10143 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 10144
3f080e4e
AC
10145 * s/darwin.h (GC_MARK_STACK): Define.
10146
0aa513ed
JD
101472003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10148
10149 * window.c (shrink_windows): New function.
10150 (size_window): Call shrink_windows to calculate window sizes when
10151 shrinking frame with more than one window.
10152
6aa8858a
KS
101532003-10-12 Kim F. Storm <storm@cua.dk>
10154
10155 * xdisp.c (compute_fringe_widths): Doc fix.
10156
c2164d91
KH
101572003-10-08 Kenichi Handa <handa@m17n.org>
10158
854c1a59 10159 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 10160
f82ac129
KH
101612003-10-07 Kenichi Handa <handa@m17n.org>
10162
10163 * coding.c (Qcoding_system_define_form): New variable.
10164 (syms_of_coding): Intern and staticpro it.
10165 (Fcheck_coding_system): Try to autoload the definition of
10166 CODING-SYSTEM.
10167
9296c947
LT
101682003-10-05 Luc Teirlinck <teirllm@auburn.edu>
10169
10170 * fns.c (Frequire): Doc fix.
10171
c1f0671a
JD
101722003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10173
3d8c3826
JD
10174 * xfns.c (Fx_send_client_event): New function as a base for
10175 manipulating extended window manager hints.
6dc15d98 10176 (Fx_send_client_event): Remove unused variable s.
3d8c3826 10177
068ae0fd
JD
10178 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
10179 that function is removed.
10180
10181 * xterm.c (x_set_offset): Use move_offset_left/top instead of
10182 x/y_pixels_outer_diff.
10183 (x_check_expected_move): Calculate move_offset_left/top.
10184
10185 * xterm.h (struct x_output): New members: move_offset_top/left.
10186
854c1a59 10187 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
10188 call x_set_offset directly.
10189
10190 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
10191
96f09305
JD
10192 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
10193
10194 * xterm.c (x_delete_display): Free font names and font_encoder
10195 in dpyinfo->font_table.
10196
854c1a59
SM
10197 * xfns.c (Fx_close_connection): Only call XFreeFont here.
10198 Move xfree of font names to x_delete_display.
96f09305 10199
c1f0671a
JD
10200 * xterm.h (struct x_display_info): New member, wm_type.
10201 (struct x_output): New members, expected_top/left and
10202 check_expected_move.
10203
10204 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
10205 is received.
854c1a59
SM
10206 (handle_one_xevent): Rename x_check_expected_move from
10207 x_check_fullscreen_move.
c1f0671a
JD
10208 (x_set_offset): Only add WM decoration sizes to modified_top/left
10209 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 10210 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
10211 Removed fullscreen specific code. Use check_expected_move,
10212 expected_left/top instead. Also, set wm_type.
10213 (x_term_init): Initialize wm_type to unknown.
10214
10215 * frame.c (x_fullscreen_move): Remove addition of WM decoration
10216 sizes to move_x/y.
10217
be2fdba9
KH
102182003-10-03 Kenichi Handa <handa@m17n.org>
10219
10220 * macterm.c (x_load_font): Clear all members of FONTP before start
10221 filling them.
10222
102232003-10-02 Kenichi Handa <handa@m17n.org>
10224
10225 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
10226 before calling find_ccl_program_func. Call find_ccl_program_func
10227 only when fontp->font_encoder is not NULL.
10228
10229 * xterm.c (x_load_font): Clear all members of FONTP before start
10230 filling them.
10231
26a6e439
JPW
102322003-10-03 John Paul Wallington <jpw@gnu.org>
10233
10234 * keymap.c (map_keymap): Don't abort when binding is a vector.
10235
0d4c2dc2
JR
102362003-10-02 Jason Rumney <jasonr@gnu.org>
10237
854c1a59
SM
10238 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
10239 Sync dependencies with Makefile.in.
a63cf46f
JR
10240 (alloca.o): Remove.
10241
0d4c2dc2
JR
10242 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
10243 filling them.
10244
10245 * w32bdf.c (w32_load_bdf_font): Likewise.
10246
ab8f7d5c
RS
102472003-09-30 Richard M. Stallman <rms@gnu.org>
10248
10249 * term.c (set_tty_color_mode): Calculate current_mode_spec
10250 regardless of value of VAL.
10251
854c1a59 10252 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
10253 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
10254 Handle over_used when splitting UNDER.
10255
a64387ee 102562003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
10257
10258 * regex.c (regex_compile): Free the stack when returning from function.
10259
3413f972
KH
102602003-09-28 Kenichi Handa <handa@m17n.org>
10261
10262 * fontset.c (Finternal_char_font): Change return value to
10263 cons (FONT-NAME . GLYPH-CODE).
10264
a6eeaa81 102652003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
10266
10267 * term.c (tty_setup_colors): Treat any negative argument as -1.
10268
f98ddc99
KH
102692003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
10270
10271 * process.c (send_process): Delete unused temp_buf.
10272
66c8f1a8
DL
102732003-09-26 Dave Love <fx@gnu.org>
10274
10275 * xterm.c (x_bitmap_mask): Declare.
10276
ca716c26
DL
102772003-09-25 Dave Love <fx@gnu.org>
10278
10279 * Makefile.in (fns.o): Depend on md5.h.
10280
fbe57420
KS
102812003-09-25 Kim F. Storm <storm@cua.dk>
10282
10283 * window.c (set_window_buffer): Fix redisplay problems when
10284 switching between buffers with different display margin widths.
10285
ef6ae4ff
KS
102862003-09-23 Kim F. Storm <storm@cua.dk>
10287
10288 * process.c (set_socket_option): Fix :bindtodevice option.
10289 (Fset_network_process_option): Update process contact list when
10290 setting option succeeds.
10291 (Fmake_network_process): Doc fix.
10292
68e03c1c
DL
102932003-09-23 Dave Love <fx@gnu.org>
10294
7146d1c1 10295 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 10296
a6eeaa81 102972003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
10298
10299 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
10300 color mode is an integer number (it could be -1).
10301
8fe7d8c8
RS
103022003-09-22 Richard M. Stallman <rms@gnu.org>
10303
10304 * intervals.c (graft_intervals_into_buffer): Correct the main loop
10305 in the case where OVER is longer than UNDER.
10306
2f71b5ea
MY
103072003-09-22 Masatake YAMATO <jet@gyve.org>
10308
7146d1c1 10309 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 10310 `vertical_type'.
7146d1c1 10311
0c4da023
KS
103122003-09-21 Kim F. Storm <storm@cua.dk>
10313
10314 * frame.c (Vdefault_frame_scroll_bars): New variable.
10315 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
10316 (syms_of_frame): DEFVAR_LISP it, and initialize according to
10317 window-system default scroll bar position.
10318
b648413b
KS
10319 * window.c (Fwindow_scroll_bars): Doc fix.
10320
8f5b9e34
JD
103212003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10322
854c1a59 10323 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 10324
b0f23edf
RS
103252003-09-19 Richard M. Stallman <rms@gnu.org>
10326
10327 * atimer.h: Don't include lisp.h.
10328 (P_): Define it here (as well as elsewhere).
10329
10330 * print.c (Fprin1_to_string): Move the PRINTPREPARE
10331 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
10332
10333 * data.c (Fvariable_binding_locus): New function.
10334 (syms_of_data): defsubr it.
10335 (Flocal_variable_p): Delete duplicate call to indirect_variable.
10336
e1283999
DL
103372003-09-18 Dave Love <fx@gnu.org>
10338
ad5f3636
DL
10339 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
10340
e1283999
DL
10341 * process.c (Fnetwork_interface_info): Fix type error.
10342 (Fnetwork_interface_list): Doc fix.
10343 (read_process_output, read_process_output): Delete unused var.
10344
b8c7fd71
KS
103452003-09-17 Kim F. Storm <storm@cua.dk>
10346
10347 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
10348 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
10349 (Fnetwork_interface_info): Check that ifreq struct has required
10350 fields before accessing them; this requires that those fields are
10351 defined as macros, which may be too restrictive on some platforms,
10352 but it is better than failing on other platforms.
10353 (syms_of_process): Only defsubr above fns when included.
10354
11e0a411
DL
103552003-09-17 Dave Love <fx@gnu.org>
10356
10357 * unexalpha.c: Don't include varargs.h.
10358
e9c50801
KS
103592003-09-17 Kim F. Storm <storm@cua.dk>
10360
10361 * process.c (Fset_process_sentinel): Add sentinel to childp plist
10362 for network process.
10363 (socket_options): Add `:' prefix to option names. Add optbit field.
10364 (set_socket_option): Remove no_error arg and special handling of s < 0.
10365 Return 1<<optbit for known option, 0 for unknown.
10366 Do not interpret 0 as false for boolean option (only nil).
10367 Pass failed option and value to report_file_error.
7146d1c1 10368 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
10369 (Fset_network_process_option): New function to set just one option.
10370 (Fmake_network_process): Allow :coding arg to be a cons.
10371 Allow :server arg to be an integer specifying backlog size.
10372 Remove :options arg, and allow options to be specified directly
10373 as :KEY, VALUE pairs. Parse these options before binding socket.
10374 As before, :reuseaddr t is default for a server process, but this
10375 can now be disabled by specifying :reuseaddr nil.
10376 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
10377 (init_process): Availability of network options is now checked with
10378 simpler syntax (featurep 'make-network-process :OPTION); use loop to
10379 setup features.
10380 (syms_of_process): Fix defsubr's for the replaced functions.
10381
a0fc3644
DL
103822003-09-16 Dave Love <fx@gnu.org>
10383
10384 * Makefile.in: Depend on coding.h.
10385
6df2a645
KS
103862003-09-14 Kim F. Storm <storm@cua.dk>
10387
10388 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
10389 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
10390 (syms_of_process): Defsubr them.
10391
10392 * config.in: Regenerate.
7146d1c1
SM
10393
103942003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10395
10396 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
10397 * m/news-r6.h (XUNMARK): Remove.
10398 * m/mips.h (XUNMARK): Remove.
10399 * m/mips-siemens.h (XUNMARK): Remove.
10400 * m/iris4d.h (XUNMARK): Remove.
10401 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
10402
0930c1a1
SM
104032003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10404
31003b9e
SM
10405 * lisp.h (VALBITS): Don't remove 1 for the markbit.
10406 (union Lisp_Object): Use unsigned int for types. Remove markbit.
10407 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
10408 (XTYPE): Use unsigned right-shift.
10409 (XMARKBIT, XMARK, XUNMARK): Remove.
10410
0930c1a1
SM
10411 * alloc.c (init_intervals, init_symbol, init_marker):
10412 Don't preallocate anything.
10413 (Fgarbage_collect, mark_object): Ignore the markbit.
10414
10415 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
10416
19bb0fcd 104172003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
10418
10419 * xdisp.c (pint2hrstr): New function.
10420 (decode_mode_spec): Add `%i' and `%I' specs.
10421 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
10422 for `mode-line-format'.
10423
03bb6a06
AS
104242003-09-07 Andreas Schwab <schwab@suse.de>
10425
10426 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
10427 avoid warning.
10428
a6eeaa81 104292003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 10430
0930c1a1 10431 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 10432
ed159bbf
KS
104332003-09-03 Kim F. Storm <storm@cua.dk>
10434
10435 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
10436 change (superseded by 2002-08-30 change); the default blink-off
10437 cursor is now again "no cursor".
10438
fe64a394
JR
104392003-09-01 Jason Rumney <jasonr@gnu.org>
10440
10441 * makefile.w32-in (alloca.o): Remove.
10442 (coding.o): Depend on intervals.h
10443 (emacs.o, bytecode.o): Depend on window.h
10444
c0175e24
DL
104452003-09-01 Dave Love <fx@gnu.org>
10446
10447 * Makefile.in (alloca.o): Remove commands.
10448 (coding.o): Depend on intervals.h composite.h window.h.
10449 (emacs.o): Depend on window.h keyboard.h keymap.h.
10450 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
10451 (bytecode.o): Depend on window.h.
10452
a24d4cb2
JR
104532003-08-31 Jason Rumney <jasonr@gnu.org>
10454
4bc2315e
JR
10455 * w32term.c (w32_per_char_metric): Allow cached metrics to be
10456 returned even when font_type is unknown.
10457
a24d4cb2
JR
10458 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
10459
9d35adc7
JD
104602003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10461
10462 * xterm.c (x_term_init): Initialize new fields in x_display_info.
10463
10464 * xterm.h (struct x_display_info): Add red/green/blue_bits and
10465 *_offset.
10466
10467 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
10468 calculate pixel value.
10469
6f68b035
GM
104702003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
10471
0930c1a1
SM
10472 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
10473 Don't tell redisplay display is accurate when it's actually been
10474 paused for pending input.
6f68b035 10475
4828b4d7
RS
104762003-08-29 Richard M. Stallman <rms@gnu.org>
10477
10478 * dispnew.c (adjust_glyph_matrix): Call window_box
10479 whenever W is nonzero.
10480
10481 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10482 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 10483 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
10484 Use indirect_variable to trace thru variable aliases.
10485
10486 * config.in: Updated.
10487
10488 * callint.c (Fcall_interactively): Save and restore
10489 Vthis_command, Vthis_original_command, real_this_command,
10490 and current_kboard->Vlast_command.
10491
10492 * abbrev.c (Fexpand_abbrev): Insert before deleting.
10493
e019878d
GM
104942003-08-29 Gerd Moellmann <gerd@gnu.org>
10495
10496 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
10497
85478bc6
KH
104982003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
10499
0930c1a1 10500 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
10501 (decode_coding_sjis_big5): Likewise.
10502
07ce82d3
JR
105032003-08-27 Jason Rumney <jasonr@gnu.org>
10504
d3703de3
JR
10505 * w32.c (sys_pipe): Protect against file descriptor overflow.
10506
ee4a01d1
JR
10507 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
10508
07ce82d3
JR
10509 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
10510
a64387ee 105112003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
10512
10513 * xfns.c (Vgtk_version_string): New variable.
10514 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
10515
a6eeaa81 105162003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 10517
0930c1a1 10518 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 10519
5459e42a
EZ
10520 * Makefile.in (msdos.o): Depend on intervals.h.
10521
0930c1a1 10522 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 10523
231d6cfb
JD
105242003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10525
10526 * xterm.h (struct x_display_info): New fields: client_leader_window
10527 and Xatom_wm_client_leader.
10528
10529 * xterm.c (x_initialize): Move call to x_session_initialize to ...
10530 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
10531
10532 * xsmfns.c (create_client_leader_window): New function.
10533 (x_session_initialize): Call create_client_leader_window, take
10534 dpyinfo as argument.
10535
10536 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
10537
10538 * Makefile.in (xsmfns.o): Add more depenedencies.
10539
afa88464
DL
105402003-08-21 Dave Love <fx@gnu.org>
10541
10542 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
10543
f730033e
KH
105442003-08-21 Kenichi Handa <handa@m17n.org>
10545
10546 * term.c (term_init): Fix previous change; don't rely on the
10547 length of `buffer' if TERMINFO is defined.
10548
6dca786c
DL
105492003-08-20 Dave Love <fx@gnu.org>
10550
10551 * atimer.h: Include lisp.h.
10552
10553 * lisp.h (EMACS_LISP_H): New.
10554 (popup_activated_flag): Don't declare.
10555
10556 * alloca.c: Some merging with gnulib. Change logic and doc
10557 concerning (x)malloc/(x)free -- no longer Emacs-specific.
10558 [DO_BLOCK_INPUT]: Don't include lisp.h.
10559 (xmalloc, xfree): Declare.
10560 (malloc): Don't declare.
10561
0930c1a1 10562 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
10563 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
10564 atimer.h, blockinput.h.
10565
10566 * alloc.c (lisp_align_malloc): Change type of `aligned'.
10567
78819ebb 10568 * alloca.s: Remove.
6dca786c 10569
3a06a6d9
RS
105702003-08-19 Gerd Moellmann <gerd@gnu.org>
10571
10572 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
10573 use -lncurses.
10574
10575 * term.c (term_init): Use a buffer of size 4096 for tgetent since
10576 FreeBSD returns something longer than 2044. Abort if the end of
10577 the buffer is overwritten.
10578
27eeee55
MB
105792003-08-19 Miles Bader <miles@gnu.org>
10580
10581 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
10582
2f297815
GM
105832003-08-19 Gerd Moellmann <gerd@gnu.org>
10584
f4446bbf
GM
10585 * alloc.c (lisp_align_malloc): Check for memory full when
10586 allocating ablocks, which also avoids freeing a pointer into an
10587 ablocks structure.
10588
10589 * puresize.h (BASE_PURESIZE): Increase to 1100000.
10590
0930c1a1 10591 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 10592
0e7d7aae
RS
105932003-08-16 Richard M. Stallman <rms@gnu.org>
10594
10595 * editfns.c (Fencode_time): Doc fix.
10596
105972003-08-16 David Ponce <david@dponce.com>
10598
10599 * fileio.c (Fwrite_region): Fix conditional expression to issue
10600 the right message.
10601
b6189c3b 106022003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
10603
10604 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 10605 Set default value to 1.
0e7d7aae 10606
5d551295
KH
106072003-08-15 Kenichi Handa <handa@m17n.org>
10608
10609 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
10610 what autoscaled.
10611 (best_matching_font): Once we find a better scalable font, set
10612 non_scalable_has_exact_height_p to 1.
10613 (try_font_list): Call try_alternative_families to try any family
10614 with the given registry.
10615
1661e56b
AS
106162003-08-09 Andreas Schwab <schwab@suse.de>
10617
f29181dc
AS
10618 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
10619
1661e56b
AS
10620 * print.c (print_string): Fix printing of multibyte string with
10621 nontrivial printcharfun.
10622
465aa50a
JD
106232003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10624
10625 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
10626
10627 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
10628
e430e5ba
KH
106292003-07-31 Kenichi Handa <handa@m17n.org>
10630
10631 * process.c (read_process_output): Return the actually read bytes
10632 instead of the result of decoding.
10633
97e7188e
KH
106342003-07-31 Kenichi Handa <handa@m17n.org>
10635
10636 * xterm.h (struct x_bitmap_record): New member have_mask.
10637
10638 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
10639 to 0.
10640 (x_create_bitmap_from_file): Likewise.
10641 (x_destroy_bitmap): Check have_mask member before freeing a mask.
10642 (x_destroy_all_bitmaps): Likewise.
10643 (x_create_bitmap_mask): Set have_mask member to 1.
10644
b53094d6
RS
106452003-07-30 Richard M. Stallman <rms@gnu.org>
10646
10647 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
10648
631f2082
JD
106492003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10650
10651 * gtkutil.c (xg_mark_data): Update calls to mark_object.
10652
c855f2ca
RS
106532003-07-29 Richard M. Stallman <rms@gnu.org>
10654
10655 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
10656 Conditionalize XIM code on HAVE_XIM.
10657
10658 * fns.c (Fclear_string): New function.
10659 (syms_of_fns): defsubr it.
10660
b6189c3b 106612003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 10662
0930c1a1 10663 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 10664
29ea8ae9
SM
106652003-07-22 Stefan Monnier <monnier@cs.yale.edu>
10666
10667 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
10668
10669 * buffer.c (delete_all_overlays): New function.
10670 * buffer.h (delete_all_overlays): Declare.
10671 * coding.c (run_pre_post_conversion_on_str):
10672 * print.c (temp_output_buffer_setup):
10673 * fileio.c (Finsert_file_contents):
10674 * minibuf.c (get_minibuffer): Use it.
10675
1dd7ccf2
AC
106762003-07-22 Andrew Choi <akochoi@shaw.ca>
10677
10678 * unexmacosx.c (unexec_regions_sort_compare):
10679 (unexec_regions_merge): New functions. Sort and merge unexec
10680 regions before dumping them.
10681
f57bd967
DL
106822003-07-22 Dave Love <fx@gnu.org>
10683
10684 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
10685
7cdee936
SM
106862003-07-21 Stefan Monnier <monnier@cs.yale.edu>
10687
10688 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
10689 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
10690 MARKBIT as the gcmarkbit for strings.
10691
e50886d3
RS
106922003-07-21 Richard M. Stallman <rms@gnu.org>
10693
10694 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
10695
29ea8ae9 10696 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
10697 (syms_of_fns): Corresponding change.
10698
10699 * alloc.c (syms_of_alloc): Doc fixes.
10700
107012003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
10702
10703 * s/netbsd.h: Use -Wl syntax.
10704
fdc39b59
RS
107052003-07-17 Richard M. Stallman <rms@gnu.org>
10706
10707 * xterm.c (xim_initialize): Redo 6/24 change.
10708
9c53385f
SM
107092003-07-15 Stefan Monnier <monnier@cs.yale.edu>
10710
10711 * buffer.c (copy_overlays): Use EMACS_INT for positions.
10712 (Fswitch_to_buffer): Don't signal an error when switching to the same
10713 buffer in a dedicated window.
10714
10715 * alloc.c: Use bitmaps for cons, as was done for floats.
10716 (init_float, init_cons): Let the normal code allocate the first block.
10717 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
10718 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
10719 New macros.
10720 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
10721 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
10722 (live_cons_p): Check the pointer is not past the `conses' array.
10723 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
10724 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
10725 (survives_gc_p): Use CONS_MARKED_P and simplify.
10726 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
10727
dde13196
PE
107282003-07-13 Paul Eggert <eggert@twinsun.com>
10729
10730 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
10731 puts it into BSS instead, at least on Solaris 8 and 9.
10732 This is a valid optimization, and it may occur on other platforms,
10733 so Emacs should not assume that initializing a static variable to
10734 zero puts it into data.
10735 * alloc.c (pure, staticvec):
10736 Initialize these arrays to nonzero, so that they're not
10737 put into BSS by that optimization.
10738
a801bc34
SM
107392003-07-13 Stefan Monnier <monnier@cs.yale.edu>
10740
10741 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
10742 (lisp_align_malloc): Use posix_memalign is available.
10743 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
10744 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
10745 for consistency. Update users.
10746
0c8b2afa
RS
107472003-07-13 Richard M. Stallman <rms@gnu.org>
10748
10749 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
10750
668c2ab0
JB
107512003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
10752
10753 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
10754 and use the Gtk+ function gtk_window_icon_from_file if available.
10755
10756 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
10757 handle mask of bitmaps.
10758 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
10759 mask property.
10760 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
10761
10762 * xterm.h (xg_set_icon): New function.
10763
800bebe3
RS
107642003-07-12 Paul Eggert <eggert@twinsun.com>
10765
10766 * unexelf.c (unexec): Consider a section to precede the .bss
10767 section if its addresses overlap that of .bss.
10768
69e38995
RS
107692003-07-12 Richard M. Stallman <rms@gnu.org>
10770
10771 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
10772
10773 * config.in (HAVE_CRTIN): Add #undef.
10774 (INLINE): Really inline only if OPTIMIZE is defined.
10775
10776 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
10777 END_FILES_1.
10778 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 10779 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
10780
10781 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
10782 (TERMINFO): Define.
10783 (LIBS_TERMCAP): Define.
10784 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
10785
10786 * xfns.c: Include libpng/png.h instead of png.h.
10787
f1d0c238
AS
107882003-07-11 Andreas Schwab <schwab@suse.de>
10789
10790 * buffer.c (modify_overlay): Update prototype.
10791 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
10792 Likewise.
10793
5f6bf5fe
SM
107942003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10795
10796 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
10797 (struct interval): Move to intervals.h.
10798 (struct Lisp_Marker): Use EMACS_INT for position info.
10799 (forward_point): Remove prototype of defunct function.
10800 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
10801 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
10802 (syms_of_textprop, set_text_properties): Remove prototypes that are
10803 already in intervals.h.
10804
10805 * intervals.h (struct interval): Move from lisp.h.
10806 Use EMACS_INT for position and size info.
10807
10808 * coding.c: Include intervals.h for Fset_text_properties.
10809
10810 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10811 position and length information.
10812
2765b457
SM
108132003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10814
10815 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10816 position and length information.
10817
2410d73a
SM
108182003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10819
10820 Change overlays_after and overlays_before so the overlays themselves
10821 are linked into lists, rather than using cons cells. After all each
10822 Lisp_Misc already occupies 5 words, so we can add a `next' field to
10823 Lisp_Overlay for free and save up one cons cell per overlay (not
10824 to mention one indirection when traversing the list of overlay).
10825
10826 * lisp.h (struct Lisp_Overlay): New field `next'.
10827
10828 * buffer.h (struct buffer): Change overlays_before and overlays_after
10829 from Lisp lists of overlays to pointers to overlays.
10830
10831 * buffer.c (overlay_strings, recenter_overlay_lists):
10832 Fix typo in eassert in last commit.
10833 (unchain_overlay): New function.
10834 (add_overlay_mod_hooklist): Use AREF.
10835 (copy_overlays, reset_buffer, overlays_at, overlays_in)
10836 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
10837 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
10838 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
10839 (report_overlay_modification, evaporate_overlays, init_buffer_once):
10840 Adjust to new type of overlays_(before|after).
10841
10842 * alloc.c (mark_object): Mark the new `next' field of overlays.
10843 (mark_buffer): Manually mark the overlays_(after|before) fields.
10844
10845 * coding.c (run_pre_post_conversion_on_str):
10846 * editfns.c (overlays_around):
10847 * xdisp.c (load_overlay_strings):
10848 * fileio.c (Finsert_file_contents):
10849 * indent.c (current_column):
10850 * insdel.c (signal_before_change, signal_after_change):
10851 * intervals.c (set_point_both):
10852 * print.c (temp_output_buffer_setup): Use new type for
10853 overlays_(before|after).
10854
04812929
SM
108552003-07-08 Stefan Monnier <monnier@cs.yale.edu>
10856
10857 * buffer.c (report_overlay_modification): Don't run hooks while
10858 traversing the list of overlays.
10859
10860 * buffer.h (struct buffer): Use an int for overlay_center.
10861 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10862 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10863
10864 * buffer.c (reset_buffer, recenter_overlay_lists)
10865 (adjust_overlays_for_insert, adjust_overlays_for_delete)
10866 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
10867 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
10868 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10869 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10870
10871 * xdisp.c (fast_find_position): Remove unused var.
10872
10873 * cmds.c (Qexpand_abbrev): New sym.
10874 (syms_of_cmds): Initialize it.
10875 (internal_self_insert): Use it to call expand-abbrev.
10876
2e7ecf15
KS
108772003-07-09 Kim F. Storm <storm@cua.dk>
10878
f9711de4 10879 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 10880 was configured with --without-xim.
42f81f64 10881 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 10882
c6de56a0
RS
108832003-07-07 Richard M. Stallman <rms@gnu.org>
10884
10885 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
10886
10887 * alloc.c (Fgarbage_collect): Doc fix.
10888
b6189c3b 108892003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
10890
10891 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
10892
bfe1a3f7
SM
108932003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10894
04812929
SM
10895 * minibuf.c (read_minibuf): UNGCPRO before returning.
10896 (Ftry_completion, Fall_completions): Doc fix.
10897
bfe1a3f7
SM
10898 * alloc.c (live_float_p): Check that p is not past the `floats' array,
10899 now that `floats' is not the last element of the struct any more.
10900
ee79d1aa
JR
109012003-07-06 Jason Rumney <jasonr@gnu.org>
10902
10903 * w32term.h (ClipboardSequence_Proc): New type.
10904
10905 * w32fns.c (clipboard_sequence_fn): New variable.
10906 (globals_of_w32fns): Initialize it.
10907
10908 * w32select.c (last_clipboard_sequence_number): New variable.
10909 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
10910 number if possible.
10911
49723c04
SM
109122003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10913
4698665f
SM
10914 * m/amdx86-64.h (MARKBIT):
10915 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
10916 MARKBIT and ARRAY_MARK_FLAG any more.
10917
10918 * m/hp800.h (XSETMARKBIT):
10919 * m/sr2k.h (XSETMARKBIT):
10920 * lisp.h (XSETMARKBIT): Remove unused macro.
10921
49723c04
SM
10922 * lisp.h (mark_object): Change prototype.
10923
10924 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
10925 (last_marked): Change accordingly.
10926 (mark_interval, mark_maybe_object, mark_maybe_pointer)
10927 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
10928 (mark_buffer): Update calls to mark_object.
10929
10930 * bytecode.c (mark_byte_stack):
10931 * fns.c (sweep_weak_table):
10932 * keyboard.c (mark_kboards): Update calls to mark_object.
10933
1d660eca
JR
109342003-07-06 Jason Rumney <jasonr@gnu.org>
10935
10936 * alloc.c (struct ablock): Only include padding when there is some.
10937
618b5ae4
SM
109382003-07-04 Stefan Monnier <monnier@cs.yale.edu>
10939
10940 * alloc.c (ALIGN): Add casts to simplify usage.
10941 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
10942 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
10943 (struct ablock, struct ablocks): New types.
10944 (free_ablock): New global var.
10945 (lisp_align_malloc, lisp_align_free): New functions.
10946 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
10947 (struct float_block): Reorder and add gcmarkbits.
10948 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
10949 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
10950 (init_float, make_float): Use lisp_align_malloc.
10951 (free_float, live_float_p): Don't use `type' any more.
10952 (make_float): Use FLOAT_UNMARK to access to mark bit.
10953 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
10954 Use FLOAT_MARKED_P to access the mark bit.
10955 (pure_alloc): Simplify use of ALIGN.
10956 (mark_object): Use FLOAT_MARK to access the mark bit.
10957 (gc_sweep): Use new macros to access the float's mark bit.
10958 (init_alloc_once): Init free_ablock.
10959
10960 * lisp.h (struct Lisp_Float): Remove unused field `type'.
10961
3ef06d12
SM
109622003-06-27 Stefan Monnier <monnier@cs.yale.edu>
10963
10964 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
10965 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
10966 (allocate_buffer): Move.
10967 (string_bytes): Don't mask markbit of `size_byte'.
10968 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
10969 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
10970 Use the `size' field of buffers (rather than the `name' field) for
10971 the mark bit, as is done for all other vectorlike objects.
10972 Use the new macros to access the mark bit of vectorlike objects.
10973
e81043aa
RS
109742003-06-26 Richard M. Stallman <rms@gnu.org>
10975
10976 * puresize.h (BASE_PURESIZE): Increment base size.
10977
10978 * xdisp.c (fast_find_position): Enable Gerd's new definition.
10979
10980 * xterm.c (xim_initialize): Undo previous change.
10981
2d0834cc
SM
109822003-06-26 Stefan Monnier <monnier@cs.yale.edu>
10983
10984 * alloc.c (survives_gc_p): Simplify.
10985
10986 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
10987
10988 * window.c (Fset_window_dedicated_p): Simplify.
10989 (display_buffer_1): Don't raise the win from which minibuf was entered.
10990 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
10991 (Fminibuffer_selected_window): Simplify.
10992
10993 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
10994
10995 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
10996 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
10997
10998 * insdel.c (check_markers, adjust_markers_for_delete)
10999 (adjust_markers_for_insert, adjust_markers_for_replace)
11000 (prepare_to_modify_buffer, RESTORE_VALUE):
11001 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
11002 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
11003 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
11004 * alloc.c (Fmake_marker, free_marker, gc_sweep):
11005 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
11006 * editfns.c (save_excursion_restore, transpose_markers):
11007 * window.c (delete_window):
11008 * xdisp.c (message_dolog): Update for new types.
11009
d54ae3d8
JD
110102003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11011
a5f696ac
JD
11012 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
11013 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 11014 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
11015
11016 * frame.c (make_frame): Initialize default_face_done_p.
11017
11018 * frame.h (struct frame): Add default_face_done_p.
11019
d54ae3d8
JD
11020 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
11021 will be defined.
11022
2336fe58
SM
110232003-06-25 Stefan Monnier <monnier@cs.yale.edu>
11024
11025 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
11026 Initialize the new field `gcmarkbit'.
11027 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
11028 (mark_interval_tree): Don't mark the tree separately from the nodes.
11029 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
11030 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11031 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
11032
11033 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
11034 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
11035 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
11036 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
11037 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
11038
bcea31c2
DL
110392003-06-24 Dave Love <fx@gnu.org>
11040
11041 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
11042
11043 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
11044 from gnulib.
11045
2601f59e
RS
110462003-06-21 Richard M. Stallman <rms@gnu.org>
11047
11048 * fileio.c (Fwrite_region): Alternate messages
11049 for append and partial write.
11050
11051 * keyboard.c (read_key_sequence): When converting upcase fn key to
11052 downcase, update fkey and keytran so `backspace' gets translated.
11053
11054 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
11055
11056 * process.c (wait_reading_process_input): Don't signal SIGIO
11057 in batch mode.
11058
b5d2c621
KH
110592003-06-17 Kenichi Handa <handa@m17n.org>
11060
11061 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
11062 composite.h.
11063
11064 * xselect.c: Don't include charset.h, coding.h, composite.h.
11065 (Qforeign_selection): New variable.
11066 (syms_of_xselect): Intern and static it.
11067 (selection_data_to_lisp_data): Return a unibyte string made from
11068 data with `foreign-selection' text property.
11069
6793bc63
SM
110702003-06-15 Stefan Monnier <monnier@cs.yale.edu>
11071
11072 * termhooks.h (EVENT_INIT): New macro.
11073
11074 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
11075
11076 * alloc.c (mark_kboards): Move to keyboard.c.
11077
11078 * keyboard.c (record_asynch_buffer_change, read_avail_input):
11079 * xterm.c (x_dispatch_event):
11080 * xmenu.c (find_and_call_menu_selection):
11081 * xdisp.c (handle_tool_bar_click):
11082 * w32menu.c (menubar_selection_callback):
11083 * sysdep.c (kbd_input_ast, read_input_waiting):
11084 * msdos.c (dos_rawgetc):
11085 * macterm.c (mac_check_for_quit_char):
11086 * macmenu.c (menubar_selection_callback):
11087 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
11088 data to kbd_buffer_store_event.
11089
b3ea810c
KS
110902003-06-15 Kim F. Storm <storm@cua.dk>
11091
11092 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 11093 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 11094
b8f75eda
KG
110952003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11096
11097 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
11098
ba92ce48
KH
110992003-06-12 Kenichi Handa <handa@m17n.org>
11100
11101 * fileio.c (Fwrite_region): Save and restore restriction.
11102
b80263be
DL
111032003-06-12 Dave Love <fx@gnu.org>
11104
11105 * alloca.c (alloca): Declare arg as size_t.
11106
6793bc63
SM
11107 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
11108 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 11109
b23c0a83
DL
111102003-06-11 Dave Love <fx@gnu.org>
11111
11112 * search.c (shrink_regexp_cache): Use xrealloc.
11113 (syms_of_search): Use xmalloc.
11114
700e47c2
KS
111152003-06-10 Kim F. Storm <storm@cua.dk>
11116
11117 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
11118 Adjust phys_cursor.x to be relative to window box, rather than
11119 text area before checking -- to ensure cursor is redrawn when
11120 exposing window.
11121 Note: This also fixes a similar (older) bug if display margins
11122 are present.
11123
f11aa0b2
KH
111242003-06-06 Kenichi Handa <handa@m17n.org>
11125
11126 * coding.c (encoding_buffer_size): If coding->type is
11127 coding_type_ccl, double magnification on CRLF encoding.
11128
3d143690
JR
111292003-06-06 Jason Rumney <jasonr@gnu.org>
11130
11131 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
11132 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
11133
11134 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
11135 Mac too.
11136
f16205ca
DL
111372003-06-05 Dave Love <fx@gnu.org>
11138
b23c0a83
DL
11139 * strftime.c: Merge changes from gnulib.
11140
f16205ca
DL
11141 * mktime.c (__mktime_internal): Merge changes from gnulib
11142 involving year 69 and dst2.
11143
11144 Changes to merge with gnulib version and be consistent with the
11145 autoconf test:
11146
6793bc63
SM
11147 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
11148 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
11149 [HAVE_LOCALE_H]: Include locale.h.
11150 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
11151
9b87a0bc
KS
111522003-06-05 Kim F. Storm <storm@cua.dk>
11153
11154 * window.c (coordinates_in_window): Convert X and Y to window
11155 relative coordinates inside mode-line and header-line parts.
11156 Convert X and Y to margin area relative coordinates inside left
11157 and right display margin parts.
11158
5a8a15ec
JR
111592003-06-05 Jason Rumney <jasonr@gnu.org>
11160
11161 * w32fns.c (add_system_logical_colors_to_map): New function.
11162 (Fx_open_connection): Use it.
11163
01ed8ff1
SM
111642003-06-04 Stefan Monnier <monnier@cs.yale.edu>
11165
11166 * process.c (allocate_pty): Revert part of the previous patch.
11167 (Faccept_process_output): Simplify.
11168
b427b65d
JR
111692003-06-04 Jason Rumney <jasonr@gnu.org>
11170
11171 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
11172
11173 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
11174 (lispy_mouse_wheel_names): Remove.
11175 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
11176 Always define drag_and_drop_syms.
11177
11178 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
11179 WHEEL_EVENT events.
11180
914a8c47
SM
111812003-06-03 Stefan Monnier <monnier@cs.yale.edu>
11182
01ed8ff1
SM
11183 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
11184
914a8c47
SM
11185 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
11186
adcb132c
JD
111872003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11188
11189 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
11190 menu item label.
11191
be781fa7
RS
111922003-06-03 Richard M. Stallman <rms@gnu.org>
11193
11194 * window.c (Fwindow_edges): Doc fix.
11195 (Fwindow_pixel_edges, Fwindow_inside_edges)
11196 (Fwindow_inside_pixel_edges): New functions.
11197 (syms_of_window): defsubr them.
11198
11199 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
11200 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
11201
914a8c47
SM
112022003-06-02 Stefan Monnier <monnier@cs.yale.edu>
11203
11204 * dispnew.c (Fsit_for): Don't lie about the number of args.
11205
5b07197a
DL
112062003-06-02 Dave Love <fx@gnu.org>
11207
11208 * callproc.c: Use HAVE_FCNTL_H, not USG5.
11209 (syms_of_callproc) <process-environment>: Doc fix.
11210
11211 * doc.c: Use HAVE_FCNTL_H, not USG5.
11212
11213 * xfaces.c (font_rescale_ratio): Fix for K&R.
11214
11215 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
11216
11217 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
11218
11219 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
11220
11221 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
11222 (xg_create_frame_widgets): Use ENCODE_UTF_8.
11223
d7107586 11224 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
11225
11226 * xmenu.c (ENCODE_MENU_STRING): New.
11227 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
11228 Use it.
11229
11230 * coding.h (ENCODE_UTF_8): New.
11231 (Qutf_8): Declare.
11232
11233 * coding.c (Qutf_8): New.
11234 (syms_of_coding): Intern it.
11235
11236 * fns.c: Doc fixes.
11237
7335b336
KH
112382003-06-02 Kenichi Handa <handa@m17n.org>
11239
11240 * buffer.c (Fset_buffer_multibyte): Fix previous change.
11241
914a8c47
SM
112422003-06-01 Stefan Monnier <monnier@cs.yale.edu>
11243
11244 * lread.c (openp): Make sure STR is a string.
11245
9862c135
JR
112462003-06-01 David Ponce <david@dponce.com>
11247
cab27d04 11248 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
11249 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
11250
11251 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
11252 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
11253 (discard_mouse_events): Discard WHEEL_EVENT events too.
11254 (lispy_wheel_names, wheel_syms): New.
11255 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 11256 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 11257 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
11258
11259 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
11260 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11261 WHEEL_EVENT events.
11262
f984e73e
JPW
112632003-05-31 John Paul Wallington <jpw@gnu.org>
11264
11265 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
11266 timer are in lisp/emacs-lisp.
11267
1efcd78f
KH
112682003-05-31 Kenichi Handa <handa@m17n.org>
11269
458c8af4
KH
11270 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
11271 region when a buffer is changed to unibyte.
11272
1efcd78f
KH
11273 * charset.h (VALID_LEADING_CODE_P): New macro.
11274 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
11275
778e2804
KH
11276 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
11277 is nonzero, accept multibyte form of eight-bit-control chars.
11278 (decode_composition_emacs_mule): Likewise.
11279 (decode_coding_emacs_mule): Likewise.
11280 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
11281 multibyte form of eight-bit-control chars.
11282
11283 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
11284 (Finsert_file_contents): If coding-system-for-read is bound to
11285 Qauto_save_coding, use the coding system emacs-mule with special
11286 setting for recovering a file.
11287 (choose_write_coding_system): On auto saving, use the coding
11288 system emacs-mule with special setting for auto saving.
11289 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
11290
034060e4
KH
112912003-05-30 Kenichi Handa <handa@m17n.org>
11292
11293 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
11294 properly before calling ccl_driver.
11295
778e2804 11296 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 11297
cab27d04 11298 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
11299 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
11300 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
11301
595f5aa5
GM
113022003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
11303
11304 * xfaces.c (realize_default_face): Do not abort if lface is
11305 non-existent - reverts change from 2003-05-19.
11306
103e0180
KH
113072003-05-29 Kenichi Handa <handa@m17n.org>
11308
11309 * coding.c (decode_coding_iso2022): Pay attention to the byte
11310 sequence of CTEXT extended segment, and retain those bytes as is.
11311
113122003-05-28 Kenichi Handa <handa@m17n.org>
11313
cab27d04 11314 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
11315 of CODING_REPLACEMENT_CHARACTER.
11316 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
11317 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
11318 check this flag on encoding.
cab27d04
SM
11319 (encode_coding_sjis_big5):
11320 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
11321 (Fset_terminal_coding_system_internal):
11322 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
11323 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
11324
11325 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
11326 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
11327 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
11328
ff6a3bfb 113292003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 11330
ff6a3bfb
RS
11331 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
11332
11333 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 11334
1963c428
KS
113352003-05-28 Kim F. Storm <storm@cua.dk>
11336
11337 * xdisp.c (expose_window): Fix error in calculation of
11338 window relative coordinates of area to redisplay.
11339
2b5d4601
JR
113402003-05-27 Jason Rumney <jasonr@gnu.org>
11341
11342 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
11343
1c64a4a2
JB
113442003-05-27 David Ponce <david@dponce.com>
11345
11346 Handle W32 mouse wheel events as mouse click events, like in X.
11347
11348 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
11349 MOUSE_WHEEL_EVENT anymore.
11350
11351 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
11352 Scrolling down/up the mouse wheel is respectively mapped to mouse
11353 button 4 and 5.
11354 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11355 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
11356 WM_MOUSEWHEEL events.
11357
2d031b89
AS
113582003-05-27 Andreas Schwab <schwab@suse.de>
11359
20464fdf
AS
11360 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
11361
2d031b89
AS
11362 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
11363 partially visible line.
11364
11365 * alloc.c (Fgarbage_collect): Fix last change.
11366
97bc76d4
JPW
113672003-05-26 John Paul Wallington <jpw@gnu.org>
11368
11369 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
11370
56613f06
SM
113712003-05-25 Stefan Monnier <monnier@cs.yale.edu>
11372
11373 * window.c (Fset_window_buffer): Add type of `keep_margins'.
11374 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
11375
11376 * window.h (window_box_text_cols): Declare.
11377
11378 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
11379 (x_draw_vertical_border): Remove unused var `f'.
11380
11381 * xfaces.c (build_scalable_font_name): Remove `unused var
11382 pixel_size' warning.
11383
11384 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
11385
11386 * unexelf.c (unexec): Remove `unused var n' warning.
11387
11388 * strftime.c (my_strftime_localtime_r): Remove `defined but
11389 unused' warning.
11390
11391 * process.c (allocate_pty): Remove `unused var stb' and
11392 `cp might be used uninitialized' warnings.
11393
11394 * dispnew.c (mode_line_string): Remove unused var `f'.
11395
11396 * coding.c (find_safe_codings): Remove unused var `i'.
11397
11398 * bytecode.c (Fbyte_code): Remove `unused val' warning.
11399
11400 * buffer.c (Fkill_buffer): Remove unused var `list'.
11401
11402 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
11403
93421a1f
JD
114042003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11405
11406 * frame.c (make_frame): Condition want_fullscreen with
11407 HAVE_WINDOW_SYSTEM.
11408
c4b8aebc
JB
114092003-05-25 Juanma Barranquero <lektu@terra.es>
11410
11411 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
11412 (Fwindow_scroll_bars): Fix typo in docstring.
11413
0416870b
KS
114142003-05-24 Kim F. Storm <storm@cua.dk>
11415
11416 The following changes serve several purposes:
11417
11418 1) Swap the position of fringes and display margins in windows, i.e.
11419 the fringes are now displayed between the margins and the text area
11420 (by default).
11421
11422 2) Allow fringe and scroll bar parameters to be set per-buffer and
11423 per-window (like display margins). Such settings are now stored
11424 in window configurations, preserved when frames are resized, and
9018a88e 11425 copied when windows are split vertically or horizontally.
0416870b
KS
11426 Several bugs related to display margins have been fixed.
11427
11428 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 11429
0416870b
KS
11430 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
11431 rather than FRAME_WIDTH (FRAME_FONT (f)).
11432
11433 5) Introduce a consistent naming of variables, members and macros
11434 depending on whether their value is measured in pixels or in
11435 canonical columns/lines. Pixel dimensions are named *_width and
11436 *_height, while canonical columns/lines are named *_cols and
11437 *_lines. Pixel positions are named *_x and *_y, while column/line
11438 positions are named *_col and *_line.
11439
11440 6) Consolidate more of the X, W32, and MAC gui code by moving
11441 common data into struct frame, and generalize it for the non-gui
11442 case by using suitable defaults.
11443
11444 7) Cleanup and consolidate the macros controlling frame and window
11445 layout into frame.h and window.h, and generalize the use of the
11446 various window_box_* functions (enhanced to handle the new fringe
11447 position and the per-window fringe and scroll bar settings).
11448
11449 * frame.h (struct frame): Rename members height to text_lines,
11450 width to text_cols, window_height to total_lines, window_width to
11451 total_cols, new_height to new_text_lines, new_width to
11452 new_text_cols. All uses changed.
11453 (struct frame): New members which consolidate common members of
11454 x_output, w32_output, and mac_output structures: left_pos,
11455 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
11456 win_gravity, size_hint_flags, border_width, internal_border_width,
11457 line_height, fringe_cols, left_fringe_width, right_fringe_width,
11458 want_fullscreen. All uses changed.
11459 (struct frame): New member column_width contaning the canonical
11460 column width, analogue to line_height. All uses changed.
11461 (struct frame): Rename members scroll_bar_pixel_width to
11462 config_scroll_bar_width, and scroll_bar_cols to
11463 config_scroll_bar_cols. All uses changed.
11464 (struct frame): New member scroll_bar_actual_width which
11465 consolidates and renames the vertical_scroll_bar_extra member of
11466 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 11467 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
11468 from x/w32/macterm.h files. All uses changed. Also change code
11469 which referred to f->output_data...->pixel_height.
cab27d04 11470 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 11471 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 11472 which referred to f->output_data...->pixel_width.
cab27d04 11473 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 11474 Also change code which referred to f->height.
cab27d04 11475 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
11476 Also change code which referred to f->width.
11477 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
11478 to update new_text_lines and new_text_cols members directly.
cab27d04 11479 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 11480 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 11481 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
11482 FRAME_SCROLL_BAR_COLS. All uses changed.
11483 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 11484 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
11485 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
11486 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
11487 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
11488 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
11489 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
11490 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
11491 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
11492 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
11493 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
11494 Unconditionally return line_height member (it now has proper value
11495 also for non-window frames).
11496 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
11497 return new column_width member (rather than the default font width).
11498 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 11499 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
11500 from x/w32/macterm.h files. Unconditionally return corresponding
11501 member of frame structure (they now have proper values also for
11502 non-window frames).
cab27d04 11503 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
11504 Calculate return value from left and right widths.
11505 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
11506 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
11507 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
11508 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
11509 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
11510 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
11511 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 11512 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11513 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 11514 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11515 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 11516 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11517 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 11518 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 11519 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 11520 consolidated from x/mac/w32term.h.
cab27d04 11521 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 11522 consolidated from x/mac/w32term.h.
cab27d04 11523 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 11524 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11525 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
11526 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
11527
11528 * window.h (struct window): Rename members left to left_col,
11529 top to top_line, height to total_lines, width to total_cols,
11530 left_margin_width to left_margin_cols, right_margin_width to
11531 right_margin_cols, orig_height to orig_total_lines, orig_top to
11532 orig_top_line. All uses changed.
11533 (struct window): New members left_fringe_width, right_fringe_width,
11534 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
11535 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
11536 New macros primarily used to simplify other macros.
11537 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
11538 referred to XINT (w->width).
11539 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
11540 referred to XINT (w->height).
11541 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
11542 referred to XINT (w->width) * canon_x_unit.
11543 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
11544 referred to XINT (w->height) * canon_y_unit.
11545 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
11546 referred to XINT (w->left).
cab27d04 11547 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
11548 all uses and code that referred to XINT (w->left) + XINT (w->width).
11549 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
11550 referred to XINT (w->top).
11551 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
11552 referred to XINT (w->top) + XINT (w->height).
11553 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
11554 referred to XINT (w->left) * canon_x_unit.
11555 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
11556 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
11557 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
11558 referred to XINT (w->top) * canon_y_unit.
11559 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
11560 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
11561 (WINDOW_LEFTMOST_P): New macro.
cab27d04 11562 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 11563 All uses changed.
cab27d04 11564 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 11565 All uses changed.
cab27d04 11566 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
11567 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
11568 Do not exclude left fringe width.
cab27d04 11569 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
11570 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
11571 Do not exclude fringe widths.
11572 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
11573 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
11574 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
11575 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
11576 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
11577 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
11578 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
11579 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
11580 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
11581 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
11582 New macros. Change code which referenced corresponding
11583 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
11584 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
11585 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
11586 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
11587 allow per-window scroll-bar settings.
11588 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
11589 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
11590 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
11591 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
11592 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
11593 FRAME_SCROLL_BAR_WIDTH.
11594 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 11595 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 11596 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 11597 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 11598 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 11599 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 11600 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
11601 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
11602 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11603 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
11604 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
11605 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 11606 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 11607 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
11608 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
11609 (window_from_coordinates): Update prototype.
11610 (Fset_window_buffer): Update EXFUN.
11611 (set_window_buffer): Update prototype.
9018a88e 11612
0416870b 11613 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 11614 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
11615 changed.
11616 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
11617 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
11618 internal_border_width is now set to 0 for non-window frames.
11619 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
11620 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
11621 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
11622 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
11623 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
11624 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11625 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
11626 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
11627 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 11628 Move to window.h and renamed [see window.h changes].
0416870b
KS
11629 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
11630 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
11631 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
11632 Use WINDOW_TOTAL_LINES.
0416870b
KS
11633 (frame_update_line_height): Remove prototype.
11634
11635 * buffer.h (struct buffer): Rename members measured in columns:
11636 left_margin_width to left_margin_cols, right_margin_width to
11637 right_margin_cols. All uses changed.
11638 New members left_fringe_width, right_fringe_width,
11639 fringes_outside_margins for per-buffer fringe settings.
11640 New members scroll_bar_width and vertical_scroll_bar_type for
11641 per-buffer scroll bar settings.
11642
11643 * buffer.c (init_buffer_once): Set buffer_defaults and
11644 buffer_local_flags for new buffer-local variables
11645 left_fringe_width, right_fringe_width, fringes_outside_margins,
11646 scroll_bar_width, and vertical_scroll_bar_type.
11647 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
11648 default-* variables for them.
11649
11650 * dispnew.c: Make (many) trivial substitutions for renamed and
11651 new macros in dispextern.h, frame.h and window.h.
11652 (mode_line_string): No need to adjust width for mode lines, as it
11653 is already adjusted by the caller.
11654 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 11655
0416870b
KS
11656 * frame.c: Make (many) trivial substitutions for renamed and
11657 new macros in dispextern.h, frame.h and window.h.
11658 (make_frame): Initialize left_fringe_width, right_fringe_width,
11659 fringe_cols, scroll_bar_actual_width, border_width,
11660 internal_border_width, column_width, line_height, x_pixels_diff,
11661 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
11662 members with values suitable for a non-window frames.
11663
11664 * gtkutil.c: Make (many) trivial substitutions for renamed and
11665 new macros in dispextern.h, frame.h and window.h.
9018a88e 11666
0416870b
KS
11667 * indent.c: Make (few) trivial substitutions for renamed and
11668 new macros in dispextern.h, frame.h and window.h.
11669
11670 * keyboard.c: Make (many) trivial substitutions for renamed and
11671 new macros in dispextern.h, frame.h and window.h.
11672 (make_lispy_event): Use window positions returned from
11673 window_from_coordinates when constructing the lisp event for
11674 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
11675 (incorrect) values locally.
11676 (make_lispy_movement): Use window positions returned from
11677 window_from_coordinates when constructing the lisp event, rather
11678 than calculating (incorrect) values locally.
11679
11680 * scroll.c: Make (some) trivial substitutions for renamed and
11681 new macros in dispextern.h, frame.h and window.h.
11682
11683 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
11684 scroll-bars.
11685
11686 * sysdep.c: Make (few) trivial substitutions for renamed and
11687 new macros in dispextern.h, frame.h and window.h.
11688
11689 * term.c: Make (some) trivial substitutions for renamed and
11690 new macros in dispextern.h, frame.h and window.h.
11691
11692 * widget.c: Make (few) trivial substitutions for renamed and
11693 new macros in dispextern.h, frame.h and window.h.
11694
11695 * window.c: Make (many) trivial substitutions for renamed and
11696 new macros in dispextern.h, frame.h and window.h.
11697 (make_window): Initialize new members
11698 left_margin_cols, right_margin_cols, left_fringe_width,
11699 right_fringe_width, fringes_outside_margins, scroll_bar_width,
11700 and vertical_scroll_bar_type.
cab27d04 11701 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 11702 and per-window fringes and scroll-bars.
0416870b 11703 Fix bug related to incorrectly adjusting coordinates by
9018a88e 11704 frame's internal_border_width (the effect normally negible since
0416870b
KS
11705 the internal_border_width is typically 0 or 1 pixel, but very
11706 noticeable for an internal_border_width of e.g. 25 pixels).
11707 Upon successful return (other than ON_NOTHING), the coordinates
11708 are now always properly converted to window relative for the
11709 given display element.
11710 (window_from_coordinates): Add new parameters wx and wy to
11711 return the window relative x and y position in the returned
11712 window and part. A null arg means, don't return the position.
11713 All callers changed.
11714 (adjust_window_margins): New function which may reduce the width
11715 of the display margins if a window's text area is too small after
11716 resizing or splitting windows.
11717 (size_window): Fix bug that did not account for display margin
11718 widths when checking the minimum width of a window; use
11719 adjust_window_margins.
11720 (set_window_buffer): Call Fset_window_fringes and
11721 Fset_window_scroll_bars to setup per-window elements.
11722 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
11723 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
11724 (e.g. after splitting a window or resizing the frame).
11725 All callers changed.
0416870b
KS
11726 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
11727 (Fsplit_window): Duplicate original window's display margin,
11728 fringe, and scroll-bar settings; then call Fset_window_buffer with
11729 KEEP_MARGINS non-nil. This fixes a bug which caused a split
11730 window to only preserve the display margins in one of the windows.
c4b8aebc 11731 When splitting horizontally, call adjust_window_margins on both
0416870b 11732 windows to ensure that the text area of the new windows is non too
f9711de4 11733 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
11734 width of the split window was less than the width of the display
11735 margins.
cab27d04 11736 (window_box_text_cols): Rename from window_internal_width.
9018a88e 11737 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
11738 Fix bug that caused vertical separator to be subtracted also on
11739 window frames. Fix another bug that did not reduce the returned
11740 value by the columns used for display margins.
11741 (window_scroll_line_based): Fix bug related to scrolling too much
11742 when display margins are present (implicitly fixed by the fix to
11743 window_box_text_cols).
11744 (scroll_left, scroll_right): Fix bug related to scrolling too far
11745 by default when display margins are present (implicitly fixed by
11746 the fix to window_box_text_cols).
11747 (struct saved_window): Rename members left to left_col, top to
11748 top_line, width to total_cols, height to total_lines, orig_top to
11749 orig_top_line, orig_height to orig_total_lines. All uses changed.
11750 New members left_margin_cols, right_margin_cols,
11751 left_fringe_width, right_fringe_width, fringes_outside_margins,
11752 scroll_bar_width, and vertical_scroll_bar_type for saving
11753 per-window display elements.
11754 (Fset_window_configuration): Restore display margins, fringes,
11755 and scroll bar settings. This fixes a bug which caused display
11756 margins to be discarded when saving and restoring a window
11757 configuration.
11758 (save_window_save): Save display margins, fringes, and scroll bar
11759 settings. This fixes a bug which caused display margins to be
11760 discarded when saving and restoring a window configuration.
11761 (Fset_window_margins): Do nothing if display margins are not
11762 really changed. Otherwise, call adjust_window_margins to ensure
11763 the text area doesn't get too narrow. This fixes a bug which
f9711de4 11764 could cause Emacs to trap if setting display margins wider than
0416870b
KS
11765 the width of the window.
11766 (Fset_window_fringes): New defun to allow user to specifically set
11767 this window's fringe widths and position vs. display margins.
cab27d04 11768 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
11769 (Fset_window_scroll_bars): New defun to allow user to specifically
11770 set this window's scroll bar width and position.
11771 (Fwindow_scroll_bars): New defun to return window's actual scroll
11772 bar settings.
11773 (compare_window_configurations): Also compare display margins,
11774 fringes, and scroll bar settings.
11775 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
11776
11777 * xdisp.c: Make (many) trivial substitutions for renamed and
11778 new macros in dispextern.h, frame.h and window.h.
11779 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 11780 and new fringe vs. display margin position. Note that returned
0416870b
KS
11781 value is no longer guaranteed to be a whole multiple of the frame
11782 column width, since per-window fringes may now be any width.
11783 (window_box_left_offset): New function like window_box_left, but
11784 value is relative to left border of window (rather than frame).
11785 (window_box_right_offset): New function like window_box_right,
11786 but value is relative to left border of window.
11787 (window_box_left): Adapt to per-window fringes and scroll bars,
11788 and new fringe vs. display margin position. Simplify by using
11789 WINDOW_LEFT_EDGE_X and window_box_left_offset.
11790 (window_box): Allow null args for unnecessary return values;
11791 change/simplify relevant callers.
11792 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
11793 and new fringe vs. display margin position.
11794 Use window_box_left_offset and window_box_right_offset
0416870b 11795 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
11796 scroll bars, and new fringe vs. display margin position.
11797 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
11798 (draw_fringe_bitmap): Rework to handle per-window fringes and new
11799 fringe vs. display margin position.
11800 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
11801 (redisplay_window): Adapt to per-window scroll bars.
11802 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
11803 bars, and new fringe vs. display margin position.
11804 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 11805 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
11806 bars, and new fringe vs. display margin position. Fix bug which
11807 increased total width of full_width rows by width of scroll bars
11808 although window's total width already includes that.
11809 (x_fix_overlapping_area): Simplify using window_box_left_offset.
11810 (expose_area): Simplify using window_box_left_offset.
11811 (x_draw_vertical_border): Handle per-window scroll bar settings,
11812 mixing windows with left, right and no scroll bars.
11813
11814 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
11815 where it's used in x_list_fonts (for clarity).
11816 (frame_update_line_height): Remove unused function; functionality
11817 is now done directly when setting the default font in x_set_font.
11818
11819 * xfns.c: Make (many) trivial substitutions for renamed and
11820 new macros in dispextern.h, frame.h and window.h.
11821
11822 * xmenu.c: Make (some) trivial substitutions for renamed and
11823 new macros in dispextern.h, frame.h and window.h.
11824
11825 * xterm.h (struct x_output): Move members left_pos, top_pos,
11826 border_width, pixel_height, pixel_width, line_height,
11827 internal_border_width, vertical_scroll_bar_extra,
11828 left_fringe_width, right_fringe_width, fringe_cols,
11829 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11830 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11831 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11832 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11833 (PIXEL_WIDTH, PIXEL_HEIGHT)
11834 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11835 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11836 frame.h and renamed [see frame.h changes].
11837 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11838 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11839 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11840 and renamed [see frame.h changes].
9018a88e 11841
0416870b
KS
11842 * xterm.c: Make (several) trivial substitutions for renamed and
11843 new macros in dispextern.h, frame.h and window.h.
cab27d04 11844 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11845 (scroll_run): Adapt to new fringe position.
11846 (glyph_rect): Use window coordinates returned from
11847 window_from_coordinates rather than frame_to_window_pixel_xy.
11848 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11849 scroll-bars.
11850 (handle_one_xevent): Simplify a USE_GTK conditional.
11851 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11852 (fringes are now inside margins, i.e. always in the clipping area).
11853 All callers changed.
11854 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11855 directly, then call compute_fringe_widths. Don't call
11856 frame_update_line_height.
11857
11858 * w32term.h (struct w32_output): Move members left_pos, top_pos,
11859 border_width, pixel_height, pixel_width, line_height,
11860 internal_border_width, vertical_scroll_bar_extra,
11861 left_fringe_width, right_fringe_width, fringe_cols,
11862 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11863 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11864 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11865 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11866 (PIXEL_WIDTH, PIXEL_HEIGHT)
11867 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11868 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11869 frame.h and renamed [see frame.h changes].
11870 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11871 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11872 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11873 and renamed [see frame.h changes].
9018a88e 11874
0416870b
KS
11875 * w32term.c: Make (several) trivial substitutions for renamed and
11876 new macros in dispextern.h, frame.h and window.h.
cab27d04 11877 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11878 (glyph_rect): Use window coordinates returned from
11879 window_from_coordinates rather than frame_to_window_pixel_xy.
11880 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11881 scroll-bars.
11882 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
11883 (fringes are now inside margins, i.e. always in the clipping area).
11884 All callers changed.
11885 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11886 directly, then call compute_fringe_widths. Don't call
11887 frame_update_line_height.
11888
11889 * w32console.c: Make (few) trivial substitutions for renamed and
11890 new macros in dispextern.h, frame.h and window.h.
11891
11892 * w32fns.c: Make (many) trivial substitutions for renamed and
11893 new macros in dispextern.h, frame.h and window.h.
11894
11895 * w32menu.c: Make (few) trivial substitutions for renamed and
11896 new macros in dispextern.h, frame.h and window.h.
11897
11898 * macterm.h (struct mac_output): Move members left_pos, top_pos,
11899 border_width, pixel_height, pixel_width, line_height,
11900 internal_border_width, vertical_scroll_bar_extra,
11901 left_fringe_width, right_fringe_width, fringe_cols,
11902 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11903 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
11904 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11905 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11906 (PIXEL_WIDTH, PIXEL_HEIGHT)
11907 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11908 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11909 frame.h and renamed [see frame.h changes].
11910 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11911 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11912 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11913 and renamed [see frame.h changes].
9018a88e 11914
0416870b
KS
11915 * macterm.c: Make (several) trivial substitutions for renamed and
11916 new macros in dispextern.h, frame.h and window.h.
cab27d04 11917 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11918 (glyph_rect): Use window coordinates returned from
11919 window_from_coordinates rather than frame_to_window_pixel_xy.
11920 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11921 scroll-bars.
11922 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11923 (fringes are now inside margins, i.e. always in the clipping area).
11924 All callers changed.
11925 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11926 directly, then call compute_fringe_widths. Don't call
11927 frame_update_line_height.
11928
11929 * macfns.c: Make (several) trivial substitutions for renamed and
11930 new macros in dispextern.h, frame.h and window.h.
9018a88e 11931 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
11932
11933 * macmenu.c: Make (few) trivial substitutions for renamed and
11934 new macros in dispextern.h, frame.h and window.h.
11935
11936 * msdos.h (struct x_output): Remove members left_pos, top_pos,
11937 and line_height, and use corresponding new members in struct
11938 frame. All uses changed.
11939 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
11940 superseeded by corresponding macros in frame.h.
11941
11942 * msdos.c: Make (several) trivial substitutions for renamed and
11943 new macros in dispextern.h, frame.h and window.h.
11944 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 11945 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
11946 (internal_terminal_init): No need to initialize line_height here;
11947 it now defaults to 1.
11948
9018a88e
SM
119492003-05-24 Stefan Monnier <monnier@cs.yale.edu>
11950
11951 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
11952 dropping `down' events.
11953
016bd3c0
AS
119542003-05-24 Andreas Schwab <schwab@suse.de>
11955
11956 * coding.c (find_safe_codings): Fix last change.
11957
4dacadcc
TTN
119582003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
11959
11960 * xfns.c (x_window): Fix typo from 2003-05-21 change.
11961
319830ce
SM
119622003-05-23 Stefan Monnier <monnier@cs.yale.edu>
11963
9018a88e
SM
11964 * xdisp.c (display_mode_element): Increase max depth.
11965 Simplify the error handling code. Use a different error string
11966 for the case where we hit the depth limit.
11967
319830ce
SM
11968 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
11969
11970 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
11971
119722003-05-21 Stefan Monnier <monnier@cs.yale.edu>
11973
11974 * intervals.c (get_local_map): Don't get char-property of previous
11975 point any more: get_pos_property already does it and better.
11976
c67de8ba
DL
119772003-05-21 Dave Love <fx@gnu.org>
11978
11979 [Merged from unicode branch.]
11980
11981 * xfns.c (x_window, x_window): Use use_xim.
11982
11983 * xterm.c (use_xim): Initialize.
11984 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
11985 (x_term_init): Maybe set use_xim.
11986
11987 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
11988
edd3ff1d
JR
119892003-05-21 Jason Rumney <jasonr@gnu.org>
11990
11991 * unexw32.c (_start): Remove _fmode initialization.
11992
11993 * emacs.c (main) [WINDOWSNT]: Move it here.
11994
463f55ee
DL
119952003-05-20 Dave Love <fx@gnu.org>
11996
11997 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
11998
af253914
RS
119992003-05-19 Richard M. Stallman <rms@gnu.org>
12000
12001 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
12002 as value for QCfont attribute.
12003 (realize_default_face): lface should already exist; crash if not.
12004 Specify 0 for FORCE_P when calling set_lface_from_font_name.
12005
12006 * frame.c (Fignore_event): Doc fix.
12007
1d211019
KH
120082003-05-19 Kenichi Handa <handa@m17n.org>
12009
12010 * coding.c (decode_coding_string): Handle post-read-conversion
12011 even if the coding doesn't require decoding.
12012
4dd68254
RS
120132003-05-18 Richard M. Stallman <rms@gnu.org>
12014
12015 * callproc.c (Fcall_process_region): Doc fix.
12016
14d87dc9
SM
120172003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12018
deca5d96
SM
12019 * lread.c (Fload): Print a message if package is obsolete.
12020
14d87dc9
SM
12021 * window.c (Fselect_window): Add optional `norecord' arg.
12022 (select_window_1): Fold into Fselect_window.
12023 (select_window_norecord): New function.
12024 (temp_output_buffer_show): Use it. Preserve current buffer.
12025
12026 * window.h (Fselect_window): Update declaration.
12027
12028 * window.c (delete_window, Fother_window, Fset_window_configuration):
12029 * minibuf.c (read_minibuf):
12030 * macterm.c (x_new_focus_frame):
12031 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
12032 * callint.c (Fcall_interactively):
12033 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
12034
12035 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
12036
78f52183
DK
120372003-05-17 David Kastrup <dak@gnu.org>
12038
12039 * process.c (read_process_output): Back out change from 2003-03-09.
12040
14d87dc9
SM
120412003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12042
12043 * editfns.c (get_pos_property): Don't assume that `object' = nil.
12044
12045 * textprop.c (text_property_stickiness): New arg `buffer'.
12046
12047 * intervals.h (text_property_stickiness): New arg `buffer'.
12048 (get_pos_property): Declare.
12049
12050 * intervals.c (get_local_map): Use get_pos_property, to obey
12051 stickiness and empty overlays.
12052 (create_root_interval, graft_intervals_into_buffer): Use BEG.
12053 (merge_properties, intervals_equal, merge_properties_sticky):
12054 Use XCAR, XCDR.
12055 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
12056
1fd1cc2f
RS
120572003-05-17 Richard M. Stallman <rms@gnu.org>
12058
4f9f637a
RS
12059 * minibuf.c (read_minibuf): If buffer is empty, record the default
12060 in the history.
12061 (Fminibuffer_complete_word): When deleting the overlap, take account
12062 of its real position.
12063
12064 * fns.c (map_char_table): Fix previous change.
12065
1fd1cc2f
RS
12066 * syntax.c (find_defun_start):
12067 When open_paren_in_column_0_is_defun_start,
12068 return beginning of buffer.
12069
12070 * lisp.h (map_char_table): Declare added arg.
12071
12072 * fns.c (map_char_table): New arg TABLE gets the master table.
12073 All calls changed.
12074 Process default and inheritance, resorting to Faref if necessary.
12075
12076 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12077 (Faccessible_keymaps): Pass new arg to map_char_table.
12078
12079 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
12080
12081 * casetab.c (set_case_table): Pass new arg to map_char_table.
12082
12083 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
12084
12085 * lisp.h (specbinding_func): New typedef.
12086 (struct specbinding): Use specbinding_func, to put the `volatile'
12087 in the right place.
12088
12089 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
12090 to avoid GCC warning.
14d87dc9 12091
b6189c3b 120922003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 12093
14d87dc9 12094 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 12095
35fb885d
SM
120962003-05-15 Stefan Monnier <monnier@cs.yale.edu>
12097
12098 * keyboard.c (apply_modifiers): Don't fill the other cache.
12099
9a274fbd
SM
121002003-05-14 Stefan Monnier <monnier@cs.yale.edu>
12101
c55b5fad
SM
12102 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
12103
9a274fbd
SM
12104 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
12105 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
12106 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
12107 (Fset_window_configuration, Fcurrent_window_configuration)
12108 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
12109 (Fpos_visible_in_window_p, mark_window_cursors_off)
12110 (window_internal_height, window_internal_width, Frecenter)
12111 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
12112 (replace_buffer_in_all_windows, init_window_once, init_window)
12113 (syms_of_window, keys_of_window): Move from lisp.h.
12114 * lisp.h: Move window.c declarations to window.h.
12115
12116 * bytecode.c: Include window.h.
12117 * emacs.c: Include window.h.
12118
14d87dc9 12119 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
12120 (keyremap): Add `parent' field.
12121 (keyremap_step): Use it. Remove `parent' argument.
12122 (read_key_sequence): Setup and use the new `parent' field.
12123
fd93e331
SM
121242003-05-11 Stefan Monnier <monnier@cs.yale.edu>
12125
12126 * keyboard.c (adjust_point_for_property): Ensure termination.
12127
1c4001a1
SM
121282003-05-10 Stefan Monnier <monnier@cs.yale.edu>
12129
12130 * keyboard.c (follow_key): Remove dead variable `did_meta'.
12131 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
12132 duplicated handling of function-key-map and key-translation-map
12133 in read_key_sequence.
12134 (read_key_sequence): Use them.
12135
12136 * keyboard.c (adjust_point_for_property): Try harder to move point
12137 to the non-sticky end of an invisible property.
12138
12139 * xdisp.c (single_display_prop_intangible_p): Make `space' display
12140 property intangible as well.
12141
780379b1
AS
121422003-05-10 Andreas Schwab <schwab@suse.de>
12143
12144 * xmenu.c (single_menu_item): Change last parameter to void* to
12145 avoid warning.
12146
ca2de342
RS
121472003-05-09 Richard M. Stallman <rms@gnu.org>
12148
12149 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
12150 Bind Qinhibit_modification_hooks to t so there will be no GC.
12151 Rename local `tem' to `save_deactivate_mark'.
12152
12153 * eval.c (specpdl_ptr): Declare volatile.
12154 (unbind_to): Copy the whole binding and decrement specpdl_ptr
12155 before doing the work of unbinding it.
12156
12157 * lisp.h (struct specbinding): Declare elements volatile.
12158 (specpdl_ptr): Declare volatile.
12159
12160 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
12161
12162 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
12163 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
12164
347003be
DL
121652003-05-08 Dave Love <fx@gnu.org>
12166
12167 * coding.c (Vlast_coding_system_used): Doc fix.
12168
5adcec23
JR
121692003-05-07 Jason Rumney <jasonr@gnu.org>
12170
12171 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
12172 when system does not support them.
12173
5fe3b8a4
SM
121742003-05-05 Stefan Monnier <monnier@cs.yale.edu>
12175
12176 * fileio.c (Qwrite_region_annotate_functions): New var.
12177 (build_annotations): Use it to process the global part of the hook.
12178 (syms_of_fileio): Init and staticpro it.
12179
12180 * keyboard.c (safe_run_hooks_error): Display a message instead of
12181 silently ignoring the error.
12182
121832003-05-03 Stefan Monnier <monnier@cs.yale.edu>
12184
12185 * keyboard.c (input_available_signal): Mark static.
12186 (menu_bar_items): Use map_keymap.
12187 (menu_bar_one_keymap): Remove.
12188 (menu_bar_item): Adjust arglist (for use in map_keymap).
12189 Properly hide a second binding when not both are keymaps.
12190
12191 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
12192 (single_keymap_panes): Use it and map_keymap.
12193 (single_menu_item): Use skp as well.
12194
12195 * keymap.h (map_keymap_function_t): New type.
12196 (map_keymap): Declare.
12197
12198 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
12199 (map_keymap_call, Fmap_keymap): New functions.
12200 (syms_of_keymap): Defsubr map-keymap.
12201
4b1b4443
JD
122022003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12203
12204 * gtkutil.c (create_dialog, make_widget_for_menu_item)
12205 (make_menu_item, create_menus, xg_update_menu_item): Don't call
12206 ..._with_mnemonic functions for menu items.
12207
1f816871
KH
122082003-05-01 Kenichi Handa <handa@m17n.org>
12209
12210 * coding.c (coding_system_accept_latin_extra_p): Delete this
12211 function.
12212 (find_safe_codings): Pay attention to
12213 the property tranlsation-table-for-encode of each codings.
12214 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
12215
5ed6ba5b
SM
122162003-05-01 Stefan Monnier <monnier@cs.yale.edu>
12217
12218 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
12219
32c06229
SM
122202003-04-30 Stefan Monnier <monnier@cs.yale.edu>
12221
12222 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
12223
12224 * lisp.h (CHECK): Wrap args in parenthesis.
12225 (specbind): Fix doc: symbol = Qnil is not supported any more.
12226
12227 * bytecode.c (Fbyte_code) <unwind-protect>:
12228 Use Fprogn rather than 0 and Qnil.
12229
12230 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
12231 `double', and `triple' modifiers as well.
12232
ed3c3314
RS
122332003-04-30 Richard M. Stallman <rms@gnu.org>
12234
12235 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
12236
12237 * alloc.c (abort_on_gc): New variable.
12238 (Fgarbage_collect): Abort if abort_on_gc is set.
12239
12240 * lisp.h (abort_on_gc): Add decl.
12241
12242 * eval.c (Fsignal): Clear abort_on_gc.
12243
12244 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 12245 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
12246
12247 * xdisp.c (move_it_vertically_backward): Do the final big else
12248 even if nlines is 0.
12249
12250 * xdisp.c (redisplay_internal): Finish the per-frame loop
12251 even if redisplay is suspended by input.
12252
0b325c12
AC
122532003-04-24 Andrew Choi <akochoi@shaw.ca>
12254
12255 * macterm.c (x_list_fonts): Return all fonts that match if
12256 maxnames = -1.
12257
4e837cd0
KH
122582003-04-25 Kenichi Handa <handa@m17n.org>
12259
12260 * syntax.c (skip_chars): Fix previous change.
12261
9af7511a
KH
122622003-04-24 Kenichi Handa <handa@m17n.org>
12263
12264 * syntax.c (skip_chars): Make the code faster by using the common
12265 technique of *p, *stop, and *endp.
12266
e3b2c21f
JD
122672003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12268
12269 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 12270 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
12271 being updated.
12272
32c06229
SM
122732003-04-19 Stefan Monnier <monnier@cs.yale.edu>
12274
12275 * eval.c (Fapply): Undo last change and add a comment about why.
12276
c6464167
MB
122772003-04-18 Miles Bader <miles@gnu.org>
12278
12279 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
12280 pickier PARSE_MULTIBYTE_SEQ.
12281
e509f168
SM
122822003-04-17 Stefan Monnier <monnier@cs.yale.edu>
12283
12284 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
12285 Use XCDR, XCAR, CONSP.
12286 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
12287 (Fapply): Remove unnecessary GCPRO.
12288
12289 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
12290
12291 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
12292
12293 * buffer.h: Don't hardcode BEG==1.
12294
12295 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
12296
5ceea398
RS
122972003-04-16 Richard M. Stallman <rms@gnu.org>
12298
12299 * xdisp.c (try_window, try_window_reusing_current_matrix):
12300 When at end of window, set window_end_pos to Z-ZV.
12301
12302 * buffer.c (Foverlay_recenter): Doc fix.
12303
e509f168
SM
123042003-04-14 Stefan Monnier <monnier@cs.yale.edu>
12305
12306 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
12307
d243e605
AC
123082003-04-14 Andrew Choi <akochoi@shaw.ca>
12309
12310 * macterm.c (mac_check_for_quit_char): Don't check more often than
12311 once a second.
12312
6901b111
SM
123132003-04-11 Stefan Monnier <monnier@cs.yale.edu>
12314
12315 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
12316 specially, so that they can't hide an implicit switch-frame event.
12317 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
12318 (head_table): Use switch-frame as event_kind for select-window.
12319 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
12320
12321 * editfns.c (Fformat): Lisp_Object/int mixup.
12322 (format2): Remove unused var numargs.
12323
e301806f 123242003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 12325
6901b111 12326 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
12327 (Qafter_insert_file_set_coding): New variable.
12328 (syms_of_fileio): Initialize and staticpro it. Delete declaration
12329 for after-insert-file-adjust-coding-function.
12330 (Finsert_file_contents): Call Qafter_insert_file_set_coding
12331 instead of Vafter_insert_file_adjust_coding_function.
12332
38914424
KH
123332003-04-11 Kenichi Handa <handa@m17n.org>
12334
12335 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
12336
12337 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
12338 string. Callers changed.
12339
123402003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 12341
6901b111 12342 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 12343 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
12344 (Finsert_file_contents):
12345 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
12346 decode-format.
12347
f979dc05
JD
123482003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12349
12350 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
12351 get GtkAdjustment as widget now is a GtkRange.
12352
12353 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
12354 GtkRange to avoid memory leak.
12355
f8c6b4c2 123562003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 12357
50ebc53d
KH
12358 * xfaces.c (Vface_font_rescale_alist): New variable.
12359 (struct font_name): New member rescale_ratio.
12360 (font_rescale_ratio): New function.
6901b111 12361 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
12362 (better_font_p): On comparing point sized, pay attention to
12363 recale_ratio member of fonts.
12364 (build_scalable_font_name): Reflect font->rescale_ratio in the
12365 font name.
6901b111 12366 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 12367
cb98871c
KH
12368 * lread.c (read1): Before calling index, check if the 2nd
12369 arguemnt is in ASCII range.
12370
4773b8ca
RS
123712003-04-08 Richard M. Stallman <rms@gnu.org>
12372
b0ada147
RS
12373 * fileio.c (Ffile_symlink_p): Doc fix.
12374
12375 * editfns.c (Fformat): Translate positions of text properties
12376 in the format string to apply them to the result.
12377
4773b8ca
RS
12378 * fileio.c (Finsert_file_contents): Doc fix.
12379 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12380
123812003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 12382
4773b8ca
RS
12383 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
12384
e8f25745 123852003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 12386
e8f25745
ST
12387 * mac.c (init_mac_osx_environment): Switch libexec and bin so
12388 that self-contained application finds libexec files.
12389
f8c6b4c2 123902003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 12391
6901b111
SM
12392 * coding.c (code_convert_region_unwind):
12393 Set Vlast_coding_system_used to the argument.
2310d84c
KH
12394 (code_convert_region): If post-read-conversion function changed
12395 the value of last-coding-sytem, keep the new value in
12396 coding->symbol so that it won't be overridden.
12397 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
12398 (coding_system_accept_latin_extra_p): New function.
12399 (find_safe_codings): Pay attention to characters registered in
12400 latin-extra-code-table.
2310d84c 12401
39c9a034
TTN
124022003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
12403
12404 * Makefile.in (md5.o): Add missing dependency info.
12405
eb67c5d6
RS
124062003-04-06 Richard M. Stallman <rms@gnu.org>
12407
12408 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
12409
12410 * marker.c (verify_bytepos): New function.
12411
12412 * intervals.c (set_intervals_multibyte_1): When becoming
12413 multibyte, adjust right and left child sizes to a whole set of
12414 characters. If an interval gets zero total-length, delete it.
12415 If an interval consists of just its children, delete one of them.
12416
12417 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
12418 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 12419
52eb0373 12420 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
12421 All calls deleted.
12422 (lisp_malloc): Do the work here directly.
12423
b1f81fc5
JB
124242003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
12425
12426 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
12427 char tables.
12428
124292003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
12430
12431 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
12432 destructively change "%S" to "%s".
12433
774666fb
MB
124342003-04-03 Miles Bader <miles@gnu.org>
12435
12436 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
12437 always set.
12438
19c37f01
DL
124392003-04-01 Dave Love <fx@gnu.org>
12440
12441 * xfns.c (xpm_lookup_color): Grok "opaque".
12442
2f4b24c3
AC
124432003-03-31 Andrew Choi <akochoi@shaw.ca>
12444
12445 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
12446 parent window ID.
12447
12448 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
12449
12450 * macterm.h (struct mac_output): Define x_pixels_diff and
12451 y_pixels_diff.
b1f81fc5 12452
9443fcf6
JB
124532003-03-31 Juanma Barranquero <lektu@terra.es>
12454
12455 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
12456 blockinput.h and files included from it.
12457
e072891b
KS
124582003-03-31 Kim F. Storm <storm@cua.dk>
12459
12460 The following changes consolidates the common code related to
12461 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
12462 files into frame.c.
9443fcf6 12463
e072891b
KS
12464 * frame.c: Include blockinput.h.
12465 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
12466 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
12467 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
12468 related vars here.
12469 (struct frame_parm_table, frame_parms): New table for describing
12470 frame parameters and their associated Q-variable.
12471 The order of the parameters corresponds to the sequence of the
12472 frame_parm_handlers table in redisplay_interface.
12473 (x_fullscreen_move, x_set_frame_parameters)
12474 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
12475 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
12476 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12477 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
12478 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
12479 Generic functions for processing of frame parameters.
12480 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
12481 (display_x_get_resource, x_get_resource_string): Functions for
12482 generic access to X resources.
12483 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12484 (x_default_parameter, Fx_parse_geometry): Functions for generic
12485 access to frame parameters.
6901b111
SM
12486 (x_figure_window_size): Generic calculation of frame size.
12487 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
12488 (syms_of_frame): Intern and staticpro frame parameter variables.
12489 Defvar_lisp Vx_resource_class and Vx_resource_name here.
12490 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 12491
e072891b
KS
12492 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
12493 parameter related vars defined in frame.c.
12494 (EMACS_CLASS): Define here.
12495 (enum FULLSCREEN_*): Define here.
12496 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
12497 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
12498 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
12499 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
12500 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
12501 (x_set_visibility, x_set_autoraise, x_set_autolower)
12502 (x_set_unsplittable, x_set_vertical_scroll_bars)
12503 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
12504 (x_figure_window_size): Add prototypes.
12505
12506 * dispextern.h (frame_parm_handler): New typedef.
12507 (struct redisplay_interface): New member frame_parm_handlers.
12508 (enum resource_types): Move declaration here.
12509 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12510 (x_default_parameter): Add prototypes.
12511
12512 * window.c: Remove extern decl for frame parameter vars.
12513 (change_window_heights): New generic function;
12514 replaces x_change_window_heights. All users changed.
12515
12516 * window.h (change_window_heights): Add prototype.
12517
12518 * xfaces.c: Remove extern decl for frame parameter vars.
12519
12520 * xterm.h (EMACS_CLASS): Remove. Use generic define.
12521 (struct w32_display_info): Fix type of xrdb member.
12522 (enum FULLSCREEN_*): Remove.
12523 Remove prototypes for generic functions (in frame.h).
12524
12525 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12526 parameters now defined in frame.h and frame.c.
f63fd14e 12527 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12528 (enum x_frame_parms): Remove (bogus, unused enum).
12529 (check_x_display_info): Make non-static (for frame.c).
12530 (struct x_frame_parm_table, x_frame_parms): Remove.
12531 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12532 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12533 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12534 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12535 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12536 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12537 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12538 Remove. Use generic functions instead.
12539 (enum resource_types): Remove.
12540 (x_set_scroll_bar_default_width): New global function (for frame.c).
12541 (Fx_create_frame): Depend on x_figure_window_size to add space for
12542 toolbar and setup size_hint_flags.
12543 (x_frame_parm_handlers): New table for redisplay_interface.
12544 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 12545
e072891b 12546 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 12547 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12548 (x_redisplay_interface): Add x_frame_parm_handlers member.
12549
12550 * w32gui.h (XrmDatabase): New (dummy) typedef.
12551
12552 * w32term.h (EMACS_CLASS): Remove. Use generic define.
12553 (struct w32_display_info): Fix type of xrdb member.
12554 (enum FULLSCREEN_*): Remove.
12555 (x_fullscreen_adjust): Remove prototype.
12556
12557 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12558 parameters now defined in frame.h and frame.c.
f63fd14e 12559 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12560 (enum x_frame_parms): Remove (bogus, unused enum).
12561 (check_x_display_info): Make non-static (for frame.c).
12562 (struct x_frame_parm_table, x_frame_parms): Remove.
12563 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12564 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12565 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12566 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12567 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12568 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12569 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12570 Remove. Use generic functions instead.
12571 (enum resource_types): Remove.
12572 (x_set_scroll_bar_default_width): New global function (for frame.c).
12573 (Fx_create_frame): Depend on x_figure_window_size to add space for
12574 toolbar and setup size_hint_flags.
12575 (w32_frame_parm_handlers): New table for redisplay_interface.
12576 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 12577
e072891b 12578 * w32term.c: Remove unnecessary extern declarations.
52eb0373 12579 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12580 (x_redisplay_interface): Add w32_frame_parm_handlers member.
12581
12582 * w32reg.c (x_get_string_resource): Use XrmDatabase.
12583
12584 * macgui.h (XrmDatabase): New (dummy) typedef.
12585
12586 * macterm.h (EMACS_CLASS): Remove.
12587 (struct mac_display_info): Add xrdb member.
12588 (struct mac_output): Add want_fullscreen member.
12589
12590 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12591 parameters now defined in frame.h and frame.c.
f63fd14e 12592 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12593 (check_x_display_info): Make non-static (for frame.c).
12594 (struct x_frame_parm_table, x_frame_parms): Remove.
12595 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12596 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12597 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12598 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12599 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12600 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12601 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12602 Remove. Use generic functions instead.
12603 (enum resource_types): Remove.
12604 (x_set_scroll_bar_default_width): New global function (for frame.c).
12605 (mac_frame_parm_handlers): New table for redisplay_interface.
12606 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 12607
e072891b
KS
12608 * macterm.c: Remove unnecessary extern declarations.
12609 (x_redisplay_interface): Add mac_frame_parm_handlers member.
12610
3e6a560b
KS
12611 * Makefile.in (frame.o): Add dependency on blockinput.h and files
12612 included from it (atimer.h and systime.h).
12613
7b7b454e
AS
126142003-03-30 Andreas Schwab <schwab@suse.de>
12615
12616 * xdisp.c (x_insert_glyphs): Fix swapped width and height
12617 parameters for shift_glyphs_for_insert.
12618
12619 * macterm.c (x_redisplay_interface): Add missing entry for
12620 draw_vertical_window_border.
12621
beb402de
KG
126222003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12623
12624 * fileio.c (Fexpand_file_name): In the no-handler case, after
12625 expanding, look again for a handler and invoke it. This is needed
12626 for filenames like "/foo/../user@host:/bar/../baz" -- the first
12627 expansion produces "/user@host:/bar/../baz" which needs to be
12628 expanded again for the finame result "/user@host:/baz".
12629
b676f356
JD
126302003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12631
12632 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
12633 of area to be redrawn for better performance.
12634
3c671a56
SM
126352003-03-28 Stefan Monnier <monnier@cs.yale.edu>
12636
12637 * xterm.c (take_vertical_position_into_account): Remove.
12638 (xt_action_hook): Call set_vertical_scroll_bar if needed.
12639 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
12640 (xm_scroll_callback, x_create_toolkit_scroll_bar)
12641 (x_set_toolkit_scroll_bar_thumb): Simplify.
12642 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
12643 (XTread_socket): Remove unused var.
12644 (x_make_frame_invisible): Replace goto with else.
12645
12646 * xdisp.c (set_vertical_scroll_bar): New fun.
12647 (redisplay_window): Use it.
12648
84f2e615
RS
126492003-03-26 Richard M. Stallman <rms@gnu.org>
12650
12651 * xdisp.c (update_tool_bar): Recompute tool bar if
12652 update_mode_lines is set. Set w->update_mode_line
12653 only if the tool bar contents actually change.
12654 (update_menu_bar): Undo previous change.
12655
70b6104c
JD
126562003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12657
5fd6f727
JD
12658 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
12659 (xg_frame_set_char_size): Calculate scroll bar width before frame
12660 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
12661 (xg_separator_p): Check for all documented separator types.
12662 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
12663 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
12664
70b6104c
JD
12665 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
12666 so tool bar gets updated.
12667
d9b36d19
SM
126682003-03-26 Stefan Monnier <monnier@cs.yale.edu>
12669
12670 * data.c (store_symval_forwarding): Re-instate part of the code
12671 that was deleted with too much enthusiasm.
12672
126732003-03-25 Stefan Monnier <monnier@cs.yale.edu>
12674
12675 * data.c (store_symval_forwarding): Delete special read-only
12676 hack for type == -1, since we now use ->constant instead.
12677 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
12678
12679 * buffer.c (overlays_in): Declare static.
12680 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
12681 `constant' field rather than the variable's `type' field.
12682
365fa1b3
AC
126832003-03-24 Andrew Choi <akochoi@shaw.ca>
12684
12685 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
12686
12687 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
12688
12689 * fns.c [MAC_OSX]: Do not redefine vector.
12690
12691 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
12692
12693 * macgui.h: Remove definition of No_Cursor.
12694
d9b36d19 12695 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
12696
12697 * xdisp.c: Define No_Cursor.
12698 (x_write_glyphs, notice_overwritten_cursor)
12699 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
12700 (note_mouse_highlight): Remove Mac-specific code.
12701 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 12702
c0bcce6f
JPW
127032003-03-24 John Paul Wallington <jpw@gnu.org>
12704
12705 * xdisp.c (redisplay_window): If mini window's buffer is not
12706 empty, then redisplay it like other windows.
12707
a526b96c
KS
127082003-03-23 Kim F. Storm <storm@cua.dk>
12709
12710 * w32term.c (w32_draw_window_cursor): Fix last change.
12711
37ab321e
KH
127122003-03-23 Kenichi Handa <handa@m17n.org>
12713
a526b96c
KS
12714 * alloc.c (make_string_from_bytes, make_specified_string):
12715 Add `const' for the arg CONTENTS.
37ab321e
KH
12716
12717 * lisp.h (make_string_from_bytes, make_specified_string):
12718 Prototypes adjusted.
12719
7863d625
JD
127202003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12721
a526b96c 12722 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 12723
7863d625
JD
12724 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
12725 (XG_SB_RANGE): New define.
12726
12727 * gtkutil.c (xg_fixed_handle_expose): New function.
12728 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
12729 expose events.
12730 (xg_update_scrollbar_pos): Take two more arguments, left and width
12731 of scroll bar including borders.
12732 Clear left and right part outside scroll bar separately as some
12733 themes have bars that are not an even number of pixels.
d9b36d19 12734 Don't set reallocate_redraws, don't call
7863d625
JD
12735 gdk_window_process_all_updates.
12736 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
12737 so no need to change it. Calculate size and value with XG_SB_RANGE.
12738
d9b36d19
SM
12739 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
12740 Pass left and width of scroll bar including borders to
7863d625
JD
12741 xg_update_scrollbar_pos.
12742
af0ad939
TTN
127432003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
12744
12745 * Makefile.in: Make sure space precedes end-of-line backslashes.
12746
b22139fd
KS
127472003-03-22 Kim F. Storm <storm@cua.dk>
12748
12749 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
12750 Add generic versions here. Remove system specific versions
12751 defined elsewhere.
12752
12753 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
12754 Add prototypes.
12755
6e6410cf
KS
12756 * xterm.h (STORE_NATIVE_RECT): New macro.
12757
5c9cc435
KS
127582003-03-21 Kim F. Storm <storm@cua.dk>
12759
00c64fab
SM
12760 * xdisp.c (get_glyph_string_clip_rect):
12761 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
12762
12763 * dispextern.h (struct redisplay_interface): Add active_p
12764 argument to draw_window_cursor member. All uses changed.
12765
acd37560
KS
127662003-03-21 Kim F. Storm <storm@cua.dk>
12767
12768 The following changes consolidate code related to writing and
12769 inserting glyphs, exposing frame, the tool bar, the mouse face,
12770 the output cursor, and help echo from xterm.c, w32term.c and
12771 macterm.c into xdisp.c. It also generalizes the use of the
12772 window_part enum instead of using numeric values throughout.
af0ad939 12773
acd37560
KS
12774 * xdisp.c: Consolidate gui-independent code here.
12775 Include keymap.h.
12776 (Qhelp_echo): Import.
12777 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
12778 (help_echo_string, help_echo_window, help_echo_object)
12779 (previous_help_echo_string, help_echo_pos): Declare here.
12780 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
12781 (estimate_mode_line_height): Define here. Handle windowing
12782 systems directly (without using estimate_mode_line_height_hook).
12783 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
12784 (update_window_cursor, update_cursor_in_window_tree)
12785 (fast_find_position, fast_find_string_pos)
12786 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
12787 (expose_area, expose_line, expose_overlaps, expose_window)
12788 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
12789 declared static as they are only used locally in xdisp.c.
12790 (draw_glyphs): Rename from x_draw_glyphs and make static.
12791 (tool_bar_item_info, notice_overwritten_cursor): Make static.
12792 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12793 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 12794 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
12795 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12796 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
12797 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
12798 (note_mouse_highlight, x_clear_window_mouse_face)
12799 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
12800 (x_intersect_rectangles): New generic functions for use by xdisp.c
12801 and GUI front-ends.
12802 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
12803 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
12804
12805 * dispextern.h (Display_Info): Generic typedef for *_display_info.
12806 (NativeRectangle): Generic typedef for rectangle type.
12807 (enum window_part): Move here from window.c.
12808 (struct redisplay_interface): New members flush_display_optional,
12809 define_frame_cursor, clear_frame_area, draw_window_cursor,
12810 draw_vertical_window_border, shift_glyphs_for_insert.
12811 Rename member clear_mouse_face to clear_window_mouse_face.
12812 (estimate_mode_line_height_hook): Remove hook.
12813 (auto_raise_tool_bar_buttons_p): Don't declare extern.
12814 (tool_bar_item_info): Remove prototype.
12815 (help_echo_string, help_echo_window, help_echo_object)
12816 (previous_help_echo_string, help_echo_pos)
12817 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
12818 (x_stretch_cursor_p, output_cursor): Declare extern.
12819 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
12820 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
12821 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12822 (display_and_set_cursor, set_output_cursor, x_cursor_to)
12823 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
12824 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12825 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
12826 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
12827 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
12828 Add prototypes.
12829 (mode_line_string, marginal_area_string): Fix prototypes.
12830
12831 * window.c (enum window_part): Move to dispextern.h.
12832 (coordinates_in_window): Use enum window_part member names
12833 instead of numbers to describe return value.
12834 (struct check_window_data): Change part member to window_part.
12835 (check_window_containing): Return window_part unaltered.
12836 (window_from_coordinates): Change part arg from int to enum
12837 window_part. Allow part arg to be null. All users changed.
12838
12839 * window.h (window_from_coordinates): Fix prototype.
12840
12841 * term.c (estimate_mode_line_height): Move to xdisp.c.
12842
12843 * keyboard.c (make_lispy_event): Use enum window_part.
12844
12845 * dispnew.c (mode_line_string, marginal_area_string): Use enum
12846 window_part instead of int in arg list. Users changed.
12847
12848 * xterm.h (No_Cursor): Declare as None for X.
12849 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 12850
acd37560
KS
12851 * xterm.c: Remove consolidated defines and code.
12852 (BETWEEN): Remove unused macro.
12853 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
12854 (x_define_frame_cursor, x_clear_frame_area)
12855 (x_draw_window_cursor): New X-specific functions for RIF.
12856 (x_redisplay_interface): Add new members.
12857
12858 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
12859
12860 * w32term.h (struct w32_output): Remove cross_cursor member.
12861
12862 * w32term.c: Remove consolidated defines and code.
12863 (BETWEEN): Remove unused macro.
12864 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
12865 (w32_define_frame_cursor, w32_clear_frame_area)
12866 (w32_draw_window_cursor): New W32-specific functions for RIF.
12867 (w32_redisplay_interface): Add new members.
12868
a64387ee 12869 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
12870 (XRectangle): Add X compatible rectangle type.
12871 (NativeRectangle): Declare as RECT for W32.
12872 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12873
12874 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
12875
12876 * w32console.c: Remove consolidated defines and code.
af0ad939 12877
acd37560
KS
12878 * msdos.h (Display_Info): Add generic typedef.
12879
12880 * msdos.c: Remove consolidated defines and code.
12881 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
12882
12883 * macterm.h (struct mac_output): Replace member cross_cursor by
12884 hand_cursor.
12885 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
12886
12887 * macterm.c: Remove consolidated defines and code.
12888 (BETWEEN): Remove unused macro.
12889 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
12890 (mac_define_frame_cursor, mac_clear_frame_area)
12891 (mac_draw_window_cursor): New Mac-specific functions for RIF.
12892 (x_redisplay_interface): Add new members.
12893
12894 * macgui.h (No_Cursor): Define as 0 for Mac.
12895 (XRectangle): Add X compatible rectangle type.
12896 (NativeRectangle): Declare as Rect for Mac.
12897 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12898
204ccab1
KS
12899 * macfns.c (x_set_mouse_color): Setup hand_cursor.
12900 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 12901
9443fcf6 12902 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
12903 included from it. Add dependency on keymap.h.
12904
12905 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
12906
8ba01a70 129072003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
12908
12909 * fileio.c (Fexpand_file_name): Fix previous change.
12910
8ba01a70 129112003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
12912
12913 * fileio.c (Ffile_name_directory): Reconstruct file name by
12914 make_specified_string.
12915 (Ffile_name_nondirectory, Ffile_name_as_directory)
12916 (Fdirectory_file_name, Fexpand_file_name)
12917 (Fsubstitute_in_file_name): Likewise.
12918 (Fread_file_name): Compare decoded homedir with DIR and
12919 DEFAULT_FILENAME.
12920
12921 * alloc.c (make_specified_string): If NCHARS is negative, count
12922 the number of characters.
12923
19536747
JD
129242003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12925
de38ae5a
JD
12926 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
12927 all widgets.
12928
19536747
JD
12929 * gtkutil.h: Removed xg_ignore_next_thumb.
12930
37ab321e 129312003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
12932
12933 * coding.c (Vchar_coding_system_table): Remove this variable.
12934 (Vcoding_system_safe_chars): New variable.
12935 (intersection): Remove this function.
12936 (find_safe_codings): Don't use Vchar_coding_system_table, but try
12937 all codings in SAFE_CODINGS.
00c64fab 12938 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
12939 find_safe_codings. Get generic coding systems from
12940 Vcoding_system_safe_chars.
12941 (Fdefine_coding_system_internal): New function.
12942 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
12943 Initialize and staticpro Vcoding_system_safe_chars.
12944
17097258
JD
129452003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12946
2a2071c3
JD
12947 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
12948 equal old values before updating.
12949
17097258
JD
12950 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
12951
12952 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
12953
129542003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12955
12956 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
12957 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
12958 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
12959 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
12960 (xg_create_scroll_bar): Pass bar to button event callback.
12961 (xg_find_top_left_in_fixed): New function.
12962 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
12963 whole scroll bar area. Get old position with
12964 xg_find_top_left_in_fixed, calculate and only clear needed areas.
12965 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
12966 dragging is in progress. Calculate whole as for Motif.
12967 Remove code that saved last values. Call gtk_range functions to
12968 set scroll bar sizes.
12969
12970 * gtkutil.h: Removed xg_ignore_next_thumb.
12971
8cb9dfbf
JB
129722003-03-17 Juanma Barranquero <lektu@terra.es>
12973
12974 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
12975 and files included from it.
12976
00c64fab
SM
129772003-03-18 Stefan Monnier <monnier@cs.yale.edu>
12978
12979 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
12980 multiple occurrences of the same keymap under different prefixes.
12981 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
12982
c45bb3b2
JR
129832003-03-16 Jason Rumney <jasonr@gnu.org>
12984
12985 * w32gui.h: Use HDC for Display.
12986
12987 * w32term.c (w32_encode_char): Prevent double-byte chars from
12988 crashing Emacs.
12989
12990 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
12991 as binary.
12992
2a6d0874
JB
129932003-03-16 Juanma Barranquero <lektu@terra.es>
12994
12995 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
12996
03eb5fab
KS
129972003-03-16 Kim F. Storm <storm@cua.dk>
12998
12999 The following changes consolidate some of the gui-independent
13000 parts of the processing and drawing of "glyph strings" from
13001 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 13002
03eb5fab
KS
13003 * dispextern.h (struct glyph): Reduce face_id member from 22 to
13004 21 bits (this reduces number of faces from 4M to 2M).
13005 Replace W32 specific w32_font_type member (2 bits) by generic
13006 font_type member (3 bits) for portability.
13007 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
13008 (enum draw_glyphs_face): Define here.
13009 (struct glyph_string): Define here. Merge W32 and X versions.
13010 (struct redisplay_interface): New members per_char_metric,
13011 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
13012 (VCENTER_BASELINE_OFFSET): Define here.
13013 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
13014 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
13015
13016 * xdisp.c: Consolidate gui-independent "glyph string" code here.
13017 (dump_glyph_string): Moved here.
13018 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
13019 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
13020 (fill_composite_glyph_string, fill_glyph_string)
13021 (fill_image_glyph_string, fill_stretch_glyph_string)
13022 (left_overwritten, left_overwriting, right_overwritten)
13023 (right_overwriting, get_char_face_and_encoding)
13024 (set_glyph_string_background_width, compute_overhangs_and_x)
13025 (append_glyph, append_composite_glyph, produce_image_glyph)
13026 (take_vertical_position_into_account, append_stretch_glyph)
13027 (produce_stretch_glyph): New generic functions (based on X version).
13028 Call platform specific functions through rif.
13029 (INIT_GLYPH_STRING): New macro, hides W32 details.
13030 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
13031 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
13032 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
13033 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
13034 (notice_overwritten_cursor):
13035 Generic functions exported to platform modules. Users changed.
13036
13037 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
13038 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
13039 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 13040 New macros for consolidated code.
2a6d0874 13041
03eb5fab
KS
13042 * xterm.c: Remove consolidated defines and code.
13043 (x_per_char_metric, x_encode_char)
13044 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
13045 (x_redisplay_interface): Add new members.
13046
13047 * w32gui.h (Display): Add dummy typedef for consolidation.
13048 (XChar2b): Define alias for wchar_t for consolidation.
13049 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13050
13051 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 13052 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
13053 New macros for consolidation.
13054
fad49844 13055 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
13056 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
13057 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
13058 (w32_per_char_metric): Change font_type arg to int for RIF.
13059 (w32_encode_char): Return int according to RIF requirements.
13060 (w32_compute_glyph_string_overhangs): Adapt to RIF.
13061 (w32_get_glyph_overhangs): New function for RIF. Uses generic
13062 x_get_glyph_overhangs.
13063 (w32_redisplay_interface): Add new members.
13064
13065 * macgui.h (XChar2b): Move typedef here for consolidation.
13066 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13067
13068 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
13069 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
13070 consolidation.
13071
13072 * macterm.c: Remove consolidated defines and code.
13073 (mac_per_char_metric): New function for RIF.
00c64fab 13074 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
13075 (mac_compute_glyph_string_overhangs): Adapt for RIF.
13076 (x_redisplay_interface): Add new members.
13077
00c64fab
SM
130782003-03-15 Stefan Monnier <monnier@cs.yale.edu>
13079
13080 * keymap.c (Vmenu_events): New var.
13081 (syms_of_keymap): Initialize it.
13082 (where_is_internal): Check more carefully what is a menu event.
13083
225c7a07
RS
130842003-03-14 Richard M. Stallman <rms@gnu.org>
13085
13086 * lread.c (read1): After #!, exit loop on eof.
13087
cea9be54
JD
130882003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13089
9ea0e54d
JD
13090 * gtkutil.h: Add declaration for xg_frame_cleared.
13091
0cb35f4e
JD
13092 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
13093
cea9be54
JD
13094 * gtkutil.c (struct xg_last_sb_pos): New structure.
13095 (handle_fixed_child): New function.
13096 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
13097 and force a redraw on them.
13098 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
13099 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
13100 so we can avoid unneeded redraws.
13101 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
13102 and force a redraw on the scroll bar.
13103 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
13104 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 13105 (xg_frame_cleared): New function.
cea9be54 13106
20b853f3
KH
131072003-03-13 Kenichi Handa <handa@m17n.org>
13108
13109 * coding.c (Fdetect_coding_region): Fix docstring.
13110 (Fdetect_coding_string): Fix docstring.
13111
7a555aff
AS
131122003-03-13 Andreas Schwab <schwab@suse.de>
13113
25cc0080
AS
13114 * gtkutil.c: Add prototype for create_menus.
13115
30225431
AS
13116 * data.c (long_to_cons): Fix type of top.
13117
13118 * xselect.c (selection_data_to_lisp_data): Use int instead of
13119 long for an integer of size 4.
13120
7a555aff 13121 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 13122 (xg_tool_bar_help_callback): Likewise.
7a555aff 13123
a3e4741f
AS
131242003-03-12 Andreas Schwab <schwab@suse.de>
13125
13126 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
13127
9668be7c
KS
131282003-03-12 Kim F. Storm <storm@cua.dk>
13129
03eb5fab 13130 The following changes consolidate the fringe handling from
9668be7c 13131 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 13132
9668be7c
KS
13133 * xdisp.c: Consolidate fringe handling code here.
13134 (left_bits, right_bits, continued_bits, continuation_bits)
13135 (ov_bits, zv_bits): Define fringe bitmaps.
13136 (fringe_bitmaps): New array holding fringe bitmaps.
13137 (draw_fringe_bitmap): Draw a specific bitmap; call display
13138 specific drawing routine via rif->draw_fringe_bitmap.
13139 (draw_row_fringe_bitmaps): Generic replacement for
13140 x_draw_row_fringe_bitmaps; all callers changed.
13141 (compute_fringe_widths): Generic replacement for
13142 x_compute_fringe_widths; all callers changed.
13143
13144 * dispextern.h (enum fringe_bitmap_type): Define here.
13145 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
13146 (fringe_bitmaps): Declare extern.
13147 (struct redisplay_interface): New member draw_fringe_bitmap.
13148 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
13149
13150 * xterm.c: Remove generic fringe code.
13151 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13152 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13153
13154 * w32term.c: Remove generic fringe code.
13155 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
13156 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 13157
9668be7c
KS
13158 * macterm.c: Remove generic fringe code.
13159 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13160 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13161
00a88f32
SM
131622003-03-11 Stefan Monnier <monnier@cs.yale.edu>
13163
13164 * print.c (Fprin1_to_string): Return unibyte string if possible.
13165
1d1de695
DK
131662003-03-09 David Kastrup <dak@gnu.org>
13167
13168 * process.c (read_process_output): We have allocated enough space
13169 for readmax and carryover, so actually use the alloted space.
13170
257f40f2
JD
131712003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13172
13173 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
13174 toolkit scrollbar click.
13175
13176 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
13177 for USE_GTK.
13178 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
13179 also.
1d1c7e75 13180 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 13181 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 13182
78819ebb 13183 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
13184
13185 * gtkutil.c (xg_get_scroll_id_for_window): New function.
13186 (xg_tool_bar_item_expose_callback): New function.
13187 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
13188 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
13189 on the tool bar widget.
13190 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
13191 to expose on the tool bar item widgets.
13192
15213141
JD
131932003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13194
26b74a0b 13195 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 13196 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
13197 deleted from the image cache).
13198
15213141
JD
13199 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
13200 the event isn't for a frame (i.e. for dialogs).
13201
20b853f3 132022003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
13203
13204 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
13205 composition components reaches the limit, terminate composing.
13206 (COMPOSITION_OK): New macro.
00a88f32 13207 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
13208 composition is found.
13209 (coding_restore_composition): Adjust the number of composition
13210 components if it is not sane.
13211
c9029fe5
JB
132122003-03-06 Juanma Barranquero <lektu@terra.es>
13213
13214 * w32term.h (struct w32_display_info): Add xrdb member to support
13215 passing resources via -xrm on Windows.
13216
13217 * w32term.c (w32_make_rdb): New function.
13218 (w32_term_init): Use it to initialize xrdb member of w32_display_info
13219 struct. Delete leftover code.
13220
13221 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
13222 for resources passed on the command line.
13223
13224 * w32reg.c (w32_get_rdb_resource): New function.
13225 (x_get_string_resource): Use it, so resources passed with -xrm
13226 supercede the ones in the registry.
13227
9d00001f
JD
132282003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13229
13230 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
13231 instead of x_top_window_to_frame.
13232
ca2417b9
JD
132332003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13234
13235 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
13236 when restarting Emacs.
13237
5b20caf0
RS
132382003-03-03 Richard M. Stallman <rms@gnu.org>
13239
13240 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
13241 to run kill-buffer-query-functions.
13242 (Qkill_buffer_query_functions): New var.
13243 (syms_of_buffer): Init and staticpro it.
13244
58e91b77
JD
132452003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13246
13247 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
13248
932357b4
KS
132492003-02-25 Kim F. Storm <storm@cua.dk>
13250
13251 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
13252 If centering point failed to make whole line visible and vscroll
13253 is non-zero, disable vscroll and try centering point again.
13254
13255 * lread.c (read1): Accept `single space' syntax like (? x).
13256
bb8db7e1
JD
132572003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13258
13259 * keyboard.c (cancel_hourglass_unwind): Surround with
13260 #ifdef HAVE_X_WINDOWS
13261
47d77aab
KH
132622003-02-25 Kenichi Handa <handa@m17n.org>
13263
13264 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
13265 process only when "subprocesses" is defined.
13266
6a097c0c
SM
132672003-02-24 Stefan Monnier <monnier@cs.yale.edu>
13268
13269 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
13270
0b063c27
JB
132712003-02-24 Juanma Barranquero <lektu@terra.es>
13272
d1135afc
JB
13273 * callint.c (fix_command): Declare as static void and move before
13274 Fcall_interactively.
13275
0b063c27
JB
13276 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
13277 (syms_of_xdisp): Don't initialize Qwhen.
13278
0af912f0
JD
132792003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13280
13281 * keyboard.c (cancel_hourglass_unwind): New function.
13282 (command_loop_1): Cancel hourglass with unwind-protect.
13283
120d0a23
RS
132842003-02-23 Richard M. Stallman <rms@gnu.org>
13285
13286 * callint.c (fix_command): New subroutine, from Fcall_interactively.
13287 Detect (when ... (region-beginning)) etc.
13288 (Fcall_interactively): Call fix_command.
13289 (Qif, Qwhen): New variables.
13290 (syms_of_callint): Init and staticpro them.
0b063c27 13291
120d0a23
RS
13292 * regex.c (print_partial_compiled_pattern): Output to stderr.
13293
4ece81a6
KG
132942003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13295
13296 * dired.c (directory_files_internal): Don't expand directory.
13297 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
13298 instead. From Lars Hansen <larsh@math.ku.dk>.
13299
e52bd6b7
SM
133002003-02-22 Stefan Monnier <monnier@cs.yale.edu>
13301
13302 * fns.c (string_to_multibyte): Remove unused var i.
13303 (Flanginfo): Fix int/Lisp_Object mixup.
13304 (void_call2): New fun.
13305 (Fmap_char_table): Use it in place of call2.
13306
13307 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
13308
13309 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
13310
13311 * keymap.c (copy_keymap_1): Make it static.
13312
13313 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
13314
c33ef7c4
JB
133152003-02-22 David Ponce <david@dponce.com>
13316
13317 * lread.c (Fload): Don't check STRING_MULTIBYTE.
13318
16782258
JD
133192003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13320
13321 * process.h: Removed subtty field from struct Lisp_Process.
13322
13323 * process.c (create_process): Remove setting of subtty.
13324 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
13325 (Fprocess_running_child_p, process_send_signal):
13326 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
13327 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
13328
3abeca61
KG
133292003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13330
13331 * keymap.c (Fdefine_key): Doc fix.
13332
92a8ce63
JB
133332003-02-21 Juanma Barranquero <lektu@terra.es>
13334
13335 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
13336
13337 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
13338 POLLING_PROBLEM_IN_SELECT.
13339
13340 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
13341 Delete #undef of POLLING_PROBLEM_IN_SELECT.
13342
13343 * s/hpux10-20.h: New file.
13344
e52bd6b7
SM
13345 * process.c (wait_reading_process_input):
13346 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 13347
20f1ef2e
KH
133482003-02-20 Kenichi Handa <handa@m17n.org>
13349
32d0a9dc
KH
13350 * fontset.c (check_fontset_name): If NAME is nil, return the
13351 default fontset.
13352 (override_font_info): New function.
e52bd6b7 13353 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
13354 (Ffontset_info): If FONTSET is not the default fontset, merge
13355 FONTSET onto the copy of the default fontset, and work on that
13356 copy. Document that NAME nil means the default fontset.
13357 (Ffontset_font): Document that NAME nil means the default fontset.
13358
20f1ef2e
KH
13359 * process.c (setup_process_coding_systems): If the process's
13360 in/out descriptor is -1, do nothing.
13361
77d1daf2
AS
133622003-02-19 Andreas Schwab <schwab@suse.de>
13363
e52bd6b7
SM
13364 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
13365 Add prototypes.
77d1daf2 13366
f9a45bb3
KH
133672003-02-19 Kenichi Handa <handa@m17n.org>
13368
13369 * xfaces.c (try_alternative_families): Try all scalable fonts if
13370 Vscalable_fonts_allowed is not Qt.
13371
72ecb43c
JD
133722003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13373
13374 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
13375
ee5be7c3
JD
133762003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13377
13378 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
13379 names.
13380
13381 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 13382 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
13383 x_face_list_fonts.
13384 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
13385 (Fx_list_fonts): Set maxnames to -1 to get all font names.
13386
4cd519a7
KS
133872003-02-18 Kim F. Storm <storm@cua.dk>
13388
068f9882
KS
13389 * lread.c (read1): Fix last change.
13390 "`" is not always special. Allow "?" after a character constant.
4cd519a7 13391
7290a344
AC
133922003-02-18 Andrew Choi <akochoi@shaw.ca>
13393
13394 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
13395
1f7fa69b
AS
133962003-02-18 Andreas Schwab <schwab@suse.de>
13397
13398 * window.c (window_scroll_pixel_based): Move outside a
13399 multi-glyph character before setting new window start.
13400
13401 * xdisp.c (in_display_vector_p): New function.
13402 * dispextern.h (in_display_vector_p): Declare.
13403
23e21195
KS
134042003-02-18 Kim F. Storm <storm@cua.dk>
13405
13406 * lread.c (read1): Fix and relax read syntax.
13407 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
13408 Only recognize "," after dotted-pair dot if inside backquote.
13409 Never include "`" or "," (inside backquote) in a symbol.
13410 Allow dotted-pair dot after a character constant.
13411 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 13412
f098b121
JD
134132003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13414
13415 * gtkutil.c (xg_tool_bar_expose_callback): New function.
13416 (xg_create_tool_bar): Force style of tool bar to be horizontal with
13417 icons. Set name of tool bar to emacs-toolbar.
13418 (update_frame_tool_bar): Connect expose event to
13419 xg_tool_bar_expose_callback.
13420
63020c46
RS
134212003-02-17 Richard M. Stallman <rms@gnu.org>
13422
13423 * keyboard.c (this_command_key_count_reset): New variable.
13424 Initiatize to 0 where this_command_key_count is set.
13425 (read_char): Save and restore this_command_key_count_reset
13426 around input method code.
13427 (read_char): If this_command_key_count_reset, echo reread commands.
13428 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
13429
fb4452cc
KH
134302003-02-17 Kenichi Handa <handa@m17n.org>
13431
13432 * fns.c (string_to_multibyte): Always return a multibyte string.
13433
bd11cc09
JR
134342003-02-16 Jason Rumney <jasonr@gnu.org>
13435
e52bd6b7
SM
13436 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
13437 Negative max_fonts parameter means list all.
bd11cc09 13438
4cdf4bde
DL
134392003-02-14 Dave Love <fx@gnu.org>
13440
13441 * fns.c (Flanginfo): Doc fix.
13442
023b93f6
KS
134432003-02-13 Kim F. Storm <storm@cua.dk>
13444
37cd4238
KS
13445 * lread.c (read_escape): Interpret \s as a SPACE character, except
13446 for \s-X in a character constant which still is the super modifier.
13447 (read1): Signal an `invalid read syntax' error if a character
13448 constant is immediately followed by a digit or symbol character.
13449
140a6b7e
KS
13450 * search.c (Fmatch_data): Doc fix. Explicitly state that
13451 match-data is undefined if last search failed.
13452
3419757d 13453 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
13454 All uses changed.
13455
7d5c86e5
JB
134562003-02-12 Juanma Barranquero <lektu@terra.es>
13457
13458 * eval.c (Fdefmacro): Fix typo.
13459
295fff2c
KS
134602003-02-12 Kim F. Storm <storm@cua.dk>
13461
13462 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
13463 macro is a string, convert meta modifiers in string when copying
13464 the string into a vector.
13465
60f3202d
KS
134662003-02-11 Kim F. Storm <storm@cua.dk>
13467
13468 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
13469
61cb0b53
KH
134702003-02-11 Kenichi Handa <handa@m17n.org>
13471
13472 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
13473
7392e23c
KS
134742003-02-10 Kim F. Storm <storm@cua.dk>
13475
13476 * process.c: Doc fixes.
13477 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
13478
ce4254bd
KH
134792003-02-10 Kenichi Handa <handa@m17n.org>
13480
9c7a329a
KH
13481 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
13482
ce4254bd
KH
13483 * process.c (QCfilter_multibyte): New variable.
13484 (setup_process_coding_systems): New function.
e52bd6b7
SM
13485 (Fset_process_buffer, Fset_process_filter):
13486 Call setup_process_coding_systems.
ce4254bd
KH
13487 (Fstart_process): Initialize the member `filter_multibyte' of
13488 struct Lisp_Process.
13489 (create_process): Call setup_process_coding_systems.
13490 (Fmake_network_process): New keyward `:filter-multibyte'.
13491 Initialize the member `filter_multibyte' of struct Lisp_Process.
13492 Call setup_process_coding_systems.
13493 (server_accept_connection): Call setup_process_coding_systems.
13494 (read_process_output): If the process has a filter, decide the
13495 multibyteness of a string to given to the filter by
13496 `filter_multibyte' member of the process. If the process doesn't
13497 have a filter and the result of conversion is unibyte, use
13498 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
13499 multibyte form.
13500 (Fset_process_coding_system): Call setup_process_coding_systems.
13501 (Fset_process_filter_multibyte): New function.
13502 (Fprocess_filter_multibyte_p): New function.
13503 (syms_of_process): Intern and staticpro QCfilter_multibyte.
13504 Defsubr Sset_process_filter_multibyte and
13505 Sprocess_filter_multibyte_p.
13506
13507 * process.h (struct Lisp_Process): New member filter_multibyte.
13508
13509 * lisp.h (setup_process_coding_systems): Add prototype.
13510
13511 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
13512 process, update coding systems for the process.
13513
b08d5f59
KH
135142003-02-09 Kenichi Handa <handa@m17n.org>
13515
13516 * fns.c (string_to_multibyte): New function.
13517 (Fstring_to_multibyte): New function.
13518 (syms_of_fns): Defsubr it.
13519
0dfd93c0
AS
135202003-02-08 Andreas Schwab <schwab@suse.de>
13521
13522 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
13523 instead of the substitution.
13524
7b76ca1c
JD
135252003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13526
13527 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
13528
13529 * xmenu.c (menu_position_func): Adjust menu popup position so that
13530 the menu is fully visible.
7b76ca1c 13531
2436a4e4
JD
135322003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13533
13534 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
13535 (x_make_frame_invisible, x_wm_set_icon_position):
13536 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
13537
13538 * xfns.c (x_set_name, x_set_title): Ditto.
13539
37d1e680
RS
135402003-02-04 Richard M. Stallman <rms@gnu.org>
13541
13542 * keyboard.c (echo_now): Update before_command_echo_length.
13543 (Freset_this_command_lengths): Reset this_command_key_count etc.
13544 immediately rather than arranging to do it later.
13545 (before_command_key_count_1, before_command_echo_length_1)
13546 (before_command_restore_flag): Vars deleted.
13547 (add_command_key): Don't handle before_command_restore_flag.
13548 (read_char, record_menu_key): Don't update before_command_key_count or
13549 before_command_echo_length.
13550 (read_char): Don't handle before_command_restore_flag.
13551
13552 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
13553 in direct-output clauses if it wouldn't be called in the ordinary case.
13554
578846a3
KS
135552003-02-04 Kim F. Storm <storm@cua.dk>
13556
13557 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
13558
49853a4d
JD
135592003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13560
13561 * gtkutil.c (remove_from_container): Copying list is not needed.
13562 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
13563 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
13564 on list returned from gtk_container_get_children to avoid memory leak.
13565
8b53dc06
JR
135662003-02-01 Jason Rumney <jasonr@gnu.org>
13567
5d54d177
JR
13568 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
13569 local malloc.
13570 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
13571 definitions in xpm.h.
13572 (init_xpm_functions): New function.
f63fd14e 13573 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
13574 (init_external_image_libraries): Try to load libXpm.dll.
13575
8b53dc06
JR
13576 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
13577 timestamp.
13578
b222e415
DL
135792003-01-31 Dave Love <fx@gnu.org>
13580
13581 * syntax.c (Fskip_chars_forward)
13582 (open-paren-in-column-0-is-defun-start): Doc fix.
13583
c60ee5e7
JB
135842003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
13585
13586 * fileio.c: Support // at start of name for Cygwin (just added proper
13587 preprocessor tests).
13588
13589 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
13590
13591 * Makefile.in: Use @EXEEXT@ for Cygwin.
13592
13593 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
13594
13595 * s/cygwin.h: Added for Cygwin port.
13596
53b37591
JB
135972003-01-31 Juanma Barranquero <lektu@terra.es>
13598
13599 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
13600 when including gif_lib.h.
fe929957 13601 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
13602 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
13603 Windows. Disable color table lookups. Call library functions
53b37591 13604 through pointers determined at runtime.
fe929957
JB
13605 (init_external_image_libraries): Try to load libungif.dll and
13606 libtiff.dll.
53b37591 13607
45415a8f
KH
136082003-01-31 Kenichi Handa <handa@m17n.org>
13609
13610 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 13611 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 13612
a97e4138
JD
136132003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13614
e52bd6b7 13615 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 13616
6eed9bed
DL
136172003-01-30 Dave Love <fx@gnu.org>
13618
13619 * alloc.c (Vgc_elapsed, gcs_done): New variables.
13620 (Fgarbage_collect): Use them.
13621 (init_alloc, syms_of_alloc): Set them up.
13622
100dcd40
JB
136232003-01-30 Juanma Barranquero <lektu@terra.es>
13624
13625 * w32fns.c (init_external_image_libraries): Add missing operator.
13626
fbd852af
JR
136272003-01-29 Jason Rumney <jasonr@gnu.org>
13628
13629 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
13630 an alternative name for jpeg.dll.
13631
8a2d8020
KH
136322003-01-29 Kenichi Handa <handa@m17n.org>
13633
13634 * xdisp.c (set_cursor_from_row): Pay attention to string display
13635 properties.
13636
058c18c7
AC
136372003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
13638
13639 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
13640 <escape>.
13641 (keycode_to_xkeysym_table): Reformat and add more comments.
13642 (XTread_socket): Drop special case for backspace.
13643
385f11cf
AC
136442003-01-28 Andrew Choi <akochoi@shaw.ca>
13645
13646 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
13647 values in old-style RGB specs.
13648
c922a224
JB
136492003-01-27 Juanma Barranquero <lektu@terra.es>
13650
13651 * w32fns.c (init_external_image_libraries): Try alternate names for the
13652 jpeg dll.
13653
0a1d6de0
JD
136542003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13655
13656 * gtkutil.c (create_dialog, xg_separator_p)
13657 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
13658 before calling strcmp or strlen.
13659
a97e4138 136602003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
13661
13662 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
13663 and handle image load failure.
13664
28908312
JR
136652003-01-26 Jason Rumney <jasonr@gnu.org>
13666
13667 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
13668 New functions.
f63fd14e
JB
13669 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
13670 Disable color table lookups. Call jpeg library functions
28908312
JR
13671 through pointers determined at runtime.
13672 (init_external_image_libraries): Try to load jpeg.dll.
13673
84e47416
RS
136742003-01-25 Richard M. Stallman <rms@gnu.org>
13675
13676 * lisp.h: Declare format2 instead of format1.
13677
13678 * fileio.c (barf_or_query_if_file_exists):
13679 Call format2 instead of format1.
13680
13681 * editfns.c (format2): New function, replaces format1
13682 but takes exactly two Lisp Objects as format args.
13683
13684 * buffer.c (Fkill_buffer): Call format2 instead of format1.
13685
a97e4138 136862003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
13687
13688 * xterm.h: Change to return value of x_dispatch_event to int.
13689
13690 * xterm.c (x_filter_event): New function.
13691 (event_handler_gdk, XTread_socket): Call x_filter_event.
13692 (x_dispatch_event): Change to return value of finish.
13693 (event_handler_gdk): Use return value from x_dispatch_event.
13694
13695 * xfns.c (x_window): Call create_frame_xic for GTK version to
13696 initialize input methods.
13697
13698 * gtkutil.h: Add (void) prototypes.
13699
13700 * gtkutil.c (create_menus): Remove code that puts the help menu to
13701 the right.
13702
54eefef1
JR
137032003-01-25 Jason Rumney <jasonr@gnu.org>
13704
13705 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
13706 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
13707 (png_load): Adjust colors for Windows. Use Windows
13708 bitmaps. Disable color table lookups.
c262430d
JR
13709 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
13710 (init_png_functions): New function.
13711 (png_read_from_memory, png_load): Call png library functions
13712 through pointers determined at runtime.
13713 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
13714 (init_external_image_libraries): New function.
13715 (init_xfns): Call it.
54eefef1 13716
1a9e275b
AS
137172003-01-24 Andreas Schwab <schwab@suse.de>
13718
13719 * minibuf.c (Fminibuffer_message): Verify type of parameter.
13720
a97e4138 137212003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
13722
13723 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
13724 of static initializer.
13725
422eec7e
DL
137262003-01-24 Dave Love <fx@gnu.org>
13727
13728 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
13729 architectures.
13730
13731 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
13732 Use __alignof__.
13733
2a026b04
KH
137342003-01-24 Kenichi Handa <handa@m17n.org>
13735
13736 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 13737 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
13738 (command_loop_1): Call adjust_point_for_property with proper
13739 second arg.
13740
a18bb28d
JR
137412003-01-22 Jason Rumney <jasonr@gnu.org>
13742
13743 Sync changes with xterm.c and xfns.c.
13744
13745 * w32term.c (x_draw_glyph_string_foreground)
13746 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13747
13748 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
13749 phys_cursor's hpos is overwritten. This is still not completely
13750 correct, as it doesn't really make sense to use hpos at all to
13751 get the cursor glyph (as that is relative to the width of the
13752 characters on the line, which may have changed during the update).
13753
13754 * w32term.c (notice_overwritten_cursor): Handle the special case
13755 of the cursor being in the first blank non-text line at the
13756 end of a window.
13757
13758 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13759 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13760 Compute from the x position returned by x_draw_glyphs.
13761
13762 (x_display_and_set_cursor): Don't set phys_cursor_width here,
13763 except for NO_CURSOR and system caret, to make phys_cursor_width
13764 contain what its name suggests.
13765 (notice_overwritten_cursor): Consider the cursor image erased if
13766 the output area intersects the cursor image in y-direction.
13767
6a097c0c
SM
13768 * w32term.c (note_mode_line_or_margin_highlight): Rename from
13769 note_mode_line_highlight and extend.
a18bb28d
JR
13770
13771 * w32term.c (last_window): New variable.
13772 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
13773 (note_mouse_movement): Remove reimplemented code in #if 0.
13774
13775 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
13776 not update_mode_lines, and always set it to 1.
13777
ac6e47ef
JR
137782003-01-21 Jason Rumney <jasonr@gnu.org>
13779
13780 * w32fns.c (IDC_HAND): Define it if system headers don't.
13781
137822003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13783
13784 * w32term.h (struct w32_output): New member hand_cursor.
13785 (WM_EMACS_SETCURSOR): New message definition.
13786
13787 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
13788 function w32_define_cursor.
13789 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
13790 position, change member name output_data.x to output_data.w32 and
13791 add function w32_define_cursor.
13792 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
13793 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
13794 (w32_initialize_display_info):
13795 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
13796
13797 * w32fns.c (Vx_hand_shape): New variable.
13798 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
13799 WM_EMACS_SETCURSOR.
13800 (x-create-frame): Setup Cursor types.
13801
ceb39a17
JB
138022003-01-21 David Ponce <david@dponce.com>
13803
ac6e47ef 13804 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
13805 ccl->reg[2] to -1 before calling ccl_driver.
13806 (Sync. with xterm.c x_encode_char change by Kenichi Handa
13807 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
13808 (w32_draw_relief_rect): Declare all args.
13809 (w32_define_cursor): New.
13810
13811 * w32fns.c (w32_load_cursor): New function.
13812 (w32_init_class): Use it.
13813 (x_put_x_image): Declare all args.
13814
b6189c3b 138152003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
13816
13817 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
13818
a97e4138 138192003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
13820
13821 * gtkutil.c: Must include stdio.h before termhooks.h
13822
83fc9c63
DL
138232003-01-21 Dave Love <fx@gnu.org>
13824
13825 * alloc.c (Fgc_status): Print zombie list.
13826 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13827 Fix assignment of zombies.
13828 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13829 Don't take car of non-cons.
13830
13831 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13832
13833 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13834
fe04b8c8
JR
138352003-01-20 David Ponce <david@dponce.com>
13836
13837 * w32menu.c (digest_single_submenu): Declare all args.
13838
13839 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
13840 changes in xmenu.c:
13841
13842 (parse_single_submenu): Use individual keymap's prompt
13843 string as pane name, if there is one.
13844 (set_frame_menubar): Save menu_items_n_panes from each call to
13845 parse_single_submenu and use it when calling digest_single_submenu.
13846
539e69a9
ST
138472003-01-20 Steven Tamm <steventamm@mac.com>
13848
7e26f91b 13849 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
13850 before sending a scroll-wheel event.
13851
675d000f
RS
138522003-01-20 Richard M. Stallman <rms@gnu.org>
13853
13854 * xdisp.c (redisplay_window): If mini window's buffer is not
13855 a minibuffer, then redisplay it like other windows.
13856
a97e4138 138572003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
13858
13859 * gtkutil.c (xg_create_frame_widgets): Check if there is an
13860 external tool bar before setting tool bar height.
13861
048addec
JD
138622003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13863
13864 * xterm.c (handle_one_xevent): Surround popup_activated
13865 with #ifdef:s for non-toolkit version.
13866
13867 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
13868 (gtkutil.o): New file.
13869 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
13870 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
13871
13872 * gtkutil.c: New file for GTK version.
13873
13874 * gtkutil.h: New file for GTK version.
13875
13876 * xterm.h: Add xt_or_gtk_widget.
13877 Include gtk files for USE_GTK.
13878 (struct x_output): Add toolbar_height.
13879 (struct x_output): Add GTK widgets and Gdk size_hints.
13880 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
13881 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
13882 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
13883
13884 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 13885 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
13886 (note_mouse_highlight): Check popup_activated for USE_GTK.
13887 (xt_action_hook): Don't compile if USE_GTK.
13888 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
13889 (xg_scroll_callback): New function.
13890 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
13891 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
13892 for USE_GTK.
13893 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
13894 xg_show_scroll_bar for USE_GTK.
13895 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
13896 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
13897 (event_handler_gdk): New function for USE_GTK.
13898 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
13899 (handle_one_xevent): Make sure widget is mapped before
13900 calling x_real_positions for USE_GTK.
13901 (XTread_socket): Add GTK event loop for USE_GTK.
13902 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
13903 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
13904 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
13905 (x_iconify_frame): Add code for USE_GTK.
13906 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
13907 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
13908 is in gtkutil.c.
13909 (x_term_init): Add initialization for GTK.
13910 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
13911
13912 * xmenu.c: Include gtkutil.h for USE_GTK.
13913 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
13914 (single_menu_item, single_menu_item, Fx_popup_dialog):
13915 Check for USE_GTK.
048addec
JD
13916 (popup_widget_loop): New function for USE_GTK.
13917 (x_activate_menubar): Add code for USE_GTK.
13918 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
13919 (menu_highlight_callback, menubar_selection_callback):
13920 Add USE_GTK versions.
048addec
JD
13921 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
13922 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
13923 (free_frame_menubar): Only compile if not USE_GTK. GTK version
13924 is in gtkutil.c.
13925 (popup_selection_callback): New version for USE_GTK.
13926 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 13927 one USE_X_TOOLKIT version.
048addec
JD
13928 (xmenu_show): Call create_and_show_popup_menu.
13929 (dialog_selection_callback): New version for USE_GTK.
13930 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 13931 one USE_X_TOOLKIT version.
048addec
JD
13932 (xdialog_show): Call create_and_show_dialog.
13933
13934 * xfns.c: Include gtkutil for USE_GTK.
13935 (x_window_to_frame, x_any_window_to_frame)
13936 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13937 (x_top_window_to_frame): Add code for USE_GTK.
13938 (x_set_background_color): Call xg_set_background_color for GTK.
13939 (x_set_menu_bar_lines): Check for USE_GTK.
13940 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
13941 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
13942 (x_window): Call xg_create_frame_widgets for USE_GTK.
13943 (Fx_create_frame): Check for USE_GTK
13944 (Fx_file_dialog): New implementation for USE_GTK.
13945
13946 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
13947 (update_menu_bar): Add check for USE_GTK.
13948 (update_tool_bar): Add check for USE_GTK and external tool bar.
13949 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
13950 (redisplay_internal): Add check for USE_GTK and popup_activated.
13951 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
13952 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
13953 (display_menu_bar): Add check for USE_GTK
13954
78819ebb 13955 * lisp.h (Vx_resource_name): Declare extern.
048addec 13956
a64387ee 13957 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
13958 for USE_GTK.
13959 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
13960
13961 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
13962 (FRAME_EXTERNAL_TOOL_BAR): New macro.
13963 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
13964
13965 * fileio.c (Fread_file_name): Add check for USE_GTK.
13966
6bdb309a
SM
13967 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
13968 Add check for USE_GTK.
048addec
JD
13969
13970 * config.in: Added HAVE_GTK
13971
13972 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
13973
139742003-01-18 Stefan Monnier <monnier@cs.yale.edu>
13975
13976 * charset.h (Funibyte_char_to_multibyte): Export.
13977
139782003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13979
13980 * xmenu.c (mouse_position_for_popup): New function.
13981 (Fx_popup_menu): Call mouse_position_for_popup for X and
13982 mouse_position_hook for others.
13983
139842003-01-17 Kim F. Storm <storm@cua.dk>
13985
13986 * editfns.c (Finsert): Mention `string-make-multibyte' and
13987 `string-as-multibyte' in doc string.
13988
139892003-01-17 Kenichi Handa <handa@m17n.org>
13990
13991 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 13992
048addec
JD
13993 * editfns.c (Fformat): Convert an unibyte char argument that is
13994 formatted by "%c" to multibyte if the total result must be a
13995 multibyte string.
cd7df9c0 13996
048addec 139972003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 13998
048addec
JD
13999 * process.c (set-process-filter): Document unibyte/multibyte-ness
14000 of string argument.
56210ecd 14001
048addec 140022003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 14003
048addec 14004 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 14005
048addec
JD
14006 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
14007 (re_search_2): Likewise.
6df8b9fe 14008
048addec 140092003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 14010
048addec
JD
14011 * xdisp.c (message_dolog): Fix bug of the case that *Message*
14012 buffer is unibyte.
292ddc31 14013
048addec 140142003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 14015
048addec 14016 * fns.c (Fsubstring): Clarify doc string.
292ddc31 14017
048addec
JD
14018 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
14019 (Fprevious_char_property_change)
14020 (Fnext_single_char_property_change)
14021 (Fprevious_single_char_property_change, Fnext_property_change)
14022 (Fnext_single_property_change, Fprevious_property_change)
14023 (Fprevious_single_property_change, Fadd_text_properties)
14024 (Fput_text_property, Fset_text_properties)
14025 (Fremove_text_properties, Fremove_list_of_text_properties)
14026 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 14027
048addec 140282003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 14029
048addec
JD
14030 * process.h (struct Lisp_Process): New member plist replaces old
14031 member private_vars. All uses changed.
63e4e4c6 14032
048addec 14033 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 14034 (QCplist): Rename from QCvars. Change all uses.
048addec 14035 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 14036 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 14037 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 14038 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 14039
048addec 140402003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 14041
6bdb309a 14042 * m/delta.h: Remove (obsolete).
e833850f 14043
048addec 140442003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 14045
048addec
JD
14046 * fileio.c (Fdelete_directory, Fdelete_file): Document the
14047 behaviour in front of symlinks.
14048 (Fdelete_file): Raise an error on directories.
817cb127 14049
048addec 140502003-01-13 Dave Love <fx@gnu.org>
817cb127 14051
048addec 14052 * fns.c (Freverse): Use QUIT.
3e8cf2ea 14053
048addec 140542003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 14055
048addec
JD
14056 * minibuf.c (minibuffer_completion_contents):
14057 Error if point is inside prompt.
3e8cf2ea 14058
048addec
JD
14059 * keyboard.c (command_loop_1): Don't redisplay directly
14060 if there's a post-command-hook.
3e8cf2ea 14061
048addec
JD
14062 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
14063 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 14064
048addec 140652003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 14066
048addec 14067 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 14068
048addec
JD
14069 * process.c (QCvars): New variable.
14070 (syms_of_process): Intern and staticpro it.
14071 (Fset_process_contact): Removed function.
14072 (Fprocess_variable, Fset_process_variable): New functions.
14073 (syms_of_process): Defsubr them.
14074 (Fstart_process): Initialize private_vars plist to nil.
14075 (Fmake_network_process): New arg :vars to setup the private
14076 variables for new network process.
14077 (server_accept_connection): Copy server's private variables to
14078 client process.
2c10f029 14079
048addec
JD
14080 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
14081 crashes). Code rewritten and simplified. Now directly aligns the
14082 pointer and recalculates pure_bytes_used, rather than aligning the
14083 size and adjusting the pointer.
b8a76c6c 14084
048addec 140852003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 14086
048addec
JD
14087 * process.c (Fset_process_contact): New function.
14088 (syms_of_process): defsubr it.
14089 (make-network-process): Update doc.
3a8d0899 14090
048addec 140912003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 14092
048addec
JD
14093 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
14094 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 14095
048addec 140962003-01-10 Dave Love <fx@gnu.org>
4abc7470 14097
048addec 14098 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 14099
048addec 141002003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 14101
048addec
JD
14102 * process.c (Fmake_network_process): Convert new port number
14103 to host byte order for `:service t' case. From Mario Lang.
bf338245 14104
048addec 141052003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 14106
048addec
JD
14107 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
14108 instead of XtAppProcessEvent.
bf338245 14109
048addec
JD
14110 * xterm.c (handle_one_xevent): New function.
14111 (x_dispatch_event): New function.
14112 (XTread_socket): Call handle_one_xevent.
bf338245 14113
048addec 14114 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 14115
048addec
JD
14116 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
14117 call XQueryPointer to get coordinates.
14118 (popup_get_selection): Do not set popup_activated_flag to zero,
14119 let popup_deactivate_callback do that. Needed for Motif.
14120 Call x_dispatch_event instead of XtDispatchEvent.
14121 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 14122
048addec 141232003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 14124
6bdb309a 14125 * process.c (server_accept_connection): Fix recording of new
048addec
JD
14126 connection's local address in :local property of contact info.
14127 (Fmake_network_process): Record local network address for new
14128 client processes in :local property of contact info.
6bdb309a 14129 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 14130
048addec 141312003-01-07 Dave Love <fx@gnu.org>
00e3ab56 14132
048addec 14133 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 14134
048addec 141352003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 14136
048addec 14137 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 14138
048addec
JD
14139 * eval.c (Fuser_variable_p): Doc change. For custom variables,
14140 use the same test as for custom-variable-p.
8c6d74c6 14141
048addec 141422003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 14143
048addec
JD
14144 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
14145 Count LAST_LINE_MISFIT in scroll margin for end of window.
14146 Move label too_near_end before setting SCROLL_MARGIN_POS.
14147 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 14148
048addec
JD
14149 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
14150 scroll_conservatively case. If scrolling that much doesn't change
14151 STARTP, move it down one line.
e833850f 14152
048addec
JD
14153 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
14154 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 14155
048addec
JD
14156 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
14157 selected frame.
8c6d74c6 14158
048addec 14159 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 14160 (syms_of_keymap): Staticpro them.
048addec
JD
14161 (Fapropos_internal): Initialize them and clear them out.
14162 Don't GCPRO them.
8c6d74c6 14163
048addec
JD
14164 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
14165 Doc fixes.
8c6d74c6 14166
048addec
JD
14167 * lisp.h: New misc type Lisp_Save_Value.
14168 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
14169 (XSAVE_VALUE): New macro.
14170 (struct Lisp_Save_Value): New data type.
14171 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 14172 (make_save_value): Declare.
8c6d74c6 14173
048addec 14174 * alloc.c (make_save_value): New function.
8c6d74c6 14175
048addec
JD
14176 * xterm.c (x_catch_errors): Save dpy using make_save_value.
14177 (x_catch_errors_unwind): Call XSync.
8c6d74c6 14178
048addec 141792003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 14180
048addec 14181 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 14182
048addec
JD
14183 * keyboard.c (command_loop_1): Call adjust_point_for_property
14184 in direct action cases for Qforward_char and Qbackward_char.
14185 Set already_adjusted so it won't be done twice.
8c6d74c6 14186
b6189c3b 141872002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 14188
048addec
JD
14189 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
14190 type definition of size_t.
8c609cff 14191
048addec 141922003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 14193
048addec
JD
14194 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
14195 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 14196
048addec 141972002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 14198
048addec
JD
14199 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
14200 to default to t.
fa634a5e 14201
048addec 142022002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 14203
048addec 14204 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 14205
048addec 142062002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 14207
7e26f91b 14208 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
14209 allow building in a different directory than source. Uses some
14210 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 14211
048addec 142122002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 14213
048addec
JD
14214 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
14215 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
14216 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
14217 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 14218
048addec 142192002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 14220
048addec
JD
14221 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
14222 <scroll-down-aggressively>: Doc fix.
2155ecf3 14223
048addec
JD
14224 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
14225 string as pane name, if there is one.
14226 (set_frame_menubar): Save menu_items_n_panes from each call to
14227 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 14228
048addec
JD
14229 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
14230 Don't try to make last line fully visible if it is past end of window.
61f1d295 14231
048addec 142322002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 14233
048addec
JD
14234 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
14235 (mac_menu_show): Add support for hierarchical popup menus.
14236 (add_menu_item): Remove indentation support.
14237 (fill_submenu, fill_menu): Create hierarchical menus
14238 instead of using indentation.
0b17a217 14239
048addec 142402002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 14241
048addec
JD
14242 * xdisp.c (try_cursor_movement): Don't call try_window here.
14243 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 14244
048addec 14245 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 14246
048addec 142472002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 14248
048addec
JD
14249 * macterm.c (XTread_socket): Call KeyTranslate for control and
14250 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 14251 being treated like C-%. Do not look for shift key to deal
048addec 14252 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 14253
048addec 142542002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 14255
048addec
JD
14256 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
14257 If it is non-nil, run timers. Use an unwind-protect to requeue
14258 the events that were read ahead.
14259 (popup_get_selection_unwind): New subroutine.
14260 (popup_get_selection_queue): File-scope variable now holds that queue.
14261 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
14262 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
14263 Use an unwind-protect to pop down the dialog box.
14264 (xdialog_show_unwind): New subroutine implements that.
f02cac82 14265
048addec
JD
14266 * xdisp.c (row_containing_pos): Change exit test using last_y.
14267 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 14268
048addec
JD
14269 * lread.c (load_error_handler): New function.
14270 (Fload): Handle errors in Fsubstitute_in_file_name.
14271 Don't expect Fsignal to return.
f02cac82 14272
048addec
JD
14273 * eval.c: Errors and throws work right with interrupt blocking.
14274 (struct catchtag): New elt interrupt_input_blocked.
14275 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
14276 (internal_catch, Fcondition_case, internal_condition_case)
14277 (internal_condition_case_1, internal_condition_case_2): Save it.
14278 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 14279
048addec 14280 * editfns.c (Fformat): Add parens.
f02cac82 14281
048addec
JD
14282 * dired.c (file_name_completion): Fix that change.
14283 Delete special quit-handling code; just use QUIT.
f02cac82 14284
b6189c3b 142852002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 14286
048addec
JD
14287 * dired.c (file_name_completion): Close directory on error
14288 just as in directory_files_internal.
1a590729 14289
048addec 142902002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 14291
048addec
JD
14292 * window.c (Fset_window_configuration): Set old_point to correct
14293 value when new_current_buffer == current_buffer.
f02cac82 14294
048addec 142952002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 14296
048addec
JD
14297 Revisited my earlier fix for the following entry in etc/PROBLEMS:
14298 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14299 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 14300
048addec
JD
14301 These changes were in part based upon suggestions made by Peter
14302 'Luna' Runestig [peter@runestig.com].
9785d95b 14303
f4a5a485
SM
14304 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
14305 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
14306 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 14307 global variables.
9785d95b 14308
048addec
JD
14309 * w32.c (globals_of_w32): New function. Used to initialize those
14310 global variables that must always be initialized on startup even
14311 when the global variable initialized is non zero. Its primary
14312 purpose at this time is to set the global variables
14313 g_b_init_is_windows_9x, g_b_init_open_process_token,
14314 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
14315 g_b_init_get_sid_identifier_authority to 0 on startup.
14316 Called from main.
9785d95b 14317
048addec
JD
14318 * w32.c (is_windows_9x): Perform initialization only if
14319 g_b_init_is_windows_9x is equal to 0. On initialization set
14320 g_b_init_is_windows_9x equal to 1.
2308af15 14321
048addec
JD
14322 * w32.c (open_process_token): Perform initialization only if
14323 g_b_init_open_process_token is equal to 0. On initialization set
14324 g_b_init_open_process_token equal to 1.
2308af15 14325
048addec
JD
14326 * w32.c (get_token_information): Perform initialization only if
14327 g_b_init_get_token_information is equal to 0. On initialization
14328 set g_b_init_get_token_information equal to 1.
9785d95b 14329
048addec
JD
14330 * w32.c (lookup_account_sid): Perform initialization only if
14331 g_b_init_lookup_account_sid is equal to 0. On initialization
14332 set g_b_init_lookup_account_sid equal to 1.
9785d95b 14333
048addec
JD
14334 * w32.c (get_sid_identifier_authority): Perform initialization
14335 only if g_b_init_get_sid_identifier_authority is equal to 0.
14336 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 14337
f63fd14e 14338 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
14339 those global variables that must always be initialized on startup
14340 even when the global variable initialized is non zero.
14341 Its primary purpose at this time is to initialize the global variable
14342 track_mouse_event_fn.
9785d95b 14343
a64387ee 14344 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 14345 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 14346
048addec 14347 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 14348
f63fd14e 14349 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
14350 initialize those global variables that must always be initialized
14351 on startup even when the global variable initialized is non zero.
14352 Its primary purpose at this time is to initialize the global
14353 variables get_menu_item_info and set_menu_item_info.
9785d95b 14354
048addec
JD
14355 * w32menu.c (initialize_frame_menubar): Remove initialization of
14356 get_menu_item_info and set_menu_item_info.
9785d95b 14357
048addec 14358 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 14359
048addec
JD
14360 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
14361 Declare them.
9785d95b 14362
048addec
JD
14363 * emacs.c (main): Call globals_of_w32 prior to calling
14364 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
14365 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
14366 is defined.
9785d95b 14367
048addec
JD
14368 * w32term.c (x_update_window_begin): Fix Windows API error
14369 detected by BoundsChecker. Test to determine if
14370 w32_system_caret_hwnd is NULL prior to attempting to use
14371 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 14372
048addec
JD
14373 * w32term.c (x_update_window_end): Fix Windows API error
14374 detected by BoundsChecker. Test to determine if
14375 w32_system_caret_hwnd is NULL prior to attempting to use
14376 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 14377
048addec 143782002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 14379
048addec
JD
14380 * coding.c (coding_system_require_warning): New variable.
14381 (syms_of_coding): DEFVAR it.
b6da19ef 14382
048addec 14383 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 14384
048addec
JD
14385 * fileio.c (choose_write_coding_system): Even if
14386 Vcoding_system_for_write is non-nil, if
14387 coding_system_require_warning is nonzero, call
14388 Vselect_safe_coding_system_function.
bfcf6dbe 14389
048addec 143902002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 14391
048addec
JD
14392 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
14393 (lisp): Add font-core.
2c568af5 14394
048addec 143952002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 14396
048addec
JD
14397 * textprop.c (text_read_only): New arg `propval'.
14398 (get_char_property_and_overlay): Remove unused var `next_overlay'.
14399 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 14400
048addec 144012002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 14402
048addec 14403 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 14404
048addec 144052002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 14406
048addec
JD
14407 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
14408 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
14409 Be more careful about when help_events are generated.
96720f09 14410
048addec 144112002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 14412
048addec
JD
14413 * macterm.c (mac_check_for_quit_char): Correctly set the
14414 modifiers of the event to 0.
14415 * mac.c (sys_select): Duplicate rfds before calling select to
14416 ensure that rfds survive the while loop.
e5ae1c49 14417
048addec 144182002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 14419
048addec
JD
14420 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
14421 row_containing_pos returned NULL.
2eb46b2d 14422
048addec 144232002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 14424
6bdb309a 14425 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 14426 non-blocking.
6bdb309a 14427 (sys_select): Fix sys_select to not use a timeout larger than
048addec 14428 the one given.
b11f1d8a 14429
048addec 144302002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 14431
048addec 14432 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 14433
048addec 144342002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 14435
048addec
JD
14436 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
14437 as the last thing.
a4ac5b17 14438
048addec 144392002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 14440
048addec 14441 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 14442
048addec 144432002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 14444
048addec
JD
14445 * editfns.c (Fformat): Handle precision in string conversion
14446 specifiers like libc functions do (ie, print at most that many
14447 characters).
85cce843 14448
048addec 144492002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 14450
048addec
JD
14451 * xdisp.c (row_containing_pos): Check more carefully
14452 whether charpos is really in the row before returning it.
0d4d26a7 14453
048addec 144542002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 14455
048addec 14456 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 14457
048addec
JD
14458 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
14459 each stack frame. This may change as it could be time consuming.
0d4d26a7 14460
048addec
JD
14461 * macterm.c (mac_check_for_quit_char, quit_char_comp)
14462 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 14463 (mac_initialize): Add code to check for pressing of quit_char
048addec 14464 in the OS event queue.
b11f1d8a 14465
048addec
JD
14466 * mac.c (sys_select): Call mac_check_for_quit_char every second
14467 while blocking on select.
0d4d26a7 14468
048addec
JD
14469 * mac.c (sys_read): Use sys_select to test for input first
14470 before calling read, to allow C-g to break.
9252f7bc 14471
048addec 144722002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 14473
048addec 14474 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 14475
048addec 14476 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 14477
048addec 14478 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 14479
048addec
JD
14480 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
14481 autoload.
9252f7bc 14482
048addec 14483 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 14484
048addec 14485 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 14486
048addec 144872002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 14488
048addec 14489 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 14490
048addec 144912002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 14492
048addec 14493 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14494
048addec 14495 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14496
048addec 14497 * alloca.c: Don't use #error.
02d588e2 14498
048addec 144992002-12-03 Dave Love <fx@gnu.org>
02d588e2 14500
048addec
JD
14501 * buffer.c (Qucs_set_table_for_input): New.
14502 (Fget_buffer_create): Use it.
14503 (Qset_buffer_major_mode_hook): Deleted.
14504 (Fset_buffer_major_mode): Revert previous change.
14505 (init_buffer_once): Intern ucs-set-table-for-input.
14506 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
14507 Add &Qucs_set_table_for_input.
451e2697 14508
048addec 145092002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 14510
048addec
JD
14511 * callint.c (Fcall_interactively): Use next_event only if less
14512 than key_count.
72742a99 14513
048addec 145142002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 14515
048addec
JD
14516 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
14517 names to 255 characters.
72742a99 14518
048addec
JD
14519 * macterm.c (XTread_socket): If all frames have been collapsed,
14520 expand the first one before handling drag-and-drop events.
72742a99 14521
048addec
JD
14522 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
14523 which is detected by autoconf.
40e6ff95 14524
048addec 145252002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 14526
048addec
JD
14527 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
14528 offset in two hints table to allow prebinding to be redone and
14529 allow the executable to be stripped.
c02138c6 14530
048addec 145312002-11-29 Dave Love <fx@gnu.org>
c02138c6 14532
048addec
JD
14533 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
14534 already provided.
0e47bbf7 14535
048addec 145362002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 14537
048addec
JD
14538 * xdisp.c (start_display): Check more intelligently for
14539 whether the line is continued.
14540 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 14541
048addec 145422002-11-28 Dave Love <fx@gnu.org>
44129dcb 14543
048addec
JD
14544 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
14545 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 14546
048addec 145472002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 14548
048addec
JD
14549 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
14550 more descriptive error output from lread.c:Fload upon most require
14551 cycles during boostrapping.
1637fd2c 14552
048addec 145532002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 14554
048addec
JD
14555 * fileio.c (Finsert_file_contents): Give a more appropriate error
14556 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 14557
048addec
JD
14558 * dired.c (Ffile_attributes): Don't return negative file sizes for
14559 files bigger than 2Gb when off_t is 32 bit.
540c2788 14560
048addec 145612002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 14562
048addec 14563 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 14564
048addec
JD
14565 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
14566 Test GETPGRP_VOID instead.
14567 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 14568
048addec
JD
14569 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
14570 Don't define.
14571 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 14572
048addec 14573 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 14574
048addec 145752002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 14576
048addec
JD
14577 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
14578 supported.
4042a81a 14579
048addec 145802002-11-25 Dave Love <fx@gnu.org>
4042a81a 14581
048addec 14582 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 14583
048addec 14584 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 14585
048addec 145862002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 14587
048addec 14588 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 14589
048addec 145902002-11-24 Steven Tamm <steventamm@mac.com>
82122254 14591
048addec
JD
14592 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
14593 determine the size of pointers alloced in unexed space instead
14594 of using possibly invalid emacs_zone pointers. This fixes the
14595 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 14596
048addec 145972002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 14598
048addec 14599 * search.c (Fstring_match): Doc fix.
c1ee53bc 14600
048addec
JD
14601 * callint.c (Fcall_interactively): If a command fails because
14602 `*' detects a read-only buffer, but RECORD_FLAG is set,
14603 record it anyway if the args don't actually do tty input.
5598c32e 14604
048addec 146052002-11-22 Dave Love <fx@gnu.org>
5598c32e 14606
048addec 14607 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 14608
048addec
JD
14609 * keyboard.c (interrupt_signal): Provide forward declaration.
14610 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 14611
048addec 14612 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 14613
048addec 146142002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 14615
048addec
JD
14616 * eval.c (interactive_p): Skip any number of bytecode
14617 and special form frames, in any order.
516eea8e 14618
048addec 146192002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 14620
048addec
JD
14621 * w32fns.c (convert_mono_to_color_image): New function.
14622 (xbm_load, xbm_load_image): Use it when foreground or background
14623 is explicitly set.
04dbfa08 14624
048addec 146252002-11-19 Dave Love <fx@gnu.org>
04dbfa08 14626
048addec 14627 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 14628
048addec 146292002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 14630
048addec
JD
14631 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
14632 (XPutPixel): Swap blue and red.
14633 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
14634 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14635 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
14636 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 14637
048addec 146382002-11-18 Dave Love <fx@gnu.org>
d824beee 14639
048addec 14640 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 14641
048addec 14642 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 14643
048addec 14644 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 14645
048addec
JD
14646 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
14647 malloc, realloc, calloc.
d824beee 14648
048addec
JD
14649 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
14650 (bcmp): Don't define.
d824beee 14651
048addec 14652 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 14653
048addec 14654 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 14655
048addec 14656 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 14657
048addec 14658 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 14659
048addec
JD
14660 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
14661 Don't include alloca.h.
d824beee 14662
048addec 14663 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 14664
048addec 14665 * regex.c (_GNU_SOURCE): Don't define.
1998560a 14666
048addec 14667 * process.c (_GNU_SOURCE): Don't define.
1998560a 14668
048addec 14669 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 14670
048addec 146712002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 14672
048addec 14673 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 14674
048addec 146752002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 14676
048addec
JD
14677 * dispextern.h (struct face): Add `overstrike' field.
14678 * xterm.c (x_draw_glyph_string_foreground)
14679 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14680 * xfaces.c (load_face_font): Set `face->overstrike' based on
14681 result from choose_face_font.
14682 (best_matching_font, choose_face_font): Add `needs_overstrike'
14683 argument, and use it to return whether overstriking is desirable
14684 for this face/font combo.
14685 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 14686
048addec 146872002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 14688
048addec
JD
14689 This change is my fix for the following entry in etc/PROBLEMS:
14690 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14691 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 14692
048addec
JD
14693 * w32.c: Added wrapper functions around the win32 API functions
14694 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
14695 GetSidIdentifierAuthority. These wrapper functions serve two
14696 purposes:
14697 1. They ensure that the wrapped function can never be called
14698 when Emacs is running on an operating system on which they are
14699 not supported (Microsoft Windows 95 / 98 / ME).
14700 2. They call the wrapped functions via function pointers rather
14701 than calling them directly. This avoids taking advantage of the
14702 undocumented fact that although these functions are not supported
14703 in the 9x branch of Microsoft Windows, the functions do exist in
14704 the version of advapi32.dll that is found in the 9x branch of
14705 Microsoft Windows.
f60ae425 14706
6bdb309a 14707 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
14708 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
14709 and GetSidIdentifierAuthority with calls to the newly added
14710 wrapper functions.
f60ae425 14711
048addec
JD
14712 * w32.h: Added extern declarations for the following functions:
14713 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
14714 syms_of_w32menu, and void syms_of_fontset.
f60ae425 14715
6bdb309a 14716 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
14717 function pointer track_mouse_event_fn in the handler for the
14718 WM_SETFOCUS message.
3582b6a3 14719
6bdb309a 14720 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
14721 reinitialize the function pointers set_menu_item_info and
14722 get_menu_item_info.
f60ae425 14723
048addec 147242002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 14725
048addec
JD
14726 * sound.c: Added a partial implementation of play-sound-internal
14727 for Microsoft Windows. Added various #ifdef / #else / #endif
14728 code blocks to separate the code that will compile under
9fed2905 14729 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 14730 Moved several blocks of code around to make this separation of code
9fed2905 14731 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 14732
048addec 14733 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 14734
048addec
JD
14735 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
14736 added support for play-sound-internal under Windows would be
14737 included in the build of Emacs.
517f42a0 14738
048addec 147392002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 14740
048addec 14741 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 14742
048addec 14743 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 14744
048addec 147452002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 14746
048addec
JD
14747 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
14748 (adjust_point_for_property): Move out of display and invisible even if
14749 we were already inside before (in case a property was added while
14750 we weren't looking). Be more careful when handling invisible props.
14751 Skip invisible text as if it really wasn't there at all.
aab83f91 14752
048addec 147532002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 14754
048addec
JD
14755 * w32term.c (x_draw_image_foreground)
14756 (w32_draw_image_foreground_1): Use standard copy and invert
14757 operations to draw images.
aab83f91 14758
048addec
JD
14759 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
14760 depth of 1.
14761 (xbm_read_bitmap_data): Invert bits as xbm is read in.
14762 (XPutPixel): Don't invert bits here.
a4478a76 14763
048addec 147642002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 14765
048addec
JD
14766 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
14767 (w32_draw_image_foreground_1): Handle image masks.
14768 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 14769
048addec
JD
14770 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
14771 (x_from_xcolors): Adjust RGB values for W32.
14772 (image_background, image_background_transparent)
14773 (postprocess_image, x_to_xcolors, x_disable_image)
14774 (x_build_heuristic_mask): Adapt for W32 and enable.
14775 (x_create_x_image_and_pixmap): Mark images with palettes as such.
14776 (xbm_load): Remove unused variable.
03670a65 14777
048addec 147782002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 14779
048addec 14780 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 14781
048addec 147822002-11-14 Dave Love <fx@gnu.org>
59daa29a 14783
048addec 14784 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 14785
048addec
JD
14786 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
14787 * xmenu.c (unuse_menu_items, digest_single_submenu):
14788 * xfns.c (x_put_x_image):
14789 * xdisp.c (message2_nolog, set_message):
14790 * undo.c (record_point):
14791 * terminfo.c (tparam):
14792 * syntax.c (scan_sexps_forward):
14793 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14794 * composite.c (update_compositions):
14795 * cm.c (calccost, cmgoto):
14796 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 14797
048addec 14798 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 14799
048addec
JD
14800 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
14801 Don't declare.
59daa29a 14802
048addec 14803 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 14804
048addec
JD
14805 * fns.c (Fcopy_sequence): Doc fix.
14806 (Fmap_char_table): Cast `call2'.
3947677c 14807
048addec
JD
148082002-11-14 Francesco Potorti` <pot@gnu.org>
14809
14810 * s/sol2-8.h: New file.
14811
148122002-11-14 Kim F. Storm <storm@cua.dk>
14813
14814 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
14815 dependency on `risky-local-variable' and the :propertize form.
14816
148172002-11-12 Stefan Monnier <monnier@cs.yale.edu>
14818
14819 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
14820
14821 * syntax.c (scan_sexps_forward): Undo last patch.
14822 Use a more obvious fix: check eob before updating the syntax table.
14823
148242002-11-09 Stefan Monnier <monnier@cs.yale.edu>
14825
14826 * syntax.c (scan_sexps_forward): Update syntax table before reading
14827 a char rather than after so we don't update the table past eob.
14828
148292002-11-09 Dave Love <fx@gnu.org>
14830
14831 * buffer.c (Fset_buffer_major_mode): Fix last change.
14832
14833 * regex.c (regexec): Fix pmatch declaration.
14834
14835 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
14836
14837 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
14838 to self-inserting characters.
14839 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
14840
14841 * coding.c (Vtranslation_table_for_input): New.
14842 (syms_of_coding): DEFVAR it.
14843
148442002-11-08 Juanma Barranquero <lektu@terra.es>
14845
14846 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
14847 window.
14848
148492002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14850
6bdb309a 14851 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
14852 cp, and i.
14853
148542002-11-06 Dave Love <fx@gnu.org>
14855
14856 * buffer.c (Qset_buffer_major_mode_hook): New.
14857 (Fset_buffer_major_mode): Use it.
14858
148592002-11-06 Richard M. Stallman <rms@gnu.org>
14860
14861 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
14862 and stop_polling.
14863
14864 * process.c (wait_reading_process_input):
14865 Test POLLING_PROBLEM_IN_SELECT, not hpux.
14866 Avoid initialization for auto Lisp_Object var.
14867
14868 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
14869
14870 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
14871
148722002-11-05 Richard M. Stallman <rms@gnu.org>
14873
14874 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
14875
14876 * callint.c (Fcall_interactively): New local filter_specs.
14877 (Fcall_interactively): Check for progn as well as let.
14878 Add a gcpro.
14879 (Qprogn): New variable.
14880 (syms_of_callint): Staticpro and init Qprogn.
14881
148822002-11-04 John Paul Wallington <jpw@shootybangbang.com>
14883
14884 * lread.c (Feval_buffer): Doc fix.
14885
148862002-11-04 Dave Love <fx@gnu.org>
14887
14888 * keyboard.c (read_char): Always translate iff
14889 Vkeyboard_translate_table is a char table and c is valid.
14890
14891 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14892 and fix C types.
14893
148942002-11-03 Stefan Monnier <monnier@cs.yale.edu>
14895
14896 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
14897
14898 * editfns.c (get_pos_property): Don't hardcode Qfield.
14899
14900 * keyboard.c (adjust_point_for_property): Handle `display' prop on
14901 overlays. Also handle `invisible' prop.
14902
149032002-11-02 Stefan Monnier <monnier@cs.yale.edu>
14904
14905 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
14906 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
14907
149082002-11-01 Andreas Schwab <schwab@suse.de>
14909
14910 * editfns.c (Fmessage): Revert last change to properly handle %%.
14911
149122002-11-01 Stefan Monnier <monnier@cs.yale.edu>
14913
14914 * xmenu.c (unuse_menu_items): New fun.
14915 (menu_items_inuse): New var.
14916 (syms_of_xmenu): Initialize it.
14917 (init_menu_items): Use it to detect re-entrance.
14918 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
14919 (Fx_popup_menu): Remove spurious XSETFRAME.
14920
14921 * editfns.c (find_field): Make an exception for nil fields.
14922
149232002-11-01 Dave Love <fx@gnu.org>
14924
14925 * m/gec63.h: Deleted.
14926
149272002-10-31 Dave Love <fx@gnu.org>
14928
14929 * xterm.c (XTread_socket): Fix last change.
14930 (xaw_scroll_callback): Cast call_data to long to avoid warning.
14931
149322002-10-31 Stefan Monnier <monnier@cs.yale.edu>
14933
14934 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
14935
149362002-10-30 Stefan Monnier <monnier@cs.yale.edu>
14937
14938 * editfns.c (overlays_around, get_pos_property): New funs.
14939 (find_field): Use them.
14940 Also be careful not to modify POS before its last use.
14941 (Fmessage): Don't Fformat if there's nothing to format.
14942
149432002-10-30 Dave Love <fx@gnu.org>
14944
14945 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
14946 [HAVE_PTY_H]; Include pty.h.
14947
14948 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
14949
14950 * xterm.c (Qeql): Declare.
14951 (Vx_keysym_table): New.
14952 (syms_of_xterm): Initialize it.
14953 (XTread_socket): Use it. Deal with ASCII keysyms.
14954 (XSetIMValues) [HAVE_X11R6]: Prototype.
14955
14956 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
14957 (lispy_kana_keys): Comment out.
14958 (make_lispy_event) [XK_kana_A]: Comment out.
14959 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
14960 Fix sprintf call.
14961
14962 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
14963 regexp.h change).
14964 (TERMINFO, LIBS_TERMCAP): Define.
14965
14966 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
14967 (bcmp): Define conditional on HAVE_BCMP.
14968 (NO_SIOCTL_H): Don't define.
14969 (TIOCSIGSEND): Don't make conditional on IRIX6.
14970
14971 * s/sol2-5.h: Don't include strings.h.
14972 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
14973
14974 * s/irix6-0.h (IRIX6): Don't define.
14975 (bcopy, bcmp, bzero): Don't undef.
14976
14977 * s/irix6-5.h: Don't include strings.h.
14978 (IRIX6): Don't define.
14979 (bcopy, bcmp, bzero): Don't undef.
14980
14981 * syntax.c (Fforward_comment): Doc fix.
14982
149832002-10-29 Kim F. Storm <storm@cua.dk>
14984
14985 * process.c (Fsignal_process): Allow PROCESS to be specified by
14986 name in addition to pid (as integer or string).
14987
149882002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
14989
14990 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
14991 environments.
14992
149932002-10-27 Kim F. Storm <storm@cua.dk>
14994
14995 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
14996
14997 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
14998
14999 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
15000
15001 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15002
150032002-10-26 Richard M. Stallman <rms@gnu.org>
15004
15005 * editfns.c (Fformat): Detect invalid format letters for floats.
15006
150072002-10-25 Kenichi Handa <handa@m17n.org>
15008
15009 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
15010 (x_set_title): Likewise.
15011
150122002-10-25 Juanma Barranquero <lektu@terra.es>
15013
15014 * macgui.h:
15015 * w32gui.h: Remove definition of XColor.
15016
15017 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
15018
150192002-10-24 Kim F. Storm <storm@cua.dk>
15020
15021 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
15022 Callers changed (supply dummy arg).
15023
15024 * lisp.h (get_window_cursor_type): Update prototype.
15025
15026 * w32term.c (x_display_and_set_cursor): Get active_cursor from
15027 get_window_cursor_type to track system caret.
15028
150292002-10-24 Kim F. Storm <storm@cua.dk>
15030
15031 * process.c (Fformat_network_address): New function.
15032 (syms_of_process): Defsubr it.
15033 (list_processes_1): Use it to format :local/:remote address if
f9711de4 15034 service/host is not set; before Emacs would crash in that case.
048addec
JD
15035 (Fmake_network_process): Don't use Ffind_operation_coding_system
15036 to setup coding system if host or service is not set.
15037
150382002-10-23 Juanma Barranquero <lektu@terra.es>
15039
15040 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
15041
15042 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
15043 COLORREF.
15044
15045 * macgui.h:
15046 * w32gui.h: Add definition of XColor.
15047
15048 * macfns.c:
15049 * w32fns.c:
15050 * xfaces.c: Remove definition of XColor.
15051
150522002-10-22 Stefan Monnier <monnier@cs.yale.edu>
15053
15054 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
15055
15056 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
15057 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
15058 window if it is dedicated.
15059 (Fshrink_window): Add preserve_before as was done for enlarge_window.
15060 (Vspecial_display_function): Update docstring.
15061
15062 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
15063 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
15064 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
15065
150662002-10-21 Stefan Monnier <monnier@cs.yale.edu>
15067
15068 * casefiddle.c (casify_region): Don't treat a prefix char as part
15069 of a word when at the beginning.
15070
150712002-10-17 Juanma Barranquero <lektu@terra.es>
15072
15073 * lread.c (syms_of_lread): Fix typos.
15074
150752002-10-17 Dave Love <fx@gnu.org>
15076
15077 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
15078
150792002-10-16 Richard M. Stallman <rms@gnu.org>
15080
15081 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
15082
150832002-10-14 Juanma Barranquero <lektu@terra.es>
15084
15085 * w16select.c (syms_of_win16select): Fix docstring for
15086 `selection-coding-system'.
15087
15088 * w32select.c (syms_of_w32select): Likewise.
15089
150902002-10-14 Stefan Monnier <monnier@cs.yale.edu>
15091
15092 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
15093 a backslash-quoted char.
15094 (scan_lists, scan_sexps_forward): Pacify the compiler.
15095
150962002-10-13 Richard M. Stallman <rms@gnu.org>
15097
15098 * window.c (window_scroll): Set immediate_quit.
15099
15100 * print.c (print): When backquote form is the car of a list,
15101 output in old style. Use old_backquote_output to output all
15102 comma forms inside it in old style too.
15103
15104 * buffer.h (struct buffer): Move `undo_list' down below `name'.
15105
151062002-10-11 Markus Rost <rost@math.ohio-state.edu>
15107
15108 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
15109 batch mode).
15110
15111 * lread.c (Fload): Doc fix (load-suffixes).
15112
151132002-10-10 Steven Tamm <steventamm@mac.com>
15114
15115 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
15116 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
15117 Also switch the default to Qnil from Qt.
15118
151192002-10-08 Kenichi Handa <handa@m17n.org>
15120
15121 * coding.c (code_convert_region): When we need more GAP for
15122 conversion, pay attention to the case that coding->produced is not
15123 greater than coding->consumed.
15124
151252002-10-07 Richard M. Stallman <rms@gnu.org>
15126
15127 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
15128
151292002-10-06 Andrew Choi <akochoi@shaw.ca>
15130
15131 * macmenu.c (mac_menu_show): Add j to count menu items; match
15132 menu_item_selection to it to find selected item.
15133
151342002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15135
15136 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
15137 cases. The correct fix is to pass ReparentNotify to Xt.
15138 The shell widget interprets ConfigureNotify differently depending
15139 on if it has been reparented or not.
15140
151412002-10-05 Markus Rost <rost@math.ohio-state.edu>
15142
15143 * editfns.c (Fformat_time_string): Doc fix.
15144
151452002-10-05 John Paul Wallington <jpw@shootybangbang.com>
15146
15147 * fns.c (Flength): Doc fix.
15148
151492002-10-04 Stefan Monnier <monnier@cs.yale.edu>
15150
15151 * keyboard.c (keyremap): New struct.
15152 (read_key_sequence): Use it: globally replace keytran_foo with
15153 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
15154 keytran_next and fkey_next to just `next'.
15155
151562002-10-04 Steven Tamm <steventamm@mac.com>
15157
15158 * macterm.c (keycode_to_xkeysym_table): Change return to be
15159 treated like an X keysym.
15160
151612002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15162
15163 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
15164 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
15165 This is to also handle x/y changes that occur because of a resize.
15166
151672002-10-02 John Paul Wallington <jpw@shootybangbang.com>
15168
15169 * frame.c (Vdelete_frame_functions): New variable.
15170 (syms_of_frame): Initialize and defvar it.
15171 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
15172 it when frame's `tooltip' parameter is non-nil.
15173
15174 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
15175
15176 * w32fns.c (x_create_tip_frame): Likewise.
15177
15178 * macfns.c (x_create_tip_frame): Likewise.
15179
151802002-09-30 Kenichi Handa <handa@m17n.org>
15181
15182 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
15183 -1 before calling ccl_driver.
15184
15185 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
15186 Only when it is non-nil, handle composition sequence.
15187 (setup_coding_system) <0>: Don't force composition handling.
15188
15189 * Makefile.in (lisp, shortlisp): Add utf-16.elc
15190
151912002-09-29 Richard M. Stallman <rms@gnu.org>
15192
15193 * search.c (Freplace_match): Adjust match data for the substitution
15194 just made in the buffer.
15195
15196 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
15197 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
15198
151992002-09-27 Richard M. Stallman <rms@gnu.org>
15200
15201 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
15202 (read_char): Use them. Do all exits thru the end of the function.
15203
152042002-09-27 Kenichi Handa <handa@etl.go.jp>
15205
15206 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
15207 is nil.
15208
152092002-09-26 Richard M. Stallman <rms@gnu.org>
15210
15211 * regex.h (__restrict_arr): Don't define if already defined.
15212
15213 * coding.c (run_pre_post_conversion_on_str):
15214 Save and restore Vdeactivate_mark.
15215
152162002-09-26 John Paul Wallington <jpw@shootybangbang.com>
15217
15218 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
15219
152202002-09-26 Kenichi Handa <handa@etl.go.jp>
15221
15222 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
15223 nonzero, try face's family at first. Otherwise try FAMILY at first.
15224 (choose_face_font): If C is a single byte char or latin-1, call
15225 try_font_list with PREFER_FACE_FAMILY 1.
15226
152272002-09-21 Richard M. Stallman <rms@gnu.org>
15228
15229 * window.c (select_window_1): Don't select frame.
15230 Set frame's selected window only when frame itself is selected.
15231 (Fselect_window): Doc fix.
15232
152332002-09-18 Kim F. Storm <storm@cua.dk>
15234
15235 * process.c (make-network-process): Doc fix (there is no
15236 network-server-log-function hook).
15237
152382002-09-18 Richard M. Stallman <rms@gnu.org>
15239
15240 * print.c (print): Clear out the unused parts of Vprint_number_table.
15241 (syms_of_print): Doc fix for `print-number-table'.
15242
15243 * unexelf.c (unexec): Undo previous change.
15244
152452002-09-17 Andreas Schwab <schwab@suse.de>
15246
15247 * m/alpha.h [LINUX]: Don't define DATA_START.
15248
152492002-09-16 Dave Love <fx@gnu.org>
15250
15251 * unexelf.c (unexec): Deal with .got, reinstating change from
15252 25-08-1999.
15253
152542002-09-13 Richard M. Stallman <rms@gnu.org>
15255
15256 * s/sol2-6.h (UNEXEC): Comment out definition.
15257
15258 * unexsol.c (unexec): Don't downcase first letter of error msg.
15259
15260 * xfaces.c (Fcolor_supported_p): Just one arg is required.
15261
152622002-09-12 Markus Rost <rost@math.ohio-state.edu>
15263
15264 * unexsol.c: Include buffer.h, charset.h, coding.h.
15265
152662002-09-11 Richard M. Stallman <rms@gnu.org>
15267
15268 * unexsol.c: Don't use report_file_error; do it by hand
15269 using dlerror.
15270
15271 * process.c (wait_reading_process_input, both versions):
15272 Before calling turn_on_atimers, call stop_polling.
15273
15274 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
15275
15276 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
15277 we go to too_near_end, call clear_glyph_matrix.
15278 (redisplay_window): After make_cursor_line_fully_visible,
15279 call clear_glyph_matrix and bypass `goto done'.
15280
15281 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
15282 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
15283
152842002-09-10 Richard M. Stallman <rms@gnu.org>
15285
15286 * fileio.c (Fdo_auto_save): Catch error making directory.
15287 Only call push_message if we need to.
15288 At the same time, make an unwind-protect to pop it.
15289 Rename local message_p to old_message_p.
15290 (do_auto_save_make_dir, do_auto_save_eh): New functions.
15291 (do_auto_save_unwind): Don't call pop_message.
15292
15293 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
15294
15295 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
15296
15297 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
15298
15299 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
15300
153012002-09-10 Stefan Monnier <monnier@cs.yale.edu>
15302
15303 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
15304 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
15305 (re_match_2_internal): Be more careful with infinite loops.
15306
153072002-09-10 Kim F. Storm <storm@cua.dk>
15308
15309 * macros.c (end_kbd_macro): New function.
15310 (Fend_kbd_macro): Use it.
15311
15312 * macros.h (end_kbd_macro): Declare extern.
15313
15314 * keyboard.c (Fdiscard_input): If defining keyboard macro,
15315 end and save it instead of discarding it.
15316
153172002-09-09 Markus Rost <rost@math.ohio-state.edu>
15318
15319 * s/sol2-6.h: Fix typo. Add comment.
15320
153212002-09-09 Richard M. Stallman <rms@gnu.org>
15322
15323 * regex.c (regnum_t): Use signed int, not unsigned int.
15324
15325 * s/sol2-6.h: New file.
15326
15327 * s/sol2-5.h (UNEXEC): Definition deleted.
15328
153292002-09-08 Kim F. Storm <storm@cua.dk>
15330
15331 * macros.c (executing_macro_index): Change type to EMACS_INT.
15332 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
15333
15334 * macros.h (executing_macro_index): Change type to EMACS_INT.
15335
153362002-09-06 Richard M. Stallman <rms@gnu.org>
15337
15338 * casetab.c (set_case_table): Make canon table point to eqv table.
15339
153402002-09-06 Juanma Barranquero <lektu@terra.es>
15341
15342 * coding.c (syms_of_coding): Fix spacing.
15343
15344 * composite.c (Fcompose_region_internal)
15345 (Fcompose_string_internal): Likewise.
15346
15347 * data.c (Flsh): Likewise.
15348
15349 * fontset.c (Fset_fontset_font): Likewise.
15350
15351 * macfns.c (Fx_server_max_request_size): Likewise.
15352
15353 * w16select.c (syms_of_win16select): Likewise.
15354
15355 * w32select.c (syms_of_w32select): Likewise.
15356
15357 * xselect.c (syms_of_xselect): Likewise.
15358
153592002-09-05 Richard M. Stallman <rms@gnu.org>
15360
15361 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
15362 call EXTEND_RANGE_TABLE and return a proper value.
15363 (set_image_of_range): Don't call set_image_of_range_1
15364 if no TRANSLATE or if range includes all of Latin-1.
15365 Only call it for the Latin-1 part of the range.
15366 For other cases, make two separate ranges,
15367 one for the original specified characters and one for
15368 their case-conversions.
15369
153702002-09-04 Richard M. Stallman <rms@gnu.org>
15371
15372 * s/sol2-5.h (UNEXEC): Use unexsol.o.
15373
15374 * window.c (displayed_window_lines): Correct for one-off bug
15375 in HEIGHT on non-window displays.
15376
15377 * regex.c (set_image_of_range_1): New function.
15378 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
15379 Return a value to indicate running out of memory.
15380 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
15381 (extend_range_table_work_area): New subroutine.
15382 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
15383 Different calling conventions, and used from set_image_of_range{,_1}.
15384 (IMMEDIATE_QUIT_CHECK): Definitions moved.
15385
153862002-09-04 Juanma Barranquero <lektu@terra.es>
15387
15388 * makefile.w32-in: All dependencies updated.
15389
153902002-09-01 Richard M. Stallman <rms@gnu.org>
15391
15392 * unexsol.c: New file.
15393
15394 * xfns.c (Qbox): Declare external, don't define.
15395
15396 * xdisp.c (redisplay_window) <force-start case>:
15397 If point is on semi-visible last line, reposition
15398 it at previous line.
15399
15400 * alloc.c (display_malloc_warning): Use display-warning.
15401 (malloc_warning_1): Function deleted.
15402
15403 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
15404
15405 * lread.c (read1): Handle #! by skipping the line.
15406
154072002-08-31 Richard M. Stallman <rms@gnu.org>
15408
15409 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
15410 Don't include LDFLAGS.
15411 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
15412
154132002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
15414
15415 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
15416 member of x_display_info unless we compile for some window system.
15417
154182002-08-31 Kim F. Storm <storm@cua.dk>
15419
15420 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
15421 (get_window_cursor_type): Don't use them.
15422 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
15423
154242002-08-30 Kenichi Handa <handa@etl.go.jp>
15425
15426 * xdisp.c (get_next_display_element): Fix previous change.
15427
154282002-08-30 Andrew Choi <akochoi@shaw.ca>
15429
15430 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
15431 (expose_window): Use it to fix the display of overlapping
15432 rows (merge code from xterm.c).
15433
15434 * macfns.c (Qbox): Add extern declaration.
15435
154362002-08-30 Juanma Barranquero <lektu@terra.es>
15437
15438 * w32fns.c (Qbox): Make extern.
15439 (syms_of_w32fns): Remove initialization of Qbox.
15440
154412002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
15442
15443 * xfns.c (Fx_open_connection): Fix error message.
15444
154452002-08-30 Kim F. Storm <storm@cua.dk>
15446
15447 The following changes consolidates the handling of the cursor
15448 type in xdisp.c, moving duplicate code and functionality from
15449 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
15450
15451 * frame.h (enum text_cursor_kinds): Consolidated here.
15452 Added DEFAULT_CURSOR value.
15453 (struct frame) <desired_cursor, cursor_width>
15454 <blink_off_cursor, blink_off_cursor_width>: New fields.
15455 Consolidated from output_x, output_w32 and output_mac structs.
15456 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15457 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
15458
15459 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
15460 Variables consolidated here.
15461 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
15462 (Vcursor_in_non_selected_windows): Renamed from
15463 cursor_in_non_selected_windows and changed to Lisp_Object.
15464 (syms_of_xdisp): Define and staticpro new and moved variables.
15465 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
15466 consolidated here. Recognize Qhollow setting.
15467 (set_frame_cursor_types): New function to set frame cursor types
15468 based on the frame parameters.
15469 (get_window_cursor_type): New function to calculate new cursor
15470 type and width for the specified window. Based on duplicated
15471 code consolidated here.
15472 Enhancements: cursor-in-non-selected-windows may be a cursor type,
15473 check buffer-local alternate-cursor-type and blink-cursor-alist
15474 before using built-in blink off methods.
15475
15476 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
15477
15478 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
15479 (get_specified_cursor_type, get_window_cursor_type)
15480 (set_frame_cursor_types): Added prototypes.
15481
15482 * macfns.c (x_specified_cursor_type): Removed.
15483 (x_set_cursor_type): Use set_frame_cursor_types.
15484 (Qbar, Qbox): Removed.
15485 (syms_of_macfns): Don't intern or staticpro them.
15486
15487 * macterm.c (x_specified_cursor_type): Remove prototype.
15488 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15489 (x_display_and_set_cursor): Use get_window_cursor_type.
15490 Remove unused local variables cursor_non_selected, active_cursor.
15491 Redraw cursor if hbar cursor width changes.
15492 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
15493
15494 * macterm.h (enum text_cursor_kinds): Removed.
15495 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
15496 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15497 (FRAME_DESIRED_CURSOR): Macro removed.
15498
15499 * w32fns.c (Vblink_cursor_alist): Removed.
15500 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15501 (syms_of_w32fns): Don't intern, staticpro, or define them.
15502 (x_specified_cursor_type): Removed.
15503 (x_set_cursor_type): Use set_frame_cursor_types.
15504
15505 * w32term.c (x_specified_cursor_type): Remove prototype.
15506 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15507 (x_display_and_set_cursor): Use get_window_cursor_type.
15508 Remove unused local variables cursor_off_state.
15509 Redraw cursor if hbar cursor width changes.
15510 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
15511
15512 * w32term.h (enum text_cursor_kinds): Removed.
15513 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
15514 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15515 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15516 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15517 (struct w32_display_info) <x_highlight_frame>: Renamed member from
15518 w32_highlight_frame.
15519
15520 * xfns.c (Vblink_cursor_alist): Removed.
15521 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15522 (syms_of_xfns): Don't intern, staticpro, or define them.
15523 (x_specified_cursor_type): Removed.
15524 (x_set_cursor_type): Use set_frame_cursor_types.
15525
15526 * xterm.c (x_specified_cursor_type): Remove prototype.
15527 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15528 (x_display_and_set_cursor): Use get_window_cursor_type.
15529 Remove unused local variables cursor_off_state.
15530 Redraw cursor if hbar cursor width changes.
15531
15532 * xterm.h (enum text_cursor_kinds): Removed.
15533 (struct output_x) <current_cursor, desired_cursor, cursor_width>
15534 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15535 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15536 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15537 (x_specified_cursor_type): Remove prototype.
15538
155392002-08-28 Richard M. Stallman <rms@gnu.org>
15540
15541 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15542 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15543 (Vblink_cursor_alist): New variable.
15544 (syms_of_w32fns): Initialize and defvar it.
15545 (x_specified_cursor_type): Recognize Qbox for filled box.
15546 Exceptions are hollow boxes.
15547 (Qbox, Qhollow): New variables.
15548 (syms_of_w32fns): Initialize and staticpro them.
15549
15550 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15551 New macros.
15552 (struct w32_output): New fields blink_off_cursor,
15553 blink_off_cursor_width.
15554 (FRAME_CURSOR_WIDTH): New macro.
15555
15556 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15557 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15558
15559 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15560 for bar cursor.
15561
15562 * w32term.c (expose_overlaps): New function.
15563 (expose_window): Use it to fix the display of overlapping rows.
15564
155652002-08-28 Simon Josefsson <jas@extundo.com>
15566
15567 * xfns.c (Fx_open_connection): Improve help when X connection
15568 fails, xhost is insecure and xauth is better.
15569
155702002-08-28 Juanma Barranquero <lektu@terra.es>
15571
15572 * makefile.w32-in: Add missing dependencies on w32term.h and
15573 composite.h.
15574
15575 * emacs.c (USAGE1): Add missing newline.
15576
155772002-08-27 Andrew Choi <akochoi@shaw.ca>
15578
15579 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
15580
155812002-08-27 Richard M. Stallman <rms@gnu.org>
15582
15583 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15584 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15585 (Vblink_cursor_alist): New variable.
15586 (syms_of_xfns): Initialize and defvar it.
15587 (x_specified_cursor_type): Recognize Qbox for filled box.
15588 Exceptions are hollow boxes.
15589 (Qbox, Qhollow): New variables.
15590 (syms_of_xfns): Initialize and staticpro them.
15591
15592 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15593 New macros.
15594 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
15595
15596 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15597 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15598
15599 * emacs.c (main): Handle --script.
15600 (USAGE1): Mention --script.
15601 (standard_args): Define sort order for --script.
15602
156032002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
15604
15605 * xdisp.c (redisplay_updating_p): Variable removed.
15606 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
15607 New variables.
15608 (init_iterator): Don't free realized faces if
15609 inhibit_free_realized_faces is set.
15610 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
15611 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
15612 initialize Qinhibit_free_realized_faces.
15613
15614 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
15615 when iterator is adding glyphs to a glyph matrix.
15616
156172002-08-27 Kenichi Handa <handa@etl.go.jp>
15618
15619 * xdisp.c (get_next_display_element): In unibyte case, don't use
15620 octal form for such eight-bit characters that can be converted to
15621 multibyte char.
15622
156232002-08-26 Kim F. Storm <storm@cua.dk>
15624
b6189c3b
KS
15625 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
15626 foreground and background colors. From Joe Buehler.
048addec
JD
15627
156282002-08-26 Miles Bader <miles@gnu.org>
15629
15630 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
15631
156322002-08-25 Andrew Choi <akochoi@shaw.ca>
15633
15634 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
15635 defined instead of MAC_OSX.
15636
15637 * s/darwin.h (select): Define select to sys_select only if
15638 HAVE_CARBON is defined.
15639 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
15640 (DONT_REOPEN_PTY): #def it.
15641
15642 * macterm.c (XTread_socket): Remove code to call
15643 SendEventToEventTarget for keys with command modifiers when
15644 mac_command_key_is_meta is nil.
15645
156462002-08-24 Andreas Schwab <schwab@suse.de>
15647
15648 * eval.c (Fdefvar): Fix last change.
15649
156502002-08-23 Richard M. Stallman <rms@gnu.org>
15651
15652 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
15653 Record variables in load history as (defvar . VAR).
15654 (Fdefvar): Don't record in load history if no initial value.
15655 (Qdefvar): New variable.
15656 (syms_of_eval): Init and staticpro it.
15657
15658 * lread.c (syms_of_lread): Doc fix.
15659 (build_load_history): Use Fmember to see if a definition
15660 is already in the Vload_history element.
15661
15662 * process.c (Fstart_process): Remove /: from program name.
15663
15664 * emacs.c (decode_env_path): Don't add /: if file name handler
15665 has a `safe-magic' property.
15666
15667 * callproc.c (Fcall_process): Remove /: from program name.
15668
156692002-08-23 Stefan Monnier <monnier@cs.yale.edu>
15670
15671 * regex.c (PATFETCH): Remove the translating fetch.
15672 (PATFETCH_RAW): Rename to PATFETCH.
15673 (set_image_of_range): New fun.
15674 (SET_RANGE_TABLE_WORK_AREA): Use it.
15675 (regex_compile): Don't translate the pattern chars so eagerly.
15676 Only do it when inserting an `exactn' bytecode or when handling
15677 a char-range.
15678 (mutually_exclusive_p): Avoid empty statement.
15679
156802002-08-22 Kim F. Storm <storm@cua.dk>
15681
15682 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
15683 end up on a partially visible line; this reverts a specific part
15684 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
15685 display error which has been reported several times now.
15686 However it introduces the problem that changes was supposed to fix.
15687 See my comments in the source if you want to debug this further.
15688
156892002-08-20 Kenichi Handa <handa@etl.go.jp>
15690
15691 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15692
156932002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
15694
15695 * msdos.c (croak): Add `void' to definition.
15696
c1380aa6 15697 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
15698 Don't define them, they are defined in msdos.c.
15699
15700 * mem-limits.h [MSDOS]: Declare etext.
15701
15702 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
15703 `const' since CORRECT_DIR_SEPS modifies its target.
15704
157052002-08-19 Kim F. Storm <storm@cua.dk>
15706
2fb0ce67 15707 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
15708 KEEP-RECORD to avoid clearing lossage when we just want to clear
15709 the current key sequence (kmacro needs this).
15710
157112002-08-19 Kenichi Handa <handa@localhost>
15712
15713 * composite.c (run_composition_function): Call FUNC if it is fboundp.
15714
15715 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
15716 cons, return Qnil.
15717
157182002-08-17 Richard M. Stallman <rms@gnu.org>
15719
15720 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
15721
15722 * sysdep.c [!VMS]: Include sys/files.h.
15723
15724 * editfns.c (save_restriction_restore): Defend from unchained marker.
15725
15726 * buffer.c (overlays_at): Handle extending vec uniformly.
15727 (overlays_in): Handle extending vec from length 0 as in overlays_at.
15728
157292002-08-15 Andrew Choi <akochoi@shaw.ca>
15730
15731 * mac.c (init_mac_osx_environment): New function.
15732
15733 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
15734
157352002-08-14 Kim F. Storm <storm@cua.dk>
15736
15737 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
15738 executing macro before appending to it (when used from Lisp).
15739 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
15740 which is called prior to each iteration of macro (for kmacro.el).
15741 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
15742
15743 * lisp.h (Fexecute_kbd_macro): Update prototype.
15744
15745 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
15746
157472002-08-14 Kenichi Handa <handa@etl.go.jp>
15748
15749 * xselect.c (QUTF8_STRING): New variable.
15750 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
15751 (x_atom_to_symbol): Likewise.
15752 (x_get_local_selection): New argument local_request. If it is
15753 nonzero, call handler_fn with the second arg nil.
15754 (x_handle_selection_request): Call x_get_local_selection with
15755 local_request 0.
15756 (lisp_data_to_selection_data): Don't encode the string here.
15757 (Fx_get_selection_internal): Call x_get_local_selection with
15758 local_request 1.
15759 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
15760
15761 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
15762
15763 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
15764
157652002-08-13 Richard M. Stallman <rms@gnu.org>
15766
15767 * minibuf.c (Fminibufferp): New function.
15768 (syms_of_minibuf): Defsubr it.
15769 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
15770
157712002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
15772
15773 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
15774
157752002-08-12 Richard M. Stallman <rms@gnu.org>
15776
15777 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
15778 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
15779 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
15780 already.
15781
15782 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
15783
157842002-08-11 Andrew Choi <akochoi@shaw.ca>
15785
15786 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
15787 (Vmac_pass_command_to_system): New variable.
15788 (Vmac_pass_control_to_system): New variable.
15789 (do_mouse_moved): Check wp with is_emacs_window.
15790 (XTread_socket): Check window_ptr with is_emacs_window.
15791 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
15792 events back to Mac Toolbox for processing, depending on values of
15793 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
15794 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
15795 Vmac_pass_control_to_system.
15796
157972002-08-10 Kenichi Handa <handa@etl.go.jp>
15798
15799 * coding.c (unencodable_char_position): New function.
15800 (Funencodable_char_position): New function.
15801 (syms_of_coding): Defsubr Funencodable_char_position.
15802
158032002-08-10 Andrew Choi <akochoi@shaw.ca>
15804
15805 * mac.c (sys_select) [MAC_OSX]: New function.
15806
15807 * macterm.c (MakeMeTheFrontProcess): New function.
15808 (mac_initialize): Call MakeMeTheFrontProcess.
15809
15810 * s/darwin.h: Define select to sys_select.
15811
158122002-08-09 Richard M. Stallman <rms@gnu.org>
15813
15814 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
15815
158162002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
15817
15818 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
15819 end of the buffer.
15820
158212002-08-08 Ken Raeburn <raeburn@mit.edu>
15822
15823 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
15824
15825 * puresize.h (BASE_PURESIZE): Increase to 910000.
15826
158272002-08-08 Kenichi Handa <handa@etl.go.jp>
15828
15829 * coding.c (Ffind_operation_coding_system): For write-region, if
15830 VISIT is a filename, make it the target.
15831
158322002-08-07 Richard M. Stallman <rms@gnu.org>
15833
15834 * alloc.c (mark_object): Detect long lists for debugging.
15835 (mark_object_loop_halt): New variable.
15836
15837 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
15838
15839 * data.c (Fmake_variable_frame_local): Doc fix.
15840
158412002-08-01 David Ponce <david@dponce.com>
15842
15843 * w32menu.c (local_heap, local_alloc, local_free): New macros.
15844 (malloc_widget_value, free_widget_value)
15845 (w32_free_submenu_strings): Use them.
15846
15847 (push_submenu_start, push_submenu_end, push_left_right_boundary)
15848 (push_menu_pane, push_menu_item, single_keymap_panes)
15849 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
15850 (single_submenu, set_frame_menubar)
15851 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
15852
15853 (Fx_popup_menu): Don't show pop up menu until preceding one is
15854 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
15855
15856 * w32menu.c: Changes adapted from xmenu.c
15857 (set_frame_menubar): First parse all submenus,
15858 then make widget_value trees from them.
15859 Don't allocate any widget_value objects
15860 until we are done with the parsing.
15861 (parse_single_submenu): New function.
15862 (digest_single_submenu): New function.
15863 (single_submenu): Function deleted, replaced by those two.
15864
158652002-08-04 Andrew Choi <akochoi@shaw.ca>
15866
15867 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
15868 returns a valid window pointer before proceeding for keyDown and
15869 autoKey events.
15870
158712002-08-03 Andrew Choi <akochoi@shaw.ca>
15872
15873 * macterm.c (USE_CARBON_EVENTS): New macro.
15874 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
15875 (x_iconify_frame): Call CollapseWindow.
15876 (Vmac_reverse_ctrl_meta): New variable.
15877 (Vmac_wheel_button_is_mouse_2): New variable.
15878 (init_mac_drag_n_drop): New function.
15879 (mac_do_receive_drag): New function.
15880 (mac_handle_service_event): New function.
15881 (init_service_handler): New function.
15882 (mac_to_emacs_modifiers): New function.
15883 (mac_event_to_emacs_modifiers): New function.
15884 (mac_get_mouse_btn): New function.
15885 (mac_convert_event_ref): New function.
15886 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
15887 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
15888 mac_get_mouse_btn.
15889 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
15890
15891 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
15892 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
15893 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
15894 TOOL_BAR_EVENT for MAC_OS as well.
15895 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
15896 as for WINDOWS_NT.
15897 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
15898
15899 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
15900
159012002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
15902
15903 * xdisp.c (forward_to_next_line_start): Fix a condition that
15904 lead to a newline being skipped.
15905
159062002-08-02 Andrew Choi <akochoi@shaw.ca>
15907
15908 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
15909
159102002-08-01 Richard M. Stallman <rms@gnu.org>
15911
15912 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
15913
159142002-07-31 Andrew Choi <akochoi@shaw.ca>
15915
15916 * macfns.c: #undef init_process before #define-ing it.
15917
15918 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
15919 HAVE_CARBON is defined.
15920
159212002-07-31 Richard M. Stallman <rms@gnu.org>
15922
15923 * xmenu.c (set_frame_menubar): First parse all submenus,
15924 then make widget_value trees from them.
15925 Don't allocate any widget_value objects
15926 until we are done with the parsing.
15927 (parse_single_submenu): New function.
15928 (digest_single_submenu): New function.
15929 (single_submenu): Function deleted, replaced by those two.
15930
159312002-07-30 Juanma Barranquero <lektu@terra.es>
15932
15933 * w32proc.c (syms_of_ntproc): Fix docstring of
15934 `w32-get-true-file-attributes'.
15935
159362002-07-28 Richard M. Stallman <rms@gnu.org>
15937
15938 * s/hpux8.h (HPUX8): Define this before including hpux.h.
15939 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
15940
15941 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
15942
15943 * keyboard.c (make_lispy_event):
15944 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
15945 Explicitly clear up_modifier in event->modifiers.
15946
159472002-07-27 Richard M. Stallman <rms@gnu.org>
15948
15949 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
15950
15951 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15952 for bar cursor.
15953
159542002-07-26 Kenichi Handa <handa@etl.go.jp>
15955
15956 * coding.c (detect_coding_iso2022): While checking a byte sequence
15957 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
15958 it in the normal loop.
15959
159602002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
15961
15962 * xterm.c (expose_overlaps): New function.
15963 (expose_window): Use it to fix the display of overlapping rows.
15964
15965 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
15966
159672002-07-23 Ken Raeburn <raeburn@gnu.org>
15968
15969 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
15970 since it only depends on XUINT.
15971
15972 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
15973 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
15974 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
15975 Macros deleted.
3947677c 15976
77d1daf2
AS
15977 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
15978 its value over other approaches.
15979 * sysdep.c (start_of_data): Don't define the function if a macro
15980 form has been defined.
8a8e19a3 15981
048addec
JD
159822002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
15983
15984 * xdisp.c (redisplay_updating_p): New variable.
15985 (init_iterator): Don't free realized faces when
15986 redisplay_updating_p is set.
15987 (redisplay_internal): Set redisplay_updating_p while updating
15988 the display.
15989
159902002-07-23 Richard M. Stallman <rms@gnu.org>
15991
15992 * editfns.c (Fmessage): Treat "" like nil.
15993
159942002-07-23 Kenichi Handa <handa@etl.go.jp>
15995
15996 * xdisp.c (face_before_or_after_it_pos):
15997 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15998
159992002-07-22 Juanma Barranquero <lektu@terra.es>
16000
16001 * callproc.c (init_callproc) [DOS_NT]:
16002 Initialize Vshared_game_score_directory to nil.
16003 (syms_of_callproc) [DOS_NT]: Likewise.
16004
160052002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
16006
16007 * xdisp.c (display_line): Replace an abort with xassert.
16008
160092002-07-21 Richard M. Stallman <rms@gnu.org>
16010
16011 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
16012 and END_UNCHANGED when setting buffer_unchanged_p.
16013 Use current_matrix_up_to_date_p to decide whether to use
16014 try_cursor_movement.
16015
16016 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
16017
16018 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
16019
16020 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
16021 Set to nil if dir does not exist.
16022 (syms_of_callproc): Init unconditionally and simply.
16023
16024 * buffer.c (Fbuffer_list): Doc fix.
16025
160262002-07-21 Ken Raeburn <raeburn@gnu.org>
16027
16028 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
16029
16030 * buffer.c (mmap_realloc): When shrinking, make sure number of
16031 pages to unmap is rounded towards zero.
16032
16033 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
16034 (XSETINT): Deleted.
16035
16036 * m/att3b.h (XINT): Don't define.
16037 (VALBITS, VALMASK, XTYPE): Deleted.
16038 (DATA_SEG_BITS): Define.
16039 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
16040 ARRAY_MARK_FLAG): Deleted.
16041 (DATA_SEG_BITS): Define.
16042 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
16043 (DATA_SEG_BITS): Define.
16044
160452002-07-20 Richard M. Stallman <rms@gnu.org>
16046
16047 * print.c (print_error_message): New args CONTEXT and CALLER.
16048 Calls changed.
16049
16050 * lisp.h (print_error_message): Declare new args.
16051
16052 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
16053 and CONTEXT to print_error_message, don't print them here.
16054 For a Quit, don't use Vsignaling_function.
16055 Call message_log_maybe_newline.
16056
16057 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
16058
160592002-07-20 Kim F. Storm <storm@cua.dk>
16060
16061 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
16062
160632002-07-19 Ken Raeburn <raeburn@gnu.org>
16064
16065 * bytecode.c (struct byte_stack): Pointers into byte string now
16066 point to const.
16067 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
16068 const.
16069 * charset.h (BCOPY_SHORT): Source pointer now points to const.
16070 * coding.c (encode_eol, detect_coding, detect_eol):
16071 (decode_coding, encode_coding, detect_coding_system):
16072 Source strings now treated as const.
16073 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
16074 modify Lisp string contents.
16075 * coding.h (decode_coding, encode_coding, detect_coding,
16076 detect_eol): Declarations updated.
16077 * composite.c (compose_chars_in_text): Treat Lisp string contents
16078 as const.
16079 * dispnew.c (safe_bcopy): Source pointer now points to const.
16080 * lisp.h (STRING_COPYIN): New macro.
16081 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
16082 (internal_with_output_to_temp_buffer): Declarations updated.
16083 * print.c (temp_output_buffer_setup):
16084 (internal_with_output_to_temp_buffer): Buffer name argument is now
16085 pointer to const.
16086 * sound.c (struct sound_device): Function pointer field "write"
16087 buffer argument now points to const.
16088 (vox_write): Buffer argument points to const.
16089 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
16090 contents as const.
16091 * sysdep.c (emacs_write): Buffer pointer now const.
16092 * term.c (encode_terminal_code): Buffer pointer now const.
16093 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
16094 (x_face_list_fonts, x_update_menu_appearance):
16095 (hash_string_case_insensitive): Treat Lisp string contents as const.
16096
160972002-07-19 Juanma Barranquero <lektu@terra.es>
16098
048addec
JD
16099 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
16100
16101 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
16102 (Ffile_name_as_directory): Fix argument name in docstring.
16103 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
16104
161052002-07-18 Richard M. Stallman <rms@gnu.org>
16106
16107 * data.c (Fdefalias): Doc fix.
16108
161092002-07-17 Dave Love <fx@gnu.org>
16110
16111 * intervals.h (text_property_stickiness): Use P_.
16112
16113 * ccl.c: Remove `emacs' conditionals.
16114 (ccl_backtrace_table): Fix size spec.
16115 (ccl_driver): Fix type errors.
16116
161172002-07-16 Ken Raeburn <raeburn@gnu.org>
16118
16119 * alloc.c (xstrdup, make_string, make_unibyte_string)
16120 (make_multibyte_string, build_string): String pointer args now
16121 point to const.
16122 * charset.c (find_charset_in_text, c_string_width):
16123 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
16124 * fileio.c (report_file_error):
16125 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
16126 (count_combining_before, count_combining_after, insert_1_both):
16127 (insert, insert_and_inherit, insert_string):
16128 (insert_before_markers, insert_before_markers_and_inherit):
16129 * lread.c (intern, oblookup, hash_string):
16130 * minibuf.c (temp_echo_area_glyphs):
16131 * search.c (fast_c_string_match_ignore_case):
16132 * sysdep.c (emacs_open, set_file_times):
16133 * xfaces.c (xstricmp):
16134 * xdisp.c (store_frame_title, string_char_and_length):
16135 (message_dolog, message2, message2_nolog, set_message): Likewise.
16136 (set_message_1): Cast message string argument to const pointer.
16137 * editfns.c (general_insert_function): Insertion function now
16138 takes pointer to const for input data.
16139 * charset.h (find_charset_in_text, c_string_width):
16140 (parse_str_as_multibyte): Declarations updated.
16141 * dispextern.h (xstricmp): Declaration updated.
16142 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
16143 (count_size_as_multibyte, count_combining_before):
16144 (count_combining_after, insert_1, insert_1_both, message_dolog):
16145 (insert, insert_and_inherit, insert_before_markers)
16146 (insert_before_markers_and_inherit, set_message, message2):
16147 (message2_dolog, build_string, make_string, make_unibyte_string):
16148 (make_multibyte_string, intern, oblookup, report_file_error):
16149 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
16150 (emacs_open, xstrdup): Declarations updated.
16151 * systime.h (set_file_times): Declaration updated.
16152
16153 * charset.c (find_charset_in_text, lisp_string_width): Use const
16154 for pointer to lisp string data.
16155 * charset.h (FETCH_STRING_CHAR_ADVANCE):
16156 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
16157 * coding.c (Ffind_coding_systems_region_interval):
16158 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
16159 (Fmake_directory_internal, Fdelete_directory):
16160 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
16161 * fontset.c (font_family_registry, fs_query_fontset):
16162 (list_fontsets):
16163 * frame.c (Fframe_parameter):
16164 * keyboard.c (cmd_error_internal):
16165 * keymap.c (Fdescribe_buffer_bindings):
16166 * lread.c (complete_filename_p, openp):
16167 * minibuf.c (Fminibuffer_complete_word):
16168 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
16169 (face_before_or_after_it_pos, next_element_from_string):
16170 (get_overlay_arrow_glyph_row, display_mode_element):
16171 (decode_mode_spec_coding):
16172 * xterm.c (same_x_server): Likewise.
16173
16174 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
16175 settings of non-existent fields.
16176
16177 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
16178 copy a lisp value.
16179
16180 * lread.c (Fintern_soft): Use string macros instead of
16181 Lisp_String fields.
16182 * keyboard.c (echo_char, parse_modifiers_uncached):
16183 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
16184 * textprop.c (validate_interval_range, interval_of): Likewise.
16185
16186 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
16187
16188 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16189 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
16190 XSTRING()->size_byte.
16191
16192 * lisp.h (SDATA, SREF): Produce rvalue.
16193 (SSET): New macro.
16194 * alloc.c (make_event_array): Use SSET for storing into a string.
16195 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
16196 a string.
16197 * casefiddle.c (casify_object): Use SSET.
16198 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16199 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
16200 address of string contents.
16201 * data.c (Faref): Use SDATA.
16202 (Faset): Use SDATA, SSET.
16203 * dired.c (directory_files_internal): Use SSET.
16204 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
16205 (Fread_file_name): Use SREF, SSET.
16206 * fns.c (concat): Use SSET.
16207 (concat, Fdelete): Use SDATA.
16208 * insdel.c (insert_from_string_1): Use SDATA.
16209 * keyboard.c (Fevent_convert_list): Use SREF.
16210 * lread.c (Fload): Use SDATA, SSET.
16211 * macfns.c (validate_x_resource_name): Use SSET.
16212 * process.c (status_message): Use SSET.
16213 * search.c (wordify): Use SDATA.
16214 (Freplace_match): Use SREF.
16215 * w32fns.c (validate_x_resource_name): Use SSET.
16216 * xfns.c (validate_x_resource_name): Use SSET.
16217 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
16218
162192002-07-16 Richard M. Stallman <rms@gnu.org>
16220
16221 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
16222
16223 * xdisp.c (reconsider_clip_changes):
16224 Don't test prevent_redisplay_optimizations_p.
16225 (redisplay_internal): Test prevent_redisplay_optimizations_p
16226 along with clip_changed in some cases.
16227 (try_window_id): Likewise.
16228 (redisplay_window): New local var buffer_unchanged_p.
16229
16230 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
16231
16232 * process.c (create_process): Test USG_SUBTTY_WORKS.
16233 (process_send_signal): Clean up handling of GID.
16234 Detect errors in ioctls meant to set GID.
16235
16236 * window.c (temp_output_buffer_show):
16237 Don't set prevent_redisplay_optimizations_p.
16238
162392002-07-15 Juanma Barranquero <lektu@terra.es>
16240
16241 * eval.c (Fdefvaralias): Add docstring argument.
16242
162432002-07-15 Ken Raeburn <raeburn@gnu.org>
16244
16245 * lisp.h (STRING_INTERVALS): Produce rvalue.
16246 (STRING_SET_INTERVALS): New macro.
16247 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
16248 * fns.c (Fstring_as_multibyte): Likewise.
16249 * intervals.c (balance_possible_root_interval, delete_interval)
16250 (create_root_interval, copy_intervals_to_string): Likewise.
16251 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
16252 instead of 0.
16253
162542002-07-14 Ken Raeburn <raeburn@gnu.org>
16255
16256 * lisp.h (STRING_SET_CHARS): New macro.
16257 (SCHARS, SBYTES): Produce rvalues.
16258 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
16259 * fns.c (concat): Likewise.
16260 * lread.c (read_vector): Likewise.
16261
3419757d 16262 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 16263 (STRING_SET_UNIBYTE): New macro.
3419757d 16264 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
16265 length of -1) changed to use STRING_SET_UNIBYTE.
16266 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16267 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
16268 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
16269 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
16270 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
16271 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
16272 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
16273 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
16274 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16275 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
16276 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
16277 STRING_BYTES or indirection changed to SCHARS, SBYTES,
16278 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
16279 unchanged for now.
16280
162812002-07-13 Kim F. Storm <storm@cua.dk>
16282
16283 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
16284
162852002-07-12 Richard M. Stallman <rms@gnu.org>
16286
16287 * fileio.c (Fwrite_region): Doc fix.
16288
16289 * print.c (print_error_message): Don't handle Vsignaling_function here.
16290
16291 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
16292 (command_loop_1): Avoid certain actions after memory-full error.
16293
16294 * eval.c (Fsignal): Don't call cancel_hourglass.
16295 For a memory-full error, don't call Vsignal_hook_function
16296 and don't set Vsignaling_function.
16297
16298 * process.c (process_send_signal): Add abort call.
16299
163002002-07-11 Markus Rost <rost@math.ohio-state.edu>
16301
16302 * keymap.c (Fkey_binding): Fix typo.
16303
163042002-07-11 Richard M. Stallman <rms@gnu.org>
16305
16306 * alloc.c (Vmemory_full): New variable.
3419757d 16307 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
16308 Uses changed.
16309 (syms_of_alloc): Defvar them.
16310 (memory_full, buffer_memory_full): Set Vmemory_full.
16311
16312 * lisp.h (Vmemory_full): Add declaration.
16313 (current_column, indented_beyond_p): Change declaration.
16314
16315 * indent.c (last_known_column): Declare as double, not float.
16316 (current_column, current_column_1, string_display_width)
16317 (position_indentation): Return `double'.
16318 (indented_beyond_p): Arg `column' is `double'. Callers changed.
16319
16320 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
16321 (back_to_previous_visible_line_start)
16322 (reseat_at_next_visible_line_start, next_element_from_buffer):
16323 Use `double', not `float', when calling indented_beyond_p.
16324
3419757d 16325 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
16326
16327 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
16328
163292002-07-11 Juanma Barranquero <lektu@terra.es>
16330
16331 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
16332 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
16333 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
16334 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
16335 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
16336 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
16337
163382002-07-10 Juanma Barranquero <lektu@terra.es>
16339
d814862a
JB
16340 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
16341 All callers changed.
048addec
JD
16342
163432002-07-09 Stefan Monnier <monnier@cs.yale.edu>
16344
16345 * data.c (Fdefalias): Add an optional `docstring' argument.
16346 (set_internal, Fsetq_default): Use XCAR/XCDR.
16347
16348 * composite.c (HASH_VALUE, HASH_KEY):
16349 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
16350
163512002-07-09 Kenichi Handa <handa@etl.go.jp>
16352
16353 * callproc.c (Fcall_process): Fix previous change.
16354
163552002-07-07 Stefan Monnier <monnier@cs.yale.edu>
16356
16357 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
16358 Add support for hash-tables.
16359 (Ftry_completion): Return t even if the string appears multiple times.
16360
16361 * fns.c (Fnconc): Use XCDR.
16362 (Fprovide): Use CONSP and XCDR.
16363 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16364 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
16365 (Fmake_hash_table): Accept `:size nil'.
16366 (Fmakehash): Delete: moved to subr.el.
16367 (syms_of_fns): Don't defsubr makehash.
16368
16369 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16370 (HASH_TABLE_SIZE): Move from fns.c.
16371
163722002-07-07 Richard M. Stallman <rms@gnu.org>
16373
16374 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
16375 Instead just return 0 when there is something to be done.
16376 (try_scrolling): If make_cursor_line_fully_visible returns 0,
16377 retry scrolling as if cursor were off the bottom.
16378 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
16379 return CURSOR_MOVEMENT_MUST_SCROLL.
16380 (redisplay_window): If make_cursor_line_fully_visible returns 0,
16381 go to try_to_scroll.
16382
16383 * buffer.c (Fbuffer_local_value): Store current value into its binding
16384 so we get the up-to-date value for the binding that is loaded.
16385
16386 * eval.c (Fdefmacro): Doc fix.
16387
163882002-07-05 Dave Love <fx@gnu.org>
16389
16390 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
16391 correctly.
16392
16393 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
16394 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
16395 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
16396 CCL_LookupCharConstTbl.
16397 (syms_of_ccl): Defvar translation-hash-table-vector.
16398
163992002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16400
16401 * xdisp.c: Remove unused variable `face'.
16402
164032002-07-04 Juanma Barranquero <lektu@terra.es>
16404
16405 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
16406 obsolescence information.
16407
164082002-07-03 Andrew Choi <akochoi@shaw.ca>
16409
16410 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
16411 pattern. Search cache first.
16412 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
16413 for Japanese font.
16414 (XLoadQueryFont): Use it.
16415
164162002-07-02 Richard M. Stallman <rms@gnu.org>
16417
16418 * keymap.c (Fdefine_key): Doc fix.
16419
16420 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
16421
164222002-07-02 Juanma Barranquero <lektu@terra.es>
16423
16424 * keymap.c (syms_of_keymap): Fix typo.
16425
164262002-07-01 Andrew Choi <akochoi@shaw.ca>
16427
16428 * s/darwin.h: Define POSIX_SIGNALS.
16429
16430 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
16431 and FSRefMakePath to convert FSSpec returned with Apple Event to
16432 Posix pathname.
16433 (mac_initialize) [TARGET_API_MAC_CARBON]:
16434 Call init_required_apple_events and disable the `Quit' menu item
16435 provided automatically by the Carbon Toolbox.
16436
164372002-07-01 Dave Love <fx@gnu.org>
16438
16439 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16440 for K&R.
16441
16442 * xterm.c: Fix prototype for K&R.
16443
16444 * term.c (costs_set): Declare static, non-initialized for pcc.
16445
164462002-07-01 Richard M. Stallman <rms@gnu.org>
16447
16448 * keyboard.c (timer_last_idleness_start_time): New variable.
16449 (timer_start_idle): Set that.
16450 (read_key_sequence): Use that to reset timer_idleness_start_time
16451 to previous value.
16452
16453 * window.c (Frecenter): With arg, set optional_new_start.
16454
16455 * xdisp.c (redisplay_internal): Make optional_new_start really work.
16456
16457 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
16458 buffer for completion.
16459
164602002-06-29 Ken Raeburn <raeburn@gnu.org>
16461
16462 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
16463
164642002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16465
16466 * keyboard.c (readable_filtered_events): New function that filters
16467 FOCUS_IN_EVENT depending on parameter.
16468 (readable_events): Calls readable_filtered_events, not filtering
16469 FOCUS_IN_EVENT.
16470 (get_filtered_input_pending): New function, filtering parameter passed
16471 to readable_filtered_events.
16472 (get_input_pending): Calls get_filtered_input_pending, not filtering
16473 FOCUS_IN_EVENT.
16474 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
16475 FOCUS_IN_EVENT.
16476
16477 * xterm.h (struct x_output): Add focus_state.
16478
16479 * xterm.c (x_focus_changed): New function.
16480 (x_detect_focus_change): New function.
16481 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
16482 EnterNotify and LeaveNotify to track X focus changes.
16483
164842002-06-28 Andreas Schwab <schwab@suse.de>
16485
16486 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
16487
164882002-06-27 Kim F. Storm <storm@cua.dk>
16489
52eb0373 16490 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
16491 (mode_line_string_face_prop): New variables.
16492 (store_mode_line_string): New function.
16493 (display_mode_element): Use store_mode_line_string to
16494 add mode-line string elements to mode_line_string_list
16495 when mode_line_string_list is non-nil.
16496 (Fformat_mode_line): Now returns propertized string by
16497 default. New arg NO-PROPS to ignore properties.
16498 (decode_mode_spec): Only add two dashes for %- in propertized
16499 mode-line string.
16500 (syms_of_xdisp): Init and staticpro mode_line_string_list.
16501
165022002-06-27 Stefan Monnier <monnier@cs.yale.edu>
16503
16504 * minibuf.c (minibuffer_completion_contents): Add return type.
16505
165062002-06-27 Juanma Barranquero <lektu@terra.es>
16507
16508 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
16509
165102002-06-26 Juanma Barranquero <lektu@terra.es>
16511
16512 * fileio.c (read_file_name_cleanup): Add missing return.
16513
165142002-06-26 Richard M. Stallman <rms@gnu.org>
16515
16516 * window.c (Frecenter): Don't set force_start flag.
16517
16518 * minibuf.c (do_completion, Fminibuffer_complete_word)
16519 (Fminibuffer_completion_help): Complete just the text before point.
16520 (minibuffer_completion_contents): New function.
16521
16522 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
16523
16524 * frame.c (frames_bury_buffer): Function deleted.
16525
165262002-06-25 Miles Bader <miles@gnu.org>
16527
16528 * callint.c (Fcall_interactively): When checking to see if doprnt hit
16529 the end of callint_message, allow for a terminating '\0'.
16530
165312002-06-24 Juanma Barranquero <lektu@terra.es>
16532
52eb0373 16533 * w32select.c: Include composite.h.
048addec
JD
16534
16535 * w16select.c: Likewise.
16536
165372002-06-24 Kenichi Handa <handa@etl.go.jp>
16538
16539 * callproc.c (Fcall_process): If code detection is necessary,
16540 call detect_coding directly here.
16541
16542 * coding.c (detect_eol): Preserve coding->cmp_data.
16543
16544 * w16select.c (Fw16_get_clipboard_data):
16545 * w32fns.c (w32_to_x_font):
16546 * w32select.c (Fw32_get_clipboard_data):
16547 * xselect.c (selection_data_to_lisp_data):
16548 * xterm.c (XTread_socket): Disable composition handling.
16549
165502002-06-24 Stefan Monnier <monnier@cs.yale.edu>
16551
16552 * print.c (temp_output_buffer_setup): Kill all local variables.
16553
165542002-06-22 Stefan Monnier <monnier@cs.yale.edu>
16555
16556 * lread.c (Fread): Remove redundant and imprecise declaration.
16557
16558 * xfns.c (check_x_display_info): Use check_x_frame.
16559
16560 * .gdbinit (xprintsym): Use the new `xname' field.
16561 (xsymbol): Use it.
16562
165632002-06-22 Jason Rumney <jasonr@gnu.org>
16564
16565 * w32fns.c (file_dialog_callback): New function.
16566 (Fx_file_dialog): Allow selecting directories as well as files.
16567
165682002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16569
16570 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 16571 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
16572
165732002-06-17 Andrew Choi <akochoi@shaw.ca>
16574
16575 * macterm.c (mac_scroll_area): Set foreground and backcolor to
16576 black and white before scrolling. Restore frame background and
16577 foreground color after scrolling.
16578 (do_window_update): Call XClearWindow before calling expose_frame.
16579 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
16580 FRAME_FOREGROUND_PIXEL of frame.
16581
16582 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16583 test Mac command key as <ALT> key.
16584
165852002-06-17 Stefan Monnier <monnier@cs.yale.edu>
16586
16587 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
16588
16589 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
16590 Lookup keys in function-key-map immediately so that key-translation-map
16591 can be applied earlier.
16592 Remove function_key_possible and key_translation_possible, replaced
16593 by checking `keytran_start < t'.
16594
16595 * .gdbinit (xsymbol): Use the new `xname' field.
16596
165972002-06-17 Andrew Choi <akochoi@shaw.ca>
16598
16599 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16600 test Mac command key as <ALT> key.
16601
16602 * mac.c (do_applescript): Call initialize_applescript if necessary
16603 when first called. Dispose of result_desc only when there is no error.
16604 (Fdo_applescript): Use %d format specifier instead of %ld.
16605
166062002-06-16 Andrew Choi <akochoi@shaw.ca>
16607
16608 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
16609 of FrontWindow for cases keyDown and autoKey.
16610
16611 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
16612 Vdefault_fontset to Monaco with mac-roman coding.
16613
16614 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
16615 init_process before and after inclusion of Carbon/Carbon.h, resp.
16616
16617 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
16618 cursor_gc.
16619 (add_font_name_table_entry): New function.
16620 (init_font_name_table): Use add_font_name_table_entry; add italic,
16621 bold, and bold-italic entries for truetype fonts.
16622
16623 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
16624 for Mac too.
16625 (try_font_list) [MAC_OS]: If no font matches given registry, try
16626 fonts with any registry matching face_family.
16627 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
16628
16629 * s/darwin.h: If autoconf detects the Ncurses library, define
16630 LIBS_TERMCAP to -lncurses to use it.
16631
166322002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
16633
16634 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
16635
166362002-06-15 Richard M. Stallman <rms@gnu.org>
16637
16638 * window.c (Fset_window_configuration): Explicitly preserve
16639 the point value that new_current_buffer had at the start.
16640
166412002-06-14 Juanma Barranquero <lektu@terra.es>
16642
16643 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
16644 Fix typos.
16645
166462002-06-14 Kim F. Storm <storm@cua.dk>
16647
16648 * insdel.c (insert_1_both, insert_from_string_1)
16649 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
16650 insert happened in the end_unchanged region. Otherwise, the
16651 redisplay may be confused and duplicate the last line in the
16652 buffer [seen after save-buffer when require-final-newline==t].
16653
166542002-06-13 Jason Rumney <jasonr@gnu.org>
16655
16656 * w32.c (init_environment): Remove EMACSLOCKDIR.
16657 (stat): Swap _S_IFDIR and _S_IFREG.
16658
166592002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16660
16661 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
16662 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
16663 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
16664 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
16665 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
16666 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
16667 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
16668 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
16669 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
16670 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
16671 SELECTION_REQUEST_EVENT, selection_clear_event to
16672 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
16673 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
16674 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
16675 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
16676 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
16677 no_event to NO_EVENT.
16678
166792002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16680
16681 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
16682
166832002-06-12 Stefan Monnier <monnier@cs.yale.edu>
16684
16685 * intervals.c (textget): Don't forget to `return'.
16686 (lookup_char_property): Use XCAR/XCDR.
16687
166882002-06-12 Juanma Barranquero <lektu@terra.es>
16689
16690 * xdisp.c (Fformat_mode_line): Fix typo.
16691
166922002-06-12 Kim F. Storm <storm@cua.dk>
16693
16694 * xdisp.c (Fformat_mode_line): New function.
16695 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
16696 (store_frame_title_char, store_frame_title): Use unconditionally.
16697 (init_xdisp): Defsubr Fformat_mode_line.
16698 Initialize frame_title_buf etc. unconditionally.
16699
167002002-06-11 Stefan Monnier <monnier@cs.yale.edu>
16701
16702 * keyboard.c (read_key_sequence):
16703 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
16704 things through those maps after downcasing events.
16705 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
16706 applies after function-key-map.
16707 Make sure that keytran can be done in the middle in the sequence.
16708 Be careful not to throw away events past the one we downcase.
16709
16710 * lread.c (read_integer): Remove unused var `tem'.
16711 (read1): Fix int/Lisp_Object mixup.
16712
16713 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
16714
167152002-06-11 Richard M. Stallman <rms@gnu.org>
16716
16717 * keyboard.c (readable_events): Ignore any number of
16718 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
16719
167202002-06-09 Miles Bader <miles@gnu.org>
16721
16722 * xfaces.c (Ftty_supports_face_attributes_p): New function.
16723 (parse_rgb_list, tty_lookup_color): New functions.
16724 (tty_defined_color): Use `tty_lookup_color' to do all the work.
16725 (color_distance, Fcolor_distance): New functions.
16726 (TTY_SAME_COLOR_THRESHOLD): New macro.
16727 (Qtty_color_standard_values): New variable.
16728 (syms_of_xfaces): Initialize new vars & functions.
16729
167302002-06-08 Colin Walters <walters@verbum.org>
16731
16732 * textprop.c (Vchar_property_alias_alist): New variable.
16733 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
16734
16735 * intervals.c (lookup_char_property): New function for looking up
16736 overlay and text properties, created from textget.
16737 (textget): Use it.
16738
16739 * intervals.h (lookup_char_property): Declare.
16740 (Vchar_property_alias_alist): Declare.
16741
16742 * buffer.c (Foverlay_get): Use lookup_char_property.
16743
167442002-06-07 Sam Steingold <sds@gnu.org>
16745
16746 * xselect.c (lisp_data_to_selection_data): Fix last change:
16747 *data_ret is not a Lisp string, while unibyte_string is.
16748
167492002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
16750
16751 * xselect.c (lisp_data_to_selection_data): Fix last change:
16752 set size_ret.
16753
167542002-06-07 Andreas Schwab <schwab@suse.de>
16755
16756 * m/amdx86-64.h: New file.
16757
167582002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
16759
16760 * fns.c (Fstring_make_unibyte): Doc fix.
16761
16762 * xselect.c (lisp_data_to_selection_data): If the requested type
16763 is STRING, call string_make_unibyte to encode the selected text
16764 as a string.
16765
16766 * window.c (Fset_window_hscroll): Doc fix.
16767
167682002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16769
16770 * fileio.c (choose_write_coding_system):
16771 Call select-safe-coding-system properly.
16772
167732002-06-03 Richard M. Stallman <rms@gnu.org>
16774
16775 * xdisp.c (message_with_string): Error if STRING is not a string.
16776
16777 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
16778
16779 * fileio.c (choose_write_coding_system): Pass FILE arg to
16780 Vselect_safe_coding_system_function.
16781
167822002-06-03 Ken Raeburn <raeburn@gnu.org>
16783
16784 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
16785
167862002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
16787
16788 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
16789 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
16790 * keymap.c (describe_command): Likewise.
16791 * minibuf.c (read_minibuf): Likewise.
16792
16793 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
16794 Cast `current_column' return value to int.
16795 (back_to_previous_visible_line_start)
16796 (reseat_at_next_visible_line_start, next_element_from_buffer):
16797 Cast `indented_beyond_p' 3rd arg to float.
16798
16799 * indent.c (last_known_column): Now a float.
16800 (current_column_1, position_indentation, current_column)
16801 (string_display_width): Return float.
16802 (Fcurrent_column): Cast `current_column' return value to int.
16803 (Fcurrent_indentation): Cast `position_indentation' retval to int.
16804 (indented_beyond_p): Third arg now a float.
16805 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
16806
16807 * lisp.h (current_column): Now returns float.
16808 (indented_beyond_p): 3rd arg now a float.
16809
168102002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
16811
16812 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
16813 is Qcompound_text_with_extensions.
16814
16815 * xselect.c (lisp_data_to_selection_data): Always set selection
16816 type as string if x_encode_text returns streingp non-NULL.
16817
16818 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
16819
168202002-05-30 Richard M. Stallman <rms@gnu.org>
16821
16822 * window.c (Fset_window_configuration): Correct the handling
16823 of point in current buffer, to work with multiple windows.
16824
168252002-05-29 Colin Walters <walters@verbum.org>
16826
16827 * lread.c (Fread_from_string): Don't depend on order of evaluation
16828 for C function parameters.
16829
168302002-05-28 Richard M. Stallman <rms@gnu.org>
16831
16832 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
16833 way for blinked-off state and for a nonselected window.
16834
16835 * window.c (window_scroll_pixel_based): Don't call Fbolp;
16836 instead, see if the new start pos is at beginning of line.
16837
16838 * fileio.c (Fwrite_region): If START is a string, don't
16839 make any annotations.
16840
16841 * eval.c (syms_of_eval): Doc fix.
16842
168432002-05-28 Colin Walters <walters@debian.org>
16844
16845 * emacs.c (USAGE1): Add --no-splash.
16846 (standard_args): Ditto.
16847
168482002-05-28 Colin Walters <walters@gnu.org>
16849
16850 * lread.c (readchar_count): New variable.
16851 (readchar): Increment it.
16852 (unreadchar): Decrement it.
16853 (read_multibyte): Decrement it.
16854 (Vread_with_symbol_positions): New variable.
16855 (Vread_symbol_positions_list): New variable.
16856 (read_internal_start): New function, created from Fread and
16857 Fread_from_string. Handle Vread_symbol_positions_list and
16858 Vread_with_symbol_positions.
16859 (readevalloop, Fread, Fread_from_string): Use it.
16860 (read1): Use readchar_count to add symbol positions to
16861 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
16862 (syms_of_lread): DEFVAR_LISP and initialize them.
16863
16864 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
16865 (substitute_object_recurse, substitute_object_in_subtree)
16866 (substitute_in_interval): Prototype.
16867 (read_multibyte): Return c if it's less than zero.
16868
168692002-05-28 Kim F. Storm <storm@cua.dk>
16870
16871 * fileio.c (Fread_file_name_internal): Added brute-force
16872 speed up for using predicate file-directory-p.
16873
168742002-05-28 Kim F. Storm <storm@cua.dk>
16875
16876 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
16877 New variables.
16878 (syms_of_fileio): DEFVAR_LISP them.
16879 (read_file_name_cleanup): New unwind function.
16880 (Fread_file_name_internal): Only return completions satifying
16881 Vread_file_name_predicate. Temporarily unwind protect and rebind
16882 default-directory while checking completions against the predicate.
16883 (Fread_file_name): Added PREDICATE argument. Specbind it to
16884 Vread_file_name_predicate during completion.
16885 Call Vread_file_name_function to read the file name if non-nil.
16886
16887 * lisp.h (Fread_file_name): Now has 6 args.
16888
16889 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
16890 predicate for Fread_file_name when reading directory name.
16891 Supply Qnil for predicate in other calls to Fread_file_name.
16892
168932002-05-26 Miles Bader <miles@gnu.org>
16894
16895 * term.c (tty_capable_p): New function.
16896 * dispextern.h (tty_capable_p): New function declaration.
16897 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
16898 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
16899
169002002-05-23 Stefan Monnier <monnier@cs.yale.edu>
16901
16902 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
16903 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
16904 (Vwrite_region_annotate_functions): Docstring fix.
16905
169062002-05-23 Kim F. Storm <storm@cua.dk>
16907
16908 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
16909 phys_cursor's hpos is overwritten. This is still not completely
16910 correct, as it doesn't really make sense to use hpos at all to
16911 get the cursor glyph (as that is relative to the width of the
16912 characters on the line, which may have changed during the update).
16913
169142002-05-22 Jason Rumney <jasonr@gnu.org>
16915
16916 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
16917 Lisp_Object.
16918 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
16919 Use modified enumfont_t struct.
16920
16921 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
16922
16923 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
16924 Handle the `hbar' cursor type.
16925 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
16926
16927 * w32fns.c (Qhbar): New variable.
16928 (x_specified_cursor_type): Use it.
16929
169302002-05-21 Ken Raeburn <raeburn@gnu.org>
16931
16932 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
16933 now, when the address is needed.
16934
169352002-05-21 Colin Walters <walters@gnu.org>
16936
16937 * Makefile.in (shortlisp): Add font-core.el.
16938
169392002-05-20 Richard M. Stallman <rms@gnu.org>
16940
16941 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
16942
16943 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
16944 equivalent key bindings here.
16945
169462002-05-20 Ken Raeburn <raeburn@gnu.org>
16947
16948 Change symbol structure to contain a lisp object for the symbol
16949 name:
16950 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
16951 object field named "xname".
16952 (SYMBOL_NAME): New macro.
16953 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
16954 name field.
16955 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
16956 (mark_object, gc_sweep): Use symbol xname field and XSTRING
16957 instead of name field.
16958 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
16959 SYMBOL_NAME instead of XSYMBOL and name field.
16960 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
16961 instead of XSYMBOL and name field.
16962 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
16963 and SYMBOL_NAME instead of XSYMBOL and name field.
16964 * coding.c (Fread_coding_system, code_convert_region1)
16965 (code_convert_string1, code_convert_string_norecord)
16966 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
16967 XSYMBOL and name field.
16968 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
16969 (Fmake_variable_buffer_local, Fmake_local_variable)
16970 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
16971 of XSYMBOL and name field.
16972 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
16973 XSYMBOL and name field.
16974 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
16975 instead of XSYMBOL and name field.
16976 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
16977 XSYMBOL and name field.
16978 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
16979 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16980 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
16981 instead of XSYMBOL and name field.
16982 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
16983 (parse_modifiers, apply_modifiers, Fevent_convert_list)
16984 (parse_solitary_modifier, Fexecute_extended_command):
16985 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16986 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
16987 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
16988 of XSYMBOL and name field.
16989 (describe_command, describe_translation): Use SYMBOL_NAME and
16990 assignment instead of XSYMBOL and name field and XSETSTRING.
16991 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
16992 instead of XSYMBOL and name field.
16993 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
16994 name field and XSETSTRING.
16995 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
16996 of XSYMBOL and name field.
16997 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
16998 assignment instead of XSYMBOL and name field and XSETSTRING.
16999 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
17000 XSTRING instead of XSYMBOL and name field.
17001 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
17002 and XSTRING instead of XSYMBOL and name field.
17003 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
17004 and XSTRING instead of XSYMBOL and name field.
17005 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
17006 XSTRING instead of XSYMBOL and name field.
17007 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17008 of XSYMBOL and name field.
17009 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
17010 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17011
170122002-05-19 Ken Raeburn <raeburn@gnu.org>
17013
17014 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
17015 and XCDR real rvalues in most configurations.
17016
17017 * buffer.c (fix_overlays_in_range, fix_overlays_before):
17018 Don't take the address of the cdr part of a cons cell; instead, track
17019 the parent cell and call XSETCDR, or set the variable for the head
17020 of the list if we haven't started down the list yet.
17021
170222002-05-19 Richard M. Stallman <rms@gnu.org>
17023
17024 * doc.c (reread_doc_file): Don't ask for confirmation.
17025
170262002-05-18 Jason Rumney <jasonr@gnu.org>
17027
17028 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
17029 (xbm_load_image): Use it.
17030 (xbm_load): Ditto.
17031 (xbm_read_bitmap_data): Reverted to xfns.c version.
17032 From David Ponce <david@dponce.com>.
17033
170342002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
17035
17036 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
17037 2.02 and later.
17038
170392002-05-16 Juanma Barranquero <lektu@terra.es>
17040
17041 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
17042
170432002-05-15 Stefan Monnier <monnier@cs.yale.edu>
17044
17045 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
17046 meaningful test.
17047 (read_char_minibuf_menu_prompt): Fix typo.
17048
170492002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
17050
17051 * eval.c (Fcommandp): Doc fix.
17052
170532002-05-13 Stefan Monnier <monnier@cs.yale.edu>
17054
17055 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
17056 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
17057 (Fset_keymap_parent): Gcpro a bit more.
17058 (access_keymap): Gcpro around meta_map call and around the main loop.
17059 (get_keyelt): Gcpro when following indirect references.
17060 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
17061 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
17062 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
17063 Remove useless ad-hoc remap code.
17064
170652002-05-13 Richard M. Stallman <rms@gnu.org>
17066
17067 * search.c (search_buffer): Give up boyer moore search if inverse
17068 translation change charset_base.
17069
170702002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
17071
17072 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
17073 characters is carried over from the previous block of text, adjust
17074 coding->produced to account for the extra character.
17075
170762002-05-11 Andreas Schwab <schwab@suse.de>
17077
17078 * coding.c (intersection): Keep the elements of the returned list
17079 in the same order as in the first list.
17080
170812002-05-11 Kim F. Storm <storm@cua.dk>
17082
3419757d 17083 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
17084 only update cmm_size if realloc actually succeeds.
17085 Testing with initial size of 2 elements revealed that using
17086 realloc on GNU/Linux would cause a random trap in xmalloc
17087 later on, so I rewrote the code to use malloc/bcopy/free instead
17088 of realloc.
17089
170902002-05-10 Jason Rumney <jasonr@gnu.org>
17091
17092 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
17093
170942002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
17095
17096 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
17097 parens, to ensure correct evaluation order.
17098
170992002-05-10 Kim F. Storm <storm@cua.dk>
17100
17101 * keymap.c (Vemulation_mode_map_alists): New variable.
17102 (syms_of_keymap): DEFVAR_LISP it.
17103 (current_minor_maps): Process keymap alists in that list before
17104 minor-mode-overriding-map-alist and minor-mode-map-alist.
17105
171062002-05-09 Richard M. Stallman <rms@gnu.org>
17107
17108 * search.c (Freplace_match): Doc fix.
17109
171102002-05-09 Kim F. Storm <storm@cua.dk>
17111
17112 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17113 Enlarge cursor rectangle drawn around image with non-zero relief.
17114
17115 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
17116 Enlarge cursor rectangle drawn around image with non-zero relief.
17117
17118 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17119 Enlarge cursor rectangle drawn around image with non-zero relief.
17120
171212002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
17122
17123 * xselect.c (lisp_data_to_selection_data): Don't set selection
17124 type if comes from the Lisp object's car. If the selection
17125 contains a pure ASCII text, always return QSTRING as its type.
17126
171272002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17128
17129 * mac.c (mac-cut-function): Doc fix.
17130
171312002-05-05 Richard M. Stallman <rms@gnu.org>
17132
17133 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17134
171352002-05-04 Jason Rumney <jasonr@gnu.org>
17136
17137 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
17138 for event-click-count.
17139
17140 * process.c (init_process): Only add server subfeature if we can
17141 use non-blocking I/O.
17142
171432002-05-04 Andrew Choi <akochoi@shaw.ca>
17144
17145 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
17146 repeatedly.
17147
171482002-05-03 Jason Rumney <jasonr@gnu.org>
17149
17150 * process.c (Fmake_network_process): Only support server sockets
17151 when we can make them non-blocking.
17152
17153 * s/ms-w32.h (HAVE_SELECT): Define.
17154
17155 * w32.h (FILE_NDELAY): New flag.
17156
17157 * w32.c (sys_getpeername, fcntl): New functions.
17158 (_sys_read_ahead): Temporarily block on non-blocking sockets.
17159
2d4713aa 17160 * w32proc.c: Include sys/file.h.
048addec
JD
17161
171622002-05-03 Colin Walters <walters@verbum.org>
17163
17164 * callproc.c (Vgame_score_directory): Renamed to
17165 Vshared_game_score_directory.
17166
171672002-04-30 Richard M. Stallman <rms@gnu.org>
17168
17169 * s/gnu.h [emacs]: Include stdio.h.
17170 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
17171
17172 * eval.c (do_autoload): Error if called while preparing to dump.
17173
17174 * fns.c (Frequire): Error if need to load while preparing to dump.
17175
171762002-04-28 Colin Walters <walters@verbum.org>
17177
17178 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
17179 Default to "~/.emacs.d/games".
17180
171812002-04-29 Stefan Monnier <monnier@cs.yale.edu>
17182
17183 * lread.c (openp): Change arg exec_only to predicate.
17184 (build_load_history): Use XCAR/XCDR.
17185 (Flocate_file_internal): New fun.
17186 (syms_of_lread): Defsubr it.
17187 (Fload): Update call to openp.
17188
17189 * lisp.h (openp): Update prototype.
17190
17191 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
17192 * w32proc.c (sys_spawnve):
17193 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
17194 * w32.c (check_windows_init_file):
17195 * sound.c (Fplay_sound_internal):
17196 * process.c (Fstart_process):
17197 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
17198 * mac.c (run_mac_command):
17199 * emacs.c (init_cmdargs):
17200 * callproc.c (Fcall_process): Update call to openp.
17201
17202 * textprop.c (remove_properties): Don't use XCAR without CONSP.
17203
17204 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
17205
172062002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17207
17208 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
17209 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
17210
172112002-04-28 Richard M. Stallman <rms@gnu.org>
17212
17213 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
17214
17215 * eval.c (Fcommandp): New arg for_call_interactively.
17216 * lisp.h (Fcommandp): Declare new arg.
17217
172182002-04-28 Jason Rumney <jasonr@gnu.org>
17219
17220 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
17221
17222 * w32.c (stat, fstat): Use file index information to generate
17223 inodes for directories where available.
17224
172252002-04-26 Andrew Choi <akochoi@shaw.ca>
17226
17227 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
17228 [HAVE_CARBON]: Include Mac object files.
17229
17230 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
17231 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
17232 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
17233 MAC_OSX, and MAC_OS instead of macintosh.
17234
17235 * editfns.c [MAC_OS8]: Include stdio.h.
17236
17237 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
17238
17239 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
17240 Apple Monaco.
17241
78819ebb 17242 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
17243 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
17244 calling select.
17245
17246 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
17247
17248 * tparam.c [MAC_OSX]: Don't define BC and UP.
17249
17250 * config.in [HAVE_CARBON]: Add.
17251
17252 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
17253 Move here from mac/src and mac/inc.
17254
17255 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
17256
172572002-04-26 Gerd Moellmann <gerd@gnu.org>
17258
17259 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
17260 Compute phys_cursor_width from the x position returned
17261 by x_draw_glyhs, which is cheaper.
17262 (x_display_and_set_cursor): Compute the buffer-local value
17263 of `cursor-in-non-selected-windows' only when needed.
17264
172652002-04-25 Gerd Moellmann <gerd@gnu.org>
17266
17267 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
17268 cursor on a stretch glyph has a width that depends on
17269 x_stretch_cursor_p.
17270
172712002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17272
17273 * abbrev.c (abbrev-start-location): Doc fix.
17274
17275 * indent.c (Fvertical_motion): Fix last change.
17276
172772002-04-25 Gerd Moellmann <gerd@gnu.org>
17278
17279 * indent.c (Fvertical_motion): Move to the start of the line
17280 containing PT before moving up or down.
17281
172822002-04-24 Gerd Moellmann <gerd@gnu.org>
17283
17284 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
17285 case of writing a whole row, more or less analogous to the case of
17286 writing only parts of a row.
17287
17288 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
17289 0 for NO_CURSOR.
17290
17291 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
17292
172932002-04-23 Colin Walters <walters@verbum.org>
17294
17295 * buffer.c (syms_of_buffer): Doc fix.
17296
172972002-04-23 Gerd Moellmann <gerd@gnu.org>
17298
17299 * xterm.c (notice_overwritten_cursor): Handle the special case
17300 of the cursor being in the first blank non-text line at the
17301 end of a window.
17302
17303 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17304 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17305 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
17306 bar cursors only, to make phys_cursor_width contain what its name
17307 suggests.
17308 (notice_overwritten_cursor): Consider the cursor image erased if
17309 the output area intersects the cursor image in y-direction.
17310
173112002-04-23 Simon Marshall <simon@gnu.org>
17312
17313 * xfns.c (x_set_mouse_color): Change default for cross_cursor
17314 to XC_hand2.
17315
173162002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17317
17318 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
17319
173202002-04-22 Kim F. Storm <storm@cua.dk>
17321
17322 * textprop.c (remove_properties): Fixed trap for malformed plist.
17323
173242002-04-22 Richard M. Stallman <rms@gnu.org>
17325
17326 * cmds.c (Fend_of_line): Handle intangible text in mid line.
17327
17328 * window.c (make_window): Initialize height_fixed_p,
17329 last_cursor_off_p, and p->cursor_off_p slots.
17330
173312002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17332
17333 * fns.c (use-dialog-box): Doc fix.
17334
173352002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17336
17337 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
17338 variables `row', `i' and `area'.
17339 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
17340 toolkit library.
17341
173422002-04-19 Stefan Monnier <monnier@cs.yale.edu>
17343
17344 * xfaces.c (clear_font_table): Don't free the default font of
17345 a frame even if it's on another display.
17346 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
17347 that could be Qt.
17348
173492002-04-19 Juanma Barranquero <lektu@terra.es>
17350
17351 * indent.c (Fmove_to_column): Remove unused local variable
17352 `next_boundary_byte'.
17353 (current_column_1): Likewise.
17354
173552002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
17356
17357 * msdos.c (Qhbar): New variable.
17358 (syms_of_msdos): Intern and staticpro it.
17359 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
17360 cursor type.
17361
173622002-04-19 Dave Lambert <dlambert@acm.org>
17363
17364 Theses change implement an underscore-like (`hbar') cursor.
17365
17366 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17367
17368 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
17369 Handle the `hbar' cursor type.
17370 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17371
17372 * xfns.c (Qhbar): New variable.
17373 (syms_of_xfns): Intern and staticpro it.
17374 (x_specified_cursor_type): Handle `hbar' cursor.
17375
17376 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
17377 not defined.
17378
173792002-04-18 Richard M. Stallman <rms@gnu.org>
17380
17381 * textprop.c (remove_properties): New arg LIST allows scanning
17382 either a list or a plist.
17383 (interval_has_some_properties_list): New function, like
17384 interval_has_some_properties using list instead of plist.
17385 All callers changed.
17386 (Fremove_list_of_text_properties): New function.
17387 (syms_of_textprop): Defsubr it.
17388
173892002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17390
17391 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
17392
173932002-04-17 Juanma Barranquero <lektu@terra.es>
17394
17395 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
17396
173972002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17398
17399 * window.c (coordinates_in_window): Don't report on margin area
17400 if its width is zero.
17401
174022002-04-16 Jason Rumney <jasonr@gnu.org>
17403
17404 * w32fns.c (Fx_file_dialog): Decode file name before using.
17405
17406 * w32term.c (construct_drag_n_drop): Likewise.
17407
174082002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
17409
17410 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
17411 store load-history in pure space.
17412
17413 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
17414
174152002-04-16 Stefan Monnier <monnier@cs.yale.edu>
17416
17417 * xterm.c (Qlatin_1, Qutf_8): New vars.
17418 (syms_of_xterm): Initialize them.
17419 (XTread_socket): Eliminate incorrect optimization that tried to avoid
17420 decoding the output of X*LookupString.
17421 Always use latin-1 to decode the output of XLookupString.
17422 Try Xutf8LookupString if XmbLookupString failed.
17423
17424 * region-cache.c (new_region_cache): Use BEG.
17425
174262002-04-16 Gerd Moellmann <gerd@gnu.org>
17427
17428 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
17429 configuration files.
17430 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
17431 returns 0.
17432
174332002-04-15 Andreas Schwab <schwab@suse.de>
17434
17435 * config.in: Regenerated using autoheader.
17436
17437 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
17438 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
17439 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
17440 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
17441 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
17442 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
17443 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
17444 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
17445 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
17446 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
17447 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
17448 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
17449 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
17450 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
17451 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
17452 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
17453 STACK_DIRECTION, now set by autoconf.
17454
174552002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17456
17457 * dispnew.c (marginal_area_string): Sort arguments.
17458
17459 * dispextern.h (marginal_area_string): Add prototype.
17460
174612002-04-13 Richard M. Stallman <rms@gnu.org>
17462
17463 * fileio.c (Finsert_file_contents):
17464 Don't call temp_output_buffer_setup--do just part, by hand.
17465
17466 * coding.c (run_pre_post_conversion_on_str):
17467 Don't call temp_output_buffer_setup--do just part, by hand.
17468
17469 * keyboard.c (command_loop_1): Don't call start_hourglass
17470 or cancel_hourglass when executing a macro.
17471
17472 * marker.c (count_markers): New function.
17473
17474 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
17475 grow without limit. Move recently used elements to the front.
17476
174772002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
17478
17479 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
17480
174812002-04-12 Gerd Moellmann <gerd@gnu.org>
17482
17483 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
17484 rows marginal areas.
17485 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
17486 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
17487
17488 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
17489
174902002-04-12 Dave Love <fx@gnu.org>
17491
17492 * dispnew.c (marginal_area_string): New.
17493
17494 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
17495 (Qleft_margin, Qright_margin): Declare.
17496 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
17497
17498 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
17499 note_mode_line_highlight and extended.
17500
17501 * keyboard.c (Qleft_margin, Qright_margin): Declare.
17502 (make_lispy_event): Deal with mouse events in margins.
17503
175042002-04-12 Stefan Monnier <monnier@cs.yale.edu>
17505
17506 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
17507
17508 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
17509 than deactivating the mark if tmm is set to `lambda'.
17510 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
17511 Use a single event for HELP_EVENT.
17512 (Fexecute_extended_command): Save last_point_position.
17513
175142002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17515
17516 * lisp.h (Fpropertize): Add prototype.
17517
17518 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
17519
175202002-04-10 Colin Walters <walters@verbum.org>
17521
17522 * config.in: Add HAVE_SHARED_GAME_DIR.
17523
52eb0373 17524 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
17525 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
17526
175272002-04-10 Richard M. Stallman <rms@gnu.org>
17528
17529 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
17530
175312002-04-09 Stefan Monnier <monnier@cs.yale.edu>
17532
17533 * minibuf.c (read_minibuf): Use empty_string.
17534 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
17535 Short-circuit the search as soon as it "failed".
17536 (Fall_completions): Allow lambda forms and lists of strings for alist.
17537 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
17538 when require_match is nil.
17539 (Ftest_completion): Rename from `test_completion' and export to elisp.
17540 Call the predicate also when alist is a list.
17541 Obey Vcompletion_regexp_list.
17542 (do_completion, Fminibuffer_complete_and_exit): Use it.
17543 (Fassoc_string): Rename from `assoc_for_completion'.
17544 Allow list of strings as well and export to elisp.
17545
175462002-04-08 Stefan Monnier <monnier@cs.yale.edu>
17547
17548 * puresize.h (BASE_PURESIZE): Increase to 900KB.
17549
175502002-04-08 Juanma Barranquero <lektu@terra.es>
17551
17552 * w32.c (sys_accept): Don't hide variable `s'.
17553
175542002-04-05 Gerd Moellmann <gerd@gnu.org>
17555
17556 * callint.c (Fcall_interactively): Use INTEGERP instead of
17557 NUMBERP for checking Vhistory_length.
17558
175592002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17560
17561 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
17562 Doc fix to reflect it.
17563
175642002-04-04 Richard M. Stallman <rms@gnu.org>
17565
17566 * xdisp.c (display_mode_element): New arg RISKY.
17567 Disregard text props found or specified within a variable
17568 that isn't marked risky-local-variable.
17569 (Qrisky_local_variable): New variable.
17570 (syms_of_xdisp): Init and staticpro it.
17571
175722002-04-04 Stefan Monnier <monnier@cs.yale.edu>
17573
17574 * undo.c (record_point): New fun.
17575 (record_delete, record_insert): Use it.
17576
175772002-04-03 Juanma Barranquero <lektu@terra.es>
17578
17579 * doc.c (Fdocumentation): Add missing parentheses.
17580 (Fdocumentation_property): Likewise.
17581
175822002-04-03 Stefan Monnier <monnier@cs.yale.edu>
17583
17584 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
17585 data is 0, just return nil.
17586
175872002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
17588
17589 * msdos.c (syms_of_msdos): Fix last change with
17590 mouse_autoselect_window.
17591
175922002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17593
17594 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
17595 mouse_autoselect_window.
17596
175972002-04-02 Stefan Monnier <monnier@cs.yale.edu>
17598
17599 * keyboard.c (make_lispy_event): Handle unknown keysyms together
17600 with system-specific keysyms. Use it also for unknown function keys.
17601
17602 * doc.c (reread_doc_file): Return whether reload was attempted.
17603 (Fdocumentation, Fdocumentation_property): Don't try to reload
17604 if the doc is 0 and only ask once.
17605
17606 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
17607
176082002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
17609
17610 * keyboard.c (read_char): If the event was Qselect_window,
17611 restore timer_idleness_start_time to its previous value.
17612
17613 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
17614
176152002-04-01 Stefan Monnier <monnier@cs.yale.edu>
17616
17617 * region-cache.c (new_region_cache): Use BEG.
17618
17619 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
17620 Use BEG and BEG_BYTE.
17621
17622 * doc.c (get_doc_string): Return nil if the location is wrong.
17623 (reread_doc_file): New fun.
17624 (Fdocumentation, Fdocumentation_property):
17625 Call it if get_doc_string fails.
17626 (Fsnarf_documentation): Make it work for a dumped Emacs.
17627
17628 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
17629 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
17630
17631 * charset.c (Fstring): Allow 0 arguments.
17632
17633 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
17634
17635 * process.c (DATAGRAM_CONN_P, list_processes_1)
17636 (Fprocess_datagram_address, Fset_process_datagram_address)
17637 (Fset_network_process_options, server_accept_connection):
17638 Fix some int/Lisp_Object confusions (thank you union types).
17639
176402002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17641
17642 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
17643
17644 * w32term.c: Likewise.
17645 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
17646
17647 * keyboard.c (Qselect_window): New symbol.
17648 (head_table): Use it.
17649 (keys_of_keyboard): Bound select-window event to handle-select-window.
17650 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
17651
17652 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
17653 (last_window): New variable.
17654 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
17655 (note_mouse_movement): Remove reimplemented code in #if 0.
17656 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
17657 Emacs windows.
17658
17659 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
17660
176612002-03-31 Gerd Moellmann <gerd@gnu.org>
17662
17663 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
17664 Callers changed.
17665
176662002-03-30 Richard M. Stallman <rms@gnu.org>
17667
17668 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
17669 loop whenever it stops making progress.
17670
17671 * widget.c (set_frame_size): Don't call change_frame_size.
17672
176732002-03-30 Gerd Moellmann <gerd@gnu.org>
17674
17675 * dispnew.c (direct_output_for_insert):
17676 Call mark_window_display_accurate.
17677
176782002-03-29 Jason Rumney <jasonr@gnu.org>
17679
17680 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
17681
176822002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
17683
17684 * Makefile.in (lread.o): Depend on coding.h.
17685
17686 * lread.c (openp, Fload): Encode the file name before passing it
17687 to `stat', `access', and `emacs_open'.
17688 (openp): GCPRO the encoded file name. Don't recompute Lisp
17689 strings unnecessarily.
17690
176912002-03-29 Kim F. Storm <storm@cua.dk>
17692
17693 * fns.c (Flax_plist_put): Doc fix.
17694
176952002-03-28 Miles Bader <miles@gnu.org>
17696
17697 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
17698
176992002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17700
17701 * process.c (set-network-process-options): Add usage.
17702 (make-network-process): Doc fix.
17703
177042002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
17705
17706 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
17707
177082002-03-26 Richard M. Stallman <rms@gnu.org>
17709
17710 * fns.c (Fsubstring_no_properties): New function.
17711 (Flax_plist_get, Flax_plist_put): New functions.
17712 (syms_of_fns): defsubr them.
17713
17714 * xdisp.c (update_menu_bar): Test only update_mode_lines;
17715 don't test or alter w->update_mode_line.
17716
17717 * window.c (Fdisplay_buffer): Doc fix.
17718
177192002-03-24 Richard M. Stallman <rms@gnu.org>
17720
17721 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
17722
177232002-03-24 Gerd Moellmann <gerd@gnu.org>
17724
17725 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
17726 (Fdefmacro): Handle `(declare ...)'.
17727 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
17728 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
17729
177302002-03-24 Jason Rumney <jasonr@gnu.org>
17731
17732 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
17733 (xbm_file_p): Add prototypes.
17734 (xbm_format, xbm_image_p): Sync with xfns.c.
17735 (reflect_byte): New function.
17736 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
17737 (xbm_load_image): Create bitmaps with a depth of 1.
17738 (init_xfns): Enable XBM images.
17739
177402002-03-23 Jason Rumney <jasonr@gnu.org>
17741
17742 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
17743 correctly. Do not pass up_modifier to keyboard buffer.
17744
17745 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
17746
177472002-03-22 Stefan Monnier <monnier@cs.yale.edu>
17748
17749 * Makefile.in (bootstrapclean): New target.
17750 (bootstrap-temacs, bootstrap-doc): Remove.
17751 (bootstrap-emacs): Use a bog-standard `temacs'.
17752 Don't bother to build a DOC file.
17753
17754 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
17755
17756 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
17757 in temacs even if !CANNOT_DUMP.
17758 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
17759
17760 * alloc.c (check_pure_size): Only output a warning.
17761
177622002-03-22 Jason Rumney <jasonr@gnu.org>
17763
17764 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
17765 supported.
17766
17767 * w32term.c (zv_bits): Declare as short, for word alignment.
17768 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
17769 (syms_of_w32term): Define x-use-underline-position-properties.
17770
17771 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
17772 (clear_image_cache): Block input, fix logic, clear matrices in
17773 all frames that share this cache.
17774
177752002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
17776
17777 * emacs.c (main): Update the Copyright year in the blurb printed
17778 by "emacs --version".
17779
17780 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
17781
17782 * xterm.c (XTread_socket): If XK_ISO_Lock and
17783 XK_ISO_Last_Group_Lock are defined, handle keysyms between
17784 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
17785
177862002-03-21 Kim F. Storm <storm@cua.dk>
17787
17788 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
17789 menu-bar bindings in keymap and local-map properties _are_ used.
17790 But try keymap property first in accordance with 2002-01-03 patch.
17791 Added comment describing why this is not always reliable.
17792 (tool_bar_items): Ditto for tool-bar.
17793
177942002-03-21 Jason Rumney <jasonr@gnu.org>
17795
17796 * w32fns.c (x_clear_image_1): Disable color table code.
17797
177982002-03-21 Kim F. Storm <storm@cua.dk>
17799
17800 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
17801 removed the wrong version of the DEFUN macro; fixed it.
17802
17803 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
17804 Fmember rather than Fmemq).
17805 (Fprovide): Check that subfeatures is a list.
17806
17807 * process.c (QCfeature, QCdatagram): Removed variables.
17808 (QCtype, Qdatagram): New variables.
17809 (network_process_featurep): Removed function.
17810 (Fmake_network_process): Removed :feature check.
17811 Use :type 'datagram instead of :datagram t to create a datagram
17812 socket. This allows us to add other connection types (e.g. raw
17813 sockets) later in a consistent manner.
17814 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
17815 supported subfeatures for feature make-network-process.
17816 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
17817 Intern and staticpro QCtype and Qdatagram.
17818 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
17819
17820 * xfns.c: (QCtype): Remove duplicate declaration and
17821 initialization (is now declared in process.c).
17822
17823 * w32fns.c: (QCtype): Remove duplicate declaration and
17824 initialization (is now declared in process.c).
17825
178262002-03-21 Richard M. Stallman <rms@gnu.org>
17827
17828 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
17829 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
17830 when jumping to `fail' to avoid undoing reg changes in the
17831 last iteration of the loop.
17832 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
17833
17834 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
17835 Depend on process.h.
17836
178372002-03-20 Jason Rumney <jasonr@gnu.org>
17838
17839 Most of the following changes are still conditional on HAVE_IMAGES
17840 which is not set by default on Windows.
17841
17842 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
17843
17844 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
17845 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
17846 (four_corners_best, x_clear_image_1, x_clear_image)
17847 (x_alloc_image_color, postprocess_image)
17848 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
17849 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
17850 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
17851
17852 * w32gui.h (struct XImage): Define.
17853
17854 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
17855 extract mouse co-ordinates.
17856
178572002-03-20 Jason Rumney <jasonr@gnu.org>
17858
17859 * w32.c (init_winsock): Dynamically load new server and UDP
17860 socket functions.
17861 (socket_to_fd): New function.
17862 (sys_socket): Use it.
17863 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
17864 (sys_recvfrom, sys_sendto): New wrapper functions.
17865
17866 * process.c (QCfamily, QCfilter): Remove duplicate declaration
17867 and initialization.
17868
17869 * makefile.w32-in (LIBS): Remove $(WSOCK32).
17870
178712002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
17872
17873 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
17874 Don't use "sun" as a variable, it's a predefined constant on Sun
17875 machines.
17876
178772002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17878
17879 * bytecode.c (Fbyte_code): Revert last change.
17880
178812002-03-19 Kim F. Storm <storm@cua.dk>
17882
17883 * makefile.w32-in (LIBS): Add $(WSOCK32).
17884 From David Ponce <dponce@voila.fr>.
17885
178862002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17887
17888 * process.c (wait_reading_process_input): Move variables `pname'
17889 and `pnamelen' down where they are used.
17890
17891 * bytecode.c (Fbyte_code): Discard unused computed value to
17892 prevent gcc warning.
17893
17894 * lisp.h (Fplist_member): Add prototype.
17895
178962002-03-18 Kim F. Storm <storm@cua.dk>
17897
17898 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
17899 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
17900
17901 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
17902 Remove explicit GNU_LINUX settings for datagram support.
17903
179042002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17905
17906 * process.c (Fmake_network_process): Remove unused variable `sa'.
17907 Doc fix. Add usage:.
17908 (set_socket_options): Remove unused variables `optnum' and `opttype'.
17909
179102002-03-17 Richard M. Stallman <rms@gnu.org>
17911
17912 * xdisp.c (cursor_type_changed): New variable.
17913 (redisplay_internal): Redisplay all windows if cursor_type_changed.
17914 Clear it when clearing windows_or_buffers_changed.
17915 (try_cursor_movement, redisplay_window, try_window_id)
17916 (try_window_reusing_current_matrix): Test cursor_type_changed
17917 along with windows_or_buffers_changed.
17918
17919 * window.h (cursor_type_changed): New variable.
17920
17921 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
17922 not update_mode_lines, and always set it to 1.
17923
17924 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
17925 if no frames needed redrawing.
17926
179272002-03-17 Kim F. Storm <storm@cua.dk>
17928
17929 The following changes add support for network server processes,
17930 datagram connections, and local (unix) sockets.
17931
17932 * process.h (struct Lisp_Process): New member log.
17933 Doc fix: Member command used to indicate stopped network process.
17934 Doc fix: Member childp contains plist for network process.
17935 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
17936
17937 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
17938 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
17939 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
17940 New variables.
17941 (NETCONN1_P): New macro.
17942 (DATAGRAM_SOCKETS): New conditional symbol.
17943 (datagram_address): New array.
17944 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
17945 (status_message): Use concat3.
17946 (Fprocess_status): Add `listen' status to doc string. Return `stop'
17947 for a stopped network process.
17948 (Fset_process_buffer): Update contact plist for network process.
17949 (Fset_process_filter): Ditto. Don't enable input for stopped
17950 network processes. Server must listen, even if filter is t.
17951 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
17952 New functions.
17953 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
17954 (Fprocess_contact): Added KEY argument. Handle datagrams.
17955 (list_processes_1): Optionally show only processes with the query
17956 on exit flag set. Dynamically adjust column widths. Omit tty
17957 column if not needed. Report stopped network processes.
17958 Identify server and datagram network processes.
17959 (Flist_processes): New optional arg `query-only'.
17960 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
17961 (conv_lisp_to_sockaddr, set_socket_options)
17962 (network_process_featurep, unwind_request_sigio): New helper functions.
17963 (Fprocess_datagram_address, Fset_process_datagram_address):
17964 (Fset_network_process_options): New lisp functions.
17965 (Fopen_network_stream): Removed. Now defined in simple.el.
17966 (Fmake_network_process): New lisp function. Code is based on previous
17967 Fopen_network_stream, but heavily reworked with new property list based
17968 argument list, support for datagrams, server processes, and local
17969 sockets in addition to old client-only functionality.
17970 (server_accept_connection): New function.
17971 (wait_reading_process_input): Use it to handle incoming connects.
17972 Do not enable input on a new connection if process is stopped.
f63fd14e 17973 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
17974 (send_process): Handle datagram sockets.
17975 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
17976 network process is indicated by setting command field to t .
17977 (Fprocess_send_eof): No-op if datagram connection.
17978 (Fstatus_notify): Don't read input for a stream server socket or a
17979 stopped network process.
17980 (init_process): Initialize datagram_address array.
17981 (syms_of_process): Intern and staticpro new variables, defsubr new
17982 functions.
17983
179842002-03-16 Jason Rumney <jasonr@gnu.org>
17985
17986 * w32fns.c (w32_to_all_x_charsets): Return correct type in
17987 startup case.
17988
179892002-03-16 Richard M. Stallman <rms@gnu.org>
17990
17991 * xdisp.c (redisplay_internal, redisplay_windows):
17992 Use list_of_error to call internal_condition_case_1.
17993 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
17994 so as to catch all errors with no possibility of debugger redisplay.
17995 (list_of_error): New variable.
17996 (syms_of_xdisp): Init and staticpro it.
17997
17998 * print.c (print_object): Delete `\ ' from printed rep of frame.
17999
180002002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
18001
18002 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
18003 until its implementation is fixed.
18004
180052002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18006
18007 * xfns.c (png_load): Remove unused variable `gamma_str'.
18008
180092002-03-14 Richard M. Stallman <rms@gnu.org>
18010
18011 * xfns.c (x_real_positions): Handle failure in XQueryTree.
18012
180132002-03-14 Miles Bader <miles@gnu.org>
18014
18015 * intervals.c (adjust_for_invis_intang): New function.
18016 (set_point_both): Use `adjust_for_invis_intang' to do most of the
18017 work for dealing with invisible+intangible regions. Do so before
18018 and after both forward and backward movements, to handle both
18019 front-sticky and rear-sticky cases.
18020 * textprop.c (text_property_stickiness): Function moved here from
18021 `editfns.c'.
18022 * intervals.h (text_property_stickiness): New declaration.
18023 * editfns.c (char_property_eq): Function removed.
18024 (text_property_stickiness): Function moved to `textprop.c'.
18025
180262002-03-13 Jason Rumney <jasonr@gnu.org>
18027
18028 * config.in: Add STRFTIME_NO_POSIX2.
18029
18030 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
18031 and %OX when underlying strftime does not.
18032
180332002-03-13 Stefan Monnier <monnier@cs.yale.edu>
18034
18035 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
18036 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
18037 line) to avoid annoying flicker.
18038 (xm_scroll_callback): Get rid of the now unnecessary kludge.
18039 (XTread_socket): Mark it static.
18040
18041 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
18042
180432002-03-13 Kim F. Storm <storm@cua.dk>
18044
18045 * puresize.h (BASE_PURESIZE): Increase to 775000.
18046
180472002-03-12 Juanma Barranquero <lektu@terra.es>
18048
18049 * editfns.c (syms_of_editfns): Fix typo.
18050
180512002-03-12 Gerd Moellmann <gerd@gnu.org>
18052
18053 * xsmfns.c: Include stdio.h because termhooks.h needs it.
18054 Include termopt.h for interrupt_input.
18055
180562002-03-11 Andreas Schwab <schwab@suse.de>
18057
18058 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
18059
180602002-03-11 Gerd Moellmann <gerd@gnu.org>
18061
18062 * xterm.c (note_mouse_movement): Put code for
18063 x_autoselect_window_p in #if 0.
18064
18065 * lread.c (Fload): Don't assume that message_with_string uses the
18066 string it is given like a C string.
18067
180682002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18069
78819ebb 18070 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 18071
52eb0373 18072 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
18073 x_session_have_connection.
18074 (x_initialize): Add call to x_session_initialize.
18075
18076 * termhooks.h (enum event_kind): Add save_session_event.
18077
18078 * keyboard.c: Add Emacs event save_session_event.
18079
18080 * emacs.c (main): Add call to syms_of_xsmfns.
18081
78819ebb 18082 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
18083
18084 * config.in: Add HAVE_X_SM.
18085
18086 * Makefile.in (LIBXT): Add -lSM -lICE
18087 if HAVE_X_SM and not USE_X_TOOLKIT.
18088 (XOBJ): New file xsmfns.c added.
18089
18090 * xsmfns.c: New file for X session management.
18091
180922002-03-09 Jason Rumney <jasonr@gnu.org>
18093
18094 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
18095 read-only when setting modified time.
18096
180972002-03-08 Gerd Moellmann <gerd@gnu.org>
18098
18099 * xdisp.c (move_it_vertically_backward): At the end of the function,
18100 when moving forward by lines, treat terminal frames specially.
18101
18102 * keyboard.c (echo_char): Make sure to add a separator between
18103 keys even if echo_dash hasn't been called.
18104
18105 * xdisp.c: Use new string macros.
18106 (update_echo_area): Pass number of bytes to message3 instead of
18107 number of chars.
18108 (set_message_1): Don't access a string's size_byte directly.
18109 (decode_mode_spec_coding): Use number of bytes of eoltype string
18110 instead number of chars.
18111
18112 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
18113
181142002-03-08 Juanma Barranquero <lektu@terra.es>
18115
18116 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
18117 24-bit.
18118
181192002-03-06 Jason Rumney <jasonr@gnu.org>
18120
18121 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
18122
181232002-03-06 Gerd Moellmann <gerd@gnu.org>
18124
18125 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
18126 (cancel_echoing, echo_length, echo_truncate): Changed to
18127 work with new kboard definition.
18128 (echo_now): Use message3_nolog instead of message2_nolog.
18129
18130 * alloc.c (mark_kboards): Mark echo_string.
18131
18132 * keyboard.h (ECHOBUFSIZE): Removed.
18133 (struct kboard): Member echoptr removed, member echobuf renamed
18134 to echo_string.
18135
18136 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
18137 message3 instead of message2 to display the message using STRING's
18138 text properties.
18139
181402002-03-05 Andreas Schwab <schwab@suse.de>
18141
18142 * xdisp.c (hscroll_margin): Change to EMACS_INT.
18143
181442002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
18145
18146 * frame.c (default-frame-alist): Explain that setting it doesn't
18147 affect existing frames.
18148
181492002-03-05 Stefan Monnier <monnier@cs.yale.edu>
18150
18151 * indent.c (skip_invisible): Fix my brain fart.
18152
18153 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
18154
181552002-03-04 Stefan Monnier <monnier@cs.yale.edu>
18156
18157 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
18158 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
18159 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
18160 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
18161 and variables to use EMACS_INT instead of just int.
18162
18163 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
18164
181652002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
18166
18167 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
18168 environment, pass it down with corrected value.
18169
181702002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18171
18172 * lread.c (read_filtered_event): Do not call start_hourglass
18173 before returning.
18174
181752002-03-04 Juanma Barranquero <lektu@terra.es>
18176
18177 * w32term.c (x_display_and_set_cursor): Fix typo.
18178
181792002-03-03 Richard M. Stallman <rms@gnu.org>
18180
18181 * fileio.c (Fmake_temp_name): Doc fix.
18182
181832002-03-03 Gary Wong <gtw@gnu.org>
18184
18185 * termcap.c [!emacs]: Replace ospeed for building standalone
18186 libtermcap, for binary compatibility.
18187
18188 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
18189
181902002-03-03 Richard M. Stallman <rms@gnu.org>
18191
18192 * xrdb.c (file_p): Rename arg `path' to `filename'.
18193
18194 * abbrev.c (Fexpand_abbrev): Increment plist as use count
18195 only if it is an integer.
18196
18197 * xfns.c (png_load): Set screen_gamma based on f->gamma.
18198 If png_get_sRGB gives an answer, call png_set_gamma
18199 using the default image gamma value.
18200
18201 * lread.c (read1): When reading from a file, default string to
18202 multibyte only if it has some multibyte characters.
18203
18204 * print.c (print_object): Output multibyte chars 128...255
18205 using \x even if ! print_escape_multibyte.
18206
18207 * xdisp.c (display_mode_element): Move the places where
18208 bytepos, charpos, this, and lisp_string are set.
18209 Use lisp_string to set bytepos.
18210
18211 * xdisp.c (redisplay_internal):
18212 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
18213
18214 * xdisp.c (display_mode_element): Merge properties specified with
18215 :propertize onto those that come with the string.
18216
182172002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
18218
18219 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
18220 automatic-hscrolling. Users changed.
18221 <hscroll-margin>: Renamed from automatic-hscroll-margin.
18222 Users changed.
18223 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
18224
182252002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
18226
18227 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
18228
182292002-03-02 Kim F. Storm <storm@cua.dk>
18230
18231 * window.c (Fminibuffer_selected_window): New function.
18232 (syms_of_window): Defsubr it.
18233
182342002-03-01 Kim F. Storm <storm@cua.dk>
18235
18236 * window.h (struct window): New member phys_cursor_width.
18237
18238 * window.c (make_window, replace_window): Init phys_cursor_width.
18239
18240 * xterm.c (x_display_and_set_cursor): Blink box cursor using
18241 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18242
18243 * w32term.c (x_display_and_set_cursor): Blink box cursor using
18244 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18245
18246 * lisp.h (GCPRO6): New macro.
18247
18248 * process.c (Fopen_network_stream): Use GCPRO6.
18249
182502002-03-01 Kim F. Storm <storm@cua.dk>
18251
18252 * process.c (Qconnect, Qfailed): New variables.
18253 (syms_of_process): Intern and staticpro them.
18254 (Fprocess_status): Document connect and failed return values.
18255 [NON_BLOCKING_CONNECT]: New conditional.
18256 (connect_wait_mask, num_pending_connects): New variables.
18257 (status_message): Convert Qfailed status.
18258 (Fopen_network_stream): Added support for non-blocking connect.
18259 New optional args: filter, sentinel, non_blocking. Doc updated.
18260 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
18261 (deactivate_process): Handle pending non-blocking connect.
18262 (wait_reading_process_input): Poll for status of non-blocking
18263 connects. Exec sentinel directly when connect succeeds.
18264 (status_notify): Don't read process output if not yet connected.
18265
182662002-02-28 Kim F. Storm <storm@cua.dk>
18267
18268 * window.c: (minibuf_selected_window): Renamed from
18269 Vminibuf_selected_window. Users changed.
18270 (syms_of_window): Staticpro it.
18271
182722002-02-26 Kim F. Storm <storm@cua.dk>
18273
18274 The following changes add a new Vminibuf_selected_window variable
18275 which is similar to Vminibuf_scroll_window, but which is only set
18276 on entry to the minibuffer (from a non-minibuffer window):
18277
18278 * window.c: (Vminibuf_selected_window): New variable.
18279 (struct save_window_data): New member minibuf_selected_window.
18280 (Fset_window_configuration): Restore Vminibuf_selected_window.
18281 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
18282 Set minibuf_scroll_window member to nil if minibuf_level is 0.
18283 (compare_window_configurations): Compare minibuf_selected_window.
18284
18285 * window.h: (Vminibuf_selected_window): Declare extern.
18286
18287 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
18288 entry to minibuffer or on entry from a non-minibuffer window.
18289
18290 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
18291 Vminibuf_selected_window instead of Vminibuf_scroll_window.
18292
18293 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
18294 instead of Vminibuf_scroll_window when deciding in which window
18295 the region should be highlighted. Consequently, the region remains
18296 highlighteded even when a completion buffer is also displayed.
18297
182982002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
18299
18300 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
18301
18302 * xselect.c (Qcompound_text_with_extensions): Renamed from
18303 Qcompound_text_no_extensions.
18304 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
18305
183062002-02-26 Juanma Barranquero <lektu@terra.es>
18307
18308 * w32proc.c (syms_of_ntproc): Doc fix.
18309
183102002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18311
18312 * intervals.h: Include "dispextern.h" unconditionally.
18313
183142002-02-24 Jason Rumney <jasonr@gnu.org>
18315
18316 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
18317 and disp-table.elc.
18318 (lisp): Add emacs-lisp/backquote.elc.
18319
183202002-02-24 Kim F. Storm <storm@cua.dk>
18321
3419757d 18322 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
18323 The validation of the event type was too strict as it didn't
18324 allow string events; buffer names are used in bindings for
18325 menu-bar-select-buffer (see `menu-bar-update-buffers').
18326
183272002-02-23 Kim F. Storm <storm@cua.dk>
18328
18329 The following changes rework my patch of 2002-02-06 which
18330 added command remapping by entering the commands directly into
18331 the keymaps. Now, command remapping uses an explicit `remap'
18332 prefix in the keymaps, i.e. [remap COMMAND].
18333
18334 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 18335 (is_command_symbol): Remove function.
048addec
JD
18336 (Fdefine_key): No longer accept a symbol for KEY.
18337 Added validation of [remap COMMAND] argument for KEY.
18338 The DEF is no longer required to be a symbol when remapping a command.
18339 (Fremap_command): New function to remap command through keymaps.
18340 (Flookup_key): Perform command remapping initiated by
18341 Fremap_command directly for speed.
18342 (Fkey_binding): Use Fremap_command for command remapping.
18343 (where_is_internal): Handle new command remapping representation.
18344 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
18345 staticpro them. Defsubr Fremap_command.
18346
18347 * keymap.h (Fremap_command): Declare extern.
18348 (is_command_symbol): Remove extern.
18349
18350 * keyboard.c (command_loop_1): Use Fremap_command for command
18351 remapping; now try command remapping for all symbols.
18352
183532002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18354
18355 * coding.h (run_pre_post_conversion_on_str): Add prototype.
18356
183572002-02-23 Jason Rumney <jasonr@gnu.org>
18358
18359 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
18360 on the string before encoding it.
18361 (Fw32_get_clipboard_data): Run post-read-conversion on the string
18362 after decoding it.
18363
18364 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
18365
183662002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18367
18368 * w32term.c (enter_timestamp): Remove unused static variable to
18369 prevent warning.
18370
18371 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
18372
183732002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18374
18375 * w16select.c (Fw16_get_clipboard_data): Fix last change.
18376
18377 * xselect.c (selection_data_to_lisp_data): Fix last change.
18378
183792002-02-22 Jason Rumney <jasonr@gnu.org>
18380
18381 * w32term.h (struct w32_output): New member menu_command_in_progress.
18382
18383 * w32menu.c (menubar_selection_callback): Free the menu and
18384 clear the menu_command_in_progress flag.
18385
18386 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
18387 (menu_free_timer): New variable.
18388 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
18389 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
18390 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
18391 menu command is in progress.
18392 <WM_COMMAND>: Set the menu_command_in_progress flag.
18393 Kill any menu_free_timer that is running.
18394
18395 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
18396 Call ExtTextOutA rather than ExtTextOut.
18397
183982002-02-22 Eli Zaretskii <eliz@gnu.org>
18399
18400 * puresize.h (BASE_PURESIZE): Increase to 755000.
18401
184022002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18403
18404 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
18405 on the string before encoding it.
18406 (Fw16_get_clipboard_data): Run post-read-conversion on the string
18407 after decoding it.
18408
184092002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18410
18411 Support for ICCCM Extended Segments in X selections:
18412
18413 * xselect.c <Qcompound_text_no_extensions>: New variable.
18414 (syms_of_xselect): Intern and staticpro it.
18415 (selection_data_to_lisp_data): Run post-read-conversion on decoded
18416 selection text.
18417 (lisp_data_to_selection_data): If next-selection-coding-system is
18418 compound-text-no-extensions, set the type of selection to be
18419 compound-text.
18420
18421 * xterm.h (x_encode_text): Update prototype.
18422
18423 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
18424 callers changed. If SELECTIONP is non-zero, run the
18425 pre-write-conversion function before encoding the selection text.
18426
184272002-02-21 Kim F. Storm <storm@cua.dk>
18428
18429 * frame.c (syms_of_frame): Change mouse-highlight default to t.
18430
18431 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
18432 Correct composing of language-change event.
18433
184342002-02-20 Kim F. Storm <storm@cua.dk>
18435
18436 * keyboard.c (menu_bar_items): Don't include keymap or local-map
18437 bindings at PT when building menu (the menu is not updated often
18438 enough for this to work reliable).
18439 (tool_bar_items): Likewise.
18440 (current_active_maps): Removed unused (and buggy) function.
18441
184422002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18443
18444 * xfns.c (gif_load): Use correct width and height for GIF images.
18445
184462002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
18447
18448 * floatfns.c (Fatan): Accept an optional second arg and call
18449 atan2 if passed 2 args.
18450
184512002-02-18 Jason Rumney <jasonr@gnu.org>
18452
18453 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
18454
184552002-02-17 Jason Rumney <jasonr@gnu.org>
18456
18457 * w32term.c (x_autoselect_window_p): New variable.
18458 (syms_of_w32term): DEFVAR_BOOL and initialize it.
18459 (note_mouse_movement): Use it.
18460
18461 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
18462
18463 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
18464
18465 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18466 New variables.
18467 (syms_of_w32fns): Intern and staticpro them.
18468 (x_frame_parms) <"fullscreen">: New parameter.
18469 (x_fullscreen_move, x_set_fullscreen): New functions.
18470 (x_set_frame_parameters): Support Qfullscreen.
18471 (x_real_positions): Save x/y_pixels_diff frame params.
18472 (x_figure_window_size): Support full-screen frames.
18473 (Fx_create_frame): Default the fullscreen parameter.
18474
18475 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
18476 (x_fullscreen_adjust): New functions.
18477 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
18478 fullscreen. Call x_check_fullscreen_move, and set the
18479 want_fullscreen member of output_data.w32
18480 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
18481
18482 * w32term.h: New enum for FULLSCREEN_* constants.
18483 (struct w32_output): New members want_fullscreen, x_pixels_diff,
18484 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
18485 (x-fullscreen-adjust): New prototype.
18486
184872002-02-17 Kim F. Storm <storm@cua.dk>
18488
52eb0373 18489 * frame.c (Vmouse_highlight): New variable.
048addec
JD
18490 (syms_of_frame): DEFVAR_LISP it.
18491
52eb0373 18492 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 18493
048addec 18494 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 18495
048addec
JD
18496 * xterm.c (disable_mouse_highlight): Removed variable.
18497 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18498 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18499 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
18500 and on after keyboard input.
18501 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 18502
048addec 18503 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 18504
048addec
JD
18505 * msdos.c (disable_mouse_highlight): Removed variable.
18506 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18507 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18508 (internal_terminal_init): Initialize mouse_face_hidden.
18509 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
18510 and on after keyboard input.
4f1b1854 18511
048addec 18512 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 18513
048addec
JD
18514 * w32term.c (disable_mouse_highlight): Removed variable.
18515 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
18516 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18517 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
18518 and on after keyboard input.
18519 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 18520
048addec 185212002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 18522
048addec
JD
18523 * msdos.c (last_mouse_window): New variable.
18524 (dos_rawgetc): Fix last change--if the mouse is in the same window
18525 as recorded in last_mouse_window, don't select this window.
5cb6905d 18526
048addec 18527 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 18528
048addec
JD
18529 * msdos.c (x_autoselect_window_p): New variable.
18530 (syms_of_msdos): Defvar it.
18531 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
18532 which the last mouse movement occured, unless it is already selected.
437dfb9f 18533
048addec
JD
18534 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
18535 New variables.
18536 (syms_of_xdisp): DEVFAR them.
18537 (hscroll_window_tree): Use automatic_hscroll_margin and
18538 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 18539
048addec 185402002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 18541
048addec
JD
18542 * xterm.c (x-autoselect-window): New variable.
18543 (note_mouse_movement): Use it.
9f696a00 18544
048addec 18545 * keyboard.c: Do not include "systime.h" twice.
d57966d7 18546
048addec 185472002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 18548
bfa02563 18549 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 18550
048addec 18551 * alloc.c (NSTATICS): Increase to 1280.
74779f52 18552
048addec 185532002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 18554
048addec 18555 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 18556
048addec
JD
18557 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
18558 (Vx_super_keysym): New variables.
18559 (syms_of_xterm): DEFVAR_LISP them.
18560 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
18561 variables to determine which keys to use for the various modifiers.
a474d59c 18562
048addec 185632002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 18564
048addec
JD
18565 * window.c: (Vmode_line_in_non_selected_windows): Removed.
18566 (mode_line_in_non_selected_windows): New variable.
18567 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 18568
048addec
JD
18569 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
18570 Use mode_line_in_non_selected_windows.
18571 (mode_line_in_non_selected_windows): Declare extern.
18572 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 18573
048addec 185742002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 18575
048addec
JD
18576 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
18577 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
18578 (Fclear_this_command_keys): Doc fixes.
2d10309f 18579
048addec
JD
18580 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
18581 (update_face_from_frame_parameter): Increment face_change_count
18582 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 18583
048addec
JD
18584 * xdisp.c (QCpropertize): New variable.
18585 (mode_line_proptrans_alist): New variable.
18586 (display_mode_element): New arg PROPS; all calls changed.
18587 Implement this, for strings.
18588 Handle literal output of strings by sharing the
18589 main-line code for strings, using local var `literal'.
18590 Handle :propertize feature.
18591 (syms_of_xdisp): Initialze and staticpro QCpropertize and
18592 mode_line_proptrans_alist.
0b1e6b54 18593
048addec 185942002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 18595
048addec
JD
18596 * window.c: (Vmode_line_in_non_selected_windows): New variable.
18597 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 18598
048addec
JD
18599 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
18600 (CURRENT_MODE_LINE_FACE_ID): Use it.
18601 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 18602
048addec
JD
18603 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
18604 to get mode line face.
e17144de 18605
048addec 186062002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18607
048addec
JD
18608 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
18609 variables; cus-start.el doesn't need them anymore.
44368f8f 18610
048addec 186112002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 18612
048addec
JD
18613 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
18614 reduction. This fixes a display problem where stray newlines were
18615 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 18616
048addec 186172002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18618
048addec 18619 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 18620
048addec 18621 * xdisp.c (display_mode_lines): Fix last change.
453c5510 18622
048addec 186232002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 18624
048addec
JD
18625 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
18626 match each other.
18627 (w32_load_system_font): Prevent Cleartype fonts from loading.
18628 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 18629
048addec 186302002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 18631
048addec
JD
18632 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
18633 (CURRENT_MODE_LINE_HEIGHT): Use it.
18634 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18635
048addec
JD
18636 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
18637 (pos_visible_p, handle_face_prop): Likewise.
18638 (display_mode_lines): Likewise, but for the real selected window.
18639 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18640
048addec
JD
18641 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
18642 in non-selected windows.
18643 (realize_basic_faces): Realize it.
18644 (syms_of_term): Intern and staticpro it.
308dd672 18645
048addec 186462002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 18647
048addec
JD
18648 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
18649 Changed mail addresses to emacs-devel@gnu.org.
308dd672 18650
048addec 186512002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 18652
048addec
JD
18653 * fileio.c (Fsubstitute_in_file_name): If the file name includes
18654 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 18655
048addec 18656 * floatfns.c (Fround): Doc fix.
3c1e6b46 18657
048addec 186582002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 18659
048addec 18660 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 18661
048addec 186622002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 18663
048addec 18664 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 18665
048addec 186662002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 18667
048addec
JD
18668 * keymap.c (where_is_internal): Only check whether definition is
18669 remapped if it fulfills is_command_symbol.
0065bb74 18670
048addec 186712002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 18672
048addec 18673 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 18674
048addec 18675 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 18676
048addec 186772002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 18678
048addec
JD
18679 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
18680 defining command remapping. Doc updated.
18681 (Flookup_key): Remap command through keymap if KEY is a symbol.
18682 (is_command_symbol): New function.
18683 (Fkey_binding): Use it. New optional argument NO-REMAP.
18684 Doc updated. Callers changed. Perform command remapping via
18685 recursive call unless that arg is non-nil.
18686 (where_is_internal): New argument no_remap. Callers changed.
18687 Call recursively to find original key bindings for a remapped
18688 comand unless that arg is non-nil.
18689 (Fwhere_is_internal): New optional argument NO-REMAP.
18690 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 18691
048addec 18692 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 18693 (is_command_symbol): Add prototype.
0d8466cc 18694
048addec
JD
18695 * keyboard.c (Vthis_original_command): New variable.
18696 (syms_of_keyboard): DEFVAR_LISP it.
18697 (command_loop_1): Set it, and perform command remapping.
15fff01d 18698
048addec 186992002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 18700
048addec 18701 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 18702
048addec 187032002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 18704
048addec 18705 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 18706
048addec 187072002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 18708
048addec 18709 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 18710
048addec 187112002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 18712
048addec 18713 * filelock.c (S_ISLNK): Define if not defined.
3a232704 18714
048addec 187152002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 18716
048addec 18717 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 18718
048addec
JD
18719 * lread.c (read1): Redesign strategy for force_multibyte and
18720 force_singlebyte. Now is_multibyte records whether read_buffer
18721 is multibyte. Encountering any multibyte character makes it so.
4e02881b 18722
048addec 187232002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 18724
048addec
JD
18725 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
18726 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 18727
048addec 187282002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 18729
048addec
JD
18730 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
18731 latter never being defined on GNU/Linux.
749f499f 18732
048addec 187332002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 18734
048addec
JD
18735 * xfaces.c (realize_default_face): Don't set the weight and slant of
18736 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 18737
048addec 187382002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 18739
048addec
JD
18740 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
18741 Call cancel_hourglass unconditionally.
d0fd26dd 18742
048addec
JD
18743 * eval.c (Fsignal): Remove duplicated declaration of
18744 the variable `display_hourglass_p'.
b4c45162 18745
048addec 187462002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 18747
048addec 18748 * editfns.c (region_limit): Nicer error message.
c95eaa61 18749
048addec
JD
18750 * coding.c (decode_composition_emacs_mule):
18751 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 18752
048addec
JD
18753 * callint.c (check_mark): New arg to specify clearer error message.
18754 Callers changed.
c95eaa61 18755
048addec 187562002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 18757
048addec 18758 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 18759
048addec 187602002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 18761
048addec
JD
18762 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
18763 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
18764 Fix doc-strings.
c95eaa61 18765
048addec 187662002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 18767
048addec 18768 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 18769
048addec
JD
18770 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
18771 and scroll_up_aggressively.
c95eaa61 18772
048addec 187732002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 18774
048addec 18775 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 18776
048addec 187772002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 18778
048addec
JD
18779 * textprop.c (Fnext_property_change, Fnext_single_property_change)
18780 (Fprevious_property_change, Fprevious_single_property_change):
18781 Stay within the narrowed-buffer boundaries.
e2c3786a 18782
048addec 187832002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 18784
048addec
JD
18785 * term.c (Ftty_display_color_cells): New function.
18786 (syms_of_term): Defsubr it.
18787 (Ftty_display_color_cells, Ftty_display_color_p): Change the
18788 argument name to DISPLAY. Doc fix.
bf794306 18789
048addec
JD
18790 * dispextern.h: Add prototype for set_tty_color_mode and
18791 tty_setup_colors.
bf794306 18792
048addec 187932002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 18794
048addec
JD
18795 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
18796 If region left to draw is not what was expected, mark the frame as
18797 garbaged.
62582985 18798
048addec
JD
18799 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
18800 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 18801
048addec 188022002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 18803
048addec
JD
18804 * w32term.c (x_update_window_begin): Only hide caret if
18805 w32_use_visible_system_caret is set.
18806 (x_update_window_end): Only show caret if
18807 w32_use_visible_system_caret is set.
18808 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 18809
048addec 18810 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 18811
048addec 188122002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 18813
048addec
JD
18814 * unexelf.c (unexec): Define n so as to cause compilation error
18815 for the code where people have often written n instead of nn.
1e9a6186 18816
048addec 18817 * .gdbinit (hookpost-run): Defined.
1e9a6186 18818
048addec 188192002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 18820
048addec 18821 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 18822
048addec 188232002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 18824
048addec
JD
18825 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
18826 if fullscreen is being set.
7c75be36 18827
048addec 188282002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 18829
048addec
JD
18830 * minibuf.c (Fminibuffer_contents)
18831 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
18832 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 18833
048addec 188342002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 18835
048addec 18836 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 18837
048addec 188382002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 18839
048addec
JD
18840 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
18841 height before comparison.
18842 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 18843
048addec 188442002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 18845
048addec
JD
18846 * w32term.c (w32_system_caret_width): Remove.
18847 (w32_use_visible_system_caret): New user flag.
18848 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
18849 Windows reports a screen reader running.
18850 (x_update_window_begin): Hide the system caret.
18851 (x_update_window_end): Show the system caret.
18852 (x_display_and_set_cursor): Don't draw a cursor when
18853 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 18854
048addec
JD
18855 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
18856 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
18857 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
18858 the user requests it. Use system default width when creating.
18859 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 18860
048addec
JD
18861 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
18862 New window messages.
905cc05a 18863
048addec 188642002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 18865
048addec 18866 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 18867
048addec 188682002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 18869
048addec 18870 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 18871
048addec 188722002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 18873
048addec 18874 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 18875
048addec 188762002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 18877
048addec
JD
18878 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
18879 that Windows returns. If a double check fails, try to guess how
18880 ExtTextOut is going to act.
4d0fa4f3 18881
048addec
JD
18882 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
18883 in place of stricmp.
18884 (w32_list_synthesized_fonts): Removed.
18885 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
18886 (struct enumfont_t): New element; list.
18887 (enum_font_cb2): List all style and charset variations of a font.
18888 (Fw32_select_font): New optional argument; include_proportional.
18889 Exclude vertical fonts. Exclude proportional fonts unless
18890 include_proportional is non-nil.
18891 (w32_enable_synthesized_fonts): Change to a boolean.
18892 (Fw32_send_sys_command): Doc fix.
493faf20 18893
048addec 188942002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 18895
048addec
JD
18896 * dispnew.c (update_frame): Move the variable `tem' to the block
18897 where it is used.
4971e491 18898
048addec 188992002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 18900
048addec
JD
18901 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
18902 call to face-set-after-frame-default.
4971e491 18903
048addec 189042002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 18905
048addec
JD
18906 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
18907 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 18908
048addec 189092002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 18910
048addec
JD
18911 * window.c (enlarge_window): When exceeding size of parent,
18912 directly delete all the siblings instead of trying to resize it.
201c831a 18913
048addec 189142002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 18915
048addec 18916 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 18917
048addec 189182002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 18919
048addec 18920 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 18921
048addec 189222002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 18923
048addec
JD
18924 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
18925 is invisible. This can happen if cursor is on top line of a
18926 window, and we switch to a buffer with a header line.
d77fbc16 18927
048addec 18928 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 18929
048addec 189302002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 18931
048addec
JD
18932 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
18933 `dont_resize' only when used.
61e3b944 18934
048addec 18935 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 18936
048addec 189372002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 18938
048addec
JD
18939 * xdisp.c (display_mode_element): When computing charpos, depend
18940 on multibyteness of elt, not the text in field.
8af01033 18941
048addec 189422002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 18943
048addec
JD
18944 * buffer.c (Fkill_all_local_variables):
18945 Increment `update_mode_lines' only once.
7363986a 18946
048addec 189472002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 18948
048addec
JD
18949 * lisp.h (adjust_after_replace_noundo)
18950 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 18951
048addec 18952 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 18953
048addec 189542002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 18955
048addec
JD
18956 Support for the --color command-line argument and tty-color-mode
18957 frame parameter:
f1a85b89 18958
048addec
JD
18959 * term.c (tty_default_color_capabilities, tty_setup_colors)
18960 (set_tty_color_mode): New functions.
18961 (term_init): Call tty_default_color_capabilities.
18962 (Qtty_color_mode_alist): New variable.
18963 (syms_of_term): Intern and staticpro it.
f1a85b89 18964
048addec
JD
18965 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
18966 frames.
18967 (do_switch_frame): For termcap frames, switch the tty
18968 color mode as specified by the frame's parameters.
18969 (Qtty_color_mode): New variable.
18970 (syms_of_frame): Intern and staticpro it.
3a62677f 18971
048addec
JD
18972 * emacs.c (USAGE2): Add the --color option.
18973 (standard_args): Ditto.
72244db2 18974
048addec
JD
189752002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18976
18977 * xterm.h (struct x_output): New members want_fullscreen,
18978 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
18979 y_pixels_outer_diff.
18980 New enum for FULLSCREEN_* constants.
18981 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
18982 is NULL.
18983 (x_fullscreen_adjust): Add prototype.
3a62677f 18984
048addec
JD
18985 * emacs.c (USAGE2): Add the new full-screen arguments.
18986 (standard_args): Ditto.
3a62677f 18987
048addec
JD
18988 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18989 New variables.
18990 (syms_of_xfns): Intern and staticpro them.
18991 (x_frame_parms) <"fullscreen">: New parameter.
18992 (x_fullscreen_move, x_set_fullscreen): New functions.
18993 (x_set_frame_parameters): Support for Qfullscreen.
18994 (x_real_positions): More accurate computation of the frame position.
18995 (x_figure_window_size): Support full-screen frames.
18996 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 18997
048addec
JD
18998 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
18999 (XTread_socket) <Expose>: Call x_check_fullscreen.
19000 <ConfigureNotify>: Don't resize to fullscreen.
19001 Call x_check_fullscreen_move, and set the want_fullscreen member of
19002 output_data.x.
3a62677f 19003
048addec 190042002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 19005
048addec
JD
19006 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
19007 for mice with more than 3 buttons.
b8523839 19008
048addec
JD
19009 * w32term.c (parse_button): New parameter xbutton. Callers changed.
19010 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 19011
048addec
JD
19012 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
19013 (syms_of_w32fns): DEFVAR_BOOL it.
19014 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 19015
048addec 190162002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 19017
048addec 19018 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 19019
048addec 190202002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 19021
048addec 19022 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 19023
048addec 190242002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 19025
048addec
JD
19026 * .gdbinit (xbuffer): Remove address operator since data is now a
19027 pointer.
c93674bb 19028
048addec 190292002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 19030
048addec 19031 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 19032
048addec 19033 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 19034
048addec 190352002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 19036
048addec
JD
19037 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
19038 when checking for multiple frames.
91175673 19039
048addec 190402002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 19041
048addec
JD
19042 * window.c (delete_window): Rewrite the code for changing the
19043 selected window to handle the case where WINDOW is not a leaf.
91175673 19044
048addec 190452002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 19046
048addec
JD
19047 * process.c (send_process): Set src_multibyte to 1 after the call
19048 top setup_coding_system, not before the call.
e0fead5d 19049
048addec 190502002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 19051
048addec
JD
19052 * xmenu.c (set_frame_menubar, xmenu_show):
19053 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 19054
048addec
JD
19055 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
19056 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 19057
048addec 190582002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 19059
048addec 19060 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 19061
048addec 19062 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 19063
048addec 19064 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 19065
048addec 190662002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 19067
048addec
JD
19068 * insdel.c (make_gap_larger): Make sure buffer size does not
19069 overflow range of int.
62854fe2 19070
048addec 190712002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 19072
048addec
JD
19073 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19074 OVERLAPS_P.
656f46bb 19075
048addec 19076 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 19077
048addec
JD
19078 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
19079 to the left or to the right of the pointer, put it against
19080 the left screen edge.
19081 (x_frame_parms): Add missing braces around initializer.
036e218d 19082
048addec
JD
19083 * w32term.c (x_setup_relief_colors): Don't compute an image's
19084 background color if it doesn't have a Pixmap.
19085 (notice_overwritten_cursor): Don't depend on
19086 output_cursor and updated_area. Compare pixel coordinates with
19087 window's cursor pixel coordinates.
19088 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19089 Call notice_overwritten_cursor with new arg list.
19090 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19091 unconditionally.
19092 (x_draw_image_relief): Use predefined macro instead of
19093 constant when the value of `tool_bar_button_relief' is negative.
036e218d 19094
048addec 19095 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 19096
048addec 190972002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 19098
048addec 19099 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 19100
048addec 191012002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 19102
048addec
JD
19103 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
19104 (Fkey_binding): Try the `keymap' property map first.
19105 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
19106 minor mode bindings.
90647b07 19107
048addec 191082002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 19109
3419757d 19110 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 19111
048addec 191122002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 19113
048addec
JD
19114 * keyboard.c (read_key_sequence): Handle the keymap property
19115 before minor mode maps.
9fbc32aa 19116
048addec
JD
19117 * editfns.c (Fformat): Update thissize from field_width
19118 based on the actual width, in the string case.
036e218d 19119
048addec 191202002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 19121
048addec
JD
19122 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
19123 when used as truth value to prevent gcc warnings.
9fbc32aa 19124
048addec
JD
19125 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
19126 * w32proc.c: Include <config.h>.
9fbc32aa 19127
048addec 191282002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 19129
048addec
JD
19130 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
19131 not EMACS_INT, to make them compatible with DEFVAR_INT.
19132 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 19133
048addec 191342002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19135
048addec
JD
19136 * print.c (print_object): Test print_escape_nonascii only for
19137 unibyte strings.
19138 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
19139 when outputting to a multibyte buffer.
9fbc32aa 19140
048addec 191412001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19142
048addec
JD
19143 * print.c (print_object): In multibyte string, use hex escapes.
19144 Use octal only for unibyte strings.
19145 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 19146
048addec
JD
19147 * lread.c (read_escape): New arg BYTEREP for reporting whether
19148 escape forces unibyte or multibyte.
19149 (read1): When reading a string, take note of that info.
0142178a 19150
048addec 191512001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 19152
048addec
JD
19153 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
19154 comparison to test lisp value returned by Fget.
d4824a5d 19155
048addec 191562001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 19157
048addec 19158 * lisp.h (max_specpdl_size): Add declaration.
b1356234 19159
048addec 19160 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 19161
048addec
JD
19162 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
19163 Handle modifier bits. Correct typo in error message.
99e380ee 19164
048addec 191652001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 19166
048addec
JD
19167 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
19168 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
19169 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19170 Update calls to Fdefine_abbrev.
19171 (write_abbrev): Update for changed data format.
19172 Don't list "system" abbrevs.
19173 (Fexpand_abbrev): Update use count with new data format.
19174 (describe_abbrev): Update for changed data format.
19175 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 19176
048addec 19177 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 19178
048addec 19179 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 19180
048addec
JD
19181 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
19182 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 19183
048addec
JD
19184 * keymap.c (Flookup_key): Error message if key has wrong data type.
19185 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
19186 (exclude_key): New variable.
59a86c99 19187
048addec 191882001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 19189
048addec
JD
19190 * xterm.c (x_setup_relief_colors): Don't compute an image's
19191 background color if it doesn't have a Pixmap.
eb77a5f4 19192
048addec
JD
19193 * xterm.c (notice_overwritten_cursor): Don't depend on
19194 output_cursor and updated_area. Compare pixel coordinates with
19195 window's cursor pixel coordinates.
19196 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19197 Call notice_overwritten_cursor with new arg list.
19198 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19199 unconditionally.
eb77a5f4 19200
048addec
JD
19201 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
19202 height of the cursor line to the amount to scroll.
eb77a5f4 19203
048addec 192042001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 19205
048addec
JD
19206 * intervals.c (set_point_both): The position after an invisible,
19207 intangible character is not an acceptable stopping point.
bb313871 19208
048addec 192092001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 19210
048addec
JD
19211 * window.c (enlarge_window): In new preserve_before code, convert
19212 CURBEG from lisp object to integer before doing arithmetic.
6052529b 19213
048addec 192142001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 19215
048addec 19216 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 19217
048addec 192182001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 19219
048addec
JD
19220 * keyboard.c (record_char): Ignore duplicate help-echo events only
19221 separated by mouse-movement. When tracking mouse, only record
19222 first and last mouse-movement event in same window.
19223 Don't record mouse-movement events in keyboard macros.
3ce081f5 19224
048addec 192252001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 19226
048addec
JD
19227 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
19228 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 19229
048addec
JD
19230 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
19231 instead of Fstring_as_unibyte.
9fabb2f5 19232
048addec 192332001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 19234
048addec 19235 The following changes remove mocklisp support:
9fabb2f5 19236
048addec 19237 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 19238
048addec
JD
19239 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
19240 `Qmocklisp' and `Qmocklisp_arguments'.
19241 Remove prototype of syms_of_mocklisp.
2fa0eedf 19242
048addec 19243 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 19244
048addec
JD
19245 * callint.c: Do not include mocklisp.h.
19246 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 19247
048addec
JD
19248 * eval.c: Remove variables `Qmocklisp_arguments',
19249 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
19250 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
19251 Do not test for mocklisp case.
19252 (Fwhile): Remove unused variable `tem'.
19253 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 19254
048addec 19255 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 19256
048addec 19257 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 19258
048addec 19259 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 19260
048addec 192612001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 19262
048addec
JD
19263 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
19264 to the left or to the right of the pointer, put it against
19265 the left screen edge.
6108b49c 19266
048addec 192672001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 19268
048addec
JD
19269 * Makefile.in (distclean): Remove .gdbinit if we are building
19270 outside the source tree.
5eea19a4 19271
048addec 192722001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 19273
048addec 19274 * w32.c (emacs_root_dir): New function.
5eea19a4 19275
048addec 19276 * msdos.c (emacs_root_dir): New function.
5eea19a4 19277
048addec
JD
19278 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
19279 of the current drive as the fallback for default_directory.
438e57dd 19280
048addec
JD
19281 * dired.c (file_name_completion): Run the elements of
19282 completion-ignored-extensions through ENCODE_FILE.
438e57dd 19283
048addec
JD
19284 * lisp.h (scmp): Remove prototype, since it's now a static
19285 function private to dired.c.
c88e5347 19286
048addec 192872001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 19288
048addec
JD
19289 * dired.c (scmp): Function moved from minibuf.c.
19290 Delete multibyte handling--used only on encoded strings.
59ce1461 19291
048addec 19292 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 19293
048addec 19294 * fns.c (merge): Add QUIT call.
59ce1461 19295
048addec 192962001-12-18 Dave Love <fx@gnu.org>
8727d588 19297
048addec
JD
19298 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
19299 language/georgian.el.
8727d588 19300
048addec 193012001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 19302
048addec
JD
19303 * Makefile.in (lisp, shortlisp): Synchronize with changes to
19304 lisp/Makefile.in:DONTCOMPILE.
cc63037e 19305
048addec 193062001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 19307
048addec
JD
19308 * xdisp.c (window_box_height): Do not return negative values.
19309 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 19310
048addec 19311 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 19312
048addec 19313 * term.c (keys): Likewise.
deece6f5 19314
048addec 19315 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 19316
048addec 193172001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 19318
048addec
JD
19319 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
19320 patch (COMPOSING_P, not COMPOSING).
28ff4293 19321
048addec 193222001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 19323
048addec 19324 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 19325
048addec
JD
19326 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
19327 before calling decode_coding.
9b46de40 19328
048addec 19329 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 19330
048addec
JD
19331 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
19332 instead of only for COMPOSITION_DISABLED.
9b46de40 19333
048addec 193342001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 19335
048addec 19336 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 19337
048addec 19338 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 19339
048addec
JD
19340 * buffer.h (struct buffer): New field `display_error_modiff'.
19341 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 19342
048addec 19343 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 19344
048addec
JD
19345 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
19346 Call redisplay_window, but not if display_error_modiff field says no.
19347 (redisplay_window_error): New function.
19348 (displayed_buffer): New variable.
19349 (redisplay_internal, redisplay_windows): Call the new functions
19350 instead of redisplay_window directly.
2cd23960 19351
048addec 193522001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 19353
048addec 19354 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 19355
048addec 193562001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 19357
048addec 19358 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 19359 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 19360 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 19361
048addec 193622001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 19363
048addec
JD
19364 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
19365 parameter have a numeric value all the time.
f6fa0866 19366
048addec 19367 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 19368
048addec 193692001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 19370
048addec 19371 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 19372
048addec
JD
19373 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
19374 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 19375
048addec 193762001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 19377
048addec
JD
19378 * xdisp.c (move_it_vertically_backward): Change heuristic
19379 for the case that we didn't move far enough initially.
91c153e2 19380
048addec
JD
19381 * window.c (Frecenter): Simplify computation in the case of window
19382 system frames and ARG < 0; use window_box_height.
65b7d3e7 19383
048addec 193842001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 19385
048addec
JD
19386 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
19387 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 19388
048addec 193892001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 19390
048addec
JD
19391 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
19392 arg is negative.
be676094 19393
048addec 193942001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 19395
048addec
JD
19396 * m/hp800.h: Split the __hpux conditional into the parts
19397 that are right for GNU/Linux too and the parts that are not.
19398 Use the former if GNU_LINUX.
19399 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 19400
048addec 19401 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 19402
048addec 194032001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 19404
048addec
JD
19405 * macros.c, msdos.c, w16select.c: Change doc-string comments to
19406 `new style' [w/`doc:' keyword].
032a857d 19407
048addec 194082001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 19409
048addec
JD
19410 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
19411 before using.
b6270150 19412
048addec 194132001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 19414
048addec
JD
19415 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
19416 keyword].
98cbb9fa 19417
048addec 194182001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 19419
048addec 19420 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 19421
048addec 19422 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 19423
048addec 194242001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 19425
048addec 19426 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 19427 Add comment to explain where the struct came from.
048addec
JD
19428 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
19429 (add_menu_item): Process pop-up menus first to avoid memory leak.
19430 (add_menu_item, w32_menu_display_help): Use `help' field as
19431 Lisp_Object.
19432 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 19433
048addec 194342001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 19435
048addec 19436 * COPYING: Moved back.
fa336b91 19437
048addec
JD
19438 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
19439 Add parentheses around && within ||.
077907d4 19440
048addec 19441 * indent.c (compute_motion): Likewise.
aa2af83a 19442
048addec 19443 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 19444
048addec
JD
19445 * coding.c (setup_coding_system, shrink_encoding_region)
19446 (Fdecode_sjis_char): Likewise.
60a653f1 19447
048addec 194482001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 19449
048addec
JD
19450 * xdisp.c (display_mode_element): Don't read past end of string if
19451 it ends with '%'.
60a653f1 19452
048addec
JD
19453 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
19454 can hold.
60a653f1 19455
048addec
JD
19456 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
19457 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
19458 type changed to Lisp_Object.
19459 (syms_of_data): DEFVAR_LISP them.
60a653f1 19460
048addec 194612001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 19462
048addec
JD
19463 * callproc.c (init_callproc): Set Vdata_directory based on the source
19464 location whenever Emacs was run uninstalled.
60a653f1 19465
048addec 194662001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 19467
048addec
JD
19468 * config.in (HAVE_WORKING_VFORK): New #undefs.
19469 * process.c (create_process):
19470 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
19471 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
19472 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
19473 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
19474 * m/intel386.h (HAVE_VFORK): Likewise.
19475 * m/mips-siemens.h (HAVE_VFORK): Likewise.
19476 * m/mips.h (HAVE_VFORK): Likewise.
19477 * s/freebsd.h (vfork): Remove #define.
19478 * s/lynxos.h (HAVE_VFORK): Remove #undef.
19479 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 19480
048addec 194812001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 19482
048addec
JD
19483 * s/hpux10.h (random): Add undef.
19484 (HAVE_RANDOM): Define it just once.
60a653f1 19485
048addec 194862001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19487
048addec 19488 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 19489
048addec 194902001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19491
048addec
JD
19492 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
19493 scroll bars of the frame before deleting the frame itself. If the
19494 frame has a widget, delete the frame with XtDestroyWidget, and do
19495 not call XDestroyWindow before that.
60a653f1 19496
048addec 194972001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 19498
048addec 19499 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19500
048addec 19501 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19502
048addec 195032001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 19504
048addec
JD
19505 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
19506 excessively large.
60a653f1 19507
048addec
JD
19508 * insdel.c (make_gap_larger): New function.
19509 (make_gap_smaller): New function.
19510 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
19511 Call make_gap_smaller if arg is negative.
60a653f1 19512
048addec 195132001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19514
048addec
JD
19515 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
19516 Pass a dummy argument when calling interrupt_signal.
19517 (parse_menu_item): Mark disabled items before checking for empty def.
19518 (read_char_minibuf_menu_prompt): Make safety more visible.
19519 (read_key_sequence): Add a `first_unbound' variable.
19520 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
19521 unbound prefix as soon as we can detect it.
60a653f1 19522
048addec
JD
19523 * doc.c (Fsnarf_documentation): Add prototype.
19524 (get_doc_string): Handle negative arguments.
19525 (Fdocumentation): Use AREF and ASIZE.
19526 Move the calls to get_doc_string to a single place.
19527 Don't confuse an interactive-spec for a docstring reference.
19528 (Fdocumentation_property): Take advantage of the fact that
19529 get_doc_string now ignores the sign of the docstring position.
60a653f1 19530
048addec 19531 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 19532
048addec 195332001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19534
a64387ee 19535 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 19536
048addec 195372001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19538
048addec
JD
19539 * xterm.c (x_draw_image_relief): Use predefined macro instead of
19540 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 19541
048addec 195422001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 19543
048addec
JD
19544 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
19545 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 19546
048addec 19547 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 19548
048addec 195492001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19550
048addec 19551 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 19552
048addec 195532001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 19554
048addec 19555 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 19556
048addec 195572001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 19558
f63fd14e 19559 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 19560
048addec
JD
19561 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
19562 [!WM_MOUSELEAVE]: Define.
60a653f1 19563
048addec
JD
19564 * w32menu.c (current_popup_menu, get_menu_item_info):
19565 (set_menu_item_info): New vars.
19566 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
19567 (w32_menu_show): Set current_popup_menu.
19568 (add_menu_item): Allocate new strings for owner-drawn menu items
19569 and help strings.
19570 Use owner-draw for disabled menu items again.
19571 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
19572 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 19573
048addec
JD
19574 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
19575 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
19576 <WM_EXITMENULOOP>: Free menu strings.
19577 <WM_MOUSELEAVE>: Stop tracking mouse.
19578 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 19579
048addec
JD
19580 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
19581 and mouse face.
60a653f1 19582
048addec 195832001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 19584
048addec
JD
19585 The following changes add left-fringe and right-fringe
19586 frame parameters to adjust fringe widths, or remove one or
19587 both fringes.
60a653f1 19588
048addec
JD
19589 * frame.h (struct frame): Remove trunc_area_pixel_width and
19590 trunc_area_cols fields.
19591 (Qleft_fringe, Qright_fringe): Declare.
19592 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 19593
048addec
JD
19594 * frame.c (Qleft_fringe, Qright_fringe): New vars.
19595 (syms_of_frame): Initialize them.
60a653f1 19596
048addec
JD
19597 * window.c (coordinates_in_window): Handle separate left and right
19598 fringe widths.
60a653f1 19599
048addec
JD
19600 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
19601 and fringe_cols fields.
19602 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
19603 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
19604 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
19605 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
19606 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
19607 (x_compute_fringe_widths): Add prototype.
60a653f1 19608
048addec
JD
19609 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
19610 fill fringe evenly with small dashes.
f63fd14e 19611 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
19612 clip the new ZV bitmap to avoid jitter between rows.
19613 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
19614 background. Don't draw fringe bitmaps if fringe width is zero.
19615 (x_compute_fringe_widths): New function.
19616 (x_new_font, x_set_window_size_1): Use it.
60a653f1 19617
048addec
JD
19618 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
19619 (x_set_frame_parameters): Process `font' parameter before other
19620 parameters as fringe widths depend on it.
19621 (x_set_fringe_width): New function.
19622 (x_figure_window_size): Use x_compute_fringe_widths.
19623 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
19624 parameters.
60a653f1 19625
048addec
JD
19626 * widget.c (set_frame_size): Use x_compute_fringe_widths.
19627 (EmacsFrameSetCharSize): Ditto.
60a653f1 19628
048addec
JD
19629 * w32term.h: Merged changes from xterm.h.
19630 * w32term.c: Merged changes from xterm.c.
19631 * w32fns.c: Merged changes from xfns.c.
60a653f1 19632
048addec 196332001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19634
048addec 19635 * COPYING: Removed.
60a653f1 19636
048addec 196372001-11-29 Dave Love <fx@gnu.org>
60a653f1 19638
048addec
JD
19639 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
19640 extra extra slot.
19641 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 19642
048addec 196432001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19644
048addec
JD
19645 * fileio.c (file-name-coding-system)
19646 (default-file-name-coding-system): Doc fix (links to referenced
19647 variables added).
60a653f1 19648
048addec 196492001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19650
048addec
JD
19651 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
19652 Add dummy uses of gcproN variables.
60a653f1 19653
048addec
JD
19654 * category.c (describe_category, describe_category_1)
19655 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
19656 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 19657
048addec 196582001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 19659
048addec 19660 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 19661
048addec
JD
19662 * Makefile.in (lispdir): New variable, referring to build dir.
19663 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 19664
048addec 196652001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 19666
048addec
JD
19667 * w32menu.c (w32_menu_display_help): Actually add the new argument
19668 OWNER.
60a653f1 19669
048addec 196702001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 19671
048addec
JD
19672 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
19673 menu items. From David Ponce <dponce@wanadoo.fr>.
19674 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
19675 conditionally.
f63fd14e 19676 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 19677 help event in the owner frame's keyboard buffer.
60a653f1 19678
048addec
JD
19679 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
19680 (Fx_show_tip): Don't subtract last width from row width.
19681
19682 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
19683 (w32_read_socket): Use EQ to compare frames.
60a653f1 19684
048addec 196852001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 19686
048addec
JD
19687 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19688 OVERLAPS_P.
60a653f1 19689
048addec 196902001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19691
048addec
JD
19692 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
19693 `gcpro3' and `gcpro4'.
60a653f1 19694
048addec 19695 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 19696
048addec 196972001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19698
048addec 19699 * ccl.c: Use AREF and ASIZE.
60a653f1 19700
048addec 197012001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19702
048addec
JD
19703 * lisp.h (run_hook_list_with_args): Remove.
19704 (LIST_END_P): Fix call to wrong_type_argument.
19705 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 19706
048addec 197072001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19708
048addec
JD
19709 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
19710 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 19711
048addec
JD
19712 * eval.c: Use AREF and ASIZE.
19713 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 19714
048addec
JD
19715 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
19716 which match the end of the file-name.
19717 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
19718 is not a valid env var, but leave it as is instead.
60a653f1 19719
048addec
JD
19720 * keymap.c (access_keymap): Handle t bindings like nil bindings.
19721 Make nil bindings in char-tables transparent.
19722 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 19723
048addec 197242001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 19725
048addec
JD
19726 * textprop.c (set_text_properties_1): Allow START, END in either order.
19727 Do nothing if range is empty.
60a653f1 19728
048addec 19729 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 19730
048addec
JD
19731 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
19732 (clean): Not here.
60a653f1 19733
048addec 197342001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19735
048addec
JD
19736 * textprop.c (set_text_properties_1): Clearly mark that the
19737 interval should not be empty.
60a653f1 19738
048addec
JD
19739 * intervals.c (graft_intervals_into_buffer):
19740 Don't call set_text_properties_1 on an empty interval.
60a653f1 19741
048addec 197422001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 19743
048addec 19744 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 19745
048addec
JD
19746 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
19747 don't lose the data in it.
60a653f1 19748
048addec 197492001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 19750
048addec 19751 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 19752
c62aec78 19753 * buffer.c (Fkill_buffer): Likewise.
60a653f1 19754
c62aec78 19755 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 19756
048addec 197572001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19758
048addec 19759 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 19760
048addec 197612001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19762
048addec
JD
19763 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
19764 Niemitalo <kon@iki.fi>.
60a653f1 19765
048addec 197662001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 19767
048addec 19768 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 19769
048addec
JD
19770 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
19771 (Fx_show_tip): Block input during frame creation.
19772 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 19773
048addec 197742001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 19775
048addec
JD
19776 * lread.c (Fload): Detect recursive load error for more than 3
19777 nestings of the same file.
19778 (Vrecursive_load_depth_limit): Variable deleted.
19779 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 19780
048addec 197812001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 19782
048addec
JD
19783 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
19784 mouse position if either left or top is not specified.
60a653f1 19785
048addec
JD
19786 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
19787 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
19788 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
19789 (my_create_tip_window): Assign tip_window.
19790 (x_create_tip_frame): Use same defaults as X.
19791 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 19792 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 19793
048addec
JD
19794 * w32term.c (x_after_update_window_line): Doc fix.
19795 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
19796 frames.
19797 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 19798
048addec
JD
19799 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
19800 for all Windowed systems.
60a653f1 19801
048addec 198022001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19803
048addec
JD
19804 * msdos.c (IT_clear_screen): If the frame's faces are not yet
19805 realized, use the initial screen colors to clear the screen.
60a653f1 19806
048addec 198072001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19808
048addec
JD
19809 * textprop.c (Fset_text_properties): Remove unused variables
19810 `unchanged', `prev_changed', `s' and `len'.
60a653f1 19811
048addec
JD
19812 * search.c (Freplace_match): Remove unused variable `inslen'.
19813
19814 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
19815
198162001-11-22 Jason Rumney <jasonr@gnu.org>
19817
19818 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
19819 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
19820 (my_create_tip_window): New function.
19821 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
19822 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
19823
198242001-11-20 Jason Rumney <jasonr@gnu.org>
19825
19826 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
19827 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
19828
19829 * w32fns.c (Vw32_system_coding_system): Remove.
19830 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
19831
198322001-11-19 Stefan Monnier <monnier@cs.yale.edu>
19833
19834 * fileio.c (Fwrite_region): Move choose_write_coding_system to
19835 after build_annotations.
19836
19837 * syntax.c (describe_syntax): Add dummy arg.
19838 (describe_syntax_1): Update call to describe_vector.
19839
19840 * category.c (describe_category): Add dummy arg.
19841 (describe_category_1): Update call to describe_vector.
19842
19843 * keymap.c (Fdescribe_vector): Add `describer' parameter.
19844 (describe_command, describe_translation): Add dummy second param.
19845 (describe_map): Call elt_describer with two arguments.
19846 (describe_vector_princ): Add `fun' parameter.
19847 Call it instead of the hardcoded `princ'.
19848 (describe_vector): Add arg `args'.
19849 Pass it as a new second argument to elt_describer.
60a653f1 19850
048addec 19851 * keymap.h (describe_vector): Update prototype.
60a653f1 19852
048addec
JD
19853 * frame.c: Don't include keymap.h any more.
19854 (keys_of_frame): Remove.
60a653f1 19855
048addec 19856 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 19857
048addec 19858 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 19859
048addec 198602001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 19861
048addec
JD
19862 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
19863 if defined, 0 otherwise.
19864 (MAP_FAILED): Define if not defined and use it to test mmap failure.
19865 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 19866
048addec 198672001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 19868
048addec 19869 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 19870
048addec 198712001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 19872
048addec
JD
19873 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
19874 (x_draw_bar_cursor): If the background color of the glyph under
19875 the cursor equals the frame's cursor color, use the glyph's
19876 foreground color for drawing the bar cursor.
19877 (x_after_update_window_line): Clear internal border in different
19878 circumstances.
19879 (w32_set_vertical_scroll_bar): Check for width and height > 0.
19880 (w32_draw_relief_rect): Correct relief by 1 pixel.
19881 (x_set_glyph_string_background_width):
19882 Set extends_to_end_of_line_p if the row's fill_line_p is set and
19883 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
19884 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
19885 if cursor_in_non_selected_windows is false.
19886 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
19887 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
19888 Notice if cursor gets overwritten.
19889 (notice_overwritten_cursor): Renamed from
19890 note_overwritten_text_cursor. Rewritten to take glyph widths
19891 into account, and to take X positions as parameters.
19892 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19893 around call to x_draw_glyphs.
19894 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19895 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19896 color to use for image glyph reliefs.
19897 (x_draw_image_relief): Accept zero tool_bar_button_relief.
19898 (glyph_rect): Remove unused variable `area'.
60a653f1 19899
048addec
JD
19900 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
19901 some items.
19902 (x_set_internal_border_width): Set frame garbaged when window
19903 doesn't exist yet.
19904 (Fx_create_frame): Accept zero tool_bar_button_relief.
19905 (x_clear_image_1, four_corners_best, image_background)
19906 (image_background_transparent): New functions.
19907 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
19908 (gs_format): Add `:background' entry.
19909 (lookup_image): Set IMG's background color if specified.
19910 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19911 when appropriate.
19912 (x_clear_image_1): Reset `background_valid' and
19913 `background_transparent_valid' fields.
19914 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19915 calculating it here. Set IMG's background_transparent field.
19916 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19917 (enum png_keyword_index): Add PNG_BACKGROUND.
19918 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19919 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19920 (enum gif_keyword_index): Add GIF_BACKGROUND.
19921 (enum gs_keyword_index): Add GS_BACKGROUND.
19922 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
19923 Pre-calculate image background color where necessary.
19924 (x_create_x_image_and_pixmap, xbm_load, gs_load):
19925 Use display info's n_cbits entry for screen depth.
19926 (Fx_show_tip): Remove unused variables `buffer', `top',
19927 `left', `max_width' and `max_height'.
60a653f1 19928
048addec 19929 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 19930
048addec 199312001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 19932
048addec 19933 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 19934
048addec 199352001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19936
048addec 19937 * frame.c (Fframe_live_p): Doc fix.
60a653f1 19938
048addec 199392001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 19940
048addec
JD
19941 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
19942 (message_dolog_marker3): New static variables hold three markers.
19943 (syms_of_xdisp): Initialize and staticpro them.
19944 (message_dolog): Use message_dolog_marker1..3 instead of
19945 allocating markers each time. Unchain them when done.
60a653f1 19946
048addec 199472001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 19948
048addec 19949 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 19950
048addec 199512001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 19952
048addec 19953 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 19954
048addec 199552001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 19956
048addec 19957 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 19958
048addec 199592001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 19960
048addec 19961 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 19962
048addec 199632001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 19964
048addec
JD
19965 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
19966 with invalid position.
60a653f1 19967
048addec 199682001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 19969
048addec 19970 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 19971
048addec
JD
19972 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
19973 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
19974 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 19975
048addec 19976 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 19977
048addec 199782001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19979
048addec
JD
19980 * fileio.c (build_annotations): Split off the tail.
19981 (build_annotations_2): New fun. Extracted from build_annotations.
19982 (Fwrite_region): Split the call to build_annotations into two
19983 calls to build_annotations and build_annotations_2.
077907d4 19984
048addec 199852001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 19986
048addec
JD
19987 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
19988 clear_waiting_for_input with argument.
1756e2fb 19989
048addec 19990 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 19991
048addec 19992 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 19993
048addec 19994 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 19995
048addec 19996 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 19997
048addec 199982001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 19999
048addec
JD
20000 * fileio.c (choose_write_coding_system): New fun, extracted
20001 from Fwrite_region.
20002 (Fwrite_region): Use it.
fa336b91 20003
048addec
JD
20004 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
20005 (funcall_lambda, run_hook_with_args): Make static and add prototype.
20006 (ml_apply, find_handler_clause): Add prototype.
fa336b91 20007
048addec 200082001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 20009
048addec 20010 * config.in: Add #undef HAVE_COFF_H.
fa336b91 20011
048addec
JD
20012 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
20013 Required for ISC 4.1.
fa336b91 20014
048addec 200152001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 20016
52eb0373 20017 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 20018 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 20019
048addec 200202001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 20021
048addec
JD
20022 The following changes are made to clean up the various internal
20023 references to the fringes to actually use the term `fringe' for
20024 them. Previously, they were called `flags areas', `bitmap areas',
20025 `left/right side of windows', or implicitly as `flags' or
20026 `bitmaps':
fa336b91 20027
048addec 20028 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 20029 Comments fixed. Use renamed symbols.
06e8f738 20030
f63fd14e 20031 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 20032
048addec
JD
20033 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
20034 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
20035 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 20036
048addec 20037 * msdos.c: Comment fix.
9ce647f4 20038
048addec 20039 * w32fns.c: Use renamed symbols.
9b784ab8 20040
f63fd14e 20041 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
20042 (fringe_bitmap_type): Renamed from bitmap_type.
20043 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20044 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
20045 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 20046
f63fd14e 20047 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
20048 (fringes_extra): Renamed from flags_areas_extra.
20049 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20050 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20051 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20052 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20053 (FRAME_X_LEFT_FRINGE_WIDTH):
20054 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20055 (FRAME_X_RIGHT_FRINGE_WIDTH):
20056 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 20057
048addec 20058 * widget.c: Use renamed symbols.
9f7e52b4 20059
f63fd14e 20060 * window.c: Comment fixes. Use renamed symbols.
048addec 20061 (coordinates-in-window-p): Doc fix.
fa336b91 20062
f63fd14e 20063 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 20064
048addec 20065 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 20066
048addec 20067 * xfns.c: Use renamed symbols.
89512fcd 20068
f63fd14e 20069 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
20070 (fringe_bitmap_type): Renamed from bitmap_type.
20071 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20072 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
20073 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 20074
f63fd14e 20075 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
20076 (fringes_extra): Renamed from flags_areas_extra.
20077 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20078 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20079 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20080 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20081 (FRAME_X_LEFT_FRINGE_WIDTH):
20082 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20083 (FRAME_X_RIGHT_FRINGE_WIDTH):
20084 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
20085
200862001-11-15 Jason Rumney <jasonr@gnu.org>
20087
20088 * w32menu.c (add-menu-item): Make help_echo and radio buttons
20089 work for most menu items. From David Ponce
20090 <david.ponce@wanadoo.fr>.
20091
200922001-11-15 Gerd Moellmann <gerd@gnu.org>
20093
20094 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
20095 Some x_set_* function expect to be called even if old and new
20096 value are equal.
20097
20098 * xdisp.c (build_desired_tool_bar_string): Accept zero
20099 tool_bar_button_relief.
20100
20101 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
20102
20103 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
20104
20105 * xterm.c (x_draw_bar_cursor): If the background color of the
20106 glyph under the cursor equals the frame's cursor color, use
20107 the glyph's foreground color for drawing the bar cursor.
20108
20109 * dispnew.c (direct_output_forward_char): Fix character/byte
20110 position comparison.
7d18891d 20111
048addec 201122001-11-15 Miles Bader <miles@gnu.org>
d2936d21 20113
048addec
JD
20114 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
20115 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
20116 Update arguments to find_field.
20117 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
20118 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
20119 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
20120 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 20121
048addec 201222001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 20123
048addec 20124 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 20125
048addec
JD
20126 * dispextern.h (image_background, image_background_transparent):
20127 Conditionalize on HAVE_X_WINDOWS.
7d18891d 20128
048addec 201292001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 20130
048addec 20131 * print.c (Fprin1_to_string): Doc fix.
7d18891d 20132
048addec 20133 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 20134
048addec 20135 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 20136
048addec 20137 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 20138
048addec 20139 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 20140
048addec 20141 * eval.c (syms_of_eval): Doc fix.
7d18891d 20142
048addec 20143 * coding.c (syms_of_coding): Doc fix.
7d18891d 20144
048addec 20145 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 20146
048addec 20147 * dispnew.c (syms_of_display): Doc fix.
9474c847 20148
048addec 20149 * category.c (Fget_unused_category): Doc fix.
9474c847 20150
048addec 20151 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 20152
048addec 201532001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 20154
048addec 20155 * print.c (prin1, print): Doc fix.
e3059a5d 20156
048addec 201572001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 20158
048addec
JD
20159 * fontset.h: Remove declarations of variables
20160 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 20161
048addec
JD
20162 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
20163 `Vclip_large_size_font'.
eae936e2 20164
048addec 201652001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 20166
048addec 20167 * w32fns.c: Doc fix.
ddb67bdc 20168
048addec 201692001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 20170
048addec 20171 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 20172
048addec 20173 * fns.c: Doc fix.
6e1b91d7 20174
048addec 20175 * emacs.c: Doc fix.
1c1d3d69 20176
048addec 20177 * coding.c: Doc fix.
1c1d3d69 20178
048addec
JD
20179 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
20180 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
20181 `new style' [w/`doc:' keyword].
b6f4c7ba 20182
048addec 201832001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 20184
048addec
JD
20185 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
20186 LeaveNotify events. Only FocusIn and FocusOut do that now.
20187 (x_display_and_set_cursor): Do display hollow cursors in active
20188 minibuffer windows when they are not selected.
b6f4c7ba 20189
048addec 201902001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 20191
048addec 20192 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
20193 * w32term.c: Change doc-string comments to `new style'
20194 [w/`doc:' keyword]. Doc fixes.
a89f435d 20195
048addec
JD
20196 * w32fns.c: Don't define max.
20197 (Fx_open_connection): Only execute once.
a4cd0cd7 20198
048addec 201992001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 20200
048addec
JD
20201 * ccl.c: Change macros to use do-while block instead of if-else.
20202 Use braces to follow GNU Coding Standards.
eafb659a 20203
048addec 202042001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 20205
048addec 20206 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 20207
048addec 20208 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 20209
048addec
JD
20210 * insdel.c (replace_range): Use adjust_markers_for_replace
20211 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 20212
78819ebb 20213 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 20214
048addec
JD
20215 * textprop.c (set_text_properties_1): New subroutine
20216 broken out of set_text_properties.
20217 (set_text_properties): Use set_text_properties_1.
91823618 20218
048addec
JD
20219 * intervals.c (graft_intervals_into_buffer):
20220 Use set_text_properties_1 to clear out properties.
91823618 20221
048addec
JD
20222 * search.c (Freplace_match): Use replace_range to insert
20223 and delete. Don't request property inheritance from
20224 surrounding text.
86928dfb 20225
048addec 202262001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 20227
048addec 20228 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 20229 vertical fonts. Allow them if face name is explicitly specified.
048addec 20230 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 20231
048addec 202322001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 20233
048addec
JD
20234 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
20235 instead of malloc/free.
a78e0303 20236
048addec 202372001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 20238
048addec
JD
20239 * xfaces.c (merge_face_vectors): Use braces to follow GNU
20240 Coding Standards.
20241 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 20242
048addec 20243 * buffer.c (Fbury_buffer): Likewise.
0c99b139 20244
048addec 20245 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 20246
048addec
JD
20247 * coding.c (encode_coding): Use precomputed value of `src'.
20248 (encode_coding): Remove unused variable `src_end'.
20249 (code_convert_region): Remove unused variables `count'.
830ddd77 20250
048addec 202512001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 20252
048addec
JD
20253 * w32term.c (x_display_and_set_cursor): Do not move system caret
20254 if cursor_glyph is NULL.
55c6d645 20255
048addec 202562001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 20257
048addec 20258 * keymap.c (access_keymap): Fix compilation error.
5de38842 20259
048addec 202602001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 20261
048addec 20262 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 20263
048addec 202642001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 20265
048addec
JD
20266 * intervals.c (graft_intervals_into_buffer):
20267 Remove #ifdef'd-out code.
20268 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 20269
048addec
JD
20270 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
20271 code (eval-current-buffer).
20272 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 20273
048addec 202742001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 20275
048addec 20276 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 20277
048addec 202782001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 20279
048addec 20280 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 20281
048addec
JD
20282 * keyboard.c (make_lispy_event): Check integerness and fix
20283 Lisp_Object/int mixup.
17893c65 20284
048addec 202852001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 20286
048addec 20287 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 20288
048addec
JD
20289 * fontset.c (fontset_font_pattern): Remove unused variable
20290 `family_registry'.
d5360cc7 20291
048addec 20292 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 20293
048addec 202942001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 20295
048addec 20296 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 20297
048addec
JD
20298 * buffer.c (Fkill_buffer): Don't delete auto save file
20299 if buffer is modified.
d9d54213 20300
048addec 203012001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 20302
048addec
JD
20303 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
20304 CHECK_NUMBER_CDR.
b116830b 20305
048addec 203062001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 20307
048addec 20308 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 20309
048addec 203102001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 20311
048addec 20312 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 20313
048addec 203142001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 20315
048addec 20316 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 20317
048addec 203182001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 20319
048addec
JD
20320 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
20321 the program image directly.
982f6c7e 20322
048addec 203232001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 20324
048addec 20325 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 20326
048addec 203272001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 20328
048addec
JD
20329 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
20330 and CHECK_BUFFER.
d31053f9 20331
048addec
JD
20332 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
20333 (record_char): Likewise.
d31053f9 20334
048addec
JD
20335 * keyboard.c (make_lispy_event): Don't insist a drag event must
20336 move to a different buffer position. Instead, check for moving at
20337 least double_click_fuzz.
982f6c7e 20338
048addec 20339 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 20340
048addec 20341 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 20342
048addec
JD
20343 * indent.c (current_column_1, Fmove_to_column): Separate the code
20344 for display-table glyphs from the code for buffer text, to fix
20345 bugs in the former.
830047fd 20346
048addec 203472001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 20348
048addec
JD
20349 * buffer.c (Fbuffer_local_value): New function.
20350 (syms_of_buffer): Defsubr it.
2df5238c 20351
048addec
JD
20352 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
20353 value of `cursor-in-non-selected-windows'.
4e397688 20354
048addec
JD
20355 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
20356 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
20357 (syms_of_xdisp): Initialize it.
48b0f3ae 20358
048addec 203592001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 20360
048addec 20361 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 20362
048addec
JD
20363 * coding.c: Change doc-string comments to `new style' [w/`doc:'
20364 keyword].
3ecaf7e5 20365
048addec
JD
20366 * eval.c (top_level_value, top_level_set): Remove commented and
20367 #ifdef'd-out code.
20368 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 20369
048addec 203702001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 20371
048addec 20372 * xfns.c: Include unistd.h, if it exists.
8db2e33b 20373
048addec 20374 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 20375
048addec 20376 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 20377
048addec 203782001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 20379
048addec
JD
20380 * lisp.h (CHECK_STRING_CAR): New macro.
20381 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
20382 treating XCAR and XCDR as lvalues.
20383 (openp): Use CHECK_STRING_CAR.
20384 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 20385
048addec 203862001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 20387
048addec
JD
20388 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
20389 (SIGMASKTYPE): Define.
1b1acc13 20390
048addec 20391 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 20392
048addec 203932001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 20394
048addec
JD
20395 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
20396 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
20397 Fix typos in comments.
6cb16f95 20398
048addec
JD
20399 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
20400 and #ifdef'd-out code.
20401 Fix and reindent comments.
6cb16f95 20402
048addec 20403 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 20404
048addec
JD
20405 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
20406 argument `i' in macros.
6cb16f95 20407
048addec
JD
20408 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
20409 `i' in macros.
7e9d3c2f 20410
048addec
JD
20411 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
20412 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
20413 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
20414 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
20415 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
20416 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
20417 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
20418 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
20419 in macros.
7e9d3c2f 20420
048addec
JD
20421 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
20422 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
20423 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
20424 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
20425 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
20426 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
20427 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
20428 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
20429 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
20430 (remove unused second argument).
7e9d3c2f 20431
048addec 204322001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20433
048addec
JD
20434 * syntax.c (describe_syntax): New wrapper.
20435 (Finternal_describe_syntax_value): Rename from describe_syntax.
20436 Don't insert space at front and \n at the end.
20437 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 20438
048addec
JD
20439 * regex.c (re_wctype): Try to fix some warnings.
20440 (regcomp, regexec): Don't forget the __restrict.
9ba48103 20441
048addec 204422001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 20443
048addec 20444 * textprop.c (Fget_char_property): Doc fix.
9ba48103 20445
048addec 204462001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 20447
048addec 20448 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 20449
048addec 20450 * data.c (Fsetq_default): Ditto.
c22e59e1 20451
048addec 20452 * callint.c (Finteractive): Ditto.
9271ed2c 20453
048addec 204542001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20455
048addec
JD
20456 * macros.c: Don't include keymap.h any more.
20457
204582001-11-01 Richard M. Stallman <rms@gnu.org>
20459
20460 * data.c (Fmake_local_variable): Doc fix.
20461
20462 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
20463 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 20464
048addec 20465 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
20466 bindings along with or instead of the buffer local map.
20467 Make the overriding maps override what they should.
20468
f00691a3 204692001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
20470
20471 * window.c (grow_mini_window): Fix typo in comment.
20472
27188d11
GM
204732001-11-01 Gerd Moellmann <gerd@gnu.org>
20474
7b49b9d2
GM
20475 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
20476 (XTset_vertical_scroll_bar): Likewise.
20477
43f7c3ea
GM
20478 * xfns.c (x_build_heuristic_mask): Use four_corners_best
20479 instead of IMAGE_BACKGROUND.
c22e59e1 20480
b350c2e5
GM
20481 * xfns.c (four_corners_best): Reindent.
20482
c22e59e1 20483 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
20484 Handle :box so that it is possible to specify sexprs.
20485
bf00d461
EZ
204862001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
20487
20488 * s/hpux11.h: New file.
20489
f00691a3 204902001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 20491
2b209b97
PJ
20492 * emacs.c (USAGE1): Show command line option --no-window-system
20493 instead of --no-windows in usage.
20494 (standard_args): Rename --no-windows to --no-window-system.
20495 (bug_reporting_address): Follow Emacs coding conventions.
20496
9dbc9081
PJ
20497 * eval.c (Fcommandp): Doc fix.
20498 Change doc-string comments to `new style' [w/`doc:' keyword].
20499
4e10df59
PJ
20500 * frame.c (Fframe_live_p): Doc fix.
20501
20502 * buffer.c (selective-display-ellipses): Doc fix.
20503
dd387b25
GM
205042001-10-31 Gerd Moellmann <gerd@gnu.org>
20505
fe957e65
GM
20506 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
20507
dd387b25
GM
20508 * xfaces.c (realize_x_face): If C is not a single-byte character,
20509 set the face's colors_copied_bitwise_p instead of the defaulted_p
20510 members which have a different meaning.
20511 (free_face_colors): Do nothing for a face whose colors have been
20512 copied bitwise.
20513
c22e59e1 20514 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 20515
f00691a3 205162001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 20517
687784e8
PJ
20518 * marker.c, mocklisp.c: Change doc-string comments to `new style'
20519 [w/`doc:' keyword].
2e1280f8 20520
b9d9a9b9
GM
205212001-10-31 Gerd Moellmann <gerd@gnu.org>
20522
20523 * fns.c (require_unwind): Return Lisp_Object.
20524
f00691a3 205252001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 20526
fa1361cb
PJ
20527 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
20528 (last-input-char): Revert doc-string to be the same as the
20529 doc-string of `last-input-event'.
20530
6c465a15 20531 * xdisp.c: Fix typos in comments.
48400103 20532
eafa3196
GM
205332001-10-31 Gerd Moellmann <gerd@gnu.org>
20534
20535 * window.c (grow_mini_window): Handle case that the root
20536 window is already smaller than the nominal mininum height.
20537
747d3f2a
SM
205382001-10-30 Stefan Monnier <monnier@cs.yale.edu>
20539
bf9bb76f
SM
20540 * emacs.c (main): Don't call keys_of_macros any more.
20541
20542 * lisp.h (keys_of_macros): Remove.
20543
20544 * macros.c (keys_of_macros): Remove.
20545
747d3f2a
SM
20546 * xfaces.c (Fface_attribute_relative_p): Declare args.
20547
5e905a57
JR
205482001-10-30 Jason Rumney <jasonr@gnu.org>
20549
20550 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
20551 (enum_font_cb2): Ignore fonts with vertical orientation.
20552
3a426197
RS
205532001-10-30 Richard M. Stallman <rms@gnu.org>
20554
20555 * keyboard.c (Finput_pending_p): Doc fix.
20556
a742d646
GM
205572001-10-30 Gerd Moellmann <gerd@gnu.org>
20558
259cf6bc
GM
20559 * xterm.c (x_after_update_window_line): Don't run the code
20560 clearing in borders for rows whose visible height is 0.
20561
3f99f948
GM
20562 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
20563 resized_p flag is set. If not set, use the much less flickering
20564 method previously used.
20565
20566 * dispnew.c (change_frame_size_1): Set frame's resized_p.
20567
20568 * frame.h (struct frame) <resized_p>: New member.
20569
b4a3be43
GM
20570 * lread.c (to_multibyte): Ensure read_buffer is at least twice
20571 as large as the number of bytes to convert.
747d3f2a 20572
a742d646
GM
20573 * lread.c (to_multibyte): New function.
20574 (read1): Use it.
20575
cacbb9e9
EZ
205762001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
20577
20578 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
20579
99cb6b2f
GM
205802001-10-30 Gerd Moellmann <gerd@gnu.org>
20581
327f42ee 20582 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
20583 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
20584 if the row's fill_line_p is set and drawing the last glyph with
20585 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 20586
99cb6b2f
GM
20587 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
20588
8e8223e2
SM
205892001-10-29 Stefan Monnier <monnier@cs.yale.edu>
20590
20591 * xmenu.c: Include coding.h and charset.h.
20592 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
20593 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
20594 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
20595 Explicitly set wv->help. Use `TRUE' rather than `True'.
20596 (menu_help_callback): Use empty_string.
20597
20598 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
20599 (Fx_popup_dialog): Explicitly init f.
20600 (w32_menu_display_help): Use empty_string.
20601
4d083a8f
RS
206022001-10-29 Richard M. Stallman <rms@gnu.org>
20603
b2304472
RS
20604 * fns.c (Frequire): Detect recursive try to require the same
20605 feature 3 or more levels deep, and get error.
20606 (require_unwind): New subroutine.
20607 (require_nesting_list): New variable.
20608 (syms_of_fns): Init and staticpro it.
20609
4d083a8f
RS
20610 * print.c (print_object): Clarify indication of insertion type.
20611
2fe41216
EZ
206122001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
20613
90480000
EZ
20614 * coding.c (syms_of_coding): Document that locale-coding-system is
20615 used for decoding input on X.
20616
2fe41216
EZ
20617 * window.c (Fscroll_left, Fscroll_right): Doc fix.
20618
f00691a3 206192001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
20620
20621 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
20622 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
20623
60ebcfe8
GM
206242001-10-29 Gerd Moellmann <gerd@gnu.org>
20625
9a7bdceb
GM
20626 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
20627 use NO_CURSOR if cursor_in_non_selected_windows is false.
20628
3f08fcd2
GM
20629 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
20630 the slant attribute if FRAME is t.
20631
0ccfdad2
GM
20632 * xfns.c (x_set_internal_border_width): Set frame garbaged
20633 when X window doesn't exist yet.
20634
ef253080
GM
20635 * xterm.c (x_after_update_window_line): Clear internal border
20636 in different circumstances.
b116830b 20637
60ebcfe8
GM
20638 * xterm.c (XTread_socket) <KeyPress>: Don't use
20639 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
20640 <handa@etl.go.jp>.
20641
73d25f9c
EZ
206422001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
20643
20644 * m/ibms390.h: New file. From Adam Thornton
20645 <athornton@sinenomine.net>.
20646
cac1daf0
GM
206472001-10-28 Gerd Moellmann <gerd@gnu.org>
20648
053b3256 20649 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 20650
cac1daf0
GM
20651 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
20652 a loop counter.
20653
f00691a3 206542001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 20655
f9711de4 20656 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 20657
4707d2d0
PJ
20658 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
20659 keyword].
20660 Fix typos in comments.
b116830b 20661
d883731c
PJ
20662 * emacs.c (bug_reporting_address): New function.
20663 Use it when displaying usage message.
20664
04012254
PJ
20665 * minibuf.c (read_minibuf): Remove unused external declaration of
20666 variable `Qread_only'.
20667
13b1a09c
PJ
20668 * keymap.c (access_keymap): Remove unused variable `charset'.
20669
5bbf4378
MB
206702001-10-28 Miles Bader <miles@gnu.org>
20671
20672 * xfaces.c (merge_face_heights): Handle TO being relative as well.
20673 Remove #ifdef'd-out code.
20674 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
20675 (syms_of_xfaces): Initialize them.
20676
1ce1e4ee
JR
206772001-10-27 Jason Rumney <jasonr@gnu.org>
20678
20679 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
20680 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
20681 position using the system caret.
20682
20683 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
20684 (w32_system_caret_height, w32_system_caret_x)
20685 (w32_system_caret_y): New variables for tracking system caret.
20686 (w32_initialize): Initialize them.
c2d53558 20687 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 20688
c2d53558
SM
20689 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
20690 New messages types.
1ce1e4ee
JR
20691
20692 * w32term.c (note_mouse_highlight): Clear old help_echo.
20693
f00691a3 206942001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 20695
bb4600a4
PJ
20696 * xterm.c: Fix typo in a comment.
20697
7db35a48
PJ
20698 * emacs.c: Fix typos in comments.
20699 Remove unnecessary spaces.
20700 Change doc-string comments to `new style' [w/`doc:' keyword].
20701 (USAGE2): Fix typos in usage string.
20702
a7248e4f
PJ
20703 * xterm.c: Fix typo in a comment.
20704
52eb0373 20705 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
20706 emacs.c.
20707
62725a92
GM
207082001-10-27 Gerd Moellmann <gerd@gnu.org>
20709
798dbe1f 20710 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 20711 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
20712 farther backward when target_y was not reached.
20713
62725a92
GM
20714 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
20715 Display errno only if non-zero.
20716 (sound_warning): New function.
20717 (vox_configure): Don't treat failing to set sample rate as error.
20718 (various places): Improve error messages.
20719
d4e34d24
EZ
207202001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
20721
944e6f60
EZ
20722 * fileio.c (Faccess_file): Run the argument filename through
20723 Fexpand_file_name, before using it.
20724
d4e34d24
EZ
20725 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
20726 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
20727
38d2af0c
GM
207282001-10-26 Gerd Moellmann <gerd@gnu.org>
20729
da80a8d5
GM
20730 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
20731
38d2af0c
GM
20732 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20733 Fix clearing in the case of scroll bars on the right.
c2d53558 20734
45de4a6f 207352001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
20736
20737 * w32gui.h (XImage): Add a dummy typedef.
20738
fbd5ceb2
GM
207392001-10-26 Gerd Moellmann <gerd@gnu.org>
20740
c2d53558 20741 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 20742
b23236fb
EZ
207432001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
20744
20745 * frame.c (Fframe_parameter): Fix last change.
20746
5d991fc4
EZ
20747 * fileio.c: Revert last change (which removed old commented-out
20748 version of expand-file-name). Add a comment that explains why
20749 this old version should not be removed.
20750
879eadc3
GM
207512001-10-25 Gerd Moellmann <gerd@gnu.org>
20752
75700ff2
GM
20753 * frame.c (Fframe_parameter): Fix a bug whereby some
20754 ``artificial'' frame parameters, like `minibuffer' were not
20755 obtained by calling Fframe_parameters.
20756
dfe92a6a
GM
20757 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
20758 cursor differently.
20759
879eadc3
GM
20760 * xdisp.c (move_it_vertically_backward): Compute line height
20761 differently. Add heuristic to try to be more compatible to 20.x.
20762
e1010ebe
SM
207632001-10-25 Stefan Monnier <monnier@cs.yale.edu>
20764
d73a471b
SM
20765 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
20766
d6da5a06
GM
20767 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
20768 boolean.
e1010ebe 20769
f66bd220
MB
207702001-10-25 Miles Bader <miles@gnu.org>
20771
20772 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
20773 BG is a pointer to a structure, not a structure.
20774 (gif_format, png_format): Add missing commas.
20775
d436d538
RS
207762001-10-24 Richard M. Stallman <rms@gnu.org>
20777
20778 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 20779 (syms_of_xfaces): Defsubr it.
d436d538 20780
f00691a3 207812001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
20782
20783 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
20784 variable `area'.
20785
f00691a3 207862001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 20787
c2d53558 20788 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 20789
e2a57b34
MB
207902001-10-25 Miles Bader <miles@gnu.org>
20791
20792 * dispextern.h (struct image): Add `background',
20793 `background_valid', and `background_transparent' fields.
20794 (image_background, image_background_transparent): New declarations.
20795 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
20796 * xfns.c (image_background, image_background_transparent)
20797 (four_corners_best): New functions.
c2d53558 20798 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
20799 (gs_format): Add `:background' entry.
20800 (lookup_image): Set IMG's background color if specified.
20801 (pbm_load, xbm_load_image, png_load): Set IMG's background field
20802 when appropriate.
20803 (x_clear_image_1): Reset `background_valid' and
20804 `background_transparent_valid' fields.
20805 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20806 calculating it here. Set IMG's background_transparent field.
20807 (enum xpm_keyword_index): Add XPM_BACKGROUND.
20808 (enum png_keyword_index): Add PNG_BACKGROUND.
20809 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20810 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20811 (enum gif_keyword_index): Add GIF_BACKGROUND.
20812 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 20813 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
20814 Pre-calculate image background color where necessary.
20815 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20816 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20817 color to use for image glyph reliefs.
20818
b547b6e8
GM
208192001-10-24 Gerd Moellmann <gerd@gnu.org>
20820
d9e3b8c6
GM
20821 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
20822 in full-width rows.
c2d53558 20823
b547b6e8
GM
20824 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20825 Fix clearing of area not covered by scroll bar.
20826
f00691a3 208272001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 20828
52eb0373 20829 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 20830 and `real_start'.
c2d53558 20831 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
20832 (glyph_rect): Remove unused variable `area'.
20833
76cb5e06
GM
208342001-10-24 Gerd Moellmann <gerd@gnu.org>
20835
bdbdebff 20836 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
20837
20838 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
20839 (row_containing_pos): Take additional argument DY.
20840 Treat rows ending in middle of char differently.
62e33982
GM
20841 (display_line): Handle tabs on window systems differently.
20842
20843 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
20844 with additional argument.
20845
20846 * dispextern.h (row_containing_pos): Adjust prototype.
20847
76cb5e06
GM
20848 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
20849 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
20850 (try_window_id, try_window_reusing_current_matrix)
20851 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 20852 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 20853
f00691a3 208542001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 20855
c9e60620
PJ
20856 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
20857 gnuemacs).
20858 (HAVE_BOXES): Fix typo in comment.
20859 (push_menu_pane): Fix typo in comment.
20860
52eb0373 20861 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
20862 of `Qwhen'.
20863 (single_display_prop_string_p): Remove unused local declarations
20864 of `Qwhen' and `Qmargin'.
20865 (string_buffer_position): Remove unused variable `around'.
20866 (store_frame_title): Remove unused variable `width'.
20867
15c565ac
PJ
20868 * window.c: Don't define max.
20869 (coordinates_in_window): Remove unused variable `uy'.
20870
a8818eb9
PJ
20871 * widget.c: Don't define max.
20872
996fee11
PJ
20873 * process.c: Don't define max.
20874 (create_process): Remove unused variable `buffer'.
20875
496e1a5b
GM
208762001-10-23 Gerd Moellmann <gerd@gnu.org>
20877
c2d53558 20878 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 20879
5905ae8b
EZ
208802001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
20881
20882 * xfaces.c (Finternal_set_lisp_face_attribute)
20883 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
20884 frame is on a windowed display.
20885
24db49fb
GM
208862001-10-23 Gerd Moellmann <gerd@gnu.org>
20887
c2d53558
SM
20888 * dispnew.c (sync_window_with_frame_matrix_rows):
20889 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
20890 of marginal areas.
20891
c2d53558 20892 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 20893
f0487f05
EZ
208942001-10-23 Andreas Schwab <schwab@suse.de>
20895
20896 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
20897 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
20898
f0a48a01
GM
208992001-10-23 Gerd Moellmann <gerd@gnu.org>
20900
c2d53558 20901 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
20902 REAL_END. Notice if cursor gets overwritten.
20903 (notice_overwritten_cursor): Take X positions as parameters.
20904 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20905 around call to x_draw_glyphs.
20906
f00691a3 209072001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 20908
fc11dff0
PJ
20909 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
20910 instead of C) and usage.
a50a10a0 20911
fc11dff0
PJ
20912 * editfns.c (char-to-string): Fix argument names (use CHAR instead
20913 of C) and usage.
a50a10a0
PJ
20914
20915 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
20916 `left', `max_width' and `max_height'.
20917
8738febd
GM
209182001-10-23 Gerd Moellmann <gerd@gnu.org>
20919
20920 * xdisp.c (display_line): For a tab continued to the next line,
20921 set row's ends_in_middle_of_char_p.
20922
653c329b
GM
209232001-10-22 Gerd Moellmann <gerd@gnu.org>
20924
20925 * xdisp.c (display_line): Fix computation of continuation lines
20926 width for TABs.
20927
f00691a3 209282001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 20929
7ba51063
PJ
20930 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
20931 `Qlaplace'.
20932
f958c5ac
PJ
20933 * fileio.c: Remove unused code.
20934
eb360291
MB
209352001-10-22 Miles Bader <miles@gnu.org>
20936
20937 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
20938 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
20939 Remove `DOC_STRINGS_IN_COMMENTS' cases.
20940
98515cf0
JR
209412001-10-21 Jason Rumney <jasonr@gnu.org>
20942
20943 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
20944
93026d88
EZ
209452001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
20946
20947 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
20948 (Finsert_string): Avoid the multi-line string literals warning.
20949
c9a95b79
MB
209502001-10-22 Miles Bader <miles@gnu.org>
20951
20952 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
20953 (Fdocumentation): Don't use it.
20954 (syms_of_doc): Don't initialize it.
20955
20956 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
20957 * print.c (Fwith_output_to_temp_buffer): Likewise.
20958 * window.c (Fsave_window_excursion): Likewise.
c2d53558 20959 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 20960 (Fsave_restriction): Likewise.
c2d53558
SM
20961 * eval.c (Frun_hooks, Frun_hook_with_args)
20962 (Frun_hook_with_args_until_failure)
20963 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
20964 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
20965 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
20966 (Funwind_protect, Fcondition_case): Likewise.
20967 * coding.c (Ffind_operation_coding_system): Likewise.
20968 * keyboard.c (Ftrack_mouse): Likewise.
20969
a3b10252
MB
209702001-10-21 Miles Bader <miles@gnu.org>
20971
c2d53558 20972 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
20973 (Fmake_hash_table): Add usage: string to doc string.
20974 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 20975 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
20976 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
20977 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
20978 (Fml_prefix_argument_loop): Likewise.
20979
f00691a3 209802001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 20981
c2d53558 20982 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 20983
c6f73eec
PJ
20984 * sysdep.c (init_sys_modes): Change doc-string comments to `new
20985 style' [w/`doc:' keyword].
20986
20987 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
20988 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
20989 comments to `new style' [w/`doc:' keyword].
20990
3cf3436e
JR
209912001-10-21 Jason Rumney <jasonr@gnu.org>
20992
20993 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
20994
c169b8f1
JR
20995 * w32term.c (remember_mouse_glyph): New function.
20996 (w32_mouse_position): Use it.
20997 (note_mouse_movement): If the mouse moved off the glyph, remember
20998 its new position.
c2d53558 20999
4fdd691b
JR
21000 * w32term.h (struct w32_output): Correct spelling of x_compatible.
21001 (w32_display_info): Add mouse_face_overlay.
21002
c169b8f1
JR
21003 * w32term.c (notice_overwritten_cursor): Renamed from
21004 note_overwritten_text_cursor. Rewritten to take glyph widths into
21005 account.
21006 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
21007 (fast_find_string_pos): New function.
21008 (fast_find_position): Return the correct vpos. Add parameter
21009 STOP. In the final row, stop before glyphs having STOP as object.
21010 Don't consider glyphs that are not from a buffer.
21011 (fast_find_position) [0]: Add a presumably more correct version
21012 for after 21.1.
21013 (expose_window_tree, expose_frame): Don't compute intersections here.
21014 (expose_window): Do it here instead.
21015 (expose_window_tree, expose_window, expose_line): Return 1 when
21016 overwriting mouse-face.
21017 (expose_window): If W is the window currently being updated, mark
21018 the frame garbaged.
21019 (expose_frame): If mouse-face was overwritten, redo it.
21020 (x_use_underline_position_properties): New variable.
21021 (syms_of_xterm): DEFVAR_BOOL it.
21022 (x_draw_glyph_string): Add comment to use it in future.
21023 (x_draw_glyph_string): Restore clipping after drawing box.
21024 Fix a computation of the underline position.
21025 (w32_get_glyph_string_clip_rect): Minor cleanup.
21026 (x_fill_stretch_glyph_string): Remove an assertion.
21027 (x_produce_glyphs): Don't convert multibyte characters
21028 to unibyte characters in unibyte buffers.
21029 (cursor_in_mouse_face_p): New function.
21030 (x_draw_stretch_glyph_string): Use it to choose a different GC
21031 when drawing a cursor within highlighted text. Don't draw
21032 background again if it has already been drawn.
21033 (x_draw_glyph_string_box): Don't draw a full-width
21034 box just because the glyph row's full_width_p flag is set.
21035 (x_draw_glyphs): Fix computation of rightmost x for
21036 full-width rows.
21037 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
21038 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 21039 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
21040 (x_update_window_end): Handle overwritten mouse face
21041 also for tool bar windows.
21042 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
21043 DRAW is DRAW_IMAGE_RAISED.
21044 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
21045 actually redrawn. Make the function static.
21046 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
21047 optimize away highlighting if we pass over that same overlay again.
21048 (note_mouse_highlight): Call mouse_face_overlay_overlaps
21049 to detect a case where we have to highlight a different region
21050 despite not having left the currently highlighted region.
21051 Set mouse_face_overlay in the x_display_info. Avoid changing the
21052 mouse pointer shape when show_mouse_face has already done it, or
21053 there is no need. Handle mouse-face and help-echo in strings.
21054 (glyph_rect): New function.
21055 (w32_mouse_position): Use it to raise the threshold for mouse
21056 movement event generation.
21057 (w32_initialize_display_info): Initialize the x_display_info's
21058 mouse_face_overlay.
21059 (w32_set_vertical_scroll_bar): Don't clear a zero height
21060 or width area.
21061 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
21062 a widget to zero height.
21063
3cf3436e 21064 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 21065 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
21066 equivalents in menu_items.
21067 (w32_menu_show): Don't overwrite an item's name with its key
21068 description in case the description is a multibyte string.
21069 (single_submenu): Some cleanup.
21070
21071 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
21072 (postprocess_image): New function.
21073 (lookup_image): Call it for all image types except PostScript.
21074 (x_kill_gs_process): Call postprocess_image.
21075 (tiff_error_handler, tiff_warning_handler): New functions.
21076 (tiff_load): Install them as handlers.
21077 (x_kill_gs_process): Recognize if someone has cleared the image
21078 cache under us.
21079 (valid_image_p): Protect better against invalid image
21080 specifications. Previous code could signal an error.
21081 (Fx_hide_tip, Fshow_tip): Doc fix.
21082 (Fv_max_tooltip_size): New variable.
21083 (syns_of_xfns): DEFVAR_LISP it.
21084 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 21085 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
21086 window_width. Use a maximum tooltip size specified by
21087 Vx_max_tooltip_size, if that has valid contents.
21088 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
21089 Make sure the tooltip is completely visible.
21090 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
21091 (Fx_create_frame): Adjust the frame's height for presence
21092 of the tool bar before calling x_figure_window_size.
21093 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
21094 when the window gets smaller.
21095 (x_set_foreground_color): Set frame's cursor_pixel.
21096 (x_set_foreground_color, x_set_background_color): Cleaned up.
21097 (x_set_font): Handle case of x_new_fontset returning the same name
21098 as before, although there was a change in fontsets.
21099
386ca361
MB
211002001-10-21 Miles Bader <miles@gnu.org>
21101
c2d53558 21102 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
21103 (Flogxor): Add usage: string to doc string.
21104 * charset.c (Fstring): Likewise.
21105 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
21106 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
21107
f00691a3 211082001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 21109
03be2694
PJ
21110 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
21111
21112 * alloc.c: Reindent DEFUNs with doc: keywords.
21113
21114 * abbrev.c (Finsert_abbrev_table_description): Reindent.
21115
14ff1ee0
PJ
21116 * frame.c: Change doc-string comments to `new style' [w/`doc:'
21117 keyword].
21118
2f147815 21119See ChangeLog.9 for earlier changes.
6922b018
KH
21120
21121;; Local Variables:
49b3bd82 21122;; coding: iso-2022-7bit
6922b018 21123;; End:
2a34a036 21124
2f147815 21125 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
21126 Copying and distribution of this file, with or without modification,
21127 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
21128
21129;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4