Fix my email address.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e50165ec
KS
12005-10-19 Kim F. Storm <storm@cua.dk>
2
3 * image.c (check_image_size): Handle integer Vmax_image_size value
4 directly as max pixel value. Use default frame size for null frame.
5 (syms_of_image) <max-image-size>: Describe integer value.
6
d7b94c98
RF
72005-10-19 Romain Francoise <romain@orebokech.com>
8
9 * emacs.c (main): Update copyright year.
10
f1f25b99
CY
112005-10-18 Chong Yidong <cyd@stupidchicken.com>
12
13 * image.c (Vmax_image_size): New variable.
14 (check_image_size): New function.
15 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
16 (gif_load, gs_load): Use it.
17 (lookup_image): Try loading again if previous load failed.
18 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
19 to display in, NULL if none.
20 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
21 argument.
22
f42d19a2
RS
232005-10-18 Richard M. Stallman <rms@gnu.org>
24
25 * search.c (Fstring_match): Doc fix.
26
bcbdafce
YM
272005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28
29 * macterm.c (note_mouse_movement): Use PtInRect.
30 (XTread_socket): Also ignore mouse motion just before a button
31 release event. Don't process button release event when mouse is
32 not grabbed.
33
f5fab556
MY
342005-10-16 Masatake YAMATO <jet@gyve.org>
35
36 * minibuf.c (Fdisplay_completion_list): Add new optional
e50165ec 37 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
38 to the optional argument during running `completion-setup-hook'.
39
2ef1363e
YM
402005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
41
42 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
43 Allow nil as argument.
44 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
45 for encoding arguments as UTF-16 in native byte order, no BOM.
46
47 * macfns.c (Fx_create_frame): Add debugging code.
48 (Fx_show_tip): Set frame pixel width and height.
49
50 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
51 (FRAME_NORMAL_GC): New macro.
52 (mac_draw_line, mac_clear_area, mac_clear_window)
53 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
54 (mac_draw_image_string, mac_draw_image_string_16): Rename from
55 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
56 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
57 All uses changed.
58 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
59 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
60 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
61 (mac_draw_string_16, mac_draw_image_string)
62 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
63 (mac_scroll_area): Drawing functions now take frame as destination.
64 All uses changed.
65 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
66 (x_draw_fringe_bitmap): Set clipping area in face->gc.
67
68 * macterm.h (mac_clear_area): Add extern.
69
fc5c7550
YM
702005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
71
72 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
73 changes for xterm.c.
74
75 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
76
fed91c38
KH
772005-10-14 Kenichi Handa <handa@m17n.org>
78
79 * search.c (search_buffer): Give up BM search on case-fold-search
80 if one of a target character has a case-equivalence of different
81 charset even if that target charcter is an ASCII.
82
83 * casefiddle.c (casify_object): Fix for the case that case
84 conversion change the byte length.
85
0ea1a8af
KS
862005-10-14 Kim F. Storm <storm@cua.dk>
87
88 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
89 (handle_one_xevent): Only clear help_echo_string; restore it if
90 note_mouse_movement didn't record any mouse movement.
91
92 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
93 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
94
95 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
96 (Fposn_at_x_y): Fix calculation of x coordinate.
97 (Fposn_at_point): Return nil if point is hscrolled out of view.
98
6e5b2385
AS
992005-10-13 Andreas Schwab <schwab@suse.de>
100
101 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
102 non-interactive mode.
103
6de0e1a2
YM
1042005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
105
106 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
107
78f3b91f
KS
1082005-10-12 Kim F. Storm <storm@cua.dk>
109
110 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
111
b639c9be
RF
1122005-10-12 Romain Francoise <romain@orebokech.com>
113
114 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
115
76d8f04c
YM
1162005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
117
118 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
119 get end of text rows. Obtain header-line/mode-line rows directly.
120
621036f9
YM
121 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Restore
122 help_echo_string if mouse is moved inside last_mouse_glyph.
123
d76432f5
KS
1242005-10-12 Kim F. Storm <storm@cua.dk>
125
7a127784
KS
126 * xdisp.c (remember_mouse_glyph): New generic version based on
127 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
128 properly handle all different window areas.
129
130 * dispextern.h (remember_mouse_glyph): Add prototype.
131
132 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
133 (note_mouse_movement, XTmouse_position): Use generic
134 remember_mouse_glyph, add last_mouse_glyph arg.
135
136 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
137 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
138 (note_mouse_movement, w32_mouse_position): Use generic
139 remember_mouse_glyph, add last_mouse_glyph arg.
140
141 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
142 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
143 (XTmouse_position): Adapt to use generic remember_mouse_glyph
144 instead of pixel_to_glyph_coords.
145
d76432f5
KS
146 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
147 Fix x position for ON_TEXT when left margin width > 0.
148
55a4ac3e
KS
1492005-10-11 Kim F. Storm <storm@cua.dk>
150
d76432f5 151 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
152
153 * keyboard.c (make_lispy_position): Fix buffer calculations for
154 mouse click or movement in right fringe and the margins.
155
2d4713aa
JB
1562005-10-11 Juanma Barranquero <lekktu@gmail.com>
157
158 * image.c (fn_jpeg_stdio_src): Don't define it.
159 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
160 (our_common_init_source): Rename from `our_init_source'.
161 (our_common_term_source): Rename from `our_term_source'.
162 (our_memory_fill_input_buffer): Rename from
163 `our_fill_input_buffer'.
164 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
165 (jpeg_memory_src): Use the new names.
166 (struct jpeg_stdio_mgr): New struct.
167 (JPEG_STDIO_BUFFER_SIZE): New constant.
168 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
169 (jpeg_file_src): New functions.
170 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
171
71b7a47f
YM
1722005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
173
174 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
175 (fm_font_family_alist): New variable.
176 (syms_of_macterm): Initialize and staticpro it.
177 (decode_mac_font_name): Replace '-' in family name with '_' if it
178 occurs just once. Lower family name.
179 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
180 All uses changed. Remove argument MF and code conversion for it.
181 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
182 to CHARSET. Parse font size. Lower family name. Return integer
183 value for status of parsing.
184 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
185 Don't use Fdowncase because family name is already lowered by
186 decode_mac_font_name.
187 (init_font_name_table): Always call decode_mac_font_name. Add
188 pair of family name and its reference to fm_font_family_alist.
189 (mac_clear_font_name_table): Clear fm_font_family_alist.
190 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
191 Lookup fm_font_family_alist to get font family reference.
192 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
193 name is already lowered by parse_x_font_name.
194
74051a92
KS
1952005-10-11 Kim F. Storm <storm@cua.dk>
196
31ab1f05
KS
197 * xterm.c (glyph_rect): Return 0 if position is outside text area.
198
74051a92
KS
199 * keyboard.c (make_lispy_position): Fix buffer position calculation for
200 mouse click or movement in fringe.
201
9b909870
JR
2022005-10-10 Jason Rumney <jasonr@gnu.org>
203
204 * xterm.c (remember_mouse_glyph): New function.
58af5591 205 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 206 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 207 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 208
f9e36a6d
JD
2092005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
210
58af5591 211 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 212
04bc7945
JB
2132005-10-10 Juanma Barranquero <lekktu@gmail.com>
214
215 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
216 (next_frame, prev_frame, set_term_frame_name): Make static.
217
218 * window.c (Fwindow_tree): Fix spelling.
219
41791a20
RF
2202005-10-09 Romain Francoise <romain@orebokech.com>
221
222 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
223
e313fc07
JD
2242005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
225
58af5591
KS
226 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
227 Add options -nb, --no-bitmap-icon.
e313fc07
JD
228
229 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
230
61e62f5f
YM
2312005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
232
233 * macgui.h (MAX_CLIP_RECTS): New define.
234 (struct _XGC): New member clip_region.
235 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
236 clip_rects.
237
238 * macterm.c (GC_CLIP_REGION): New macro.
239 (saved_port_clip_region): New variable.
240 (mac_begin_clip, mac_end_clip): New functions.
241 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
242 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
243 (mac_copy_area_with_mask, mac_scroll_area): Use them.
244 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
245 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
246 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
247 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
248 rectangles stored in gc.
71b7a47f 249 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
250 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
251 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
252 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
253 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
254 (x_draw_bar_cursor): Use them.
255 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
256 get multiple clipping rectangles.
257
258 * macterm.h (mac_term_init): Add types to extern.
259 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 260 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
261 scroll_bar_background_pixel in #if 0.
262 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
263
264 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 265 Add debugging code.
61e62f5f 266
ef1b4c9e
KS
2672005-10-08 Kim F. Storm <storm@cua.dk>
268
269 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
270
f1010549
KS
2712005-10-07 Kim F. Storm <storm@cua.dk>
272
273 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
274 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
275 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
276
c2ded1b7
YM
2772005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
278
279 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
280 to for_overlaps. Now occupy 3 bits.
281 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
282 (OVERLAPS_ERASED_CURSOR): New defines.
283 (struct redisplay_interface): Add new OVERLAPS arg to member
284 fix_overlapping_area.
285 (x_fix_overlapping_area): Add new OVERLAPS arg.
286 (get_glyph_string_clip_rects): Add extern.
287
288 * dispnew.c (redraw_overlapping_rows): Call
289 rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
290
291 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
292 for_overlaps.
293 (get_glyph_string_clip_rects): New function created from
f1010549
KS
294 get_glyph_string_clip_rect. Set clipping rectangles according to the
295 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
296 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
297 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
298 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 299 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 300 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
301 calculating clipping rectangles later. Call x_fix_overlapping_area
302 with new OVERLAPS arg to draw only erased cursor area.
f7270128 303 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 304 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
305
306 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
307 struct glyph_string to for_overlaps.
308
a19a0003
RS
3092005-10-04 Richard M. Stallman <rms@gnu.org>
310
311 * alloc.c (refill_memory_reserve): Conditionalize the body,
312 not the function's existence.
313
abc8ce50
KS
3142005-10-04 Kim F. Storm <storm@cua.dk>
315
316 * window.c (window_split_tree): New function.
317 (Fwindow_split_tree): New defun.
318 (syms_of_window): Defsubr it.
319
66533b25
YM
3202005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
321
322 * macterm.c (mac_invert_rectangle): New function.
323 (XTflash): Use it.
324
4156359e
SM
3252005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
326
4e2f601f
SM
327 * regex.h (re_char): Don't expose it in the interface.
328 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
329
330 * regex.c (re_char): Move it back here.
331 (re_set_whitespace_regexp): Change the arg's type to not use it.
332
4156359e
SM
333 * keyboard.c (make_lispy_event): If point has moved between down and up
334 event, make it a drag, not a click, to mirror what
335 mouse-drag-region expects.
336
eb27c2ca
DN
3372005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
338
339 * lisp.h (fatal): Undo previous change.
340 * term.c (fatal): Undo previous change.
341
b059f7d0
RS
3422005-10-01 Richard M. Stallman <rms@gnu.org>
343
344 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
345
21a9a7be
KS
3462005-10-01 Kim F. Storm <storm@cua.dk>
347
348 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
349
ddcb7665
YM
3502005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
351
352 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
353
354 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 355 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
356 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
357 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
358
359 * macgui.h (struct _XCharStruct): New member valid_p.
360 (STORE_XCHARSTRUCT): Set valid_p.
361 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
362
363 * macterm.c (mac_draw_string_common, x_per_char_metric)
364 (mac_compute_glyph_string_overhangs, init_font_name_table)
365 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
366 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
367 (x_draw_glyph_string_background)
368 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
369 XDrawImageString. Always draw background and foreground separately.
370 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
371 functions for one-byte chars when using ATSUI-compatible fonts.
372 (atsu_font_id_hash) [USE_ATSUI]: New variable.
373 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
374 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
375 max_char_or_byte2 more in detail.
376 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
377
fa8459a3
DN
3782005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
379
4156359e 380 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
381 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
382
383 * unexelf.c (fatal): Fix prototype.
384
385 * term.c (fatal): Implement using varargs.
386
21a9a7be 387 * regex.c (re_char): Move typedef ...
fa8459a3 388 * regex.h (re_char): ... here.
4156359e 389 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
390
391 * emacs.c (malloc_set_state): Fix return type.
392 (endif): Fix type.
393
394 * lisp.h (fatal): Add argument types.
395
396 * dispextern.h (fatal): Delete prototype.
397
398 * systime.h: (make_time): Prototype moved from ...
399 * editfns.c (make_time): ... here.
400
401 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
402 * dired.c:
403 * xsmfns.c:
fa8459a3 404 * process.c: Likewise.
21a9a7be 405
fa8459a3
DN
406 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
407 Add parameter types.
408 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
409 (emacs_blocked_free): Change definition to match __free_hook.
410 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 411 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 412
97c3e4cc
RF
4132005-09-30 Romain Francoise <romain@orebokech.com>
414
415 * minibuf.c (Fread_buffer): Follow convention for reading from the
416 minibuffer with a default value. Doc fix.
417
8ad8c5ce
JL
4182005-09-29 Juri Linkov <juri@jurta.org>
419
420 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
421 Rename argument name `string' to `format-string'.
422 (Fformat): Doc fix.
423
64da5759
KS
4242005-09-28 Kim F. Storm <storm@cua.dk>
425
426 * image.c (gif_load): Fix size of allocated image buffer
427 for images where a sub-image may be larger than the image's
428 total height/width specifications.
429
eaf92438
YM
4302005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
431
432 * macgui.h (struct _XCharStruct): Each member now takes short value.
433
43f15d4a
DN
4342005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
435
436 * xfaces.c (lookup_derived_face): Add parameter type.
437
438 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
439
440 * marker.c (verify_bytepos): Add parameter type.
441
442 * process.c (get_operating_system_release): Move prototype ...
443
444 * systime.h (get_operating_system_release): ... here.
445
04bc7945
JB
446 * xterm.c (handle_one_xevent): Refer to union field to match the
447 type required by the function definition.
448 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
449
450 * xterm.h: ... here.
451
452 * fns.c (internal_equal, seed_random): Fix prototypes.
453 (internal_equal): Add missing parameter.
454
c769dcac
RS
4552005-09-25 Richard M. Stallman <rms@gnu.org>
456
457 * keyboard.c (update_menu_bindings): Variable deleted.
458 (syms_of_keyboard): Don't defvar it.
459 (parse_menu_item): Don't test it.
460
8dbf19c7
RS
4612005-09-23 Richard M. Stallman <rms@gnu.org>
462
463 * editfns.c (Fformat): Explicitly test for end of format string
464 and don't use `index'.
465
3480d92b
DN
4662005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
467
4156359e
SM
468 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
469 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
470
471 * sysdep.c (get_current_dir_name): Also define if
64da5759 472 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
473
474 * m/ibmrs6000.h: Test for USG5, not USG5_4.
475
5db60f31
KS
4762005-09-22 Kim F. Storm <storm@cua.dk>
477
478 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
479 (message2): Fix commentary. Ok to use alloca'ed memory.
480 Still not ok to use Lisp string data (because of GC).
481 (set_message): Add comment why GC cannot happen.
482
7c3d233d
YM
4832005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
484
485 * macterm.c (xlfdpat_block_match_1): Fix assertion.
486 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
487 variants for a scalable font multiple times.
488
acde1152
YM
4892005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
490
491 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
492 Setup slave tty options before forking.
493
52d166e0
JD
4942005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
495
496 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
497 positions have been set for the frame (as is done for frames in
498 special-display-buffer-names).
499
12d10bc7
KS
5002005-09-19 Kim F. Storm <storm@cua.dk>
501
502 * editfns.c (Fformat): Don't scan past end of format string that
503 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
504
9f1cf0e3
AS
5052005-09-18 Andreas Schwab <schwab@suse.de>
506
507 * window.h (struct window): Remove height_fixed_p, no longer set.
508
509 * window.c (make_window): Don't initialize height_fixed_p.
510 (window_fixed_size_p): Don't use it.
511
8a658a52
JPW
5122005-09-18 John Paul Wallington <jpw@pobox.com>
513
514 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
515
be9bb408
YM
5162005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
517
518 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
519
520 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
521 New variables.
522 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
523 file selection.
524
525 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
526
cbf223e1
EZ
5272005-09-17 Eli Zaretskii <eliz@gnu.org>
528
529 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
530 (obj): Use XMENU_OBJ, not a literal xmenu.o.
531
e3f509dd
RF
5322005-09-16 Romain Francoise <romain@orebokech.com>
533
8ccd3630 534 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 535
5c4757d3
RS
5362005-09-15 Richard M. Stallman <rms@gnu.org>
537
538 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
539 (display_mode_element): Instead of `lisp_string' and `this',
540 record `offset' and increment that.
541 `last_offset' replaces `last'.
542
543 * Makefile.in (XMENU_OBJ): Variable deleted.
544 (obj): Use xmenu.o unconditionally.
545 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
546
547 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
548
01978521
KS
5492005-09-15 Kim F. Storm <storm@cua.dk>
550
551 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
552 (reseat_at_next_visible_line_start): Likewise (in xassert).
553
ccf61795
RF
5542005-09-14 Romain Francoise <romain@orebokech.com>
555
556 * fileio.c (write_region_inhibit_fsync): New variable.
557 (Fwrite_region): Use it to skip call to fsync.
558 (syms_of_fileio): Initialize it.
559
2b046a72
KH
5602005-09-14 Kenichi Handa <handa@m17n.org>
561
24a2b282
KH
562 * coding.c (code_convert_region_unwind): Argument format changed.
563 (run_pre_post_conversion_on_str): If pre-write-conversion function
564 changed the current buffer, delete the new buffer.
565 (run_pre_write_conversin_on_c_str): Likewise.
566
2b046a72
KH
567 * fileio.c (Fexpand_file_name): Check multibyteness of
568 default_directory.
569
d008f7b7
KH
5702005-09-13 Kenichi Handa <handa@m17n.org>
571
572 * composite.c (compose_chars_in_text): Delete it.
573
574 * composite.h (compose_chars_in_text): Delete extern.
575
2ada8ac5
KS
5762005-09-13 Kim F. Storm <storm@cua.dk>
577
578 * print.c (print_error_message): Fix last change.
579
48c60938
KS
5802005-09-12 Kim F. Storm <storm@cua.dk>
581
0fdbe302
KS
582 * composite.c (compose_chars_in_text): Fix setup of `pend'.
583 Unconditionally reload `ptr' and `pend' after eval.
584
48c60938
KS
585 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
586
587 * print.c (print_error_message): Pass copy of caller name to
588 message_dolog.
589
590 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
591
5add1986
KH
5922005-09-12 Kenichi Handa <handa@m17n.org>
593
594 * xdisp.c (display_mode_element): Be sure to make variables THIS
595 and LISP_STRING point into a string data of ELT.
596
18bb66c7
KS
5972005-09-12 Kim F. Storm <storm@cua.dk>
598
599 * editfns.c (Ftranslate_region_internal): Reload `tt' after
600 signal_after_change that may have GC'ed.
601 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
602
603 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
604 after insert while runs signal_after_change.
605
606 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
607 declaration to where it is used.
608
609 * w32.c (check_windows_init_file): Fix allocation of error buffer.
610
611 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
612 (x_set_name_internal): Call x_encode_text with new FREEP arg to
613 know if xfree is needed instead of guessing.
614
615 * xterm.h (x_encode_text): Remove prototype.
616
945a75f8
JR
6172005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
618
619 * w32term.c (x_bitmap_icon): Load small icons too.
620
156bdb41
RF
6212005-09-10 Romain Francoise <romain@orebokech.com>
622
623 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 624 and terminal zero. Fix typos.
156bdb41 625
67b8391b
EZ
6262005-09-10 Eli Zaretskii <eliz@gnu.org>
627
a17b5ed1
EZ
628 * buffer.c (init_buffer): Fix error message for failed call to
629 get_current_dir_name.
630 (get_current_dir_name): Remove prototype.
631
632 * xsmfns.c: (get_current_dir_name): Remove prototype.
633
634 * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add
635 prototype.
636
ed326e35 637 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 638 Don't #undef NULL after including blockinput.h.
ed326e35 639
67b8391b
EZ
640 * config.in: Regenerated.
641
c187839d
EZ
6422005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
643
644 Remove the MAXPATHLEN limitations:
645
1486d036
EZ
646 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
647 New function.
c187839d
EZ
648
649 * buffer.c (init_buffer): Use it.
650
651 * xsmfns.c (smc_save_yourself_CB): Ditto.
652
ae8a5689
KS
6532005-09-09 Kim F. Storm <storm@cua.dk>
654
39cac6b3
KS
655 * doc.c (Fsubstitute_command_keys): Lookup key binding for
656 commands that are remapped from some other command.
657
aeb55c44
KS
658 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
659 flag in disabled rows below the window.
660
ae8a5689
KS
661 * frame.h (struct frame): New member updated_p.
662
663 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
664 member. Remove local `updated' array and associated variables.
665
821f6dae
KS
6662005-09-07 Kim F. Storm <storm@cua.dk>
667
6e5395f2
KS
668 * xdisp.c (handle_display_prop): Respect overlay window property.
669
821f6dae
KS
670 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
671 Fixes crash reported by YAMAMOTO Mitsuharu.
672
9655b404
YM
6732005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
674
675 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
676 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
677 (xlfdpat_block_match_1, xlfdpat_match): New functions.
678 (xlfdpat_block_match): New macro.
679 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
680 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
681 (add_font_name_table_entry): Increase font_name_table_size more
682 rapidly.
683 (mac_c_string_match): Remove function.
684 (mac_do_list_fonts): Use XLFD pattern match instead of regular
685 expression match.
686
687 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
688
d7ea8b71
RS
6892005-09-03 Richard M. Stallman <rms@gnu.org>
690
691 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
692 (move_it_in_display_line_to): Stop after last char on line even
693 on a windowing terminal, if that's the specified stop position.
694
695 * fns.c (Fsort): Doc fix.
696
697 * editfns.c (Fpropertize): Don't insist that properties be symbols.
698
1550ae60
SM
6992005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
700
701 * dired.c (directory_files_internal_unwind, directory_files_internal)
702 (file_name_completion): Use a Save_Value object rather than a cons of
703 two 16bit ints to store the DIR*.
704 (directory_files_internal, file_name_completion): Handle both EINTR and
705 EAGAIN consistently after `readdir'.
706
bdb4d6d8
SM
7072005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
708
1550ae60
SM
709 * intervals.c (update_interval): Add position info in error.
710
bdb4d6d8
SM
711 * dispnew.c (window_to_frame_hpos, update_window):
712 Avoid gcc warning about unused variable `f'.
713
6bcc3ca4
JR
7142005-08-31 Jason Rumney <jasonr@gnu.org>
715
716 * w32menu.c (add_menu_item): If unicode_append_menu returns an
717 error, revert to using AppendMenu.
718
07c5948c
YM
7192005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
720
bdb4d6d8
SM
721 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
722 All uses changed.
07c5948c
YM
723 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
724 cases.
725 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
726 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
727 Use posix_pathname_to_fsspec.
07c5948c
YM
728 [MAC_OS] (xpm_load_image): Fill in background_transparent field
729 while we have mask.
730
731 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
732
733 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
734
5a774522
SM
7352005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
736
737 * syntax.c (update_syntax_table): Properly reproduce the special +1
738 setting of e_property at the end of the buffer when bumping into the
739 INTERVALS_AT_ONCE limit.
740
0fb57cc0
EZ
7412005-08-27 Eli Zaretskii <eliz@gnu.org>
742
743 * emacs.c (USAGE1): Fix the description of the -Q option.
744
5a774522
SM
7452005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
746
747 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
748
4e6b8c5a
KS
7492005-08-26 Kim F. Storm <storm@cua.dk>
750
751 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
752 Don't move PT to new window start.
753
1f98fbb4
YM
7542005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
755
756 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
757 ICONIFY/DEICONIFY_EVENT.
758
5a774522
SM
759 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
760 Restore background color.
1f98fbb4
YM
761 (mac_handle_visibility_change): New function.
762 (x_make_frame_invisible, x_iconify_frame)
763 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
764 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 765 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
766 (x_make_frame_visible): Don't reposition window if it is iconified
767 or asked for visible before. Select and uncollapse window when it
768 is made visible.
769 (x_make_frame_invisible): Don't reset x_highlight_frame.
770 (x_iconify_frame): Likewise. Make invisible frame visible before
771 it is iconified.
772 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
773 (do_window_update): Don't change visibility of invisible frame.
774
16691d29
JL
7752005-08-22 Juri Linkov <juri@jurta.org>
776
777 * term.c (turn_on_face): Check for TS_set_foreground and
778 TS_set_background depending on standout_mode. Simplify.
779
7c3f805b
KS
7802005-08-21 Kim F. Storm <storm@cua.dk>
781
0f467468
KS
782 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
783 bitmaps on fully visible rows.
784
7c3f805b
KS
785 * fringe.c (update_window_fringes): Replace FORCE_P arg with
786 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
787 and return 0.
788
789 * xdisp.c (redisplay_window): Call update_window_fringes with
790 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
791
40b388f9
RS
7922005-08-20 Richard M. Stallman <rms@gnu.org>
793
794 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
795 (resize_mini_window): Set w->start, and PT, so as to display the tail
796 end of the buffer, if it doesn't all fit.
797
581360f0
KS
7982005-08-18 Kim F. Storm <storm@cua.dk>
799
800 * xdisp.c (calc_pixel_width_or_height): Use actual display
801 resolution when available instead of Vdisplay_pixels_per_inch.
802
0eefa6fb
KS
8032005-08-17 Kim F. Storm <storm@cua.dk>
804
805 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
806
807 * dispnew.c (buffer_posn_from_coords): Check that target row is
808 within matrix.
809
ada192ba
JD
8102005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
811
812 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
813 xg_set_frame_icon and call it.
814
815 * gtkutil.c (xg_set_frame_icon): New function.
816
0eefa6fb 817 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 818
ab89a403
KS
8192005-08-16 Kim F. Storm <storm@cua.dk>
820
821 * dispnew.c (increment_row_positions): Skip non-enabled rows.
822
823 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
824 (Fcurrent_window_configuration): Use VECSIZE macro instead.
825
8d34b5e1
RS
8262005-08-15 Richard M. Stallman <rms@gnu.org>
827
828 * xdisp.c (message3_nolog): Clear echo_message_buffer.
829
71e37f3c
KS
8302005-08-15 Kim F. Storm <storm@cua.dk>
831
0781c303
KS
832 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
833
71e37f3c
KS
834 * process.c (deactivate_process, status_notify, read_process_output)
835 (update_status, status_convert, decode_status, allocate_pty)
836 (make_process, remove_process, list_processes_1)
837 (create_process_1, unwind_request_sigio, read_process_output)
838 (send_process, keyboard_bit_set): Declare static.
839 (Fdelete_process): Simplify. Pass process to status_notify, so we
840 don't try to read output from it.
841 (status_notify): New arg deleting_process--don't try to read
842 output from that process.
843
844 * lisp.h (deactivate_process, status_notify, read_process_output):
845 Remove prototypes.
846
0bf14bfd
RS
8472005-08-14 Richard M. Stallman <rms@gnu.org>
848
bdb4d6d8
SM
849 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
850 define_image_type.
0bf14bfd 851
6c7eb721
JD
8522005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
853
854 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
855 (xg_get_image_for_pixmap): Move some code to
856 xg_get_pixbuf_from_pix_and_mask, and call it.
857
858 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
859
860 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
861 to get an GTK icon and set it with GTK functions to avoid having GTK
862 override an icon set with just X functions.
863
6e2d14c8
RS
8642005-08-11 Richard M. Stallman <rms@gnu.org>
865
bdb4d6d8
SM
866 * image.c (syms_of_image): Init image_types here, and call
867 define_image_type.
6e2d14c8
RS
868 (init_image): Not here.
869
61298e17
RS
8702005-08-09 Richard M. Stallman <rms@gnu.org>
871
872 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
873
874 * lisp.h (QUIT): Throw t to Vthrow_on_input.
875
5a9807a8
TTN
8762005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
877
878 * floatfns.c (Fexpt): Use floats for negative exponent.
879
93469010
JD
8802005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
881
882 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
883 should not be there, causing menu display errors with GTK 2.6.9.
884
44edd521
RS
8852005-08-07 Richard M. Stallman <rms@gnu.org>
886
8b6a9551
RS
887 * floatfns.c (Fexpt): Undo previous change.
888
44edd521
RS
889 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
890 so it can be used with various state vectors.
891
892 * emacs.c (endif): Convert -script into -scriptload.
893 (standard_args): Add -scriptload. Allow -basic-display with one dash.
894
895 * fns.c (syms_of_fns): Add `emacs' to features.
896
897 * term.c (set_terminal_modes): If no TS_termcap_modes string,
898 output newlines to scroll the old screen contents off the screen.
899
cac87e30
TTN
9002005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
901
2a205424
TTN
902 * floatfns.c (Fexpt): Use floats for negative exponent.
903 Reported by D Goel.
cac87e30 904
31b7cc74
JB
9052005-08-02 Richard M. Stallman <rms@gnu.org>
906
907 * frame.c (Fframe_char_width): Doc fix.
908
e2b64074
JB
9092005-07-30 Juanma Barranquero <lekktu@gmail.com>
910
911 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
912 Defvar it.
913
0962822d
JB
9142005-07-28 Juanma Barranquero <lekktu@gmail.com>
915
916 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
917 (my_create_window, my_create_tip_window): Make static.
918
919 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
920 (my_set_foreground_window, my_destroy_window): Make static.
921
9eff9fe3
PE
9222005-07-26 Paul Eggert <eggert@cs.ucla.edu>
923
924 Merge gnulib getopt implementation into Emacs.
925
926 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
927 now part of lib-src.
928
1c9916a1
SM
9292005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
930
931 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
932
94c7f257
JR
9332005-07-25 Jason Rumney <jasonr@gnu.org>
934
935 * w32menu.c (w32_menu_display_help): Suppress tooltip when
936 navigating menus with the keyboard.
937
bf0bf758
RS
9382005-07-23 Richard M. Stallman <rms@gnu.org>
939
940 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
941
942 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
943 gc_relative_threshold, one by one.
944
945 * keyboard.c (read_char): Test gc_cons_threshold.
946 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
947
948 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
949 gc_relative_threshold, one by one.
950
951 * alloc.c (gc_cons_threshold): Not static.
952 (gc_cons_combined_threshold): Var deleted.
953 (gc_relative_threshold): New variable.
954 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
955 instead of gc_cons_combined_threshold.
956
1c9916a1 957 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
958 (gc_cons_combined_threshold): Declaration deleted.
959
99f963e4
YM
9602005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
961
962 * mac.c: Don't include stdlib.h or string.h.
963 (Fdo_applescript, Fmac_file_name_to_posix)
964 (Fmac_file_name_to_posix): Doc fixes.
965 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
966 (Fmac_code_convert_string): Likewise.
967 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
968 if the executable is not contained in a bundle.
969
970 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
971 (gray_width, gray_height): Remove defines.
972 (gray_bits, gray_bitmap_width, gray_bitmap_height)
973 (gray_bitmap_bits): Remove variables.
974 (lispy_function_keys): Remove extern.
975 (free_frame_menubar): Add extern.
976 (x_window_to_frame): Remove function.
977 (unwind_create_tip_frame): Add declaration.
978 (x_set_name_internal): New function.
979 (x_set_name, x_set_title): Use it.
980 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
981 (Fx_display_pixel_height, Fx_display_planes)
982 (Fx_display_color_cells, Fx_server_max_request_size)
983 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
984 (Fx_display_mm_height, Fx_display_mm_width)
985 (Fx_display_backing_store, Fx_display_visual_class)
986 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
987
988 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
989
bdb4d6d8 990 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
991 (Fx_get_selection_internal, Fx_selection_owner_p)
992 (Fx_selection_exists_p): Doc fixes.
993 (syms_of_macselect) <selection-converter-alist>: Likewise.
994
1d256714
JB
9952005-07-21 Juanma Barranquero <lekktu@gmail.com>
996
997 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
998
999 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
1000 (Fccl_execute_on_string): Likewise; add usage info.
1001
1002 * composite.c (Fcompose_region_internal)
1003 (Fcompose_string_internal):
1004 Improve argument/docstring consistency.
1005
1006 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
1007 Fix typos in docstrings.
1008
1009 * textprop.c (Fnext_char_property_change)
1010 (Fprevious_char_property_change): Doc fixes.
1011
1012 * window.c (Fset_window_margins, Fset_window_fringes):
1013 Improve argument/docstring consistency.
1014
1015 * xfaces.c (Finternal_lisp_face_p): Doc fix.
1016
538f78c3
AS
10172005-07-21 Andreas Schwab <schwab@suse.de>
1018
1019 * eval.c (restore_stack_limits): Return a value.
1020
a5b5bf44
JB
10212005-07-20 Juanma Barranquero <lekktu@gmail.com>
1022
1023 * eval.c (Fdefvar): Doc fix.
1024
ae643123
KS
10252005-07-20 Kim F. Storm <storm@cua.dk>
1026
0ed4bf15
KS
1027 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
1028 Use make_save_value to unwind protect stream.
1029
1030 * lread.c (Fload, load_unwind):
1031 Use make_save_value to unwind protect stream.
ae643123 1032
82fc29a1
JB
10332005-07-19 Juanma Barranquero <lekktu@gmail.com>
1034
1035 * eval.c (Fprog2, Fcalled_interactively_p),
1036 (syms_of_eval) <debug-on-quit>: Doc fixes.
1037 (syms_of_eval) <max-specpdl-size>:
1038 (Finteractive_p): Fix typos in docstrings.
1039
73b90087
KS
10402005-07-19 Kim F. Storm <storm@cua.dk>
1041
1042 * w32fns.c (Vx_hand_shape): Variable removed.
1043 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
1044
dfc434d0
KH
10452005-07-19 Kenichi Handa <handa@m17n.org>
1046
bdb4d6d8 1047 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 1048
bcd98331
SM
10492005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
1050
1051 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
1052
2a85a754
KS
10532005-07-18 Kim F. Storm <storm@cua.dk>
1054
1055 * frame.h (struct frame): New member already_hscrolled_p.
1056
1057 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
1058 to avoid redisplay looping hscrolling back and forth ad infinitum.
1059
426179e1
JL
10602005-07-18 Juri Linkov <juri@jurta.org>
1061
1062 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
1063 * keymap.c (Fminor_mode_key_binding):
1064 * macterm.c (mac-emulate-three-button-mouse):
1065 Delete duplicate duplicate words.
1066
9f4a578d
KR
10672005-07-18 Ken Raeburn <raeburn@gnu.org>
1068
1069 * minibuf.c (Ftest_completion): Fix odd syntax in test.
1070
d005338b
YM
10712005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1072
bcd98331 1073 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
1074
1075 * macgui.h (struct _XGC): New struct.
1076 (GC): Use it.
1077 (GCForeground, GCBackground, GCFont): Use X11 mask values.
1078 (XCreateGC, XParseGeometry): Move externs to macterm.h.
1079
bcd98331 1080 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 1081 (XSetFont): Add declaration.
bcd98331
SM
1082 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
1083 Remove functions.
1084 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
1085 New defines.
d005338b
YM
1086 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
1087 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
1088 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
1089 Use them.
d005338b
YM
1090 (mac_erase_rectangle): New function.
1091 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
1092 (x_draw_stretch_glyph_string): Use it.
1093 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
1094 (XSetBackground, XSetFont): Adjust for new GC implementation.
1095 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
1096 (XTset_vertical_scroll_bar): Clear area under scroll bar.
1097
1098 * macterm.h (struct mac_display_info): Change types of
1099 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
1100 (XCreateGC, XParseGeometry): Move externs from macgui.h.
1101
1102 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
1103
9b0c2c56
RS
11042005-07-16 Richard M. Stallman <rms@gnu.org>
1105
1106 * buffer.c (Fmake_overlay): Doc fix.
1107
2e9c1c6d
EZ
11082005-07-16 Eli Zaretskii <eliz@gnu.org>
1109
1110 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
1111 Vw32_valid_locale_ids, and Vw32_valid_codepages.
1112
407289a4
YM
11132005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1114
bcd98331
SM
1115 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
1116 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 1117
e4b477a1
RS
11182005-07-15 Richard M. Stallman <rms@gnu.org>
1119
1120 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
1121
a8613adf
KS
11222005-07-15 Kim F. Storm <storm@cua.dk>
1123
1124 * xdisp.c: Fix redisplay loop in last change.
1125 (IT_POS_VALID_AFTER_MOVE_P): New macro.
1126 (move_it_vertically_backward, move_it_by_lines): Use it.
1127
2d5324c5
JR
11282005-07-14 Jason Rumney <jasonr@gnu.org>
1129
1130 * w32.c (init_environment): Default HOME directory to user's
1131 appdata directory if possible.
1132
3ed70dc4
KS
11332005-07-14 Kim F. Storm <storm@cua.dk>
1134
7b9389b0
KS
1135 * .gdbinit (pitx): Fix output format. Print string charpos.
1136
3ed70dc4
KS
1137 * lread.c (syms_of_lread): Initialize seen_list.
1138
1139 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
1140
1141 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
1142 Staticpro re_match_object.
1143
ef029e5a
YM
11442005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1145
1146 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
1147 dereference.
1148
1149 * macterm.c (mac_window_to_frame): Remove duplicate define.
1150
16ef9c56
KH
11512005-07-14 Kenichi Handa <handa@m17n.org>
1152
1153 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 1154 (code_convert_region): Adjust for the above change.
16ef9c56
KH
1155 (set_conversion_work_buffer): If the work buffer is already in
1156 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 1157 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
1158 (run_pre_write_conversin_on_c_str): Likewise.
1159
098e1273
KS
11602005-07-13 Kim F. Storm <storm@cua.dk>
1161
010b9a45
KS
1162 * xdisp.c (start_display): Don't reseat to next visible line start
1163 if current start position is in a string or image.
1164 (move_it_vertically_backward): Be sure to move out of strings and
1165 images when moving it2 forward.
1166 (move_it_by_lines): When moving forward, move to next buffer
1167 position if we end up in a string or image. When moving backward,
1168 count rows moved over when moving to start of current row in case
1169 row starts in middle of a string or image. Also move further
1170 backward if we end up in a string or image.
bcd98331 1171 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
1172 move backward to set cursor on start of an overlay string.
1173 (cursor_row_p): Row is ok if cursor is at newline from string, but
1174 string starts on this line (so we always position cursor at start
1175 of string).
1176
1177 * indent.c (Fvertical_motion): If start position is on an image,
1178 don't move back if we move too far (that's almost certain to happen).
1179
098e1273
KS
1180 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
1181 row in minibuffer windows.
1182 (try_window): Don't check margins in minibuffer windows.
1183
c229fb15
YM
11842005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1185
1186 * macterm.c: Don't include stdlib.h or composite.h.
1187 (x_use_underline_position_properties, last_mouse_press_frame)
1188 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
1189 (syms_of_macterm, mac_initialize): Don't initialize them.
1190 (waiting_for_input, initial_argv, initial_argc)
1191 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
1192 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
1193 (extra_keyboard_modifiers): Fix type in extern.
1194 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
1195 (x_scroll_bar_report_motion): Add argument types to declaration.
1196 (mac_compute_glyph_string_overhangs): Add declaration.
1197 (disable_mouse_highlight): Remove unused variable.
1198 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
1199 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
1200 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
1201 All callers changed.
c229fb15
YM
1202 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
1203 timestamp.
1204 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
1205 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
1206 only when its width is less than the height.
1207 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
1208 (font_name_table, font_name_table_size, font_name_count):
1209 Make static.
c229fb15
YM
1210 (drag_and_drop_file_list): Remove variable. Previous use is now
1211 local to function.
1212 (do_ae_open_documents): Move DRAG_N_DROP event construction part
1213 from XTread_socket.
bcd98331
SM
1214 (XTread_socket): Consolidate setting of event timestamp.
1215 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
1216 Support extra_keyboard_modifiers.
1217
1218 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
1219 beginning with that for ASCII.
1220
69d05d83
SM
12212005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1222
1223 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
1224 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
1225 (syms_of_alloc): Declare gc-cons-percentage.
1226
1227 * eval.c (Feval, Ffuncall):
1228 * keyboard.c (read_char):
1229 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
1230
1231 * lisp.h (gc_cons_combined_threshold): Declare.
1232
5c7f9de1
KS
12332005-07-12 Kim F. Storm <storm@cua.dk>
1234
1235 * coding.c (Qprocess_argument):
1236 * coding.h (Qprocess_argument): Remove unused var.
1237
1238 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
1239
c37efb7a
YM
12402005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1241
1242 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
1243 Endian.h.
1244 [!MAC_OSX] (fchmod, fchown): New functions.
1245 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
1246 Use SBYTES and EndianU32_BtoN.
1247 (mac_get_object_from_code): Return 4 byte string even if argument
1248 is 0. Use make_unibyte_string and EndianU32_NtoB.
1249 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1250 (Fmac_set_file_type): Fix documents and argument declarations.
1251 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
1252
a4429c5b
SM
12532005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1254
1255 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
1256
a2d7e722
JD
12572005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1258
1259 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
1260 Lucid if X_I18N, font otherwise.
1261
9a4183e9
ST
12622005-07-10 Steven Tamm <steventamm@mac.com>
1263
a4429c5b
SM
1264 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
1265 (Fmac_set_file_type, Fmac_set_file_creator): Add.
1266 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 1267
51f74c37
RS
12682005-07-10 Richard M. Stallman <rms@gnu.org>
1269
1270 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
1271 (syms_of_lread): Set up eval-buffer-list.
1272 (Feval_buffer, Feval_region): Bind eval-buffer-list.
1273
93c7da4c
RS
12742005-07-08 Richard M. Stallman <rms@gnu.org>
1275
1276 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
1277
64af5917
KS
12782005-07-08 Kim F. Storm <storm@cua.dk>
1279
1280 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
1281 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
1282
a96b333c
KS
12832005-07-07 Kim F. Storm <storm@cua.dk>
1284
1285 * window.c (Frecenter): Fix last change (set iarg before use).
1286
dc2204be
RS
12872005-07-06 Richard M. Stallman <rms@gnu.org>
1288
1289 * window.c (Frecenter): When arg is inside the scroll margin,
1290 move it out of the margin.
1291
3fb1d72b
JR
12922005-07-06 Jason Rumney <jasonr@gnu.org>
1293
1294 * w32console.c (initialize_w32_display): Detect when the console
1295 dimensions are insane, and default to 80x25 instead.
a4429c5b 1296 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 1297
dd15724d
YM
12982005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1299
1300 * macterm.c (mac_draw_vertical_window_border): Use foreground of
1301 VERTICAL_BORDER_FACE_ID for vertical border line.
1302 (mac_encode_char): Call check_ccl_update in advance.
1303 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
1304 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
1305 Don't assume that font family length is less than 32.
dd15724d
YM
1306 (x_compute_min_glyph_bounds): Make static.
1307 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 1308
68003d6b
LK
13092005-07-04 Lute Kamstra <lute@gnu.org>
1310
dc2204be 1311 * Update FSF's address in GPL notices.
68003d6b 1312
3d393029
RS
13132005-07-03 Richard M. Stallman <rms@gnu.org>
1314
1315 * xdisp.c (try_window): Fix previous change in how it handles
1316 a partially-visible line or one only partly past the margin.
1317
1318 * window.c (window_scroll_pixel_based): Take account
1319 of this_scroll_margin when finding point when scrolling up.
1320
13212005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
1322
1323 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1324 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
1325 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
1326
d6951bb4
EZ
13272005-07-02 Juri Linkov <juri@jurta.org>
1328
1329 * w32term.c (w32_draw_vertical_window_border): Use foreground of
1330 VERTICAL_BORDER_FACE_ID for vertical border line.
1331
b016179b
EZ
13322005-07-02 Eli Zaretskii <eliz@gnu.org>
1333
1334 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
1335 fchmod so that chmod doesn't get called on MSDOS before the file
1336 is closed.
1337
c2baa2b6
JR
13382005-07-01 Jason Rumney <jasonr@gnu.org>
1339
1340 * w32term.c (cleartype_active): New flag for enabling sub-pixel
1341 workaround.
1342 (w32_initialize): Initialize it.
1343 (w32_native_per_char_metric): Allow a couple of extra pixels when
1344 Cleartype is active.
1345
1346 * w32term.c (w32_initialize): Move check for screen reader here
1347 from syms_of_w32term.
1348
a6d0ae55
JD
13492005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1350
1351 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
1352 is not zero.
1353
711877f3
MY
13542005-07-01 Masatake YAMATO <jet@gyve.org>
1355
a4429c5b 1356 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 1357
63f7ffb3
JL
13582005-06-30 Juri Linkov <juri@jurta.org>
1359
1360 * xdisp.c (x_draw_vertical_border): If left fringe is not present
1361 decrease x coord of vertical border by 1 pixel to not occupy text
1362 area of the right window.
1363
1364 * xterm.c (x_draw_vertical_window_border): Use foreground of
1365 VERTICAL_BORDER_FACE_ID for vertical border line.
1366
1367 * term.c (turn_on_face): In standout mode apply specified
1368 fg to bg, and specified bg to fg (this makes the logic of
1369 inversion on terminal consistent with X).
1370
b26860ad
JB
13712005-06-29 Juanma Barranquero <lekktu@gmail.com>
1372
1373 * eval.c (user_variable_p_eh): New function.
1374 (Fuser_variable_p): Use it. Clarify docstring.
1375 Return t for aliases of user options, nil for alias loops.
1376
3a1f1d79
RS
13772005-06-27 Richard M. Stallman <rms@gnu.org>
1378
1379 * eval.c (Fdefvar): Improve error message.
1380
92de1e01
YM
13812005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1382
1383 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
1384 change.
1385
69410484
JB
13862005-06-27 Juanma Barranquero <lekktu@gmail.com>
1387
1388 * eval.c (Fdefvar): Don't try to set constant symbols.
1389
09352e8f
RS
13902005-06-25 Richard M. Stallman <rms@gnu.org>
1391
a68d870b
RS
1392 * macfns.c (Fx_show_tip): Pass new arg to try_window.
1393
1394 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
1395
1396 * xfns.c (Fx_show_tip): Pass new arg to try_window.
1397
1398 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
1399 (redisplay_window): Handle try_window reporting point in scroll margin.
1400
1401 * dispextern.h (try_window): Declare new arg.
1402
1403 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
1404 Use fchmod to copy the file modes.
1405 (Frename_file): Don't copy UID and GID here;
1406 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
1407
df13531d
RS
1408 * eval.c (call_debugger): Take full care of extending stack limits
1409 to make space for the debugger, and restore the change afterward.
1410 Bind debug-on-error to nil.
1411 (restore_stack_limits): New subroutine.
1412 (Fsignal): Extend specpdl bound along with eval depth bound,
1413 for calling edebug. Don't do either one, for calling debugger.
1414 (find_handler_clause): Don't bind debug-on-error here.
1415 Don't unbind anything either.
1416 Temporarily advance max_specpdl_size for calling
1417 internal_with_output_to_temp_buffer.
1418 (grow_specpdl): Don't alter max_specpdl_size before signaling
1419 an error.
1420 (syms_of_eval) <max-specpdl-size>: Doc fix.
1421
09352e8f
RS
1422 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
1423
90296dd3
EZ
14242005-06-24 Eli Zaretskii <eliz@gnu.org>
1425
1426 * fileio.c (Frename_file): Undo last change: no need to ifdef away
1427 chown on DOS_NT platforms.
1428
1429 * w32.c (sys_chown): New function.
1430
1431 * s/ms-w32.h (chown): New; define to sys_chown.
1432
c4f6ca24
JB
14332005-06-24 Juanma Barranquero <lekktu@gmail.com>
1434
3338c0ad
JB
1435 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
1436 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
1437
9a1505e9 1438 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 1439
528b6abc
RS
14402005-06-23 Richard M. Stallman <rms@gnu.org>
1441
1442 * xdisp.c (get_next_display_element): Finish reversing the tests of
1443 Vnobreak_char_display.
1444
9a1505e9 1445 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 1446 All uses changed.
9a1505e9 1447 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
1448 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
1449
1450 * fileio.c (Frename_file): Preserve owner and group, if possible,
1451 when copying.
1452
1d1c7e75
JB
14532005-06-23 Juanma Barranquero <lekktu@gmail.com>
1454
253b2298
JB
1455 * abbrev.c (Funexpand_abbrev):
1456 * category.c (Fmake_category_set):
1457 * dispnew.c (Fsleep_for, Fsit_for):
1458 * editfns.c (Fsubst_char_in_region):
1459 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
1460 * frame.c (make_frame_without_minibuffer):
1461 * lread.c (read_vector):
1462 * macfns.c (check_x_frame):
1463 * process.c (Fstop_process, Fcontinue_process):
1464 * search.c (Freplace_match):
1465 * syntax.c (Fstring_to_syntax):
1466 * w32fns.c (check_x_frame, check_x_display_info):
1467 * xfaces.c (x_supports_face_attributes_p):
1468 * xselect.c (Fx_own_selection_internal): Follow error conventions.
1469
1d1c7e75
JB
1470 * image.c (fn_png_init_io): Don't define it.
1471 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
1472 (png_read_from_file): New function, based on png_read_from_memory.
1473 (png_load): Use it, instead of fn_png_init_io.
1474
d1fab151
KS
14752005-06-23 Kim F. Storm <storm@cua.dk>
1476
1477 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 1478 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
1479 Add commentary explaining evaporate arg (for internal use only).
1480 (unwind_set_match_data): Add comment on evaporate use.
1481
53abc3bf
MB
14822005-06-22 Miles Bader <miles@gnu.org>
1483
a4429c5b 1484 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
1485 (realize_basic_faces, syms_of_xfaces): Update references to it.
1486 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
1487 to `VERTICAL_BORDER_FACE_ID'.
1488 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
1489
36a3b076
JL
14902005-06-21 Juri Linkov <juri@jurta.org>
1491
1492 * dispextern.h: Add extern Qframe_set_background_mode.
1493
1494 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
1495 Qframe_set_background_mode.
1496
1497 * frame.c (Fmodify_frame_parameters):
1498 Call frame-set-background-mode after changing the background color
1499 on non-window non-dos branch.
1500
23873c96
JB
15012005-06-21 Juanma Barranquero <lekktu@gmail.com>
1502
1503 * fns.c (Fchar_table_range):
1504 * process.c (Fmake_network_process): Fix spellings.
1505
b7d1f38f
KS
15062005-06-20 Kim F. Storm <storm@cua.dk>
1507
1508 * fns.c (Fsort): Doc fix.
1509
b4e49aee
MB
15102005-06-20 Miles Bader <miles@gnu.org>
1511
1512 * xfaces.c (Qvertical_divider): New variable.
1513 (realize_basic_faces): Realize its face.
1514 (syms_of_xfaces): Initialize it.
1515
1516 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
1517
1518 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
1519 window-separator on ttys using `vertical-divider' face by default.
1520
b7da00ba
RS
15212005-06-17 Richard M. Stallman <rms@gnu.org>
1522
a4429c5b
SM
1523 * xdisp.c (get_next_display_element):
1524 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
1525
1526 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
1527 (Ftty_no_underline): New function.
1528 (syms_of_term): defsubr it.
b7d1f38f 1529
b7da00ba
RS
1530 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
1531
1532 * dispnew.c (spec_glyph_lookup_face): New function.
1533 (build_frame_matrix_from_leaf_window): Use it.
1534
1535 * dispextern.h (spec_glyph_lookup_face): Add declaration.
1536
1537 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1538
15392005-06-12 Richard M. Stallman <rms@gnu.org>
1540
1541 * keyboard.c (read_char): After catching a longjmp,
1542 call restore_getcjmp.
1543
289824a3
JB
15442005-06-17 Juanma Barranquero <lekktu@gmail.com>
1545
1546 * xselect.c (lisp_data_to_selection_data): Fix spelling.
1547
95085023
YM
15482005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1549
1550 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
1551 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
1552 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
1553 events.
1554 (XTread_socket): Don't pass keyboard events with the option
1555 modifier to the system when Vmac_command_key_is_meta is nil or
1556 Vmac_option_modifier is non-nil.
1557 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
1558 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
1559 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
1560 handler function.
1561 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
1562 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
1563 handler part to mac_handle_mouse_event.
1564
4a9308b8
JB
15652005-06-14 Juanma Barranquero <lekktu@gmail.com>
1566
1567 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
1568 NEW-ALIAS and BASE-VARIABLE, respectively.
1569
5aa6db57
SM
15702005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1571
1572 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1573 (get_phys_cursor_geometry, format_mode_line_unwind_data)
1574 (get_line_height_property, x_produce_glyphs): Remove unused vars.
1575
1576 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
1577
0e0dddda
EZ
15782005-06-13 Eli Zaretskii <eliz@gnu.org>
1579
1580 * w32term.c (x_use_underline_position_properties): New variable.
1581 (x_draw_glyph_string): Remind in a comment to change doc string of
1582 x-use-underline-position-properties if/when underline positioning
1583 is implemented.
1584 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
1585 and initialize it to nil.
1586
7f2b4738
JR
15872005-06-12 Jason Rumney <jasonr@gnu.org>
1588
1589 * w32fns.c (NEWOPENFILENAME): New struct.
1590 (Fx_file_dialog): Use it to trick the system into giving us up to
1591 date dialogs on systems that are documented to support it.
1592 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
1593
a1e8cad6
EZ
15942005-06-12 Eli Zaretskii <eliz@gnu.org>
1595
1596 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
1597 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
1598
099a3eea
EZ
15992005-06-11 Eli Zaretskii <eliz@gnu.org>
1600
2e09fef1
EZ
1601 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
1602 to CreateDIBSection to avoid a compiler warning.
1603 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
1604 warning.
1605 (png_load): Cast return values of fn_png_create_read_struct and
1606 fn_png_create_info_struct, to avoid compiler warnings on W32.
1607 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
1608 to avoid compiler warnings.
1609 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
1610 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
1611 avoid a compiler warning.
1612 (tiff_load): Cast return values of fn_TIFFOpen and
1613 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
1614 to IMAGE_BACKGROUND to avoid a compiler warning.
1615 (gif_load): Cast return values of fn_DGifOpenFileName and
1616 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
1617 IMAGE_BACKGROUND to avoid a compiler warning.
1618 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
1619 before redefining.
1620
099a3eea
EZ
1621 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
1622 the call to CreateDIBSection, to avoid a compiler warning.
1623
d11f8e1a
JR
16242005-06-11 Jason Rumney <jasonr@gnu.org>
1625
1626 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
1627 minibuffer.
1628 * macfns.c (Fx_file_dialog): Likewise.
1629
cd4344a3
EZ
16302005-06-10 Eli Zaretskii <eliz@gnu.org>
1631
1632 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
1633
578c1340
JB
16342005-06-10 Juanma Barranquero <lekktu@gmail.com>
1635
1636 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
1637 * w32fns.c (syms_of_w32fns): Fix spellings.
1638
4162f25f
EZ
16392005-06-10 Eli Zaretskii <eliz@gnu.org>
1640
1641 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
1642 `verbose'; print diagnostic messages only if it is non-zero.
1643 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
1644 in the environment.
1645 (copy_executable_and_dump_data): Print section names with %.8s.
1646
121c59a3
MY
16472005-06-10 Masatake YAMATO <jet@gyve.org>
1648
1649 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
1650 when mouse_face is not given.
121c59a3 1651
c869384d
LT
16522005-06-09 Luc Teirlinck <teirllm@auburn.edu>
1653
1654 * window.c (Fselect_window): Adapt call to Fselect_frame.
1655
1656 * lisp.h: Update EXFUN of Fselect_frame.
1657
1658 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
1659
6ecf436d
LT
1660 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
1661 no_enter.
1662 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
1663 Adapt to above change.
1664
c14ec135
JB
16652005-06-10 Juanma Barranquero <lekktu@gmail.com>
1666
1667 * fns.c (Fmemq, Fmaphash): Doc fixes.
1668
9fed2905
JB
16692005-06-09 Juanma Barranquero <lekktu@gmail.com>
1670
1671 * xfaces.c (Fdisplay_supports_face_attributes_p):
1672 Fix typo in docstring.
1673
427c5b1b
ST
16742005-06-08 Steven Tamm <steventamm@mac.com>
1675
1676 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
1677 used by gcc4 on intel mac.
1678
b7aae902
KS
16792005-06-09 Kim F. Storm <storm@cua.dk>
1680
1681 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
1682 in REUSE list if non-nil; free them if equal to evaporate.
1683 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
1684 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
1685 (restore_search_regs): Rename from restore_match_data. Uses changed.
1686 (unwind_set_match_data): New function.
1687 (record_unwind_save_match_data): New function like save-match-data.
1688
1689 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
1690 (record_unwind_save_match_data): Add prototype.
1691 (restore_search_regs): Rename from restore_match_data.
1692
1693 * composite.c (compose_chars_in_text):
1694 * eval.c (do_autoload):
1695 * macmenu.c (set_frame_menubar):
1696 * process.c (read_process_output, exec_sentinel):
1697 * xmenu.c (set_frame_menubar):
1698 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
1699 * w32menu.c (set_frame_menubar):
1700 Use record_unwind_save_match_data.
1701
547d2b37
RS
17022005-06-08 Richard M. Stallman <rms@gnu.org>
1703
1704 * xdisp.c (get_next_display_element): Alter previous change:
1705 Distinguish Vshow_nonbreak_escape = t or not t.
1706 For t, use escape_glyph once again, as before previous change.
1707 Use space or hyphen for display, instead of the non-ASCII char.
1708 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
1709
1710 * process.c (Fstart_process): Don't touch command_channel_p slot.
1711
99598737 1712 * process.h (struct process): Delete command_channel_p.
547d2b37 1713
602907ae
MY
17142005-06-07 Masatake YAMATO <jet@gyve.org>
1715
5aa6db57
SM
1716 * xdisp.c (note_mode_line_or_margin_highlight):
1717 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 1718 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
1719 is not ON_MODE_LINE nor ON_HEADER_LINE.
1720
8b793bed
KS
17212005-06-07 Kim F. Storm <storm@cua.dk>
1722
1723 * process.c: Improve commentary for adaptive read buffering.
1724
3d031334
SM
17252005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
1726
1727 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
1728 if available.
1729
16d2e704
JD
17302005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1731
5aa6db57
SM
1732 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1733 New functions for popping down menus on C-g.
16d2e704
JD
1734 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
1735
1736 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
1737 non-static.
1738
9fed2905 1739 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 1740
b6cc2ad0
EZ
17412005-06-06 Eli Zaretskii <eliz@gnu.org>
1742
9a1505e9 1743 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 1744
5aa6db57 1745 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
1746
1747 * w32proc.c (RVA_TO_PTR): New macro.
1748
1749 * w32heap.c (RVA_TO_PTR): No need to #undef now.
1750
1751 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
1752 Depend on w32heap.h.
1753
24e55feb
LT
17542005-06-06 Luc Teirlinck <teirllm@auburn.edu>
1755
1756 * keyboard.c (command_loop_1): Update Vthis_original_command.
1757
ce6e10af
RS
17582005-06-06 Richard M. Stallman <rms@gnu.org>
1759
1760 * xmenu.c (popup_get_selection): Undo previous change.
1761
c476bcb0
JL
17622005-06-06 Juri Linkov <juri@jurta.org>
1763
1764 * xdisp.c (Qno_break_space): New variable.
1765 (syms_of_xdisp): Initialize it.
1766 (get_next_display_element): Add no-break space and soft hypen
1767 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
1768 Use `no-break-space' face for no-break spaces.
1769
5494d7bc
JD
17702005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1771
1772 * window.c (delete_window): Handle the case where a h/vchild has
1773 a h/vchild.
1774
a0c38328
EZ
17752005-06-05 Eli Zaretskii <eliz@gnu.org>
1776
1777 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
1778 call to pfn_setsockopt, cast optval to `const char *'.
1779
91018229
EZ
17802005-06-04 Eli Zaretskii <eliz@gnu.org>
1781
1a8fb426
EZ
1782 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
1783 (open_unc_volume): Cast return value of map_w32_filename, to avoid
1784 compiler warnings.
1785
b6f0a397
EZ
1786 * s/ms-w32.h (fileno): Don't define if already defined.
1787
17a7c5c2 1788 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 1789
91018229
EZ
1790 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
1791
196ac78c
RS
17922005-06-04 Richard M. Stallman <rms@gnu.org>
1793
1794 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
1795
b8987570
JD
17962005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1797
1798 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 1799 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
1800 mac_menu_show Quit:s.
1801 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
1802 a dialog).
1803
555228aa
KS
18042005-06-04 Kim F. Storm <storm@cua.dk>
1805
1806 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
1807
1808 * callproc.c (Fcall_process): Don't use alloca to gradually
1809 increase size of buf, as it effectively uses twice the necessary
1810 space on the stack. Instead, pre-allocate buf of full size, and
1811 gradually increase the read size.
1812
1813 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
1814
1815 * eval.c (unbind_to): Preserve value of Vquit_flag.
1816
1817 * xterm.c (handle_one_xevent): Also ignore mouse motion just
1818 before a button release event.
1819
6312e5f7
JB
18202005-06-03 Juanma Barranquero <lekktu@gmail.com>
1821
1822 * xfaces.c (Finternal_lisp_face_equal_p): Really report
1823 on faces in a frame, if the argument FRAME is non-nil.
1824 Improve argument/docstring consistency.
1825
0493f7be
KS
18262005-06-02 Kim F. Storm <storm@cua.dk>
1827
1828 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
1829 (x_consider_frame_title, Fformat_mode_line): Save offset into
1830 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
1831
89fe657e
KS
18322005-06-01 Kim F. Storm <storm@cua.dk>
1833
1834 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
1835
02a6375c
YM
18362005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1837
1838 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
1839 resolution fields for scalable fonts to 0.
1840
1841 * xfaces.c (build_scalable_font_name): Round pixel size to the
1842 nearest integer.
1843
95d4fad8
KS
18442005-06-01 Kim F. Storm <storm@cua.dk>
1845
1846 * xdisp.c (display_mode_line): Support nested calls to redisplay
1847 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
1848
3c1b433a
SM
18492005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1850
1851 * fileio.c (Finsert_file_contents):
1852 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1853
13cc7d61
KS
18542005-05-31 Kim F. Storm <storm@cua.dk>
1855
1856 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
1857 (mode_line_noprop_ptr): Rename from frame_title_*.
1858 (store_mode_line_noprop_char): Rename from store_frame_title_char.
1859 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 1860 (mode_line_target): New enum to specify current output target
13cc7d61
KS
1861 for mode line formatting.
1862 (display_mode_element): Test it rather than frame_title_ptr and
1863 mode_line_string_list to determine where output should go.
1864 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
1865 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
1866 (format_mode_line_unwind_data, unwind_format_mode_line):
1867 New functions for unwind protection in mode line formatting.
13cc7d61 1868 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
1869 to support nested calls to format-mode-line and redisplay.
1870 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 1871 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
1872 support nested calls to format-mode-line and redisplay.
1873 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 1874 Don't trim trailing dashes.
13cc7d61
KS
1875 (decode_mode_spec): Don't make infinite number of trailing dashes
1876 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
1877 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
1878 mode_line_string_face_prop, and Vmode_line_unwind_vector.
1879 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
1880 Initialize mode_line_target to MODE_LINE_DISPLAY.
1881
c16b1394
RS
18822005-05-29 Richard M. Stallman <rms@gnu.org>
1883
1884 * buffer.c (Fbuffer_local_value): Call indirect_variable.
1885
edfaeb4e
MY
18862005-05-28 Masatake YAMATO <jet@gyve.org>
1887
1888 * xdisp.c (note_mode_line_or_margin_highlight): Change the
1889 pointer to a hand cursor when hoovering over a mouse-face.
1890
7cf49add
KH
18912005-05-27 Kenichi Handa <handa@m17n.org>
1892
1893 * xterm.c (x_encode_char): Call check_ccl_update in advance.
1894
1895 * ccl.c: Now an element of Vccl_program_table is a vector of
1896 length 4, not 3.
3c1b433a
SM
1897 (ccl_get_compiled_code): New arg idx. Caller changed.
1898 Adjust for the change of Vccl_program_table.
1899 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
1900 (check_ccl_update): New function.
1901 (Fregister_ccl_program): Use ASET to set an element of a vector.
1902 Adjusted for the change of Vccl_program_table.
1903
1904 * ccl.h (struct ccl_program): New member idx.
1905 (check_ccl_update): Extern it.
1906
5e2ad10b
JB
19072005-05-27 Juanma Barranquero <lekktu@gmail.com>
1908
3c1b433a 1909 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
1910 (syms_of_image): Defvar it.
1911 (lookup_image_type): Use it.
1912
5e2ad10b
JB
1913 * buffer.c (Fbuffer_local_value): Make argument name match its use
1914 in docstring.
1915
6e604a9b
JB
19162005-05-26 Juanma Barranquero <lekktu@gmail.com>
1917
1918 * keyboard.c (Frecursive_edit): Fix typo in docstring.
1919 (Fposn_at_x_y): Make argument name match its use in docstring.
1920
59244a3f
LK
19212005-05-26 Lute Kamstra <lute@gnu.org>
1922
1923 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
1924
55ce5058
MY
19252005-05-24 Masatake YAMATO <jet@gyve.org>
1926
1927 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
1928 as loop sentinels.
1929
cb5db137
NR
19302005-05-24 Nick Roberts <nickrob@snap.net.nz>
1931
1932 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
1933 select frame title ("Question"/"Information").
1934 (xdialog_show): Use it.
1935
13dcfc35
NR
1936 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
1937
1938 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
1939
d3393daa
NR
1940 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
1941 a third argument (Qnil).
1942
1943 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
1944
1945 * editfns.c (Fmessage_box): Use "Information" for frame title.
1946
71d4fba1
TTN
19472005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
1948
1949 * termcap.c [VMS]: Include <starlet.h>.
1950
359e4563
MY
19512005-05-23 Masatake YAMATO <jet@gyve.org>
1952
6e604a9b
JB
1953 * xdisp.c (note_mode_line_or_margin_highlight): Add code
1954 for mouse-face. Change the type of the first argument from `window'
1955 to `Lisp_Object'.
359e4563
MY
1956 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
1957 window instead of w.
1958
edceb51c
AS
19592005-05-22 Andreas Schwab <schwab@suse.de>
1960
41c4895c 1961 * process.c (send_process): Move misplaced volatile.
edceb51c 1962
5c213fcc
RS
19632005-05-21 Richard M. Stallman <rms@gnu.org>
1964
1965 * xdisp.c (display_mode_element): If we're processing a list and
1966 padding is specified, put it after the last element.
1967
aa4060b9
EZ
19682005-05-21 Eli Zaretskii <eliz@gnu.org>
1969
1970 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
1971 "superroot" on DOS_NT systems.
1972
a2c9aee6
EZ
19732005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
1974
1975 * process.c (send_process): Restore the SIGPIPE handler if we
1976 catch a SIGPIPE.
1977
09e8eb5b
JB
19782005-05-20 Juanma Barranquero <lekktu@gmail.com>
1979
1980 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
1981 misleading comments).
1982 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
1983
f3fbdb1f
LK
19842005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1985
1986 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
1987 Correct the right value.
1988
639ec765
NR
19892005-05-19 Nick Roberts <nickrob@snap.net.nz>
1990
240d926e 1991 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
1992 post-command-idle-hook and post-command-idle-delay.
1993 (command_loop_1): Don't try to execute post-command-idle-hook.
1994
03d42907
KS
19952005-05-16 Kim F. Storm <storm@cua.dk>
1996
1cb83e13
KS
1997 * xdisp.c (handle_display_prop): Handle empty replacement.
1998 (handle_single_display_spec): Return -1 for empty replacement.
1999
2000 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
2001
03d42907
KS
2002 * .gdbinit (pitx): Print more info about iterator.
2003
0da46b6e
AS
20042005-05-16 Andreas Schwab <schwab@suse.de>
2005
3c1b433a 2006 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 2007
d06ba294
RS
20082005-05-14 Richard M. Stallman <rms@gnu.org>
2009
2010 * xdisp.c (message3): Call cancel_echoing.
2011
2012 * alloc.c (Fmemory_full_p): New function.
2013 (syms_of_alloc): defsubr it.
2014
2015 * process.c (send_process_trap): Unblock SIGPIPE.
2016 (send_process): Reset SIGPIPE handler before reporting error.
2017
90713743
NR
20182005-05-14 Nick Roberts <nickrob@snap.net.nz>
2019
2020 * emacs.c (syms_of_emacs): Fix doc string for system-type.
2021
68780e2a
RS
20222005-05-13 Richard M. Stallman <rms@gnu.org>
2023
2024 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
2025 (Finsert_file_contents): If we read 0 bytes from a special file,
2026 unlock the visited file if we locked it.
2027 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 2028 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 2029
5063dbbf
YM
20302005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2031
2032 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
2033
3c1b433a
SM
2034 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
2035 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
2036 redisplay from being paused by them.
2037
2038 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
2039 [!MAC_OSX] (target_ticks): Remove variable.
2040 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
2041 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
2042 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 2043 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
2044 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
2045 handling using Time Manager routines.
3c1b433a
SM
2046 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
2047 New variables.
5063dbbf
YM
2048 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
2049 (setitimer): New functions.
2050
2051 * macfns.c, macmenu.c: Don't include signal.h.
2052
2053 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
2054 Rename from get_control_part_bound. All callers changed.
2055 (x_scroll_bar_clear): New function.
2056 (x_clear_frame): Use it.
2057 (XTset_vertical_scroll_bar): Don't call Draw1Control.
2058 (x_scroll_bar_handle_click): Change type of second argument from
2059 int to ControlPartCode.
2060 (check_alarm): Remove declaration.
02a6375c
YM
2061 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
2062 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
2063
20642005-05-13 Nozomu Ando <nand@mac.com>
2065
2066 * unexmacosx.c: Include assert.h.
2067 (MACOSX_MALLOC_MULT16): New define.
2068 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
2069 ptr is in unexec regions by checking it is multiple of 16.
2070 (unexec_malloc_header_t): New typedef.
2071 (unexec_malloc, unexec_realloc, unexec_free): Store and use
2072 allocated size information in unexec_malloc_header.
2073
d101bf56
RS
20742005-05-10 Richard M. Stallman <rms@gnu.org>
2075
2076 * xterm.c (noinclude): Add #undef.
2077
2078 * image.c, xfns.c, xmenu.c: Don't include signal.h.
2079
2f60660a
JB
20802005-05-09 Juanma Barranquero <lekktu@gmail.com>
2081
f1701e65
JB
2082 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
2083 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
2084 Doc fixes.
2085
2f60660a
JB
2086 * dired.c (Ffile_name_completion): Make argument name
2087 match its use in docstring.
2088
9f29e806
LT
20892005-05-08 Luc Teirlinck <teirllm@auburn.edu>
2090
2091 * eval.c (Fdefvaralias): Remove any pre-existing
2092 variable-documentation property of the alias.
2093
a790bcd4
TTN
20942005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
2095
2096 * xfns.c (start_hourglass): Do nothing when running on a tty.
2097
d5fb8dab
JB
20982005-05-07 Juanma Barranquero <lekktu@gmail.com>
2099
2100 * fns.c (Fchar_table_range): Fix typos in docstring.
2101
7ec64183
SM
21022005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
2105
6ff95f1d
EZ
21062005-05-06 Eli Zaretskii <eliz@gnu.org>
2107
2c6b25c7
EZ
2108 * lread.c (Flocate_file_internal): Doc fix.
2109
6ff95f1d
EZ
2110 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
2111
17d28d26
YM
21122005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2113
2114 * macselect.c (x_own_selection): Accept Lisp string as result of
2115 selection converter function.
2116 (x_clear_frame_selections): Don't call x-lost-selection-functions
2117 if Emacs is not owner of the selection.
2118 (Vmac_services_selection): Put variable and initialization in
2119 #ifdef MAC_OSX.
2120 (syms_of_macselect) [MAC_OSX]: Set default value of
2121 Vmac_services_selection to PRIMARY.
2122
7ec64183
SM
2123 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
2124 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
2125 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
2126 (install_scroll_bar_timer, set_scroll_bar_timer)
2127 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
2128 (get_control_part_bound, x_scroll_bar_handle_press)
2129 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
2130 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
2131 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
2132 (scroll_bar_timer_event_posted_p): New variables.
2133 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
2134 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
2135 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
2136 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2137 Initialize track_top and track_height to nil.
2138 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
2139 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
2140 (XTset_vertical_scroll_bar): Don't make space between scroll bar
2141 and associated window.
2142 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
2143 from window config.
7ec64183
SM
2144 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2145 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
2146 Recalculate them if they are nil.
2147 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
2148 clicked control is a scroll bar.
2149 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
2150 event handler functions. Don't add modifiers to scroll bar click
7ec64183 2151 events. Call scroll bar release handler when window is deactivated.
17d28d26 2152 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
2153 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
2154 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 2155
7ec64183
SM
2156 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2157 New members track_top and track_height.
17d28d26
YM
2158
2159 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
2160 init_process when including sys/select.h.
2161
643b4cf5
LT
21622005-05-05 Luc Teirlinck <teirllm@auburn.edu>
2163
2164 * eval.c (Fdefvaralias): Doc fix.
2165
2166 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2167
99bda128
KS
21682005-05-05 Kim F. Storm <storm@cua.dk>
2169
2170 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
2171 default value.
2172 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
2173 Fix type of cursor-in-non-selected-windows.
2174
3a3563e9
JD
21752005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2176
2177 * mac.c: #undef init_process so not to conflict with system headers.
2178
0124c5bd
RS
21792005-05-02 Richard M. Stallman <rms@gnu.org>
2180
2181 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
2182
2183 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
2184
2185 * xdisp.c (Vcursor_in_non_selected_windows)
2186 (Qcursor_in_non_selected_windows): Vars deleted.
2187 (syms_of_xdisp): Don't initialize them.
2188 (get_window_cursor_type): Use cursor_in_non_selected_windows
2189 buffer slot.
2190
4b3f161f
KS
21912005-05-02 Kim F. Storm <storm@cua.dk>
2192
e40527dc
KS
2193 * macros.c (executing_kbd_macro_index): Rename from
2194 executing_macro_index. All uses changed.
2195 (executing_kbd_macro_iterations): Rename from
2196 executing_macro_iterations. All uses changed.
2197 (executing_kbd_macro): Rename from executing_macro.
2198 All uses changed.
2199 (syms_of_macros): Rename Lisp var executing-macro-index to
2200 executing-kbd-macro-index.
2201
4b3f161f
KS
2202 * xdisp.c (move_it_in_display_line_to): Fix last change.
2203
4d49edf6
LT
22042005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2205
f6b1b15a
LT
2206 * xmenu.c (Fx_popup_menu): Doc fix.
2207
4d49edf6
LT
2208 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
2209
4a766fe6
JR
22102005-05-02 Jason Rumney <jasonr@gnu.org>
2211
2212 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
2213
c924d3ff
TTN
22142005-05-02 Nozomu Ando <nand@mac.com>
2215
2216 * sysselect.h: Fix typo.
2217
b161ea4e 22182005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 2219
b161ea4e
NR
2220 * charset.c (Fchars_in_region): Remove as obsolete.
2221
d37e919d 22222005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
2223
2224 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 2225 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 2226 glyph.
5c2e5a5e 2227
bec0b768
LT
22282005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2229
2230 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
2231
ebbfa918
RS
22322005-05-01 Richard M. Stallman <rms@gnu.org>
2233
2234 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
2235 If user cancels the menu, quit unless FOR_CLICK.
2236
7ec64183 2237 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
2238 All uses changed.
2239 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
2240 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
2241 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
2242 * commands.h (Vexecuting_kbd_macro): Likewise.
2243
a72c2d97
TTN
22442005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
2245
2246 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
2247
7e995a23
RS
22482005-04-30 Richard M. Stallman <rms@gnu.org>
2249
2250 * fileio.c (Ffind_file_name_handler): Handle the `operations'
2251 property of the file name handler.
2252 (Qoperations): New variable.
2253 (syms_of_fileio): Initialize and staticpro it.
2254
2255 * xdisp.c (set_message_1): Delete xassert.
2256
7a92caf8
YM
22572005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2258
7ec64183 2259 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
2260
2261 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
2262
2263 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
2264 before/after including Carbon.h if there is a working mktime.
2265
5ae91803
KS
22662005-04-28 Kim F. Storm <storm@cua.dk>
2267
2268 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
2269 Fix cyclic alias check. If alias loop is detected, signal
2270 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
2271
d79b6c21
LK
22722005-04-28 Lute Kamstra <lute@gnu.org>
2273
2274 * eval.c (do_autoload): Record only autoloads in the autoload
2275 property of symbols.
2276
8c75afbf
NR
22772005-04-28 Nick Roberts <nickrob@snap.net.nz>
2278
2279 * emacs.c (USAGE1): Add --basic-display and --quick options.
2280
832e294f
KS
22812005-04-27 Kim F. Storm <storm@cua.dk>
2282
2283 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
2284
f03f317a
RS
22852005-04-26 Richard M. Stallman <rms@gnu.org>
2286
c019856e
RS
2287 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
2288 (syms_of_window): Doc fixes.
2289
f03f317a
RS
2290 * indent.c (Fvertical_motion): Undo previous change.
2291
38f60cd9
KH
22922005-04-26 Kenichi Handa <handa@m17n.org>
2293
2294 * fns.c (char_table_range): New function.
2295 (Fchar_table_range): Signal an error if characters in the range
2296 have inconsistent values. Don't check the parent.
2297
87ede5a1
KH
22982005-04-25 Kenichi Handa <handa@m17n.org>
2299
2300 * fontset.c (fontset_set): Fix previous change.
2301
a6390474
RS
23022005-04-24 Richard M. Stallman <rms@gnu.org>
2303
2304 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
2305
7fce7dfe
EZ
23062005-04-24 Eli Zaretskii <eliz@gnu.org>
2307
cf1982d9
EZ
2308 * regex.c (re_search_2, re_match_2_internal): Convert second arg
2309 of RE_TRANSLATE to int, to shut up GCC warnings.
2310
7fce7dfe
EZ
2311 * fileio.c (Fcopy_file): Doc fix.
2312 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
2313 not needed.
2314
49ed33c7
YM
23152005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2316
2317 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
2318 (SOME_MACHINE_OBJECTS): Likewise.
2319 (mac.o): Depend on ccl.h.
2320 (macselect.o): New target.
2321
7ec64183
SM
2322 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
2323 Call syms_of_macselect.
49ed33c7
YM
2324
2325 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
2326
7ec64183 2327 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
2328 (QCLIPBOARD): Remove variable.
2329 (syms_of_mac): Don't initialize it.
2330 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
2331 Remove functions.
2332 (syms_of_mac): Don't defsubr them.
2333 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
2334 (QHFS_plus_D, QHFS_plus_C): New variables.
2335 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
2336 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
2337 (cfstring_create_normalized): New functions.
2338 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
2339 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2340
7ec64183
SM
2341 * macterm.c (handling_window_update, terminate_flag):
2342 Remove variables.
2343 (do_window_update, do_ae_quit_application, XTread_socket):
2344 Don't use them.
49ed33c7
YM
2345 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
2346 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
2347 (init_service_handler): Move to macselect.c. Remove declarations.
2348 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
2349 (Qapplication, Qabout): New variables.
2350 (syms_of_mac): Initialize them.
2351 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
2352 (Qperform): New variables.
2353 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 2354 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
2355 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
2356 (mac_store_application_menu_event, init_menu_bar): New functions.
2357 [USE_CARBON_EVENTS] (mac_handle_command_event)
2358 (init_command_handler): New functions.
2359 (mac_handle_window_event): Return noErr on window update event.
2360 (do_ae_quit_application): Call mac_store_application_menu_event.
2361 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
2362 and init_menu_bar.
2363
2364 * macterm.h (x_clear_frame_selections): Add extern.
2365
2366 * macselect.c: New file for selection processing on Mac OS.
2367
469bc679
RS
23682005-04-23 Richard M. Stallman <rms@gnu.org>
2369
2370 * fileio.c (Fcopy_file): New arg MUSTBENEW.
2371 (Frename_file): Pass new arg to Fcopy_file.
2372
2373 * window.c (window_size_fixed): Variable deleted.
2374 (syms_of_window): Initialize window-size-fixed to nil.
2375 But don't DEFVAR window_size_fixed.
2376
d379c558
AS
23772005-04-23 Andreas Schwab <schwab@suse.de>
2378
2379 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
2380 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
2381 use lib64 instead of lib.
2382 (_LP64) [_ARCH_PPC64]: Define if not defined.
2383
007d105b
TTN
23842005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
2385
2386 * s/ms-w32.h (HAVE_PWD_H): Define.
2387
b9c15916
KH
23882005-04-22 Kenichi Handa <handa@m17n.org>
2389
2390 * fns.c (copy_sub_char_table): Explicitly copy the default value
2391 of the sub-chartable.
2392
2393 * fontset.c (fontset_set): When a sub-chartable is created,
2394 explicitly sets the defalt value.
2395
1ba52906
KS
23962005-04-22 Kim F. Storm <storm@cua.dk>
2397
2398 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
2399 (Fsafe_plist_get): Rename to Fplist_get.
2400 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
2401 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
2402
2403 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
2404
2405 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
2406 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2407 Use Fplist_get instead of Fsafe_plist_get.
2408
2409 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
2410
e235145c
MB
24112005-04-21 Miles Bader <miles@gnu.org>
2412
2413 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
2414
766c5349
TTN
24152005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
2416
c164a7e6
TTN
2417 * sysdep.c: Remove reference to defunct vms-pwd.h.
2418 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
2419 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
2420
766c5349
TTN
2421 * config.in: Regenerate.
2422
2b048bf5
KH
24232005-04-20 Kenichi Handa <handa@m17n.org>
2424
2425 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
2426 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
2427 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
2428
2429 * alloc.c (make_sub_char_table): Argument changed to initial
2430 value of the slots.
2431
2432 * data.c (Faref): Handle special slots used as default values of
2433 ascii, eight-bit-control, eight-bit-control. Don't ignore a
2434 default value set for a group of characters.
2435 (Faset): Signal an error if IDXVAL is not a valid character code.
2436 Make a sub-chartable with correct initial value.
2437
2438 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
2439 values for ascii, eight-bit-control, eight-bit-graphic.
2440 Don't call Faref with charset-id.
2b048bf5
KH
2441 (Fset_char_table_default): Document how to treat normal character
2442 argument. Handle special slots used as default values of ascii,
2443 eight-bit-control, eight-bit-control. Make a sub chartable if
2444 necessary.
2445
b0a35939
KH
24462005-04-20 Kenichi Handa <handa@m17n.org>
2447
2448 * search.c (boyer_moore): Fix previous change.
2449
98dde726
KS
24502005-04-19 Kim F. Storm <storm@cua.dk>
2451
2452 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
2453 face unless last visible char and first invisible char have the
2454 same face. Also use default face if saved_face_id is undefined.
2455
327a3376
YM
24562005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2457
2458 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
2459 `full_name'.
2460 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
2461 mac_scriptcode member.
2462
2463 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
2464 (syms_of_mac): Don't initialize them.
2465 (Vmac_charset_info_alist): New variable.
2466 (syms_of_mac): Defvar it.
2467 (create_text_encoding_info_alist): New function.
2468 (decode_mac_font_name, mac_to_x_fontname)
2469 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
2470 code the correspondence among XLFD charsets, Mac script codes, and
2471 Emacs coding systems. Use Vmac_charset_info_alist and result of
2472 create_text_encoding_info_alist instead.
2473 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
2474 routines also on Mac OS Classic.
7ec64183
SM
2475 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
2476 Use add_font_name_table_entry.
327a3376
YM
2477 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
2478 specified. Derive unspecified scalable fields from specified one.
2479 (x_list_fonts): Consider Valternate_fontname_alist.
2480 (kDefaultFontSize): Change value from 9 to 12.
2481 (XLoadQueryFont): Get decoded font family, font face, and charset
2482 from x_font_name_to_mac_font_name. Set full name of loaded font.
2483 (mac_unload_font): Free `full_name' member.
2484 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
2485 NULL. Copy full_name member of struct MacFontStruct to that of
2486 struct font_info.
2487
d0636839
KS
24882005-04-19 Kim F. Storm <storm@cua.dk>
2489
5827e9d4
KS
2490 * xdisp.c (handle_stop): Set saved_face_id to current face if
2491 selective_display_ellipsis_p so ellipsis will be shown in same
2492 face as preceding text.
2493 (setup_for_ellipsis): Don't set saved_face_id here.
2494 (next_element_from_display_vector): Default to saved_face_id.
2495
d0636839
KS
2496 * fns.c (Fsafe_get): New function.
2497 (syms_of_fns): Defsubr it.
2498
2499 * lisp.h (Fsafe_get): EXFUN it.
2500
2501 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
2502 loops in case of bad face property lists. Limit number of face
2503 alias lookups to 10 (in case of face alias loops).
2504
e5c78c9d
KS
25052005-04-18 Kim F. Storm <storm@cua.dk>
2506
2507 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
2508 It replaces the corresponding member from struct window, as a
2509 window may now show multiple overlay arrows.
2510 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
2511
2512 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
2513 Compare overlay_arrow_bitmap than overlay_arrow_p members.
2514
2515 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
2516 rather than from window.
2517 (update_window_fringes): Compare overlay_arrow_bitmap rather than
2518 overlay_arrow_p members.
2519 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
2520 if not default.
2521
2522 * window.h (struct window): Remove member overlay_arrow_bitmap.
2523
2524 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
2525
2526 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
2527 Calls changed. Don't check for overlay-arrow-bitmap property here.
2528 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
2529 fringe is present, return Lisp integer for bitmap (or -1 for default).
2530 Fix value of overlay-arrow-bitmap property to be a symbol, use
2531 lookup_fringe_bitmap to parse it.
2532 (display_line): Change call to overlay_arrow_at_row. Store integer
2533 return value as overlay bitmap in row rather than window.
2534 Only show overlay arrow if row displays text, or if no other overlay
2535 arrow is seen in window (if overlay marker is at point-max).
2536
7d603e3f
TTN
25372005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2538
2539 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
2540
9942fa0c
LK
25412005-04-18 Lute Kamstra <lute@gnu.org>
2542
2543 * lread.c (Vloads_in_progress): Static.
2544 * fns.c (Vloads_in_progress): Remove extern.
2545 (load_in_progress): Add extern.
2546 (Frequire): Use load_in_progress instead of Vloads_in_progress.
2547
999cdb8f
TTN
25482005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2549
2550 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
2551
3f4413f8
YM
25522005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2553
2554 * macterm.c (XTread_socket): Don't beep on keyboard input even if
2555 no frame is visible.
2556
60ec7b7e
DN
25572005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2558
2559 * term.c (struct keys): Add support for shifted keys.
2560
a8a1c0ee
RS
25612005-04-16 Richard M. Stallman <rms@gnu.org>
2562
2563 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
2564 (set_message): Call with_echo_area_buffer with WHICH = 0.
2565 (set_message_1): Erase the echo area buffer first thing.
2566 (echo_area_display): Don't clear echo_message_buffer.
2567
f3cf04d3
YM
25682005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2569
2570 * Makefile.in (mac.o): Depend on charset.h and coding.h.
2571
2572 * mac.c: Include charset.h and coding.h.
2573 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 2574 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
2575 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
2576
2577 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2578
2579 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
2580
2581 * macterm.c (x_autoselect_window_p): Remove variable.
2582 (last_window): New variable.
7ec64183
SM
2583 (XTreassert_line_highlight, x_change_line_highlight):
2584 Remove declarations.
f3cf04d3
YM
2585 (mac_focus_changed, x_detect_focus_change): New functions and
2586 declarations.
2587 (XTextExtents16, front_emacs_window): Remove function.
2588 (mac_focus_frame): New function.
2589 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
2590 (mac_check_for_quit_char): Use it instead of front_emacs_window.
2591 (x_scroll_bar_report_motion): Obtain window from control owner.
2592 (x_make_frame_invisible): Set window manager size hint.
2593 (do_mouse_moved): Remove function.
2594 (XTread_socket): Move its contents here. Generate select-window
2595 event on mouse movement if needed. Use x_detect_focus_change on
2596 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
2597 window rectangle when dnd items are dropped.
2598 Don't activate/deactivate root control.
f3cf04d3
YM
2599 (frame_highlight, frame_unhighlight): Activate/deactivate root
2600 control here.
2601 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
2602
2603 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
2604 New extern.
2605
9e5b2858
LT
26062005-04-15 Luc Teirlinck <teirllm@auburn.edu>
2607
2608 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
2609 (lisp): Use it.
2610 (SOME_MACHINE_LISP): Add tooltip.
2611
42c6741e
YM
26122005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2613
7ec64183
SM
2614 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
2615 Don't include TextEncodingConverter.h.
42c6741e
YM
2616 (mac_system_script_code, Vmac_system_locale): New variables.
2617 (syms_of_mac): Defvar them.
2618 (mac_get_system_locale): New function.
2619
7ec64183
SM
2620 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
2621 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 2622 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
2623 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
2624 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
2625
2626 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
2627 TextEncodingConverter.h.
2628
0614c575
ST
26292005-04-13 Steven Tamm <steventamm@mac.com>
2630
7e26f91b
KS
2631 * macterm.c (syms_of_macterm): Remove redundant definition of
2632 mac-pass-control-to-system.
0614c575 2633
203eb0aa
SM
26342005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2635
2636 * window.c (Fset_window_configuration): Be careful when you choose
2637 among several possible points for the new_current_buffer.
2638
a56e6111
YM
26392005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2640
2641 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
2642 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
2643 (Qlanguage_change) [MAC_OS]: New variable.
2644 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 2645 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
2646
2647 * macterm.c (mac_keyboard_text_encoding)
2648 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
2649 (XTread_socket): Store language-change event if keyboard script change
2650 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 2651 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 2652
7e26f91b 2653 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 2654
6695c528
RS
26552005-04-10 Richard M. Stallman <rms@gnu.org>
2656
2657 * emacs.c (standard_args): Rename --bare-bones to --quick.
2658 Add -D aka --basic-display.
2659
2660 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
2661
18e2d91f
RS
26622005-04-09 Richard M. Stallman <rms@gnu.org>
2663
2664 * keymap.c (where_is_internal): Convert a string used as event type
2665 into "(any string)".
2666
2667 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
2668 * fns.c (Vloads_in_progress): Add extern.
2669 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
2670
26712005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
2672
2673 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
2674
1cf21850
LK
26752005-04-09 Lute Kamstra <lute@gnu.org>
2676
2677 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
2678 within the accessible part of the buffer.
2679
bfd93240
KS
26802005-04-09 Kim F. Storm <storm@cua.dk>
2681
2682 * lread.c (readevalloop): Add args START and END as region in
2683 current buffer to read. Callers changed.
2684 When specified, narrow to this region only when reading,
2685 not during eval. Track next point to read from during eval.
2686 Also restore point to "real" buffer position before eval.
2687 (Feval_region): Don't save excursion and restriction here, and
2688 don't narrow to region. Just pass region to readevalloop.
2689 Note: Point is now preserved even when PRINTFLAG is nil.
2690
9ba27690
KS
26912005-04-08 Kim F. Storm <storm@cua.dk>
2692
2693 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
2694
73f0d996
KS
26952005-04-06 Kim F. Storm <storm@cua.dk>
2696
2697 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
2698
369f76bb
YM
26992005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2700
2701 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
2702 (Fmac_get_preference): Doc fix.
2703
203eb0aa
SM
2704 * macfns.c (Fx_create_frame, x_create_tip_frame):
2705 Add "fontset-mac" to fallback font/fontsets.
369f76bb 2706
2ba613a6
KS
27072005-04-04 Kim F. Storm <storm@cua.dk>
2708
4d5ddddc
KS
2709 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
2710
2ba613a6
KS
2711 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
2712 Call it again after autoload.
2713
1673df2e
JD
27142005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2715
2716 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
2717 mallopt.
2718
2719 * ralloc.c (r_alloc_init): Ditto.
2720
41639988
KH
27212005-04-01 Kenichi Handa <handa@m17n.org>
2722
1cf21850
LK
2723 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
2724 (Vascii_eqv_table): Extern them.
41639988
KH
2725
2726 * casetab.c (set_case_table): If standard is nonzero, setup
2727 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
2728
2729 * search.c (looking_at_1): Use current_buffer->case_canon_table,
2730 not DOWNCASE_TABLE.
2731 (string_match_1): Likewise.
2732 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
2733 Vascii_downcase_table.
2734 (fast_string_match_ignore_case): Likewise.
2735 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
2736 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
2737 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
2738 simple_translate.
2739
6ca53601
SM
27402005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2741
2742 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
2743 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
2744 Use XtNtopShadowPixel and XtNbottomShadowPixel.
2745 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
2746 really work and that breaks with some versions of Xaw3d.
2747
fafbb99d 27482005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
2749
2750 * coding.c (syms_of_coding): Fix previous change.
2751
6ca53601
SM
27522005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
2753
2754 * fileio.c (search_embedded_absfilename): Fix last change.
2755
bf762c98
KH
27562005-03-25 Kenichi Handa <handa@m17n.org>
2757
2758 * coding.c (syms_of_coding): Suggest to use set-coding-category in
2759 the docstring of coding-category-list.
2760
f793f885
KS
27612005-03-31 Kim F. Storm <storm@cua.dk>
2762
2763 * keyboard.c (Qmouse_fixup_help_message): New var.
2764 (syms_of_keyboard): Intern and staticpro it.
2765 (show_help_echo): Apply mouse-fixup-help-message to help string.
2766
c364fe19
KS
27672005-03-30 Kim F. Storm <storm@cua.dk>
2768
2769 * xdisp.c (display_line): Allow multiple overlay arrows in window.
2770
c70a4df6
SM
27712005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2772
2773 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
2774 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
2775 (Ffile_name_absolute_p): Use it.
2776 (search_embedded_absfilename): New fun, extracted from
2777 Fsubstitute_in_file_name. Use file_name_absolute_p.
2778 Free the pw data after use.
2779 (Fsubstitute_in_file_name): Use it.
2780 After cutting a prefix, re-check file-name-handler.
2781
6e7d0438
JR
27822005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
2783
6ca53601 2784 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
2785
2786 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
2787 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
2788
65671706
SM
27892005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2790
2791 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
2792 Use Fexit_minibuffer.
2793 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
2794
0de4dad4
SM
27952005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2796
781da985
SM
2797 * dired.c (Ffile_attributes): Add a missing gcpro.
2798
0de4dad4
SM
2799 * alloc.c (make_number): The arg can be bigger than `int'.
2800 * lisp.h (make_number): Make prototype more precise.
2801
2802 * process.c, dired.c (Vfile_name_coding_system)
2803 (Vdefault_file_name_coding_system):
2804 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
2805 (Vdefault_file_name_coding_system): Remove unused declarations.
2806
ff18668f
JD
28072005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2808
2809 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
2810 if it failed to pop up (Gnome "show pointer on ctrl" option makes
2811 menus fail to pop up).
2812
0de4dad4 28132005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
2814
2815 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 2816 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 2817
8df0ffbe
KS
28182005-03-22 Kim F. Storm <storm@cua.dk>
2819
2820 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
2821 * dispextern.h (lookup_derived_face): Fix prototype.
2822 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
2823
2824 * xdisp.c (handle_single_display_spec): Derive left-fringe and
2825 right-fringe face from fringe face.
2826
2827 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
2828 Derive face from fringe face.
2829
6ca30ba4
JD
28302005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2831
2832 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
2833
d615870a
DK
28342005-03-22 David Kastrup <dak@gnu.org>
2835
2836 * textprop.c (Fnext_char_property_change)
66347da7 2837 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
2838 (Fnext_single_char_property_change)
2839 (Fprevious_single_char_property_change): Check that limit is a
2840 number in strings.
2841 (Fnext_single_char_property_change): Coerce position to integer.
2842 (Fprevious_single_char_property_change): Same here.
2843
32b939ea
TTN
28442005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
2845
2846 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
2847
6027e473
SM
28482005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2849
2850 * frame.c (Fignore_event): Remove.
2851 (syms_of_frame): Don't defsubr it.
2852
2853 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
2854 redundant `ignore-event'.
2855
730f4d72
EZ
28562005-03-19 Eli Zaretskii <eliz@gnu.org>
2857
2858 * unexec.c (write_segment, unexec): Move these functions to avoid
2859 forward references (which cause errors with "gcc -gcoff").
2860
c7f6afd5
JD
28612005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2862
6027e473 2863 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 2864 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 2865
c7f6afd5
JD
2866 * xrdb.c (x_load_resources): Use different char *helv when I18N
2867 is present.
2868
db328182
KH
28692005-03-17 Kenichi Handa <handa@m17n.org>
2870
66347da7 2871 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 2872
211f2210
SM
28732005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2874
2875 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
2876 Use xic_create_fontsetname even for non-Motif menus.
2877 Don't forget to free the fontsetname.
2878
2879 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
2880
c7bd5d57
RS
28812005-03-17 Richard M. Stallman <rms@gnu.org>
2882
2883 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
2884
2885 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
2886 (Fmake_symbolic_link): Use G to read the new file name.
2887
2888 * callint.c (Finteractive): Document G option.
2889 (Fcall_interactively): Implement G option.
2890
2891 * buffer.c (buffer_lisp_local_variables): New function,
2892 broken out from Fbuffer_local_variables.
2893 (clone_per_buffer_values): Use buffer_lisp_local_variables.
2894
888953f1
SM
28952005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2896
3c916d65
SM
2897 * xfns.c (xic_create_fontsetname): Add `motif' argument.
2898 Always return a freshly allocated string.
2899 (xic_create_xfontset): Adjust call.
2900
2901 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
2902 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
2903 (dump_realized_face): Fix warning.
2904
9f9e5275
SM
2905 * emacs.c (Fkill_emacs): YAILOM.
2906
888953f1
SM
2907 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
2908
48502d68
YM
29092005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2910
2911 * mac.c (HASHKEY_TERMINAL): Remove.
2912 (HASHKEY_MAX_NID): New macro.
2913 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
2914 argument.
888953f1 2915 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
2916 (xrm_create_database, xrm_q_put_resource)
2917 (xrm_merge_string_database, xrm_q_get_resource_1)
2918 (xrm_q_get_resource): Change resource database representation so
2919 that it may not use multiple hash tables for a single database.
2920 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
2921
d5161e8c
SM
29222005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
2923
11a646cd
SM
2924 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
2925
2926 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
2927 locale-coding-system, as was already done for WINDOWSNT.
2928
d5161e8c
SM
2929 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
2930 translation for chars in the 0-255 range.
2931
568b6e41
LK
29322005-03-16 Lute Kamstra <lute@gnu.org>
2933
2934 * floatfns.c (Ffloor): Doc fix.
2935
469fb3cf
YM
29362005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2937
2938 * mac.c: Include macterm.h instead of directly including Carbon.h.
2939 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
2940 (Qarray, Qdictionary): New variables.
2941 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
2942 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
2943 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
2944 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
2945 in callback for CFDictionaryApplyFunction.
2946 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
2947 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
2948 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
2949 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
2950 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
2951 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2952 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 2953 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
2954 (parse_binding, parse_component, parse_resource_name, parse_value)
2955 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
2956 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
2957 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
2958 New functions.
469fb3cf
YM
2959
2960 * macfns.c (mac_get_rdb_resource): Remove function.
2961 (x_get_string_resource): Use xrm_get_resource.
2962
2963 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
2964
2965 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
2966 name_list_element.
2967 (mac_make_rdb): Create resource database from preferences and
2968 argument string.
2969 (mac_term_init): Save resource database to cddr part of
2970 name_list_element.
2971
2972 * macterm.h (xrm_merge_string_database, xrm_get_resource)
2973 (xrm_get_preference_database): Add externs.
2974 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
2975 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
2976 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
2977
2978 * process.c (init_process): Change `#ifdef DARWIN' to `#if
2979 defined (DARWIN) || defined (MAC_OSX)'
2980
2981 * s/darwin.h (DARWIN): Don't define.
2982
6a3fac90
YM
29832005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2984
2985 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
2986 Remove unused variables.
2987 (syms_of_macfns): Don't initialize them. Likewise for
2988 Qface_set_after_frame_default. Defvar and initialize
2989 Vx_window_horizontal_drag_shape.
2990 (x_set_mouse_color): Change mouse pointer shape.
2991 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 2992 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
2993 (hourglass_started): New function (from xfns.c).
2994 (start_hourglass, cancel_hourglass): Put function body in #ifdef
2995 MAC_OSX.
2996 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
2997 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 2998 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
2999
3000 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
3001 Controls.h. Use ThemeCursor instead of CursHandle.
3002
d5161e8c
SM
3003 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
3004 Remove functions and declarations.
3005 (mac_set_colors): Take argument for saving background color.
3006 All callers changed.
6a3fac90
YM
3007 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
3008 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
3009 background color.
3010 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
3011 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
3012 Use SetThemeCursor.
6a3fac90
YM
3013 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
3014 indicator control to the upper-right corner of the window.
3015 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
3016 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
3017 (do_window_update): Update controls after updating content area.
3018 (mac_handle_window_event): Remove unused extern.
3019 (XTread_socket): Check both control handle and control part code
3020 to determine whether a scroll bar is clicked. Activate/deactivate
3021 root control instead of contained scroll bar controls.
3022 (make_mac_terminal_frame): Use ThemeCursor constants.
3023
d5161e8c
SM
3024 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
3025 New member hourglass_control.
6a3fac90 3026 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 3027 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 3028
a7321976
YM
30292005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3030
3031 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 3032 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
3033 laptops, and fn + `enter' on laptops.
3034
f7b758bd
SM
30352005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3036
3037 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
3038 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
3039 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
3040
3041 * xfns.c (xic_defaut_fontset): New constant.
3042 (xic_create_fontsetname): New function.
3043 Extracted from create_frame_xic. Try to generate a slightly
3044 better fontset.
3045 (xic_create_xfontset): Use it.
3046 (create_frame_xic): Simplify.
3047
dac24db4
SM
30482005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
3049
3050 * fileio.c (Fmake_symbolic_link): Fix last change.
3051
e0402468
RS
30522005-03-11 Richard M. Stallman <rms@gnu.org>
3053
3054 * fileio.c (Frename_file, Fadd_name_to_file)
3055 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
3056 expand the basename of FILE relative to it.
3057
fa815b14
KH
30582005-03-11 Kenichi Handa <handa@m17n.org>
3059
3060 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
3061 before calling setup_coding_system so that autoloading of a coding
3062 system work.
3063
817d354b
JD
30642005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3065
68a505ef
JD
3066 * xfns.c (hourglass_started): New function.
3067
3068 * dispextern.h: Declare hourglass_started.
3069
3070 * keyboard.c (Fexecute_extended_command): Restart hourglass
3071 after call to Fcompleting_read if already started.
3072
817d354b
JD
3073 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
3074 GTK main loop is entered in xterm.c, thus doing the redraw.
3075
b0a6f45c
KS
30762005-03-10 Kim F. Storm <storm@cua.dk>
3077
3078 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
3079
ee5d57b0
KH
30802005-03-08 Kenichi Handa <handa@m17n.org>
3081
3082 * frame.c (x_set_font): Call set_default_ascii_font if an
3083 available font is found.
3084
3085 * fontset.c (set_default_ascii_font): New function.
dac24db4 3086 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
3087
3088 * fontset.h (set_default_ascii_font): Extern it.
3089
f30c4a5c
KS
30902005-03-07 Kim F. Storm <storm@cua.dk>
3091
3fb26a86
KS
3092 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
3093 (clear_image_cache_count): New var.
3094 (redisplay_internal): Don't clear face and image caches in the
3095 middle of redisplay; do it afterwards.
3096
a54595d4
KS
3097 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
3098
f30c4a5c
KS
3099 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
3100 is valid. If not, clear phys_cursor_on_p and return.
3101
3d182f9d
AS
31022005-03-07 Andreas Schwab <schwab@suse.de>
3103
3104 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
3105
85d964de
RS
31062005-03-06 Richard M. Stallman <rms@gnu.org>
3107
3108 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
3109
3110 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
3111 (Feval, Ffuncall): Use CHECK_CONS_LIST.
3112
3113 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
3114
3115 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
3116 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
3117
3ff96c81
JL
31182005-03-05 Juri Linkov <juri@jurta.org>
3119
3120 * emacs.c (USAGE1): Replace Info node name "command arguments"
3121 with "emacs invocation".
3122 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
3123 allow arguments `--color' and `MODE' to be separated by space.
3124 Add --no-blinking-cursor, -nbc.
3125 (standard_args): Add -nbc, --no-blinking-cursor.
3126
64eb0083
TTN
31272005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3128
3129 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
3130 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
3131 * fileio.c (Fexpand_file_name) [VMS]:
3132 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
3133 * doc.c (munge_doc_file_name) [VMS]: Likewise.
3134 (Fsnarf_documentation): Call munge_doc_file_name.
3135
ad708ae5
TTN
31362005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3137
3138 * s/vms.h (FILE_SYSTEM_CASE): New macro.
3139 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
3140 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
3141
ba025f6d
YM
31422005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3143
3144 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
3145 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 3146
dac24db4 3147 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
3148
3149 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3150 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 3151 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
3152 (mac_clear_font_name_table): Move extern to macterm.h.
3153
3154 * macfns.c (install_window_handler): Move extern to macterm.h.
3155 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
3156 valid. Don't check !NILP (dir) because it is already checked with
3157 CHECK_STRING.
3158 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 3159 specifying the default location and obtaining the selected filename.
ba025f6d
YM
3160
3161 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3162
2313f861 3163 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
3164 are included via Carbon.h.
3165
dac24db4
SM
3166 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
3167 Define USE_CARBON_EVENTS to 1.
2313f861 3168 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
3169 (x_free_frame_resources): Call remove_window_handler for
3170 non-tooltip windows.
3171 [TARGET_API_MAC_CARBON]: Don't include headers that are included
3172 via Carbon.h.
3173 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3174 (mac_do_receive_dragUPP): New variables.
3175 (mac_handle_service_event, init_service_handler): Put declarations
3176 and definitions in #ifdef MAC_OSX.
3177 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
3178 drag-and-drop handler functions and register them.
3179 (remove_window_handler): New function.
dac24db4
SM
3180 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
3181 Use fsspec_to_posix_pathname.
ba025f6d
YM
3182 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
3183 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
3184 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
3185 Set default cursors.
ba025f6d
YM
3186 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
3187 init_service_handler or init_quit_char_handler.
3188 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
3189
3190 * macterm.h (install_window_handler, remove_window_handler)
3191 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
3192 (mac_clear_font_name_table): New externs.
ad708ae5 3193
c1558952
TTN
31942005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3195
3196 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
3197 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
3198 (Fexpand_file_name): Likewise.
3199
fa439170
TTN
32002005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3201
3202 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
3203 no longer special-case VMS. Add bogus return value.
3204
db2dacf6
KS
32052005-03-02 Kim F. Storm <storm@cua.dk>
3206
3207 * dispextern.h (XASSERTS): Define to 0 if not already defined.
3208 (xassert) [!XASSERTS]: Define dummy version.
3209
0870514c
KS
32102005-03-02 Kim F. Storm <storm@cua.dk>
3211
3212 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
3213 Reported by David Kastrup.
3214
6b640092
KS
32152005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
3216
3217 * xdisp.c (get_next_display_element): Fix control and escape
3218 glyph from display vector.
3219
f4a5a485
SM
32202005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
3221
3222 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
3223
85d964de
RS
32242005-02-27 Richard M. Stallman <rms@gnu.org>
3225
3226 * xdisp.c (fast_find_position): Rename END to BEG.
3227 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
3228
6e8db3ea
JD
32292005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3230
f4a5a485 3231 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
3232 gtk_window_resize and x_wm_set_size_hint.
3233
0f465b55
KS
32342005-02-25 Kim F. Storm <storm@cua.dk>
3235
3236 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
3237
3238 * xdisp.c (init_from_display_pos): Don't read past end of
3239 it->overlay_strings array.
3240
d5fb8dab 32412005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
3242
3243 * buffer.c (syms_of_buffer): Fix typo.
3244
b02c3eed
LK
32452005-02-23 Lute Kamstra <lute@gnu.org>
3246
3247 * buffer.c (Foverlay_buffer): Doc fix.
3248
c8500765
KS
32492005-02-22 Kim F. Storm <storm@cua.dk>
3250
b686dd59
KS
3251 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
3252 and symbol keys in alists and hash tables.
3253
c8500765
KS
3254 * xdisp.c (fast_find_position): Fix search for start of overlay.
3255
81c85b53
KS
32562005-02-21 Kim F. Storm <storm@cua.dk>
3257
3258 * window.c (window_scroll_pixel_based): When scrolling backwards,
3259 handle partial visible line at end of window even when we hit PT.
3260
f4a5a485 32612005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
3262
3263 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
3264
0dd5a842
KS
32652005-02-21 Kim F. Storm <storm@cua.dk>
3266
3267 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
3268 I think those asserts are bogus if buffer contains invisible text
3269 or images.
3270
d5fb8dab 32712005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
3272
3273 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
3274
0fba9f25
KS
32752005-02-20 Kim F. Storm <storm@cua.dk>
3276
3277 * xdisp.c (pos_visible_p): Be sure to move to the specified
3278 position. Always get the full ascent / descent of the
3279 corresponding row, to return reliable rtop and rbot values.
3280 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
3281 Must look one character back, as back_to_previous_line_start
3282 returns position after the newline.
3283 (move_it_vertically_backward): Fix heuristic for when to move further
3284 back in case line_height * 2/3 is larger than window height.
3285 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
3286 as it does not do anything anymore. Add arg current_matrix_p to
3287 use current matrix rather than desired matrix when set.
3288 (try_cursor_movement): Don't scroll to make cursor row fully
3289 visible if cursor didn't move. This avoids unexpected recentering
3290 in case of blinking cursor or accepting process output.
3291 Use current matrix to check cursor row visibility.
3292 (redisplay_window): Fix whether to recenter or move to top in case
3293 cursor line is taller than window height.
3294 (find_first_unchanged_at_end_row): Stop search if we reach a row
3295 which not enabled (instead of abort).
3296
b1c2adc3
KS
32972005-02-18 Kim F. Storm <storm@cua.dk>
3298
c2ee48fb
KS
3299 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
3300 to be nil in a :box attribute value list; customize prints that
3301 as lisp value when no box color is specified.
3302
b1c2adc3
KS
3303 * .gdbinit (pitx, pit): Pretty print display iterator.
3304 (prowx, prow): Pretty print glyph row.
3305 (pcursorx, pcursor): Pretty print a window cursor.
3306 (pwinx, pwin): Pretty print struct window.
3307
f102186f
SM
33082005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3309
3310 * alloc.c (BLOCK_BYTES): Harmless typo.
3311
9b516537
AS
33122005-02-17 Andreas Schwab <schwab@suse.de>
3313
3314 * xfns.c (hack_wm_protocols): Use correct type for last parameter
3315 of XGetWindowProperty to avoid aliasing issues.
3316 (Fx_window_property): Likewise.
3317
3318 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 3319 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
3320
3321 * xterm.c (handle_one_xevent): Use union of struct input_event and
3322 struct selection_input_event to avoid aliasing issues.
3323 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
3324
886b1418
KS
33252005-02-17 Kim F. Storm <storm@cua.dk>
3326
3327 * dispextern.h (enum it_method): New enum.
3328 (GET_FROM_*): Its members.
3329 (struct it): Change member method from function pointer to enum.
3330
3331 * xdisp.c (check_it, init_from_display_pos, handle_stop)
3332 (setup_for_ellipsis, handle_single_display_spec)
3333 (handle_composition_prop, next_overlay_string)
3334 (get_overlay_strings, reseat_1, reseat_to_string)
3335 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
3336 (in_display_vector_p, display_line, get_next_display_element):
3337 Change it->method from function pointer to enum.
3338 (get_next_element): New array to map it->method to function.
3339 (get_next_display_element): Use it.
3340 (set_iterator_to_next): Use switch instead of if/else chain.
3341
99ee2c6a 33422005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
3343
3344 * w32select.c: Summary: Thorough rework to implement Unicode
3345 clipboard operations and delayed rendering.
3346
3347 Drop last_clipboard_text and related code, keep track of
f4a5a485 3348 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
3349
3350 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
3351 (clipboard_owner, modifying_clipboard, cfg_coding_system)
3352 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
3353 (current_coding_system, current_requires_encoding)
f4a5a485
SM
3354 (current_num_nls, current_clipboard_type, current_lcid):
3355 New static variables.
52c7f9ee
JR
3356
3357 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
3358 (render, render_all, run_protected, lisp_error_handler)
3359 (owner_callback, create_owner, setup_config)
f4a5a485
SM
3360 (enum_locale_callback, cp_from_locale, coding_from_cp):
3361 New local functions.
52c7f9ee
JR
3362
3363 (term_w32select, globals_of_w32select): New global functions.
3364
3365 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
3366 clipboard_owner instead. Use delayed rendering and provide
3367 all text formats. Provide CF_LOCALE if necessary.
3368
3369 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
3370 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
3371 available. Force DOS line-ends for decoding.
3372
3373 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
3374
3375 (syms_of_w32select): Init and register new variables.
3376
3377 * w32.h: Add prototypes for globals_of_w32select and
3378 term_w32select. Make the neighboring K&R declarations into
3379 prototypes, too.
3380
3381 * emacs.c: Include w32.h to get function prototypes.
3382 (main): Call globals_of_w32select.
3383
886b1418 3384 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
3385
3386 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
3387
86e61586
KS
33882005-02-16 Kim F. Storm <storm@cua.dk>
3389
3390 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
3391 at end of display vector.
3392
6407f07b
RS
33932005-02-15 Richard M. Stallman <rms@gnu.org>
3394
3395 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
3396 for mode and header lines.
3397
3398 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
3399
3400 * keymap.h (describe_map_tree): Change decl.
3401
3402 * keyboard.c (command_loop_1): Always use safe_run_hooks
3403 to run Qdeferred_action_function.
3404
3405 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
3406 (describe_map, describe_vector): Likewise. When it's 1,
3407 don't omit shadowed bindings, instead mark them as shadowed.
3408
3409 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
3410 for describe_map_tree. Pass 1 for MENTION_SHADOW.
3411
3412 * data.c (Fsetq_default): Allow no arg case.
3413
3bb917bf
KH
34142005-02-14 Kenichi Handa <handa@m17n.org>
3415
3416 * coding.c (encode_coding_string): Always return a unibyte string.
3417 If NOCOPY is nonzero and there's no need of encoding, make STR
3418 unibyte directly.
3419
3420 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
3421 multibyte string, signal an error instead of aborting.
3422
e31d908f
DN
34232005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
3424
3425 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
3426
48e029b6
KS
34272005-02-12 Kim F. Storm <storm@cua.dk>
3428
3429 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
3430
c10bb00a
KS
34312005-02-10 Kim F. Storm <storm@cua.dk>
3432
3433 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
3434 if it moves outside window or it doesn't display text.
3435
9ca0f64a
KS
34362005-02-09 Kim F. Storm <storm@cua.dk>
3437
3438 * undo.c (Fprimitive_undo): Check that undo function does not
3439 switch buffer.
3440
b8d6f4af
JD
34412005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3442
3443 * xselect.c (selection_data_to_lisp_data): For the special case
3444 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
3445 (x_property_data_to_lisp, selection_data_to_lisp_data):
3446 Comment update: data must be array of int for format == 32.
b8d6f4af 3447
3419757d
SM
34482005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3449
3450 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
3451
3a441526
JD
34522005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3453
fc34503b
JD
3454 * xfns.c (Fx_change_window_property): Use long array when format is 32.
3455 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
3456 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
3457 (x_set_tool_bar_lines): Check that width and height is greater than
3458 zero before clearing area.
fc34503b
JD
3459
3460 * xselect.c (x_reply_selection_request): Pass long array to
3461 XChangeProperty so that 64 bit longs are handeled correctly.
3462 (x_get_window_property): If format is 32 and long is bigger than 32
3463 bits convert data from XGetWindowProperty from long array to int array.
3464 (lisp_data_to_selection_data): When the input is a vector and the
3465 format is 32, allocate a long array even if long is bigger than 32 bits.
3466 (x_fill_property_data): Use char, short and long as the man page
3467 for XChangeProperty specifies. This way the data returned is OK for
3468 both 32 and 64 bit machines.
3469 (x_handle_dnd_message): Calculate size correctly even for 64 bit
3470 machines.
3471 (Fx_send_client_event): Undo change from 2005-02-05,
3472 x_fill_property_data now handles that case.
3473
3419757d 3474 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
3475 reason for the approach in the code.
3476
82ec225b
KS
34772005-02-07 Kim F. Storm <storm@cua.dk>
3478
3479 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
3480
ba2c991c
RS
34812005-02-06 Richard M. Stallman <rms@gnu.org>
3482
3483 * eval.c (Frun_hook_with_args)
3484 (Frun_hook_with_args_until_success)
3485 (Frun_hook_with_args_until_failure): Doc fixes.
3486
e120ea40
AS
34872005-02-05 Andreas Schwab <schwab@suse.de>
3488
3419757d 3489 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 3490
31f16913
JD
34912005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3492
3493 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
3494 the longs in a XClientMessageEvent correctly when long is 64 bits.
3495
6082a820
EZ
34962005-02-05 Eli Zaretskii <eliz@gnu.org>
3497
3498 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
3499 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
3500
0e95095b
JD
35012005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3502
3503 * xmenu.c (menubar_selection_callback): Force out GTK buffered
3504 events so the menu event comes after them. This is to prevent sit-for
3505 from exiting on buffered events directly after a menu selection,
3506 lisp code for Help => About Emacs uses sit-for.
3507
3508 * gtkutil.c (create_menus): Connect selection-done event instead of
3509 the deactivate event to deactivate_cb. This will make the last
3510 leave event come before the call to deactivate_cb, so the leave
3511 event does not make sit-for exit after a menu selection.
3512
5bb6a3c1
KS
35132005-02-03 Kim F. Storm <storm@cua.dk>
3514
3515 * dispnew.c (build_frame_matrix_from_leaf_window)
3516 [!GLYPH_DEBUG]: Fix xassert.
3517
3518 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
3519
3520 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3521
e9859e26
YM
35222005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3523
3524 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
3525 the compiling OS version.
3526
3527 * macfns.c (x_create_tip_frame): Likewise.
3528
3419757d 3529 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 3530
4e07258f
RS
35312005-02-03 Richard M. Stallman <rms@gnu.org>
3532
3533 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
3534
3535 * xdisp.c (echo_area_display): Clear echo_message_buffer.
3536
3537 * buffer.c (Fbury_buffer): Doc fix.
3538
4a34b529
ST
35392005-02-02 Steven Tamm <steventamm@mac.com>
3540
7e26f91b 3541 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 3542 xassert being uncondition, but predicate is.
7e26f91b 3543 * dispnew.c (update_window): Fix compile error due to
f6c62d96 3544 xassert being uncondition, but predicate is.
4a34b529 3545
d78f30b8
MB
35462005-02-02 Miles Bader <miles@gnu.org>
3547
3548 * dispextern.h (xassert): Enable unconditionally.
3549
b044278d
KS
35502005-02-02 Kim F. Storm <storm@cua.dk>
3551
3552 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
3553
56072160
KH
35542005-02-02 Kenichi Handa <handa@m17n.org>
3555
3556 * casefiddle.c (casify_object): Enable changing characters of
3557 different byte length.
3558 (casify_region): Fix loop condition, args to replace_range_2, and
3559 update opoint_byte.
3560
f4a5a485 3561 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 3562
5e1674c5
KS
35632005-02-01 Kim F. Storm <storm@cua.dk>
3564
3565 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
3566 stack before calling handle_display_prop.
3567
fb89c330
KS
35682005-01-31 Kim F. Storm <storm@cua.dk>
3569
3570 * undo.c (Qapply): New lisp var.
3571 (syms_of_undo): Intern and staticpro it.
3572 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
3573 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
3574
3575 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3576
7bf72fa6
JH
35772005-01-30 Jesper Harder <harder@phys.au.dk>
3578
a050b1a9
KS
3579 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
3580 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 3581
03c64f2e
LT
35822005-01-29 Luc Teirlinck <teirllm@auburn.edu>
3583
3584 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 3585 Increase value to 3 Meg.
03c64f2e 3586
49b8b5dc
JD
35872005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3588
3589 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
3590 button events are not received otherwise.
3591
5a92a9eb
RS
35922005-01-29 Richard M. Stallman <rms@gnu.org>
3593
3594 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3595
3596 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
3597
5c243ee4
SM
35982005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
3599
3600 * keymap.c (access_keymap): YAILOM.
3601
caf533af
KS
36022005-01-27 Kim F. Storm <storm@cua.dk>
3603
3604 * xdisp.c (get_phys_cursor_geometry): New function to calculate
3605 phys cursor position and size for hollow cursor. Position is
3606 aligned with get_glyph_string_clip_rect and ensures that a hollow
3607 cursor is shown, even when the actual glyph is not visible.
3608
3609 * dispextern.h (get_phys_cursor_geometry): Add prototype.
3610
3611 * xterm.c (x_clip_to_row): Ensure y >= 0.
3612 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3613
3614 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3615
3616 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3617
043f7f73
SM
36182005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
3619
3620 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
3621
889f3641
KS
36222005-01-27 Kim F. Storm <storm@cua.dk>
3623
3624 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
3625 glyph, even when row is only partially visible and actual cursor
3626 position is not visible.
3627
29099c2f
RS
36282005-01-24 Richard M. Stallman <rms@gnu.org>
3629
3630 * xterm.c (x_error_quitter): No longer static, and moved after
3631 x_error_handler.
3632
6adb6f01
KS
36332005-01-24 Kim F. Storm <storm@cua.dk>
3634
3635 * xdisp.c (move_it_by_lines): If we move forward after going too
3636 far back, cancel move if end position is same as start position.
3637
4d904fa0
ST
36382005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3639
3640 * dispextern.h (struct glyph_string): New members clip_head and
3641 clip_tail.
6adb6f01 3642
4d904fa0
ST
3643 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
3644 region to the area between clip_head and clip_tail.
3645 (draw_glyphs): Record the area that need to be actually redrawn to
3646 the new variables clip_head and clip_tail when there are
3647 overhangs. Set values of these variables to the corresponding
3648 members in struct glyph_string. Refine x coordinates for
3649 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 3650
4d904fa0
ST
3651 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
3652
3653 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
3654 QDTextBounds.
3655 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 3656 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 3657 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 3658 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 3659
f2417699
KS
36602005-01-24 Kim F. Storm <storm@cua.dk>
3661
6f67f013
KS
3662 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
3663 direction if window height was smaller than next-screen-context-lines.
3664 Now always scroll at least one line in the requested direction.
3665 Ensure that we actually do scroll backwards when requested to do so.
3666
f2417699
KS
3667 * xdisp.c (redisplay_window): Only try to make cursor line fully
3668 visible once (to avoid redisplay loop).
3669
a354b72c
KS
36702005-01-23 Kim F. Storm <storm@cua.dk>
3671
6b3d88f7 3672 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 3673 partially visible rows.
6b3d88f7
KS
3674 (window_scroll_pixel_based): Adapt to that change.
3675
5c20cae2
KS
3676 * window.c (window_scroll_pixel_based): Force moving to next line
3677 if scrolling doesn't move start point, e.g. if looking at tall image.
3678
a354b72c 3679 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
3680 Clear last_height before calling line_bottom_y to get real height.
3681 Fix calculation of y.
a354b72c 3682
d9e7c622
ST
36832005-01-22 Steven Tamm <steventamm@mac.com>
3684
3685 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 3686 (DARWIN): Define.
7e26f91b 3687
d9e7c622
ST
3688 * process.c (init_process): Default process-connection-type to
3689 nil on darwin 6 or less, t if it is 7 or higher. This way the
3690 broken pty behavior is still allowed on darwin 6 for interactive
3691 processes for people that know what they are doing.
3692
d00e399a
KS
36932005-01-22 Kim F. Storm <storm@cua.dk>
3694
3695 * window.c (auto_window_vscroll_p): New boolean.
3696 (syms_of_window): DEFVAR_BOOL it.
3697 (Fpos_visible_in_window_p): Extend return value to include RTOP
3698 and RBOT values if FULLY is nil.
3699 (window_scroll_pixel_based): Adjust vscroll for partially visible
3700 rows if auto_window_vscroll_p is set.
3701 (Fset_window_vscroll): Do nothing if vscroll is not modified.
3702
3703 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
3704 to return number of partially invisible pixels at top and bottom
3705 of the dislay row at POS.
3706
3707 * lisp.h (pos_visible_p): Fix prototype.
3708
f95a20e7
RS
37092005-01-21 Richard M. Stallman <rms@gnu.org>
3710
3711 * fileio.c (Fcopy_file): Doc fix.
3712
eee141ce
JD
37132005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3714
3715 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
3716 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
3717 start of function for older compilers.
3718
6f771c32
RS
37192005-01-20 Richard M. Stallman <rms@gnu.org>
3720
3721 * editfns.c (Fmessage): If arg is "", return "" (as before).
3722
3723 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
3724
3725 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
3726 variable.
3727
a15252fd
ST
37282005-01-20 Steven Tamm <steventamm@mac.com>
3729
043f7f73 3730 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
3731 (init_editfns): Assign new variable operating-system-release
3732 based on call to uname if available.
043f7f73 3733 (get_operating_system_release): Add function to
d00e399a 3734 allow c-level access to operating system release.
a15252fd
ST
3735
3736 * config.h: Regenerated.
3737
043f7f73
SM
3738 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
3739 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
3740 using ptys as '7'.
3741
3d6a4b2d
KS
37422005-01-20 Kim F. Storm <storm@cua.dk>
3743
62fc9b0f
KS
3744 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
3745
c310aca4
KS
3746 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
3747 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
3748
3749 * macterm.c (x_draw_glyph_string_box): Likewise.
3750
3751 * w32term.c (x_draw_glyph_string_box): Likewise.
3752
3d6a4b2d
KS
3753 * indent.c (Fvertical_motion): Temporarily disable selective display.
3754
27c8be45
KS
37552005-01-19 Kim F. Storm <storm@cua.dk>
3756
77db5cf3
KS
3757 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
3758 image property.
3759
27c8be45
KS
3760 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
3761
81f498dc
KS
37622005-01-18 Kim F. Storm <storm@cua.dk>
3763
3764 * xdisp.c (fast_find_position): Backtrack to find first row if
3765 charpos is inside a display overlay that spans multiple lines.
3766
1cdb0707
KH
37672005-01-18 Kenichi Handa <handa@m17n.org>
3768
3769 * coding.c (decode_coding_iso2022): Translate invalid codes if
3770 translation-table is specified.
3771
677159ce
KS
37722005-01-18 Kim F. Storm <storm@cua.dk>
3773
3774 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
3775 change. If handle_display_prop indicates newline is replaced by
3776 image or text, move back to start of relevant overlay or interval
3777 and continue scan from there. Simplify.
3778
977284cc
KS
37792005-01-17 Kim F. Storm <storm@cua.dk>
3780
043f7f73
SM
3781 * dispnew.c (mode_line_string, marginal_area_string):
3782 Fix off-by-one error in search for glyph.
977284cc 3783
e24531b7
KS
37842005-01-16 Kim F. Storm <storm@cua.dk>
3785
3786 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
3787
5ddd7664
ST
37882005-01-16 Steven Tamm <steventamm@mac.com>
3789
043f7f73 3790 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 3791
fc2ff44b
AS
37922005-01-16 Andreas Schwab <schwab@suse.de>
3793
3794 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
3795
50af5100
JD
37962005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3797
3798 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
3799 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
3800
a2d5fca0
JD
38012005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3802
3803 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
3804 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
3805 New flags for readable_events.
043f7f73 3806 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
3807 (tracking_off): Call readable_events and get_input_pending with
3808 flag READABLE_EVENTS_DO_TIMERS_NOW.
3809 (readable_events): Move code from old readable_filtered_events here,
3810 but check new READABLE_EVENTS_* in argument flags instead of previous
3811 two boolean arguments do_timers_now and filter_events.
3812 If we are doing mouse tracking and the mouse moved, return only if
3813 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
3814 (swallow_events): Call get_input_pending with flag
3815 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 3816 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
3817 here. Replace boolean arguments do_timers_now, filter_events with
3818 flags, and pass flags to readable_events. Document new
3819 READABLE_EVENTS_* flags.
3820 (detect_input_pending_ignore_squeezables): New function.
3821 (detect_input_pending_run_timers): Call get_input_pending with flag
3822 READABLE_EVENTS_DO_TIMERS_NOW.
3823 (Finput_pending_p): Call get_input_pending with flags
3824 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
3825
3826 * dispnew.c (update_window, update_frame_1): Replace calls to
3827 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 3828 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
3829 mouse movements.
3830
3831 * lisp.h: Declare detect_input_pending_ignore_squeezables.
3832
42afbcda
ST
38332005-01-15 Steven Tamm <steventamm@mac.com>
3834
e24531b7
KS
3835 * macterm.c (Vmac_use_core_graphics): Declare variable for
3836 mac-allow-anti-aliasing.
3837 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 3838 (mac_draw_string_common): Use core graphics text rendering if
0530c679 3839 mac-allow-anti-aliasing is enabled.
743d0696 3840
42afbcda
ST
3841 * macfns.c (Fx_file_dialog): Save As dialog includes only the
3842 file name in the text box.
3843
9cdd4884
ST
38442005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3845
043f7f73
SM
3846 * macfns.c (x_set_foreground_color, x_set_background_color):
3847 Sync with xfns.c.
9cdd4884
ST
3848 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
3849 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
3850 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
3851
88948d55
KS
38522005-01-14 Kim F. Storm <storm@cua.dk>
3853
3854 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
3855
20d6de82
RS
38562005-01-13 Richard M. Stallman <rms@gnu.org>
3857
3858 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
3859 if Voverriding_terminal_local_map is non-nil.
3860
3861 * keyboard.c (syms_of_keyboard): Doc fix.
3862
f75a592e
KS
38632005-01-13 Kim F. Storm <storm@cua.dk>
3864
3865 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 3866 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 3867
28f94a34
RS
38682005-01-12 Richard M. Stallman <rms@gnu.org>
3869
3870 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
3871 face property for characters that don't specify one.
3872
3873 * fns.c (Frequire): Record in load-history unconditionally.
3874
57a230b1
KS
38752005-01-10 Kim F. Storm <storm@cua.dk>
3876
3877 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
3878
3879 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
3880 Callers changed.
3881 Add support to merge with lisp face id too (if face_name is t).
3882
3883 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3884 Don't lookup lface_id from display table glyphs here; instead use
3885 merge_faces to merge the lisp face id into current face.
3886
8ab2c119
KS
38872005-01-09 Kim F. Storm <storm@cua.dk>
3888
3889 * dispextern.h (struct it): New member dpvec_face_id.
3890 (merge_into_realized_face): Add prototype.
3891
3892 * xfaces.c (merge_into_realized_face): New function. Used to
3893 merge escape-glyph face or face from display table into current face.
3894
3895 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
3896 (syms_of_xdisp): DEFVAR_LISP it.
3897 (escape_glyph_face): Remove var.
3898 (redisplay_window): Don't initialize it.
3899 (setup_for_ellipsis, get_next_display_element):
3900 Set it->dpvec_face_id to -1.
3901 (get_next_display_element): Test Vshow_nonbreak_escape.
3902 Do not setup escape_glyph_face.
3903 Properly merge escape-glyph face or face from display table with
043f7f73
SM
3904 current face for escape and control characters.
3905 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
3906 element of display vector.
3907 (next_element_from_display_vector): If it->dpvec_face_id is set,
3908 use that instead of lface_id from glyph itself.
3909
e0910857
JD
39102005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3911
3912 * xterm.h (struct x_output): New member, toolbar_detached.
3913
3914 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
3915 38.
3916 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
3917 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
3918 (xg_create_tool_bar): Initialize toolbar_detached.
3919 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
3920 toolbar_detached is zero.
3921
ff59904a
JD
39222005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3923
9b85e63d
JD
3924 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
3925 gtk_menu_popup if not for_click, so callbacks for the menu are called.
3926
ff59904a
JD
3927 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
3928 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 3929 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
3930
3931 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 3932 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
3933 XFLOAT_DATA to get extract number from Lisp object.
3934
f9a23a6f
KS
39352005-01-07 Kim F. Storm <storm@cua.dk>
3936
3937 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
3938 Set stop_charpos to current charpos instead of 0.
3939
28f94a34
RS
39402005-01-06 Nick Roberts <nickrob@snap.net.nz>
3941
3942 * xdisp.c (Fformat_mode_line): First arg now required.
3943
a6fffcdc
ST
39442005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3945
3946 * macterm.c (XLoadQueryFont): Correctly handle 0 size
3947 font widths that are returned from some Japanese fonts.
3948
c35b0c6b
KS
39492005-01-06 Kim F. Storm <storm@cua.dk>
3950
3951 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
3952 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
3953 (destroy_fringe_bitmap): Set fringe_faces element to nil.
3954 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
3955 fringe_faces array and init elements to nil.
3956 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
3957 non-persistent face id.
3958 (mark_fringe_data): New function for GC.
3959
3960 * alloc.c (mark_fringe_data): Declare extern.
3961 (Fgarbage_collect): Call mark_fringe_data.
3962
3963 * alloc.c (overrun_check_free): Invalidate freed memory if
3964 XMALLOC_CLEAR_FREE_MEMORY is defined.
3965
e0e76ab9
ST
39662005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3967
3968 * macfns.c: Include sys/param.h.
3969 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
3970 and function.
3971 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
3972 of filename string. Set event callback function when creating
3973 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 3974 of apple event descriptor record if failed to create it.
e0e76ab9
ST
3975
3976 * macterm.c: Include sys/param.h.
3977 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
3978 kEventWindowUpdate.
3979 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
3980 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
3981 of FSSpec from apple event descriptor record.
3982 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
3983 size of filename string.
3984 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
3985 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
3986 file dialog is in action.
043f7f73
SM
3987 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
3988 Reject only when there are no filename items. Set background color
e0e76ab9 3989 before (un)highlighting the window below the dragged items.
2313f861 3990 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 3991
043bc640
KH
39922005-01-05 Romain Francoise <romain@orebokech.com>
3993
3994 * term.c (encode_terminal_code): Fix buffer size computation.
3995
dd496df6
RS
39962005-01-04 Richard M. Stallman <rms@gnu.org>
3997
3998 * xdisp.c (Fformat_mode_line): Doc fix.
3999
026cdede
SM
40002005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4001
4002 * alloc.c (refill_memory_reserve): Move.
4003 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
4004 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
4005
d57c7572
RS
40062005-01-03 Richard M. Stallman <rms@gnu.org>
4007
4008 * window.c (window_scroll_pixel_based): Don't correct preserve_y
4009 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
4010
b14f868c
JR
40112005-01-03 Jason Rumney <jasonr@gnu.org>
4012
4013 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
4014 fontp->space_width to FONT_WIDTH so they are valid.
4015
4016 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 4017 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
4018 their appropriate values.
4019
4020 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4021 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
4022 fontp->space_width.
4023
e169f939
ST
40242005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4025
4026 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
4027 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
4028 metrics for max and min bounds.
4029 (x_load_font): Correctly calculate average font width metrics.
4030
19996af4
RS
40312005-01-02 Richard M. Stallman <rms@gnu.org>
4032
4033 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
4034
42d02da0
JD
40352004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4036
4037 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
4038
1db7dd46
RS
40392004-12-31 Richard M. Stallman <rms@gnu.org>
4040
b437860a
RS
4041 * xdisp.c (setup_for_ellipsis, get_next_display_element):
4042 Set it->ellipsis_p to 1 or 0.
4043 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 4044 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
4045 (cursor_row_p): If PT's at the end of the ellipsis the row
4046 ends within, don't display cursor on this row.
4047
4048 * dispextern.h (struct it): New element ellipsis_p.
4049 (struct glyph_row): New element ends_in_ellipsis_p.
4050
4051 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
4052 position if we're reading from something other than the buffer.
4053
1db7dd46
RS
4054 * window.c (window_scroll_pixel_based): Only look at
4055 Vscroll_preserve_screen_position if the old PT can't be kept.
4056 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4057
1225f637
KS
40582004-12-30 Kim F. Storm <storm@cua.dk>
4059
4060 * xdisp.c (get_line_height_property): New function extracted from
4061 original calc_line_height_property.
4062 (calc_line_height_property): Rework. Handle t and (nil . ratio).
4063 (x_produce_glyphs): Use them to handle line-height and
4064 line-spacing according to new height spec.
4065 (Qtotal): Remove.
33b2f4ea 4066 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 4067
c243063e
KH
40682004-12-30 Kenichi Handa <handa@m17n.org>
4069
4070 * fileio.c (Finsert_file_contents): Don't use
4071 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 4072 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
4073
4074 * fontset.h (struct font_info): New members space_width and
4075 average_width.
4076
4077 * frame.h (struct frame): New member space_width.
4078 (FRAME_SPACE_WIDTH): New macro.
4079
4080 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
4081
4082 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4083 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 4084 fontp->space_width.
043f7f73 4085 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
4086 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
4087
4088 * xdisp.c (x_produce_glyphs): Calculate tab width by
4089 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
4090
456e761b
ST
40912004-12-29 Sanghyuk Suh <han9kin@mac.com>
4092
4093 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 4094 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 4095
188577ce
LT
40962004-12-29 Luc Teirlinck <teirllm@auburn.edu>
4097
4098 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
4099
99ec74b9
RS
41002004-12-29 Richard M. Stallman <rms@gnu.org>
4101
4102 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
4103
30c92fab
ST
41042004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4105
4106 * macfns.c (install_window_handler): Modify extern to return OSErr
4107 value.
4108 (mac_window): Handle return value of install_window_handler.
4109
4110 * macterm.c (reflect_byte): Remove function.
4111 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
4112 Lookup table instead.
4113 (mac_do_font_lists): Simplify calculation of the longest
4114 nonspecial string.
4115 (init_mac_drag_n_drop): Remove function and declaration.
4116 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
4117 init_mac_drag_n_drop.
4118 (mac_do_track_drag): New function and declaration.
4119 (install_window_handler): Return OSErr value.
043f7f73
SM
4120 (install_window_handler) [TARGET_API_MAC_CARBON]:
4121 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 4122 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
4123 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
4124 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 4125
4b982924
DN
41262004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4127
4128 * coding.c (decode_coding): Fix previous change.
4129
93fdf45f
RS
41302004-12-28 Richard M. Stallman <rms@gnu.org>
4131
4132 * xdisp.c (back_to_previous_visible_line_start):
4133 Don't call handle_display_prop.
4134
5bdca8af
DN
41352004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4136
4137 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
4138 (decode_coding_emacs_mule, encode_coding_emacs_mule)
4139 (decode_coding_iso2022, encode_designation_at_bol)
4140 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
4141 (decode_coding): Constify arguments and local vars.
4142
33385c6f
JD
41432004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4144
4145 * xmenu.c (popup_get_selection): Only pop down dialogs
4146 on C-g and Escape.
95bdef2e 4147 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
4148 (create_and_show_popup_menu, create_and_show_dialog):
4149 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 4150
b15325b2
ST
41512004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4152
4153 * dispextern.h: Change HAVE_CARBON to MAC_OS.
4154 (struct glyph_string): Likewise.
a2c7e69a 4155
b15325b2
ST
4156 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
4157 mac_initialize.
a2c7e69a 4158
b15325b2
ST
4159 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
4160 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 4161
b15325b2 4162 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 4163
b15325b2
ST
4164 * frame.c (x_set_frame_parameters, x_report_frame_params)
4165 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
4166 (x_set_border_width, Vdefault_frame_scroll_bars):
4167 Change HAVE_CARBON to MAC_OS.
a2c7e69a 4168
b15325b2
ST
4169 * image.c [MAC_OS]: Include sys/stat.h.
4170 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
4171 QuickTimeComponents.h.
a2c7e69a 4172
b15325b2
ST
4173 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
4174 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 4175 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
4176 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
4177 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4178 (mac_clear_font_name_table): Add extern.
4179 (Fmac_clear_font_name_table): New defun.
4180 (syms_of_mac): Defsubr it.
4181 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
4182 [MAC_OSX] (select_and_poll_event): New function.
4183 [MAC_OSX] (sys_select): Use it.
4184 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
4185 [MAC_OSX && SELECT_USE_CFSOCKET]
4186 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
4187 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
4188 RunLoop for simultaneously monitoring two kinds of inputs, window
4189 events and process outputs, without periodically polling.
a2c7e69a 4190
b15325b2
ST
4191 * macfns.c (mac_initialized): Remove extern.
4192 (stricmp): Put in #if 0. All callers changed to use xstricmp in
4193 xfaces.c.
043f7f73
SM
4194 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
4195 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
4196 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
4197 (mac_get_rdb_resource): New function (from w32reg.c).
4198 (x_get_string_resource): Use it.
4199 (install_window_handler): Add extern.
4200 (mac_window): New function.
043f7f73
SM
4201 (Fx_create_frame): Use it instead of make_mac_frame.
4202 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
4203 (Fx_open_connection, Fx_close_connection): New defuns.
4204 (syms_of_macfns): Defsubr them.
043f7f73
SM
4205 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
4206 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
4207 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
4208 (x_create_tip_frame): Don't call ShowWindow.
4209 (Fx_show_tip): Call ShowWindow.
4210 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
4211 TARGET_API_MAC_CARBON'.
4212 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
4213 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 4214
043f7f73 4215 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
4216 (Window): Typedef to WindowPtr and move outside `#if
4217 TARGET_API_MAC_CARBON'.
4218 (XSizeHints): New struct.
a2c7e69a 4219
b15325b2
ST
4220 * macterm.c (x_update_begin, x_update_end)
4221 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
4222 frame.
4223 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4224 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
4225 (construct_mouse_click): Put in #if 0.
4226 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
4227 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
4228 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4229 (activate_scroll_bars, deactivate_scroll_bars)
4230 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
4231 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
4232 if the position is neither user-specified nor program-specified.
4233 (x_free_frame_resources): Free size_hints.
043f7f73 4234 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
4235 (mac_clear_font_name_table): New function.
4236 (mac_do_list_fonts): Initialize font_name_table if needed.
4237 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
4238 around mac_do_list_fonts.
4239 (mac_unload_font): New function.
4240 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
4241 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
4242 and definitions with #if TARGET_API_MAC_CARBON.
4243 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
4244 (install_window_handler): Add decl.
4245 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
4246 window. Use UpdateControls. Get the rectangle that should be
4247 updated and restrict the target of expose_frame to it.
043f7f73 4248 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
4249 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
4250 (do_zoom_window): Don't use x_set_window_size.
4251 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
4252 (install_window_handler): New function.
4253 [!USE_CARBON_EVENTS] (mouse_region): New variable.
4254 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
4255 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
4256 GetEventDispatcherTarget inside BLOCK_INPUT.
4257 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
4258 Update mouse_region when mouse is moved.
4259 (make_mac_frame): Remove.
043f7f73
SM
4260 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
4261 Initialize mouse pointer shapes. Change values of f->left_pos and
4262 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
4263 Don't call ShowWindow.
b15325b2
ST
4264 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
4265 Vinvocation_name and Vsystem_name.
4266 (mac_make_rdb): New function (from w32term.c).
4267 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
4268 already been opened. Don't pass argument to
4269 mac_initialize_display_info. Don't set dpyinfo->height/width.
4270 Add entries to x_display_list and x_display_name_list.
4271 (x_delete_display): New function.
4272 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
4273 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
4274
b15325b2
ST
4275 * macterm.h (check_mac): Add extern.
4276 (struct mac_output): New member size_hints.
4277 (FRAME_SIZE_HINTS): New macro.
4278 (mac_unload_font): Add extern.
a2c7e69a 4279
b15325b2 4280 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 4281
1d1c7e75 4282 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 4283
92d2947b
RS
42842004-12-27 Richard M. Stallman <rms@gnu.org>
4285
043f7f73 4286 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
4287 (syms_of_buffer): Don't defsubr it.
4288
4289 * process.c (list_processes_1): Set undo_list instead
4290 of calling Fbuffer_disable_undo.
4291
043f7f73 4292 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 4293 single_display_prop_string_p.
043f7f73 4294 (single_display_spec_intangible_p): Rename from
92d2947b 4295 single_display_prop_intangible_p.
043f7f73 4296 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
4297 Rewritten to be easier to understand.
4298
a2c7e69a 4299 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
4300 and variables get just NAME.
4301
4302 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4303
4304 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4305 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
4306 (Qdefvar): Var deleted.
4307 (syms_of_eval): Don't initialze it.
4308
4309 * lread.c (syms_of_lread) <load-history>: Doc fix.
4310
9f6fcdc5
JD
43112004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4312
4313 * xmenu.c (popup_get_selection): Pop down on C-g.
4314 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
4315 pops down menu on C-g.
4316 (xdialog_show): If dialog popped down and no button in the dialog was
4317 pushed, call Fsignal to quit.
4318 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
4319 Fsignal to quit.
4320
1d1c7e75 4321 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
4322
4323 * gtkutil.c (xg_initialize): Install bindings for C-g so that
4324 dialogs and menus pop down.
4325
d8ca23a0
KH
43262004-12-27 Kenichi Handa <handa@m17n.org>
4327
4328 * coding.c (code_convert_region): Fix calculation of `ratio'.
4329
857ae68b
JD
43302004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4331
133c0116
JD
4332 * gtkutil.c (update_frame_tool_bar): Make the value of
4333 tool-bar-button-margin control margins of images in tool bar.
4334
857ae68b
JD
4335 * alloc.c (check_depth): New variable.
4336 (overrun_check_malloc, overrun_check_realloc): Only add
4337 overhead and write check pattern if check_depth is 1 (to handle
4338 recursive calls). Increase/decrease check_depth in entry/exit.
4339 (overrun_check_free): Only check for overhead if check_depth is 1.
4340 Increase/decrease check_depth in entry/exit.
4341
bd55c35c
JD
43422004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4343
4344 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
4345 before touching input_available_clear_time, to avoid accessing it
4346 from multiple threads.
4347
66354420
JR
43482004-12-23 Jason Rumney <jasonr@gnu.org>
4349
4350 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
4351 of JPEG library.
4352
55f4edbc
RS
43532004-12-22 Richard M. Stallman <rms@gnu.org>
4354
4355 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
4356
4357 * lisp.h (Vundo_outer_limit): Fix decl.
4358
4359 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
4360 Uses changed.
4361 (syms_of_undo): Initialize appropriately.
4362 (truncate_undo_list): If it's nil, there's no limit.
4363
7a0ea9e3
KH
43642004-12-22 Kenichi Handa <handa@m17n.org>
4365
4366 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
4367
fda2922a
RS
43682004-12-21 Richard M. Stallman <rms@gnu.org>
4369
4370 * eval.c (unwind_to_catch): Clear immediate_quit.
4371
4372 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
4373 specially as `\ ' and `\-'.
4374
4375 * keyboard.c (kbd_buffer_store_event_hold):
4376 In the code for while-no-input, handle immediate_quit.
4377
4378 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
4379 Call that at the very start.
043f7f73 4380 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
4381 (syms_of_alloc): Don't define undo-limit,
4382 undo-strong-limit and undo-outer-limit here.
4383
4384 * undo.c (truncate_undo_list): Return void.
4385 Take just one argument, the buffer.
4386 Make it current, and inhibit recursive GC.
4387 Access and update the undo list directly; return void.
4388 Refer to the undo...limit variables directly.
4389 Test undo_outer_limit only after counting the whole current command.
4390 When it's exceeded, call the function in undo-outer-limit-function.
4391 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
4392 (Vundo_outer_limit_function): New variable.
4393 (syms_of_undo): Define undo-limit, undo-strong-limit
4394 and undo-outer-limit here, and undo-outer-limit-function.
4395 Doc fixes.
4396
4397 * lisp.h (truncate_undo_list): Update decl.
4398
43992004-12-21 Piet van Oostrum <piet@cs.uu.nl>
4400
4401 * fileio.c (Fread_file_name): Delete duplicates in
4402 file-name-history when history_delete_duplicates is true.
4403
68c69027
ST
44042004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4405
4406 * macterm.c (mac_do_list_fonts): Fix memory leak
4407
134579f2
RS
44082004-12-20 Richard M. Stallman <rms@gnu.org>
4409
4410 * regex.c (re_match_2_internal) <symend, wordend>:
4411 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
4412
fbe6152f
ST
44132004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4414
043f7f73
SM
4415 * macterm.c (endif, x_font_name_to_mac_font_name):
4416 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
4417 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
4418 quickly finding a specific font without needing regexps.
4419
fecad3f6
JD
44202004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4421
333f1b6f
JD
4422 * syssignal.h: Declare main_thread.
4423 (SIGNAL_THREAD_CHECK): New macro.
4424
4425 * keyboard.c (input_available_signal): Move thread checking code
4426 to macro SIGNAL_THREAD_CHECK and call that macro.
4427 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
4428
4429 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
4430
4431 * emacs.c: Define main_thread.
4432 (main): Initialize main_thread.
4433 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
4434 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
4435
4436 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
4437
4438 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
4439
4440 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
4441
043f7f73
SM
4442 * process.c (send_process_trap, sigchld_handler):
4443 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
4444
4445 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
4446
4447 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
4448
fecad3f6
JD
4449 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
4450 returning when xg_ignore_gtk_scrollbar is true.
4451
2a84c6da
KS
44522004-12-14 Kim F. Storm <storm@cua.dk>
4453
4454 * keyboard.c (read_char): Save and restore echo_string when
4455 handling input method.
4456
d9c1ce9d
RS
44572004-12-13 Richard M. Stallman <rms@gnu.org>
4458
4459 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
4460
4461 * keyboard.c (Vthrow_on_input): New variable.
4462 (syms_of_keyboard): Defvar and initialize it.
4463 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
4464
4465 * lisp.h (QUIT): Check for Vthrow_on_input.
4466 (Vthrow_on_input): Declare it.
4467
a6495ed5
KS
44682004-12-13 Kim F. Storm <storm@cua.dk>
4469
4470 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
4471 vector.
4472
24a0e22f
RS
44732004-12-12 Richard M. Stallman <rms@gnu.org>
4474
4475 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
4476
4477 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
4478 (Ftry_completion): Really use outer `zero'; eliminate inner one.
4479
d6d31e57
KH
44802004-12-12 Kenichi Handa <handa@m17n.org>
4481
4482 * term.c (encode_terminal_code): Fix previous change.
4483
6f8ffb88
SM
44842004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
4485
fb6f5cbf
SM
4486 * keyboard.c (handle_async_input): Remove pthread mutex handling.
4487 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
4488
6f8ffb88
SM
4489 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
4490 in macro arguments.
4491
4492 * minibuf.c (Ftry_completion, Fall_completions): Don't use
4493 XFASTINT blindly.
4494
4495 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
4496
c83c9f9d
JD
44972004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4498
2f25767f
JD
4499 * w32term.c (x_calc_absolute_position): Remove calculation of
4500 difference between inner and outer window. Don't subtract difference
4501 for left and top calculations.
4502
c83c9f9d
JD
4503 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
4504 for left and top calculations. Remove call to x_real_positions.
24a0e22f 4505 [Bug report by Drew Adams in November]
c83c9f9d
JD
4506 (x_check_expected_move): Do not set change_gravity to 1 when calling
4507 x_set_offset.
4508
cc1caa4e
RS
45092004-12-08 Richard M. Stallman <rms@gnu.org>
4510
4511 * xdisp.c (get_next_display_element): Use `escape-glyph' for
4512 control chars and escaped octal codes.
4513 (Qescape_glyph): New variable.
4514 (syms_of_xdisp): Initialize it.
4515 (escape_glyph_face): New variable.
4516 (redisplay_window): Initialize it.
4517
e0e30823
RS
45182004-12-07 Paul Eggert <eggert@cs.ucla.edu>
4519
4520 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
4521 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
4522
f415cacd
JD
45232004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4524
cf435f39
JD
4525 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
4526 reset_malloc_hooks.
4527
6f8ffb88
SM
4528 * keyboard.c (handle_async_input, input_available_signal):
4529 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 4530
f415cacd
JD
4531 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
4532
043f7f73 45332004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
4534
4535 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
4536
4537 * config.in: Regenerate.
4538
ded997c1
JD
45392004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4540
453a4f1b
JD
4541 * xmenu.c (Fx_popup_menu): Correct documentation about position.
4542 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
4543 if not given by a mouse click to correspond with x-popup-menu
4544 documentation.
4545
9a38524c
JD
4546 * config.in: Regenerate.
4547
aa477689
JD
4548 * gtkutil.c: Include signal.h and syssignal.h.
4549 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
4550
4551 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
4552 new variables main_thread and alloc_mutex,
4553 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
4554 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
4555 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
4556 (UN)BLOCK_INPUT.
4557 (emacs_blocked_free, emacs_blocked_malloc)
4558 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
4559 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
4560 (reset_malloc_hooks): New function.
4561
4562 * lisp.h: Declare reset_malloc_hooks.
4563
4564 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
4565
4566 * keyboard.c: Conditionally include pthread.h
6f8ffb88 4567 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
4568 thread, block signal, send signal to main thread and return.
4569
ded997c1 4570 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 4571 Set current folder in file chooser if default_filename is a directory.
ded997c1 4572
c72b0edd
SM
45732004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
4574
4575 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
4576 Remove redundant correctness checks.
4577 (regex_compile): Fix up error codes for \{..\} expressions.
4578
c721eee5
RS
45792004-12-05 Richard M. Stallman <rms@gnu.org>
4580
4581 * regex.c (regex_compile): Fix end-of-pattern case for space.
4582
d8f96db8
ST
45832004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4584
6108209e
KS
4585 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
4586 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 4587 crashes with invalid characters.
6108209e
KS
4588 * macmenu.c (add_menu_item): Use it.
4589 * image.c (image_load_quartz2d): Likewise.
4590 * macfns.c (x_set_name, x_set_title): Likewise.
4591 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
4592 creating them each time for labels.
d8f96db8 4593
ab67e8b6
RS
45942004-12-02 Richard M. Stallman <rms@gnu.org>
4595
4596 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
4597 don't use it here.
4598
4599 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
4600 (interactive_p): Skip Scalled_interactively_p frames
4601 like Sinteractive_p frames.
b8217ea6 4602 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
4603
4604 * data.c (Fmake_variable_buffer_local): Doc fix.
4605 (Fmake_local_variable): Doc fix.
4606
4607 * insdel.c (insert_from_string_before_markers)
4608 (insert_from_string): Don't modify buffer on empty insertion.
4609
4610 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
4611
f86bdc80
ST
46122004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4613
4614 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
4615 menu text as UTF8 fails.
4616
1cae6d39
KS
46172004-12-01 Kim F. Storm <storm@cua.dk>
4618
4619 * alloc.c: Add commentary for last change.
4620 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
4621 sizeof(size_t) != 4.
4622 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
4623 Use them. Also clear header and trailer of freed memory.
4624 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
4625 (string_overrun_cookie): Rename from string_overrun_pattern.
4626 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
4627
77ea0764
AS
46282004-12-01 Andreas Schwab <schwab@suse.de>
4629
4630 * lisp.h: Declare string_to_multibyte.
4631
2d5cd4e6
KH
46322004-12-01 Kenichi Handa <handa@m17n.org>
4633
4634 * w32console.c (w32con_write_glyphs): Decide coding here.
4635 Adjusted for the change of encode_terminal_code.
4636
4637 * term.c (encode_terminal_code): Don't make it "static".
4638
25a0994a
KH
46392004-11-30 Kenichi Handa <handa@m17n.org>
4640
19b1f29a 4641 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 4642 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
4643 characters at once, and return a pointer to the result of encoding.
4644 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
4645 (insert_glyphs): Likewise.
4646 (term_init): Initialize encode_terminal_bufsize to 0.
4647
4648 * coding.c (Vcode_conversion_workbuf_name): New variable.
4649 (syms_of_coding): Initialize and staticpro it.
4650 (set_conversion_work_buffer): New function.
4651 (run_pre_post_conversion_on_str): Use it.
4652 (run_pre_write_conversin_on_c_str): New function.
4653
4654 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
4655
fc7a70cc
ST
46562004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4657
4658 * keyboard.c: Don't undef SIGIO
4659 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
4660 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
4661 (macfns.o): Don't depend on ccl.h.
4662 * macfns.c (mac_frame_parm_handlers): Set handlers for
4663 Qleft_fringe and Qright_fringe.
4664 * macterm.c (mac_fill_rectangle_to_pixmap)
4665 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
4666 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
4667 Put in #if 0.
4668 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
4669 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
4670 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
4671 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4672 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
4673 XDrawImageString. Always draw background and foreground separately.
4674 (x_draw_image_foreground): Use clipping instead of computing the
4675 intersection rectangle.
4676 (x_draw_image_glyph_string): Don't draw an image with mask to a
4677 pixmap.
4678 (x_redisplay_interface): Set flush_display_optional member to 0.
4679 (XTread_socket): Correctly reset the TEConverter
4680 object.
4681
fc368889
KS
46822004-11-30 Kim F. Storm <storm@cua.dk>
4683
4684 * lisp.h: New defines to enable buffer overrun checking.
4685 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
4686 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
4687
4688 * alloc.c: Add more checks for buffer overruns.
4689 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
4690 xmalloc_overrun_check_trailer, overrun_check_malloc)
4691 overrun_check_realloc, overrun_check_free): Add.
4692 (GC_STRING_EXTRA, string_overrun_pattern): Add.
4693 (check_sblock, allocate_string_data, compact_small_strings):
4694 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
4695 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
4696 (check_string_free_list): Add.
4697 (allocate_string, sweep_strings): Call check_string_free_list.
4698
4699 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
4700 XMALLOC_OVERRUN_CHECK to avoid crash during load.
4701
0af8cfe1
KS
47022004-11-29 Kim F. Storm <storm@cua.dk>
4703
4704 * fns.c (concat): Use SAFE_ALLOCA.
4705
77220eeb
SM
47062004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
4707
4708 * sysdep.c (emacs_write): Don't use QUIT.
4709
a778cf63
KH
47102004-11-29 Kenichi Handa <handa@m17n.org>
4711
4712 * buffer.c (init_buffer): Set current_buffer->directory to a
4713 multibyte string made by string_to_multibyte.
4714
77220eeb 4715 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 4716
e3177e43
AS
47172004-11-27 Andreas Schwab <schwab@suse.de>
4718
4719 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
4720
4721 * s/gnu-linux.h: Enable no-op gcpros on ia64.
4722 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
4723
77220eeb
SM
4724 * filelock.c (lock_file_1): Call get_boot_time early.
4725 Increase buffer size.
e3177e43 4726
ca5e6fef
EZ
47272004-11-27 Eli Zaretskii <eliz@gnu.org>
4728
4729 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
4730 is not defined.
4731
e2811828
KS
47322004-11-27 Kim F. Storm <storm@cua.dk>
4733
4734 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
4735 marker out of doc string.
4736
7a262394
SM
47372004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
4738
4739 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
4740 which was not mentioned in the log.
4741
f33cc5a9
KS
47422004-11-26 Kim F. Storm <storm@cua.dk>
4743
048bb03f
KS
4744 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
4745 angle bitmaps at top/bottom line.
4746
52eb0373 4747 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
4748 set it when it->method is set to next_element_from_display_vector.
4749 (setup_for_ellipsis): Add LEN argument. Callers changed.
4750 Set it->saved_face_id.
4751 (get_next_display_element): Use loop instead of recursion.
4752 Set it->saved_face_id. Combine duplicate code for ctr chars.
4753 (next_element_from_display_vector): Do not set it->saved_face_id.
4754 (next_element_from_ellipsis): Use setup_for_ellipsis.
4755
670e8906
EZ
47562004-11-26 Eli Zaretskii <eliz@gnu.org>
4757
4758 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
4759 prevent compiler warnings.
4760
275464e7
SM
47612004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
4762
1bf0e604
SM
4763 * keyboard.c (command_loop_1): Print a message describing the key
4764 the user just pressed when this key has no binding.
4765
275464e7
SM
4766 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
4767 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
4768
4769 * lread.c (readchar): Check QUIT when `getc' is interrupted.
4770
261b01c6
RS
47712004-11-24 Richard M. Stallman <rms@gnu.org>
4772
4773 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
4774
4775 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
4776
a5bd504e
KS
47772004-11-24 Kim F. Storm <storm@cua.dk>
4778
4779 * xdisp.c (move_it_in_display_line_to, display_line):
4780 Restore saved_face_id also when truncate-lines or hscrolled.
4781
255e4140
JD
47822004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4783
4784 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
4785 x-use-old-gtk-file-dialog.
4786
4787 * xfns.c: Define x_use_old_gtk_file_dialog.
4788 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
4789 outside ifdef USE_GTK.
4790
cab27d04
SM
47912004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
4792
4793 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
4794 Don't use XFASTINT blindly.
4795
4796 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
4797
4798 * indent.c (skip_invisible): Avoid non-idempotent side-effects
4799 in macro arguments.
4800
4801 * keymap.c (Flookup_key): Check INTEGERP before XINT.
4802
4803 * lread.c (oblookup): Don't use XFASTINT blindly.
4804
4805 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
4806 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
4807
11e0be49
KS
48082004-11-23 Kim F. Storm <storm@cua.dk>
4809
4d721114
KS
4810 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
4811 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
4812
11e0be49
KS
4813 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
4814 signal_p is zero and face name is unknown.
4815 (Fx_list_fonts): Don't signal error in lookup_named_face.
4816 (Fface_font): Signal error in lookup_named_face.
4817 (ascii_face_of_lisp_face): Likewise.
4818
4819 * dispextern.h (lookup_named_face): Fix prototype.
4820
4821 * xdisp.c (handle_single_display_prop): Don't signal error in
4822 lookup_named_face for unknown fringe face name.
4823 (highlight_trailing_whitespace): Don't signal error in
4824 lookup_named_face if trailing-whitespace face unknown.
4825 (calc_line_height_property): Don't signal error in
4826 lookup_named_face if specified face name is unknown.
4827
4828 * fringe.c (update_window_fringes): Show top row indicator if
4829 window has header-line. Don't show arrow at bob and eob
4830 if the boundary indicators are not used.
4831 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
4832
4833 * window.c (set_window_buffer): Clear display_error_modiff.
4834
0960a582
KS
48352004-11-22 Kim F. Storm <storm@cua.dk>
4836
4837 * fringe.c (update_window_fringes): Provide sensible fall-back
4838 value for non-nil indicate-buffer-boundaries setting.
4839
b0e9bb28
MR
48402004-11-22 Markus Rost <rost@ias.edu>
4841
4842 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
4843
d0bce91e
SM
48442004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
4845
4846 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
4847
e1814672
KS
48482004-11-21 Kim F. Storm <storm@cua.dk>
4849
b7fd3518
KS
4850 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
4851
4852 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
4853 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4854
4855 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
4856 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4857
4858 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
4859 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4860
d0bce91e
SM
4861 * xdisp.c (move_it_in_display_line_to, display_line):
4862 Restore saved_face_id if overflow-newline-into-fringe is enabled and
4863 line is continued before or in middle of element from display vector.
f01d4d05 4864
f1a61389
KS
4865 * indent.c (Fvertical_motion): Fix last change. Use another
4866 method to detect if iterator moved too far ahead after reseat.
4867
e1814672
KS
4868 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
4869 expand matrix width for overflow in zero-width area.
4870 (append_glyph, append_composite_glyph, produce_image_glyph)
4871 (append_stretch_glyph): Use it to avoid loop in redisplay.
4872 (note_mode_line_or_margin_highlight): Don't let help-echo from
4873 string override help-echo from image map.
4874
2dafe1c9
LT
48752004-11-20 Luc Teirlinck <teirllm@auburn.edu>
4876
d0bce91e 4877 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
4878 * callint.c (Fcall_interactively): Ditto.
4879
fd6866c8 48802004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
4881
4882 * minibuf.c (Fminibuffer_complete_and_exit):
4883 Fixup the case of the completed value, for case-indep completion.
4884
dedbac89
RS
48852004-11-20 Richard M. Stallman <rms@gnu.org>
4886
fd6866c8
RS
4887 * lisp.h (Fread_from_minibuffer): Add arg in decl.
4888
9d00469f 4889 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 4890 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 4891
dedbac89 4892 * search.c (Vsearch_spaces_regexp):
d0bce91e 4893 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 4894
2f672bb5
TTN
48952004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
4896
4897 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
4898
f31a9a68
RS
48992004-11-19 Richard M. Stallman <rms@gnu.org>
4900
4901 * search.c (Vsearch_whitespace_regexp): New variable.
4902 (syms_of_search): Defvar it.
4903 (compile_pattern_1): Call re_set_whitespace_regexp with it.
4904 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
4905 is non-nil.
6de891db
RS
4906 (struct regexp_cache): New element whitespace_regexp.
4907 (syms_of_search): Initialize whitespace_regexp elements.
4908 (compile_pattern): Compare whitespace_regexp elements.
4909 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
4910
4911 * regex.c (regex_compile): Substitute whitespace_regexp
4912 for spaces, if it is nonzero.
4913 (whitespace_regexp): New variable.
4914 (re_set_whitespace_regexp): New function.
4915
cbc34cb3
KS
49162004-11-19 Kim F. Storm <storm@cua.dk>
4917
4918 * indent.c (Fvertical_motion): Fix last change.
4919
b54a7539
KS
49202004-11-18 Kim F. Storm <storm@cua.dk>
4921
4922 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
4923 Instead, move back again if reseating moves too far ahead.
4924
49252004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
4926
4927 * xdisp.c (message3): Call clear_message.
4928
5ff504fe
KS
49292004-11-17 Kim F. Storm <storm@cua.dk>
4930
4931 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
4932
5ae53dcf
JD
49332004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4934
d0bce91e 4935 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 4936
6abf3a27 4937 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
4938 (x_menu_set_in_use): Also set popup_activated_flag.
4939
5ff504fe 4940 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
4941 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
4942
52eb0373 4943 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 4944
ee31cd78
RS
49452004-11-16 Richard M. Stallman <rms@gnu.org>
4946
6abf3a27
SM
4947 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
4948 Use map-keymap-internal to implement that.
ee31cd78
RS
4949
4950 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
4951
6abf3a27
SM
49522004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
4953
4954 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
4955 a window before using XWINDOW.
4956
4957 * window.c (make_window, Fselect_window, make_dummy_parent)
4958 (save_window_save):
4959 * frame.c (make_frame):
4960 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
4961
4962 * lisp.h (NILP): Use EQ rather than XFASTINT.
4963
b4d61105
KS
49642004-11-16 Kim F. Storm <storm@cua.dk>
4965
6abf3a27 4966 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 4967
b4d61105
KS
4968 * indent.c (Fvertical_motion): Fix last change. Only reseat when
4969 moving backwards.
4970
49712004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
4972
4973 * dispextern.h: Extern reseat_at_previous_visible_line_start.
4974
ab5b02b0
KH
49752004-11-16 Kenichi Handa <handa@m17n.org>
4976
4977 * xdisp.c (display_mode_element): Fix previous change (calculate
4978 end position of substring to display correctly).
4979
c482cf97
KS
49802004-11-16 Kim F. Storm <storm@cua.dk>
4981
4982 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
4983 Reported by Andrew M. Scott.
4984
9f89426b
KS
49852004-11-15 Kim F. Storm <storm@cua.dk>
4986
4987 * fns.c (Fsafe_plist_get): New defun.
4988 (syms_of_fns): Defsubr it.
4989
4990 * lisp.h (Fsafe_plist_get): Add EXFUN.
4991
4992 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
4993 Use Fsafe_plist_get.
4994 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4995 Fix image map element parsing. Use Fsafe_plist_get.
4996
27418463
RS
49972004-11-15 Richard M. Stallman <rms@gnu.org>
4998
4999 * xdisp.c (get_next_display_element): Fix previous change.
5000
a130b901
JD
50012004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5002
ef614e04
JD
5003 * window.c (shrink_windows): Handle special case of one window left
5004 when trying to shrink the final reminder. Grow windows if
5005 total_removed is less than total_shrink.
5006
a130b901
JD
5007 * xmenu.c (pop_down_menu): Remove global variable current_menu,
5008 extract pointer from arg with XSAVE_VALUE.
46303896
KS
5009 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
5010 Construct arg to record_unwind_protect with make_save_value.
a130b901 5011
d9a03ad2
RS
50122004-11-13 Richard M. Stallman <rms@gnu.org>
5013
5014 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
5015 (get_next_display_element): Fix previous change to apply only to \n.
5016
5017 * indent.c (Fvertical_motion): Scan to PT from start of line to
5018 make iterator consistent.
5019
5020 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
5021
b3935289
JD
50222004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5023
5024 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
5025
5026 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
5027 Record unwind with clean_up_file_dialog.
5028
78819ebb
KS
5029 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
5030 Declare.
b3935289
JD
5031
5032 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
5033
af89e871
JD
50342004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5035
457a8155 5036 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 5037 (xg_file_sel_destroy): Remove.
46303896
KS
5038 (xg_file_response_cb, pop_down_file_dialog)
5039 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 5040 New functions.
6abf3a27
SM
5041 (xg_get_file_with_chooser, xg_get_file_with_selection):
5042 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
5043 Move common code to xg_get_file_name. Return widget created.
5044 (xg_get_file_name): Set name, transient for, modal and destroy
5045 with parent here. Connect response signal to xg_file_response_cb,
5046 connect delete-event to gtk_true. Record pop_down_file_dialog
5047 for unwind. Do event loop and call x_menu_wait_for_event in loop.
5048 (xg_create_widget): Make dialogs modal.
5049
af89e871
JD
5050 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
5051 Lisp_Object.
5052 (popup_get_selection): Move unwind protect ...
5053 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5054 Move destroy of widget to pop_down_menu.
5055 (popup_widget_loop): Move unwind protect ...
5056 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5057 Move destroy of widget to pop_down_menu.
5058 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 5059 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
5060 x_mouse_leave and grabbed = 0 to pop_down_menu.
5061
5596fbf1
KS
50622004-11-13 Kim F. Storm <storm@cua.dk>
5063
5064 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
5065 (syms_of_xdisp): DEFVAR_BOOL it.
5066 (make_cursor_line_fully_visible, try_cursor_movement)
5067 (try_window_id): Use it.
5068
b9de078a
KS
50692004-11-12 Kim F. Storm <storm@cua.dk>
5070
381f7091
KS
5071 * dispextern.h (struct glyph_row): New member extra_line_spacing.
5072 (struct it): New member max_extra_line_spacing.
5073 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
5074 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
5075 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
5076 part of last line is only extra line spacing (so the text on the
52eb0373 5077 line is fully visible). Use helper macros.
381f7091
KS
5078 Add W arg (to use them). All callers changed.
5079 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
5080 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
5081
6abf3a27
SM
5082 * window.c (window_scroll_pixel_based, Frecenter):
5083 Use move_it_vertically_backward directly.
381f7091
KS
5084 (Frecenter): Fix calculation of new start pos for negative arg.
5085 Before, the new start pos was sometimes chosen too far back, so
5086 the last line became only partially visible, and thus would be
5087 either only semi-visible or automatically scrolled to the middle
5088 of the window by redisplay.
5089
5090 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
5091 (move_it_vertically_backward): Don't recure to move further back.
5092 (move_it_vertically): Remove superfluous condition.
5093 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 5094 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
5095 (display_tool_bar_line): Clear row->extra_line_spacing.
5096 (try_scrolling): Use move_it_vertically_backward directly.
5097 (redisplay_window): Likewise.
5098 (compute_line_metrics): Set row->extra_line_spacing.
5099 (display_line, display_string): Likewise.
5100 (x_produce_glyphs): Update it->max_extra_line_spacing.
5101
b9de078a
KS
5102 * xmenu.c (pop_down_menu): Return nil.
5103
c3438661
JD
51042004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5105
5106 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 5107 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 5108 to handle timers.
df00f436
JD
5109 (popup_widget_loop): Add argument do_timers.
5110 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
5111 do_timers to popup_widget_loop.
c3438661
JD
5112 (xmenu_show): Call XMenuActivateSetWaitFunction so that
5113 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 5114 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 5115 popup_get_selection.
f1d1cd24
JD
5116 (pop_down_menu): New function.
5117 (popup_get_selection, popup_widget_loop): Unwind protect to
5118 pop_down_menu.
5119 (popup_widget_loop): Add argument widget.
5120 (create_and_show_popup_menu, create_and_show_dialog): Pass new
5121 argument widget to popup_widget_loop.
c3438661 5122
32e2fb04
SM
51232004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5124
5125 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
5126
0faf6806
KS
51272004-11-09 Kim F. Storm <storm@cua.dk>
5128
5129 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
5130 Fix various comments referring to XEvents instead of input events.
5131 (x_queue_event): Fix format strings.
5132 (x_stop_queuing_selection_requests): Likewise.
5133
5134 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
5135 (pint2hrstr): Add extra braces to silence compiler.
5136
5137 * print.c (print_object): Fix format string.
5138
5139 * lread.c (read1): Fix next_char matching.
5140
5141 * lisp.h (Fdelete): Add EXFUN.
5142 (replace_range_2): Add prototype.
5143
5144 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
5145
5146 * intervals.h (NULL_INTERVAL_P): Add separate version when
5147 ENABLE_CHECKING is not defined to silence compiler.
5148 (compare_string_intervals): Add prototype.
5149
5150 * fringe.c (destroy_fringe_bitmap): Fix return type.
5151 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
5152
5153 * emacs.c (Fdump_emacs): Fix format string.
5154
5155 * doc.c: Include <ctype.h>.
5156 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
5157
5158 * data.c (store_symval_forwarding): Remove unused variables.
5159
5160 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
5161
16bf4e32
JD
51622004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5163
5164 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
5165 to ${OLDXMENU}.
5166
cdb805a9
KS
51672004-11-09 Kim F. Storm <storm@cua.dk>
5168
5169 * process.c (Fmake_network_process): Remove kludge for interrupted
5170 connects on BSD. If connect is interrupted, just close socket and
5171 start over rather than sleeping and retry with same socket.
5172
d87a9ab8 51732004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 5174
a8b16c80
JD
5175 * .cvsignore: Add buildobj.lst.
5176
d87a9ab8
JD
5177 * doc.c: New variable Vbuild_files.
5178 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 5179 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
5180 that are in Vbuild_files.
5181 (syms_of_doc): Defvar Vbuild_files.
5182
5183 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
5184 and w32*.o.
5185 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 5186 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
5187
5188 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
5189 is linked.
5190
b6709e77
KS
51912004-11-09 Kim F. Storm <storm@cua.dk>
5192
5193 * fringe.c (update_window_fringes): Update fringe bitmaps if
5194 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
5195 also update previous row to get rid of misc. artifacts.
5196
bae9677d
KS
51972004-11-08 Kim F. Storm <storm@cua.dk>
5198
5199 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 5200 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 5201
3f8ea68c
EZ
52022004-11-08 Eli Zaretskii <eliz@gnu.org>
5203
5204 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
5205 Don't include <sys/time.h> explicitly.
5206 Include <stdio.h> unconditionally, not just on MacOS.
5207
a653f812
KH
52082004-11-08 Kenichi Handa <handa@m17n.org>
5209
5210 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
5211 don't pay attention to '\' before '*'.
5212 (fontset_pattern_regexp): Change the meaning of the second arg.
5213 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
5214 (check_fontset_name): Try NAME as literal at first, and if it
5215 failes, try NAME as pattern.
5216
c37caf9d
JD
52172004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5218
5219 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
5220
b72915a7
AS
52212004-11-07 Andreas Schwab <schwab@suse.de>
5222
78819ebb
KS
5223 * lisp.h (Fmsdos_downcase_filename): Declare.
5224 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
5225 * fileio.c: Likewise.
5226
238a44a8
JD
52272004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5228
5229 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
5230 comparisons with integers instead of Lisp_Object address.
5231 (Fmsdos_set_keyboard): Declare argument allkeys.
5232
5233 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
5234
78819ebb 5235 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
5236 int/Lisp_Object mixup.
5237
5238 * fileio.c: Ditto.
5239
31141c13
ST
52402004-11-06 Steven Tamm <steventamm@mac.com>
5241
5242 * editfns.c: Need to include sys/time.h before resource.h on darwin.
5243
f28c1bd9
RS
52442004-11-06 Richard M. Stallman <rms@gnu.org>
5245
5246 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
5247
5248 * xfaces.c (merge_named_face): GCPRO the face_name in the
5249 named_merge_point struct that we make.
5250 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
5251
5252 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
5253 before deciding whether to inactivate mark.
5254
59dede22
EZ
52552004-11-06 Lars Brinkhoff <lars@nocrew.org>
5256
5257 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
5258 * editfns.c (Fget_internal_run_time): New function.
5259 (syms_of_data): Defsubr it.
5260 * fns.c (sxhash): As far as possible, merge calculation of
5261 hash code for symbols and strings.
59dede22 5262
27540e81
EZ
52632004-11-06 Eli Zaretskii <eliz@gnu.org>
5264
5265 * frame.c (syms_of_frame): Fix the example in the doc string.
5266
df470e3b
JD
52672004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5268
5269 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
5270
5271 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
5272 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 5273
4cc8522c
LT
52742004-11-05 Luc Teirlinck <teirllm@auburn.edu>
5275
5276 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
5277
d4a42098
KS
52782004-11-05 Kim F. Storm <storm@cua.dk>
5279
a8490886
KS
5280 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
5281
d4a42098
KS
5282 * fileio.c (Ffile_modes): Doc fix.
5283 (auto_save_1): Check for Ffile_modes nil value.
5284
36a2b04c
KS
52852004-11-05 Kim F. Storm <storm@cua.dk>
5286
5287 * xselect.c (struct selection_event_queue, selection_queue)
5288 (x_queue_selection_requests, x_queue_event)
5289 (x_start_queuing_selection_requests)
5290 (x_stop_queuing_selection_requests): Add new queue for selection
5291 input events to replace previous XEvent queue in xterm.c.
5292 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
5293 (x_reply_selection_request): Adapt to new queue.
5294 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
5295 (x_handle_selection_request, x_handle_selection_clear): Make static.
5296 (x_handle_selection_event): New function. May queue selection events.
5297 (wait_for_property_change_unwind): Use save_value instead of cons.
5298 Clear property_change_reply_object.
5299 (wait_for_property_change): Abort if already waiting.
5300 Use save_value instead of cons for unwind data.
5301 (x_handle_property_notify): Skip events already arrived, but don't
5302 free them, as "arrived" field is checked by wait_for_property_change,
5303 and it will be freed by unwind or explicit unexpect_property_change.
5304 (x_get_foreign_selection): Add to new queue.
5305 (receive_incremental_selection): Don't unexpect wait_object when done
5306 as it has already been freed by previous wait_for_property_change.
5307
5308 * xterm.h (x_start_queuing_selection_requests)
5309 (x_stop_queuing_selection_requests, x_handle_selection_request)
5310 (x_handle_selection_clear): Remove prototypes.
5311 (x_handle_selection_event): Add prototype.
5312
5313 * xterm.c (handle_one_xevent): Don't queue X selection events
5314 here, it may be too late if we start queuing after we have already
5315 stored some selection events into the kbd buffer.
5316 (struct selection_event_queue, queue, x_queue_selection_requests)
5317 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
5318 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
5319 (x_catch_errors_unwind): Block input around final XSync.
5320
5321 * keyboard.h (kbd_buffer_unget_event): Add prototype.
5322
5323 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
5324 (kbd_buffer_unget_event): New function.
5325 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
5326 and use x_handle_selection_event.
5327 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
5328
9c3ad9e1
JD
53292004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5330
5331 * xselect.c (TRACE3): New debug macro.
5332 (x_reply_selection_request): Use it.
5333 (receive_incremental_selection): In call to TRACE0, the name of
5334 a symbol is in xname.
5335
a33b89de
KS
53362004-11-05 Kim F. Storm <storm@cua.dk>
5337
5338 * fontset.c (fontset_pattern_regexp): Use unsigned char.
5339
a872928c
JD
53402004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5341
88208bb8
JD
5342 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
5343
78819ebb 5344 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
5345
5346 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 5347 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
5348 * xfns.c (syms_of_xfns): ... to here.
5349
a872928c
JD
5350 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
5351 it doesn't start with /.
5352
b912921c
KH
53532004-11-04 Kenichi Handa <handa@m17n.org>
5354
5355 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
5356 treat it as a literal character.
5357
c524d9a6
KS
53582004-11-03 Kim F. Storm <storm@cua.dk>
5359
5360 * .gdbinit (ppt): New function.
5361
8cfd0f36
JD
53622004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5363
a11e1dce
JD
5364 * xterm.c (x_window_to_scroll_bar): Only call
5365 xg_get_scroll_id_for_window if toolkit scroll bars are used.
5366
8cfd0f36
JD
5367 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
5368 of save.
5369
a93563fd
AS
53702004-11-02 Andreas Schwab <schwab@suse.de>
5371
5372 * window.c (Fscroll_right): Fix last change.
5373
2b2d59d8
KS
53742004-11-02 Kim F. Storm <storm@cua.dk>
5375
5376 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
5377
53782004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5379
5380 * callproc.c (Fcall_process): Block input around vfork.
5381
ca28104d
KS
53822004-11-02 Kim F. Storm <storm@cua.dk>
5383
5384 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
5385 (syms_of_eval): Defsubr it.
5386
29bb7127
RS
53872004-11-02 Richard M. Stallman <rms@gnu.org>
5388
5389 * insdel.c (replace_range_2): New function.
5390
5391 * casefiddle.c (casify_region): Handle changes in byte-length
5392 using replace_range_2.
5393
5394 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
5395
b6189c3b 5396 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
5397 Subtract 1 from pos when checking previous newline for invisibility.
5398
5399 * window.c (window_scroll_pixel_based): Update preserve_y
5400 for header line if any.
5401 (Fscroll_left, Fscroll_right): Don't call interactive_p;
5402 use a new second argument instead.
5403
5404 * eval.c (Fcall_interactive_p): New function.
5405 (interactive_p): Don't test INTERACTIVE here.
5406 (Finteractive_p): Doc fix.
5407
5408 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
5409
b6189c3b 54102004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
5411
5412 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 5413 comparing font names.
a3fe4aaf 5414
2a00cdb4
JD
54152004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5416
f9d64bb3
JD
5417 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
5418 Fx_file_dialog if only directories should be read.
5419
5420 * lisp.h: Fx_file_dialog takes 5 parameters.
5421
32e2fb04
SM
5422 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
5423 Add parameter only_dir_p.
f9d64bb3
JD
5424 In Motif version, don't put DEFAULT_FILENAME in filter part of the
5425 dialog, just text field part. Do not add DEFAULT_FILENAME
5426 to list of files if it isn't there.
5427 In GTK version, pass only_dir_p parameter to xg_get_file_name.
5428
32e2fb04
SM
5429 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
5430 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
5431 a save dialog, add option kNavDontConfirmReplacement, change title
5432 to "Enter name", change text for save button to "Ok".
5433
32e2fb04
SM
5434 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
5435 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
5436
5437 * gtkutil.c (xg_get_file_with_chooser)
5438 (xg_get_file_with_selection): New functions, only defined ifdef
5439 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
5440 respectively.
5441 (xg_get_file_name): Add parameter only_dir_p.
5442 Call xg_get_file_with_chooser or xg_get_file_with_selection
5443 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
5444 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
5445
5446 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
5447
2a00cdb4
JD
5448 * config.in: Rebuild (added HAVE_GTK_FILE_*).
5449
f6749d5d
KS
54502004-11-01 Kim F. Storm <storm@cua.dk>
5451
32e2fb04
SM
5452 * process.c (connect_wait_mask, num_pending_connects):
5453 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 5454 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
5455 (IF_NON_BLOCKING_CONNECT): New helper macro.
5456 (wait_reading_process_output): Only declare and use local vars
5457 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 5458
1a99fe1a
JR
54592004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
5460
5461 * w32term.c (x_scroll_run): Delete region objects after use.
5462
fcdb28b4
JD
54632004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5464
495ef86b
JD
5465 * xmenu.c: Add prototypes for forward function declarations.
5466 (popup_get_selection): Remove parameter do_timers, remove call to
5467 timer_check.
32e2fb04
SM
5468 (create_and_show_popup_menu, create_and_show_dialog):
5469 Remove parameter do_timers from call to popup_get_selection.
495ef86b 5470
12e6566a
JD
5471 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
5472 tool_bar_items and assign the result to f->tool_bar_items if
5473 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
5474 tool_bar_items to assignment of result.
5475
fcdb28b4
JD
5476 * atimer.c (alarm_signal_handler): Do not call set_alarm if
5477 pending_atmers is non-zero.
5478
1a1a0c4c
KS
54792004-10-31 Kim F. Storm <storm@cua.dk>
5480
5481 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
5482
a36f1680
JW
54832004-10-28 Will <will@glozer.net>
5484
1d1c7e75 5485 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
5486 key via a 'mac-option-modifier' variable.
5487
32e2fb04 54882004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
5489
5490 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
5491 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
5492 (x_handle_selection_request, x_handle_selection_clear)
5493 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
5494
4f71c13f
RS
54952004-10-28 Richard M. Stallman <rms@gnu.org>
5496
5497 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5498
5499 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5500
068f3848
SM
55012004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
5502
5503 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
5504 comment-starter over a 1-char one.
5505
4660a9e3
RS
55062004-10-27 Richard M. Stallman <rms@gnu.org>
5507
5508 * xdisp.c (get_next_display_element): In mode lines,
5509 treat newline and tab like other control characters.
5510
5511 * editfns.c (Fmessage): Doc fix.
5512
5513 * indent.c (vmotion): When moving up, check the newline before.
5514 Make prevline an int, not a Lisp_Object.
5515
233f3db6
KS
55162004-10-27 Kim F. Storm <storm@cua.dk>
5517
5518 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
5519 Only allocate info and discarded tables once.
5520
5521 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
5522 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
5523 (SAFE_FREE): Test it to determine if we need to unwind to free.
5524 Remove size arg. All users changed.
5525 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
5526
1442465d
JD
55272004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5528
5529 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
5530 (xg_destroy_widgets): Rename from remove_from_container.
5531 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
5532 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
5533 instead of remove_from_container.
5534 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
5535 (free_frame_tool_bar): Add comment.
5536
5537 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
5538 is not NULL before strcmp.
5539
c8636435
KS
55402004-10-26 Kim F. Storm <storm@cua.dk>
5541
5542 * callint.c (Fcall_interactively): Add 'U' code to get the
5543 up-event discarded by a previous 'k' or 'K' argument.
5544
5629f29b
DK
55452004-10-26 David Kastrup <dak@gnu.org>
5546
5547 * buffer.c (syms_of_buffer): Fix a few typos.
5548
4f2f546e
JD
55492004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5550
5551 * xsmfns.c: Put empty line between comment and function body.
5552 Use two spaces before comment end.
5553
fc1062f5
KH
55542004-10-25 Kenichi Handa <handa@m17n.org>
5555
5556 * fontset.c (fontset_pattern_regexp): Optimize for the case that
5557 PATTERN is full XLFD.
5558
be13f5e5
KH
55592004-10-24 Kenichi Handa <handa@m17n.org>
5560
5561 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
5562
5563 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
5564 (regex_compile): Return REG_ERANGEX if appropriate.
5565
d0ee2ed3
KH
55662004-10-22 Kenichi Handa <handa@m17n.org>
5567
5568 * editfns.c (Ftranslate_region_internal): New function.
5569 (syms_of_editfns): Defsubr it.
5570
63ea8ea5
JD
55712004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5572
5573 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
5574
9ba27690 55752004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 5576
068f3848
SM
5577 * xterm.h (x_output): New member `xic_base_fontname'.
5578 (FRAME_XIC_BASE_FONTNAME): New macro.
5579 (xic_free_xfontset): Declare.
c27ed90a 5580
068f3848
SM
5581 * xfns.c (xic_create_xfontset): Share fontsets between frames
5582 based on base_fontname.
5583 (xic_free_xfontset): New function.
5584 (free_frame_xic): Use it.
5585 (xic_set_xfontset): Ditto.
c27ed90a 5586
068f3848 5587 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
5588
5589
59508699
JR
55902004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
5591
5592 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
5593
dede2792
JD
55942004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5595
3aca2078
JD
5596 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
5597 XSync.
5598
dede2792
JD
5599 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
5600 New variables and constant.
5601 (main): Calculate heap_bss_diff. If we are dumping and the
5602 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
5603 and exec ourself again.
5604 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
5605 print a warning.
5606
5607 * lastfile.c: Make my_endbss and my_endbss_static available on all
5608 platforms.
5609
5610 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
5611 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
5612
1dc5ba01
LT
56132004-10-19 Luc Teirlinck <teirllm@auburn.edu>
5614
5615 * data.c (Flocal_variable_if_set_p): Doc fix.
5616
950090be
JR
56172004-10-19 Jason Rumney <jasonr@gnu.org>
5618
5619 * w32.c (init_environment): Set emacs_dir correctly when running
5620 emacs from the build directory.
5621
8550b998
RS
56222004-10-19 Richard M. Stallman <rms@gnu.org>
5623
5624 * editfns.c (Fdelete_and_extract_region):
5625 If region is empty, return null string.
5626
08dedea6
JD
56272004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5628
1dc5ba01 5629 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 5630 and canon_width.
068f3848 5631 (xg_frame_cleared): Remove.
08dedea6 5632
068f3848
SM
5633 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
5634 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
5635 (xg_create_scroll_bar): Put an event box widget between
5636 the scroll bar widget and the edit widget.
5637 (xg_show_scroll_bar): Show the parent widget (the event box).
5638 (xg_remove_scroll_bar): Destroy parent (the event box) also.
5639 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
5640 Move the parent (the event box) widget inside the fixed widget.
5641 Move window clear to xterm.c.
5642
068f3848 5643 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 5644
08dedea6 5645 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
5646 (x_scroll_bar_create, XTset_vertical_scroll_bar):
5647 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
5648 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
5649
8550b998 56502004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
5651
5652 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 5653
84338890
JD
56542004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5655
5656 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
5657 gdk_window_clear and move gdk_window_process_all_updates after
5658 clear so events are sent to the X server in correct order.
5659
6e1b0d8c
KH
56602004-10-18 Kenichi Handa <handa@m17n.org>
5661
5662 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
5663 comparing font names.
8550b998 5664 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
5665 (list_fontsets): Likewise.
5666
5667 * search.c (fast_string_match_ignore_case): New function.
5668
5669 * lisp.h (fast_string_match_ignore_case): Extern it.
5670
345e75a8
KS
56712004-10-17 Kim F. Storm <storm@cua.dk>
5672
5673 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
5674 than bitmap if there is not left fringe.
5675 (get_overlay_arrow_glyph_row): Also used on windows system.
5676 (display_line): Display overlay string if no left fringe.
5677
be13cbb7
JR
56782004-10-16 Jason Rumney <jasonr@gnu.org>
5679
5680 * w32fns.c (w32_font_match): Encode font name being matched.
5681
c2e2ede7
RS
56822004-10-16 Richard M. Stallman <rms@gnu.org>
5683
5684 * window.c (Fspecial_display_p): Doc fix.
5685
043f7f73 56862004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
5687
5688 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
5689 Don't ignore menus, because where-is-internal already does it for us.
5690
699a0392
KS
56912004-10-15 Kim F. Storm <storm@cua.dk>
5692
b3c7a89b
KS
5693 * xdisp.c (redisplay_window): Only update fringes and vertical
5694 border on window frames.
699a0392 5695
4e382b0f
AS
56962004-10-14 Andreas Schwab <schwab@suse.de>
5697
5698 * m/ia64.h (DATA_SEG_BITS): Don't define.
5699
329a7be2
KS
57002004-10-14 Kim F. Storm <storm@cua.dk>
5701
5702 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 5703 in some X versions.
329a7be2 5704
982241b1
SM
57052004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5706
5707 * fns.c (map_char_table): Add missing gcpros.
5708
9238467d
SM
57092004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5710
5711 * keymap.c (get_keymap): An autoload form is not a keymap.
5712
5713 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
5714
4440e3ca
KS
57152004-10-13 Kim F. Storm <storm@cua.dk>
5716
7cfdabde
KS
5717 * callproc.c (Fcall_process): Simplify handling of display arg.
5718 Resume `display_on_the_fly' once a coding system is determined.
5719
4440e3ca
KS
5720 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
5721
1c8dec6a
KS
57222004-10-12 Kim F. Storm <storm@cua.dk>
5723
5724 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
5725 caller, such as call-process, is not going to poll for input.
5726 (calc_line_height_property): Handle case where it->object is nil.
5727
5728 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
5729
170b174c
KH
57302004-10-12 Kenichi Handa <handa@m17n.org>
5731
9238467d
SM
5732 * xdisp.c (get_next_display_element):
5733 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
5734 chars in octal in unibyte buffer.
5735
b583964c
KS
57362004-10-12 Kim F. Storm <storm@cua.dk>
5737
5738 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
5739 are no ordinary bindings.
5740
29fabd8c
JD
57412004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5742
9238467d 5743 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 5744
c3f4c690
ST
57452004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5746
9238467d
SM
5747 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
5748 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 5749 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
5750 terminal frame.
5751 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
5752 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
5753 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
5754 Make a cancel file-open dialog be like C-g.
9238467d
SM
5755 * mac.c (mktime): Use emacs_mktime.
5756 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
5757 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 5758
9688f9eb
KS
57592004-10-10 Kim F. Storm <storm@cua.dk>
5760
5761 * keyboard.c (timer_resume_idle): New function to resume idle
5762 timer without resetting timers on the idle list.
52eb0373 5763 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
5764 (timer_start_idle, timer_stop_idle): Declare static.
5765 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
5766
5767 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
5768
f7f3a65f
ST
57692004-10-08 Steven Tamm <steventamm@mac.com>
5770
9238467d 5771 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 5772 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 5773 NULL where 0 should be used.
f7f3a65f
ST
5774 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
5775 objc/malloc.h
9238467d 5776 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 5777
3c7d999a
KS
57782004-10-07 Kim F. Storm <storm@cua.dk>
5779
5780 * xdisp.c (redisplay_window): Fix flicker on vertical line between
5781 windows. Update vertical line after drawing window fringes, but
5782 only if actually drawing any bitmaps--or there is no fringe.
5783
5784 * xterm.c (x_update_window_end): Likewise.
5785 * macterm.c (x_update_window_end): Likewise.
5786 * w32term.c (x_update_window_end): Likewise.
5787
5788 * fringe.c (draw_window_fringes): Return value now indicates if
5789 any fringe bitmaps were redrawn (or there are no fringes).
5790
5791 * dispextern.h (draw_window_fringes): Update prototype.
5792
bf06c82f
ST
57932004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5794
5795 * macfns.c (mac_get_window_bounds): Add extern.
5796 (x_real_positions): Use mac_get_window_bounds.
5797
5798 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
5799 xmenu.c (YAILOM).
3c7d999a 5800
bf06c82f
ST
5801 * macterm.c [!MAC_OSX]: Include Windows.h.
5802 (front_emacs_window): Rename from mac_front_window. All uses
5803 changed. Return the frontmost non-tooltip emacs window.
5804 (mac_get_window_bounds): New function.
5805 (x_calc_absolute_position): Use the difference of width and height
5806 between the inner and outer window.
5807 (x_set_offset): Specify window position by the coordinae of the
5808 outer window. Adjust the position if the title bar is completely
5809 outside the screen.
5810 (app_is_suspended, app_sleep_time): Remove unused variables.
5811 (do_app_resume, do_app_suspend): Remove their contents because
5812 window-activate/deactivate events will do the job.
5813 (do_zoom_window): Remove unused variables. Make compliant to the
5814 standard way of zooming. Set f->left_pos and f->top_pos.
5815 (XTread_socket): Don't use argument `expected'. Don't use
5816 FrontWindow to determine the clicked window. Exclude unprocessed
5817 mouseUp cases in the early stage. Add parentheses to fix operator
5818 precedence.
5819 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
5820
4cbbf6b7 58212004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
5822
5823 * config.in: Regenerate.
5824
5825 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
5826 HAVE_EXECSHIELD.
5827
b90ee8b5
JD
58282004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5829
5830 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
5831 a row if Alt or Meta has been found for that row. Also stop scanning
5832 for Keysyms for that row.
5833
904db1a2
KS
58342004-10-04 Kim F. Storm <storm@cua.dk>
5835
0207b8ad
KS
5836 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
5837 to list. Include overlay arrow bitmap in return value.
5838
25f7220c
KS
5839 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
5840 bars with fractional column width. If scroll bar separates two
5841 windows, move it towards the window it belongs to. Only update
5842 the padding area below the scroll bar widget when necessary,
5843 i.e. when scroll bar widget is created, moved, or resized.
5844
562020fe
KS
5845 * xdisp.c (define_frame_cursor1): Do not change frame cursor
5846 while tracking/dragging mouse.
5847 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
5848
37e34af7
KS
5849 * window.c (coordinates_in_window): Relax check for cursor
5850 on vertial border between mode lines.
5851 (Fset_window_fringes): Do not allow negative widths.
5852 (Fset_window_scroll_bars): Likewise.
5853
904db1a2
KS
5854 * .gdbinit (pp): Shorthand for p ARG + pr.
5855 (ff): New command: flush frame updates (X only).
5856
38fe4f64
MA
58572004-10-03 Michael Albinus <michael.albinus@gmx.de>
5858
5859 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
5860
9de36315
KH
58612004-09-30 Kenichi Handa <handa@m17n.org>
5862
07c381ad 5863 * process.c (send_process): Free composition data.
9de36315 5864
07c381ad 5865 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
5866
5867 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
5868 compositions to encode.
5869 (encode_coding_string): Likewise. Free composition data.
5870
d5fb8dab 58712004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
5872
5873 * coding.c (code_convert_region): Free composition data.
9de36315 5874
f2a54fbc
KS
58752004-09-29 Kim F. Storm <storm@cua.dk>
5876
dc5d6435
KS
5877 * fringe.c: Remove limit on number of bitmaps.
5878 (fringe_bitmaps, fringe_faces): Change to pointers.
5879 (max_fringe_bitmaps): New var.
5880 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
5881 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
5882
5883 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
5884 (struct glyph_row): Reorder fringe_bitmap related fields.
5885 (struct it): Likewise.
5886
5887 * w32term.c (fringe_bmp): Change to pointer.
5888 (max_fringe_bmp): New var.
5889 (w32_define_fringe_bitmap): Expand fringe_bmp.
5890 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
5891 (w32_destroy_fringe_bitmap): Likewise.
5892
58932004-09-29 Kim F. Storm <storm@cua.dk>
5894
5895 * fringe.c: Simplify last change.
f2a54fbc
KS
5896 (lookup_fringe_bitmap): New function.
5897 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
5898 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
5899 Keep standard bitmaps in Vfringe_bitmaps.
5900 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
5901 (Fset_fringe_bitmap_face): Likewise.
5902
5903 * dispextern.h (lookup_fringe_bitmap): Add prototype.
5904 (valid_fringe_bitmap_p): Remove prototype.
5905
5906 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
5907
841a8bca
KS
59082004-09-29 Kim F. Storm <storm@cua.dk>
5909
1f2da365
KS
5910 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
5911 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
5912
841a8bca
KS
5913 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
5914
5915 * fringe.c (Vfringe_bitmaps): New variable.
5916 (syms_of_fringe): DEFVAR_LISP it.
5917 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
5918 Change arg to Lisp_Object and fail if not an integer.
5919 (get_fringe_bitmap_name, resolve_fringe_bitmap)
5920 (destroy_fringe_bitmap): New functions.
9238467d
SM
5921 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
5922 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
5923 clear its fringe property.
5924 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
5925 Fdestroy_fringe_bitmap.
5926 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
5927 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
5928 and set fringe property. Signal error if no free slots.
5929 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
5930 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
5931
5932 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
5933 symbols with a fringe property.
5934
4d965590
KS
59352004-09-27 Kim F. Storm <storm@cua.dk>
5936
5937 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
5938 Doc fix. Format may now be a symbol or alist, not a cons.
5939
5940 * fringe.c (update_window_fringes): Handle new formats of
5941 indicate-buffer-boundaries (symbol or alist). No longer
5942 allow a simple cons.
5943 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
5944
e888c2b3
JD
59452004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5946
9238467d 5947 * config.in: Rebuild.
e888c2b3 5948
83f1cb94
JD
59492004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5950
5951 * config.in: Rebuild.
5952
dd3b1d60 5953 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 5954
2c51754c
SM
59552004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
5956
5957 * xterm.c (x_term_init): Work around a bug in some X servers.
5958
3df5f8aa
RS
59592004-09-18 Richard M. Stallman <rms@gnu.org>
5960
557ca2c1
RS
5961 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
5962
3df5f8aa
RS
5963 * xdisp.c (try_window_reusing_current_matrix):
5964 Handle the case where we reach the old displayed text,
5965 out of sync with the old line boundary.
5966
9238467d 59672004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
5968
5969 * fileio.c (Finsert_file_contents): Fix case of replacement in a
5970 narrowed buffer.
5971
bfa02563
KS
59722004-09-14 Kim F. Storm <storm@cua.dk>
5973
a25fe164
KS
5974 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
5975
bfa02563
KS
5976 * xfaces.c (Qface_no_inherit): New var.
5977 (syms_of_xfaces): Intern and staticpro it.
5978 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
5979 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
5980 Don't increment face_change_count when face has non-nil
5981 face-no-inherit property.
5982
126f9c02
SM
59832004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
5984
892a8eb5
SM
5985 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
5986 (Fbyte_code): Remove dead code after `wrong_type_argument'.
5987
126f9c02 5988 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 5989 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 5990
c0ad3b38
KS
59912004-09-12 Kim F. Storm <storm@cua.dk>
5992
5993 * editfns.c (Fformat): Handle format strings with multiple text
5994 properties. Reverse text property list from the format string,
5995 so the positions are in increasing order.
5996
844fc085
JD
59972004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5998
5999 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
6000 x_uncatch_errors so that possible protocol errors are delivered.
6001
b106731c
EZ
60022004-09-10 Eli Zaretskii <eliz@gnu.org>
6003
21065c92
EZ
6004 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
6005 blockinput.h.
6006 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
6007 charset.h, and coding.h
9238467d 6008 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
6009 (term.o): Depend on window.h and keymap.h.
6010 (abbrev.o): Depend on syntax.h.
6011 (callint.o): Depend on keymap.h.
6012 (casefiddle.o): Depend on charset.h and keymap.h.
6013 (category.o): Depend on keymap.h.
6014 (coding.o): Depend on dispextern.h.
6015 (cmds.o): Depend on keyboard.h and keymap.h.
6016 (dispnew.o): Depend on indent.h and intervals.h.
6017 (doc.o): Depend on keymap.h.
6018 (editfns.o): Depend on frame.h.
6019 (emacs.o): Depend on dispextern.h.
6020 (fileio.o): Don't depend on ccl.h.
6021 (filelock.o): Depend on charset.h and coding.h.
6022 (frame.o): Depend on w32term.h and macterm.h.
6023 (insdel.o): Depend on region-cache.h.
6024 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
6025 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
6026 (search.o): Depend on $(INTERVALS_SRC).
6027 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
6028 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
6029 xterm.h, w32term.h, and macterm.h.
6030 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
6031 w32term.h, and macterm.h.
6032 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
6033 region-cache.h, xterm.h, w32term.h, and macterm.h.
6034 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
6035 (data.o): Depend on frame.h.
6036 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
6037 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
6038 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
6039 (intervals.o): Depend on keymap.h.
6040
9238467d
SM
6041 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
6042 Add debugging print-out to termscript.
b106731c 6043
64b7122d
RS
60442004-09-09 Richard M. Stallman <rms@gnu.org>
6045
6046 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
6047
5670531e
RS
60482004-09-08 Richard M. Stallman <rms@gnu.org>
6049
6cb4a892
RS
6050 * window.c (Fset_window_buffer): Doc fix.
6051
5670531e
RS
6052 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
6053
7e388eb7
JL
60542004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
6055
6056 * minibuf.c (history_delete_duplicates): New variable.
6057 (read_minibuf): Use it.
6058 (syms_of_minibuf): Create the corresponding lisp variable.
6059
370e3587
KS
60602004-09-08 Kim F. Storm <storm@cua.dk>
6061
6062 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
6063 overlay just before point.
6064
f844ba4e
LT
60652004-09-07 Luc Teirlinck <teirllm@auburn.edu>
6066
6067 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
6068 * buffer.c (reset_buffer, init_buffer_once):
6069 Handle auto_save_file_format field.
f844ba4e
LT
6070 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
6071 `buffer-auto-save-file-format'.
f844ba4e
LT
6072 * fileio.c: Delete declaration for removed Vauto_save_file_format.
6073 (build_annotations): Adapt to replacement of
6074 `auto-save-file-format' with the new buffer-local variable
6075 `buffer-auto-save-file-format'.
6076 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
6077
f0f90717
JR
60782004-09-07 Jason Rumney <jasonr@gnu.org>
6079
6080 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
6081
9238467d
SM
6082 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
6083 Handle Unicode menu titles.
f0f90717 6084
4e14f66c
KS
60852004-09-07 Kim F. Storm <storm@cua.dk>
6086
6087 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
6088 property from text property or overlay strings at point.
6089
9238467d 60902004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
6091
6092 * xmenu.c (update_submenu_strings): YAILOM.
6093 (set_frame_menubar): Make sure last_i is initialized.
6094
1f06d367
JR
60952004-09-03 Jason Rumney <jasonr@gnu.org>
6096
1806714a 6097 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
6098 (digest_single_submenu): Set lname and lkey in widget_value
6099 instead of name and key.
6100 (update_submenu_strings): New function.
6101 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6102 call update_submenu_strings.
6103
6104 * w32menu.c (globals_of_w32menu): Check for Unicode API.
6105 (digest_single_submenu, w32_menu_show): Encode menu strings as
6106 UTF-8 if Unicode API is available.
6107 (utf8to16): New function.
6108 (add_menu_item): Use it when calling Unicode API.
1806714a 6109
46540080
KS
61102004-09-03 Kim F. Storm <storm@cua.dk>
6111
6112 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
6113 in overlay or text-property strings; set cursor on corresponding
6114 glyph rather than at end of the string.
6115
9277ba61 61162004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 6117
9277ba61 6118 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
6119 set a new one before obtaining the global coordinate.
6120 Use FRAME_MAC_WINDOW.
6121 (x_set_name, x_set_title): Encode title to UTF8.
6122 Use SetWindowTitleWithCFString.
9277ba61
ST
6123 (Fx_server_version): Get correct OS version.
6124
1806714a
SM
6125 * macmenu.c (add_menu_item): Remove unused variable `i'.
6126 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
6127
6128 * macterm.c (x_update_end): Move SetPortWindowPort to inside
6129 BLOCK_INPUT.
6130 (x_set_offset): Use FRAME_MAC_WINDOW.
6131
6132 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
6133 nontext_cursor if it is on a scroll bar.
6134
6135 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
6136 Carbon support.
1806714a
SM
6137 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
6138 Use LIBS_CARBON.
9277ba61 6139
b10daec7
JD
61402004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6141
6142 * xfns.c (x_set_name_internal): New function. Check if we shall call
6143 xfree before ENCODE_UTF_8.
6144 (x_set_name, x_set_title): Call x_set_name_internal.
6145
f7e22385
JR
61462004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
6147
6148 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
6149 reload it.
6150
2bf436c3
JD
61512004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6152
1806714a 6153 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
6154 (single_submenu): Set lname and lkey in widget_value
6155 instead of name and key.
6156 (update_submenu_strings): New function.
6157 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6158 call update_submenu_strings.
6159
2bf436c3
JD
6160 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
6161 instead of name and key.
6162 (update_submenu_strings): New function.
6163 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 6164 call update_submenu_strings.
2bf436c3
JD
6165
6166 * gtkutil.h (_widget_value): Added lname and lkey.
6167
11715f92
ST
61682004-08-30 Steven Tamm <steventamm@mac.com>
6169
6170 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
6171 by using different names for inner loop variables.
6172
5500be54
JD
61732004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6174
059cd329
JD
6175 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
6176 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
6177
5500be54
JD
6178 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
6179 tool bar items is 0.
6180
383418e5
ST
61812004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6182
6183 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
6184 strings in menu items.
6185 (single_submenu): Use ENCODE_MENU_STRING
6186 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
6187 button release isn't passed to event loop
6188 (add_menu_item): Use SetMenuItemWithCFString
6189
6eb3ee72
ST
61902004-08-26 Steven Tamm <steventamm@mac.com>
6191
6192 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
6193 tool-bar/menu click.
6194 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 6195
10b43ac3
JD
61962004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6197
2728b5d0
JD
6198 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
6199
10b43ac3
JD
6200 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6201 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6202 (x_top_window_to_frame): Return 0 if wdesc is None.
6203
2ee3b79e
RS
62042004-08-22 Richard M. Stallman <rms@gnu.org>
6205
6206 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
6207 HAVE_TERMIOS]: If there's no char for this signal, drop through
6208 and use system calls.
6209
6210 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
6211
9a1ba2ea
KS
62122004-08-20 Kim F. Storm <storm@cua.dk>
6213
6214 * process.c (wait_reading_process_output): Rename from
6215 wait_reading_process_input. All uses changed.
6216 (wait_reading_process_output_1): Rename from
6217 wait_reading_process_input_1. All uses changed.
6218
6219 * dispnew.c (Fsleep_for): Remove obsolete code.
6220
295f3b30
KH
62212004-08-20 Kenichi Handa <handa@m17n.org>
6222
6223 * syntax.c (skip_chars): Fix for unibyte case.
6224
27615979
SM
62252004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * syntax.c (char_quoted): Mixup byte/char pos.
6228 (back_comment): Fixup globals in all cases.
6229
00267f94
JD
62302004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6231
6232 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
6233 passing it to gtk_window_set_title.
6234
2439909e
KS
62352004-08-19 Kim F. Storm <storm@cua.dk>
6236
6ba0f14c
KS
6237 * process.c (wait_reading_process_input): Clean up.
6238 Add wait_for_cell, wait_proc, and just_wait_proc args
6239 to avoid overloading `read_kbd' and `do_display' args.
6240 Change read_kbd arg to int. All callers changed.
6241
2439909e
KS
6242 * process.c (process_send_signal): Use CDISABLE.
6243
6244 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
6245
101c421e
KS
62462004-08-18 Kim F. Storm <storm@cua.dk>
6247
6248 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
6249 forward to wait_reading_process_input via DO_DISPLAY arg.
6250 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
6251 object, only process output from that process; also inhibit
6252 running timers if DO_DISPLAY==-2.
6253
c438dc33
KS
62542004-08-17 Kim F. Storm <storm@cua.dk>
6255
6256 * process.c (process_send_signal): Fix last change--use
6257 _POSIX_VDISABLE instead of CVDISABLE when available.
6258
8afc13c6
RS
62592004-08-16 Richard M. Stallman <rms@gnu.org>
6260
6261 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
6262 Set VQUIT and VINTR chars to the standard ones if they are unset.
6263 [AIX]: Don't do that here. And don't force VINTR to standard
6264 when SIGNALS_VIA_CHARACTERS.
6265
c438dc33 6266 * process.c (process_send_signal)
8afc13c6
RS
6267 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
6268 Do nothing if the character is CVDISABLE.
6269
6270 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
6271
c438dc33 6272 * intervals.c (move_if_not_intangible):
8afc13c6
RS
6273 Force POSITION to be between BEGV and ZV.
6274
6dad1714
JPW
62752004-08-14 John Paul Wallington <jpw@gnu.org>
6276
6277 * buffer.c (Frestore_buffer_modified_p): Doc fix.
6278
6279 * fileio.c (Fread_file_name): Doc fix.
6280
6281 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6282
2bd77330
LT
62832004-08-09 Luc Teirlinck <teirllm@auburn.edu>
6284
6285 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
6286
c90e7e43
LT
62872004-08-08 Luc Teirlinck <teirllm@auburn.edu>
6288
6289 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 6290 Qdisabled_command_hook.
c90e7e43 6291 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 6292 Qdisabled_command_hook.
c90e7e43
LT
6293 (syms_of_keyboard): Ditto.
6294
81909a1a
LT
62952004-08-07 Luc Teirlinck <teirllm@auburn.edu>
6296
6297 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
6298 (syms_of_keymap) <key-translation-map>: Doc fixes.
6299
0cedd530
SM
63002004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
6301
1725a7c9
SM
6302 * window.c (window_list_1): YAILOM.
6303
0cedd530
SM
6304 * fileio.c (make_temp_name): Handle multibyte prefixes.
6305
2515a131
LT
63062004-08-06 Luc Teirlinck <teirllm@auburn.edu>
6307
6308 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6309 Doc fix.
6310
c8b20fb7
KH
63112004-08-03 Kenichi Handa <handa@m17n.org>
6312
6313 * coding.c (decode_coding_string): Adjust coding->consumed, and
6314 etc. with shrinked_bytes.
6315
fb8b092b
KS
63162004-08-03 Kim F. Storm <storm@cua.dk>
6317
6318 * indent.c (compute_motion): Fix check for full width window
6319 in non-window case. Do not count left truncation glyph on
6320 window systems.
6321
df133612
LT
63222004-08-02 Luc Teirlinck <teirllm@auburn.edu>
6323
6324 * data.c (Finteractive_form): Doc fix.
6325
0f7a93c1
KS
63262004-08-02 Kim F. Storm <storm@cua.dk>
6327
6328 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
6329 properly accounting for continuation glyph on non-window systems.
6330 (Fcompute_motion): Use actual window width if WIDTH is nil, and
6331 actual window width/height if TOPOS is nil, properly accounting for
6332 continuation glyphs on non-window systems, and optional header lines.
6333 (vmotion): Let compute_motion calculate actual window width.
6334
6335 * window.c (window_scroll_line_based): Let compute_motion
6336 calculate actual window width.
6337
f491e1ed
KS
63382004-08-02 Kim F. Storm <storm@cua.dk>
6339
6340 * process.c (read_process_output): Use whole read buffer.
6341 Don't trigger adaptive read buffering on errors.
6342
83f64226
LT
63432004-07-31 Luc Teirlinck <teirllm@auburn.edu>
6344
6345 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
6346
1d1c7e75 6347 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
6348
6349 * callint.c (Fcall_interactively): Doc fix.
6350
8afc13c6
RS
63512004-07-30 Richard M. Stallman <rms@gnu.org>
6352
6353 * abbrev.c (Fexpand_abbrev): Undo previous change.
6354
7c111482
KS
63552004-07-30 Kim F. Storm <storm@cua.dk>
6356
6357 * editfns.c (Fformat): Allocate extra (dummy) element in info.
6358
ee945d08
LT
63592004-07-28 Luc Teirlinck <teirllm@auburn.edu>
6360
6361 * eval.c (Fdefvar, Fdefconst): Doc fixes.
6362
3f911c94
KS
63632004-07-27 Kim F. Storm <storm@cua.dk>
6364
6365 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
6366 we have ensured that the glyph fits on the current line (or returned
6367 MOVE_LINE_CONTINUED otherwise).
6368
f29ff8c7
KS
63692004-07-26 Kim F. Storm <storm@cua.dk>
6370
6371 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
6372 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
6373 if target position is at end of display line but char is not a newline.
6374
81159bb9
RS
63752004-07-25 Richard M. Stallman <rms@gnu.org>
6376
ab431b61
RS
6377 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
6378 instead of ON_VERTICAL_BORDER, when on scroll bar.
6379 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
6380
6381 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
6382
f29ff8c7 6383 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
6384 Take account of FRAME_INTERNAL_BORDER_WIDTH.
6385
6386 * alloc.c (check_cons_list): New function (contents commented out).
6387
fc820cc5
LT
63882004-07-24 Luc Teirlinck <teirllm@auburn.edu>
6389
6390 * xfaces.c (Fcolor_supported_p): Doc fix.
6391
6392 * frame.c (Fselect_frame, Fset_frame_selected_window)
6393 (Fframe_visible_p, Fraise_frame): Doc fixes.
6394
289978b5
LT
63952004-07-24 Richard M. Stallman <rms@gnu.org>
6396
78819ebb 6397 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
6398
6399 * fileio.c (Fwrite_region): Doc fix.
6400
6401 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
6402
6403 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
6404 only when a real abbrev is present.
6405
289978b5
LT
6406 * xfns.c (x_icon_verify): New function.
6407 (Fx_create_frame): Use it.
6408
d5fb8dab 64092004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
6410
6411 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
6412
36f826d4
KS
64132004-07-21 Kim F. Storm <storm@cua.dk>
6414
6415 * window.h (struct glyph_matrix): New members nrows_scale_factor
6416 and ncols_scale_factor.
6417
6418 * window.c (make_window): Initialize nrows_scale_factor and
6419 ncols_scale_factor members.
6420
6421 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
6422 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
6423 (required_matrix_height): Apply nrows_scale_factor.
6424 (required_matrix_width): Apply ncols_scale_factor.
6425
6426 * xdisp.c (display_line): Increment nrows_scale_factor and set
6427 fonts_changed_p if past last allocated row.
6428 (append_glyph, append_composite_glyph, produce_image_glyph)
6429 (append_stretch_glyph): Increment ncols_scale_factor and set
6430 fonts_changed_p if current area is full.
6431
5fc1c546
JD
64322004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6433
6434 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
6435
cb7516e5
LT
64362004-07-19 Luc Teirlinck <teirllm@auburn.edu>
6437
6438 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
6439 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
6440 (Fset_window_start, Fscroll_up, Fscroll_down)
6441 (Fother_window_for_scrolling, Fscroll_other_window)
6442 (Fsave_window_excursion, Fset_window_vscroll)
6443 (syms_of_window) <window-size-fixed>: Doc fixes.
6444
b6189c3b 64452004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
6446
6447 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
6448 ENCODE_SYSTEM for filenames.
6449
bfcf6608
ST
64502004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6451
6452 * mac.c (sys_select): Block input around call to
6453 ReceiveNextEvent to prevent breakage. Correctly handle
6454 blocking on event queue only by calling ReceiveNextEvent
6455 instead of select (since GUI events aren't on an fd).
6456 (sys_read): Remove function
6457 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
6458
e082ac9d
ST
64592004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6460
6461 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 6462 polling instead of 1 sec timeouts (like solaris).
e082ac9d 6463
cb7516e5 6464 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
6465 frame creation.
6466
6467 * keyboard.c: Undef SIGIO on Carbon
6468
6469 * atimer.c (alarm_signal_handler): Call alarm handlers after
6470 scheduling.
6471
6472 * eval.c (Feval): Remove quit_char test
6473
6474 * process.c (wait_reading_process_input): Remove clearing
6475 stdin for select call on process input.
6476
4b9da0fb
LT
64772004-07-18 Luc Teirlinck <teirllm@auburn.edu>
6478
1204e81c
LT
6479 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
6480 capitalization error in docstring.
4b9da0fb 6481
26503ad2
JB
64822004-07-17 Juanma Barranquero <lektu@terra.es>
6483
6484 * keyboard.c (not_single_kboard_state): Do nothing unless
6485 MULTI_KBOARD is defined.
6486
3751eb00
RS
64872004-07-17 Richard M. Stallman <rms@gnu.org>
6488
6489 * window.c (coordinates_in_window): Inside the window but outside
6490 its box to the L or R, return ON_VERTICAL_BORDER.
6491 (window_list_1): Rotate the list to start with WINDOW.
6492
6493 * print.c (print_preprocess): Test for print_depth at limit
6494 before entering in being_printed.
6495
6496 * keyboard.c (not_single_kboard_state): New function.
6497 (stuff_buffered_input): Now no-op only if no SIGTSTP.
6498
6499 * frame.c (Fdelete_frame): If we're in single_bboard_state on
6500 this kboard, and we delete its last frame, go to any_kboard_state.
6501
6502 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
6503
b6189c3b 65042004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
6505
6506 * w32fns.c (Fx_file_dialog): Encode strings in system coding
6507 system before passing them to OS functions for display.
6508
0f6af254
DK
65092004-07-15 David Kastrup <dak@gnu.org>
6510
f9253326
KS
6511 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
6512 Apparently fixes an abort condition.
0f6af254 6513
386c8f42
LT
65142004-07-14 Luc Teirlinck <teirllm@auburn.edu>
6515
6516 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
6517 instead of a cons.
6518
366511da
MB
65192004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6520
6521 * keyboard.c (echo_dash): Do nothing if there already is a dash
6522 at the end of the echo string.
6523
f85409d3
KS
65242004-07-12 Kim F. Storm <storm@cua.dk>
6525
6526 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
6527 if GC_MARK_STACK.
6528
0ba2e87b
LT
65292004-07-10 Luc Teirlinck <teirllm@auburn.edu>
6530
da38045d
LT
6531 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
6532
0ba2e87b
LT
6533 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
6534 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
6535 (Freplace_buffer_in_windows, Fset_window_buffer)
6536 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
6537 (syms_of_window): Expand docstring of `display-buffer-function'.
6538
5668fbb8
LT
65392004-07-09 Luc Teirlinck <teirllm@auburn.edu>
6540
6541 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
6542 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
6543 that time values of the type (HIGH . LOW) are considered obsolete.
6544
a085bf9d
LT
65452004-07-06 Luc Teirlinck <teirllm@auburn.edu>
6546
669de2fb
LT
6547 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
6548 docstring.
6549
bac66325 6550 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 6551
8e975df9
JPW
65522004-07-06 John Paul Wallington <jpw@gnu.org>
6553
6554 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
6555
fa164e6a
JPW
6556 * fns.c (Fclear_string): Signal an error if STRING is not a string.
6557
2bac9bb1
JD
65582004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6559
6560 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
6561 instead of CGMainDisplayID (only in OSX 10.2 and later).
6562
316ef0dc
JPW
65632004-07-04 John Paul Wallington <jpw@gnu.org>
6564
6565 * fileio.c (read_file_name_completion_ignore_case): New variable.
6566 (syms_of_fileio): Declare and initialise it.
6567 (Fread_file_name): Bind `completion-ignore-case' to respect it.
6568
2a1a35c6
EZ
65692004-07-03 Eli Zaretskii <eliz@gnu.org>
6570
6571 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
6572 for event.x and event.y.
6573
33a72331
KH
65742004-07-01 Kenichi Handa <handa@m17n.org>
6575
6576 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
6577 after getting a new string by pre-write-conversion.
6578
9238467d 65792004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
6580
6581 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
6582 (x_calc_absolute_position): Remove unused var `child'.
6583
6584 * xfaces.c (x_supports_face_attributes_p)
6585 (Fdisplay_supports_face_attributes_p): YAILOM.
6586 (tty_supports_face_attributes_p): Remove unused var `i'.
6587
6588 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
6589 back_unibyte_ok.
6590
6591 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
6592
6593 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
6594
6595 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
6596
f96ec754
AS
65972004-06-30 Andreas Schwab <schwab@suse.de>
6598
6599 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
6600 (Finit_image_library): Pass LIBRARIES through to
6601 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
6602 (lookup_image_type): Pass Qnil as second argument to
6603 Finit_image_library.
6604
78819ebb 6605 * lisp.h (Finit_image_library): Declare.
f96ec754 6606
59feca74 66072004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 6608
31983645
AS
6609 * macterm.c (do_window_activate, do_window_deactivate): Remove.
6610 (XTread_socket): Send mouse button events to the toolbox
6611 dispatcher even when the mouse is grabbed. Don't process window
6612 activate events for non-Emacs windows. Replace function calls to
6613 do_window_activate and do_window_deactivate with their contents.
6614 Reset mouse grabbing status when a window is deactivated.
59feca74 6615
c61278bb
ST
66162004-06-29 Steven Tamm <steventamm@mac.com>
6617
6618 * macterm.c (mac_get_emulated_btn)
6619 (mac_event_to_emacs_modifiers): Fix emulated mouse button
6620 support to correctly mask out modifiers.
6621
c3762cbd
DK
66222004-06-29 David Kastrup <dak@gnu.org>
6623
6624 * search.c (Fset_match_data): Allow buffer before end of list
6625 which can happen if set-match-data is using a pre-consed list.
6626
c61278bb 66272004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
6628
6629 * macterm.c (XTread_socket): Correctly set the frame position
6630 after the window is moved.
6631
74cdfe05
JD
66322004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6633
6634 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
6635 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
6636 (xg_get_image_for_pixmap): Add workaround for monochrome displays
6637 so insensitive and activated icons look ok.
74cdfe05 6638
ef544dc8
JR
66392004-06-27 Jason Rumney <jasonr@gnu.org>
6640
6641 * w32fns.c (file_dialog_callback): Disable edit control if set
6642 to directories only on CDN_INITDONE message.
6643 (Fx_file_dialog): Default to directories only when prompt starts
6644 with "Dired".
6645
7b7990cc
KS
66462004-06-25 Kim F. Storm <storm@cua.dk>
6647
6648 * alloc.c (allocate_misc): Update total_free_markers.
6649 (free_misc): New function.
6650 (safe_alloca_unwind, free_marker): Use it.
6651
6652 * lisp.h (free_misc): Add prototype.
6653
6654 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
6655
d8c379f8
RS
66562004-06-24 Richard M. Stallman <rms@gnu.org>
6657
6658 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
6659 (syms_of_emacs): Lisp variables deleted.
6660
559cdd07
DK
66612004-06-23 David Kastrup <dak@gnu.org>
6662
94939b84
DK
6663 * search.c (Freplace_match): Adjust the match-data more thoroughly
6664 when replacing strings in the buffer.
6665 (Fmatch_data): When INTEGERS is non-nil and the last match was in
6666 a buffer, add the buffer as last element to the match data.
6667 (Fset_match_data): If an additional element of the match-data is a
6668 buffer, restore it to last_thing_searched.
c8d09ad8 6669 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
6670 (restore_match_data): Restore it again.
6671
dce417e7
LT
66722004-06-23 Luc Teirlinck <teirllm@auburn.edu>
6673
6674 * keymap.c (Ftext_char_description): Doc fix.
6675 * doc.c (Fsnarf_documentation): Doc fix.
6676
ef54b2d0
KS
66772004-06-22 Kim F. Storm <storm@cua.dk>
6678
b5bc4d05
KS
6679 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
6680
ef54b2d0
KS
6681 * lisp.h (struct Lisp_Save_Value): New member dogc.
6682 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
6683 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
6684 (SAFE_FREE_LISP): New macro.
6685
6686 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
6687 (make_save_value): Init new dogc member.
6688 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
6689
6690 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
6691 SAFE_FREE_LISP macros.
6692
3d33d993
KS
66932004-06-22 Kim F. Storm <storm@cua.dk>
6694
6695 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
6696 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
6697 in that memory area are unknown to GC. Add comments.
6698
6699 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
6700
5c917f98
KS
67012004-06-21 Kim F. Storm <storm@cua.dk>
6702
6703 * lisp.h (MAX_ALLOCA): Define here.
6704 (safe_alloca_unwind): Add prototype.
6705 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
6706
6707 * alloc.c (safe_alloca_unwind): New function.
6708
6709 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
6710
6711 * charset.c (Fstring): Use SAFE_ALLOCA.
6712
6713 * coding.c (MAX_ALLOCA): Remove define.
6714
6715 * data.c (MAX_ALLOCA): Remove define.
6716 (Faset): Use SAFE_ALLOCA.
6717
6718 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
6719
6720 * fns.c (string_make_multibyte, string_to_multibyte)
6721 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
6722 (MAX_ALLOCA): Remove define.
6723 (Fbase64_encode_region, Fbase64_encode_string)
6724 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
6725 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
6726 memory leak if encoding fails.
6727
6728 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
6729
9a09408e
EZ
67302004-06-21 Eli Zaretskii <eliz@gnu.org>
6731
6732 * print.c (Fwith_output_to_temp_buffer): Doc fix.
6733
376de739
RS
67342004-06-20 Richard M. Stallman <rms@gnu.org>
6735
6736 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
6737
6738 * search.c (match_limit): Cleaner err msg when no match data available.
6739
6740 * window.c (syms_of_window): Doc fix.
6741
6742 * keyboard.c (command_loop_1): Handle values `only' and `identity'
6743 for Vtransient_mark_mode.
6744
6745 * buffer.c (syms_of_buffer): Doc fix.
6746
acd81db9
DK
67472004-06-21 David Kastrup <dak@gnu.org>
6748
6749 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
6750 and unbinding of `case-fold-search' according to
6751 `completion-ignore-case' around calls of string-match and
6752 predicates, respectively. Should give satisfactory performance
6753 in all relevant cases.
6754
f303762d
JD
67552004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6756
95911c74
JD
6757 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
6758 clip_x/y_origin.
6759
a6cb6b78
JD
6760 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
6761
f303762d
JD
6762 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
6763
6764 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
6765 on Mac OSX.
6766
bbdb2684
LT
67672004-06-16 Luc Teirlinck <teirllm@auburn.edu>
6768
6769 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
6770
5ea48b1c
KS
67712004-06-16 Kim F. Storm <storm@cua.dk>
6772
6773 * dispextern.h (Vimage_types): Remove extern.
6774
803aac3e
MB
67752004-06-16 Miles Bader <miles@gnu.org>
6776
6777 * image.c (lookup_image_type): Initialize image type if necessary.
6778
cdc97764
KS
67792004-06-15 Kim F. Storm <storm@cua.dk>
6780
c4a5739c
KS
6781 * xdisp.c (try_cursor_movement): Exclude header line from scroll
6782 margin at top of window.
6783 (try_window_reusing_current_matrix): Calculate proper cursor position
6784 after scrolling up with non-zero scroll margin, as the old cursor
6785 position corresponds to value of PT before executing this command.
6786 (try_window_id): Consider scroll margin at bottom of window too;
6787 otherwise we fail to scroll when hl-line-mode is enabled.
6788
cdc97764
KS
6789 * syntax.c (skip_chars): Only recognize [:class:] when it has the
6790 proper format and class is a lower-case word.
6791
5b166323
JD
67922004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6793
6794 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 6795 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
6796 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
6797 xg_get_gdk_pixmap_and_mask.
cdc97764 6798
5b166323
JD
6799 * xterm.h (struct x_display_info): Typo in comment fixed.
6800
1ebd4f78
JB
68012004-06-14 Juanma Barranquero <lektu@terra.es>
6802
6803 * dispextern.h (Vimage_types): Make it conditional on
6804 HAVE_WINDOW_SYSTEM.
6805
6806 * image.c (Vimage_types): Move from xdisp.c.
6807 (Vimage_type_cache): New variable.
6808 (define_image_type): New argument indicating whether an image
6809 library was loaded; cache loaded status and return t on success,
6810 nil otherwise.
6811 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
6812 (w32_delayed_load): New function to load an image library from a
6813 list of possible filenames.
6814 (init_xpm_functions, init_png_functions, init_jpeg_functions)
6815 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 6816 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
6817 (Finit_image_library): New function, extracted from `init_image'.
6818 Try to initialize an image library on demand and cache whether we
6819 were successful or not.
6820 (syms_of_image): Initialize `Vimage_types' and
6821 `Vimage_type_cache'. Add recognized image types to Vimage_types.
6822 Export `init-image-library'.
6823 (init_image): Remove initialization of all image types, except xbm
6824 and pbm.
6825
6826 * xdisp.c (Vimage_types): Delete (moved to image.c).
6827
904ee128
AS
68282004-06-14 Andreas Schwab <schwab@suse.de>
6829
6830 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
6831 Avoid calling specbind when completion-regexp-list is empty.
6832
092de21d
RS
68332004-06-13 Richard M. Stallman <rms@gnu.org>
6834
6835 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6836 (re_wctype, re_iswctype, re_wctype_to_bit):
6837 Non-function definitions moved here from regex.c.
1ebd4f78 6838
092de21d
RS
6839 * regex.c (re_wctype, re_iswctype): Function defs longer static.
6840 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6841 (re_wctype, re_iswctype, re_wctype_to_bit):
6842 Non-function definitions moved to regex.h.
6843
6844 * window.c (Fselect_window): Doc fix.
6845
6846 * syntax.c: Include regex.h.
6847 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
6848 If requested, make a list of classes, then check the scanned
6849 chars for membership in them.
6850 (in_classes): New function.
6851 Doc fix.
6852
6853 * keyboard.c (cmd_error): Don't call any_kboard_state
6854 if inside a recursive edit level.
6855
9ba27690 68562004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
6857
6858 * keyboard.c (command_loop): Call any_kboard_state before
6859 command_loop_2 when at top level.
6860
3ebc0939
AS
68612004-06-13 Andreas Schwab <schwab@suse.de>
6862
cea5d0d4
AS
6863 * print.c (print_object): Always use %ld for printing EMACS_INT.
6864
6865 * keyboard.c (cancel_hourglass_unwind): Return a value.
6866 (modify_event_symbol): Always use %ld for printing EMACS_INT.
6867 (Fexecute_extended_command): Likewise.
6868
6869 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
6870 avoid clashes.
6871 (SYNTAX): Likewise.
6872 (SYNTAX_WITH_FLAGS): Likewise.
6873 (SYNTAX_MATCH): Likewise.
6874
6875 * syntax.c (char_quoted): Avoid warning about undefined operation.
6876 (find_defun_start): Likewise.
6877 (scan_lists): Likewise.
6878 (INC_FROM): Likewise.
6879 (scan_sexps_forward): Likewise.
6880
be8c4ce4
AS
6881 * image.c: Include <ctype.h>.
6882
3ebc0939
AS
6883 * xfaces.c (face_attr_equal_p): Declare parameters.
6884
6fb41b5b
KH
68852004-06-13 Kenichi Handa <handa@m17n.org>
6886
6887 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
6888
fc3095ce
EZ
68892004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
6890
6891 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
6892
66189a40
KH
68932004-06-12 Kenichi Handa <handa@m17n.org>
6894
6895 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
6896 ccl_prog_stack_struct and update it.
6897 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
6898 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
6899 ccl->eof_ic on EOF.
6900 (ccl_debug_hook): New function.
6901 (struct ccl_prog_stack): New member eof_ic.
6902 (ccl_driver): Handle EOF in subrountine call correctly.
6903
69042004-06-11 Kenichi Handa <handa@m17n.org>
6905
a9b43336 6906 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 6907
1da71023
KS
69082004-06-11 Kim F. Storm <storm@cua.dk>
6909
6910 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
6911
e9efcef4
JB
69122004-06-11 Juanma Barranquero <lektu@terra.es>
6913
6914 * keyboard.c (Fposn_at_point): Doc fix.
6915
9b9ceb61
DK
69162004-06-11 David Kastrup <dak@gnu.org>
6917
6918 * search.c (match_limit): Don't flag an error if match-data
6919 exceeding the allocated search_regs.num_regs gets requested, just
6920 return Qnil.
6921
6e87ac8f
MB
69222004-06-08 Miles Bader <miles@gnu.org>
6923
6924 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
6925
0b0dea7b
JB
69262004-06-07 Juanma Barranquero <lektu@terra.es>
6927
6928 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
6929 (Fcurrent_time_string, Fcurrent_time_zone)
6930 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
6931
a0a23346
MB
69322004-06-07 Miles Bader <miles@gnu.org>
6933
08384afd 6934 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
6935 (push_named_merge_point): New function.
6936 (merge_named_face): New function.
6937 (merge_face_ref, face_at_buffer_position, face_at_string_position):
6938 Use `merge_named_face'.
6939 (merge_face_inheritance): Function removed.
c8d09ad8 6940 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
6941 Add new `err_msgs' and `named_merge_points' args. Return error
6942 status. Only print error messages if ERR_MSGS is true. Don't try to
6943 do :inherit attribute validation.
6944 (merge_face_heights): Handle `unspecified' in both directions.
6945 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
6946 Call `merge_face_ref' instead of `merge_face_inheritance'.
6947 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
6948 (compute_char_face, face_at_buffer_position)
6949 (face_at_string_position): Call `merge_face_ref' instead of
6950 `merge_face_vector_with_property'.
6951
12d5b185
KH
69522004-06-07 Kenichi Handa <handa@m17n.org>
6953
6954 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
6955 the necessary places.
6956
2e2d7ee6
KS
69572004-06-07 Kim F. Storm <storm@cua.dk>
6958
6959 * process.c (Fdelete_process): Undo 2004-05-28 change.
6960 Instead, call status_notify also for network process.
6961 (status_message): Use process instead of status as arg.
6962 Give messages "deleted" or "connection broken by remote peer" for
6963 an exited network process.
6964 (status_notify): Change call to status_message.
6965 (read_process_output): Increase readmax to 4096. Do not increase
6966 buffer size for datagram channels (default is now large enough).
6967
fcf0d299
ST
69682004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
6969
6970 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
6971 problem due to newly defined variable.
6972
0722292b
MB
69732004-06-06 Miles Bader <miles@gnu.org>
6974
6975 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
6976 immediately if non-interactive or not initialized.
6977
ddfb8369
RS
69782004-06-05 Richard M. Stallman <rms@gnu.org>
6979
6980 * minibuf.c (Fcompleting_read): Doc fix.
6981
57015754
AS
69822004-06-05 Andreas Schwab <schwab@suse.de>
6983
6984 * macfns.c (x_create_tip_frame): Fix declaration after statement.
6985
23715ea6
JB
69862004-06-05 Juanma Barranquero <lektu@terra.es>
6987
6988 * keymap.c (Fdescribe_vector): Fix docstring.
6989 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
6990
8e330b22
MB
69912004-06-05 Miles Bader <miles@gnu.org>
6992
6993 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
6994 attributes have different values than the default face.
6995
9742a3a6
EZ
69962004-06-04 Eli Zaretskii <eliz@gnu.org>
6997
6998 * xfaces.c (x_supports_face_attributes_p): Make this function
6999 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
7000 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
7001 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 7002
9717e36c
MB
70032004-06-04 Miles Bader <miles@gnu.org>
7004
7005 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
7006 from Ftty_supports_face_attributes_p.
7007 (x_supports_face_attributes_p): New function.
7008 (Ftty_supports_face_attributes_p): Function deleted.
7009 (Fdisplay_supports_face_attributes_p): New function.
7010 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 7011 (face_attr_equal_p): New function.
9717e36c
MB
7012 (lface_equal_p): Use it.
7013
52deb19f
JB
70142004-06-03 Juanma Barranquero <lektu@terra.es>
7015
7016 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
7017 (Vw32_color_map): Fix typo in docstring.
7018 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
7019 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
7020 Make argument names match their use in docstring.
7021
86d373e6
JB
70222004-06-02 Juanma Barranquero <lektu@terra.es>
7023
7024 Work around bugs/problems with MinGW builds of graphics libraries
7025 called from MSVC builds of Emacs.
7026
7027 * image.c (lookup_image): Make pointer to img static.
7028 (png_read_from_memory): Disable "global" optimization.
7029
2fb0ce67
SM
70302004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7031
c8d09ad8
SM
7032 * eval.c (Fcondition_case): Fix usage. Simplify.
7033
2fb0ce67
SM
7034 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
7035
50bf7673
ST
70362004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7037
7038 * macfns.c: Don't include ccl.h.
7039 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
7040 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
7041 TextUtils.h.
c8d09ad8 7042 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
7043 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
7044 display height/width.
7045 (compute_tip_xy, Vx_max_tooltip_size): Declare.
7046 (unwind_create_tip_frame, compute_tip_xy): New functions.
7047 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
7048 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
7049 and last_show_tip_args.
2fb0ce67 7050
50bf7673
ST
7051 * macgui.h [!MAC_OSX]: Include Gestalt.h.
7052 (Cursor, No_Cursor): New defines.
c8d09ad8 7053 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
7054 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
7055
7056 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
7057
7058 * macterm.c: Don't include Gestalt.h.
7059 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
7060 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
7061 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
7062 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
7063 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
7064 (construct_mouse_click, XTmouse_position)
7065 (x_scroll_bar_report_motion, x_calc_absolute_position)
7066 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
7067 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
7068 (note_mouse_movement): Clear the mouse face and reset the pointer
7069 shape when the pointer goes outside the frame without grabbing.
7070 (mac_front_window): New function.
7071 (mac_window_to_frame): New macro.
7072 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
7073 (do_window_activate, do_window_deactivate, do_app_resume)
7074 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
7075 (do_zoom_window, mac_do_receive_drag, XTread_socket)
7076 (mac_check_for_quit_char): Use mac_front_window and/or
7077 mac_window_to_frame.
7078 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
7079 scroll-bar click event.
7080 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
7081 (x_free_frame_resources): Reset tip_window to NULL when it is
7082 disposed of.
50bf7673 7083 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 7084 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
7085 (do_window_update): Don't do anything if the updated window is the
7086 tooltip window.
7087 (do_mouse_moved): Handle mouse movement events here (previously in
7088 XTread_socket). Clear the mouse face if
7089 dpyinfo->mouse_face_hidden is set.
7090 (do_os_event, do_events): Remove (now in XTread_socket).
7091 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
7092 Loop until all the events in the queue are processed.
7093 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
7094 contents of do_os_event and do_events. Remove mouse movement
7095 handling (now in do_mouse_moved). Add the case where
7096 Vmouse_highlight has an integer value.
7097 (NewMacWindow): Remove.
7098 (make_mac_frame): Do what NewMacWindow previously did. Don't do
7099 excess initializations.
7100 (make_mac_terminal_frame): Previous initializations in
7101 make_mac_frame are moved here.
c8d09ad8
SM
7102 (mac_initialize_display_info):
7103 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
7104
7105 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
7106 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
7107
08fd1251
RS
71082004-05-29 Richard M. Stallman <rms@gnu.org>
7109
7110 * lisp.h (truncate_undo_list): Update decl.
7111
7112 * alloc.c (undo_outer_limit): New variable.
7113 (syms_of_alloc): Defvar it.
7114 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
7115
7116 * undo.c (truncate_undo_list): New arg LIMITSIZE.
7117
7118 * alloc.c (lisp_align_malloc): Check for base == 0
7119 regardless of HAVE_POSIX_MEMALIGN.
7120 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
7121
227ef0ff
SM
71222004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7123
7124 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
7125 (marker_blocks_pending_free): Remove.
7126 (Fgarbage_collect): Sweep after cleaning up undo-lists.
7127 Mark the undo lists after claning them up.
7128 Don't free block in marker_blocks_pending_free.
7129 (mark_buffer): Don't mark undo_list.
7130 (gc_sweep): Sweep hash-tables and strings first.
7131 Do free marker blocks that are empty.
7132
034a6113
SM
71332004-05-28 Jim Blandy <jimb@redhat.com>
7134
7135 * regex.c (print_partial_compiled_pattern): Add missing 'break'
7136 after 'case wordend'. For symbeg and symend, print to stderr,
7137 like the other cases.
7138
33594a8d
NF
71392004-05-28 Noah Friedman <friedman@splode.com>
7140
7141 * process.c (Fdelete_process): Do not call remove_process.
7142
ce50a847
SM
71432004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7144
7145 * alloc.c (struct backtrace): Remove.
7146 (Fgarbage_collect): Use the new mark_backtrace.
7147
7148 * eval.c (mark_backtrace): New function.
7149
7150 * minibuf.c (run_exit_minibuf_hook): New function.
7151 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
7152 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
7153
1e8dae36
KS
71542004-05-27 Kim F. Storm <storm@cua.dk>
7155
7156 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
7157 over display properties, e.g. images, that replace buffer text.
7158
846faa3b
KS
71592004-05-25 Kim F. Storm <storm@cua.dk>
7160
7161 * alloc.c (marker_blocks_pending_free): New var.
7162 (gc_sweep): Store free marker blocks on that list.
7163 (Fgarbage_collect): Free them after undo-list cleanup.
7164
7165 * process.c (wait_reading_process_input): Check connect_wait_mask
7166 before actually accepting connection in case it has already been
7167 accepted due to recursion.
7168
b6189c3b 71692004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 7170
ce50a847
SM
7171 * coding.c (Fset_safe_terminal_coding_system_internal):
7172 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 7173
71d5a208
RS
71742004-05-22 Richard M. Stallman <rms@gnu.org>
7175
7176 * alloc.c (Fmake_string): Doc fix.
7177
7178 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
7179 and the alist pairs too.
7180
7181 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
7182
51391fb9
RF
7183 * emacs.c (main): Update copyright year.
7184
71d5a208
RS
7185 * fileio.c (Fread_file_name): Expand DIR if not absolute.
7186
7187 * insdel.c (del_range_2, replace_range): Don't write an anchor
7188 if the gap is empty.
7189
7190 * xdisp.c (try_scrolling): If scroll-up-aggressively or
7191 scroll-down-aggressively is small but positive, put point
7192 near the screen edge.
7193
f63fd14e
JB
71942004-05-22 Juanma Barranquero <lektu@terra.es>
7195
7196 * keymap.c (Fdefine_key): Doc fix.
7197
4d12067c
KS
71982004-05-22 Kim F. Storm <storm@cua.dk>
7199
7200 * alloc.c (struct backtrace): Add debug_on_exit member.
7201 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
7202 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
7203 the removed cons cells.
7204 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
7205 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
7206 any cons cells pointing to unallocated stings.
7207 Do not lisp_free any marker blocks, as there may still be pointers
7208 to them from buffer undo lists at this stage of GC.
7209
7210 * keyboard.c (struct backtrace): Add debug_on_exit member.
7211 (Fcommand_execute): Clear it.
7212
931285e2
LT
72132004-05-20 Luc Teirlinck <teirllm@auburn.edu>
7214
7215 * intervals.c (lookup_char_property): Do not prematurely return nil.
7216
669fa600
SM
72172004-05-19 Jim Blandy <jimb@redhat.com>
7218
7219 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 7220 beginning and end of symbols.
4d12067c 7221
669fa600
SM
7222 * regex.c (enum syntaxcode): Add Ssymbol.
7223 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
7224 (re_opcode_t): New opcodes `symbeg' and `symend'.
7225 (print_partial_compiled_pattern): Print the new opcodes properly.
7226 (regex_compile): Parse the new operators.
ce50a847 7227 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
7228 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
7229 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
7230 (re_match_2_internal): Match symbeg and symend.
7231
7232 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
7233
0d8c2e5c
KS
72342004-05-19 Kim F. Storm <storm@cua.dk>
7235
7236 * .gdbinit (xsymbol): Fix last change.
7237
669fa600
SM
72382004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
7239
7240 * .gdbinit (xprintstr): New fun.
7241 (xstring, xprintsym): Use it.
7242
7243 * w32proc.c (create_child): Use INTMASK.
7244
7245 * alloc.c (Fgarbage_collect): Do all the marking before flushing
7246 unmarked elements of the undo list.
7247
9a6a4c40
DP
72482004-05-18 David Ponce <david@dponce.com>
7249
7250 * print.c (print): Reset print_depth before to call print_object.
7251
f3c4ec74
JR
72522004-05-18 Jason Rumney <jasonr@gnu.org>
7253
7254 * w32console.c: Prefix RIF functions with w32con_ to avoid
7255 namespace clash with functions in term.c and w32term.c.
7256
7257 * w32menu.c (add_menu_item, w32_menu_display_help)
7258 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
7259
0d8c2e5c 7260 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 7261
6be49c3a
EZ
72622004-05-18 Eli Zaretskii <eliz@gnu.org>
7263
4d0b9a0a
EZ
7264 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
7265
6be49c3a
EZ
7266 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
7267 with make_number.
7268 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
7269 with XINT.
7270
0bc90bba
KS
72712004-05-18 Kim F. Storm <storm@cua.dk>
7272
89d19988
KS
7273 * blockinput.h (INPUT_BLOCKED_P): New macros.
7274
7275 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
7276 (Ftop_level): Unblock input if blocked.
7277
0bc90bba
KS
7278 * buffer.h (GET_OVERLAYS_AT): New macro.
7279 * msdos.c (IT_note_mouse_highlight): Use it.
7280 * textprop.c (get_char_property_and_overlay): Use it.
7281 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
7282 * xfaces.c (face_at_buffer_position): Use it.
7283
7284 * print.c (print_object): Increase buf size.
7285
653bd0f6
JR
72862004-05-17 Jason Rumney <jasonr@gnu.org>
7287
7288 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
7289 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
7290 Lisp_Object using i member.
7291 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
7292 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
7293 consistently.
7294
7295 * w32proc.c (create_child): Use make_number instead of masking pid.
7296
7297 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
7298 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
7299 Use EQ to compare Lisp_Objects.
7300 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
7301
7302 * w32term.c (w32_num_mouse_buttons): Rename from
7303 Vw32_num_mouse_buttons and make it an int.
7304
7305 * w32.c (init_environment): Use it.
7306
7307 * w32fns.c (w32_wnd_proc): Likewise.
7308
7309 * w32proc.c (w32_pipe_read_delay): Rename from
7310 Vw32_pipe_read_delay and make it an int.
7311
7312 * w32.c (_sys_read_ahead): Use it.
7313
7314 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
7315
7316 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
7317
7318 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
7319 (key_event): Don't mix Lisp_Object and int.
7320
7321 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
7322
7323 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
7324 modifiers in language change event.
7325
54b53ba7
KS
73262004-05-17 Kim F. Storm <storm@cua.dk>
7327
7328 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
7329 Such objects may be freed markers which still exist on an undo list.
7330
6e86a75d
JB
73312004-05-16 Juanma Barranquero <lektu@terra.es>
7332
7333 * data.c (Fset_default): Make argument names match their use in
7334 docstring.
7335
fc80da24
AS
73362004-05-15 Andreas Schwab <schwab@suse.de>
7337
7338 * emacs.c (gdb_array_mark_flag): Define.
7339 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
7340
c1380aa6
EZ
73412004-05-15 Eli Zaretskii <eliz@gnu.org>
7342
7343 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
7344 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
7345 defined for the MS-DOS build.
7346
89458937
SM
73472004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7348
7349 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
7350
08020f9a
KH
73512004-05-14 Kenichi Handa <handa@m17n.org>
7352
7353 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
7354
a433994a
ST
73552004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7356
7357 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
7358 section to frame.c section.
7359 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 7360 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 7361
a433994a 7362 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 7363
a433994a 7364 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 7365
a433994a
ST
7366 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
7367 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
7368 (XTread_socket): Fix int/Lisp_Object mixup.
7369 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 7370
a433994a
ST
7371 * macterm.h (struct frame, struct face, struct image)
7372 (display_x_get_resource, Fx_display_color_p)
89458937
SM
7373 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
7374 Add prototypes.
a433994a 7375
b51a51b9
KS
73762004-05-14 Kim F. Storm <storm@cua.dk>
7377
7378 * process.c (wait_reading_process_input): Make reentrant.
7379 Make Available and Connecting non-static. Save and restore value
7380 of waiting_for_user_input_p.
7381
2bde1dd8
KS
73822004-05-13 Kim F. Storm <storm@cua.dk>
7383
7384 * keyboard.c (mark_kboards): Don't mark x and y members
7385 that are overloaded in selection request events.
7386
a267ab4d
SM
73872004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7388
7389 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
7390
eb15ce9e
GM
73912004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
7392
7393 * window.c (Fdisplay_buffer, Fsplit_window)
7394 (split-height-threshold): Doc fix.
7395
7fc92635
JB
73962004-05-13 Juanma Barranquero <lektu@terra.es>
7397
7398 * xfaces.c (Ftty_supports_face_attributes_p)
7399 (Finternal_copy_lisp_face): Fix typo in docstring.
7400 (Finternal_get_lisp_face_attribute): Fix docstring.
7401
1ec2a572
JD
74022004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7403
7404 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
7405
ae9292e0
ST
74062004-05-11 Steven Tamm <steventamm@mac.com>
7407
7408 * macfns.c (Fx_create_frame): Default to using tool-bar by
7409 setting tool-bar-lines to 1 in default-frame-alist.
7410
74112004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
7412
7413 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
7414 (xpm_get_color_table_v, xpm_make_color_table_h)
7415 (xpm_put_color_table_h, xpm_get_color_table_h)
7416 (xpm_str_to_color_key, xpm_load_image, xpm_load)
7417 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 7418 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 7419
fe97e8df
ST
74202004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7421
a267ab4d 7422 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
7423 instead of FRAME_X_P
7424
b47e779e
KS
74252004-05-11 Kim F. Storm <storm@cua.dk>
7426
7427 * process.c (read_process_output): Grow decoding_buf when needed;
7428 this could cause a crash in allocate_string and compact_small_strings.
7429
cdc9b845
EZ
74302004-04-29 Jim Blandy <jimb@redhat.com>
7431
7432 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
7433 against proper opcode.
7434
aa7094ba
JB
74352004-05-10 Juanma Barranquero <lektu@terra.es>
7436
7437 * process.c (Fstart_process): Fix docstring.
7438
7439 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
7440 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
7441 (Fsplit_char, Fchar_charset): Make argument names match their use
7442 in docstring.
7443
e109331a
RS
74442004-05-10 Richard M. Stallman <rms@gnu.org>
7445
7446 * print.c (print_preprocess): Use being_printed, loop_count and
7447 halftail to detect overdeep nesting and cyclic cdr chains.
7448
9a28b921
AS
74492004-05-10 Andreas Schwab <schwab@suse.de>
7450
78819ebb 7451 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
7452
7453 * fileio.c (Frename_file): Remove extra argument in call to
7454 Fmake_symbolic_link.
7455
e2c02c1a
KS
74562004-05-10 Kim F. Storm <storm@cua.dk>
7457
7458 * xdisp.c (calc_line_height_property): Use string position when
7459 object is a string.
7460
cfe9d13e
KH
74612004-05-10 Kenichi Handa <handa@m17n.org>
7462
a57e8159
KH
7463 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
7464 inhibit-modification-hooks to t temporarily before calling
7465 Ferase_buffer.
7466
7467 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
7468 inhibit-modification-hooks to t temporarily before calling
7469 Ferase_buffer.
7470
7471 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
7472 inhibit-modification-hooks to t temporarily before calling
7473 Ferase_buffer.
7474
cfe9d13e
KH
7475 * fns.c (count_combining): Delete it.
7476 (concat): Don't check combining bytes.
7477
ceb96489
JR
74782004-05-09 Jason Rumney <jasonr@gnu.org>
7479
7480 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
7481 (globals_of_w32fns): Set it.
7482
b6189c3b 74832004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
7484
7485 * data.c (Fquo): Simplify.
7486
28712a21
JB
74872004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
7488
7489 * data.c (Fquo): If any argument is float, do the computation in
7490 floating point.
7491
0f0af7a8
JB
74922004-05-08 Juanma Barranquero <lektu@terra.es>
7493
88214ef6
JB
7494 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
7495 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
7496 Fix spelling of Emacs on docstring.
7497 (Fset_process_coding_system, Fprocess_coding_system)
7498 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
7499 Make argument names match their use in docstring.
7500 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
7501 Fix docstring.
7502
0f0af7a8
JB
7503 * editfns.c (Finsert_buffer_substring): Make argument names match their
7504 use in docstring.
7505
7506 * syntax.c (Fmodify_syntax_entry): Fix docstring.
7507
2a316a84
ST
75082004-05-07 Steven Tamm <steventamm@mac.com>
7509
7510 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
7511 around call to ReceiveEvent to avoid certain crashes.
7512
75132004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 7514
2a316a84
ST
7515 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
7516 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
7517 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
7518 Save/restore the current graphics port and device handle when
7519 drawing into an offscreen graphics world.
7520
7521 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
7522 (gif_load): Likewise.
7523
ab80314b
JB
75242004-05-07 Juanma Barranquero <lektu@terra.es>
7525
7526 * window.c (Fset_window_buffer): Fix docstring.
7527
70646bb5
TTN
75282004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
7529
7530 * emacs.c (main) [VMS]: Fix var ref.
7531
b6189c3b 75322004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
7533
7534 * data.c (Fsetq_default): Fix docstring.
7535
279d3293
JR
75362004-05-06 Jason Rumney <jasonr@gnu.org>
7537
7538 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
7539 to avoid name clash.
7540
f72b5416
JD
75412004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7542
7543 * fileio.c (barf_or_query_if_file_exists): Use lstat.
7544 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 7545 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 7546
6ab66799
KS
75472004-05-04 Kim F. Storm <storm@cua.dk>
7548
7549 * xdisp.c (Qtotal): New var.
7550 (syms_of_xdisp): Intern and staticpro it.
7551 (calc_line_height_property): New arg total. Set it if
7552 line-spacing property has format (total . VALUE).
7553 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
7554 Handle total line-spacing property.
7555
ab2d724b
JD
75562004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7557
7558 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
7559 "under" scroll bar when size/position changes.
7560
238add5e
JR
75612004-05-03 Jason Rumney <jasonr@gnu.org>
7562
7563 * makefile.nt: Remove.
7564
1644f4e4
EZ
75652004-05-02 Eli Zaretskii <eliz@gnu.org>
7566
a267ab4d
SM
7567 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
7568 Avoid compiler warnings.
05fdbeb8 7569
1644f4e4
EZ
7570 * Makefile.in (region-cache.o): Depend on config.h.
7571
b6189c3b 75722004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
7573
7574 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
7575 with continuation lines, too.
7576
2b98b088
TTN
75772004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
7578
7579 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
7580
d9bf7950
SM
75812004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
7582
7583 * xdisp.c (calc_line_height_property): YAILOM (yet another
7584 int/Lisp_Object mixup).
7585
affa509c
EZ
75862004-05-01 Eli Zaretskii <eliz@gnu.org>
7587
7588 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
7589 undo bad effect of pack(4) in some versions of system headers.
7590
07c07cfe
JR
75912004-05-01 Jason Rumney <jasonr@gnu.org>
7592
7593 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
7594
e71caa4e
KS
75952004-04-30 Kim F. Storm <storm@cua.dk>
7596
7597 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 7598 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
7599
7600 * dispextern.h (struct it): Remove member use_default_face.
7601 Add members override_ascent, override_descent, override_boff.
7602
7603 * xdisp.c (init_iterator): Handle line-spacing float value.
7604 Initialize override_ascent member.
7605 (append_space_for_newline): Reset override_ascent.
7606 Remove use_default_face.
7607 (calc_line_height_property): New function to calculate value of
7608 line-height and line-spacing properties. Look at overlays, too.
7609 Set override_ascent, override_descent, override_boff members when
7610 using another face than the current face. Float values are now
7611 relative to the frame default font, by default; accept a cons
7612 of ratio and face name to specify value relative to a specific face.
7613 (x_produce_glyphs): Use calc_line_height_property.
7614 Use override_ascent etc. when set to handle different face heights.
7615 A negative line-spacing property value is interpreted as a total
7616 line height, rather than inter-line spacing.
7617 (note_mouse_highlight): Allocate room for 40 overlays initially.
7618
0fddae66
SM
76192004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7620
7621 * data.c (Fsubr_name): New fun.
7622 (syms_of_data): Defsubr it.
7623
712d23dc
KS
76242004-04-29 Kim F. Storm <storm@cua.dk>
7625
7626 * xdisp.c (null_glyph_slice): New var.
7627 (append_glyph, append_composite_glyph, append_stretch_glyph):
7628 Use it to initialize glyph slice.
7629
033ad8c6
SM
76302004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
7631
7632 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
7633 (on_hot_spot_p): Make sure we always return a value.
7634 (Flookup_image_map): Remove unused var ix and iy.
7635 (note_mode_line_or_margin_highlight): Remove unused var `image'.
7636
93397360
EZ
76372004-04-27 Eli Zaretskii <eliz@gnu.org>
7638
7639 * msdos.c (init_environment): If one of the TMP... environment
7640 variables is set to a drive letter without a trailing slash,
7641 append a slash.
7642
0c54865e
EZ
76432004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
7644
7645 * editfns.c (lisp_time_argument): Provide externally.
7646
7647 * fileio.c (Fset_file_times): New function.
7648 (syms_of_fileio): Intern and staticpro it.
7649
d3b111bd
KS
76502004-04-27 Kim F. Storm <storm@cua.dk>
7651
07dc1231
KS
7652 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
7653 header line strings.
7654
360fe9d2
KS
7655 * dispextern.h (struct it): New member use_default_face.
7656
d3b111bd
KS
7657 * xdisp.c (Qline_height): New variable.
7658 (syms_of_xdisp): Intern and staticpro it.
7659 (append_space_for_newline): Partially undo 2004-04-25 change;
7660 add default_face_p arg, and restore callers.
7661 Clear it->use_default_face after use.
7662 (x_produce_glyphs): Set default font for ascii char if
7663 it->use_default_font is set. Change line-spacing property to set
7664 just extra line spacing. Handle new line-height property.
7665
0448588b
AS
76662004-04-26 Andreas Schwab <schwab@suse.de>
7667
7668 * print.c (print_object): Print non-ascii characters in bool
7669 vector representation as octal escapes.
7670
7671 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
7672 * print.c (print_object): Use it instead of BITS_PER_CHAR for
7673 bool vectors.
7674 * lread.c (read1): Likewise.
7675 * alloc.c (Fmake_bool_vector): Likewise.
7676 * data.c (Faref, Faset): Likewise.
7677 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
7678 (mapcar1): Likewise.
d3b111bd 7679
536d6baa
ST
76802004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7681
7e26f91b 7682 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 7683
ae11577a
MB
76842004-04-26 Miles Bader <miles@gnu.org>
7685
7686 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
7687
e198ba87
JB
76882004-04-26 Juanma Barranquero <lektu@terra.es>
7689
7690 * buffer.c (Fpop_to_buffer): Fix docstring.
7691
f3d5f92d 76922004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 7693
f3d5f92d
ST
7694 * lread.c (init_lread): Don't display missing lisp directory
7695 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 7696 may be built without correct installation path.
f3d5f92d 7697
03e35edc
KS
76982004-04-25 Kim F. Storm <storm@cua.dk>
7699
9ff3aa31
KS
7700 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7701
7702 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7703
03e35edc
KS
7704 * xdisp.c (append_space_for_newline): Rename from append_space.
7705 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
7706 (x_produce_glyphs): Handle line-spacing property on newline char.
7707 If value is t, adjust ascent and descent to fit current row height.
7708 If value is an integer or float, set extra_line_spacing to integer
7709 value, or to float value x current line height.
7710
f24814e0
KH
77112004-04-23 Kenichi Handa <handa@m17n.org>
7712
7713 * fontset.c (Finternal_char_font): If POSITION is nil, return
7714 font for displaying CH with the default face.
7715
d814862a
JB
77162004-04-23 Juanma Barranquero <lektu@terra.es>
7717
7718 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
7719
063a45c5
SM
77202004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7721
7722 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
7723 Don't make assumptions about the relative place of i and val.
7724 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
7725
ae7ab2d3
KS
77262004-04-21 Kim F. Storm <storm@cua.dk>
7727
7728 * dispextern.h (struct glyph_slice): New struct.
7729 (struct glyph): New member slice.
7730 (GLYPH_SLICE_EQUAL_P): New macro.
7731 (GLYPH_EQUAL_P): Use it.
7732 (struct glyph_string): New member slice.
7733 (struct it_slice): New struct.
7734 (struct it): New member slice, add member to stack too.
7735 New member constrain_row_ascent_descent_p.
7736 (image_ascent): Add prototype.
7737
7738 * dispnew.c (buffer_posn_from_coords): Return full image width
7739 and height even for image slices (posn is relative to full image).
7740 (marginal_area_string): Adjust x0,y0 for image slice.
7741
7742 * image.c (image_ascent): Add slice arg; calculate ascent for
7743 image slice (or full image).
7744
7745 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
7746 (syms_of_keyboard): Defsubr them.
7747
7748 * lisp.h (pos_visible_p): Fix prototype.
7749
c62aec78 7750 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
7751 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7752 (x_draw_image_foreground, x_draw_image_relief)
7753 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7754 Draw sliced images.
7755
7756 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
7757 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7758 (x_draw_image_foreground, x_draw_image_relief)
7759 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
7760 Draw sliced images.
7761
7762 * w32term.h (image_ascent): Remove prototype.
7763
7764 * window.c (Fpos_visible_in_window_p): Return pixel position if
7765 PARTIALLY arg is non-nil. Simplify. Doc fix.
7766 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
7767 to return/set vscroll in pixels.
7768
7769 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
7770
7771 * xdisp.c (Qslice): New variable.
7772 (syms_of_xdisp): Intern and staticpro it.
7773 (pos_visible_p): Return pixel position in new x and y args.
7774 (init_iterator): Reset it->slice info.
7775 (handle_display_prop): Parse (slice ...) property.
7776 (push_it, pop_it): Save/restore slice info.
7777 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
7778 force repositioning of tall row if window is vscrolled, as that
7779 would reset vscroll.
7780 (append_space): Set it->constrain_row_ascent_descent_p to avoid
7781 increasing row height if row is non-empty.
7782 (fill_image_glyph_string): Copy slice info.
7783 (take_vertical_position_into_account): Simplify.
7784 (produce_image_glyph): Handle iterator slice info, setup glyph
7785 slice info. Do not force minimum line height.
7786 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
7787 do not increase height (ascent/descent) of non-empty row when
7788 adding normal character glyph; instead reduce glyph ascent/descent
7789 appropriately; if row is higher than current glyph, adjust glyph
7790 descent/ascent to reposition glyph within the existing row.
7791 Likewise, when char is newline, only set ascent/descent if row is
7792 currently empty.
7793 (note_mouse_highlight): Handle hotspots with sliced image.
7794
7795 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
7796 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7797 (x_draw_image_foreground, x_draw_image_relief)
7798 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7799 Draw sliced images.
7800
7801 * xterm.h (image_ascent): Remove prototype.
7802
d58f8753
SM
78032004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7804
7805 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
7806
4ce2719d
JPW
78072004-04-20 John Paul Wallington <jpw@gnu.org>
7808
7809 * fns.c (Fassoc, Feql): Fix indentation.
7810
d58f8753 7811 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 7812
95f8c3b9
JPW
78132004-04-19 John Paul Wallington <jpw@gnu.org>
7814
7815 * fns.c (Feql): New function.
d58f8753 7816 (syms_of_fns): Defsubr it.
95f8c3b9 7817
b7e85537
JR
78182004-04-18 Jason Rumney <jasonr@gnu.org>
7819
7820 * w32select.c (Fw32_set_clipboard_data): Get sequence number
7821 after closing the clipboard.
7822
5a72efd4
LT
78232004-04-16 Luc Teirlinck <teirllm@auburn.edu>
7824
7825 * buffer.c (Fbuffer_base_buffer): Doc fix.
7826
20dc8583
KS
78272004-04-17 Kim F. Storm <storm@cua.dk>
7828
60962ec4
KS
7829 * keymap.c (Fkey_description): Add optional PREFIX arg.
7830 Combine prefix with KEYS to make up the full key sequence to describe.
7831 Correlate meta_prefix_char and following (simple) key to describe
7832 as meta modifier. All callers changed.
7833 (describe_map): Rename arg `keys' to `prefix'. Remove local
7834 `elt_prefix' var. Use Fkey_description with prefix instead of
7835 elt_prefix combined with Fsingle_key_description.
7836 (describe_vector): Declare static. Replace arg `elt_prefix' with
7837 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 7838 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
7839 Fsingle_key_description.
7840
7841 * keymap.h (Fkey_description): Fix prototype.
7842 (describe_vector): Remove prototype.
7843
409368b9
KS
7844 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
7845
20dc8583
KS
7846 * image.c (PNG_BG_COLOR_SHIFT): Remove.
7847 (png_load): Fix calculation of transparent background color on X
7848 and W32 platforms.
7849
75c5501b
JB
78502004-04-16 Juanma Barranquero <lektu@terra.es>
7851
7852 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
7853 not too large before computing how much to scroll.
7854
da879ae8
SM
78552004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
7856
7857 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
7858
d01ca4a8
LT
78592004-04-14 Luc Teirlinck <teirllm@auburn.edu>
7860
7861 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
7862 Add hyperlink to Elisp manual to the docstring.
7863
572943b3
SM
78642004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
7865
7866 * callint.c (fix_command): Use XDCR.
7867
5e30a0fb
NR
78682004-04-14 Nick Roberts <nick@nick.uklinux.net>
7869
7870 * window.c (Fget_lru_window): Doc fix.
7871
a27ddfaf
KS
78722004-04-14 Kim F. Storm <storm@cua.dk>
7873
7874 * editfns.c (Fformat): Fix allocation size of precision array.
7875
7876 * dispnew.c (update_window): Only set changed_p if
7877 scrolling_window actually did scroll.
7878 (scrolling_window): Only return 1 if we actually did scroll.
7879
7880 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
7881 height to glyph height when cursor row is not fully visible.
7882 (make_cursor_line_fully_visible): Add FORCE_P arg to return
7883 failure in case row is higher than window. Callers changed.
7884 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
7885 Try to scroll partially visible, higher-than-window cursor row.
7886 (redisplay_window): Always try to scroll partially visible,
7887 higher-than-window cursor row - both initially and again with
7888 centering_position = 0.
7889 Clear desired matrix before retrying with centering_position = 0.
7890
da879ae8
SM
78912004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7892
7893 * syntax.c (scan_lists): Simplify backward string scan.
7894 Fix off-by-one boundary check for string and comment fences.
7895
5fc16e8e
SM
78962004-04-13 Joe Buehler <jbuehler@hekimian.com>
7897
7898 * sheap.c, unexcw.c: New files.
7899
c9aac8e6
LT
79002004-04-12 Luc Teirlinck <teirllm@auburn.edu>
7901
7902 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
7903 base buffer has been killed. Correct the error message if the
7904 base buffer does not exist.
7905
1e88a355
SM
79062004-04-12 Joe Buehler <jbuehler@hekimian.com>
7907
7908 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
7909 Cygwin itself. Add support for Xaw3d scrollbars.
7910
7911 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
7912
7913 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
7914
7915 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
7916 before Cygwin unexec.
7917
7918 * Makefile.in: Link changes for Cygwin unexec() support.
7919
8dbff9a0
AS
79202004-04-12 Andreas Schwab <schwab@suse.de>
7921
7922 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
7923
54dffe35
LT
79242004-04-11 Luc Teirlinck <teirllm@auburn.edu>
7925
7926 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
7927 IGNORE argument equals NAME. Doc fix.
7928
99a72bdf
MY
79292004-04-11 Masatake YAMATO <jet@gyve.org>
7930
1e88a355 7931 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
7932 empty if they are backwards.
7933
40899d7b
SM
79342004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7935
7936 * xfaces.c (face_color_supported_p): Fix compilation without X11.
7937
f8f853de
SM
79382004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
7939
7940 * doc.c (Fsnarf_documentation): Ignore new file name entries.
7941
c953fe1b
KS
79422004-04-06 Kim F. Storm <storm@cua.dk>
7943
661e85c1
KS
7944 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
7945 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
7946
7947 * w32term.c (w32_read_socket): Set mouse_face_hidden after
7948 clearing highlight.
7949
7950 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
7951
7952 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
7953 clearing highlight.
7954
c953fe1b
KS
7955 * indent.c (vmotion): Do not reserve one column for continuation
7956 marks on window frames.
7957
c1994268
EZ
79582004-04-04 Eli Zaretskii <eliz@gnu.org>
7959
7960 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
7961 from GCC.
7962
9f691b0d
SM
79632004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
7964
7965 * .gdbinit-union: Remove.
7966
7967 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
7968 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
7969 ($nonvalbits): Remove.
7970 ($valmask): Set it by calling xreload to avoid redundancy.
7971
7972 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
7973 (gdb_emacs_intbits): Remove.
7974
7a8560d7
JD
79752004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7976
9f691b0d 7977 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 7978
3c8111fc
KH
79792004-03-30 Kenichi Handa <handa@m17n.org>
7980
7981 * editfns.c (Fformat): Fix initialization of the array info.
7982
48a0bce4
KS
79832004-03-30 Kim F. Storm <storm@cua.dk>
7984
7985 * xterm.c (x_mouse_click_focus_ignore_position): New var.
7986 (syms_of_xterm): DEFVAR_BOOL it.
7987 (ignore_next_mouse_click_timeout): New var.
7988 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
7989 Use it to filter mouse clicks following focus event.
7990
1cd0066c
KS
79912004-03-29 David Ponce <david@dponce.com>
7992
7993 * callint.c (Fcall_interactively): Fix last change.
7994
adb3b353
SM
79952004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7996
7997 * eval.c (Fcommandp): Simplify.
7998
7999 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
8000 Extend to handle all kinds of functions.
8001
8002 * lisp.h (Finteractive_form): Declare.
8003
8004 * callint.c (Fcall_interactively): Use it.
8005
6fc4c9c9
KS
80062004-03-26 Kim F. Storm <storm@cua.dk>
8007
8008 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
8009 to catch errors in calc_pixel_width_or_height during redisplay.
8010
abdb9b83
MY
80112004-03-26 Masatake YAMATO <jet@gyve.org>
8012
b17856dd 8013 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 8014
b17856dd 8015 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 8016
b17856dd 8017 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 8018
b17856dd 8019 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 8020
e8a84b6c
JD
80212004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8022
b17856dd 8023 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 8024
36a3fd05
RS
80252004-03-19 Richard M. Stallman <rms@gnu.org>
8026
8027 * s/sol2-6.h: Delete previous change.
8028
ab24c127
KS
80292004-03-19 Kim F. Storm <storm@cua.dk>
8030
8031 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
8032 to_charpos corresponds to newline in right fringe. Use local
8033 BUFFER_POS_REACHED_P macro.
8034
992126de
JD
80352004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8036
8037 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
8038 to compile on non-window system.
8039
45dbfc84
KS
80402004-03-19 Kim F. Storm <storm@cua.dk>
8041
8042 * dispextern.h (calc_pixel_width_or_height): Add prototype.
8043
8044 * image.c (Qcenter): Move to xdisp.c.
8045
8046 * xdisp.c (Qcenter): Declare here.
adb3b353 8047 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
8048 (handle_single_display_prop): Allow space display property on all
8049 platforms.
8050 (display_mode_line): Set mode_line_p before displaying line.
8051 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
8052 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 8053 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
8054 width/height. Return width or height for image specs.
8055 (produce_stretch_glyph): Improve handling of :align-to. Is now
8056 relative to left of text area by default, but other base offsets
8057 can be specified -- also for text lines.
8058
8059 * term.c (produce_glyphs): Handle IT_STRETCH.
8060 (produce_stretch_glyph): New function to handle space width and
8061 align-to display properties on non-window systems.
8062
37264101
SM
80632004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8064
8065 * fileio.c (Fread_file_name): Set completion-ignore-case for
8066 case-insensitive systems.
8067
73bc43da
MY
80682004-03-14 Masatake YAMATO <jet@gyve.org>
8069
8070 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
8071 when keymap and cursor are setup.
8072
d5fb8dab 80732004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 8074
b17856dd 8075 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 8076
e4b1b5ab
KS
80772004-03-14 Kim F. Storm <storm@cua.dk>
8078
8079 * dispextern.h (x_find_image_file): Add prototype.
8080
8081 * image.c (x_find_image_file): Make extern.
8082
8083 * xfns.c (x_find_image_file): Remove prototype.
8084
a6eeaa81 80852004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 8086
37264101 8087 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 8088
37264101 8089 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 8090
e69cfac2
RS
80912004-03-12 Richard M. Stallman <rms@gnu.org>
8092
8093 * fns.c (internal_equal): New arg PROPS controls comparing
8094 text properties. All callers changed.
8095 (Fequal_including_properties): New function.
8096 (syms_of_fns): defsubr it.
8097
45034953
KS
80982004-03-12 Kim F. Storm <storm@cua.dk>
8099
8100 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 8101
45034953
KS
8102 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
8103 (image_background, image_background_transparent): Fix prototypes.
8104
37264101 8105 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
8106
8107 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
8108 (x_query_font, x_find_ccl_program, x_set_window_size)
8109 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8110 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8111 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
8112
8113 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
8114 (x_query_font, x_find_ccl_program, x_set_window_size)
8115 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8116 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8117 (mac_draw_line_to_pixmap): Add prototypes.
8118
81192004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8120
8121 * macterm.c (XTread_socket): Fix mouse click on tool bar.
8122
a12d3d87
KS
81232004-03-11 Kim F. Storm <storm@cua.dk>
8124
d3ab1cf1
KS
8125 * dispextern.h: Move image related prototypes from xfns.c section
8126 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
8127 HAVE_X_WINDOWS.
37264101 8128
37de9f51 8129 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 8130 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
8131 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
8132 (GTK_OBJ) [USE_GTK]: New declaration.
8133 (obj): Add $(GTK_OBJ) to list.
8134
d5fb8dab 81352004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 8136
7e26f91b 8137 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
8138
8139 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 8140 defined in image.c.
5243c06a 8141
c0f97789
KS
81422004-03-11 Kim F. Storm <storm@cua.dk>
8143
8144 The following changes consolidates the identical/similar image
8145 support code previously found in xfns.c, w32fns.c, and macfns.c
8146 into a new file image.c.
8147
8148 * makefile.w32-in (OBJ1): Add image.o.
8149 ($(BLD)/image.$(O)): Add dependencies.
8150
8151 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
8152 (image.o): Add dependencies.
37264101 8153
c0f97789
KS
8154 * image.c: New file with consolidated image support code.
8155 (COLOR_TABLE_SUPPORT): New define to control whether
8156 color table support is available (X only).
8157 (Bitmap_Record): Common name for x_bitmap_record,
8158 w32_bitmap_record, and mac_bitmap_record.
8159 (XImagePtr): Common name for pointer to XImage or equivalent.
8160 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
8161 to XImagePtr on X+MAC, and to HDC on W32.
8162 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
8163 (NO_PIXMAP): Common name for "None" or equivalent.
8164 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
8165 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
8166 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
8167 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
8168 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
8169 (XDrawLine): Define on MAC for code sharing.
8170 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
8171 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
8172 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8173 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8174 (x_reference_bitmap, x_create_bitmap_from_data)
8175 (x_create_bitmap_from_file, x_destroy_bitmap)
8176 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8177 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8178 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8179 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8180 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8181 (define_image_type, lookup_image_type, valid_image_p)
8182 (image_error, enum image_value_type, struct image_keyword)
8183 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8184 (make_image, free_image, prepare_image_for_display, image_ascent)
8185 (four_corners_best, image_background, image_background_transparent)
8186 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8187 (make_image_cache, free_image_cache, clear_image_cache)
8188 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8189 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8190 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8191 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8192 (init_image_func_pointer, image_load_quartz2d)
8193 (struct ct_color, init_color_table, free_color_table)
8194 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8195 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8196 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8197 (x_disable_image, x_build_heuristic_mask)
8198 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8199 (TIFF support, GIF support, Ghostscript support): Consolidate image
8200 code from xfns.c, w32fns.c, and macfns.c.
8201 (syms_of_image): Consolidate image related symbol setup here.
8202 (init_image): Consolidate image related initializations here.
37264101 8203
c0f97789
KS
8204 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
8205 and init_image. Remove call to init_xfns.
8206
37264101
SM
8207 * macterm.h (struct mac_bitmap_record): Add file member.
8208 Not currently used, but simplifies code sharing.
c0f97789
KS
8209
8210 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8211 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8212 (x_reference_bitmap, x_create_bitmap_from_data)
8213 (x_create_bitmap_from_file, x_destroy_bitmap)
8214 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8215 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8216 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8217 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8218 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8219 (define_image_type, lookup_image_type, valid_image_p)
8220 (image_error, enum image_value_type, struct image_keyword)
8221 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8222 (make_image, free_image, prepare_image_for_display, image_ascent)
8223 (four_corners_best, image_background, image_background_transparent)
8224 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8225 (make_image_cache, free_image_cache, clear_image_cache)
8226 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8227 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8228 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8229 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8230 (init_image_func_pointer, image_load_quartz2d)
8231 (struct ct_color, init_color_table, free_color_table)
8232 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8233 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8234 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8235 (x_disable_image, x_build_heuristic_mask)
8236 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8237 (TIFF support, GIF support, Ghostscript support): Merge with image
8238 code from xfns.c and macfns.c into image.c.
8239 (syms_of_xfns): Move image related symbols to image.c.
8240 (init_external_image_libraries, init_xfns): Remove; initialization
8241 moved to init_image in image.c.
8242
8243 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8244 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8245 (x_reference_bitmap, x_create_bitmap_from_data)
8246 (x_create_bitmap_from_file, x_destroy_bitmap)
8247 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8248 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8249 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8250 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8251 (define_image_type, lookup_image_type, valid_image_p)
8252 (image_error, enum image_value_type, struct image_keyword)
8253 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8254 (make_image, free_image, prepare_image_for_display, image_ascent)
8255 (four_corners_best, image_background, image_background_transparent)
8256 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8257 (make_image_cache, free_image_cache, clear_image_cache)
8258 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8259 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8260 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8261 (struct ct_color, init_color_table, free_color_table)
8262 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8263 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8264 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8265 (x_disable_image, x_build_heuristic_mask)
8266 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8267 (TIFF support, GIF support, Ghostscript support): Merge with image
8268 code from xfns.c and macfns.c into image.c.
8269 (syms_of_xfns): Move image related symbols to image.c.
8270 (init_external_image_libraries, init_xfns): Remove; initialization
8271 moved to init_image in image.c.
8272
8273 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8274 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8275 (x_reference_bitmap, x_create_bitmap_from_data)
8276 (x_create_bitmap_from_file, x_destroy_bitmap)
8277 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8278 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8279 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8280 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8281 (define_image_type, lookup_image_type, valid_image_p)
8282 (image_error, enum image_value_type, struct image_keyword)
8283 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8284 (make_image, free_image, prepare_image_for_display, image_ascent)
8285 (four_corners_best, image_background, image_background_transparent)
8286 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8287 (make_image_cache, free_image_cache, clear_image_cache)
8288 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8289 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8290 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8291 (struct ct_color, init_color_table, free_color_table)
8292 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8293 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8294 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8295 (x_disable_image, x_build_heuristic_mask)
8296 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8297 (TIFF support, GIF support, Ghostscript support): Merge with
8298 w32fns.c and macfns.c image code into image.c.
8299 (syms_of_xfns): Move image related symbols to image.c.
8300 (init_xfns): Remove; initialization moved to init_image in image.c.
8301
8302 * lisp.h (syms_of_image, init_image): Add protoypes.
8303 (init_xfns): Remove prototype.
8304
8305 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8306 (x_reference_bitmap, x_create_bitmap_from_data)
8307 (x_create_bitmap_from_file, x_destroy_bitmap)
8308 (x_create_bitmap_mask): Move prototypes from dispextern.h.
8309 (gamma_correct) [MAC_OS]: Add prototype.
8310
8311 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8312 (x_reference_bitmap, x_create_bitmap_from_data)
8313 (x_create_bitmap_from_file, x_destroy_bitmap)
8314 (x_create_bitmap_mask): Move prototypes to dispextern.h.
8315
6eced09c
KH
83162004-03-09 Kenichi Handa <handa@etlken2>
8317
8318 * coding.c (decode_coding_emacs_mule): Handle insufficent source
8319 correctly.
8320
9a7e95f3
RS
83212004-03-04 Richard M. Stallman <rms@gnu.org>
8322
04a6e76b
RS
8323 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
8324
9a7e95f3
RS
8325 * window.c (Fdisplay_buffer): Doc fix.
8326
8327 * buffer.c (Fpop_to_buffer): Doc fix.
8328
6c2488df
KS
83292004-03-03 Kim F. Storm <storm@cua.dk>
8330
8331 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
8332
d8d95bc7
SM
83332004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
8334
8335 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
8336
357589bf
RS
83372004-03-02 Richard M. Stallman <rms@gnu.org>
8338
8339 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
8340
409949b5
KH
83412004-03-02 Kenichi Handa <handa@m17n.org>
8342
8343 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
8344
d24bc50f
KS
83452004-03-02 Kim F. Storm <storm@cua.dk>
8346
8347 * window.h (struct window): New member overlay_arrow_bitmap.
8348
8349 * window.c (make_window): Initialize overlay_arrow_bitmap.
8350
8351 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
8352 implement and integrate multiple overlay arrows with redisplay.
8353 (syms_of_xdisp): DEFVAR_LISP and initialize it.
8354 (last_arrow_position, last_arrow_string): Replace by properties.
8355 (Qlast_arrow_position, Qlast_arrow_string)
8356 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
8357 (syms_of_xdisp): Intern and staticpro them.
8358 (overlay_arrow_string_or_property, update_overlay_arrows)
8359 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
8360 (overlay_arrow_at_row): New functions for multiple overlay arrows.
8361 (redisplay_internal): Use them instead of directly accessing
8362 Voverlay_arrow_position etc. for multiple overlay arrows.
8363 (mark_window_display_accurate): Use update_overlay_arrows.
8364 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
8365 (try_window_id): Use overlay_arrows_changed_p.
8366 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
8367 (display_line): Use overlay_arrow_at_row to check multiple
8368 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 8369 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
8370 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
8371 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
8372
8373 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
8374 (update_window_fringes): Remove unused code.
8375
c1464661
JR
83762004-03-01 Jason Rumney <jasonr@gnu.org>
8377
8378 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
8379
a64387ee
JB
83802004-03-01 Juanma Barranquero <lektu@terra.es>
8381
8382 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
8383
8384 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
8385
334faa08
JD
83862004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8387
8388 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
8389 how many colors can be displayed.
8390
bb62616f
KH
83912004-03-01 Kenichi Handa <handa@m17n.org>
8392
8393 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
8394 correctly.
8395
0fd16104
KS
83962004-02-28 Kim F. Storm <storm@cua.dk>
8397
8398 * dispnew.c (update_window): Update header line also if there are
8399 no other changes in window (move code after set_cursor label).
8400
8401 * lisp.h (mark_window_display_accurate): Remove prototype.
8402
8403 * window.c (window_loop, Fforce_window_update): Force mode line
8404 updates by setting prevent_redisplay_optimizations_p and
8405 update_mode_lines.
8406
b59dd9c8
JD
84072004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8408
d8d95bc7 8409 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
8410
8411 * xterm.c (x_calc_absolute_position): Call x_real_positions
8412 to get WM window sizes and use those to calculate position.
d8d95bc7 8413 (x_set_offset): Remove code commented out.
b59dd9c8 8414
a874691c
MB
84152004-02-28 Miles Bader <miles@gnu.org>
8416
8417 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
8418
3e0c6482
KS
84192004-02-28 Kim F. Storm <storm@cua.dk>
8420
8421 * keyboard.c (kbd_buffer_store_event_hold): New function to store
8422 an event into kbd fifo, but with special handling of quit event;
8423 a quit event is saved for later, and further events are discarded
8424 until the saved quit event has been processed.
8425 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
8426 (gen_help_event): Store help event in kbd fifo.
8427 (NREAD_INPUT_EVENTS): Remove.
8428 (read_avail_input): Adapt to new read_socket_hook interface.
8429 Remove allocation and initialization of local input_event buffer,
8430 as read_socket_hook stores events directly in fifo. Allocate and
8431 initialize local hold_quit event to handle postponed quit event
8432 (and store it if set by kbd_buffer_store_event_hold).
8433
8434 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
8435 (gen_help_event): Fix prototype.
8436
a64387ee 8437 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 8438 numcharsp args. Add hold_quit arg.
f63fd14e 8439 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8440 directly in fifo using kbd_buffer_store_event_hold.
8441
8442 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
8443 (read_input_waiting): Adapt to new read_socket_hook interface.
8444 Remove allocation and initialization of local input_event buffer,
8445 as read_socket_hook stores events directly in fifo. Allocate and
8446 initialize local hold_quit event to handle postponed quit event
8447 (and store it if set by kbd_buffer_store_event_hold).
8448
a64387ee 8449 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
8450
8451 * termhooks.h (read_socket_hook): Fix prototype.
8452
8453 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
8454 numcharsp args. Add hold_quit arg.
f63fd14e 8455 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8456 directly in fifo using kbd_buffer_store_event_hold.
8457
8458 * w32inevt.h (w32_console_mouse_position): Fix prototype.
8459
8460 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
8461 Add hold_quit arg. Rework to use just one, local, inev
8462 input_event. Store inev directly in fifo using
3e0c6482
KS
8463 kbd_buffer_store_event_hold. Update count in one place.
8464 Postpone call to gen_help_event until inev is stored; use new
8465 local do_help for this.
8466 Remove local emacs_event in handing of ButtonPress event; just use
8467 inev instead (so no reason to copy it later).
8468
8469 * xsmfns.c (x_session_check_input): Remove numchars arg.
8470
d8d95bc7
SM
8471 * xterm.c (x_focus_changed, x_detect_focus_change):
8472 Remove numchars arg. Always store event into bufp arg.
8473 Return nothing. Callers changed accordingly.
3e0c6482
KS
8474 (glyph_rect): Simplify.
8475 (STORE_KEYSYM_FOR_DEBUG): New macro.
8476 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
8477 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
8478 (current_hold_quit) [USE_GTK]: Add.
8479 (event_handler_gdk): Adapt to new handle_one_xevent.
8480 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
8481 Add hold_quit arg. Rework to use just one, local, inev
8482 input_event. Store inev directly in fifo using
3e0c6482
KS
8483 kbd_buffer_store_event_hold. Update count in one place.
8484 Postpone call to gen_help_event until inev is stored; use new
8485 local do_help for this.
8486 Simplify handling of keysyms (consolidate common code). Fix bug
8487 where count was updated with nchars instead of nbytes.
8488 Remove local emacs_event in handing of ButtonPress event; just use
8489 inev instead (so no reason to copy it later).
8490 Remove `out' label. Rename label `ret' to `done'; add various
8491 `goto done' to clarify code flow in deeply nested blocks.
8492 (x_dispatch_event): Simplify as handle_one_xevent now calls
8493 kbd_buffer_store_event itself.
f63fd14e 8494 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
8495 arg. Call handle_one_xevent with new arglist. Store event from
8496 x_session_check_input in fifo.
8497 [USE_GTK]: Setup current_hold_quit.
8498 Decrement handling_signal before unblocking input.
8499 (x_initialize) [USE_GTK]: Initialize current_count.
8500
8501 * xterm.h (x_session_check_input): Fix prototype.
8502
e3564461 85032004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 8504
d8d95bc7 8505 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 8506
e3564461
ST
8507 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
8508 macgui.h).
a64387ee 8509
e3564461 8510 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 8511
e3564461
ST
8512 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
8513 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
8514 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
8515 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
8516 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
8517 (Bitmap): Remove typedef.
8518 (Pixmap): Change int to GWorldPtr.
8519
d8d95bc7 8520 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 8521
d8d95bc7
SM
8522 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
8523 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
8524 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
8525 long representation.
8526 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
8527 colors used for masks.
8528 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 8529
e3564461
ST
8530 * macfns.c: Include sys/types.h and sys/stat.h.
8531 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
8532 Include QuickTime/QuickTime.h.
8533 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8534 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
8535 functions defined in macterm.c.
8536 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
8537 (ZPixmap): New #define for compatibility with xfns.c.
8538 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8539 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
8540 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
8541 New functions.
e3564461 8542 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
8543 (x_destroy_x_image, unwind_create_frame, x_disable_image)
8544 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
8545 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
8546 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
8547 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
8548 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
8549 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
8550 long mixup.
8551 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
8552 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
8553 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
8554 (x_set_cursor_type, Fxw_color_values, valid_image_p)
8555 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
8556 (x_alloc_image_color, clear_image_cache, lookup_image)
8557 (x_find_image_file, xbm_read_bitmap_file_data)
8558 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
8559 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
8560 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
8561 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
8562 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 8563 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
8564 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
8565 #if 0.
8566 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
8567 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
8568 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
8569 New functions (from xfns.c).
e3564461
ST
8570 (Fx_create_frame): Record unwind_create_frame.
8571 (Fxw_display_color_p): Use dpyinfo->color_p.
8572 (Fx_display_grayscale_p, Fx_display_planes): Don't use
8573 dpyinfo->n_cbits.
8574 (Fx_display_color_cells): Use dpyinfo->n_planes;
8575 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
8576 (Qheuristic, cross_disabled_images, emboss_matrix)
8577 (laplace_matrix): New variables (from xfns.c).
8578 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
8579 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
8580 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
8581 (image_background_transparent): New function (from xfns.c).
8582 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8583 (image_load_quicktime): Add declaration.
8584 [MAC_OSX] (image_load_quartz2d): Likewise.
8585 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
8586 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 8587 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
8588 (xbm_load_image_from_file, x_laplace_read_row)
8589 (x_laplace_write_row, pbm_read_file): Remove functions.
8590 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
8591 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
8592 (colors_in_color_table): Sync with xfns.c (although not used).
8593 (lookup_rgb_color): Don't lookup color table. Just do gamma
8594 correction.
8595 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
8596 (x_disable_image): New function (from xfns.c).
8597 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8598 (x_build_heuristic_mask): Sync with xfns.c.
8599 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8600 (HAVE_PBM): Remove #ifdef.
8601 (pbm_load): Sync with xfns.c. Set img->width and img->height
8602 before IMAGE_BACKGROUND.
d8d95bc7 8603 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
8604 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
8605 Don't enclose with #if HAVE_PNG.
8606 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
8607 symbol _CGImageCreateWithPNGDataProvider is defined.
8608 Otherwise use image_load_quicktime.
e3564461 8609 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
8610 [HAVE_PNG] (png_load): Sync with xfns.c.
8611 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8612 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
8613 HAVE_JPEG.
8614 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
8615 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
8616 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
8617 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
8618 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
8619 (tiff_image_p, tiff_load): Don't enclose declarations with #if
8620 HAVE_TIFF.
8621 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
8622 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
8623 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
8624 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
8625 New functions (from xfns.c).
e3564461 8626 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 8627 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
8628 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
8629 Don't enclose with #if HAVE_GIF.
8630 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
8631 animated gif. Otherwise use image_load_quicktime.
8632 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
8633 gif_DrawText to avoid conflict with QuickdrawText.h.
8634 [HAVE_GIF] (gif_load): Sync with xfns.c.
8635 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
8636 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
8637 Ghostscript is not supported yet).
8638 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
8639 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
8640 cross_disabled_images (from xfns.c). Remove #if 0 for supported
8641 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
8642 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
8643 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
8644 HAVE_PNG. Call EnterMovies to support animated gifs.
8645 Call init_image_func_pointer to bind a symbol
e3564461 8646 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 8647
d8d95bc7 8648 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
8649 (x_draw_bar_cursor): Sync declaration with xterm.c.
8650 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
8651 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
8652 graphics).
8653 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
8654 (mac_draw_line_to_pixmap, XCreatePixmap)
8655 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
8656 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
8657 New functions.
8658 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
8659 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
8660 Cast bits to char *.
e3564461
ST
8661 (reflect_byte): New function (from w32fns.c).
8662 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
8663 due to byte alignment.
d8d95bc7
SM
8664 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
8665 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
8666 (XSetForeground): Remove static (now used in macfns.c).
8667 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
8668 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
8669 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
8670 (x_draw_glyph_string_box, x_draw_image_foreground)
8671 (x_draw_image_foreground_1, x_draw_image_glyph_string)
8672 (x_draw_stretch_glyph_string, x_draw_glyph_string)
8673 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
8674 Sync with xterm.c.
8675 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
8676 than the xterm.c version when a strictly horizontal or vertical
8677 line is drawn.
8678 (XTset_terminal_window): Add static.
8679 (x_make_frame_visible): Add UNBLOCK_INPUT.
8680 (x_free_frame_resources): New funcion (from xterm.c).
8681 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
8682 occurs in tool bar area.
d8d95bc7
SM
8683 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
8684 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
8685 Initialize image cache.
8686 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
8687 Enclose unused functions with #if 0.
8688 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
8689 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 8690 from a mac font name to an XLFD font name according to its script code.
e3564461 8691 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 8692 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
8693 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
8694 whose name starts with `.'.
8695 (init_font_name_table): Use decode_mac_font_name. Add both
8696 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
8697 of a font is smJapanese.
8698 (mac_do_list_fonts): New function to list fonts that match a given
8699 pattern.
8700 (x_list_fonts, XLoadQueryFont): Use it.
8701 (XLoadQueryFont): Set rbearing field for each variable width
8702 character to avoid needless redraw.
8703 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
8704
446f5f3d
KS
87052004-02-26 Kim F. Storm <storm@cua.dk>
8706
af617d0f
KS
8707 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
8708 as read_socket_hook handler on X aborts if buffer is too small
8709 and W32 handler doesn't always check buffer limit.
8710
446f5f3d
KS
8711 * xdisp.c (handle_single_display_prop): Handle left-fringe and
8712 right-fringe similar to a display margin image. Specifically,
8713 the characters having the fringe prop are no longer shown, and
8714 we use IT_IMAGE/next_element_from_image with image_id = -1 to
8715 do this. Set fringe bitmap face_id in it->face_id.
8716 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
8717 still realize it->face (i.e. the fringe bitmap face).
8718
7d8a0b55
MB
87192004-02-25 Miles Bader <miles@gnu.org>
8720
8721 * xdisp.c (check_it): Check string/string_pos consistency.
8722 (init_iterator): Initialize string-related fields properly.
8723
87242004-02-11 Miles Bader <miles@gnu.org>
8725
8726 * xdisp.c (produce_image_glyph): Force negative descents to zero.
8727
87282004-02-10 Miles Bader <miles@gnu.org>
8729
8730 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
8731 BLOCK_INPUT can be nested, so it doesn't make much sense.
8732
a64387ee 87332004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
8734
8735 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
8736 (xbm_read_bitmap_data): Use unsigned char for image data.
8737
92f5fba2
LT
87382004-02-23 Luc Teirlinck <teirllm@auburn.edu>
8739
8740 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
8741
8565fb3d
JR
87422004-02-22 Jason Rumney <jasonr@gnu.org>
8743
8744 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
8745 correctly over other bitmaps.
8746
a6eeaa81 87472004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
8748
8749 * emacs.c (USAGE1): Split into two halves.
8750 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
8751 (USAGE3): Rename from USAGE2.
8752 (USAGE4): Rename from USAGE3.
f8125c39 8753
4effffca
EZ
87542004-02-21 Juri Linkov <juri@jurta.org>
8755
8756 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
8757 Fix --multibyte. Move --help, --version to USAGE2. Add alias
8758 --file. Fix -f, -l. Sort options. Untabify.
8759 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
8760
923c1e6f
LT
87612004-02-19 Luc Teirlinck <teirllm@auburn.edu>
8762
8763 * category.c (Fdefine_category, Fcategory_docstring)
8764 (Fget_unused_category, Fset_category_table)
8765 (Fcategory_set_mnemonics): Doc fixes.
8766
b0e225fd
KS
87672004-02-20 Kim F. Storm <storm@cua.dk>
8768
8769 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
8770 The following changes are relative to the 2004-01-21 revision.
8771 (NREAD_INPUT_EVENTS): Define as max number of input events to read
8772 in one call to read_socket_hook. Value is 8.
8773 (read_avail_input): Separate and rework handling of read_socket_hook
8774 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
8775 in read_socket_hook case, and repeat if full buffer is read.
8776 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
8777 In non-read_socket_hook case, just use a single input_event, and
8778 call kbd_buffer_store_event on the fly for each character.
8779
b15aa9f9
SM
87802004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8781
8782 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
8783 Remove unused `gu' alternative.
8784
83c9aa95
AS
87852004-02-19 Andreas Schwab <schwab@suse.de>
8786
8787 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
8788 warning.
8789
cc808173
KS
87902004-02-18 Kim F. Storm <storm@cua.dk>
8791
8792 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
8793 Fix last change.
8794
ab90a54d
KS
87952004-02-17 Kim F. Storm <storm@cua.dk>
8796
b26f249f
KS
8797 * xdisp.c (fast_find_position): Fix return value of new version;
8798 it was inverted compared to the 21.1 version.
8799 (get_window_cursor_type): Don't look at glyph if NULL.
8800 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 8801
ab90a54d
KS
8802 * keyboard.c: Rework previous change; it didn't consider that the
8803 buf array was allocated on the stack.
8804 (prev_read): Remove variable.
8805 (read_avail_input_buf): New static event buffer array.
b9568dfc 8806 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 8807 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
8808 Use in_read_avail_input to handle re-entrance; when re-entered,
8809 fully initialize and use tmp_buf array instead of read_avail_input_buf.
8810 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
8811 is always cleared on entry. To ensure that, we clear (just) the
8812 entries that were used before we return.
8813 (init_keyboard): Initialize read_avail_input_buf here.
8814
b6189c3b 88152004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
8816
8817 * cmds.c (Fend_of_line): Doc fix.
8818
7b5368c1
EZ
88192004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
8820
8821 * keyboard.c (prev_read): New static variable.
8822 (read_avail_input): Use it to zero out only those slots in buf[]
8823 that were used last time we were called.
8824
a6eeaa81 88252004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
8826
8827 * Makefile.in (obj): Move fringe.o from here...
8828 (XOBJ, MAC_OBJ): ...to here.
8829
159c348e
SE
88302004-02-16 Stephen Eglen <stephen@gnu.org>
8831
8832 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
8833
d2f14999
SM
88342004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
8835
b15aa9f9
SM
8836 * data.c (Fbyteorder):
8837 * fringe.c (Fdefine_fringe_bitmap):
8838 * xdisp.c (handle_single_display_prop):
d2f14999
SM
8839 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
8840
8d50508a
JR
88412004-02-16 Jason Rumney <jasonr@gnu.org>
8842
8843 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
8844
dd4497dc
ST
88452004-02-15 Steven Tamm <steventamm@mac.com>
8846
8847 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
8848 controlling emulation of a three button mouse with option and
8849 command keys.
7e26f91b 8850 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 8851 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 8852
c9159cb3
KS
88532004-02-15 Kim F. Storm <storm@cua.dk>
8854
2cc52658
KS
8855 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
8856
c9159cb3
KS
8857 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
8858 Perform byte-swapping.
8859
12fde2dc
KS
88602004-02-14 Kim F. Storm <storm@cua.dk>
8861
8862 * dispextern.h (struct draw_fringe_bitmap_params): Change member
8863 bits from char to short to facilitate wider bitmaps.
8864 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
8865 member.
8866
8867 * fringe.c (struct fringe_bitmap): Change member bits from char to
8868 short to facilitate 16 bits wide bitmaps. Modify all standard
8869 bitmaps accordingly.
8870 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
8871 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
8872 (draw_fringe_bitmap): Ditto.
8873 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
8874 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
8875 handle up to 16 bits wide bitmaps.
8876 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 8877 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
8878
8879 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
8880 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
8881 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
8882
8883 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
8884 so it is no longer necessary to expand them here.
8885
8886 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
8887
9d7271e8
KS
88882004-02-12 Kim F. Storm <storm@cua.dk>
8889
8890 * window.c (Fwindow_fringes): Doc fix.
8891
706c1e4f
JD
88922004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8893
8894 * xselect.c (x_get_foreign_selection): Add new optional parameter
8895 time_stamp.
8896 (Fx_get_selection_internal): Ditto, pass time_stamp to
8897 x_get_foreign_selection.
8898
8899 * data.c (Fbyteorder): New function.
8900
c2d12b5d
JD
89012004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8902
8903 * atimer.c: Move include stdio.h to same place as in other files.
8904
8905 * region-cache.c: Ditto.
8906
8907 * sysdep.c: Ditto.
8908
8909 * xfaces.c: Ditto.
8910
4c1947b9
SS
89112004-02-09 Sam Steingold <sds@gnu.org>
8912
89458937 8913 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 8914
82722af3
KS
89152004-02-09 Kim F. Storm <storm@cua.dk>
8916
8917 * fringe.c: New file. Move original fringe related declarations
8918 and code from dispextern.h and xdisp.c here.
8919 Rework code to support user defined fringe bitmaps, redefining
8920 standard bitmaps, ability to overlay user defined bitmap with
8921 overlay arrow bitmap, and add faces to bitmaps.
8922 (Voverflow_newline_into_fringe): Declare here.
8923 (enum fringe_bitmap_align): New enum.
8924 (..._bits): All bitmaps are now defined without bitswapping; that
8925 is now done in init_fringe_once (if necessary).
8926 (standard_bitmaps): New array with specifications for the
8927 standard fringe bitmaps.
8928 (fringe_faces): New array.
8929 (valid_fringe_bitmap_id_p): New function.
8930 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
8931 (draw_fringe_bitmap): New function which draws fringe bitmap,
8932 possibly overlaying bitmap with cursor in right fringe or the
8933 overlay arrow in the left fringe.
8934 (update_window_fringes): Do not handle overlay arrow here.
8935 Compare and copy fringe bitmap faces.
8936 (init_fringe_bitmap): New function.
8937 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
8938 define and destroy user defined fringe bitmaps.
8939 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
8940 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
8941 (syms_of_fringe): New function. Defsubr new DEFUNs.
8942 DEFVAR_LISP Voverflow_newline_into_fringe.
8943 (init_fringe_once, init_fringe): New functions.
8944 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 8945
82722af3
KS
8946 * Makefile.in (obj): Add fringe.o.
8947 (fringe.o): New dependencies.
8948
8949 * dispextern.h (FRINGE_ID_BITS): New definition for number of
8950 bits allocated to hold a fringe number. Increase number of bits
8951 from 4 to 8 to allow user defined fringe bitmaps.
8952 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
8953 left_user_fringe_face_id, right_user_fringe_bitmap,
8954 right_user_fringe_face_id.
8955 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
8956 Move to new file fringe.c.
8957 (MAX_FRINGE_BITMAPS): Define here.
8958 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
8959 and overlay_p. Change member which to int.
8960 (struct redisplay_interface): New members define_fringe_bitmap
8961 and destroy_fringe_bitmap.
8962 (valid_fringe_bitmap_id_p): Add prototype.
8963 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
8964
8965 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
8966 arrows.
8967 (update_frame): Do flush_display if force_flush_display_p to
8968 ensure display (specifically fringes) are updated in a timely
8969 manner when resizing the frame by dragging the mouse.
8970 (update_window_line): Update row if overlay arrow changed.
8971 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
8972 or overlay arrow changed.
8973
8974 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
8975 syms_of_fringe, and init_fringe.
8976
8977 * frame.h (struct frame): New member force_flush_display_p.
8978
8979 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
8980 Add prototypes.
8981
a3993cc8 8982 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 8983 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
8984 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
8985 Use cursor color for displaying cursor in fringe.
82722af3
KS
8986 (x_redisplay_interface): Add null handlers for
8987 define_fringe_bitmap and destroy_fringe_bitmap functions.
8988
8989 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
8990 xterm.c to handle overlayed fringe bitmaps and to use cursor color
8991 for displaying cursor in fringe.
8992 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
8993 specific functions to define and destroy fringe bitmaps in fringe_bmp.
8994 (w32_redisplay_interface): Add them to redisplay_interface.
8995 (w32_term_init): Call w32_init_fringe instead of explicitly
8996 defining fringe bitmaps in fringe_bmp array.
8997 (x_delete_display): Call w32_reset_fringes instead of explicitly
8998 destroying fringe bitmaps in fringe_bmp array.
8999
9000 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
9001 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
9002 (continued_bits, continuation_bits, ov_bits, first_line_bits)
9003 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
9004 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
9005 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
9006 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
9007 Move fringe handling vars and code to new file fringe.c.
9008 (handle_display_prop): Handle left-fringe and right-fringe
9009 display properties; store user fringe bitmaps in iterator.
9010 (move_it_in_display_line_to): Handle cursor in fringe at eob.
9011 (clear_garbaged_frames): Set force_flush_display_p if resized.
9012 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
9013 (display_line): Handle cursor in fringe at eob.
9014 (display_line): Set row user fringe bitmaps from iterator.
9015
9016 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
9017 Use cursor color for displaying cursor in fringe.
9018 (x_redisplay_interface): Add null handlers for
9019 define_fringe_bitmap and destroy_fringe_bitmap functions.
9020
030400eb
JD
90212004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9022
9023 * macfns.c (Fx_change_window_property): Make doc string and
9024 parameters same as for X version.
9025
9026 * w32fns.c (Fx_change_window_property): Ditto.
9027
3af55251
KS
90282004-02-07 Kim F. Storm <storm@cua.dk>
9029
ec110e9e
KS
9030 * xdisp.c (hscroll_window_tree): Position cursor near to right
9031 margin in hscrolled window when jumping to end of line (rather
9032 than centering cursor).
9033
3af55251
KS
9034 * process.c (wait_reading_process_input): Don't do adaptive read
9035 buffering if waiting for a specific process.
9036
b0c138ce
LT
90372004-02-05 Luc Teirlinck <teirllm@auburn.edu>
9038
9039 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
9040 (Fread_minibuffer, Feval_minibuffer)
9041 (Fread_string, Fread_no_blanks_input)
9042 (Fcompleting_read): Doc fixes.
9043 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
9044 completion-regexp-list. Define Qcase_fold_search and staticpro it.
9045 (read_minibuf): Fix initial comment.
9046 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 9047 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
9048 checking completion-regexp-list.
9049 (Fdisplay_completion_list): Make it handle arguments that are
9050 symbols. Doc fix.
9051
9676f5ad 90522004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 9053
9676f5ad 9054 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 9055
9676f5ad
JD
9056 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
9057 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 9058 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 9059 format. Remove unused variable cons.
5b698285
JD
9060
9061 * xselect.c: Include stdio,h.
9062
fc1d15f6
KH
90632004-02-05 Kenichi Handa <handa@m17n.org>
9064
ebaff4af
KH
9065 * fns.c (Fset_char_table_range): Fix previous change.
9066
fc1d15f6
KH
9067 * buffer.c (Fset_buffer_multibyte): Fix docstring.
9068
9676f5ad
JD
90692004-02-04 Luc Teirlinck <teirllm@auburn.edu>
9070
9071 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
9072
da75761f
SM
90732004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
9074
9075 * keymap.c (Vmouse_events): Rename from Vmenu_events.
9076 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
9077
13c5d120
KH
90782004-02-04 Kenichi Handa <handa@m17n.org>
9079
9080 * fns.c (Fset_char_table_range): Handle charsets ascii,
9081 eight-bit-control, and eight-bit-graphic correctly.
9082
2883d842
JR
90832004-02-03 Jason Rumney <jasonr@gnu.org>
9084
9085 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
9086
9087 * w32fns.c (x_to_w32_font): Likewise.
9088
69eff41f
JD
90892004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9090
9091 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
9092 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
9093
9094 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
9095 ClientMessages.
9096
9097 * xselect.c: Include termhooks.h and X11/Xproto.h
9098 (x_check_property_data, x_fill_property_data)
9099 (x_property_data_to_lisp, mouse_position_for_drop)
9100 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 9101 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
9102 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
9103
da75761f 9104 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
9105 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
9106 OUTER_P.
9107 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
9108 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
9109 if vector_ret_p is true.
9110 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 9111
a6eeaa81 91122004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
9113
9114 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
9115 basename of FILE relative to it, not FILE itself.
9116
09721b31
KH
91172004-02-02 Kenichi Handa <handa@m17n.org>
9118
9119 * coding.c (coding_restore_composition): Check invalid
9120 composition data more rigidly.
9121
eb996101
LT
91222004-01-30 Luc Teirlinck <teirllm@auburn.edu>
9123
9124 * fileio.c (Fread_file_name_internal): Correctly handle the case
9125 where insert-default-directory is nil.
9126 (Fread_file_name): Always return an empty string if the user exits
9127 with an empty minibuffer. Adapt the docstring accordingly.
9128 (syms_of_fileio): Adapt the docstring of insert-default-directory
9129 to the change in Fread_file_name.
9130
a6eeaa81 91312004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
9132
9133 * alloca.c [!alloca]: Fix the prototype for xfree.
9134
13f52ed8
KH
91352004-01-29 Kenichi Handa <handa@m17n.org>
9136
9137 * fns.c (string_char_to_byte): Optimize for ASCII only string.
9138 (string_byte_to_char): Likewise.
9139
d57625a0
JR
91402004-01-28 Peter Runestig <peter@runestig.com>
9141
9142 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
9143
a64387ee 91442004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
9145
9146 * unexmacosx.c (unexec_copy): Do not copy more than was
9147 requested to prevent overwriting during unexec.
9148
eb37b8fd
JD
91492004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9150
ce38070a
JD
9151 * process.c (sigchld_handler): Add comment about not calling malloc.
9152
eb37b8fd
JD
9153 * process.h: Add extern to synch_process_termsig.
9154
a64387ee 91552004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 9156
da75761f
SM
9157 * macterm.c (make_mac_frame, make_mac_terminal_frame):
9158 Move setting of scroll bars from make_mac_frame to
9159 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 9160
d62a265d
RS
91612004-01-26 Richard M. Stallman <rms@gnu.org>
9162
9163 * search.c (Freplace_match): Handle nonexistent
9164 back-references properly.
9165
91662004-01-03 Richard M. Stallman <rms@gnu.org>
9167
9168 * window.c (decode_any_window): New function.
9169 (Fwindow_height, Fwindow_width, Fwindow_edges)
9170 (Fwindow_pixel_edges, Fwindow_inside_edges)
9171 (Fwindow_inside_pixel_edges): Use decode_any_window.
9172
ff236419
JD
91732004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9174
9175 * process.h: synch_process_termsig new variable.
9176
9177 * callproc.c: Define synch_process_termsig.
9178 (Fcall_process): Initiate synch_process_termsig to zero and
9179 check if non-zero and get signal name after subprocess has ended.
9180
9181 * process.c (sigchld_handler): Set synch_process_termsig
9182 if terminated by a signal. synch_process_death setting removed.
9183
9184 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
9185
41b867ea
AS
91862004-01-26 Andreas Schwab <schwab@suse.de>
9187
9188 * print.c (print_preprocess): Declare size as EMACS_INT to not
9189 lose bits.
9190 (print_object): Likewise.
9191 * alloc.c (Fpurecopy): Likewise.
9192
a08084ff
LT
91932004-01-25 Luc Teirlinck <teirllm@auburn.edu>
9194
9195 * window.c (Fwindow_minibuffer_p): Doc fix.
9196
b19ac475
JY
91972004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
9198
9199 * editfns.c (Fformat): Make both passes accept the same set of flags.
9200
fe905025
KH
92012004-01-23 Kenichi Handa <handa@m17n.org>
9202
9203 * fns.c (Fmd5): If OBJECT is a buffer different from the current
9204 one, set buffer to OBJECT temporarily.
9205
438fc6c0
SM
92062004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9207
455316e2
SM
9208 * keyboard.c (kbd_buffer_gcpro): Remove.
9209 (kbd_buffer_store_event, clear_event, Fdiscard_input)
9210 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
9211 Don't initialize and/or maintain the variable any more. It was made
9212 redundant by my commit of 2003-06-15.
9213
438fc6c0
SM
9214 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
9215
5335a4ee
JD
92162004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9217
9218 * lisp.h: Add undef DECL_ALIGN.
9219
dcdaeebc
SM
92202004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9221
9222 * process.c (wait_reading_process_input) [SYNC_INPUT]:
9223 Check interrupt_input_pending explicitly.
9224
9225 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
9226
9227 * keyboard.c (handle_async_input): New fun,
9228 extracted from input_available_signal.
9229 (input_available_signal, reinvoke_input_signal): Use it.
9230
9076a823
SM
92312004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
9232
d7107586
SM
9233 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
9234
9235 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
9236 manipulation macros for when tags are in the lower bits.
9237 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
9238 (DECL_ALIGN): New macro.
9239 (DEFUN): Use it.
9240
9241 * lisp.h [ENABLE_CHECKING]: Don't force union type.
9242
9243 * s/darwin.h (__attribute__): Remove outdated workaround.
9244
9245 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
9246
9247 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
9248 Don't check range of malloc address.
9249 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
9250
9076a823
SM
9251 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
9252
9253 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
9254
ba029065
KH
92552004-01-19 Kenichi Handa <handa@m17n.org>
9256
9257 * fontset.c (fontset_font_pattern): Fix previous change.
9258
7af0e8d7
MB
92592004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
9260
9261 * xdisp.c (Voverflow_newline_into_fringe)
9262 (move_it_in_display_line_to, redisplay_internal)
9263 (update_window_fringes, redisplay_window, display_line, window):
9264 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
9265 that it compiles without a window-system.
9266 * dispnew.c (direct_output_for_insert, update_window): Likewise.
9267
77a9cf69
KS
92682004-01-16 Kim F. Storm <storm@cua.dk>
9269
9270 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
9271
a64387ee 9272 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
9273 buffer_local_flags for indicate_buffer_boundaries.
9274 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
9275 default- variable for it.
9276
9277 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
9278 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 9279 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
9280 overflowing newlines into right fringe.
9281 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
9282 and indicate_bottom_line_p for buffer boundaries and scrolling.
9283 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
9284 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
9285 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
9286 and HOLLOW_SQUARE_BITMAP.
9287 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
9288 Add prototypes.
9289
9290 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
9291 instead of related indicator fields.
9292 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
9293 (direct_output_for_insert): Handle exact width lines like
9294 contined lines. Call update_window_fringes.
9295 (update_window): Call update_window_fringes.
9296 (scrolling_window): Don't skip desired rows with changed bitmaps.
9297 Check if fringe bitmaps changes when assigning scrolled rows.
9298
9299 * xdisp.c (Voverflow_newline_into_fringe): New variable.
9300 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
9301 (move_it_in_display_line_to): Overflow newline into fringe for
9302 rows that are exactly as wide as the window.
9303 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
9304 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
9305 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
9306 (fringe_bitmaps): Add new bitmaps.
9307 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
9308 Select proper bitmap for cursor in fringe when appropriate.
9309 Handle alignment of bitmap to top or bottom of row.
9310 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
9311 done by update_window_fringes.
9312 (update_window_fringes, draw_window_fringes): New functions.
9313 (redisplay_internal): Call update_window_fringes in case only
9314 cursor row is updated.
9315 (redisplay_window): Call update_window_fringes.
9316 Explicitly call draw_window_fringes if redisplay was done using
9317 the current matrix or the overlay arrow is in the window.
9318 (try_window_reusing_current_matrix): Mark scrolled rows for
9319 fringe update (to update buffer-boundaries / scrolling icons).
9320 (find_last_unchanged_at_beg_row): Handle exact width lines line
9321 continued lines.
9322 (display_line): Overflow newline into fringe for rows that are
9323 exactly as wide as the window. Don't append space for newline
d7107586 9324 in this case.
77a9cf69
KS
9325 (notice_overwritten_cursor): Explicitly clear cursor bitmap
9326 in fringe as if it had been overwritten.
9327 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 9328 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
9329 void-text-area-pointer as user options.
9330 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 9331
77a9cf69
KS
9332 * xterm.c (x_update_window_end): Call draw_window_fringes.
9333 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9334 in row instead of actually drawing fringe bitmaps.
9335 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9336 (x_draw_window_cursor): Draw cursor in fringe.
9337
9338 * w32term.c (x_update_window_end): Call draw_window_fringes.
9339 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9340 in row instead of actually drawing fringe bitmaps.
9341 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9342 (w32_draw_window_cursor): Draw cursor in fringe.
9343
9344 * macterm.c (x_update_window_end): Call draw_window_fringes.
9345 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9346 in row instead of actually drawing fringe bitmaps.
9347 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9348 (mac_draw_window_cursor): Draw cursor in fringe.
9349
a633a954
JD
93502004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9351
9352 * xterm.c (handle_one_xevent): Don't handle characters that are part
9353 of an old style (XLookupString) compose sequence.
9354
80460525
KH
93552004-01-15 Kenichi Handa <handa@m17n.org>
9356
9357 * search.c (Freplace_match): Use make_multibyte_string or
9358 make_unibyte_string according to the buffer multibyteness.
9359
7fc34f85
SM
93602004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
9361
9362 * alloc.c (struct interval_block, struct string_block)
9363 (struct symbol_block, struct marker_block, live_string_p)
9364 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
9365 Better preserve alignment for objects in blocks.
9366 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
9367
9368 * lread.c (defvar_per_buffer): Remove dead declaration.
9369
9370 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
9371 space size.
9372
66070bd1
JD
93732004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9374
9375 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
9376 if a key press should pop down. Only pop down if a key is pressed
9377 outside the menu/dialog.
9378 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
9379 popup_get_selection.
9380 (create_and_show_dialog): Pass 1 for down_on_keypress to
9381 popup_get_selection.
9382
de7515d6
JD
93832004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9384
9385 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
9386 BLOCK/UNBLOCK_INPUT.
9387
160b1b50
JD
93882004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9389
9390 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
9391 specified.
9392
3a9f36e6
KH
93932004-01-08 Kenichi Handa <handa@m17n.org>
9394
9395 * editfns.c (Fformat): Fix '&' to '&&'.
9396
3803eb32
AS
93972004-01-08 Andreas Schwab <schwab@suse.de>
9398
9399 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
9400 size if PSEUDOVECTOR_FLAG is set.
9401
9da88f37
KH
94022004-01-07 Kenichi Handa <handa@m17n.org>
9403
74ac5074
KH
9404 * charset.c (Fdeclare_equiv_charset): Fix docstring.
9405
9da88f37
KH
9406 * fontset.c (fontset_ref_via_base): Fix previous change.
9407
05faee07
KS
94082004-01-07 Kim F. Storm <storm@cua.dk>
9409
9410 * process.c (read_process_output): Only activate adaptive
9411 buffering if we read less than 256 bytes at a time.
9412
634910c8
KS
94132004-01-06 Kim F. Storm <storm@cua.dk>
9414
9415 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
9416 object and image object. Return glyph width and height.
9417 (mode_line_string, marginal_area_string): Ditto.
9418
9419 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9420 (marginal_area_string): Fix prototypes.
9421
9422 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 9423 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
9424 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
9425
9426 * keyboard.c (make_lispy_position): Use modified mode_line_string,
9427 buffer_posn_from_coords, and marginal_area_string functions to
9428 include both string object and image object in the lispy position.
9429 Also add actual glyph width and height to position.
9430 (read_key_sequence): Use real buffer position from mouse
9431 event to find keymap property even when click is in marginal area.
9432
9433 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
9434 mode_line_string and marginal_area_string functions to handle
9435 both string object and image object properties.
d7107586 9436
57951c2e
AS
94372004-01-06 Andreas Schwab <schwab@suse.de>
9438
9439 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
9440 character.
9441
181e6a61
AS
94422004-01-02 Andreas Schwab <schwab@suse.de>
9443
d7107586
SM
9444 * macterm.c (emacs_options, x_initialized, same_x_server):
9445 Remove unused (and duplicated) definitions.
181e6a61 9446
31e0fbdd
KS
94472004-01-02 Kim F. Storm <storm@cua.dk>
9448
9449 * process.h (struct Lisp_Process): New members for adaptive read
9450 buffering: adaptive_read_buffering, read_output_delay, and
9451 read_output_skip.
9452
9453 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
9454 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
9455 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
9456 (process_output_delay_count, process_output_skip): New vars.
9457 (Vprocess_adaptive_read_buffering): New variable.
9458 (make_process): Initialize adaptive read buffering members.
9459 (Fstart_process): Set adaptive_read_buffering member.
9460 (deactivate_process): Cleanup adaptive read buffering.
9461 (wait_reading_process_input): Temporarily omit delayed
9462 subprocesses from the set of file descriptors to read from;
9463 adjust the select timeout if we skipped any subprocesses.
9464 (read_process_output): Increase adaptive read buffering delay if
9465 we read less than a full buffer; reduce delay when we read a
9466 full buffer.
9467 (send_process): Simplify using local Lisp_Process var.
9468 Reset adaptive read buffering delay after write.
9469 (init_process): Initialize process_output_delay_count and
9470 process_output_skip.
9471 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
9472
68c6a789
JR
94732004-01-01 Jason Rumney <jasonr@gnu.org>
9474
d7107586 9475 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 9476
3f70fe82
LT
94772003-12-30 Luc Teirlinck <teirllm@auburn.edu>
9478
9479 * print.c (Ferror_message_string): Add hyperlink in the docstring
9480 to the definition of `signal' in the Elisp manual.
9481 * eval.c (Fsignal): Ditto.
9482
b6189c3b 94832003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
9484
9485 * fns.c (internal_equal): Return t for two NaN arguments.
9486
7abd90ea
RS
94872003-12-29 Richard M. Stallman <rms@gnu.org>
9488
9489 * data.c (store_symval_forwarding): Handle setting
9490 default-fill-column, etc., by changing the value in
9491 buffers that use the default.
9492
9493 * minibuf.c (Fset_minibuffer_window): Doc fix.
9494
9495 * fileio.c (choose_write_coding_system): Ignore auto_saving
9496 if using the visited file for auto saves.
9497 (Fwrite_region): Don't update SAVE_MODIFF
9498 if auto-saving in visited file.
9499
3e7cfcdc
KH
95002003-12-29 Kenichi Handa <handa@m17n.org>
9501
9502 * dispextern.h (face_font_available_p): Extern it.
9503
9504 * fontset.c (Voverriding_fontspec_alist): New variable.
9505 (lookup_overriding_fontspec): New function.
d7107586 9506 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
9507 (fontset_font_pattern): Likewise.
9508 (regulalize_fontname): New function.
9509 (Fset_fontset_font): Call regulalize_fontname.
9510 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
9511 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
9512 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
9513
9514 * xfaces.c (face_font_available_p): New function.
9515
7abd90ea
RS
95162003-12-28 Richard M. Stallman <rms@gnu.org>
9517
9518 * buffer.c (Fother_buffer): Don't crash if BUF is nil
9519 or if its name is nil.
9520
9521 * buffer.c (Fkill_buffer): Don't delete auto-save file
9522 if it's the same as the visited file.
9523
de1d1a40
LT
95242003-12-28 Luc Teirlinck <teirllm@auburn.edu>
9525
9526 * coding.c (Fcheck_coding_system): Doc fix.
9527
204fb75e
KS
95282003-12-28 Kim F. Storm <storm@cua.dk>
9529
9530 * Makefile.in (eval.o): Depend on dispextern.h.
9531
9532 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
9533 image glyph using image's ascent.
9534 (mode_line_string): Return image glyph as object clicked on.
9535 Adjust y0 for image glyph using image's ascent.
9536
9537 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
9538 (struct glyph): New members, ascent and descent. Used to save
9539 this glyph's ascent and descent, instead of having.
9540 (struct glyph): Declare member face_id using FACE_ID_BITS.
9541 (find_hot_spot): Add prototype.
9542
9543 * keyboard.c (Qimage): Remove extern (now in lisp.h).
9544 (QCmap): Declare extern.
9545 (make_lispy_position): When position is inside image hot-spot,
9546 use hot-spot element's id as posn element.
9547
9548 * lisp.h (IMAGEP): New macro to test for image object type.
9549 (Qimage): Declare extern.
9550
9551 * macfns.c (Qimage): Remove extern (now in lisp.h).
9552 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9553
9554 * macterm.c (Qface, Qmouse_face): Remove unused externs.
9555
9556 * w32fns.c (Qimage): Remove extern (now in lisp.h).
9557 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9558
9559 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
9560
9561 * w32term.c (Qface, Qmouse_face): Remove unused externs.
9562
9563 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
9564 pointer types.
9565 (Qrelative_width, Qalign_to): Remove unused variables.
9566 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
9567 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
9568 image maps.
d7107586 9569 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
9570 new dx and dy args.
9571 Remove buffer_only_p arg (always 0). Simplify code accordingly.
9572 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
9573 than row's ascent and height, to get sensible height on tall rows.
9574 (build_desired_tool_bar_string): Remove Qimage extern.
9575 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
9576 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
9577 image glyph is alone on the last line.
9578 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 9579 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 9580 (on_hot_spot_p): New function to check if position is inside an
d7107586 9581 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
9582 (find_hot_spot): New function to search for image hot-spot.
9583 (Flookup_image_map): New defun to search for image hot-spot.
9584 (define_frame_cursor1): New aux function to determine frame pointer.
9585 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9586 Handle `pointer' text property and :pointer image property to
9587 control frame pointer shape. Detect image hot-spots for pointer
9588 and help_echo properties. Use define_frame_cursor1.
9589 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 9590 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
9591 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
9592
9593 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
9594
9595 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
9596 (Qimage): Remove extern (now in lisp.h).
9597 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9598
9599 * xmenu.c (show_help_event): Remove unused code.
9600
9601 * xterm.c (Qface, Qmouse_face): Remove unused externs.
9602 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
9603 row's ascent and descent, to get a sensible height on tall rows.
9604
fc052137
LT
96052003-12-25 Luc Teirlinck <teirllm@auburn.edu>
9606
9607 * minibuf.c (Fcompleting_read): Undo previous change.
9608
a64387ee 96092003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
9610
9611 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
9612 Arguments GCPRO'ed in call to file name handler.
9613
56ffd194
TTN
96142003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
9615
9616 * termcap.c (tgetst1): Scan for "%pN"; if all
9617 N are continuous in [1,9], remove all "%pN".
9618
5202d23d
JD
96192003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9620
f26fab36
JD
9621 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
9622
5202d23d
JD
9623 * xfaces.c (lface_fully_specified_p): Take into account that
9624 MAC OS always have unspecified stipple.
9625
8babaa59
TTN
96262003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9627
9628 * tparam.c (tparam1): Add handling for `%pN', which
9629 means use param N for the next substitution.
9630
2d176448
TTN
96312003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9632
9633 * xfaces.c (Fcolor_gray_p): Fix omission bug:
9634 In case `frame' is nil, consult the selected frame.
9635 (Fcolor_supported_p): Likewise.
9636
adb0708c
LT
96372003-12-23 Luc Teirlinck <teirllm@auburn.edu>
9638
000eeb15
LT
9639 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
9640 Doc fixes.
0dc72b11
LT
9641
9642 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
9643 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
9644 (Fread_from_minibuffer): Delete code moved into read_minibuf.
9645 Doc fix.
9646 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
9647 read_minibuf.
9648 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 9649 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 9650
2e4d132b
KH
96512003-12-03 Kenichi Handa <handa@m17n.org>
9652
9653 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
9654 encoding sequence.
9655
3999c705
KH
96562003-12-01 Kenichi Handa <handa@m17n.org>
9657
9658 * composite.c (syms_of_composite): Don't make the compostion hash
9659 table week.
9660
d344ecbb
LT
96612003-11-30 Luc Teirlinck <teirllm@auburn.edu>
9662
9663 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
9664 * textprop.c (Fget_char_property_and_overlay): New function.
9665 (syms_of_textprop): Defsubr it.
9666
03d6484e
JD
96672003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9668
019b1f0e
JD
9669 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
9670 to compile on terminal configuration.
9671
03d6484e
JD
9672 * fileio.c (Fread_file_name): Check use_file_dialog also before
9673 calling Fx_file_dialog.
9674
1d1c7e75 9675 * fns.c (use_file_dialog): New variable.
03d6484e
JD
9676 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
9677
442d3fd0
KS
96782003-11-29 Kim F. Storm <storm@cua.dk>
9679
9680 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
9681 (syms_of_msdos): Don't intern and staticpro them.
9682
0f6a07a8
KS
96832003-11-27 Kim F. Storm <storm@cua.dk>
9684
9685 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
9686 coordinates relative to glyph at posn. If glyph is an image,
9687 return that as object at posn. Callers changed.
9688 (mode_line_string, marginal_area_string): Calculate and return
9689 pixel coordinates relative to glyph. Callers changed.
9690
9691 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9692 (marginal_area_string): Fix prototypes.
9693 (window_box_left_offset, window_box_right_offset): Add prototypes.
9694
9695 * frame.h (get_specified_cursor_type, get_window_cursor_type):
9696 Remove prototypes.
9697
9698 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
9699
9700 * keyboard.c (make_lispy_position): Add x and y coordinates
9701 relative to the current glyph as 7th element of position.
9702 If glyph is an image, return it in the object element.
9703 (read_key_sequence): Skip checks for keymap property in cases
9704 where POSN_STRING is not a string (e.g. an image).
9705
9706 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
9707 (Vshow_text_cursor_in_void): New variable.
9708 (glyph_to_pixel_coords): Don't use negative hpos.
9709 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
9710 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 9711 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
9712 (calc_pixel_width_or_height): New aux function, implementing
9713 pixel based artihmetic for glyph widths and heights.
9714 (produce_stretch_glyph): Use calc_pixel_width_or_height for
9715 :width, :height, :align-to, and :ascent, thus allowing these to
9716 be specified in pixels as well as multiples of characters.
9717 Don't produce stretch glyphs with zero width or height.
9718 (get_specified_cursor_type): Declare static.
9719 (get_window_cursor_type): Declare static. Add glyph arg to be
9720 able to know when cursor is on an image; always substitute
9721 hollow-box cursor for filled-box cursor on images, to avoid
9722 negative images and flicker when blinking the cursor.
9723 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
9724 (note_mode_line_or_margin_highlight): Use non-text cursor rather
9725 than vertical scroll-bar cursor in display margins.
9726 (note_mouse_highlight): Use non-text cursor rather than text
9727 cursor in fringes and over images in the text area.
9728 Use non-text cursor when mouse pointer is outside editable text,
9729 i.e. in the void after end-of-line or end-of-buffer; this was
9730 already done for W32, but is now standard for all systems --
9731 user can toggle show-text-cursor-in-void to get old behaviour.
9732 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
9733 Vdisplay_pixels_per_inch.
9734
00498bfc
AS
97352003-11-25 Andreas Schwab <schwab@suse.de>
9736
9737 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
9738 EMACS_INT to not lose bits.
9739 (Ffillarray): Don't set bits beyond the size of a bool vector.
9740
edaa824d
KS
97412003-11-25 Kim F. Storm <storm@cua.dk>
9742
9743 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
9744 define this defun on systems that cannot use stderr as lvalue.
9745
74d6f539
GM
97462003-11-24 Gerd Moellmann <gerd@gnu.org>
9747
9748 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
9749 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
9750 ld's default is incompatible with unexec.
9751
6a1ff3ba
KS
97522003-11-23 Kim F. Storm <storm@cua.dk>
9753
63dc7c6b
KS
9754 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
9755 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
9756 (Fforce_window_update): New defun.
9757 (syms_of_window): Defsubr it.
9758 (Fset_window_margins, Fset_window_fringes): Doc fix.
9759
6a1ff3ba
KS
9760 * print.c (Fredirect_debugging_output): New defun.
9761 (syms_of_print): Defsubr it.
9762
aef109b7
LT
97632003-11-22 Luc Teirlinck <teirllm@auburn.edu>
9764
9765 * fns.c (Fset_char_table_parent): Doc fix.
9766
6a1ff3ba 97672003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
9768
9769 * dispnew.c (buffer_posn_from_coords): Return actual row/column
9770 for glyph clicked on, rather than (unused) pixel positions.
9771 (mode_line_string, marginal_area_string): Change X and Y args to
9772 pointers for returning actual row/column for glyph clicked on.
9773 Simplify and optimize loops.
9774
aef109b7
LT
9775 * dispextern.h (mode_line_string, marginal_area_string):
9776 Update prototypes.
63ccbe21
KS
9777
9778 * keyboard.c (make_lispy_position): New function for generating
9779 mouse click positions from frame and pixel coordinates.
9780 Enhanced to return buffer position and actual row/column for
9781 events outside the text area using updated mode_line_string and
9782 marginal_area_string functions.
9783 Return left-fringe and right-fringe clicks as such, rather than
9784 clicks in text area.
9785 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
9786 pixel_to_glyph_coords, as we never use the results.
9787 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
9788 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
9789 Eliminate unused code in WHEEL_EVENT handling.
9790 (make_lispy_movement): Use make_lispy_position.
9791
9792 * window.c (coordinates_in_window): Remove redundant tests.
9793 Fix returned X pixel value for left-margin.
9794
9795 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
9796 mode_line_string and marginal_area_string parameters.
9797
a64387ee 97982003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 9799
d7107586
SM
9800 * w32.c (struct the_group, getgrgid): Add.
9801 * mac.c (struct my_group, getgrgid): Add.
aef109b7 9802
3dbf3426
LT
98032003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9804
9805 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
9806
cae8ddbb 98072003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 9808
d7107586
SM
9809 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
9810 include in call to file name handler. Optionally translate numeric
9811 UID and GID to strings. Update docstring.
9812 (directory_files_internal): Add parameter ID-FORMAT.
9813 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
9814 include in call to file name handler and call to
9815 directory_files_internal. Update Docstring.
9816 (Fdirectory_files): Add dummy parameter in call to
9817 directory_files_internal.
9818 * lisp.h (Qinteger): Add.
9819 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
9820 (Ffile_attributes): Add parameter.
9821 * data.c (Qinteger): Export.
cae8ddbb 9822
2550b848
LT
98232003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9824
3dbf3426 9825 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 9826
88380018
KS
98272003-11-19 Kim F. Storm <storm@cua.dk>
9828
9829 * xdisp.c (init_iterator): Initialize it->start to position
9830 before reseating (in case start position is invisible).
9831 (init_to_row_start): Set it->start to row-start.
9832 (redisplay_window): Accept optional_new_start if start position
9833 is invisible (in which case IT_CHARPOS overshoots PT).
9834 (display_line): Setup row->start from it->start (rather than
9835 it->current which is wrong if first char on line is invisible).
9836 When done, reseat it->start to it->current (= start of next row).
9837 (expose_area): Fix exposure of text area when first char (e.g. TAB)
9838 is only partially visible.
9839
9840 * dispextern.h (struct it): New member start.
9841
854c1a59
SM
98422003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9843
455316e2
SM
9844 * alloc.c (make_float, Fcons): Clear the markbit at init time.
9845 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
9846 of block_index outside of the macro call.
9847 (Fgarbage_collect): Remove null code.
9848
9849 * m/amdx86-64.h: Don't redefine XPNTR.
9850
854c1a59
SM
9851 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
9852 of VALMASK.
9853
9854 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
9855 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
9856 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
9857
9858 * lisp.h (VALMASK): Only define for non-union type.
9859 (MARKBIT): Remove.
9860 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
9861 (XTYPE): Define unconditionally.
9862 (XSETTYPE): Remove one more remnant.
9863 (EQ): Define differently for the union and non-union cases.
9864 (INTMASK): New bit mask.
9865 (struct Lisp_Marker): Move down to prepare for upcoming patch.
9866 (GC_EQ): Delegate to EQ.
9867
9868 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
9869
a0c6ef2d
JD
98702003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9871
9872 * xterm.c (x_window_to_scroll_bar): Move check of display to
9873 where window_id is compared.
9874
859492c4
KS
98752003-11-17 Kim F. Storm <storm@cua.dk>
9876
9877 * dispextern.h (struct it): New member first_vpos.
9878
9879 * xdisp.c (start_display): Set it->first_vpos.
9880 (try_window_id): Use first_vpos to start display in first _text_
9881 line if no reusable lines at start of window with header line.
9882
810f2256
JD
98832003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9884
7c402969 9885 * w32fns.c (XPutPixel):
854c1a59
SM
9886 * w32bdf.c (w32_init_bdf_font):
9887 * sunfns.c (sel_read):
9888 * process.c (Fmake_network_process):
9889 * frame.c (store_frame_param):
9890 * fontset.c (Fset_fontset_font):
9891 * emacs.c (shut_down_emacs):
a64387ee 9892 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 9893
a32e9bfd
JD
9894 * config.in: Regenerate.
9895
810f2256
JD
9896 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9897 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9898 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
9899 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
9900 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
9901
9902 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
9903
9904 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
9905 (XTmouse_position, handle_one_xevent): Pass Display* to
9906 x_window_to_scroll_bar.
9907 (x_window_to_scroll_bar): Take a Display* argument.
9908 Check that display for frame is equal to Display* argument.
854c1a59 9909 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
9910 x_display_info_for_display instead. Use Display in xev instead
9911 of GDK_DISPLAY.
9912 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 9913 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
9914 (x_connection_closed): Call xg_display_close for GTK.
9915 (x_term_init): Call xg_display_open for additional displays.
9916 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
9917 for GTK.
9918
9919 * xmenu.c (single_menu_item, mouse_position_for_popup)
9920 (x_activate_menubar): Formatting adjustments.
9921
9922 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
9923 adjustments.
9924
9925 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
9926 (xg_display_close, xg_create_default_cursor)
9927 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
9928 handling.
854c1a59
SM
9929 (xg_left_ptr_cursor): Remove.
9930 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
9931 cursor here.
9932 (xg_win_to_widget): Take Display* argument, call
9933 gdk_xid_table_lookup_for_display.
9934 (xg_create_frame_widgets, xg_get_file_name, create_menus)
9935 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
9936 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
9937 in FRAME_X_DISPLAY_INFO.
9938 (xg_get_scroll_id_for_window): Take Display* argument.
9939 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 9940 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 9941
78819ebb
KS
9942 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
9943 Display* argument.
9944 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 9945
0b03cc78
JD
99462003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9947
9948 * xterm.c (x_detect_focus_change): Do not change focus frame for
9949 Enter/LeaveNotify if the current focus frame has explicit focus.
9950
77e688fa
KS
99512003-11-14 Kim F. Storm <storm@cua.dk>
9952
9953 * dispnew.c (update_text_area): Fix redisplay error when hscroll
9954 is active and first glyph is only partially visible.
854c1a59 9955
dd429b03
KH
99562003-11-13 Kenichi Handa <handa@m17n.org>
9957
9958 * xdisp.c (select_frame_for_redisplay): New function.
9959 (redisplay_internal): Record also selected_frame for
9960 unwind_redisplay. Call select_frame_for_redisplay before
9961 redrawing each frame.
9962 (unwind_redisplay): Argument changed to a cons.
9963
6d9266f4
LT
99642003-11-12 Luc Teirlinck <teirllm@auburn.edu>
9965
9966 * fns.c (Fstring_to_multibyte): Doc fix.
9967
80060eb3
KH
99682003-11-11 Kenichi Handa <handa@m17n.org>
9969
9970 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
9971
74305183
JD
99722003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9973
9974 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
9975 program specified positions.
9976
cfda993e
JD
99772003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9978
9979 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
9980
df211069
KH
99812003-11-08 Kenichi Handa <handa@m17n.org>
9982
9983 * Makefile.in (lisp): Add kannada.el.
9984 (shortlisp): Likewise.
9985
4307d534
KH
99862003-11-07 Kenichi Handa <handa@m17n.org>
9987
854c1a59
SM
9988 * coding.c (coding_allocate_composition_data):
9989 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
9990 (coding_restore_composition): Detect invalid composition data.
9991 Give Fstring and Fvector a Lispy integer, not C int.
9992
854c1a59
SM
99932003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
9994
9995 * floatfns.c (Flogb): Don't use VALMASK.
9996
9997 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
9998 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
9999
10000 * lisp.h (XINT): Move the cast to clarify what is going on.
10001 (GCTYPEMASK, XSETTYPE): Remove.
10002 (XGCTYPE): Make it an alias of XTYPE.
10003
d04103a1
JD
100042003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10005
10006 * xterm.c (x_term_init): Fix formatting.
10007
da18b5ac
JD
100082003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10009
78819ebb
KS
10010 * gtkutil.h (xg_have_tear_offs): Declare.
10011 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
10012
10013 * gtkutil.c: Remove variable xg_did_tearoff.
10014 (xg_have_tear_offs): New function.
10015 (tearoff_remove): Just decrease xg_detached_menus.
10016 (tearoff_activate): Increase xg_detached_menus and call
10017 tearoff_remove when tearoff is removed.
854c1a59 10018 (xg_keep_popup): Remove function.
da18b5ac
JD
10019 (create_menus): Give add_tearoff_p as argument to recursive
10020 call to create_menus.
10021 (xg_create_widget): Use variables instead of multiple
10022 strcmp. Tell create_menus to create tear off only for
10023 menu bar menus.
10024 (xg_update_menubar): Change title for a detached menu also.
10025 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
10026 of deep_p.
10027 (xg_initialize): Initialize xg_detached_menus, remove
10028 initialization of xg_did_tearoff.
10029
10030 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
10031 xg_have_tear_offs returns non-zero.
10032 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
10033 call to xg_keep_popup.
10034
64d4923e
AC
100352003-11-01 Andrew Choi <akochoi@shaw.ca>
10036
10037 * macterm.c (XTread_socket): Handle menubar selection and grow
10038 window only for mouseDown events.
854c1a59 10039
6cc8bc07
JD
100402003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10041
10042 * xterm.c (x_term_init): For GTK part, increase x_initialized
10043 to check for more than one display. Use error instead of return 0.
10044
043131c4
AC
100452003-10-31 Andrew Choi <akochoi@shaw.ca>
10046
854c1a59 10047 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
10048 (copy_dysymtab): Call it.
10049
bdda99a1
LT
100502003-10-31 Luc Teirlinck <teirllm@auburn.edu>
10051
10052 * eval.c (Fdefvaralias): Doc fix.
10053
800f42ff 100542003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
10055
10056 * data.c (Fsetplist): Doc fix.
10057
ef35b389
LK
100582003-10-14 Lute Kamstra <lute@gnu.org>
10059
10060 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 10061
ef35b389 100622003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 10063
07107abc
KS
10064 * window.c (Fset_window_margins): Simplify arg checking.
10065
f7005886
RS
100662003-10-13 Richard M. Stallman <rms@gnu.org>
10067
10068 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
10069 (print_partial_compiled_pattern): Replace assert with a printout.
10070 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
10071
10072 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
10073
10074 * window.c (Fset_window_margins): Allow only integers as args.
10075 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
10076 Doc fixes.
10077
9c0c2af5
LK
100782003-10-13 Lute Kamstra <lute@gnu.org>
10079
10080 * window.c (Fset_window_fringes): Elaborate docstring.
10081
3f080e4e
AC
100822003-10-12 Andrew Choi <akochoi@shaw.ca>
10083
854c1a59 10084 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 10085
3f080e4e
AC
10086 * s/darwin.h (GC_MARK_STACK): Define.
10087
0aa513ed
JD
100882003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10089
10090 * window.c (shrink_windows): New function.
10091 (size_window): Call shrink_windows to calculate window sizes when
10092 shrinking frame with more than one window.
10093
6aa8858a
KS
100942003-10-12 Kim F. Storm <storm@cua.dk>
10095
10096 * xdisp.c (compute_fringe_widths): Doc fix.
10097
c2164d91
KH
100982003-10-08 Kenichi Handa <handa@m17n.org>
10099
854c1a59 10100 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 10101
f82ac129
KH
101022003-10-07 Kenichi Handa <handa@m17n.org>
10103
10104 * coding.c (Qcoding_system_define_form): New variable.
10105 (syms_of_coding): Intern and staticpro it.
10106 (Fcheck_coding_system): Try to autoload the definition of
10107 CODING-SYSTEM.
10108
9296c947
LT
101092003-10-05 Luc Teirlinck <teirllm@auburn.edu>
10110
10111 * fns.c (Frequire): Doc fix.
10112
c1f0671a
JD
101132003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10114
3d8c3826
JD
10115 * xfns.c (Fx_send_client_event): New function as a base for
10116 manipulating extended window manager hints.
6dc15d98 10117 (Fx_send_client_event): Remove unused variable s.
3d8c3826 10118
068ae0fd
JD
10119 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
10120 that function is removed.
10121
10122 * xterm.c (x_set_offset): Use move_offset_left/top instead of
10123 x/y_pixels_outer_diff.
10124 (x_check_expected_move): Calculate move_offset_left/top.
10125
10126 * xterm.h (struct x_output): New members: move_offset_top/left.
10127
854c1a59 10128 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
10129 call x_set_offset directly.
10130
10131 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
10132
96f09305
JD
10133 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
10134
10135 * xterm.c (x_delete_display): Free font names and font_encoder
10136 in dpyinfo->font_table.
10137
854c1a59
SM
10138 * xfns.c (Fx_close_connection): Only call XFreeFont here.
10139 Move xfree of font names to x_delete_display.
96f09305 10140
c1f0671a
JD
10141 * xterm.h (struct x_display_info): New member, wm_type.
10142 (struct x_output): New members, expected_top/left and
10143 check_expected_move.
10144
10145 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
10146 is received.
854c1a59
SM
10147 (handle_one_xevent): Rename x_check_expected_move from
10148 x_check_fullscreen_move.
c1f0671a
JD
10149 (x_set_offset): Only add WM decoration sizes to modified_top/left
10150 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 10151 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
10152 Removed fullscreen specific code. Use check_expected_move,
10153 expected_left/top instead. Also, set wm_type.
10154 (x_term_init): Initialize wm_type to unknown.
10155
10156 * frame.c (x_fullscreen_move): Remove addition of WM decoration
10157 sizes to move_x/y.
10158
be2fdba9
KH
101592003-10-03 Kenichi Handa <handa@m17n.org>
10160
10161 * macterm.c (x_load_font): Clear all members of FONTP before start
10162 filling them.
10163
101642003-10-02 Kenichi Handa <handa@m17n.org>
10165
10166 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
10167 before calling find_ccl_program_func. Call find_ccl_program_func
10168 only when fontp->font_encoder is not NULL.
10169
10170 * xterm.c (x_load_font): Clear all members of FONTP before start
10171 filling them.
10172
26a6e439
JPW
101732003-10-03 John Paul Wallington <jpw@gnu.org>
10174
10175 * keymap.c (map_keymap): Don't abort when binding is a vector.
10176
0d4c2dc2
JR
101772003-10-02 Jason Rumney <jasonr@gnu.org>
10178
854c1a59
SM
10179 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
10180 Sync dependencies with Makefile.in.
a63cf46f
JR
10181 (alloca.o): Remove.
10182
0d4c2dc2
JR
10183 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
10184 filling them.
10185
10186 * w32bdf.c (w32_load_bdf_font): Likewise.
10187
ab8f7d5c
RS
101882003-09-30 Richard M. Stallman <rms@gnu.org>
10189
10190 * term.c (set_tty_color_mode): Calculate current_mode_spec
10191 regardless of value of VAL.
10192
854c1a59 10193 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
10194 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
10195 Handle over_used when splitting UNDER.
10196
a64387ee 101972003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
10198
10199 * regex.c (regex_compile): Free the stack when returning from function.
10200
3413f972
KH
102012003-09-28 Kenichi Handa <handa@m17n.org>
10202
10203 * fontset.c (Finternal_char_font): Change return value to
10204 cons (FONT-NAME . GLYPH-CODE).
10205
a6eeaa81 102062003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
10207
10208 * term.c (tty_setup_colors): Treat any negative argument as -1.
10209
f98ddc99
KH
102102003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
10211
10212 * process.c (send_process): Delete unused temp_buf.
10213
66c8f1a8
DL
102142003-09-26 Dave Love <fx@gnu.org>
10215
10216 * xterm.c (x_bitmap_mask): Declare.
10217
ca716c26
DL
102182003-09-25 Dave Love <fx@gnu.org>
10219
10220 * Makefile.in (fns.o): Depend on md5.h.
10221
fbe57420
KS
102222003-09-25 Kim F. Storm <storm@cua.dk>
10223
10224 * window.c (set_window_buffer): Fix redisplay problems when
10225 switching between buffers with different display margin widths.
10226
ef6ae4ff
KS
102272003-09-23 Kim F. Storm <storm@cua.dk>
10228
10229 * process.c (set_socket_option): Fix :bindtodevice option.
10230 (Fset_network_process_option): Update process contact list when
10231 setting option succeeds.
10232 (Fmake_network_process): Doc fix.
10233
68e03c1c
DL
102342003-09-23 Dave Love <fx@gnu.org>
10235
7146d1c1 10236 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 10237
a6eeaa81 102382003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
10239
10240 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
10241 color mode is an integer number (it could be -1).
10242
8fe7d8c8
RS
102432003-09-22 Richard M. Stallman <rms@gnu.org>
10244
10245 * intervals.c (graft_intervals_into_buffer): Correct the main loop
10246 in the case where OVER is longer than UNDER.
10247
2f71b5ea
MY
102482003-09-22 Masatake YAMATO <jet@gyve.org>
10249
7146d1c1 10250 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 10251 `vertical_type'.
7146d1c1 10252
0c4da023
KS
102532003-09-21 Kim F. Storm <storm@cua.dk>
10254
10255 * frame.c (Vdefault_frame_scroll_bars): New variable.
10256 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
10257 (syms_of_frame): DEFVAR_LISP it, and initialize according to
10258 window-system default scroll bar position.
10259
b648413b
KS
10260 * window.c (Fwindow_scroll_bars): Doc fix.
10261
8f5b9e34
JD
102622003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10263
854c1a59 10264 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 10265
b0f23edf
RS
102662003-09-19 Richard M. Stallman <rms@gnu.org>
10267
10268 * atimer.h: Don't include lisp.h.
10269 (P_): Define it here (as well as elsewhere).
10270
10271 * print.c (Fprin1_to_string): Move the PRINTPREPARE
10272 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
10273
10274 * data.c (Fvariable_binding_locus): New function.
10275 (syms_of_data): defsubr it.
10276 (Flocal_variable_p): Delete duplicate call to indirect_variable.
10277
e1283999
DL
102782003-09-18 Dave Love <fx@gnu.org>
10279
ad5f3636
DL
10280 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
10281
e1283999
DL
10282 * process.c (Fnetwork_interface_info): Fix type error.
10283 (Fnetwork_interface_list): Doc fix.
10284 (read_process_output, read_process_output): Delete unused var.
10285
b8c7fd71
KS
102862003-09-17 Kim F. Storm <storm@cua.dk>
10287
10288 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
10289 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
10290 (Fnetwork_interface_info): Check that ifreq struct has required
10291 fields before accessing them; this requires that those fields are
10292 defined as macros, which may be too restrictive on some platforms,
10293 but it is better than failing on other platforms.
10294 (syms_of_process): Only defsubr above fns when included.
10295
11e0a411
DL
102962003-09-17 Dave Love <fx@gnu.org>
10297
10298 * unexalpha.c: Don't include varargs.h.
10299
e9c50801
KS
103002003-09-17 Kim F. Storm <storm@cua.dk>
10301
10302 * process.c (Fset_process_sentinel): Add sentinel to childp plist
10303 for network process.
10304 (socket_options): Add `:' prefix to option names. Add optbit field.
10305 (set_socket_option): Remove no_error arg and special handling of s < 0.
10306 Return 1<<optbit for known option, 0 for unknown.
10307 Do not interpret 0 as false for boolean option (only nil).
10308 Pass failed option and value to report_file_error.
7146d1c1 10309 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
10310 (Fset_network_process_option): New function to set just one option.
10311 (Fmake_network_process): Allow :coding arg to be a cons.
10312 Allow :server arg to be an integer specifying backlog size.
10313 Remove :options arg, and allow options to be specified directly
10314 as :KEY, VALUE pairs. Parse these options before binding socket.
10315 As before, :reuseaddr t is default for a server process, but this
10316 can now be disabled by specifying :reuseaddr nil.
10317 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
10318 (init_process): Availability of network options is now checked with
10319 simpler syntax (featurep 'make-network-process :OPTION); use loop to
10320 setup features.
10321 (syms_of_process): Fix defsubr's for the replaced functions.
10322
a0fc3644
DL
103232003-09-16 Dave Love <fx@gnu.org>
10324
10325 * Makefile.in: Depend on coding.h.
10326
6df2a645
KS
103272003-09-14 Kim F. Storm <storm@cua.dk>
10328
10329 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
10330 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
10331 (syms_of_process): Defsubr them.
10332
10333 * config.in: Regenerate.
7146d1c1
SM
10334
103352003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10336
10337 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
10338 * m/news-r6.h (XUNMARK): Remove.
10339 * m/mips.h (XUNMARK): Remove.
10340 * m/mips-siemens.h (XUNMARK): Remove.
10341 * m/iris4d.h (XUNMARK): Remove.
10342 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
10343
0930c1a1
SM
103442003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10345
31003b9e
SM
10346 * lisp.h (VALBITS): Don't remove 1 for the markbit.
10347 (union Lisp_Object): Use unsigned int for types. Remove markbit.
10348 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
10349 (XTYPE): Use unsigned right-shift.
10350 (XMARKBIT, XMARK, XUNMARK): Remove.
10351
0930c1a1
SM
10352 * alloc.c (init_intervals, init_symbol, init_marker):
10353 Don't preallocate anything.
10354 (Fgarbage_collect, mark_object): Ignore the markbit.
10355
10356 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
10357
19bb0fcd 103582003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
10359
10360 * xdisp.c (pint2hrstr): New function.
10361 (decode_mode_spec): Add `%i' and `%I' specs.
10362 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
10363 for `mode-line-format'.
10364
03bb6a06
AS
103652003-09-07 Andreas Schwab <schwab@suse.de>
10366
10367 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
10368 avoid warning.
10369
a6eeaa81 103702003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 10371
0930c1a1 10372 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 10373
ed159bbf
KS
103742003-09-03 Kim F. Storm <storm@cua.dk>
10375
10376 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
10377 change (superseded by 2002-08-30 change); the default blink-off
10378 cursor is now again "no cursor".
10379
fe64a394
JR
103802003-09-01 Jason Rumney <jasonr@gnu.org>
10381
10382 * makefile.w32-in (alloca.o): Remove.
10383 (coding.o): Depend on intervals.h
10384 (emacs.o, bytecode.o): Depend on window.h
10385
c0175e24
DL
103862003-09-01 Dave Love <fx@gnu.org>
10387
10388 * Makefile.in (alloca.o): Remove commands.
10389 (coding.o): Depend on intervals.h composite.h window.h.
10390 (emacs.o): Depend on window.h keyboard.h keymap.h.
10391 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
10392 (bytecode.o): Depend on window.h.
10393
a24d4cb2
JR
103942003-08-31 Jason Rumney <jasonr@gnu.org>
10395
4bc2315e
JR
10396 * w32term.c (w32_per_char_metric): Allow cached metrics to be
10397 returned even when font_type is unknown.
10398
a24d4cb2
JR
10399 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
10400
9d35adc7
JD
104012003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10402
10403 * xterm.c (x_term_init): Initialize new fields in x_display_info.
10404
10405 * xterm.h (struct x_display_info): Add red/green/blue_bits and
10406 *_offset.
10407
10408 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
10409 calculate pixel value.
10410
6f68b035
GM
104112003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
10412
0930c1a1
SM
10413 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
10414 Don't tell redisplay display is accurate when it's actually been
10415 paused for pending input.
6f68b035 10416
4828b4d7
RS
104172003-08-29 Richard M. Stallman <rms@gnu.org>
10418
10419 * dispnew.c (adjust_glyph_matrix): Call window_box
10420 whenever W is nonzero.
10421
10422 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10423 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 10424 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
10425 Use indirect_variable to trace thru variable aliases.
10426
10427 * config.in: Updated.
10428
10429 * callint.c (Fcall_interactively): Save and restore
10430 Vthis_command, Vthis_original_command, real_this_command,
10431 and current_kboard->Vlast_command.
10432
10433 * abbrev.c (Fexpand_abbrev): Insert before deleting.
10434
e019878d
GM
104352003-08-29 Gerd Moellmann <gerd@gnu.org>
10436
10437 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
10438
85478bc6
KH
104392003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
10440
0930c1a1 10441 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
10442 (decode_coding_sjis_big5): Likewise.
10443
07ce82d3
JR
104442003-08-27 Jason Rumney <jasonr@gnu.org>
10445
d3703de3
JR
10446 * w32.c (sys_pipe): Protect against file descriptor overflow.
10447
ee4a01d1
JR
10448 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
10449
07ce82d3
JR
10450 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
10451
a64387ee 104522003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
10453
10454 * xfns.c (Vgtk_version_string): New variable.
10455 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
10456
a6eeaa81 104572003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 10458
0930c1a1 10459 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 10460
5459e42a
EZ
10461 * Makefile.in (msdos.o): Depend on intervals.h.
10462
0930c1a1 10463 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 10464
231d6cfb
JD
104652003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10466
10467 * xterm.h (struct x_display_info): New fields: client_leader_window
10468 and Xatom_wm_client_leader.
10469
10470 * xterm.c (x_initialize): Move call to x_session_initialize to ...
10471 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
10472
10473 * xsmfns.c (create_client_leader_window): New function.
10474 (x_session_initialize): Call create_client_leader_window, take
10475 dpyinfo as argument.
10476
10477 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
10478
10479 * Makefile.in (xsmfns.o): Add more depenedencies.
10480
afa88464
DL
104812003-08-21 Dave Love <fx@gnu.org>
10482
10483 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
10484
f730033e
KH
104852003-08-21 Kenichi Handa <handa@m17n.org>
10486
10487 * term.c (term_init): Fix previous change; don't rely on the
10488 length of `buffer' if TERMINFO is defined.
10489
6dca786c
DL
104902003-08-20 Dave Love <fx@gnu.org>
10491
10492 * atimer.h: Include lisp.h.
10493
10494 * lisp.h (EMACS_LISP_H): New.
10495 (popup_activated_flag): Don't declare.
10496
10497 * alloca.c: Some merging with gnulib. Change logic and doc
10498 concerning (x)malloc/(x)free -- no longer Emacs-specific.
10499 [DO_BLOCK_INPUT]: Don't include lisp.h.
10500 (xmalloc, xfree): Declare.
10501 (malloc): Don't declare.
10502
0930c1a1 10503 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
10504 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
10505 atimer.h, blockinput.h.
10506
10507 * alloc.c (lisp_align_malloc): Change type of `aligned'.
10508
78819ebb 10509 * alloca.s: Remove.
6dca786c 10510
3a06a6d9
RS
105112003-08-19 Gerd Moellmann <gerd@gnu.org>
10512
10513 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
10514 use -lncurses.
10515
10516 * term.c (term_init): Use a buffer of size 4096 for tgetent since
10517 FreeBSD returns something longer than 2044. Abort if the end of
10518 the buffer is overwritten.
10519
27eeee55
MB
105202003-08-19 Miles Bader <miles@gnu.org>
10521
10522 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
10523
2f297815
GM
105242003-08-19 Gerd Moellmann <gerd@gnu.org>
10525
f4446bbf
GM
10526 * alloc.c (lisp_align_malloc): Check for memory full when
10527 allocating ablocks, which also avoids freeing a pointer into an
10528 ablocks structure.
10529
10530 * puresize.h (BASE_PURESIZE): Increase to 1100000.
10531
0930c1a1 10532 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 10533
0e7d7aae
RS
105342003-08-16 Richard M. Stallman <rms@gnu.org>
10535
10536 * editfns.c (Fencode_time): Doc fix.
10537
105382003-08-16 David Ponce <david@dponce.com>
10539
10540 * fileio.c (Fwrite_region): Fix conditional expression to issue
10541 the right message.
10542
b6189c3b 105432003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
10544
10545 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 10546 Set default value to 1.
0e7d7aae 10547
5d551295
KH
105482003-08-15 Kenichi Handa <handa@m17n.org>
10549
10550 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
10551 what autoscaled.
10552 (best_matching_font): Once we find a better scalable font, set
10553 non_scalable_has_exact_height_p to 1.
10554 (try_font_list): Call try_alternative_families to try any family
10555 with the given registry.
10556
1661e56b
AS
105572003-08-09 Andreas Schwab <schwab@suse.de>
10558
f29181dc
AS
10559 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
10560
1661e56b
AS
10561 * print.c (print_string): Fix printing of multibyte string with
10562 nontrivial printcharfun.
10563
465aa50a
JD
105642003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10565
10566 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
10567
10568 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
10569
e430e5ba
KH
105702003-07-31 Kenichi Handa <handa@m17n.org>
10571
10572 * process.c (read_process_output): Return the actually read bytes
10573 instead of the result of decoding.
10574
97e7188e
KH
105752003-07-31 Kenichi Handa <handa@m17n.org>
10576
10577 * xterm.h (struct x_bitmap_record): New member have_mask.
10578
10579 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
10580 to 0.
10581 (x_create_bitmap_from_file): Likewise.
10582 (x_destroy_bitmap): Check have_mask member before freeing a mask.
10583 (x_destroy_all_bitmaps): Likewise.
10584 (x_create_bitmap_mask): Set have_mask member to 1.
10585
b53094d6
RS
105862003-07-30 Richard M. Stallman <rms@gnu.org>
10587
10588 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
10589
631f2082
JD
105902003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10591
10592 * gtkutil.c (xg_mark_data): Update calls to mark_object.
10593
c855f2ca
RS
105942003-07-29 Richard M. Stallman <rms@gnu.org>
10595
10596 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
10597 Conditionalize XIM code on HAVE_XIM.
10598
10599 * fns.c (Fclear_string): New function.
10600 (syms_of_fns): defsubr it.
10601
b6189c3b 106022003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 10603
0930c1a1 10604 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 10605
29ea8ae9
SM
106062003-07-22 Stefan Monnier <monnier@cs.yale.edu>
10607
10608 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
10609
10610 * buffer.c (delete_all_overlays): New function.
10611 * buffer.h (delete_all_overlays): Declare.
10612 * coding.c (run_pre_post_conversion_on_str):
10613 * print.c (temp_output_buffer_setup):
10614 * fileio.c (Finsert_file_contents):
10615 * minibuf.c (get_minibuffer): Use it.
10616
1dd7ccf2
AC
106172003-07-22 Andrew Choi <akochoi@shaw.ca>
10618
10619 * unexmacosx.c (unexec_regions_sort_compare):
10620 (unexec_regions_merge): New functions. Sort and merge unexec
10621 regions before dumping them.
10622
f57bd967
DL
106232003-07-22 Dave Love <fx@gnu.org>
10624
10625 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
10626
7cdee936
SM
106272003-07-21 Stefan Monnier <monnier@cs.yale.edu>
10628
10629 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
10630 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
10631 MARKBIT as the gcmarkbit for strings.
10632
e50886d3
RS
106332003-07-21 Richard M. Stallman <rms@gnu.org>
10634
10635 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
10636
29ea8ae9 10637 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
10638 (syms_of_fns): Corresponding change.
10639
10640 * alloc.c (syms_of_alloc): Doc fixes.
10641
106422003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
10643
10644 * s/netbsd.h: Use -Wl syntax.
10645
fdc39b59
RS
106462003-07-17 Richard M. Stallman <rms@gnu.org>
10647
10648 * xterm.c (xim_initialize): Redo 6/24 change.
10649
9c53385f
SM
106502003-07-15 Stefan Monnier <monnier@cs.yale.edu>
10651
10652 * buffer.c (copy_overlays): Use EMACS_INT for positions.
10653 (Fswitch_to_buffer): Don't signal an error when switching to the same
10654 buffer in a dedicated window.
10655
10656 * alloc.c: Use bitmaps for cons, as was done for floats.
10657 (init_float, init_cons): Let the normal code allocate the first block.
10658 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
10659 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
10660 New macros.
10661 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
10662 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
10663 (live_cons_p): Check the pointer is not past the `conses' array.
10664 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
10665 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
10666 (survives_gc_p): Use CONS_MARKED_P and simplify.
10667 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
10668
dde13196
PE
106692003-07-13 Paul Eggert <eggert@twinsun.com>
10670
10671 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
10672 puts it into BSS instead, at least on Solaris 8 and 9.
10673 This is a valid optimization, and it may occur on other platforms,
10674 so Emacs should not assume that initializing a static variable to
10675 zero puts it into data.
10676 * alloc.c (pure, staticvec):
10677 Initialize these arrays to nonzero, so that they're not
10678 put into BSS by that optimization.
10679
a801bc34
SM
106802003-07-13 Stefan Monnier <monnier@cs.yale.edu>
10681
10682 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
10683 (lisp_align_malloc): Use posix_memalign is available.
10684 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
10685 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
10686 for consistency. Update users.
10687
0c8b2afa
RS
106882003-07-13 Richard M. Stallman <rms@gnu.org>
10689
10690 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
10691
668c2ab0
JB
106922003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
10693
10694 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
10695 and use the Gtk+ function gtk_window_icon_from_file if available.
10696
10697 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
10698 handle mask of bitmaps.
10699 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
10700 mask property.
10701 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
10702
10703 * xterm.h (xg_set_icon): New function.
10704
800bebe3
RS
107052003-07-12 Paul Eggert <eggert@twinsun.com>
10706
10707 * unexelf.c (unexec): Consider a section to precede the .bss
10708 section if its addresses overlap that of .bss.
10709
69e38995
RS
107102003-07-12 Richard M. Stallman <rms@gnu.org>
10711
10712 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
10713
10714 * config.in (HAVE_CRTIN): Add #undef.
10715 (INLINE): Really inline only if OPTIMIZE is defined.
10716
10717 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
10718 END_FILES_1.
10719 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 10720 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
10721
10722 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
10723 (TERMINFO): Define.
10724 (LIBS_TERMCAP): Define.
10725 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
10726
10727 * xfns.c: Include libpng/png.h instead of png.h.
10728
f1d0c238
AS
107292003-07-11 Andreas Schwab <schwab@suse.de>
10730
10731 * buffer.c (modify_overlay): Update prototype.
10732 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
10733 Likewise.
10734
5f6bf5fe
SM
107352003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10736
10737 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
10738 (struct interval): Move to intervals.h.
10739 (struct Lisp_Marker): Use EMACS_INT for position info.
10740 (forward_point): Remove prototype of defunct function.
10741 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
10742 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
10743 (syms_of_textprop, set_text_properties): Remove prototypes that are
10744 already in intervals.h.
10745
10746 * intervals.h (struct interval): Move from lisp.h.
10747 Use EMACS_INT for position and size info.
10748
10749 * coding.c: Include intervals.h for Fset_text_properties.
10750
10751 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10752 position and length information.
10753
2765b457
SM
107542003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10755
10756 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10757 position and length information.
10758
2410d73a
SM
107592003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10760
10761 Change overlays_after and overlays_before so the overlays themselves
10762 are linked into lists, rather than using cons cells. After all each
10763 Lisp_Misc already occupies 5 words, so we can add a `next' field to
10764 Lisp_Overlay for free and save up one cons cell per overlay (not
10765 to mention one indirection when traversing the list of overlay).
10766
10767 * lisp.h (struct Lisp_Overlay): New field `next'.
10768
10769 * buffer.h (struct buffer): Change overlays_before and overlays_after
10770 from Lisp lists of overlays to pointers to overlays.
10771
10772 * buffer.c (overlay_strings, recenter_overlay_lists):
10773 Fix typo in eassert in last commit.
10774 (unchain_overlay): New function.
10775 (add_overlay_mod_hooklist): Use AREF.
10776 (copy_overlays, reset_buffer, overlays_at, overlays_in)
10777 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
10778 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
10779 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
10780 (report_overlay_modification, evaporate_overlays, init_buffer_once):
10781 Adjust to new type of overlays_(before|after).
10782
10783 * alloc.c (mark_object): Mark the new `next' field of overlays.
10784 (mark_buffer): Manually mark the overlays_(after|before) fields.
10785
10786 * coding.c (run_pre_post_conversion_on_str):
10787 * editfns.c (overlays_around):
10788 * xdisp.c (load_overlay_strings):
10789 * fileio.c (Finsert_file_contents):
10790 * indent.c (current_column):
10791 * insdel.c (signal_before_change, signal_after_change):
10792 * intervals.c (set_point_both):
10793 * print.c (temp_output_buffer_setup): Use new type for
10794 overlays_(before|after).
10795
04812929
SM
107962003-07-08 Stefan Monnier <monnier@cs.yale.edu>
10797
10798 * buffer.c (report_overlay_modification): Don't run hooks while
10799 traversing the list of overlays.
10800
10801 * buffer.h (struct buffer): Use an int for overlay_center.
10802 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10803 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10804
10805 * buffer.c (reset_buffer, recenter_overlay_lists)
10806 (adjust_overlays_for_insert, adjust_overlays_for_delete)
10807 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
10808 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
10809 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10810 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10811
10812 * xdisp.c (fast_find_position): Remove unused var.
10813
10814 * cmds.c (Qexpand_abbrev): New sym.
10815 (syms_of_cmds): Initialize it.
10816 (internal_self_insert): Use it to call expand-abbrev.
10817
2e7ecf15
KS
108182003-07-09 Kim F. Storm <storm@cua.dk>
10819
f9711de4 10820 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 10821 was configured with --without-xim.
42f81f64 10822 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 10823
c6de56a0
RS
108242003-07-07 Richard M. Stallman <rms@gnu.org>
10825
10826 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
10827
10828 * alloc.c (Fgarbage_collect): Doc fix.
10829
b6189c3b 108302003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
10831
10832 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
10833
bfe1a3f7
SM
108342003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10835
04812929
SM
10836 * minibuf.c (read_minibuf): UNGCPRO before returning.
10837 (Ftry_completion, Fall_completions): Doc fix.
10838
bfe1a3f7
SM
10839 * alloc.c (live_float_p): Check that p is not past the `floats' array,
10840 now that `floats' is not the last element of the struct any more.
10841
ee79d1aa
JR
108422003-07-06 Jason Rumney <jasonr@gnu.org>
10843
10844 * w32term.h (ClipboardSequence_Proc): New type.
10845
10846 * w32fns.c (clipboard_sequence_fn): New variable.
10847 (globals_of_w32fns): Initialize it.
10848
10849 * w32select.c (last_clipboard_sequence_number): New variable.
10850 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
10851 number if possible.
10852
49723c04
SM
108532003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10854
4698665f
SM
10855 * m/amdx86-64.h (MARKBIT):
10856 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
10857 MARKBIT and ARRAY_MARK_FLAG any more.
10858
10859 * m/hp800.h (XSETMARKBIT):
10860 * m/sr2k.h (XSETMARKBIT):
10861 * lisp.h (XSETMARKBIT): Remove unused macro.
10862
49723c04
SM
10863 * lisp.h (mark_object): Change prototype.
10864
10865 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
10866 (last_marked): Change accordingly.
10867 (mark_interval, mark_maybe_object, mark_maybe_pointer)
10868 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
10869 (mark_buffer): Update calls to mark_object.
10870
10871 * bytecode.c (mark_byte_stack):
10872 * fns.c (sweep_weak_table):
10873 * keyboard.c (mark_kboards): Update calls to mark_object.
10874
1d660eca
JR
108752003-07-06 Jason Rumney <jasonr@gnu.org>
10876
10877 * alloc.c (struct ablock): Only include padding when there is some.
10878
618b5ae4
SM
108792003-07-04 Stefan Monnier <monnier@cs.yale.edu>
10880
10881 * alloc.c (ALIGN): Add casts to simplify usage.
10882 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
10883 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
10884 (struct ablock, struct ablocks): New types.
10885 (free_ablock): New global var.
10886 (lisp_align_malloc, lisp_align_free): New functions.
10887 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
10888 (struct float_block): Reorder and add gcmarkbits.
10889 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
10890 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
10891 (init_float, make_float): Use lisp_align_malloc.
10892 (free_float, live_float_p): Don't use `type' any more.
10893 (make_float): Use FLOAT_UNMARK to access to mark bit.
10894 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
10895 Use FLOAT_MARKED_P to access the mark bit.
10896 (pure_alloc): Simplify use of ALIGN.
10897 (mark_object): Use FLOAT_MARK to access the mark bit.
10898 (gc_sweep): Use new macros to access the float's mark bit.
10899 (init_alloc_once): Init free_ablock.
10900
10901 * lisp.h (struct Lisp_Float): Remove unused field `type'.
10902
3ef06d12
SM
109032003-06-27 Stefan Monnier <monnier@cs.yale.edu>
10904
10905 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
10906 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
10907 (allocate_buffer): Move.
10908 (string_bytes): Don't mask markbit of `size_byte'.
10909 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
10910 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
10911 Use the `size' field of buffers (rather than the `name' field) for
10912 the mark bit, as is done for all other vectorlike objects.
10913 Use the new macros to access the mark bit of vectorlike objects.
10914
e81043aa
RS
109152003-06-26 Richard M. Stallman <rms@gnu.org>
10916
10917 * puresize.h (BASE_PURESIZE): Increment base size.
10918
10919 * xdisp.c (fast_find_position): Enable Gerd's new definition.
10920
10921 * xterm.c (xim_initialize): Undo previous change.
10922
2d0834cc
SM
109232003-06-26 Stefan Monnier <monnier@cs.yale.edu>
10924
10925 * alloc.c (survives_gc_p): Simplify.
10926
10927 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
10928
10929 * window.c (Fset_window_dedicated_p): Simplify.
10930 (display_buffer_1): Don't raise the win from which minibuf was entered.
10931 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
10932 (Fminibuffer_selected_window): Simplify.
10933
10934 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
10935
10936 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
10937 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
10938
10939 * insdel.c (check_markers, adjust_markers_for_delete)
10940 (adjust_markers_for_insert, adjust_markers_for_replace)
10941 (prepare_to_modify_buffer, RESTORE_VALUE):
10942 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
10943 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
10944 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
10945 * alloc.c (Fmake_marker, free_marker, gc_sweep):
10946 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
10947 * editfns.c (save_excursion_restore, transpose_markers):
10948 * window.c (delete_window):
10949 * xdisp.c (message_dolog): Update for new types.
10950
d54ae3d8
JD
109512003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10952
a5f696ac
JD
10953 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
10954 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 10955 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
10956
10957 * frame.c (make_frame): Initialize default_face_done_p.
10958
10959 * frame.h (struct frame): Add default_face_done_p.
10960
d54ae3d8
JD
10961 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
10962 will be defined.
10963
2336fe58
SM
109642003-06-25 Stefan Monnier <monnier@cs.yale.edu>
10965
10966 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
10967 Initialize the new field `gcmarkbit'.
10968 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
10969 (mark_interval_tree): Don't mark the tree separately from the nodes.
10970 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
10971 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
10972 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
10973
10974 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
10975 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
10976 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
10977 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
10978 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
10979
bcea31c2
DL
109802003-06-24 Dave Love <fx@gnu.org>
10981
10982 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
10983
10984 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
10985 from gnulib.
10986
2601f59e
RS
109872003-06-21 Richard M. Stallman <rms@gnu.org>
10988
10989 * fileio.c (Fwrite_region): Alternate messages
10990 for append and partial write.
10991
10992 * keyboard.c (read_key_sequence): When converting upcase fn key to
10993 downcase, update fkey and keytran so `backspace' gets translated.
10994
10995 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
10996
10997 * process.c (wait_reading_process_input): Don't signal SIGIO
10998 in batch mode.
10999
b5d2c621
KH
110002003-06-17 Kenichi Handa <handa@m17n.org>
11001
11002 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
11003 composite.h.
11004
11005 * xselect.c: Don't include charset.h, coding.h, composite.h.
11006 (Qforeign_selection): New variable.
11007 (syms_of_xselect): Intern and static it.
11008 (selection_data_to_lisp_data): Return a unibyte string made from
11009 data with `foreign-selection' text property.
11010
6793bc63
SM
110112003-06-15 Stefan Monnier <monnier@cs.yale.edu>
11012
11013 * termhooks.h (EVENT_INIT): New macro.
11014
11015 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
11016
11017 * alloc.c (mark_kboards): Move to keyboard.c.
11018
11019 * keyboard.c (record_asynch_buffer_change, read_avail_input):
11020 * xterm.c (x_dispatch_event):
11021 * xmenu.c (find_and_call_menu_selection):
11022 * xdisp.c (handle_tool_bar_click):
11023 * w32menu.c (menubar_selection_callback):
11024 * sysdep.c (kbd_input_ast, read_input_waiting):
11025 * msdos.c (dos_rawgetc):
11026 * macterm.c (mac_check_for_quit_char):
11027 * macmenu.c (menubar_selection_callback):
11028 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
11029 data to kbd_buffer_store_event.
11030
b3ea810c
KS
110312003-06-15 Kim F. Storm <storm@cua.dk>
11032
11033 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 11034 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 11035
b8f75eda
KG
110362003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11037
11038 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
11039
ba92ce48
KH
110402003-06-12 Kenichi Handa <handa@m17n.org>
11041
11042 * fileio.c (Fwrite_region): Save and restore restriction.
11043
b80263be
DL
110442003-06-12 Dave Love <fx@gnu.org>
11045
11046 * alloca.c (alloca): Declare arg as size_t.
11047
6793bc63
SM
11048 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
11049 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 11050
b23c0a83
DL
110512003-06-11 Dave Love <fx@gnu.org>
11052
11053 * search.c (shrink_regexp_cache): Use xrealloc.
11054 (syms_of_search): Use xmalloc.
11055
700e47c2
KS
110562003-06-10 Kim F. Storm <storm@cua.dk>
11057
11058 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
11059 Adjust phys_cursor.x to be relative to window box, rather than
11060 text area before checking -- to ensure cursor is redrawn when
11061 exposing window.
11062 Note: This also fixes a similar (older) bug if display margins
11063 are present.
11064
f11aa0b2
KH
110652003-06-06 Kenichi Handa <handa@m17n.org>
11066
11067 * coding.c (encoding_buffer_size): If coding->type is
11068 coding_type_ccl, double magnification on CRLF encoding.
11069
3d143690
JR
110702003-06-06 Jason Rumney <jasonr@gnu.org>
11071
11072 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
11073 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
11074
11075 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
11076 Mac too.
11077
f16205ca
DL
110782003-06-05 Dave Love <fx@gnu.org>
11079
b23c0a83
DL
11080 * strftime.c: Merge changes from gnulib.
11081
f16205ca
DL
11082 * mktime.c (__mktime_internal): Merge changes from gnulib
11083 involving year 69 and dst2.
11084
11085 Changes to merge with gnulib version and be consistent with the
11086 autoconf test:
11087
6793bc63
SM
11088 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
11089 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
11090 [HAVE_LOCALE_H]: Include locale.h.
11091 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
11092
9b87a0bc
KS
110932003-06-05 Kim F. Storm <storm@cua.dk>
11094
11095 * window.c (coordinates_in_window): Convert X and Y to window
11096 relative coordinates inside mode-line and header-line parts.
11097 Convert X and Y to margin area relative coordinates inside left
11098 and right display margin parts.
11099
5a8a15ec
JR
111002003-06-05 Jason Rumney <jasonr@gnu.org>
11101
11102 * w32fns.c (add_system_logical_colors_to_map): New function.
11103 (Fx_open_connection): Use it.
11104
01ed8ff1
SM
111052003-06-04 Stefan Monnier <monnier@cs.yale.edu>
11106
11107 * process.c (allocate_pty): Revert part of the previous patch.
11108 (Faccept_process_output): Simplify.
11109
b427b65d
JR
111102003-06-04 Jason Rumney <jasonr@gnu.org>
11111
11112 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
11113
11114 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
11115 (lispy_mouse_wheel_names): Remove.
11116 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
11117 Always define drag_and_drop_syms.
11118
11119 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
11120 WHEEL_EVENT events.
11121
914a8c47
SM
111222003-06-03 Stefan Monnier <monnier@cs.yale.edu>
11123
01ed8ff1
SM
11124 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
11125
914a8c47
SM
11126 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
11127
adcb132c
JD
111282003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11129
11130 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
11131 menu item label.
11132
be781fa7
RS
111332003-06-03 Richard M. Stallman <rms@gnu.org>
11134
11135 * window.c (Fwindow_edges): Doc fix.
11136 (Fwindow_pixel_edges, Fwindow_inside_edges)
11137 (Fwindow_inside_pixel_edges): New functions.
11138 (syms_of_window): defsubr them.
11139
11140 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
11141 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
11142
914a8c47
SM
111432003-06-02 Stefan Monnier <monnier@cs.yale.edu>
11144
11145 * dispnew.c (Fsit_for): Don't lie about the number of args.
11146
5b07197a
DL
111472003-06-02 Dave Love <fx@gnu.org>
11148
11149 * callproc.c: Use HAVE_FCNTL_H, not USG5.
11150 (syms_of_callproc) <process-environment>: Doc fix.
11151
11152 * doc.c: Use HAVE_FCNTL_H, not USG5.
11153
11154 * xfaces.c (font_rescale_ratio): Fix for K&R.
11155
11156 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
11157
11158 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
11159
11160 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
11161
11162 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
11163 (xg_create_frame_widgets): Use ENCODE_UTF_8.
11164
d7107586 11165 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
11166
11167 * xmenu.c (ENCODE_MENU_STRING): New.
11168 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
11169 Use it.
11170
11171 * coding.h (ENCODE_UTF_8): New.
11172 (Qutf_8): Declare.
11173
11174 * coding.c (Qutf_8): New.
11175 (syms_of_coding): Intern it.
11176
11177 * fns.c: Doc fixes.
11178
7335b336
KH
111792003-06-02 Kenichi Handa <handa@m17n.org>
11180
11181 * buffer.c (Fset_buffer_multibyte): Fix previous change.
11182
914a8c47
SM
111832003-06-01 Stefan Monnier <monnier@cs.yale.edu>
11184
11185 * lread.c (openp): Make sure STR is a string.
11186
9862c135
JR
111872003-06-01 David Ponce <david@dponce.com>
11188
cab27d04 11189 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
11190 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
11191
11192 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
11193 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
11194 (discard_mouse_events): Discard WHEEL_EVENT events too.
11195 (lispy_wheel_names, wheel_syms): New.
11196 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 11197 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 11198 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
11199
11200 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
11201 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11202 WHEEL_EVENT events.
11203
f984e73e
JPW
112042003-05-31 John Paul Wallington <jpw@gnu.org>
11205
11206 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
11207 timer are in lisp/emacs-lisp.
11208
1efcd78f
KH
112092003-05-31 Kenichi Handa <handa@m17n.org>
11210
458c8af4
KH
11211 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
11212 region when a buffer is changed to unibyte.
11213
1efcd78f
KH
11214 * charset.h (VALID_LEADING_CODE_P): New macro.
11215 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
11216
778e2804
KH
11217 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
11218 is nonzero, accept multibyte form of eight-bit-control chars.
11219 (decode_composition_emacs_mule): Likewise.
11220 (decode_coding_emacs_mule): Likewise.
11221 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
11222 multibyte form of eight-bit-control chars.
11223
11224 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
11225 (Finsert_file_contents): If coding-system-for-read is bound to
11226 Qauto_save_coding, use the coding system emacs-mule with special
11227 setting for recovering a file.
11228 (choose_write_coding_system): On auto saving, use the coding
11229 system emacs-mule with special setting for auto saving.
11230 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
11231
034060e4
KH
112322003-05-30 Kenichi Handa <handa@m17n.org>
11233
11234 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
11235 properly before calling ccl_driver.
11236
778e2804 11237 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 11238
cab27d04 11239 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
11240 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
11241 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
11242
595f5aa5
GM
112432003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
11244
11245 * xfaces.c (realize_default_face): Do not abort if lface is
11246 non-existent - reverts change from 2003-05-19.
11247
103e0180
KH
112482003-05-29 Kenichi Handa <handa@m17n.org>
11249
11250 * coding.c (decode_coding_iso2022): Pay attention to the byte
11251 sequence of CTEXT extended segment, and retain those bytes as is.
11252
112532003-05-28 Kenichi Handa <handa@m17n.org>
11254
cab27d04 11255 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
11256 of CODING_REPLACEMENT_CHARACTER.
11257 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
11258 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
11259 check this flag on encoding.
cab27d04
SM
11260 (encode_coding_sjis_big5):
11261 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
11262 (Fset_terminal_coding_system_internal):
11263 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
11264 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
11265
11266 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
11267 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
11268 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
11269
ff6a3bfb 112702003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 11271
ff6a3bfb
RS
11272 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
11273
11274 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 11275
1963c428
KS
112762003-05-28 Kim F. Storm <storm@cua.dk>
11277
11278 * xdisp.c (expose_window): Fix error in calculation of
11279 window relative coordinates of area to redisplay.
11280
2b5d4601
JR
112812003-05-27 Jason Rumney <jasonr@gnu.org>
11282
11283 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
11284
1c64a4a2
JB
112852003-05-27 David Ponce <david@dponce.com>
11286
11287 Handle W32 mouse wheel events as mouse click events, like in X.
11288
11289 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
11290 MOUSE_WHEEL_EVENT anymore.
11291
11292 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
11293 Scrolling down/up the mouse wheel is respectively mapped to mouse
11294 button 4 and 5.
11295 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11296 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
11297 WM_MOUSEWHEEL events.
11298
2d031b89
AS
112992003-05-27 Andreas Schwab <schwab@suse.de>
11300
20464fdf
AS
11301 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
11302
2d031b89
AS
11303 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
11304 partially visible line.
11305
11306 * alloc.c (Fgarbage_collect): Fix last change.
11307
97bc76d4
JPW
113082003-05-26 John Paul Wallington <jpw@gnu.org>
11309
11310 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
11311
56613f06
SM
113122003-05-25 Stefan Monnier <monnier@cs.yale.edu>
11313
11314 * window.c (Fset_window_buffer): Add type of `keep_margins'.
11315 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
11316
11317 * window.h (window_box_text_cols): Declare.
11318
11319 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
11320 (x_draw_vertical_border): Remove unused var `f'.
11321
11322 * xfaces.c (build_scalable_font_name): Remove `unused var
11323 pixel_size' warning.
11324
11325 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
11326
11327 * unexelf.c (unexec): Remove `unused var n' warning.
11328
11329 * strftime.c (my_strftime_localtime_r): Remove `defined but
11330 unused' warning.
11331
11332 * process.c (allocate_pty): Remove `unused var stb' and
11333 `cp might be used uninitialized' warnings.
11334
11335 * dispnew.c (mode_line_string): Remove unused var `f'.
11336
11337 * coding.c (find_safe_codings): Remove unused var `i'.
11338
11339 * bytecode.c (Fbyte_code): Remove `unused val' warning.
11340
11341 * buffer.c (Fkill_buffer): Remove unused var `list'.
11342
11343 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
11344
93421a1f
JD
113452003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11346
11347 * frame.c (make_frame): Condition want_fullscreen with
11348 HAVE_WINDOW_SYSTEM.
11349
c4b8aebc
JB
113502003-05-25 Juanma Barranquero <lektu@terra.es>
11351
11352 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
11353 (Fwindow_scroll_bars): Fix typo in docstring.
11354
0416870b
KS
113552003-05-24 Kim F. Storm <storm@cua.dk>
11356
11357 The following changes serve several purposes:
11358
11359 1) Swap the position of fringes and display margins in windows, i.e.
11360 the fringes are now displayed between the margins and the text area
11361 (by default).
11362
11363 2) Allow fringe and scroll bar parameters to be set per-buffer and
11364 per-window (like display margins). Such settings are now stored
11365 in window configurations, preserved when frames are resized, and
9018a88e 11366 copied when windows are split vertically or horizontally.
0416870b
KS
11367 Several bugs related to display margins have been fixed.
11368
11369 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 11370
0416870b
KS
11371 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
11372 rather than FRAME_WIDTH (FRAME_FONT (f)).
11373
11374 5) Introduce a consistent naming of variables, members and macros
11375 depending on whether their value is measured in pixels or in
11376 canonical columns/lines. Pixel dimensions are named *_width and
11377 *_height, while canonical columns/lines are named *_cols and
11378 *_lines. Pixel positions are named *_x and *_y, while column/line
11379 positions are named *_col and *_line.
11380
11381 6) Consolidate more of the X, W32, and MAC gui code by moving
11382 common data into struct frame, and generalize it for the non-gui
11383 case by using suitable defaults.
11384
11385 7) Cleanup and consolidate the macros controlling frame and window
11386 layout into frame.h and window.h, and generalize the use of the
11387 various window_box_* functions (enhanced to handle the new fringe
11388 position and the per-window fringe and scroll bar settings).
11389
11390 * frame.h (struct frame): Rename members height to text_lines,
11391 width to text_cols, window_height to total_lines, window_width to
11392 total_cols, new_height to new_text_lines, new_width to
11393 new_text_cols. All uses changed.
11394 (struct frame): New members which consolidate common members of
11395 x_output, w32_output, and mac_output structures: left_pos,
11396 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
11397 win_gravity, size_hint_flags, border_width, internal_border_width,
11398 line_height, fringe_cols, left_fringe_width, right_fringe_width,
11399 want_fullscreen. All uses changed.
11400 (struct frame): New member column_width contaning the canonical
11401 column width, analogue to line_height. All uses changed.
11402 (struct frame): Rename members scroll_bar_pixel_width to
11403 config_scroll_bar_width, and scroll_bar_cols to
11404 config_scroll_bar_cols. All uses changed.
11405 (struct frame): New member scroll_bar_actual_width which
11406 consolidates and renames the vertical_scroll_bar_extra member of
11407 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 11408 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
11409 from x/w32/macterm.h files. All uses changed. Also change code
11410 which referred to f->output_data...->pixel_height.
cab27d04 11411 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 11412 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 11413 which referred to f->output_data...->pixel_width.
cab27d04 11414 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 11415 Also change code which referred to f->height.
cab27d04 11416 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
11417 Also change code which referred to f->width.
11418 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
11419 to update new_text_lines and new_text_cols members directly.
cab27d04 11420 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 11421 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 11422 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
11423 FRAME_SCROLL_BAR_COLS. All uses changed.
11424 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 11425 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
11426 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
11427 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
11428 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
11429 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
11430 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
11431 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
11432 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
11433 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
11434 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
11435 Unconditionally return line_height member (it now has proper value
11436 also for non-window frames).
11437 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
11438 return new column_width member (rather than the default font width).
11439 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 11440 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
11441 from x/w32/macterm.h files. Unconditionally return corresponding
11442 member of frame structure (they now have proper values also for
11443 non-window frames).
cab27d04 11444 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
11445 Calculate return value from left and right widths.
11446 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
11447 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
11448 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
11449 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
11450 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
11451 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
11452 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 11453 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11454 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 11455 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11456 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 11457 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11458 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 11459 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 11460 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 11461 consolidated from x/mac/w32term.h.
cab27d04 11462 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 11463 consolidated from x/mac/w32term.h.
cab27d04 11464 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 11465 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11466 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
11467 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
11468
11469 * window.h (struct window): Rename members left to left_col,
11470 top to top_line, height to total_lines, width to total_cols,
11471 left_margin_width to left_margin_cols, right_margin_width to
11472 right_margin_cols, orig_height to orig_total_lines, orig_top to
11473 orig_top_line. All uses changed.
11474 (struct window): New members left_fringe_width, right_fringe_width,
11475 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
11476 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
11477 New macros primarily used to simplify other macros.
11478 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
11479 referred to XINT (w->width).
11480 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
11481 referred to XINT (w->height).
11482 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
11483 referred to XINT (w->width) * canon_x_unit.
11484 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
11485 referred to XINT (w->height) * canon_y_unit.
11486 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
11487 referred to XINT (w->left).
cab27d04 11488 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
11489 all uses and code that referred to XINT (w->left) + XINT (w->width).
11490 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
11491 referred to XINT (w->top).
11492 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
11493 referred to XINT (w->top) + XINT (w->height).
11494 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
11495 referred to XINT (w->left) * canon_x_unit.
11496 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
11497 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
11498 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
11499 referred to XINT (w->top) * canon_y_unit.
11500 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
11501 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
11502 (WINDOW_LEFTMOST_P): New macro.
cab27d04 11503 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 11504 All uses changed.
cab27d04 11505 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 11506 All uses changed.
cab27d04 11507 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
11508 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
11509 Do not exclude left fringe width.
cab27d04 11510 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
11511 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
11512 Do not exclude fringe widths.
11513 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
11514 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
11515 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
11516 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
11517 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
11518 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
11519 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
11520 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
11521 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
11522 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
11523 New macros. Change code which referenced corresponding
11524 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
11525 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
11526 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
11527 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
11528 allow per-window scroll-bar settings.
11529 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
11530 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
11531 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
11532 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
11533 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
11534 FRAME_SCROLL_BAR_WIDTH.
11535 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 11536 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 11537 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 11538 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 11539 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 11540 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 11541 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
11542 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
11543 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11544 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
11545 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
11546 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 11547 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 11548 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
11549 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
11550 (window_from_coordinates): Update prototype.
11551 (Fset_window_buffer): Update EXFUN.
11552 (set_window_buffer): Update prototype.
9018a88e 11553
0416870b 11554 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 11555 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
11556 changed.
11557 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
11558 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
11559 internal_border_width is now set to 0 for non-window frames.
11560 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
11561 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
11562 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
11563 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
11564 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
11565 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11566 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
11567 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
11568 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 11569 Move to window.h and renamed [see window.h changes].
0416870b
KS
11570 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
11571 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
11572 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
11573 Use WINDOW_TOTAL_LINES.
0416870b
KS
11574 (frame_update_line_height): Remove prototype.
11575
11576 * buffer.h (struct buffer): Rename members measured in columns:
11577 left_margin_width to left_margin_cols, right_margin_width to
11578 right_margin_cols. All uses changed.
11579 New members left_fringe_width, right_fringe_width,
11580 fringes_outside_margins for per-buffer fringe settings.
11581 New members scroll_bar_width and vertical_scroll_bar_type for
11582 per-buffer scroll bar settings.
11583
11584 * buffer.c (init_buffer_once): Set buffer_defaults and
11585 buffer_local_flags for new buffer-local variables
11586 left_fringe_width, right_fringe_width, fringes_outside_margins,
11587 scroll_bar_width, and vertical_scroll_bar_type.
11588 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
11589 default-* variables for them.
11590
11591 * dispnew.c: Make (many) trivial substitutions for renamed and
11592 new macros in dispextern.h, frame.h and window.h.
11593 (mode_line_string): No need to adjust width for mode lines, as it
11594 is already adjusted by the caller.
11595 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 11596
0416870b
KS
11597 * frame.c: Make (many) trivial substitutions for renamed and
11598 new macros in dispextern.h, frame.h and window.h.
11599 (make_frame): Initialize left_fringe_width, right_fringe_width,
11600 fringe_cols, scroll_bar_actual_width, border_width,
11601 internal_border_width, column_width, line_height, x_pixels_diff,
11602 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
11603 members with values suitable for a non-window frames.
11604
11605 * gtkutil.c: Make (many) trivial substitutions for renamed and
11606 new macros in dispextern.h, frame.h and window.h.
9018a88e 11607
0416870b
KS
11608 * indent.c: Make (few) trivial substitutions for renamed and
11609 new macros in dispextern.h, frame.h and window.h.
11610
11611 * keyboard.c: Make (many) trivial substitutions for renamed and
11612 new macros in dispextern.h, frame.h and window.h.
11613 (make_lispy_event): Use window positions returned from
11614 window_from_coordinates when constructing the lisp event for
11615 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
11616 (incorrect) values locally.
11617 (make_lispy_movement): Use window positions returned from
11618 window_from_coordinates when constructing the lisp event, rather
11619 than calculating (incorrect) values locally.
11620
11621 * scroll.c: Make (some) trivial substitutions for renamed and
11622 new macros in dispextern.h, frame.h and window.h.
11623
11624 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
11625 scroll-bars.
11626
11627 * sysdep.c: Make (few) trivial substitutions for renamed and
11628 new macros in dispextern.h, frame.h and window.h.
11629
11630 * term.c: Make (some) trivial substitutions for renamed and
11631 new macros in dispextern.h, frame.h and window.h.
11632
11633 * widget.c: Make (few) trivial substitutions for renamed and
11634 new macros in dispextern.h, frame.h and window.h.
11635
11636 * window.c: Make (many) trivial substitutions for renamed and
11637 new macros in dispextern.h, frame.h and window.h.
11638 (make_window): Initialize new members
11639 left_margin_cols, right_margin_cols, left_fringe_width,
11640 right_fringe_width, fringes_outside_margins, scroll_bar_width,
11641 and vertical_scroll_bar_type.
cab27d04 11642 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 11643 and per-window fringes and scroll-bars.
0416870b 11644 Fix bug related to incorrectly adjusting coordinates by
9018a88e 11645 frame's internal_border_width (the effect normally negible since
0416870b
KS
11646 the internal_border_width is typically 0 or 1 pixel, but very
11647 noticeable for an internal_border_width of e.g. 25 pixels).
11648 Upon successful return (other than ON_NOTHING), the coordinates
11649 are now always properly converted to window relative for the
11650 given display element.
11651 (window_from_coordinates): Add new parameters wx and wy to
11652 return the window relative x and y position in the returned
11653 window and part. A null arg means, don't return the position.
11654 All callers changed.
11655 (adjust_window_margins): New function which may reduce the width
11656 of the display margins if a window's text area is too small after
11657 resizing or splitting windows.
11658 (size_window): Fix bug that did not account for display margin
11659 widths when checking the minimum width of a window; use
11660 adjust_window_margins.
11661 (set_window_buffer): Call Fset_window_fringes and
11662 Fset_window_scroll_bars to setup per-window elements.
11663 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
11664 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
11665 (e.g. after splitting a window or resizing the frame).
11666 All callers changed.
0416870b
KS
11667 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
11668 (Fsplit_window): Duplicate original window's display margin,
11669 fringe, and scroll-bar settings; then call Fset_window_buffer with
11670 KEEP_MARGINS non-nil. This fixes a bug which caused a split
11671 window to only preserve the display margins in one of the windows.
c4b8aebc 11672 When splitting horizontally, call adjust_window_margins on both
0416870b 11673 windows to ensure that the text area of the new windows is non too
f9711de4 11674 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
11675 width of the split window was less than the width of the display
11676 margins.
cab27d04 11677 (window_box_text_cols): Rename from window_internal_width.
9018a88e 11678 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
11679 Fix bug that caused vertical separator to be subtracted also on
11680 window frames. Fix another bug that did not reduce the returned
11681 value by the columns used for display margins.
11682 (window_scroll_line_based): Fix bug related to scrolling too much
11683 when display margins are present (implicitly fixed by the fix to
11684 window_box_text_cols).
11685 (scroll_left, scroll_right): Fix bug related to scrolling too far
11686 by default when display margins are present (implicitly fixed by
11687 the fix to window_box_text_cols).
11688 (struct saved_window): Rename members left to left_col, top to
11689 top_line, width to total_cols, height to total_lines, orig_top to
11690 orig_top_line, orig_height to orig_total_lines. All uses changed.
11691 New members left_margin_cols, right_margin_cols,
11692 left_fringe_width, right_fringe_width, fringes_outside_margins,
11693 scroll_bar_width, and vertical_scroll_bar_type for saving
11694 per-window display elements.
11695 (Fset_window_configuration): Restore display margins, fringes,
11696 and scroll bar settings. This fixes a bug which caused display
11697 margins to be discarded when saving and restoring a window
11698 configuration.
11699 (save_window_save): Save display margins, fringes, and scroll bar
11700 settings. This fixes a bug which caused display margins to be
11701 discarded when saving and restoring a window configuration.
11702 (Fset_window_margins): Do nothing if display margins are not
11703 really changed. Otherwise, call adjust_window_margins to ensure
11704 the text area doesn't get too narrow. This fixes a bug which
f9711de4 11705 could cause Emacs to trap if setting display margins wider than
0416870b
KS
11706 the width of the window.
11707 (Fset_window_fringes): New defun to allow user to specifically set
11708 this window's fringe widths and position vs. display margins.
cab27d04 11709 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
11710 (Fset_window_scroll_bars): New defun to allow user to specifically
11711 set this window's scroll bar width and position.
11712 (Fwindow_scroll_bars): New defun to return window's actual scroll
11713 bar settings.
11714 (compare_window_configurations): Also compare display margins,
11715 fringes, and scroll bar settings.
11716 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
11717
11718 * xdisp.c: Make (many) trivial substitutions for renamed and
11719 new macros in dispextern.h, frame.h and window.h.
11720 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 11721 and new fringe vs. display margin position. Note that returned
0416870b
KS
11722 value is no longer guaranteed to be a whole multiple of the frame
11723 column width, since per-window fringes may now be any width.
11724 (window_box_left_offset): New function like window_box_left, but
11725 value is relative to left border of window (rather than frame).
11726 (window_box_right_offset): New function like window_box_right,
11727 but value is relative to left border of window.
11728 (window_box_left): Adapt to per-window fringes and scroll bars,
11729 and new fringe vs. display margin position. Simplify by using
11730 WINDOW_LEFT_EDGE_X and window_box_left_offset.
11731 (window_box): Allow null args for unnecessary return values;
11732 change/simplify relevant callers.
11733 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
11734 and new fringe vs. display margin position.
11735 Use window_box_left_offset and window_box_right_offset
0416870b 11736 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
11737 scroll bars, and new fringe vs. display margin position.
11738 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
11739 (draw_fringe_bitmap): Rework to handle per-window fringes and new
11740 fringe vs. display margin position.
11741 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
11742 (redisplay_window): Adapt to per-window scroll bars.
11743 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
11744 bars, and new fringe vs. display margin position.
11745 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 11746 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
11747 bars, and new fringe vs. display margin position. Fix bug which
11748 increased total width of full_width rows by width of scroll bars
11749 although window's total width already includes that.
11750 (x_fix_overlapping_area): Simplify using window_box_left_offset.
11751 (expose_area): Simplify using window_box_left_offset.
11752 (x_draw_vertical_border): Handle per-window scroll bar settings,
11753 mixing windows with left, right and no scroll bars.
11754
11755 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
11756 where it's used in x_list_fonts (for clarity).
11757 (frame_update_line_height): Remove unused function; functionality
11758 is now done directly when setting the default font in x_set_font.
11759
11760 * xfns.c: Make (many) trivial substitutions for renamed and
11761 new macros in dispextern.h, frame.h and window.h.
11762
11763 * xmenu.c: Make (some) trivial substitutions for renamed and
11764 new macros in dispextern.h, frame.h and window.h.
11765
11766 * xterm.h (struct x_output): Move members left_pos, top_pos,
11767 border_width, pixel_height, pixel_width, line_height,
11768 internal_border_width, vertical_scroll_bar_extra,
11769 left_fringe_width, right_fringe_width, fringe_cols,
11770 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11771 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11772 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11773 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11774 (PIXEL_WIDTH, PIXEL_HEIGHT)
11775 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11776 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11777 frame.h and renamed [see frame.h changes].
11778 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11779 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11780 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11781 and renamed [see frame.h changes].
9018a88e 11782
0416870b
KS
11783 * xterm.c: Make (several) trivial substitutions for renamed and
11784 new macros in dispextern.h, frame.h and window.h.
cab27d04 11785 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11786 (scroll_run): Adapt to new fringe position.
11787 (glyph_rect): Use window coordinates returned from
11788 window_from_coordinates rather than frame_to_window_pixel_xy.
11789 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11790 scroll-bars.
11791 (handle_one_xevent): Simplify a USE_GTK conditional.
11792 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11793 (fringes are now inside margins, i.e. always in the clipping area).
11794 All callers changed.
11795 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11796 directly, then call compute_fringe_widths. Don't call
11797 frame_update_line_height.
11798
11799 * w32term.h (struct w32_output): Move members left_pos, top_pos,
11800 border_width, pixel_height, pixel_width, line_height,
11801 internal_border_width, vertical_scroll_bar_extra,
11802 left_fringe_width, right_fringe_width, fringe_cols,
11803 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11804 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11805 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11806 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11807 (PIXEL_WIDTH, PIXEL_HEIGHT)
11808 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11809 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11810 frame.h and renamed [see frame.h changes].
11811 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11812 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11813 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11814 and renamed [see frame.h changes].
9018a88e 11815
0416870b
KS
11816 * w32term.c: Make (several) trivial substitutions for renamed and
11817 new macros in dispextern.h, frame.h and window.h.
cab27d04 11818 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11819 (glyph_rect): Use window coordinates returned from
11820 window_from_coordinates rather than frame_to_window_pixel_xy.
11821 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11822 scroll-bars.
11823 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
11824 (fringes are now inside margins, i.e. always in the clipping area).
11825 All callers changed.
11826 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11827 directly, then call compute_fringe_widths. Don't call
11828 frame_update_line_height.
11829
11830 * w32console.c: Make (few) trivial substitutions for renamed and
11831 new macros in dispextern.h, frame.h and window.h.
11832
11833 * w32fns.c: Make (many) trivial substitutions for renamed and
11834 new macros in dispextern.h, frame.h and window.h.
11835
11836 * w32menu.c: Make (few) trivial substitutions for renamed and
11837 new macros in dispextern.h, frame.h and window.h.
11838
11839 * macterm.h (struct mac_output): Move members left_pos, top_pos,
11840 border_width, pixel_height, pixel_width, line_height,
11841 internal_border_width, vertical_scroll_bar_extra,
11842 left_fringe_width, right_fringe_width, fringe_cols,
11843 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11844 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
11845 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11846 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11847 (PIXEL_WIDTH, PIXEL_HEIGHT)
11848 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11849 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11850 frame.h and renamed [see frame.h changes].
11851 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11852 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11853 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11854 and renamed [see frame.h changes].
9018a88e 11855
0416870b
KS
11856 * macterm.c: Make (several) trivial substitutions for renamed and
11857 new macros in dispextern.h, frame.h and window.h.
cab27d04 11858 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11859 (glyph_rect): Use window coordinates returned from
11860 window_from_coordinates rather than frame_to_window_pixel_xy.
11861 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11862 scroll-bars.
11863 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11864 (fringes are now inside margins, i.e. always in the clipping area).
11865 All callers changed.
11866 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11867 directly, then call compute_fringe_widths. Don't call
11868 frame_update_line_height.
11869
11870 * macfns.c: Make (several) trivial substitutions for renamed and
11871 new macros in dispextern.h, frame.h and window.h.
9018a88e 11872 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
11873
11874 * macmenu.c: Make (few) trivial substitutions for renamed and
11875 new macros in dispextern.h, frame.h and window.h.
11876
11877 * msdos.h (struct x_output): Remove members left_pos, top_pos,
11878 and line_height, and use corresponding new members in struct
11879 frame. All uses changed.
11880 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
11881 superseeded by corresponding macros in frame.h.
11882
11883 * msdos.c: Make (several) trivial substitutions for renamed and
11884 new macros in dispextern.h, frame.h and window.h.
11885 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 11886 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
11887 (internal_terminal_init): No need to initialize line_height here;
11888 it now defaults to 1.
11889
9018a88e
SM
118902003-05-24 Stefan Monnier <monnier@cs.yale.edu>
11891
11892 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
11893 dropping `down' events.
11894
016bd3c0
AS
118952003-05-24 Andreas Schwab <schwab@suse.de>
11896
11897 * coding.c (find_safe_codings): Fix last change.
11898
4dacadcc
TTN
118992003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
11900
11901 * xfns.c (x_window): Fix typo from 2003-05-21 change.
11902
319830ce
SM
119032003-05-23 Stefan Monnier <monnier@cs.yale.edu>
11904
9018a88e
SM
11905 * xdisp.c (display_mode_element): Increase max depth.
11906 Simplify the error handling code. Use a different error string
11907 for the case where we hit the depth limit.
11908
319830ce
SM
11909 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
11910
11911 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
11912
119132003-05-21 Stefan Monnier <monnier@cs.yale.edu>
11914
11915 * intervals.c (get_local_map): Don't get char-property of previous
11916 point any more: get_pos_property already does it and better.
11917
c67de8ba
DL
119182003-05-21 Dave Love <fx@gnu.org>
11919
11920 [Merged from unicode branch.]
11921
11922 * xfns.c (x_window, x_window): Use use_xim.
11923
11924 * xterm.c (use_xim): Initialize.
11925 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
11926 (x_term_init): Maybe set use_xim.
11927
11928 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
11929
edd3ff1d
JR
119302003-05-21 Jason Rumney <jasonr@gnu.org>
11931
11932 * unexw32.c (_start): Remove _fmode initialization.
11933
11934 * emacs.c (main) [WINDOWSNT]: Move it here.
11935
463f55ee
DL
119362003-05-20 Dave Love <fx@gnu.org>
11937
11938 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
11939
af253914
RS
119402003-05-19 Richard M. Stallman <rms@gnu.org>
11941
11942 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
11943 as value for QCfont attribute.
11944 (realize_default_face): lface should already exist; crash if not.
11945 Specify 0 for FORCE_P when calling set_lface_from_font_name.
11946
11947 * frame.c (Fignore_event): Doc fix.
11948
1d211019
KH
119492003-05-19 Kenichi Handa <handa@m17n.org>
11950
11951 * coding.c (decode_coding_string): Handle post-read-conversion
11952 even if the coding doesn't require decoding.
11953
4dd68254
RS
119542003-05-18 Richard M. Stallman <rms@gnu.org>
11955
11956 * callproc.c (Fcall_process_region): Doc fix.
11957
14d87dc9
SM
119582003-05-17 Stefan Monnier <monnier@cs.yale.edu>
11959
deca5d96
SM
11960 * lread.c (Fload): Print a message if package is obsolete.
11961
14d87dc9
SM
11962 * window.c (Fselect_window): Add optional `norecord' arg.
11963 (select_window_1): Fold into Fselect_window.
11964 (select_window_norecord): New function.
11965 (temp_output_buffer_show): Use it. Preserve current buffer.
11966
11967 * window.h (Fselect_window): Update declaration.
11968
11969 * window.c (delete_window, Fother_window, Fset_window_configuration):
11970 * minibuf.c (read_minibuf):
11971 * macterm.c (x_new_focus_frame):
11972 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
11973 * callint.c (Fcall_interactively):
11974 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
11975
11976 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
11977
78f52183
DK
119782003-05-17 David Kastrup <dak@gnu.org>
11979
11980 * process.c (read_process_output): Back out change from 2003-03-09.
11981
14d87dc9
SM
119822003-05-17 Stefan Monnier <monnier@cs.yale.edu>
11983
11984 * editfns.c (get_pos_property): Don't assume that `object' = nil.
11985
11986 * textprop.c (text_property_stickiness): New arg `buffer'.
11987
11988 * intervals.h (text_property_stickiness): New arg `buffer'.
11989 (get_pos_property): Declare.
11990
11991 * intervals.c (get_local_map): Use get_pos_property, to obey
11992 stickiness and empty overlays.
11993 (create_root_interval, graft_intervals_into_buffer): Use BEG.
11994 (merge_properties, intervals_equal, merge_properties_sticky):
11995 Use XCAR, XCDR.
11996 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
11997
1fd1cc2f
RS
119982003-05-17 Richard M. Stallman <rms@gnu.org>
11999
4f9f637a
RS
12000 * minibuf.c (read_minibuf): If buffer is empty, record the default
12001 in the history.
12002 (Fminibuffer_complete_word): When deleting the overlap, take account
12003 of its real position.
12004
12005 * fns.c (map_char_table): Fix previous change.
12006
1fd1cc2f
RS
12007 * syntax.c (find_defun_start):
12008 When open_paren_in_column_0_is_defun_start,
12009 return beginning of buffer.
12010
12011 * lisp.h (map_char_table): Declare added arg.
12012
12013 * fns.c (map_char_table): New arg TABLE gets the master table.
12014 All calls changed.
12015 Process default and inheritance, resorting to Faref if necessary.
12016
12017 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12018 (Faccessible_keymaps): Pass new arg to map_char_table.
12019
12020 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
12021
12022 * casetab.c (set_case_table): Pass new arg to map_char_table.
12023
12024 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
12025
12026 * lisp.h (specbinding_func): New typedef.
12027 (struct specbinding): Use specbinding_func, to put the `volatile'
12028 in the right place.
12029
12030 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
12031 to avoid GCC warning.
14d87dc9 12032
b6189c3b 120332003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 12034
14d87dc9 12035 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 12036
35fb885d
SM
120372003-05-15 Stefan Monnier <monnier@cs.yale.edu>
12038
12039 * keyboard.c (apply_modifiers): Don't fill the other cache.
12040
9a274fbd
SM
120412003-05-14 Stefan Monnier <monnier@cs.yale.edu>
12042
c55b5fad
SM
12043 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
12044
9a274fbd
SM
12045 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
12046 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
12047 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
12048 (Fset_window_configuration, Fcurrent_window_configuration)
12049 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
12050 (Fpos_visible_in_window_p, mark_window_cursors_off)
12051 (window_internal_height, window_internal_width, Frecenter)
12052 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
12053 (replace_buffer_in_all_windows, init_window_once, init_window)
12054 (syms_of_window, keys_of_window): Move from lisp.h.
12055 * lisp.h: Move window.c declarations to window.h.
12056
12057 * bytecode.c: Include window.h.
12058 * emacs.c: Include window.h.
12059
14d87dc9 12060 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
12061 (keyremap): Add `parent' field.
12062 (keyremap_step): Use it. Remove `parent' argument.
12063 (read_key_sequence): Setup and use the new `parent' field.
12064
fd93e331
SM
120652003-05-11 Stefan Monnier <monnier@cs.yale.edu>
12066
12067 * keyboard.c (adjust_point_for_property): Ensure termination.
12068
1c4001a1
SM
120692003-05-10 Stefan Monnier <monnier@cs.yale.edu>
12070
12071 * keyboard.c (follow_key): Remove dead variable `did_meta'.
12072 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
12073 duplicated handling of function-key-map and key-translation-map
12074 in read_key_sequence.
12075 (read_key_sequence): Use them.
12076
12077 * keyboard.c (adjust_point_for_property): Try harder to move point
12078 to the non-sticky end of an invisible property.
12079
12080 * xdisp.c (single_display_prop_intangible_p): Make `space' display
12081 property intangible as well.
12082
780379b1
AS
120832003-05-10 Andreas Schwab <schwab@suse.de>
12084
12085 * xmenu.c (single_menu_item): Change last parameter to void* to
12086 avoid warning.
12087
ca2de342
RS
120882003-05-09 Richard M. Stallman <rms@gnu.org>
12089
12090 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
12091 Bind Qinhibit_modification_hooks to t so there will be no GC.
12092 Rename local `tem' to `save_deactivate_mark'.
12093
12094 * eval.c (specpdl_ptr): Declare volatile.
12095 (unbind_to): Copy the whole binding and decrement specpdl_ptr
12096 before doing the work of unbinding it.
12097
12098 * lisp.h (struct specbinding): Declare elements volatile.
12099 (specpdl_ptr): Declare volatile.
12100
12101 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
12102
12103 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
12104 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
12105
347003be
DL
121062003-05-08 Dave Love <fx@gnu.org>
12107
12108 * coding.c (Vlast_coding_system_used): Doc fix.
12109
5adcec23
JR
121102003-05-07 Jason Rumney <jasonr@gnu.org>
12111
12112 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
12113 when system does not support them.
12114
5fe3b8a4
SM
121152003-05-05 Stefan Monnier <monnier@cs.yale.edu>
12116
12117 * fileio.c (Qwrite_region_annotate_functions): New var.
12118 (build_annotations): Use it to process the global part of the hook.
12119 (syms_of_fileio): Init and staticpro it.
12120
12121 * keyboard.c (safe_run_hooks_error): Display a message instead of
12122 silently ignoring the error.
12123
121242003-05-03 Stefan Monnier <monnier@cs.yale.edu>
12125
12126 * keyboard.c (input_available_signal): Mark static.
12127 (menu_bar_items): Use map_keymap.
12128 (menu_bar_one_keymap): Remove.
12129 (menu_bar_item): Adjust arglist (for use in map_keymap).
12130 Properly hide a second binding when not both are keymaps.
12131
12132 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
12133 (single_keymap_panes): Use it and map_keymap.
12134 (single_menu_item): Use skp as well.
12135
12136 * keymap.h (map_keymap_function_t): New type.
12137 (map_keymap): Declare.
12138
12139 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
12140 (map_keymap_call, Fmap_keymap): New functions.
12141 (syms_of_keymap): Defsubr map-keymap.
12142
4b1b4443
JD
121432003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12144
12145 * gtkutil.c (create_dialog, make_widget_for_menu_item)
12146 (make_menu_item, create_menus, xg_update_menu_item): Don't call
12147 ..._with_mnemonic functions for menu items.
12148
1f816871
KH
121492003-05-01 Kenichi Handa <handa@m17n.org>
12150
12151 * coding.c (coding_system_accept_latin_extra_p): Delete this
12152 function.
12153 (find_safe_codings): Pay attention to
12154 the property tranlsation-table-for-encode of each codings.
12155 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
12156
5ed6ba5b
SM
121572003-05-01 Stefan Monnier <monnier@cs.yale.edu>
12158
12159 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
12160
32c06229
SM
121612003-04-30 Stefan Monnier <monnier@cs.yale.edu>
12162
12163 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
12164
12165 * lisp.h (CHECK): Wrap args in parenthesis.
12166 (specbind): Fix doc: symbol = Qnil is not supported any more.
12167
12168 * bytecode.c (Fbyte_code) <unwind-protect>:
12169 Use Fprogn rather than 0 and Qnil.
12170
12171 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
12172 `double', and `triple' modifiers as well.
12173
ed3c3314
RS
121742003-04-30 Richard M. Stallman <rms@gnu.org>
12175
12176 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
12177
12178 * alloc.c (abort_on_gc): New variable.
12179 (Fgarbage_collect): Abort if abort_on_gc is set.
12180
12181 * lisp.h (abort_on_gc): Add decl.
12182
12183 * eval.c (Fsignal): Clear abort_on_gc.
12184
12185 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 12186 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
12187
12188 * xdisp.c (move_it_vertically_backward): Do the final big else
12189 even if nlines is 0.
12190
12191 * xdisp.c (redisplay_internal): Finish the per-frame loop
12192 even if redisplay is suspended by input.
12193
0b325c12
AC
121942003-04-24 Andrew Choi <akochoi@shaw.ca>
12195
12196 * macterm.c (x_list_fonts): Return all fonts that match if
12197 maxnames = -1.
12198
4e837cd0
KH
121992003-04-25 Kenichi Handa <handa@m17n.org>
12200
12201 * syntax.c (skip_chars): Fix previous change.
12202
9af7511a
KH
122032003-04-24 Kenichi Handa <handa@m17n.org>
12204
12205 * syntax.c (skip_chars): Make the code faster by using the common
12206 technique of *p, *stop, and *endp.
12207
e3b2c21f
JD
122082003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12209
12210 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 12211 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
12212 being updated.
12213
32c06229
SM
122142003-04-19 Stefan Monnier <monnier@cs.yale.edu>
12215
12216 * eval.c (Fapply): Undo last change and add a comment about why.
12217
c6464167
MB
122182003-04-18 Miles Bader <miles@gnu.org>
12219
12220 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
12221 pickier PARSE_MULTIBYTE_SEQ.
12222
e509f168
SM
122232003-04-17 Stefan Monnier <monnier@cs.yale.edu>
12224
12225 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
12226 Use XCDR, XCAR, CONSP.
12227 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
12228 (Fapply): Remove unnecessary GCPRO.
12229
12230 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
12231
12232 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
12233
12234 * buffer.h: Don't hardcode BEG==1.
12235
12236 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
12237
5ceea398
RS
122382003-04-16 Richard M. Stallman <rms@gnu.org>
12239
12240 * xdisp.c (try_window, try_window_reusing_current_matrix):
12241 When at end of window, set window_end_pos to Z-ZV.
12242
12243 * buffer.c (Foverlay_recenter): Doc fix.
12244
e509f168
SM
122452003-04-14 Stefan Monnier <monnier@cs.yale.edu>
12246
12247 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
12248
d243e605
AC
122492003-04-14 Andrew Choi <akochoi@shaw.ca>
12250
12251 * macterm.c (mac_check_for_quit_char): Don't check more often than
12252 once a second.
12253
6901b111
SM
122542003-04-11 Stefan Monnier <monnier@cs.yale.edu>
12255
12256 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
12257 specially, so that they can't hide an implicit switch-frame event.
12258 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
12259 (head_table): Use switch-frame as event_kind for select-window.
12260 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
12261
12262 * editfns.c (Fformat): Lisp_Object/int mixup.
12263 (format2): Remove unused var numargs.
12264
e301806f 122652003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 12266
6901b111 12267 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
12268 (Qafter_insert_file_set_coding): New variable.
12269 (syms_of_fileio): Initialize and staticpro it. Delete declaration
12270 for after-insert-file-adjust-coding-function.
12271 (Finsert_file_contents): Call Qafter_insert_file_set_coding
12272 instead of Vafter_insert_file_adjust_coding_function.
12273
38914424
KH
122742003-04-11 Kenichi Handa <handa@m17n.org>
12275
12276 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
12277
12278 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
12279 string. Callers changed.
12280
122812003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 12282
6901b111 12283 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 12284 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
12285 (Finsert_file_contents):
12286 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
12287 decode-format.
12288
f979dc05
JD
122892003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12290
12291 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
12292 get GtkAdjustment as widget now is a GtkRange.
12293
12294 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
12295 GtkRange to avoid memory leak.
12296
f8c6b4c2 122972003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 12298
50ebc53d
KH
12299 * xfaces.c (Vface_font_rescale_alist): New variable.
12300 (struct font_name): New member rescale_ratio.
12301 (font_rescale_ratio): New function.
6901b111 12302 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
12303 (better_font_p): On comparing point sized, pay attention to
12304 recale_ratio member of fonts.
12305 (build_scalable_font_name): Reflect font->rescale_ratio in the
12306 font name.
6901b111 12307 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 12308
cb98871c
KH
12309 * lread.c (read1): Before calling index, check if the 2nd
12310 arguemnt is in ASCII range.
12311
4773b8ca
RS
123122003-04-08 Richard M. Stallman <rms@gnu.org>
12313
b0ada147
RS
12314 * fileio.c (Ffile_symlink_p): Doc fix.
12315
12316 * editfns.c (Fformat): Translate positions of text properties
12317 in the format string to apply them to the result.
12318
4773b8ca
RS
12319 * fileio.c (Finsert_file_contents): Doc fix.
12320 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12321
123222003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 12323
4773b8ca
RS
12324 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
12325
e8f25745 123262003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 12327
e8f25745
ST
12328 * mac.c (init_mac_osx_environment): Switch libexec and bin so
12329 that self-contained application finds libexec files.
12330
f8c6b4c2 123312003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 12332
6901b111
SM
12333 * coding.c (code_convert_region_unwind):
12334 Set Vlast_coding_system_used to the argument.
2310d84c
KH
12335 (code_convert_region): If post-read-conversion function changed
12336 the value of last-coding-sytem, keep the new value in
12337 coding->symbol so that it won't be overridden.
12338 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
12339 (coding_system_accept_latin_extra_p): New function.
12340 (find_safe_codings): Pay attention to characters registered in
12341 latin-extra-code-table.
2310d84c 12342
39c9a034
TTN
123432003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
12344
12345 * Makefile.in (md5.o): Add missing dependency info.
12346
eb67c5d6
RS
123472003-04-06 Richard M. Stallman <rms@gnu.org>
12348
12349 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
12350
12351 * marker.c (verify_bytepos): New function.
12352
12353 * intervals.c (set_intervals_multibyte_1): When becoming
12354 multibyte, adjust right and left child sizes to a whole set of
12355 characters. If an interval gets zero total-length, delete it.
12356 If an interval consists of just its children, delete one of them.
12357
12358 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
12359 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 12360
52eb0373 12361 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
12362 All calls deleted.
12363 (lisp_malloc): Do the work here directly.
12364
b1f81fc5
JB
123652003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
12366
12367 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
12368 char tables.
12369
123702003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
12371
12372 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
12373 destructively change "%S" to "%s".
12374
774666fb
MB
123752003-04-03 Miles Bader <miles@gnu.org>
12376
12377 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
12378 always set.
12379
19c37f01
DL
123802003-04-01 Dave Love <fx@gnu.org>
12381
12382 * xfns.c (xpm_lookup_color): Grok "opaque".
12383
2f4b24c3
AC
123842003-03-31 Andrew Choi <akochoi@shaw.ca>
12385
12386 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
12387 parent window ID.
12388
12389 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
12390
12391 * macterm.h (struct mac_output): Define x_pixels_diff and
12392 y_pixels_diff.
b1f81fc5 12393
9443fcf6
JB
123942003-03-31 Juanma Barranquero <lektu@terra.es>
12395
12396 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
12397 blockinput.h and files included from it.
12398
e072891b
KS
123992003-03-31 Kim F. Storm <storm@cua.dk>
12400
12401 The following changes consolidates the common code related to
12402 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
12403 files into frame.c.
9443fcf6 12404
e072891b
KS
12405 * frame.c: Include blockinput.h.
12406 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
12407 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
12408 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
12409 related vars here.
12410 (struct frame_parm_table, frame_parms): New table for describing
12411 frame parameters and their associated Q-variable.
12412 The order of the parameters corresponds to the sequence of the
12413 frame_parm_handlers table in redisplay_interface.
12414 (x_fullscreen_move, x_set_frame_parameters)
12415 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
12416 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
12417 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12418 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
12419 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
12420 Generic functions for processing of frame parameters.
12421 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
12422 (display_x_get_resource, x_get_resource_string): Functions for
12423 generic access to X resources.
12424 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12425 (x_default_parameter, Fx_parse_geometry): Functions for generic
12426 access to frame parameters.
6901b111
SM
12427 (x_figure_window_size): Generic calculation of frame size.
12428 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
12429 (syms_of_frame): Intern and staticpro frame parameter variables.
12430 Defvar_lisp Vx_resource_class and Vx_resource_name here.
12431 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 12432
e072891b
KS
12433 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
12434 parameter related vars defined in frame.c.
12435 (EMACS_CLASS): Define here.
12436 (enum FULLSCREEN_*): Define here.
12437 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
12438 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
12439 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
12440 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
12441 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
12442 (x_set_visibility, x_set_autoraise, x_set_autolower)
12443 (x_set_unsplittable, x_set_vertical_scroll_bars)
12444 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
12445 (x_figure_window_size): Add prototypes.
12446
12447 * dispextern.h (frame_parm_handler): New typedef.
12448 (struct redisplay_interface): New member frame_parm_handlers.
12449 (enum resource_types): Move declaration here.
12450 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12451 (x_default_parameter): Add prototypes.
12452
12453 * window.c: Remove extern decl for frame parameter vars.
12454 (change_window_heights): New generic function;
12455 replaces x_change_window_heights. All users changed.
12456
12457 * window.h (change_window_heights): Add prototype.
12458
12459 * xfaces.c: Remove extern decl for frame parameter vars.
12460
12461 * xterm.h (EMACS_CLASS): Remove. Use generic define.
12462 (struct w32_display_info): Fix type of xrdb member.
12463 (enum FULLSCREEN_*): Remove.
12464 Remove prototypes for generic functions (in frame.h).
12465
12466 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12467 parameters now defined in frame.h and frame.c.
f63fd14e 12468 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12469 (enum x_frame_parms): Remove (bogus, unused enum).
12470 (check_x_display_info): Make non-static (for frame.c).
12471 (struct x_frame_parm_table, x_frame_parms): Remove.
12472 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12473 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12474 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12475 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12476 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12477 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12478 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12479 Remove. Use generic functions instead.
12480 (enum resource_types): Remove.
12481 (x_set_scroll_bar_default_width): New global function (for frame.c).
12482 (Fx_create_frame): Depend on x_figure_window_size to add space for
12483 toolbar and setup size_hint_flags.
12484 (x_frame_parm_handlers): New table for redisplay_interface.
12485 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 12486
e072891b 12487 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 12488 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12489 (x_redisplay_interface): Add x_frame_parm_handlers member.
12490
12491 * w32gui.h (XrmDatabase): New (dummy) typedef.
12492
12493 * w32term.h (EMACS_CLASS): Remove. Use generic define.
12494 (struct w32_display_info): Fix type of xrdb member.
12495 (enum FULLSCREEN_*): Remove.
12496 (x_fullscreen_adjust): Remove prototype.
12497
12498 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12499 parameters now defined in frame.h and frame.c.
f63fd14e 12500 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12501 (enum x_frame_parms): Remove (bogus, unused enum).
12502 (check_x_display_info): Make non-static (for frame.c).
12503 (struct x_frame_parm_table, x_frame_parms): Remove.
12504 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12505 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12506 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12507 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12508 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12509 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12510 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12511 Remove. Use generic functions instead.
12512 (enum resource_types): Remove.
12513 (x_set_scroll_bar_default_width): New global function (for frame.c).
12514 (Fx_create_frame): Depend on x_figure_window_size to add space for
12515 toolbar and setup size_hint_flags.
12516 (w32_frame_parm_handlers): New table for redisplay_interface.
12517 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 12518
e072891b 12519 * w32term.c: Remove unnecessary extern declarations.
52eb0373 12520 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12521 (x_redisplay_interface): Add w32_frame_parm_handlers member.
12522
12523 * w32reg.c (x_get_string_resource): Use XrmDatabase.
12524
12525 * macgui.h (XrmDatabase): New (dummy) typedef.
12526
12527 * macterm.h (EMACS_CLASS): Remove.
12528 (struct mac_display_info): Add xrdb member.
12529 (struct mac_output): Add want_fullscreen member.
12530
12531 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12532 parameters now defined in frame.h and frame.c.
f63fd14e 12533 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12534 (check_x_display_info): Make non-static (for frame.c).
12535 (struct x_frame_parm_table, x_frame_parms): Remove.
12536 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12537 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12538 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12539 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12540 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12541 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12542 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12543 Remove. Use generic functions instead.
12544 (enum resource_types): Remove.
12545 (x_set_scroll_bar_default_width): New global function (for frame.c).
12546 (mac_frame_parm_handlers): New table for redisplay_interface.
12547 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 12548
e072891b
KS
12549 * macterm.c: Remove unnecessary extern declarations.
12550 (x_redisplay_interface): Add mac_frame_parm_handlers member.
12551
3e6a560b
KS
12552 * Makefile.in (frame.o): Add dependency on blockinput.h and files
12553 included from it (atimer.h and systime.h).
12554
7b7b454e
AS
125552003-03-30 Andreas Schwab <schwab@suse.de>
12556
12557 * xdisp.c (x_insert_glyphs): Fix swapped width and height
12558 parameters for shift_glyphs_for_insert.
12559
12560 * macterm.c (x_redisplay_interface): Add missing entry for
12561 draw_vertical_window_border.
12562
beb402de
KG
125632003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12564
12565 * fileio.c (Fexpand_file_name): In the no-handler case, after
12566 expanding, look again for a handler and invoke it. This is needed
12567 for filenames like "/foo/../user@host:/bar/../baz" -- the first
12568 expansion produces "/user@host:/bar/../baz" which needs to be
12569 expanded again for the finame result "/user@host:/baz".
12570
b676f356
JD
125712003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12572
12573 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
12574 of area to be redrawn for better performance.
12575
3c671a56
SM
125762003-03-28 Stefan Monnier <monnier@cs.yale.edu>
12577
12578 * xterm.c (take_vertical_position_into_account): Remove.
12579 (xt_action_hook): Call set_vertical_scroll_bar if needed.
12580 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
12581 (xm_scroll_callback, x_create_toolkit_scroll_bar)
12582 (x_set_toolkit_scroll_bar_thumb): Simplify.
12583 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
12584 (XTread_socket): Remove unused var.
12585 (x_make_frame_invisible): Replace goto with else.
12586
12587 * xdisp.c (set_vertical_scroll_bar): New fun.
12588 (redisplay_window): Use it.
12589
84f2e615
RS
125902003-03-26 Richard M. Stallman <rms@gnu.org>
12591
12592 * xdisp.c (update_tool_bar): Recompute tool bar if
12593 update_mode_lines is set. Set w->update_mode_line
12594 only if the tool bar contents actually change.
12595 (update_menu_bar): Undo previous change.
12596
70b6104c
JD
125972003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12598
5fd6f727
JD
12599 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
12600 (xg_frame_set_char_size): Calculate scroll bar width before frame
12601 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
12602 (xg_separator_p): Check for all documented separator types.
12603 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
12604 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
12605
70b6104c
JD
12606 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
12607 so tool bar gets updated.
12608
d9b36d19
SM
126092003-03-26 Stefan Monnier <monnier@cs.yale.edu>
12610
12611 * data.c (store_symval_forwarding): Re-instate part of the code
12612 that was deleted with too much enthusiasm.
12613
126142003-03-25 Stefan Monnier <monnier@cs.yale.edu>
12615
12616 * data.c (store_symval_forwarding): Delete special read-only
12617 hack for type == -1, since we now use ->constant instead.
12618 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
12619
12620 * buffer.c (overlays_in): Declare static.
12621 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
12622 `constant' field rather than the variable's `type' field.
12623
365fa1b3
AC
126242003-03-24 Andrew Choi <akochoi@shaw.ca>
12625
12626 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
12627
12628 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
12629
12630 * fns.c [MAC_OSX]: Do not redefine vector.
12631
12632 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
12633
12634 * macgui.h: Remove definition of No_Cursor.
12635
d9b36d19 12636 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
12637
12638 * xdisp.c: Define No_Cursor.
12639 (x_write_glyphs, notice_overwritten_cursor)
12640 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
12641 (note_mouse_highlight): Remove Mac-specific code.
12642 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 12643
c0bcce6f
JPW
126442003-03-24 John Paul Wallington <jpw@gnu.org>
12645
12646 * xdisp.c (redisplay_window): If mini window's buffer is not
12647 empty, then redisplay it like other windows.
12648
a526b96c
KS
126492003-03-23 Kim F. Storm <storm@cua.dk>
12650
12651 * w32term.c (w32_draw_window_cursor): Fix last change.
12652
37ab321e
KH
126532003-03-23 Kenichi Handa <handa@m17n.org>
12654
a526b96c
KS
12655 * alloc.c (make_string_from_bytes, make_specified_string):
12656 Add `const' for the arg CONTENTS.
37ab321e
KH
12657
12658 * lisp.h (make_string_from_bytes, make_specified_string):
12659 Prototypes adjusted.
12660
7863d625
JD
126612003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12662
a526b96c 12663 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 12664
7863d625
JD
12665 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
12666 (XG_SB_RANGE): New define.
12667
12668 * gtkutil.c (xg_fixed_handle_expose): New function.
12669 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
12670 expose events.
12671 (xg_update_scrollbar_pos): Take two more arguments, left and width
12672 of scroll bar including borders.
12673 Clear left and right part outside scroll bar separately as some
12674 themes have bars that are not an even number of pixels.
d9b36d19 12675 Don't set reallocate_redraws, don't call
7863d625
JD
12676 gdk_window_process_all_updates.
12677 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
12678 so no need to change it. Calculate size and value with XG_SB_RANGE.
12679
d9b36d19
SM
12680 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
12681 Pass left and width of scroll bar including borders to
7863d625
JD
12682 xg_update_scrollbar_pos.
12683
af0ad939
TTN
126842003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
12685
12686 * Makefile.in: Make sure space precedes end-of-line backslashes.
12687
b22139fd
KS
126882003-03-22 Kim F. Storm <storm@cua.dk>
12689
12690 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
12691 Add generic versions here. Remove system specific versions
12692 defined elsewhere.
12693
12694 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
12695 Add prototypes.
12696
6e6410cf
KS
12697 * xterm.h (STORE_NATIVE_RECT): New macro.
12698
5c9cc435
KS
126992003-03-21 Kim F. Storm <storm@cua.dk>
12700
00c64fab
SM
12701 * xdisp.c (get_glyph_string_clip_rect):
12702 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
12703
12704 * dispextern.h (struct redisplay_interface): Add active_p
12705 argument to draw_window_cursor member. All uses changed.
12706
acd37560
KS
127072003-03-21 Kim F. Storm <storm@cua.dk>
12708
12709 The following changes consolidate code related to writing and
12710 inserting glyphs, exposing frame, the tool bar, the mouse face,
12711 the output cursor, and help echo from xterm.c, w32term.c and
12712 macterm.c into xdisp.c. It also generalizes the use of the
12713 window_part enum instead of using numeric values throughout.
af0ad939 12714
acd37560
KS
12715 * xdisp.c: Consolidate gui-independent code here.
12716 Include keymap.h.
12717 (Qhelp_echo): Import.
12718 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
12719 (help_echo_string, help_echo_window, help_echo_object)
12720 (previous_help_echo_string, help_echo_pos): Declare here.
12721 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
12722 (estimate_mode_line_height): Define here. Handle windowing
12723 systems directly (without using estimate_mode_line_height_hook).
12724 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
12725 (update_window_cursor, update_cursor_in_window_tree)
12726 (fast_find_position, fast_find_string_pos)
12727 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
12728 (expose_area, expose_line, expose_overlaps, expose_window)
12729 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
12730 declared static as they are only used locally in xdisp.c.
12731 (draw_glyphs): Rename from x_draw_glyphs and make static.
12732 (tool_bar_item_info, notice_overwritten_cursor): Make static.
12733 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12734 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 12735 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
12736 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12737 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
12738 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
12739 (note_mouse_highlight, x_clear_window_mouse_face)
12740 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
12741 (x_intersect_rectangles): New generic functions for use by xdisp.c
12742 and GUI front-ends.
12743 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
12744 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
12745
12746 * dispextern.h (Display_Info): Generic typedef for *_display_info.
12747 (NativeRectangle): Generic typedef for rectangle type.
12748 (enum window_part): Move here from window.c.
12749 (struct redisplay_interface): New members flush_display_optional,
12750 define_frame_cursor, clear_frame_area, draw_window_cursor,
12751 draw_vertical_window_border, shift_glyphs_for_insert.
12752 Rename member clear_mouse_face to clear_window_mouse_face.
12753 (estimate_mode_line_height_hook): Remove hook.
12754 (auto_raise_tool_bar_buttons_p): Don't declare extern.
12755 (tool_bar_item_info): Remove prototype.
12756 (help_echo_string, help_echo_window, help_echo_object)
12757 (previous_help_echo_string, help_echo_pos)
12758 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
12759 (x_stretch_cursor_p, output_cursor): Declare extern.
12760 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
12761 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
12762 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12763 (display_and_set_cursor, set_output_cursor, x_cursor_to)
12764 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
12765 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12766 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
12767 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
12768 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
12769 Add prototypes.
12770 (mode_line_string, marginal_area_string): Fix prototypes.
12771
12772 * window.c (enum window_part): Move to dispextern.h.
12773 (coordinates_in_window): Use enum window_part member names
12774 instead of numbers to describe return value.
12775 (struct check_window_data): Change part member to window_part.
12776 (check_window_containing): Return window_part unaltered.
12777 (window_from_coordinates): Change part arg from int to enum
12778 window_part. Allow part arg to be null. All users changed.
12779
12780 * window.h (window_from_coordinates): Fix prototype.
12781
12782 * term.c (estimate_mode_line_height): Move to xdisp.c.
12783
12784 * keyboard.c (make_lispy_event): Use enum window_part.
12785
12786 * dispnew.c (mode_line_string, marginal_area_string): Use enum
12787 window_part instead of int in arg list. Users changed.
12788
12789 * xterm.h (No_Cursor): Declare as None for X.
12790 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 12791
acd37560
KS
12792 * xterm.c: Remove consolidated defines and code.
12793 (BETWEEN): Remove unused macro.
12794 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
12795 (x_define_frame_cursor, x_clear_frame_area)
12796 (x_draw_window_cursor): New X-specific functions for RIF.
12797 (x_redisplay_interface): Add new members.
12798
12799 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
12800
12801 * w32term.h (struct w32_output): Remove cross_cursor member.
12802
12803 * w32term.c: Remove consolidated defines and code.
12804 (BETWEEN): Remove unused macro.
12805 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
12806 (w32_define_frame_cursor, w32_clear_frame_area)
12807 (w32_draw_window_cursor): New W32-specific functions for RIF.
12808 (w32_redisplay_interface): Add new members.
12809
a64387ee 12810 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
12811 (XRectangle): Add X compatible rectangle type.
12812 (NativeRectangle): Declare as RECT for W32.
12813 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12814
12815 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
12816
12817 * w32console.c: Remove consolidated defines and code.
af0ad939 12818
acd37560
KS
12819 * msdos.h (Display_Info): Add generic typedef.
12820
12821 * msdos.c: Remove consolidated defines and code.
12822 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
12823
12824 * macterm.h (struct mac_output): Replace member cross_cursor by
12825 hand_cursor.
12826 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
12827
12828 * macterm.c: Remove consolidated defines and code.
12829 (BETWEEN): Remove unused macro.
12830 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
12831 (mac_define_frame_cursor, mac_clear_frame_area)
12832 (mac_draw_window_cursor): New Mac-specific functions for RIF.
12833 (x_redisplay_interface): Add new members.
12834
12835 * macgui.h (No_Cursor): Define as 0 for Mac.
12836 (XRectangle): Add X compatible rectangle type.
12837 (NativeRectangle): Declare as Rect for Mac.
12838 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12839
204ccab1
KS
12840 * macfns.c (x_set_mouse_color): Setup hand_cursor.
12841 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 12842
9443fcf6 12843 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
12844 included from it. Add dependency on keymap.h.
12845
12846 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
12847
8ba01a70 128482003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
12849
12850 * fileio.c (Fexpand_file_name): Fix previous change.
12851
8ba01a70 128522003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
12853
12854 * fileio.c (Ffile_name_directory): Reconstruct file name by
12855 make_specified_string.
12856 (Ffile_name_nondirectory, Ffile_name_as_directory)
12857 (Fdirectory_file_name, Fexpand_file_name)
12858 (Fsubstitute_in_file_name): Likewise.
12859 (Fread_file_name): Compare decoded homedir with DIR and
12860 DEFAULT_FILENAME.
12861
12862 * alloc.c (make_specified_string): If NCHARS is negative, count
12863 the number of characters.
12864
19536747
JD
128652003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12866
de38ae5a
JD
12867 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
12868 all widgets.
12869
19536747
JD
12870 * gtkutil.h: Removed xg_ignore_next_thumb.
12871
37ab321e 128722003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
12873
12874 * coding.c (Vchar_coding_system_table): Remove this variable.
12875 (Vcoding_system_safe_chars): New variable.
12876 (intersection): Remove this function.
12877 (find_safe_codings): Don't use Vchar_coding_system_table, but try
12878 all codings in SAFE_CODINGS.
00c64fab 12879 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
12880 find_safe_codings. Get generic coding systems from
12881 Vcoding_system_safe_chars.
12882 (Fdefine_coding_system_internal): New function.
12883 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
12884 Initialize and staticpro Vcoding_system_safe_chars.
12885
17097258
JD
128862003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12887
2a2071c3
JD
12888 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
12889 equal old values before updating.
12890
17097258
JD
12891 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
12892
12893 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
12894
128952003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12896
12897 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
12898 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
12899 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
12900 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
12901 (xg_create_scroll_bar): Pass bar to button event callback.
12902 (xg_find_top_left_in_fixed): New function.
12903 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
12904 whole scroll bar area. Get old position with
12905 xg_find_top_left_in_fixed, calculate and only clear needed areas.
12906 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
12907 dragging is in progress. Calculate whole as for Motif.
12908 Remove code that saved last values. Call gtk_range functions to
12909 set scroll bar sizes.
12910
12911 * gtkutil.h: Removed xg_ignore_next_thumb.
12912
8cb9dfbf
JB
129132003-03-17 Juanma Barranquero <lektu@terra.es>
12914
12915 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
12916 and files included from it.
12917
00c64fab
SM
129182003-03-18 Stefan Monnier <monnier@cs.yale.edu>
12919
12920 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
12921 multiple occurrences of the same keymap under different prefixes.
12922 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
12923
c45bb3b2
JR
129242003-03-16 Jason Rumney <jasonr@gnu.org>
12925
12926 * w32gui.h: Use HDC for Display.
12927
12928 * w32term.c (w32_encode_char): Prevent double-byte chars from
12929 crashing Emacs.
12930
12931 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
12932 as binary.
12933
2a6d0874
JB
129342003-03-16 Juanma Barranquero <lektu@terra.es>
12935
12936 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
12937
03eb5fab
KS
129382003-03-16 Kim F. Storm <storm@cua.dk>
12939
12940 The following changes consolidate some of the gui-independent
12941 parts of the processing and drawing of "glyph strings" from
12942 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 12943
03eb5fab
KS
12944 * dispextern.h (struct glyph): Reduce face_id member from 22 to
12945 21 bits (this reduces number of faces from 4M to 2M).
12946 Replace W32 specific w32_font_type member (2 bits) by generic
12947 font_type member (3 bits) for portability.
12948 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
12949 (enum draw_glyphs_face): Define here.
12950 (struct glyph_string): Define here. Merge W32 and X versions.
12951 (struct redisplay_interface): New members per_char_metric,
12952 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
12953 (VCENTER_BASELINE_OFFSET): Define here.
12954 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
12955 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
12956
12957 * xdisp.c: Consolidate gui-independent "glyph string" code here.
12958 (dump_glyph_string): Moved here.
12959 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
12960 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
12961 (fill_composite_glyph_string, fill_glyph_string)
12962 (fill_image_glyph_string, fill_stretch_glyph_string)
12963 (left_overwritten, left_overwriting, right_overwritten)
12964 (right_overwriting, get_char_face_and_encoding)
12965 (set_glyph_string_background_width, compute_overhangs_and_x)
12966 (append_glyph, append_composite_glyph, produce_image_glyph)
12967 (take_vertical_position_into_account, append_stretch_glyph)
12968 (produce_stretch_glyph): New generic functions (based on X version).
12969 Call platform specific functions through rif.
12970 (INIT_GLYPH_STRING): New macro, hides W32 details.
12971 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
12972 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
12973 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
12974 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
12975 (notice_overwritten_cursor):
12976 Generic functions exported to platform modules. Users changed.
12977
12978 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
12979 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
12980 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 12981 New macros for consolidated code.
2a6d0874 12982
03eb5fab
KS
12983 * xterm.c: Remove consolidated defines and code.
12984 (x_per_char_metric, x_encode_char)
12985 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
12986 (x_redisplay_interface): Add new members.
12987
12988 * w32gui.h (Display): Add dummy typedef for consolidation.
12989 (XChar2b): Define alias for wchar_t for consolidation.
12990 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
12991
12992 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 12993 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
12994 New macros for consolidation.
12995
fad49844 12996 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
12997 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
12998 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
12999 (w32_per_char_metric): Change font_type arg to int for RIF.
13000 (w32_encode_char): Return int according to RIF requirements.
13001 (w32_compute_glyph_string_overhangs): Adapt to RIF.
13002 (w32_get_glyph_overhangs): New function for RIF. Uses generic
13003 x_get_glyph_overhangs.
13004 (w32_redisplay_interface): Add new members.
13005
13006 * macgui.h (XChar2b): Move typedef here for consolidation.
13007 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13008
13009 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
13010 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
13011 consolidation.
13012
13013 * macterm.c: Remove consolidated defines and code.
13014 (mac_per_char_metric): New function for RIF.
00c64fab 13015 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
13016 (mac_compute_glyph_string_overhangs): Adapt for RIF.
13017 (x_redisplay_interface): Add new members.
13018
00c64fab
SM
130192003-03-15 Stefan Monnier <monnier@cs.yale.edu>
13020
13021 * keymap.c (Vmenu_events): New var.
13022 (syms_of_keymap): Initialize it.
13023 (where_is_internal): Check more carefully what is a menu event.
13024
225c7a07
RS
130252003-03-14 Richard M. Stallman <rms@gnu.org>
13026
13027 * lread.c (read1): After #!, exit loop on eof.
13028
cea9be54
JD
130292003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13030
9ea0e54d
JD
13031 * gtkutil.h: Add declaration for xg_frame_cleared.
13032
0cb35f4e
JD
13033 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
13034
cea9be54
JD
13035 * gtkutil.c (struct xg_last_sb_pos): New structure.
13036 (handle_fixed_child): New function.
13037 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
13038 and force a redraw on them.
13039 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
13040 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
13041 so we can avoid unneeded redraws.
13042 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
13043 and force a redraw on the scroll bar.
13044 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
13045 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 13046 (xg_frame_cleared): New function.
cea9be54 13047
20b853f3
KH
130482003-03-13 Kenichi Handa <handa@m17n.org>
13049
13050 * coding.c (Fdetect_coding_region): Fix docstring.
13051 (Fdetect_coding_string): Fix docstring.
13052
7a555aff
AS
130532003-03-13 Andreas Schwab <schwab@suse.de>
13054
25cc0080
AS
13055 * gtkutil.c: Add prototype for create_menus.
13056
30225431
AS
13057 * data.c (long_to_cons): Fix type of top.
13058
13059 * xselect.c (selection_data_to_lisp_data): Use int instead of
13060 long for an integer of size 4.
13061
7a555aff 13062 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 13063 (xg_tool_bar_help_callback): Likewise.
7a555aff 13064
a3e4741f
AS
130652003-03-12 Andreas Schwab <schwab@suse.de>
13066
13067 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
13068
9668be7c
KS
130692003-03-12 Kim F. Storm <storm@cua.dk>
13070
03eb5fab 13071 The following changes consolidate the fringe handling from
9668be7c 13072 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 13073
9668be7c
KS
13074 * xdisp.c: Consolidate fringe handling code here.
13075 (left_bits, right_bits, continued_bits, continuation_bits)
13076 (ov_bits, zv_bits): Define fringe bitmaps.
13077 (fringe_bitmaps): New array holding fringe bitmaps.
13078 (draw_fringe_bitmap): Draw a specific bitmap; call display
13079 specific drawing routine via rif->draw_fringe_bitmap.
13080 (draw_row_fringe_bitmaps): Generic replacement for
13081 x_draw_row_fringe_bitmaps; all callers changed.
13082 (compute_fringe_widths): Generic replacement for
13083 x_compute_fringe_widths; all callers changed.
13084
13085 * dispextern.h (enum fringe_bitmap_type): Define here.
13086 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
13087 (fringe_bitmaps): Declare extern.
13088 (struct redisplay_interface): New member draw_fringe_bitmap.
13089 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
13090
13091 * xterm.c: Remove generic fringe code.
13092 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13093 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13094
13095 * w32term.c: Remove generic fringe code.
13096 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
13097 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 13098
9668be7c
KS
13099 * macterm.c: Remove generic fringe code.
13100 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13101 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13102
00a88f32
SM
131032003-03-11 Stefan Monnier <monnier@cs.yale.edu>
13104
13105 * print.c (Fprin1_to_string): Return unibyte string if possible.
13106
1d1de695
DK
131072003-03-09 David Kastrup <dak@gnu.org>
13108
13109 * process.c (read_process_output): We have allocated enough space
13110 for readmax and carryover, so actually use the alloted space.
13111
257f40f2
JD
131122003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13113
13114 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
13115 toolkit scrollbar click.
13116
13117 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
13118 for USE_GTK.
13119 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
13120 also.
1d1c7e75 13121 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 13122 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 13123
78819ebb 13124 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
13125
13126 * gtkutil.c (xg_get_scroll_id_for_window): New function.
13127 (xg_tool_bar_item_expose_callback): New function.
13128 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
13129 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
13130 on the tool bar widget.
13131 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
13132 to expose on the tool bar item widgets.
13133
15213141
JD
131342003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13135
26b74a0b 13136 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 13137 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
13138 deleted from the image cache).
13139
15213141
JD
13140 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
13141 the event isn't for a frame (i.e. for dialogs).
13142
20b853f3 131432003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
13144
13145 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
13146 composition components reaches the limit, terminate composing.
13147 (COMPOSITION_OK): New macro.
00a88f32 13148 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
13149 composition is found.
13150 (coding_restore_composition): Adjust the number of composition
13151 components if it is not sane.
13152
c9029fe5
JB
131532003-03-06 Juanma Barranquero <lektu@terra.es>
13154
13155 * w32term.h (struct w32_display_info): Add xrdb member to support
13156 passing resources via -xrm on Windows.
13157
13158 * w32term.c (w32_make_rdb): New function.
13159 (w32_term_init): Use it to initialize xrdb member of w32_display_info
13160 struct. Delete leftover code.
13161
13162 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
13163 for resources passed on the command line.
13164
13165 * w32reg.c (w32_get_rdb_resource): New function.
13166 (x_get_string_resource): Use it, so resources passed with -xrm
13167 supercede the ones in the registry.
13168
9d00001f
JD
131692003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13170
13171 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
13172 instead of x_top_window_to_frame.
13173
ca2417b9
JD
131742003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13175
13176 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
13177 when restarting Emacs.
13178
5b20caf0
RS
131792003-03-03 Richard M. Stallman <rms@gnu.org>
13180
13181 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
13182 to run kill-buffer-query-functions.
13183 (Qkill_buffer_query_functions): New var.
13184 (syms_of_buffer): Init and staticpro it.
13185
58e91b77
JD
131862003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13187
13188 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
13189
932357b4
KS
131902003-02-25 Kim F. Storm <storm@cua.dk>
13191
13192 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
13193 If centering point failed to make whole line visible and vscroll
13194 is non-zero, disable vscroll and try centering point again.
13195
13196 * lread.c (read1): Accept `single space' syntax like (? x).
13197
bb8db7e1
JD
131982003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13199
13200 * keyboard.c (cancel_hourglass_unwind): Surround with
13201 #ifdef HAVE_X_WINDOWS
13202
47d77aab
KH
132032003-02-25 Kenichi Handa <handa@m17n.org>
13204
13205 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
13206 process only when "subprocesses" is defined.
13207
6a097c0c
SM
132082003-02-24 Stefan Monnier <monnier@cs.yale.edu>
13209
13210 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
13211
0b063c27
JB
132122003-02-24 Juanma Barranquero <lektu@terra.es>
13213
d1135afc
JB
13214 * callint.c (fix_command): Declare as static void and move before
13215 Fcall_interactively.
13216
0b063c27
JB
13217 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
13218 (syms_of_xdisp): Don't initialize Qwhen.
13219
0af912f0
JD
132202003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13221
13222 * keyboard.c (cancel_hourglass_unwind): New function.
13223 (command_loop_1): Cancel hourglass with unwind-protect.
13224
120d0a23
RS
132252003-02-23 Richard M. Stallman <rms@gnu.org>
13226
13227 * callint.c (fix_command): New subroutine, from Fcall_interactively.
13228 Detect (when ... (region-beginning)) etc.
13229 (Fcall_interactively): Call fix_command.
13230 (Qif, Qwhen): New variables.
13231 (syms_of_callint): Init and staticpro them.
0b063c27 13232
120d0a23
RS
13233 * regex.c (print_partial_compiled_pattern): Output to stderr.
13234
4ece81a6
KG
132352003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13236
13237 * dired.c (directory_files_internal): Don't expand directory.
13238 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
13239 instead. From Lars Hansen <larsh@math.ku.dk>.
13240
e52bd6b7
SM
132412003-02-22 Stefan Monnier <monnier@cs.yale.edu>
13242
13243 * fns.c (string_to_multibyte): Remove unused var i.
13244 (Flanginfo): Fix int/Lisp_Object mixup.
13245 (void_call2): New fun.
13246 (Fmap_char_table): Use it in place of call2.
13247
13248 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
13249
13250 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
13251
13252 * keymap.c (copy_keymap_1): Make it static.
13253
13254 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
13255
c33ef7c4
JB
132562003-02-22 David Ponce <david@dponce.com>
13257
13258 * lread.c (Fload): Don't check STRING_MULTIBYTE.
13259
16782258
JD
132602003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13261
13262 * process.h: Removed subtty field from struct Lisp_Process.
13263
13264 * process.c (create_process): Remove setting of subtty.
13265 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
13266 (Fprocess_running_child_p, process_send_signal):
13267 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
13268 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
13269
3abeca61
KG
132702003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13271
13272 * keymap.c (Fdefine_key): Doc fix.
13273
92a8ce63
JB
132742003-02-21 Juanma Barranquero <lektu@terra.es>
13275
13276 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
13277
13278 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
13279 POLLING_PROBLEM_IN_SELECT.
13280
13281 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
13282 Delete #undef of POLLING_PROBLEM_IN_SELECT.
13283
13284 * s/hpux10-20.h: New file.
13285
e52bd6b7
SM
13286 * process.c (wait_reading_process_input):
13287 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 13288
20f1ef2e
KH
132892003-02-20 Kenichi Handa <handa@m17n.org>
13290
32d0a9dc
KH
13291 * fontset.c (check_fontset_name): If NAME is nil, return the
13292 default fontset.
13293 (override_font_info): New function.
e52bd6b7 13294 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
13295 (Ffontset_info): If FONTSET is not the default fontset, merge
13296 FONTSET onto the copy of the default fontset, and work on that
13297 copy. Document that NAME nil means the default fontset.
13298 (Ffontset_font): Document that NAME nil means the default fontset.
13299
20f1ef2e
KH
13300 * process.c (setup_process_coding_systems): If the process's
13301 in/out descriptor is -1, do nothing.
13302
77d1daf2
AS
133032003-02-19 Andreas Schwab <schwab@suse.de>
13304
e52bd6b7
SM
13305 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
13306 Add prototypes.
77d1daf2 13307
f9a45bb3
KH
133082003-02-19 Kenichi Handa <handa@m17n.org>
13309
13310 * xfaces.c (try_alternative_families): Try all scalable fonts if
13311 Vscalable_fonts_allowed is not Qt.
13312
72ecb43c
JD
133132003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13314
13315 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
13316
ee5be7c3
JD
133172003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13318
13319 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
13320 names.
13321
13322 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 13323 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
13324 x_face_list_fonts.
13325 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
13326 (Fx_list_fonts): Set maxnames to -1 to get all font names.
13327
4cd519a7
KS
133282003-02-18 Kim F. Storm <storm@cua.dk>
13329
068f9882
KS
13330 * lread.c (read1): Fix last change.
13331 "`" is not always special. Allow "?" after a character constant.
4cd519a7 13332
7290a344
AC
133332003-02-18 Andrew Choi <akochoi@shaw.ca>
13334
13335 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
13336
1f7fa69b
AS
133372003-02-18 Andreas Schwab <schwab@suse.de>
13338
13339 * window.c (window_scroll_pixel_based): Move outside a
13340 multi-glyph character before setting new window start.
13341
13342 * xdisp.c (in_display_vector_p): New function.
13343 * dispextern.h (in_display_vector_p): Declare.
13344
23e21195
KS
133452003-02-18 Kim F. Storm <storm@cua.dk>
13346
13347 * lread.c (read1): Fix and relax read syntax.
13348 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
13349 Only recognize "," after dotted-pair dot if inside backquote.
13350 Never include "`" or "," (inside backquote) in a symbol.
13351 Allow dotted-pair dot after a character constant.
13352 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 13353
f098b121
JD
133542003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13355
13356 * gtkutil.c (xg_tool_bar_expose_callback): New function.
13357 (xg_create_tool_bar): Force style of tool bar to be horizontal with
13358 icons. Set name of tool bar to emacs-toolbar.
13359 (update_frame_tool_bar): Connect expose event to
13360 xg_tool_bar_expose_callback.
13361
63020c46
RS
133622003-02-17 Richard M. Stallman <rms@gnu.org>
13363
13364 * keyboard.c (this_command_key_count_reset): New variable.
13365 Initiatize to 0 where this_command_key_count is set.
13366 (read_char): Save and restore this_command_key_count_reset
13367 around input method code.
13368 (read_char): If this_command_key_count_reset, echo reread commands.
13369 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
13370
fb4452cc
KH
133712003-02-17 Kenichi Handa <handa@m17n.org>
13372
13373 * fns.c (string_to_multibyte): Always return a multibyte string.
13374
bd11cc09
JR
133752003-02-16 Jason Rumney <jasonr@gnu.org>
13376
e52bd6b7
SM
13377 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
13378 Negative max_fonts parameter means list all.
bd11cc09 13379
4cdf4bde
DL
133802003-02-14 Dave Love <fx@gnu.org>
13381
13382 * fns.c (Flanginfo): Doc fix.
13383
023b93f6
KS
133842003-02-13 Kim F. Storm <storm@cua.dk>
13385
37cd4238
KS
13386 * lread.c (read_escape): Interpret \s as a SPACE character, except
13387 for \s-X in a character constant which still is the super modifier.
13388 (read1): Signal an `invalid read syntax' error if a character
13389 constant is immediately followed by a digit or symbol character.
13390
140a6b7e
KS
13391 * search.c (Fmatch_data): Doc fix. Explicitly state that
13392 match-data is undefined if last search failed.
13393
3419757d 13394 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
13395 All uses changed.
13396
7d5c86e5
JB
133972003-02-12 Juanma Barranquero <lektu@terra.es>
13398
13399 * eval.c (Fdefmacro): Fix typo.
13400
295fff2c
KS
134012003-02-12 Kim F. Storm <storm@cua.dk>
13402
13403 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
13404 macro is a string, convert meta modifiers in string when copying
13405 the string into a vector.
13406
60f3202d
KS
134072003-02-11 Kim F. Storm <storm@cua.dk>
13408
13409 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
13410
61cb0b53
KH
134112003-02-11 Kenichi Handa <handa@m17n.org>
13412
13413 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
13414
7392e23c
KS
134152003-02-10 Kim F. Storm <storm@cua.dk>
13416
13417 * process.c: Doc fixes.
13418 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
13419
ce4254bd
KH
134202003-02-10 Kenichi Handa <handa@m17n.org>
13421
9c7a329a
KH
13422 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
13423
ce4254bd
KH
13424 * process.c (QCfilter_multibyte): New variable.
13425 (setup_process_coding_systems): New function.
e52bd6b7
SM
13426 (Fset_process_buffer, Fset_process_filter):
13427 Call setup_process_coding_systems.
ce4254bd
KH
13428 (Fstart_process): Initialize the member `filter_multibyte' of
13429 struct Lisp_Process.
13430 (create_process): Call setup_process_coding_systems.
13431 (Fmake_network_process): New keyward `:filter-multibyte'.
13432 Initialize the member `filter_multibyte' of struct Lisp_Process.
13433 Call setup_process_coding_systems.
13434 (server_accept_connection): Call setup_process_coding_systems.
13435 (read_process_output): If the process has a filter, decide the
13436 multibyteness of a string to given to the filter by
13437 `filter_multibyte' member of the process. If the process doesn't
13438 have a filter and the result of conversion is unibyte, use
13439 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
13440 multibyte form.
13441 (Fset_process_coding_system): Call setup_process_coding_systems.
13442 (Fset_process_filter_multibyte): New function.
13443 (Fprocess_filter_multibyte_p): New function.
13444 (syms_of_process): Intern and staticpro QCfilter_multibyte.
13445 Defsubr Sset_process_filter_multibyte and
13446 Sprocess_filter_multibyte_p.
13447
13448 * process.h (struct Lisp_Process): New member filter_multibyte.
13449
13450 * lisp.h (setup_process_coding_systems): Add prototype.
13451
13452 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
13453 process, update coding systems for the process.
13454
b08d5f59
KH
134552003-02-09 Kenichi Handa <handa@m17n.org>
13456
13457 * fns.c (string_to_multibyte): New function.
13458 (Fstring_to_multibyte): New function.
13459 (syms_of_fns): Defsubr it.
13460
0dfd93c0
AS
134612003-02-08 Andreas Schwab <schwab@suse.de>
13462
13463 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
13464 instead of the substitution.
13465
7b76ca1c
JD
134662003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13467
13468 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
13469
13470 * xmenu.c (menu_position_func): Adjust menu popup position so that
13471 the menu is fully visible.
7b76ca1c 13472
2436a4e4
JD
134732003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13474
13475 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
13476 (x_make_frame_invisible, x_wm_set_icon_position):
13477 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
13478
13479 * xfns.c (x_set_name, x_set_title): Ditto.
13480
37d1e680
RS
134812003-02-04 Richard M. Stallman <rms@gnu.org>
13482
13483 * keyboard.c (echo_now): Update before_command_echo_length.
13484 (Freset_this_command_lengths): Reset this_command_key_count etc.
13485 immediately rather than arranging to do it later.
13486 (before_command_key_count_1, before_command_echo_length_1)
13487 (before_command_restore_flag): Vars deleted.
13488 (add_command_key): Don't handle before_command_restore_flag.
13489 (read_char, record_menu_key): Don't update before_command_key_count or
13490 before_command_echo_length.
13491 (read_char): Don't handle before_command_restore_flag.
13492
13493 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
13494 in direct-output clauses if it wouldn't be called in the ordinary case.
13495
578846a3
KS
134962003-02-04 Kim F. Storm <storm@cua.dk>
13497
13498 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
13499
49853a4d
JD
135002003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13501
13502 * gtkutil.c (remove_from_container): Copying list is not needed.
13503 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
13504 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
13505 on list returned from gtk_container_get_children to avoid memory leak.
13506
8b53dc06
JR
135072003-02-01 Jason Rumney <jasonr@gnu.org>
13508
5d54d177
JR
13509 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
13510 local malloc.
13511 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
13512 definitions in xpm.h.
13513 (init_xpm_functions): New function.
f63fd14e 13514 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
13515 (init_external_image_libraries): Try to load libXpm.dll.
13516
8b53dc06
JR
13517 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
13518 timestamp.
13519
b222e415
DL
135202003-01-31 Dave Love <fx@gnu.org>
13521
13522 * syntax.c (Fskip_chars_forward)
13523 (open-paren-in-column-0-is-defun-start): Doc fix.
13524
c60ee5e7
JB
135252003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
13526
13527 * fileio.c: Support // at start of name for Cygwin (just added proper
13528 preprocessor tests).
13529
13530 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
13531
13532 * Makefile.in: Use @EXEEXT@ for Cygwin.
13533
13534 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
13535
13536 * s/cygwin.h: Added for Cygwin port.
13537
53b37591
JB
135382003-01-31 Juanma Barranquero <lektu@terra.es>
13539
13540 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
13541 when including gif_lib.h.
fe929957 13542 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
13543 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
13544 Windows. Disable color table lookups. Call library functions
53b37591 13545 through pointers determined at runtime.
fe929957
JB
13546 (init_external_image_libraries): Try to load libungif.dll and
13547 libtiff.dll.
53b37591 13548
45415a8f
KH
135492003-01-31 Kenichi Handa <handa@m17n.org>
13550
13551 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 13552 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 13553
a97e4138
JD
135542003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13555
e52bd6b7 13556 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 13557
6eed9bed
DL
135582003-01-30 Dave Love <fx@gnu.org>
13559
13560 * alloc.c (Vgc_elapsed, gcs_done): New variables.
13561 (Fgarbage_collect): Use them.
13562 (init_alloc, syms_of_alloc): Set them up.
13563
100dcd40
JB
135642003-01-30 Juanma Barranquero <lektu@terra.es>
13565
13566 * w32fns.c (init_external_image_libraries): Add missing operator.
13567
fbd852af
JR
135682003-01-29 Jason Rumney <jasonr@gnu.org>
13569
13570 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
13571 an alternative name for jpeg.dll.
13572
8a2d8020
KH
135732003-01-29 Kenichi Handa <handa@m17n.org>
13574
13575 * xdisp.c (set_cursor_from_row): Pay attention to string display
13576 properties.
13577
058c18c7
AC
135782003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
13579
13580 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
13581 <escape>.
13582 (keycode_to_xkeysym_table): Reformat and add more comments.
13583 (XTread_socket): Drop special case for backspace.
13584
385f11cf
AC
135852003-01-28 Andrew Choi <akochoi@shaw.ca>
13586
13587 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
13588 values in old-style RGB specs.
13589
c922a224
JB
135902003-01-27 Juanma Barranquero <lektu@terra.es>
13591
13592 * w32fns.c (init_external_image_libraries): Try alternate names for the
13593 jpeg dll.
13594
0a1d6de0
JD
135952003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13596
13597 * gtkutil.c (create_dialog, xg_separator_p)
13598 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
13599 before calling strcmp or strlen.
13600
a97e4138 136012003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
13602
13603 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
13604 and handle image load failure.
13605
28908312
JR
136062003-01-26 Jason Rumney <jasonr@gnu.org>
13607
13608 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
13609 New functions.
f63fd14e
JB
13610 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
13611 Disable color table lookups. Call jpeg library functions
28908312
JR
13612 through pointers determined at runtime.
13613 (init_external_image_libraries): Try to load jpeg.dll.
13614
84e47416
RS
136152003-01-25 Richard M. Stallman <rms@gnu.org>
13616
13617 * lisp.h: Declare format2 instead of format1.
13618
13619 * fileio.c (barf_or_query_if_file_exists):
13620 Call format2 instead of format1.
13621
13622 * editfns.c (format2): New function, replaces format1
13623 but takes exactly two Lisp Objects as format args.
13624
13625 * buffer.c (Fkill_buffer): Call format2 instead of format1.
13626
a97e4138 136272003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
13628
13629 * xterm.h: Change to return value of x_dispatch_event to int.
13630
13631 * xterm.c (x_filter_event): New function.
13632 (event_handler_gdk, XTread_socket): Call x_filter_event.
13633 (x_dispatch_event): Change to return value of finish.
13634 (event_handler_gdk): Use return value from x_dispatch_event.
13635
13636 * xfns.c (x_window): Call create_frame_xic for GTK version to
13637 initialize input methods.
13638
13639 * gtkutil.h: Add (void) prototypes.
13640
13641 * gtkutil.c (create_menus): Remove code that puts the help menu to
13642 the right.
13643
54eefef1
JR
136442003-01-25 Jason Rumney <jasonr@gnu.org>
13645
13646 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
13647 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
13648 (png_load): Adjust colors for Windows. Use Windows
13649 bitmaps. Disable color table lookups.
c262430d
JR
13650 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
13651 (init_png_functions): New function.
13652 (png_read_from_memory, png_load): Call png library functions
13653 through pointers determined at runtime.
13654 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
13655 (init_external_image_libraries): New function.
13656 (init_xfns): Call it.
54eefef1 13657
1a9e275b
AS
136582003-01-24 Andreas Schwab <schwab@suse.de>
13659
13660 * minibuf.c (Fminibuffer_message): Verify type of parameter.
13661
a97e4138 136622003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
13663
13664 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
13665 of static initializer.
13666
422eec7e
DL
136672003-01-24 Dave Love <fx@gnu.org>
13668
13669 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
13670 architectures.
13671
13672 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
13673 Use __alignof__.
13674
2a026b04
KH
136752003-01-24 Kenichi Handa <handa@m17n.org>
13676
13677 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 13678 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
13679 (command_loop_1): Call adjust_point_for_property with proper
13680 second arg.
13681
a18bb28d
JR
136822003-01-22 Jason Rumney <jasonr@gnu.org>
13683
13684 Sync changes with xterm.c and xfns.c.
13685
13686 * w32term.c (x_draw_glyph_string_foreground)
13687 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13688
13689 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
13690 phys_cursor's hpos is overwritten. This is still not completely
13691 correct, as it doesn't really make sense to use hpos at all to
13692 get the cursor glyph (as that is relative to the width of the
13693 characters on the line, which may have changed during the update).
13694
13695 * w32term.c (notice_overwritten_cursor): Handle the special case
13696 of the cursor being in the first blank non-text line at the
13697 end of a window.
13698
13699 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13700 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13701 Compute from the x position returned by x_draw_glyphs.
13702
13703 (x_display_and_set_cursor): Don't set phys_cursor_width here,
13704 except for NO_CURSOR and system caret, to make phys_cursor_width
13705 contain what its name suggests.
13706 (notice_overwritten_cursor): Consider the cursor image erased if
13707 the output area intersects the cursor image in y-direction.
13708
6a097c0c
SM
13709 * w32term.c (note_mode_line_or_margin_highlight): Rename from
13710 note_mode_line_highlight and extend.
a18bb28d
JR
13711
13712 * w32term.c (last_window): New variable.
13713 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
13714 (note_mouse_movement): Remove reimplemented code in #if 0.
13715
13716 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
13717 not update_mode_lines, and always set it to 1.
13718
ac6e47ef
JR
137192003-01-21 Jason Rumney <jasonr@gnu.org>
13720
13721 * w32fns.c (IDC_HAND): Define it if system headers don't.
13722
137232003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13724
13725 * w32term.h (struct w32_output): New member hand_cursor.
13726 (WM_EMACS_SETCURSOR): New message definition.
13727
13728 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
13729 function w32_define_cursor.
13730 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
13731 position, change member name output_data.x to output_data.w32 and
13732 add function w32_define_cursor.
13733 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
13734 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
13735 (w32_initialize_display_info):
13736 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
13737
13738 * w32fns.c (Vx_hand_shape): New variable.
13739 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
13740 WM_EMACS_SETCURSOR.
13741 (x-create-frame): Setup Cursor types.
13742
ceb39a17
JB
137432003-01-21 David Ponce <david@dponce.com>
13744
ac6e47ef 13745 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
13746 ccl->reg[2] to -1 before calling ccl_driver.
13747 (Sync. with xterm.c x_encode_char change by Kenichi Handa
13748 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
13749 (w32_draw_relief_rect): Declare all args.
13750 (w32_define_cursor): New.
13751
13752 * w32fns.c (w32_load_cursor): New function.
13753 (w32_init_class): Use it.
13754 (x_put_x_image): Declare all args.
13755
b6189c3b 137562003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
13757
13758 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
13759
a97e4138 137602003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
13761
13762 * gtkutil.c: Must include stdio.h before termhooks.h
13763
83fc9c63
DL
137642003-01-21 Dave Love <fx@gnu.org>
13765
13766 * alloc.c (Fgc_status): Print zombie list.
13767 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13768 Fix assignment of zombies.
13769 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13770 Don't take car of non-cons.
13771
13772 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13773
13774 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13775
fe04b8c8
JR
137762003-01-20 David Ponce <david@dponce.com>
13777
13778 * w32menu.c (digest_single_submenu): Declare all args.
13779
13780 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
13781 changes in xmenu.c:
13782
13783 (parse_single_submenu): Use individual keymap's prompt
13784 string as pane name, if there is one.
13785 (set_frame_menubar): Save menu_items_n_panes from each call to
13786 parse_single_submenu and use it when calling digest_single_submenu.
13787
539e69a9
ST
137882003-01-20 Steven Tamm <steventamm@mac.com>
13789
7e26f91b 13790 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
13791 before sending a scroll-wheel event.
13792
675d000f
RS
137932003-01-20 Richard M. Stallman <rms@gnu.org>
13794
13795 * xdisp.c (redisplay_window): If mini window's buffer is not
13796 a minibuffer, then redisplay it like other windows.
13797
a97e4138 137982003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
13799
13800 * gtkutil.c (xg_create_frame_widgets): Check if there is an
13801 external tool bar before setting tool bar height.
13802
048addec
JD
138032003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13804
13805 * xterm.c (handle_one_xevent): Surround popup_activated
13806 with #ifdef:s for non-toolkit version.
13807
13808 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
13809 (gtkutil.o): New file.
13810 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
13811 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
13812
13813 * gtkutil.c: New file for GTK version.
13814
13815 * gtkutil.h: New file for GTK version.
13816
13817 * xterm.h: Add xt_or_gtk_widget.
13818 Include gtk files for USE_GTK.
13819 (struct x_output): Add toolbar_height.
13820 (struct x_output): Add GTK widgets and Gdk size_hints.
13821 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
13822 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
13823 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
13824
13825 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 13826 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
13827 (note_mouse_highlight): Check popup_activated for USE_GTK.
13828 (xt_action_hook): Don't compile if USE_GTK.
13829 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
13830 (xg_scroll_callback): New function.
13831 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
13832 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
13833 for USE_GTK.
13834 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
13835 xg_show_scroll_bar for USE_GTK.
13836 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
13837 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
13838 (event_handler_gdk): New function for USE_GTK.
13839 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
13840 (handle_one_xevent): Make sure widget is mapped before
13841 calling x_real_positions for USE_GTK.
13842 (XTread_socket): Add GTK event loop for USE_GTK.
13843 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
13844 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
13845 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
13846 (x_iconify_frame): Add code for USE_GTK.
13847 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
13848 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
13849 is in gtkutil.c.
13850 (x_term_init): Add initialization for GTK.
13851 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
13852
13853 * xmenu.c: Include gtkutil.h for USE_GTK.
13854 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
13855 (single_menu_item, single_menu_item, Fx_popup_dialog):
13856 Check for USE_GTK.
048addec
JD
13857 (popup_widget_loop): New function for USE_GTK.
13858 (x_activate_menubar): Add code for USE_GTK.
13859 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
13860 (menu_highlight_callback, menubar_selection_callback):
13861 Add USE_GTK versions.
048addec
JD
13862 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
13863 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
13864 (free_frame_menubar): Only compile if not USE_GTK. GTK version
13865 is in gtkutil.c.
13866 (popup_selection_callback): New version for USE_GTK.
13867 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 13868 one USE_X_TOOLKIT version.
048addec
JD
13869 (xmenu_show): Call create_and_show_popup_menu.
13870 (dialog_selection_callback): New version for USE_GTK.
13871 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 13872 one USE_X_TOOLKIT version.
048addec
JD
13873 (xdialog_show): Call create_and_show_dialog.
13874
13875 * xfns.c: Include gtkutil for USE_GTK.
13876 (x_window_to_frame, x_any_window_to_frame)
13877 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13878 (x_top_window_to_frame): Add code for USE_GTK.
13879 (x_set_background_color): Call xg_set_background_color for GTK.
13880 (x_set_menu_bar_lines): Check for USE_GTK.
13881 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
13882 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
13883 (x_window): Call xg_create_frame_widgets for USE_GTK.
13884 (Fx_create_frame): Check for USE_GTK
13885 (Fx_file_dialog): New implementation for USE_GTK.
13886
13887 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
13888 (update_menu_bar): Add check for USE_GTK.
13889 (update_tool_bar): Add check for USE_GTK and external tool bar.
13890 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
13891 (redisplay_internal): Add check for USE_GTK and popup_activated.
13892 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
13893 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
13894 (display_menu_bar): Add check for USE_GTK
13895
78819ebb 13896 * lisp.h (Vx_resource_name): Declare extern.
048addec 13897
a64387ee 13898 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
13899 for USE_GTK.
13900 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
13901
13902 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
13903 (FRAME_EXTERNAL_TOOL_BAR): New macro.
13904 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
13905
13906 * fileio.c (Fread_file_name): Add check for USE_GTK.
13907
6bdb309a
SM
13908 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
13909 Add check for USE_GTK.
048addec
JD
13910
13911 * config.in: Added HAVE_GTK
13912
13913 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
13914
139152003-01-18 Stefan Monnier <monnier@cs.yale.edu>
13916
13917 * charset.h (Funibyte_char_to_multibyte): Export.
13918
139192003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13920
13921 * xmenu.c (mouse_position_for_popup): New function.
13922 (Fx_popup_menu): Call mouse_position_for_popup for X and
13923 mouse_position_hook for others.
13924
139252003-01-17 Kim F. Storm <storm@cua.dk>
13926
13927 * editfns.c (Finsert): Mention `string-make-multibyte' and
13928 `string-as-multibyte' in doc string.
13929
139302003-01-17 Kenichi Handa <handa@m17n.org>
13931
13932 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 13933
048addec
JD
13934 * editfns.c (Fformat): Convert an unibyte char argument that is
13935 formatted by "%c" to multibyte if the total result must be a
13936 multibyte string.
cd7df9c0 13937
048addec 139382003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 13939
048addec
JD
13940 * process.c (set-process-filter): Document unibyte/multibyte-ness
13941 of string argument.
56210ecd 13942
048addec 139432003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 13944
048addec 13945 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 13946
048addec
JD
13947 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
13948 (re_search_2): Likewise.
6df8b9fe 13949
048addec 139502003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 13951
048addec
JD
13952 * xdisp.c (message_dolog): Fix bug of the case that *Message*
13953 buffer is unibyte.
292ddc31 13954
048addec 139552003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 13956
048addec 13957 * fns.c (Fsubstring): Clarify doc string.
292ddc31 13958
048addec
JD
13959 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
13960 (Fprevious_char_property_change)
13961 (Fnext_single_char_property_change)
13962 (Fprevious_single_char_property_change, Fnext_property_change)
13963 (Fnext_single_property_change, Fprevious_property_change)
13964 (Fprevious_single_property_change, Fadd_text_properties)
13965 (Fput_text_property, Fset_text_properties)
13966 (Fremove_text_properties, Fremove_list_of_text_properties)
13967 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 13968
048addec 139692003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 13970
048addec
JD
13971 * process.h (struct Lisp_Process): New member plist replaces old
13972 member private_vars. All uses changed.
63e4e4c6 13973
048addec 13974 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 13975 (QCplist): Rename from QCvars. Change all uses.
048addec 13976 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 13977 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 13978 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 13979 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 13980
048addec 139812003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 13982
6bdb309a 13983 * m/delta.h: Remove (obsolete).
e833850f 13984
048addec 139852003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 13986
048addec
JD
13987 * fileio.c (Fdelete_directory, Fdelete_file): Document the
13988 behaviour in front of symlinks.
13989 (Fdelete_file): Raise an error on directories.
817cb127 13990
048addec 139912003-01-13 Dave Love <fx@gnu.org>
817cb127 13992
048addec 13993 * fns.c (Freverse): Use QUIT.
3e8cf2ea 13994
048addec 139952003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 13996
048addec
JD
13997 * minibuf.c (minibuffer_completion_contents):
13998 Error if point is inside prompt.
3e8cf2ea 13999
048addec
JD
14000 * keyboard.c (command_loop_1): Don't redisplay directly
14001 if there's a post-command-hook.
3e8cf2ea 14002
048addec
JD
14003 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
14004 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 14005
048addec 140062003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 14007
048addec 14008 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 14009
048addec
JD
14010 * process.c (QCvars): New variable.
14011 (syms_of_process): Intern and staticpro it.
14012 (Fset_process_contact): Removed function.
14013 (Fprocess_variable, Fset_process_variable): New functions.
14014 (syms_of_process): Defsubr them.
14015 (Fstart_process): Initialize private_vars plist to nil.
14016 (Fmake_network_process): New arg :vars to setup the private
14017 variables for new network process.
14018 (server_accept_connection): Copy server's private variables to
14019 client process.
2c10f029 14020
048addec
JD
14021 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
14022 crashes). Code rewritten and simplified. Now directly aligns the
14023 pointer and recalculates pure_bytes_used, rather than aligning the
14024 size and adjusting the pointer.
b8a76c6c 14025
048addec 140262003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 14027
048addec
JD
14028 * process.c (Fset_process_contact): New function.
14029 (syms_of_process): defsubr it.
14030 (make-network-process): Update doc.
3a8d0899 14031
048addec 140322003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 14033
048addec
JD
14034 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
14035 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 14036
048addec 140372003-01-10 Dave Love <fx@gnu.org>
4abc7470 14038
048addec 14039 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 14040
048addec 140412003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 14042
048addec
JD
14043 * process.c (Fmake_network_process): Convert new port number
14044 to host byte order for `:service t' case. From Mario Lang.
bf338245 14045
048addec 140462003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 14047
048addec
JD
14048 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
14049 instead of XtAppProcessEvent.
bf338245 14050
048addec
JD
14051 * xterm.c (handle_one_xevent): New function.
14052 (x_dispatch_event): New function.
14053 (XTread_socket): Call handle_one_xevent.
bf338245 14054
048addec 14055 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 14056
048addec
JD
14057 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
14058 call XQueryPointer to get coordinates.
14059 (popup_get_selection): Do not set popup_activated_flag to zero,
14060 let popup_deactivate_callback do that. Needed for Motif.
14061 Call x_dispatch_event instead of XtDispatchEvent.
14062 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 14063
048addec 140642003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 14065
6bdb309a 14066 * process.c (server_accept_connection): Fix recording of new
048addec
JD
14067 connection's local address in :local property of contact info.
14068 (Fmake_network_process): Record local network address for new
14069 client processes in :local property of contact info.
6bdb309a 14070 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 14071
048addec 140722003-01-07 Dave Love <fx@gnu.org>
00e3ab56 14073
048addec 14074 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 14075
048addec 140762003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 14077
048addec 14078 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 14079
048addec
JD
14080 * eval.c (Fuser_variable_p): Doc change. For custom variables,
14081 use the same test as for custom-variable-p.
8c6d74c6 14082
048addec 140832003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 14084
048addec
JD
14085 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
14086 Count LAST_LINE_MISFIT in scroll margin for end of window.
14087 Move label too_near_end before setting SCROLL_MARGIN_POS.
14088 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 14089
048addec
JD
14090 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
14091 scroll_conservatively case. If scrolling that much doesn't change
14092 STARTP, move it down one line.
e833850f 14093
048addec
JD
14094 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
14095 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 14096
048addec
JD
14097 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
14098 selected frame.
8c6d74c6 14099
048addec 14100 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 14101 (syms_of_keymap): Staticpro them.
048addec
JD
14102 (Fapropos_internal): Initialize them and clear them out.
14103 Don't GCPRO them.
8c6d74c6 14104
048addec
JD
14105 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
14106 Doc fixes.
8c6d74c6 14107
048addec
JD
14108 * lisp.h: New misc type Lisp_Save_Value.
14109 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
14110 (XSAVE_VALUE): New macro.
14111 (struct Lisp_Save_Value): New data type.
14112 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 14113 (make_save_value): Declare.
8c6d74c6 14114
048addec 14115 * alloc.c (make_save_value): New function.
8c6d74c6 14116
048addec
JD
14117 * xterm.c (x_catch_errors): Save dpy using make_save_value.
14118 (x_catch_errors_unwind): Call XSync.
8c6d74c6 14119
048addec 141202003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 14121
048addec 14122 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 14123
048addec
JD
14124 * keyboard.c (command_loop_1): Call adjust_point_for_property
14125 in direct action cases for Qforward_char and Qbackward_char.
14126 Set already_adjusted so it won't be done twice.
8c6d74c6 14127
b6189c3b 141282002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 14129
048addec
JD
14130 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
14131 type definition of size_t.
8c609cff 14132
048addec 141332003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 14134
048addec
JD
14135 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
14136 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 14137
048addec 141382002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 14139
048addec
JD
14140 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
14141 to default to t.
fa634a5e 14142
048addec 141432002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 14144
048addec 14145 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 14146
048addec 141472002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 14148
7e26f91b 14149 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
14150 allow building in a different directory than source. Uses some
14151 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 14152
048addec 141532002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 14154
048addec
JD
14155 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
14156 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
14157 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
14158 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 14159
048addec 141602002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 14161
048addec
JD
14162 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
14163 <scroll-down-aggressively>: Doc fix.
2155ecf3 14164
048addec
JD
14165 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
14166 string as pane name, if there is one.
14167 (set_frame_menubar): Save menu_items_n_panes from each call to
14168 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 14169
048addec
JD
14170 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
14171 Don't try to make last line fully visible if it is past end of window.
61f1d295 14172
048addec 141732002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 14174
048addec
JD
14175 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
14176 (mac_menu_show): Add support for hierarchical popup menus.
14177 (add_menu_item): Remove indentation support.
14178 (fill_submenu, fill_menu): Create hierarchical menus
14179 instead of using indentation.
0b17a217 14180
048addec 141812002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 14182
048addec
JD
14183 * xdisp.c (try_cursor_movement): Don't call try_window here.
14184 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 14185
048addec 14186 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 14187
048addec 141882002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 14189
048addec
JD
14190 * macterm.c (XTread_socket): Call KeyTranslate for control and
14191 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 14192 being treated like C-%. Do not look for shift key to deal
048addec 14193 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 14194
048addec 141952002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 14196
048addec
JD
14197 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
14198 If it is non-nil, run timers. Use an unwind-protect to requeue
14199 the events that were read ahead.
14200 (popup_get_selection_unwind): New subroutine.
14201 (popup_get_selection_queue): File-scope variable now holds that queue.
14202 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
14203 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
14204 Use an unwind-protect to pop down the dialog box.
14205 (xdialog_show_unwind): New subroutine implements that.
f02cac82 14206
048addec
JD
14207 * xdisp.c (row_containing_pos): Change exit test using last_y.
14208 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 14209
048addec
JD
14210 * lread.c (load_error_handler): New function.
14211 (Fload): Handle errors in Fsubstitute_in_file_name.
14212 Don't expect Fsignal to return.
f02cac82 14213
048addec
JD
14214 * eval.c: Errors and throws work right with interrupt blocking.
14215 (struct catchtag): New elt interrupt_input_blocked.
14216 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
14217 (internal_catch, Fcondition_case, internal_condition_case)
14218 (internal_condition_case_1, internal_condition_case_2): Save it.
14219 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 14220
048addec 14221 * editfns.c (Fformat): Add parens.
f02cac82 14222
048addec
JD
14223 * dired.c (file_name_completion): Fix that change.
14224 Delete special quit-handling code; just use QUIT.
f02cac82 14225
b6189c3b 142262002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 14227
048addec
JD
14228 * dired.c (file_name_completion): Close directory on error
14229 just as in directory_files_internal.
1a590729 14230
048addec 142312002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 14232
048addec
JD
14233 * window.c (Fset_window_configuration): Set old_point to correct
14234 value when new_current_buffer == current_buffer.
f02cac82 14235
048addec 142362002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 14237
048addec
JD
14238 Revisited my earlier fix for the following entry in etc/PROBLEMS:
14239 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14240 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 14241
048addec
JD
14242 These changes were in part based upon suggestions made by Peter
14243 'Luna' Runestig [peter@runestig.com].
9785d95b 14244
f4a5a485
SM
14245 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
14246 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
14247 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 14248 global variables.
9785d95b 14249
048addec
JD
14250 * w32.c (globals_of_w32): New function. Used to initialize those
14251 global variables that must always be initialized on startup even
14252 when the global variable initialized is non zero. Its primary
14253 purpose at this time is to set the global variables
14254 g_b_init_is_windows_9x, g_b_init_open_process_token,
14255 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
14256 g_b_init_get_sid_identifier_authority to 0 on startup.
14257 Called from main.
9785d95b 14258
048addec
JD
14259 * w32.c (is_windows_9x): Perform initialization only if
14260 g_b_init_is_windows_9x is equal to 0. On initialization set
14261 g_b_init_is_windows_9x equal to 1.
2308af15 14262
048addec
JD
14263 * w32.c (open_process_token): Perform initialization only if
14264 g_b_init_open_process_token is equal to 0. On initialization set
14265 g_b_init_open_process_token equal to 1.
2308af15 14266
048addec
JD
14267 * w32.c (get_token_information): Perform initialization only if
14268 g_b_init_get_token_information is equal to 0. On initialization
14269 set g_b_init_get_token_information equal to 1.
9785d95b 14270
048addec
JD
14271 * w32.c (lookup_account_sid): Perform initialization only if
14272 g_b_init_lookup_account_sid is equal to 0. On initialization
14273 set g_b_init_lookup_account_sid equal to 1.
9785d95b 14274
048addec
JD
14275 * w32.c (get_sid_identifier_authority): Perform initialization
14276 only if g_b_init_get_sid_identifier_authority is equal to 0.
14277 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 14278
f63fd14e 14279 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
14280 those global variables that must always be initialized on startup
14281 even when the global variable initialized is non zero.
14282 Its primary purpose at this time is to initialize the global variable
14283 track_mouse_event_fn.
9785d95b 14284
a64387ee 14285 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 14286 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 14287
048addec 14288 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 14289
f63fd14e 14290 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
14291 initialize those global variables that must always be initialized
14292 on startup even when the global variable initialized is non zero.
14293 Its primary purpose at this time is to initialize the global
14294 variables get_menu_item_info and set_menu_item_info.
9785d95b 14295
048addec
JD
14296 * w32menu.c (initialize_frame_menubar): Remove initialization of
14297 get_menu_item_info and set_menu_item_info.
9785d95b 14298
048addec 14299 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 14300
048addec
JD
14301 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
14302 Declare them.
9785d95b 14303
048addec
JD
14304 * emacs.c (main): Call globals_of_w32 prior to calling
14305 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
14306 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
14307 is defined.
9785d95b 14308
048addec
JD
14309 * w32term.c (x_update_window_begin): Fix Windows API error
14310 detected by BoundsChecker. Test to determine if
14311 w32_system_caret_hwnd is NULL prior to attempting to use
14312 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 14313
048addec
JD
14314 * w32term.c (x_update_window_end): Fix Windows API error
14315 detected by BoundsChecker. Test to determine if
14316 w32_system_caret_hwnd is NULL prior to attempting to use
14317 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 14318
048addec 143192002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 14320
048addec
JD
14321 * coding.c (coding_system_require_warning): New variable.
14322 (syms_of_coding): DEFVAR it.
b6da19ef 14323
048addec 14324 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 14325
048addec
JD
14326 * fileio.c (choose_write_coding_system): Even if
14327 Vcoding_system_for_write is non-nil, if
14328 coding_system_require_warning is nonzero, call
14329 Vselect_safe_coding_system_function.
bfcf6dbe 14330
048addec 143312002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 14332
048addec
JD
14333 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
14334 (lisp): Add font-core.
2c568af5 14335
048addec 143362002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 14337
048addec
JD
14338 * textprop.c (text_read_only): New arg `propval'.
14339 (get_char_property_and_overlay): Remove unused var `next_overlay'.
14340 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 14341
048addec 143422002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 14343
048addec 14344 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 14345
048addec 143462002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 14347
048addec
JD
14348 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
14349 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
14350 Be more careful about when help_events are generated.
96720f09 14351
048addec 143522002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 14353
048addec
JD
14354 * macterm.c (mac_check_for_quit_char): Correctly set the
14355 modifiers of the event to 0.
14356 * mac.c (sys_select): Duplicate rfds before calling select to
14357 ensure that rfds survive the while loop.
e5ae1c49 14358
048addec 143592002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 14360
048addec
JD
14361 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
14362 row_containing_pos returned NULL.
2eb46b2d 14363
048addec 143642002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 14365
6bdb309a 14366 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 14367 non-blocking.
6bdb309a 14368 (sys_select): Fix sys_select to not use a timeout larger than
048addec 14369 the one given.
b11f1d8a 14370
048addec 143712002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 14372
048addec 14373 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 14374
048addec 143752002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 14376
048addec
JD
14377 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
14378 as the last thing.
a4ac5b17 14379
048addec 143802002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 14381
048addec 14382 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 14383
048addec 143842002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 14385
048addec
JD
14386 * editfns.c (Fformat): Handle precision in string conversion
14387 specifiers like libc functions do (ie, print at most that many
14388 characters).
85cce843 14389
048addec 143902002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 14391
048addec
JD
14392 * xdisp.c (row_containing_pos): Check more carefully
14393 whether charpos is really in the row before returning it.
0d4d26a7 14394
048addec 143952002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 14396
048addec 14397 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 14398
048addec
JD
14399 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
14400 each stack frame. This may change as it could be time consuming.
0d4d26a7 14401
048addec
JD
14402 * macterm.c (mac_check_for_quit_char, quit_char_comp)
14403 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 14404 (mac_initialize): Add code to check for pressing of quit_char
048addec 14405 in the OS event queue.
b11f1d8a 14406
048addec
JD
14407 * mac.c (sys_select): Call mac_check_for_quit_char every second
14408 while blocking on select.
0d4d26a7 14409
048addec
JD
14410 * mac.c (sys_read): Use sys_select to test for input first
14411 before calling read, to allow C-g to break.
9252f7bc 14412
048addec 144132002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 14414
048addec 14415 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 14416
048addec 14417 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 14418
048addec 14419 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 14420
048addec
JD
14421 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
14422 autoload.
9252f7bc 14423
048addec 14424 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 14425
048addec 14426 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 14427
048addec 144282002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 14429
048addec 14430 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 14431
048addec 144322002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 14433
048addec 14434 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14435
048addec 14436 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14437
048addec 14438 * alloca.c: Don't use #error.
02d588e2 14439
048addec 144402002-12-03 Dave Love <fx@gnu.org>
02d588e2 14441
048addec
JD
14442 * buffer.c (Qucs_set_table_for_input): New.
14443 (Fget_buffer_create): Use it.
14444 (Qset_buffer_major_mode_hook): Deleted.
14445 (Fset_buffer_major_mode): Revert previous change.
14446 (init_buffer_once): Intern ucs-set-table-for-input.
14447 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
14448 Add &Qucs_set_table_for_input.
451e2697 14449
048addec 144502002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 14451
048addec
JD
14452 * callint.c (Fcall_interactively): Use next_event only if less
14453 than key_count.
72742a99 14454
048addec 144552002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 14456
048addec
JD
14457 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
14458 names to 255 characters.
72742a99 14459
048addec
JD
14460 * macterm.c (XTread_socket): If all frames have been collapsed,
14461 expand the first one before handling drag-and-drop events.
72742a99 14462
048addec
JD
14463 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
14464 which is detected by autoconf.
40e6ff95 14465
048addec 144662002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 14467
048addec
JD
14468 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
14469 offset in two hints table to allow prebinding to be redone and
14470 allow the executable to be stripped.
c02138c6 14471
048addec 144722002-11-29 Dave Love <fx@gnu.org>
c02138c6 14473
048addec
JD
14474 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
14475 already provided.
0e47bbf7 14476
048addec 144772002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 14478
048addec
JD
14479 * xdisp.c (start_display): Check more intelligently for
14480 whether the line is continued.
14481 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 14482
048addec 144832002-11-28 Dave Love <fx@gnu.org>
44129dcb 14484
048addec
JD
14485 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
14486 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 14487
048addec 144882002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 14489
048addec
JD
14490 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
14491 more descriptive error output from lread.c:Fload upon most require
14492 cycles during boostrapping.
1637fd2c 14493
048addec 144942002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 14495
048addec
JD
14496 * fileio.c (Finsert_file_contents): Give a more appropriate error
14497 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 14498
048addec
JD
14499 * dired.c (Ffile_attributes): Don't return negative file sizes for
14500 files bigger than 2Gb when off_t is 32 bit.
540c2788 14501
048addec 145022002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 14503
048addec 14504 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 14505
048addec
JD
14506 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
14507 Test GETPGRP_VOID instead.
14508 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 14509
048addec
JD
14510 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
14511 Don't define.
14512 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 14513
048addec 14514 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 14515
048addec 145162002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 14517
048addec
JD
14518 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
14519 supported.
4042a81a 14520
048addec 145212002-11-25 Dave Love <fx@gnu.org>
4042a81a 14522
048addec 14523 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 14524
048addec 14525 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 14526
048addec 145272002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 14528
048addec 14529 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 14530
048addec 145312002-11-24 Steven Tamm <steventamm@mac.com>
82122254 14532
048addec
JD
14533 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
14534 determine the size of pointers alloced in unexed space instead
14535 of using possibly invalid emacs_zone pointers. This fixes the
14536 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 14537
048addec 145382002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 14539
048addec 14540 * search.c (Fstring_match): Doc fix.
c1ee53bc 14541
048addec
JD
14542 * callint.c (Fcall_interactively): If a command fails because
14543 `*' detects a read-only buffer, but RECORD_FLAG is set,
14544 record it anyway if the args don't actually do tty input.
5598c32e 14545
048addec 145462002-11-22 Dave Love <fx@gnu.org>
5598c32e 14547
048addec 14548 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 14549
048addec
JD
14550 * keyboard.c (interrupt_signal): Provide forward declaration.
14551 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 14552
048addec 14553 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 14554
048addec 145552002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 14556
048addec
JD
14557 * eval.c (interactive_p): Skip any number of bytecode
14558 and special form frames, in any order.
516eea8e 14559
048addec 145602002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 14561
048addec
JD
14562 * w32fns.c (convert_mono_to_color_image): New function.
14563 (xbm_load, xbm_load_image): Use it when foreground or background
14564 is explicitly set.
04dbfa08 14565
048addec 145662002-11-19 Dave Love <fx@gnu.org>
04dbfa08 14567
048addec 14568 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 14569
048addec 145702002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 14571
048addec
JD
14572 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
14573 (XPutPixel): Swap blue and red.
14574 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
14575 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14576 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
14577 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 14578
048addec 145792002-11-18 Dave Love <fx@gnu.org>
d824beee 14580
048addec 14581 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 14582
048addec 14583 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 14584
048addec 14585 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 14586
048addec
JD
14587 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
14588 malloc, realloc, calloc.
d824beee 14589
048addec
JD
14590 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
14591 (bcmp): Don't define.
d824beee 14592
048addec 14593 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 14594
048addec 14595 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 14596
048addec 14597 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 14598
048addec 14599 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 14600
048addec
JD
14601 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
14602 Don't include alloca.h.
d824beee 14603
048addec 14604 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 14605
048addec 14606 * regex.c (_GNU_SOURCE): Don't define.
1998560a 14607
048addec 14608 * process.c (_GNU_SOURCE): Don't define.
1998560a 14609
048addec 14610 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 14611
048addec 146122002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 14613
048addec 14614 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 14615
048addec 146162002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 14617
048addec
JD
14618 * dispextern.h (struct face): Add `overstrike' field.
14619 * xterm.c (x_draw_glyph_string_foreground)
14620 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14621 * xfaces.c (load_face_font): Set `face->overstrike' based on
14622 result from choose_face_font.
14623 (best_matching_font, choose_face_font): Add `needs_overstrike'
14624 argument, and use it to return whether overstriking is desirable
14625 for this face/font combo.
14626 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 14627
048addec 146282002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 14629
048addec
JD
14630 This change is my fix for the following entry in etc/PROBLEMS:
14631 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14632 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 14633
048addec
JD
14634 * w32.c: Added wrapper functions around the win32 API functions
14635 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
14636 GetSidIdentifierAuthority. These wrapper functions serve two
14637 purposes:
14638 1. They ensure that the wrapped function can never be called
14639 when Emacs is running on an operating system on which they are
14640 not supported (Microsoft Windows 95 / 98 / ME).
14641 2. They call the wrapped functions via function pointers rather
14642 than calling them directly. This avoids taking advantage of the
14643 undocumented fact that although these functions are not supported
14644 in the 9x branch of Microsoft Windows, the functions do exist in
14645 the version of advapi32.dll that is found in the 9x branch of
14646 Microsoft Windows.
f60ae425 14647
6bdb309a 14648 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
14649 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
14650 and GetSidIdentifierAuthority with calls to the newly added
14651 wrapper functions.
f60ae425 14652
048addec
JD
14653 * w32.h: Added extern declarations for the following functions:
14654 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
14655 syms_of_w32menu, and void syms_of_fontset.
f60ae425 14656
6bdb309a 14657 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
14658 function pointer track_mouse_event_fn in the handler for the
14659 WM_SETFOCUS message.
3582b6a3 14660
6bdb309a 14661 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
14662 reinitialize the function pointers set_menu_item_info and
14663 get_menu_item_info.
f60ae425 14664
048addec 146652002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 14666
048addec
JD
14667 * sound.c: Added a partial implementation of play-sound-internal
14668 for Microsoft Windows. Added various #ifdef / #else / #endif
14669 code blocks to separate the code that will compile under
9fed2905 14670 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 14671 Moved several blocks of code around to make this separation of code
9fed2905 14672 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 14673
048addec 14674 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 14675
048addec
JD
14676 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
14677 added support for play-sound-internal under Windows would be
14678 included in the build of Emacs.
517f42a0 14679
048addec 146802002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 14681
048addec 14682 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 14683
048addec 14684 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 14685
048addec 146862002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 14687
048addec
JD
14688 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
14689 (adjust_point_for_property): Move out of display and invisible even if
14690 we were already inside before (in case a property was added while
14691 we weren't looking). Be more careful when handling invisible props.
14692 Skip invisible text as if it really wasn't there at all.
aab83f91 14693
048addec 146942002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 14695
048addec
JD
14696 * w32term.c (x_draw_image_foreground)
14697 (w32_draw_image_foreground_1): Use standard copy and invert
14698 operations to draw images.
aab83f91 14699
048addec
JD
14700 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
14701 depth of 1.
14702 (xbm_read_bitmap_data): Invert bits as xbm is read in.
14703 (XPutPixel): Don't invert bits here.
a4478a76 14704
048addec 147052002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 14706
048addec
JD
14707 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
14708 (w32_draw_image_foreground_1): Handle image masks.
14709 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 14710
048addec
JD
14711 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
14712 (x_from_xcolors): Adjust RGB values for W32.
14713 (image_background, image_background_transparent)
14714 (postprocess_image, x_to_xcolors, x_disable_image)
14715 (x_build_heuristic_mask): Adapt for W32 and enable.
14716 (x_create_x_image_and_pixmap): Mark images with palettes as such.
14717 (xbm_load): Remove unused variable.
03670a65 14718
048addec 147192002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 14720
048addec 14721 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 14722
048addec 147232002-11-14 Dave Love <fx@gnu.org>
59daa29a 14724
048addec 14725 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 14726
048addec
JD
14727 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
14728 * xmenu.c (unuse_menu_items, digest_single_submenu):
14729 * xfns.c (x_put_x_image):
14730 * xdisp.c (message2_nolog, set_message):
14731 * undo.c (record_point):
14732 * terminfo.c (tparam):
14733 * syntax.c (scan_sexps_forward):
14734 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14735 * composite.c (update_compositions):
14736 * cm.c (calccost, cmgoto):
14737 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 14738
048addec 14739 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 14740
048addec
JD
14741 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
14742 Don't declare.
59daa29a 14743
048addec 14744 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 14745
048addec
JD
14746 * fns.c (Fcopy_sequence): Doc fix.
14747 (Fmap_char_table): Cast `call2'.
3947677c 14748
048addec
JD
147492002-11-14 Francesco Potorti` <pot@gnu.org>
14750
14751 * s/sol2-8.h: New file.
14752
147532002-11-14 Kim F. Storm <storm@cua.dk>
14754
14755 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
14756 dependency on `risky-local-variable' and the :propertize form.
14757
147582002-11-12 Stefan Monnier <monnier@cs.yale.edu>
14759
14760 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
14761
14762 * syntax.c (scan_sexps_forward): Undo last patch.
14763 Use a more obvious fix: check eob before updating the syntax table.
14764
147652002-11-09 Stefan Monnier <monnier@cs.yale.edu>
14766
14767 * syntax.c (scan_sexps_forward): Update syntax table before reading
14768 a char rather than after so we don't update the table past eob.
14769
147702002-11-09 Dave Love <fx@gnu.org>
14771
14772 * buffer.c (Fset_buffer_major_mode): Fix last change.
14773
14774 * regex.c (regexec): Fix pmatch declaration.
14775
14776 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
14777
14778 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
14779 to self-inserting characters.
14780 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
14781
14782 * coding.c (Vtranslation_table_for_input): New.
14783 (syms_of_coding): DEFVAR it.
14784
147852002-11-08 Juanma Barranquero <lektu@terra.es>
14786
14787 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
14788 window.
14789
147902002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14791
6bdb309a 14792 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
14793 cp, and i.
14794
147952002-11-06 Dave Love <fx@gnu.org>
14796
14797 * buffer.c (Qset_buffer_major_mode_hook): New.
14798 (Fset_buffer_major_mode): Use it.
14799
148002002-11-06 Richard M. Stallman <rms@gnu.org>
14801
14802 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
14803 and stop_polling.
14804
14805 * process.c (wait_reading_process_input):
14806 Test POLLING_PROBLEM_IN_SELECT, not hpux.
14807 Avoid initialization for auto Lisp_Object var.
14808
14809 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
14810
14811 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
14812
148132002-11-05 Richard M. Stallman <rms@gnu.org>
14814
14815 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
14816
14817 * callint.c (Fcall_interactively): New local filter_specs.
14818 (Fcall_interactively): Check for progn as well as let.
14819 Add a gcpro.
14820 (Qprogn): New variable.
14821 (syms_of_callint): Staticpro and init Qprogn.
14822
148232002-11-04 John Paul Wallington <jpw@shootybangbang.com>
14824
14825 * lread.c (Feval_buffer): Doc fix.
14826
148272002-11-04 Dave Love <fx@gnu.org>
14828
14829 * keyboard.c (read_char): Always translate iff
14830 Vkeyboard_translate_table is a char table and c is valid.
14831
14832 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14833 and fix C types.
14834
148352002-11-03 Stefan Monnier <monnier@cs.yale.edu>
14836
14837 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
14838
14839 * editfns.c (get_pos_property): Don't hardcode Qfield.
14840
14841 * keyboard.c (adjust_point_for_property): Handle `display' prop on
14842 overlays. Also handle `invisible' prop.
14843
148442002-11-02 Stefan Monnier <monnier@cs.yale.edu>
14845
14846 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
14847 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
14848
148492002-11-01 Andreas Schwab <schwab@suse.de>
14850
14851 * editfns.c (Fmessage): Revert last change to properly handle %%.
14852
148532002-11-01 Stefan Monnier <monnier@cs.yale.edu>
14854
14855 * xmenu.c (unuse_menu_items): New fun.
14856 (menu_items_inuse): New var.
14857 (syms_of_xmenu): Initialize it.
14858 (init_menu_items): Use it to detect re-entrance.
14859 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
14860 (Fx_popup_menu): Remove spurious XSETFRAME.
14861
14862 * editfns.c (find_field): Make an exception for nil fields.
14863
148642002-11-01 Dave Love <fx@gnu.org>
14865
14866 * m/gec63.h: Deleted.
14867
148682002-10-31 Dave Love <fx@gnu.org>
14869
14870 * xterm.c (XTread_socket): Fix last change.
14871 (xaw_scroll_callback): Cast call_data to long to avoid warning.
14872
148732002-10-31 Stefan Monnier <monnier@cs.yale.edu>
14874
14875 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
14876
148772002-10-30 Stefan Monnier <monnier@cs.yale.edu>
14878
14879 * editfns.c (overlays_around, get_pos_property): New funs.
14880 (find_field): Use them.
14881 Also be careful not to modify POS before its last use.
14882 (Fmessage): Don't Fformat if there's nothing to format.
14883
148842002-10-30 Dave Love <fx@gnu.org>
14885
14886 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
14887 [HAVE_PTY_H]; Include pty.h.
14888
14889 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
14890
14891 * xterm.c (Qeql): Declare.
14892 (Vx_keysym_table): New.
14893 (syms_of_xterm): Initialize it.
14894 (XTread_socket): Use it. Deal with ASCII keysyms.
14895 (XSetIMValues) [HAVE_X11R6]: Prototype.
14896
14897 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
14898 (lispy_kana_keys): Comment out.
14899 (make_lispy_event) [XK_kana_A]: Comment out.
14900 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
14901 Fix sprintf call.
14902
14903 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
14904 regexp.h change).
14905 (TERMINFO, LIBS_TERMCAP): Define.
14906
14907 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
14908 (bcmp): Define conditional on HAVE_BCMP.
14909 (NO_SIOCTL_H): Don't define.
14910 (TIOCSIGSEND): Don't make conditional on IRIX6.
14911
14912 * s/sol2-5.h: Don't include strings.h.
14913 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
14914
14915 * s/irix6-0.h (IRIX6): Don't define.
14916 (bcopy, bcmp, bzero): Don't undef.
14917
14918 * s/irix6-5.h: Don't include strings.h.
14919 (IRIX6): Don't define.
14920 (bcopy, bcmp, bzero): Don't undef.
14921
14922 * syntax.c (Fforward_comment): Doc fix.
14923
149242002-10-29 Kim F. Storm <storm@cua.dk>
14925
14926 * process.c (Fsignal_process): Allow PROCESS to be specified by
14927 name in addition to pid (as integer or string).
14928
149292002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
14930
14931 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
14932 environments.
14933
149342002-10-27 Kim F. Storm <storm@cua.dk>
14935
14936 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
14937
14938 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
14939
14940 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
14941
14942 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
14943
149442002-10-26 Richard M. Stallman <rms@gnu.org>
14945
14946 * editfns.c (Fformat): Detect invalid format letters for floats.
14947
149482002-10-25 Kenichi Handa <handa@m17n.org>
14949
14950 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
14951 (x_set_title): Likewise.
14952
149532002-10-25 Juanma Barranquero <lektu@terra.es>
14954
14955 * macgui.h:
14956 * w32gui.h: Remove definition of XColor.
14957
14958 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
14959
149602002-10-24 Kim F. Storm <storm@cua.dk>
14961
14962 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
14963 Callers changed (supply dummy arg).
14964
14965 * lisp.h (get_window_cursor_type): Update prototype.
14966
14967 * w32term.c (x_display_and_set_cursor): Get active_cursor from
14968 get_window_cursor_type to track system caret.
14969
149702002-10-24 Kim F. Storm <storm@cua.dk>
14971
14972 * process.c (Fformat_network_address): New function.
14973 (syms_of_process): Defsubr it.
14974 (list_processes_1): Use it to format :local/:remote address if
f9711de4 14975 service/host is not set; before Emacs would crash in that case.
048addec
JD
14976 (Fmake_network_process): Don't use Ffind_operation_coding_system
14977 to setup coding system if host or service is not set.
14978
149792002-10-23 Juanma Barranquero <lektu@terra.es>
14980
14981 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
14982
14983 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
14984 COLORREF.
14985
14986 * macgui.h:
14987 * w32gui.h: Add definition of XColor.
14988
14989 * macfns.c:
14990 * w32fns.c:
14991 * xfaces.c: Remove definition of XColor.
14992
149932002-10-22 Stefan Monnier <monnier@cs.yale.edu>
14994
14995 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
14996
14997 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
14998 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
14999 window if it is dedicated.
15000 (Fshrink_window): Add preserve_before as was done for enlarge_window.
15001 (Vspecial_display_function): Update docstring.
15002
15003 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
15004 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
15005 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
15006
150072002-10-21 Stefan Monnier <monnier@cs.yale.edu>
15008
15009 * casefiddle.c (casify_region): Don't treat a prefix char as part
15010 of a word when at the beginning.
15011
150122002-10-17 Juanma Barranquero <lektu@terra.es>
15013
15014 * lread.c (syms_of_lread): Fix typos.
15015
150162002-10-17 Dave Love <fx@gnu.org>
15017
15018 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
15019
150202002-10-16 Richard M. Stallman <rms@gnu.org>
15021
15022 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
15023
150242002-10-14 Juanma Barranquero <lektu@terra.es>
15025
15026 * w16select.c (syms_of_win16select): Fix docstring for
15027 `selection-coding-system'.
15028
15029 * w32select.c (syms_of_w32select): Likewise.
15030
150312002-10-14 Stefan Monnier <monnier@cs.yale.edu>
15032
15033 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
15034 a backslash-quoted char.
15035 (scan_lists, scan_sexps_forward): Pacify the compiler.
15036
150372002-10-13 Richard M. Stallman <rms@gnu.org>
15038
15039 * window.c (window_scroll): Set immediate_quit.
15040
15041 * print.c (print): When backquote form is the car of a list,
15042 output in old style. Use old_backquote_output to output all
15043 comma forms inside it in old style too.
15044
15045 * buffer.h (struct buffer): Move `undo_list' down below `name'.
15046
150472002-10-11 Markus Rost <rost@math.ohio-state.edu>
15048
15049 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
15050 batch mode).
15051
15052 * lread.c (Fload): Doc fix (load-suffixes).
15053
150542002-10-10 Steven Tamm <steventamm@mac.com>
15055
15056 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
15057 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
15058 Also switch the default to Qnil from Qt.
15059
150602002-10-08 Kenichi Handa <handa@m17n.org>
15061
15062 * coding.c (code_convert_region): When we need more GAP for
15063 conversion, pay attention to the case that coding->produced is not
15064 greater than coding->consumed.
15065
150662002-10-07 Richard M. Stallman <rms@gnu.org>
15067
15068 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
15069
150702002-10-06 Andrew Choi <akochoi@shaw.ca>
15071
15072 * macmenu.c (mac_menu_show): Add j to count menu items; match
15073 menu_item_selection to it to find selected item.
15074
150752002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15076
15077 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
15078 cases. The correct fix is to pass ReparentNotify to Xt.
15079 The shell widget interprets ConfigureNotify differently depending
15080 on if it has been reparented or not.
15081
150822002-10-05 Markus Rost <rost@math.ohio-state.edu>
15083
15084 * editfns.c (Fformat_time_string): Doc fix.
15085
150862002-10-05 John Paul Wallington <jpw@shootybangbang.com>
15087
15088 * fns.c (Flength): Doc fix.
15089
150902002-10-04 Stefan Monnier <monnier@cs.yale.edu>
15091
15092 * keyboard.c (keyremap): New struct.
15093 (read_key_sequence): Use it: globally replace keytran_foo with
15094 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
15095 keytran_next and fkey_next to just `next'.
15096
150972002-10-04 Steven Tamm <steventamm@mac.com>
15098
15099 * macterm.c (keycode_to_xkeysym_table): Change return to be
15100 treated like an X keysym.
15101
151022002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15103
15104 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
15105 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
15106 This is to also handle x/y changes that occur because of a resize.
15107
151082002-10-02 John Paul Wallington <jpw@shootybangbang.com>
15109
15110 * frame.c (Vdelete_frame_functions): New variable.
15111 (syms_of_frame): Initialize and defvar it.
15112 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
15113 it when frame's `tooltip' parameter is non-nil.
15114
15115 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
15116
15117 * w32fns.c (x_create_tip_frame): Likewise.
15118
15119 * macfns.c (x_create_tip_frame): Likewise.
15120
151212002-09-30 Kenichi Handa <handa@m17n.org>
15122
15123 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
15124 -1 before calling ccl_driver.
15125
15126 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
15127 Only when it is non-nil, handle composition sequence.
15128 (setup_coding_system) <0>: Don't force composition handling.
15129
15130 * Makefile.in (lisp, shortlisp): Add utf-16.elc
15131
151322002-09-29 Richard M. Stallman <rms@gnu.org>
15133
15134 * search.c (Freplace_match): Adjust match data for the substitution
15135 just made in the buffer.
15136
15137 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
15138 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
15139
151402002-09-27 Richard M. Stallman <rms@gnu.org>
15141
15142 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
15143 (read_char): Use them. Do all exits thru the end of the function.
15144
151452002-09-27 Kenichi Handa <handa@etl.go.jp>
15146
15147 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
15148 is nil.
15149
151502002-09-26 Richard M. Stallman <rms@gnu.org>
15151
15152 * regex.h (__restrict_arr): Don't define if already defined.
15153
15154 * coding.c (run_pre_post_conversion_on_str):
15155 Save and restore Vdeactivate_mark.
15156
151572002-09-26 John Paul Wallington <jpw@shootybangbang.com>
15158
15159 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
15160
151612002-09-26 Kenichi Handa <handa@etl.go.jp>
15162
15163 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
15164 nonzero, try face's family at first. Otherwise try FAMILY at first.
15165 (choose_face_font): If C is a single byte char or latin-1, call
15166 try_font_list with PREFER_FACE_FAMILY 1.
15167
151682002-09-21 Richard M. Stallman <rms@gnu.org>
15169
15170 * window.c (select_window_1): Don't select frame.
15171 Set frame's selected window only when frame itself is selected.
15172 (Fselect_window): Doc fix.
15173
151742002-09-18 Kim F. Storm <storm@cua.dk>
15175
15176 * process.c (make-network-process): Doc fix (there is no
15177 network-server-log-function hook).
15178
151792002-09-18 Richard M. Stallman <rms@gnu.org>
15180
15181 * print.c (print): Clear out the unused parts of Vprint_number_table.
15182 (syms_of_print): Doc fix for `print-number-table'.
15183
15184 * unexelf.c (unexec): Undo previous change.
15185
151862002-09-17 Andreas Schwab <schwab@suse.de>
15187
15188 * m/alpha.h [LINUX]: Don't define DATA_START.
15189
151902002-09-16 Dave Love <fx@gnu.org>
15191
15192 * unexelf.c (unexec): Deal with .got, reinstating change from
15193 25-08-1999.
15194
151952002-09-13 Richard M. Stallman <rms@gnu.org>
15196
15197 * s/sol2-6.h (UNEXEC): Comment out definition.
15198
15199 * unexsol.c (unexec): Don't downcase first letter of error msg.
15200
15201 * xfaces.c (Fcolor_supported_p): Just one arg is required.
15202
152032002-09-12 Markus Rost <rost@math.ohio-state.edu>
15204
15205 * unexsol.c: Include buffer.h, charset.h, coding.h.
15206
152072002-09-11 Richard M. Stallman <rms@gnu.org>
15208
15209 * unexsol.c: Don't use report_file_error; do it by hand
15210 using dlerror.
15211
15212 * process.c (wait_reading_process_input, both versions):
15213 Before calling turn_on_atimers, call stop_polling.
15214
15215 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
15216
15217 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
15218 we go to too_near_end, call clear_glyph_matrix.
15219 (redisplay_window): After make_cursor_line_fully_visible,
15220 call clear_glyph_matrix and bypass `goto done'.
15221
15222 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
15223 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
15224
152252002-09-10 Richard M. Stallman <rms@gnu.org>
15226
15227 * fileio.c (Fdo_auto_save): Catch error making directory.
15228 Only call push_message if we need to.
15229 At the same time, make an unwind-protect to pop it.
15230 Rename local message_p to old_message_p.
15231 (do_auto_save_make_dir, do_auto_save_eh): New functions.
15232 (do_auto_save_unwind): Don't call pop_message.
15233
15234 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
15235
15236 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
15237
15238 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
15239
15240 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
15241
152422002-09-10 Stefan Monnier <monnier@cs.yale.edu>
15243
15244 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
15245 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
15246 (re_match_2_internal): Be more careful with infinite loops.
15247
152482002-09-10 Kim F. Storm <storm@cua.dk>
15249
15250 * macros.c (end_kbd_macro): New function.
15251 (Fend_kbd_macro): Use it.
15252
15253 * macros.h (end_kbd_macro): Declare extern.
15254
15255 * keyboard.c (Fdiscard_input): If defining keyboard macro,
15256 end and save it instead of discarding it.
15257
152582002-09-09 Markus Rost <rost@math.ohio-state.edu>
15259
15260 * s/sol2-6.h: Fix typo. Add comment.
15261
152622002-09-09 Richard M. Stallman <rms@gnu.org>
15263
15264 * regex.c (regnum_t): Use signed int, not unsigned int.
15265
15266 * s/sol2-6.h: New file.
15267
15268 * s/sol2-5.h (UNEXEC): Definition deleted.
15269
152702002-09-08 Kim F. Storm <storm@cua.dk>
15271
15272 * macros.c (executing_macro_index): Change type to EMACS_INT.
15273 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
15274
15275 * macros.h (executing_macro_index): Change type to EMACS_INT.
15276
152772002-09-06 Richard M. Stallman <rms@gnu.org>
15278
15279 * casetab.c (set_case_table): Make canon table point to eqv table.
15280
152812002-09-06 Juanma Barranquero <lektu@terra.es>
15282
15283 * coding.c (syms_of_coding): Fix spacing.
15284
15285 * composite.c (Fcompose_region_internal)
15286 (Fcompose_string_internal): Likewise.
15287
15288 * data.c (Flsh): Likewise.
15289
15290 * fontset.c (Fset_fontset_font): Likewise.
15291
15292 * macfns.c (Fx_server_max_request_size): Likewise.
15293
15294 * w16select.c (syms_of_win16select): Likewise.
15295
15296 * w32select.c (syms_of_w32select): Likewise.
15297
15298 * xselect.c (syms_of_xselect): Likewise.
15299
153002002-09-05 Richard M. Stallman <rms@gnu.org>
15301
15302 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
15303 call EXTEND_RANGE_TABLE and return a proper value.
15304 (set_image_of_range): Don't call set_image_of_range_1
15305 if no TRANSLATE or if range includes all of Latin-1.
15306 Only call it for the Latin-1 part of the range.
15307 For other cases, make two separate ranges,
15308 one for the original specified characters and one for
15309 their case-conversions.
15310
153112002-09-04 Richard M. Stallman <rms@gnu.org>
15312
15313 * s/sol2-5.h (UNEXEC): Use unexsol.o.
15314
15315 * window.c (displayed_window_lines): Correct for one-off bug
15316 in HEIGHT on non-window displays.
15317
15318 * regex.c (set_image_of_range_1): New function.
15319 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
15320 Return a value to indicate running out of memory.
15321 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
15322 (extend_range_table_work_area): New subroutine.
15323 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
15324 Different calling conventions, and used from set_image_of_range{,_1}.
15325 (IMMEDIATE_QUIT_CHECK): Definitions moved.
15326
153272002-09-04 Juanma Barranquero <lektu@terra.es>
15328
15329 * makefile.w32-in: All dependencies updated.
15330
153312002-09-01 Richard M. Stallman <rms@gnu.org>
15332
15333 * unexsol.c: New file.
15334
15335 * xfns.c (Qbox): Declare external, don't define.
15336
15337 * xdisp.c (redisplay_window) <force-start case>:
15338 If point is on semi-visible last line, reposition
15339 it at previous line.
15340
15341 * alloc.c (display_malloc_warning): Use display-warning.
15342 (malloc_warning_1): Function deleted.
15343
15344 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
15345
15346 * lread.c (read1): Handle #! by skipping the line.
15347
153482002-08-31 Richard M. Stallman <rms@gnu.org>
15349
15350 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
15351 Don't include LDFLAGS.
15352 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
15353
153542002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
15355
15356 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
15357 member of x_display_info unless we compile for some window system.
15358
153592002-08-31 Kim F. Storm <storm@cua.dk>
15360
15361 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
15362 (get_window_cursor_type): Don't use them.
15363 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
15364
153652002-08-30 Kenichi Handa <handa@etl.go.jp>
15366
15367 * xdisp.c (get_next_display_element): Fix previous change.
15368
153692002-08-30 Andrew Choi <akochoi@shaw.ca>
15370
15371 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
15372 (expose_window): Use it to fix the display of overlapping
15373 rows (merge code from xterm.c).
15374
15375 * macfns.c (Qbox): Add extern declaration.
15376
153772002-08-30 Juanma Barranquero <lektu@terra.es>
15378
15379 * w32fns.c (Qbox): Make extern.
15380 (syms_of_w32fns): Remove initialization of Qbox.
15381
153822002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
15383
15384 * xfns.c (Fx_open_connection): Fix error message.
15385
153862002-08-30 Kim F. Storm <storm@cua.dk>
15387
15388 The following changes consolidates the handling of the cursor
15389 type in xdisp.c, moving duplicate code and functionality from
15390 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
15391
15392 * frame.h (enum text_cursor_kinds): Consolidated here.
15393 Added DEFAULT_CURSOR value.
15394 (struct frame) <desired_cursor, cursor_width>
15395 <blink_off_cursor, blink_off_cursor_width>: New fields.
15396 Consolidated from output_x, output_w32 and output_mac structs.
15397 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15398 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
15399
15400 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
15401 Variables consolidated here.
15402 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
15403 (Vcursor_in_non_selected_windows): Renamed from
15404 cursor_in_non_selected_windows and changed to Lisp_Object.
15405 (syms_of_xdisp): Define and staticpro new and moved variables.
15406 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
15407 consolidated here. Recognize Qhollow setting.
15408 (set_frame_cursor_types): New function to set frame cursor types
15409 based on the frame parameters.
15410 (get_window_cursor_type): New function to calculate new cursor
15411 type and width for the specified window. Based on duplicated
15412 code consolidated here.
15413 Enhancements: cursor-in-non-selected-windows may be a cursor type,
15414 check buffer-local alternate-cursor-type and blink-cursor-alist
15415 before using built-in blink off methods.
15416
15417 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
15418
15419 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
15420 (get_specified_cursor_type, get_window_cursor_type)
15421 (set_frame_cursor_types): Added prototypes.
15422
15423 * macfns.c (x_specified_cursor_type): Removed.
15424 (x_set_cursor_type): Use set_frame_cursor_types.
15425 (Qbar, Qbox): Removed.
15426 (syms_of_macfns): Don't intern or staticpro them.
15427
15428 * macterm.c (x_specified_cursor_type): Remove prototype.
15429 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15430 (x_display_and_set_cursor): Use get_window_cursor_type.
15431 Remove unused local variables cursor_non_selected, active_cursor.
15432 Redraw cursor if hbar cursor width changes.
15433 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
15434
15435 * macterm.h (enum text_cursor_kinds): Removed.
15436 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
15437 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15438 (FRAME_DESIRED_CURSOR): Macro removed.
15439
15440 * w32fns.c (Vblink_cursor_alist): Removed.
15441 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15442 (syms_of_w32fns): Don't intern, staticpro, or define them.
15443 (x_specified_cursor_type): Removed.
15444 (x_set_cursor_type): Use set_frame_cursor_types.
15445
15446 * w32term.c (x_specified_cursor_type): Remove prototype.
15447 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15448 (x_display_and_set_cursor): Use get_window_cursor_type.
15449 Remove unused local variables cursor_off_state.
15450 Redraw cursor if hbar cursor width changes.
15451 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
15452
15453 * w32term.h (enum text_cursor_kinds): Removed.
15454 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
15455 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15456 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15457 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15458 (struct w32_display_info) <x_highlight_frame>: Renamed member from
15459 w32_highlight_frame.
15460
15461 * xfns.c (Vblink_cursor_alist): Removed.
15462 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15463 (syms_of_xfns): Don't intern, staticpro, or define them.
15464 (x_specified_cursor_type): Removed.
15465 (x_set_cursor_type): Use set_frame_cursor_types.
15466
15467 * xterm.c (x_specified_cursor_type): Remove prototype.
15468 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15469 (x_display_and_set_cursor): Use get_window_cursor_type.
15470 Remove unused local variables cursor_off_state.
15471 Redraw cursor if hbar cursor width changes.
15472
15473 * xterm.h (enum text_cursor_kinds): Removed.
15474 (struct output_x) <current_cursor, desired_cursor, cursor_width>
15475 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15476 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15477 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15478 (x_specified_cursor_type): Remove prototype.
15479
154802002-08-28 Richard M. Stallman <rms@gnu.org>
15481
15482 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15483 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15484 (Vblink_cursor_alist): New variable.
15485 (syms_of_w32fns): Initialize and defvar it.
15486 (x_specified_cursor_type): Recognize Qbox for filled box.
15487 Exceptions are hollow boxes.
15488 (Qbox, Qhollow): New variables.
15489 (syms_of_w32fns): Initialize and staticpro them.
15490
15491 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15492 New macros.
15493 (struct w32_output): New fields blink_off_cursor,
15494 blink_off_cursor_width.
15495 (FRAME_CURSOR_WIDTH): New macro.
15496
15497 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15498 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15499
15500 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15501 for bar cursor.
15502
15503 * w32term.c (expose_overlaps): New function.
15504 (expose_window): Use it to fix the display of overlapping rows.
15505
155062002-08-28 Simon Josefsson <jas@extundo.com>
15507
15508 * xfns.c (Fx_open_connection): Improve help when X connection
15509 fails, xhost is insecure and xauth is better.
15510
155112002-08-28 Juanma Barranquero <lektu@terra.es>
15512
15513 * makefile.w32-in: Add missing dependencies on w32term.h and
15514 composite.h.
15515
15516 * emacs.c (USAGE1): Add missing newline.
15517
155182002-08-27 Andrew Choi <akochoi@shaw.ca>
15519
15520 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
15521
155222002-08-27 Richard M. Stallman <rms@gnu.org>
15523
15524 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15525 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15526 (Vblink_cursor_alist): New variable.
15527 (syms_of_xfns): Initialize and defvar it.
15528 (x_specified_cursor_type): Recognize Qbox for filled box.
15529 Exceptions are hollow boxes.
15530 (Qbox, Qhollow): New variables.
15531 (syms_of_xfns): Initialize and staticpro them.
15532
15533 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15534 New macros.
15535 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
15536
15537 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15538 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15539
15540 * emacs.c (main): Handle --script.
15541 (USAGE1): Mention --script.
15542 (standard_args): Define sort order for --script.
15543
155442002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
15545
15546 * xdisp.c (redisplay_updating_p): Variable removed.
15547 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
15548 New variables.
15549 (init_iterator): Don't free realized faces if
15550 inhibit_free_realized_faces is set.
15551 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
15552 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
15553 initialize Qinhibit_free_realized_faces.
15554
15555 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
15556 when iterator is adding glyphs to a glyph matrix.
15557
155582002-08-27 Kenichi Handa <handa@etl.go.jp>
15559
15560 * xdisp.c (get_next_display_element): In unibyte case, don't use
15561 octal form for such eight-bit characters that can be converted to
15562 multibyte char.
15563
155642002-08-26 Kim F. Storm <storm@cua.dk>
15565
b6189c3b
KS
15566 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
15567 foreground and background colors. From Joe Buehler.
048addec
JD
15568
155692002-08-26 Miles Bader <miles@gnu.org>
15570
15571 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
15572
155732002-08-25 Andrew Choi <akochoi@shaw.ca>
15574
15575 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
15576 defined instead of MAC_OSX.
15577
15578 * s/darwin.h (select): Define select to sys_select only if
15579 HAVE_CARBON is defined.
15580 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
15581 (DONT_REOPEN_PTY): #def it.
15582
15583 * macterm.c (XTread_socket): Remove code to call
15584 SendEventToEventTarget for keys with command modifiers when
15585 mac_command_key_is_meta is nil.
15586
155872002-08-24 Andreas Schwab <schwab@suse.de>
15588
15589 * eval.c (Fdefvar): Fix last change.
15590
155912002-08-23 Richard M. Stallman <rms@gnu.org>
15592
15593 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
15594 Record variables in load history as (defvar . VAR).
15595 (Fdefvar): Don't record in load history if no initial value.
15596 (Qdefvar): New variable.
15597 (syms_of_eval): Init and staticpro it.
15598
15599 * lread.c (syms_of_lread): Doc fix.
15600 (build_load_history): Use Fmember to see if a definition
15601 is already in the Vload_history element.
15602
15603 * process.c (Fstart_process): Remove /: from program name.
15604
15605 * emacs.c (decode_env_path): Don't add /: if file name handler
15606 has a `safe-magic' property.
15607
15608 * callproc.c (Fcall_process): Remove /: from program name.
15609
156102002-08-23 Stefan Monnier <monnier@cs.yale.edu>
15611
15612 * regex.c (PATFETCH): Remove the translating fetch.
15613 (PATFETCH_RAW): Rename to PATFETCH.
15614 (set_image_of_range): New fun.
15615 (SET_RANGE_TABLE_WORK_AREA): Use it.
15616 (regex_compile): Don't translate the pattern chars so eagerly.
15617 Only do it when inserting an `exactn' bytecode or when handling
15618 a char-range.
15619 (mutually_exclusive_p): Avoid empty statement.
15620
156212002-08-22 Kim F. Storm <storm@cua.dk>
15622
15623 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
15624 end up on a partially visible line; this reverts a specific part
15625 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
15626 display error which has been reported several times now.
15627 However it introduces the problem that changes was supposed to fix.
15628 See my comments in the source if you want to debug this further.
15629
156302002-08-20 Kenichi Handa <handa@etl.go.jp>
15631
15632 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15633
156342002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
15635
15636 * msdos.c (croak): Add `void' to definition.
15637
c1380aa6 15638 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
15639 Don't define them, they are defined in msdos.c.
15640
15641 * mem-limits.h [MSDOS]: Declare etext.
15642
15643 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
15644 `const' since CORRECT_DIR_SEPS modifies its target.
15645
156462002-08-19 Kim F. Storm <storm@cua.dk>
15647
2fb0ce67 15648 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
15649 KEEP-RECORD to avoid clearing lossage when we just want to clear
15650 the current key sequence (kmacro needs this).
15651
156522002-08-19 Kenichi Handa <handa@localhost>
15653
15654 * composite.c (run_composition_function): Call FUNC if it is fboundp.
15655
15656 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
15657 cons, return Qnil.
15658
156592002-08-17 Richard M. Stallman <rms@gnu.org>
15660
15661 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
15662
15663 * sysdep.c [!VMS]: Include sys/files.h.
15664
15665 * editfns.c (save_restriction_restore): Defend from unchained marker.
15666
15667 * buffer.c (overlays_at): Handle extending vec uniformly.
15668 (overlays_in): Handle extending vec from length 0 as in overlays_at.
15669
156702002-08-15 Andrew Choi <akochoi@shaw.ca>
15671
15672 * mac.c (init_mac_osx_environment): New function.
15673
15674 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
15675
156762002-08-14 Kim F. Storm <storm@cua.dk>
15677
15678 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
15679 executing macro before appending to it (when used from Lisp).
15680 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
15681 which is called prior to each iteration of macro (for kmacro.el).
15682 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
15683
15684 * lisp.h (Fexecute_kbd_macro): Update prototype.
15685
15686 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
15687
156882002-08-14 Kenichi Handa <handa@etl.go.jp>
15689
15690 * xselect.c (QUTF8_STRING): New variable.
15691 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
15692 (x_atom_to_symbol): Likewise.
15693 (x_get_local_selection): New argument local_request. If it is
15694 nonzero, call handler_fn with the second arg nil.
15695 (x_handle_selection_request): Call x_get_local_selection with
15696 local_request 0.
15697 (lisp_data_to_selection_data): Don't encode the string here.
15698 (Fx_get_selection_internal): Call x_get_local_selection with
15699 local_request 1.
15700 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
15701
15702 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
15703
15704 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
15705
157062002-08-13 Richard M. Stallman <rms@gnu.org>
15707
15708 * minibuf.c (Fminibufferp): New function.
15709 (syms_of_minibuf): Defsubr it.
15710 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
15711
157122002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
15713
15714 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
15715
157162002-08-12 Richard M. Stallman <rms@gnu.org>
15717
15718 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
15719 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
15720 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
15721 already.
15722
15723 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
15724
157252002-08-11 Andrew Choi <akochoi@shaw.ca>
15726
15727 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
15728 (Vmac_pass_command_to_system): New variable.
15729 (Vmac_pass_control_to_system): New variable.
15730 (do_mouse_moved): Check wp with is_emacs_window.
15731 (XTread_socket): Check window_ptr with is_emacs_window.
15732 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
15733 events back to Mac Toolbox for processing, depending on values of
15734 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
15735 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
15736 Vmac_pass_control_to_system.
15737
157382002-08-10 Kenichi Handa <handa@etl.go.jp>
15739
15740 * coding.c (unencodable_char_position): New function.
15741 (Funencodable_char_position): New function.
15742 (syms_of_coding): Defsubr Funencodable_char_position.
15743
157442002-08-10 Andrew Choi <akochoi@shaw.ca>
15745
15746 * mac.c (sys_select) [MAC_OSX]: New function.
15747
15748 * macterm.c (MakeMeTheFrontProcess): New function.
15749 (mac_initialize): Call MakeMeTheFrontProcess.
15750
15751 * s/darwin.h: Define select to sys_select.
15752
157532002-08-09 Richard M. Stallman <rms@gnu.org>
15754
15755 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
15756
157572002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
15758
15759 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
15760 end of the buffer.
15761
157622002-08-08 Ken Raeburn <raeburn@mit.edu>
15763
15764 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
15765
15766 * puresize.h (BASE_PURESIZE): Increase to 910000.
15767
157682002-08-08 Kenichi Handa <handa@etl.go.jp>
15769
15770 * coding.c (Ffind_operation_coding_system): For write-region, if
15771 VISIT is a filename, make it the target.
15772
157732002-08-07 Richard M. Stallman <rms@gnu.org>
15774
15775 * alloc.c (mark_object): Detect long lists for debugging.
15776 (mark_object_loop_halt): New variable.
15777
15778 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
15779
15780 * data.c (Fmake_variable_frame_local): Doc fix.
15781
157822002-08-01 David Ponce <david@dponce.com>
15783
15784 * w32menu.c (local_heap, local_alloc, local_free): New macros.
15785 (malloc_widget_value, free_widget_value)
15786 (w32_free_submenu_strings): Use them.
15787
15788 (push_submenu_start, push_submenu_end, push_left_right_boundary)
15789 (push_menu_pane, push_menu_item, single_keymap_panes)
15790 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
15791 (single_submenu, set_frame_menubar)
15792 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
15793
15794 (Fx_popup_menu): Don't show pop up menu until preceding one is
15795 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
15796
15797 * w32menu.c: Changes adapted from xmenu.c
15798 (set_frame_menubar): First parse all submenus,
15799 then make widget_value trees from them.
15800 Don't allocate any widget_value objects
15801 until we are done with the parsing.
15802 (parse_single_submenu): New function.
15803 (digest_single_submenu): New function.
15804 (single_submenu): Function deleted, replaced by those two.
15805
158062002-08-04 Andrew Choi <akochoi@shaw.ca>
15807
15808 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
15809 returns a valid window pointer before proceeding for keyDown and
15810 autoKey events.
15811
158122002-08-03 Andrew Choi <akochoi@shaw.ca>
15813
15814 * macterm.c (USE_CARBON_EVENTS): New macro.
15815 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
15816 (x_iconify_frame): Call CollapseWindow.
15817 (Vmac_reverse_ctrl_meta): New variable.
15818 (Vmac_wheel_button_is_mouse_2): New variable.
15819 (init_mac_drag_n_drop): New function.
15820 (mac_do_receive_drag): New function.
15821 (mac_handle_service_event): New function.
15822 (init_service_handler): New function.
15823 (mac_to_emacs_modifiers): New function.
15824 (mac_event_to_emacs_modifiers): New function.
15825 (mac_get_mouse_btn): New function.
15826 (mac_convert_event_ref): New function.
15827 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
15828 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
15829 mac_get_mouse_btn.
15830 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
15831
15832 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
15833 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
15834 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
15835 TOOL_BAR_EVENT for MAC_OS as well.
15836 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
15837 as for WINDOWS_NT.
15838 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
15839
15840 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
15841
158422002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
15843
15844 * xdisp.c (forward_to_next_line_start): Fix a condition that
15845 lead to a newline being skipped.
15846
158472002-08-02 Andrew Choi <akochoi@shaw.ca>
15848
15849 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
15850
158512002-08-01 Richard M. Stallman <rms@gnu.org>
15852
15853 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
15854
158552002-07-31 Andrew Choi <akochoi@shaw.ca>
15856
15857 * macfns.c: #undef init_process before #define-ing it.
15858
15859 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
15860 HAVE_CARBON is defined.
15861
158622002-07-31 Richard M. Stallman <rms@gnu.org>
15863
15864 * xmenu.c (set_frame_menubar): First parse all submenus,
15865 then make widget_value trees from them.
15866 Don't allocate any widget_value objects
15867 until we are done with the parsing.
15868 (parse_single_submenu): New function.
15869 (digest_single_submenu): New function.
15870 (single_submenu): Function deleted, replaced by those two.
15871
158722002-07-30 Juanma Barranquero <lektu@terra.es>
15873
15874 * w32proc.c (syms_of_ntproc): Fix docstring of
15875 `w32-get-true-file-attributes'.
15876
158772002-07-28 Richard M. Stallman <rms@gnu.org>
15878
15879 * s/hpux8.h (HPUX8): Define this before including hpux.h.
15880 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
15881
15882 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
15883
15884 * keyboard.c (make_lispy_event):
15885 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
15886 Explicitly clear up_modifier in event->modifiers.
15887
158882002-07-27 Richard M. Stallman <rms@gnu.org>
15889
15890 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
15891
15892 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15893 for bar cursor.
15894
158952002-07-26 Kenichi Handa <handa@etl.go.jp>
15896
15897 * coding.c (detect_coding_iso2022): While checking a byte sequence
15898 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
15899 it in the normal loop.
15900
159012002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
15902
15903 * xterm.c (expose_overlaps): New function.
15904 (expose_window): Use it to fix the display of overlapping rows.
15905
15906 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
15907
159082002-07-23 Ken Raeburn <raeburn@gnu.org>
15909
15910 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
15911 since it only depends on XUINT.
15912
15913 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
15914 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
15915 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
15916 Macros deleted.
3947677c 15917
77d1daf2
AS
15918 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
15919 its value over other approaches.
15920 * sysdep.c (start_of_data): Don't define the function if a macro
15921 form has been defined.
8a8e19a3 15922
048addec
JD
159232002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
15924
15925 * xdisp.c (redisplay_updating_p): New variable.
15926 (init_iterator): Don't free realized faces when
15927 redisplay_updating_p is set.
15928 (redisplay_internal): Set redisplay_updating_p while updating
15929 the display.
15930
159312002-07-23 Richard M. Stallman <rms@gnu.org>
15932
15933 * editfns.c (Fmessage): Treat "" like nil.
15934
159352002-07-23 Kenichi Handa <handa@etl.go.jp>
15936
15937 * xdisp.c (face_before_or_after_it_pos):
15938 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15939
159402002-07-22 Juanma Barranquero <lektu@terra.es>
15941
15942 * callproc.c (init_callproc) [DOS_NT]:
15943 Initialize Vshared_game_score_directory to nil.
15944 (syms_of_callproc) [DOS_NT]: Likewise.
15945
159462002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
15947
15948 * xdisp.c (display_line): Replace an abort with xassert.
15949
159502002-07-21 Richard M. Stallman <rms@gnu.org>
15951
15952 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
15953 and END_UNCHANGED when setting buffer_unchanged_p.
15954 Use current_matrix_up_to_date_p to decide whether to use
15955 try_cursor_movement.
15956
15957 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
15958
15959 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
15960
15961 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
15962 Set to nil if dir does not exist.
15963 (syms_of_callproc): Init unconditionally and simply.
15964
15965 * buffer.c (Fbuffer_list): Doc fix.
15966
159672002-07-21 Ken Raeburn <raeburn@gnu.org>
15968
15969 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
15970
15971 * buffer.c (mmap_realloc): When shrinking, make sure number of
15972 pages to unmap is rounded towards zero.
15973
15974 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
15975 (XSETINT): Deleted.
15976
15977 * m/att3b.h (XINT): Don't define.
15978 (VALBITS, VALMASK, XTYPE): Deleted.
15979 (DATA_SEG_BITS): Define.
15980 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
15981 ARRAY_MARK_FLAG): Deleted.
15982 (DATA_SEG_BITS): Define.
15983 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
15984 (DATA_SEG_BITS): Define.
15985
159862002-07-20 Richard M. Stallman <rms@gnu.org>
15987
15988 * print.c (print_error_message): New args CONTEXT and CALLER.
15989 Calls changed.
15990
15991 * lisp.h (print_error_message): Declare new args.
15992
15993 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
15994 and CONTEXT to print_error_message, don't print them here.
15995 For a Quit, don't use Vsignaling_function.
15996 Call message_log_maybe_newline.
15997
15998 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
15999
160002002-07-20 Kim F. Storm <storm@cua.dk>
16001
16002 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
16003
160042002-07-19 Ken Raeburn <raeburn@gnu.org>
16005
16006 * bytecode.c (struct byte_stack): Pointers into byte string now
16007 point to const.
16008 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
16009 const.
16010 * charset.h (BCOPY_SHORT): Source pointer now points to const.
16011 * coding.c (encode_eol, detect_coding, detect_eol):
16012 (decode_coding, encode_coding, detect_coding_system):
16013 Source strings now treated as const.
16014 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
16015 modify Lisp string contents.
16016 * coding.h (decode_coding, encode_coding, detect_coding,
16017 detect_eol): Declarations updated.
16018 * composite.c (compose_chars_in_text): Treat Lisp string contents
16019 as const.
16020 * dispnew.c (safe_bcopy): Source pointer now points to const.
16021 * lisp.h (STRING_COPYIN): New macro.
16022 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
16023 (internal_with_output_to_temp_buffer): Declarations updated.
16024 * print.c (temp_output_buffer_setup):
16025 (internal_with_output_to_temp_buffer): Buffer name argument is now
16026 pointer to const.
16027 * sound.c (struct sound_device): Function pointer field "write"
16028 buffer argument now points to const.
16029 (vox_write): Buffer argument points to const.
16030 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
16031 contents as const.
16032 * sysdep.c (emacs_write): Buffer pointer now const.
16033 * term.c (encode_terminal_code): Buffer pointer now const.
16034 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
16035 (x_face_list_fonts, x_update_menu_appearance):
16036 (hash_string_case_insensitive): Treat Lisp string contents as const.
16037
160382002-07-19 Juanma Barranquero <lektu@terra.es>
16039
048addec
JD
16040 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
16041
16042 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
16043 (Ffile_name_as_directory): Fix argument name in docstring.
16044 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
16045
160462002-07-18 Richard M. Stallman <rms@gnu.org>
16047
16048 * data.c (Fdefalias): Doc fix.
16049
160502002-07-17 Dave Love <fx@gnu.org>
16051
16052 * intervals.h (text_property_stickiness): Use P_.
16053
16054 * ccl.c: Remove `emacs' conditionals.
16055 (ccl_backtrace_table): Fix size spec.
16056 (ccl_driver): Fix type errors.
16057
160582002-07-16 Ken Raeburn <raeburn@gnu.org>
16059
16060 * alloc.c (xstrdup, make_string, make_unibyte_string)
16061 (make_multibyte_string, build_string): String pointer args now
16062 point to const.
16063 * charset.c (find_charset_in_text, c_string_width):
16064 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
16065 * fileio.c (report_file_error):
16066 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
16067 (count_combining_before, count_combining_after, insert_1_both):
16068 (insert, insert_and_inherit, insert_string):
16069 (insert_before_markers, insert_before_markers_and_inherit):
16070 * lread.c (intern, oblookup, hash_string):
16071 * minibuf.c (temp_echo_area_glyphs):
16072 * search.c (fast_c_string_match_ignore_case):
16073 * sysdep.c (emacs_open, set_file_times):
16074 * xfaces.c (xstricmp):
16075 * xdisp.c (store_frame_title, string_char_and_length):
16076 (message_dolog, message2, message2_nolog, set_message): Likewise.
16077 (set_message_1): Cast message string argument to const pointer.
16078 * editfns.c (general_insert_function): Insertion function now
16079 takes pointer to const for input data.
16080 * charset.h (find_charset_in_text, c_string_width):
16081 (parse_str_as_multibyte): Declarations updated.
16082 * dispextern.h (xstricmp): Declaration updated.
16083 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
16084 (count_size_as_multibyte, count_combining_before):
16085 (count_combining_after, insert_1, insert_1_both, message_dolog):
16086 (insert, insert_and_inherit, insert_before_markers)
16087 (insert_before_markers_and_inherit, set_message, message2):
16088 (message2_dolog, build_string, make_string, make_unibyte_string):
16089 (make_multibyte_string, intern, oblookup, report_file_error):
16090 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
16091 (emacs_open, xstrdup): Declarations updated.
16092 * systime.h (set_file_times): Declaration updated.
16093
16094 * charset.c (find_charset_in_text, lisp_string_width): Use const
16095 for pointer to lisp string data.
16096 * charset.h (FETCH_STRING_CHAR_ADVANCE):
16097 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
16098 * coding.c (Ffind_coding_systems_region_interval):
16099 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
16100 (Fmake_directory_internal, Fdelete_directory):
16101 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
16102 * fontset.c (font_family_registry, fs_query_fontset):
16103 (list_fontsets):
16104 * frame.c (Fframe_parameter):
16105 * keyboard.c (cmd_error_internal):
16106 * keymap.c (Fdescribe_buffer_bindings):
16107 * lread.c (complete_filename_p, openp):
16108 * minibuf.c (Fminibuffer_complete_word):
16109 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
16110 (face_before_or_after_it_pos, next_element_from_string):
16111 (get_overlay_arrow_glyph_row, display_mode_element):
16112 (decode_mode_spec_coding):
16113 * xterm.c (same_x_server): Likewise.
16114
16115 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
16116 settings of non-existent fields.
16117
16118 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
16119 copy a lisp value.
16120
16121 * lread.c (Fintern_soft): Use string macros instead of
16122 Lisp_String fields.
16123 * keyboard.c (echo_char, parse_modifiers_uncached):
16124 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
16125 * textprop.c (validate_interval_range, interval_of): Likewise.
16126
16127 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
16128
16129 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16130 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
16131 XSTRING()->size_byte.
16132
16133 * lisp.h (SDATA, SREF): Produce rvalue.
16134 (SSET): New macro.
16135 * alloc.c (make_event_array): Use SSET for storing into a string.
16136 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
16137 a string.
16138 * casefiddle.c (casify_object): Use SSET.
16139 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16140 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
16141 address of string contents.
16142 * data.c (Faref): Use SDATA.
16143 (Faset): Use SDATA, SSET.
16144 * dired.c (directory_files_internal): Use SSET.
16145 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
16146 (Fread_file_name): Use SREF, SSET.
16147 * fns.c (concat): Use SSET.
16148 (concat, Fdelete): Use SDATA.
16149 * insdel.c (insert_from_string_1): Use SDATA.
16150 * keyboard.c (Fevent_convert_list): Use SREF.
16151 * lread.c (Fload): Use SDATA, SSET.
16152 * macfns.c (validate_x_resource_name): Use SSET.
16153 * process.c (status_message): Use SSET.
16154 * search.c (wordify): Use SDATA.
16155 (Freplace_match): Use SREF.
16156 * w32fns.c (validate_x_resource_name): Use SSET.
16157 * xfns.c (validate_x_resource_name): Use SSET.
16158 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
16159
161602002-07-16 Richard M. Stallman <rms@gnu.org>
16161
16162 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
16163
16164 * xdisp.c (reconsider_clip_changes):
16165 Don't test prevent_redisplay_optimizations_p.
16166 (redisplay_internal): Test prevent_redisplay_optimizations_p
16167 along with clip_changed in some cases.
16168 (try_window_id): Likewise.
16169 (redisplay_window): New local var buffer_unchanged_p.
16170
16171 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
16172
16173 * process.c (create_process): Test USG_SUBTTY_WORKS.
16174 (process_send_signal): Clean up handling of GID.
16175 Detect errors in ioctls meant to set GID.
16176
16177 * window.c (temp_output_buffer_show):
16178 Don't set prevent_redisplay_optimizations_p.
16179
161802002-07-15 Juanma Barranquero <lektu@terra.es>
16181
16182 * eval.c (Fdefvaralias): Add docstring argument.
16183
161842002-07-15 Ken Raeburn <raeburn@gnu.org>
16185
16186 * lisp.h (STRING_INTERVALS): Produce rvalue.
16187 (STRING_SET_INTERVALS): New macro.
16188 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
16189 * fns.c (Fstring_as_multibyte): Likewise.
16190 * intervals.c (balance_possible_root_interval, delete_interval)
16191 (create_root_interval, copy_intervals_to_string): Likewise.
16192 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
16193 instead of 0.
16194
161952002-07-14 Ken Raeburn <raeburn@gnu.org>
16196
16197 * lisp.h (STRING_SET_CHARS): New macro.
16198 (SCHARS, SBYTES): Produce rvalues.
16199 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
16200 * fns.c (concat): Likewise.
16201 * lread.c (read_vector): Likewise.
16202
3419757d 16203 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 16204 (STRING_SET_UNIBYTE): New macro.
3419757d 16205 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
16206 length of -1) changed to use STRING_SET_UNIBYTE.
16207 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16208 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
16209 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
16210 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
16211 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
16212 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
16213 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
16214 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
16215 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16216 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
16217 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
16218 STRING_BYTES or indirection changed to SCHARS, SBYTES,
16219 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
16220 unchanged for now.
16221
162222002-07-13 Kim F. Storm <storm@cua.dk>
16223
16224 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
16225
162262002-07-12 Richard M. Stallman <rms@gnu.org>
16227
16228 * fileio.c (Fwrite_region): Doc fix.
16229
16230 * print.c (print_error_message): Don't handle Vsignaling_function here.
16231
16232 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
16233 (command_loop_1): Avoid certain actions after memory-full error.
16234
16235 * eval.c (Fsignal): Don't call cancel_hourglass.
16236 For a memory-full error, don't call Vsignal_hook_function
16237 and don't set Vsignaling_function.
16238
16239 * process.c (process_send_signal): Add abort call.
16240
162412002-07-11 Markus Rost <rost@math.ohio-state.edu>
16242
16243 * keymap.c (Fkey_binding): Fix typo.
16244
162452002-07-11 Richard M. Stallman <rms@gnu.org>
16246
16247 * alloc.c (Vmemory_full): New variable.
3419757d 16248 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
16249 Uses changed.
16250 (syms_of_alloc): Defvar them.
16251 (memory_full, buffer_memory_full): Set Vmemory_full.
16252
16253 * lisp.h (Vmemory_full): Add declaration.
16254 (current_column, indented_beyond_p): Change declaration.
16255
16256 * indent.c (last_known_column): Declare as double, not float.
16257 (current_column, current_column_1, string_display_width)
16258 (position_indentation): Return `double'.
16259 (indented_beyond_p): Arg `column' is `double'. Callers changed.
16260
16261 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
16262 (back_to_previous_visible_line_start)
16263 (reseat_at_next_visible_line_start, next_element_from_buffer):
16264 Use `double', not `float', when calling indented_beyond_p.
16265
3419757d 16266 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
16267
16268 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
16269
162702002-07-11 Juanma Barranquero <lektu@terra.es>
16271
16272 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
16273 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
16274 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
16275 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
16276 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
16277 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
16278
162792002-07-10 Juanma Barranquero <lektu@terra.es>
16280
d814862a
JB
16281 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
16282 All callers changed.
048addec
JD
16283
162842002-07-09 Stefan Monnier <monnier@cs.yale.edu>
16285
16286 * data.c (Fdefalias): Add an optional `docstring' argument.
16287 (set_internal, Fsetq_default): Use XCAR/XCDR.
16288
16289 * composite.c (HASH_VALUE, HASH_KEY):
16290 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
16291
162922002-07-09 Kenichi Handa <handa@etl.go.jp>
16293
16294 * callproc.c (Fcall_process): Fix previous change.
16295
162962002-07-07 Stefan Monnier <monnier@cs.yale.edu>
16297
16298 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
16299 Add support for hash-tables.
16300 (Ftry_completion): Return t even if the string appears multiple times.
16301
16302 * fns.c (Fnconc): Use XCDR.
16303 (Fprovide): Use CONSP and XCDR.
16304 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16305 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
16306 (Fmake_hash_table): Accept `:size nil'.
16307 (Fmakehash): Delete: moved to subr.el.
16308 (syms_of_fns): Don't defsubr makehash.
16309
16310 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16311 (HASH_TABLE_SIZE): Move from fns.c.
16312
163132002-07-07 Richard M. Stallman <rms@gnu.org>
16314
16315 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
16316 Instead just return 0 when there is something to be done.
16317 (try_scrolling): If make_cursor_line_fully_visible returns 0,
16318 retry scrolling as if cursor were off the bottom.
16319 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
16320 return CURSOR_MOVEMENT_MUST_SCROLL.
16321 (redisplay_window): If make_cursor_line_fully_visible returns 0,
16322 go to try_to_scroll.
16323
16324 * buffer.c (Fbuffer_local_value): Store current value into its binding
16325 so we get the up-to-date value for the binding that is loaded.
16326
16327 * eval.c (Fdefmacro): Doc fix.
16328
163292002-07-05 Dave Love <fx@gnu.org>
16330
16331 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
16332 correctly.
16333
16334 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
16335 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
16336 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
16337 CCL_LookupCharConstTbl.
16338 (syms_of_ccl): Defvar translation-hash-table-vector.
16339
163402002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16341
16342 * xdisp.c: Remove unused variable `face'.
16343
163442002-07-04 Juanma Barranquero <lektu@terra.es>
16345
16346 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
16347 obsolescence information.
16348
163492002-07-03 Andrew Choi <akochoi@shaw.ca>
16350
16351 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
16352 pattern. Search cache first.
16353 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
16354 for Japanese font.
16355 (XLoadQueryFont): Use it.
16356
163572002-07-02 Richard M. Stallman <rms@gnu.org>
16358
16359 * keymap.c (Fdefine_key): Doc fix.
16360
16361 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
16362
163632002-07-02 Juanma Barranquero <lektu@terra.es>
16364
16365 * keymap.c (syms_of_keymap): Fix typo.
16366
163672002-07-01 Andrew Choi <akochoi@shaw.ca>
16368
16369 * s/darwin.h: Define POSIX_SIGNALS.
16370
16371 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
16372 and FSRefMakePath to convert FSSpec returned with Apple Event to
16373 Posix pathname.
16374 (mac_initialize) [TARGET_API_MAC_CARBON]:
16375 Call init_required_apple_events and disable the `Quit' menu item
16376 provided automatically by the Carbon Toolbox.
16377
163782002-07-01 Dave Love <fx@gnu.org>
16379
16380 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16381 for K&R.
16382
16383 * xterm.c: Fix prototype for K&R.
16384
16385 * term.c (costs_set): Declare static, non-initialized for pcc.
16386
163872002-07-01 Richard M. Stallman <rms@gnu.org>
16388
16389 * keyboard.c (timer_last_idleness_start_time): New variable.
16390 (timer_start_idle): Set that.
16391 (read_key_sequence): Use that to reset timer_idleness_start_time
16392 to previous value.
16393
16394 * window.c (Frecenter): With arg, set optional_new_start.
16395
16396 * xdisp.c (redisplay_internal): Make optional_new_start really work.
16397
16398 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
16399 buffer for completion.
16400
164012002-06-29 Ken Raeburn <raeburn@gnu.org>
16402
16403 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
16404
164052002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16406
16407 * keyboard.c (readable_filtered_events): New function that filters
16408 FOCUS_IN_EVENT depending on parameter.
16409 (readable_events): Calls readable_filtered_events, not filtering
16410 FOCUS_IN_EVENT.
16411 (get_filtered_input_pending): New function, filtering parameter passed
16412 to readable_filtered_events.
16413 (get_input_pending): Calls get_filtered_input_pending, not filtering
16414 FOCUS_IN_EVENT.
16415 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
16416 FOCUS_IN_EVENT.
16417
16418 * xterm.h (struct x_output): Add focus_state.
16419
16420 * xterm.c (x_focus_changed): New function.
16421 (x_detect_focus_change): New function.
16422 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
16423 EnterNotify and LeaveNotify to track X focus changes.
16424
164252002-06-28 Andreas Schwab <schwab@suse.de>
16426
16427 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
16428
164292002-06-27 Kim F. Storm <storm@cua.dk>
16430
52eb0373 16431 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
16432 (mode_line_string_face_prop): New variables.
16433 (store_mode_line_string): New function.
16434 (display_mode_element): Use store_mode_line_string to
16435 add mode-line string elements to mode_line_string_list
16436 when mode_line_string_list is non-nil.
16437 (Fformat_mode_line): Now returns propertized string by
16438 default. New arg NO-PROPS to ignore properties.
16439 (decode_mode_spec): Only add two dashes for %- in propertized
16440 mode-line string.
16441 (syms_of_xdisp): Init and staticpro mode_line_string_list.
16442
164432002-06-27 Stefan Monnier <monnier@cs.yale.edu>
16444
16445 * minibuf.c (minibuffer_completion_contents): Add return type.
16446
164472002-06-27 Juanma Barranquero <lektu@terra.es>
16448
16449 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
16450
164512002-06-26 Juanma Barranquero <lektu@terra.es>
16452
16453 * fileio.c (read_file_name_cleanup): Add missing return.
16454
164552002-06-26 Richard M. Stallman <rms@gnu.org>
16456
16457 * window.c (Frecenter): Don't set force_start flag.
16458
16459 * minibuf.c (do_completion, Fminibuffer_complete_word)
16460 (Fminibuffer_completion_help): Complete just the text before point.
16461 (minibuffer_completion_contents): New function.
16462
16463 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
16464
16465 * frame.c (frames_bury_buffer): Function deleted.
16466
164672002-06-25 Miles Bader <miles@gnu.org>
16468
16469 * callint.c (Fcall_interactively): When checking to see if doprnt hit
16470 the end of callint_message, allow for a terminating '\0'.
16471
164722002-06-24 Juanma Barranquero <lektu@terra.es>
16473
52eb0373 16474 * w32select.c: Include composite.h.
048addec
JD
16475
16476 * w16select.c: Likewise.
16477
164782002-06-24 Kenichi Handa <handa@etl.go.jp>
16479
16480 * callproc.c (Fcall_process): If code detection is necessary,
16481 call detect_coding directly here.
16482
16483 * coding.c (detect_eol): Preserve coding->cmp_data.
16484
16485 * w16select.c (Fw16_get_clipboard_data):
16486 * w32fns.c (w32_to_x_font):
16487 * w32select.c (Fw32_get_clipboard_data):
16488 * xselect.c (selection_data_to_lisp_data):
16489 * xterm.c (XTread_socket): Disable composition handling.
16490
164912002-06-24 Stefan Monnier <monnier@cs.yale.edu>
16492
16493 * print.c (temp_output_buffer_setup): Kill all local variables.
16494
164952002-06-22 Stefan Monnier <monnier@cs.yale.edu>
16496
16497 * lread.c (Fread): Remove redundant and imprecise declaration.
16498
16499 * xfns.c (check_x_display_info): Use check_x_frame.
16500
16501 * .gdbinit (xprintsym): Use the new `xname' field.
16502 (xsymbol): Use it.
16503
165042002-06-22 Jason Rumney <jasonr@gnu.org>
16505
16506 * w32fns.c (file_dialog_callback): New function.
16507 (Fx_file_dialog): Allow selecting directories as well as files.
16508
165092002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16510
16511 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 16512 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
16513
165142002-06-17 Andrew Choi <akochoi@shaw.ca>
16515
16516 * macterm.c (mac_scroll_area): Set foreground and backcolor to
16517 black and white before scrolling. Restore frame background and
16518 foreground color after scrolling.
16519 (do_window_update): Call XClearWindow before calling expose_frame.
16520 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
16521 FRAME_FOREGROUND_PIXEL of frame.
16522
16523 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16524 test Mac command key as <ALT> key.
16525
165262002-06-17 Stefan Monnier <monnier@cs.yale.edu>
16527
16528 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
16529
16530 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
16531 Lookup keys in function-key-map immediately so that key-translation-map
16532 can be applied earlier.
16533 Remove function_key_possible and key_translation_possible, replaced
16534 by checking `keytran_start < t'.
16535
16536 * .gdbinit (xsymbol): Use the new `xname' field.
16537
165382002-06-17 Andrew Choi <akochoi@shaw.ca>
16539
16540 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16541 test Mac command key as <ALT> key.
16542
16543 * mac.c (do_applescript): Call initialize_applescript if necessary
16544 when first called. Dispose of result_desc only when there is no error.
16545 (Fdo_applescript): Use %d format specifier instead of %ld.
16546
165472002-06-16 Andrew Choi <akochoi@shaw.ca>
16548
16549 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
16550 of FrontWindow for cases keyDown and autoKey.
16551
16552 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
16553 Vdefault_fontset to Monaco with mac-roman coding.
16554
16555 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
16556 init_process before and after inclusion of Carbon/Carbon.h, resp.
16557
16558 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
16559 cursor_gc.
16560 (add_font_name_table_entry): New function.
16561 (init_font_name_table): Use add_font_name_table_entry; add italic,
16562 bold, and bold-italic entries for truetype fonts.
16563
16564 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
16565 for Mac too.
16566 (try_font_list) [MAC_OS]: If no font matches given registry, try
16567 fonts with any registry matching face_family.
16568 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
16569
16570 * s/darwin.h: If autoconf detects the Ncurses library, define
16571 LIBS_TERMCAP to -lncurses to use it.
16572
165732002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
16574
16575 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
16576
165772002-06-15 Richard M. Stallman <rms@gnu.org>
16578
16579 * window.c (Fset_window_configuration): Explicitly preserve
16580 the point value that new_current_buffer had at the start.
16581
165822002-06-14 Juanma Barranquero <lektu@terra.es>
16583
16584 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
16585 Fix typos.
16586
165872002-06-14 Kim F. Storm <storm@cua.dk>
16588
16589 * insdel.c (insert_1_both, insert_from_string_1)
16590 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
16591 insert happened in the end_unchanged region. Otherwise, the
16592 redisplay may be confused and duplicate the last line in the
16593 buffer [seen after save-buffer when require-final-newline==t].
16594
165952002-06-13 Jason Rumney <jasonr@gnu.org>
16596
16597 * w32.c (init_environment): Remove EMACSLOCKDIR.
16598 (stat): Swap _S_IFDIR and _S_IFREG.
16599
166002002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16601
16602 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
16603 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
16604 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
16605 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
16606 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
16607 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
16608 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
16609 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
16610 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
16611 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
16612 SELECTION_REQUEST_EVENT, selection_clear_event to
16613 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
16614 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
16615 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
16616 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
16617 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
16618 no_event to NO_EVENT.
16619
166202002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16621
16622 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
16623
166242002-06-12 Stefan Monnier <monnier@cs.yale.edu>
16625
16626 * intervals.c (textget): Don't forget to `return'.
16627 (lookup_char_property): Use XCAR/XCDR.
16628
166292002-06-12 Juanma Barranquero <lektu@terra.es>
16630
16631 * xdisp.c (Fformat_mode_line): Fix typo.
16632
166332002-06-12 Kim F. Storm <storm@cua.dk>
16634
16635 * xdisp.c (Fformat_mode_line): New function.
16636 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
16637 (store_frame_title_char, store_frame_title): Use unconditionally.
16638 (init_xdisp): Defsubr Fformat_mode_line.
16639 Initialize frame_title_buf etc. unconditionally.
16640
166412002-06-11 Stefan Monnier <monnier@cs.yale.edu>
16642
16643 * keyboard.c (read_key_sequence):
16644 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
16645 things through those maps after downcasing events.
16646 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
16647 applies after function-key-map.
16648 Make sure that keytran can be done in the middle in the sequence.
16649 Be careful not to throw away events past the one we downcase.
16650
16651 * lread.c (read_integer): Remove unused var `tem'.
16652 (read1): Fix int/Lisp_Object mixup.
16653
16654 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
16655
166562002-06-11 Richard M. Stallman <rms@gnu.org>
16657
16658 * keyboard.c (readable_events): Ignore any number of
16659 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
16660
166612002-06-09 Miles Bader <miles@gnu.org>
16662
16663 * xfaces.c (Ftty_supports_face_attributes_p): New function.
16664 (parse_rgb_list, tty_lookup_color): New functions.
16665 (tty_defined_color): Use `tty_lookup_color' to do all the work.
16666 (color_distance, Fcolor_distance): New functions.
16667 (TTY_SAME_COLOR_THRESHOLD): New macro.
16668 (Qtty_color_standard_values): New variable.
16669 (syms_of_xfaces): Initialize new vars & functions.
16670
166712002-06-08 Colin Walters <walters@verbum.org>
16672
16673 * textprop.c (Vchar_property_alias_alist): New variable.
16674 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
16675
16676 * intervals.c (lookup_char_property): New function for looking up
16677 overlay and text properties, created from textget.
16678 (textget): Use it.
16679
16680 * intervals.h (lookup_char_property): Declare.
16681 (Vchar_property_alias_alist): Declare.
16682
16683 * buffer.c (Foverlay_get): Use lookup_char_property.
16684
166852002-06-07 Sam Steingold <sds@gnu.org>
16686
16687 * xselect.c (lisp_data_to_selection_data): Fix last change:
16688 *data_ret is not a Lisp string, while unibyte_string is.
16689
166902002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
16691
16692 * xselect.c (lisp_data_to_selection_data): Fix last change:
16693 set size_ret.
16694
166952002-06-07 Andreas Schwab <schwab@suse.de>
16696
16697 * m/amdx86-64.h: New file.
16698
166992002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
16700
16701 * fns.c (Fstring_make_unibyte): Doc fix.
16702
16703 * xselect.c (lisp_data_to_selection_data): If the requested type
16704 is STRING, call string_make_unibyte to encode the selected text
16705 as a string.
16706
16707 * window.c (Fset_window_hscroll): Doc fix.
16708
167092002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16710
16711 * fileio.c (choose_write_coding_system):
16712 Call select-safe-coding-system properly.
16713
167142002-06-03 Richard M. Stallman <rms@gnu.org>
16715
16716 * xdisp.c (message_with_string): Error if STRING is not a string.
16717
16718 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
16719
16720 * fileio.c (choose_write_coding_system): Pass FILE arg to
16721 Vselect_safe_coding_system_function.
16722
167232002-06-03 Ken Raeburn <raeburn@gnu.org>
16724
16725 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
16726
167272002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
16728
16729 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
16730 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
16731 * keymap.c (describe_command): Likewise.
16732 * minibuf.c (read_minibuf): Likewise.
16733
16734 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
16735 Cast `current_column' return value to int.
16736 (back_to_previous_visible_line_start)
16737 (reseat_at_next_visible_line_start, next_element_from_buffer):
16738 Cast `indented_beyond_p' 3rd arg to float.
16739
16740 * indent.c (last_known_column): Now a float.
16741 (current_column_1, position_indentation, current_column)
16742 (string_display_width): Return float.
16743 (Fcurrent_column): Cast `current_column' return value to int.
16744 (Fcurrent_indentation): Cast `position_indentation' retval to int.
16745 (indented_beyond_p): Third arg now a float.
16746 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
16747
16748 * lisp.h (current_column): Now returns float.
16749 (indented_beyond_p): 3rd arg now a float.
16750
167512002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
16752
16753 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
16754 is Qcompound_text_with_extensions.
16755
16756 * xselect.c (lisp_data_to_selection_data): Always set selection
16757 type as string if x_encode_text returns streingp non-NULL.
16758
16759 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
16760
167612002-05-30 Richard M. Stallman <rms@gnu.org>
16762
16763 * window.c (Fset_window_configuration): Correct the handling
16764 of point in current buffer, to work with multiple windows.
16765
167662002-05-29 Colin Walters <walters@verbum.org>
16767
16768 * lread.c (Fread_from_string): Don't depend on order of evaluation
16769 for C function parameters.
16770
167712002-05-28 Richard M. Stallman <rms@gnu.org>
16772
16773 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
16774 way for blinked-off state and for a nonselected window.
16775
16776 * window.c (window_scroll_pixel_based): Don't call Fbolp;
16777 instead, see if the new start pos is at beginning of line.
16778
16779 * fileio.c (Fwrite_region): If START is a string, don't
16780 make any annotations.
16781
16782 * eval.c (syms_of_eval): Doc fix.
16783
167842002-05-28 Colin Walters <walters@debian.org>
16785
16786 * emacs.c (USAGE1): Add --no-splash.
16787 (standard_args): Ditto.
16788
167892002-05-28 Colin Walters <walters@gnu.org>
16790
16791 * lread.c (readchar_count): New variable.
16792 (readchar): Increment it.
16793 (unreadchar): Decrement it.
16794 (read_multibyte): Decrement it.
16795 (Vread_with_symbol_positions): New variable.
16796 (Vread_symbol_positions_list): New variable.
16797 (read_internal_start): New function, created from Fread and
16798 Fread_from_string. Handle Vread_symbol_positions_list and
16799 Vread_with_symbol_positions.
16800 (readevalloop, Fread, Fread_from_string): Use it.
16801 (read1): Use readchar_count to add symbol positions to
16802 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
16803 (syms_of_lread): DEFVAR_LISP and initialize them.
16804
16805 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
16806 (substitute_object_recurse, substitute_object_in_subtree)
16807 (substitute_in_interval): Prototype.
16808 (read_multibyte): Return c if it's less than zero.
16809
168102002-05-28 Kim F. Storm <storm@cua.dk>
16811
16812 * fileio.c (Fread_file_name_internal): Added brute-force
16813 speed up for using predicate file-directory-p.
16814
168152002-05-28 Kim F. Storm <storm@cua.dk>
16816
16817 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
16818 New variables.
16819 (syms_of_fileio): DEFVAR_LISP them.
16820 (read_file_name_cleanup): New unwind function.
16821 (Fread_file_name_internal): Only return completions satifying
16822 Vread_file_name_predicate. Temporarily unwind protect and rebind
16823 default-directory while checking completions against the predicate.
16824 (Fread_file_name): Added PREDICATE argument. Specbind it to
16825 Vread_file_name_predicate during completion.
16826 Call Vread_file_name_function to read the file name if non-nil.
16827
16828 * lisp.h (Fread_file_name): Now has 6 args.
16829
16830 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
16831 predicate for Fread_file_name when reading directory name.
16832 Supply Qnil for predicate in other calls to Fread_file_name.
16833
168342002-05-26 Miles Bader <miles@gnu.org>
16835
16836 * term.c (tty_capable_p): New function.
16837 * dispextern.h (tty_capable_p): New function declaration.
16838 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
16839 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
16840
168412002-05-23 Stefan Monnier <monnier@cs.yale.edu>
16842
16843 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
16844 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
16845 (Vwrite_region_annotate_functions): Docstring fix.
16846
168472002-05-23 Kim F. Storm <storm@cua.dk>
16848
16849 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
16850 phys_cursor's hpos is overwritten. This is still not completely
16851 correct, as it doesn't really make sense to use hpos at all to
16852 get the cursor glyph (as that is relative to the width of the
16853 characters on the line, which may have changed during the update).
16854
168552002-05-22 Jason Rumney <jasonr@gnu.org>
16856
16857 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
16858 Lisp_Object.
16859 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
16860 Use modified enumfont_t struct.
16861
16862 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
16863
16864 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
16865 Handle the `hbar' cursor type.
16866 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
16867
16868 * w32fns.c (Qhbar): New variable.
16869 (x_specified_cursor_type): Use it.
16870
168712002-05-21 Ken Raeburn <raeburn@gnu.org>
16872
16873 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
16874 now, when the address is needed.
16875
168762002-05-21 Colin Walters <walters@gnu.org>
16877
16878 * Makefile.in (shortlisp): Add font-core.el.
16879
168802002-05-20 Richard M. Stallman <rms@gnu.org>
16881
16882 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
16883
16884 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
16885 equivalent key bindings here.
16886
168872002-05-20 Ken Raeburn <raeburn@gnu.org>
16888
16889 Change symbol structure to contain a lisp object for the symbol
16890 name:
16891 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
16892 object field named "xname".
16893 (SYMBOL_NAME): New macro.
16894 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
16895 name field.
16896 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
16897 (mark_object, gc_sweep): Use symbol xname field and XSTRING
16898 instead of name field.
16899 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
16900 SYMBOL_NAME instead of XSYMBOL and name field.
16901 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
16902 instead of XSYMBOL and name field.
16903 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
16904 and SYMBOL_NAME instead of XSYMBOL and name field.
16905 * coding.c (Fread_coding_system, code_convert_region1)
16906 (code_convert_string1, code_convert_string_norecord)
16907 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
16908 XSYMBOL and name field.
16909 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
16910 (Fmake_variable_buffer_local, Fmake_local_variable)
16911 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
16912 of XSYMBOL and name field.
16913 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
16914 XSYMBOL and name field.
16915 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
16916 instead of XSYMBOL and name field.
16917 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
16918 XSYMBOL and name field.
16919 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
16920 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16921 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
16922 instead of XSYMBOL and name field.
16923 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
16924 (parse_modifiers, apply_modifiers, Fevent_convert_list)
16925 (parse_solitary_modifier, Fexecute_extended_command):
16926 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16927 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
16928 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
16929 of XSYMBOL and name field.
16930 (describe_command, describe_translation): Use SYMBOL_NAME and
16931 assignment instead of XSYMBOL and name field and XSETSTRING.
16932 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
16933 instead of XSYMBOL and name field.
16934 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
16935 name field and XSETSTRING.
16936 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
16937 of XSYMBOL and name field.
16938 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
16939 assignment instead of XSYMBOL and name field and XSETSTRING.
16940 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
16941 XSTRING instead of XSYMBOL and name field.
16942 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
16943 and XSTRING instead of XSYMBOL and name field.
16944 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
16945 and XSTRING instead of XSYMBOL and name field.
16946 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
16947 XSTRING instead of XSYMBOL and name field.
16948 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
16949 of XSYMBOL and name field.
16950 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
16951 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16952
169532002-05-19 Ken Raeburn <raeburn@gnu.org>
16954
16955 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
16956 and XCDR real rvalues in most configurations.
16957
16958 * buffer.c (fix_overlays_in_range, fix_overlays_before):
16959 Don't take the address of the cdr part of a cons cell; instead, track
16960 the parent cell and call XSETCDR, or set the variable for the head
16961 of the list if we haven't started down the list yet.
16962
169632002-05-19 Richard M. Stallman <rms@gnu.org>
16964
16965 * doc.c (reread_doc_file): Don't ask for confirmation.
16966
169672002-05-18 Jason Rumney <jasonr@gnu.org>
16968
16969 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
16970 (xbm_load_image): Use it.
16971 (xbm_load): Ditto.
16972 (xbm_read_bitmap_data): Reverted to xfns.c version.
16973 From David Ponce <david@dponce.com>.
16974
169752002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
16976
16977 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
16978 2.02 and later.
16979
169802002-05-16 Juanma Barranquero <lektu@terra.es>
16981
16982 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
16983
169842002-05-15 Stefan Monnier <monnier@cs.yale.edu>
16985
16986 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
16987 meaningful test.
16988 (read_char_minibuf_menu_prompt): Fix typo.
16989
169902002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
16991
16992 * eval.c (Fcommandp): Doc fix.
16993
169942002-05-13 Stefan Monnier <monnier@cs.yale.edu>
16995
16996 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
16997 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
16998 (Fset_keymap_parent): Gcpro a bit more.
16999 (access_keymap): Gcpro around meta_map call and around the main loop.
17000 (get_keyelt): Gcpro when following indirect references.
17001 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
17002 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
17003 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
17004 Remove useless ad-hoc remap code.
17005
170062002-05-13 Richard M. Stallman <rms@gnu.org>
17007
17008 * search.c (search_buffer): Give up boyer moore search if inverse
17009 translation change charset_base.
17010
170112002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
17012
17013 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
17014 characters is carried over from the previous block of text, adjust
17015 coding->produced to account for the extra character.
17016
170172002-05-11 Andreas Schwab <schwab@suse.de>
17018
17019 * coding.c (intersection): Keep the elements of the returned list
17020 in the same order as in the first list.
17021
170222002-05-11 Kim F. Storm <storm@cua.dk>
17023
3419757d 17024 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
17025 only update cmm_size if realloc actually succeeds.
17026 Testing with initial size of 2 elements revealed that using
17027 realloc on GNU/Linux would cause a random trap in xmalloc
17028 later on, so I rewrote the code to use malloc/bcopy/free instead
17029 of realloc.
17030
170312002-05-10 Jason Rumney <jasonr@gnu.org>
17032
17033 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
17034
170352002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
17036
17037 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
17038 parens, to ensure correct evaluation order.
17039
170402002-05-10 Kim F. Storm <storm@cua.dk>
17041
17042 * keymap.c (Vemulation_mode_map_alists): New variable.
17043 (syms_of_keymap): DEFVAR_LISP it.
17044 (current_minor_maps): Process keymap alists in that list before
17045 minor-mode-overriding-map-alist and minor-mode-map-alist.
17046
170472002-05-09 Richard M. Stallman <rms@gnu.org>
17048
17049 * search.c (Freplace_match): Doc fix.
17050
170512002-05-09 Kim F. Storm <storm@cua.dk>
17052
17053 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17054 Enlarge cursor rectangle drawn around image with non-zero relief.
17055
17056 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
17057 Enlarge cursor rectangle drawn around image with non-zero relief.
17058
17059 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17060 Enlarge cursor rectangle drawn around image with non-zero relief.
17061
170622002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
17063
17064 * xselect.c (lisp_data_to_selection_data): Don't set selection
17065 type if comes from the Lisp object's car. If the selection
17066 contains a pure ASCII text, always return QSTRING as its type.
17067
170682002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17069
17070 * mac.c (mac-cut-function): Doc fix.
17071
170722002-05-05 Richard M. Stallman <rms@gnu.org>
17073
17074 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17075
170762002-05-04 Jason Rumney <jasonr@gnu.org>
17077
17078 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
17079 for event-click-count.
17080
17081 * process.c (init_process): Only add server subfeature if we can
17082 use non-blocking I/O.
17083
170842002-05-04 Andrew Choi <akochoi@shaw.ca>
17085
17086 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
17087 repeatedly.
17088
170892002-05-03 Jason Rumney <jasonr@gnu.org>
17090
17091 * process.c (Fmake_network_process): Only support server sockets
17092 when we can make them non-blocking.
17093
17094 * s/ms-w32.h (HAVE_SELECT): Define.
17095
17096 * w32.h (FILE_NDELAY): New flag.
17097
17098 * w32.c (sys_getpeername, fcntl): New functions.
17099 (_sys_read_ahead): Temporarily block on non-blocking sockets.
17100
2d4713aa 17101 * w32proc.c: Include sys/file.h.
048addec
JD
17102
171032002-05-03 Colin Walters <walters@verbum.org>
17104
17105 * callproc.c (Vgame_score_directory): Renamed to
17106 Vshared_game_score_directory.
17107
171082002-04-30 Richard M. Stallman <rms@gnu.org>
17109
17110 * s/gnu.h [emacs]: Include stdio.h.
17111 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
17112
17113 * eval.c (do_autoload): Error if called while preparing to dump.
17114
17115 * fns.c (Frequire): Error if need to load while preparing to dump.
17116
171172002-04-28 Colin Walters <walters@verbum.org>
17118
17119 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
17120 Default to "~/.emacs.d/games".
17121
171222002-04-29 Stefan Monnier <monnier@cs.yale.edu>
17123
17124 * lread.c (openp): Change arg exec_only to predicate.
17125 (build_load_history): Use XCAR/XCDR.
17126 (Flocate_file_internal): New fun.
17127 (syms_of_lread): Defsubr it.
17128 (Fload): Update call to openp.
17129
17130 * lisp.h (openp): Update prototype.
17131
17132 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
17133 * w32proc.c (sys_spawnve):
17134 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
17135 * w32.c (check_windows_init_file):
17136 * sound.c (Fplay_sound_internal):
17137 * process.c (Fstart_process):
17138 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
17139 * mac.c (run_mac_command):
17140 * emacs.c (init_cmdargs):
17141 * callproc.c (Fcall_process): Update call to openp.
17142
17143 * textprop.c (remove_properties): Don't use XCAR without CONSP.
17144
17145 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
17146
171472002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17148
17149 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
17150 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
17151
171522002-04-28 Richard M. Stallman <rms@gnu.org>
17153
17154 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
17155
17156 * eval.c (Fcommandp): New arg for_call_interactively.
17157 * lisp.h (Fcommandp): Declare new arg.
17158
171592002-04-28 Jason Rumney <jasonr@gnu.org>
17160
17161 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
17162
17163 * w32.c (stat, fstat): Use file index information to generate
17164 inodes for directories where available.
17165
171662002-04-26 Andrew Choi <akochoi@shaw.ca>
17167
17168 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
17169 [HAVE_CARBON]: Include Mac object files.
17170
17171 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
17172 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
17173 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
17174 MAC_OSX, and MAC_OS instead of macintosh.
17175
17176 * editfns.c [MAC_OS8]: Include stdio.h.
17177
17178 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
17179
17180 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
17181 Apple Monaco.
17182
78819ebb 17183 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
17184 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
17185 calling select.
17186
17187 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
17188
17189 * tparam.c [MAC_OSX]: Don't define BC and UP.
17190
17191 * config.in [HAVE_CARBON]: Add.
17192
17193 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
17194 Move here from mac/src and mac/inc.
17195
17196 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
17197
171982002-04-26 Gerd Moellmann <gerd@gnu.org>
17199
17200 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
17201 Compute phys_cursor_width from the x position returned
17202 by x_draw_glyhs, which is cheaper.
17203 (x_display_and_set_cursor): Compute the buffer-local value
17204 of `cursor-in-non-selected-windows' only when needed.
17205
172062002-04-25 Gerd Moellmann <gerd@gnu.org>
17207
17208 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
17209 cursor on a stretch glyph has a width that depends on
17210 x_stretch_cursor_p.
17211
172122002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17213
17214 * abbrev.c (abbrev-start-location): Doc fix.
17215
17216 * indent.c (Fvertical_motion): Fix last change.
17217
172182002-04-25 Gerd Moellmann <gerd@gnu.org>
17219
17220 * indent.c (Fvertical_motion): Move to the start of the line
17221 containing PT before moving up or down.
17222
172232002-04-24 Gerd Moellmann <gerd@gnu.org>
17224
17225 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
17226 case of writing a whole row, more or less analogous to the case of
17227 writing only parts of a row.
17228
17229 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
17230 0 for NO_CURSOR.
17231
17232 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
17233
172342002-04-23 Colin Walters <walters@verbum.org>
17235
17236 * buffer.c (syms_of_buffer): Doc fix.
17237
172382002-04-23 Gerd Moellmann <gerd@gnu.org>
17239
17240 * xterm.c (notice_overwritten_cursor): Handle the special case
17241 of the cursor being in the first blank non-text line at the
17242 end of a window.
17243
17244 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17245 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17246 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
17247 bar cursors only, to make phys_cursor_width contain what its name
17248 suggests.
17249 (notice_overwritten_cursor): Consider the cursor image erased if
17250 the output area intersects the cursor image in y-direction.
17251
172522002-04-23 Simon Marshall <simon@gnu.org>
17253
17254 * xfns.c (x_set_mouse_color): Change default for cross_cursor
17255 to XC_hand2.
17256
172572002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17258
17259 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
17260
172612002-04-22 Kim F. Storm <storm@cua.dk>
17262
17263 * textprop.c (remove_properties): Fixed trap for malformed plist.
17264
172652002-04-22 Richard M. Stallman <rms@gnu.org>
17266
17267 * cmds.c (Fend_of_line): Handle intangible text in mid line.
17268
17269 * window.c (make_window): Initialize height_fixed_p,
17270 last_cursor_off_p, and p->cursor_off_p slots.
17271
172722002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17273
17274 * fns.c (use-dialog-box): Doc fix.
17275
172762002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17277
17278 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
17279 variables `row', `i' and `area'.
17280 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
17281 toolkit library.
17282
172832002-04-19 Stefan Monnier <monnier@cs.yale.edu>
17284
17285 * xfaces.c (clear_font_table): Don't free the default font of
17286 a frame even if it's on another display.
17287 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
17288 that could be Qt.
17289
172902002-04-19 Juanma Barranquero <lektu@terra.es>
17291
17292 * indent.c (Fmove_to_column): Remove unused local variable
17293 `next_boundary_byte'.
17294 (current_column_1): Likewise.
17295
172962002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
17297
17298 * msdos.c (Qhbar): New variable.
17299 (syms_of_msdos): Intern and staticpro it.
17300 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
17301 cursor type.
17302
173032002-04-19 Dave Lambert <dlambert@acm.org>
17304
17305 Theses change implement an underscore-like (`hbar') cursor.
17306
17307 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17308
17309 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
17310 Handle the `hbar' cursor type.
17311 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17312
17313 * xfns.c (Qhbar): New variable.
17314 (syms_of_xfns): Intern and staticpro it.
17315 (x_specified_cursor_type): Handle `hbar' cursor.
17316
17317 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
17318 not defined.
17319
173202002-04-18 Richard M. Stallman <rms@gnu.org>
17321
17322 * textprop.c (remove_properties): New arg LIST allows scanning
17323 either a list or a plist.
17324 (interval_has_some_properties_list): New function, like
17325 interval_has_some_properties using list instead of plist.
17326 All callers changed.
17327 (Fremove_list_of_text_properties): New function.
17328 (syms_of_textprop): Defsubr it.
17329
173302002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17331
17332 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
17333
173342002-04-17 Juanma Barranquero <lektu@terra.es>
17335
17336 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
17337
173382002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17339
17340 * window.c (coordinates_in_window): Don't report on margin area
17341 if its width is zero.
17342
173432002-04-16 Jason Rumney <jasonr@gnu.org>
17344
17345 * w32fns.c (Fx_file_dialog): Decode file name before using.
17346
17347 * w32term.c (construct_drag_n_drop): Likewise.
17348
173492002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
17350
17351 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
17352 store load-history in pure space.
17353
17354 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
17355
173562002-04-16 Stefan Monnier <monnier@cs.yale.edu>
17357
17358 * xterm.c (Qlatin_1, Qutf_8): New vars.
17359 (syms_of_xterm): Initialize them.
17360 (XTread_socket): Eliminate incorrect optimization that tried to avoid
17361 decoding the output of X*LookupString.
17362 Always use latin-1 to decode the output of XLookupString.
17363 Try Xutf8LookupString if XmbLookupString failed.
17364
17365 * region-cache.c (new_region_cache): Use BEG.
17366
173672002-04-16 Gerd Moellmann <gerd@gnu.org>
17368
17369 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
17370 configuration files.
17371 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
17372 returns 0.
17373
173742002-04-15 Andreas Schwab <schwab@suse.de>
17375
17376 * config.in: Regenerated using autoheader.
17377
17378 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
17379 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
17380 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
17381 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
17382 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
17383 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
17384 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
17385 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
17386 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
17387 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
17388 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
17389 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
17390 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
17391 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
17392 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
17393 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
17394 STACK_DIRECTION, now set by autoconf.
17395
173962002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17397
17398 * dispnew.c (marginal_area_string): Sort arguments.
17399
17400 * dispextern.h (marginal_area_string): Add prototype.
17401
174022002-04-13 Richard M. Stallman <rms@gnu.org>
17403
17404 * fileio.c (Finsert_file_contents):
17405 Don't call temp_output_buffer_setup--do just part, by hand.
17406
17407 * coding.c (run_pre_post_conversion_on_str):
17408 Don't call temp_output_buffer_setup--do just part, by hand.
17409
17410 * keyboard.c (command_loop_1): Don't call start_hourglass
17411 or cancel_hourglass when executing a macro.
17412
17413 * marker.c (count_markers): New function.
17414
17415 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
17416 grow without limit. Move recently used elements to the front.
17417
174182002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
17419
17420 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
17421
174222002-04-12 Gerd Moellmann <gerd@gnu.org>
17423
17424 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
17425 rows marginal areas.
17426 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
17427 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
17428
17429 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
17430
174312002-04-12 Dave Love <fx@gnu.org>
17432
17433 * dispnew.c (marginal_area_string): New.
17434
17435 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
17436 (Qleft_margin, Qright_margin): Declare.
17437 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
17438
17439 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
17440 note_mode_line_highlight and extended.
17441
17442 * keyboard.c (Qleft_margin, Qright_margin): Declare.
17443 (make_lispy_event): Deal with mouse events in margins.
17444
174452002-04-12 Stefan Monnier <monnier@cs.yale.edu>
17446
17447 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
17448
17449 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
17450 than deactivating the mark if tmm is set to `lambda'.
17451 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
17452 Use a single event for HELP_EVENT.
17453 (Fexecute_extended_command): Save last_point_position.
17454
174552002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17456
17457 * lisp.h (Fpropertize): Add prototype.
17458
17459 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
17460
174612002-04-10 Colin Walters <walters@verbum.org>
17462
17463 * config.in: Add HAVE_SHARED_GAME_DIR.
17464
52eb0373 17465 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
17466 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
17467
174682002-04-10 Richard M. Stallman <rms@gnu.org>
17469
17470 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
17471
174722002-04-09 Stefan Monnier <monnier@cs.yale.edu>
17473
17474 * minibuf.c (read_minibuf): Use empty_string.
17475 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
17476 Short-circuit the search as soon as it "failed".
17477 (Fall_completions): Allow lambda forms and lists of strings for alist.
17478 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
17479 when require_match is nil.
17480 (Ftest_completion): Rename from `test_completion' and export to elisp.
17481 Call the predicate also when alist is a list.
17482 Obey Vcompletion_regexp_list.
17483 (do_completion, Fminibuffer_complete_and_exit): Use it.
17484 (Fassoc_string): Rename from `assoc_for_completion'.
17485 Allow list of strings as well and export to elisp.
17486
174872002-04-08 Stefan Monnier <monnier@cs.yale.edu>
17488
17489 * puresize.h (BASE_PURESIZE): Increase to 900KB.
17490
174912002-04-08 Juanma Barranquero <lektu@terra.es>
17492
17493 * w32.c (sys_accept): Don't hide variable `s'.
17494
174952002-04-05 Gerd Moellmann <gerd@gnu.org>
17496
17497 * callint.c (Fcall_interactively): Use INTEGERP instead of
17498 NUMBERP for checking Vhistory_length.
17499
175002002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17501
17502 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
17503 Doc fix to reflect it.
17504
175052002-04-04 Richard M. Stallman <rms@gnu.org>
17506
17507 * xdisp.c (display_mode_element): New arg RISKY.
17508 Disregard text props found or specified within a variable
17509 that isn't marked risky-local-variable.
17510 (Qrisky_local_variable): New variable.
17511 (syms_of_xdisp): Init and staticpro it.
17512
175132002-04-04 Stefan Monnier <monnier@cs.yale.edu>
17514
17515 * undo.c (record_point): New fun.
17516 (record_delete, record_insert): Use it.
17517
175182002-04-03 Juanma Barranquero <lektu@terra.es>
17519
17520 * doc.c (Fdocumentation): Add missing parentheses.
17521 (Fdocumentation_property): Likewise.
17522
175232002-04-03 Stefan Monnier <monnier@cs.yale.edu>
17524
17525 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
17526 data is 0, just return nil.
17527
175282002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
17529
17530 * msdos.c (syms_of_msdos): Fix last change with
17531 mouse_autoselect_window.
17532
175332002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17534
17535 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
17536 mouse_autoselect_window.
17537
175382002-04-02 Stefan Monnier <monnier@cs.yale.edu>
17539
17540 * keyboard.c (make_lispy_event): Handle unknown keysyms together
17541 with system-specific keysyms. Use it also for unknown function keys.
17542
17543 * doc.c (reread_doc_file): Return whether reload was attempted.
17544 (Fdocumentation, Fdocumentation_property): Don't try to reload
17545 if the doc is 0 and only ask once.
17546
17547 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
17548
175492002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
17550
17551 * keyboard.c (read_char): If the event was Qselect_window,
17552 restore timer_idleness_start_time to its previous value.
17553
17554 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
17555
175562002-04-01 Stefan Monnier <monnier@cs.yale.edu>
17557
17558 * region-cache.c (new_region_cache): Use BEG.
17559
17560 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
17561 Use BEG and BEG_BYTE.
17562
17563 * doc.c (get_doc_string): Return nil if the location is wrong.
17564 (reread_doc_file): New fun.
17565 (Fdocumentation, Fdocumentation_property):
17566 Call it if get_doc_string fails.
17567 (Fsnarf_documentation): Make it work for a dumped Emacs.
17568
17569 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
17570 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
17571
17572 * charset.c (Fstring): Allow 0 arguments.
17573
17574 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
17575
17576 * process.c (DATAGRAM_CONN_P, list_processes_1)
17577 (Fprocess_datagram_address, Fset_process_datagram_address)
17578 (Fset_network_process_options, server_accept_connection):
17579 Fix some int/Lisp_Object confusions (thank you union types).
17580
175812002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17582
17583 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
17584
17585 * w32term.c: Likewise.
17586 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
17587
17588 * keyboard.c (Qselect_window): New symbol.
17589 (head_table): Use it.
17590 (keys_of_keyboard): Bound select-window event to handle-select-window.
17591 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
17592
17593 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
17594 (last_window): New variable.
17595 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
17596 (note_mouse_movement): Remove reimplemented code in #if 0.
17597 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
17598 Emacs windows.
17599
17600 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
17601
176022002-03-31 Gerd Moellmann <gerd@gnu.org>
17603
17604 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
17605 Callers changed.
17606
176072002-03-30 Richard M. Stallman <rms@gnu.org>
17608
17609 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
17610 loop whenever it stops making progress.
17611
17612 * widget.c (set_frame_size): Don't call change_frame_size.
17613
176142002-03-30 Gerd Moellmann <gerd@gnu.org>
17615
17616 * dispnew.c (direct_output_for_insert):
17617 Call mark_window_display_accurate.
17618
176192002-03-29 Jason Rumney <jasonr@gnu.org>
17620
17621 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
17622
176232002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
17624
17625 * Makefile.in (lread.o): Depend on coding.h.
17626
17627 * lread.c (openp, Fload): Encode the file name before passing it
17628 to `stat', `access', and `emacs_open'.
17629 (openp): GCPRO the encoded file name. Don't recompute Lisp
17630 strings unnecessarily.
17631
176322002-03-29 Kim F. Storm <storm@cua.dk>
17633
17634 * fns.c (Flax_plist_put): Doc fix.
17635
176362002-03-28 Miles Bader <miles@gnu.org>
17637
17638 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
17639
176402002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17641
17642 * process.c (set-network-process-options): Add usage.
17643 (make-network-process): Doc fix.
17644
176452002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
17646
17647 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
17648
176492002-03-26 Richard M. Stallman <rms@gnu.org>
17650
17651 * fns.c (Fsubstring_no_properties): New function.
17652 (Flax_plist_get, Flax_plist_put): New functions.
17653 (syms_of_fns): defsubr them.
17654
17655 * xdisp.c (update_menu_bar): Test only update_mode_lines;
17656 don't test or alter w->update_mode_line.
17657
17658 * window.c (Fdisplay_buffer): Doc fix.
17659
176602002-03-24 Richard M. Stallman <rms@gnu.org>
17661
17662 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
17663
176642002-03-24 Gerd Moellmann <gerd@gnu.org>
17665
17666 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
17667 (Fdefmacro): Handle `(declare ...)'.
17668 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
17669 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
17670
176712002-03-24 Jason Rumney <jasonr@gnu.org>
17672
17673 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
17674 (xbm_file_p): Add prototypes.
17675 (xbm_format, xbm_image_p): Sync with xfns.c.
17676 (reflect_byte): New function.
17677 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
17678 (xbm_load_image): Create bitmaps with a depth of 1.
17679 (init_xfns): Enable XBM images.
17680
176812002-03-23 Jason Rumney <jasonr@gnu.org>
17682
17683 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
17684 correctly. Do not pass up_modifier to keyboard buffer.
17685
17686 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
17687
176882002-03-22 Stefan Monnier <monnier@cs.yale.edu>
17689
17690 * Makefile.in (bootstrapclean): New target.
17691 (bootstrap-temacs, bootstrap-doc): Remove.
17692 (bootstrap-emacs): Use a bog-standard `temacs'.
17693 Don't bother to build a DOC file.
17694
17695 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
17696
17697 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
17698 in temacs even if !CANNOT_DUMP.
17699 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
17700
17701 * alloc.c (check_pure_size): Only output a warning.
17702
177032002-03-22 Jason Rumney <jasonr@gnu.org>
17704
17705 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
17706 supported.
17707
17708 * w32term.c (zv_bits): Declare as short, for word alignment.
17709 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
17710 (syms_of_w32term): Define x-use-underline-position-properties.
17711
17712 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
17713 (clear_image_cache): Block input, fix logic, clear matrices in
17714 all frames that share this cache.
17715
177162002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
17717
17718 * emacs.c (main): Update the Copyright year in the blurb printed
17719 by "emacs --version".
17720
17721 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
17722
17723 * xterm.c (XTread_socket): If XK_ISO_Lock and
17724 XK_ISO_Last_Group_Lock are defined, handle keysyms between
17725 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
17726
177272002-03-21 Kim F. Storm <storm@cua.dk>
17728
17729 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
17730 menu-bar bindings in keymap and local-map properties _are_ used.
17731 But try keymap property first in accordance with 2002-01-03 patch.
17732 Added comment describing why this is not always reliable.
17733 (tool_bar_items): Ditto for tool-bar.
17734
177352002-03-21 Jason Rumney <jasonr@gnu.org>
17736
17737 * w32fns.c (x_clear_image_1): Disable color table code.
17738
177392002-03-21 Kim F. Storm <storm@cua.dk>
17740
17741 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
17742 removed the wrong version of the DEFUN macro; fixed it.
17743
17744 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
17745 Fmember rather than Fmemq).
17746 (Fprovide): Check that subfeatures is a list.
17747
17748 * process.c (QCfeature, QCdatagram): Removed variables.
17749 (QCtype, Qdatagram): New variables.
17750 (network_process_featurep): Removed function.
17751 (Fmake_network_process): Removed :feature check.
17752 Use :type 'datagram instead of :datagram t to create a datagram
17753 socket. This allows us to add other connection types (e.g. raw
17754 sockets) later in a consistent manner.
17755 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
17756 supported subfeatures for feature make-network-process.
17757 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
17758 Intern and staticpro QCtype and Qdatagram.
17759 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
17760
17761 * xfns.c: (QCtype): Remove duplicate declaration and
17762 initialization (is now declared in process.c).
17763
17764 * w32fns.c: (QCtype): Remove duplicate declaration and
17765 initialization (is now declared in process.c).
17766
177672002-03-21 Richard M. Stallman <rms@gnu.org>
17768
17769 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
17770 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
17771 when jumping to `fail' to avoid undoing reg changes in the
17772 last iteration of the loop.
17773 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
17774
17775 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
17776 Depend on process.h.
17777
177782002-03-20 Jason Rumney <jasonr@gnu.org>
17779
17780 Most of the following changes are still conditional on HAVE_IMAGES
17781 which is not set by default on Windows.
17782
17783 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
17784
17785 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
17786 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
17787 (four_corners_best, x_clear_image_1, x_clear_image)
17788 (x_alloc_image_color, postprocess_image)
17789 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
17790 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
17791 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
17792
17793 * w32gui.h (struct XImage): Define.
17794
17795 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
17796 extract mouse co-ordinates.
17797
177982002-03-20 Jason Rumney <jasonr@gnu.org>
17799
17800 * w32.c (init_winsock): Dynamically load new server and UDP
17801 socket functions.
17802 (socket_to_fd): New function.
17803 (sys_socket): Use it.
17804 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
17805 (sys_recvfrom, sys_sendto): New wrapper functions.
17806
17807 * process.c (QCfamily, QCfilter): Remove duplicate declaration
17808 and initialization.
17809
17810 * makefile.w32-in (LIBS): Remove $(WSOCK32).
17811
178122002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
17813
17814 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
17815 Don't use "sun" as a variable, it's a predefined constant on Sun
17816 machines.
17817
178182002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17819
17820 * bytecode.c (Fbyte_code): Revert last change.
17821
178222002-03-19 Kim F. Storm <storm@cua.dk>
17823
17824 * makefile.w32-in (LIBS): Add $(WSOCK32).
17825 From David Ponce <dponce@voila.fr>.
17826
178272002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17828
17829 * process.c (wait_reading_process_input): Move variables `pname'
17830 and `pnamelen' down where they are used.
17831
17832 * bytecode.c (Fbyte_code): Discard unused computed value to
17833 prevent gcc warning.
17834
17835 * lisp.h (Fplist_member): Add prototype.
17836
178372002-03-18 Kim F. Storm <storm@cua.dk>
17838
17839 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
17840 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
17841
17842 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
17843 Remove explicit GNU_LINUX settings for datagram support.
17844
178452002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17846
17847 * process.c (Fmake_network_process): Remove unused variable `sa'.
17848 Doc fix. Add usage:.
17849 (set_socket_options): Remove unused variables `optnum' and `opttype'.
17850
178512002-03-17 Richard M. Stallman <rms@gnu.org>
17852
17853 * xdisp.c (cursor_type_changed): New variable.
17854 (redisplay_internal): Redisplay all windows if cursor_type_changed.
17855 Clear it when clearing windows_or_buffers_changed.
17856 (try_cursor_movement, redisplay_window, try_window_id)
17857 (try_window_reusing_current_matrix): Test cursor_type_changed
17858 along with windows_or_buffers_changed.
17859
17860 * window.h (cursor_type_changed): New variable.
17861
17862 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
17863 not update_mode_lines, and always set it to 1.
17864
17865 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
17866 if no frames needed redrawing.
17867
178682002-03-17 Kim F. Storm <storm@cua.dk>
17869
17870 The following changes add support for network server processes,
17871 datagram connections, and local (unix) sockets.
17872
17873 * process.h (struct Lisp_Process): New member log.
17874 Doc fix: Member command used to indicate stopped network process.
17875 Doc fix: Member childp contains plist for network process.
17876 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
17877
17878 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
17879 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
17880 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
17881 New variables.
17882 (NETCONN1_P): New macro.
17883 (DATAGRAM_SOCKETS): New conditional symbol.
17884 (datagram_address): New array.
17885 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
17886 (status_message): Use concat3.
17887 (Fprocess_status): Add `listen' status to doc string. Return `stop'
17888 for a stopped network process.
17889 (Fset_process_buffer): Update contact plist for network process.
17890 (Fset_process_filter): Ditto. Don't enable input for stopped
17891 network processes. Server must listen, even if filter is t.
17892 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
17893 New functions.
17894 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
17895 (Fprocess_contact): Added KEY argument. Handle datagrams.
17896 (list_processes_1): Optionally show only processes with the query
17897 on exit flag set. Dynamically adjust column widths. Omit tty
17898 column if not needed. Report stopped network processes.
17899 Identify server and datagram network processes.
17900 (Flist_processes): New optional arg `query-only'.
17901 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
17902 (conv_lisp_to_sockaddr, set_socket_options)
17903 (network_process_featurep, unwind_request_sigio): New helper functions.
17904 (Fprocess_datagram_address, Fset_process_datagram_address):
17905 (Fset_network_process_options): New lisp functions.
17906 (Fopen_network_stream): Removed. Now defined in simple.el.
17907 (Fmake_network_process): New lisp function. Code is based on previous
17908 Fopen_network_stream, but heavily reworked with new property list based
17909 argument list, support for datagrams, server processes, and local
17910 sockets in addition to old client-only functionality.
17911 (server_accept_connection): New function.
17912 (wait_reading_process_input): Use it to handle incoming connects.
17913 Do not enable input on a new connection if process is stopped.
f63fd14e 17914 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
17915 (send_process): Handle datagram sockets.
17916 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
17917 network process is indicated by setting command field to t .
17918 (Fprocess_send_eof): No-op if datagram connection.
17919 (Fstatus_notify): Don't read input for a stream server socket or a
17920 stopped network process.
17921 (init_process): Initialize datagram_address array.
17922 (syms_of_process): Intern and staticpro new variables, defsubr new
17923 functions.
17924
179252002-03-16 Jason Rumney <jasonr@gnu.org>
17926
17927 * w32fns.c (w32_to_all_x_charsets): Return correct type in
17928 startup case.
17929
179302002-03-16 Richard M. Stallman <rms@gnu.org>
17931
17932 * xdisp.c (redisplay_internal, redisplay_windows):
17933 Use list_of_error to call internal_condition_case_1.
17934 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
17935 so as to catch all errors with no possibility of debugger redisplay.
17936 (list_of_error): New variable.
17937 (syms_of_xdisp): Init and staticpro it.
17938
17939 * print.c (print_object): Delete `\ ' from printed rep of frame.
17940
179412002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
17942
17943 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
17944 until its implementation is fixed.
17945
179462002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17947
17948 * xfns.c (png_load): Remove unused variable `gamma_str'.
17949
179502002-03-14 Richard M. Stallman <rms@gnu.org>
17951
17952 * xfns.c (x_real_positions): Handle failure in XQueryTree.
17953
179542002-03-14 Miles Bader <miles@gnu.org>
17955
17956 * intervals.c (adjust_for_invis_intang): New function.
17957 (set_point_both): Use `adjust_for_invis_intang' to do most of the
17958 work for dealing with invisible+intangible regions. Do so before
17959 and after both forward and backward movements, to handle both
17960 front-sticky and rear-sticky cases.
17961 * textprop.c (text_property_stickiness): Function moved here from
17962 `editfns.c'.
17963 * intervals.h (text_property_stickiness): New declaration.
17964 * editfns.c (char_property_eq): Function removed.
17965 (text_property_stickiness): Function moved to `textprop.c'.
17966
179672002-03-13 Jason Rumney <jasonr@gnu.org>
17968
17969 * config.in: Add STRFTIME_NO_POSIX2.
17970
17971 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
17972 and %OX when underlying strftime does not.
17973
179742002-03-13 Stefan Monnier <monnier@cs.yale.edu>
17975
17976 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
17977 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
17978 line) to avoid annoying flicker.
17979 (xm_scroll_callback): Get rid of the now unnecessary kludge.
17980 (XTread_socket): Mark it static.
17981
17982 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
17983
179842002-03-13 Kim F. Storm <storm@cua.dk>
17985
17986 * puresize.h (BASE_PURESIZE): Increase to 775000.
17987
179882002-03-12 Juanma Barranquero <lektu@terra.es>
17989
17990 * editfns.c (syms_of_editfns): Fix typo.
17991
179922002-03-12 Gerd Moellmann <gerd@gnu.org>
17993
17994 * xsmfns.c: Include stdio.h because termhooks.h needs it.
17995 Include termopt.h for interrupt_input.
17996
179972002-03-11 Andreas Schwab <schwab@suse.de>
17998
17999 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
18000
180012002-03-11 Gerd Moellmann <gerd@gnu.org>
18002
18003 * xterm.c (note_mouse_movement): Put code for
18004 x_autoselect_window_p in #if 0.
18005
18006 * lread.c (Fload): Don't assume that message_with_string uses the
18007 string it is given like a C string.
18008
180092002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18010
78819ebb 18011 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 18012
52eb0373 18013 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
18014 x_session_have_connection.
18015 (x_initialize): Add call to x_session_initialize.
18016
18017 * termhooks.h (enum event_kind): Add save_session_event.
18018
18019 * keyboard.c: Add Emacs event save_session_event.
18020
18021 * emacs.c (main): Add call to syms_of_xsmfns.
18022
78819ebb 18023 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
18024
18025 * config.in: Add HAVE_X_SM.
18026
18027 * Makefile.in (LIBXT): Add -lSM -lICE
18028 if HAVE_X_SM and not USE_X_TOOLKIT.
18029 (XOBJ): New file xsmfns.c added.
18030
18031 * xsmfns.c: New file for X session management.
18032
180332002-03-09 Jason Rumney <jasonr@gnu.org>
18034
18035 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
18036 read-only when setting modified time.
18037
180382002-03-08 Gerd Moellmann <gerd@gnu.org>
18039
18040 * xdisp.c (move_it_vertically_backward): At the end of the function,
18041 when moving forward by lines, treat terminal frames specially.
18042
18043 * keyboard.c (echo_char): Make sure to add a separator between
18044 keys even if echo_dash hasn't been called.
18045
18046 * xdisp.c: Use new string macros.
18047 (update_echo_area): Pass number of bytes to message3 instead of
18048 number of chars.
18049 (set_message_1): Don't access a string's size_byte directly.
18050 (decode_mode_spec_coding): Use number of bytes of eoltype string
18051 instead number of chars.
18052
18053 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
18054
180552002-03-08 Juanma Barranquero <lektu@terra.es>
18056
18057 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
18058 24-bit.
18059
180602002-03-06 Jason Rumney <jasonr@gnu.org>
18061
18062 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
18063
180642002-03-06 Gerd Moellmann <gerd@gnu.org>
18065
18066 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
18067 (cancel_echoing, echo_length, echo_truncate): Changed to
18068 work with new kboard definition.
18069 (echo_now): Use message3_nolog instead of message2_nolog.
18070
18071 * alloc.c (mark_kboards): Mark echo_string.
18072
18073 * keyboard.h (ECHOBUFSIZE): Removed.
18074 (struct kboard): Member echoptr removed, member echobuf renamed
18075 to echo_string.
18076
18077 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
18078 message3 instead of message2 to display the message using STRING's
18079 text properties.
18080
180812002-03-05 Andreas Schwab <schwab@suse.de>
18082
18083 * xdisp.c (hscroll_margin): Change to EMACS_INT.
18084
180852002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
18086
18087 * frame.c (default-frame-alist): Explain that setting it doesn't
18088 affect existing frames.
18089
180902002-03-05 Stefan Monnier <monnier@cs.yale.edu>
18091
18092 * indent.c (skip_invisible): Fix my brain fart.
18093
18094 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
18095
180962002-03-04 Stefan Monnier <monnier@cs.yale.edu>
18097
18098 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
18099 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
18100 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
18101 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
18102 and variables to use EMACS_INT instead of just int.
18103
18104 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
18105
181062002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
18107
18108 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
18109 environment, pass it down with corrected value.
18110
181112002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18112
18113 * lread.c (read_filtered_event): Do not call start_hourglass
18114 before returning.
18115
181162002-03-04 Juanma Barranquero <lektu@terra.es>
18117
18118 * w32term.c (x_display_and_set_cursor): Fix typo.
18119
181202002-03-03 Richard M. Stallman <rms@gnu.org>
18121
18122 * fileio.c (Fmake_temp_name): Doc fix.
18123
181242002-03-03 Gary Wong <gtw@gnu.org>
18125
18126 * termcap.c [!emacs]: Replace ospeed for building standalone
18127 libtermcap, for binary compatibility.
18128
18129 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
18130
181312002-03-03 Richard M. Stallman <rms@gnu.org>
18132
18133 * xrdb.c (file_p): Rename arg `path' to `filename'.
18134
18135 * abbrev.c (Fexpand_abbrev): Increment plist as use count
18136 only if it is an integer.
18137
18138 * xfns.c (png_load): Set screen_gamma based on f->gamma.
18139 If png_get_sRGB gives an answer, call png_set_gamma
18140 using the default image gamma value.
18141
18142 * lread.c (read1): When reading from a file, default string to
18143 multibyte only if it has some multibyte characters.
18144
18145 * print.c (print_object): Output multibyte chars 128...255
18146 using \x even if ! print_escape_multibyte.
18147
18148 * xdisp.c (display_mode_element): Move the places where
18149 bytepos, charpos, this, and lisp_string are set.
18150 Use lisp_string to set bytepos.
18151
18152 * xdisp.c (redisplay_internal):
18153 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
18154
18155 * xdisp.c (display_mode_element): Merge properties specified with
18156 :propertize onto those that come with the string.
18157
181582002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
18159
18160 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
18161 automatic-hscrolling. Users changed.
18162 <hscroll-margin>: Renamed from automatic-hscroll-margin.
18163 Users changed.
18164 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
18165
181662002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
18167
18168 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
18169
181702002-03-02 Kim F. Storm <storm@cua.dk>
18171
18172 * window.c (Fminibuffer_selected_window): New function.
18173 (syms_of_window): Defsubr it.
18174
181752002-03-01 Kim F. Storm <storm@cua.dk>
18176
18177 * window.h (struct window): New member phys_cursor_width.
18178
18179 * window.c (make_window, replace_window): Init phys_cursor_width.
18180
18181 * xterm.c (x_display_and_set_cursor): Blink box cursor using
18182 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18183
18184 * w32term.c (x_display_and_set_cursor): Blink box cursor using
18185 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18186
18187 * lisp.h (GCPRO6): New macro.
18188
18189 * process.c (Fopen_network_stream): Use GCPRO6.
18190
181912002-03-01 Kim F. Storm <storm@cua.dk>
18192
18193 * process.c (Qconnect, Qfailed): New variables.
18194 (syms_of_process): Intern and staticpro them.
18195 (Fprocess_status): Document connect and failed return values.
18196 [NON_BLOCKING_CONNECT]: New conditional.
18197 (connect_wait_mask, num_pending_connects): New variables.
18198 (status_message): Convert Qfailed status.
18199 (Fopen_network_stream): Added support for non-blocking connect.
18200 New optional args: filter, sentinel, non_blocking. Doc updated.
18201 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
18202 (deactivate_process): Handle pending non-blocking connect.
18203 (wait_reading_process_input): Poll for status of non-blocking
18204 connects. Exec sentinel directly when connect succeeds.
18205 (status_notify): Don't read process output if not yet connected.
18206
182072002-02-28 Kim F. Storm <storm@cua.dk>
18208
18209 * window.c: (minibuf_selected_window): Renamed from
18210 Vminibuf_selected_window. Users changed.
18211 (syms_of_window): Staticpro it.
18212
182132002-02-26 Kim F. Storm <storm@cua.dk>
18214
18215 The following changes add a new Vminibuf_selected_window variable
18216 which is similar to Vminibuf_scroll_window, but which is only set
18217 on entry to the minibuffer (from a non-minibuffer window):
18218
18219 * window.c: (Vminibuf_selected_window): New variable.
18220 (struct save_window_data): New member minibuf_selected_window.
18221 (Fset_window_configuration): Restore Vminibuf_selected_window.
18222 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
18223 Set minibuf_scroll_window member to nil if minibuf_level is 0.
18224 (compare_window_configurations): Compare minibuf_selected_window.
18225
18226 * window.h: (Vminibuf_selected_window): Declare extern.
18227
18228 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
18229 entry to minibuffer or on entry from a non-minibuffer window.
18230
18231 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
18232 Vminibuf_selected_window instead of Vminibuf_scroll_window.
18233
18234 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
18235 instead of Vminibuf_scroll_window when deciding in which window
18236 the region should be highlighted. Consequently, the region remains
18237 highlighteded even when a completion buffer is also displayed.
18238
182392002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
18240
18241 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
18242
18243 * xselect.c (Qcompound_text_with_extensions): Renamed from
18244 Qcompound_text_no_extensions.
18245 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
18246
182472002-02-26 Juanma Barranquero <lektu@terra.es>
18248
18249 * w32proc.c (syms_of_ntproc): Doc fix.
18250
182512002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18252
18253 * intervals.h: Include "dispextern.h" unconditionally.
18254
182552002-02-24 Jason Rumney <jasonr@gnu.org>
18256
18257 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
18258 and disp-table.elc.
18259 (lisp): Add emacs-lisp/backquote.elc.
18260
182612002-02-24 Kim F. Storm <storm@cua.dk>
18262
3419757d 18263 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
18264 The validation of the event type was too strict as it didn't
18265 allow string events; buffer names are used in bindings for
18266 menu-bar-select-buffer (see `menu-bar-update-buffers').
18267
182682002-02-23 Kim F. Storm <storm@cua.dk>
18269
18270 The following changes rework my patch of 2002-02-06 which
18271 added command remapping by entering the commands directly into
18272 the keymaps. Now, command remapping uses an explicit `remap'
18273 prefix in the keymaps, i.e. [remap COMMAND].
18274
18275 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 18276 (is_command_symbol): Remove function.
048addec
JD
18277 (Fdefine_key): No longer accept a symbol for KEY.
18278 Added validation of [remap COMMAND] argument for KEY.
18279 The DEF is no longer required to be a symbol when remapping a command.
18280 (Fremap_command): New function to remap command through keymaps.
18281 (Flookup_key): Perform command remapping initiated by
18282 Fremap_command directly for speed.
18283 (Fkey_binding): Use Fremap_command for command remapping.
18284 (where_is_internal): Handle new command remapping representation.
18285 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
18286 staticpro them. Defsubr Fremap_command.
18287
18288 * keymap.h (Fremap_command): Declare extern.
18289 (is_command_symbol): Remove extern.
18290
18291 * keyboard.c (command_loop_1): Use Fremap_command for command
18292 remapping; now try command remapping for all symbols.
18293
182942002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18295
18296 * coding.h (run_pre_post_conversion_on_str): Add prototype.
18297
182982002-02-23 Jason Rumney <jasonr@gnu.org>
18299
18300 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
18301 on the string before encoding it.
18302 (Fw32_get_clipboard_data): Run post-read-conversion on the string
18303 after decoding it.
18304
18305 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
18306
183072002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18308
18309 * w32term.c (enter_timestamp): Remove unused static variable to
18310 prevent warning.
18311
18312 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
18313
183142002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18315
18316 * w16select.c (Fw16_get_clipboard_data): Fix last change.
18317
18318 * xselect.c (selection_data_to_lisp_data): Fix last change.
18319
183202002-02-22 Jason Rumney <jasonr@gnu.org>
18321
18322 * w32term.h (struct w32_output): New member menu_command_in_progress.
18323
18324 * w32menu.c (menubar_selection_callback): Free the menu and
18325 clear the menu_command_in_progress flag.
18326
18327 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
18328 (menu_free_timer): New variable.
18329 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
18330 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
18331 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
18332 menu command is in progress.
18333 <WM_COMMAND>: Set the menu_command_in_progress flag.
18334 Kill any menu_free_timer that is running.
18335
18336 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
18337 Call ExtTextOutA rather than ExtTextOut.
18338
183392002-02-22 Eli Zaretskii <eliz@gnu.org>
18340
18341 * puresize.h (BASE_PURESIZE): Increase to 755000.
18342
183432002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18344
18345 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
18346 on the string before encoding it.
18347 (Fw16_get_clipboard_data): Run post-read-conversion on the string
18348 after decoding it.
18349
183502002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18351
18352 Support for ICCCM Extended Segments in X selections:
18353
18354 * xselect.c <Qcompound_text_no_extensions>: New variable.
18355 (syms_of_xselect): Intern and staticpro it.
18356 (selection_data_to_lisp_data): Run post-read-conversion on decoded
18357 selection text.
18358 (lisp_data_to_selection_data): If next-selection-coding-system is
18359 compound-text-no-extensions, set the type of selection to be
18360 compound-text.
18361
18362 * xterm.h (x_encode_text): Update prototype.
18363
18364 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
18365 callers changed. If SELECTIONP is non-zero, run the
18366 pre-write-conversion function before encoding the selection text.
18367
183682002-02-21 Kim F. Storm <storm@cua.dk>
18369
18370 * frame.c (syms_of_frame): Change mouse-highlight default to t.
18371
18372 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
18373 Correct composing of language-change event.
18374
183752002-02-20 Kim F. Storm <storm@cua.dk>
18376
18377 * keyboard.c (menu_bar_items): Don't include keymap or local-map
18378 bindings at PT when building menu (the menu is not updated often
18379 enough for this to work reliable).
18380 (tool_bar_items): Likewise.
18381 (current_active_maps): Removed unused (and buggy) function.
18382
183832002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18384
18385 * xfns.c (gif_load): Use correct width and height for GIF images.
18386
183872002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
18388
18389 * floatfns.c (Fatan): Accept an optional second arg and call
18390 atan2 if passed 2 args.
18391
183922002-02-18 Jason Rumney <jasonr@gnu.org>
18393
18394 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
18395
183962002-02-17 Jason Rumney <jasonr@gnu.org>
18397
18398 * w32term.c (x_autoselect_window_p): New variable.
18399 (syms_of_w32term): DEFVAR_BOOL and initialize it.
18400 (note_mouse_movement): Use it.
18401
18402 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
18403
18404 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
18405
18406 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18407 New variables.
18408 (syms_of_w32fns): Intern and staticpro them.
18409 (x_frame_parms) <"fullscreen">: New parameter.
18410 (x_fullscreen_move, x_set_fullscreen): New functions.
18411 (x_set_frame_parameters): Support Qfullscreen.
18412 (x_real_positions): Save x/y_pixels_diff frame params.
18413 (x_figure_window_size): Support full-screen frames.
18414 (Fx_create_frame): Default the fullscreen parameter.
18415
18416 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
18417 (x_fullscreen_adjust): New functions.
18418 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
18419 fullscreen. Call x_check_fullscreen_move, and set the
18420 want_fullscreen member of output_data.w32
18421 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
18422
18423 * w32term.h: New enum for FULLSCREEN_* constants.
18424 (struct w32_output): New members want_fullscreen, x_pixels_diff,
18425 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
18426 (x-fullscreen-adjust): New prototype.
18427
184282002-02-17 Kim F. Storm <storm@cua.dk>
18429
52eb0373 18430 * frame.c (Vmouse_highlight): New variable.
048addec
JD
18431 (syms_of_frame): DEFVAR_LISP it.
18432
52eb0373 18433 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 18434
048addec 18435 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 18436
048addec
JD
18437 * xterm.c (disable_mouse_highlight): Removed variable.
18438 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18439 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18440 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
18441 and on after keyboard input.
18442 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 18443
048addec 18444 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 18445
048addec
JD
18446 * msdos.c (disable_mouse_highlight): Removed variable.
18447 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18448 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18449 (internal_terminal_init): Initialize mouse_face_hidden.
18450 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
18451 and on after keyboard input.
4f1b1854 18452
048addec 18453 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 18454
048addec
JD
18455 * w32term.c (disable_mouse_highlight): Removed variable.
18456 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
18457 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18458 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
18459 and on after keyboard input.
18460 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 18461
048addec 184622002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 18463
048addec
JD
18464 * msdos.c (last_mouse_window): New variable.
18465 (dos_rawgetc): Fix last change--if the mouse is in the same window
18466 as recorded in last_mouse_window, don't select this window.
5cb6905d 18467
048addec 18468 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 18469
048addec
JD
18470 * msdos.c (x_autoselect_window_p): New variable.
18471 (syms_of_msdos): Defvar it.
18472 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
18473 which the last mouse movement occured, unless it is already selected.
437dfb9f 18474
048addec
JD
18475 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
18476 New variables.
18477 (syms_of_xdisp): DEVFAR them.
18478 (hscroll_window_tree): Use automatic_hscroll_margin and
18479 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 18480
048addec 184812002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 18482
048addec
JD
18483 * xterm.c (x-autoselect-window): New variable.
18484 (note_mouse_movement): Use it.
9f696a00 18485
048addec 18486 * keyboard.c: Do not include "systime.h" twice.
d57966d7 18487
048addec 184882002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 18489
bfa02563 18490 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 18491
048addec 18492 * alloc.c (NSTATICS): Increase to 1280.
74779f52 18493
048addec 184942002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 18495
048addec 18496 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 18497
048addec
JD
18498 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
18499 (Vx_super_keysym): New variables.
18500 (syms_of_xterm): DEFVAR_LISP them.
18501 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
18502 variables to determine which keys to use for the various modifiers.
a474d59c 18503
048addec 185042002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 18505
048addec
JD
18506 * window.c: (Vmode_line_in_non_selected_windows): Removed.
18507 (mode_line_in_non_selected_windows): New variable.
18508 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 18509
048addec
JD
18510 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
18511 Use mode_line_in_non_selected_windows.
18512 (mode_line_in_non_selected_windows): Declare extern.
18513 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 18514
048addec 185152002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 18516
048addec
JD
18517 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
18518 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
18519 (Fclear_this_command_keys): Doc fixes.
2d10309f 18520
048addec
JD
18521 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
18522 (update_face_from_frame_parameter): Increment face_change_count
18523 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 18524
048addec
JD
18525 * xdisp.c (QCpropertize): New variable.
18526 (mode_line_proptrans_alist): New variable.
18527 (display_mode_element): New arg PROPS; all calls changed.
18528 Implement this, for strings.
18529 Handle literal output of strings by sharing the
18530 main-line code for strings, using local var `literal'.
18531 Handle :propertize feature.
18532 (syms_of_xdisp): Initialze and staticpro QCpropertize and
18533 mode_line_proptrans_alist.
0b1e6b54 18534
048addec 185352002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 18536
048addec
JD
18537 * window.c: (Vmode_line_in_non_selected_windows): New variable.
18538 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 18539
048addec
JD
18540 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
18541 (CURRENT_MODE_LINE_FACE_ID): Use it.
18542 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 18543
048addec
JD
18544 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
18545 to get mode line face.
e17144de 18546
048addec 185472002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18548
048addec
JD
18549 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
18550 variables; cus-start.el doesn't need them anymore.
44368f8f 18551
048addec 185522002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 18553
048addec
JD
18554 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
18555 reduction. This fixes a display problem where stray newlines were
18556 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 18557
048addec 185582002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18559
048addec 18560 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 18561
048addec 18562 * xdisp.c (display_mode_lines): Fix last change.
453c5510 18563
048addec 185642002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 18565
048addec
JD
18566 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
18567 match each other.
18568 (w32_load_system_font): Prevent Cleartype fonts from loading.
18569 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 18570
048addec 185712002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 18572
048addec
JD
18573 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
18574 (CURRENT_MODE_LINE_HEIGHT): Use it.
18575 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18576
048addec
JD
18577 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
18578 (pos_visible_p, handle_face_prop): Likewise.
18579 (display_mode_lines): Likewise, but for the real selected window.
18580 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18581
048addec
JD
18582 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
18583 in non-selected windows.
18584 (realize_basic_faces): Realize it.
18585 (syms_of_term): Intern and staticpro it.
308dd672 18586
048addec 185872002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 18588
048addec
JD
18589 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
18590 Changed mail addresses to emacs-devel@gnu.org.
308dd672 18591
048addec 185922002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 18593
048addec
JD
18594 * fileio.c (Fsubstitute_in_file_name): If the file name includes
18595 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 18596
048addec 18597 * floatfns.c (Fround): Doc fix.
3c1e6b46 18598
048addec 185992002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 18600
048addec 18601 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 18602
048addec 186032002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 18604
048addec 18605 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 18606
048addec 186072002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 18608
048addec
JD
18609 * keymap.c (where_is_internal): Only check whether definition is
18610 remapped if it fulfills is_command_symbol.
0065bb74 18611
048addec 186122002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 18613
048addec 18614 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 18615
048addec 18616 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 18617
048addec 186182002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 18619
048addec
JD
18620 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
18621 defining command remapping. Doc updated.
18622 (Flookup_key): Remap command through keymap if KEY is a symbol.
18623 (is_command_symbol): New function.
18624 (Fkey_binding): Use it. New optional argument NO-REMAP.
18625 Doc updated. Callers changed. Perform command remapping via
18626 recursive call unless that arg is non-nil.
18627 (where_is_internal): New argument no_remap. Callers changed.
18628 Call recursively to find original key bindings for a remapped
18629 comand unless that arg is non-nil.
18630 (Fwhere_is_internal): New optional argument NO-REMAP.
18631 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 18632
048addec 18633 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 18634 (is_command_symbol): Add prototype.
0d8466cc 18635
048addec
JD
18636 * keyboard.c (Vthis_original_command): New variable.
18637 (syms_of_keyboard): DEFVAR_LISP it.
18638 (command_loop_1): Set it, and perform command remapping.
15fff01d 18639
048addec 186402002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 18641
048addec 18642 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 18643
048addec 186442002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 18645
048addec 18646 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 18647
048addec 186482002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 18649
048addec 18650 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 18651
048addec 186522002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 18653
048addec 18654 * filelock.c (S_ISLNK): Define if not defined.
3a232704 18655
048addec 186562002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 18657
048addec 18658 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 18659
048addec
JD
18660 * lread.c (read1): Redesign strategy for force_multibyte and
18661 force_singlebyte. Now is_multibyte records whether read_buffer
18662 is multibyte. Encountering any multibyte character makes it so.
4e02881b 18663
048addec 186642002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 18665
048addec
JD
18666 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
18667 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 18668
048addec 186692002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 18670
048addec
JD
18671 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
18672 latter never being defined on GNU/Linux.
749f499f 18673
048addec 186742002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 18675
048addec
JD
18676 * xfaces.c (realize_default_face): Don't set the weight and slant of
18677 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 18678
048addec 186792002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 18680
048addec
JD
18681 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
18682 Call cancel_hourglass unconditionally.
d0fd26dd 18683
048addec
JD
18684 * eval.c (Fsignal): Remove duplicated declaration of
18685 the variable `display_hourglass_p'.
b4c45162 18686
048addec 186872002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 18688
048addec 18689 * editfns.c (region_limit): Nicer error message.
c95eaa61 18690
048addec
JD
18691 * coding.c (decode_composition_emacs_mule):
18692 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 18693
048addec
JD
18694 * callint.c (check_mark): New arg to specify clearer error message.
18695 Callers changed.
c95eaa61 18696
048addec 186972002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 18698
048addec 18699 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 18700
048addec 187012002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 18702
048addec
JD
18703 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
18704 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
18705 Fix doc-strings.
c95eaa61 18706
048addec 187072002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 18708
048addec 18709 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 18710
048addec
JD
18711 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
18712 and scroll_up_aggressively.
c95eaa61 18713
048addec 187142002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 18715
048addec 18716 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 18717
048addec 187182002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 18719
048addec
JD
18720 * textprop.c (Fnext_property_change, Fnext_single_property_change)
18721 (Fprevious_property_change, Fprevious_single_property_change):
18722 Stay within the narrowed-buffer boundaries.
e2c3786a 18723
048addec 187242002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 18725
048addec
JD
18726 * term.c (Ftty_display_color_cells): New function.
18727 (syms_of_term): Defsubr it.
18728 (Ftty_display_color_cells, Ftty_display_color_p): Change the
18729 argument name to DISPLAY. Doc fix.
bf794306 18730
048addec
JD
18731 * dispextern.h: Add prototype for set_tty_color_mode and
18732 tty_setup_colors.
bf794306 18733
048addec 187342002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 18735
048addec
JD
18736 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
18737 If region left to draw is not what was expected, mark the frame as
18738 garbaged.
62582985 18739
048addec
JD
18740 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
18741 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 18742
048addec 187432002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 18744
048addec
JD
18745 * w32term.c (x_update_window_begin): Only hide caret if
18746 w32_use_visible_system_caret is set.
18747 (x_update_window_end): Only show caret if
18748 w32_use_visible_system_caret is set.
18749 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 18750
048addec 18751 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 18752
048addec 187532002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 18754
048addec
JD
18755 * unexelf.c (unexec): Define n so as to cause compilation error
18756 for the code where people have often written n instead of nn.
1e9a6186 18757
048addec 18758 * .gdbinit (hookpost-run): Defined.
1e9a6186 18759
048addec 187602002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 18761
048addec 18762 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 18763
048addec 187642002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 18765
048addec
JD
18766 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
18767 if fullscreen is being set.
7c75be36 18768
048addec 187692002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 18770
048addec
JD
18771 * minibuf.c (Fminibuffer_contents)
18772 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
18773 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 18774
048addec 187752002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 18776
048addec 18777 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 18778
048addec 187792002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 18780
048addec
JD
18781 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
18782 height before comparison.
18783 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 18784
048addec 187852002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 18786
048addec
JD
18787 * w32term.c (w32_system_caret_width): Remove.
18788 (w32_use_visible_system_caret): New user flag.
18789 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
18790 Windows reports a screen reader running.
18791 (x_update_window_begin): Hide the system caret.
18792 (x_update_window_end): Show the system caret.
18793 (x_display_and_set_cursor): Don't draw a cursor when
18794 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 18795
048addec
JD
18796 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
18797 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
18798 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
18799 the user requests it. Use system default width when creating.
18800 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 18801
048addec
JD
18802 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
18803 New window messages.
905cc05a 18804
048addec 188052002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 18806
048addec 18807 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 18808
048addec 188092002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 18810
048addec 18811 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 18812
048addec 188132002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 18814
048addec 18815 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 18816
048addec 188172002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 18818
048addec
JD
18819 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
18820 that Windows returns. If a double check fails, try to guess how
18821 ExtTextOut is going to act.
4d0fa4f3 18822
048addec
JD
18823 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
18824 in place of stricmp.
18825 (w32_list_synthesized_fonts): Removed.
18826 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
18827 (struct enumfont_t): New element; list.
18828 (enum_font_cb2): List all style and charset variations of a font.
18829 (Fw32_select_font): New optional argument; include_proportional.
18830 Exclude vertical fonts. Exclude proportional fonts unless
18831 include_proportional is non-nil.
18832 (w32_enable_synthesized_fonts): Change to a boolean.
18833 (Fw32_send_sys_command): Doc fix.
493faf20 18834
048addec 188352002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 18836
048addec
JD
18837 * dispnew.c (update_frame): Move the variable `tem' to the block
18838 where it is used.
4971e491 18839
048addec 188402002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 18841
048addec
JD
18842 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
18843 call to face-set-after-frame-default.
4971e491 18844
048addec 188452002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 18846
048addec
JD
18847 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
18848 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 18849
048addec 188502002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 18851
048addec
JD
18852 * window.c (enlarge_window): When exceeding size of parent,
18853 directly delete all the siblings instead of trying to resize it.
201c831a 18854
048addec 188552002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 18856
048addec 18857 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 18858
048addec 188592002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 18860
048addec 18861 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 18862
048addec 188632002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 18864
048addec
JD
18865 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
18866 is invisible. This can happen if cursor is on top line of a
18867 window, and we switch to a buffer with a header line.
d77fbc16 18868
048addec 18869 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 18870
048addec 188712002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 18872
048addec
JD
18873 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
18874 `dont_resize' only when used.
61e3b944 18875
048addec 18876 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 18877
048addec 188782002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 18879
048addec
JD
18880 * xdisp.c (display_mode_element): When computing charpos, depend
18881 on multibyteness of elt, not the text in field.
8af01033 18882
048addec 188832002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 18884
048addec
JD
18885 * buffer.c (Fkill_all_local_variables):
18886 Increment `update_mode_lines' only once.
7363986a 18887
048addec 188882002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 18889
048addec
JD
18890 * lisp.h (adjust_after_replace_noundo)
18891 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 18892
048addec 18893 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 18894
048addec 188952002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 18896
048addec
JD
18897 Support for the --color command-line argument and tty-color-mode
18898 frame parameter:
f1a85b89 18899
048addec
JD
18900 * term.c (tty_default_color_capabilities, tty_setup_colors)
18901 (set_tty_color_mode): New functions.
18902 (term_init): Call tty_default_color_capabilities.
18903 (Qtty_color_mode_alist): New variable.
18904 (syms_of_term): Intern and staticpro it.
f1a85b89 18905
048addec
JD
18906 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
18907 frames.
18908 (do_switch_frame): For termcap frames, switch the tty
18909 color mode as specified by the frame's parameters.
18910 (Qtty_color_mode): New variable.
18911 (syms_of_frame): Intern and staticpro it.
3a62677f 18912
048addec
JD
18913 * emacs.c (USAGE2): Add the --color option.
18914 (standard_args): Ditto.
72244db2 18915
048addec
JD
189162002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18917
18918 * xterm.h (struct x_output): New members want_fullscreen,
18919 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
18920 y_pixels_outer_diff.
18921 New enum for FULLSCREEN_* constants.
18922 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
18923 is NULL.
18924 (x_fullscreen_adjust): Add prototype.
3a62677f 18925
048addec
JD
18926 * emacs.c (USAGE2): Add the new full-screen arguments.
18927 (standard_args): Ditto.
3a62677f 18928
048addec
JD
18929 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18930 New variables.
18931 (syms_of_xfns): Intern and staticpro them.
18932 (x_frame_parms) <"fullscreen">: New parameter.
18933 (x_fullscreen_move, x_set_fullscreen): New functions.
18934 (x_set_frame_parameters): Support for Qfullscreen.
18935 (x_real_positions): More accurate computation of the frame position.
18936 (x_figure_window_size): Support full-screen frames.
18937 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 18938
048addec
JD
18939 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
18940 (XTread_socket) <Expose>: Call x_check_fullscreen.
18941 <ConfigureNotify>: Don't resize to fullscreen.
18942 Call x_check_fullscreen_move, and set the want_fullscreen member of
18943 output_data.x.
3a62677f 18944
048addec 189452002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 18946
048addec
JD
18947 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
18948 for mice with more than 3 buttons.
b8523839 18949
048addec
JD
18950 * w32term.c (parse_button): New parameter xbutton. Callers changed.
18951 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 18952
048addec
JD
18953 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
18954 (syms_of_w32fns): DEFVAR_BOOL it.
18955 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 18956
048addec 189572002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 18958
048addec 18959 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 18960
048addec 189612002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 18962
048addec 18963 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 18964
048addec 189652002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 18966
048addec
JD
18967 * .gdbinit (xbuffer): Remove address operator since data is now a
18968 pointer.
c93674bb 18969
048addec 189702002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 18971
048addec 18972 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 18973
048addec 18974 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 18975
048addec 189762002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 18977
048addec
JD
18978 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
18979 when checking for multiple frames.
91175673 18980
048addec 189812002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 18982
048addec
JD
18983 * window.c (delete_window): Rewrite the code for changing the
18984 selected window to handle the case where WINDOW is not a leaf.
91175673 18985
048addec 189862002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 18987
048addec
JD
18988 * process.c (send_process): Set src_multibyte to 1 after the call
18989 top setup_coding_system, not before the call.
e0fead5d 18990
048addec 189912002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 18992
048addec
JD
18993 * xmenu.c (set_frame_menubar, xmenu_show):
18994 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 18995
048addec
JD
18996 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
18997 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 18998
048addec 189992002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 19000
048addec 19001 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 19002
048addec 19003 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 19004
048addec 19005 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 19006
048addec 190072002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 19008
048addec
JD
19009 * insdel.c (make_gap_larger): Make sure buffer size does not
19010 overflow range of int.
62854fe2 19011
048addec 190122002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 19013
048addec
JD
19014 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19015 OVERLAPS_P.
656f46bb 19016
048addec 19017 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 19018
048addec
JD
19019 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
19020 to the left or to the right of the pointer, put it against
19021 the left screen edge.
19022 (x_frame_parms): Add missing braces around initializer.
036e218d 19023
048addec
JD
19024 * w32term.c (x_setup_relief_colors): Don't compute an image's
19025 background color if it doesn't have a Pixmap.
19026 (notice_overwritten_cursor): Don't depend on
19027 output_cursor and updated_area. Compare pixel coordinates with
19028 window's cursor pixel coordinates.
19029 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19030 Call notice_overwritten_cursor with new arg list.
19031 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19032 unconditionally.
19033 (x_draw_image_relief): Use predefined macro instead of
19034 constant when the value of `tool_bar_button_relief' is negative.
036e218d 19035
048addec 19036 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 19037
048addec 190382002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 19039
048addec 19040 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 19041
048addec 190422002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 19043
048addec
JD
19044 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
19045 (Fkey_binding): Try the `keymap' property map first.
19046 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
19047 minor mode bindings.
90647b07 19048
048addec 190492002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 19050
3419757d 19051 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 19052
048addec 190532002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 19054
048addec
JD
19055 * keyboard.c (read_key_sequence): Handle the keymap property
19056 before minor mode maps.
9fbc32aa 19057
048addec
JD
19058 * editfns.c (Fformat): Update thissize from field_width
19059 based on the actual width, in the string case.
036e218d 19060
048addec 190612002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 19062
048addec
JD
19063 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
19064 when used as truth value to prevent gcc warnings.
9fbc32aa 19065
048addec
JD
19066 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
19067 * w32proc.c: Include <config.h>.
9fbc32aa 19068
048addec 190692002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 19070
048addec
JD
19071 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
19072 not EMACS_INT, to make them compatible with DEFVAR_INT.
19073 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 19074
048addec 190752002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19076
048addec
JD
19077 * print.c (print_object): Test print_escape_nonascii only for
19078 unibyte strings.
19079 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
19080 when outputting to a multibyte buffer.
9fbc32aa 19081
048addec 190822001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19083
048addec
JD
19084 * print.c (print_object): In multibyte string, use hex escapes.
19085 Use octal only for unibyte strings.
19086 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 19087
048addec
JD
19088 * lread.c (read_escape): New arg BYTEREP for reporting whether
19089 escape forces unibyte or multibyte.
19090 (read1): When reading a string, take note of that info.
0142178a 19091
048addec 190922001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 19093
048addec
JD
19094 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
19095 comparison to test lisp value returned by Fget.
d4824a5d 19096
048addec 190972001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 19098
048addec 19099 * lisp.h (max_specpdl_size): Add declaration.
b1356234 19100
048addec 19101 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 19102
048addec
JD
19103 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
19104 Handle modifier bits. Correct typo in error message.
99e380ee 19105
048addec 191062001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 19107
048addec
JD
19108 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
19109 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
19110 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19111 Update calls to Fdefine_abbrev.
19112 (write_abbrev): Update for changed data format.
19113 Don't list "system" abbrevs.
19114 (Fexpand_abbrev): Update use count with new data format.
19115 (describe_abbrev): Update for changed data format.
19116 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 19117
048addec 19118 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 19119
048addec 19120 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 19121
048addec
JD
19122 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
19123 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 19124
048addec
JD
19125 * keymap.c (Flookup_key): Error message if key has wrong data type.
19126 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
19127 (exclude_key): New variable.
59a86c99 19128
048addec 191292001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 19130
048addec
JD
19131 * xterm.c (x_setup_relief_colors): Don't compute an image's
19132 background color if it doesn't have a Pixmap.
eb77a5f4 19133
048addec
JD
19134 * xterm.c (notice_overwritten_cursor): Don't depend on
19135 output_cursor and updated_area. Compare pixel coordinates with
19136 window's cursor pixel coordinates.
19137 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19138 Call notice_overwritten_cursor with new arg list.
19139 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19140 unconditionally.
eb77a5f4 19141
048addec
JD
19142 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
19143 height of the cursor line to the amount to scroll.
eb77a5f4 19144
048addec 191452001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 19146
048addec
JD
19147 * intervals.c (set_point_both): The position after an invisible,
19148 intangible character is not an acceptable stopping point.
bb313871 19149
048addec 191502001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 19151
048addec
JD
19152 * window.c (enlarge_window): In new preserve_before code, convert
19153 CURBEG from lisp object to integer before doing arithmetic.
6052529b 19154
048addec 191552001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 19156
048addec 19157 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 19158
048addec 191592001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 19160
048addec
JD
19161 * keyboard.c (record_char): Ignore duplicate help-echo events only
19162 separated by mouse-movement. When tracking mouse, only record
19163 first and last mouse-movement event in same window.
19164 Don't record mouse-movement events in keyboard macros.
3ce081f5 19165
048addec 191662001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 19167
048addec
JD
19168 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
19169 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 19170
048addec
JD
19171 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
19172 instead of Fstring_as_unibyte.
9fabb2f5 19173
048addec 191742001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 19175
048addec 19176 The following changes remove mocklisp support:
9fabb2f5 19177
048addec 19178 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 19179
048addec
JD
19180 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
19181 `Qmocklisp' and `Qmocklisp_arguments'.
19182 Remove prototype of syms_of_mocklisp.
2fa0eedf 19183
048addec 19184 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 19185
048addec
JD
19186 * callint.c: Do not include mocklisp.h.
19187 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 19188
048addec
JD
19189 * eval.c: Remove variables `Qmocklisp_arguments',
19190 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
19191 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
19192 Do not test for mocklisp case.
19193 (Fwhile): Remove unused variable `tem'.
19194 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 19195
048addec 19196 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 19197
048addec 19198 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 19199
048addec 19200 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 19201
048addec 192022001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 19203
048addec
JD
19204 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
19205 to the left or to the right of the pointer, put it against
19206 the left screen edge.
6108b49c 19207
048addec 192082001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 19209
048addec
JD
19210 * Makefile.in (distclean): Remove .gdbinit if we are building
19211 outside the source tree.
5eea19a4 19212
048addec 192132001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 19214
048addec 19215 * w32.c (emacs_root_dir): New function.
5eea19a4 19216
048addec 19217 * msdos.c (emacs_root_dir): New function.
5eea19a4 19218
048addec
JD
19219 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
19220 of the current drive as the fallback for default_directory.
438e57dd 19221
048addec
JD
19222 * dired.c (file_name_completion): Run the elements of
19223 completion-ignored-extensions through ENCODE_FILE.
438e57dd 19224
048addec
JD
19225 * lisp.h (scmp): Remove prototype, since it's now a static
19226 function private to dired.c.
c88e5347 19227
048addec 192282001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 19229
048addec
JD
19230 * dired.c (scmp): Function moved from minibuf.c.
19231 Delete multibyte handling--used only on encoded strings.
59ce1461 19232
048addec 19233 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 19234
048addec 19235 * fns.c (merge): Add QUIT call.
59ce1461 19236
048addec 192372001-12-18 Dave Love <fx@gnu.org>
8727d588 19238
048addec
JD
19239 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
19240 language/georgian.el.
8727d588 19241
048addec 192422001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 19243
048addec
JD
19244 * Makefile.in (lisp, shortlisp): Synchronize with changes to
19245 lisp/Makefile.in:DONTCOMPILE.
cc63037e 19246
048addec 192472001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 19248
048addec
JD
19249 * xdisp.c (window_box_height): Do not return negative values.
19250 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 19251
048addec 19252 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 19253
048addec 19254 * term.c (keys): Likewise.
deece6f5 19255
048addec 19256 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 19257
048addec 192582001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 19259
048addec
JD
19260 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
19261 patch (COMPOSING_P, not COMPOSING).
28ff4293 19262
048addec 192632001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 19264
048addec 19265 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 19266
048addec
JD
19267 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
19268 before calling decode_coding.
9b46de40 19269
048addec 19270 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 19271
048addec
JD
19272 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
19273 instead of only for COMPOSITION_DISABLED.
9b46de40 19274
048addec 192752001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 19276
048addec 19277 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 19278
048addec 19279 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 19280
048addec
JD
19281 * buffer.h (struct buffer): New field `display_error_modiff'.
19282 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 19283
048addec 19284 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 19285
048addec
JD
19286 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
19287 Call redisplay_window, but not if display_error_modiff field says no.
19288 (redisplay_window_error): New function.
19289 (displayed_buffer): New variable.
19290 (redisplay_internal, redisplay_windows): Call the new functions
19291 instead of redisplay_window directly.
2cd23960 19292
048addec 192932001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 19294
048addec 19295 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 19296
048addec 192972001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 19298
048addec 19299 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 19300 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 19301 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 19302
048addec 193032001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 19304
048addec
JD
19305 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
19306 parameter have a numeric value all the time.
f6fa0866 19307
048addec 19308 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 19309
048addec 193102001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 19311
048addec 19312 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 19313
048addec
JD
19314 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
19315 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 19316
048addec 193172001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 19318
048addec
JD
19319 * xdisp.c (move_it_vertically_backward): Change heuristic
19320 for the case that we didn't move far enough initially.
91c153e2 19321
048addec
JD
19322 * window.c (Frecenter): Simplify computation in the case of window
19323 system frames and ARG < 0; use window_box_height.
65b7d3e7 19324
048addec 193252001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 19326
048addec
JD
19327 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
19328 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 19329
048addec 193302001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 19331
048addec
JD
19332 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
19333 arg is negative.
be676094 19334
048addec 193352001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 19336
048addec
JD
19337 * m/hp800.h: Split the __hpux conditional into the parts
19338 that are right for GNU/Linux too and the parts that are not.
19339 Use the former if GNU_LINUX.
19340 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 19341
048addec 19342 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 19343
048addec 193442001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 19345
048addec
JD
19346 * macros.c, msdos.c, w16select.c: Change doc-string comments to
19347 `new style' [w/`doc:' keyword].
032a857d 19348
048addec 193492001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 19350
048addec
JD
19351 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
19352 before using.
b6270150 19353
048addec 193542001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 19355
048addec
JD
19356 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
19357 keyword].
98cbb9fa 19358
048addec 193592001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 19360
048addec 19361 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 19362
048addec 19363 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 19364
048addec 193652001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 19366
048addec 19367 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 19368 Add comment to explain where the struct came from.
048addec
JD
19369 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
19370 (add_menu_item): Process pop-up menus first to avoid memory leak.
19371 (add_menu_item, w32_menu_display_help): Use `help' field as
19372 Lisp_Object.
19373 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 19374
048addec 193752001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 19376
048addec 19377 * COPYING: Moved back.
fa336b91 19378
048addec
JD
19379 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
19380 Add parentheses around && within ||.
077907d4 19381
048addec 19382 * indent.c (compute_motion): Likewise.
aa2af83a 19383
048addec 19384 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 19385
048addec
JD
19386 * coding.c (setup_coding_system, shrink_encoding_region)
19387 (Fdecode_sjis_char): Likewise.
60a653f1 19388
048addec 193892001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 19390
048addec
JD
19391 * xdisp.c (display_mode_element): Don't read past end of string if
19392 it ends with '%'.
60a653f1 19393
048addec
JD
19394 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
19395 can hold.
60a653f1 19396
048addec
JD
19397 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
19398 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
19399 type changed to Lisp_Object.
19400 (syms_of_data): DEFVAR_LISP them.
60a653f1 19401
048addec 194022001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 19403
048addec
JD
19404 * callproc.c (init_callproc): Set Vdata_directory based on the source
19405 location whenever Emacs was run uninstalled.
60a653f1 19406
048addec 194072001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 19408
048addec
JD
19409 * config.in (HAVE_WORKING_VFORK): New #undefs.
19410 * process.c (create_process):
19411 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
19412 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
19413 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
19414 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
19415 * m/intel386.h (HAVE_VFORK): Likewise.
19416 * m/mips-siemens.h (HAVE_VFORK): Likewise.
19417 * m/mips.h (HAVE_VFORK): Likewise.
19418 * s/freebsd.h (vfork): Remove #define.
19419 * s/lynxos.h (HAVE_VFORK): Remove #undef.
19420 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 19421
048addec 194222001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 19423
048addec
JD
19424 * s/hpux10.h (random): Add undef.
19425 (HAVE_RANDOM): Define it just once.
60a653f1 19426
048addec 194272001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19428
048addec 19429 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 19430
048addec 194312001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19432
048addec
JD
19433 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
19434 scroll bars of the frame before deleting the frame itself. If the
19435 frame has a widget, delete the frame with XtDestroyWidget, and do
19436 not call XDestroyWindow before that.
60a653f1 19437
048addec 194382001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 19439
048addec 19440 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19441
048addec 19442 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19443
048addec 194442001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 19445
048addec
JD
19446 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
19447 excessively large.
60a653f1 19448
048addec
JD
19449 * insdel.c (make_gap_larger): New function.
19450 (make_gap_smaller): New function.
19451 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
19452 Call make_gap_smaller if arg is negative.
60a653f1 19453
048addec 194542001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19455
048addec
JD
19456 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
19457 Pass a dummy argument when calling interrupt_signal.
19458 (parse_menu_item): Mark disabled items before checking for empty def.
19459 (read_char_minibuf_menu_prompt): Make safety more visible.
19460 (read_key_sequence): Add a `first_unbound' variable.
19461 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
19462 unbound prefix as soon as we can detect it.
60a653f1 19463
048addec
JD
19464 * doc.c (Fsnarf_documentation): Add prototype.
19465 (get_doc_string): Handle negative arguments.
19466 (Fdocumentation): Use AREF and ASIZE.
19467 Move the calls to get_doc_string to a single place.
19468 Don't confuse an interactive-spec for a docstring reference.
19469 (Fdocumentation_property): Take advantage of the fact that
19470 get_doc_string now ignores the sign of the docstring position.
60a653f1 19471
048addec 19472 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 19473
048addec 194742001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19475
a64387ee 19476 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 19477
048addec 194782001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19479
048addec
JD
19480 * xterm.c (x_draw_image_relief): Use predefined macro instead of
19481 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 19482
048addec 194832001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 19484
048addec
JD
19485 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
19486 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 19487
048addec 19488 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 19489
048addec 194902001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19491
048addec 19492 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 19493
048addec 194942001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 19495
048addec 19496 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 19497
048addec 194982001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 19499
f63fd14e 19500 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 19501
048addec
JD
19502 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
19503 [!WM_MOUSELEAVE]: Define.
60a653f1 19504
048addec
JD
19505 * w32menu.c (current_popup_menu, get_menu_item_info):
19506 (set_menu_item_info): New vars.
19507 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
19508 (w32_menu_show): Set current_popup_menu.
19509 (add_menu_item): Allocate new strings for owner-drawn menu items
19510 and help strings.
19511 Use owner-draw for disabled menu items again.
19512 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
19513 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 19514
048addec
JD
19515 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
19516 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
19517 <WM_EXITMENULOOP>: Free menu strings.
19518 <WM_MOUSELEAVE>: Stop tracking mouse.
19519 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 19520
048addec
JD
19521 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
19522 and mouse face.
60a653f1 19523
048addec 195242001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 19525
048addec
JD
19526 The following changes add left-fringe and right-fringe
19527 frame parameters to adjust fringe widths, or remove one or
19528 both fringes.
60a653f1 19529
048addec
JD
19530 * frame.h (struct frame): Remove trunc_area_pixel_width and
19531 trunc_area_cols fields.
19532 (Qleft_fringe, Qright_fringe): Declare.
19533 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 19534
048addec
JD
19535 * frame.c (Qleft_fringe, Qright_fringe): New vars.
19536 (syms_of_frame): Initialize them.
60a653f1 19537
048addec
JD
19538 * window.c (coordinates_in_window): Handle separate left and right
19539 fringe widths.
60a653f1 19540
048addec
JD
19541 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
19542 and fringe_cols fields.
19543 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
19544 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
19545 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
19546 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
19547 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
19548 (x_compute_fringe_widths): Add prototype.
60a653f1 19549
048addec
JD
19550 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
19551 fill fringe evenly with small dashes.
f63fd14e 19552 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
19553 clip the new ZV bitmap to avoid jitter between rows.
19554 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
19555 background. Don't draw fringe bitmaps if fringe width is zero.
19556 (x_compute_fringe_widths): New function.
19557 (x_new_font, x_set_window_size_1): Use it.
60a653f1 19558
048addec
JD
19559 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
19560 (x_set_frame_parameters): Process `font' parameter before other
19561 parameters as fringe widths depend on it.
19562 (x_set_fringe_width): New function.
19563 (x_figure_window_size): Use x_compute_fringe_widths.
19564 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
19565 parameters.
60a653f1 19566
048addec
JD
19567 * widget.c (set_frame_size): Use x_compute_fringe_widths.
19568 (EmacsFrameSetCharSize): Ditto.
60a653f1 19569
048addec
JD
19570 * w32term.h: Merged changes from xterm.h.
19571 * w32term.c: Merged changes from xterm.c.
19572 * w32fns.c: Merged changes from xfns.c.
60a653f1 19573
048addec 195742001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19575
048addec 19576 * COPYING: Removed.
60a653f1 19577
048addec 195782001-11-29 Dave Love <fx@gnu.org>
60a653f1 19579
048addec
JD
19580 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
19581 extra extra slot.
19582 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 19583
048addec 195842001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19585
048addec
JD
19586 * fileio.c (file-name-coding-system)
19587 (default-file-name-coding-system): Doc fix (links to referenced
19588 variables added).
60a653f1 19589
048addec 195902001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19591
048addec
JD
19592 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
19593 Add dummy uses of gcproN variables.
60a653f1 19594
048addec
JD
19595 * category.c (describe_category, describe_category_1)
19596 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
19597 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 19598
048addec 195992001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 19600
048addec 19601 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 19602
048addec
JD
19603 * Makefile.in (lispdir): New variable, referring to build dir.
19604 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 19605
048addec 196062001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 19607
048addec
JD
19608 * w32menu.c (w32_menu_display_help): Actually add the new argument
19609 OWNER.
60a653f1 19610
048addec 196112001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 19612
048addec
JD
19613 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
19614 menu items. From David Ponce <dponce@wanadoo.fr>.
19615 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
19616 conditionally.
f63fd14e 19617 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 19618 help event in the owner frame's keyboard buffer.
60a653f1 19619
048addec
JD
19620 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
19621 (Fx_show_tip): Don't subtract last width from row width.
19622
19623 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
19624 (w32_read_socket): Use EQ to compare frames.
60a653f1 19625
048addec 196262001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 19627
048addec
JD
19628 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19629 OVERLAPS_P.
60a653f1 19630
048addec 196312001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19632
048addec
JD
19633 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
19634 `gcpro3' and `gcpro4'.
60a653f1 19635
048addec 19636 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 19637
048addec 196382001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19639
048addec 19640 * ccl.c: Use AREF and ASIZE.
60a653f1 19641
048addec 196422001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19643
048addec
JD
19644 * lisp.h (run_hook_list_with_args): Remove.
19645 (LIST_END_P): Fix call to wrong_type_argument.
19646 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 19647
048addec 196482001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19649
048addec
JD
19650 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
19651 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 19652
048addec
JD
19653 * eval.c: Use AREF and ASIZE.
19654 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 19655
048addec
JD
19656 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
19657 which match the end of the file-name.
19658 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
19659 is not a valid env var, but leave it as is instead.
60a653f1 19660
048addec
JD
19661 * keymap.c (access_keymap): Handle t bindings like nil bindings.
19662 Make nil bindings in char-tables transparent.
19663 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 19664
048addec 196652001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 19666
048addec
JD
19667 * textprop.c (set_text_properties_1): Allow START, END in either order.
19668 Do nothing if range is empty.
60a653f1 19669
048addec 19670 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 19671
048addec
JD
19672 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
19673 (clean): Not here.
60a653f1 19674
048addec 196752001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19676
048addec
JD
19677 * textprop.c (set_text_properties_1): Clearly mark that the
19678 interval should not be empty.
60a653f1 19679
048addec
JD
19680 * intervals.c (graft_intervals_into_buffer):
19681 Don't call set_text_properties_1 on an empty interval.
60a653f1 19682
048addec 196832001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 19684
048addec 19685 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 19686
048addec
JD
19687 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
19688 don't lose the data in it.
60a653f1 19689
048addec 196902001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 19691
048addec 19692 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 19693
c62aec78 19694 * buffer.c (Fkill_buffer): Likewise.
60a653f1 19695
c62aec78 19696 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 19697
048addec 196982001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19699
048addec 19700 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 19701
048addec 197022001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19703
048addec
JD
19704 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
19705 Niemitalo <kon@iki.fi>.
60a653f1 19706
048addec 197072001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 19708
048addec 19709 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 19710
048addec
JD
19711 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
19712 (Fx_show_tip): Block input during frame creation.
19713 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 19714
048addec 197152001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 19716
048addec
JD
19717 * lread.c (Fload): Detect recursive load error for more than 3
19718 nestings of the same file.
19719 (Vrecursive_load_depth_limit): Variable deleted.
19720 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 19721
048addec 197222001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 19723
048addec
JD
19724 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
19725 mouse position if either left or top is not specified.
60a653f1 19726
048addec
JD
19727 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
19728 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
19729 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
19730 (my_create_tip_window): Assign tip_window.
19731 (x_create_tip_frame): Use same defaults as X.
19732 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 19733 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 19734
048addec
JD
19735 * w32term.c (x_after_update_window_line): Doc fix.
19736 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
19737 frames.
19738 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 19739
048addec
JD
19740 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
19741 for all Windowed systems.
60a653f1 19742
048addec 197432001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19744
048addec
JD
19745 * msdos.c (IT_clear_screen): If the frame's faces are not yet
19746 realized, use the initial screen colors to clear the screen.
60a653f1 19747
048addec 197482001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19749
048addec
JD
19750 * textprop.c (Fset_text_properties): Remove unused variables
19751 `unchanged', `prev_changed', `s' and `len'.
60a653f1 19752
048addec
JD
19753 * search.c (Freplace_match): Remove unused variable `inslen'.
19754
19755 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
19756
197572001-11-22 Jason Rumney <jasonr@gnu.org>
19758
19759 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
19760 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
19761 (my_create_tip_window): New function.
19762 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
19763 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
19764
197652001-11-20 Jason Rumney <jasonr@gnu.org>
19766
19767 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
19768 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
19769
19770 * w32fns.c (Vw32_system_coding_system): Remove.
19771 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
19772
197732001-11-19 Stefan Monnier <monnier@cs.yale.edu>
19774
19775 * fileio.c (Fwrite_region): Move choose_write_coding_system to
19776 after build_annotations.
19777
19778 * syntax.c (describe_syntax): Add dummy arg.
19779 (describe_syntax_1): Update call to describe_vector.
19780
19781 * category.c (describe_category): Add dummy arg.
19782 (describe_category_1): Update call to describe_vector.
19783
19784 * keymap.c (Fdescribe_vector): Add `describer' parameter.
19785 (describe_command, describe_translation): Add dummy second param.
19786 (describe_map): Call elt_describer with two arguments.
19787 (describe_vector_princ): Add `fun' parameter.
19788 Call it instead of the hardcoded `princ'.
19789 (describe_vector): Add arg `args'.
19790 Pass it as a new second argument to elt_describer.
60a653f1 19791
048addec 19792 * keymap.h (describe_vector): Update prototype.
60a653f1 19793
048addec
JD
19794 * frame.c: Don't include keymap.h any more.
19795 (keys_of_frame): Remove.
60a653f1 19796
048addec 19797 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 19798
048addec 19799 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 19800
048addec 198012001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 19802
048addec
JD
19803 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
19804 if defined, 0 otherwise.
19805 (MAP_FAILED): Define if not defined and use it to test mmap failure.
19806 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 19807
048addec 198082001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 19809
048addec 19810 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 19811
048addec 198122001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 19813
048addec
JD
19814 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
19815 (x_draw_bar_cursor): If the background color of the glyph under
19816 the cursor equals the frame's cursor color, use the glyph's
19817 foreground color for drawing the bar cursor.
19818 (x_after_update_window_line): Clear internal border in different
19819 circumstances.
19820 (w32_set_vertical_scroll_bar): Check for width and height > 0.
19821 (w32_draw_relief_rect): Correct relief by 1 pixel.
19822 (x_set_glyph_string_background_width):
19823 Set extends_to_end_of_line_p if the row's fill_line_p is set and
19824 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
19825 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
19826 if cursor_in_non_selected_windows is false.
19827 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
19828 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
19829 Notice if cursor gets overwritten.
19830 (notice_overwritten_cursor): Renamed from
19831 note_overwritten_text_cursor. Rewritten to take glyph widths
19832 into account, and to take X positions as parameters.
19833 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19834 around call to x_draw_glyphs.
19835 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19836 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19837 color to use for image glyph reliefs.
19838 (x_draw_image_relief): Accept zero tool_bar_button_relief.
19839 (glyph_rect): Remove unused variable `area'.
60a653f1 19840
048addec
JD
19841 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
19842 some items.
19843 (x_set_internal_border_width): Set frame garbaged when window
19844 doesn't exist yet.
19845 (Fx_create_frame): Accept zero tool_bar_button_relief.
19846 (x_clear_image_1, four_corners_best, image_background)
19847 (image_background_transparent): New functions.
19848 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
19849 (gs_format): Add `:background' entry.
19850 (lookup_image): Set IMG's background color if specified.
19851 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19852 when appropriate.
19853 (x_clear_image_1): Reset `background_valid' and
19854 `background_transparent_valid' fields.
19855 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19856 calculating it here. Set IMG's background_transparent field.
19857 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19858 (enum png_keyword_index): Add PNG_BACKGROUND.
19859 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19860 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19861 (enum gif_keyword_index): Add GIF_BACKGROUND.
19862 (enum gs_keyword_index): Add GS_BACKGROUND.
19863 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
19864 Pre-calculate image background color where necessary.
19865 (x_create_x_image_and_pixmap, xbm_load, gs_load):
19866 Use display info's n_cbits entry for screen depth.
19867 (Fx_show_tip): Remove unused variables `buffer', `top',
19868 `left', `max_width' and `max_height'.
60a653f1 19869
048addec 19870 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 19871
048addec 198722001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 19873
048addec 19874 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 19875
048addec 198762001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19877
048addec 19878 * frame.c (Fframe_live_p): Doc fix.
60a653f1 19879
048addec 198802001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 19881
048addec
JD
19882 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
19883 (message_dolog_marker3): New static variables hold three markers.
19884 (syms_of_xdisp): Initialize and staticpro them.
19885 (message_dolog): Use message_dolog_marker1..3 instead of
19886 allocating markers each time. Unchain them when done.
60a653f1 19887
048addec 198882001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 19889
048addec 19890 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 19891
048addec 198922001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 19893
048addec 19894 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 19895
048addec 198962001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 19897
048addec 19898 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 19899
048addec 199002001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 19901
048addec 19902 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 19903
048addec 199042001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 19905
048addec
JD
19906 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
19907 with invalid position.
60a653f1 19908
048addec 199092001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 19910
048addec 19911 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 19912
048addec
JD
19913 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
19914 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
19915 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 19916
048addec 19917 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 19918
048addec 199192001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19920
048addec
JD
19921 * fileio.c (build_annotations): Split off the tail.
19922 (build_annotations_2): New fun. Extracted from build_annotations.
19923 (Fwrite_region): Split the call to build_annotations into two
19924 calls to build_annotations and build_annotations_2.
077907d4 19925
048addec 199262001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 19927
048addec
JD
19928 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
19929 clear_waiting_for_input with argument.
1756e2fb 19930
048addec 19931 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 19932
048addec 19933 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 19934
048addec 19935 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 19936
048addec 19937 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 19938
048addec 199392001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 19940
048addec
JD
19941 * fileio.c (choose_write_coding_system): New fun, extracted
19942 from Fwrite_region.
19943 (Fwrite_region): Use it.
fa336b91 19944
048addec
JD
19945 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
19946 (funcall_lambda, run_hook_with_args): Make static and add prototype.
19947 (ml_apply, find_handler_clause): Add prototype.
fa336b91 19948
048addec 199492001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 19950
048addec 19951 * config.in: Add #undef HAVE_COFF_H.
fa336b91 19952
048addec
JD
19953 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
19954 Required for ISC 4.1.
fa336b91 19955
048addec 199562001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 19957
52eb0373 19958 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 19959 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 19960
048addec 199612001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 19962
048addec
JD
19963 The following changes are made to clean up the various internal
19964 references to the fringes to actually use the term `fringe' for
19965 them. Previously, they were called `flags areas', `bitmap areas',
19966 `left/right side of windows', or implicitly as `flags' or
19967 `bitmaps':
fa336b91 19968
048addec 19969 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 19970 Comments fixed. Use renamed symbols.
06e8f738 19971
f63fd14e 19972 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 19973
048addec
JD
19974 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
19975 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
19976 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 19977
048addec 19978 * msdos.c: Comment fix.
9ce647f4 19979
048addec 19980 * w32fns.c: Use renamed symbols.
9b784ab8 19981
f63fd14e 19982 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
19983 (fringe_bitmap_type): Renamed from bitmap_type.
19984 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
19985 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
19986 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 19987
f63fd14e 19988 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
19989 (fringes_extra): Renamed from flags_areas_extra.
19990 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
19991 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
19992 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
19993 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
19994 (FRAME_X_LEFT_FRINGE_WIDTH):
19995 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
19996 (FRAME_X_RIGHT_FRINGE_WIDTH):
19997 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 19998
048addec 19999 * widget.c: Use renamed symbols.
9f7e52b4 20000
f63fd14e 20001 * window.c: Comment fixes. Use renamed symbols.
048addec 20002 (coordinates-in-window-p): Doc fix.
fa336b91 20003
f63fd14e 20004 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 20005
048addec 20006 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 20007
048addec 20008 * xfns.c: Use renamed symbols.
89512fcd 20009
f63fd14e 20010 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
20011 (fringe_bitmap_type): Renamed from bitmap_type.
20012 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20013 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
20014 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 20015
f63fd14e 20016 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
20017 (fringes_extra): Renamed from flags_areas_extra.
20018 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20019 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20020 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20021 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20022 (FRAME_X_LEFT_FRINGE_WIDTH):
20023 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20024 (FRAME_X_RIGHT_FRINGE_WIDTH):
20025 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
20026
200272001-11-15 Jason Rumney <jasonr@gnu.org>
20028
20029 * w32menu.c (add-menu-item): Make help_echo and radio buttons
20030 work for most menu items. From David Ponce
20031 <david.ponce@wanadoo.fr>.
20032
200332001-11-15 Gerd Moellmann <gerd@gnu.org>
20034
20035 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
20036 Some x_set_* function expect to be called even if old and new
20037 value are equal.
20038
20039 * xdisp.c (build_desired_tool_bar_string): Accept zero
20040 tool_bar_button_relief.
20041
20042 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
20043
20044 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
20045
20046 * xterm.c (x_draw_bar_cursor): If the background color of the
20047 glyph under the cursor equals the frame's cursor color, use
20048 the glyph's foreground color for drawing the bar cursor.
20049
20050 * dispnew.c (direct_output_forward_char): Fix character/byte
20051 position comparison.
7d18891d 20052
048addec 200532001-11-15 Miles Bader <miles@gnu.org>
d2936d21 20054
048addec
JD
20055 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
20056 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
20057 Update arguments to find_field.
20058 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
20059 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
20060 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
20061 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 20062
048addec 200632001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 20064
048addec 20065 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 20066
048addec
JD
20067 * dispextern.h (image_background, image_background_transparent):
20068 Conditionalize on HAVE_X_WINDOWS.
7d18891d 20069
048addec 200702001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 20071
048addec 20072 * print.c (Fprin1_to_string): Doc fix.
7d18891d 20073
048addec 20074 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 20075
048addec 20076 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 20077
048addec 20078 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 20079
048addec 20080 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 20081
048addec 20082 * eval.c (syms_of_eval): Doc fix.
7d18891d 20083
048addec 20084 * coding.c (syms_of_coding): Doc fix.
7d18891d 20085
048addec 20086 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 20087
048addec 20088 * dispnew.c (syms_of_display): Doc fix.
9474c847 20089
048addec 20090 * category.c (Fget_unused_category): Doc fix.
9474c847 20091
048addec 20092 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 20093
048addec 200942001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 20095
048addec 20096 * print.c (prin1, print): Doc fix.
e3059a5d 20097
048addec 200982001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 20099
048addec
JD
20100 * fontset.h: Remove declarations of variables
20101 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 20102
048addec
JD
20103 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
20104 `Vclip_large_size_font'.
eae936e2 20105
048addec 201062001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 20107
048addec 20108 * w32fns.c: Doc fix.
ddb67bdc 20109
048addec 201102001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 20111
048addec 20112 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 20113
048addec 20114 * fns.c: Doc fix.
6e1b91d7 20115
048addec 20116 * emacs.c: Doc fix.
1c1d3d69 20117
048addec 20118 * coding.c: Doc fix.
1c1d3d69 20119
048addec
JD
20120 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
20121 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
20122 `new style' [w/`doc:' keyword].
b6f4c7ba 20123
048addec 201242001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 20125
048addec
JD
20126 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
20127 LeaveNotify events. Only FocusIn and FocusOut do that now.
20128 (x_display_and_set_cursor): Do display hollow cursors in active
20129 minibuffer windows when they are not selected.
b6f4c7ba 20130
048addec 201312001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 20132
048addec 20133 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
20134 * w32term.c: Change doc-string comments to `new style'
20135 [w/`doc:' keyword]. Doc fixes.
a89f435d 20136
048addec
JD
20137 * w32fns.c: Don't define max.
20138 (Fx_open_connection): Only execute once.
a4cd0cd7 20139
048addec 201402001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 20141
048addec
JD
20142 * ccl.c: Change macros to use do-while block instead of if-else.
20143 Use braces to follow GNU Coding Standards.
eafb659a 20144
048addec 201452001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 20146
048addec 20147 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 20148
048addec 20149 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 20150
048addec
JD
20151 * insdel.c (replace_range): Use adjust_markers_for_replace
20152 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 20153
78819ebb 20154 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 20155
048addec
JD
20156 * textprop.c (set_text_properties_1): New subroutine
20157 broken out of set_text_properties.
20158 (set_text_properties): Use set_text_properties_1.
91823618 20159
048addec
JD
20160 * intervals.c (graft_intervals_into_buffer):
20161 Use set_text_properties_1 to clear out properties.
91823618 20162
048addec
JD
20163 * search.c (Freplace_match): Use replace_range to insert
20164 and delete. Don't request property inheritance from
20165 surrounding text.
86928dfb 20166
048addec 201672001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 20168
048addec 20169 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 20170 vertical fonts. Allow them if face name is explicitly specified.
048addec 20171 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 20172
048addec 201732001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 20174
048addec
JD
20175 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
20176 instead of malloc/free.
a78e0303 20177
048addec 201782001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 20179
048addec
JD
20180 * xfaces.c (merge_face_vectors): Use braces to follow GNU
20181 Coding Standards.
20182 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 20183
048addec 20184 * buffer.c (Fbury_buffer): Likewise.
0c99b139 20185
048addec 20186 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 20187
048addec
JD
20188 * coding.c (encode_coding): Use precomputed value of `src'.
20189 (encode_coding): Remove unused variable `src_end'.
20190 (code_convert_region): Remove unused variables `count'.
830ddd77 20191
048addec 201922001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 20193
048addec
JD
20194 * w32term.c (x_display_and_set_cursor): Do not move system caret
20195 if cursor_glyph is NULL.
55c6d645 20196
048addec 201972001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 20198
048addec 20199 * keymap.c (access_keymap): Fix compilation error.
5de38842 20200
048addec 202012001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 20202
048addec 20203 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 20204
048addec 202052001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 20206
048addec
JD
20207 * intervals.c (graft_intervals_into_buffer):
20208 Remove #ifdef'd-out code.
20209 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 20210
048addec
JD
20211 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
20212 code (eval-current-buffer).
20213 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 20214
048addec 202152001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 20216
048addec 20217 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 20218
048addec 202192001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 20220
048addec 20221 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 20222
048addec
JD
20223 * keyboard.c (make_lispy_event): Check integerness and fix
20224 Lisp_Object/int mixup.
17893c65 20225
048addec 202262001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 20227
048addec 20228 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 20229
048addec
JD
20230 * fontset.c (fontset_font_pattern): Remove unused variable
20231 `family_registry'.
d5360cc7 20232
048addec 20233 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 20234
048addec 202352001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 20236
048addec 20237 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 20238
048addec
JD
20239 * buffer.c (Fkill_buffer): Don't delete auto save file
20240 if buffer is modified.
d9d54213 20241
048addec 202422001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 20243
048addec
JD
20244 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
20245 CHECK_NUMBER_CDR.
b116830b 20246
048addec 202472001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 20248
048addec 20249 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 20250
048addec 202512001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 20252
048addec 20253 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 20254
048addec 202552001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 20256
048addec 20257 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 20258
048addec 202592001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 20260
048addec
JD
20261 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
20262 the program image directly.
982f6c7e 20263
048addec 202642001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 20265
048addec 20266 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 20267
048addec 202682001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 20269
048addec
JD
20270 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
20271 and CHECK_BUFFER.
d31053f9 20272
048addec
JD
20273 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
20274 (record_char): Likewise.
d31053f9 20275
048addec
JD
20276 * keyboard.c (make_lispy_event): Don't insist a drag event must
20277 move to a different buffer position. Instead, check for moving at
20278 least double_click_fuzz.
982f6c7e 20279
048addec 20280 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 20281
048addec 20282 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 20283
048addec
JD
20284 * indent.c (current_column_1, Fmove_to_column): Separate the code
20285 for display-table glyphs from the code for buffer text, to fix
20286 bugs in the former.
830047fd 20287
048addec 202882001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 20289
048addec
JD
20290 * buffer.c (Fbuffer_local_value): New function.
20291 (syms_of_buffer): Defsubr it.
2df5238c 20292
048addec
JD
20293 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
20294 value of `cursor-in-non-selected-windows'.
4e397688 20295
048addec
JD
20296 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
20297 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
20298 (syms_of_xdisp): Initialize it.
48b0f3ae 20299
048addec 203002001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 20301
048addec 20302 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 20303
048addec
JD
20304 * coding.c: Change doc-string comments to `new style' [w/`doc:'
20305 keyword].
3ecaf7e5 20306
048addec
JD
20307 * eval.c (top_level_value, top_level_set): Remove commented and
20308 #ifdef'd-out code.
20309 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 20310
048addec 203112001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 20312
048addec 20313 * xfns.c: Include unistd.h, if it exists.
8db2e33b 20314
048addec 20315 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 20316
048addec 20317 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 20318
048addec 203192001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 20320
048addec
JD
20321 * lisp.h (CHECK_STRING_CAR): New macro.
20322 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
20323 treating XCAR and XCDR as lvalues.
20324 (openp): Use CHECK_STRING_CAR.
20325 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 20326
048addec 203272001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 20328
048addec
JD
20329 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
20330 (SIGMASKTYPE): Define.
1b1acc13 20331
048addec 20332 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 20333
048addec 203342001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 20335
048addec
JD
20336 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
20337 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
20338 Fix typos in comments.
6cb16f95 20339
048addec
JD
20340 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
20341 and #ifdef'd-out code.
20342 Fix and reindent comments.
6cb16f95 20343
048addec 20344 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 20345
048addec
JD
20346 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
20347 argument `i' in macros.
6cb16f95 20348
048addec
JD
20349 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
20350 `i' in macros.
7e9d3c2f 20351
048addec
JD
20352 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
20353 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
20354 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
20355 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
20356 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
20357 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
20358 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
20359 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
20360 in macros.
7e9d3c2f 20361
048addec
JD
20362 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
20363 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
20364 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
20365 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
20366 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
20367 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
20368 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
20369 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
20370 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
20371 (remove unused second argument).
7e9d3c2f 20372
048addec 203732001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20374
048addec
JD
20375 * syntax.c (describe_syntax): New wrapper.
20376 (Finternal_describe_syntax_value): Rename from describe_syntax.
20377 Don't insert space at front and \n at the end.
20378 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 20379
048addec
JD
20380 * regex.c (re_wctype): Try to fix some warnings.
20381 (regcomp, regexec): Don't forget the __restrict.
9ba48103 20382
048addec 203832001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 20384
048addec 20385 * textprop.c (Fget_char_property): Doc fix.
9ba48103 20386
048addec 203872001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 20388
048addec 20389 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 20390
048addec 20391 * data.c (Fsetq_default): Ditto.
c22e59e1 20392
048addec 20393 * callint.c (Finteractive): Ditto.
9271ed2c 20394
048addec 203952001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20396
048addec
JD
20397 * macros.c: Don't include keymap.h any more.
20398
203992001-11-01 Richard M. Stallman <rms@gnu.org>
20400
20401 * data.c (Fmake_local_variable): Doc fix.
20402
20403 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
20404 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 20405
048addec 20406 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
20407 bindings along with or instead of the buffer local map.
20408 Make the overriding maps override what they should.
20409
f00691a3 204102001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
20411
20412 * window.c (grow_mini_window): Fix typo in comment.
20413
27188d11
GM
204142001-11-01 Gerd Moellmann <gerd@gnu.org>
20415
7b49b9d2
GM
20416 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
20417 (XTset_vertical_scroll_bar): Likewise.
20418
43f7c3ea
GM
20419 * xfns.c (x_build_heuristic_mask): Use four_corners_best
20420 instead of IMAGE_BACKGROUND.
c22e59e1 20421
b350c2e5
GM
20422 * xfns.c (four_corners_best): Reindent.
20423
c22e59e1 20424 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
20425 Handle :box so that it is possible to specify sexprs.
20426
bf00d461
EZ
204272001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
20428
20429 * s/hpux11.h: New file.
20430
f00691a3 204312001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 20432
2b209b97
PJ
20433 * emacs.c (USAGE1): Show command line option --no-window-system
20434 instead of --no-windows in usage.
20435 (standard_args): Rename --no-windows to --no-window-system.
20436 (bug_reporting_address): Follow Emacs coding conventions.
20437
9dbc9081
PJ
20438 * eval.c (Fcommandp): Doc fix.
20439 Change doc-string comments to `new style' [w/`doc:' keyword].
20440
4e10df59
PJ
20441 * frame.c (Fframe_live_p): Doc fix.
20442
20443 * buffer.c (selective-display-ellipses): Doc fix.
20444
dd387b25
GM
204452001-10-31 Gerd Moellmann <gerd@gnu.org>
20446
fe957e65
GM
20447 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
20448
dd387b25
GM
20449 * xfaces.c (realize_x_face): If C is not a single-byte character,
20450 set the face's colors_copied_bitwise_p instead of the defaulted_p
20451 members which have a different meaning.
20452 (free_face_colors): Do nothing for a face whose colors have been
20453 copied bitwise.
20454
c22e59e1 20455 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 20456
f00691a3 204572001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 20458
687784e8
PJ
20459 * marker.c, mocklisp.c: Change doc-string comments to `new style'
20460 [w/`doc:' keyword].
2e1280f8 20461
b9d9a9b9
GM
204622001-10-31 Gerd Moellmann <gerd@gnu.org>
20463
20464 * fns.c (require_unwind): Return Lisp_Object.
20465
f00691a3 204662001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 20467
fa1361cb
PJ
20468 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
20469 (last-input-char): Revert doc-string to be the same as the
20470 doc-string of `last-input-event'.
20471
6c465a15 20472 * xdisp.c: Fix typos in comments.
48400103 20473
eafa3196
GM
204742001-10-31 Gerd Moellmann <gerd@gnu.org>
20475
20476 * window.c (grow_mini_window): Handle case that the root
20477 window is already smaller than the nominal mininum height.
20478
747d3f2a
SM
204792001-10-30 Stefan Monnier <monnier@cs.yale.edu>
20480
bf9bb76f
SM
20481 * emacs.c (main): Don't call keys_of_macros any more.
20482
20483 * lisp.h (keys_of_macros): Remove.
20484
20485 * macros.c (keys_of_macros): Remove.
20486
747d3f2a
SM
20487 * xfaces.c (Fface_attribute_relative_p): Declare args.
20488
5e905a57
JR
204892001-10-30 Jason Rumney <jasonr@gnu.org>
20490
20491 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
20492 (enum_font_cb2): Ignore fonts with vertical orientation.
20493
3a426197
RS
204942001-10-30 Richard M. Stallman <rms@gnu.org>
20495
20496 * keyboard.c (Finput_pending_p): Doc fix.
20497
a742d646
GM
204982001-10-30 Gerd Moellmann <gerd@gnu.org>
20499
259cf6bc
GM
20500 * xterm.c (x_after_update_window_line): Don't run the code
20501 clearing in borders for rows whose visible height is 0.
20502
3f99f948
GM
20503 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
20504 resized_p flag is set. If not set, use the much less flickering
20505 method previously used.
20506
20507 * dispnew.c (change_frame_size_1): Set frame's resized_p.
20508
20509 * frame.h (struct frame) <resized_p>: New member.
20510
b4a3be43
GM
20511 * lread.c (to_multibyte): Ensure read_buffer is at least twice
20512 as large as the number of bytes to convert.
747d3f2a 20513
a742d646
GM
20514 * lread.c (to_multibyte): New function.
20515 (read1): Use it.
20516
cacbb9e9
EZ
205172001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
20518
20519 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
20520
99cb6b2f
GM
205212001-10-30 Gerd Moellmann <gerd@gnu.org>
20522
327f42ee 20523 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
20524 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
20525 if the row's fill_line_p is set and drawing the last glyph with
20526 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 20527
99cb6b2f
GM
20528 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
20529
8e8223e2
SM
205302001-10-29 Stefan Monnier <monnier@cs.yale.edu>
20531
20532 * xmenu.c: Include coding.h and charset.h.
20533 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
20534 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
20535 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
20536 Explicitly set wv->help. Use `TRUE' rather than `True'.
20537 (menu_help_callback): Use empty_string.
20538
20539 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
20540 (Fx_popup_dialog): Explicitly init f.
20541 (w32_menu_display_help): Use empty_string.
20542
4d083a8f
RS
205432001-10-29 Richard M. Stallman <rms@gnu.org>
20544
b2304472
RS
20545 * fns.c (Frequire): Detect recursive try to require the same
20546 feature 3 or more levels deep, and get error.
20547 (require_unwind): New subroutine.
20548 (require_nesting_list): New variable.
20549 (syms_of_fns): Init and staticpro it.
20550
4d083a8f
RS
20551 * print.c (print_object): Clarify indication of insertion type.
20552
2fe41216
EZ
205532001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
20554
90480000
EZ
20555 * coding.c (syms_of_coding): Document that locale-coding-system is
20556 used for decoding input on X.
20557
2fe41216
EZ
20558 * window.c (Fscroll_left, Fscroll_right): Doc fix.
20559
f00691a3 205602001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
20561
20562 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
20563 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
20564
60ebcfe8
GM
205652001-10-29 Gerd Moellmann <gerd@gnu.org>
20566
9a7bdceb
GM
20567 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
20568 use NO_CURSOR if cursor_in_non_selected_windows is false.
20569
3f08fcd2
GM
20570 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
20571 the slant attribute if FRAME is t.
20572
0ccfdad2
GM
20573 * xfns.c (x_set_internal_border_width): Set frame garbaged
20574 when X window doesn't exist yet.
20575
ef253080
GM
20576 * xterm.c (x_after_update_window_line): Clear internal border
20577 in different circumstances.
b116830b 20578
60ebcfe8
GM
20579 * xterm.c (XTread_socket) <KeyPress>: Don't use
20580 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
20581 <handa@etl.go.jp>.
20582
73d25f9c
EZ
205832001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
20584
20585 * m/ibms390.h: New file. From Adam Thornton
20586 <athornton@sinenomine.net>.
20587
cac1daf0
GM
205882001-10-28 Gerd Moellmann <gerd@gnu.org>
20589
053b3256 20590 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 20591
cac1daf0
GM
20592 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
20593 a loop counter.
20594
f00691a3 205952001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 20596
f9711de4 20597 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 20598
4707d2d0
PJ
20599 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
20600 keyword].
20601 Fix typos in comments.
b116830b 20602
d883731c
PJ
20603 * emacs.c (bug_reporting_address): New function.
20604 Use it when displaying usage message.
20605
04012254
PJ
20606 * minibuf.c (read_minibuf): Remove unused external declaration of
20607 variable `Qread_only'.
20608
13b1a09c
PJ
20609 * keymap.c (access_keymap): Remove unused variable `charset'.
20610
5bbf4378
MB
206112001-10-28 Miles Bader <miles@gnu.org>
20612
20613 * xfaces.c (merge_face_heights): Handle TO being relative as well.
20614 Remove #ifdef'd-out code.
20615 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
20616 (syms_of_xfaces): Initialize them.
20617
1ce1e4ee
JR
206182001-10-27 Jason Rumney <jasonr@gnu.org>
20619
20620 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
20621 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
20622 position using the system caret.
20623
20624 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
20625 (w32_system_caret_height, w32_system_caret_x)
20626 (w32_system_caret_y): New variables for tracking system caret.
20627 (w32_initialize): Initialize them.
c2d53558 20628 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 20629
c2d53558
SM
20630 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
20631 New messages types.
1ce1e4ee
JR
20632
20633 * w32term.c (note_mouse_highlight): Clear old help_echo.
20634
f00691a3 206352001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 20636
bb4600a4
PJ
20637 * xterm.c: Fix typo in a comment.
20638
7db35a48
PJ
20639 * emacs.c: Fix typos in comments.
20640 Remove unnecessary spaces.
20641 Change doc-string comments to `new style' [w/`doc:' keyword].
20642 (USAGE2): Fix typos in usage string.
20643
a7248e4f
PJ
20644 * xterm.c: Fix typo in a comment.
20645
52eb0373 20646 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
20647 emacs.c.
20648
62725a92
GM
206492001-10-27 Gerd Moellmann <gerd@gnu.org>
20650
798dbe1f 20651 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 20652 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
20653 farther backward when target_y was not reached.
20654
62725a92
GM
20655 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
20656 Display errno only if non-zero.
20657 (sound_warning): New function.
20658 (vox_configure): Don't treat failing to set sample rate as error.
20659 (various places): Improve error messages.
20660
d4e34d24
EZ
206612001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
20662
944e6f60
EZ
20663 * fileio.c (Faccess_file): Run the argument filename through
20664 Fexpand_file_name, before using it.
20665
d4e34d24
EZ
20666 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
20667 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
20668
38d2af0c
GM
206692001-10-26 Gerd Moellmann <gerd@gnu.org>
20670
da80a8d5
GM
20671 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
20672
38d2af0c
GM
20673 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20674 Fix clearing in the case of scroll bars on the right.
c2d53558 20675
45de4a6f 206762001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
20677
20678 * w32gui.h (XImage): Add a dummy typedef.
20679
fbd5ceb2
GM
206802001-10-26 Gerd Moellmann <gerd@gnu.org>
20681
c2d53558 20682 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 20683
b23236fb
EZ
206842001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
20685
20686 * frame.c (Fframe_parameter): Fix last change.
20687
5d991fc4
EZ
20688 * fileio.c: Revert last change (which removed old commented-out
20689 version of expand-file-name). Add a comment that explains why
20690 this old version should not be removed.
20691
879eadc3
GM
206922001-10-25 Gerd Moellmann <gerd@gnu.org>
20693
75700ff2
GM
20694 * frame.c (Fframe_parameter): Fix a bug whereby some
20695 ``artificial'' frame parameters, like `minibuffer' were not
20696 obtained by calling Fframe_parameters.
20697
dfe92a6a
GM
20698 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
20699 cursor differently.
20700
879eadc3
GM
20701 * xdisp.c (move_it_vertically_backward): Compute line height
20702 differently. Add heuristic to try to be more compatible to 20.x.
20703
e1010ebe
SM
207042001-10-25 Stefan Monnier <monnier@cs.yale.edu>
20705
d73a471b
SM
20706 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
20707
d6da5a06
GM
20708 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
20709 boolean.
e1010ebe 20710
f66bd220
MB
207112001-10-25 Miles Bader <miles@gnu.org>
20712
20713 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
20714 BG is a pointer to a structure, not a structure.
20715 (gif_format, png_format): Add missing commas.
20716
d436d538
RS
207172001-10-24 Richard M. Stallman <rms@gnu.org>
20718
20719 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 20720 (syms_of_xfaces): Defsubr it.
d436d538 20721
f00691a3 207222001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
20723
20724 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
20725 variable `area'.
20726
f00691a3 207272001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 20728
c2d53558 20729 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 20730
e2a57b34
MB
207312001-10-25 Miles Bader <miles@gnu.org>
20732
20733 * dispextern.h (struct image): Add `background',
20734 `background_valid', and `background_transparent' fields.
20735 (image_background, image_background_transparent): New declarations.
20736 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
20737 * xfns.c (image_background, image_background_transparent)
20738 (four_corners_best): New functions.
c2d53558 20739 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
20740 (gs_format): Add `:background' entry.
20741 (lookup_image): Set IMG's background color if specified.
20742 (pbm_load, xbm_load_image, png_load): Set IMG's background field
20743 when appropriate.
20744 (x_clear_image_1): Reset `background_valid' and
20745 `background_transparent_valid' fields.
20746 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20747 calculating it here. Set IMG's background_transparent field.
20748 (enum xpm_keyword_index): Add XPM_BACKGROUND.
20749 (enum png_keyword_index): Add PNG_BACKGROUND.
20750 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20751 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20752 (enum gif_keyword_index): Add GIF_BACKGROUND.
20753 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 20754 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
20755 Pre-calculate image background color where necessary.
20756 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20757 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20758 color to use for image glyph reliefs.
20759
b547b6e8
GM
207602001-10-24 Gerd Moellmann <gerd@gnu.org>
20761
d9e3b8c6
GM
20762 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
20763 in full-width rows.
c2d53558 20764
b547b6e8
GM
20765 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20766 Fix clearing of area not covered by scroll bar.
20767
f00691a3 207682001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 20769
52eb0373 20770 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 20771 and `real_start'.
c2d53558 20772 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
20773 (glyph_rect): Remove unused variable `area'.
20774
76cb5e06
GM
207752001-10-24 Gerd Moellmann <gerd@gnu.org>
20776
bdbdebff 20777 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
20778
20779 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
20780 (row_containing_pos): Take additional argument DY.
20781 Treat rows ending in middle of char differently.
62e33982
GM
20782 (display_line): Handle tabs on window systems differently.
20783
20784 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
20785 with additional argument.
20786
20787 * dispextern.h (row_containing_pos): Adjust prototype.
20788
76cb5e06
GM
20789 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
20790 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
20791 (try_window_id, try_window_reusing_current_matrix)
20792 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 20793 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 20794
f00691a3 207952001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 20796
c9e60620
PJ
20797 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
20798 gnuemacs).
20799 (HAVE_BOXES): Fix typo in comment.
20800 (push_menu_pane): Fix typo in comment.
20801
52eb0373 20802 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
20803 of `Qwhen'.
20804 (single_display_prop_string_p): Remove unused local declarations
20805 of `Qwhen' and `Qmargin'.
20806 (string_buffer_position): Remove unused variable `around'.
20807 (store_frame_title): Remove unused variable `width'.
20808
15c565ac
PJ
20809 * window.c: Don't define max.
20810 (coordinates_in_window): Remove unused variable `uy'.
20811
a8818eb9
PJ
20812 * widget.c: Don't define max.
20813
996fee11
PJ
20814 * process.c: Don't define max.
20815 (create_process): Remove unused variable `buffer'.
20816
496e1a5b
GM
208172001-10-23 Gerd Moellmann <gerd@gnu.org>
20818
c2d53558 20819 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 20820
5905ae8b
EZ
208212001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
20822
20823 * xfaces.c (Finternal_set_lisp_face_attribute)
20824 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
20825 frame is on a windowed display.
20826
24db49fb
GM
208272001-10-23 Gerd Moellmann <gerd@gnu.org>
20828
c2d53558
SM
20829 * dispnew.c (sync_window_with_frame_matrix_rows):
20830 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
20831 of marginal areas.
20832
c2d53558 20833 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 20834
f0487f05
EZ
208352001-10-23 Andreas Schwab <schwab@suse.de>
20836
20837 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
20838 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
20839
f0a48a01
GM
208402001-10-23 Gerd Moellmann <gerd@gnu.org>
20841
c2d53558 20842 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
20843 REAL_END. Notice if cursor gets overwritten.
20844 (notice_overwritten_cursor): Take X positions as parameters.
20845 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20846 around call to x_draw_glyphs.
20847
f00691a3 208482001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 20849
fc11dff0
PJ
20850 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
20851 instead of C) and usage.
a50a10a0 20852
fc11dff0
PJ
20853 * editfns.c (char-to-string): Fix argument names (use CHAR instead
20854 of C) and usage.
a50a10a0
PJ
20855
20856 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
20857 `left', `max_width' and `max_height'.
20858
8738febd
GM
208592001-10-23 Gerd Moellmann <gerd@gnu.org>
20860
20861 * xdisp.c (display_line): For a tab continued to the next line,
20862 set row's ends_in_middle_of_char_p.
20863
653c329b
GM
208642001-10-22 Gerd Moellmann <gerd@gnu.org>
20865
20866 * xdisp.c (display_line): Fix computation of continuation lines
20867 width for TABs.
20868
f00691a3 208692001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 20870
7ba51063
PJ
20871 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
20872 `Qlaplace'.
20873
f958c5ac
PJ
20874 * fileio.c: Remove unused code.
20875
eb360291
MB
208762001-10-22 Miles Bader <miles@gnu.org>
20877
20878 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
20879 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
20880 Remove `DOC_STRINGS_IN_COMMENTS' cases.
20881
98515cf0
JR
208822001-10-21 Jason Rumney <jasonr@gnu.org>
20883
20884 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
20885
93026d88
EZ
208862001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
20887
20888 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
20889 (Finsert_string): Avoid the multi-line string literals warning.
20890
c9a95b79
MB
208912001-10-22 Miles Bader <miles@gnu.org>
20892
20893 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
20894 (Fdocumentation): Don't use it.
20895 (syms_of_doc): Don't initialize it.
20896
20897 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
20898 * print.c (Fwith_output_to_temp_buffer): Likewise.
20899 * window.c (Fsave_window_excursion): Likewise.
c2d53558 20900 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 20901 (Fsave_restriction): Likewise.
c2d53558
SM
20902 * eval.c (Frun_hooks, Frun_hook_with_args)
20903 (Frun_hook_with_args_until_failure)
20904 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
20905 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
20906 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
20907 (Funwind_protect, Fcondition_case): Likewise.
20908 * coding.c (Ffind_operation_coding_system): Likewise.
20909 * keyboard.c (Ftrack_mouse): Likewise.
20910
a3b10252
MB
209112001-10-21 Miles Bader <miles@gnu.org>
20912
c2d53558 20913 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
20914 (Fmake_hash_table): Add usage: string to doc string.
20915 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 20916 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
20917 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
20918 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
20919 (Fml_prefix_argument_loop): Likewise.
20920
f00691a3 209212001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 20922
c2d53558 20923 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 20924
c6f73eec
PJ
20925 * sysdep.c (init_sys_modes): Change doc-string comments to `new
20926 style' [w/`doc:' keyword].
20927
20928 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
20929 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
20930 comments to `new style' [w/`doc:' keyword].
20931
3cf3436e
JR
209322001-10-21 Jason Rumney <jasonr@gnu.org>
20933
20934 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
20935
c169b8f1
JR
20936 * w32term.c (remember_mouse_glyph): New function.
20937 (w32_mouse_position): Use it.
20938 (note_mouse_movement): If the mouse moved off the glyph, remember
20939 its new position.
c2d53558 20940
4fdd691b
JR
20941 * w32term.h (struct w32_output): Correct spelling of x_compatible.
20942 (w32_display_info): Add mouse_face_overlay.
20943
c169b8f1
JR
20944 * w32term.c (notice_overwritten_cursor): Renamed from
20945 note_overwritten_text_cursor. Rewritten to take glyph widths into
20946 account.
20947 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
20948 (fast_find_string_pos): New function.
20949 (fast_find_position): Return the correct vpos. Add parameter
20950 STOP. In the final row, stop before glyphs having STOP as object.
20951 Don't consider glyphs that are not from a buffer.
20952 (fast_find_position) [0]: Add a presumably more correct version
20953 for after 21.1.
20954 (expose_window_tree, expose_frame): Don't compute intersections here.
20955 (expose_window): Do it here instead.
20956 (expose_window_tree, expose_window, expose_line): Return 1 when
20957 overwriting mouse-face.
20958 (expose_window): If W is the window currently being updated, mark
20959 the frame garbaged.
20960 (expose_frame): If mouse-face was overwritten, redo it.
20961 (x_use_underline_position_properties): New variable.
20962 (syms_of_xterm): DEFVAR_BOOL it.
20963 (x_draw_glyph_string): Add comment to use it in future.
20964 (x_draw_glyph_string): Restore clipping after drawing box.
20965 Fix a computation of the underline position.
20966 (w32_get_glyph_string_clip_rect): Minor cleanup.
20967 (x_fill_stretch_glyph_string): Remove an assertion.
20968 (x_produce_glyphs): Don't convert multibyte characters
20969 to unibyte characters in unibyte buffers.
20970 (cursor_in_mouse_face_p): New function.
20971 (x_draw_stretch_glyph_string): Use it to choose a different GC
20972 when drawing a cursor within highlighted text. Don't draw
20973 background again if it has already been drawn.
20974 (x_draw_glyph_string_box): Don't draw a full-width
20975 box just because the glyph row's full_width_p flag is set.
20976 (x_draw_glyphs): Fix computation of rightmost x for
20977 full-width rows.
20978 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
20979 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 20980 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
20981 (x_update_window_end): Handle overwritten mouse face
20982 also for tool bar windows.
20983 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
20984 DRAW is DRAW_IMAGE_RAISED.
20985 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
20986 actually redrawn. Make the function static.
20987 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
20988 optimize away highlighting if we pass over that same overlay again.
20989 (note_mouse_highlight): Call mouse_face_overlay_overlaps
20990 to detect a case where we have to highlight a different region
20991 despite not having left the currently highlighted region.
20992 Set mouse_face_overlay in the x_display_info. Avoid changing the
20993 mouse pointer shape when show_mouse_face has already done it, or
20994 there is no need. Handle mouse-face and help-echo in strings.
20995 (glyph_rect): New function.
20996 (w32_mouse_position): Use it to raise the threshold for mouse
20997 movement event generation.
20998 (w32_initialize_display_info): Initialize the x_display_info's
20999 mouse_face_overlay.
21000 (w32_set_vertical_scroll_bar): Don't clear a zero height
21001 or width area.
21002 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
21003 a widget to zero height.
21004
3cf3436e 21005 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 21006 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
21007 equivalents in menu_items.
21008 (w32_menu_show): Don't overwrite an item's name with its key
21009 description in case the description is a multibyte string.
21010 (single_submenu): Some cleanup.
21011
21012 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
21013 (postprocess_image): New function.
21014 (lookup_image): Call it for all image types except PostScript.
21015 (x_kill_gs_process): Call postprocess_image.
21016 (tiff_error_handler, tiff_warning_handler): New functions.
21017 (tiff_load): Install them as handlers.
21018 (x_kill_gs_process): Recognize if someone has cleared the image
21019 cache under us.
21020 (valid_image_p): Protect better against invalid image
21021 specifications. Previous code could signal an error.
21022 (Fx_hide_tip, Fshow_tip): Doc fix.
21023 (Fv_max_tooltip_size): New variable.
21024 (syns_of_xfns): DEFVAR_LISP it.
21025 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 21026 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
21027 window_width. Use a maximum tooltip size specified by
21028 Vx_max_tooltip_size, if that has valid contents.
21029 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
21030 Make sure the tooltip is completely visible.
21031 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
21032 (Fx_create_frame): Adjust the frame's height for presence
21033 of the tool bar before calling x_figure_window_size.
21034 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
21035 when the window gets smaller.
21036 (x_set_foreground_color): Set frame's cursor_pixel.
21037 (x_set_foreground_color, x_set_background_color): Cleaned up.
21038 (x_set_font): Handle case of x_new_fontset returning the same name
21039 as before, although there was a change in fontsets.
21040
386ca361
MB
210412001-10-21 Miles Bader <miles@gnu.org>
21042
c2d53558 21043 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
21044 (Flogxor): Add usage: string to doc string.
21045 * charset.c (Fstring): Likewise.
21046 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
21047 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
21048
f00691a3 210492001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 21050
03be2694
PJ
21051 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
21052
21053 * alloc.c: Reindent DEFUNs with doc: keywords.
21054
21055 * abbrev.c (Finsert_abbrev_table_description): Reindent.
21056
14ff1ee0
PJ
21057 * frame.c: Change doc-string comments to `new style' [w/`doc:'
21058 keyword].
21059
2f147815 21060See ChangeLog.9 for earlier changes.
6922b018
KH
21061
21062;; Local Variables:
49b3bd82 21063;; coding: iso-2022-7bit
6922b018 21064;; End:
2a34a036 21065
2f147815 21066 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
21067 Copying and distribution of this file, with or without modification,
21068 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
21069
21070;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4