* mh-customize.el (mh-compose-insertion, mh-x-face-file): Checkdoc
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f351b58b
CY
12005-10-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * fringe.c (update_window_fringes): Handle case where buffer ends
4 with a newline.
5
581e7427
KH
62005-10-27 Kenichi Handa <handa@m17n.org>
7
8 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
9
102005-10-24 Kenichi Handa <handa@m17n.org>
11
12 * charset.h (charset_mule_unicode_0100_24ff)
13 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
14 Extern them.
15
16 * charset.c (charset_mule_unicode_0100_24ff)
17 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
18 New variables.
19 (Fsetup_special_charsets): Initialize them.
20
21 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
22 supported Unicode characters.
23
813fa8a8
JR
242005-10-25 Jason Rumney <jasonr@gnu.org>
25
26 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
27
05f7d868
YM
282005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29
30 * image.c [MAC_OS] (image_load_qt_1): Check image size.
31 Use GraphicsImportGetImageDescription instead of
32 GraphicsImportGetNaturalBounds.
33 [MAC_OSX] (image_load_quartz2d): Check image size.
34 [MAC_OS] (xpm_load_image): Likewise.
35
36 * macterm.c (last_mouse_glyph_frame): New var.
37 (note_mouse_movement): Say mouse moved if current frame differs
38 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
39 (XTmouse_position): Set last_mouse_glyph_frame.
40 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
41 (mac_draw_string_common) [MAC_OSX && WORDS_BIG_ENDIAN]: Fix typo.
42 Use EndianU16_BtoN.
43 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
44 (x_per_char_metric, XLoadQueryFont)
45 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
46 glyph bounds.
47 (mac_to_x_fontname, mac_do_list_fonts)
48 (mac_initialize_display_info): Change screen resolutions to 72dpi.
49
128e729d
MY
502005-10-25 Masatake YAMATO <jet@gyve.org>
51
52 * minibuf.c (Fdisplay_completion_list): Small doc fix.
53
59017afb
KS
542005-10-24 Kim F. Storm <storm@cua.dk>
55
94717db1
KS
56 * xterm.c: Undo 2005-10-23 change.
57 (last_mouse_glyph_frame): New var.
58 (note_mouse_movement): Say mouse moved if current frame differs
59 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
60 (XTmouse_position): Set last_mouse_glyph_frame.
61 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
62 last_mouse_glyph] on mouse up/down event.
63
59017afb
KS
64 * editfns.c (Fcompare_buffer_substrings): Fix last change.
65
7c5ba0d2
SM
662005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
67
68 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
69
a4b0e228
JD
702005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
71
72 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
73 so tool tips don't interfere with press on tool bar button.
74
f6a18aa2
RS
752005-10-23 Richard M. Stallman <rms@gnu.org>
76
77 * casetab.c (Fset_case_table): Doc fix.
78
79 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
80 (readevalloop): Compute ENTIRE properly.
81 (syms_of_lread) <load-history>: Doc fix.
82
45158e77
RS
832005-10-21 Richard M. Stallman <rms@gnu.org>
84
85 * lread.c (Fload): Simplify gcpro structure.
86 Gcpro FOUND as well as FILE, but not EFOUND.
87 Unless preloading, record FOUND instead of FILE in Vload_history.
88 Rename repeat local FILE to MSG_FILE.
89 (syms_of_lread) <load-history>: Doc fix.
90
dfa1cd4d
KH
912005-10-21 Kenichi Handa <handa@m17n.org>
92
96664fc0 93 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 94
1064a9ea
KS
952005-10-20 Kim F. Storm <storm@cua.dk>
96
97 * buffer.c (clone_per_buffer_values): Remove unused var tem.
98 (init_buffer): Remove unused vars dotstat, pwdstat.
99
100 * ccl.c (check_ccl_update): Remove unused var vp.
101
102 * fileio.c (auto_save_error): Call SAFE_FREE.
103
104 * fns.c (Fchar_table_range): Remove unused var i.
105
106 * minibuf.c (display_completion_list_1): New wrapper function
107 for Fdisplay_completion_list.
108 (Fminibuffer_completion_help): Use it.
109
110 * term.c (encode_terminal_code): Remove unused var src_start.
111
112 * window.c (Fwindow_tree): Remove unused var alist.
113
114 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
115
ce13796f
EZ
1162005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
117
118 * unexelf.c (unexec): Fix calls to `fatal' with less than 3
119 arguments.
120
ad9c16d3
EZ
1212005-10-20 Olli Savia <ops@iki.fi> (tiny change)
122
123 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
124
26e9d2cf
AS
1252005-10-20 Andreas Schwab <schwab@suse.de>
126
127 * minibuf.c (Fdisplay_completion_list): Doc fix.
128
e50165ec
KS
1292005-10-19 Kim F. Storm <storm@cua.dk>
130
131 * image.c (check_image_size): Handle integer Vmax_image_size value
132 directly as max pixel value. Use default frame size for null frame.
133 (syms_of_image) <max-image-size>: Describe integer value.
134
d7b94c98
RF
1352005-10-19 Romain Francoise <romain@orebokech.com>
136
137 * emacs.c (main): Update copyright year.
138
f1f25b99
CY
1392005-10-18 Chong Yidong <cyd@stupidchicken.com>
140
141 * image.c (Vmax_image_size): New variable.
142 (check_image_size): New function.
143 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
144 (gif_load, gs_load): Use it.
145 (lookup_image): Try loading again if previous load failed.
146 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
147 to display in, NULL if none.
148 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
149 argument.
150
f42d19a2
RS
1512005-10-18 Richard M. Stallman <rms@gnu.org>
152
153 * search.c (Fstring_match): Doc fix.
154
bcbdafce
YM
1552005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
156
157 * macterm.c (note_mouse_movement): Use PtInRect.
158 (XTread_socket): Also ignore mouse motion just before a button
159 release event. Don't process button release event when mouse is
160 not grabbed.
161
f5fab556
MY
1622005-10-16 Masatake YAMATO <jet@gyve.org>
163
164 * minibuf.c (Fdisplay_completion_list): Add new optional
e50165ec 165 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
166 to the optional argument during running `completion-setup-hook'.
167
2ef1363e
YM
1682005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
169
170 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
171 Allow nil as argument.
172 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
173 for encoding arguments as UTF-16 in native byte order, no BOM.
174
175 * macfns.c (Fx_create_frame): Add debugging code.
176 (Fx_show_tip): Set frame pixel width and height.
177
178 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
179 (FRAME_NORMAL_GC): New macro.
180 (mac_draw_line, mac_clear_area, mac_clear_window)
181 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
182 (mac_draw_image_string, mac_draw_image_string_16): Rename from
183 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
184 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
185 All uses changed.
186 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
187 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
188 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
189 (mac_draw_string_16, mac_draw_image_string)
190 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
191 (mac_scroll_area): Drawing functions now take frame as destination.
192 All uses changed.
193 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
194 (x_draw_fringe_bitmap): Set clipping area in face->gc.
195
196 * macterm.h (mac_clear_area): Add extern.
197
fc5c7550
YM
1982005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
199
200 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
201 changes for xterm.c.
202
203 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
204
fed91c38
KH
2052005-10-14 Kenichi Handa <handa@m17n.org>
206
207 * search.c (search_buffer): Give up BM search on case-fold-search
208 if one of a target character has a case-equivalence of different
209 charset even if that target charcter is an ASCII.
210
211 * casefiddle.c (casify_object): Fix for the case that case
212 conversion change the byte length.
213
0ea1a8af
KS
2142005-10-14 Kim F. Storm <storm@cua.dk>
215
216 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
217 (handle_one_xevent): Only clear help_echo_string; restore it if
218 note_mouse_movement didn't record any mouse movement.
219
220 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
221 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
222
223 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
224 (Fposn_at_x_y): Fix calculation of x coordinate.
225 (Fposn_at_point): Return nil if point is hscrolled out of view.
226
6e5b2385
AS
2272005-10-13 Andreas Schwab <schwab@suse.de>
228
229 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
230 non-interactive mode.
231
6de0e1a2
YM
2322005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
233
234 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
235
78f3b91f
KS
2362005-10-12 Kim F. Storm <storm@cua.dk>
237
238 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
239
b639c9be
RF
2402005-10-12 Romain Francoise <romain@orebokech.com>
241
242 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
243
76d8f04c
YM
2442005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
245
246 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
247 get end of text rows. Obtain header-line/mode-line rows directly.
248
621036f9
YM
249 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Restore
250 help_echo_string if mouse is moved inside last_mouse_glyph.
251
d76432f5
KS
2522005-10-12 Kim F. Storm <storm@cua.dk>
253
7a127784
KS
254 * xdisp.c (remember_mouse_glyph): New generic version based on
255 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
256 properly handle all different window areas.
257
258 * dispextern.h (remember_mouse_glyph): Add prototype.
259
260 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
261 (note_mouse_movement, XTmouse_position): Use generic
262 remember_mouse_glyph, add last_mouse_glyph arg.
263
264 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
265 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
266 (note_mouse_movement, w32_mouse_position): Use generic
267 remember_mouse_glyph, add last_mouse_glyph arg.
268
269 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
270 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
271 (XTmouse_position): Adapt to use generic remember_mouse_glyph
272 instead of pixel_to_glyph_coords.
273
d76432f5
KS
274 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
275 Fix x position for ON_TEXT when left margin width > 0.
276
55a4ac3e
KS
2772005-10-11 Kim F. Storm <storm@cua.dk>
278
d76432f5 279 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
280
281 * keyboard.c (make_lispy_position): Fix buffer calculations for
282 mouse click or movement in right fringe and the margins.
283
2d4713aa
JB
2842005-10-11 Juanma Barranquero <lekktu@gmail.com>
285
286 * image.c (fn_jpeg_stdio_src): Don't define it.
287 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
288 (our_common_init_source): Rename from `our_init_source'.
289 (our_common_term_source): Rename from `our_term_source'.
290 (our_memory_fill_input_buffer): Rename from
291 `our_fill_input_buffer'.
292 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
293 (jpeg_memory_src): Use the new names.
294 (struct jpeg_stdio_mgr): New struct.
295 (JPEG_STDIO_BUFFER_SIZE): New constant.
296 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
297 (jpeg_file_src): New functions.
298 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
299
71b7a47f
YM
3002005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
301
302 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
303 (fm_font_family_alist): New variable.
304 (syms_of_macterm): Initialize and staticpro it.
305 (decode_mac_font_name): Replace '-' in family name with '_' if it
306 occurs just once. Lower family name.
307 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
308 All uses changed. Remove argument MF and code conversion for it.
309 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
310 to CHARSET. Parse font size. Lower family name. Return integer
311 value for status of parsing.
312 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
313 Don't use Fdowncase because family name is already lowered by
314 decode_mac_font_name.
315 (init_font_name_table): Always call decode_mac_font_name. Add
316 pair of family name and its reference to fm_font_family_alist.
317 (mac_clear_font_name_table): Clear fm_font_family_alist.
318 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
319 Lookup fm_font_family_alist to get font family reference.
320 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
321 name is already lowered by parse_x_font_name.
322
74051a92
KS
3232005-10-11 Kim F. Storm <storm@cua.dk>
324
31ab1f05
KS
325 * xterm.c (glyph_rect): Return 0 if position is outside text area.
326
74051a92
KS
327 * keyboard.c (make_lispy_position): Fix buffer position calculation for
328 mouse click or movement in fringe.
329
9b909870
JR
3302005-10-10 Jason Rumney <jasonr@gnu.org>
331
332 * xterm.c (remember_mouse_glyph): New function.
58af5591 333 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 334 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 335 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 336
f9e36a6d
JD
3372005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
338
58af5591 339 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 340
04bc7945
JB
3412005-10-10 Juanma Barranquero <lekktu@gmail.com>
342
343 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
344 (next_frame, prev_frame, set_term_frame_name): Make static.
345
346 * window.c (Fwindow_tree): Fix spelling.
347
41791a20
RF
3482005-10-09 Romain Francoise <romain@orebokech.com>
349
350 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
351
e313fc07
JD
3522005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
353
58af5591
KS
354 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
355 Add options -nb, --no-bitmap-icon.
e313fc07
JD
356
357 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
358
61e62f5f
YM
3592005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
360
361 * macgui.h (MAX_CLIP_RECTS): New define.
362 (struct _XGC): New member clip_region.
363 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
364 clip_rects.
365
366 * macterm.c (GC_CLIP_REGION): New macro.
367 (saved_port_clip_region): New variable.
368 (mac_begin_clip, mac_end_clip): New functions.
369 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
370 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
371 (mac_copy_area_with_mask, mac_scroll_area): Use them.
372 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
373 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
374 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
375 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
376 rectangles stored in gc.
71b7a47f 377 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
378 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
379 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
380 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
381 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
382 (x_draw_bar_cursor): Use them.
383 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
384 get multiple clipping rectangles.
385
386 * macterm.h (mac_term_init): Add types to extern.
387 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 388 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
389 scroll_bar_background_pixel in #if 0.
390 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
391
392 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 393 Add debugging code.
61e62f5f 394
ef1b4c9e
KS
3952005-10-08 Kim F. Storm <storm@cua.dk>
396
397 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
398
f1010549
KS
3992005-10-07 Kim F. Storm <storm@cua.dk>
400
401 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
402 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
403 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
404
c2ded1b7
YM
4052005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
406
407 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
408 to for_overlaps. Now occupy 3 bits.
409 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
410 (OVERLAPS_ERASED_CURSOR): New defines.
411 (struct redisplay_interface): Add new OVERLAPS arg to member
412 fix_overlapping_area.
413 (x_fix_overlapping_area): Add new OVERLAPS arg.
414 (get_glyph_string_clip_rects): Add extern.
415
416 * dispnew.c (redraw_overlapping_rows): Call
417 rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
418
419 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
420 for_overlaps.
421 (get_glyph_string_clip_rects): New function created from
f1010549
KS
422 get_glyph_string_clip_rect. Set clipping rectangles according to the
423 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
424 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
425 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
426 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 427 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 428 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
429 calculating clipping rectangles later. Call x_fix_overlapping_area
430 with new OVERLAPS arg to draw only erased cursor area.
f7270128 431 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 432 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
433
434 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
435 struct glyph_string to for_overlaps.
436
a19a0003
RS
4372005-10-04 Richard M. Stallman <rms@gnu.org>
438
439 * alloc.c (refill_memory_reserve): Conditionalize the body,
440 not the function's existence.
441
abc8ce50
KS
4422005-10-04 Kim F. Storm <storm@cua.dk>
443
444 * window.c (window_split_tree): New function.
445 (Fwindow_split_tree): New defun.
446 (syms_of_window): Defsubr it.
447
66533b25
YM
4482005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
449
450 * macterm.c (mac_invert_rectangle): New function.
451 (XTflash): Use it.
452
4156359e
SM
4532005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
454
4e2f601f
SM
455 * regex.h (re_char): Don't expose it in the interface.
456 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
457
458 * regex.c (re_char): Move it back here.
459 (re_set_whitespace_regexp): Change the arg's type to not use it.
460
4156359e
SM
461 * keyboard.c (make_lispy_event): If point has moved between down and up
462 event, make it a drag, not a click, to mirror what
463 mouse-drag-region expects.
464
eb27c2ca
DN
4652005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
466
467 * lisp.h (fatal): Undo previous change.
468 * term.c (fatal): Undo previous change.
469
b059f7d0
RS
4702005-10-01 Richard M. Stallman <rms@gnu.org>
471
472 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
473
21a9a7be
KS
4742005-10-01 Kim F. Storm <storm@cua.dk>
475
476 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
477
ddcb7665
YM
4782005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
479
480 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
481
482 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 483 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
484 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
485 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
486
487 * macgui.h (struct _XCharStruct): New member valid_p.
488 (STORE_XCHARSTRUCT): Set valid_p.
489 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
490
491 * macterm.c (mac_draw_string_common, x_per_char_metric)
492 (mac_compute_glyph_string_overhangs, init_font_name_table)
493 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
494 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
495 (x_draw_glyph_string_background)
496 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
497 XDrawImageString. Always draw background and foreground separately.
498 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
499 functions for one-byte chars when using ATSUI-compatible fonts.
500 (atsu_font_id_hash) [USE_ATSUI]: New variable.
501 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
502 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
503 max_char_or_byte2 more in detail.
504 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
505
fa8459a3
DN
5062005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
507
4156359e 508 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
509 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
510
511 * unexelf.c (fatal): Fix prototype.
512
513 * term.c (fatal): Implement using varargs.
514
21a9a7be 515 * regex.c (re_char): Move typedef ...
fa8459a3 516 * regex.h (re_char): ... here.
4156359e 517 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
518
519 * emacs.c (malloc_set_state): Fix return type.
520 (endif): Fix type.
521
522 * lisp.h (fatal): Add argument types.
523
524 * dispextern.h (fatal): Delete prototype.
525
526 * systime.h: (make_time): Prototype moved from ...
527 * editfns.c (make_time): ... here.
528
529 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
530 * dired.c:
531 * xsmfns.c:
fa8459a3 532 * process.c: Likewise.
21a9a7be 533
fa8459a3
DN
534 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
535 Add parameter types.
536 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
537 (emacs_blocked_free): Change definition to match __free_hook.
538 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 539 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 540
97c3e4cc
RF
5412005-09-30 Romain Francoise <romain@orebokech.com>
542
543 * minibuf.c (Fread_buffer): Follow convention for reading from the
544 minibuffer with a default value. Doc fix.
545
8ad8c5ce
JL
5462005-09-29 Juri Linkov <juri@jurta.org>
547
548 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
549 Rename argument name `string' to `format-string'.
550 (Fformat): Doc fix.
551
64da5759
KS
5522005-09-28 Kim F. Storm <storm@cua.dk>
553
554 * image.c (gif_load): Fix size of allocated image buffer
555 for images where a sub-image may be larger than the image's
556 total height/width specifications.
557
eaf92438
YM
5582005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
559
560 * macgui.h (struct _XCharStruct): Each member now takes short value.
561
43f15d4a
DN
5622005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
563
564 * xfaces.c (lookup_derived_face): Add parameter type.
565
566 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
567
568 * marker.c (verify_bytepos): Add parameter type.
569
570 * process.c (get_operating_system_release): Move prototype ...
571
572 * systime.h (get_operating_system_release): ... here.
573
04bc7945
JB
574 * xterm.c (handle_one_xevent): Refer to union field to match the
575 type required by the function definition.
576 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
577
578 * xterm.h: ... here.
579
580 * fns.c (internal_equal, seed_random): Fix prototypes.
581 (internal_equal): Add missing parameter.
582
c769dcac
RS
5832005-09-25 Richard M. Stallman <rms@gnu.org>
584
585 * keyboard.c (update_menu_bindings): Variable deleted.
586 (syms_of_keyboard): Don't defvar it.
587 (parse_menu_item): Don't test it.
588
8dbf19c7
RS
5892005-09-23 Richard M. Stallman <rms@gnu.org>
590
591 * editfns.c (Fformat): Explicitly test for end of format string
592 and don't use `index'.
593
3480d92b
DN
5942005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
595
4156359e
SM
596 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
597 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
598
599 * sysdep.c (get_current_dir_name): Also define if
64da5759 600 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
601
602 * m/ibmrs6000.h: Test for USG5, not USG5_4.
603
5db60f31
KS
6042005-09-22 Kim F. Storm <storm@cua.dk>
605
606 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
607 (message2): Fix commentary. Ok to use alloca'ed memory.
608 Still not ok to use Lisp string data (because of GC).
609 (set_message): Add comment why GC cannot happen.
610
7c3d233d
YM
6112005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
612
613 * macterm.c (xlfdpat_block_match_1): Fix assertion.
614 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
615 variants for a scalable font multiple times.
616
acde1152
YM
6172005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
618
619 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
620 Setup slave tty options before forking.
621
52d166e0
JD
6222005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
623
624 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
625 positions have been set for the frame (as is done for frames in
626 special-display-buffer-names).
627
12d10bc7
KS
6282005-09-19 Kim F. Storm <storm@cua.dk>
629
630 * editfns.c (Fformat): Don't scan past end of format string that
631 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
632
9f1cf0e3
AS
6332005-09-18 Andreas Schwab <schwab@suse.de>
634
635 * window.h (struct window): Remove height_fixed_p, no longer set.
636
637 * window.c (make_window): Don't initialize height_fixed_p.
638 (window_fixed_size_p): Don't use it.
639
8a658a52
JPW
6402005-09-18 John Paul Wallington <jpw@pobox.com>
641
642 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
643
be9bb408
YM
6442005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
645
646 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
647
648 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
649 New variables.
650 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
651 file selection.
652
653 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
654
cbf223e1
EZ
6552005-09-17 Eli Zaretskii <eliz@gnu.org>
656
657 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
658 (obj): Use XMENU_OBJ, not a literal xmenu.o.
659
e3f509dd
RF
6602005-09-16 Romain Francoise <romain@orebokech.com>
661
8ccd3630 662 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 663
5c4757d3
RS
6642005-09-15 Richard M. Stallman <rms@gnu.org>
665
666 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
667 (display_mode_element): Instead of `lisp_string' and `this',
668 record `offset' and increment that.
669 `last_offset' replaces `last'.
670
671 * Makefile.in (XMENU_OBJ): Variable deleted.
672 (obj): Use xmenu.o unconditionally.
673 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
674
675 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
676
01978521
KS
6772005-09-15 Kim F. Storm <storm@cua.dk>
678
679 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
680 (reseat_at_next_visible_line_start): Likewise (in xassert).
681
ccf61795
RF
6822005-09-14 Romain Francoise <romain@orebokech.com>
683
684 * fileio.c (write_region_inhibit_fsync): New variable.
685 (Fwrite_region): Use it to skip call to fsync.
686 (syms_of_fileio): Initialize it.
687
2b046a72
KH
6882005-09-14 Kenichi Handa <handa@m17n.org>
689
24a2b282
KH
690 * coding.c (code_convert_region_unwind): Argument format changed.
691 (run_pre_post_conversion_on_str): If pre-write-conversion function
692 changed the current buffer, delete the new buffer.
693 (run_pre_write_conversin_on_c_str): Likewise.
694
2b046a72
KH
695 * fileio.c (Fexpand_file_name): Check multibyteness of
696 default_directory.
697
d008f7b7
KH
6982005-09-13 Kenichi Handa <handa@m17n.org>
699
700 * composite.c (compose_chars_in_text): Delete it.
701
702 * composite.h (compose_chars_in_text): Delete extern.
703
2ada8ac5
KS
7042005-09-13 Kim F. Storm <storm@cua.dk>
705
706 * print.c (print_error_message): Fix last change.
707
48c60938
KS
7082005-09-12 Kim F. Storm <storm@cua.dk>
709
0fdbe302
KS
710 * composite.c (compose_chars_in_text): Fix setup of `pend'.
711 Unconditionally reload `ptr' and `pend' after eval.
712
48c60938
KS
713 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
714
715 * print.c (print_error_message): Pass copy of caller name to
716 message_dolog.
717
718 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
719
5add1986
KH
7202005-09-12 Kenichi Handa <handa@m17n.org>
721
722 * xdisp.c (display_mode_element): Be sure to make variables THIS
723 and LISP_STRING point into a string data of ELT.
724
18bb66c7
KS
7252005-09-12 Kim F. Storm <storm@cua.dk>
726
727 * editfns.c (Ftranslate_region_internal): Reload `tt' after
728 signal_after_change that may have GC'ed.
729 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
730
731 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
732 after insert while runs signal_after_change.
733
734 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
735 declaration to where it is used.
736
737 * w32.c (check_windows_init_file): Fix allocation of error buffer.
738
739 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
740 (x_set_name_internal): Call x_encode_text with new FREEP arg to
741 know if xfree is needed instead of guessing.
742
743 * xterm.h (x_encode_text): Remove prototype.
744
945a75f8
JR
7452005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
746
747 * w32term.c (x_bitmap_icon): Load small icons too.
748
156bdb41
RF
7492005-09-10 Romain Francoise <romain@orebokech.com>
750
751 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 752 and terminal zero. Fix typos.
156bdb41 753
67b8391b
EZ
7542005-09-10 Eli Zaretskii <eliz@gnu.org>
755
a17b5ed1
EZ
756 * buffer.c (init_buffer): Fix error message for failed call to
757 get_current_dir_name.
758 (get_current_dir_name): Remove prototype.
759
760 * xsmfns.c: (get_current_dir_name): Remove prototype.
761
762 * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add
763 prototype.
764
ed326e35 765 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 766 Don't #undef NULL after including blockinput.h.
ed326e35 767
67b8391b
EZ
768 * config.in: Regenerated.
769
c187839d
EZ
7702005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
771
772 Remove the MAXPATHLEN limitations:
773
1486d036
EZ
774 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
775 New function.
c187839d
EZ
776
777 * buffer.c (init_buffer): Use it.
778
779 * xsmfns.c (smc_save_yourself_CB): Ditto.
780
ae8a5689
KS
7812005-09-09 Kim F. Storm <storm@cua.dk>
782
39cac6b3
KS
783 * doc.c (Fsubstitute_command_keys): Lookup key binding for
784 commands that are remapped from some other command.
785
aeb55c44
KS
786 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
787 flag in disabled rows below the window.
788
ae8a5689
KS
789 * frame.h (struct frame): New member updated_p.
790
791 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
792 member. Remove local `updated' array and associated variables.
793
821f6dae
KS
7942005-09-07 Kim F. Storm <storm@cua.dk>
795
6e5395f2
KS
796 * xdisp.c (handle_display_prop): Respect overlay window property.
797
821f6dae
KS
798 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
799 Fixes crash reported by YAMAMOTO Mitsuharu.
800
9655b404
YM
8012005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
802
803 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
804 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
805 (xlfdpat_block_match_1, xlfdpat_match): New functions.
806 (xlfdpat_block_match): New macro.
807 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
808 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
809 (add_font_name_table_entry): Increase font_name_table_size more
810 rapidly.
811 (mac_c_string_match): Remove function.
812 (mac_do_list_fonts): Use XLFD pattern match instead of regular
813 expression match.
814
815 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
816
d7ea8b71
RS
8172005-09-03 Richard M. Stallman <rms@gnu.org>
818
819 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
820 (move_it_in_display_line_to): Stop after last char on line even
821 on a windowing terminal, if that's the specified stop position.
822
823 * fns.c (Fsort): Doc fix.
824
825 * editfns.c (Fpropertize): Don't insist that properties be symbols.
826
1550ae60
SM
8272005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
828
829 * dired.c (directory_files_internal_unwind, directory_files_internal)
830 (file_name_completion): Use a Save_Value object rather than a cons of
831 two 16bit ints to store the DIR*.
832 (directory_files_internal, file_name_completion): Handle both EINTR and
833 EAGAIN consistently after `readdir'.
834
bdb4d6d8
SM
8352005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
836
1550ae60
SM
837 * intervals.c (update_interval): Add position info in error.
838
bdb4d6d8
SM
839 * dispnew.c (window_to_frame_hpos, update_window):
840 Avoid gcc warning about unused variable `f'.
841
6bcc3ca4
JR
8422005-08-31 Jason Rumney <jasonr@gnu.org>
843
844 * w32menu.c (add_menu_item): If unicode_append_menu returns an
845 error, revert to using AppendMenu.
846
07c5948c
YM
8472005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
848
bdb4d6d8
SM
849 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
850 All uses changed.
07c5948c
YM
851 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
852 cases.
853 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
854 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
855 Use posix_pathname_to_fsspec.
07c5948c
YM
856 [MAC_OS] (xpm_load_image): Fill in background_transparent field
857 while we have mask.
858
859 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
860
861 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
862
5a774522
SM
8632005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
864
865 * syntax.c (update_syntax_table): Properly reproduce the special +1
866 setting of e_property at the end of the buffer when bumping into the
867 INTERVALS_AT_ONCE limit.
868
0fb57cc0
EZ
8692005-08-27 Eli Zaretskii <eliz@gnu.org>
870
871 * emacs.c (USAGE1): Fix the description of the -Q option.
872
5a774522
SM
8732005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
874
875 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
876
4e6b8c5a
KS
8772005-08-26 Kim F. Storm <storm@cua.dk>
878
879 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
880 Don't move PT to new window start.
881
1f98fbb4
YM
8822005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
883
884 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
885 ICONIFY/DEICONIFY_EVENT.
886
5a774522
SM
887 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
888 Restore background color.
1f98fbb4
YM
889 (mac_handle_visibility_change): New function.
890 (x_make_frame_invisible, x_iconify_frame)
891 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
892 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 893 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
894 (x_make_frame_visible): Don't reposition window if it is iconified
895 or asked for visible before. Select and uncollapse window when it
896 is made visible.
897 (x_make_frame_invisible): Don't reset x_highlight_frame.
898 (x_iconify_frame): Likewise. Make invisible frame visible before
899 it is iconified.
900 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
901 (do_window_update): Don't change visibility of invisible frame.
902
16691d29
JL
9032005-08-22 Juri Linkov <juri@jurta.org>
904
905 * term.c (turn_on_face): Check for TS_set_foreground and
906 TS_set_background depending on standout_mode. Simplify.
907
7c3f805b
KS
9082005-08-21 Kim F. Storm <storm@cua.dk>
909
0f467468
KS
910 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
911 bitmaps on fully visible rows.
912
7c3f805b
KS
913 * fringe.c (update_window_fringes): Replace FORCE_P arg with
914 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
915 and return 0.
916
917 * xdisp.c (redisplay_window): Call update_window_fringes with
918 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
919
40b388f9
RS
9202005-08-20 Richard M. Stallman <rms@gnu.org>
921
922 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
923 (resize_mini_window): Set w->start, and PT, so as to display the tail
924 end of the buffer, if it doesn't all fit.
925
581360f0
KS
9262005-08-18 Kim F. Storm <storm@cua.dk>
927
928 * xdisp.c (calc_pixel_width_or_height): Use actual display
929 resolution when available instead of Vdisplay_pixels_per_inch.
930
0eefa6fb
KS
9312005-08-17 Kim F. Storm <storm@cua.dk>
932
933 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
934
935 * dispnew.c (buffer_posn_from_coords): Check that target row is
936 within matrix.
937
ada192ba
JD
9382005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
939
940 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
941 xg_set_frame_icon and call it.
942
943 * gtkutil.c (xg_set_frame_icon): New function.
944
0eefa6fb 945 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 946
ab89a403
KS
9472005-08-16 Kim F. Storm <storm@cua.dk>
948
949 * dispnew.c (increment_row_positions): Skip non-enabled rows.
950
951 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
952 (Fcurrent_window_configuration): Use VECSIZE macro instead.
953
8d34b5e1
RS
9542005-08-15 Richard M. Stallman <rms@gnu.org>
955
956 * xdisp.c (message3_nolog): Clear echo_message_buffer.
957
71e37f3c
KS
9582005-08-15 Kim F. Storm <storm@cua.dk>
959
0781c303
KS
960 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
961
71e37f3c
KS
962 * process.c (deactivate_process, status_notify, read_process_output)
963 (update_status, status_convert, decode_status, allocate_pty)
964 (make_process, remove_process, list_processes_1)
965 (create_process_1, unwind_request_sigio, read_process_output)
966 (send_process, keyboard_bit_set): Declare static.
967 (Fdelete_process): Simplify. Pass process to status_notify, so we
968 don't try to read output from it.
969 (status_notify): New arg deleting_process--don't try to read
970 output from that process.
971
972 * lisp.h (deactivate_process, status_notify, read_process_output):
973 Remove prototypes.
974
0bf14bfd
RS
9752005-08-14 Richard M. Stallman <rms@gnu.org>
976
bdb4d6d8
SM
977 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
978 define_image_type.
0bf14bfd 979
6c7eb721
JD
9802005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
981
982 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
983 (xg_get_image_for_pixmap): Move some code to
984 xg_get_pixbuf_from_pix_and_mask, and call it.
985
986 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
987
988 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
989 to get an GTK icon and set it with GTK functions to avoid having GTK
990 override an icon set with just X functions.
991
6e2d14c8
RS
9922005-08-11 Richard M. Stallman <rms@gnu.org>
993
bdb4d6d8
SM
994 * image.c (syms_of_image): Init image_types here, and call
995 define_image_type.
6e2d14c8
RS
996 (init_image): Not here.
997
61298e17
RS
9982005-08-09 Richard M. Stallman <rms@gnu.org>
999
1000 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
1001
1002 * lisp.h (QUIT): Throw t to Vthrow_on_input.
1003
5a9807a8
TTN
10042005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
1005
1006 * floatfns.c (Fexpt): Use floats for negative exponent.
1007
93469010
JD
10082005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1009
1010 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
1011 should not be there, causing menu display errors with GTK 2.6.9.
1012
44edd521
RS
10132005-08-07 Richard M. Stallman <rms@gnu.org>
1014
8b6a9551
RS
1015 * floatfns.c (Fexpt): Undo previous change.
1016
44edd521
RS
1017 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
1018 so it can be used with various state vectors.
1019
1020 * emacs.c (endif): Convert -script into -scriptload.
1021 (standard_args): Add -scriptload. Allow -basic-display with one dash.
1022
1023 * fns.c (syms_of_fns): Add `emacs' to features.
1024
1025 * term.c (set_terminal_modes): If no TS_termcap_modes string,
1026 output newlines to scroll the old screen contents off the screen.
1027
cac87e30
TTN
10282005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
1029
2a205424
TTN
1030 * floatfns.c (Fexpt): Use floats for negative exponent.
1031 Reported by D Goel.
cac87e30 1032
31b7cc74
JB
10332005-08-02 Richard M. Stallman <rms@gnu.org>
1034
1035 * frame.c (Fframe_char_width): Doc fix.
1036
e2b64074
JB
10372005-07-30 Juanma Barranquero <lekktu@gmail.com>
1038
1039 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
1040 Defvar it.
1041
0962822d
JB
10422005-07-28 Juanma Barranquero <lekktu@gmail.com>
1043
1044 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
1045 (my_create_window, my_create_tip_window): Make static.
1046
1047 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
1048 (my_set_foreground_window, my_destroy_window): Make static.
1049
9eff9fe3
PE
10502005-07-26 Paul Eggert <eggert@cs.ucla.edu>
1051
1052 Merge gnulib getopt implementation into Emacs.
1053
1054 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
1055 now part of lib-src.
1056
1c9916a1
SM
10572005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
1058
1059 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
1060
94c7f257
JR
10612005-07-25 Jason Rumney <jasonr@gnu.org>
1062
1063 * w32menu.c (w32_menu_display_help): Suppress tooltip when
1064 navigating menus with the keyboard.
1065
bf0bf758
RS
10662005-07-23 Richard M. Stallman <rms@gnu.org>
1067
1068 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
1069
1070 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
1071 gc_relative_threshold, one by one.
1072
1073 * keyboard.c (read_char): Test gc_cons_threshold.
1074 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
1075
1076 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
1077 gc_relative_threshold, one by one.
1078
1079 * alloc.c (gc_cons_threshold): Not static.
1080 (gc_cons_combined_threshold): Var deleted.
1081 (gc_relative_threshold): New variable.
1082 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
1083 instead of gc_cons_combined_threshold.
1084
1c9916a1 1085 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
1086 (gc_cons_combined_threshold): Declaration deleted.
1087
99f963e4
YM
10882005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1089
1090 * mac.c: Don't include stdlib.h or string.h.
1091 (Fdo_applescript, Fmac_file_name_to_posix)
1092 (Fmac_file_name_to_posix): Doc fixes.
1093 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
1094 (Fmac_code_convert_string): Likewise.
1095 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
1096 if the executable is not contained in a bundle.
1097
1098 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
1099 (gray_width, gray_height): Remove defines.
1100 (gray_bits, gray_bitmap_width, gray_bitmap_height)
1101 (gray_bitmap_bits): Remove variables.
1102 (lispy_function_keys): Remove extern.
1103 (free_frame_menubar): Add extern.
1104 (x_window_to_frame): Remove function.
1105 (unwind_create_tip_frame): Add declaration.
1106 (x_set_name_internal): New function.
1107 (x_set_name, x_set_title): Use it.
1108 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
1109 (Fx_display_pixel_height, Fx_display_planes)
1110 (Fx_display_color_cells, Fx_server_max_request_size)
1111 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1112 (Fx_display_mm_height, Fx_display_mm_width)
1113 (Fx_display_backing_store, Fx_display_visual_class)
1114 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
1115
1116 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
1117
bdb4d6d8 1118 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
1119 (Fx_get_selection_internal, Fx_selection_owner_p)
1120 (Fx_selection_exists_p): Doc fixes.
1121 (syms_of_macselect) <selection-converter-alist>: Likewise.
1122
1d256714
JB
11232005-07-21 Juanma Barranquero <lekktu@gmail.com>
1124
1125 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1126
1127 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
1128 (Fccl_execute_on_string): Likewise; add usage info.
1129
1130 * composite.c (Fcompose_region_internal)
1131 (Fcompose_string_internal):
1132 Improve argument/docstring consistency.
1133
1134 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
1135 Fix typos in docstrings.
1136
1137 * textprop.c (Fnext_char_property_change)
1138 (Fprevious_char_property_change): Doc fixes.
1139
1140 * window.c (Fset_window_margins, Fset_window_fringes):
1141 Improve argument/docstring consistency.
1142
1143 * xfaces.c (Finternal_lisp_face_p): Doc fix.
1144
538f78c3
AS
11452005-07-21 Andreas Schwab <schwab@suse.de>
1146
1147 * eval.c (restore_stack_limits): Return a value.
1148
a5b5bf44
JB
11492005-07-20 Juanma Barranquero <lekktu@gmail.com>
1150
1151 * eval.c (Fdefvar): Doc fix.
1152
ae643123
KS
11532005-07-20 Kim F. Storm <storm@cua.dk>
1154
0ed4bf15
KS
1155 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
1156 Use make_save_value to unwind protect stream.
1157
1158 * lread.c (Fload, load_unwind):
1159 Use make_save_value to unwind protect stream.
ae643123 1160
82fc29a1
JB
11612005-07-19 Juanma Barranquero <lekktu@gmail.com>
1162
1163 * eval.c (Fprog2, Fcalled_interactively_p),
1164 (syms_of_eval) <debug-on-quit>: Doc fixes.
1165 (syms_of_eval) <max-specpdl-size>:
1166 (Finteractive_p): Fix typos in docstrings.
1167
73b90087
KS
11682005-07-19 Kim F. Storm <storm@cua.dk>
1169
1170 * w32fns.c (Vx_hand_shape): Variable removed.
1171 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
1172
dfc434d0
KH
11732005-07-19 Kenichi Handa <handa@m17n.org>
1174
bdb4d6d8 1175 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 1176
bcd98331
SM
11772005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
1178
1179 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
1180
2a85a754
KS
11812005-07-18 Kim F. Storm <storm@cua.dk>
1182
1183 * frame.h (struct frame): New member already_hscrolled_p.
1184
1185 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
1186 to avoid redisplay looping hscrolling back and forth ad infinitum.
1187
426179e1
JL
11882005-07-18 Juri Linkov <juri@jurta.org>
1189
1190 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
1191 * keymap.c (Fminor_mode_key_binding):
1192 * macterm.c (mac-emulate-three-button-mouse):
1193 Delete duplicate duplicate words.
1194
9f4a578d
KR
11952005-07-18 Ken Raeburn <raeburn@gnu.org>
1196
1197 * minibuf.c (Ftest_completion): Fix odd syntax in test.
1198
d005338b
YM
11992005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1200
bcd98331 1201 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
1202
1203 * macgui.h (struct _XGC): New struct.
1204 (GC): Use it.
1205 (GCForeground, GCBackground, GCFont): Use X11 mask values.
1206 (XCreateGC, XParseGeometry): Move externs to macterm.h.
1207
bcd98331 1208 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 1209 (XSetFont): Add declaration.
bcd98331
SM
1210 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
1211 Remove functions.
1212 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
1213 New defines.
d005338b
YM
1214 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
1215 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
1216 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
1217 Use them.
d005338b
YM
1218 (mac_erase_rectangle): New function.
1219 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
1220 (x_draw_stretch_glyph_string): Use it.
1221 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
1222 (XSetBackground, XSetFont): Adjust for new GC implementation.
1223 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
1224 (XTset_vertical_scroll_bar): Clear area under scroll bar.
1225
1226 * macterm.h (struct mac_display_info): Change types of
1227 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
1228 (XCreateGC, XParseGeometry): Move externs from macgui.h.
1229
1230 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
1231
9b0c2c56
RS
12322005-07-16 Richard M. Stallman <rms@gnu.org>
1233
1234 * buffer.c (Fmake_overlay): Doc fix.
1235
2e9c1c6d
EZ
12362005-07-16 Eli Zaretskii <eliz@gnu.org>
1237
1238 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
1239 Vw32_valid_locale_ids, and Vw32_valid_codepages.
1240
407289a4
YM
12412005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1242
bcd98331
SM
1243 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
1244 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 1245
e4b477a1
RS
12462005-07-15 Richard M. Stallman <rms@gnu.org>
1247
1248 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
1249
a8613adf
KS
12502005-07-15 Kim F. Storm <storm@cua.dk>
1251
1252 * xdisp.c: Fix redisplay loop in last change.
1253 (IT_POS_VALID_AFTER_MOVE_P): New macro.
1254 (move_it_vertically_backward, move_it_by_lines): Use it.
1255
2d5324c5
JR
12562005-07-14 Jason Rumney <jasonr@gnu.org>
1257
1258 * w32.c (init_environment): Default HOME directory to user's
1259 appdata directory if possible.
1260
3ed70dc4
KS
12612005-07-14 Kim F. Storm <storm@cua.dk>
1262
7b9389b0
KS
1263 * .gdbinit (pitx): Fix output format. Print string charpos.
1264
3ed70dc4
KS
1265 * lread.c (syms_of_lread): Initialize seen_list.
1266
1267 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
1268
1269 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
1270 Staticpro re_match_object.
1271
ef029e5a
YM
12722005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1273
1274 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
1275 dereference.
1276
1277 * macterm.c (mac_window_to_frame): Remove duplicate define.
1278
16ef9c56
KH
12792005-07-14 Kenichi Handa <handa@m17n.org>
1280
1281 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 1282 (code_convert_region): Adjust for the above change.
16ef9c56
KH
1283 (set_conversion_work_buffer): If the work buffer is already in
1284 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 1285 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
1286 (run_pre_write_conversin_on_c_str): Likewise.
1287
098e1273
KS
12882005-07-13 Kim F. Storm <storm@cua.dk>
1289
010b9a45
KS
1290 * xdisp.c (start_display): Don't reseat to next visible line start
1291 if current start position is in a string or image.
1292 (move_it_vertically_backward): Be sure to move out of strings and
1293 images when moving it2 forward.
1294 (move_it_by_lines): When moving forward, move to next buffer
1295 position if we end up in a string or image. When moving backward,
1296 count rows moved over when moving to start of current row in case
1297 row starts in middle of a string or image. Also move further
1298 backward if we end up in a string or image.
bcd98331 1299 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
1300 move backward to set cursor on start of an overlay string.
1301 (cursor_row_p): Row is ok if cursor is at newline from string, but
1302 string starts on this line (so we always position cursor at start
1303 of string).
1304
1305 * indent.c (Fvertical_motion): If start position is on an image,
1306 don't move back if we move too far (that's almost certain to happen).
1307
098e1273
KS
1308 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
1309 row in minibuffer windows.
1310 (try_window): Don't check margins in minibuffer windows.
1311
c229fb15
YM
13122005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1313
1314 * macterm.c: Don't include stdlib.h or composite.h.
1315 (x_use_underline_position_properties, last_mouse_press_frame)
1316 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
1317 (syms_of_macterm, mac_initialize): Don't initialize them.
1318 (waiting_for_input, initial_argv, initial_argc)
1319 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
1320 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
1321 (extra_keyboard_modifiers): Fix type in extern.
1322 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
1323 (x_scroll_bar_report_motion): Add argument types to declaration.
1324 (mac_compute_glyph_string_overhangs): Add declaration.
1325 (disable_mouse_highlight): Remove unused variable.
1326 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
1327 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
1328 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
1329 All callers changed.
c229fb15
YM
1330 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
1331 timestamp.
1332 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
1333 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
1334 only when its width is less than the height.
1335 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
1336 (font_name_table, font_name_table_size, font_name_count):
1337 Make static.
c229fb15
YM
1338 (drag_and_drop_file_list): Remove variable. Previous use is now
1339 local to function.
1340 (do_ae_open_documents): Move DRAG_N_DROP event construction part
1341 from XTread_socket.
bcd98331
SM
1342 (XTread_socket): Consolidate setting of event timestamp.
1343 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
1344 Support extra_keyboard_modifiers.
1345
1346 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
1347 beginning with that for ASCII.
1348
69d05d83
SM
13492005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1350
1351 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
1352 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
1353 (syms_of_alloc): Declare gc-cons-percentage.
1354
1355 * eval.c (Feval, Ffuncall):
1356 * keyboard.c (read_char):
1357 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
1358
1359 * lisp.h (gc_cons_combined_threshold): Declare.
1360
5c7f9de1
KS
13612005-07-12 Kim F. Storm <storm@cua.dk>
1362
1363 * coding.c (Qprocess_argument):
1364 * coding.h (Qprocess_argument): Remove unused var.
1365
1366 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
1367
c37efb7a
YM
13682005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1369
1370 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
1371 Endian.h.
1372 [!MAC_OSX] (fchmod, fchown): New functions.
1373 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
1374 Use SBYTES and EndianU32_BtoN.
1375 (mac_get_object_from_code): Return 4 byte string even if argument
1376 is 0. Use make_unibyte_string and EndianU32_NtoB.
1377 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1378 (Fmac_set_file_type): Fix documents and argument declarations.
1379 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
1380
a4429c5b
SM
13812005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1382
1383 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
1384
a2d7e722
JD
13852005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1386
1387 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
1388 Lucid if X_I18N, font otherwise.
1389
9a4183e9
ST
13902005-07-10 Steven Tamm <steventamm@mac.com>
1391
a4429c5b
SM
1392 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
1393 (Fmac_set_file_type, Fmac_set_file_creator): Add.
1394 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 1395
51f74c37
RS
13962005-07-10 Richard M. Stallman <rms@gnu.org>
1397
1398 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
1399 (syms_of_lread): Set up eval-buffer-list.
1400 (Feval_buffer, Feval_region): Bind eval-buffer-list.
1401
93c7da4c
RS
14022005-07-08 Richard M. Stallman <rms@gnu.org>
1403
1404 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
1405
64af5917
KS
14062005-07-08 Kim F. Storm <storm@cua.dk>
1407
1408 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
1409 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
1410
a96b333c
KS
14112005-07-07 Kim F. Storm <storm@cua.dk>
1412
1413 * window.c (Frecenter): Fix last change (set iarg before use).
1414
dc2204be
RS
14152005-07-06 Richard M. Stallman <rms@gnu.org>
1416
1417 * window.c (Frecenter): When arg is inside the scroll margin,
1418 move it out of the margin.
1419
3fb1d72b
JR
14202005-07-06 Jason Rumney <jasonr@gnu.org>
1421
1422 * w32console.c (initialize_w32_display): Detect when the console
1423 dimensions are insane, and default to 80x25 instead.
a4429c5b 1424 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 1425
dd15724d
YM
14262005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1427
1428 * macterm.c (mac_draw_vertical_window_border): Use foreground of
1429 VERTICAL_BORDER_FACE_ID for vertical border line.
1430 (mac_encode_char): Call check_ccl_update in advance.
1431 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
1432 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
1433 Don't assume that font family length is less than 32.
dd15724d
YM
1434 (x_compute_min_glyph_bounds): Make static.
1435 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 1436
68003d6b
LK
14372005-07-04 Lute Kamstra <lute@gnu.org>
1438
dc2204be 1439 * Update FSF's address in GPL notices.
68003d6b 1440
3d393029
RS
14412005-07-03 Richard M. Stallman <rms@gnu.org>
1442
1443 * xdisp.c (try_window): Fix previous change in how it handles
1444 a partially-visible line or one only partly past the margin.
1445
1446 * window.c (window_scroll_pixel_based): Take account
1447 of this_scroll_margin when finding point when scrolling up.
1448
14492005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
1450
1451 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1452 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
1453 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
1454
d6951bb4
EZ
14552005-07-02 Juri Linkov <juri@jurta.org>
1456
1457 * w32term.c (w32_draw_vertical_window_border): Use foreground of
1458 VERTICAL_BORDER_FACE_ID for vertical border line.
1459
b016179b
EZ
14602005-07-02 Eli Zaretskii <eliz@gnu.org>
1461
1462 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
1463 fchmod so that chmod doesn't get called on MSDOS before the file
1464 is closed.
1465
c2baa2b6
JR
14662005-07-01 Jason Rumney <jasonr@gnu.org>
1467
1468 * w32term.c (cleartype_active): New flag for enabling sub-pixel
1469 workaround.
1470 (w32_initialize): Initialize it.
1471 (w32_native_per_char_metric): Allow a couple of extra pixels when
1472 Cleartype is active.
1473
1474 * w32term.c (w32_initialize): Move check for screen reader here
1475 from syms_of_w32term.
1476
a6d0ae55
JD
14772005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1478
1479 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
1480 is not zero.
1481
711877f3
MY
14822005-07-01 Masatake YAMATO <jet@gyve.org>
1483
a4429c5b 1484 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 1485
63f7ffb3
JL
14862005-06-30 Juri Linkov <juri@jurta.org>
1487
1488 * xdisp.c (x_draw_vertical_border): If left fringe is not present
1489 decrease x coord of vertical border by 1 pixel to not occupy text
1490 area of the right window.
1491
1492 * xterm.c (x_draw_vertical_window_border): Use foreground of
1493 VERTICAL_BORDER_FACE_ID for vertical border line.
1494
1495 * term.c (turn_on_face): In standout mode apply specified
1496 fg to bg, and specified bg to fg (this makes the logic of
1497 inversion on terminal consistent with X).
1498
b26860ad
JB
14992005-06-29 Juanma Barranquero <lekktu@gmail.com>
1500
1501 * eval.c (user_variable_p_eh): New function.
1502 (Fuser_variable_p): Use it. Clarify docstring.
1503 Return t for aliases of user options, nil for alias loops.
1504
3a1f1d79
RS
15052005-06-27 Richard M. Stallman <rms@gnu.org>
1506
1507 * eval.c (Fdefvar): Improve error message.
1508
92de1e01
YM
15092005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1510
1511 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
1512 change.
1513
69410484
JB
15142005-06-27 Juanma Barranquero <lekktu@gmail.com>
1515
1516 * eval.c (Fdefvar): Don't try to set constant symbols.
1517
09352e8f
RS
15182005-06-25 Richard M. Stallman <rms@gnu.org>
1519
a68d870b
RS
1520 * macfns.c (Fx_show_tip): Pass new arg to try_window.
1521
1522 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
1523
1524 * xfns.c (Fx_show_tip): Pass new arg to try_window.
1525
1526 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
1527 (redisplay_window): Handle try_window reporting point in scroll margin.
1528
1529 * dispextern.h (try_window): Declare new arg.
1530
1531 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
1532 Use fchmod to copy the file modes.
1533 (Frename_file): Don't copy UID and GID here;
1534 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
1535
df13531d
RS
1536 * eval.c (call_debugger): Take full care of extending stack limits
1537 to make space for the debugger, and restore the change afterward.
1538 Bind debug-on-error to nil.
1539 (restore_stack_limits): New subroutine.
1540 (Fsignal): Extend specpdl bound along with eval depth bound,
1541 for calling edebug. Don't do either one, for calling debugger.
1542 (find_handler_clause): Don't bind debug-on-error here.
1543 Don't unbind anything either.
1544 Temporarily advance max_specpdl_size for calling
1545 internal_with_output_to_temp_buffer.
1546 (grow_specpdl): Don't alter max_specpdl_size before signaling
1547 an error.
1548 (syms_of_eval) <max-specpdl-size>: Doc fix.
1549
09352e8f
RS
1550 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
1551
90296dd3
EZ
15522005-06-24 Eli Zaretskii <eliz@gnu.org>
1553
1554 * fileio.c (Frename_file): Undo last change: no need to ifdef away
1555 chown on DOS_NT platforms.
1556
1557 * w32.c (sys_chown): New function.
1558
1559 * s/ms-w32.h (chown): New; define to sys_chown.
1560
c4f6ca24
JB
15612005-06-24 Juanma Barranquero <lekktu@gmail.com>
1562
3338c0ad
JB
1563 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
1564 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
1565
9a1505e9 1566 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 1567
528b6abc
RS
15682005-06-23 Richard M. Stallman <rms@gnu.org>
1569
1570 * xdisp.c (get_next_display_element): Finish reversing the tests of
1571 Vnobreak_char_display.
1572
9a1505e9 1573 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 1574 All uses changed.
9a1505e9 1575 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
1576 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
1577
1578 * fileio.c (Frename_file): Preserve owner and group, if possible,
1579 when copying.
1580
1d1c7e75
JB
15812005-06-23 Juanma Barranquero <lekktu@gmail.com>
1582
253b2298
JB
1583 * abbrev.c (Funexpand_abbrev):
1584 * category.c (Fmake_category_set):
1585 * dispnew.c (Fsleep_for, Fsit_for):
1586 * editfns.c (Fsubst_char_in_region):
1587 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
1588 * frame.c (make_frame_without_minibuffer):
1589 * lread.c (read_vector):
1590 * macfns.c (check_x_frame):
1591 * process.c (Fstop_process, Fcontinue_process):
1592 * search.c (Freplace_match):
1593 * syntax.c (Fstring_to_syntax):
1594 * w32fns.c (check_x_frame, check_x_display_info):
1595 * xfaces.c (x_supports_face_attributes_p):
1596 * xselect.c (Fx_own_selection_internal): Follow error conventions.
1597
1d1c7e75
JB
1598 * image.c (fn_png_init_io): Don't define it.
1599 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
1600 (png_read_from_file): New function, based on png_read_from_memory.
1601 (png_load): Use it, instead of fn_png_init_io.
1602
d1fab151
KS
16032005-06-23 Kim F. Storm <storm@cua.dk>
1604
1605 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 1606 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
1607 Add commentary explaining evaporate arg (for internal use only).
1608 (unwind_set_match_data): Add comment on evaporate use.
1609
53abc3bf
MB
16102005-06-22 Miles Bader <miles@gnu.org>
1611
a4429c5b 1612 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
1613 (realize_basic_faces, syms_of_xfaces): Update references to it.
1614 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
1615 to `VERTICAL_BORDER_FACE_ID'.
1616 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
1617
36a3b076
JL
16182005-06-21 Juri Linkov <juri@jurta.org>
1619
1620 * dispextern.h: Add extern Qframe_set_background_mode.
1621
1622 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
1623 Qframe_set_background_mode.
1624
1625 * frame.c (Fmodify_frame_parameters):
1626 Call frame-set-background-mode after changing the background color
1627 on non-window non-dos branch.
1628
23873c96
JB
16292005-06-21 Juanma Barranquero <lekktu@gmail.com>
1630
1631 * fns.c (Fchar_table_range):
1632 * process.c (Fmake_network_process): Fix spellings.
1633
b7d1f38f
KS
16342005-06-20 Kim F. Storm <storm@cua.dk>
1635
1636 * fns.c (Fsort): Doc fix.
1637
b4e49aee
MB
16382005-06-20 Miles Bader <miles@gnu.org>
1639
1640 * xfaces.c (Qvertical_divider): New variable.
1641 (realize_basic_faces): Realize its face.
1642 (syms_of_xfaces): Initialize it.
1643
1644 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
1645
1646 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
1647 window-separator on ttys using `vertical-divider' face by default.
1648
b7da00ba
RS
16492005-06-17 Richard M. Stallman <rms@gnu.org>
1650
a4429c5b
SM
1651 * xdisp.c (get_next_display_element):
1652 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
1653
1654 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
1655 (Ftty_no_underline): New function.
1656 (syms_of_term): defsubr it.
b7d1f38f 1657
b7da00ba
RS
1658 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
1659
1660 * dispnew.c (spec_glyph_lookup_face): New function.
1661 (build_frame_matrix_from_leaf_window): Use it.
1662
1663 * dispextern.h (spec_glyph_lookup_face): Add declaration.
1664
1665 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1666
16672005-06-12 Richard M. Stallman <rms@gnu.org>
1668
1669 * keyboard.c (read_char): After catching a longjmp,
1670 call restore_getcjmp.
1671
289824a3
JB
16722005-06-17 Juanma Barranquero <lekktu@gmail.com>
1673
1674 * xselect.c (lisp_data_to_selection_data): Fix spelling.
1675
95085023
YM
16762005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1677
1678 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
1679 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
1680 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
1681 events.
1682 (XTread_socket): Don't pass keyboard events with the option
1683 modifier to the system when Vmac_command_key_is_meta is nil or
1684 Vmac_option_modifier is non-nil.
1685 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
1686 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
1687 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
1688 handler function.
1689 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
1690 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
1691 handler part to mac_handle_mouse_event.
1692
4a9308b8
JB
16932005-06-14 Juanma Barranquero <lekktu@gmail.com>
1694
1695 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
1696 NEW-ALIAS and BASE-VARIABLE, respectively.
1697
5aa6db57
SM
16982005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1699
1700 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1701 (get_phys_cursor_geometry, format_mode_line_unwind_data)
1702 (get_line_height_property, x_produce_glyphs): Remove unused vars.
1703
1704 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
1705
0e0dddda
EZ
17062005-06-13 Eli Zaretskii <eliz@gnu.org>
1707
1708 * w32term.c (x_use_underline_position_properties): New variable.
1709 (x_draw_glyph_string): Remind in a comment to change doc string of
1710 x-use-underline-position-properties if/when underline positioning
1711 is implemented.
1712 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
1713 and initialize it to nil.
1714
7f2b4738
JR
17152005-06-12 Jason Rumney <jasonr@gnu.org>
1716
1717 * w32fns.c (NEWOPENFILENAME): New struct.
1718 (Fx_file_dialog): Use it to trick the system into giving us up to
1719 date dialogs on systems that are documented to support it.
1720 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
1721
a1e8cad6
EZ
17222005-06-12 Eli Zaretskii <eliz@gnu.org>
1723
1724 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
1725 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
1726
099a3eea
EZ
17272005-06-11 Eli Zaretskii <eliz@gnu.org>
1728
2e09fef1
EZ
1729 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
1730 to CreateDIBSection to avoid a compiler warning.
1731 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
1732 warning.
1733 (png_load): Cast return values of fn_png_create_read_struct and
1734 fn_png_create_info_struct, to avoid compiler warnings on W32.
1735 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
1736 to avoid compiler warnings.
1737 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
1738 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
1739 avoid a compiler warning.
1740 (tiff_load): Cast return values of fn_TIFFOpen and
1741 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
1742 to IMAGE_BACKGROUND to avoid a compiler warning.
1743 (gif_load): Cast return values of fn_DGifOpenFileName and
1744 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
1745 IMAGE_BACKGROUND to avoid a compiler warning.
1746 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
1747 before redefining.
1748
099a3eea
EZ
1749 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
1750 the call to CreateDIBSection, to avoid a compiler warning.
1751
d11f8e1a
JR
17522005-06-11 Jason Rumney <jasonr@gnu.org>
1753
1754 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
1755 minibuffer.
1756 * macfns.c (Fx_file_dialog): Likewise.
1757
cd4344a3
EZ
17582005-06-10 Eli Zaretskii <eliz@gnu.org>
1759
1760 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
1761
578c1340
JB
17622005-06-10 Juanma Barranquero <lekktu@gmail.com>
1763
1764 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
1765 * w32fns.c (syms_of_w32fns): Fix spellings.
1766
4162f25f
EZ
17672005-06-10 Eli Zaretskii <eliz@gnu.org>
1768
1769 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
1770 `verbose'; print diagnostic messages only if it is non-zero.
1771 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
1772 in the environment.
1773 (copy_executable_and_dump_data): Print section names with %.8s.
1774
121c59a3
MY
17752005-06-10 Masatake YAMATO <jet@gyve.org>
1776
1777 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
1778 when mouse_face is not given.
121c59a3 1779
c869384d
LT
17802005-06-09 Luc Teirlinck <teirllm@auburn.edu>
1781
1782 * window.c (Fselect_window): Adapt call to Fselect_frame.
1783
1784 * lisp.h: Update EXFUN of Fselect_frame.
1785
1786 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
1787
6ecf436d
LT
1788 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
1789 no_enter.
1790 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
1791 Adapt to above change.
1792
c14ec135
JB
17932005-06-10 Juanma Barranquero <lekktu@gmail.com>
1794
1795 * fns.c (Fmemq, Fmaphash): Doc fixes.
1796
9fed2905
JB
17972005-06-09 Juanma Barranquero <lekktu@gmail.com>
1798
1799 * xfaces.c (Fdisplay_supports_face_attributes_p):
1800 Fix typo in docstring.
1801
427c5b1b
ST
18022005-06-08 Steven Tamm <steventamm@mac.com>
1803
1804 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
1805 used by gcc4 on intel mac.
1806
b7aae902
KS
18072005-06-09 Kim F. Storm <storm@cua.dk>
1808
1809 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
1810 in REUSE list if non-nil; free them if equal to evaporate.
1811 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
1812 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
1813 (restore_search_regs): Rename from restore_match_data. Uses changed.
1814 (unwind_set_match_data): New function.
1815 (record_unwind_save_match_data): New function like save-match-data.
1816
1817 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
1818 (record_unwind_save_match_data): Add prototype.
1819 (restore_search_regs): Rename from restore_match_data.
1820
1821 * composite.c (compose_chars_in_text):
1822 * eval.c (do_autoload):
1823 * macmenu.c (set_frame_menubar):
1824 * process.c (read_process_output, exec_sentinel):
1825 * xmenu.c (set_frame_menubar):
1826 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
1827 * w32menu.c (set_frame_menubar):
1828 Use record_unwind_save_match_data.
1829
547d2b37
RS
18302005-06-08 Richard M. Stallman <rms@gnu.org>
1831
1832 * xdisp.c (get_next_display_element): Alter previous change:
1833 Distinguish Vshow_nonbreak_escape = t or not t.
1834 For t, use escape_glyph once again, as before previous change.
1835 Use space or hyphen for display, instead of the non-ASCII char.
1836 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
1837
1838 * process.c (Fstart_process): Don't touch command_channel_p slot.
1839
99598737 1840 * process.h (struct process): Delete command_channel_p.
547d2b37 1841
602907ae
MY
18422005-06-07 Masatake YAMATO <jet@gyve.org>
1843
5aa6db57
SM
1844 * xdisp.c (note_mode_line_or_margin_highlight):
1845 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 1846 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
1847 is not ON_MODE_LINE nor ON_HEADER_LINE.
1848
8b793bed
KS
18492005-06-07 Kim F. Storm <storm@cua.dk>
1850
1851 * process.c: Improve commentary for adaptive read buffering.
1852
3d031334
SM
18532005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
1854
1855 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
1856 if available.
1857
16d2e704
JD
18582005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1859
5aa6db57
SM
1860 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1861 New functions for popping down menus on C-g.
16d2e704
JD
1862 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
1863
1864 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
1865 non-static.
1866
9fed2905 1867 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 1868
b6cc2ad0
EZ
18692005-06-06 Eli Zaretskii <eliz@gnu.org>
1870
9a1505e9 1871 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 1872
5aa6db57 1873 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
1874
1875 * w32proc.c (RVA_TO_PTR): New macro.
1876
1877 * w32heap.c (RVA_TO_PTR): No need to #undef now.
1878
1879 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
1880 Depend on w32heap.h.
1881
24e55feb
LT
18822005-06-06 Luc Teirlinck <teirllm@auburn.edu>
1883
1884 * keyboard.c (command_loop_1): Update Vthis_original_command.
1885
ce6e10af
RS
18862005-06-06 Richard M. Stallman <rms@gnu.org>
1887
1888 * xmenu.c (popup_get_selection): Undo previous change.
1889
c476bcb0
JL
18902005-06-06 Juri Linkov <juri@jurta.org>
1891
1892 * xdisp.c (Qno_break_space): New variable.
1893 (syms_of_xdisp): Initialize it.
1894 (get_next_display_element): Add no-break space and soft hypen
1895 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
1896 Use `no-break-space' face for no-break spaces.
1897
5494d7bc
JD
18982005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1899
1900 * window.c (delete_window): Handle the case where a h/vchild has
1901 a h/vchild.
1902
a0c38328
EZ
19032005-06-05 Eli Zaretskii <eliz@gnu.org>
1904
1905 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
1906 call to pfn_setsockopt, cast optval to `const char *'.
1907
91018229
EZ
19082005-06-04 Eli Zaretskii <eliz@gnu.org>
1909
1a8fb426
EZ
1910 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
1911 (open_unc_volume): Cast return value of map_w32_filename, to avoid
1912 compiler warnings.
1913
b6f0a397
EZ
1914 * s/ms-w32.h (fileno): Don't define if already defined.
1915
17a7c5c2 1916 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 1917
91018229
EZ
1918 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
1919
196ac78c
RS
19202005-06-04 Richard M. Stallman <rms@gnu.org>
1921
1922 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
1923
b8987570
JD
19242005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1925
1926 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 1927 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
1928 mac_menu_show Quit:s.
1929 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
1930 a dialog).
1931
555228aa
KS
19322005-06-04 Kim F. Storm <storm@cua.dk>
1933
1934 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
1935
1936 * callproc.c (Fcall_process): Don't use alloca to gradually
1937 increase size of buf, as it effectively uses twice the necessary
1938 space on the stack. Instead, pre-allocate buf of full size, and
1939 gradually increase the read size.
1940
1941 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
1942
1943 * eval.c (unbind_to): Preserve value of Vquit_flag.
1944
1945 * xterm.c (handle_one_xevent): Also ignore mouse motion just
1946 before a button release event.
1947
6312e5f7
JB
19482005-06-03 Juanma Barranquero <lekktu@gmail.com>
1949
1950 * xfaces.c (Finternal_lisp_face_equal_p): Really report
1951 on faces in a frame, if the argument FRAME is non-nil.
1952 Improve argument/docstring consistency.
1953
0493f7be
KS
19542005-06-02 Kim F. Storm <storm@cua.dk>
1955
1956 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
1957 (x_consider_frame_title, Fformat_mode_line): Save offset into
1958 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
1959
89fe657e
KS
19602005-06-01 Kim F. Storm <storm@cua.dk>
1961
1962 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
1963
02a6375c
YM
19642005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1965
1966 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
1967 resolution fields for scalable fonts to 0.
1968
1969 * xfaces.c (build_scalable_font_name): Round pixel size to the
1970 nearest integer.
1971
95d4fad8
KS
19722005-06-01 Kim F. Storm <storm@cua.dk>
1973
1974 * xdisp.c (display_mode_line): Support nested calls to redisplay
1975 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
1976
3c1b433a
SM
19772005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1978
1979 * fileio.c (Finsert_file_contents):
1980 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1981
13cc7d61
KS
19822005-05-31 Kim F. Storm <storm@cua.dk>
1983
1984 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
1985 (mode_line_noprop_ptr): Rename from frame_title_*.
1986 (store_mode_line_noprop_char): Rename from store_frame_title_char.
1987 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 1988 (mode_line_target): New enum to specify current output target
13cc7d61
KS
1989 for mode line formatting.
1990 (display_mode_element): Test it rather than frame_title_ptr and
1991 mode_line_string_list to determine where output should go.
1992 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
1993 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
1994 (format_mode_line_unwind_data, unwind_format_mode_line):
1995 New functions for unwind protection in mode line formatting.
13cc7d61 1996 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
1997 to support nested calls to format-mode-line and redisplay.
1998 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 1999 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
2000 support nested calls to format-mode-line and redisplay.
2001 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 2002 Don't trim trailing dashes.
13cc7d61
KS
2003 (decode_mode_spec): Don't make infinite number of trailing dashes
2004 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
2005 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
2006 mode_line_string_face_prop, and Vmode_line_unwind_vector.
2007 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
2008 Initialize mode_line_target to MODE_LINE_DISPLAY.
2009
c16b1394
RS
20102005-05-29 Richard M. Stallman <rms@gnu.org>
2011
2012 * buffer.c (Fbuffer_local_value): Call indirect_variable.
2013
edfaeb4e
MY
20142005-05-28 Masatake YAMATO <jet@gyve.org>
2015
2016 * xdisp.c (note_mode_line_or_margin_highlight): Change the
2017 pointer to a hand cursor when hoovering over a mouse-face.
2018
7cf49add
KH
20192005-05-27 Kenichi Handa <handa@m17n.org>
2020
2021 * xterm.c (x_encode_char): Call check_ccl_update in advance.
2022
2023 * ccl.c: Now an element of Vccl_program_table is a vector of
2024 length 4, not 3.
3c1b433a
SM
2025 (ccl_get_compiled_code): New arg idx. Caller changed.
2026 Adjust for the change of Vccl_program_table.
2027 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
2028 (check_ccl_update): New function.
2029 (Fregister_ccl_program): Use ASET to set an element of a vector.
2030 Adjusted for the change of Vccl_program_table.
2031
2032 * ccl.h (struct ccl_program): New member idx.
2033 (check_ccl_update): Extern it.
2034
5e2ad10b
JB
20352005-05-27 Juanma Barranquero <lekktu@gmail.com>
2036
3c1b433a 2037 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
2038 (syms_of_image): Defvar it.
2039 (lookup_image_type): Use it.
2040
5e2ad10b
JB
2041 * buffer.c (Fbuffer_local_value): Make argument name match its use
2042 in docstring.
2043
6e604a9b
JB
20442005-05-26 Juanma Barranquero <lekktu@gmail.com>
2045
2046 * keyboard.c (Frecursive_edit): Fix typo in docstring.
2047 (Fposn_at_x_y): Make argument name match its use in docstring.
2048
59244a3f
LK
20492005-05-26 Lute Kamstra <lute@gnu.org>
2050
2051 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
2052
55ce5058
MY
20532005-05-24 Masatake YAMATO <jet@gyve.org>
2054
2055 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
2056 as loop sentinels.
2057
cb5db137
NR
20582005-05-24 Nick Roberts <nickrob@snap.net.nz>
2059
2060 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
2061 select frame title ("Question"/"Information").
2062 (xdialog_show): Use it.
2063
13dcfc35
NR
2064 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
2065
2066 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
2067
d3393daa
NR
2068 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
2069 a third argument (Qnil).
2070
2071 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
2072
2073 * editfns.c (Fmessage_box): Use "Information" for frame title.
2074
71d4fba1
TTN
20752005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
2076
2077 * termcap.c [VMS]: Include <starlet.h>.
2078
359e4563
MY
20792005-05-23 Masatake YAMATO <jet@gyve.org>
2080
6e604a9b
JB
2081 * xdisp.c (note_mode_line_or_margin_highlight): Add code
2082 for mouse-face. Change the type of the first argument from `window'
2083 to `Lisp_Object'.
359e4563
MY
2084 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
2085 window instead of w.
2086
edceb51c
AS
20872005-05-22 Andreas Schwab <schwab@suse.de>
2088
41c4895c 2089 * process.c (send_process): Move misplaced volatile.
edceb51c 2090
5c213fcc
RS
20912005-05-21 Richard M. Stallman <rms@gnu.org>
2092
2093 * xdisp.c (display_mode_element): If we're processing a list and
2094 padding is specified, put it after the last element.
2095
aa4060b9
EZ
20962005-05-21 Eli Zaretskii <eliz@gnu.org>
2097
2098 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
2099 "superroot" on DOS_NT systems.
2100
a2c9aee6
EZ
21012005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
2102
2103 * process.c (send_process): Restore the SIGPIPE handler if we
2104 catch a SIGPIPE.
2105
09e8eb5b
JB
21062005-05-20 Juanma Barranquero <lekktu@gmail.com>
2107
2108 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
2109 misleading comments).
2110 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
2111
f3fbdb1f
LK
21122005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2113
2114 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
2115 Correct the right value.
2116
639ec765
NR
21172005-05-19 Nick Roberts <nickrob@snap.net.nz>
2118
240d926e 2119 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
2120 post-command-idle-hook and post-command-idle-delay.
2121 (command_loop_1): Don't try to execute post-command-idle-hook.
2122
03d42907
KS
21232005-05-16 Kim F. Storm <storm@cua.dk>
2124
1cb83e13
KS
2125 * xdisp.c (handle_display_prop): Handle empty replacement.
2126 (handle_single_display_spec): Return -1 for empty replacement.
2127
2128 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
2129
03d42907
KS
2130 * .gdbinit (pitx): Print more info about iterator.
2131
0da46b6e
AS
21322005-05-16 Andreas Schwab <schwab@suse.de>
2133
3c1b433a 2134 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 2135
d06ba294
RS
21362005-05-14 Richard M. Stallman <rms@gnu.org>
2137
2138 * xdisp.c (message3): Call cancel_echoing.
2139
2140 * alloc.c (Fmemory_full_p): New function.
2141 (syms_of_alloc): defsubr it.
2142
2143 * process.c (send_process_trap): Unblock SIGPIPE.
2144 (send_process): Reset SIGPIPE handler before reporting error.
2145
90713743
NR
21462005-05-14 Nick Roberts <nickrob@snap.net.nz>
2147
2148 * emacs.c (syms_of_emacs): Fix doc string for system-type.
2149
68780e2a
RS
21502005-05-13 Richard M. Stallman <rms@gnu.org>
2151
2152 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
2153 (Finsert_file_contents): If we read 0 bytes from a special file,
2154 unlock the visited file if we locked it.
2155 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 2156 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 2157
5063dbbf
YM
21582005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2159
2160 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
2161
3c1b433a
SM
2162 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
2163 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
2164 redisplay from being paused by them.
2165
2166 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
2167 [!MAC_OSX] (target_ticks): Remove variable.
2168 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
2169 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
2170 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 2171 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
2172 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
2173 handling using Time Manager routines.
3c1b433a
SM
2174 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
2175 New variables.
5063dbbf
YM
2176 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
2177 (setitimer): New functions.
2178
2179 * macfns.c, macmenu.c: Don't include signal.h.
2180
2181 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
2182 Rename from get_control_part_bound. All callers changed.
2183 (x_scroll_bar_clear): New function.
2184 (x_clear_frame): Use it.
2185 (XTset_vertical_scroll_bar): Don't call Draw1Control.
2186 (x_scroll_bar_handle_click): Change type of second argument from
2187 int to ControlPartCode.
2188 (check_alarm): Remove declaration.
02a6375c
YM
2189 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
2190 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
2191
21922005-05-13 Nozomu Ando <nand@mac.com>
2193
2194 * unexmacosx.c: Include assert.h.
2195 (MACOSX_MALLOC_MULT16): New define.
2196 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
2197 ptr is in unexec regions by checking it is multiple of 16.
2198 (unexec_malloc_header_t): New typedef.
2199 (unexec_malloc, unexec_realloc, unexec_free): Store and use
2200 allocated size information in unexec_malloc_header.
2201
d101bf56
RS
22022005-05-10 Richard M. Stallman <rms@gnu.org>
2203
2204 * xterm.c (noinclude): Add #undef.
2205
2206 * image.c, xfns.c, xmenu.c: Don't include signal.h.
2207
2f60660a
JB
22082005-05-09 Juanma Barranquero <lekktu@gmail.com>
2209
f1701e65
JB
2210 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
2211 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
2212 Doc fixes.
2213
2f60660a
JB
2214 * dired.c (Ffile_name_completion): Make argument name
2215 match its use in docstring.
2216
9f29e806
LT
22172005-05-08 Luc Teirlinck <teirllm@auburn.edu>
2218
2219 * eval.c (Fdefvaralias): Remove any pre-existing
2220 variable-documentation property of the alias.
2221
a790bcd4
TTN
22222005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
2223
2224 * xfns.c (start_hourglass): Do nothing when running on a tty.
2225
d5fb8dab
JB
22262005-05-07 Juanma Barranquero <lekktu@gmail.com>
2227
2228 * fns.c (Fchar_table_range): Fix typos in docstring.
2229
7ec64183
SM
22302005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2231
2232 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
2233
6ff95f1d
EZ
22342005-05-06 Eli Zaretskii <eliz@gnu.org>
2235
2c6b25c7
EZ
2236 * lread.c (Flocate_file_internal): Doc fix.
2237
6ff95f1d
EZ
2238 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
2239
17d28d26
YM
22402005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2241
2242 * macselect.c (x_own_selection): Accept Lisp string as result of
2243 selection converter function.
2244 (x_clear_frame_selections): Don't call x-lost-selection-functions
2245 if Emacs is not owner of the selection.
2246 (Vmac_services_selection): Put variable and initialization in
2247 #ifdef MAC_OSX.
2248 (syms_of_macselect) [MAC_OSX]: Set default value of
2249 Vmac_services_selection to PRIMARY.
2250
7ec64183
SM
2251 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
2252 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
2253 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
2254 (install_scroll_bar_timer, set_scroll_bar_timer)
2255 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
2256 (get_control_part_bound, x_scroll_bar_handle_press)
2257 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
2258 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
2259 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
2260 (scroll_bar_timer_event_posted_p): New variables.
2261 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
2262 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
2263 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
2264 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2265 Initialize track_top and track_height to nil.
2266 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
2267 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
2268 (XTset_vertical_scroll_bar): Don't make space between scroll bar
2269 and associated window.
2270 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
2271 from window config.
7ec64183
SM
2272 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2273 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
2274 Recalculate them if they are nil.
2275 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
2276 clicked control is a scroll bar.
2277 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
2278 event handler functions. Don't add modifiers to scroll bar click
7ec64183 2279 events. Call scroll bar release handler when window is deactivated.
17d28d26 2280 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
2281 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
2282 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 2283
7ec64183
SM
2284 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2285 New members track_top and track_height.
17d28d26
YM
2286
2287 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
2288 init_process when including sys/select.h.
2289
643b4cf5
LT
22902005-05-05 Luc Teirlinck <teirllm@auburn.edu>
2291
2292 * eval.c (Fdefvaralias): Doc fix.
2293
2294 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2295
99bda128
KS
22962005-05-05 Kim F. Storm <storm@cua.dk>
2297
2298 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
2299 default value.
2300 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
2301 Fix type of cursor-in-non-selected-windows.
2302
3a3563e9
JD
23032005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2304
2305 * mac.c: #undef init_process so not to conflict with system headers.
2306
0124c5bd
RS
23072005-05-02 Richard M. Stallman <rms@gnu.org>
2308
2309 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
2310
2311 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
2312
2313 * xdisp.c (Vcursor_in_non_selected_windows)
2314 (Qcursor_in_non_selected_windows): Vars deleted.
2315 (syms_of_xdisp): Don't initialize them.
2316 (get_window_cursor_type): Use cursor_in_non_selected_windows
2317 buffer slot.
2318
4b3f161f
KS
23192005-05-02 Kim F. Storm <storm@cua.dk>
2320
e40527dc
KS
2321 * macros.c (executing_kbd_macro_index): Rename from
2322 executing_macro_index. All uses changed.
2323 (executing_kbd_macro_iterations): Rename from
2324 executing_macro_iterations. All uses changed.
2325 (executing_kbd_macro): Rename from executing_macro.
2326 All uses changed.
2327 (syms_of_macros): Rename Lisp var executing-macro-index to
2328 executing-kbd-macro-index.
2329
4b3f161f
KS
2330 * xdisp.c (move_it_in_display_line_to): Fix last change.
2331
4d49edf6
LT
23322005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2333
f6b1b15a
LT
2334 * xmenu.c (Fx_popup_menu): Doc fix.
2335
4d49edf6
LT
2336 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
2337
4a766fe6
JR
23382005-05-02 Jason Rumney <jasonr@gnu.org>
2339
2340 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
2341
c924d3ff
TTN
23422005-05-02 Nozomu Ando <nand@mac.com>
2343
2344 * sysselect.h: Fix typo.
2345
b161ea4e 23462005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 2347
b161ea4e
NR
2348 * charset.c (Fchars_in_region): Remove as obsolete.
2349
d37e919d 23502005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
2351
2352 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 2353 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 2354 glyph.
5c2e5a5e 2355
bec0b768
LT
23562005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2357
2358 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
2359
ebbfa918
RS
23602005-05-01 Richard M. Stallman <rms@gnu.org>
2361
2362 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
2363 If user cancels the menu, quit unless FOR_CLICK.
2364
7ec64183 2365 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
2366 All uses changed.
2367 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
2368 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
2369 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
2370 * commands.h (Vexecuting_kbd_macro): Likewise.
2371
a72c2d97
TTN
23722005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
2373
2374 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
2375
7e995a23
RS
23762005-04-30 Richard M. Stallman <rms@gnu.org>
2377
2378 * fileio.c (Ffind_file_name_handler): Handle the `operations'
2379 property of the file name handler.
2380 (Qoperations): New variable.
2381 (syms_of_fileio): Initialize and staticpro it.
2382
2383 * xdisp.c (set_message_1): Delete xassert.
2384
7a92caf8
YM
23852005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2386
7ec64183 2387 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
2388
2389 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
2390
2391 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
2392 before/after including Carbon.h if there is a working mktime.
2393
5ae91803
KS
23942005-04-28 Kim F. Storm <storm@cua.dk>
2395
2396 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
2397 Fix cyclic alias check. If alias loop is detected, signal
2398 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
2399
d79b6c21
LK
24002005-04-28 Lute Kamstra <lute@gnu.org>
2401
2402 * eval.c (do_autoload): Record only autoloads in the autoload
2403 property of symbols.
2404
8c75afbf
NR
24052005-04-28 Nick Roberts <nickrob@snap.net.nz>
2406
2407 * emacs.c (USAGE1): Add --basic-display and --quick options.
2408
832e294f
KS
24092005-04-27 Kim F. Storm <storm@cua.dk>
2410
2411 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
2412
f03f317a
RS
24132005-04-26 Richard M. Stallman <rms@gnu.org>
2414
c019856e
RS
2415 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
2416 (syms_of_window): Doc fixes.
2417
f03f317a
RS
2418 * indent.c (Fvertical_motion): Undo previous change.
2419
38f60cd9
KH
24202005-04-26 Kenichi Handa <handa@m17n.org>
2421
2422 * fns.c (char_table_range): New function.
2423 (Fchar_table_range): Signal an error if characters in the range
2424 have inconsistent values. Don't check the parent.
2425
87ede5a1
KH
24262005-04-25 Kenichi Handa <handa@m17n.org>
2427
2428 * fontset.c (fontset_set): Fix previous change.
2429
a6390474
RS
24302005-04-24 Richard M. Stallman <rms@gnu.org>
2431
2432 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
2433
7fce7dfe
EZ
24342005-04-24 Eli Zaretskii <eliz@gnu.org>
2435
cf1982d9
EZ
2436 * regex.c (re_search_2, re_match_2_internal): Convert second arg
2437 of RE_TRANSLATE to int, to shut up GCC warnings.
2438
7fce7dfe
EZ
2439 * fileio.c (Fcopy_file): Doc fix.
2440 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
2441 not needed.
2442
49ed33c7
YM
24432005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2444
2445 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
2446 (SOME_MACHINE_OBJECTS): Likewise.
2447 (mac.o): Depend on ccl.h.
2448 (macselect.o): New target.
2449
7ec64183
SM
2450 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
2451 Call syms_of_macselect.
49ed33c7
YM
2452
2453 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
2454
7ec64183 2455 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
2456 (QCLIPBOARD): Remove variable.
2457 (syms_of_mac): Don't initialize it.
2458 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
2459 Remove functions.
2460 (syms_of_mac): Don't defsubr them.
2461 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
2462 (QHFS_plus_D, QHFS_plus_C): New variables.
2463 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
2464 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
2465 (cfstring_create_normalized): New functions.
2466 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
2467 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2468
7ec64183
SM
2469 * macterm.c (handling_window_update, terminate_flag):
2470 Remove variables.
2471 (do_window_update, do_ae_quit_application, XTread_socket):
2472 Don't use them.
49ed33c7
YM
2473 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
2474 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
2475 (init_service_handler): Move to macselect.c. Remove declarations.
2476 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
2477 (Qapplication, Qabout): New variables.
2478 (syms_of_mac): Initialize them.
2479 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
2480 (Qperform): New variables.
2481 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 2482 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
2483 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
2484 (mac_store_application_menu_event, init_menu_bar): New functions.
2485 [USE_CARBON_EVENTS] (mac_handle_command_event)
2486 (init_command_handler): New functions.
2487 (mac_handle_window_event): Return noErr on window update event.
2488 (do_ae_quit_application): Call mac_store_application_menu_event.
2489 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
2490 and init_menu_bar.
2491
2492 * macterm.h (x_clear_frame_selections): Add extern.
2493
2494 * macselect.c: New file for selection processing on Mac OS.
2495
469bc679
RS
24962005-04-23 Richard M. Stallman <rms@gnu.org>
2497
2498 * fileio.c (Fcopy_file): New arg MUSTBENEW.
2499 (Frename_file): Pass new arg to Fcopy_file.
2500
2501 * window.c (window_size_fixed): Variable deleted.
2502 (syms_of_window): Initialize window-size-fixed to nil.
2503 But don't DEFVAR window_size_fixed.
2504
d379c558
AS
25052005-04-23 Andreas Schwab <schwab@suse.de>
2506
2507 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
2508 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
2509 use lib64 instead of lib.
2510 (_LP64) [_ARCH_PPC64]: Define if not defined.
2511
007d105b
TTN
25122005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
2513
2514 * s/ms-w32.h (HAVE_PWD_H): Define.
2515
b9c15916
KH
25162005-04-22 Kenichi Handa <handa@m17n.org>
2517
2518 * fns.c (copy_sub_char_table): Explicitly copy the default value
2519 of the sub-chartable.
2520
2521 * fontset.c (fontset_set): When a sub-chartable is created,
2522 explicitly sets the defalt value.
2523
1ba52906
KS
25242005-04-22 Kim F. Storm <storm@cua.dk>
2525
2526 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
2527 (Fsafe_plist_get): Rename to Fplist_get.
2528 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
2529 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
2530
2531 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
2532
2533 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
2534 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2535 Use Fplist_get instead of Fsafe_plist_get.
2536
2537 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
2538
e235145c
MB
25392005-04-21 Miles Bader <miles@gnu.org>
2540
2541 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
2542
766c5349
TTN
25432005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
2544
c164a7e6
TTN
2545 * sysdep.c: Remove reference to defunct vms-pwd.h.
2546 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
2547 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
2548
766c5349
TTN
2549 * config.in: Regenerate.
2550
2b048bf5
KH
25512005-04-20 Kenichi Handa <handa@m17n.org>
2552
2553 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
2554 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
2555 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
2556
2557 * alloc.c (make_sub_char_table): Argument changed to initial
2558 value of the slots.
2559
2560 * data.c (Faref): Handle special slots used as default values of
2561 ascii, eight-bit-control, eight-bit-control. Don't ignore a
2562 default value set for a group of characters.
2563 (Faset): Signal an error if IDXVAL is not a valid character code.
2564 Make a sub-chartable with correct initial value.
2565
2566 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
2567 values for ascii, eight-bit-control, eight-bit-graphic.
2568 Don't call Faref with charset-id.
2b048bf5
KH
2569 (Fset_char_table_default): Document how to treat normal character
2570 argument. Handle special slots used as default values of ascii,
2571 eight-bit-control, eight-bit-control. Make a sub chartable if
2572 necessary.
2573
b0a35939
KH
25742005-04-20 Kenichi Handa <handa@m17n.org>
2575
2576 * search.c (boyer_moore): Fix previous change.
2577
98dde726
KS
25782005-04-19 Kim F. Storm <storm@cua.dk>
2579
2580 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
2581 face unless last visible char and first invisible char have the
2582 same face. Also use default face if saved_face_id is undefined.
2583
327a3376
YM
25842005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2585
2586 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
2587 `full_name'.
2588 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
2589 mac_scriptcode member.
2590
2591 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
2592 (syms_of_mac): Don't initialize them.
2593 (Vmac_charset_info_alist): New variable.
2594 (syms_of_mac): Defvar it.
2595 (create_text_encoding_info_alist): New function.
2596 (decode_mac_font_name, mac_to_x_fontname)
2597 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
2598 code the correspondence among XLFD charsets, Mac script codes, and
2599 Emacs coding systems. Use Vmac_charset_info_alist and result of
2600 create_text_encoding_info_alist instead.
2601 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
2602 routines also on Mac OS Classic.
7ec64183
SM
2603 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
2604 Use add_font_name_table_entry.
327a3376
YM
2605 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
2606 specified. Derive unspecified scalable fields from specified one.
2607 (x_list_fonts): Consider Valternate_fontname_alist.
2608 (kDefaultFontSize): Change value from 9 to 12.
2609 (XLoadQueryFont): Get decoded font family, font face, and charset
2610 from x_font_name_to_mac_font_name. Set full name of loaded font.
2611 (mac_unload_font): Free `full_name' member.
2612 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
2613 NULL. Copy full_name member of struct MacFontStruct to that of
2614 struct font_info.
2615
d0636839
KS
26162005-04-19 Kim F. Storm <storm@cua.dk>
2617
5827e9d4
KS
2618 * xdisp.c (handle_stop): Set saved_face_id to current face if
2619 selective_display_ellipsis_p so ellipsis will be shown in same
2620 face as preceding text.
2621 (setup_for_ellipsis): Don't set saved_face_id here.
2622 (next_element_from_display_vector): Default to saved_face_id.
2623
d0636839
KS
2624 * fns.c (Fsafe_get): New function.
2625 (syms_of_fns): Defsubr it.
2626
2627 * lisp.h (Fsafe_get): EXFUN it.
2628
2629 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
2630 loops in case of bad face property lists. Limit number of face
2631 alias lookups to 10 (in case of face alias loops).
2632
e5c78c9d
KS
26332005-04-18 Kim F. Storm <storm@cua.dk>
2634
2635 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
2636 It replaces the corresponding member from struct window, as a
2637 window may now show multiple overlay arrows.
2638 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
2639
2640 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
2641 Compare overlay_arrow_bitmap than overlay_arrow_p members.
2642
2643 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
2644 rather than from window.
2645 (update_window_fringes): Compare overlay_arrow_bitmap rather than
2646 overlay_arrow_p members.
2647 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
2648 if not default.
2649
2650 * window.h (struct window): Remove member overlay_arrow_bitmap.
2651
2652 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
2653
2654 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
2655 Calls changed. Don't check for overlay-arrow-bitmap property here.
2656 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
2657 fringe is present, return Lisp integer for bitmap (or -1 for default).
2658 Fix value of overlay-arrow-bitmap property to be a symbol, use
2659 lookup_fringe_bitmap to parse it.
2660 (display_line): Change call to overlay_arrow_at_row. Store integer
2661 return value as overlay bitmap in row rather than window.
2662 Only show overlay arrow if row displays text, or if no other overlay
2663 arrow is seen in window (if overlay marker is at point-max).
2664
7d603e3f
TTN
26652005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2666
2667 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
2668
9942fa0c
LK
26692005-04-18 Lute Kamstra <lute@gnu.org>
2670
2671 * lread.c (Vloads_in_progress): Static.
2672 * fns.c (Vloads_in_progress): Remove extern.
2673 (load_in_progress): Add extern.
2674 (Frequire): Use load_in_progress instead of Vloads_in_progress.
2675
999cdb8f
TTN
26762005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2677
2678 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
2679
3f4413f8
YM
26802005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2681
2682 * macterm.c (XTread_socket): Don't beep on keyboard input even if
2683 no frame is visible.
2684
60ec7b7e
DN
26852005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2686
2687 * term.c (struct keys): Add support for shifted keys.
2688
a8a1c0ee
RS
26892005-04-16 Richard M. Stallman <rms@gnu.org>
2690
2691 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
2692 (set_message): Call with_echo_area_buffer with WHICH = 0.
2693 (set_message_1): Erase the echo area buffer first thing.
2694 (echo_area_display): Don't clear echo_message_buffer.
2695
f3cf04d3
YM
26962005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2697
2698 * Makefile.in (mac.o): Depend on charset.h and coding.h.
2699
2700 * mac.c: Include charset.h and coding.h.
2701 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 2702 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
2703 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
2704
2705 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2706
2707 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
2708
2709 * macterm.c (x_autoselect_window_p): Remove variable.
2710 (last_window): New variable.
7ec64183
SM
2711 (XTreassert_line_highlight, x_change_line_highlight):
2712 Remove declarations.
f3cf04d3
YM
2713 (mac_focus_changed, x_detect_focus_change): New functions and
2714 declarations.
2715 (XTextExtents16, front_emacs_window): Remove function.
2716 (mac_focus_frame): New function.
2717 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
2718 (mac_check_for_quit_char): Use it instead of front_emacs_window.
2719 (x_scroll_bar_report_motion): Obtain window from control owner.
2720 (x_make_frame_invisible): Set window manager size hint.
2721 (do_mouse_moved): Remove function.
2722 (XTread_socket): Move its contents here. Generate select-window
2723 event on mouse movement if needed. Use x_detect_focus_change on
2724 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
2725 window rectangle when dnd items are dropped.
2726 Don't activate/deactivate root control.
f3cf04d3
YM
2727 (frame_highlight, frame_unhighlight): Activate/deactivate root
2728 control here.
2729 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
2730
2731 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
2732 New extern.
2733
9e5b2858
LT
27342005-04-15 Luc Teirlinck <teirllm@auburn.edu>
2735
2736 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
2737 (lisp): Use it.
2738 (SOME_MACHINE_LISP): Add tooltip.
2739
42c6741e
YM
27402005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2741
7ec64183
SM
2742 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
2743 Don't include TextEncodingConverter.h.
42c6741e
YM
2744 (mac_system_script_code, Vmac_system_locale): New variables.
2745 (syms_of_mac): Defvar them.
2746 (mac_get_system_locale): New function.
2747
7ec64183
SM
2748 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
2749 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 2750 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
2751 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
2752 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
2753
2754 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
2755 TextEncodingConverter.h.
2756
0614c575
ST
27572005-04-13 Steven Tamm <steventamm@mac.com>
2758
7e26f91b
KS
2759 * macterm.c (syms_of_macterm): Remove redundant definition of
2760 mac-pass-control-to-system.
0614c575 2761
203eb0aa
SM
27622005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2763
2764 * window.c (Fset_window_configuration): Be careful when you choose
2765 among several possible points for the new_current_buffer.
2766
a56e6111
YM
27672005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2768
2769 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
2770 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
2771 (Qlanguage_change) [MAC_OS]: New variable.
2772 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 2773 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
2774
2775 * macterm.c (mac_keyboard_text_encoding)
2776 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
2777 (XTread_socket): Store language-change event if keyboard script change
2778 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 2779 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 2780
7e26f91b 2781 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 2782
6695c528
RS
27832005-04-10 Richard M. Stallman <rms@gnu.org>
2784
2785 * emacs.c (standard_args): Rename --bare-bones to --quick.
2786 Add -D aka --basic-display.
2787
2788 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
2789
18e2d91f
RS
27902005-04-09 Richard M. Stallman <rms@gnu.org>
2791
2792 * keymap.c (where_is_internal): Convert a string used as event type
2793 into "(any string)".
2794
2795 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
2796 * fns.c (Vloads_in_progress): Add extern.
2797 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
2798
27992005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
2800
2801 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
2802
1cf21850
LK
28032005-04-09 Lute Kamstra <lute@gnu.org>
2804
2805 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
2806 within the accessible part of the buffer.
2807
bfd93240
KS
28082005-04-09 Kim F. Storm <storm@cua.dk>
2809
2810 * lread.c (readevalloop): Add args START and END as region in
2811 current buffer to read. Callers changed.
2812 When specified, narrow to this region only when reading,
2813 not during eval. Track next point to read from during eval.
2814 Also restore point to "real" buffer position before eval.
2815 (Feval_region): Don't save excursion and restriction here, and
2816 don't narrow to region. Just pass region to readevalloop.
2817 Note: Point is now preserved even when PRINTFLAG is nil.
2818
9ba27690
KS
28192005-04-08 Kim F. Storm <storm@cua.dk>
2820
2821 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
2822
73f0d996
KS
28232005-04-06 Kim F. Storm <storm@cua.dk>
2824
2825 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
2826
369f76bb
YM
28272005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2828
2829 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
2830 (Fmac_get_preference): Doc fix.
2831
203eb0aa
SM
2832 * macfns.c (Fx_create_frame, x_create_tip_frame):
2833 Add "fontset-mac" to fallback font/fontsets.
369f76bb 2834
2ba613a6
KS
28352005-04-04 Kim F. Storm <storm@cua.dk>
2836
4d5ddddc
KS
2837 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
2838
2ba613a6
KS
2839 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
2840 Call it again after autoload.
2841
1673df2e
JD
28422005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2843
2844 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
2845 mallopt.
2846
2847 * ralloc.c (r_alloc_init): Ditto.
2848
41639988
KH
28492005-04-01 Kenichi Handa <handa@m17n.org>
2850
1cf21850
LK
2851 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
2852 (Vascii_eqv_table): Extern them.
41639988
KH
2853
2854 * casetab.c (set_case_table): If standard is nonzero, setup
2855 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
2856
2857 * search.c (looking_at_1): Use current_buffer->case_canon_table,
2858 not DOWNCASE_TABLE.
2859 (string_match_1): Likewise.
2860 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
2861 Vascii_downcase_table.
2862 (fast_string_match_ignore_case): Likewise.
2863 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
2864 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
2865 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
2866 simple_translate.
2867
6ca53601
SM
28682005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2869
2870 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
2871 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
2872 Use XtNtopShadowPixel and XtNbottomShadowPixel.
2873 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
2874 really work and that breaks with some versions of Xaw3d.
2875
fafbb99d 28762005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
2877
2878 * coding.c (syms_of_coding): Fix previous change.
2879
6ca53601
SM
28802005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
2881
2882 * fileio.c (search_embedded_absfilename): Fix last change.
2883
bf762c98
KH
28842005-03-25 Kenichi Handa <handa@m17n.org>
2885
2886 * coding.c (syms_of_coding): Suggest to use set-coding-category in
2887 the docstring of coding-category-list.
2888
f793f885
KS
28892005-03-31 Kim F. Storm <storm@cua.dk>
2890
2891 * keyboard.c (Qmouse_fixup_help_message): New var.
2892 (syms_of_keyboard): Intern and staticpro it.
2893 (show_help_echo): Apply mouse-fixup-help-message to help string.
2894
c364fe19
KS
28952005-03-30 Kim F. Storm <storm@cua.dk>
2896
2897 * xdisp.c (display_line): Allow multiple overlay arrows in window.
2898
c70a4df6
SM
28992005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2900
2901 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
2902 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
2903 (Ffile_name_absolute_p): Use it.
2904 (search_embedded_absfilename): New fun, extracted from
2905 Fsubstitute_in_file_name. Use file_name_absolute_p.
2906 Free the pw data after use.
2907 (Fsubstitute_in_file_name): Use it.
2908 After cutting a prefix, re-check file-name-handler.
2909
6e7d0438
JR
29102005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
2911
6ca53601 2912 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
2913
2914 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
2915 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
2916
65671706
SM
29172005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2918
2919 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
2920 Use Fexit_minibuffer.
2921 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
2922
0de4dad4
SM
29232005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2924
781da985
SM
2925 * dired.c (Ffile_attributes): Add a missing gcpro.
2926
0de4dad4
SM
2927 * alloc.c (make_number): The arg can be bigger than `int'.
2928 * lisp.h (make_number): Make prototype more precise.
2929
2930 * process.c, dired.c (Vfile_name_coding_system)
2931 (Vdefault_file_name_coding_system):
2932 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
2933 (Vdefault_file_name_coding_system): Remove unused declarations.
2934
ff18668f
JD
29352005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2936
2937 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
2938 if it failed to pop up (Gnome "show pointer on ctrl" option makes
2939 menus fail to pop up).
2940
0de4dad4 29412005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
2942
2943 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 2944 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 2945
8df0ffbe
KS
29462005-03-22 Kim F. Storm <storm@cua.dk>
2947
2948 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
2949 * dispextern.h (lookup_derived_face): Fix prototype.
2950 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
2951
2952 * xdisp.c (handle_single_display_spec): Derive left-fringe and
2953 right-fringe face from fringe face.
2954
2955 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
2956 Derive face from fringe face.
2957
6ca30ba4
JD
29582005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2959
2960 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
2961
d615870a
DK
29622005-03-22 David Kastrup <dak@gnu.org>
2963
2964 * textprop.c (Fnext_char_property_change)
66347da7 2965 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
2966 (Fnext_single_char_property_change)
2967 (Fprevious_single_char_property_change): Check that limit is a
2968 number in strings.
2969 (Fnext_single_char_property_change): Coerce position to integer.
2970 (Fprevious_single_char_property_change): Same here.
2971
32b939ea
TTN
29722005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
2973
2974 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
2975
6027e473
SM
29762005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2977
2978 * frame.c (Fignore_event): Remove.
2979 (syms_of_frame): Don't defsubr it.
2980
2981 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
2982 redundant `ignore-event'.
2983
730f4d72
EZ
29842005-03-19 Eli Zaretskii <eliz@gnu.org>
2985
2986 * unexec.c (write_segment, unexec): Move these functions to avoid
2987 forward references (which cause errors with "gcc -gcoff").
2988
c7f6afd5
JD
29892005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2990
6027e473 2991 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 2992 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 2993
c7f6afd5
JD
2994 * xrdb.c (x_load_resources): Use different char *helv when I18N
2995 is present.
2996
db328182
KH
29972005-03-17 Kenichi Handa <handa@m17n.org>
2998
66347da7 2999 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 3000
211f2210
SM
30012005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3002
3003 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
3004 Use xic_create_fontsetname even for non-Motif menus.
3005 Don't forget to free the fontsetname.
3006
3007 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
3008
c7bd5d57
RS
30092005-03-17 Richard M. Stallman <rms@gnu.org>
3010
3011 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
3012
3013 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
3014 (Fmake_symbolic_link): Use G to read the new file name.
3015
3016 * callint.c (Finteractive): Document G option.
3017 (Fcall_interactively): Implement G option.
3018
3019 * buffer.c (buffer_lisp_local_variables): New function,
3020 broken out from Fbuffer_local_variables.
3021 (clone_per_buffer_values): Use buffer_lisp_local_variables.
3022
888953f1
SM
30232005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3024
3c916d65
SM
3025 * xfns.c (xic_create_fontsetname): Add `motif' argument.
3026 Always return a freshly allocated string.
3027 (xic_create_xfontset): Adjust call.
3028
3029 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
3030 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
3031 (dump_realized_face): Fix warning.
3032
9f9e5275
SM
3033 * emacs.c (Fkill_emacs): YAILOM.
3034
888953f1
SM
3035 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
3036
48502d68
YM
30372005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3038
3039 * mac.c (HASHKEY_TERMINAL): Remove.
3040 (HASHKEY_MAX_NID): New macro.
3041 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
3042 argument.
888953f1 3043 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
3044 (xrm_create_database, xrm_q_put_resource)
3045 (xrm_merge_string_database, xrm_q_get_resource_1)
3046 (xrm_q_get_resource): Change resource database representation so
3047 that it may not use multiple hash tables for a single database.
3048 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
3049
d5161e8c
SM
30502005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
3051
11a646cd
SM
3052 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
3053
3054 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
3055 locale-coding-system, as was already done for WINDOWSNT.
3056
d5161e8c
SM
3057 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
3058 translation for chars in the 0-255 range.
3059
568b6e41
LK
30602005-03-16 Lute Kamstra <lute@gnu.org>
3061
3062 * floatfns.c (Ffloor): Doc fix.
3063
469fb3cf
YM
30642005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3065
3066 * mac.c: Include macterm.h instead of directly including Carbon.h.
3067 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
3068 (Qarray, Qdictionary): New variables.
3069 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3070 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
3071 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
3072 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
3073 in callback for CFDictionaryApplyFunction.
3074 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3075 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3076 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
3077 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
3078 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
3079 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3080 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 3081 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
3082 (parse_binding, parse_component, parse_resource_name, parse_value)
3083 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
3084 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
3085 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
3086 New functions.
469fb3cf
YM
3087
3088 * macfns.c (mac_get_rdb_resource): Remove function.
3089 (x_get_string_resource): Use xrm_get_resource.
3090
3091 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
3092
3093 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
3094 name_list_element.
3095 (mac_make_rdb): Create resource database from preferences and
3096 argument string.
3097 (mac_term_init): Save resource database to cddr part of
3098 name_list_element.
3099
3100 * macterm.h (xrm_merge_string_database, xrm_get_resource)
3101 (xrm_get_preference_database): Add externs.
3102 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3103 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3104 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
3105
3106 * process.c (init_process): Change `#ifdef DARWIN' to `#if
3107 defined (DARWIN) || defined (MAC_OSX)'
3108
3109 * s/darwin.h (DARWIN): Don't define.
3110
6a3fac90
YM
31112005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3112
3113 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
3114 Remove unused variables.
3115 (syms_of_macfns): Don't initialize them. Likewise for
3116 Qface_set_after_frame_default. Defvar and initialize
3117 Vx_window_horizontal_drag_shape.
3118 (x_set_mouse_color): Change mouse pointer shape.
3119 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 3120 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
3121 (hourglass_started): New function (from xfns.c).
3122 (start_hourglass, cancel_hourglass): Put function body in #ifdef
3123 MAC_OSX.
3124 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
3125 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 3126 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
3127
3128 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
3129 Controls.h. Use ThemeCursor instead of CursHandle.
3130
d5161e8c
SM
3131 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
3132 Remove functions and declarations.
3133 (mac_set_colors): Take argument for saving background color.
3134 All callers changed.
6a3fac90
YM
3135 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
3136 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
3137 background color.
3138 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
3139 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
3140 Use SetThemeCursor.
6a3fac90
YM
3141 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
3142 indicator control to the upper-right corner of the window.
3143 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
3144 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
3145 (do_window_update): Update controls after updating content area.
3146 (mac_handle_window_event): Remove unused extern.
3147 (XTread_socket): Check both control handle and control part code
3148 to determine whether a scroll bar is clicked. Activate/deactivate
3149 root control instead of contained scroll bar controls.
3150 (make_mac_terminal_frame): Use ThemeCursor constants.
3151
d5161e8c
SM
3152 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
3153 New member hourglass_control.
6a3fac90 3154 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 3155 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 3156
a7321976
YM
31572005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3158
3159 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 3160 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
3161 laptops, and fn + `enter' on laptops.
3162
f7b758bd
SM
31632005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3164
3165 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
3166 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
3167 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
3168
3169 * xfns.c (xic_defaut_fontset): New constant.
3170 (xic_create_fontsetname): New function.
3171 Extracted from create_frame_xic. Try to generate a slightly
3172 better fontset.
3173 (xic_create_xfontset): Use it.
3174 (create_frame_xic): Simplify.
3175
dac24db4
SM
31762005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
3177
3178 * fileio.c (Fmake_symbolic_link): Fix last change.
3179
e0402468
RS
31802005-03-11 Richard M. Stallman <rms@gnu.org>
3181
3182 * fileio.c (Frename_file, Fadd_name_to_file)
3183 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
3184 expand the basename of FILE relative to it.
3185
fa815b14
KH
31862005-03-11 Kenichi Handa <handa@m17n.org>
3187
3188 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
3189 before calling setup_coding_system so that autoloading of a coding
3190 system work.
3191
817d354b
JD
31922005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3193
68a505ef
JD
3194 * xfns.c (hourglass_started): New function.
3195
3196 * dispextern.h: Declare hourglass_started.
3197
3198 * keyboard.c (Fexecute_extended_command): Restart hourglass
3199 after call to Fcompleting_read if already started.
3200
817d354b
JD
3201 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
3202 GTK main loop is entered in xterm.c, thus doing the redraw.
3203
b0a6f45c
KS
32042005-03-10 Kim F. Storm <storm@cua.dk>
3205
3206 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
3207
ee5d57b0
KH
32082005-03-08 Kenichi Handa <handa@m17n.org>
3209
3210 * frame.c (x_set_font): Call set_default_ascii_font if an
3211 available font is found.
3212
3213 * fontset.c (set_default_ascii_font): New function.
dac24db4 3214 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
3215
3216 * fontset.h (set_default_ascii_font): Extern it.
3217
f30c4a5c
KS
32182005-03-07 Kim F. Storm <storm@cua.dk>
3219
3fb26a86
KS
3220 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
3221 (clear_image_cache_count): New var.
3222 (redisplay_internal): Don't clear face and image caches in the
3223 middle of redisplay; do it afterwards.
3224
a54595d4
KS
3225 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
3226
f30c4a5c
KS
3227 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
3228 is valid. If not, clear phys_cursor_on_p and return.
3229
3d182f9d
AS
32302005-03-07 Andreas Schwab <schwab@suse.de>
3231
3232 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
3233
85d964de
RS
32342005-03-06 Richard M. Stallman <rms@gnu.org>
3235
3236 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
3237
3238 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
3239 (Feval, Ffuncall): Use CHECK_CONS_LIST.
3240
3241 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
3242
3243 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
3244 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
3245
3ff96c81
JL
32462005-03-05 Juri Linkov <juri@jurta.org>
3247
3248 * emacs.c (USAGE1): Replace Info node name "command arguments"
3249 with "emacs invocation".
3250 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
3251 allow arguments `--color' and `MODE' to be separated by space.
3252 Add --no-blinking-cursor, -nbc.
3253 (standard_args): Add -nbc, --no-blinking-cursor.
3254
64eb0083
TTN
32552005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3256
3257 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
3258 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
3259 * fileio.c (Fexpand_file_name) [VMS]:
3260 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
3261 * doc.c (munge_doc_file_name) [VMS]: Likewise.
3262 (Fsnarf_documentation): Call munge_doc_file_name.
3263
ad708ae5
TTN
32642005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3265
3266 * s/vms.h (FILE_SYSTEM_CASE): New macro.
3267 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
3268 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
3269
ba025f6d
YM
32702005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3271
3272 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
3273 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 3274
dac24db4 3275 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
3276
3277 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3278 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 3279 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
3280 (mac_clear_font_name_table): Move extern to macterm.h.
3281
3282 * macfns.c (install_window_handler): Move extern to macterm.h.
3283 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
3284 valid. Don't check !NILP (dir) because it is already checked with
3285 CHECK_STRING.
3286 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 3287 specifying the default location and obtaining the selected filename.
ba025f6d
YM
3288
3289 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3290
2313f861 3291 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
3292 are included via Carbon.h.
3293
dac24db4
SM
3294 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
3295 Define USE_CARBON_EVENTS to 1.
2313f861 3296 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
3297 (x_free_frame_resources): Call remove_window_handler for
3298 non-tooltip windows.
3299 [TARGET_API_MAC_CARBON]: Don't include headers that are included
3300 via Carbon.h.
3301 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3302 (mac_do_receive_dragUPP): New variables.
3303 (mac_handle_service_event, init_service_handler): Put declarations
3304 and definitions in #ifdef MAC_OSX.
3305 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
3306 drag-and-drop handler functions and register them.
3307 (remove_window_handler): New function.
dac24db4
SM
3308 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
3309 Use fsspec_to_posix_pathname.
ba025f6d
YM
3310 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
3311 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
3312 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
3313 Set default cursors.
ba025f6d
YM
3314 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
3315 init_service_handler or init_quit_char_handler.
3316 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
3317
3318 * macterm.h (install_window_handler, remove_window_handler)
3319 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
3320 (mac_clear_font_name_table): New externs.
ad708ae5 3321
c1558952
TTN
33222005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3323
3324 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
3325 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
3326 (Fexpand_file_name): Likewise.
3327
fa439170
TTN
33282005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3329
3330 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
3331 no longer special-case VMS. Add bogus return value.
3332
db2dacf6
KS
33332005-03-02 Kim F. Storm <storm@cua.dk>
3334
3335 * dispextern.h (XASSERTS): Define to 0 if not already defined.
3336 (xassert) [!XASSERTS]: Define dummy version.
3337
0870514c
KS
33382005-03-02 Kim F. Storm <storm@cua.dk>
3339
3340 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
3341 Reported by David Kastrup.
3342
6b640092
KS
33432005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
3344
3345 * xdisp.c (get_next_display_element): Fix control and escape
3346 glyph from display vector.
3347
f4a5a485
SM
33482005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
3349
3350 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
3351
85d964de
RS
33522005-02-27 Richard M. Stallman <rms@gnu.org>
3353
3354 * xdisp.c (fast_find_position): Rename END to BEG.
3355 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
3356
6e8db3ea
JD
33572005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3358
f4a5a485 3359 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
3360 gtk_window_resize and x_wm_set_size_hint.
3361
0f465b55
KS
33622005-02-25 Kim F. Storm <storm@cua.dk>
3363
3364 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
3365
3366 * xdisp.c (init_from_display_pos): Don't read past end of
3367 it->overlay_strings array.
3368
d5fb8dab 33692005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
3370
3371 * buffer.c (syms_of_buffer): Fix typo.
3372
b02c3eed
LK
33732005-02-23 Lute Kamstra <lute@gnu.org>
3374
3375 * buffer.c (Foverlay_buffer): Doc fix.
3376
c8500765
KS
33772005-02-22 Kim F. Storm <storm@cua.dk>
3378
b686dd59
KS
3379 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
3380 and symbol keys in alists and hash tables.
3381
c8500765
KS
3382 * xdisp.c (fast_find_position): Fix search for start of overlay.
3383
81c85b53
KS
33842005-02-21 Kim F. Storm <storm@cua.dk>
3385
3386 * window.c (window_scroll_pixel_based): When scrolling backwards,
3387 handle partial visible line at end of window even when we hit PT.
3388
f4a5a485 33892005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
3390
3391 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
3392
0dd5a842
KS
33932005-02-21 Kim F. Storm <storm@cua.dk>
3394
3395 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
3396 I think those asserts are bogus if buffer contains invisible text
3397 or images.
3398
d5fb8dab 33992005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
3400
3401 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
3402
0fba9f25
KS
34032005-02-20 Kim F. Storm <storm@cua.dk>
3404
3405 * xdisp.c (pos_visible_p): Be sure to move to the specified
3406 position. Always get the full ascent / descent of the
3407 corresponding row, to return reliable rtop and rbot values.
3408 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
3409 Must look one character back, as back_to_previous_line_start
3410 returns position after the newline.
3411 (move_it_vertically_backward): Fix heuristic for when to move further
3412 back in case line_height * 2/3 is larger than window height.
3413 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
3414 as it does not do anything anymore. Add arg current_matrix_p to
3415 use current matrix rather than desired matrix when set.
3416 (try_cursor_movement): Don't scroll to make cursor row fully
3417 visible if cursor didn't move. This avoids unexpected recentering
3418 in case of blinking cursor or accepting process output.
3419 Use current matrix to check cursor row visibility.
3420 (redisplay_window): Fix whether to recenter or move to top in case
3421 cursor line is taller than window height.
3422 (find_first_unchanged_at_end_row): Stop search if we reach a row
3423 which not enabled (instead of abort).
3424
b1c2adc3
KS
34252005-02-18 Kim F. Storm <storm@cua.dk>
3426
c2ee48fb
KS
3427 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
3428 to be nil in a :box attribute value list; customize prints that
3429 as lisp value when no box color is specified.
3430
b1c2adc3
KS
3431 * .gdbinit (pitx, pit): Pretty print display iterator.
3432 (prowx, prow): Pretty print glyph row.
3433 (pcursorx, pcursor): Pretty print a window cursor.
3434 (pwinx, pwin): Pretty print struct window.
3435
f102186f
SM
34362005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3437
3438 * alloc.c (BLOCK_BYTES): Harmless typo.
3439
9b516537
AS
34402005-02-17 Andreas Schwab <schwab@suse.de>
3441
3442 * xfns.c (hack_wm_protocols): Use correct type for last parameter
3443 of XGetWindowProperty to avoid aliasing issues.
3444 (Fx_window_property): Likewise.
3445
3446 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 3447 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
3448
3449 * xterm.c (handle_one_xevent): Use union of struct input_event and
3450 struct selection_input_event to avoid aliasing issues.
3451 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
3452
886b1418
KS
34532005-02-17 Kim F. Storm <storm@cua.dk>
3454
3455 * dispextern.h (enum it_method): New enum.
3456 (GET_FROM_*): Its members.
3457 (struct it): Change member method from function pointer to enum.
3458
3459 * xdisp.c (check_it, init_from_display_pos, handle_stop)
3460 (setup_for_ellipsis, handle_single_display_spec)
3461 (handle_composition_prop, next_overlay_string)
3462 (get_overlay_strings, reseat_1, reseat_to_string)
3463 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
3464 (in_display_vector_p, display_line, get_next_display_element):
3465 Change it->method from function pointer to enum.
3466 (get_next_element): New array to map it->method to function.
3467 (get_next_display_element): Use it.
3468 (set_iterator_to_next): Use switch instead of if/else chain.
3469
99ee2c6a 34702005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
3471
3472 * w32select.c: Summary: Thorough rework to implement Unicode
3473 clipboard operations and delayed rendering.
3474
3475 Drop last_clipboard_text and related code, keep track of
f4a5a485 3476 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
3477
3478 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
3479 (clipboard_owner, modifying_clipboard, cfg_coding_system)
3480 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
3481 (current_coding_system, current_requires_encoding)
f4a5a485
SM
3482 (current_num_nls, current_clipboard_type, current_lcid):
3483 New static variables.
52c7f9ee
JR
3484
3485 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
3486 (render, render_all, run_protected, lisp_error_handler)
3487 (owner_callback, create_owner, setup_config)
f4a5a485
SM
3488 (enum_locale_callback, cp_from_locale, coding_from_cp):
3489 New local functions.
52c7f9ee
JR
3490
3491 (term_w32select, globals_of_w32select): New global functions.
3492
3493 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
3494 clipboard_owner instead. Use delayed rendering and provide
3495 all text formats. Provide CF_LOCALE if necessary.
3496
3497 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
3498 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
3499 available. Force DOS line-ends for decoding.
3500
3501 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
3502
3503 (syms_of_w32select): Init and register new variables.
3504
3505 * w32.h: Add prototypes for globals_of_w32select and
3506 term_w32select. Make the neighboring K&R declarations into
3507 prototypes, too.
3508
3509 * emacs.c: Include w32.h to get function prototypes.
3510 (main): Call globals_of_w32select.
3511
886b1418 3512 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
3513
3514 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
3515
86e61586
KS
35162005-02-16 Kim F. Storm <storm@cua.dk>
3517
3518 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
3519 at end of display vector.
3520
6407f07b
RS
35212005-02-15 Richard M. Stallman <rms@gnu.org>
3522
3523 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
3524 for mode and header lines.
3525
3526 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
3527
3528 * keymap.h (describe_map_tree): Change decl.
3529
3530 * keyboard.c (command_loop_1): Always use safe_run_hooks
3531 to run Qdeferred_action_function.
3532
3533 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
3534 (describe_map, describe_vector): Likewise. When it's 1,
3535 don't omit shadowed bindings, instead mark them as shadowed.
3536
3537 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
3538 for describe_map_tree. Pass 1 for MENTION_SHADOW.
3539
3540 * data.c (Fsetq_default): Allow no arg case.
3541
3bb917bf
KH
35422005-02-14 Kenichi Handa <handa@m17n.org>
3543
3544 * coding.c (encode_coding_string): Always return a unibyte string.
3545 If NOCOPY is nonzero and there's no need of encoding, make STR
3546 unibyte directly.
3547
3548 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
3549 multibyte string, signal an error instead of aborting.
3550
e31d908f
DN
35512005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
3552
3553 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
3554
48e029b6
KS
35552005-02-12 Kim F. Storm <storm@cua.dk>
3556
3557 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
3558
c10bb00a
KS
35592005-02-10 Kim F. Storm <storm@cua.dk>
3560
3561 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
3562 if it moves outside window or it doesn't display text.
3563
9ca0f64a
KS
35642005-02-09 Kim F. Storm <storm@cua.dk>
3565
3566 * undo.c (Fprimitive_undo): Check that undo function does not
3567 switch buffer.
3568
b8d6f4af
JD
35692005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3570
3571 * xselect.c (selection_data_to_lisp_data): For the special case
3572 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
3573 (x_property_data_to_lisp, selection_data_to_lisp_data):
3574 Comment update: data must be array of int for format == 32.
b8d6f4af 3575
3419757d
SM
35762005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3577
3578 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
3579
3a441526
JD
35802005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3581
fc34503b
JD
3582 * xfns.c (Fx_change_window_property): Use long array when format is 32.
3583 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
3584 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
3585 (x_set_tool_bar_lines): Check that width and height is greater than
3586 zero before clearing area.
fc34503b
JD
3587
3588 * xselect.c (x_reply_selection_request): Pass long array to
3589 XChangeProperty so that 64 bit longs are handeled correctly.
3590 (x_get_window_property): If format is 32 and long is bigger than 32
3591 bits convert data from XGetWindowProperty from long array to int array.
3592 (lisp_data_to_selection_data): When the input is a vector and the
3593 format is 32, allocate a long array even if long is bigger than 32 bits.
3594 (x_fill_property_data): Use char, short and long as the man page
3595 for XChangeProperty specifies. This way the data returned is OK for
3596 both 32 and 64 bit machines.
3597 (x_handle_dnd_message): Calculate size correctly even for 64 bit
3598 machines.
3599 (Fx_send_client_event): Undo change from 2005-02-05,
3600 x_fill_property_data now handles that case.
3601
3419757d 3602 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
3603 reason for the approach in the code.
3604
82ec225b
KS
36052005-02-07 Kim F. Storm <storm@cua.dk>
3606
3607 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
3608
ba2c991c
RS
36092005-02-06 Richard M. Stallman <rms@gnu.org>
3610
3611 * eval.c (Frun_hook_with_args)
3612 (Frun_hook_with_args_until_success)
3613 (Frun_hook_with_args_until_failure): Doc fixes.
3614
e120ea40
AS
36152005-02-05 Andreas Schwab <schwab@suse.de>
3616
3419757d 3617 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 3618
31f16913
JD
36192005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3620
3621 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
3622 the longs in a XClientMessageEvent correctly when long is 64 bits.
3623
6082a820
EZ
36242005-02-05 Eli Zaretskii <eliz@gnu.org>
3625
3626 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
3627 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
3628
0e95095b
JD
36292005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3630
3631 * xmenu.c (menubar_selection_callback): Force out GTK buffered
3632 events so the menu event comes after them. This is to prevent sit-for
3633 from exiting on buffered events directly after a menu selection,
3634 lisp code for Help => About Emacs uses sit-for.
3635
3636 * gtkutil.c (create_menus): Connect selection-done event instead of
3637 the deactivate event to deactivate_cb. This will make the last
3638 leave event come before the call to deactivate_cb, so the leave
3639 event does not make sit-for exit after a menu selection.
3640
5bb6a3c1
KS
36412005-02-03 Kim F. Storm <storm@cua.dk>
3642
3643 * dispnew.c (build_frame_matrix_from_leaf_window)
3644 [!GLYPH_DEBUG]: Fix xassert.
3645
3646 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
3647
3648 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3649
e9859e26
YM
36502005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3651
3652 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
3653 the compiling OS version.
3654
3655 * macfns.c (x_create_tip_frame): Likewise.
3656
3419757d 3657 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 3658
4e07258f
RS
36592005-02-03 Richard M. Stallman <rms@gnu.org>
3660
3661 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
3662
3663 * xdisp.c (echo_area_display): Clear echo_message_buffer.
3664
3665 * buffer.c (Fbury_buffer): Doc fix.
3666
4a34b529
ST
36672005-02-02 Steven Tamm <steventamm@mac.com>
3668
7e26f91b 3669 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 3670 xassert being uncondition, but predicate is.
7e26f91b 3671 * dispnew.c (update_window): Fix compile error due to
f6c62d96 3672 xassert being uncondition, but predicate is.
4a34b529 3673
d78f30b8
MB
36742005-02-02 Miles Bader <miles@gnu.org>
3675
3676 * dispextern.h (xassert): Enable unconditionally.
3677
b044278d
KS
36782005-02-02 Kim F. Storm <storm@cua.dk>
3679
3680 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
3681
56072160
KH
36822005-02-02 Kenichi Handa <handa@m17n.org>
3683
3684 * casefiddle.c (casify_object): Enable changing characters of
3685 different byte length.
3686 (casify_region): Fix loop condition, args to replace_range_2, and
3687 update opoint_byte.
3688
f4a5a485 3689 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 3690
5e1674c5
KS
36912005-02-01 Kim F. Storm <storm@cua.dk>
3692
3693 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
3694 stack before calling handle_display_prop.
3695
fb89c330
KS
36962005-01-31 Kim F. Storm <storm@cua.dk>
3697
3698 * undo.c (Qapply): New lisp var.
3699 (syms_of_undo): Intern and staticpro it.
3700 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
3701 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
3702
3703 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3704
7bf72fa6
JH
37052005-01-30 Jesper Harder <harder@phys.au.dk>
3706
a050b1a9
KS
3707 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
3708 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 3709
03c64f2e
LT
37102005-01-29 Luc Teirlinck <teirllm@auburn.edu>
3711
3712 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 3713 Increase value to 3 Meg.
03c64f2e 3714
49b8b5dc
JD
37152005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3716
3717 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
3718 button events are not received otherwise.
3719
5a92a9eb
RS
37202005-01-29 Richard M. Stallman <rms@gnu.org>
3721
3722 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3723
3724 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
3725
5c243ee4
SM
37262005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
3727
3728 * keymap.c (access_keymap): YAILOM.
3729
caf533af
KS
37302005-01-27 Kim F. Storm <storm@cua.dk>
3731
3732 * xdisp.c (get_phys_cursor_geometry): New function to calculate
3733 phys cursor position and size for hollow cursor. Position is
3734 aligned with get_glyph_string_clip_rect and ensures that a hollow
3735 cursor is shown, even when the actual glyph is not visible.
3736
3737 * dispextern.h (get_phys_cursor_geometry): Add prototype.
3738
3739 * xterm.c (x_clip_to_row): Ensure y >= 0.
3740 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3741
3742 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3743
3744 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3745
043f7f73
SM
37462005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
3747
3748 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
3749
889f3641
KS
37502005-01-27 Kim F. Storm <storm@cua.dk>
3751
3752 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
3753 glyph, even when row is only partially visible and actual cursor
3754 position is not visible.
3755
29099c2f
RS
37562005-01-24 Richard M. Stallman <rms@gnu.org>
3757
3758 * xterm.c (x_error_quitter): No longer static, and moved after
3759 x_error_handler.
3760
6adb6f01
KS
37612005-01-24 Kim F. Storm <storm@cua.dk>
3762
3763 * xdisp.c (move_it_by_lines): If we move forward after going too
3764 far back, cancel move if end position is same as start position.
3765
4d904fa0
ST
37662005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3767
3768 * dispextern.h (struct glyph_string): New members clip_head and
3769 clip_tail.
6adb6f01 3770
4d904fa0
ST
3771 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
3772 region to the area between clip_head and clip_tail.
3773 (draw_glyphs): Record the area that need to be actually redrawn to
3774 the new variables clip_head and clip_tail when there are
3775 overhangs. Set values of these variables to the corresponding
3776 members in struct glyph_string. Refine x coordinates for
3777 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 3778
4d904fa0
ST
3779 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
3780
3781 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
3782 QDTextBounds.
3783 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 3784 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 3785 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 3786 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 3787
f2417699
KS
37882005-01-24 Kim F. Storm <storm@cua.dk>
3789
6f67f013
KS
3790 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
3791 direction if window height was smaller than next-screen-context-lines.
3792 Now always scroll at least one line in the requested direction.
3793 Ensure that we actually do scroll backwards when requested to do so.
3794
f2417699
KS
3795 * xdisp.c (redisplay_window): Only try to make cursor line fully
3796 visible once (to avoid redisplay loop).
3797
a354b72c
KS
37982005-01-23 Kim F. Storm <storm@cua.dk>
3799
6b3d88f7 3800 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 3801 partially visible rows.
6b3d88f7
KS
3802 (window_scroll_pixel_based): Adapt to that change.
3803
5c20cae2
KS
3804 * window.c (window_scroll_pixel_based): Force moving to next line
3805 if scrolling doesn't move start point, e.g. if looking at tall image.
3806
a354b72c 3807 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
3808 Clear last_height before calling line_bottom_y to get real height.
3809 Fix calculation of y.
a354b72c 3810
d9e7c622
ST
38112005-01-22 Steven Tamm <steventamm@mac.com>
3812
3813 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 3814 (DARWIN): Define.
7e26f91b 3815
d9e7c622
ST
3816 * process.c (init_process): Default process-connection-type to
3817 nil on darwin 6 or less, t if it is 7 or higher. This way the
3818 broken pty behavior is still allowed on darwin 6 for interactive
3819 processes for people that know what they are doing.
3820
d00e399a
KS
38212005-01-22 Kim F. Storm <storm@cua.dk>
3822
3823 * window.c (auto_window_vscroll_p): New boolean.
3824 (syms_of_window): DEFVAR_BOOL it.
3825 (Fpos_visible_in_window_p): Extend return value to include RTOP
3826 and RBOT values if FULLY is nil.
3827 (window_scroll_pixel_based): Adjust vscroll for partially visible
3828 rows if auto_window_vscroll_p is set.
3829 (Fset_window_vscroll): Do nothing if vscroll is not modified.
3830
3831 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
3832 to return number of partially invisible pixels at top and bottom
3833 of the dislay row at POS.
3834
3835 * lisp.h (pos_visible_p): Fix prototype.
3836
f95a20e7
RS
38372005-01-21 Richard M. Stallman <rms@gnu.org>
3838
3839 * fileio.c (Fcopy_file): Doc fix.
3840
eee141ce
JD
38412005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3842
3843 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
3844 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
3845 start of function for older compilers.
3846
6f771c32
RS
38472005-01-20 Richard M. Stallman <rms@gnu.org>
3848
3849 * editfns.c (Fmessage): If arg is "", return "" (as before).
3850
3851 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
3852
3853 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
3854 variable.
3855
a15252fd
ST
38562005-01-20 Steven Tamm <steventamm@mac.com>
3857
043f7f73 3858 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
3859 (init_editfns): Assign new variable operating-system-release
3860 based on call to uname if available.
043f7f73 3861 (get_operating_system_release): Add function to
d00e399a 3862 allow c-level access to operating system release.
a15252fd
ST
3863
3864 * config.h: Regenerated.
3865
043f7f73
SM
3866 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
3867 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
3868 using ptys as '7'.
3869
3d6a4b2d
KS
38702005-01-20 Kim F. Storm <storm@cua.dk>
3871
62fc9b0f
KS
3872 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
3873
c310aca4
KS
3874 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
3875 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
3876
3877 * macterm.c (x_draw_glyph_string_box): Likewise.
3878
3879 * w32term.c (x_draw_glyph_string_box): Likewise.
3880
3d6a4b2d
KS
3881 * indent.c (Fvertical_motion): Temporarily disable selective display.
3882
27c8be45
KS
38832005-01-19 Kim F. Storm <storm@cua.dk>
3884
77db5cf3
KS
3885 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
3886 image property.
3887
27c8be45
KS
3888 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
3889
81f498dc
KS
38902005-01-18 Kim F. Storm <storm@cua.dk>
3891
3892 * xdisp.c (fast_find_position): Backtrack to find first row if
3893 charpos is inside a display overlay that spans multiple lines.
3894
1cdb0707
KH
38952005-01-18 Kenichi Handa <handa@m17n.org>
3896
3897 * coding.c (decode_coding_iso2022): Translate invalid codes if
3898 translation-table is specified.
3899
677159ce
KS
39002005-01-18 Kim F. Storm <storm@cua.dk>
3901
3902 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
3903 change. If handle_display_prop indicates newline is replaced by
3904 image or text, move back to start of relevant overlay or interval
3905 and continue scan from there. Simplify.
3906
977284cc
KS
39072005-01-17 Kim F. Storm <storm@cua.dk>
3908
043f7f73
SM
3909 * dispnew.c (mode_line_string, marginal_area_string):
3910 Fix off-by-one error in search for glyph.
977284cc 3911
e24531b7
KS
39122005-01-16 Kim F. Storm <storm@cua.dk>
3913
3914 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
3915
5ddd7664
ST
39162005-01-16 Steven Tamm <steventamm@mac.com>
3917
043f7f73 3918 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 3919
fc2ff44b
AS
39202005-01-16 Andreas Schwab <schwab@suse.de>
3921
3922 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
3923
50af5100
JD
39242005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3925
3926 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
3927 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
3928
a2d5fca0
JD
39292005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3930
3931 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
3932 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
3933 New flags for readable_events.
043f7f73 3934 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
3935 (tracking_off): Call readable_events and get_input_pending with
3936 flag READABLE_EVENTS_DO_TIMERS_NOW.
3937 (readable_events): Move code from old readable_filtered_events here,
3938 but check new READABLE_EVENTS_* in argument flags instead of previous
3939 two boolean arguments do_timers_now and filter_events.
3940 If we are doing mouse tracking and the mouse moved, return only if
3941 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
3942 (swallow_events): Call get_input_pending with flag
3943 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 3944 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
3945 here. Replace boolean arguments do_timers_now, filter_events with
3946 flags, and pass flags to readable_events. Document new
3947 READABLE_EVENTS_* flags.
3948 (detect_input_pending_ignore_squeezables): New function.
3949 (detect_input_pending_run_timers): Call get_input_pending with flag
3950 READABLE_EVENTS_DO_TIMERS_NOW.
3951 (Finput_pending_p): Call get_input_pending with flags
3952 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
3953
3954 * dispnew.c (update_window, update_frame_1): Replace calls to
3955 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 3956 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
3957 mouse movements.
3958
3959 * lisp.h: Declare detect_input_pending_ignore_squeezables.
3960
42afbcda
ST
39612005-01-15 Steven Tamm <steventamm@mac.com>
3962
e24531b7
KS
3963 * macterm.c (Vmac_use_core_graphics): Declare variable for
3964 mac-allow-anti-aliasing.
3965 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 3966 (mac_draw_string_common): Use core graphics text rendering if
0530c679 3967 mac-allow-anti-aliasing is enabled.
743d0696 3968
42afbcda
ST
3969 * macfns.c (Fx_file_dialog): Save As dialog includes only the
3970 file name in the text box.
3971
9cdd4884
ST
39722005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3973
043f7f73
SM
3974 * macfns.c (x_set_foreground_color, x_set_background_color):
3975 Sync with xfns.c.
9cdd4884
ST
3976 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
3977 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
3978 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
3979
88948d55
KS
39802005-01-14 Kim F. Storm <storm@cua.dk>
3981
3982 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
3983
20d6de82
RS
39842005-01-13 Richard M. Stallman <rms@gnu.org>
3985
3986 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
3987 if Voverriding_terminal_local_map is non-nil.
3988
3989 * keyboard.c (syms_of_keyboard): Doc fix.
3990
f75a592e
KS
39912005-01-13 Kim F. Storm <storm@cua.dk>
3992
3993 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 3994 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 3995
28f94a34
RS
39962005-01-12 Richard M. Stallman <rms@gnu.org>
3997
3998 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
3999 face property for characters that don't specify one.
4000
4001 * fns.c (Frequire): Record in load-history unconditionally.
4002
57a230b1
KS
40032005-01-10 Kim F. Storm <storm@cua.dk>
4004
4005 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
4006
4007 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
4008 Callers changed.
4009 Add support to merge with lisp face id too (if face_name is t).
4010
4011 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4012 Don't lookup lface_id from display table glyphs here; instead use
4013 merge_faces to merge the lisp face id into current face.
4014
8ab2c119
KS
40152005-01-09 Kim F. Storm <storm@cua.dk>
4016
4017 * dispextern.h (struct it): New member dpvec_face_id.
4018 (merge_into_realized_face): Add prototype.
4019
4020 * xfaces.c (merge_into_realized_face): New function. Used to
4021 merge escape-glyph face or face from display table into current face.
4022
4023 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
4024 (syms_of_xdisp): DEFVAR_LISP it.
4025 (escape_glyph_face): Remove var.
4026 (redisplay_window): Don't initialize it.
4027 (setup_for_ellipsis, get_next_display_element):
4028 Set it->dpvec_face_id to -1.
4029 (get_next_display_element): Test Vshow_nonbreak_escape.
4030 Do not setup escape_glyph_face.
4031 Properly merge escape-glyph face or face from display table with
043f7f73
SM
4032 current face for escape and control characters.
4033 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
4034 element of display vector.
4035 (next_element_from_display_vector): If it->dpvec_face_id is set,
4036 use that instead of lface_id from glyph itself.
4037
e0910857
JD
40382005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4039
4040 * xterm.h (struct x_output): New member, toolbar_detached.
4041
4042 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
4043 38.
4044 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
4045 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
4046 (xg_create_tool_bar): Initialize toolbar_detached.
4047 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
4048 toolbar_detached is zero.
4049
ff59904a
JD
40502005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4051
9b85e63d
JD
4052 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
4053 gtk_menu_popup if not for_click, so callbacks for the menu are called.
4054
ff59904a
JD
4055 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
4056 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 4057 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
4058
4059 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 4060 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
4061 XFLOAT_DATA to get extract number from Lisp object.
4062
f9a23a6f
KS
40632005-01-07 Kim F. Storm <storm@cua.dk>
4064
4065 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
4066 Set stop_charpos to current charpos instead of 0.
4067
28f94a34
RS
40682005-01-06 Nick Roberts <nickrob@snap.net.nz>
4069
4070 * xdisp.c (Fformat_mode_line): First arg now required.
4071
a6fffcdc
ST
40722005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4073
4074 * macterm.c (XLoadQueryFont): Correctly handle 0 size
4075 font widths that are returned from some Japanese fonts.
4076
c35b0c6b
KS
40772005-01-06 Kim F. Storm <storm@cua.dk>
4078
4079 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
4080 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
4081 (destroy_fringe_bitmap): Set fringe_faces element to nil.
4082 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
4083 fringe_faces array and init elements to nil.
4084 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
4085 non-persistent face id.
4086 (mark_fringe_data): New function for GC.
4087
4088 * alloc.c (mark_fringe_data): Declare extern.
4089 (Fgarbage_collect): Call mark_fringe_data.
4090
4091 * alloc.c (overrun_check_free): Invalidate freed memory if
4092 XMALLOC_CLEAR_FREE_MEMORY is defined.
4093
e0e76ab9
ST
40942005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4095
4096 * macfns.c: Include sys/param.h.
4097 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
4098 and function.
4099 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
4100 of filename string. Set event callback function when creating
4101 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 4102 of apple event descriptor record if failed to create it.
e0e76ab9
ST
4103
4104 * macterm.c: Include sys/param.h.
4105 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
4106 kEventWindowUpdate.
4107 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
4108 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
4109 of FSSpec from apple event descriptor record.
4110 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
4111 size of filename string.
4112 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
4113 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
4114 file dialog is in action.
043f7f73
SM
4115 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
4116 Reject only when there are no filename items. Set background color
e0e76ab9 4117 before (un)highlighting the window below the dragged items.
2313f861 4118 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 4119
043bc640
KH
41202005-01-05 Romain Francoise <romain@orebokech.com>
4121
4122 * term.c (encode_terminal_code): Fix buffer size computation.
4123
dd496df6
RS
41242005-01-04 Richard M. Stallman <rms@gnu.org>
4125
4126 * xdisp.c (Fformat_mode_line): Doc fix.
4127
026cdede
SM
41282005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4129
4130 * alloc.c (refill_memory_reserve): Move.
4131 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
4132 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
4133
d57c7572
RS
41342005-01-03 Richard M. Stallman <rms@gnu.org>
4135
4136 * window.c (window_scroll_pixel_based): Don't correct preserve_y
4137 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
4138
b14f868c
JR
41392005-01-03 Jason Rumney <jasonr@gnu.org>
4140
4141 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
4142 fontp->space_width to FONT_WIDTH so they are valid.
4143
4144 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 4145 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
4146 their appropriate values.
4147
4148 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4149 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
4150 fontp->space_width.
4151
e169f939
ST
41522005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4153
4154 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
4155 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
4156 metrics for max and min bounds.
4157 (x_load_font): Correctly calculate average font width metrics.
4158
19996af4
RS
41592005-01-02 Richard M. Stallman <rms@gnu.org>
4160
4161 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
4162
42d02da0
JD
41632004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4164
4165 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
4166
1db7dd46
RS
41672004-12-31 Richard M. Stallman <rms@gnu.org>
4168
b437860a
RS
4169 * xdisp.c (setup_for_ellipsis, get_next_display_element):
4170 Set it->ellipsis_p to 1 or 0.
4171 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 4172 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
4173 (cursor_row_p): If PT's at the end of the ellipsis the row
4174 ends within, don't display cursor on this row.
4175
4176 * dispextern.h (struct it): New element ellipsis_p.
4177 (struct glyph_row): New element ends_in_ellipsis_p.
4178
4179 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
4180 position if we're reading from something other than the buffer.
4181
1db7dd46
RS
4182 * window.c (window_scroll_pixel_based): Only look at
4183 Vscroll_preserve_screen_position if the old PT can't be kept.
4184 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4185
1225f637
KS
41862004-12-30 Kim F. Storm <storm@cua.dk>
4187
4188 * xdisp.c (get_line_height_property): New function extracted from
4189 original calc_line_height_property.
4190 (calc_line_height_property): Rework. Handle t and (nil . ratio).
4191 (x_produce_glyphs): Use them to handle line-height and
4192 line-spacing according to new height spec.
4193 (Qtotal): Remove.
33b2f4ea 4194 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 4195
c243063e
KH
41962004-12-30 Kenichi Handa <handa@m17n.org>
4197
4198 * fileio.c (Finsert_file_contents): Don't use
4199 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 4200 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
4201
4202 * fontset.h (struct font_info): New members space_width and
4203 average_width.
4204
4205 * frame.h (struct frame): New member space_width.
4206 (FRAME_SPACE_WIDTH): New macro.
4207
4208 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
4209
4210 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4211 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 4212 fontp->space_width.
043f7f73 4213 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
4214 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
4215
4216 * xdisp.c (x_produce_glyphs): Calculate tab width by
4217 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
4218
456e761b
ST
42192004-12-29 Sanghyuk Suh <han9kin@mac.com>
4220
4221 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 4222 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 4223
188577ce
LT
42242004-12-29 Luc Teirlinck <teirllm@auburn.edu>
4225
4226 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
4227
99ec74b9
RS
42282004-12-29 Richard M. Stallman <rms@gnu.org>
4229
4230 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
4231
30c92fab
ST
42322004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4233
4234 * macfns.c (install_window_handler): Modify extern to return OSErr
4235 value.
4236 (mac_window): Handle return value of install_window_handler.
4237
4238 * macterm.c (reflect_byte): Remove function.
4239 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
4240 Lookup table instead.
4241 (mac_do_font_lists): Simplify calculation of the longest
4242 nonspecial string.
4243 (init_mac_drag_n_drop): Remove function and declaration.
4244 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
4245 init_mac_drag_n_drop.
4246 (mac_do_track_drag): New function and declaration.
4247 (install_window_handler): Return OSErr value.
043f7f73
SM
4248 (install_window_handler) [TARGET_API_MAC_CARBON]:
4249 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 4250 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
4251 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
4252 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 4253
4b982924
DN
42542004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4255
4256 * coding.c (decode_coding): Fix previous change.
4257
93fdf45f
RS
42582004-12-28 Richard M. Stallman <rms@gnu.org>
4259
4260 * xdisp.c (back_to_previous_visible_line_start):
4261 Don't call handle_display_prop.
4262
5bdca8af
DN
42632004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4264
4265 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
4266 (decode_coding_emacs_mule, encode_coding_emacs_mule)
4267 (decode_coding_iso2022, encode_designation_at_bol)
4268 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
4269 (decode_coding): Constify arguments and local vars.
4270
33385c6f
JD
42712004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4272
4273 * xmenu.c (popup_get_selection): Only pop down dialogs
4274 on C-g and Escape.
95bdef2e 4275 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
4276 (create_and_show_popup_menu, create_and_show_dialog):
4277 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 4278
b15325b2
ST
42792004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4280
4281 * dispextern.h: Change HAVE_CARBON to MAC_OS.
4282 (struct glyph_string): Likewise.
a2c7e69a 4283
b15325b2
ST
4284 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
4285 mac_initialize.
a2c7e69a 4286
b15325b2
ST
4287 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
4288 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 4289
b15325b2 4290 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 4291
b15325b2
ST
4292 * frame.c (x_set_frame_parameters, x_report_frame_params)
4293 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
4294 (x_set_border_width, Vdefault_frame_scroll_bars):
4295 Change HAVE_CARBON to MAC_OS.
a2c7e69a 4296
b15325b2
ST
4297 * image.c [MAC_OS]: Include sys/stat.h.
4298 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
4299 QuickTimeComponents.h.
a2c7e69a 4300
b15325b2
ST
4301 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
4302 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 4303 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
4304 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
4305 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4306 (mac_clear_font_name_table): Add extern.
4307 (Fmac_clear_font_name_table): New defun.
4308 (syms_of_mac): Defsubr it.
4309 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
4310 [MAC_OSX] (select_and_poll_event): New function.
4311 [MAC_OSX] (sys_select): Use it.
4312 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
4313 [MAC_OSX && SELECT_USE_CFSOCKET]
4314 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
4315 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
4316 RunLoop for simultaneously monitoring two kinds of inputs, window
4317 events and process outputs, without periodically polling.
a2c7e69a 4318
b15325b2
ST
4319 * macfns.c (mac_initialized): Remove extern.
4320 (stricmp): Put in #if 0. All callers changed to use xstricmp in
4321 xfaces.c.
043f7f73
SM
4322 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
4323 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
4324 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
4325 (mac_get_rdb_resource): New function (from w32reg.c).
4326 (x_get_string_resource): Use it.
4327 (install_window_handler): Add extern.
4328 (mac_window): New function.
043f7f73
SM
4329 (Fx_create_frame): Use it instead of make_mac_frame.
4330 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
4331 (Fx_open_connection, Fx_close_connection): New defuns.
4332 (syms_of_macfns): Defsubr them.
043f7f73
SM
4333 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
4334 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
4335 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
4336 (x_create_tip_frame): Don't call ShowWindow.
4337 (Fx_show_tip): Call ShowWindow.
4338 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
4339 TARGET_API_MAC_CARBON'.
4340 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
4341 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 4342
043f7f73 4343 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
4344 (Window): Typedef to WindowPtr and move outside `#if
4345 TARGET_API_MAC_CARBON'.
4346 (XSizeHints): New struct.
a2c7e69a 4347
b15325b2
ST
4348 * macterm.c (x_update_begin, x_update_end)
4349 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
4350 frame.
4351 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4352 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
4353 (construct_mouse_click): Put in #if 0.
4354 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
4355 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
4356 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4357 (activate_scroll_bars, deactivate_scroll_bars)
4358 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
4359 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
4360 if the position is neither user-specified nor program-specified.
4361 (x_free_frame_resources): Free size_hints.
043f7f73 4362 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
4363 (mac_clear_font_name_table): New function.
4364 (mac_do_list_fonts): Initialize font_name_table if needed.
4365 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
4366 around mac_do_list_fonts.
4367 (mac_unload_font): New function.
4368 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
4369 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
4370 and definitions with #if TARGET_API_MAC_CARBON.
4371 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
4372 (install_window_handler): Add decl.
4373 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
4374 window. Use UpdateControls. Get the rectangle that should be
4375 updated and restrict the target of expose_frame to it.
043f7f73 4376 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
4377 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
4378 (do_zoom_window): Don't use x_set_window_size.
4379 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
4380 (install_window_handler): New function.
4381 [!USE_CARBON_EVENTS] (mouse_region): New variable.
4382 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
4383 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
4384 GetEventDispatcherTarget inside BLOCK_INPUT.
4385 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
4386 Update mouse_region when mouse is moved.
4387 (make_mac_frame): Remove.
043f7f73
SM
4388 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
4389 Initialize mouse pointer shapes. Change values of f->left_pos and
4390 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
4391 Don't call ShowWindow.
b15325b2
ST
4392 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
4393 Vinvocation_name and Vsystem_name.
4394 (mac_make_rdb): New function (from w32term.c).
4395 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
4396 already been opened. Don't pass argument to
4397 mac_initialize_display_info. Don't set dpyinfo->height/width.
4398 Add entries to x_display_list and x_display_name_list.
4399 (x_delete_display): New function.
4400 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
4401 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
4402
b15325b2
ST
4403 * macterm.h (check_mac): Add extern.
4404 (struct mac_output): New member size_hints.
4405 (FRAME_SIZE_HINTS): New macro.
4406 (mac_unload_font): Add extern.
a2c7e69a 4407
b15325b2 4408 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 4409
1d1c7e75 4410 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 4411
92d2947b
RS
44122004-12-27 Richard M. Stallman <rms@gnu.org>
4413
043f7f73 4414 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
4415 (syms_of_buffer): Don't defsubr it.
4416
4417 * process.c (list_processes_1): Set undo_list instead
4418 of calling Fbuffer_disable_undo.
4419
043f7f73 4420 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 4421 single_display_prop_string_p.
043f7f73 4422 (single_display_spec_intangible_p): Rename from
92d2947b 4423 single_display_prop_intangible_p.
043f7f73 4424 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
4425 Rewritten to be easier to understand.
4426
a2c7e69a 4427 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
4428 and variables get just NAME.
4429
4430 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4431
4432 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4433 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
4434 (Qdefvar): Var deleted.
4435 (syms_of_eval): Don't initialze it.
4436
4437 * lread.c (syms_of_lread) <load-history>: Doc fix.
4438
9f6fcdc5
JD
44392004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4440
4441 * xmenu.c (popup_get_selection): Pop down on C-g.
4442 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
4443 pops down menu on C-g.
4444 (xdialog_show): If dialog popped down and no button in the dialog was
4445 pushed, call Fsignal to quit.
4446 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
4447 Fsignal to quit.
4448
1d1c7e75 4449 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
4450
4451 * gtkutil.c (xg_initialize): Install bindings for C-g so that
4452 dialogs and menus pop down.
4453
d8ca23a0
KH
44542004-12-27 Kenichi Handa <handa@m17n.org>
4455
4456 * coding.c (code_convert_region): Fix calculation of `ratio'.
4457
857ae68b
JD
44582004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4459
133c0116
JD
4460 * gtkutil.c (update_frame_tool_bar): Make the value of
4461 tool-bar-button-margin control margins of images in tool bar.
4462
857ae68b
JD
4463 * alloc.c (check_depth): New variable.
4464 (overrun_check_malloc, overrun_check_realloc): Only add
4465 overhead and write check pattern if check_depth is 1 (to handle
4466 recursive calls). Increase/decrease check_depth in entry/exit.
4467 (overrun_check_free): Only check for overhead if check_depth is 1.
4468 Increase/decrease check_depth in entry/exit.
4469
bd55c35c
JD
44702004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4471
4472 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
4473 before touching input_available_clear_time, to avoid accessing it
4474 from multiple threads.
4475
66354420
JR
44762004-12-23 Jason Rumney <jasonr@gnu.org>
4477
4478 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
4479 of JPEG library.
4480
55f4edbc
RS
44812004-12-22 Richard M. Stallman <rms@gnu.org>
4482
4483 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
4484
4485 * lisp.h (Vundo_outer_limit): Fix decl.
4486
4487 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
4488 Uses changed.
4489 (syms_of_undo): Initialize appropriately.
4490 (truncate_undo_list): If it's nil, there's no limit.
4491
7a0ea9e3
KH
44922004-12-22 Kenichi Handa <handa@m17n.org>
4493
4494 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
4495
fda2922a
RS
44962004-12-21 Richard M. Stallman <rms@gnu.org>
4497
4498 * eval.c (unwind_to_catch): Clear immediate_quit.
4499
4500 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
4501 specially as `\ ' and `\-'.
4502
4503 * keyboard.c (kbd_buffer_store_event_hold):
4504 In the code for while-no-input, handle immediate_quit.
4505
4506 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
4507 Call that at the very start.
043f7f73 4508 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
4509 (syms_of_alloc): Don't define undo-limit,
4510 undo-strong-limit and undo-outer-limit here.
4511
4512 * undo.c (truncate_undo_list): Return void.
4513 Take just one argument, the buffer.
4514 Make it current, and inhibit recursive GC.
4515 Access and update the undo list directly; return void.
4516 Refer to the undo...limit variables directly.
4517 Test undo_outer_limit only after counting the whole current command.
4518 When it's exceeded, call the function in undo-outer-limit-function.
4519 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
4520 (Vundo_outer_limit_function): New variable.
4521 (syms_of_undo): Define undo-limit, undo-strong-limit
4522 and undo-outer-limit here, and undo-outer-limit-function.
4523 Doc fixes.
4524
4525 * lisp.h (truncate_undo_list): Update decl.
4526
45272004-12-21 Piet van Oostrum <piet@cs.uu.nl>
4528
4529 * fileio.c (Fread_file_name): Delete duplicates in
4530 file-name-history when history_delete_duplicates is true.
4531
68c69027
ST
45322004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4533
4534 * macterm.c (mac_do_list_fonts): Fix memory leak
4535
134579f2
RS
45362004-12-20 Richard M. Stallman <rms@gnu.org>
4537
4538 * regex.c (re_match_2_internal) <symend, wordend>:
4539 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
4540
fbe6152f
ST
45412004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4542
043f7f73
SM
4543 * macterm.c (endif, x_font_name_to_mac_font_name):
4544 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
4545 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
4546 quickly finding a specific font without needing regexps.
4547
fecad3f6
JD
45482004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4549
333f1b6f
JD
4550 * syssignal.h: Declare main_thread.
4551 (SIGNAL_THREAD_CHECK): New macro.
4552
4553 * keyboard.c (input_available_signal): Move thread checking code
4554 to macro SIGNAL_THREAD_CHECK and call that macro.
4555 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
4556
4557 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
4558
4559 * emacs.c: Define main_thread.
4560 (main): Initialize main_thread.
4561 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
4562 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
4563
4564 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
4565
4566 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
4567
4568 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
4569
043f7f73
SM
4570 * process.c (send_process_trap, sigchld_handler):
4571 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
4572
4573 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
4574
4575 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
4576
fecad3f6
JD
4577 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
4578 returning when xg_ignore_gtk_scrollbar is true.
4579
2a84c6da
KS
45802004-12-14 Kim F. Storm <storm@cua.dk>
4581
4582 * keyboard.c (read_char): Save and restore echo_string when
4583 handling input method.
4584
d9c1ce9d
RS
45852004-12-13 Richard M. Stallman <rms@gnu.org>
4586
4587 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
4588
4589 * keyboard.c (Vthrow_on_input): New variable.
4590 (syms_of_keyboard): Defvar and initialize it.
4591 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
4592
4593 * lisp.h (QUIT): Check for Vthrow_on_input.
4594 (Vthrow_on_input): Declare it.
4595
a6495ed5
KS
45962004-12-13 Kim F. Storm <storm@cua.dk>
4597
4598 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
4599 vector.
4600
24a0e22f
RS
46012004-12-12 Richard M. Stallman <rms@gnu.org>
4602
4603 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
4604
4605 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
4606 (Ftry_completion): Really use outer `zero'; eliminate inner one.
4607
d6d31e57
KH
46082004-12-12 Kenichi Handa <handa@m17n.org>
4609
4610 * term.c (encode_terminal_code): Fix previous change.
4611
6f8ffb88
SM
46122004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
4613
fb6f5cbf
SM
4614 * keyboard.c (handle_async_input): Remove pthread mutex handling.
4615 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
4616
6f8ffb88
SM
4617 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
4618 in macro arguments.
4619
4620 * minibuf.c (Ftry_completion, Fall_completions): Don't use
4621 XFASTINT blindly.
4622
4623 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
4624
c83c9f9d
JD
46252004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4626
2f25767f
JD
4627 * w32term.c (x_calc_absolute_position): Remove calculation of
4628 difference between inner and outer window. Don't subtract difference
4629 for left and top calculations.
4630
c83c9f9d
JD
4631 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
4632 for left and top calculations. Remove call to x_real_positions.
24a0e22f 4633 [Bug report by Drew Adams in November]
c83c9f9d
JD
4634 (x_check_expected_move): Do not set change_gravity to 1 when calling
4635 x_set_offset.
4636
cc1caa4e
RS
46372004-12-08 Richard M. Stallman <rms@gnu.org>
4638
4639 * xdisp.c (get_next_display_element): Use `escape-glyph' for
4640 control chars and escaped octal codes.
4641 (Qescape_glyph): New variable.
4642 (syms_of_xdisp): Initialize it.
4643 (escape_glyph_face): New variable.
4644 (redisplay_window): Initialize it.
4645
e0e30823
RS
46462004-12-07 Paul Eggert <eggert@cs.ucla.edu>
4647
4648 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
4649 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
4650
f415cacd
JD
46512004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4652
cf435f39
JD
4653 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
4654 reset_malloc_hooks.
4655
6f8ffb88
SM
4656 * keyboard.c (handle_async_input, input_available_signal):
4657 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 4658
f415cacd
JD
4659 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
4660
043f7f73 46612004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
4662
4663 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
4664
4665 * config.in: Regenerate.
4666
ded997c1
JD
46672004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4668
453a4f1b
JD
4669 * xmenu.c (Fx_popup_menu): Correct documentation about position.
4670 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
4671 if not given by a mouse click to correspond with x-popup-menu
4672 documentation.
4673
9a38524c
JD
4674 * config.in: Regenerate.
4675
aa477689
JD
4676 * gtkutil.c: Include signal.h and syssignal.h.
4677 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
4678
4679 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
4680 new variables main_thread and alloc_mutex,
4681 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
4682 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
4683 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
4684 (UN)BLOCK_INPUT.
4685 (emacs_blocked_free, emacs_blocked_malloc)
4686 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
4687 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
4688 (reset_malloc_hooks): New function.
4689
4690 * lisp.h: Declare reset_malloc_hooks.
4691
4692 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
4693
4694 * keyboard.c: Conditionally include pthread.h
6f8ffb88 4695 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
4696 thread, block signal, send signal to main thread and return.
4697
ded997c1 4698 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 4699 Set current folder in file chooser if default_filename is a directory.
ded997c1 4700
c72b0edd
SM
47012004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
4702
4703 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
4704 Remove redundant correctness checks.
4705 (regex_compile): Fix up error codes for \{..\} expressions.
4706
c721eee5
RS
47072004-12-05 Richard M. Stallman <rms@gnu.org>
4708
4709 * regex.c (regex_compile): Fix end-of-pattern case for space.
4710
d8f96db8
ST
47112004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4712
6108209e
KS
4713 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
4714 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 4715 crashes with invalid characters.
6108209e
KS
4716 * macmenu.c (add_menu_item): Use it.
4717 * image.c (image_load_quartz2d): Likewise.
4718 * macfns.c (x_set_name, x_set_title): Likewise.
4719 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
4720 creating them each time for labels.
d8f96db8 4721
ab67e8b6
RS
47222004-12-02 Richard M. Stallman <rms@gnu.org>
4723
4724 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
4725 don't use it here.
4726
4727 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
4728 (interactive_p): Skip Scalled_interactively_p frames
4729 like Sinteractive_p frames.
b8217ea6 4730 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
4731
4732 * data.c (Fmake_variable_buffer_local): Doc fix.
4733 (Fmake_local_variable): Doc fix.
4734
4735 * insdel.c (insert_from_string_before_markers)
4736 (insert_from_string): Don't modify buffer on empty insertion.
4737
4738 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
4739
f86bdc80
ST
47402004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4741
4742 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
4743 menu text as UTF8 fails.
4744
1cae6d39
KS
47452004-12-01 Kim F. Storm <storm@cua.dk>
4746
4747 * alloc.c: Add commentary for last change.
4748 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
4749 sizeof(size_t) != 4.
4750 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
4751 Use them. Also clear header and trailer of freed memory.
4752 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
4753 (string_overrun_cookie): Rename from string_overrun_pattern.
4754 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
4755
77ea0764
AS
47562004-12-01 Andreas Schwab <schwab@suse.de>
4757
4758 * lisp.h: Declare string_to_multibyte.
4759
2d5cd4e6
KH
47602004-12-01 Kenichi Handa <handa@m17n.org>
4761
4762 * w32console.c (w32con_write_glyphs): Decide coding here.
4763 Adjusted for the change of encode_terminal_code.
4764
4765 * term.c (encode_terminal_code): Don't make it "static".
4766
25a0994a
KH
47672004-11-30 Kenichi Handa <handa@m17n.org>
4768
19b1f29a 4769 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 4770 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
4771 characters at once, and return a pointer to the result of encoding.
4772 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
4773 (insert_glyphs): Likewise.
4774 (term_init): Initialize encode_terminal_bufsize to 0.
4775
4776 * coding.c (Vcode_conversion_workbuf_name): New variable.
4777 (syms_of_coding): Initialize and staticpro it.
4778 (set_conversion_work_buffer): New function.
4779 (run_pre_post_conversion_on_str): Use it.
4780 (run_pre_write_conversin_on_c_str): New function.
4781
4782 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
4783
fc7a70cc
ST
47842004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4785
4786 * keyboard.c: Don't undef SIGIO
4787 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
4788 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
4789 (macfns.o): Don't depend on ccl.h.
4790 * macfns.c (mac_frame_parm_handlers): Set handlers for
4791 Qleft_fringe and Qright_fringe.
4792 * macterm.c (mac_fill_rectangle_to_pixmap)
4793 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
4794 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
4795 Put in #if 0.
4796 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
4797 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
4798 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
4799 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4800 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
4801 XDrawImageString. Always draw background and foreground separately.
4802 (x_draw_image_foreground): Use clipping instead of computing the
4803 intersection rectangle.
4804 (x_draw_image_glyph_string): Don't draw an image with mask to a
4805 pixmap.
4806 (x_redisplay_interface): Set flush_display_optional member to 0.
4807 (XTread_socket): Correctly reset the TEConverter
4808 object.
4809
fc368889
KS
48102004-11-30 Kim F. Storm <storm@cua.dk>
4811
4812 * lisp.h: New defines to enable buffer overrun checking.
4813 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
4814 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
4815
4816 * alloc.c: Add more checks for buffer overruns.
4817 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
4818 xmalloc_overrun_check_trailer, overrun_check_malloc)
4819 overrun_check_realloc, overrun_check_free): Add.
4820 (GC_STRING_EXTRA, string_overrun_pattern): Add.
4821 (check_sblock, allocate_string_data, compact_small_strings):
4822 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
4823 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
4824 (check_string_free_list): Add.
4825 (allocate_string, sweep_strings): Call check_string_free_list.
4826
4827 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
4828 XMALLOC_OVERRUN_CHECK to avoid crash during load.
4829
0af8cfe1
KS
48302004-11-29 Kim F. Storm <storm@cua.dk>
4831
4832 * fns.c (concat): Use SAFE_ALLOCA.
4833
77220eeb
SM
48342004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
4835
4836 * sysdep.c (emacs_write): Don't use QUIT.
4837
a778cf63
KH
48382004-11-29 Kenichi Handa <handa@m17n.org>
4839
4840 * buffer.c (init_buffer): Set current_buffer->directory to a
4841 multibyte string made by string_to_multibyte.
4842
77220eeb 4843 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 4844
e3177e43
AS
48452004-11-27 Andreas Schwab <schwab@suse.de>
4846
4847 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
4848
4849 * s/gnu-linux.h: Enable no-op gcpros on ia64.
4850 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
4851
77220eeb
SM
4852 * filelock.c (lock_file_1): Call get_boot_time early.
4853 Increase buffer size.
e3177e43 4854
ca5e6fef
EZ
48552004-11-27 Eli Zaretskii <eliz@gnu.org>
4856
4857 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
4858 is not defined.
4859
e2811828
KS
48602004-11-27 Kim F. Storm <storm@cua.dk>
4861
4862 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
4863 marker out of doc string.
4864
7a262394
SM
48652004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
4866
4867 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
4868 which was not mentioned in the log.
4869
f33cc5a9
KS
48702004-11-26 Kim F. Storm <storm@cua.dk>
4871
048bb03f
KS
4872 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
4873 angle bitmaps at top/bottom line.
4874
52eb0373 4875 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
4876 set it when it->method is set to next_element_from_display_vector.
4877 (setup_for_ellipsis): Add LEN argument. Callers changed.
4878 Set it->saved_face_id.
4879 (get_next_display_element): Use loop instead of recursion.
4880 Set it->saved_face_id. Combine duplicate code for ctr chars.
4881 (next_element_from_display_vector): Do not set it->saved_face_id.
4882 (next_element_from_ellipsis): Use setup_for_ellipsis.
4883
670e8906
EZ
48842004-11-26 Eli Zaretskii <eliz@gnu.org>
4885
4886 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
4887 prevent compiler warnings.
4888
275464e7
SM
48892004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
4890
1bf0e604
SM
4891 * keyboard.c (command_loop_1): Print a message describing the key
4892 the user just pressed when this key has no binding.
4893
275464e7
SM
4894 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
4895 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
4896
4897 * lread.c (readchar): Check QUIT when `getc' is interrupted.
4898
261b01c6
RS
48992004-11-24 Richard M. Stallman <rms@gnu.org>
4900
4901 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
4902
4903 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
4904
a5bd504e
KS
49052004-11-24 Kim F. Storm <storm@cua.dk>
4906
4907 * xdisp.c (move_it_in_display_line_to, display_line):
4908 Restore saved_face_id also when truncate-lines or hscrolled.
4909
255e4140
JD
49102004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4911
4912 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
4913 x-use-old-gtk-file-dialog.
4914
4915 * xfns.c: Define x_use_old_gtk_file_dialog.
4916 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
4917 outside ifdef USE_GTK.
4918
cab27d04
SM
49192004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
4920
4921 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
4922 Don't use XFASTINT blindly.
4923
4924 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
4925
4926 * indent.c (skip_invisible): Avoid non-idempotent side-effects
4927 in macro arguments.
4928
4929 * keymap.c (Flookup_key): Check INTEGERP before XINT.
4930
4931 * lread.c (oblookup): Don't use XFASTINT blindly.
4932
4933 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
4934 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
4935
11e0be49
KS
49362004-11-23 Kim F. Storm <storm@cua.dk>
4937
4d721114
KS
4938 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
4939 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
4940
11e0be49
KS
4941 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
4942 signal_p is zero and face name is unknown.
4943 (Fx_list_fonts): Don't signal error in lookup_named_face.
4944 (Fface_font): Signal error in lookup_named_face.
4945 (ascii_face_of_lisp_face): Likewise.
4946
4947 * dispextern.h (lookup_named_face): Fix prototype.
4948
4949 * xdisp.c (handle_single_display_prop): Don't signal error in
4950 lookup_named_face for unknown fringe face name.
4951 (highlight_trailing_whitespace): Don't signal error in
4952 lookup_named_face if trailing-whitespace face unknown.
4953 (calc_line_height_property): Don't signal error in
4954 lookup_named_face if specified face name is unknown.
4955
4956 * fringe.c (update_window_fringes): Show top row indicator if
4957 window has header-line. Don't show arrow at bob and eob
4958 if the boundary indicators are not used.
4959 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
4960
4961 * window.c (set_window_buffer): Clear display_error_modiff.
4962
0960a582
KS
49632004-11-22 Kim F. Storm <storm@cua.dk>
4964
4965 * fringe.c (update_window_fringes): Provide sensible fall-back
4966 value for non-nil indicate-buffer-boundaries setting.
4967
b0e9bb28
MR
49682004-11-22 Markus Rost <rost@ias.edu>
4969
4970 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
4971
d0bce91e
SM
49722004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
4973
4974 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
4975
e1814672
KS
49762004-11-21 Kim F. Storm <storm@cua.dk>
4977
b7fd3518
KS
4978 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
4979
4980 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
4981 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4982
4983 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
4984 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4985
4986 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
4987 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4988
d0bce91e
SM
4989 * xdisp.c (move_it_in_display_line_to, display_line):
4990 Restore saved_face_id if overflow-newline-into-fringe is enabled and
4991 line is continued before or in middle of element from display vector.
f01d4d05 4992
f1a61389
KS
4993 * indent.c (Fvertical_motion): Fix last change. Use another
4994 method to detect if iterator moved too far ahead after reseat.
4995
e1814672
KS
4996 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
4997 expand matrix width for overflow in zero-width area.
4998 (append_glyph, append_composite_glyph, produce_image_glyph)
4999 (append_stretch_glyph): Use it to avoid loop in redisplay.
5000 (note_mode_line_or_margin_highlight): Don't let help-echo from
5001 string override help-echo from image map.
5002
2dafe1c9
LT
50032004-11-20 Luc Teirlinck <teirllm@auburn.edu>
5004
d0bce91e 5005 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
5006 * callint.c (Fcall_interactively): Ditto.
5007
fd6866c8 50082004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
5009
5010 * minibuf.c (Fminibuffer_complete_and_exit):
5011 Fixup the case of the completed value, for case-indep completion.
5012
dedbac89
RS
50132004-11-20 Richard M. Stallman <rms@gnu.org>
5014
fd6866c8
RS
5015 * lisp.h (Fread_from_minibuffer): Add arg in decl.
5016
9d00469f 5017 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 5018 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 5019
dedbac89 5020 * search.c (Vsearch_spaces_regexp):
d0bce91e 5021 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 5022
2f672bb5
TTN
50232004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
5024
5025 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
5026
f31a9a68
RS
50272004-11-19 Richard M. Stallman <rms@gnu.org>
5028
5029 * search.c (Vsearch_whitespace_regexp): New variable.
5030 (syms_of_search): Defvar it.
5031 (compile_pattern_1): Call re_set_whitespace_regexp with it.
5032 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
5033 is non-nil.
6de891db
RS
5034 (struct regexp_cache): New element whitespace_regexp.
5035 (syms_of_search): Initialize whitespace_regexp elements.
5036 (compile_pattern): Compare whitespace_regexp elements.
5037 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
5038
5039 * regex.c (regex_compile): Substitute whitespace_regexp
5040 for spaces, if it is nonzero.
5041 (whitespace_regexp): New variable.
5042 (re_set_whitespace_regexp): New function.
5043
cbc34cb3
KS
50442004-11-19 Kim F. Storm <storm@cua.dk>
5045
5046 * indent.c (Fvertical_motion): Fix last change.
5047
b54a7539
KS
50482004-11-18 Kim F. Storm <storm@cua.dk>
5049
5050 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
5051 Instead, move back again if reseating moves too far ahead.
5052
50532004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
5054
5055 * xdisp.c (message3): Call clear_message.
5056
5ff504fe
KS
50572004-11-17 Kim F. Storm <storm@cua.dk>
5058
5059 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
5060
5ae53dcf
JD
50612004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5062
d0bce91e 5063 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 5064
6abf3a27 5065 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
5066 (x_menu_set_in_use): Also set popup_activated_flag.
5067
5ff504fe 5068 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
5069 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
5070
52eb0373 5071 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 5072
ee31cd78
RS
50732004-11-16 Richard M. Stallman <rms@gnu.org>
5074
6abf3a27
SM
5075 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
5076 Use map-keymap-internal to implement that.
ee31cd78
RS
5077
5078 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
5079
6abf3a27
SM
50802004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
5081
5082 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
5083 a window before using XWINDOW.
5084
5085 * window.c (make_window, Fselect_window, make_dummy_parent)
5086 (save_window_save):
5087 * frame.c (make_frame):
5088 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
5089
5090 * lisp.h (NILP): Use EQ rather than XFASTINT.
5091
b4d61105
KS
50922004-11-16 Kim F. Storm <storm@cua.dk>
5093
6abf3a27 5094 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 5095
b4d61105
KS
5096 * indent.c (Fvertical_motion): Fix last change. Only reseat when
5097 moving backwards.
5098
50992004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
5100
5101 * dispextern.h: Extern reseat_at_previous_visible_line_start.
5102
ab5b02b0
KH
51032004-11-16 Kenichi Handa <handa@m17n.org>
5104
5105 * xdisp.c (display_mode_element): Fix previous change (calculate
5106 end position of substring to display correctly).
5107
c482cf97
KS
51082004-11-16 Kim F. Storm <storm@cua.dk>
5109
5110 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
5111 Reported by Andrew M. Scott.
5112
9f89426b
KS
51132004-11-15 Kim F. Storm <storm@cua.dk>
5114
5115 * fns.c (Fsafe_plist_get): New defun.
5116 (syms_of_fns): Defsubr it.
5117
5118 * lisp.h (Fsafe_plist_get): Add EXFUN.
5119
5120 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
5121 Use Fsafe_plist_get.
5122 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5123 Fix image map element parsing. Use Fsafe_plist_get.
5124
27418463
RS
51252004-11-15 Richard M. Stallman <rms@gnu.org>
5126
5127 * xdisp.c (get_next_display_element): Fix previous change.
5128
a130b901
JD
51292004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5130
ef614e04
JD
5131 * window.c (shrink_windows): Handle special case of one window left
5132 when trying to shrink the final reminder. Grow windows if
5133 total_removed is less than total_shrink.
5134
a130b901
JD
5135 * xmenu.c (pop_down_menu): Remove global variable current_menu,
5136 extract pointer from arg with XSAVE_VALUE.
46303896
KS
5137 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
5138 Construct arg to record_unwind_protect with make_save_value.
a130b901 5139
d9a03ad2
RS
51402004-11-13 Richard M. Stallman <rms@gnu.org>
5141
5142 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
5143 (get_next_display_element): Fix previous change to apply only to \n.
5144
5145 * indent.c (Fvertical_motion): Scan to PT from start of line to
5146 make iterator consistent.
5147
5148 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
5149
b3935289
JD
51502004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5151
5152 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
5153
5154 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
5155 Record unwind with clean_up_file_dialog.
5156
78819ebb
KS
5157 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
5158 Declare.
b3935289
JD
5159
5160 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
5161
af89e871
JD
51622004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5163
457a8155 5164 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 5165 (xg_file_sel_destroy): Remove.
46303896
KS
5166 (xg_file_response_cb, pop_down_file_dialog)
5167 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 5168 New functions.
6abf3a27
SM
5169 (xg_get_file_with_chooser, xg_get_file_with_selection):
5170 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
5171 Move common code to xg_get_file_name. Return widget created.
5172 (xg_get_file_name): Set name, transient for, modal and destroy
5173 with parent here. Connect response signal to xg_file_response_cb,
5174 connect delete-event to gtk_true. Record pop_down_file_dialog
5175 for unwind. Do event loop and call x_menu_wait_for_event in loop.
5176 (xg_create_widget): Make dialogs modal.
5177
af89e871
JD
5178 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
5179 Lisp_Object.
5180 (popup_get_selection): Move unwind protect ...
5181 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5182 Move destroy of widget to pop_down_menu.
5183 (popup_widget_loop): Move unwind protect ...
5184 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5185 Move destroy of widget to pop_down_menu.
5186 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 5187 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
5188 x_mouse_leave and grabbed = 0 to pop_down_menu.
5189
5596fbf1
KS
51902004-11-13 Kim F. Storm <storm@cua.dk>
5191
5192 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
5193 (syms_of_xdisp): DEFVAR_BOOL it.
5194 (make_cursor_line_fully_visible, try_cursor_movement)
5195 (try_window_id): Use it.
5196
b9de078a
KS
51972004-11-12 Kim F. Storm <storm@cua.dk>
5198
381f7091
KS
5199 * dispextern.h (struct glyph_row): New member extra_line_spacing.
5200 (struct it): New member max_extra_line_spacing.
5201 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
5202 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
5203 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
5204 part of last line is only extra line spacing (so the text on the
52eb0373 5205 line is fully visible). Use helper macros.
381f7091
KS
5206 Add W arg (to use them). All callers changed.
5207 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
5208 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
5209
6abf3a27
SM
5210 * window.c (window_scroll_pixel_based, Frecenter):
5211 Use move_it_vertically_backward directly.
381f7091
KS
5212 (Frecenter): Fix calculation of new start pos for negative arg.
5213 Before, the new start pos was sometimes chosen too far back, so
5214 the last line became only partially visible, and thus would be
5215 either only semi-visible or automatically scrolled to the middle
5216 of the window by redisplay.
5217
5218 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
5219 (move_it_vertically_backward): Don't recure to move further back.
5220 (move_it_vertically): Remove superfluous condition.
5221 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 5222 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
5223 (display_tool_bar_line): Clear row->extra_line_spacing.
5224 (try_scrolling): Use move_it_vertically_backward directly.
5225 (redisplay_window): Likewise.
5226 (compute_line_metrics): Set row->extra_line_spacing.
5227 (display_line, display_string): Likewise.
5228 (x_produce_glyphs): Update it->max_extra_line_spacing.
5229
b9de078a
KS
5230 * xmenu.c (pop_down_menu): Return nil.
5231
c3438661
JD
52322004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5233
5234 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 5235 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 5236 to handle timers.
df00f436
JD
5237 (popup_widget_loop): Add argument do_timers.
5238 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
5239 do_timers to popup_widget_loop.
c3438661
JD
5240 (xmenu_show): Call XMenuActivateSetWaitFunction so that
5241 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 5242 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 5243 popup_get_selection.
f1d1cd24
JD
5244 (pop_down_menu): New function.
5245 (popup_get_selection, popup_widget_loop): Unwind protect to
5246 pop_down_menu.
5247 (popup_widget_loop): Add argument widget.
5248 (create_and_show_popup_menu, create_and_show_dialog): Pass new
5249 argument widget to popup_widget_loop.
c3438661 5250
32e2fb04
SM
52512004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5252
5253 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
5254
0faf6806
KS
52552004-11-09 Kim F. Storm <storm@cua.dk>
5256
5257 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
5258 Fix various comments referring to XEvents instead of input events.
5259 (x_queue_event): Fix format strings.
5260 (x_stop_queuing_selection_requests): Likewise.
5261
5262 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
5263 (pint2hrstr): Add extra braces to silence compiler.
5264
5265 * print.c (print_object): Fix format string.
5266
5267 * lread.c (read1): Fix next_char matching.
5268
5269 * lisp.h (Fdelete): Add EXFUN.
5270 (replace_range_2): Add prototype.
5271
5272 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
5273
5274 * intervals.h (NULL_INTERVAL_P): Add separate version when
5275 ENABLE_CHECKING is not defined to silence compiler.
5276 (compare_string_intervals): Add prototype.
5277
5278 * fringe.c (destroy_fringe_bitmap): Fix return type.
5279 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
5280
5281 * emacs.c (Fdump_emacs): Fix format string.
5282
5283 * doc.c: Include <ctype.h>.
5284 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
5285
5286 * data.c (store_symval_forwarding): Remove unused variables.
5287
5288 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
5289
16bf4e32
JD
52902004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5291
5292 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
5293 to ${OLDXMENU}.
5294
cdb805a9
KS
52952004-11-09 Kim F. Storm <storm@cua.dk>
5296
5297 * process.c (Fmake_network_process): Remove kludge for interrupted
5298 connects on BSD. If connect is interrupted, just close socket and
5299 start over rather than sleeping and retry with same socket.
5300
d87a9ab8 53012004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 5302
a8b16c80
JD
5303 * .cvsignore: Add buildobj.lst.
5304
d87a9ab8
JD
5305 * doc.c: New variable Vbuild_files.
5306 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 5307 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
5308 that are in Vbuild_files.
5309 (syms_of_doc): Defvar Vbuild_files.
5310
5311 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
5312 and w32*.o.
5313 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 5314 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
5315
5316 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
5317 is linked.
5318
b6709e77
KS
53192004-11-09 Kim F. Storm <storm@cua.dk>
5320
5321 * fringe.c (update_window_fringes): Update fringe bitmaps if
5322 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
5323 also update previous row to get rid of misc. artifacts.
5324
bae9677d
KS
53252004-11-08 Kim F. Storm <storm@cua.dk>
5326
5327 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 5328 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 5329
3f8ea68c
EZ
53302004-11-08 Eli Zaretskii <eliz@gnu.org>
5331
5332 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
5333 Don't include <sys/time.h> explicitly.
5334 Include <stdio.h> unconditionally, not just on MacOS.
5335
a653f812
KH
53362004-11-08 Kenichi Handa <handa@m17n.org>
5337
5338 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
5339 don't pay attention to '\' before '*'.
5340 (fontset_pattern_regexp): Change the meaning of the second arg.
5341 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
5342 (check_fontset_name): Try NAME as literal at first, and if it
5343 failes, try NAME as pattern.
5344
c37caf9d
JD
53452004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5346
5347 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
5348
b72915a7
AS
53492004-11-07 Andreas Schwab <schwab@suse.de>
5350
78819ebb
KS
5351 * lisp.h (Fmsdos_downcase_filename): Declare.
5352 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
5353 * fileio.c: Likewise.
5354
238a44a8
JD
53552004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5356
5357 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
5358 comparisons with integers instead of Lisp_Object address.
5359 (Fmsdos_set_keyboard): Declare argument allkeys.
5360
5361 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
5362
78819ebb 5363 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
5364 int/Lisp_Object mixup.
5365
5366 * fileio.c: Ditto.
5367
31141c13
ST
53682004-11-06 Steven Tamm <steventamm@mac.com>
5369
5370 * editfns.c: Need to include sys/time.h before resource.h on darwin.
5371
f28c1bd9
RS
53722004-11-06 Richard M. Stallman <rms@gnu.org>
5373
5374 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
5375
5376 * xfaces.c (merge_named_face): GCPRO the face_name in the
5377 named_merge_point struct that we make.
5378 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
5379
5380 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
5381 before deciding whether to inactivate mark.
5382
59dede22
EZ
53832004-11-06 Lars Brinkhoff <lars@nocrew.org>
5384
5385 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
5386 * editfns.c (Fget_internal_run_time): New function.
5387 (syms_of_data): Defsubr it.
5388 * fns.c (sxhash): As far as possible, merge calculation of
5389 hash code for symbols and strings.
59dede22 5390
27540e81
EZ
53912004-11-06 Eli Zaretskii <eliz@gnu.org>
5392
5393 * frame.c (syms_of_frame): Fix the example in the doc string.
5394
df470e3b
JD
53952004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5396
5397 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
5398
5399 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
5400 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 5401
4cc8522c
LT
54022004-11-05 Luc Teirlinck <teirllm@auburn.edu>
5403
5404 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
5405
d4a42098
KS
54062004-11-05 Kim F. Storm <storm@cua.dk>
5407
a8490886
KS
5408 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
5409
d4a42098
KS
5410 * fileio.c (Ffile_modes): Doc fix.
5411 (auto_save_1): Check for Ffile_modes nil value.
5412
36a2b04c
KS
54132004-11-05 Kim F. Storm <storm@cua.dk>
5414
5415 * xselect.c (struct selection_event_queue, selection_queue)
5416 (x_queue_selection_requests, x_queue_event)
5417 (x_start_queuing_selection_requests)
5418 (x_stop_queuing_selection_requests): Add new queue for selection
5419 input events to replace previous XEvent queue in xterm.c.
5420 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
5421 (x_reply_selection_request): Adapt to new queue.
5422 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
5423 (x_handle_selection_request, x_handle_selection_clear): Make static.
5424 (x_handle_selection_event): New function. May queue selection events.
5425 (wait_for_property_change_unwind): Use save_value instead of cons.
5426 Clear property_change_reply_object.
5427 (wait_for_property_change): Abort if already waiting.
5428 Use save_value instead of cons for unwind data.
5429 (x_handle_property_notify): Skip events already arrived, but don't
5430 free them, as "arrived" field is checked by wait_for_property_change,
5431 and it will be freed by unwind or explicit unexpect_property_change.
5432 (x_get_foreign_selection): Add to new queue.
5433 (receive_incremental_selection): Don't unexpect wait_object when done
5434 as it has already been freed by previous wait_for_property_change.
5435
5436 * xterm.h (x_start_queuing_selection_requests)
5437 (x_stop_queuing_selection_requests, x_handle_selection_request)
5438 (x_handle_selection_clear): Remove prototypes.
5439 (x_handle_selection_event): Add prototype.
5440
5441 * xterm.c (handle_one_xevent): Don't queue X selection events
5442 here, it may be too late if we start queuing after we have already
5443 stored some selection events into the kbd buffer.
5444 (struct selection_event_queue, queue, x_queue_selection_requests)
5445 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
5446 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
5447 (x_catch_errors_unwind): Block input around final XSync.
5448
5449 * keyboard.h (kbd_buffer_unget_event): Add prototype.
5450
5451 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
5452 (kbd_buffer_unget_event): New function.
5453 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
5454 and use x_handle_selection_event.
5455 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
5456
9c3ad9e1
JD
54572004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5458
5459 * xselect.c (TRACE3): New debug macro.
5460 (x_reply_selection_request): Use it.
5461 (receive_incremental_selection): In call to TRACE0, the name of
5462 a symbol is in xname.
5463
a33b89de
KS
54642004-11-05 Kim F. Storm <storm@cua.dk>
5465
5466 * fontset.c (fontset_pattern_regexp): Use unsigned char.
5467
a872928c
JD
54682004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5469
88208bb8
JD
5470 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
5471
78819ebb 5472 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
5473
5474 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 5475 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
5476 * xfns.c (syms_of_xfns): ... to here.
5477
a872928c
JD
5478 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
5479 it doesn't start with /.
5480
b912921c
KH
54812004-11-04 Kenichi Handa <handa@m17n.org>
5482
5483 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
5484 treat it as a literal character.
5485
c524d9a6
KS
54862004-11-03 Kim F. Storm <storm@cua.dk>
5487
5488 * .gdbinit (ppt): New function.
5489
8cfd0f36
JD
54902004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5491
a11e1dce
JD
5492 * xterm.c (x_window_to_scroll_bar): Only call
5493 xg_get_scroll_id_for_window if toolkit scroll bars are used.
5494
8cfd0f36
JD
5495 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
5496 of save.
5497
a93563fd
AS
54982004-11-02 Andreas Schwab <schwab@suse.de>
5499
5500 * window.c (Fscroll_right): Fix last change.
5501
2b2d59d8
KS
55022004-11-02 Kim F. Storm <storm@cua.dk>
5503
5504 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
5505
55062004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5507
5508 * callproc.c (Fcall_process): Block input around vfork.
5509
ca28104d
KS
55102004-11-02 Kim F. Storm <storm@cua.dk>
5511
5512 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
5513 (syms_of_eval): Defsubr it.
5514
29bb7127
RS
55152004-11-02 Richard M. Stallman <rms@gnu.org>
5516
5517 * insdel.c (replace_range_2): New function.
5518
5519 * casefiddle.c (casify_region): Handle changes in byte-length
5520 using replace_range_2.
5521
5522 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
5523
b6189c3b 5524 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
5525 Subtract 1 from pos when checking previous newline for invisibility.
5526
5527 * window.c (window_scroll_pixel_based): Update preserve_y
5528 for header line if any.
5529 (Fscroll_left, Fscroll_right): Don't call interactive_p;
5530 use a new second argument instead.
5531
5532 * eval.c (Fcall_interactive_p): New function.
5533 (interactive_p): Don't test INTERACTIVE here.
5534 (Finteractive_p): Doc fix.
5535
5536 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
5537
b6189c3b 55382004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
5539
5540 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 5541 comparing font names.
a3fe4aaf 5542
2a00cdb4
JD
55432004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5544
f9d64bb3
JD
5545 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
5546 Fx_file_dialog if only directories should be read.
5547
5548 * lisp.h: Fx_file_dialog takes 5 parameters.
5549
32e2fb04
SM
5550 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
5551 Add parameter only_dir_p.
f9d64bb3
JD
5552 In Motif version, don't put DEFAULT_FILENAME in filter part of the
5553 dialog, just text field part. Do not add DEFAULT_FILENAME
5554 to list of files if it isn't there.
5555 In GTK version, pass only_dir_p parameter to xg_get_file_name.
5556
32e2fb04
SM
5557 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
5558 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
5559 a save dialog, add option kNavDontConfirmReplacement, change title
5560 to "Enter name", change text for save button to "Ok".
5561
32e2fb04
SM
5562 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
5563 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
5564
5565 * gtkutil.c (xg_get_file_with_chooser)
5566 (xg_get_file_with_selection): New functions, only defined ifdef
5567 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
5568 respectively.
5569 (xg_get_file_name): Add parameter only_dir_p.
5570 Call xg_get_file_with_chooser or xg_get_file_with_selection
5571 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
5572 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
5573
5574 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
5575
2a00cdb4
JD
5576 * config.in: Rebuild (added HAVE_GTK_FILE_*).
5577
f6749d5d
KS
55782004-11-01 Kim F. Storm <storm@cua.dk>
5579
32e2fb04
SM
5580 * process.c (connect_wait_mask, num_pending_connects):
5581 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 5582 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
5583 (IF_NON_BLOCKING_CONNECT): New helper macro.
5584 (wait_reading_process_output): Only declare and use local vars
5585 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 5586
1a99fe1a
JR
55872004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
5588
5589 * w32term.c (x_scroll_run): Delete region objects after use.
5590
fcdb28b4
JD
55912004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5592
495ef86b
JD
5593 * xmenu.c: Add prototypes for forward function declarations.
5594 (popup_get_selection): Remove parameter do_timers, remove call to
5595 timer_check.
32e2fb04
SM
5596 (create_and_show_popup_menu, create_and_show_dialog):
5597 Remove parameter do_timers from call to popup_get_selection.
495ef86b 5598
12e6566a
JD
5599 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
5600 tool_bar_items and assign the result to f->tool_bar_items if
5601 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
5602 tool_bar_items to assignment of result.
5603
fcdb28b4
JD
5604 * atimer.c (alarm_signal_handler): Do not call set_alarm if
5605 pending_atmers is non-zero.
5606
1a1a0c4c
KS
56072004-10-31 Kim F. Storm <storm@cua.dk>
5608
5609 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
5610
a36f1680
JW
56112004-10-28 Will <will@glozer.net>
5612
1d1c7e75 5613 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
5614 key via a 'mac-option-modifier' variable.
5615
32e2fb04 56162004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
5617
5618 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
5619 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
5620 (x_handle_selection_request, x_handle_selection_clear)
5621 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
5622
4f71c13f
RS
56232004-10-28 Richard M. Stallman <rms@gnu.org>
5624
5625 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5626
5627 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5628
068f3848
SM
56292004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
5630
5631 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
5632 comment-starter over a 1-char one.
5633
4660a9e3
RS
56342004-10-27 Richard M. Stallman <rms@gnu.org>
5635
5636 * xdisp.c (get_next_display_element): In mode lines,
5637 treat newline and tab like other control characters.
5638
5639 * editfns.c (Fmessage): Doc fix.
5640
5641 * indent.c (vmotion): When moving up, check the newline before.
5642 Make prevline an int, not a Lisp_Object.
5643
233f3db6
KS
56442004-10-27 Kim F. Storm <storm@cua.dk>
5645
5646 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
5647 Only allocate info and discarded tables once.
5648
5649 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
5650 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
5651 (SAFE_FREE): Test it to determine if we need to unwind to free.
5652 Remove size arg. All users changed.
5653 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
5654
1442465d
JD
56552004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5656
5657 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
5658 (xg_destroy_widgets): Rename from remove_from_container.
5659 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
5660 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
5661 instead of remove_from_container.
5662 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
5663 (free_frame_tool_bar): Add comment.
5664
5665 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
5666 is not NULL before strcmp.
5667
c8636435
KS
56682004-10-26 Kim F. Storm <storm@cua.dk>
5669
5670 * callint.c (Fcall_interactively): Add 'U' code to get the
5671 up-event discarded by a previous 'k' or 'K' argument.
5672
5629f29b
DK
56732004-10-26 David Kastrup <dak@gnu.org>
5674
5675 * buffer.c (syms_of_buffer): Fix a few typos.
5676
4f2f546e
JD
56772004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5678
5679 * xsmfns.c: Put empty line between comment and function body.
5680 Use two spaces before comment end.
5681
fc1062f5
KH
56822004-10-25 Kenichi Handa <handa@m17n.org>
5683
5684 * fontset.c (fontset_pattern_regexp): Optimize for the case that
5685 PATTERN is full XLFD.
5686
be13f5e5
KH
56872004-10-24 Kenichi Handa <handa@m17n.org>
5688
5689 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
5690
5691 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
5692 (regex_compile): Return REG_ERANGEX if appropriate.
5693
d0ee2ed3
KH
56942004-10-22 Kenichi Handa <handa@m17n.org>
5695
5696 * editfns.c (Ftranslate_region_internal): New function.
5697 (syms_of_editfns): Defsubr it.
5698
63ea8ea5
JD
56992004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5700
5701 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
5702
9ba27690 57032004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 5704
068f3848
SM
5705 * xterm.h (x_output): New member `xic_base_fontname'.
5706 (FRAME_XIC_BASE_FONTNAME): New macro.
5707 (xic_free_xfontset): Declare.
c27ed90a 5708
068f3848
SM
5709 * xfns.c (xic_create_xfontset): Share fontsets between frames
5710 based on base_fontname.
5711 (xic_free_xfontset): New function.
5712 (free_frame_xic): Use it.
5713 (xic_set_xfontset): Ditto.
c27ed90a 5714
068f3848 5715 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
5716
5717
59508699
JR
57182004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
5719
5720 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
5721
dede2792
JD
57222004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5723
3aca2078
JD
5724 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
5725 XSync.
5726
dede2792
JD
5727 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
5728 New variables and constant.
5729 (main): Calculate heap_bss_diff. If we are dumping and the
5730 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
5731 and exec ourself again.
5732 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
5733 print a warning.
5734
5735 * lastfile.c: Make my_endbss and my_endbss_static available on all
5736 platforms.
5737
5738 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
5739 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
5740
1dc5ba01
LT
57412004-10-19 Luc Teirlinck <teirllm@auburn.edu>
5742
5743 * data.c (Flocal_variable_if_set_p): Doc fix.
5744
950090be
JR
57452004-10-19 Jason Rumney <jasonr@gnu.org>
5746
5747 * w32.c (init_environment): Set emacs_dir correctly when running
5748 emacs from the build directory.
5749
8550b998
RS
57502004-10-19 Richard M. Stallman <rms@gnu.org>
5751
5752 * editfns.c (Fdelete_and_extract_region):
5753 If region is empty, return null string.
5754
08dedea6
JD
57552004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5756
1dc5ba01 5757 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 5758 and canon_width.
068f3848 5759 (xg_frame_cleared): Remove.
08dedea6 5760
068f3848
SM
5761 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
5762 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
5763 (xg_create_scroll_bar): Put an event box widget between
5764 the scroll bar widget and the edit widget.
5765 (xg_show_scroll_bar): Show the parent widget (the event box).
5766 (xg_remove_scroll_bar): Destroy parent (the event box) also.
5767 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
5768 Move the parent (the event box) widget inside the fixed widget.
5769 Move window clear to xterm.c.
5770
068f3848 5771 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 5772
08dedea6 5773 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
5774 (x_scroll_bar_create, XTset_vertical_scroll_bar):
5775 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
5776 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
5777
8550b998 57782004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
5779
5780 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 5781
84338890
JD
57822004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5783
5784 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
5785 gdk_window_clear and move gdk_window_process_all_updates after
5786 clear so events are sent to the X server in correct order.
5787
6e1b0d8c
KH
57882004-10-18 Kenichi Handa <handa@m17n.org>
5789
5790 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
5791 comparing font names.
8550b998 5792 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
5793 (list_fontsets): Likewise.
5794
5795 * search.c (fast_string_match_ignore_case): New function.
5796
5797 * lisp.h (fast_string_match_ignore_case): Extern it.
5798
345e75a8
KS
57992004-10-17 Kim F. Storm <storm@cua.dk>
5800
5801 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
5802 than bitmap if there is not left fringe.
5803 (get_overlay_arrow_glyph_row): Also used on windows system.
5804 (display_line): Display overlay string if no left fringe.
5805
be13cbb7
JR
58062004-10-16 Jason Rumney <jasonr@gnu.org>
5807
5808 * w32fns.c (w32_font_match): Encode font name being matched.
5809
c2e2ede7
RS
58102004-10-16 Richard M. Stallman <rms@gnu.org>
5811
5812 * window.c (Fspecial_display_p): Doc fix.
5813
043f7f73 58142004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
5815
5816 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
5817 Don't ignore menus, because where-is-internal already does it for us.
5818
699a0392
KS
58192004-10-15 Kim F. Storm <storm@cua.dk>
5820
b3c7a89b
KS
5821 * xdisp.c (redisplay_window): Only update fringes and vertical
5822 border on window frames.
699a0392 5823
4e382b0f
AS
58242004-10-14 Andreas Schwab <schwab@suse.de>
5825
5826 * m/ia64.h (DATA_SEG_BITS): Don't define.
5827
329a7be2
KS
58282004-10-14 Kim F. Storm <storm@cua.dk>
5829
5830 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 5831 in some X versions.
329a7be2 5832
982241b1
SM
58332004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5834
5835 * fns.c (map_char_table): Add missing gcpros.
5836
9238467d
SM
58372004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5838
5839 * keymap.c (get_keymap): An autoload form is not a keymap.
5840
5841 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
5842
4440e3ca
KS
58432004-10-13 Kim F. Storm <storm@cua.dk>
5844
7cfdabde
KS
5845 * callproc.c (Fcall_process): Simplify handling of display arg.
5846 Resume `display_on_the_fly' once a coding system is determined.
5847
4440e3ca
KS
5848 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
5849
1c8dec6a
KS
58502004-10-12 Kim F. Storm <storm@cua.dk>
5851
5852 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
5853 caller, such as call-process, is not going to poll for input.
5854 (calc_line_height_property): Handle case where it->object is nil.
5855
5856 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
5857
170b174c
KH
58582004-10-12 Kenichi Handa <handa@m17n.org>
5859
9238467d
SM
5860 * xdisp.c (get_next_display_element):
5861 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
5862 chars in octal in unibyte buffer.
5863
b583964c
KS
58642004-10-12 Kim F. Storm <storm@cua.dk>
5865
5866 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
5867 are no ordinary bindings.
5868
29fabd8c
JD
58692004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5870
9238467d 5871 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 5872
c3f4c690
ST
58732004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5874
9238467d
SM
5875 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
5876 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 5877 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
5878 terminal frame.
5879 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
5880 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
5881 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
5882 Make a cancel file-open dialog be like C-g.
9238467d
SM
5883 * mac.c (mktime): Use emacs_mktime.
5884 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
5885 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 5886
9688f9eb
KS
58872004-10-10 Kim F. Storm <storm@cua.dk>
5888
5889 * keyboard.c (timer_resume_idle): New function to resume idle
5890 timer without resetting timers on the idle list.
52eb0373 5891 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
5892 (timer_start_idle, timer_stop_idle): Declare static.
5893 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
5894
5895 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
5896
f7f3a65f
ST
58972004-10-08 Steven Tamm <steventamm@mac.com>
5898
9238467d 5899 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 5900 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 5901 NULL where 0 should be used.
f7f3a65f
ST
5902 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
5903 objc/malloc.h
9238467d 5904 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 5905
3c7d999a
KS
59062004-10-07 Kim F. Storm <storm@cua.dk>
5907
5908 * xdisp.c (redisplay_window): Fix flicker on vertical line between
5909 windows. Update vertical line after drawing window fringes, but
5910 only if actually drawing any bitmaps--or there is no fringe.
5911
5912 * xterm.c (x_update_window_end): Likewise.
5913 * macterm.c (x_update_window_end): Likewise.
5914 * w32term.c (x_update_window_end): Likewise.
5915
5916 * fringe.c (draw_window_fringes): Return value now indicates if
5917 any fringe bitmaps were redrawn (or there are no fringes).
5918
5919 * dispextern.h (draw_window_fringes): Update prototype.
5920
bf06c82f
ST
59212004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5922
5923 * macfns.c (mac_get_window_bounds): Add extern.
5924 (x_real_positions): Use mac_get_window_bounds.
5925
5926 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
5927 xmenu.c (YAILOM).
3c7d999a 5928
bf06c82f
ST
5929 * macterm.c [!MAC_OSX]: Include Windows.h.
5930 (front_emacs_window): Rename from mac_front_window. All uses
5931 changed. Return the frontmost non-tooltip emacs window.
5932 (mac_get_window_bounds): New function.
5933 (x_calc_absolute_position): Use the difference of width and height
5934 between the inner and outer window.
5935 (x_set_offset): Specify window position by the coordinae of the
5936 outer window. Adjust the position if the title bar is completely
5937 outside the screen.
5938 (app_is_suspended, app_sleep_time): Remove unused variables.
5939 (do_app_resume, do_app_suspend): Remove their contents because
5940 window-activate/deactivate events will do the job.
5941 (do_zoom_window): Remove unused variables. Make compliant to the
5942 standard way of zooming. Set f->left_pos and f->top_pos.
5943 (XTread_socket): Don't use argument `expected'. Don't use
5944 FrontWindow to determine the clicked window. Exclude unprocessed
5945 mouseUp cases in the early stage. Add parentheses to fix operator
5946 precedence.
5947 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
5948
4cbbf6b7 59492004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
5950
5951 * config.in: Regenerate.
5952
5953 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
5954 HAVE_EXECSHIELD.
5955
b90ee8b5
JD
59562004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5957
5958 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
5959 a row if Alt or Meta has been found for that row. Also stop scanning
5960 for Keysyms for that row.
5961
904db1a2
KS
59622004-10-04 Kim F. Storm <storm@cua.dk>
5963
0207b8ad
KS
5964 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
5965 to list. Include overlay arrow bitmap in return value.
5966
25f7220c
KS
5967 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
5968 bars with fractional column width. If scroll bar separates two
5969 windows, move it towards the window it belongs to. Only update
5970 the padding area below the scroll bar widget when necessary,
5971 i.e. when scroll bar widget is created, moved, or resized.
5972
562020fe
KS
5973 * xdisp.c (define_frame_cursor1): Do not change frame cursor
5974 while tracking/dragging mouse.
5975 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
5976
37e34af7
KS
5977 * window.c (coordinates_in_window): Relax check for cursor
5978 on vertial border between mode lines.
5979 (Fset_window_fringes): Do not allow negative widths.
5980 (Fset_window_scroll_bars): Likewise.
5981
904db1a2
KS
5982 * .gdbinit (pp): Shorthand for p ARG + pr.
5983 (ff): New command: flush frame updates (X only).
5984
38fe4f64
MA
59852004-10-03 Michael Albinus <michael.albinus@gmx.de>
5986
5987 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
5988
9de36315
KH
59892004-09-30 Kenichi Handa <handa@m17n.org>
5990
07c381ad 5991 * process.c (send_process): Free composition data.
9de36315 5992
07c381ad 5993 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
5994
5995 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
5996 compositions to encode.
5997 (encode_coding_string): Likewise. Free composition data.
5998
d5fb8dab 59992004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
6000
6001 * coding.c (code_convert_region): Free composition data.
9de36315 6002
f2a54fbc
KS
60032004-09-29 Kim F. Storm <storm@cua.dk>
6004
dc5d6435
KS
6005 * fringe.c: Remove limit on number of bitmaps.
6006 (fringe_bitmaps, fringe_faces): Change to pointers.
6007 (max_fringe_bitmaps): New var.
6008 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
6009 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
6010
6011 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
6012 (struct glyph_row): Reorder fringe_bitmap related fields.
6013 (struct it): Likewise.
6014
6015 * w32term.c (fringe_bmp): Change to pointer.
6016 (max_fringe_bmp): New var.
6017 (w32_define_fringe_bitmap): Expand fringe_bmp.
6018 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
6019 (w32_destroy_fringe_bitmap): Likewise.
6020
60212004-09-29 Kim F. Storm <storm@cua.dk>
6022
6023 * fringe.c: Simplify last change.
f2a54fbc
KS
6024 (lookup_fringe_bitmap): New function.
6025 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
6026 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
6027 Keep standard bitmaps in Vfringe_bitmaps.
6028 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
6029 (Fset_fringe_bitmap_face): Likewise.
6030
6031 * dispextern.h (lookup_fringe_bitmap): Add prototype.
6032 (valid_fringe_bitmap_p): Remove prototype.
6033
6034 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
6035
841a8bca
KS
60362004-09-29 Kim F. Storm <storm@cua.dk>
6037
1f2da365
KS
6038 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
6039 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
6040
841a8bca
KS
6041 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
6042
6043 * fringe.c (Vfringe_bitmaps): New variable.
6044 (syms_of_fringe): DEFVAR_LISP it.
6045 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
6046 Change arg to Lisp_Object and fail if not an integer.
6047 (get_fringe_bitmap_name, resolve_fringe_bitmap)
6048 (destroy_fringe_bitmap): New functions.
9238467d
SM
6049 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
6050 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
6051 clear its fringe property.
6052 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
6053 Fdestroy_fringe_bitmap.
6054 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
6055 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
6056 and set fringe property. Signal error if no free slots.
6057 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
6058 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
6059
6060 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
6061 symbols with a fringe property.
6062
4d965590
KS
60632004-09-27 Kim F. Storm <storm@cua.dk>
6064
6065 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
6066 Doc fix. Format may now be a symbol or alist, not a cons.
6067
6068 * fringe.c (update_window_fringes): Handle new formats of
6069 indicate-buffer-boundaries (symbol or alist). No longer
6070 allow a simple cons.
6071 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
6072
e888c2b3
JD
60732004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6074
9238467d 6075 * config.in: Rebuild.
e888c2b3 6076
83f1cb94
JD
60772004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6078
6079 * config.in: Rebuild.
6080
dd3b1d60 6081 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 6082
2c51754c
SM
60832004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
6084
6085 * xterm.c (x_term_init): Work around a bug in some X servers.
6086
3df5f8aa
RS
60872004-09-18 Richard M. Stallman <rms@gnu.org>
6088
557ca2c1
RS
6089 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
6090
3df5f8aa
RS
6091 * xdisp.c (try_window_reusing_current_matrix):
6092 Handle the case where we reach the old displayed text,
6093 out of sync with the old line boundary.
6094
9238467d 60952004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
6096
6097 * fileio.c (Finsert_file_contents): Fix case of replacement in a
6098 narrowed buffer.
6099
bfa02563
KS
61002004-09-14 Kim F. Storm <storm@cua.dk>
6101
a25fe164
KS
6102 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
6103
bfa02563
KS
6104 * xfaces.c (Qface_no_inherit): New var.
6105 (syms_of_xfaces): Intern and staticpro it.
6106 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
6107 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
6108 Don't increment face_change_count when face has non-nil
6109 face-no-inherit property.
6110
126f9c02
SM
61112004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
6112
892a8eb5
SM
6113 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
6114 (Fbyte_code): Remove dead code after `wrong_type_argument'.
6115
126f9c02 6116 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 6117 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 6118
c0ad3b38
KS
61192004-09-12 Kim F. Storm <storm@cua.dk>
6120
6121 * editfns.c (Fformat): Handle format strings with multiple text
6122 properties. Reverse text property list from the format string,
6123 so the positions are in increasing order.
6124
844fc085
JD
61252004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6126
6127 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
6128 x_uncatch_errors so that possible protocol errors are delivered.
6129
b106731c
EZ
61302004-09-10 Eli Zaretskii <eliz@gnu.org>
6131
21065c92
EZ
6132 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
6133 blockinput.h.
6134 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
6135 charset.h, and coding.h
9238467d 6136 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
6137 (term.o): Depend on window.h and keymap.h.
6138 (abbrev.o): Depend on syntax.h.
6139 (callint.o): Depend on keymap.h.
6140 (casefiddle.o): Depend on charset.h and keymap.h.
6141 (category.o): Depend on keymap.h.
6142 (coding.o): Depend on dispextern.h.
6143 (cmds.o): Depend on keyboard.h and keymap.h.
6144 (dispnew.o): Depend on indent.h and intervals.h.
6145 (doc.o): Depend on keymap.h.
6146 (editfns.o): Depend on frame.h.
6147 (emacs.o): Depend on dispextern.h.
6148 (fileio.o): Don't depend on ccl.h.
6149 (filelock.o): Depend on charset.h and coding.h.
6150 (frame.o): Depend on w32term.h and macterm.h.
6151 (insdel.o): Depend on region-cache.h.
6152 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
6153 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
6154 (search.o): Depend on $(INTERVALS_SRC).
6155 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
6156 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
6157 xterm.h, w32term.h, and macterm.h.
6158 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
6159 w32term.h, and macterm.h.
6160 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
6161 region-cache.h, xterm.h, w32term.h, and macterm.h.
6162 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
6163 (data.o): Depend on frame.h.
6164 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
6165 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
6166 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
6167 (intervals.o): Depend on keymap.h.
6168
9238467d
SM
6169 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
6170 Add debugging print-out to termscript.
b106731c 6171
64b7122d
RS
61722004-09-09 Richard M. Stallman <rms@gnu.org>
6173
6174 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
6175
5670531e
RS
61762004-09-08 Richard M. Stallman <rms@gnu.org>
6177
6cb4a892
RS
6178 * window.c (Fset_window_buffer): Doc fix.
6179
5670531e
RS
6180 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
6181
7e388eb7
JL
61822004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
6183
6184 * minibuf.c (history_delete_duplicates): New variable.
6185 (read_minibuf): Use it.
6186 (syms_of_minibuf): Create the corresponding lisp variable.
6187
370e3587
KS
61882004-09-08 Kim F. Storm <storm@cua.dk>
6189
6190 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
6191 overlay just before point.
6192
f844ba4e
LT
61932004-09-07 Luc Teirlinck <teirllm@auburn.edu>
6194
6195 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
6196 * buffer.c (reset_buffer, init_buffer_once):
6197 Handle auto_save_file_format field.
f844ba4e
LT
6198 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
6199 `buffer-auto-save-file-format'.
f844ba4e
LT
6200 * fileio.c: Delete declaration for removed Vauto_save_file_format.
6201 (build_annotations): Adapt to replacement of
6202 `auto-save-file-format' with the new buffer-local variable
6203 `buffer-auto-save-file-format'.
6204 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
6205
f0f90717
JR
62062004-09-07 Jason Rumney <jasonr@gnu.org>
6207
6208 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
6209
9238467d
SM
6210 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
6211 Handle Unicode menu titles.
f0f90717 6212
4e14f66c
KS
62132004-09-07 Kim F. Storm <storm@cua.dk>
6214
6215 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
6216 property from text property or overlay strings at point.
6217
9238467d 62182004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
6219
6220 * xmenu.c (update_submenu_strings): YAILOM.
6221 (set_frame_menubar): Make sure last_i is initialized.
6222
1f06d367
JR
62232004-09-03 Jason Rumney <jasonr@gnu.org>
6224
1806714a 6225 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
6226 (digest_single_submenu): Set lname and lkey in widget_value
6227 instead of name and key.
6228 (update_submenu_strings): New function.
6229 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6230 call update_submenu_strings.
6231
6232 * w32menu.c (globals_of_w32menu): Check for Unicode API.
6233 (digest_single_submenu, w32_menu_show): Encode menu strings as
6234 UTF-8 if Unicode API is available.
6235 (utf8to16): New function.
6236 (add_menu_item): Use it when calling Unicode API.
1806714a 6237
46540080
KS
62382004-09-03 Kim F. Storm <storm@cua.dk>
6239
6240 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
6241 in overlay or text-property strings; set cursor on corresponding
6242 glyph rather than at end of the string.
6243
9277ba61 62442004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 6245
9277ba61 6246 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
6247 set a new one before obtaining the global coordinate.
6248 Use FRAME_MAC_WINDOW.
6249 (x_set_name, x_set_title): Encode title to UTF8.
6250 Use SetWindowTitleWithCFString.
9277ba61
ST
6251 (Fx_server_version): Get correct OS version.
6252
1806714a
SM
6253 * macmenu.c (add_menu_item): Remove unused variable `i'.
6254 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
6255
6256 * macterm.c (x_update_end): Move SetPortWindowPort to inside
6257 BLOCK_INPUT.
6258 (x_set_offset): Use FRAME_MAC_WINDOW.
6259
6260 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
6261 nontext_cursor if it is on a scroll bar.
6262
6263 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
6264 Carbon support.
1806714a
SM
6265 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
6266 Use LIBS_CARBON.
9277ba61 6267
b10daec7
JD
62682004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6269
6270 * xfns.c (x_set_name_internal): New function. Check if we shall call
6271 xfree before ENCODE_UTF_8.
6272 (x_set_name, x_set_title): Call x_set_name_internal.
6273
f7e22385
JR
62742004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
6275
6276 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
6277 reload it.
6278
2bf436c3
JD
62792004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6280
1806714a 6281 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
6282 (single_submenu): Set lname and lkey in widget_value
6283 instead of name and key.
6284 (update_submenu_strings): New function.
6285 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6286 call update_submenu_strings.
6287
2bf436c3
JD
6288 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
6289 instead of name and key.
6290 (update_submenu_strings): New function.
6291 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 6292 call update_submenu_strings.
2bf436c3
JD
6293
6294 * gtkutil.h (_widget_value): Added lname and lkey.
6295
11715f92
ST
62962004-08-30 Steven Tamm <steventamm@mac.com>
6297
6298 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
6299 by using different names for inner loop variables.
6300
5500be54
JD
63012004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6302
059cd329
JD
6303 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
6304 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
6305
5500be54
JD
6306 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
6307 tool bar items is 0.
6308
383418e5
ST
63092004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6310
6311 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
6312 strings in menu items.
6313 (single_submenu): Use ENCODE_MENU_STRING
6314 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
6315 button release isn't passed to event loop
6316 (add_menu_item): Use SetMenuItemWithCFString
6317
6eb3ee72
ST
63182004-08-26 Steven Tamm <steventamm@mac.com>
6319
6320 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
6321 tool-bar/menu click.
6322 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 6323
10b43ac3
JD
63242004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6325
2728b5d0
JD
6326 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
6327
10b43ac3
JD
6328 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6329 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6330 (x_top_window_to_frame): Return 0 if wdesc is None.
6331
2ee3b79e
RS
63322004-08-22 Richard M. Stallman <rms@gnu.org>
6333
6334 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
6335 HAVE_TERMIOS]: If there's no char for this signal, drop through
6336 and use system calls.
6337
6338 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
6339
9a1ba2ea
KS
63402004-08-20 Kim F. Storm <storm@cua.dk>
6341
6342 * process.c (wait_reading_process_output): Rename from
6343 wait_reading_process_input. All uses changed.
6344 (wait_reading_process_output_1): Rename from
6345 wait_reading_process_input_1. All uses changed.
6346
6347 * dispnew.c (Fsleep_for): Remove obsolete code.
6348
295f3b30
KH
63492004-08-20 Kenichi Handa <handa@m17n.org>
6350
6351 * syntax.c (skip_chars): Fix for unibyte case.
6352
27615979
SM
63532004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6354
6355 * syntax.c (char_quoted): Mixup byte/char pos.
6356 (back_comment): Fixup globals in all cases.
6357
00267f94
JD
63582004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6359
6360 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
6361 passing it to gtk_window_set_title.
6362
2439909e
KS
63632004-08-19 Kim F. Storm <storm@cua.dk>
6364
6ba0f14c
KS
6365 * process.c (wait_reading_process_input): Clean up.
6366 Add wait_for_cell, wait_proc, and just_wait_proc args
6367 to avoid overloading `read_kbd' and `do_display' args.
6368 Change read_kbd arg to int. All callers changed.
6369
2439909e
KS
6370 * process.c (process_send_signal): Use CDISABLE.
6371
6372 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
6373
101c421e
KS
63742004-08-18 Kim F. Storm <storm@cua.dk>
6375
6376 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
6377 forward to wait_reading_process_input via DO_DISPLAY arg.
6378 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
6379 object, only process output from that process; also inhibit
6380 running timers if DO_DISPLAY==-2.
6381
c438dc33
KS
63822004-08-17 Kim F. Storm <storm@cua.dk>
6383
6384 * process.c (process_send_signal): Fix last change--use
6385 _POSIX_VDISABLE instead of CVDISABLE when available.
6386
8afc13c6
RS
63872004-08-16 Richard M. Stallman <rms@gnu.org>
6388
6389 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
6390 Set VQUIT and VINTR chars to the standard ones if they are unset.
6391 [AIX]: Don't do that here. And don't force VINTR to standard
6392 when SIGNALS_VIA_CHARACTERS.
6393
c438dc33 6394 * process.c (process_send_signal)
8afc13c6
RS
6395 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
6396 Do nothing if the character is CVDISABLE.
6397
6398 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
6399
c438dc33 6400 * intervals.c (move_if_not_intangible):
8afc13c6
RS
6401 Force POSITION to be between BEGV and ZV.
6402
6dad1714
JPW
64032004-08-14 John Paul Wallington <jpw@gnu.org>
6404
6405 * buffer.c (Frestore_buffer_modified_p): Doc fix.
6406
6407 * fileio.c (Fread_file_name): Doc fix.
6408
6409 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6410
2bd77330
LT
64112004-08-09 Luc Teirlinck <teirllm@auburn.edu>
6412
6413 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
6414
c90e7e43
LT
64152004-08-08 Luc Teirlinck <teirllm@auburn.edu>
6416
6417 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 6418 Qdisabled_command_hook.
c90e7e43 6419 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 6420 Qdisabled_command_hook.
c90e7e43
LT
6421 (syms_of_keyboard): Ditto.
6422
81909a1a
LT
64232004-08-07 Luc Teirlinck <teirllm@auburn.edu>
6424
6425 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
6426 (syms_of_keymap) <key-translation-map>: Doc fixes.
6427
0cedd530
SM
64282004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
6429
1725a7c9
SM
6430 * window.c (window_list_1): YAILOM.
6431
0cedd530
SM
6432 * fileio.c (make_temp_name): Handle multibyte prefixes.
6433
2515a131
LT
64342004-08-06 Luc Teirlinck <teirllm@auburn.edu>
6435
6436 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6437 Doc fix.
6438
c8b20fb7
KH
64392004-08-03 Kenichi Handa <handa@m17n.org>
6440
6441 * coding.c (decode_coding_string): Adjust coding->consumed, and
6442 etc. with shrinked_bytes.
6443
fb8b092b
KS
64442004-08-03 Kim F. Storm <storm@cua.dk>
6445
6446 * indent.c (compute_motion): Fix check for full width window
6447 in non-window case. Do not count left truncation glyph on
6448 window systems.
6449
df133612
LT
64502004-08-02 Luc Teirlinck <teirllm@auburn.edu>
6451
6452 * data.c (Finteractive_form): Doc fix.
6453
0f7a93c1
KS
64542004-08-02 Kim F. Storm <storm@cua.dk>
6455
6456 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
6457 properly accounting for continuation glyph on non-window systems.
6458 (Fcompute_motion): Use actual window width if WIDTH is nil, and
6459 actual window width/height if TOPOS is nil, properly accounting for
6460 continuation glyphs on non-window systems, and optional header lines.
6461 (vmotion): Let compute_motion calculate actual window width.
6462
6463 * window.c (window_scroll_line_based): Let compute_motion
6464 calculate actual window width.
6465
f491e1ed
KS
64662004-08-02 Kim F. Storm <storm@cua.dk>
6467
6468 * process.c (read_process_output): Use whole read buffer.
6469 Don't trigger adaptive read buffering on errors.
6470
83f64226
LT
64712004-07-31 Luc Teirlinck <teirllm@auburn.edu>
6472
6473 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
6474
1d1c7e75 6475 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
6476
6477 * callint.c (Fcall_interactively): Doc fix.
6478
8afc13c6
RS
64792004-07-30 Richard M. Stallman <rms@gnu.org>
6480
6481 * abbrev.c (Fexpand_abbrev): Undo previous change.
6482
7c111482
KS
64832004-07-30 Kim F. Storm <storm@cua.dk>
6484
6485 * editfns.c (Fformat): Allocate extra (dummy) element in info.
6486
ee945d08
LT
64872004-07-28 Luc Teirlinck <teirllm@auburn.edu>
6488
6489 * eval.c (Fdefvar, Fdefconst): Doc fixes.
6490
3f911c94
KS
64912004-07-27 Kim F. Storm <storm@cua.dk>
6492
6493 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
6494 we have ensured that the glyph fits on the current line (or returned
6495 MOVE_LINE_CONTINUED otherwise).
6496
f29ff8c7
KS
64972004-07-26 Kim F. Storm <storm@cua.dk>
6498
6499 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
6500 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
6501 if target position is at end of display line but char is not a newline.
6502
81159bb9
RS
65032004-07-25 Richard M. Stallman <rms@gnu.org>
6504
ab431b61
RS
6505 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
6506 instead of ON_VERTICAL_BORDER, when on scroll bar.
6507 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
6508
6509 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
6510
f29ff8c7 6511 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
6512 Take account of FRAME_INTERNAL_BORDER_WIDTH.
6513
6514 * alloc.c (check_cons_list): New function (contents commented out).
6515
fc820cc5
LT
65162004-07-24 Luc Teirlinck <teirllm@auburn.edu>
6517
6518 * xfaces.c (Fcolor_supported_p): Doc fix.
6519
6520 * frame.c (Fselect_frame, Fset_frame_selected_window)
6521 (Fframe_visible_p, Fraise_frame): Doc fixes.
6522
289978b5
LT
65232004-07-24 Richard M. Stallman <rms@gnu.org>
6524
78819ebb 6525 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
6526
6527 * fileio.c (Fwrite_region): Doc fix.
6528
6529 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
6530
6531 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
6532 only when a real abbrev is present.
6533
289978b5
LT
6534 * xfns.c (x_icon_verify): New function.
6535 (Fx_create_frame): Use it.
6536
d5fb8dab 65372004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
6538
6539 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
6540
36f826d4
KS
65412004-07-21 Kim F. Storm <storm@cua.dk>
6542
6543 * window.h (struct glyph_matrix): New members nrows_scale_factor
6544 and ncols_scale_factor.
6545
6546 * window.c (make_window): Initialize nrows_scale_factor and
6547 ncols_scale_factor members.
6548
6549 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
6550 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
6551 (required_matrix_height): Apply nrows_scale_factor.
6552 (required_matrix_width): Apply ncols_scale_factor.
6553
6554 * xdisp.c (display_line): Increment nrows_scale_factor and set
6555 fonts_changed_p if past last allocated row.
6556 (append_glyph, append_composite_glyph, produce_image_glyph)
6557 (append_stretch_glyph): Increment ncols_scale_factor and set
6558 fonts_changed_p if current area is full.
6559
5fc1c546
JD
65602004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6561
6562 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
6563
cb7516e5
LT
65642004-07-19 Luc Teirlinck <teirllm@auburn.edu>
6565
6566 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
6567 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
6568 (Fset_window_start, Fscroll_up, Fscroll_down)
6569 (Fother_window_for_scrolling, Fscroll_other_window)
6570 (Fsave_window_excursion, Fset_window_vscroll)
6571 (syms_of_window) <window-size-fixed>: Doc fixes.
6572
b6189c3b 65732004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
6574
6575 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
6576 ENCODE_SYSTEM for filenames.
6577
bfcf6608
ST
65782004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6579
6580 * mac.c (sys_select): Block input around call to
6581 ReceiveNextEvent to prevent breakage. Correctly handle
6582 blocking on event queue only by calling ReceiveNextEvent
6583 instead of select (since GUI events aren't on an fd).
6584 (sys_read): Remove function
6585 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
6586
e082ac9d
ST
65872004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6588
6589 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 6590 polling instead of 1 sec timeouts (like solaris).
e082ac9d 6591
cb7516e5 6592 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
6593 frame creation.
6594
6595 * keyboard.c: Undef SIGIO on Carbon
6596
6597 * atimer.c (alarm_signal_handler): Call alarm handlers after
6598 scheduling.
6599
6600 * eval.c (Feval): Remove quit_char test
6601
6602 * process.c (wait_reading_process_input): Remove clearing
6603 stdin for select call on process input.
6604
4b9da0fb
LT
66052004-07-18 Luc Teirlinck <teirllm@auburn.edu>
6606
1204e81c
LT
6607 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
6608 capitalization error in docstring.
4b9da0fb 6609
26503ad2
JB
66102004-07-17 Juanma Barranquero <lektu@terra.es>
6611
6612 * keyboard.c (not_single_kboard_state): Do nothing unless
6613 MULTI_KBOARD is defined.
6614
3751eb00
RS
66152004-07-17 Richard M. Stallman <rms@gnu.org>
6616
6617 * window.c (coordinates_in_window): Inside the window but outside
6618 its box to the L or R, return ON_VERTICAL_BORDER.
6619 (window_list_1): Rotate the list to start with WINDOW.
6620
6621 * print.c (print_preprocess): Test for print_depth at limit
6622 before entering in being_printed.
6623
6624 * keyboard.c (not_single_kboard_state): New function.
6625 (stuff_buffered_input): Now no-op only if no SIGTSTP.
6626
6627 * frame.c (Fdelete_frame): If we're in single_bboard_state on
6628 this kboard, and we delete its last frame, go to any_kboard_state.
6629
6630 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
6631
b6189c3b 66322004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
6633
6634 * w32fns.c (Fx_file_dialog): Encode strings in system coding
6635 system before passing them to OS functions for display.
6636
0f6af254
DK
66372004-07-15 David Kastrup <dak@gnu.org>
6638
f9253326
KS
6639 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
6640 Apparently fixes an abort condition.
0f6af254 6641
386c8f42
LT
66422004-07-14 Luc Teirlinck <teirllm@auburn.edu>
6643
6644 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
6645 instead of a cons.
6646
366511da
MB
66472004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6648
6649 * keyboard.c (echo_dash): Do nothing if there already is a dash
6650 at the end of the echo string.
6651
f85409d3
KS
66522004-07-12 Kim F. Storm <storm@cua.dk>
6653
6654 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
6655 if GC_MARK_STACK.
6656
0ba2e87b
LT
66572004-07-10 Luc Teirlinck <teirllm@auburn.edu>
6658
da38045d
LT
6659 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
6660
0ba2e87b
LT
6661 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
6662 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
6663 (Freplace_buffer_in_windows, Fset_window_buffer)
6664 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
6665 (syms_of_window): Expand docstring of `display-buffer-function'.
6666
5668fbb8
LT
66672004-07-09 Luc Teirlinck <teirllm@auburn.edu>
6668
6669 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
6670 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
6671 that time values of the type (HIGH . LOW) are considered obsolete.
6672
a085bf9d
LT
66732004-07-06 Luc Teirlinck <teirllm@auburn.edu>
6674
669de2fb
LT
6675 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
6676 docstring.
6677
bac66325 6678 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 6679
8e975df9
JPW
66802004-07-06 John Paul Wallington <jpw@gnu.org>
6681
6682 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
6683
fa164e6a
JPW
6684 * fns.c (Fclear_string): Signal an error if STRING is not a string.
6685
2bac9bb1
JD
66862004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6687
6688 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
6689 instead of CGMainDisplayID (only in OSX 10.2 and later).
6690
316ef0dc
JPW
66912004-07-04 John Paul Wallington <jpw@gnu.org>
6692
6693 * fileio.c (read_file_name_completion_ignore_case): New variable.
6694 (syms_of_fileio): Declare and initialise it.
6695 (Fread_file_name): Bind `completion-ignore-case' to respect it.
6696
2a1a35c6
EZ
66972004-07-03 Eli Zaretskii <eliz@gnu.org>
6698
6699 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
6700 for event.x and event.y.
6701
33a72331
KH
67022004-07-01 Kenichi Handa <handa@m17n.org>
6703
6704 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
6705 after getting a new string by pre-write-conversion.
6706
9238467d 67072004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
6708
6709 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
6710 (x_calc_absolute_position): Remove unused var `child'.
6711
6712 * xfaces.c (x_supports_face_attributes_p)
6713 (Fdisplay_supports_face_attributes_p): YAILOM.
6714 (tty_supports_face_attributes_p): Remove unused var `i'.
6715
6716 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
6717 back_unibyte_ok.
6718
6719 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
6720
6721 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
6722
6723 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
6724
f96ec754
AS
67252004-06-30 Andreas Schwab <schwab@suse.de>
6726
6727 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
6728 (Finit_image_library): Pass LIBRARIES through to
6729 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
6730 (lookup_image_type): Pass Qnil as second argument to
6731 Finit_image_library.
6732
78819ebb 6733 * lisp.h (Finit_image_library): Declare.
f96ec754 6734
59feca74 67352004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 6736
31983645
AS
6737 * macterm.c (do_window_activate, do_window_deactivate): Remove.
6738 (XTread_socket): Send mouse button events to the toolbox
6739 dispatcher even when the mouse is grabbed. Don't process window
6740 activate events for non-Emacs windows. Replace function calls to
6741 do_window_activate and do_window_deactivate with their contents.
6742 Reset mouse grabbing status when a window is deactivated.
59feca74 6743
c61278bb
ST
67442004-06-29 Steven Tamm <steventamm@mac.com>
6745
6746 * macterm.c (mac_get_emulated_btn)
6747 (mac_event_to_emacs_modifiers): Fix emulated mouse button
6748 support to correctly mask out modifiers.
6749
c3762cbd
DK
67502004-06-29 David Kastrup <dak@gnu.org>
6751
6752 * search.c (Fset_match_data): Allow buffer before end of list
6753 which can happen if set-match-data is using a pre-consed list.
6754
c61278bb 67552004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
6756
6757 * macterm.c (XTread_socket): Correctly set the frame position
6758 after the window is moved.
6759
74cdfe05
JD
67602004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6761
6762 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
6763 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
6764 (xg_get_image_for_pixmap): Add workaround for monochrome displays
6765 so insensitive and activated icons look ok.
74cdfe05 6766
ef544dc8
JR
67672004-06-27 Jason Rumney <jasonr@gnu.org>
6768
6769 * w32fns.c (file_dialog_callback): Disable edit control if set
6770 to directories only on CDN_INITDONE message.
6771 (Fx_file_dialog): Default to directories only when prompt starts
6772 with "Dired".
6773
7b7990cc
KS
67742004-06-25 Kim F. Storm <storm@cua.dk>
6775
6776 * alloc.c (allocate_misc): Update total_free_markers.
6777 (free_misc): New function.
6778 (safe_alloca_unwind, free_marker): Use it.
6779
6780 * lisp.h (free_misc): Add prototype.
6781
6782 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
6783
d8c379f8
RS
67842004-06-24 Richard M. Stallman <rms@gnu.org>
6785
6786 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
6787 (syms_of_emacs): Lisp variables deleted.
6788
559cdd07
DK
67892004-06-23 David Kastrup <dak@gnu.org>
6790
94939b84
DK
6791 * search.c (Freplace_match): Adjust the match-data more thoroughly
6792 when replacing strings in the buffer.
6793 (Fmatch_data): When INTEGERS is non-nil and the last match was in
6794 a buffer, add the buffer as last element to the match data.
6795 (Fset_match_data): If an additional element of the match-data is a
6796 buffer, restore it to last_thing_searched.
c8d09ad8 6797 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
6798 (restore_match_data): Restore it again.
6799
dce417e7
LT
68002004-06-23 Luc Teirlinck <teirllm@auburn.edu>
6801
6802 * keymap.c (Ftext_char_description): Doc fix.
6803 * doc.c (Fsnarf_documentation): Doc fix.
6804
ef54b2d0
KS
68052004-06-22 Kim F. Storm <storm@cua.dk>
6806
b5bc4d05
KS
6807 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
6808
ef54b2d0
KS
6809 * lisp.h (struct Lisp_Save_Value): New member dogc.
6810 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
6811 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
6812 (SAFE_FREE_LISP): New macro.
6813
6814 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
6815 (make_save_value): Init new dogc member.
6816 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
6817
6818 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
6819 SAFE_FREE_LISP macros.
6820
3d33d993
KS
68212004-06-22 Kim F. Storm <storm@cua.dk>
6822
6823 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
6824 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
6825 in that memory area are unknown to GC. Add comments.
6826
6827 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
6828
5c917f98
KS
68292004-06-21 Kim F. Storm <storm@cua.dk>
6830
6831 * lisp.h (MAX_ALLOCA): Define here.
6832 (safe_alloca_unwind): Add prototype.
6833 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
6834
6835 * alloc.c (safe_alloca_unwind): New function.
6836
6837 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
6838
6839 * charset.c (Fstring): Use SAFE_ALLOCA.
6840
6841 * coding.c (MAX_ALLOCA): Remove define.
6842
6843 * data.c (MAX_ALLOCA): Remove define.
6844 (Faset): Use SAFE_ALLOCA.
6845
6846 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
6847
6848 * fns.c (string_make_multibyte, string_to_multibyte)
6849 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
6850 (MAX_ALLOCA): Remove define.
6851 (Fbase64_encode_region, Fbase64_encode_string)
6852 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
6853 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
6854 memory leak if encoding fails.
6855
6856 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
6857
9a09408e
EZ
68582004-06-21 Eli Zaretskii <eliz@gnu.org>
6859
6860 * print.c (Fwith_output_to_temp_buffer): Doc fix.
6861
376de739
RS
68622004-06-20 Richard M. Stallman <rms@gnu.org>
6863
6864 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
6865
6866 * search.c (match_limit): Cleaner err msg when no match data available.
6867
6868 * window.c (syms_of_window): Doc fix.
6869
6870 * keyboard.c (command_loop_1): Handle values `only' and `identity'
6871 for Vtransient_mark_mode.
6872
6873 * buffer.c (syms_of_buffer): Doc fix.
6874
acd81db9
DK
68752004-06-21 David Kastrup <dak@gnu.org>
6876
6877 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
6878 and unbinding of `case-fold-search' according to
6879 `completion-ignore-case' around calls of string-match and
6880 predicates, respectively. Should give satisfactory performance
6881 in all relevant cases.
6882
f303762d
JD
68832004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6884
95911c74
JD
6885 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
6886 clip_x/y_origin.
6887
a6cb6b78
JD
6888 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
6889
f303762d
JD
6890 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
6891
6892 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
6893 on Mac OSX.
6894
bbdb2684
LT
68952004-06-16 Luc Teirlinck <teirllm@auburn.edu>
6896
6897 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
6898
5ea48b1c
KS
68992004-06-16 Kim F. Storm <storm@cua.dk>
6900
6901 * dispextern.h (Vimage_types): Remove extern.
6902
803aac3e
MB
69032004-06-16 Miles Bader <miles@gnu.org>
6904
6905 * image.c (lookup_image_type): Initialize image type if necessary.
6906
cdc97764
KS
69072004-06-15 Kim F. Storm <storm@cua.dk>
6908
c4a5739c
KS
6909 * xdisp.c (try_cursor_movement): Exclude header line from scroll
6910 margin at top of window.
6911 (try_window_reusing_current_matrix): Calculate proper cursor position
6912 after scrolling up with non-zero scroll margin, as the old cursor
6913 position corresponds to value of PT before executing this command.
6914 (try_window_id): Consider scroll margin at bottom of window too;
6915 otherwise we fail to scroll when hl-line-mode is enabled.
6916
cdc97764
KS
6917 * syntax.c (skip_chars): Only recognize [:class:] when it has the
6918 proper format and class is a lower-case word.
6919
5b166323
JD
69202004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6921
6922 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 6923 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
6924 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
6925 xg_get_gdk_pixmap_and_mask.
cdc97764 6926
5b166323
JD
6927 * xterm.h (struct x_display_info): Typo in comment fixed.
6928
1ebd4f78
JB
69292004-06-14 Juanma Barranquero <lektu@terra.es>
6930
6931 * dispextern.h (Vimage_types): Make it conditional on
6932 HAVE_WINDOW_SYSTEM.
6933
6934 * image.c (Vimage_types): Move from xdisp.c.
6935 (Vimage_type_cache): New variable.
6936 (define_image_type): New argument indicating whether an image
6937 library was loaded; cache loaded status and return t on success,
6938 nil otherwise.
6939 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
6940 (w32_delayed_load): New function to load an image library from a
6941 list of possible filenames.
6942 (init_xpm_functions, init_png_functions, init_jpeg_functions)
6943 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 6944 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
6945 (Finit_image_library): New function, extracted from `init_image'.
6946 Try to initialize an image library on demand and cache whether we
6947 were successful or not.
6948 (syms_of_image): Initialize `Vimage_types' and
6949 `Vimage_type_cache'. Add recognized image types to Vimage_types.
6950 Export `init-image-library'.
6951 (init_image): Remove initialization of all image types, except xbm
6952 and pbm.
6953
6954 * xdisp.c (Vimage_types): Delete (moved to image.c).
6955
904ee128
AS
69562004-06-14 Andreas Schwab <schwab@suse.de>
6957
6958 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
6959 Avoid calling specbind when completion-regexp-list is empty.
6960
092de21d
RS
69612004-06-13 Richard M. Stallman <rms@gnu.org>
6962
6963 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6964 (re_wctype, re_iswctype, re_wctype_to_bit):
6965 Non-function definitions moved here from regex.c.
1ebd4f78 6966
092de21d
RS
6967 * regex.c (re_wctype, re_iswctype): Function defs longer static.
6968 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6969 (re_wctype, re_iswctype, re_wctype_to_bit):
6970 Non-function definitions moved to regex.h.
6971
6972 * window.c (Fselect_window): Doc fix.
6973
6974 * syntax.c: Include regex.h.
6975 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
6976 If requested, make a list of classes, then check the scanned
6977 chars for membership in them.
6978 (in_classes): New function.
6979 Doc fix.
6980
6981 * keyboard.c (cmd_error): Don't call any_kboard_state
6982 if inside a recursive edit level.
6983
9ba27690 69842004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
6985
6986 * keyboard.c (command_loop): Call any_kboard_state before
6987 command_loop_2 when at top level.
6988
3ebc0939
AS
69892004-06-13 Andreas Schwab <schwab@suse.de>
6990
cea5d0d4
AS
6991 * print.c (print_object): Always use %ld for printing EMACS_INT.
6992
6993 * keyboard.c (cancel_hourglass_unwind): Return a value.
6994 (modify_event_symbol): Always use %ld for printing EMACS_INT.
6995 (Fexecute_extended_command): Likewise.
6996
6997 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
6998 avoid clashes.
6999 (SYNTAX): Likewise.
7000 (SYNTAX_WITH_FLAGS): Likewise.
7001 (SYNTAX_MATCH): Likewise.
7002
7003 * syntax.c (char_quoted): Avoid warning about undefined operation.
7004 (find_defun_start): Likewise.
7005 (scan_lists): Likewise.
7006 (INC_FROM): Likewise.
7007 (scan_sexps_forward): Likewise.
7008
be8c4ce4
AS
7009 * image.c: Include <ctype.h>.
7010
3ebc0939
AS
7011 * xfaces.c (face_attr_equal_p): Declare parameters.
7012
6fb41b5b
KH
70132004-06-13 Kenichi Handa <handa@m17n.org>
7014
7015 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
7016
fc3095ce
EZ
70172004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
7018
7019 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
7020
66189a40
KH
70212004-06-12 Kenichi Handa <handa@m17n.org>
7022
7023 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
7024 ccl_prog_stack_struct and update it.
7025 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
7026 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
7027 ccl->eof_ic on EOF.
7028 (ccl_debug_hook): New function.
7029 (struct ccl_prog_stack): New member eof_ic.
7030 (ccl_driver): Handle EOF in subrountine call correctly.
7031
70322004-06-11 Kenichi Handa <handa@m17n.org>
7033
a9b43336 7034 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 7035
1da71023
KS
70362004-06-11 Kim F. Storm <storm@cua.dk>
7037
7038 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
7039
e9efcef4
JB
70402004-06-11 Juanma Barranquero <lektu@terra.es>
7041
7042 * keyboard.c (Fposn_at_point): Doc fix.
7043
9b9ceb61
DK
70442004-06-11 David Kastrup <dak@gnu.org>
7045
7046 * search.c (match_limit): Don't flag an error if match-data
7047 exceeding the allocated search_regs.num_regs gets requested, just
7048 return Qnil.
7049
6e87ac8f
MB
70502004-06-08 Miles Bader <miles@gnu.org>
7051
7052 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
7053
0b0dea7b
JB
70542004-06-07 Juanma Barranquero <lektu@terra.es>
7055
7056 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
7057 (Fcurrent_time_string, Fcurrent_time_zone)
7058 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
7059
a0a23346
MB
70602004-06-07 Miles Bader <miles@gnu.org>
7061
08384afd 7062 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
7063 (push_named_merge_point): New function.
7064 (merge_named_face): New function.
7065 (merge_face_ref, face_at_buffer_position, face_at_string_position):
7066 Use `merge_named_face'.
7067 (merge_face_inheritance): Function removed.
c8d09ad8 7068 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
7069 Add new `err_msgs' and `named_merge_points' args. Return error
7070 status. Only print error messages if ERR_MSGS is true. Don't try to
7071 do :inherit attribute validation.
7072 (merge_face_heights): Handle `unspecified' in both directions.
7073 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
7074 Call `merge_face_ref' instead of `merge_face_inheritance'.
7075 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
7076 (compute_char_face, face_at_buffer_position)
7077 (face_at_string_position): Call `merge_face_ref' instead of
7078 `merge_face_vector_with_property'.
7079
12d5b185
KH
70802004-06-07 Kenichi Handa <handa@m17n.org>
7081
7082 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
7083 the necessary places.
7084
2e2d7ee6
KS
70852004-06-07 Kim F. Storm <storm@cua.dk>
7086
7087 * process.c (Fdelete_process): Undo 2004-05-28 change.
7088 Instead, call status_notify also for network process.
7089 (status_message): Use process instead of status as arg.
7090 Give messages "deleted" or "connection broken by remote peer" for
7091 an exited network process.
7092 (status_notify): Change call to status_message.
7093 (read_process_output): Increase readmax to 4096. Do not increase
7094 buffer size for datagram channels (default is now large enough).
7095
fcf0d299
ST
70962004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7097
7098 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
7099 problem due to newly defined variable.
7100
0722292b
MB
71012004-06-06 Miles Bader <miles@gnu.org>
7102
7103 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
7104 immediately if non-interactive or not initialized.
7105
ddfb8369
RS
71062004-06-05 Richard M. Stallman <rms@gnu.org>
7107
7108 * minibuf.c (Fcompleting_read): Doc fix.
7109
57015754
AS
71102004-06-05 Andreas Schwab <schwab@suse.de>
7111
7112 * macfns.c (x_create_tip_frame): Fix declaration after statement.
7113
23715ea6
JB
71142004-06-05 Juanma Barranquero <lektu@terra.es>
7115
7116 * keymap.c (Fdescribe_vector): Fix docstring.
7117 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
7118
8e330b22
MB
71192004-06-05 Miles Bader <miles@gnu.org>
7120
7121 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
7122 attributes have different values than the default face.
7123
9742a3a6
EZ
71242004-06-04 Eli Zaretskii <eliz@gnu.org>
7125
7126 * xfaces.c (x_supports_face_attributes_p): Make this function
7127 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
7128 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
7129 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 7130
9717e36c
MB
71312004-06-04 Miles Bader <miles@gnu.org>
7132
7133 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
7134 from Ftty_supports_face_attributes_p.
7135 (x_supports_face_attributes_p): New function.
7136 (Ftty_supports_face_attributes_p): Function deleted.
7137 (Fdisplay_supports_face_attributes_p): New function.
7138 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 7139 (face_attr_equal_p): New function.
9717e36c
MB
7140 (lface_equal_p): Use it.
7141
52deb19f
JB
71422004-06-03 Juanma Barranquero <lektu@terra.es>
7143
7144 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
7145 (Vw32_color_map): Fix typo in docstring.
7146 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
7147 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
7148 Make argument names match their use in docstring.
7149
86d373e6
JB
71502004-06-02 Juanma Barranquero <lektu@terra.es>
7151
7152 Work around bugs/problems with MinGW builds of graphics libraries
7153 called from MSVC builds of Emacs.
7154
7155 * image.c (lookup_image): Make pointer to img static.
7156 (png_read_from_memory): Disable "global" optimization.
7157
2fb0ce67
SM
71582004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7159
c8d09ad8
SM
7160 * eval.c (Fcondition_case): Fix usage. Simplify.
7161
2fb0ce67
SM
7162 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
7163
50bf7673
ST
71642004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7165
7166 * macfns.c: Don't include ccl.h.
7167 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
7168 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
7169 TextUtils.h.
c8d09ad8 7170 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
7171 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
7172 display height/width.
7173 (compute_tip_xy, Vx_max_tooltip_size): Declare.
7174 (unwind_create_tip_frame, compute_tip_xy): New functions.
7175 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
7176 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
7177 and last_show_tip_args.
2fb0ce67 7178
50bf7673
ST
7179 * macgui.h [!MAC_OSX]: Include Gestalt.h.
7180 (Cursor, No_Cursor): New defines.
c8d09ad8 7181 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
7182 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
7183
7184 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
7185
7186 * macterm.c: Don't include Gestalt.h.
7187 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
7188 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
7189 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
7190 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
7191 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
7192 (construct_mouse_click, XTmouse_position)
7193 (x_scroll_bar_report_motion, x_calc_absolute_position)
7194 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
7195 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
7196 (note_mouse_movement): Clear the mouse face and reset the pointer
7197 shape when the pointer goes outside the frame without grabbing.
7198 (mac_front_window): New function.
7199 (mac_window_to_frame): New macro.
7200 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
7201 (do_window_activate, do_window_deactivate, do_app_resume)
7202 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
7203 (do_zoom_window, mac_do_receive_drag, XTread_socket)
7204 (mac_check_for_quit_char): Use mac_front_window and/or
7205 mac_window_to_frame.
7206 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
7207 scroll-bar click event.
7208 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
7209 (x_free_frame_resources): Reset tip_window to NULL when it is
7210 disposed of.
50bf7673 7211 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 7212 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
7213 (do_window_update): Don't do anything if the updated window is the
7214 tooltip window.
7215 (do_mouse_moved): Handle mouse movement events here (previously in
7216 XTread_socket). Clear the mouse face if
7217 dpyinfo->mouse_face_hidden is set.
7218 (do_os_event, do_events): Remove (now in XTread_socket).
7219 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
7220 Loop until all the events in the queue are processed.
7221 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
7222 contents of do_os_event and do_events. Remove mouse movement
7223 handling (now in do_mouse_moved). Add the case where
7224 Vmouse_highlight has an integer value.
7225 (NewMacWindow): Remove.
7226 (make_mac_frame): Do what NewMacWindow previously did. Don't do
7227 excess initializations.
7228 (make_mac_terminal_frame): Previous initializations in
7229 make_mac_frame are moved here.
c8d09ad8
SM
7230 (mac_initialize_display_info):
7231 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
7232
7233 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
7234 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
7235
08fd1251
RS
72362004-05-29 Richard M. Stallman <rms@gnu.org>
7237
7238 * lisp.h (truncate_undo_list): Update decl.
7239
7240 * alloc.c (undo_outer_limit): New variable.
7241 (syms_of_alloc): Defvar it.
7242 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
7243
7244 * undo.c (truncate_undo_list): New arg LIMITSIZE.
7245
7246 * alloc.c (lisp_align_malloc): Check for base == 0
7247 regardless of HAVE_POSIX_MEMALIGN.
7248 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
7249
227ef0ff
SM
72502004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7251
7252 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
7253 (marker_blocks_pending_free): Remove.
7254 (Fgarbage_collect): Sweep after cleaning up undo-lists.
7255 Mark the undo lists after claning them up.
7256 Don't free block in marker_blocks_pending_free.
7257 (mark_buffer): Don't mark undo_list.
7258 (gc_sweep): Sweep hash-tables and strings first.
7259 Do free marker blocks that are empty.
7260
034a6113
SM
72612004-05-28 Jim Blandy <jimb@redhat.com>
7262
7263 * regex.c (print_partial_compiled_pattern): Add missing 'break'
7264 after 'case wordend'. For symbeg and symend, print to stderr,
7265 like the other cases.
7266
33594a8d
NF
72672004-05-28 Noah Friedman <friedman@splode.com>
7268
7269 * process.c (Fdelete_process): Do not call remove_process.
7270
ce50a847
SM
72712004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7272
7273 * alloc.c (struct backtrace): Remove.
7274 (Fgarbage_collect): Use the new mark_backtrace.
7275
7276 * eval.c (mark_backtrace): New function.
7277
7278 * minibuf.c (run_exit_minibuf_hook): New function.
7279 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
7280 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
7281
1e8dae36
KS
72822004-05-27 Kim F. Storm <storm@cua.dk>
7283
7284 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
7285 over display properties, e.g. images, that replace buffer text.
7286
846faa3b
KS
72872004-05-25 Kim F. Storm <storm@cua.dk>
7288
7289 * alloc.c (marker_blocks_pending_free): New var.
7290 (gc_sweep): Store free marker blocks on that list.
7291 (Fgarbage_collect): Free them after undo-list cleanup.
7292
7293 * process.c (wait_reading_process_input): Check connect_wait_mask
7294 before actually accepting connection in case it has already been
7295 accepted due to recursion.
7296
b6189c3b 72972004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 7298
ce50a847
SM
7299 * coding.c (Fset_safe_terminal_coding_system_internal):
7300 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 7301
71d5a208
RS
73022004-05-22 Richard M. Stallman <rms@gnu.org>
7303
7304 * alloc.c (Fmake_string): Doc fix.
7305
7306 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
7307 and the alist pairs too.
7308
7309 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
7310
51391fb9
RF
7311 * emacs.c (main): Update copyright year.
7312
71d5a208
RS
7313 * fileio.c (Fread_file_name): Expand DIR if not absolute.
7314
7315 * insdel.c (del_range_2, replace_range): Don't write an anchor
7316 if the gap is empty.
7317
7318 * xdisp.c (try_scrolling): If scroll-up-aggressively or
7319 scroll-down-aggressively is small but positive, put point
7320 near the screen edge.
7321
f63fd14e
JB
73222004-05-22 Juanma Barranquero <lektu@terra.es>
7323
7324 * keymap.c (Fdefine_key): Doc fix.
7325
4d12067c
KS
73262004-05-22 Kim F. Storm <storm@cua.dk>
7327
7328 * alloc.c (struct backtrace): Add debug_on_exit member.
7329 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
7330 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
7331 the removed cons cells.
7332 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
7333 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
7334 any cons cells pointing to unallocated stings.
7335 Do not lisp_free any marker blocks, as there may still be pointers
7336 to them from buffer undo lists at this stage of GC.
7337
7338 * keyboard.c (struct backtrace): Add debug_on_exit member.
7339 (Fcommand_execute): Clear it.
7340
931285e2
LT
73412004-05-20 Luc Teirlinck <teirllm@auburn.edu>
7342
7343 * intervals.c (lookup_char_property): Do not prematurely return nil.
7344
669fa600
SM
73452004-05-19 Jim Blandy <jimb@redhat.com>
7346
7347 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 7348 beginning and end of symbols.
4d12067c 7349
669fa600
SM
7350 * regex.c (enum syntaxcode): Add Ssymbol.
7351 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
7352 (re_opcode_t): New opcodes `symbeg' and `symend'.
7353 (print_partial_compiled_pattern): Print the new opcodes properly.
7354 (regex_compile): Parse the new operators.
ce50a847 7355 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
7356 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
7357 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
7358 (re_match_2_internal): Match symbeg and symend.
7359
7360 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
7361
0d8c2e5c
KS
73622004-05-19 Kim F. Storm <storm@cua.dk>
7363
7364 * .gdbinit (xsymbol): Fix last change.
7365
669fa600
SM
73662004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
7367
7368 * .gdbinit (xprintstr): New fun.
7369 (xstring, xprintsym): Use it.
7370
7371 * w32proc.c (create_child): Use INTMASK.
7372
7373 * alloc.c (Fgarbage_collect): Do all the marking before flushing
7374 unmarked elements of the undo list.
7375
9a6a4c40
DP
73762004-05-18 David Ponce <david@dponce.com>
7377
7378 * print.c (print): Reset print_depth before to call print_object.
7379
f3c4ec74
JR
73802004-05-18 Jason Rumney <jasonr@gnu.org>
7381
7382 * w32console.c: Prefix RIF functions with w32con_ to avoid
7383 namespace clash with functions in term.c and w32term.c.
7384
7385 * w32menu.c (add_menu_item, w32_menu_display_help)
7386 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
7387
0d8c2e5c 7388 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 7389
6be49c3a
EZ
73902004-05-18 Eli Zaretskii <eliz@gnu.org>
7391
4d0b9a0a
EZ
7392 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
7393
6be49c3a
EZ
7394 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
7395 with make_number.
7396 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
7397 with XINT.
7398
0bc90bba
KS
73992004-05-18 Kim F. Storm <storm@cua.dk>
7400
89d19988
KS
7401 * blockinput.h (INPUT_BLOCKED_P): New macros.
7402
7403 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
7404 (Ftop_level): Unblock input if blocked.
7405
0bc90bba
KS
7406 * buffer.h (GET_OVERLAYS_AT): New macro.
7407 * msdos.c (IT_note_mouse_highlight): Use it.
7408 * textprop.c (get_char_property_and_overlay): Use it.
7409 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
7410 * xfaces.c (face_at_buffer_position): Use it.
7411
7412 * print.c (print_object): Increase buf size.
7413
653bd0f6
JR
74142004-05-17 Jason Rumney <jasonr@gnu.org>
7415
7416 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
7417 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
7418 Lisp_Object using i member.
7419 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
7420 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
7421 consistently.
7422
7423 * w32proc.c (create_child): Use make_number instead of masking pid.
7424
7425 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
7426 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
7427 Use EQ to compare Lisp_Objects.
7428 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
7429
7430 * w32term.c (w32_num_mouse_buttons): Rename from
7431 Vw32_num_mouse_buttons and make it an int.
7432
7433 * w32.c (init_environment): Use it.
7434
7435 * w32fns.c (w32_wnd_proc): Likewise.
7436
7437 * w32proc.c (w32_pipe_read_delay): Rename from
7438 Vw32_pipe_read_delay and make it an int.
7439
7440 * w32.c (_sys_read_ahead): Use it.
7441
7442 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
7443
7444 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
7445
7446 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
7447 (key_event): Don't mix Lisp_Object and int.
7448
7449 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
7450
7451 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
7452 modifiers in language change event.
7453
54b53ba7
KS
74542004-05-17 Kim F. Storm <storm@cua.dk>
7455
7456 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
7457 Such objects may be freed markers which still exist on an undo list.
7458
6e86a75d
JB
74592004-05-16 Juanma Barranquero <lektu@terra.es>
7460
7461 * data.c (Fset_default): Make argument names match their use in
7462 docstring.
7463
fc80da24
AS
74642004-05-15 Andreas Schwab <schwab@suse.de>
7465
7466 * emacs.c (gdb_array_mark_flag): Define.
7467 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
7468
c1380aa6
EZ
74692004-05-15 Eli Zaretskii <eliz@gnu.org>
7470
7471 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
7472 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
7473 defined for the MS-DOS build.
7474
89458937
SM
74752004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7476
7477 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
7478
08020f9a
KH
74792004-05-14 Kenichi Handa <handa@m17n.org>
7480
7481 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
7482
a433994a
ST
74832004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7484
7485 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
7486 section to frame.c section.
7487 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 7488 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 7489
a433994a 7490 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 7491
a433994a 7492 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 7493
a433994a
ST
7494 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
7495 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
7496 (XTread_socket): Fix int/Lisp_Object mixup.
7497 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 7498
a433994a
ST
7499 * macterm.h (struct frame, struct face, struct image)
7500 (display_x_get_resource, Fx_display_color_p)
89458937
SM
7501 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
7502 Add prototypes.
a433994a 7503
b51a51b9
KS
75042004-05-14 Kim F. Storm <storm@cua.dk>
7505
7506 * process.c (wait_reading_process_input): Make reentrant.
7507 Make Available and Connecting non-static. Save and restore value
7508 of waiting_for_user_input_p.
7509
2bde1dd8
KS
75102004-05-13 Kim F. Storm <storm@cua.dk>
7511
7512 * keyboard.c (mark_kboards): Don't mark x and y members
7513 that are overloaded in selection request events.
7514
a267ab4d
SM
75152004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7516
7517 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
7518
eb15ce9e
GM
75192004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
7520
7521 * window.c (Fdisplay_buffer, Fsplit_window)
7522 (split-height-threshold): Doc fix.
7523
7fc92635
JB
75242004-05-13 Juanma Barranquero <lektu@terra.es>
7525
7526 * xfaces.c (Ftty_supports_face_attributes_p)
7527 (Finternal_copy_lisp_face): Fix typo in docstring.
7528 (Finternal_get_lisp_face_attribute): Fix docstring.
7529
1ec2a572
JD
75302004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7531
7532 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
7533
ae9292e0
ST
75342004-05-11 Steven Tamm <steventamm@mac.com>
7535
7536 * macfns.c (Fx_create_frame): Default to using tool-bar by
7537 setting tool-bar-lines to 1 in default-frame-alist.
7538
75392004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
7540
7541 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
7542 (xpm_get_color_table_v, xpm_make_color_table_h)
7543 (xpm_put_color_table_h, xpm_get_color_table_h)
7544 (xpm_str_to_color_key, xpm_load_image, xpm_load)
7545 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 7546 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 7547
fe97e8df
ST
75482004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7549
a267ab4d 7550 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
7551 instead of FRAME_X_P
7552
b47e779e
KS
75532004-05-11 Kim F. Storm <storm@cua.dk>
7554
7555 * process.c (read_process_output): Grow decoding_buf when needed;
7556 this could cause a crash in allocate_string and compact_small_strings.
7557
cdc9b845
EZ
75582004-04-29 Jim Blandy <jimb@redhat.com>
7559
7560 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
7561 against proper opcode.
7562
aa7094ba
JB
75632004-05-10 Juanma Barranquero <lektu@terra.es>
7564
7565 * process.c (Fstart_process): Fix docstring.
7566
7567 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
7568 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
7569 (Fsplit_char, Fchar_charset): Make argument names match their use
7570 in docstring.
7571
e109331a
RS
75722004-05-10 Richard M. Stallman <rms@gnu.org>
7573
7574 * print.c (print_preprocess): Use being_printed, loop_count and
7575 halftail to detect overdeep nesting and cyclic cdr chains.
7576
9a28b921
AS
75772004-05-10 Andreas Schwab <schwab@suse.de>
7578
78819ebb 7579 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
7580
7581 * fileio.c (Frename_file): Remove extra argument in call to
7582 Fmake_symbolic_link.
7583
e2c02c1a
KS
75842004-05-10 Kim F. Storm <storm@cua.dk>
7585
7586 * xdisp.c (calc_line_height_property): Use string position when
7587 object is a string.
7588
cfe9d13e
KH
75892004-05-10 Kenichi Handa <handa@m17n.org>
7590
a57e8159
KH
7591 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
7592 inhibit-modification-hooks to t temporarily before calling
7593 Ferase_buffer.
7594
7595 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
7596 inhibit-modification-hooks to t temporarily before calling
7597 Ferase_buffer.
7598
7599 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
7600 inhibit-modification-hooks to t temporarily before calling
7601 Ferase_buffer.
7602
cfe9d13e
KH
7603 * fns.c (count_combining): Delete it.
7604 (concat): Don't check combining bytes.
7605
ceb96489
JR
76062004-05-09 Jason Rumney <jasonr@gnu.org>
7607
7608 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
7609 (globals_of_w32fns): Set it.
7610
b6189c3b 76112004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
7612
7613 * data.c (Fquo): Simplify.
7614
28712a21
JB
76152004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
7616
7617 * data.c (Fquo): If any argument is float, do the computation in
7618 floating point.
7619
0f0af7a8
JB
76202004-05-08 Juanma Barranquero <lektu@terra.es>
7621
88214ef6
JB
7622 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
7623 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
7624 Fix spelling of Emacs on docstring.
7625 (Fset_process_coding_system, Fprocess_coding_system)
7626 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
7627 Make argument names match their use in docstring.
7628 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
7629 Fix docstring.
7630
0f0af7a8
JB
7631 * editfns.c (Finsert_buffer_substring): Make argument names match their
7632 use in docstring.
7633
7634 * syntax.c (Fmodify_syntax_entry): Fix docstring.
7635
2a316a84
ST
76362004-05-07 Steven Tamm <steventamm@mac.com>
7637
7638 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
7639 around call to ReceiveEvent to avoid certain crashes.
7640
76412004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 7642
2a316a84
ST
7643 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
7644 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
7645 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
7646 Save/restore the current graphics port and device handle when
7647 drawing into an offscreen graphics world.
7648
7649 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
7650 (gif_load): Likewise.
7651
ab80314b
JB
76522004-05-07 Juanma Barranquero <lektu@terra.es>
7653
7654 * window.c (Fset_window_buffer): Fix docstring.
7655
70646bb5
TTN
76562004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
7657
7658 * emacs.c (main) [VMS]: Fix var ref.
7659
b6189c3b 76602004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
7661
7662 * data.c (Fsetq_default): Fix docstring.
7663
279d3293
JR
76642004-05-06 Jason Rumney <jasonr@gnu.org>
7665
7666 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
7667 to avoid name clash.
7668
f72b5416
JD
76692004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7670
7671 * fileio.c (barf_or_query_if_file_exists): Use lstat.
7672 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 7673 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 7674
6ab66799
KS
76752004-05-04 Kim F. Storm <storm@cua.dk>
7676
7677 * xdisp.c (Qtotal): New var.
7678 (syms_of_xdisp): Intern and staticpro it.
7679 (calc_line_height_property): New arg total. Set it if
7680 line-spacing property has format (total . VALUE).
7681 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
7682 Handle total line-spacing property.
7683
ab2d724b
JD
76842004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7685
7686 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
7687 "under" scroll bar when size/position changes.
7688
238add5e
JR
76892004-05-03 Jason Rumney <jasonr@gnu.org>
7690
7691 * makefile.nt: Remove.
7692
1644f4e4
EZ
76932004-05-02 Eli Zaretskii <eliz@gnu.org>
7694
a267ab4d
SM
7695 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
7696 Avoid compiler warnings.
05fdbeb8 7697
1644f4e4
EZ
7698 * Makefile.in (region-cache.o): Depend on config.h.
7699
b6189c3b 77002004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
7701
7702 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
7703 with continuation lines, too.
7704
2b98b088
TTN
77052004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
7706
7707 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
7708
d9bf7950
SM
77092004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
7710
7711 * xdisp.c (calc_line_height_property): YAILOM (yet another
7712 int/Lisp_Object mixup).
7713
affa509c
EZ
77142004-05-01 Eli Zaretskii <eliz@gnu.org>
7715
7716 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
7717 undo bad effect of pack(4) in some versions of system headers.
7718
07c07cfe
JR
77192004-05-01 Jason Rumney <jasonr@gnu.org>
7720
7721 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
7722
e71caa4e
KS
77232004-04-30 Kim F. Storm <storm@cua.dk>
7724
7725 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 7726 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
7727
7728 * dispextern.h (struct it): Remove member use_default_face.
7729 Add members override_ascent, override_descent, override_boff.
7730
7731 * xdisp.c (init_iterator): Handle line-spacing float value.
7732 Initialize override_ascent member.
7733 (append_space_for_newline): Reset override_ascent.
7734 Remove use_default_face.
7735 (calc_line_height_property): New function to calculate value of
7736 line-height and line-spacing properties. Look at overlays, too.
7737 Set override_ascent, override_descent, override_boff members when
7738 using another face than the current face. Float values are now
7739 relative to the frame default font, by default; accept a cons
7740 of ratio and face name to specify value relative to a specific face.
7741 (x_produce_glyphs): Use calc_line_height_property.
7742 Use override_ascent etc. when set to handle different face heights.
7743 A negative line-spacing property value is interpreted as a total
7744 line height, rather than inter-line spacing.
7745 (note_mouse_highlight): Allocate room for 40 overlays initially.
7746
0fddae66
SM
77472004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7748
7749 * data.c (Fsubr_name): New fun.
7750 (syms_of_data): Defsubr it.
7751
712d23dc
KS
77522004-04-29 Kim F. Storm <storm@cua.dk>
7753
7754 * xdisp.c (null_glyph_slice): New var.
7755 (append_glyph, append_composite_glyph, append_stretch_glyph):
7756 Use it to initialize glyph slice.
7757
033ad8c6
SM
77582004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
7759
7760 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
7761 (on_hot_spot_p): Make sure we always return a value.
7762 (Flookup_image_map): Remove unused var ix and iy.
7763 (note_mode_line_or_margin_highlight): Remove unused var `image'.
7764
93397360
EZ
77652004-04-27 Eli Zaretskii <eliz@gnu.org>
7766
7767 * msdos.c (init_environment): If one of the TMP... environment
7768 variables is set to a drive letter without a trailing slash,
7769 append a slash.
7770
0c54865e
EZ
77712004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
7772
7773 * editfns.c (lisp_time_argument): Provide externally.
7774
7775 * fileio.c (Fset_file_times): New function.
7776 (syms_of_fileio): Intern and staticpro it.
7777
d3b111bd
KS
77782004-04-27 Kim F. Storm <storm@cua.dk>
7779
07dc1231
KS
7780 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
7781 header line strings.
7782
360fe9d2
KS
7783 * dispextern.h (struct it): New member use_default_face.
7784
d3b111bd
KS
7785 * xdisp.c (Qline_height): New variable.
7786 (syms_of_xdisp): Intern and staticpro it.
7787 (append_space_for_newline): Partially undo 2004-04-25 change;
7788 add default_face_p arg, and restore callers.
7789 Clear it->use_default_face after use.
7790 (x_produce_glyphs): Set default font for ascii char if
7791 it->use_default_font is set. Change line-spacing property to set
7792 just extra line spacing. Handle new line-height property.
7793
0448588b
AS
77942004-04-26 Andreas Schwab <schwab@suse.de>
7795
7796 * print.c (print_object): Print non-ascii characters in bool
7797 vector representation as octal escapes.
7798
7799 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
7800 * print.c (print_object): Use it instead of BITS_PER_CHAR for
7801 bool vectors.
7802 * lread.c (read1): Likewise.
7803 * alloc.c (Fmake_bool_vector): Likewise.
7804 * data.c (Faref, Faset): Likewise.
7805 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
7806 (mapcar1): Likewise.
d3b111bd 7807
536d6baa
ST
78082004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7809
7e26f91b 7810 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 7811
ae11577a
MB
78122004-04-26 Miles Bader <miles@gnu.org>
7813
7814 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
7815
e198ba87
JB
78162004-04-26 Juanma Barranquero <lektu@terra.es>
7817
7818 * buffer.c (Fpop_to_buffer): Fix docstring.
7819
f3d5f92d 78202004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 7821
f3d5f92d
ST
7822 * lread.c (init_lread): Don't display missing lisp directory
7823 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 7824 may be built without correct installation path.
f3d5f92d 7825
03e35edc
KS
78262004-04-25 Kim F. Storm <storm@cua.dk>
7827
9ff3aa31
KS
7828 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7829
7830 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7831
03e35edc
KS
7832 * xdisp.c (append_space_for_newline): Rename from append_space.
7833 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
7834 (x_produce_glyphs): Handle line-spacing property on newline char.
7835 If value is t, adjust ascent and descent to fit current row height.
7836 If value is an integer or float, set extra_line_spacing to integer
7837 value, or to float value x current line height.
7838
f24814e0
KH
78392004-04-23 Kenichi Handa <handa@m17n.org>
7840
7841 * fontset.c (Finternal_char_font): If POSITION is nil, return
7842 font for displaying CH with the default face.
7843
d814862a
JB
78442004-04-23 Juanma Barranquero <lektu@terra.es>
7845
7846 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
7847
063a45c5
SM
78482004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7849
7850 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
7851 Don't make assumptions about the relative place of i and val.
7852 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
7853
ae7ab2d3
KS
78542004-04-21 Kim F. Storm <storm@cua.dk>
7855
7856 * dispextern.h (struct glyph_slice): New struct.
7857 (struct glyph): New member slice.
7858 (GLYPH_SLICE_EQUAL_P): New macro.
7859 (GLYPH_EQUAL_P): Use it.
7860 (struct glyph_string): New member slice.
7861 (struct it_slice): New struct.
7862 (struct it): New member slice, add member to stack too.
7863 New member constrain_row_ascent_descent_p.
7864 (image_ascent): Add prototype.
7865
7866 * dispnew.c (buffer_posn_from_coords): Return full image width
7867 and height even for image slices (posn is relative to full image).
7868 (marginal_area_string): Adjust x0,y0 for image slice.
7869
7870 * image.c (image_ascent): Add slice arg; calculate ascent for
7871 image slice (or full image).
7872
7873 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
7874 (syms_of_keyboard): Defsubr them.
7875
7876 * lisp.h (pos_visible_p): Fix prototype.
7877
c62aec78 7878 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
7879 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7880 (x_draw_image_foreground, x_draw_image_relief)
7881 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7882 Draw sliced images.
7883
7884 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
7885 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7886 (x_draw_image_foreground, x_draw_image_relief)
7887 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
7888 Draw sliced images.
7889
7890 * w32term.h (image_ascent): Remove prototype.
7891
7892 * window.c (Fpos_visible_in_window_p): Return pixel position if
7893 PARTIALLY arg is non-nil. Simplify. Doc fix.
7894 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
7895 to return/set vscroll in pixels.
7896
7897 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
7898
7899 * xdisp.c (Qslice): New variable.
7900 (syms_of_xdisp): Intern and staticpro it.
7901 (pos_visible_p): Return pixel position in new x and y args.
7902 (init_iterator): Reset it->slice info.
7903 (handle_display_prop): Parse (slice ...) property.
7904 (push_it, pop_it): Save/restore slice info.
7905 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
7906 force repositioning of tall row if window is vscrolled, as that
7907 would reset vscroll.
7908 (append_space): Set it->constrain_row_ascent_descent_p to avoid
7909 increasing row height if row is non-empty.
7910 (fill_image_glyph_string): Copy slice info.
7911 (take_vertical_position_into_account): Simplify.
7912 (produce_image_glyph): Handle iterator slice info, setup glyph
7913 slice info. Do not force minimum line height.
7914 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
7915 do not increase height (ascent/descent) of non-empty row when
7916 adding normal character glyph; instead reduce glyph ascent/descent
7917 appropriately; if row is higher than current glyph, adjust glyph
7918 descent/ascent to reposition glyph within the existing row.
7919 Likewise, when char is newline, only set ascent/descent if row is
7920 currently empty.
7921 (note_mouse_highlight): Handle hotspots with sliced image.
7922
7923 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
7924 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7925 (x_draw_image_foreground, x_draw_image_relief)
7926 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7927 Draw sliced images.
7928
7929 * xterm.h (image_ascent): Remove prototype.
7930
d58f8753
SM
79312004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7932
7933 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
7934
4ce2719d
JPW
79352004-04-20 John Paul Wallington <jpw@gnu.org>
7936
7937 * fns.c (Fassoc, Feql): Fix indentation.
7938
d58f8753 7939 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 7940
95f8c3b9
JPW
79412004-04-19 John Paul Wallington <jpw@gnu.org>
7942
7943 * fns.c (Feql): New function.
d58f8753 7944 (syms_of_fns): Defsubr it.
95f8c3b9 7945
b7e85537
JR
79462004-04-18 Jason Rumney <jasonr@gnu.org>
7947
7948 * w32select.c (Fw32_set_clipboard_data): Get sequence number
7949 after closing the clipboard.
7950
5a72efd4
LT
79512004-04-16 Luc Teirlinck <teirllm@auburn.edu>
7952
7953 * buffer.c (Fbuffer_base_buffer): Doc fix.
7954
20dc8583
KS
79552004-04-17 Kim F. Storm <storm@cua.dk>
7956
60962ec4
KS
7957 * keymap.c (Fkey_description): Add optional PREFIX arg.
7958 Combine prefix with KEYS to make up the full key sequence to describe.
7959 Correlate meta_prefix_char and following (simple) key to describe
7960 as meta modifier. All callers changed.
7961 (describe_map): Rename arg `keys' to `prefix'. Remove local
7962 `elt_prefix' var. Use Fkey_description with prefix instead of
7963 elt_prefix combined with Fsingle_key_description.
7964 (describe_vector): Declare static. Replace arg `elt_prefix' with
7965 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 7966 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
7967 Fsingle_key_description.
7968
7969 * keymap.h (Fkey_description): Fix prototype.
7970 (describe_vector): Remove prototype.
7971
409368b9
KS
7972 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
7973
20dc8583
KS
7974 * image.c (PNG_BG_COLOR_SHIFT): Remove.
7975 (png_load): Fix calculation of transparent background color on X
7976 and W32 platforms.
7977
75c5501b
JB
79782004-04-16 Juanma Barranquero <lektu@terra.es>
7979
7980 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
7981 not too large before computing how much to scroll.
7982
da879ae8
SM
79832004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
7984
7985 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
7986
d01ca4a8
LT
79872004-04-14 Luc Teirlinck <teirllm@auburn.edu>
7988
7989 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
7990 Add hyperlink to Elisp manual to the docstring.
7991
572943b3
SM
79922004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
7993
7994 * callint.c (fix_command): Use XDCR.
7995
5e30a0fb
NR
79962004-04-14 Nick Roberts <nick@nick.uklinux.net>
7997
7998 * window.c (Fget_lru_window): Doc fix.
7999
a27ddfaf
KS
80002004-04-14 Kim F. Storm <storm@cua.dk>
8001
8002 * editfns.c (Fformat): Fix allocation size of precision array.
8003
8004 * dispnew.c (update_window): Only set changed_p if
8005 scrolling_window actually did scroll.
8006 (scrolling_window): Only return 1 if we actually did scroll.
8007
8008 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
8009 height to glyph height when cursor row is not fully visible.
8010 (make_cursor_line_fully_visible): Add FORCE_P arg to return
8011 failure in case row is higher than window. Callers changed.
8012 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
8013 Try to scroll partially visible, higher-than-window cursor row.
8014 (redisplay_window): Always try to scroll partially visible,
8015 higher-than-window cursor row - both initially and again with
8016 centering_position = 0.
8017 Clear desired matrix before retrying with centering_position = 0.
8018
da879ae8
SM
80192004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8020
8021 * syntax.c (scan_lists): Simplify backward string scan.
8022 Fix off-by-one boundary check for string and comment fences.
8023
5fc16e8e
SM
80242004-04-13 Joe Buehler <jbuehler@hekimian.com>
8025
8026 * sheap.c, unexcw.c: New files.
8027
c9aac8e6
LT
80282004-04-12 Luc Teirlinck <teirllm@auburn.edu>
8029
8030 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
8031 base buffer has been killed. Correct the error message if the
8032 base buffer does not exist.
8033
1e88a355
SM
80342004-04-12 Joe Buehler <jbuehler@hekimian.com>
8035
8036 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
8037 Cygwin itself. Add support for Xaw3d scrollbars.
8038
8039 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
8040
8041 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
8042
8043 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
8044 before Cygwin unexec.
8045
8046 * Makefile.in: Link changes for Cygwin unexec() support.
8047
8dbff9a0
AS
80482004-04-12 Andreas Schwab <schwab@suse.de>
8049
8050 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
8051
54dffe35
LT
80522004-04-11 Luc Teirlinck <teirllm@auburn.edu>
8053
8054 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
8055 IGNORE argument equals NAME. Doc fix.
8056
99a72bdf
MY
80572004-04-11 Masatake YAMATO <jet@gyve.org>
8058
1e88a355 8059 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
8060 empty if they are backwards.
8061
40899d7b
SM
80622004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8063
8064 * xfaces.c (face_color_supported_p): Fix compilation without X11.
8065
f8f853de
SM
80662004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
8067
8068 * doc.c (Fsnarf_documentation): Ignore new file name entries.
8069
c953fe1b
KS
80702004-04-06 Kim F. Storm <storm@cua.dk>
8071
661e85c1
KS
8072 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8073 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
8074
8075 * w32term.c (w32_read_socket): Set mouse_face_hidden after
8076 clearing highlight.
8077
8078 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8079
8080 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
8081 clearing highlight.
8082
c953fe1b
KS
8083 * indent.c (vmotion): Do not reserve one column for continuation
8084 marks on window frames.
8085
c1994268
EZ
80862004-04-04 Eli Zaretskii <eliz@gnu.org>
8087
8088 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
8089 from GCC.
8090
9f691b0d
SM
80912004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8092
8093 * .gdbinit-union: Remove.
8094
8095 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
8096 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
8097 ($nonvalbits): Remove.
8098 ($valmask): Set it by calling xreload to avoid redundancy.
8099
8100 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
8101 (gdb_emacs_intbits): Remove.
8102
7a8560d7
JD
81032004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8104
9f691b0d 8105 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 8106
3c8111fc
KH
81072004-03-30 Kenichi Handa <handa@m17n.org>
8108
8109 * editfns.c (Fformat): Fix initialization of the array info.
8110
48a0bce4
KS
81112004-03-30 Kim F. Storm <storm@cua.dk>
8112
8113 * xterm.c (x_mouse_click_focus_ignore_position): New var.
8114 (syms_of_xterm): DEFVAR_BOOL it.
8115 (ignore_next_mouse_click_timeout): New var.
8116 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
8117 Use it to filter mouse clicks following focus event.
8118
1cd0066c
KS
81192004-03-29 David Ponce <david@dponce.com>
8120
8121 * callint.c (Fcall_interactively): Fix last change.
8122
adb3b353
SM
81232004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8124
8125 * eval.c (Fcommandp): Simplify.
8126
8127 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
8128 Extend to handle all kinds of functions.
8129
8130 * lisp.h (Finteractive_form): Declare.
8131
8132 * callint.c (Fcall_interactively): Use it.
8133
6fc4c9c9
KS
81342004-03-26 Kim F. Storm <storm@cua.dk>
8135
8136 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
8137 to catch errors in calc_pixel_width_or_height during redisplay.
8138
abdb9b83
MY
81392004-03-26 Masatake YAMATO <jet@gyve.org>
8140
b17856dd 8141 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 8142
b17856dd 8143 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 8144
b17856dd 8145 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 8146
b17856dd 8147 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 8148
e8a84b6c
JD
81492004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8150
b17856dd 8151 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 8152
36a3fd05
RS
81532004-03-19 Richard M. Stallman <rms@gnu.org>
8154
8155 * s/sol2-6.h: Delete previous change.
8156
ab24c127
KS
81572004-03-19 Kim F. Storm <storm@cua.dk>
8158
8159 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
8160 to_charpos corresponds to newline in right fringe. Use local
8161 BUFFER_POS_REACHED_P macro.
8162
992126de
JD
81632004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8164
8165 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
8166 to compile on non-window system.
8167
45dbfc84
KS
81682004-03-19 Kim F. Storm <storm@cua.dk>
8169
8170 * dispextern.h (calc_pixel_width_or_height): Add prototype.
8171
8172 * image.c (Qcenter): Move to xdisp.c.
8173
8174 * xdisp.c (Qcenter): Declare here.
adb3b353 8175 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
8176 (handle_single_display_prop): Allow space display property on all
8177 platforms.
8178 (display_mode_line): Set mode_line_p before displaying line.
8179 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
8180 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 8181 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
8182 width/height. Return width or height for image specs.
8183 (produce_stretch_glyph): Improve handling of :align-to. Is now
8184 relative to left of text area by default, but other base offsets
8185 can be specified -- also for text lines.
8186
8187 * term.c (produce_glyphs): Handle IT_STRETCH.
8188 (produce_stretch_glyph): New function to handle space width and
8189 align-to display properties on non-window systems.
8190
37264101
SM
81912004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8192
8193 * fileio.c (Fread_file_name): Set completion-ignore-case for
8194 case-insensitive systems.
8195
73bc43da
MY
81962004-03-14 Masatake YAMATO <jet@gyve.org>
8197
8198 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
8199 when keymap and cursor are setup.
8200
d5fb8dab 82012004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 8202
b17856dd 8203 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 8204
e4b1b5ab
KS
82052004-03-14 Kim F. Storm <storm@cua.dk>
8206
8207 * dispextern.h (x_find_image_file): Add prototype.
8208
8209 * image.c (x_find_image_file): Make extern.
8210
8211 * xfns.c (x_find_image_file): Remove prototype.
8212
a6eeaa81 82132004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 8214
37264101 8215 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 8216
37264101 8217 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 8218
e69cfac2
RS
82192004-03-12 Richard M. Stallman <rms@gnu.org>
8220
8221 * fns.c (internal_equal): New arg PROPS controls comparing
8222 text properties. All callers changed.
8223 (Fequal_including_properties): New function.
8224 (syms_of_fns): defsubr it.
8225
45034953
KS
82262004-03-12 Kim F. Storm <storm@cua.dk>
8227
8228 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 8229
45034953
KS
8230 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
8231 (image_background, image_background_transparent): Fix prototypes.
8232
37264101 8233 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
8234
8235 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
8236 (x_query_font, x_find_ccl_program, x_set_window_size)
8237 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8238 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8239 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
8240
8241 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
8242 (x_query_font, x_find_ccl_program, x_set_window_size)
8243 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8244 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8245 (mac_draw_line_to_pixmap): Add prototypes.
8246
82472004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8248
8249 * macterm.c (XTread_socket): Fix mouse click on tool bar.
8250
a12d3d87
KS
82512004-03-11 Kim F. Storm <storm@cua.dk>
8252
d3ab1cf1
KS
8253 * dispextern.h: Move image related prototypes from xfns.c section
8254 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
8255 HAVE_X_WINDOWS.
37264101 8256
37de9f51 8257 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 8258 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
8259 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
8260 (GTK_OBJ) [USE_GTK]: New declaration.
8261 (obj): Add $(GTK_OBJ) to list.
8262
d5fb8dab 82632004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 8264
7e26f91b 8265 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
8266
8267 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 8268 defined in image.c.
5243c06a 8269
c0f97789
KS
82702004-03-11 Kim F. Storm <storm@cua.dk>
8271
8272 The following changes consolidates the identical/similar image
8273 support code previously found in xfns.c, w32fns.c, and macfns.c
8274 into a new file image.c.
8275
8276 * makefile.w32-in (OBJ1): Add image.o.
8277 ($(BLD)/image.$(O)): Add dependencies.
8278
8279 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
8280 (image.o): Add dependencies.
37264101 8281
c0f97789
KS
8282 * image.c: New file with consolidated image support code.
8283 (COLOR_TABLE_SUPPORT): New define to control whether
8284 color table support is available (X only).
8285 (Bitmap_Record): Common name for x_bitmap_record,
8286 w32_bitmap_record, and mac_bitmap_record.
8287 (XImagePtr): Common name for pointer to XImage or equivalent.
8288 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
8289 to XImagePtr on X+MAC, and to HDC on W32.
8290 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
8291 (NO_PIXMAP): Common name for "None" or equivalent.
8292 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
8293 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
8294 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
8295 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
8296 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
8297 (XDrawLine): Define on MAC for code sharing.
8298 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
8299 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
8300 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8301 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8302 (x_reference_bitmap, x_create_bitmap_from_data)
8303 (x_create_bitmap_from_file, x_destroy_bitmap)
8304 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8305 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8306 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8307 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8308 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8309 (define_image_type, lookup_image_type, valid_image_p)
8310 (image_error, enum image_value_type, struct image_keyword)
8311 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8312 (make_image, free_image, prepare_image_for_display, image_ascent)
8313 (four_corners_best, image_background, image_background_transparent)
8314 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8315 (make_image_cache, free_image_cache, clear_image_cache)
8316 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8317 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8318 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8319 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8320 (init_image_func_pointer, image_load_quartz2d)
8321 (struct ct_color, init_color_table, free_color_table)
8322 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8323 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8324 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8325 (x_disable_image, x_build_heuristic_mask)
8326 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8327 (TIFF support, GIF support, Ghostscript support): Consolidate image
8328 code from xfns.c, w32fns.c, and macfns.c.
8329 (syms_of_image): Consolidate image related symbol setup here.
8330 (init_image): Consolidate image related initializations here.
37264101 8331
c0f97789
KS
8332 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
8333 and init_image. Remove call to init_xfns.
8334
37264101
SM
8335 * macterm.h (struct mac_bitmap_record): Add file member.
8336 Not currently used, but simplifies code sharing.
c0f97789
KS
8337
8338 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8339 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8340 (x_reference_bitmap, x_create_bitmap_from_data)
8341 (x_create_bitmap_from_file, x_destroy_bitmap)
8342 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8343 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8344 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8345 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8346 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8347 (define_image_type, lookup_image_type, valid_image_p)
8348 (image_error, enum image_value_type, struct image_keyword)
8349 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8350 (make_image, free_image, prepare_image_for_display, image_ascent)
8351 (four_corners_best, image_background, image_background_transparent)
8352 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8353 (make_image_cache, free_image_cache, clear_image_cache)
8354 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8355 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8356 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8357 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8358 (init_image_func_pointer, image_load_quartz2d)
8359 (struct ct_color, init_color_table, free_color_table)
8360 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8361 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8362 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8363 (x_disable_image, x_build_heuristic_mask)
8364 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8365 (TIFF support, GIF support, Ghostscript support): Merge with image
8366 code from xfns.c and macfns.c into image.c.
8367 (syms_of_xfns): Move image related symbols to image.c.
8368 (init_external_image_libraries, init_xfns): Remove; initialization
8369 moved to init_image in image.c.
8370
8371 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8372 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8373 (x_reference_bitmap, x_create_bitmap_from_data)
8374 (x_create_bitmap_from_file, x_destroy_bitmap)
8375 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8376 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8377 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8378 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8379 (define_image_type, lookup_image_type, valid_image_p)
8380 (image_error, enum image_value_type, struct image_keyword)
8381 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8382 (make_image, free_image, prepare_image_for_display, image_ascent)
8383 (four_corners_best, image_background, image_background_transparent)
8384 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8385 (make_image_cache, free_image_cache, clear_image_cache)
8386 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8387 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8388 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8389 (struct ct_color, init_color_table, free_color_table)
8390 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8391 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8392 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8393 (x_disable_image, x_build_heuristic_mask)
8394 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8395 (TIFF support, GIF support, Ghostscript support): Merge with image
8396 code from xfns.c and macfns.c into image.c.
8397 (syms_of_xfns): Move image related symbols to image.c.
8398 (init_external_image_libraries, init_xfns): Remove; initialization
8399 moved to init_image in image.c.
8400
8401 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8402 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8403 (x_reference_bitmap, x_create_bitmap_from_data)
8404 (x_create_bitmap_from_file, x_destroy_bitmap)
8405 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8406 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8407 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8408 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8409 (define_image_type, lookup_image_type, valid_image_p)
8410 (image_error, enum image_value_type, struct image_keyword)
8411 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8412 (make_image, free_image, prepare_image_for_display, image_ascent)
8413 (four_corners_best, image_background, image_background_transparent)
8414 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8415 (make_image_cache, free_image_cache, clear_image_cache)
8416 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8417 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8418 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8419 (struct ct_color, init_color_table, free_color_table)
8420 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8421 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8422 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8423 (x_disable_image, x_build_heuristic_mask)
8424 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8425 (TIFF support, GIF support, Ghostscript support): Merge with
8426 w32fns.c and macfns.c image code into image.c.
8427 (syms_of_xfns): Move image related symbols to image.c.
8428 (init_xfns): Remove; initialization moved to init_image in image.c.
8429
8430 * lisp.h (syms_of_image, init_image): Add protoypes.
8431 (init_xfns): Remove prototype.
8432
8433 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8434 (x_reference_bitmap, x_create_bitmap_from_data)
8435 (x_create_bitmap_from_file, x_destroy_bitmap)
8436 (x_create_bitmap_mask): Move prototypes from dispextern.h.
8437 (gamma_correct) [MAC_OS]: Add prototype.
8438
8439 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8440 (x_reference_bitmap, x_create_bitmap_from_data)
8441 (x_create_bitmap_from_file, x_destroy_bitmap)
8442 (x_create_bitmap_mask): Move prototypes to dispextern.h.
8443
6eced09c
KH
84442004-03-09 Kenichi Handa <handa@etlken2>
8445
8446 * coding.c (decode_coding_emacs_mule): Handle insufficent source
8447 correctly.
8448
9a7e95f3
RS
84492004-03-04 Richard M. Stallman <rms@gnu.org>
8450
04a6e76b
RS
8451 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
8452
9a7e95f3
RS
8453 * window.c (Fdisplay_buffer): Doc fix.
8454
8455 * buffer.c (Fpop_to_buffer): Doc fix.
8456
6c2488df
KS
84572004-03-03 Kim F. Storm <storm@cua.dk>
8458
8459 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
8460
d8d95bc7
SM
84612004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
8462
8463 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
8464
357589bf
RS
84652004-03-02 Richard M. Stallman <rms@gnu.org>
8466
8467 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
8468
409949b5
KH
84692004-03-02 Kenichi Handa <handa@m17n.org>
8470
8471 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
8472
d24bc50f
KS
84732004-03-02 Kim F. Storm <storm@cua.dk>
8474
8475 * window.h (struct window): New member overlay_arrow_bitmap.
8476
8477 * window.c (make_window): Initialize overlay_arrow_bitmap.
8478
8479 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
8480 implement and integrate multiple overlay arrows with redisplay.
8481 (syms_of_xdisp): DEFVAR_LISP and initialize it.
8482 (last_arrow_position, last_arrow_string): Replace by properties.
8483 (Qlast_arrow_position, Qlast_arrow_string)
8484 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
8485 (syms_of_xdisp): Intern and staticpro them.
8486 (overlay_arrow_string_or_property, update_overlay_arrows)
8487 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
8488 (overlay_arrow_at_row): New functions for multiple overlay arrows.
8489 (redisplay_internal): Use them instead of directly accessing
8490 Voverlay_arrow_position etc. for multiple overlay arrows.
8491 (mark_window_display_accurate): Use update_overlay_arrows.
8492 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
8493 (try_window_id): Use overlay_arrows_changed_p.
8494 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
8495 (display_line): Use overlay_arrow_at_row to check multiple
8496 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 8497 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
8498 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
8499 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
8500
8501 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
8502 (update_window_fringes): Remove unused code.
8503
c1464661
JR
85042004-03-01 Jason Rumney <jasonr@gnu.org>
8505
8506 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
8507
a64387ee
JB
85082004-03-01 Juanma Barranquero <lektu@terra.es>
8509
8510 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
8511
8512 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
8513
334faa08
JD
85142004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8515
8516 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
8517 how many colors can be displayed.
8518
bb62616f
KH
85192004-03-01 Kenichi Handa <handa@m17n.org>
8520
8521 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
8522 correctly.
8523
0fd16104
KS
85242004-02-28 Kim F. Storm <storm@cua.dk>
8525
8526 * dispnew.c (update_window): Update header line also if there are
8527 no other changes in window (move code after set_cursor label).
8528
8529 * lisp.h (mark_window_display_accurate): Remove prototype.
8530
8531 * window.c (window_loop, Fforce_window_update): Force mode line
8532 updates by setting prevent_redisplay_optimizations_p and
8533 update_mode_lines.
8534
b59dd9c8
JD
85352004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8536
d8d95bc7 8537 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
8538
8539 * xterm.c (x_calc_absolute_position): Call x_real_positions
8540 to get WM window sizes and use those to calculate position.
d8d95bc7 8541 (x_set_offset): Remove code commented out.
b59dd9c8 8542
a874691c
MB
85432004-02-28 Miles Bader <miles@gnu.org>
8544
8545 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
8546
3e0c6482
KS
85472004-02-28 Kim F. Storm <storm@cua.dk>
8548
8549 * keyboard.c (kbd_buffer_store_event_hold): New function to store
8550 an event into kbd fifo, but with special handling of quit event;
8551 a quit event is saved for later, and further events are discarded
8552 until the saved quit event has been processed.
8553 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
8554 (gen_help_event): Store help event in kbd fifo.
8555 (NREAD_INPUT_EVENTS): Remove.
8556 (read_avail_input): Adapt to new read_socket_hook interface.
8557 Remove allocation and initialization of local input_event buffer,
8558 as read_socket_hook stores events directly in fifo. Allocate and
8559 initialize local hold_quit event to handle postponed quit event
8560 (and store it if set by kbd_buffer_store_event_hold).
8561
8562 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
8563 (gen_help_event): Fix prototype.
8564
a64387ee 8565 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 8566 numcharsp args. Add hold_quit arg.
f63fd14e 8567 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8568 directly in fifo using kbd_buffer_store_event_hold.
8569
8570 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
8571 (read_input_waiting): Adapt to new read_socket_hook interface.
8572 Remove allocation and initialization of local input_event buffer,
8573 as read_socket_hook stores events directly in fifo. Allocate and
8574 initialize local hold_quit event to handle postponed quit event
8575 (and store it if set by kbd_buffer_store_event_hold).
8576
a64387ee 8577 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
8578
8579 * termhooks.h (read_socket_hook): Fix prototype.
8580
8581 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
8582 numcharsp args. Add hold_quit arg.
f63fd14e 8583 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8584 directly in fifo using kbd_buffer_store_event_hold.
8585
8586 * w32inevt.h (w32_console_mouse_position): Fix prototype.
8587
8588 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
8589 Add hold_quit arg. Rework to use just one, local, inev
8590 input_event. Store inev directly in fifo using
3e0c6482
KS
8591 kbd_buffer_store_event_hold. Update count in one place.
8592 Postpone call to gen_help_event until inev is stored; use new
8593 local do_help for this.
8594 Remove local emacs_event in handing of ButtonPress event; just use
8595 inev instead (so no reason to copy it later).
8596
8597 * xsmfns.c (x_session_check_input): Remove numchars arg.
8598
d8d95bc7
SM
8599 * xterm.c (x_focus_changed, x_detect_focus_change):
8600 Remove numchars arg. Always store event into bufp arg.
8601 Return nothing. Callers changed accordingly.
3e0c6482
KS
8602 (glyph_rect): Simplify.
8603 (STORE_KEYSYM_FOR_DEBUG): New macro.
8604 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
8605 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
8606 (current_hold_quit) [USE_GTK]: Add.
8607 (event_handler_gdk): Adapt to new handle_one_xevent.
8608 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
8609 Add hold_quit arg. Rework to use just one, local, inev
8610 input_event. Store inev directly in fifo using
3e0c6482
KS
8611 kbd_buffer_store_event_hold. Update count in one place.
8612 Postpone call to gen_help_event until inev is stored; use new
8613 local do_help for this.
8614 Simplify handling of keysyms (consolidate common code). Fix bug
8615 where count was updated with nchars instead of nbytes.
8616 Remove local emacs_event in handing of ButtonPress event; just use
8617 inev instead (so no reason to copy it later).
8618 Remove `out' label. Rename label `ret' to `done'; add various
8619 `goto done' to clarify code flow in deeply nested blocks.
8620 (x_dispatch_event): Simplify as handle_one_xevent now calls
8621 kbd_buffer_store_event itself.
f63fd14e 8622 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
8623 arg. Call handle_one_xevent with new arglist. Store event from
8624 x_session_check_input in fifo.
8625 [USE_GTK]: Setup current_hold_quit.
8626 Decrement handling_signal before unblocking input.
8627 (x_initialize) [USE_GTK]: Initialize current_count.
8628
8629 * xterm.h (x_session_check_input): Fix prototype.
8630
e3564461 86312004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 8632
d8d95bc7 8633 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 8634
e3564461
ST
8635 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
8636 macgui.h).
a64387ee 8637
e3564461 8638 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 8639
e3564461
ST
8640 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
8641 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
8642 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
8643 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
8644 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
8645 (Bitmap): Remove typedef.
8646 (Pixmap): Change int to GWorldPtr.
8647
d8d95bc7 8648 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 8649
d8d95bc7
SM
8650 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
8651 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
8652 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
8653 long representation.
8654 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
8655 colors used for masks.
8656 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 8657
e3564461
ST
8658 * macfns.c: Include sys/types.h and sys/stat.h.
8659 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
8660 Include QuickTime/QuickTime.h.
8661 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8662 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
8663 functions defined in macterm.c.
8664 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
8665 (ZPixmap): New #define for compatibility with xfns.c.
8666 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8667 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
8668 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
8669 New functions.
e3564461 8670 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
8671 (x_destroy_x_image, unwind_create_frame, x_disable_image)
8672 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
8673 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
8674 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
8675 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
8676 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
8677 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
8678 long mixup.
8679 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
8680 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
8681 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
8682 (x_set_cursor_type, Fxw_color_values, valid_image_p)
8683 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
8684 (x_alloc_image_color, clear_image_cache, lookup_image)
8685 (x_find_image_file, xbm_read_bitmap_file_data)
8686 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
8687 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
8688 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
8689 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
8690 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 8691 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
8692 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
8693 #if 0.
8694 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
8695 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
8696 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
8697 New functions (from xfns.c).
e3564461
ST
8698 (Fx_create_frame): Record unwind_create_frame.
8699 (Fxw_display_color_p): Use dpyinfo->color_p.
8700 (Fx_display_grayscale_p, Fx_display_planes): Don't use
8701 dpyinfo->n_cbits.
8702 (Fx_display_color_cells): Use dpyinfo->n_planes;
8703 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
8704 (Qheuristic, cross_disabled_images, emboss_matrix)
8705 (laplace_matrix): New variables (from xfns.c).
8706 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
8707 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
8708 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
8709 (image_background_transparent): New function (from xfns.c).
8710 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8711 (image_load_quicktime): Add declaration.
8712 [MAC_OSX] (image_load_quartz2d): Likewise.
8713 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
8714 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 8715 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
8716 (xbm_load_image_from_file, x_laplace_read_row)
8717 (x_laplace_write_row, pbm_read_file): Remove functions.
8718 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
8719 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
8720 (colors_in_color_table): Sync with xfns.c (although not used).
8721 (lookup_rgb_color): Don't lookup color table. Just do gamma
8722 correction.
8723 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
8724 (x_disable_image): New function (from xfns.c).
8725 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8726 (x_build_heuristic_mask): Sync with xfns.c.
8727 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8728 (HAVE_PBM): Remove #ifdef.
8729 (pbm_load): Sync with xfns.c. Set img->width and img->height
8730 before IMAGE_BACKGROUND.
d8d95bc7 8731 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
8732 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
8733 Don't enclose with #if HAVE_PNG.
8734 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
8735 symbol _CGImageCreateWithPNGDataProvider is defined.
8736 Otherwise use image_load_quicktime.
e3564461 8737 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
8738 [HAVE_PNG] (png_load): Sync with xfns.c.
8739 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8740 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
8741 HAVE_JPEG.
8742 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
8743 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
8744 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
8745 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
8746 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
8747 (tiff_image_p, tiff_load): Don't enclose declarations with #if
8748 HAVE_TIFF.
8749 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
8750 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
8751 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
8752 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
8753 New functions (from xfns.c).
e3564461 8754 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 8755 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
8756 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
8757 Don't enclose with #if HAVE_GIF.
8758 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
8759 animated gif. Otherwise use image_load_quicktime.
8760 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
8761 gif_DrawText to avoid conflict with QuickdrawText.h.
8762 [HAVE_GIF] (gif_load): Sync with xfns.c.
8763 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
8764 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
8765 Ghostscript is not supported yet).
8766 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
8767 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
8768 cross_disabled_images (from xfns.c). Remove #if 0 for supported
8769 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
8770 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
8771 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
8772 HAVE_PNG. Call EnterMovies to support animated gifs.
8773 Call init_image_func_pointer to bind a symbol
e3564461 8774 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 8775
d8d95bc7 8776 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
8777 (x_draw_bar_cursor): Sync declaration with xterm.c.
8778 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
8779 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
8780 graphics).
8781 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
8782 (mac_draw_line_to_pixmap, XCreatePixmap)
8783 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
8784 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
8785 New functions.
8786 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
8787 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
8788 Cast bits to char *.
e3564461
ST
8789 (reflect_byte): New function (from w32fns.c).
8790 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
8791 due to byte alignment.
d8d95bc7
SM
8792 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
8793 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
8794 (XSetForeground): Remove static (now used in macfns.c).
8795 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
8796 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
8797 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
8798 (x_draw_glyph_string_box, x_draw_image_foreground)
8799 (x_draw_image_foreground_1, x_draw_image_glyph_string)
8800 (x_draw_stretch_glyph_string, x_draw_glyph_string)
8801 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
8802 Sync with xterm.c.
8803 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
8804 than the xterm.c version when a strictly horizontal or vertical
8805 line is drawn.
8806 (XTset_terminal_window): Add static.
8807 (x_make_frame_visible): Add UNBLOCK_INPUT.
8808 (x_free_frame_resources): New funcion (from xterm.c).
8809 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
8810 occurs in tool bar area.
d8d95bc7
SM
8811 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
8812 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
8813 Initialize image cache.
8814 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
8815 Enclose unused functions with #if 0.
8816 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
8817 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 8818 from a mac font name to an XLFD font name according to its script code.
e3564461 8819 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 8820 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
8821 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
8822 whose name starts with `.'.
8823 (init_font_name_table): Use decode_mac_font_name. Add both
8824 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
8825 of a font is smJapanese.
8826 (mac_do_list_fonts): New function to list fonts that match a given
8827 pattern.
8828 (x_list_fonts, XLoadQueryFont): Use it.
8829 (XLoadQueryFont): Set rbearing field for each variable width
8830 character to avoid needless redraw.
8831 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
8832
446f5f3d
KS
88332004-02-26 Kim F. Storm <storm@cua.dk>
8834
af617d0f
KS
8835 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
8836 as read_socket_hook handler on X aborts if buffer is too small
8837 and W32 handler doesn't always check buffer limit.
8838
446f5f3d
KS
8839 * xdisp.c (handle_single_display_prop): Handle left-fringe and
8840 right-fringe similar to a display margin image. Specifically,
8841 the characters having the fringe prop are no longer shown, and
8842 we use IT_IMAGE/next_element_from_image with image_id = -1 to
8843 do this. Set fringe bitmap face_id in it->face_id.
8844 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
8845 still realize it->face (i.e. the fringe bitmap face).
8846
7d8a0b55
MB
88472004-02-25 Miles Bader <miles@gnu.org>
8848
8849 * xdisp.c (check_it): Check string/string_pos consistency.
8850 (init_iterator): Initialize string-related fields properly.
8851
88522004-02-11 Miles Bader <miles@gnu.org>
8853
8854 * xdisp.c (produce_image_glyph): Force negative descents to zero.
8855
88562004-02-10 Miles Bader <miles@gnu.org>
8857
8858 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
8859 BLOCK_INPUT can be nested, so it doesn't make much sense.
8860
a64387ee 88612004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
8862
8863 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
8864 (xbm_read_bitmap_data): Use unsigned char for image data.
8865
92f5fba2
LT
88662004-02-23 Luc Teirlinck <teirllm@auburn.edu>
8867
8868 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
8869
8565fb3d
JR
88702004-02-22 Jason Rumney <jasonr@gnu.org>
8871
8872 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
8873 correctly over other bitmaps.
8874
a6eeaa81 88752004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
8876
8877 * emacs.c (USAGE1): Split into two halves.
8878 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
8879 (USAGE3): Rename from USAGE2.
8880 (USAGE4): Rename from USAGE3.
f8125c39 8881
4effffca
EZ
88822004-02-21 Juri Linkov <juri@jurta.org>
8883
8884 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
8885 Fix --multibyte. Move --help, --version to USAGE2. Add alias
8886 --file. Fix -f, -l. Sort options. Untabify.
8887 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
8888
923c1e6f
LT
88892004-02-19 Luc Teirlinck <teirllm@auburn.edu>
8890
8891 * category.c (Fdefine_category, Fcategory_docstring)
8892 (Fget_unused_category, Fset_category_table)
8893 (Fcategory_set_mnemonics): Doc fixes.
8894
b0e225fd
KS
88952004-02-20 Kim F. Storm <storm@cua.dk>
8896
8897 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
8898 The following changes are relative to the 2004-01-21 revision.
8899 (NREAD_INPUT_EVENTS): Define as max number of input events to read
8900 in one call to read_socket_hook. Value is 8.
8901 (read_avail_input): Separate and rework handling of read_socket_hook
8902 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
8903 in read_socket_hook case, and repeat if full buffer is read.
8904 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
8905 In non-read_socket_hook case, just use a single input_event, and
8906 call kbd_buffer_store_event on the fly for each character.
8907
b15aa9f9
SM
89082004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8909
8910 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
8911 Remove unused `gu' alternative.
8912
83c9aa95
AS
89132004-02-19 Andreas Schwab <schwab@suse.de>
8914
8915 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
8916 warning.
8917
cc808173
KS
89182004-02-18 Kim F. Storm <storm@cua.dk>
8919
8920 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
8921 Fix last change.
8922
ab90a54d
KS
89232004-02-17 Kim F. Storm <storm@cua.dk>
8924
b26f249f
KS
8925 * xdisp.c (fast_find_position): Fix return value of new version;
8926 it was inverted compared to the 21.1 version.
8927 (get_window_cursor_type): Don't look at glyph if NULL.
8928 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 8929
ab90a54d
KS
8930 * keyboard.c: Rework previous change; it didn't consider that the
8931 buf array was allocated on the stack.
8932 (prev_read): Remove variable.
8933 (read_avail_input_buf): New static event buffer array.
b9568dfc 8934 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 8935 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
8936 Use in_read_avail_input to handle re-entrance; when re-entered,
8937 fully initialize and use tmp_buf array instead of read_avail_input_buf.
8938 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
8939 is always cleared on entry. To ensure that, we clear (just) the
8940 entries that were used before we return.
8941 (init_keyboard): Initialize read_avail_input_buf here.
8942
b6189c3b 89432004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
8944
8945 * cmds.c (Fend_of_line): Doc fix.
8946
7b5368c1
EZ
89472004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
8948
8949 * keyboard.c (prev_read): New static variable.
8950 (read_avail_input): Use it to zero out only those slots in buf[]
8951 that were used last time we were called.
8952
a6eeaa81 89532004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
8954
8955 * Makefile.in (obj): Move fringe.o from here...
8956 (XOBJ, MAC_OBJ): ...to here.
8957
159c348e
SE
89582004-02-16 Stephen Eglen <stephen@gnu.org>
8959
8960 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
8961
d2f14999
SM
89622004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
8963
b15aa9f9
SM
8964 * data.c (Fbyteorder):
8965 * fringe.c (Fdefine_fringe_bitmap):
8966 * xdisp.c (handle_single_display_prop):
d2f14999
SM
8967 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
8968
8d50508a
JR
89692004-02-16 Jason Rumney <jasonr@gnu.org>
8970
8971 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
8972
dd4497dc
ST
89732004-02-15 Steven Tamm <steventamm@mac.com>
8974
8975 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
8976 controlling emulation of a three button mouse with option and
8977 command keys.
7e26f91b 8978 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 8979 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 8980
c9159cb3
KS
89812004-02-15 Kim F. Storm <storm@cua.dk>
8982
2cc52658
KS
8983 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
8984
c9159cb3
KS
8985 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
8986 Perform byte-swapping.
8987
12fde2dc
KS
89882004-02-14 Kim F. Storm <storm@cua.dk>
8989
8990 * dispextern.h (struct draw_fringe_bitmap_params): Change member
8991 bits from char to short to facilitate wider bitmaps.
8992 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
8993 member.
8994
8995 * fringe.c (struct fringe_bitmap): Change member bits from char to
8996 short to facilitate 16 bits wide bitmaps. Modify all standard
8997 bitmaps accordingly.
8998 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
8999 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
9000 (draw_fringe_bitmap): Ditto.
9001 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
9002 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
9003 handle up to 16 bits wide bitmaps.
9004 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 9005 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
9006
9007 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
9008 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
9009 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
9010
9011 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
9012 so it is no longer necessary to expand them here.
9013
9014 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
9015
9d7271e8
KS
90162004-02-12 Kim F. Storm <storm@cua.dk>
9017
9018 * window.c (Fwindow_fringes): Doc fix.
9019
706c1e4f
JD
90202004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9021
9022 * xselect.c (x_get_foreign_selection): Add new optional parameter
9023 time_stamp.
9024 (Fx_get_selection_internal): Ditto, pass time_stamp to
9025 x_get_foreign_selection.
9026
9027 * data.c (Fbyteorder): New function.
9028
c2d12b5d
JD
90292004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9030
9031 * atimer.c: Move include stdio.h to same place as in other files.
9032
9033 * region-cache.c: Ditto.
9034
9035 * sysdep.c: Ditto.
9036
9037 * xfaces.c: Ditto.
9038
4c1947b9
SS
90392004-02-09 Sam Steingold <sds@gnu.org>
9040
89458937 9041 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 9042
82722af3
KS
90432004-02-09 Kim F. Storm <storm@cua.dk>
9044
9045 * fringe.c: New file. Move original fringe related declarations
9046 and code from dispextern.h and xdisp.c here.
9047 Rework code to support user defined fringe bitmaps, redefining
9048 standard bitmaps, ability to overlay user defined bitmap with
9049 overlay arrow bitmap, and add faces to bitmaps.
9050 (Voverflow_newline_into_fringe): Declare here.
9051 (enum fringe_bitmap_align): New enum.
9052 (..._bits): All bitmaps are now defined without bitswapping; that
9053 is now done in init_fringe_once (if necessary).
9054 (standard_bitmaps): New array with specifications for the
9055 standard fringe bitmaps.
9056 (fringe_faces): New array.
9057 (valid_fringe_bitmap_id_p): New function.
9058 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
9059 (draw_fringe_bitmap): New function which draws fringe bitmap,
9060 possibly overlaying bitmap with cursor in right fringe or the
9061 overlay arrow in the left fringe.
9062 (update_window_fringes): Do not handle overlay arrow here.
9063 Compare and copy fringe bitmap faces.
9064 (init_fringe_bitmap): New function.
9065 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
9066 define and destroy user defined fringe bitmaps.
9067 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
9068 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
9069 (syms_of_fringe): New function. Defsubr new DEFUNs.
9070 DEFVAR_LISP Voverflow_newline_into_fringe.
9071 (init_fringe_once, init_fringe): New functions.
9072 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 9073
82722af3
KS
9074 * Makefile.in (obj): Add fringe.o.
9075 (fringe.o): New dependencies.
9076
9077 * dispextern.h (FRINGE_ID_BITS): New definition for number of
9078 bits allocated to hold a fringe number. Increase number of bits
9079 from 4 to 8 to allow user defined fringe bitmaps.
9080 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
9081 left_user_fringe_face_id, right_user_fringe_bitmap,
9082 right_user_fringe_face_id.
9083 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
9084 Move to new file fringe.c.
9085 (MAX_FRINGE_BITMAPS): Define here.
9086 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
9087 and overlay_p. Change member which to int.
9088 (struct redisplay_interface): New members define_fringe_bitmap
9089 and destroy_fringe_bitmap.
9090 (valid_fringe_bitmap_id_p): Add prototype.
9091 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
9092
9093 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
9094 arrows.
9095 (update_frame): Do flush_display if force_flush_display_p to
9096 ensure display (specifically fringes) are updated in a timely
9097 manner when resizing the frame by dragging the mouse.
9098 (update_window_line): Update row if overlay arrow changed.
9099 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
9100 or overlay arrow changed.
9101
9102 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
9103 syms_of_fringe, and init_fringe.
9104
9105 * frame.h (struct frame): New member force_flush_display_p.
9106
9107 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
9108 Add prototypes.
9109
a3993cc8 9110 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 9111 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
9112 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
9113 Use cursor color for displaying cursor in fringe.
82722af3
KS
9114 (x_redisplay_interface): Add null handlers for
9115 define_fringe_bitmap and destroy_fringe_bitmap functions.
9116
9117 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
9118 xterm.c to handle overlayed fringe bitmaps and to use cursor color
9119 for displaying cursor in fringe.
9120 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
9121 specific functions to define and destroy fringe bitmaps in fringe_bmp.
9122 (w32_redisplay_interface): Add them to redisplay_interface.
9123 (w32_term_init): Call w32_init_fringe instead of explicitly
9124 defining fringe bitmaps in fringe_bmp array.
9125 (x_delete_display): Call w32_reset_fringes instead of explicitly
9126 destroying fringe bitmaps in fringe_bmp array.
9127
9128 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
9129 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
9130 (continued_bits, continuation_bits, ov_bits, first_line_bits)
9131 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
9132 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
9133 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
9134 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
9135 Move fringe handling vars and code to new file fringe.c.
9136 (handle_display_prop): Handle left-fringe and right-fringe
9137 display properties; store user fringe bitmaps in iterator.
9138 (move_it_in_display_line_to): Handle cursor in fringe at eob.
9139 (clear_garbaged_frames): Set force_flush_display_p if resized.
9140 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
9141 (display_line): Handle cursor in fringe at eob.
9142 (display_line): Set row user fringe bitmaps from iterator.
9143
9144 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
9145 Use cursor color for displaying cursor in fringe.
9146 (x_redisplay_interface): Add null handlers for
9147 define_fringe_bitmap and destroy_fringe_bitmap functions.
9148
030400eb
JD
91492004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9150
9151 * macfns.c (Fx_change_window_property): Make doc string and
9152 parameters same as for X version.
9153
9154 * w32fns.c (Fx_change_window_property): Ditto.
9155
3af55251
KS
91562004-02-07 Kim F. Storm <storm@cua.dk>
9157
ec110e9e
KS
9158 * xdisp.c (hscroll_window_tree): Position cursor near to right
9159 margin in hscrolled window when jumping to end of line (rather
9160 than centering cursor).
9161
3af55251
KS
9162 * process.c (wait_reading_process_input): Don't do adaptive read
9163 buffering if waiting for a specific process.
9164
b0c138ce
LT
91652004-02-05 Luc Teirlinck <teirllm@auburn.edu>
9166
9167 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
9168 (Fread_minibuffer, Feval_minibuffer)
9169 (Fread_string, Fread_no_blanks_input)
9170 (Fcompleting_read): Doc fixes.
9171 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
9172 completion-regexp-list. Define Qcase_fold_search and staticpro it.
9173 (read_minibuf): Fix initial comment.
9174 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 9175 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
9176 checking completion-regexp-list.
9177 (Fdisplay_completion_list): Make it handle arguments that are
9178 symbols. Doc fix.
9179
9676f5ad 91802004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 9181
9676f5ad 9182 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 9183
9676f5ad
JD
9184 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
9185 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 9186 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 9187 format. Remove unused variable cons.
5b698285
JD
9188
9189 * xselect.c: Include stdio,h.
9190
fc1d15f6
KH
91912004-02-05 Kenichi Handa <handa@m17n.org>
9192
ebaff4af
KH
9193 * fns.c (Fset_char_table_range): Fix previous change.
9194
fc1d15f6
KH
9195 * buffer.c (Fset_buffer_multibyte): Fix docstring.
9196
9676f5ad
JD
91972004-02-04 Luc Teirlinck <teirllm@auburn.edu>
9198
9199 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
9200
da75761f
SM
92012004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
9202
9203 * keymap.c (Vmouse_events): Rename from Vmenu_events.
9204 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
9205
13c5d120
KH
92062004-02-04 Kenichi Handa <handa@m17n.org>
9207
9208 * fns.c (Fset_char_table_range): Handle charsets ascii,
9209 eight-bit-control, and eight-bit-graphic correctly.
9210
2883d842
JR
92112004-02-03 Jason Rumney <jasonr@gnu.org>
9212
9213 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
9214
9215 * w32fns.c (x_to_w32_font): Likewise.
9216
69eff41f
JD
92172004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9218
9219 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
9220 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
9221
9222 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
9223 ClientMessages.
9224
9225 * xselect.c: Include termhooks.h and X11/Xproto.h
9226 (x_check_property_data, x_fill_property_data)
9227 (x_property_data_to_lisp, mouse_position_for_drop)
9228 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 9229 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
9230 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
9231
da75761f 9232 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
9233 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
9234 OUTER_P.
9235 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
9236 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
9237 if vector_ret_p is true.
9238 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 9239
a6eeaa81 92402004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
9241
9242 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
9243 basename of FILE relative to it, not FILE itself.
9244
09721b31
KH
92452004-02-02 Kenichi Handa <handa@m17n.org>
9246
9247 * coding.c (coding_restore_composition): Check invalid
9248 composition data more rigidly.
9249
eb996101
LT
92502004-01-30 Luc Teirlinck <teirllm@auburn.edu>
9251
9252 * fileio.c (Fread_file_name_internal): Correctly handle the case
9253 where insert-default-directory is nil.
9254 (Fread_file_name): Always return an empty string if the user exits
9255 with an empty minibuffer. Adapt the docstring accordingly.
9256 (syms_of_fileio): Adapt the docstring of insert-default-directory
9257 to the change in Fread_file_name.
9258
a6eeaa81 92592004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
9260
9261 * alloca.c [!alloca]: Fix the prototype for xfree.
9262
13f52ed8
KH
92632004-01-29 Kenichi Handa <handa@m17n.org>
9264
9265 * fns.c (string_char_to_byte): Optimize for ASCII only string.
9266 (string_byte_to_char): Likewise.
9267
d57625a0
JR
92682004-01-28 Peter Runestig <peter@runestig.com>
9269
9270 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
9271
a64387ee 92722004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
9273
9274 * unexmacosx.c (unexec_copy): Do not copy more than was
9275 requested to prevent overwriting during unexec.
9276
eb37b8fd
JD
92772004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9278
ce38070a
JD
9279 * process.c (sigchld_handler): Add comment about not calling malloc.
9280
eb37b8fd
JD
9281 * process.h: Add extern to synch_process_termsig.
9282
a64387ee 92832004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 9284
da75761f
SM
9285 * macterm.c (make_mac_frame, make_mac_terminal_frame):
9286 Move setting of scroll bars from make_mac_frame to
9287 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 9288
d62a265d
RS
92892004-01-26 Richard M. Stallman <rms@gnu.org>
9290
9291 * search.c (Freplace_match): Handle nonexistent
9292 back-references properly.
9293
92942004-01-03 Richard M. Stallman <rms@gnu.org>
9295
9296 * window.c (decode_any_window): New function.
9297 (Fwindow_height, Fwindow_width, Fwindow_edges)
9298 (Fwindow_pixel_edges, Fwindow_inside_edges)
9299 (Fwindow_inside_pixel_edges): Use decode_any_window.
9300
ff236419
JD
93012004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9302
9303 * process.h: synch_process_termsig new variable.
9304
9305 * callproc.c: Define synch_process_termsig.
9306 (Fcall_process): Initiate synch_process_termsig to zero and
9307 check if non-zero and get signal name after subprocess has ended.
9308
9309 * process.c (sigchld_handler): Set synch_process_termsig
9310 if terminated by a signal. synch_process_death setting removed.
9311
9312 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
9313
41b867ea
AS
93142004-01-26 Andreas Schwab <schwab@suse.de>
9315
9316 * print.c (print_preprocess): Declare size as EMACS_INT to not
9317 lose bits.
9318 (print_object): Likewise.
9319 * alloc.c (Fpurecopy): Likewise.
9320
a08084ff
LT
93212004-01-25 Luc Teirlinck <teirllm@auburn.edu>
9322
9323 * window.c (Fwindow_minibuffer_p): Doc fix.
9324
b19ac475
JY
93252004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
9326
9327 * editfns.c (Fformat): Make both passes accept the same set of flags.
9328
fe905025
KH
93292004-01-23 Kenichi Handa <handa@m17n.org>
9330
9331 * fns.c (Fmd5): If OBJECT is a buffer different from the current
9332 one, set buffer to OBJECT temporarily.
9333
438fc6c0
SM
93342004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9335
455316e2
SM
9336 * keyboard.c (kbd_buffer_gcpro): Remove.
9337 (kbd_buffer_store_event, clear_event, Fdiscard_input)
9338 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
9339 Don't initialize and/or maintain the variable any more. It was made
9340 redundant by my commit of 2003-06-15.
9341
438fc6c0
SM
9342 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
9343
5335a4ee
JD
93442004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9345
9346 * lisp.h: Add undef DECL_ALIGN.
9347
dcdaeebc
SM
93482004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9349
9350 * process.c (wait_reading_process_input) [SYNC_INPUT]:
9351 Check interrupt_input_pending explicitly.
9352
9353 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
9354
9355 * keyboard.c (handle_async_input): New fun,
9356 extracted from input_available_signal.
9357 (input_available_signal, reinvoke_input_signal): Use it.
9358
9076a823
SM
93592004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
9360
d7107586
SM
9361 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
9362
9363 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
9364 manipulation macros for when tags are in the lower bits.
9365 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
9366 (DECL_ALIGN): New macro.
9367 (DEFUN): Use it.
9368
9369 * lisp.h [ENABLE_CHECKING]: Don't force union type.
9370
9371 * s/darwin.h (__attribute__): Remove outdated workaround.
9372
9373 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
9374
9375 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
9376 Don't check range of malloc address.
9377 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
9378
9076a823
SM
9379 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
9380
9381 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
9382
ba029065
KH
93832004-01-19 Kenichi Handa <handa@m17n.org>
9384
9385 * fontset.c (fontset_font_pattern): Fix previous change.
9386
7af0e8d7
MB
93872004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
9388
9389 * xdisp.c (Voverflow_newline_into_fringe)
9390 (move_it_in_display_line_to, redisplay_internal)
9391 (update_window_fringes, redisplay_window, display_line, window):
9392 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
9393 that it compiles without a window-system.
9394 * dispnew.c (direct_output_for_insert, update_window): Likewise.
9395
77a9cf69
KS
93962004-01-16 Kim F. Storm <storm@cua.dk>
9397
9398 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
9399
a64387ee 9400 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
9401 buffer_local_flags for indicate_buffer_boundaries.
9402 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
9403 default- variable for it.
9404
9405 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
9406 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 9407 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
9408 overflowing newlines into right fringe.
9409 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
9410 and indicate_bottom_line_p for buffer boundaries and scrolling.
9411 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
9412 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
9413 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
9414 and HOLLOW_SQUARE_BITMAP.
9415 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
9416 Add prototypes.
9417
9418 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
9419 instead of related indicator fields.
9420 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
9421 (direct_output_for_insert): Handle exact width lines like
9422 contined lines. Call update_window_fringes.
9423 (update_window): Call update_window_fringes.
9424 (scrolling_window): Don't skip desired rows with changed bitmaps.
9425 Check if fringe bitmaps changes when assigning scrolled rows.
9426
9427 * xdisp.c (Voverflow_newline_into_fringe): New variable.
9428 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
9429 (move_it_in_display_line_to): Overflow newline into fringe for
9430 rows that are exactly as wide as the window.
9431 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
9432 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
9433 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
9434 (fringe_bitmaps): Add new bitmaps.
9435 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
9436 Select proper bitmap for cursor in fringe when appropriate.
9437 Handle alignment of bitmap to top or bottom of row.
9438 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
9439 done by update_window_fringes.
9440 (update_window_fringes, draw_window_fringes): New functions.
9441 (redisplay_internal): Call update_window_fringes in case only
9442 cursor row is updated.
9443 (redisplay_window): Call update_window_fringes.
9444 Explicitly call draw_window_fringes if redisplay was done using
9445 the current matrix or the overlay arrow is in the window.
9446 (try_window_reusing_current_matrix): Mark scrolled rows for
9447 fringe update (to update buffer-boundaries / scrolling icons).
9448 (find_last_unchanged_at_beg_row): Handle exact width lines line
9449 continued lines.
9450 (display_line): Overflow newline into fringe for rows that are
9451 exactly as wide as the window. Don't append space for newline
d7107586 9452 in this case.
77a9cf69
KS
9453 (notice_overwritten_cursor): Explicitly clear cursor bitmap
9454 in fringe as if it had been overwritten.
9455 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 9456 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
9457 void-text-area-pointer as user options.
9458 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 9459
77a9cf69
KS
9460 * xterm.c (x_update_window_end): Call draw_window_fringes.
9461 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9462 in row instead of actually drawing fringe bitmaps.
9463 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9464 (x_draw_window_cursor): Draw cursor in fringe.
9465
9466 * w32term.c (x_update_window_end): Call draw_window_fringes.
9467 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9468 in row instead of actually drawing fringe bitmaps.
9469 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9470 (w32_draw_window_cursor): Draw cursor in fringe.
9471
9472 * macterm.c (x_update_window_end): Call draw_window_fringes.
9473 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9474 in row instead of actually drawing fringe bitmaps.
9475 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9476 (mac_draw_window_cursor): Draw cursor in fringe.
9477
a633a954
JD
94782004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9479
9480 * xterm.c (handle_one_xevent): Don't handle characters that are part
9481 of an old style (XLookupString) compose sequence.
9482
80460525
KH
94832004-01-15 Kenichi Handa <handa@m17n.org>
9484
9485 * search.c (Freplace_match): Use make_multibyte_string or
9486 make_unibyte_string according to the buffer multibyteness.
9487
7fc34f85
SM
94882004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
9489
9490 * alloc.c (struct interval_block, struct string_block)
9491 (struct symbol_block, struct marker_block, live_string_p)
9492 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
9493 Better preserve alignment for objects in blocks.
9494 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
9495
9496 * lread.c (defvar_per_buffer): Remove dead declaration.
9497
9498 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
9499 space size.
9500
66070bd1
JD
95012004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9502
9503 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
9504 if a key press should pop down. Only pop down if a key is pressed
9505 outside the menu/dialog.
9506 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
9507 popup_get_selection.
9508 (create_and_show_dialog): Pass 1 for down_on_keypress to
9509 popup_get_selection.
9510
de7515d6
JD
95112004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9512
9513 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
9514 BLOCK/UNBLOCK_INPUT.
9515
160b1b50
JD
95162004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9517
9518 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
9519 specified.
9520
3a9f36e6
KH
95212004-01-08 Kenichi Handa <handa@m17n.org>
9522
9523 * editfns.c (Fformat): Fix '&' to '&&'.
9524
3803eb32
AS
95252004-01-08 Andreas Schwab <schwab@suse.de>
9526
9527 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
9528 size if PSEUDOVECTOR_FLAG is set.
9529
9da88f37
KH
95302004-01-07 Kenichi Handa <handa@m17n.org>
9531
74ac5074
KH
9532 * charset.c (Fdeclare_equiv_charset): Fix docstring.
9533
9da88f37
KH
9534 * fontset.c (fontset_ref_via_base): Fix previous change.
9535
05faee07
KS
95362004-01-07 Kim F. Storm <storm@cua.dk>
9537
9538 * process.c (read_process_output): Only activate adaptive
9539 buffering if we read less than 256 bytes at a time.
9540
634910c8
KS
95412004-01-06 Kim F. Storm <storm@cua.dk>
9542
9543 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
9544 object and image object. Return glyph width and height.
9545 (mode_line_string, marginal_area_string): Ditto.
9546
9547 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9548 (marginal_area_string): Fix prototypes.
9549
9550 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 9551 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
9552 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
9553
9554 * keyboard.c (make_lispy_position): Use modified mode_line_string,
9555 buffer_posn_from_coords, and marginal_area_string functions to
9556 include both string object and image object in the lispy position.
9557 Also add actual glyph width and height to position.
9558 (read_key_sequence): Use real buffer position from mouse
9559 event to find keymap property even when click is in marginal area.
9560
9561 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
9562 mode_line_string and marginal_area_string functions to handle
9563 both string object and image object properties.
d7107586 9564
57951c2e
AS
95652004-01-06 Andreas Schwab <schwab@suse.de>
9566
9567 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
9568 character.
9569
181e6a61
AS
95702004-01-02 Andreas Schwab <schwab@suse.de>
9571
d7107586
SM
9572 * macterm.c (emacs_options, x_initialized, same_x_server):
9573 Remove unused (and duplicated) definitions.
181e6a61 9574
31e0fbdd
KS
95752004-01-02 Kim F. Storm <storm@cua.dk>
9576
9577 * process.h (struct Lisp_Process): New members for adaptive read
9578 buffering: adaptive_read_buffering, read_output_delay, and
9579 read_output_skip.
9580
9581 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
9582 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
9583 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
9584 (process_output_delay_count, process_output_skip): New vars.
9585 (Vprocess_adaptive_read_buffering): New variable.
9586 (make_process): Initialize adaptive read buffering members.
9587 (Fstart_process): Set adaptive_read_buffering member.
9588 (deactivate_process): Cleanup adaptive read buffering.
9589 (wait_reading_process_input): Temporarily omit delayed
9590 subprocesses from the set of file descriptors to read from;
9591 adjust the select timeout if we skipped any subprocesses.
9592 (read_process_output): Increase adaptive read buffering delay if
9593 we read less than a full buffer; reduce delay when we read a
9594 full buffer.
9595 (send_process): Simplify using local Lisp_Process var.
9596 Reset adaptive read buffering delay after write.
9597 (init_process): Initialize process_output_delay_count and
9598 process_output_skip.
9599 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
9600
68c6a789
JR
96012004-01-01 Jason Rumney <jasonr@gnu.org>
9602
d7107586 9603 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 9604
3f70fe82
LT
96052003-12-30 Luc Teirlinck <teirllm@auburn.edu>
9606
9607 * print.c (Ferror_message_string): Add hyperlink in the docstring
9608 to the definition of `signal' in the Elisp manual.
9609 * eval.c (Fsignal): Ditto.
9610
b6189c3b 96112003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
9612
9613 * fns.c (internal_equal): Return t for two NaN arguments.
9614
7abd90ea
RS
96152003-12-29 Richard M. Stallman <rms@gnu.org>
9616
9617 * data.c (store_symval_forwarding): Handle setting
9618 default-fill-column, etc., by changing the value in
9619 buffers that use the default.
9620
9621 * minibuf.c (Fset_minibuffer_window): Doc fix.
9622
9623 * fileio.c (choose_write_coding_system): Ignore auto_saving
9624 if using the visited file for auto saves.
9625 (Fwrite_region): Don't update SAVE_MODIFF
9626 if auto-saving in visited file.
9627
3e7cfcdc
KH
96282003-12-29 Kenichi Handa <handa@m17n.org>
9629
9630 * dispextern.h (face_font_available_p): Extern it.
9631
9632 * fontset.c (Voverriding_fontspec_alist): New variable.
9633 (lookup_overriding_fontspec): New function.
d7107586 9634 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
9635 (fontset_font_pattern): Likewise.
9636 (regulalize_fontname): New function.
9637 (Fset_fontset_font): Call regulalize_fontname.
9638 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
9639 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
9640 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
9641
9642 * xfaces.c (face_font_available_p): New function.
9643
7abd90ea
RS
96442003-12-28 Richard M. Stallman <rms@gnu.org>
9645
9646 * buffer.c (Fother_buffer): Don't crash if BUF is nil
9647 or if its name is nil.
9648
9649 * buffer.c (Fkill_buffer): Don't delete auto-save file
9650 if it's the same as the visited file.
9651
de1d1a40
LT
96522003-12-28 Luc Teirlinck <teirllm@auburn.edu>
9653
9654 * coding.c (Fcheck_coding_system): Doc fix.
9655
204fb75e
KS
96562003-12-28 Kim F. Storm <storm@cua.dk>
9657
9658 * Makefile.in (eval.o): Depend on dispextern.h.
9659
9660 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
9661 image glyph using image's ascent.
9662 (mode_line_string): Return image glyph as object clicked on.
9663 Adjust y0 for image glyph using image's ascent.
9664
9665 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
9666 (struct glyph): New members, ascent and descent. Used to save
9667 this glyph's ascent and descent, instead of having.
9668 (struct glyph): Declare member face_id using FACE_ID_BITS.
9669 (find_hot_spot): Add prototype.
9670
9671 * keyboard.c (Qimage): Remove extern (now in lisp.h).
9672 (QCmap): Declare extern.
9673 (make_lispy_position): When position is inside image hot-spot,
9674 use hot-spot element's id as posn element.
9675
9676 * lisp.h (IMAGEP): New macro to test for image object type.
9677 (Qimage): Declare extern.
9678
9679 * macfns.c (Qimage): Remove extern (now in lisp.h).
9680 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9681
9682 * macterm.c (Qface, Qmouse_face): Remove unused externs.
9683
9684 * w32fns.c (Qimage): Remove extern (now in lisp.h).
9685 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9686
9687 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
9688
9689 * w32term.c (Qface, Qmouse_face): Remove unused externs.
9690
9691 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
9692 pointer types.
9693 (Qrelative_width, Qalign_to): Remove unused variables.
9694 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
9695 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
9696 image maps.
d7107586 9697 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
9698 new dx and dy args.
9699 Remove buffer_only_p arg (always 0). Simplify code accordingly.
9700 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
9701 than row's ascent and height, to get sensible height on tall rows.
9702 (build_desired_tool_bar_string): Remove Qimage extern.
9703 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
9704 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
9705 image glyph is alone on the last line.
9706 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 9707 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 9708 (on_hot_spot_p): New function to check if position is inside an
d7107586 9709 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
9710 (find_hot_spot): New function to search for image hot-spot.
9711 (Flookup_image_map): New defun to search for image hot-spot.
9712 (define_frame_cursor1): New aux function to determine frame pointer.
9713 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9714 Handle `pointer' text property and :pointer image property to
9715 control frame pointer shape. Detect image hot-spots for pointer
9716 and help_echo properties. Use define_frame_cursor1.
9717 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 9718 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
9719 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
9720
9721 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
9722
9723 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
9724 (Qimage): Remove extern (now in lisp.h).
9725 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9726
9727 * xmenu.c (show_help_event): Remove unused code.
9728
9729 * xterm.c (Qface, Qmouse_face): Remove unused externs.
9730 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
9731 row's ascent and descent, to get a sensible height on tall rows.
9732
fc052137
LT
97332003-12-25 Luc Teirlinck <teirllm@auburn.edu>
9734
9735 * minibuf.c (Fcompleting_read): Undo previous change.
9736
a64387ee 97372003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
9738
9739 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
9740 Arguments GCPRO'ed in call to file name handler.
9741
56ffd194
TTN
97422003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
9743
9744 * termcap.c (tgetst1): Scan for "%pN"; if all
9745 N are continuous in [1,9], remove all "%pN".
9746
5202d23d
JD
97472003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9748
f26fab36
JD
9749 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
9750
5202d23d
JD
9751 * xfaces.c (lface_fully_specified_p): Take into account that
9752 MAC OS always have unspecified stipple.
9753
8babaa59
TTN
97542003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9755
9756 * tparam.c (tparam1): Add handling for `%pN', which
9757 means use param N for the next substitution.
9758
2d176448
TTN
97592003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9760
9761 * xfaces.c (Fcolor_gray_p): Fix omission bug:
9762 In case `frame' is nil, consult the selected frame.
9763 (Fcolor_supported_p): Likewise.
9764
adb0708c
LT
97652003-12-23 Luc Teirlinck <teirllm@auburn.edu>
9766
000eeb15
LT
9767 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
9768 Doc fixes.
0dc72b11
LT
9769
9770 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
9771 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
9772 (Fread_from_minibuffer): Delete code moved into read_minibuf.
9773 Doc fix.
9774 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
9775 read_minibuf.
9776 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 9777 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 9778
2e4d132b
KH
97792003-12-03 Kenichi Handa <handa@m17n.org>
9780
9781 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
9782 encoding sequence.
9783
3999c705
KH
97842003-12-01 Kenichi Handa <handa@m17n.org>
9785
9786 * composite.c (syms_of_composite): Don't make the compostion hash
9787 table week.
9788
d344ecbb
LT
97892003-11-30 Luc Teirlinck <teirllm@auburn.edu>
9790
9791 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
9792 * textprop.c (Fget_char_property_and_overlay): New function.
9793 (syms_of_textprop): Defsubr it.
9794
03d6484e
JD
97952003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9796
019b1f0e
JD
9797 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
9798 to compile on terminal configuration.
9799
03d6484e
JD
9800 * fileio.c (Fread_file_name): Check use_file_dialog also before
9801 calling Fx_file_dialog.
9802
1d1c7e75 9803 * fns.c (use_file_dialog): New variable.
03d6484e
JD
9804 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
9805
442d3fd0
KS
98062003-11-29 Kim F. Storm <storm@cua.dk>
9807
9808 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
9809 (syms_of_msdos): Don't intern and staticpro them.
9810
0f6a07a8
KS
98112003-11-27 Kim F. Storm <storm@cua.dk>
9812
9813 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
9814 coordinates relative to glyph at posn. If glyph is an image,
9815 return that as object at posn. Callers changed.
9816 (mode_line_string, marginal_area_string): Calculate and return
9817 pixel coordinates relative to glyph. Callers changed.
9818
9819 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9820 (marginal_area_string): Fix prototypes.
9821 (window_box_left_offset, window_box_right_offset): Add prototypes.
9822
9823 * frame.h (get_specified_cursor_type, get_window_cursor_type):
9824 Remove prototypes.
9825
9826 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
9827
9828 * keyboard.c (make_lispy_position): Add x and y coordinates
9829 relative to the current glyph as 7th element of position.
9830 If glyph is an image, return it in the object element.
9831 (read_key_sequence): Skip checks for keymap property in cases
9832 where POSN_STRING is not a string (e.g. an image).
9833
9834 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
9835 (Vshow_text_cursor_in_void): New variable.
9836 (glyph_to_pixel_coords): Don't use negative hpos.
9837 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
9838 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 9839 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
9840 (calc_pixel_width_or_height): New aux function, implementing
9841 pixel based artihmetic for glyph widths and heights.
9842 (produce_stretch_glyph): Use calc_pixel_width_or_height for
9843 :width, :height, :align-to, and :ascent, thus allowing these to
9844 be specified in pixels as well as multiples of characters.
9845 Don't produce stretch glyphs with zero width or height.
9846 (get_specified_cursor_type): Declare static.
9847 (get_window_cursor_type): Declare static. Add glyph arg to be
9848 able to know when cursor is on an image; always substitute
9849 hollow-box cursor for filled-box cursor on images, to avoid
9850 negative images and flicker when blinking the cursor.
9851 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
9852 (note_mode_line_or_margin_highlight): Use non-text cursor rather
9853 than vertical scroll-bar cursor in display margins.
9854 (note_mouse_highlight): Use non-text cursor rather than text
9855 cursor in fringes and over images in the text area.
9856 Use non-text cursor when mouse pointer is outside editable text,
9857 i.e. in the void after end-of-line or end-of-buffer; this was
9858 already done for W32, but is now standard for all systems --
9859 user can toggle show-text-cursor-in-void to get old behaviour.
9860 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
9861 Vdisplay_pixels_per_inch.
9862
00498bfc
AS
98632003-11-25 Andreas Schwab <schwab@suse.de>
9864
9865 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
9866 EMACS_INT to not lose bits.
9867 (Ffillarray): Don't set bits beyond the size of a bool vector.
9868
edaa824d
KS
98692003-11-25 Kim F. Storm <storm@cua.dk>
9870
9871 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
9872 define this defun on systems that cannot use stderr as lvalue.
9873
74d6f539
GM
98742003-11-24 Gerd Moellmann <gerd@gnu.org>
9875
9876 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
9877 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
9878 ld's default is incompatible with unexec.
9879
6a1ff3ba
KS
98802003-11-23 Kim F. Storm <storm@cua.dk>
9881
63dc7c6b
KS
9882 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
9883 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
9884 (Fforce_window_update): New defun.
9885 (syms_of_window): Defsubr it.
9886 (Fset_window_margins, Fset_window_fringes): Doc fix.
9887
6a1ff3ba
KS
9888 * print.c (Fredirect_debugging_output): New defun.
9889 (syms_of_print): Defsubr it.
9890
aef109b7
LT
98912003-11-22 Luc Teirlinck <teirllm@auburn.edu>
9892
9893 * fns.c (Fset_char_table_parent): Doc fix.
9894
6a1ff3ba 98952003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
9896
9897 * dispnew.c (buffer_posn_from_coords): Return actual row/column
9898 for glyph clicked on, rather than (unused) pixel positions.
9899 (mode_line_string, marginal_area_string): Change X and Y args to
9900 pointers for returning actual row/column for glyph clicked on.
9901 Simplify and optimize loops.
9902
aef109b7
LT
9903 * dispextern.h (mode_line_string, marginal_area_string):
9904 Update prototypes.
63ccbe21
KS
9905
9906 * keyboard.c (make_lispy_position): New function for generating
9907 mouse click positions from frame and pixel coordinates.
9908 Enhanced to return buffer position and actual row/column for
9909 events outside the text area using updated mode_line_string and
9910 marginal_area_string functions.
9911 Return left-fringe and right-fringe clicks as such, rather than
9912 clicks in text area.
9913 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
9914 pixel_to_glyph_coords, as we never use the results.
9915 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
9916 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
9917 Eliminate unused code in WHEEL_EVENT handling.
9918 (make_lispy_movement): Use make_lispy_position.
9919
9920 * window.c (coordinates_in_window): Remove redundant tests.
9921 Fix returned X pixel value for left-margin.
9922
9923 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
9924 mode_line_string and marginal_area_string parameters.
9925
a64387ee 99262003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 9927
d7107586
SM
9928 * w32.c (struct the_group, getgrgid): Add.
9929 * mac.c (struct my_group, getgrgid): Add.
aef109b7 9930
3dbf3426
LT
99312003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9932
9933 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
9934
cae8ddbb 99352003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 9936
d7107586
SM
9937 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
9938 include in call to file name handler. Optionally translate numeric
9939 UID and GID to strings. Update docstring.
9940 (directory_files_internal): Add parameter ID-FORMAT.
9941 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
9942 include in call to file name handler and call to
9943 directory_files_internal. Update Docstring.
9944 (Fdirectory_files): Add dummy parameter in call to
9945 directory_files_internal.
9946 * lisp.h (Qinteger): Add.
9947 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
9948 (Ffile_attributes): Add parameter.
9949 * data.c (Qinteger): Export.
cae8ddbb 9950
2550b848
LT
99512003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9952
3dbf3426 9953 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 9954
88380018
KS
99552003-11-19 Kim F. Storm <storm@cua.dk>
9956
9957 * xdisp.c (init_iterator): Initialize it->start to position
9958 before reseating (in case start position is invisible).
9959 (init_to_row_start): Set it->start to row-start.
9960 (redisplay_window): Accept optional_new_start if start position
9961 is invisible (in which case IT_CHARPOS overshoots PT).
9962 (display_line): Setup row->start from it->start (rather than
9963 it->current which is wrong if first char on line is invisible).
9964 When done, reseat it->start to it->current (= start of next row).
9965 (expose_area): Fix exposure of text area when first char (e.g. TAB)
9966 is only partially visible.
9967
9968 * dispextern.h (struct it): New member start.
9969
854c1a59
SM
99702003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9971
455316e2
SM
9972 * alloc.c (make_float, Fcons): Clear the markbit at init time.
9973 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
9974 of block_index outside of the macro call.
9975 (Fgarbage_collect): Remove null code.
9976
9977 * m/amdx86-64.h: Don't redefine XPNTR.
9978
854c1a59
SM
9979 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
9980 of VALMASK.
9981
9982 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
9983 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
9984 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
9985
9986 * lisp.h (VALMASK): Only define for non-union type.
9987 (MARKBIT): Remove.
9988 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
9989 (XTYPE): Define unconditionally.
9990 (XSETTYPE): Remove one more remnant.
9991 (EQ): Define differently for the union and non-union cases.
9992 (INTMASK): New bit mask.
9993 (struct Lisp_Marker): Move down to prepare for upcoming patch.
9994 (GC_EQ): Delegate to EQ.
9995
9996 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
9997
a0c6ef2d
JD
99982003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9999
10000 * xterm.c (x_window_to_scroll_bar): Move check of display to
10001 where window_id is compared.
10002
859492c4
KS
100032003-11-17 Kim F. Storm <storm@cua.dk>
10004
10005 * dispextern.h (struct it): New member first_vpos.
10006
10007 * xdisp.c (start_display): Set it->first_vpos.
10008 (try_window_id): Use first_vpos to start display in first _text_
10009 line if no reusable lines at start of window with header line.
10010
810f2256
JD
100112003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10012
7c402969 10013 * w32fns.c (XPutPixel):
854c1a59
SM
10014 * w32bdf.c (w32_init_bdf_font):
10015 * sunfns.c (sel_read):
10016 * process.c (Fmake_network_process):
10017 * frame.c (store_frame_param):
10018 * fontset.c (Fset_fontset_font):
10019 * emacs.c (shut_down_emacs):
a64387ee 10020 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 10021
a32e9bfd
JD
10022 * config.in: Regenerate.
10023
810f2256
JD
10024 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10025 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10026 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
10027 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
10028 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
10029
10030 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
10031
10032 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
10033 (XTmouse_position, handle_one_xevent): Pass Display* to
10034 x_window_to_scroll_bar.
10035 (x_window_to_scroll_bar): Take a Display* argument.
10036 Check that display for frame is equal to Display* argument.
854c1a59 10037 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
10038 x_display_info_for_display instead. Use Display in xev instead
10039 of GDK_DISPLAY.
10040 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 10041 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
10042 (x_connection_closed): Call xg_display_close for GTK.
10043 (x_term_init): Call xg_display_open for additional displays.
10044 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
10045 for GTK.
10046
10047 * xmenu.c (single_menu_item, mouse_position_for_popup)
10048 (x_activate_menubar): Formatting adjustments.
10049
10050 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
10051 adjustments.
10052
10053 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
10054 (xg_display_close, xg_create_default_cursor)
10055 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
10056 handling.
854c1a59
SM
10057 (xg_left_ptr_cursor): Remove.
10058 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
10059 cursor here.
10060 (xg_win_to_widget): Take Display* argument, call
10061 gdk_xid_table_lookup_for_display.
10062 (xg_create_frame_widgets, xg_get_file_name, create_menus)
10063 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
10064 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
10065 in FRAME_X_DISPLAY_INFO.
10066 (xg_get_scroll_id_for_window): Take Display* argument.
10067 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 10068 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 10069
78819ebb
KS
10070 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
10071 Display* argument.
10072 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 10073
0b03cc78
JD
100742003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10075
10076 * xterm.c (x_detect_focus_change): Do not change focus frame for
10077 Enter/LeaveNotify if the current focus frame has explicit focus.
10078
77e688fa
KS
100792003-11-14 Kim F. Storm <storm@cua.dk>
10080
10081 * dispnew.c (update_text_area): Fix redisplay error when hscroll
10082 is active and first glyph is only partially visible.
854c1a59 10083
dd429b03
KH
100842003-11-13 Kenichi Handa <handa@m17n.org>
10085
10086 * xdisp.c (select_frame_for_redisplay): New function.
10087 (redisplay_internal): Record also selected_frame for
10088 unwind_redisplay. Call select_frame_for_redisplay before
10089 redrawing each frame.
10090 (unwind_redisplay): Argument changed to a cons.
10091
6d9266f4
LT
100922003-11-12 Luc Teirlinck <teirllm@auburn.edu>
10093
10094 * fns.c (Fstring_to_multibyte): Doc fix.
10095
80060eb3
KH
100962003-11-11 Kenichi Handa <handa@m17n.org>
10097
10098 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
10099
74305183
JD
101002003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10101
10102 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
10103 program specified positions.
10104
cfda993e
JD
101052003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10106
10107 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
10108
df211069
KH
101092003-11-08 Kenichi Handa <handa@m17n.org>
10110
10111 * Makefile.in (lisp): Add kannada.el.
10112 (shortlisp): Likewise.
10113
4307d534
KH
101142003-11-07 Kenichi Handa <handa@m17n.org>
10115
854c1a59
SM
10116 * coding.c (coding_allocate_composition_data):
10117 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
10118 (coding_restore_composition): Detect invalid composition data.
10119 Give Fstring and Fvector a Lispy integer, not C int.
10120
854c1a59
SM
101212003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
10122
10123 * floatfns.c (Flogb): Don't use VALMASK.
10124
10125 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
10126 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
10127
10128 * lisp.h (XINT): Move the cast to clarify what is going on.
10129 (GCTYPEMASK, XSETTYPE): Remove.
10130 (XGCTYPE): Make it an alias of XTYPE.
10131
d04103a1
JD
101322003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10133
10134 * xterm.c (x_term_init): Fix formatting.
10135
da18b5ac
JD
101362003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10137
78819ebb
KS
10138 * gtkutil.h (xg_have_tear_offs): Declare.
10139 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
10140
10141 * gtkutil.c: Remove variable xg_did_tearoff.
10142 (xg_have_tear_offs): New function.
10143 (tearoff_remove): Just decrease xg_detached_menus.
10144 (tearoff_activate): Increase xg_detached_menus and call
10145 tearoff_remove when tearoff is removed.
854c1a59 10146 (xg_keep_popup): Remove function.
da18b5ac
JD
10147 (create_menus): Give add_tearoff_p as argument to recursive
10148 call to create_menus.
10149 (xg_create_widget): Use variables instead of multiple
10150 strcmp. Tell create_menus to create tear off only for
10151 menu bar menus.
10152 (xg_update_menubar): Change title for a detached menu also.
10153 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
10154 of deep_p.
10155 (xg_initialize): Initialize xg_detached_menus, remove
10156 initialization of xg_did_tearoff.
10157
10158 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
10159 xg_have_tear_offs returns non-zero.
10160 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
10161 call to xg_keep_popup.
10162
64d4923e
AC
101632003-11-01 Andrew Choi <akochoi@shaw.ca>
10164
10165 * macterm.c (XTread_socket): Handle menubar selection and grow
10166 window only for mouseDown events.
854c1a59 10167
6cc8bc07
JD
101682003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10169
10170 * xterm.c (x_term_init): For GTK part, increase x_initialized
10171 to check for more than one display. Use error instead of return 0.
10172
043131c4
AC
101732003-10-31 Andrew Choi <akochoi@shaw.ca>
10174
854c1a59 10175 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
10176 (copy_dysymtab): Call it.
10177
bdda99a1
LT
101782003-10-31 Luc Teirlinck <teirllm@auburn.edu>
10179
10180 * eval.c (Fdefvaralias): Doc fix.
10181
800f42ff 101822003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
10183
10184 * data.c (Fsetplist): Doc fix.
10185
ef35b389
LK
101862003-10-14 Lute Kamstra <lute@gnu.org>
10187
10188 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 10189
ef35b389 101902003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 10191
07107abc
KS
10192 * window.c (Fset_window_margins): Simplify arg checking.
10193
f7005886
RS
101942003-10-13 Richard M. Stallman <rms@gnu.org>
10195
10196 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
10197 (print_partial_compiled_pattern): Replace assert with a printout.
10198 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
10199
10200 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
10201
10202 * window.c (Fset_window_margins): Allow only integers as args.
10203 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
10204 Doc fixes.
10205
9c0c2af5
LK
102062003-10-13 Lute Kamstra <lute@gnu.org>
10207
10208 * window.c (Fset_window_fringes): Elaborate docstring.
10209
3f080e4e
AC
102102003-10-12 Andrew Choi <akochoi@shaw.ca>
10211
854c1a59 10212 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 10213
3f080e4e
AC
10214 * s/darwin.h (GC_MARK_STACK): Define.
10215
0aa513ed
JD
102162003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10217
10218 * window.c (shrink_windows): New function.
10219 (size_window): Call shrink_windows to calculate window sizes when
10220 shrinking frame with more than one window.
10221
6aa8858a
KS
102222003-10-12 Kim F. Storm <storm@cua.dk>
10223
10224 * xdisp.c (compute_fringe_widths): Doc fix.
10225
c2164d91
KH
102262003-10-08 Kenichi Handa <handa@m17n.org>
10227
854c1a59 10228 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 10229
f82ac129
KH
102302003-10-07 Kenichi Handa <handa@m17n.org>
10231
10232 * coding.c (Qcoding_system_define_form): New variable.
10233 (syms_of_coding): Intern and staticpro it.
10234 (Fcheck_coding_system): Try to autoload the definition of
10235 CODING-SYSTEM.
10236
9296c947
LT
102372003-10-05 Luc Teirlinck <teirllm@auburn.edu>
10238
10239 * fns.c (Frequire): Doc fix.
10240
c1f0671a
JD
102412003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10242
3d8c3826
JD
10243 * xfns.c (Fx_send_client_event): New function as a base for
10244 manipulating extended window manager hints.
6dc15d98 10245 (Fx_send_client_event): Remove unused variable s.
3d8c3826 10246
068ae0fd
JD
10247 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
10248 that function is removed.
10249
10250 * xterm.c (x_set_offset): Use move_offset_left/top instead of
10251 x/y_pixels_outer_diff.
10252 (x_check_expected_move): Calculate move_offset_left/top.
10253
10254 * xterm.h (struct x_output): New members: move_offset_top/left.
10255
854c1a59 10256 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
10257 call x_set_offset directly.
10258
10259 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
10260
96f09305
JD
10261 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
10262
10263 * xterm.c (x_delete_display): Free font names and font_encoder
10264 in dpyinfo->font_table.
10265
854c1a59
SM
10266 * xfns.c (Fx_close_connection): Only call XFreeFont here.
10267 Move xfree of font names to x_delete_display.
96f09305 10268
c1f0671a
JD
10269 * xterm.h (struct x_display_info): New member, wm_type.
10270 (struct x_output): New members, expected_top/left and
10271 check_expected_move.
10272
10273 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
10274 is received.
854c1a59
SM
10275 (handle_one_xevent): Rename x_check_expected_move from
10276 x_check_fullscreen_move.
c1f0671a
JD
10277 (x_set_offset): Only add WM decoration sizes to modified_top/left
10278 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 10279 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
10280 Removed fullscreen specific code. Use check_expected_move,
10281 expected_left/top instead. Also, set wm_type.
10282 (x_term_init): Initialize wm_type to unknown.
10283
10284 * frame.c (x_fullscreen_move): Remove addition of WM decoration
10285 sizes to move_x/y.
10286
be2fdba9
KH
102872003-10-03 Kenichi Handa <handa@m17n.org>
10288
10289 * macterm.c (x_load_font): Clear all members of FONTP before start
10290 filling them.
10291
102922003-10-02 Kenichi Handa <handa@m17n.org>
10293
10294 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
10295 before calling find_ccl_program_func. Call find_ccl_program_func
10296 only when fontp->font_encoder is not NULL.
10297
10298 * xterm.c (x_load_font): Clear all members of FONTP before start
10299 filling them.
10300
26a6e439
JPW
103012003-10-03 John Paul Wallington <jpw@gnu.org>
10302
10303 * keymap.c (map_keymap): Don't abort when binding is a vector.
10304
0d4c2dc2
JR
103052003-10-02 Jason Rumney <jasonr@gnu.org>
10306
854c1a59
SM
10307 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
10308 Sync dependencies with Makefile.in.
a63cf46f
JR
10309 (alloca.o): Remove.
10310
0d4c2dc2
JR
10311 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
10312 filling them.
10313
10314 * w32bdf.c (w32_load_bdf_font): Likewise.
10315
ab8f7d5c
RS
103162003-09-30 Richard M. Stallman <rms@gnu.org>
10317
10318 * term.c (set_tty_color_mode): Calculate current_mode_spec
10319 regardless of value of VAL.
10320
854c1a59 10321 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
10322 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
10323 Handle over_used when splitting UNDER.
10324
a64387ee 103252003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
10326
10327 * regex.c (regex_compile): Free the stack when returning from function.
10328
3413f972
KH
103292003-09-28 Kenichi Handa <handa@m17n.org>
10330
10331 * fontset.c (Finternal_char_font): Change return value to
10332 cons (FONT-NAME . GLYPH-CODE).
10333
a6eeaa81 103342003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
10335
10336 * term.c (tty_setup_colors): Treat any negative argument as -1.
10337
f98ddc99
KH
103382003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
10339
10340 * process.c (send_process): Delete unused temp_buf.
10341
66c8f1a8
DL
103422003-09-26 Dave Love <fx@gnu.org>
10343
10344 * xterm.c (x_bitmap_mask): Declare.
10345
ca716c26
DL
103462003-09-25 Dave Love <fx@gnu.org>
10347
10348 * Makefile.in (fns.o): Depend on md5.h.
10349
fbe57420
KS
103502003-09-25 Kim F. Storm <storm@cua.dk>
10351
10352 * window.c (set_window_buffer): Fix redisplay problems when
10353 switching between buffers with different display margin widths.
10354
ef6ae4ff
KS
103552003-09-23 Kim F. Storm <storm@cua.dk>
10356
10357 * process.c (set_socket_option): Fix :bindtodevice option.
10358 (Fset_network_process_option): Update process contact list when
10359 setting option succeeds.
10360 (Fmake_network_process): Doc fix.
10361
68e03c1c
DL
103622003-09-23 Dave Love <fx@gnu.org>
10363
7146d1c1 10364 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 10365
a6eeaa81 103662003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
10367
10368 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
10369 color mode is an integer number (it could be -1).
10370
8fe7d8c8
RS
103712003-09-22 Richard M. Stallman <rms@gnu.org>
10372
10373 * intervals.c (graft_intervals_into_buffer): Correct the main loop
10374 in the case where OVER is longer than UNDER.
10375
2f71b5ea
MY
103762003-09-22 Masatake YAMATO <jet@gyve.org>
10377
7146d1c1 10378 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 10379 `vertical_type'.
7146d1c1 10380
0c4da023
KS
103812003-09-21 Kim F. Storm <storm@cua.dk>
10382
10383 * frame.c (Vdefault_frame_scroll_bars): New variable.
10384 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
10385 (syms_of_frame): DEFVAR_LISP it, and initialize according to
10386 window-system default scroll bar position.
10387
b648413b
KS
10388 * window.c (Fwindow_scroll_bars): Doc fix.
10389
8f5b9e34
JD
103902003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10391
854c1a59 10392 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 10393
b0f23edf
RS
103942003-09-19 Richard M. Stallman <rms@gnu.org>
10395
10396 * atimer.h: Don't include lisp.h.
10397 (P_): Define it here (as well as elsewhere).
10398
10399 * print.c (Fprin1_to_string): Move the PRINTPREPARE
10400 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
10401
10402 * data.c (Fvariable_binding_locus): New function.
10403 (syms_of_data): defsubr it.
10404 (Flocal_variable_p): Delete duplicate call to indirect_variable.
10405
e1283999
DL
104062003-09-18 Dave Love <fx@gnu.org>
10407
ad5f3636
DL
10408 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
10409
e1283999
DL
10410 * process.c (Fnetwork_interface_info): Fix type error.
10411 (Fnetwork_interface_list): Doc fix.
10412 (read_process_output, read_process_output): Delete unused var.
10413
b8c7fd71
KS
104142003-09-17 Kim F. Storm <storm@cua.dk>
10415
10416 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
10417 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
10418 (Fnetwork_interface_info): Check that ifreq struct has required
10419 fields before accessing them; this requires that those fields are
10420 defined as macros, which may be too restrictive on some platforms,
10421 but it is better than failing on other platforms.
10422 (syms_of_process): Only defsubr above fns when included.
10423
11e0a411
DL
104242003-09-17 Dave Love <fx@gnu.org>
10425
10426 * unexalpha.c: Don't include varargs.h.
10427
e9c50801
KS
104282003-09-17 Kim F. Storm <storm@cua.dk>
10429
10430 * process.c (Fset_process_sentinel): Add sentinel to childp plist
10431 for network process.
10432 (socket_options): Add `:' prefix to option names. Add optbit field.
10433 (set_socket_option): Remove no_error arg and special handling of s < 0.
10434 Return 1<<optbit for known option, 0 for unknown.
10435 Do not interpret 0 as false for boolean option (only nil).
10436 Pass failed option and value to report_file_error.
7146d1c1 10437 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
10438 (Fset_network_process_option): New function to set just one option.
10439 (Fmake_network_process): Allow :coding arg to be a cons.
10440 Allow :server arg to be an integer specifying backlog size.
10441 Remove :options arg, and allow options to be specified directly
10442 as :KEY, VALUE pairs. Parse these options before binding socket.
10443 As before, :reuseaddr t is default for a server process, but this
10444 can now be disabled by specifying :reuseaddr nil.
10445 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
10446 (init_process): Availability of network options is now checked with
10447 simpler syntax (featurep 'make-network-process :OPTION); use loop to
10448 setup features.
10449 (syms_of_process): Fix defsubr's for the replaced functions.
10450
a0fc3644
DL
104512003-09-16 Dave Love <fx@gnu.org>
10452
10453 * Makefile.in: Depend on coding.h.
10454
6df2a645
KS
104552003-09-14 Kim F. Storm <storm@cua.dk>
10456
10457 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
10458 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
10459 (syms_of_process): Defsubr them.
10460
10461 * config.in: Regenerate.
7146d1c1
SM
10462
104632003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10464
10465 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
10466 * m/news-r6.h (XUNMARK): Remove.
10467 * m/mips.h (XUNMARK): Remove.
10468 * m/mips-siemens.h (XUNMARK): Remove.
10469 * m/iris4d.h (XUNMARK): Remove.
10470 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
10471
0930c1a1
SM
104722003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10473
31003b9e
SM
10474 * lisp.h (VALBITS): Don't remove 1 for the markbit.
10475 (union Lisp_Object): Use unsigned int for types. Remove markbit.
10476 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
10477 (XTYPE): Use unsigned right-shift.
10478 (XMARKBIT, XMARK, XUNMARK): Remove.
10479
0930c1a1
SM
10480 * alloc.c (init_intervals, init_symbol, init_marker):
10481 Don't preallocate anything.
10482 (Fgarbage_collect, mark_object): Ignore the markbit.
10483
10484 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
10485
19bb0fcd 104862003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
10487
10488 * xdisp.c (pint2hrstr): New function.
10489 (decode_mode_spec): Add `%i' and `%I' specs.
10490 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
10491 for `mode-line-format'.
10492
03bb6a06
AS
104932003-09-07 Andreas Schwab <schwab@suse.de>
10494
10495 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
10496 avoid warning.
10497
a6eeaa81 104982003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 10499
0930c1a1 10500 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 10501
ed159bbf
KS
105022003-09-03 Kim F. Storm <storm@cua.dk>
10503
10504 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
10505 change (superseded by 2002-08-30 change); the default blink-off
10506 cursor is now again "no cursor".
10507
fe64a394
JR
105082003-09-01 Jason Rumney <jasonr@gnu.org>
10509
10510 * makefile.w32-in (alloca.o): Remove.
10511 (coding.o): Depend on intervals.h
10512 (emacs.o, bytecode.o): Depend on window.h
10513
c0175e24
DL
105142003-09-01 Dave Love <fx@gnu.org>
10515
10516 * Makefile.in (alloca.o): Remove commands.
10517 (coding.o): Depend on intervals.h composite.h window.h.
10518 (emacs.o): Depend on window.h keyboard.h keymap.h.
10519 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
10520 (bytecode.o): Depend on window.h.
10521
a24d4cb2
JR
105222003-08-31 Jason Rumney <jasonr@gnu.org>
10523
4bc2315e
JR
10524 * w32term.c (w32_per_char_metric): Allow cached metrics to be
10525 returned even when font_type is unknown.
10526
a24d4cb2
JR
10527 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
10528
9d35adc7
JD
105292003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10530
10531 * xterm.c (x_term_init): Initialize new fields in x_display_info.
10532
10533 * xterm.h (struct x_display_info): Add red/green/blue_bits and
10534 *_offset.
10535
10536 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
10537 calculate pixel value.
10538
6f68b035
GM
105392003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
10540
0930c1a1
SM
10541 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
10542 Don't tell redisplay display is accurate when it's actually been
10543 paused for pending input.
6f68b035 10544
4828b4d7
RS
105452003-08-29 Richard M. Stallman <rms@gnu.org>
10546
10547 * dispnew.c (adjust_glyph_matrix): Call window_box
10548 whenever W is nonzero.
10549
10550 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10551 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 10552 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
10553 Use indirect_variable to trace thru variable aliases.
10554
10555 * config.in: Updated.
10556
10557 * callint.c (Fcall_interactively): Save and restore
10558 Vthis_command, Vthis_original_command, real_this_command,
10559 and current_kboard->Vlast_command.
10560
10561 * abbrev.c (Fexpand_abbrev): Insert before deleting.
10562
e019878d
GM
105632003-08-29 Gerd Moellmann <gerd@gnu.org>
10564
10565 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
10566
85478bc6
KH
105672003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
10568
0930c1a1 10569 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
10570 (decode_coding_sjis_big5): Likewise.
10571
07ce82d3
JR
105722003-08-27 Jason Rumney <jasonr@gnu.org>
10573
d3703de3
JR
10574 * w32.c (sys_pipe): Protect against file descriptor overflow.
10575
ee4a01d1
JR
10576 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
10577
07ce82d3
JR
10578 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
10579
a64387ee 105802003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
10581
10582 * xfns.c (Vgtk_version_string): New variable.
10583 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
10584
a6eeaa81 105852003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 10586
0930c1a1 10587 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 10588
5459e42a
EZ
10589 * Makefile.in (msdos.o): Depend on intervals.h.
10590
0930c1a1 10591 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 10592
231d6cfb
JD
105932003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10594
10595 * xterm.h (struct x_display_info): New fields: client_leader_window
10596 and Xatom_wm_client_leader.
10597
10598 * xterm.c (x_initialize): Move call to x_session_initialize to ...
10599 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
10600
10601 * xsmfns.c (create_client_leader_window): New function.
10602 (x_session_initialize): Call create_client_leader_window, take
10603 dpyinfo as argument.
10604
10605 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
10606
10607 * Makefile.in (xsmfns.o): Add more depenedencies.
10608
afa88464
DL
106092003-08-21 Dave Love <fx@gnu.org>
10610
10611 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
10612
f730033e
KH
106132003-08-21 Kenichi Handa <handa@m17n.org>
10614
10615 * term.c (term_init): Fix previous change; don't rely on the
10616 length of `buffer' if TERMINFO is defined.
10617
6dca786c
DL
106182003-08-20 Dave Love <fx@gnu.org>
10619
10620 * atimer.h: Include lisp.h.
10621
10622 * lisp.h (EMACS_LISP_H): New.
10623 (popup_activated_flag): Don't declare.
10624
10625 * alloca.c: Some merging with gnulib. Change logic and doc
10626 concerning (x)malloc/(x)free -- no longer Emacs-specific.
10627 [DO_BLOCK_INPUT]: Don't include lisp.h.
10628 (xmalloc, xfree): Declare.
10629 (malloc): Don't declare.
10630
0930c1a1 10631 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
10632 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
10633 atimer.h, blockinput.h.
10634
10635 * alloc.c (lisp_align_malloc): Change type of `aligned'.
10636
78819ebb 10637 * alloca.s: Remove.
6dca786c 10638
3a06a6d9
RS
106392003-08-19 Gerd Moellmann <gerd@gnu.org>
10640
10641 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
10642 use -lncurses.
10643
10644 * term.c (term_init): Use a buffer of size 4096 for tgetent since
10645 FreeBSD returns something longer than 2044. Abort if the end of
10646 the buffer is overwritten.
10647
27eeee55
MB
106482003-08-19 Miles Bader <miles@gnu.org>
10649
10650 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
10651
2f297815
GM
106522003-08-19 Gerd Moellmann <gerd@gnu.org>
10653
f4446bbf
GM
10654 * alloc.c (lisp_align_malloc): Check for memory full when
10655 allocating ablocks, which also avoids freeing a pointer into an
10656 ablocks structure.
10657
10658 * puresize.h (BASE_PURESIZE): Increase to 1100000.
10659
0930c1a1 10660 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 10661
0e7d7aae
RS
106622003-08-16 Richard M. Stallman <rms@gnu.org>
10663
10664 * editfns.c (Fencode_time): Doc fix.
10665
106662003-08-16 David Ponce <david@dponce.com>
10667
10668 * fileio.c (Fwrite_region): Fix conditional expression to issue
10669 the right message.
10670
b6189c3b 106712003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
10672
10673 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 10674 Set default value to 1.
0e7d7aae 10675
5d551295
KH
106762003-08-15 Kenichi Handa <handa@m17n.org>
10677
10678 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
10679 what autoscaled.
10680 (best_matching_font): Once we find a better scalable font, set
10681 non_scalable_has_exact_height_p to 1.
10682 (try_font_list): Call try_alternative_families to try any family
10683 with the given registry.
10684
1661e56b
AS
106852003-08-09 Andreas Schwab <schwab@suse.de>
10686
f29181dc
AS
10687 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
10688
1661e56b
AS
10689 * print.c (print_string): Fix printing of multibyte string with
10690 nontrivial printcharfun.
10691
465aa50a
JD
106922003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10693
10694 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
10695
10696 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
10697
e430e5ba
KH
106982003-07-31 Kenichi Handa <handa@m17n.org>
10699
10700 * process.c (read_process_output): Return the actually read bytes
10701 instead of the result of decoding.
10702
97e7188e
KH
107032003-07-31 Kenichi Handa <handa@m17n.org>
10704
10705 * xterm.h (struct x_bitmap_record): New member have_mask.
10706
10707 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
10708 to 0.
10709 (x_create_bitmap_from_file): Likewise.
10710 (x_destroy_bitmap): Check have_mask member before freeing a mask.
10711 (x_destroy_all_bitmaps): Likewise.
10712 (x_create_bitmap_mask): Set have_mask member to 1.
10713
b53094d6
RS
107142003-07-30 Richard M. Stallman <rms@gnu.org>
10715
10716 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
10717
631f2082
JD
107182003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10719
10720 * gtkutil.c (xg_mark_data): Update calls to mark_object.
10721
c855f2ca
RS
107222003-07-29 Richard M. Stallman <rms@gnu.org>
10723
10724 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
10725 Conditionalize XIM code on HAVE_XIM.
10726
10727 * fns.c (Fclear_string): New function.
10728 (syms_of_fns): defsubr it.
10729
b6189c3b 107302003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 10731
0930c1a1 10732 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 10733
29ea8ae9
SM
107342003-07-22 Stefan Monnier <monnier@cs.yale.edu>
10735
10736 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
10737
10738 * buffer.c (delete_all_overlays): New function.
10739 * buffer.h (delete_all_overlays): Declare.
10740 * coding.c (run_pre_post_conversion_on_str):
10741 * print.c (temp_output_buffer_setup):
10742 * fileio.c (Finsert_file_contents):
10743 * minibuf.c (get_minibuffer): Use it.
10744
1dd7ccf2
AC
107452003-07-22 Andrew Choi <akochoi@shaw.ca>
10746
10747 * unexmacosx.c (unexec_regions_sort_compare):
10748 (unexec_regions_merge): New functions. Sort and merge unexec
10749 regions before dumping them.
10750
f57bd967
DL
107512003-07-22 Dave Love <fx@gnu.org>
10752
10753 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
10754
7cdee936
SM
107552003-07-21 Stefan Monnier <monnier@cs.yale.edu>
10756
10757 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
10758 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
10759 MARKBIT as the gcmarkbit for strings.
10760
e50886d3
RS
107612003-07-21 Richard M. Stallman <rms@gnu.org>
10762
10763 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
10764
29ea8ae9 10765 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
10766 (syms_of_fns): Corresponding change.
10767
10768 * alloc.c (syms_of_alloc): Doc fixes.
10769
107702003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
10771
10772 * s/netbsd.h: Use -Wl syntax.
10773
fdc39b59
RS
107742003-07-17 Richard M. Stallman <rms@gnu.org>
10775
10776 * xterm.c (xim_initialize): Redo 6/24 change.
10777
9c53385f
SM
107782003-07-15 Stefan Monnier <monnier@cs.yale.edu>
10779
10780 * buffer.c (copy_overlays): Use EMACS_INT for positions.
10781 (Fswitch_to_buffer): Don't signal an error when switching to the same
10782 buffer in a dedicated window.
10783
10784 * alloc.c: Use bitmaps for cons, as was done for floats.
10785 (init_float, init_cons): Let the normal code allocate the first block.
10786 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
10787 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
10788 New macros.
10789 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
10790 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
10791 (live_cons_p): Check the pointer is not past the `conses' array.
10792 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
10793 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
10794 (survives_gc_p): Use CONS_MARKED_P and simplify.
10795 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
10796
dde13196
PE
107972003-07-13 Paul Eggert <eggert@twinsun.com>
10798
10799 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
10800 puts it into BSS instead, at least on Solaris 8 and 9.
10801 This is a valid optimization, and it may occur on other platforms,
10802 so Emacs should not assume that initializing a static variable to
10803 zero puts it into data.
10804 * alloc.c (pure, staticvec):
10805 Initialize these arrays to nonzero, so that they're not
10806 put into BSS by that optimization.
10807
a801bc34
SM
108082003-07-13 Stefan Monnier <monnier@cs.yale.edu>
10809
10810 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
10811 (lisp_align_malloc): Use posix_memalign is available.
10812 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
10813 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
10814 for consistency. Update users.
10815
0c8b2afa
RS
108162003-07-13 Richard M. Stallman <rms@gnu.org>
10817
10818 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
10819
668c2ab0
JB
108202003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
10821
10822 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
10823 and use the Gtk+ function gtk_window_icon_from_file if available.
10824
10825 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
10826 handle mask of bitmaps.
10827 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
10828 mask property.
10829 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
10830
10831 * xterm.h (xg_set_icon): New function.
10832
800bebe3
RS
108332003-07-12 Paul Eggert <eggert@twinsun.com>
10834
10835 * unexelf.c (unexec): Consider a section to precede the .bss
10836 section if its addresses overlap that of .bss.
10837
69e38995
RS
108382003-07-12 Richard M. Stallman <rms@gnu.org>
10839
10840 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
10841
10842 * config.in (HAVE_CRTIN): Add #undef.
10843 (INLINE): Really inline only if OPTIMIZE is defined.
10844
10845 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
10846 END_FILES_1.
10847 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 10848 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
10849
10850 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
10851 (TERMINFO): Define.
10852 (LIBS_TERMCAP): Define.
10853 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
10854
10855 * xfns.c: Include libpng/png.h instead of png.h.
10856
f1d0c238
AS
108572003-07-11 Andreas Schwab <schwab@suse.de>
10858
10859 * buffer.c (modify_overlay): Update prototype.
10860 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
10861 Likewise.
10862
5f6bf5fe
SM
108632003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10864
10865 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
10866 (struct interval): Move to intervals.h.
10867 (struct Lisp_Marker): Use EMACS_INT for position info.
10868 (forward_point): Remove prototype of defunct function.
10869 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
10870 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
10871 (syms_of_textprop, set_text_properties): Remove prototypes that are
10872 already in intervals.h.
10873
10874 * intervals.h (struct interval): Move from lisp.h.
10875 Use EMACS_INT for position and size info.
10876
10877 * coding.c: Include intervals.h for Fset_text_properties.
10878
10879 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10880 position and length information.
10881
2765b457
SM
108822003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10883
10884 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10885 position and length information.
10886
2410d73a
SM
108872003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10888
10889 Change overlays_after and overlays_before so the overlays themselves
10890 are linked into lists, rather than using cons cells. After all each
10891 Lisp_Misc already occupies 5 words, so we can add a `next' field to
10892 Lisp_Overlay for free and save up one cons cell per overlay (not
10893 to mention one indirection when traversing the list of overlay).
10894
10895 * lisp.h (struct Lisp_Overlay): New field `next'.
10896
10897 * buffer.h (struct buffer): Change overlays_before and overlays_after
10898 from Lisp lists of overlays to pointers to overlays.
10899
10900 * buffer.c (overlay_strings, recenter_overlay_lists):
10901 Fix typo in eassert in last commit.
10902 (unchain_overlay): New function.
10903 (add_overlay_mod_hooklist): Use AREF.
10904 (copy_overlays, reset_buffer, overlays_at, overlays_in)
10905 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
10906 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
10907 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
10908 (report_overlay_modification, evaporate_overlays, init_buffer_once):
10909 Adjust to new type of overlays_(before|after).
10910
10911 * alloc.c (mark_object): Mark the new `next' field of overlays.
10912 (mark_buffer): Manually mark the overlays_(after|before) fields.
10913
10914 * coding.c (run_pre_post_conversion_on_str):
10915 * editfns.c (overlays_around):
10916 * xdisp.c (load_overlay_strings):
10917 * fileio.c (Finsert_file_contents):
10918 * indent.c (current_column):
10919 * insdel.c (signal_before_change, signal_after_change):
10920 * intervals.c (set_point_both):
10921 * print.c (temp_output_buffer_setup): Use new type for
10922 overlays_(before|after).
10923
04812929
SM
109242003-07-08 Stefan Monnier <monnier@cs.yale.edu>
10925
10926 * buffer.c (report_overlay_modification): Don't run hooks while
10927 traversing the list of overlays.
10928
10929 * buffer.h (struct buffer): Use an int for overlay_center.
10930 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10931 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10932
10933 * buffer.c (reset_buffer, recenter_overlay_lists)
10934 (adjust_overlays_for_insert, adjust_overlays_for_delete)
10935 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
10936 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
10937 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10938 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10939
10940 * xdisp.c (fast_find_position): Remove unused var.
10941
10942 * cmds.c (Qexpand_abbrev): New sym.
10943 (syms_of_cmds): Initialize it.
10944 (internal_self_insert): Use it to call expand-abbrev.
10945
2e7ecf15
KS
109462003-07-09 Kim F. Storm <storm@cua.dk>
10947
f9711de4 10948 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 10949 was configured with --without-xim.
42f81f64 10950 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 10951
c6de56a0
RS
109522003-07-07 Richard M. Stallman <rms@gnu.org>
10953
10954 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
10955
10956 * alloc.c (Fgarbage_collect): Doc fix.
10957
b6189c3b 109582003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
10959
10960 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
10961
bfe1a3f7
SM
109622003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10963
04812929
SM
10964 * minibuf.c (read_minibuf): UNGCPRO before returning.
10965 (Ftry_completion, Fall_completions): Doc fix.
10966
bfe1a3f7
SM
10967 * alloc.c (live_float_p): Check that p is not past the `floats' array,
10968 now that `floats' is not the last element of the struct any more.
10969
ee79d1aa
JR
109702003-07-06 Jason Rumney <jasonr@gnu.org>
10971
10972 * w32term.h (ClipboardSequence_Proc): New type.
10973
10974 * w32fns.c (clipboard_sequence_fn): New variable.
10975 (globals_of_w32fns): Initialize it.
10976
10977 * w32select.c (last_clipboard_sequence_number): New variable.
10978 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
10979 number if possible.
10980
49723c04
SM
109812003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10982
4698665f
SM
10983 * m/amdx86-64.h (MARKBIT):
10984 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
10985 MARKBIT and ARRAY_MARK_FLAG any more.
10986
10987 * m/hp800.h (XSETMARKBIT):
10988 * m/sr2k.h (XSETMARKBIT):
10989 * lisp.h (XSETMARKBIT): Remove unused macro.
10990
49723c04
SM
10991 * lisp.h (mark_object): Change prototype.
10992
10993 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
10994 (last_marked): Change accordingly.
10995 (mark_interval, mark_maybe_object, mark_maybe_pointer)
10996 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
10997 (mark_buffer): Update calls to mark_object.
10998
10999 * bytecode.c (mark_byte_stack):
11000 * fns.c (sweep_weak_table):
11001 * keyboard.c (mark_kboards): Update calls to mark_object.
11002
1d660eca
JR
110032003-07-06 Jason Rumney <jasonr@gnu.org>
11004
11005 * alloc.c (struct ablock): Only include padding when there is some.
11006
618b5ae4
SM
110072003-07-04 Stefan Monnier <monnier@cs.yale.edu>
11008
11009 * alloc.c (ALIGN): Add casts to simplify usage.
11010 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
11011 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
11012 (struct ablock, struct ablocks): New types.
11013 (free_ablock): New global var.
11014 (lisp_align_malloc, lisp_align_free): New functions.
11015 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
11016 (struct float_block): Reorder and add gcmarkbits.
11017 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
11018 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
11019 (init_float, make_float): Use lisp_align_malloc.
11020 (free_float, live_float_p): Don't use `type' any more.
11021 (make_float): Use FLOAT_UNMARK to access to mark bit.
11022 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
11023 Use FLOAT_MARKED_P to access the mark bit.
11024 (pure_alloc): Simplify use of ALIGN.
11025 (mark_object): Use FLOAT_MARK to access the mark bit.
11026 (gc_sweep): Use new macros to access the float's mark bit.
11027 (init_alloc_once): Init free_ablock.
11028
11029 * lisp.h (struct Lisp_Float): Remove unused field `type'.
11030
3ef06d12
SM
110312003-06-27 Stefan Monnier <monnier@cs.yale.edu>
11032
11033 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
11034 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
11035 (allocate_buffer): Move.
11036 (string_bytes): Don't mask markbit of `size_byte'.
11037 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11038 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
11039 Use the `size' field of buffers (rather than the `name' field) for
11040 the mark bit, as is done for all other vectorlike objects.
11041 Use the new macros to access the mark bit of vectorlike objects.
11042
e81043aa
RS
110432003-06-26 Richard M. Stallman <rms@gnu.org>
11044
11045 * puresize.h (BASE_PURESIZE): Increment base size.
11046
11047 * xdisp.c (fast_find_position): Enable Gerd's new definition.
11048
11049 * xterm.c (xim_initialize): Undo previous change.
11050
2d0834cc
SM
110512003-06-26 Stefan Monnier <monnier@cs.yale.edu>
11052
11053 * alloc.c (survives_gc_p): Simplify.
11054
11055 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
11056
11057 * window.c (Fset_window_dedicated_p): Simplify.
11058 (display_buffer_1): Don't raise the win from which minibuf was entered.
11059 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
11060 (Fminibuffer_selected_window): Simplify.
11061
11062 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
11063
11064 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
11065 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
11066
11067 * insdel.c (check_markers, adjust_markers_for_delete)
11068 (adjust_markers_for_insert, adjust_markers_for_replace)
11069 (prepare_to_modify_buffer, RESTORE_VALUE):
11070 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
11071 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
11072 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
11073 * alloc.c (Fmake_marker, free_marker, gc_sweep):
11074 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
11075 * editfns.c (save_excursion_restore, transpose_markers):
11076 * window.c (delete_window):
11077 * xdisp.c (message_dolog): Update for new types.
11078
d54ae3d8
JD
110792003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11080
a5f696ac
JD
11081 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
11082 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 11083 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
11084
11085 * frame.c (make_frame): Initialize default_face_done_p.
11086
11087 * frame.h (struct frame): Add default_face_done_p.
11088
d54ae3d8
JD
11089 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
11090 will be defined.
11091
2336fe58
SM
110922003-06-25 Stefan Monnier <monnier@cs.yale.edu>
11093
11094 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
11095 Initialize the new field `gcmarkbit'.
11096 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
11097 (mark_interval_tree): Don't mark the tree separately from the nodes.
11098 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
11099 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11100 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
11101
11102 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
11103 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
11104 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
11105 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
11106 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
11107
bcea31c2
DL
111082003-06-24 Dave Love <fx@gnu.org>
11109
11110 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
11111
11112 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
11113 from gnulib.
11114
2601f59e
RS
111152003-06-21 Richard M. Stallman <rms@gnu.org>
11116
11117 * fileio.c (Fwrite_region): Alternate messages
11118 for append and partial write.
11119
11120 * keyboard.c (read_key_sequence): When converting upcase fn key to
11121 downcase, update fkey and keytran so `backspace' gets translated.
11122
11123 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
11124
11125 * process.c (wait_reading_process_input): Don't signal SIGIO
11126 in batch mode.
11127
b5d2c621
KH
111282003-06-17 Kenichi Handa <handa@m17n.org>
11129
11130 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
11131 composite.h.
11132
11133 * xselect.c: Don't include charset.h, coding.h, composite.h.
11134 (Qforeign_selection): New variable.
11135 (syms_of_xselect): Intern and static it.
11136 (selection_data_to_lisp_data): Return a unibyte string made from
11137 data with `foreign-selection' text property.
11138
6793bc63
SM
111392003-06-15 Stefan Monnier <monnier@cs.yale.edu>
11140
11141 * termhooks.h (EVENT_INIT): New macro.
11142
11143 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
11144
11145 * alloc.c (mark_kboards): Move to keyboard.c.
11146
11147 * keyboard.c (record_asynch_buffer_change, read_avail_input):
11148 * xterm.c (x_dispatch_event):
11149 * xmenu.c (find_and_call_menu_selection):
11150 * xdisp.c (handle_tool_bar_click):
11151 * w32menu.c (menubar_selection_callback):
11152 * sysdep.c (kbd_input_ast, read_input_waiting):
11153 * msdos.c (dos_rawgetc):
11154 * macterm.c (mac_check_for_quit_char):
11155 * macmenu.c (menubar_selection_callback):
11156 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
11157 data to kbd_buffer_store_event.
11158
b3ea810c
KS
111592003-06-15 Kim F. Storm <storm@cua.dk>
11160
11161 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 11162 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 11163
b8f75eda
KG
111642003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11165
11166 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
11167
ba92ce48
KH
111682003-06-12 Kenichi Handa <handa@m17n.org>
11169
11170 * fileio.c (Fwrite_region): Save and restore restriction.
11171
b80263be
DL
111722003-06-12 Dave Love <fx@gnu.org>
11173
11174 * alloca.c (alloca): Declare arg as size_t.
11175
6793bc63
SM
11176 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
11177 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 11178
b23c0a83
DL
111792003-06-11 Dave Love <fx@gnu.org>
11180
11181 * search.c (shrink_regexp_cache): Use xrealloc.
11182 (syms_of_search): Use xmalloc.
11183
700e47c2
KS
111842003-06-10 Kim F. Storm <storm@cua.dk>
11185
11186 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
11187 Adjust phys_cursor.x to be relative to window box, rather than
11188 text area before checking -- to ensure cursor is redrawn when
11189 exposing window.
11190 Note: This also fixes a similar (older) bug if display margins
11191 are present.
11192
f11aa0b2
KH
111932003-06-06 Kenichi Handa <handa@m17n.org>
11194
11195 * coding.c (encoding_buffer_size): If coding->type is
11196 coding_type_ccl, double magnification on CRLF encoding.
11197
3d143690
JR
111982003-06-06 Jason Rumney <jasonr@gnu.org>
11199
11200 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
11201 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
11202
11203 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
11204 Mac too.
11205
f16205ca
DL
112062003-06-05 Dave Love <fx@gnu.org>
11207
b23c0a83
DL
11208 * strftime.c: Merge changes from gnulib.
11209
f16205ca
DL
11210 * mktime.c (__mktime_internal): Merge changes from gnulib
11211 involving year 69 and dst2.
11212
11213 Changes to merge with gnulib version and be consistent with the
11214 autoconf test:
11215
6793bc63
SM
11216 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
11217 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
11218 [HAVE_LOCALE_H]: Include locale.h.
11219 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
11220
9b87a0bc
KS
112212003-06-05 Kim F. Storm <storm@cua.dk>
11222
11223 * window.c (coordinates_in_window): Convert X and Y to window
11224 relative coordinates inside mode-line and header-line parts.
11225 Convert X and Y to margin area relative coordinates inside left
11226 and right display margin parts.
11227
5a8a15ec
JR
112282003-06-05 Jason Rumney <jasonr@gnu.org>
11229
11230 * w32fns.c (add_system_logical_colors_to_map): New function.
11231 (Fx_open_connection): Use it.
11232
01ed8ff1
SM
112332003-06-04 Stefan Monnier <monnier@cs.yale.edu>
11234
11235 * process.c (allocate_pty): Revert part of the previous patch.
11236 (Faccept_process_output): Simplify.
11237
b427b65d
JR
112382003-06-04 Jason Rumney <jasonr@gnu.org>
11239
11240 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
11241
11242 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
11243 (lispy_mouse_wheel_names): Remove.
11244 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
11245 Always define drag_and_drop_syms.
11246
11247 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
11248 WHEEL_EVENT events.
11249
914a8c47
SM
112502003-06-03 Stefan Monnier <monnier@cs.yale.edu>
11251
01ed8ff1
SM
11252 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
11253
914a8c47
SM
11254 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
11255
adcb132c
JD
112562003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11257
11258 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
11259 menu item label.
11260
be781fa7
RS
112612003-06-03 Richard M. Stallman <rms@gnu.org>
11262
11263 * window.c (Fwindow_edges): Doc fix.
11264 (Fwindow_pixel_edges, Fwindow_inside_edges)
11265 (Fwindow_inside_pixel_edges): New functions.
11266 (syms_of_window): defsubr them.
11267
11268 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
11269 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
11270
914a8c47
SM
112712003-06-02 Stefan Monnier <monnier@cs.yale.edu>
11272
11273 * dispnew.c (Fsit_for): Don't lie about the number of args.
11274
5b07197a
DL
112752003-06-02 Dave Love <fx@gnu.org>
11276
11277 * callproc.c: Use HAVE_FCNTL_H, not USG5.
11278 (syms_of_callproc) <process-environment>: Doc fix.
11279
11280 * doc.c: Use HAVE_FCNTL_H, not USG5.
11281
11282 * xfaces.c (font_rescale_ratio): Fix for K&R.
11283
11284 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
11285
11286 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
11287
11288 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
11289
11290 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
11291 (xg_create_frame_widgets): Use ENCODE_UTF_8.
11292
d7107586 11293 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
11294
11295 * xmenu.c (ENCODE_MENU_STRING): New.
11296 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
11297 Use it.
11298
11299 * coding.h (ENCODE_UTF_8): New.
11300 (Qutf_8): Declare.
11301
11302 * coding.c (Qutf_8): New.
11303 (syms_of_coding): Intern it.
11304
11305 * fns.c: Doc fixes.
11306
7335b336
KH
113072003-06-02 Kenichi Handa <handa@m17n.org>
11308
11309 * buffer.c (Fset_buffer_multibyte): Fix previous change.
11310
914a8c47
SM
113112003-06-01 Stefan Monnier <monnier@cs.yale.edu>
11312
11313 * lread.c (openp): Make sure STR is a string.
11314
9862c135
JR
113152003-06-01 David Ponce <david@dponce.com>
11316
cab27d04 11317 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
11318 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
11319
11320 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
11321 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
11322 (discard_mouse_events): Discard WHEEL_EVENT events too.
11323 (lispy_wheel_names, wheel_syms): New.
11324 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 11325 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 11326 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
11327
11328 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
11329 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11330 WHEEL_EVENT events.
11331
f984e73e
JPW
113322003-05-31 John Paul Wallington <jpw@gnu.org>
11333
11334 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
11335 timer are in lisp/emacs-lisp.
11336
1efcd78f
KH
113372003-05-31 Kenichi Handa <handa@m17n.org>
11338
458c8af4
KH
11339 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
11340 region when a buffer is changed to unibyte.
11341
1efcd78f
KH
11342 * charset.h (VALID_LEADING_CODE_P): New macro.
11343 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
11344
778e2804
KH
11345 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
11346 is nonzero, accept multibyte form of eight-bit-control chars.
11347 (decode_composition_emacs_mule): Likewise.
11348 (decode_coding_emacs_mule): Likewise.
11349 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
11350 multibyte form of eight-bit-control chars.
11351
11352 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
11353 (Finsert_file_contents): If coding-system-for-read is bound to
11354 Qauto_save_coding, use the coding system emacs-mule with special
11355 setting for recovering a file.
11356 (choose_write_coding_system): On auto saving, use the coding
11357 system emacs-mule with special setting for auto saving.
11358 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
11359
034060e4
KH
113602003-05-30 Kenichi Handa <handa@m17n.org>
11361
11362 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
11363 properly before calling ccl_driver.
11364
778e2804 11365 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 11366
cab27d04 11367 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
11368 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
11369 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
11370
595f5aa5
GM
113712003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
11372
11373 * xfaces.c (realize_default_face): Do not abort if lface is
11374 non-existent - reverts change from 2003-05-19.
11375
103e0180
KH
113762003-05-29 Kenichi Handa <handa@m17n.org>
11377
11378 * coding.c (decode_coding_iso2022): Pay attention to the byte
11379 sequence of CTEXT extended segment, and retain those bytes as is.
11380
113812003-05-28 Kenichi Handa <handa@m17n.org>
11382
cab27d04 11383 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
11384 of CODING_REPLACEMENT_CHARACTER.
11385 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
11386 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
11387 check this flag on encoding.
cab27d04
SM
11388 (encode_coding_sjis_big5):
11389 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
11390 (Fset_terminal_coding_system_internal):
11391 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
11392 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
11393
11394 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
11395 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
11396 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
11397
ff6a3bfb 113982003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 11399
ff6a3bfb
RS
11400 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
11401
11402 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 11403
1963c428
KS
114042003-05-28 Kim F. Storm <storm@cua.dk>
11405
11406 * xdisp.c (expose_window): Fix error in calculation of
11407 window relative coordinates of area to redisplay.
11408
2b5d4601
JR
114092003-05-27 Jason Rumney <jasonr@gnu.org>
11410
11411 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
11412
1c64a4a2
JB
114132003-05-27 David Ponce <david@dponce.com>
11414
11415 Handle W32 mouse wheel events as mouse click events, like in X.
11416
11417 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
11418 MOUSE_WHEEL_EVENT anymore.
11419
11420 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
11421 Scrolling down/up the mouse wheel is respectively mapped to mouse
11422 button 4 and 5.
11423 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11424 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
11425 WM_MOUSEWHEEL events.
11426
2d031b89
AS
114272003-05-27 Andreas Schwab <schwab@suse.de>
11428
20464fdf
AS
11429 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
11430
2d031b89
AS
11431 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
11432 partially visible line.
11433
11434 * alloc.c (Fgarbage_collect): Fix last change.
11435
97bc76d4
JPW
114362003-05-26 John Paul Wallington <jpw@gnu.org>
11437
11438 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
11439
56613f06
SM
114402003-05-25 Stefan Monnier <monnier@cs.yale.edu>
11441
11442 * window.c (Fset_window_buffer): Add type of `keep_margins'.
11443 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
11444
11445 * window.h (window_box_text_cols): Declare.
11446
11447 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
11448 (x_draw_vertical_border): Remove unused var `f'.
11449
11450 * xfaces.c (build_scalable_font_name): Remove `unused var
11451 pixel_size' warning.
11452
11453 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
11454
11455 * unexelf.c (unexec): Remove `unused var n' warning.
11456
11457 * strftime.c (my_strftime_localtime_r): Remove `defined but
11458 unused' warning.
11459
11460 * process.c (allocate_pty): Remove `unused var stb' and
11461 `cp might be used uninitialized' warnings.
11462
11463 * dispnew.c (mode_line_string): Remove unused var `f'.
11464
11465 * coding.c (find_safe_codings): Remove unused var `i'.
11466
11467 * bytecode.c (Fbyte_code): Remove `unused val' warning.
11468
11469 * buffer.c (Fkill_buffer): Remove unused var `list'.
11470
11471 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
11472
93421a1f
JD
114732003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11474
11475 * frame.c (make_frame): Condition want_fullscreen with
11476 HAVE_WINDOW_SYSTEM.
11477
c4b8aebc
JB
114782003-05-25 Juanma Barranquero <lektu@terra.es>
11479
11480 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
11481 (Fwindow_scroll_bars): Fix typo in docstring.
11482
0416870b
KS
114832003-05-24 Kim F. Storm <storm@cua.dk>
11484
11485 The following changes serve several purposes:
11486
11487 1) Swap the position of fringes and display margins in windows, i.e.
11488 the fringes are now displayed between the margins and the text area
11489 (by default).
11490
11491 2) Allow fringe and scroll bar parameters to be set per-buffer and
11492 per-window (like display margins). Such settings are now stored
11493 in window configurations, preserved when frames are resized, and
9018a88e 11494 copied when windows are split vertically or horizontally.
0416870b
KS
11495 Several bugs related to display margins have been fixed.
11496
11497 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 11498
0416870b
KS
11499 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
11500 rather than FRAME_WIDTH (FRAME_FONT (f)).
11501
11502 5) Introduce a consistent naming of variables, members and macros
11503 depending on whether their value is measured in pixels or in
11504 canonical columns/lines. Pixel dimensions are named *_width and
11505 *_height, while canonical columns/lines are named *_cols and
11506 *_lines. Pixel positions are named *_x and *_y, while column/line
11507 positions are named *_col and *_line.
11508
11509 6) Consolidate more of the X, W32, and MAC gui code by moving
11510 common data into struct frame, and generalize it for the non-gui
11511 case by using suitable defaults.
11512
11513 7) Cleanup and consolidate the macros controlling frame and window
11514 layout into frame.h and window.h, and generalize the use of the
11515 various window_box_* functions (enhanced to handle the new fringe
11516 position and the per-window fringe and scroll bar settings).
11517
11518 * frame.h (struct frame): Rename members height to text_lines,
11519 width to text_cols, window_height to total_lines, window_width to
11520 total_cols, new_height to new_text_lines, new_width to
11521 new_text_cols. All uses changed.
11522 (struct frame): New members which consolidate common members of
11523 x_output, w32_output, and mac_output structures: left_pos,
11524 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
11525 win_gravity, size_hint_flags, border_width, internal_border_width,
11526 line_height, fringe_cols, left_fringe_width, right_fringe_width,
11527 want_fullscreen. All uses changed.
11528 (struct frame): New member column_width contaning the canonical
11529 column width, analogue to line_height. All uses changed.
11530 (struct frame): Rename members scroll_bar_pixel_width to
11531 config_scroll_bar_width, and scroll_bar_cols to
11532 config_scroll_bar_cols. All uses changed.
11533 (struct frame): New member scroll_bar_actual_width which
11534 consolidates and renames the vertical_scroll_bar_extra member of
11535 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 11536 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
11537 from x/w32/macterm.h files. All uses changed. Also change code
11538 which referred to f->output_data...->pixel_height.
cab27d04 11539 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 11540 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 11541 which referred to f->output_data...->pixel_width.
cab27d04 11542 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 11543 Also change code which referred to f->height.
cab27d04 11544 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
11545 Also change code which referred to f->width.
11546 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
11547 to update new_text_lines and new_text_cols members directly.
cab27d04 11548 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 11549 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 11550 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
11551 FRAME_SCROLL_BAR_COLS. All uses changed.
11552 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 11553 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
11554 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
11555 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
11556 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
11557 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
11558 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
11559 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
11560 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
11561 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
11562 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
11563 Unconditionally return line_height member (it now has proper value
11564 also for non-window frames).
11565 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
11566 return new column_width member (rather than the default font width).
11567 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 11568 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
11569 from x/w32/macterm.h files. Unconditionally return corresponding
11570 member of frame structure (they now have proper values also for
11571 non-window frames).
cab27d04 11572 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
11573 Calculate return value from left and right widths.
11574 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
11575 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
11576 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
11577 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
11578 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
11579 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
11580 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 11581 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11582 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 11583 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11584 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 11585 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11586 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 11587 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 11588 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 11589 consolidated from x/mac/w32term.h.
cab27d04 11590 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 11591 consolidated from x/mac/w32term.h.
cab27d04 11592 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 11593 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11594 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
11595 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
11596
11597 * window.h (struct window): Rename members left to left_col,
11598 top to top_line, height to total_lines, width to total_cols,
11599 left_margin_width to left_margin_cols, right_margin_width to
11600 right_margin_cols, orig_height to orig_total_lines, orig_top to
11601 orig_top_line. All uses changed.
11602 (struct window): New members left_fringe_width, right_fringe_width,
11603 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
11604 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
11605 New macros primarily used to simplify other macros.
11606 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
11607 referred to XINT (w->width).
11608 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
11609 referred to XINT (w->height).
11610 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
11611 referred to XINT (w->width) * canon_x_unit.
11612 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
11613 referred to XINT (w->height) * canon_y_unit.
11614 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
11615 referred to XINT (w->left).
cab27d04 11616 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
11617 all uses and code that referred to XINT (w->left) + XINT (w->width).
11618 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
11619 referred to XINT (w->top).
11620 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
11621 referred to XINT (w->top) + XINT (w->height).
11622 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
11623 referred to XINT (w->left) * canon_x_unit.
11624 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
11625 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
11626 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
11627 referred to XINT (w->top) * canon_y_unit.
11628 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
11629 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
11630 (WINDOW_LEFTMOST_P): New macro.
cab27d04 11631 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 11632 All uses changed.
cab27d04 11633 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 11634 All uses changed.
cab27d04 11635 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
11636 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
11637 Do not exclude left fringe width.
cab27d04 11638 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
11639 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
11640 Do not exclude fringe widths.
11641 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
11642 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
11643 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
11644 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
11645 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
11646 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
11647 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
11648 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
11649 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
11650 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
11651 New macros. Change code which referenced corresponding
11652 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
11653 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
11654 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
11655 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
11656 allow per-window scroll-bar settings.
11657 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
11658 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
11659 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
11660 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
11661 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
11662 FRAME_SCROLL_BAR_WIDTH.
11663 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 11664 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 11665 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 11666 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 11667 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 11668 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 11669 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
11670 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
11671 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11672 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
11673 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
11674 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 11675 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 11676 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
11677 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
11678 (window_from_coordinates): Update prototype.
11679 (Fset_window_buffer): Update EXFUN.
11680 (set_window_buffer): Update prototype.
9018a88e 11681
0416870b 11682 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 11683 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
11684 changed.
11685 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
11686 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
11687 internal_border_width is now set to 0 for non-window frames.
11688 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
11689 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
11690 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
11691 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
11692 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
11693 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11694 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
11695 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
11696 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 11697 Move to window.h and renamed [see window.h changes].
0416870b
KS
11698 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
11699 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
11700 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
11701 Use WINDOW_TOTAL_LINES.
0416870b
KS
11702 (frame_update_line_height): Remove prototype.
11703
11704 * buffer.h (struct buffer): Rename members measured in columns:
11705 left_margin_width to left_margin_cols, right_margin_width to
11706 right_margin_cols. All uses changed.
11707 New members left_fringe_width, right_fringe_width,
11708 fringes_outside_margins for per-buffer fringe settings.
11709 New members scroll_bar_width and vertical_scroll_bar_type for
11710 per-buffer scroll bar settings.
11711
11712 * buffer.c (init_buffer_once): Set buffer_defaults and
11713 buffer_local_flags for new buffer-local variables
11714 left_fringe_width, right_fringe_width, fringes_outside_margins,
11715 scroll_bar_width, and vertical_scroll_bar_type.
11716 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
11717 default-* variables for them.
11718
11719 * dispnew.c: Make (many) trivial substitutions for renamed and
11720 new macros in dispextern.h, frame.h and window.h.
11721 (mode_line_string): No need to adjust width for mode lines, as it
11722 is already adjusted by the caller.
11723 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 11724
0416870b
KS
11725 * frame.c: Make (many) trivial substitutions for renamed and
11726 new macros in dispextern.h, frame.h and window.h.
11727 (make_frame): Initialize left_fringe_width, right_fringe_width,
11728 fringe_cols, scroll_bar_actual_width, border_width,
11729 internal_border_width, column_width, line_height, x_pixels_diff,
11730 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
11731 members with values suitable for a non-window frames.
11732
11733 * gtkutil.c: Make (many) trivial substitutions for renamed and
11734 new macros in dispextern.h, frame.h and window.h.
9018a88e 11735
0416870b
KS
11736 * indent.c: Make (few) trivial substitutions for renamed and
11737 new macros in dispextern.h, frame.h and window.h.
11738
11739 * keyboard.c: Make (many) trivial substitutions for renamed and
11740 new macros in dispextern.h, frame.h and window.h.
11741 (make_lispy_event): Use window positions returned from
11742 window_from_coordinates when constructing the lisp event for
11743 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
11744 (incorrect) values locally.
11745 (make_lispy_movement): Use window positions returned from
11746 window_from_coordinates when constructing the lisp event, rather
11747 than calculating (incorrect) values locally.
11748
11749 * scroll.c: Make (some) trivial substitutions for renamed and
11750 new macros in dispextern.h, frame.h and window.h.
11751
11752 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
11753 scroll-bars.
11754
11755 * sysdep.c: Make (few) trivial substitutions for renamed and
11756 new macros in dispextern.h, frame.h and window.h.
11757
11758 * term.c: Make (some) trivial substitutions for renamed and
11759 new macros in dispextern.h, frame.h and window.h.
11760
11761 * widget.c: Make (few) trivial substitutions for renamed and
11762 new macros in dispextern.h, frame.h and window.h.
11763
11764 * window.c: Make (many) trivial substitutions for renamed and
11765 new macros in dispextern.h, frame.h and window.h.
11766 (make_window): Initialize new members
11767 left_margin_cols, right_margin_cols, left_fringe_width,
11768 right_fringe_width, fringes_outside_margins, scroll_bar_width,
11769 and vertical_scroll_bar_type.
cab27d04 11770 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 11771 and per-window fringes and scroll-bars.
0416870b 11772 Fix bug related to incorrectly adjusting coordinates by
9018a88e 11773 frame's internal_border_width (the effect normally negible since
0416870b
KS
11774 the internal_border_width is typically 0 or 1 pixel, but very
11775 noticeable for an internal_border_width of e.g. 25 pixels).
11776 Upon successful return (other than ON_NOTHING), the coordinates
11777 are now always properly converted to window relative for the
11778 given display element.
11779 (window_from_coordinates): Add new parameters wx and wy to
11780 return the window relative x and y position in the returned
11781 window and part. A null arg means, don't return the position.
11782 All callers changed.
11783 (adjust_window_margins): New function which may reduce the width
11784 of the display margins if a window's text area is too small after
11785 resizing or splitting windows.
11786 (size_window): Fix bug that did not account for display margin
11787 widths when checking the minimum width of a window; use
11788 adjust_window_margins.
11789 (set_window_buffer): Call Fset_window_fringes and
11790 Fset_window_scroll_bars to setup per-window elements.
11791 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
11792 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
11793 (e.g. after splitting a window or resizing the frame).
11794 All callers changed.
0416870b
KS
11795 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
11796 (Fsplit_window): Duplicate original window's display margin,
11797 fringe, and scroll-bar settings; then call Fset_window_buffer with
11798 KEEP_MARGINS non-nil. This fixes a bug which caused a split
11799 window to only preserve the display margins in one of the windows.
c4b8aebc 11800 When splitting horizontally, call adjust_window_margins on both
0416870b 11801 windows to ensure that the text area of the new windows is non too
f9711de4 11802 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
11803 width of the split window was less than the width of the display
11804 margins.
cab27d04 11805 (window_box_text_cols): Rename from window_internal_width.
9018a88e 11806 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
11807 Fix bug that caused vertical separator to be subtracted also on
11808 window frames. Fix another bug that did not reduce the returned
11809 value by the columns used for display margins.
11810 (window_scroll_line_based): Fix bug related to scrolling too much
11811 when display margins are present (implicitly fixed by the fix to
11812 window_box_text_cols).
11813 (scroll_left, scroll_right): Fix bug related to scrolling too far
11814 by default when display margins are present (implicitly fixed by
11815 the fix to window_box_text_cols).
11816 (struct saved_window): Rename members left to left_col, top to
11817 top_line, width to total_cols, height to total_lines, orig_top to
11818 orig_top_line, orig_height to orig_total_lines. All uses changed.
11819 New members left_margin_cols, right_margin_cols,
11820 left_fringe_width, right_fringe_width, fringes_outside_margins,
11821 scroll_bar_width, and vertical_scroll_bar_type for saving
11822 per-window display elements.
11823 (Fset_window_configuration): Restore display margins, fringes,
11824 and scroll bar settings. This fixes a bug which caused display
11825 margins to be discarded when saving and restoring a window
11826 configuration.
11827 (save_window_save): Save display margins, fringes, and scroll bar
11828 settings. This fixes a bug which caused display margins to be
11829 discarded when saving and restoring a window configuration.
11830 (Fset_window_margins): Do nothing if display margins are not
11831 really changed. Otherwise, call adjust_window_margins to ensure
11832 the text area doesn't get too narrow. This fixes a bug which
f9711de4 11833 could cause Emacs to trap if setting display margins wider than
0416870b
KS
11834 the width of the window.
11835 (Fset_window_fringes): New defun to allow user to specifically set
11836 this window's fringe widths and position vs. display margins.
cab27d04 11837 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
11838 (Fset_window_scroll_bars): New defun to allow user to specifically
11839 set this window's scroll bar width and position.
11840 (Fwindow_scroll_bars): New defun to return window's actual scroll
11841 bar settings.
11842 (compare_window_configurations): Also compare display margins,
11843 fringes, and scroll bar settings.
11844 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
11845
11846 * xdisp.c: Make (many) trivial substitutions for renamed and
11847 new macros in dispextern.h, frame.h and window.h.
11848 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 11849 and new fringe vs. display margin position. Note that returned
0416870b
KS
11850 value is no longer guaranteed to be a whole multiple of the frame
11851 column width, since per-window fringes may now be any width.
11852 (window_box_left_offset): New function like window_box_left, but
11853 value is relative to left border of window (rather than frame).
11854 (window_box_right_offset): New function like window_box_right,
11855 but value is relative to left border of window.
11856 (window_box_left): Adapt to per-window fringes and scroll bars,
11857 and new fringe vs. display margin position. Simplify by using
11858 WINDOW_LEFT_EDGE_X and window_box_left_offset.
11859 (window_box): Allow null args for unnecessary return values;
11860 change/simplify relevant callers.
11861 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
11862 and new fringe vs. display margin position.
11863 Use window_box_left_offset and window_box_right_offset
0416870b 11864 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
11865 scroll bars, and new fringe vs. display margin position.
11866 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
11867 (draw_fringe_bitmap): Rework to handle per-window fringes and new
11868 fringe vs. display margin position.
11869 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
11870 (redisplay_window): Adapt to per-window scroll bars.
11871 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
11872 bars, and new fringe vs. display margin position.
11873 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 11874 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
11875 bars, and new fringe vs. display margin position. Fix bug which
11876 increased total width of full_width rows by width of scroll bars
11877 although window's total width already includes that.
11878 (x_fix_overlapping_area): Simplify using window_box_left_offset.
11879 (expose_area): Simplify using window_box_left_offset.
11880 (x_draw_vertical_border): Handle per-window scroll bar settings,
11881 mixing windows with left, right and no scroll bars.
11882
11883 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
11884 where it's used in x_list_fonts (for clarity).
11885 (frame_update_line_height): Remove unused function; functionality
11886 is now done directly when setting the default font in x_set_font.
11887
11888 * xfns.c: Make (many) trivial substitutions for renamed and
11889 new macros in dispextern.h, frame.h and window.h.
11890
11891 * xmenu.c: Make (some) trivial substitutions for renamed and
11892 new macros in dispextern.h, frame.h and window.h.
11893
11894 * xterm.h (struct x_output): Move members left_pos, top_pos,
11895 border_width, pixel_height, pixel_width, line_height,
11896 internal_border_width, vertical_scroll_bar_extra,
11897 left_fringe_width, right_fringe_width, fringe_cols,
11898 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11899 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11900 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11901 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11902 (PIXEL_WIDTH, PIXEL_HEIGHT)
11903 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11904 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11905 frame.h and renamed [see frame.h changes].
11906 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11907 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11908 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11909 and renamed [see frame.h changes].
9018a88e 11910
0416870b
KS
11911 * xterm.c: Make (several) trivial substitutions for renamed and
11912 new macros in dispextern.h, frame.h and window.h.
cab27d04 11913 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11914 (scroll_run): Adapt to new fringe position.
11915 (glyph_rect): Use window coordinates returned from
11916 window_from_coordinates rather than frame_to_window_pixel_xy.
11917 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11918 scroll-bars.
11919 (handle_one_xevent): Simplify a USE_GTK conditional.
11920 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11921 (fringes are now inside margins, i.e. always in the clipping area).
11922 All callers changed.
11923 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11924 directly, then call compute_fringe_widths. Don't call
11925 frame_update_line_height.
11926
11927 * w32term.h (struct w32_output): Move members left_pos, top_pos,
11928 border_width, pixel_height, pixel_width, line_height,
11929 internal_border_width, vertical_scroll_bar_extra,
11930 left_fringe_width, right_fringe_width, fringe_cols,
11931 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11932 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11933 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11934 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11935 (PIXEL_WIDTH, PIXEL_HEIGHT)
11936 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11937 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11938 frame.h and renamed [see frame.h changes].
11939 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11940 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11941 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11942 and renamed [see frame.h changes].
9018a88e 11943
0416870b
KS
11944 * w32term.c: Make (several) trivial substitutions for renamed and
11945 new macros in dispextern.h, frame.h and window.h.
cab27d04 11946 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11947 (glyph_rect): Use window coordinates returned from
11948 window_from_coordinates rather than frame_to_window_pixel_xy.
11949 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11950 scroll-bars.
11951 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
11952 (fringes are now inside margins, i.e. always in the clipping area).
11953 All callers changed.
11954 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11955 directly, then call compute_fringe_widths. Don't call
11956 frame_update_line_height.
11957
11958 * w32console.c: Make (few) trivial substitutions for renamed and
11959 new macros in dispextern.h, frame.h and window.h.
11960
11961 * w32fns.c: Make (many) trivial substitutions for renamed and
11962 new macros in dispextern.h, frame.h and window.h.
11963
11964 * w32menu.c: Make (few) trivial substitutions for renamed and
11965 new macros in dispextern.h, frame.h and window.h.
11966
11967 * macterm.h (struct mac_output): Move members left_pos, top_pos,
11968 border_width, pixel_height, pixel_width, line_height,
11969 internal_border_width, vertical_scroll_bar_extra,
11970 left_fringe_width, right_fringe_width, fringe_cols,
11971 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11972 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
11973 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11974 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11975 (PIXEL_WIDTH, PIXEL_HEIGHT)
11976 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11977 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11978 frame.h and renamed [see frame.h changes].
11979 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11980 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11981 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11982 and renamed [see frame.h changes].
9018a88e 11983
0416870b
KS
11984 * macterm.c: Make (several) trivial substitutions for renamed and
11985 new macros in dispextern.h, frame.h and window.h.
cab27d04 11986 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11987 (glyph_rect): Use window coordinates returned from
11988 window_from_coordinates rather than frame_to_window_pixel_xy.
11989 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11990 scroll-bars.
11991 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11992 (fringes are now inside margins, i.e. always in the clipping area).
11993 All callers changed.
11994 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11995 directly, then call compute_fringe_widths. Don't call
11996 frame_update_line_height.
11997
11998 * macfns.c: Make (several) trivial substitutions for renamed and
11999 new macros in dispextern.h, frame.h and window.h.
9018a88e 12000 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
12001
12002 * macmenu.c: Make (few) trivial substitutions for renamed and
12003 new macros in dispextern.h, frame.h and window.h.
12004
12005 * msdos.h (struct x_output): Remove members left_pos, top_pos,
12006 and line_height, and use corresponding new members in struct
12007 frame. All uses changed.
12008 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
12009 superseeded by corresponding macros in frame.h.
12010
12011 * msdos.c: Make (several) trivial substitutions for renamed and
12012 new macros in dispextern.h, frame.h and window.h.
12013 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 12014 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
12015 (internal_terminal_init): No need to initialize line_height here;
12016 it now defaults to 1.
12017
9018a88e
SM
120182003-05-24 Stefan Monnier <monnier@cs.yale.edu>
12019
12020 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
12021 dropping `down' events.
12022
016bd3c0
AS
120232003-05-24 Andreas Schwab <schwab@suse.de>
12024
12025 * coding.c (find_safe_codings): Fix last change.
12026
4dacadcc
TTN
120272003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
12028
12029 * xfns.c (x_window): Fix typo from 2003-05-21 change.
12030
319830ce
SM
120312003-05-23 Stefan Monnier <monnier@cs.yale.edu>
12032
9018a88e
SM
12033 * xdisp.c (display_mode_element): Increase max depth.
12034 Simplify the error handling code. Use a different error string
12035 for the case where we hit the depth limit.
12036
319830ce
SM
12037 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
12038
12039 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
12040
120412003-05-21 Stefan Monnier <monnier@cs.yale.edu>
12042
12043 * intervals.c (get_local_map): Don't get char-property of previous
12044 point any more: get_pos_property already does it and better.
12045
c67de8ba
DL
120462003-05-21 Dave Love <fx@gnu.org>
12047
12048 [Merged from unicode branch.]
12049
12050 * xfns.c (x_window, x_window): Use use_xim.
12051
12052 * xterm.c (use_xim): Initialize.
12053 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12054 (x_term_init): Maybe set use_xim.
12055
12056 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12057
edd3ff1d
JR
120582003-05-21 Jason Rumney <jasonr@gnu.org>
12059
12060 * unexw32.c (_start): Remove _fmode initialization.
12061
12062 * emacs.c (main) [WINDOWSNT]: Move it here.
12063
463f55ee
DL
120642003-05-20 Dave Love <fx@gnu.org>
12065
12066 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
12067
af253914
RS
120682003-05-19 Richard M. Stallman <rms@gnu.org>
12069
12070 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
12071 as value for QCfont attribute.
12072 (realize_default_face): lface should already exist; crash if not.
12073 Specify 0 for FORCE_P when calling set_lface_from_font_name.
12074
12075 * frame.c (Fignore_event): Doc fix.
12076
1d211019
KH
120772003-05-19 Kenichi Handa <handa@m17n.org>
12078
12079 * coding.c (decode_coding_string): Handle post-read-conversion
12080 even if the coding doesn't require decoding.
12081
4dd68254
RS
120822003-05-18 Richard M. Stallman <rms@gnu.org>
12083
12084 * callproc.c (Fcall_process_region): Doc fix.
12085
14d87dc9
SM
120862003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12087
deca5d96
SM
12088 * lread.c (Fload): Print a message if package is obsolete.
12089
14d87dc9
SM
12090 * window.c (Fselect_window): Add optional `norecord' arg.
12091 (select_window_1): Fold into Fselect_window.
12092 (select_window_norecord): New function.
12093 (temp_output_buffer_show): Use it. Preserve current buffer.
12094
12095 * window.h (Fselect_window): Update declaration.
12096
12097 * window.c (delete_window, Fother_window, Fset_window_configuration):
12098 * minibuf.c (read_minibuf):
12099 * macterm.c (x_new_focus_frame):
12100 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
12101 * callint.c (Fcall_interactively):
12102 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
12103
12104 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
12105
78f52183
DK
121062003-05-17 David Kastrup <dak@gnu.org>
12107
12108 * process.c (read_process_output): Back out change from 2003-03-09.
12109
14d87dc9
SM
121102003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12111
12112 * editfns.c (get_pos_property): Don't assume that `object' = nil.
12113
12114 * textprop.c (text_property_stickiness): New arg `buffer'.
12115
12116 * intervals.h (text_property_stickiness): New arg `buffer'.
12117 (get_pos_property): Declare.
12118
12119 * intervals.c (get_local_map): Use get_pos_property, to obey
12120 stickiness and empty overlays.
12121 (create_root_interval, graft_intervals_into_buffer): Use BEG.
12122 (merge_properties, intervals_equal, merge_properties_sticky):
12123 Use XCAR, XCDR.
12124 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
12125
1fd1cc2f
RS
121262003-05-17 Richard M. Stallman <rms@gnu.org>
12127
4f9f637a
RS
12128 * minibuf.c (read_minibuf): If buffer is empty, record the default
12129 in the history.
12130 (Fminibuffer_complete_word): When deleting the overlap, take account
12131 of its real position.
12132
12133 * fns.c (map_char_table): Fix previous change.
12134
1fd1cc2f
RS
12135 * syntax.c (find_defun_start):
12136 When open_paren_in_column_0_is_defun_start,
12137 return beginning of buffer.
12138
12139 * lisp.h (map_char_table): Declare added arg.
12140
12141 * fns.c (map_char_table): New arg TABLE gets the master table.
12142 All calls changed.
12143 Process default and inheritance, resorting to Faref if necessary.
12144
12145 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12146 (Faccessible_keymaps): Pass new arg to map_char_table.
12147
12148 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
12149
12150 * casetab.c (set_case_table): Pass new arg to map_char_table.
12151
12152 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
12153
12154 * lisp.h (specbinding_func): New typedef.
12155 (struct specbinding): Use specbinding_func, to put the `volatile'
12156 in the right place.
12157
12158 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
12159 to avoid GCC warning.
14d87dc9 12160
b6189c3b 121612003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 12162
14d87dc9 12163 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 12164
35fb885d
SM
121652003-05-15 Stefan Monnier <monnier@cs.yale.edu>
12166
12167 * keyboard.c (apply_modifiers): Don't fill the other cache.
12168
9a274fbd
SM
121692003-05-14 Stefan Monnier <monnier@cs.yale.edu>
12170
c55b5fad
SM
12171 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
12172
9a274fbd
SM
12173 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
12174 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
12175 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
12176 (Fset_window_configuration, Fcurrent_window_configuration)
12177 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
12178 (Fpos_visible_in_window_p, mark_window_cursors_off)
12179 (window_internal_height, window_internal_width, Frecenter)
12180 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
12181 (replace_buffer_in_all_windows, init_window_once, init_window)
12182 (syms_of_window, keys_of_window): Move from lisp.h.
12183 * lisp.h: Move window.c declarations to window.h.
12184
12185 * bytecode.c: Include window.h.
12186 * emacs.c: Include window.h.
12187
14d87dc9 12188 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
12189 (keyremap): Add `parent' field.
12190 (keyremap_step): Use it. Remove `parent' argument.
12191 (read_key_sequence): Setup and use the new `parent' field.
12192
fd93e331
SM
121932003-05-11 Stefan Monnier <monnier@cs.yale.edu>
12194
12195 * keyboard.c (adjust_point_for_property): Ensure termination.
12196
1c4001a1
SM
121972003-05-10 Stefan Monnier <monnier@cs.yale.edu>
12198
12199 * keyboard.c (follow_key): Remove dead variable `did_meta'.
12200 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
12201 duplicated handling of function-key-map and key-translation-map
12202 in read_key_sequence.
12203 (read_key_sequence): Use them.
12204
12205 * keyboard.c (adjust_point_for_property): Try harder to move point
12206 to the non-sticky end of an invisible property.
12207
12208 * xdisp.c (single_display_prop_intangible_p): Make `space' display
12209 property intangible as well.
12210
780379b1
AS
122112003-05-10 Andreas Schwab <schwab@suse.de>
12212
12213 * xmenu.c (single_menu_item): Change last parameter to void* to
12214 avoid warning.
12215
ca2de342
RS
122162003-05-09 Richard M. Stallman <rms@gnu.org>
12217
12218 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
12219 Bind Qinhibit_modification_hooks to t so there will be no GC.
12220 Rename local `tem' to `save_deactivate_mark'.
12221
12222 * eval.c (specpdl_ptr): Declare volatile.
12223 (unbind_to): Copy the whole binding and decrement specpdl_ptr
12224 before doing the work of unbinding it.
12225
12226 * lisp.h (struct specbinding): Declare elements volatile.
12227 (specpdl_ptr): Declare volatile.
12228
12229 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
12230
12231 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
12232 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
12233
347003be
DL
122342003-05-08 Dave Love <fx@gnu.org>
12235
12236 * coding.c (Vlast_coding_system_used): Doc fix.
12237
5adcec23
JR
122382003-05-07 Jason Rumney <jasonr@gnu.org>
12239
12240 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
12241 when system does not support them.
12242
5fe3b8a4
SM
122432003-05-05 Stefan Monnier <monnier@cs.yale.edu>
12244
12245 * fileio.c (Qwrite_region_annotate_functions): New var.
12246 (build_annotations): Use it to process the global part of the hook.
12247 (syms_of_fileio): Init and staticpro it.
12248
12249 * keyboard.c (safe_run_hooks_error): Display a message instead of
12250 silently ignoring the error.
12251
122522003-05-03 Stefan Monnier <monnier@cs.yale.edu>
12253
12254 * keyboard.c (input_available_signal): Mark static.
12255 (menu_bar_items): Use map_keymap.
12256 (menu_bar_one_keymap): Remove.
12257 (menu_bar_item): Adjust arglist (for use in map_keymap).
12258 Properly hide a second binding when not both are keymaps.
12259
12260 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
12261 (single_keymap_panes): Use it and map_keymap.
12262 (single_menu_item): Use skp as well.
12263
12264 * keymap.h (map_keymap_function_t): New type.
12265 (map_keymap): Declare.
12266
12267 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
12268 (map_keymap_call, Fmap_keymap): New functions.
12269 (syms_of_keymap): Defsubr map-keymap.
12270
4b1b4443
JD
122712003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12272
12273 * gtkutil.c (create_dialog, make_widget_for_menu_item)
12274 (make_menu_item, create_menus, xg_update_menu_item): Don't call
12275 ..._with_mnemonic functions for menu items.
12276
1f816871
KH
122772003-05-01 Kenichi Handa <handa@m17n.org>
12278
12279 * coding.c (coding_system_accept_latin_extra_p): Delete this
12280 function.
12281 (find_safe_codings): Pay attention to
12282 the property tranlsation-table-for-encode of each codings.
12283 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
12284
5ed6ba5b
SM
122852003-05-01 Stefan Monnier <monnier@cs.yale.edu>
12286
12287 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
12288
32c06229
SM
122892003-04-30 Stefan Monnier <monnier@cs.yale.edu>
12290
12291 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
12292
12293 * lisp.h (CHECK): Wrap args in parenthesis.
12294 (specbind): Fix doc: symbol = Qnil is not supported any more.
12295
12296 * bytecode.c (Fbyte_code) <unwind-protect>:
12297 Use Fprogn rather than 0 and Qnil.
12298
12299 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
12300 `double', and `triple' modifiers as well.
12301
ed3c3314
RS
123022003-04-30 Richard M. Stallman <rms@gnu.org>
12303
12304 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
12305
12306 * alloc.c (abort_on_gc): New variable.
12307 (Fgarbage_collect): Abort if abort_on_gc is set.
12308
12309 * lisp.h (abort_on_gc): Add decl.
12310
12311 * eval.c (Fsignal): Clear abort_on_gc.
12312
12313 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 12314 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
12315
12316 * xdisp.c (move_it_vertically_backward): Do the final big else
12317 even if nlines is 0.
12318
12319 * xdisp.c (redisplay_internal): Finish the per-frame loop
12320 even if redisplay is suspended by input.
12321
0b325c12
AC
123222003-04-24 Andrew Choi <akochoi@shaw.ca>
12323
12324 * macterm.c (x_list_fonts): Return all fonts that match if
12325 maxnames = -1.
12326
4e837cd0
KH
123272003-04-25 Kenichi Handa <handa@m17n.org>
12328
12329 * syntax.c (skip_chars): Fix previous change.
12330
9af7511a
KH
123312003-04-24 Kenichi Handa <handa@m17n.org>
12332
12333 * syntax.c (skip_chars): Make the code faster by using the common
12334 technique of *p, *stop, and *endp.
12335
e3b2c21f
JD
123362003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12337
12338 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 12339 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
12340 being updated.
12341
32c06229
SM
123422003-04-19 Stefan Monnier <monnier@cs.yale.edu>
12343
12344 * eval.c (Fapply): Undo last change and add a comment about why.
12345
c6464167
MB
123462003-04-18 Miles Bader <miles@gnu.org>
12347
12348 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
12349 pickier PARSE_MULTIBYTE_SEQ.
12350
e509f168
SM
123512003-04-17 Stefan Monnier <monnier@cs.yale.edu>
12352
12353 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
12354 Use XCDR, XCAR, CONSP.
12355 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
12356 (Fapply): Remove unnecessary GCPRO.
12357
12358 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
12359
12360 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
12361
12362 * buffer.h: Don't hardcode BEG==1.
12363
12364 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
12365
5ceea398
RS
123662003-04-16 Richard M. Stallman <rms@gnu.org>
12367
12368 * xdisp.c (try_window, try_window_reusing_current_matrix):
12369 When at end of window, set window_end_pos to Z-ZV.
12370
12371 * buffer.c (Foverlay_recenter): Doc fix.
12372
e509f168
SM
123732003-04-14 Stefan Monnier <monnier@cs.yale.edu>
12374
12375 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
12376
d243e605
AC
123772003-04-14 Andrew Choi <akochoi@shaw.ca>
12378
12379 * macterm.c (mac_check_for_quit_char): Don't check more often than
12380 once a second.
12381
6901b111
SM
123822003-04-11 Stefan Monnier <monnier@cs.yale.edu>
12383
12384 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
12385 specially, so that they can't hide an implicit switch-frame event.
12386 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
12387 (head_table): Use switch-frame as event_kind for select-window.
12388 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
12389
12390 * editfns.c (Fformat): Lisp_Object/int mixup.
12391 (format2): Remove unused var numargs.
12392
e301806f 123932003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 12394
6901b111 12395 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
12396 (Qafter_insert_file_set_coding): New variable.
12397 (syms_of_fileio): Initialize and staticpro it. Delete declaration
12398 for after-insert-file-adjust-coding-function.
12399 (Finsert_file_contents): Call Qafter_insert_file_set_coding
12400 instead of Vafter_insert_file_adjust_coding_function.
12401
38914424
KH
124022003-04-11 Kenichi Handa <handa@m17n.org>
12403
12404 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
12405
12406 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
12407 string. Callers changed.
12408
124092003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 12410
6901b111 12411 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 12412 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
12413 (Finsert_file_contents):
12414 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
12415 decode-format.
12416
f979dc05
JD
124172003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12418
12419 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
12420 get GtkAdjustment as widget now is a GtkRange.
12421
12422 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
12423 GtkRange to avoid memory leak.
12424
f8c6b4c2 124252003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 12426
50ebc53d
KH
12427 * xfaces.c (Vface_font_rescale_alist): New variable.
12428 (struct font_name): New member rescale_ratio.
12429 (font_rescale_ratio): New function.
6901b111 12430 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
12431 (better_font_p): On comparing point sized, pay attention to
12432 recale_ratio member of fonts.
12433 (build_scalable_font_name): Reflect font->rescale_ratio in the
12434 font name.
6901b111 12435 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 12436
cb98871c
KH
12437 * lread.c (read1): Before calling index, check if the 2nd
12438 arguemnt is in ASCII range.
12439
4773b8ca
RS
124402003-04-08 Richard M. Stallman <rms@gnu.org>
12441
b0ada147
RS
12442 * fileio.c (Ffile_symlink_p): Doc fix.
12443
12444 * editfns.c (Fformat): Translate positions of text properties
12445 in the format string to apply them to the result.
12446
4773b8ca
RS
12447 * fileio.c (Finsert_file_contents): Doc fix.
12448 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12449
124502003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 12451
4773b8ca
RS
12452 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
12453
e8f25745 124542003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 12455
e8f25745
ST
12456 * mac.c (init_mac_osx_environment): Switch libexec and bin so
12457 that self-contained application finds libexec files.
12458
f8c6b4c2 124592003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 12460
6901b111
SM
12461 * coding.c (code_convert_region_unwind):
12462 Set Vlast_coding_system_used to the argument.
2310d84c
KH
12463 (code_convert_region): If post-read-conversion function changed
12464 the value of last-coding-sytem, keep the new value in
12465 coding->symbol so that it won't be overridden.
12466 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
12467 (coding_system_accept_latin_extra_p): New function.
12468 (find_safe_codings): Pay attention to characters registered in
12469 latin-extra-code-table.
2310d84c 12470
39c9a034
TTN
124712003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
12472
12473 * Makefile.in (md5.o): Add missing dependency info.
12474
eb67c5d6
RS
124752003-04-06 Richard M. Stallman <rms@gnu.org>
12476
12477 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
12478
12479 * marker.c (verify_bytepos): New function.
12480
12481 * intervals.c (set_intervals_multibyte_1): When becoming
12482 multibyte, adjust right and left child sizes to a whole set of
12483 characters. If an interval gets zero total-length, delete it.
12484 If an interval consists of just its children, delete one of them.
12485
12486 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
12487 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 12488
52eb0373 12489 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
12490 All calls deleted.
12491 (lisp_malloc): Do the work here directly.
12492
b1f81fc5
JB
124932003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
12494
12495 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
12496 char tables.
12497
124982003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
12499
12500 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
12501 destructively change "%S" to "%s".
12502
774666fb
MB
125032003-04-03 Miles Bader <miles@gnu.org>
12504
12505 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
12506 always set.
12507
19c37f01
DL
125082003-04-01 Dave Love <fx@gnu.org>
12509
12510 * xfns.c (xpm_lookup_color): Grok "opaque".
12511
2f4b24c3
AC
125122003-03-31 Andrew Choi <akochoi@shaw.ca>
12513
12514 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
12515 parent window ID.
12516
12517 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
12518
12519 * macterm.h (struct mac_output): Define x_pixels_diff and
12520 y_pixels_diff.
b1f81fc5 12521
9443fcf6
JB
125222003-03-31 Juanma Barranquero <lektu@terra.es>
12523
12524 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
12525 blockinput.h and files included from it.
12526
e072891b
KS
125272003-03-31 Kim F. Storm <storm@cua.dk>
12528
12529 The following changes consolidates the common code related to
12530 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
12531 files into frame.c.
9443fcf6 12532
e072891b
KS
12533 * frame.c: Include blockinput.h.
12534 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
12535 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
12536 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
12537 related vars here.
12538 (struct frame_parm_table, frame_parms): New table for describing
12539 frame parameters and their associated Q-variable.
12540 The order of the parameters corresponds to the sequence of the
12541 frame_parm_handlers table in redisplay_interface.
12542 (x_fullscreen_move, x_set_frame_parameters)
12543 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
12544 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
12545 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12546 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
12547 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
12548 Generic functions for processing of frame parameters.
12549 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
12550 (display_x_get_resource, x_get_resource_string): Functions for
12551 generic access to X resources.
12552 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12553 (x_default_parameter, Fx_parse_geometry): Functions for generic
12554 access to frame parameters.
6901b111
SM
12555 (x_figure_window_size): Generic calculation of frame size.
12556 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
12557 (syms_of_frame): Intern and staticpro frame parameter variables.
12558 Defvar_lisp Vx_resource_class and Vx_resource_name here.
12559 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 12560
e072891b
KS
12561 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
12562 parameter related vars defined in frame.c.
12563 (EMACS_CLASS): Define here.
12564 (enum FULLSCREEN_*): Define here.
12565 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
12566 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
12567 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
12568 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
12569 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
12570 (x_set_visibility, x_set_autoraise, x_set_autolower)
12571 (x_set_unsplittable, x_set_vertical_scroll_bars)
12572 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
12573 (x_figure_window_size): Add prototypes.
12574
12575 * dispextern.h (frame_parm_handler): New typedef.
12576 (struct redisplay_interface): New member frame_parm_handlers.
12577 (enum resource_types): Move declaration here.
12578 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12579 (x_default_parameter): Add prototypes.
12580
12581 * window.c: Remove extern decl for frame parameter vars.
12582 (change_window_heights): New generic function;
12583 replaces x_change_window_heights. All users changed.
12584
12585 * window.h (change_window_heights): Add prototype.
12586
12587 * xfaces.c: Remove extern decl for frame parameter vars.
12588
12589 * xterm.h (EMACS_CLASS): Remove. Use generic define.
12590 (struct w32_display_info): Fix type of xrdb member.
12591 (enum FULLSCREEN_*): Remove.
12592 Remove prototypes for generic functions (in frame.h).
12593
12594 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12595 parameters now defined in frame.h and frame.c.
f63fd14e 12596 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12597 (enum x_frame_parms): Remove (bogus, unused enum).
12598 (check_x_display_info): Make non-static (for frame.c).
12599 (struct x_frame_parm_table, x_frame_parms): Remove.
12600 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12601 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12602 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12603 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12604 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12605 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12606 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12607 Remove. Use generic functions instead.
12608 (enum resource_types): Remove.
12609 (x_set_scroll_bar_default_width): New global function (for frame.c).
12610 (Fx_create_frame): Depend on x_figure_window_size to add space for
12611 toolbar and setup size_hint_flags.
12612 (x_frame_parm_handlers): New table for redisplay_interface.
12613 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 12614
e072891b 12615 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 12616 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12617 (x_redisplay_interface): Add x_frame_parm_handlers member.
12618
12619 * w32gui.h (XrmDatabase): New (dummy) typedef.
12620
12621 * w32term.h (EMACS_CLASS): Remove. Use generic define.
12622 (struct w32_display_info): Fix type of xrdb member.
12623 (enum FULLSCREEN_*): Remove.
12624 (x_fullscreen_adjust): Remove prototype.
12625
12626 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12627 parameters now defined in frame.h and frame.c.
f63fd14e 12628 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12629 (enum x_frame_parms): Remove (bogus, unused enum).
12630 (check_x_display_info): Make non-static (for frame.c).
12631 (struct x_frame_parm_table, x_frame_parms): Remove.
12632 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12633 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12634 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12635 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12636 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12637 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12638 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12639 Remove. Use generic functions instead.
12640 (enum resource_types): Remove.
12641 (x_set_scroll_bar_default_width): New global function (for frame.c).
12642 (Fx_create_frame): Depend on x_figure_window_size to add space for
12643 toolbar and setup size_hint_flags.
12644 (w32_frame_parm_handlers): New table for redisplay_interface.
12645 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 12646
e072891b 12647 * w32term.c: Remove unnecessary extern declarations.
52eb0373 12648 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12649 (x_redisplay_interface): Add w32_frame_parm_handlers member.
12650
12651 * w32reg.c (x_get_string_resource): Use XrmDatabase.
12652
12653 * macgui.h (XrmDatabase): New (dummy) typedef.
12654
12655 * macterm.h (EMACS_CLASS): Remove.
12656 (struct mac_display_info): Add xrdb member.
12657 (struct mac_output): Add want_fullscreen member.
12658
12659 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12660 parameters now defined in frame.h and frame.c.
f63fd14e 12661 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12662 (check_x_display_info): Make non-static (for frame.c).
12663 (struct x_frame_parm_table, x_frame_parms): Remove.
12664 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12665 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12666 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12667 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12668 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12669 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12670 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12671 Remove. Use generic functions instead.
12672 (enum resource_types): Remove.
12673 (x_set_scroll_bar_default_width): New global function (for frame.c).
12674 (mac_frame_parm_handlers): New table for redisplay_interface.
12675 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 12676
e072891b
KS
12677 * macterm.c: Remove unnecessary extern declarations.
12678 (x_redisplay_interface): Add mac_frame_parm_handlers member.
12679
3e6a560b
KS
12680 * Makefile.in (frame.o): Add dependency on blockinput.h and files
12681 included from it (atimer.h and systime.h).
12682
7b7b454e
AS
126832003-03-30 Andreas Schwab <schwab@suse.de>
12684
12685 * xdisp.c (x_insert_glyphs): Fix swapped width and height
12686 parameters for shift_glyphs_for_insert.
12687
12688 * macterm.c (x_redisplay_interface): Add missing entry for
12689 draw_vertical_window_border.
12690
beb402de
KG
126912003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12692
12693 * fileio.c (Fexpand_file_name): In the no-handler case, after
12694 expanding, look again for a handler and invoke it. This is needed
12695 for filenames like "/foo/../user@host:/bar/../baz" -- the first
12696 expansion produces "/user@host:/bar/../baz" which needs to be
12697 expanded again for the finame result "/user@host:/baz".
12698
b676f356
JD
126992003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12700
12701 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
12702 of area to be redrawn for better performance.
12703
3c671a56
SM
127042003-03-28 Stefan Monnier <monnier@cs.yale.edu>
12705
12706 * xterm.c (take_vertical_position_into_account): Remove.
12707 (xt_action_hook): Call set_vertical_scroll_bar if needed.
12708 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
12709 (xm_scroll_callback, x_create_toolkit_scroll_bar)
12710 (x_set_toolkit_scroll_bar_thumb): Simplify.
12711 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
12712 (XTread_socket): Remove unused var.
12713 (x_make_frame_invisible): Replace goto with else.
12714
12715 * xdisp.c (set_vertical_scroll_bar): New fun.
12716 (redisplay_window): Use it.
12717
84f2e615
RS
127182003-03-26 Richard M. Stallman <rms@gnu.org>
12719
12720 * xdisp.c (update_tool_bar): Recompute tool bar if
12721 update_mode_lines is set. Set w->update_mode_line
12722 only if the tool bar contents actually change.
12723 (update_menu_bar): Undo previous change.
12724
70b6104c
JD
127252003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12726
5fd6f727
JD
12727 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
12728 (xg_frame_set_char_size): Calculate scroll bar width before frame
12729 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
12730 (xg_separator_p): Check for all documented separator types.
12731 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
12732 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
12733
70b6104c
JD
12734 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
12735 so tool bar gets updated.
12736
d9b36d19
SM
127372003-03-26 Stefan Monnier <monnier@cs.yale.edu>
12738
12739 * data.c (store_symval_forwarding): Re-instate part of the code
12740 that was deleted with too much enthusiasm.
12741
127422003-03-25 Stefan Monnier <monnier@cs.yale.edu>
12743
12744 * data.c (store_symval_forwarding): Delete special read-only
12745 hack for type == -1, since we now use ->constant instead.
12746 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
12747
12748 * buffer.c (overlays_in): Declare static.
12749 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
12750 `constant' field rather than the variable's `type' field.
12751
365fa1b3
AC
127522003-03-24 Andrew Choi <akochoi@shaw.ca>
12753
12754 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
12755
12756 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
12757
12758 * fns.c [MAC_OSX]: Do not redefine vector.
12759
12760 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
12761
12762 * macgui.h: Remove definition of No_Cursor.
12763
d9b36d19 12764 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
12765
12766 * xdisp.c: Define No_Cursor.
12767 (x_write_glyphs, notice_overwritten_cursor)
12768 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
12769 (note_mouse_highlight): Remove Mac-specific code.
12770 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 12771
c0bcce6f
JPW
127722003-03-24 John Paul Wallington <jpw@gnu.org>
12773
12774 * xdisp.c (redisplay_window): If mini window's buffer is not
12775 empty, then redisplay it like other windows.
12776
a526b96c
KS
127772003-03-23 Kim F. Storm <storm@cua.dk>
12778
12779 * w32term.c (w32_draw_window_cursor): Fix last change.
12780
37ab321e
KH
127812003-03-23 Kenichi Handa <handa@m17n.org>
12782
a526b96c
KS
12783 * alloc.c (make_string_from_bytes, make_specified_string):
12784 Add `const' for the arg CONTENTS.
37ab321e
KH
12785
12786 * lisp.h (make_string_from_bytes, make_specified_string):
12787 Prototypes adjusted.
12788
7863d625
JD
127892003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12790
a526b96c 12791 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 12792
7863d625
JD
12793 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
12794 (XG_SB_RANGE): New define.
12795
12796 * gtkutil.c (xg_fixed_handle_expose): New function.
12797 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
12798 expose events.
12799 (xg_update_scrollbar_pos): Take two more arguments, left and width
12800 of scroll bar including borders.
12801 Clear left and right part outside scroll bar separately as some
12802 themes have bars that are not an even number of pixels.
d9b36d19 12803 Don't set reallocate_redraws, don't call
7863d625
JD
12804 gdk_window_process_all_updates.
12805 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
12806 so no need to change it. Calculate size and value with XG_SB_RANGE.
12807
d9b36d19
SM
12808 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
12809 Pass left and width of scroll bar including borders to
7863d625
JD
12810 xg_update_scrollbar_pos.
12811
af0ad939
TTN
128122003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
12813
12814 * Makefile.in: Make sure space precedes end-of-line backslashes.
12815
b22139fd
KS
128162003-03-22 Kim F. Storm <storm@cua.dk>
12817
12818 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
12819 Add generic versions here. Remove system specific versions
12820 defined elsewhere.
12821
12822 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
12823 Add prototypes.
12824
6e6410cf
KS
12825 * xterm.h (STORE_NATIVE_RECT): New macro.
12826
5c9cc435
KS
128272003-03-21 Kim F. Storm <storm@cua.dk>
12828
00c64fab
SM
12829 * xdisp.c (get_glyph_string_clip_rect):
12830 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
12831
12832 * dispextern.h (struct redisplay_interface): Add active_p
12833 argument to draw_window_cursor member. All uses changed.
12834
acd37560
KS
128352003-03-21 Kim F. Storm <storm@cua.dk>
12836
12837 The following changes consolidate code related to writing and
12838 inserting glyphs, exposing frame, the tool bar, the mouse face,
12839 the output cursor, and help echo from xterm.c, w32term.c and
12840 macterm.c into xdisp.c. It also generalizes the use of the
12841 window_part enum instead of using numeric values throughout.
af0ad939 12842
acd37560
KS
12843 * xdisp.c: Consolidate gui-independent code here.
12844 Include keymap.h.
12845 (Qhelp_echo): Import.
12846 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
12847 (help_echo_string, help_echo_window, help_echo_object)
12848 (previous_help_echo_string, help_echo_pos): Declare here.
12849 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
12850 (estimate_mode_line_height): Define here. Handle windowing
12851 systems directly (without using estimate_mode_line_height_hook).
12852 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
12853 (update_window_cursor, update_cursor_in_window_tree)
12854 (fast_find_position, fast_find_string_pos)
12855 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
12856 (expose_area, expose_line, expose_overlaps, expose_window)
12857 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
12858 declared static as they are only used locally in xdisp.c.
12859 (draw_glyphs): Rename from x_draw_glyphs and make static.
12860 (tool_bar_item_info, notice_overwritten_cursor): Make static.
12861 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12862 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 12863 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
12864 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12865 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
12866 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
12867 (note_mouse_highlight, x_clear_window_mouse_face)
12868 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
12869 (x_intersect_rectangles): New generic functions for use by xdisp.c
12870 and GUI front-ends.
12871 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
12872 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
12873
12874 * dispextern.h (Display_Info): Generic typedef for *_display_info.
12875 (NativeRectangle): Generic typedef for rectangle type.
12876 (enum window_part): Move here from window.c.
12877 (struct redisplay_interface): New members flush_display_optional,
12878 define_frame_cursor, clear_frame_area, draw_window_cursor,
12879 draw_vertical_window_border, shift_glyphs_for_insert.
12880 Rename member clear_mouse_face to clear_window_mouse_face.
12881 (estimate_mode_line_height_hook): Remove hook.
12882 (auto_raise_tool_bar_buttons_p): Don't declare extern.
12883 (tool_bar_item_info): Remove prototype.
12884 (help_echo_string, help_echo_window, help_echo_object)
12885 (previous_help_echo_string, help_echo_pos)
12886 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
12887 (x_stretch_cursor_p, output_cursor): Declare extern.
12888 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
12889 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
12890 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12891 (display_and_set_cursor, set_output_cursor, x_cursor_to)
12892 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
12893 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12894 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
12895 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
12896 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
12897 Add prototypes.
12898 (mode_line_string, marginal_area_string): Fix prototypes.
12899
12900 * window.c (enum window_part): Move to dispextern.h.
12901 (coordinates_in_window): Use enum window_part member names
12902 instead of numbers to describe return value.
12903 (struct check_window_data): Change part member to window_part.
12904 (check_window_containing): Return window_part unaltered.
12905 (window_from_coordinates): Change part arg from int to enum
12906 window_part. Allow part arg to be null. All users changed.
12907
12908 * window.h (window_from_coordinates): Fix prototype.
12909
12910 * term.c (estimate_mode_line_height): Move to xdisp.c.
12911
12912 * keyboard.c (make_lispy_event): Use enum window_part.
12913
12914 * dispnew.c (mode_line_string, marginal_area_string): Use enum
12915 window_part instead of int in arg list. Users changed.
12916
12917 * xterm.h (No_Cursor): Declare as None for X.
12918 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 12919
acd37560
KS
12920 * xterm.c: Remove consolidated defines and code.
12921 (BETWEEN): Remove unused macro.
12922 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
12923 (x_define_frame_cursor, x_clear_frame_area)
12924 (x_draw_window_cursor): New X-specific functions for RIF.
12925 (x_redisplay_interface): Add new members.
12926
12927 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
12928
12929 * w32term.h (struct w32_output): Remove cross_cursor member.
12930
12931 * w32term.c: Remove consolidated defines and code.
12932 (BETWEEN): Remove unused macro.
12933 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
12934 (w32_define_frame_cursor, w32_clear_frame_area)
12935 (w32_draw_window_cursor): New W32-specific functions for RIF.
12936 (w32_redisplay_interface): Add new members.
12937
a64387ee 12938 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
12939 (XRectangle): Add X compatible rectangle type.
12940 (NativeRectangle): Declare as RECT for W32.
12941 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12942
12943 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
12944
12945 * w32console.c: Remove consolidated defines and code.
af0ad939 12946
acd37560
KS
12947 * msdos.h (Display_Info): Add generic typedef.
12948
12949 * msdos.c: Remove consolidated defines and code.
12950 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
12951
12952 * macterm.h (struct mac_output): Replace member cross_cursor by
12953 hand_cursor.
12954 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
12955
12956 * macterm.c: Remove consolidated defines and code.
12957 (BETWEEN): Remove unused macro.
12958 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
12959 (mac_define_frame_cursor, mac_clear_frame_area)
12960 (mac_draw_window_cursor): New Mac-specific functions for RIF.
12961 (x_redisplay_interface): Add new members.
12962
12963 * macgui.h (No_Cursor): Define as 0 for Mac.
12964 (XRectangle): Add X compatible rectangle type.
12965 (NativeRectangle): Declare as Rect for Mac.
12966 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12967
204ccab1
KS
12968 * macfns.c (x_set_mouse_color): Setup hand_cursor.
12969 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 12970
9443fcf6 12971 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
12972 included from it. Add dependency on keymap.h.
12973
12974 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
12975
8ba01a70 129762003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
12977
12978 * fileio.c (Fexpand_file_name): Fix previous change.
12979
8ba01a70 129802003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
12981
12982 * fileio.c (Ffile_name_directory): Reconstruct file name by
12983 make_specified_string.
12984 (Ffile_name_nondirectory, Ffile_name_as_directory)
12985 (Fdirectory_file_name, Fexpand_file_name)
12986 (Fsubstitute_in_file_name): Likewise.
12987 (Fread_file_name): Compare decoded homedir with DIR and
12988 DEFAULT_FILENAME.
12989
12990 * alloc.c (make_specified_string): If NCHARS is negative, count
12991 the number of characters.
12992
19536747
JD
129932003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12994
de38ae5a
JD
12995 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
12996 all widgets.
12997
19536747
JD
12998 * gtkutil.h: Removed xg_ignore_next_thumb.
12999
37ab321e 130002003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
13001
13002 * coding.c (Vchar_coding_system_table): Remove this variable.
13003 (Vcoding_system_safe_chars): New variable.
13004 (intersection): Remove this function.
13005 (find_safe_codings): Don't use Vchar_coding_system_table, but try
13006 all codings in SAFE_CODINGS.
00c64fab 13007 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
13008 find_safe_codings. Get generic coding systems from
13009 Vcoding_system_safe_chars.
13010 (Fdefine_coding_system_internal): New function.
13011 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
13012 Initialize and staticpro Vcoding_system_safe_chars.
13013
17097258
JD
130142003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13015
2a2071c3
JD
13016 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
13017 equal old values before updating.
13018
17097258
JD
13019 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
13020
13021 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
13022
130232003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13024
13025 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
13026 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
13027 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
13028 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
13029 (xg_create_scroll_bar): Pass bar to button event callback.
13030 (xg_find_top_left_in_fixed): New function.
13031 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
13032 whole scroll bar area. Get old position with
13033 xg_find_top_left_in_fixed, calculate and only clear needed areas.
13034 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
13035 dragging is in progress. Calculate whole as for Motif.
13036 Remove code that saved last values. Call gtk_range functions to
13037 set scroll bar sizes.
13038
13039 * gtkutil.h: Removed xg_ignore_next_thumb.
13040
8cb9dfbf
JB
130412003-03-17 Juanma Barranquero <lektu@terra.es>
13042
13043 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
13044 and files included from it.
13045
00c64fab
SM
130462003-03-18 Stefan Monnier <monnier@cs.yale.edu>
13047
13048 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
13049 multiple occurrences of the same keymap under different prefixes.
13050 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
13051
c45bb3b2
JR
130522003-03-16 Jason Rumney <jasonr@gnu.org>
13053
13054 * w32gui.h: Use HDC for Display.
13055
13056 * w32term.c (w32_encode_char): Prevent double-byte chars from
13057 crashing Emacs.
13058
13059 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
13060 as binary.
13061
2a6d0874
JB
130622003-03-16 Juanma Barranquero <lektu@terra.es>
13063
13064 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
13065
03eb5fab
KS
130662003-03-16 Kim F. Storm <storm@cua.dk>
13067
13068 The following changes consolidate some of the gui-independent
13069 parts of the processing and drawing of "glyph strings" from
13070 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 13071
03eb5fab
KS
13072 * dispextern.h (struct glyph): Reduce face_id member from 22 to
13073 21 bits (this reduces number of faces from 4M to 2M).
13074 Replace W32 specific w32_font_type member (2 bits) by generic
13075 font_type member (3 bits) for portability.
13076 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
13077 (enum draw_glyphs_face): Define here.
13078 (struct glyph_string): Define here. Merge W32 and X versions.
13079 (struct redisplay_interface): New members per_char_metric,
13080 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
13081 (VCENTER_BASELINE_OFFSET): Define here.
13082 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
13083 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
13084
13085 * xdisp.c: Consolidate gui-independent "glyph string" code here.
13086 (dump_glyph_string): Moved here.
13087 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
13088 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
13089 (fill_composite_glyph_string, fill_glyph_string)
13090 (fill_image_glyph_string, fill_stretch_glyph_string)
13091 (left_overwritten, left_overwriting, right_overwritten)
13092 (right_overwriting, get_char_face_and_encoding)
13093 (set_glyph_string_background_width, compute_overhangs_and_x)
13094 (append_glyph, append_composite_glyph, produce_image_glyph)
13095 (take_vertical_position_into_account, append_stretch_glyph)
13096 (produce_stretch_glyph): New generic functions (based on X version).
13097 Call platform specific functions through rif.
13098 (INIT_GLYPH_STRING): New macro, hides W32 details.
13099 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
13100 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
13101 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
13102 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
13103 (notice_overwritten_cursor):
13104 Generic functions exported to platform modules. Users changed.
13105
13106 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
13107 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
13108 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 13109 New macros for consolidated code.
2a6d0874 13110
03eb5fab
KS
13111 * xterm.c: Remove consolidated defines and code.
13112 (x_per_char_metric, x_encode_char)
13113 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
13114 (x_redisplay_interface): Add new members.
13115
13116 * w32gui.h (Display): Add dummy typedef for consolidation.
13117 (XChar2b): Define alias for wchar_t for consolidation.
13118 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13119
13120 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 13121 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
13122 New macros for consolidation.
13123
fad49844 13124 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
13125 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
13126 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
13127 (w32_per_char_metric): Change font_type arg to int for RIF.
13128 (w32_encode_char): Return int according to RIF requirements.
13129 (w32_compute_glyph_string_overhangs): Adapt to RIF.
13130 (w32_get_glyph_overhangs): New function for RIF. Uses generic
13131 x_get_glyph_overhangs.
13132 (w32_redisplay_interface): Add new members.
13133
13134 * macgui.h (XChar2b): Move typedef here for consolidation.
13135 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13136
13137 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
13138 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
13139 consolidation.
13140
13141 * macterm.c: Remove consolidated defines and code.
13142 (mac_per_char_metric): New function for RIF.
00c64fab 13143 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
13144 (mac_compute_glyph_string_overhangs): Adapt for RIF.
13145 (x_redisplay_interface): Add new members.
13146
00c64fab
SM
131472003-03-15 Stefan Monnier <monnier@cs.yale.edu>
13148
13149 * keymap.c (Vmenu_events): New var.
13150 (syms_of_keymap): Initialize it.
13151 (where_is_internal): Check more carefully what is a menu event.
13152
225c7a07
RS
131532003-03-14 Richard M. Stallman <rms@gnu.org>
13154
13155 * lread.c (read1): After #!, exit loop on eof.
13156
cea9be54
JD
131572003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13158
9ea0e54d
JD
13159 * gtkutil.h: Add declaration for xg_frame_cleared.
13160
0cb35f4e
JD
13161 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
13162
cea9be54
JD
13163 * gtkutil.c (struct xg_last_sb_pos): New structure.
13164 (handle_fixed_child): New function.
13165 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
13166 and force a redraw on them.
13167 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
13168 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
13169 so we can avoid unneeded redraws.
13170 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
13171 and force a redraw on the scroll bar.
13172 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
13173 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 13174 (xg_frame_cleared): New function.
cea9be54 13175
20b853f3
KH
131762003-03-13 Kenichi Handa <handa@m17n.org>
13177
13178 * coding.c (Fdetect_coding_region): Fix docstring.
13179 (Fdetect_coding_string): Fix docstring.
13180
7a555aff
AS
131812003-03-13 Andreas Schwab <schwab@suse.de>
13182
25cc0080
AS
13183 * gtkutil.c: Add prototype for create_menus.
13184
30225431
AS
13185 * data.c (long_to_cons): Fix type of top.
13186
13187 * xselect.c (selection_data_to_lisp_data): Use int instead of
13188 long for an integer of size 4.
13189
7a555aff 13190 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 13191 (xg_tool_bar_help_callback): Likewise.
7a555aff 13192
a3e4741f
AS
131932003-03-12 Andreas Schwab <schwab@suse.de>
13194
13195 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
13196
9668be7c
KS
131972003-03-12 Kim F. Storm <storm@cua.dk>
13198
03eb5fab 13199 The following changes consolidate the fringe handling from
9668be7c 13200 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 13201
9668be7c
KS
13202 * xdisp.c: Consolidate fringe handling code here.
13203 (left_bits, right_bits, continued_bits, continuation_bits)
13204 (ov_bits, zv_bits): Define fringe bitmaps.
13205 (fringe_bitmaps): New array holding fringe bitmaps.
13206 (draw_fringe_bitmap): Draw a specific bitmap; call display
13207 specific drawing routine via rif->draw_fringe_bitmap.
13208 (draw_row_fringe_bitmaps): Generic replacement for
13209 x_draw_row_fringe_bitmaps; all callers changed.
13210 (compute_fringe_widths): Generic replacement for
13211 x_compute_fringe_widths; all callers changed.
13212
13213 * dispextern.h (enum fringe_bitmap_type): Define here.
13214 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
13215 (fringe_bitmaps): Declare extern.
13216 (struct redisplay_interface): New member draw_fringe_bitmap.
13217 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
13218
13219 * xterm.c: Remove generic fringe code.
13220 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13221 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13222
13223 * w32term.c: Remove generic fringe code.
13224 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
13225 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 13226
9668be7c
KS
13227 * macterm.c: Remove generic fringe code.
13228 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13229 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13230
00a88f32
SM
132312003-03-11 Stefan Monnier <monnier@cs.yale.edu>
13232
13233 * print.c (Fprin1_to_string): Return unibyte string if possible.
13234
1d1de695
DK
132352003-03-09 David Kastrup <dak@gnu.org>
13236
13237 * process.c (read_process_output): We have allocated enough space
13238 for readmax and carryover, so actually use the alloted space.
13239
257f40f2
JD
132402003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13241
13242 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
13243 toolkit scrollbar click.
13244
13245 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
13246 for USE_GTK.
13247 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
13248 also.
1d1c7e75 13249 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 13250 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 13251
78819ebb 13252 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
13253
13254 * gtkutil.c (xg_get_scroll_id_for_window): New function.
13255 (xg_tool_bar_item_expose_callback): New function.
13256 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
13257 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
13258 on the tool bar widget.
13259 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
13260 to expose on the tool bar item widgets.
13261
15213141
JD
132622003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13263
26b74a0b 13264 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 13265 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
13266 deleted from the image cache).
13267
15213141
JD
13268 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
13269 the event isn't for a frame (i.e. for dialogs).
13270
20b853f3 132712003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
13272
13273 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
13274 composition components reaches the limit, terminate composing.
13275 (COMPOSITION_OK): New macro.
00a88f32 13276 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
13277 composition is found.
13278 (coding_restore_composition): Adjust the number of composition
13279 components if it is not sane.
13280
c9029fe5
JB
132812003-03-06 Juanma Barranquero <lektu@terra.es>
13282
13283 * w32term.h (struct w32_display_info): Add xrdb member to support
13284 passing resources via -xrm on Windows.
13285
13286 * w32term.c (w32_make_rdb): New function.
13287 (w32_term_init): Use it to initialize xrdb member of w32_display_info
13288 struct. Delete leftover code.
13289
13290 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
13291 for resources passed on the command line.
13292
13293 * w32reg.c (w32_get_rdb_resource): New function.
13294 (x_get_string_resource): Use it, so resources passed with -xrm
13295 supercede the ones in the registry.
13296
9d00001f
JD
132972003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13298
13299 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
13300 instead of x_top_window_to_frame.
13301
ca2417b9
JD
133022003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13303
13304 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
13305 when restarting Emacs.
13306
5b20caf0
RS
133072003-03-03 Richard M. Stallman <rms@gnu.org>
13308
13309 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
13310 to run kill-buffer-query-functions.
13311 (Qkill_buffer_query_functions): New var.
13312 (syms_of_buffer): Init and staticpro it.
13313
58e91b77
JD
133142003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13315
13316 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
13317
932357b4
KS
133182003-02-25 Kim F. Storm <storm@cua.dk>
13319
13320 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
13321 If centering point failed to make whole line visible and vscroll
13322 is non-zero, disable vscroll and try centering point again.
13323
13324 * lread.c (read1): Accept `single space' syntax like (? x).
13325
bb8db7e1
JD
133262003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13327
13328 * keyboard.c (cancel_hourglass_unwind): Surround with
13329 #ifdef HAVE_X_WINDOWS
13330
47d77aab
KH
133312003-02-25 Kenichi Handa <handa@m17n.org>
13332
13333 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
13334 process only when "subprocesses" is defined.
13335
6a097c0c
SM
133362003-02-24 Stefan Monnier <monnier@cs.yale.edu>
13337
13338 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
13339
0b063c27
JB
133402003-02-24 Juanma Barranquero <lektu@terra.es>
13341
d1135afc
JB
13342 * callint.c (fix_command): Declare as static void and move before
13343 Fcall_interactively.
13344
0b063c27
JB
13345 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
13346 (syms_of_xdisp): Don't initialize Qwhen.
13347
0af912f0
JD
133482003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13349
13350 * keyboard.c (cancel_hourglass_unwind): New function.
13351 (command_loop_1): Cancel hourglass with unwind-protect.
13352
120d0a23
RS
133532003-02-23 Richard M. Stallman <rms@gnu.org>
13354
13355 * callint.c (fix_command): New subroutine, from Fcall_interactively.
13356 Detect (when ... (region-beginning)) etc.
13357 (Fcall_interactively): Call fix_command.
13358 (Qif, Qwhen): New variables.
13359 (syms_of_callint): Init and staticpro them.
0b063c27 13360
120d0a23
RS
13361 * regex.c (print_partial_compiled_pattern): Output to stderr.
13362
4ece81a6
KG
133632003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13364
13365 * dired.c (directory_files_internal): Don't expand directory.
13366 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
13367 instead. From Lars Hansen <larsh@math.ku.dk>.
13368
e52bd6b7
SM
133692003-02-22 Stefan Monnier <monnier@cs.yale.edu>
13370
13371 * fns.c (string_to_multibyte): Remove unused var i.
13372 (Flanginfo): Fix int/Lisp_Object mixup.
13373 (void_call2): New fun.
13374 (Fmap_char_table): Use it in place of call2.
13375
13376 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
13377
13378 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
13379
13380 * keymap.c (copy_keymap_1): Make it static.
13381
13382 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
13383
c33ef7c4
JB
133842003-02-22 David Ponce <david@dponce.com>
13385
13386 * lread.c (Fload): Don't check STRING_MULTIBYTE.
13387
16782258
JD
133882003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13389
13390 * process.h: Removed subtty field from struct Lisp_Process.
13391
13392 * process.c (create_process): Remove setting of subtty.
13393 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
13394 (Fprocess_running_child_p, process_send_signal):
13395 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
13396 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
13397
3abeca61
KG
133982003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13399
13400 * keymap.c (Fdefine_key): Doc fix.
13401
92a8ce63
JB
134022003-02-21 Juanma Barranquero <lektu@terra.es>
13403
13404 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
13405
13406 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
13407 POLLING_PROBLEM_IN_SELECT.
13408
13409 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
13410 Delete #undef of POLLING_PROBLEM_IN_SELECT.
13411
13412 * s/hpux10-20.h: New file.
13413
e52bd6b7
SM
13414 * process.c (wait_reading_process_input):
13415 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 13416
20f1ef2e
KH
134172003-02-20 Kenichi Handa <handa@m17n.org>
13418
32d0a9dc
KH
13419 * fontset.c (check_fontset_name): If NAME is nil, return the
13420 default fontset.
13421 (override_font_info): New function.
e52bd6b7 13422 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
13423 (Ffontset_info): If FONTSET is not the default fontset, merge
13424 FONTSET onto the copy of the default fontset, and work on that
13425 copy. Document that NAME nil means the default fontset.
13426 (Ffontset_font): Document that NAME nil means the default fontset.
13427
20f1ef2e
KH
13428 * process.c (setup_process_coding_systems): If the process's
13429 in/out descriptor is -1, do nothing.
13430
77d1daf2
AS
134312003-02-19 Andreas Schwab <schwab@suse.de>
13432
e52bd6b7
SM
13433 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
13434 Add prototypes.
77d1daf2 13435
f9a45bb3
KH
134362003-02-19 Kenichi Handa <handa@m17n.org>
13437
13438 * xfaces.c (try_alternative_families): Try all scalable fonts if
13439 Vscalable_fonts_allowed is not Qt.
13440
72ecb43c
JD
134412003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13442
13443 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
13444
ee5be7c3
JD
134452003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13446
13447 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
13448 names.
13449
13450 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 13451 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
13452 x_face_list_fonts.
13453 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
13454 (Fx_list_fonts): Set maxnames to -1 to get all font names.
13455
4cd519a7
KS
134562003-02-18 Kim F. Storm <storm@cua.dk>
13457
068f9882
KS
13458 * lread.c (read1): Fix last change.
13459 "`" is not always special. Allow "?" after a character constant.
4cd519a7 13460
7290a344
AC
134612003-02-18 Andrew Choi <akochoi@shaw.ca>
13462
13463 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
13464
1f7fa69b
AS
134652003-02-18 Andreas Schwab <schwab@suse.de>
13466
13467 * window.c (window_scroll_pixel_based): Move outside a
13468 multi-glyph character before setting new window start.
13469
13470 * xdisp.c (in_display_vector_p): New function.
13471 * dispextern.h (in_display_vector_p): Declare.
13472
23e21195
KS
134732003-02-18 Kim F. Storm <storm@cua.dk>
13474
13475 * lread.c (read1): Fix and relax read syntax.
13476 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
13477 Only recognize "," after dotted-pair dot if inside backquote.
13478 Never include "`" or "," (inside backquote) in a symbol.
13479 Allow dotted-pair dot after a character constant.
13480 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 13481
f098b121
JD
134822003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13483
13484 * gtkutil.c (xg_tool_bar_expose_callback): New function.
13485 (xg_create_tool_bar): Force style of tool bar to be horizontal with
13486 icons. Set name of tool bar to emacs-toolbar.
13487 (update_frame_tool_bar): Connect expose event to
13488 xg_tool_bar_expose_callback.
13489
63020c46
RS
134902003-02-17 Richard M. Stallman <rms@gnu.org>
13491
13492 * keyboard.c (this_command_key_count_reset): New variable.
13493 Initiatize to 0 where this_command_key_count is set.
13494 (read_char): Save and restore this_command_key_count_reset
13495 around input method code.
13496 (read_char): If this_command_key_count_reset, echo reread commands.
13497 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
13498
fb4452cc
KH
134992003-02-17 Kenichi Handa <handa@m17n.org>
13500
13501 * fns.c (string_to_multibyte): Always return a multibyte string.
13502
bd11cc09
JR
135032003-02-16 Jason Rumney <jasonr@gnu.org>
13504
e52bd6b7
SM
13505 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
13506 Negative max_fonts parameter means list all.
bd11cc09 13507
4cdf4bde
DL
135082003-02-14 Dave Love <fx@gnu.org>
13509
13510 * fns.c (Flanginfo): Doc fix.
13511
023b93f6
KS
135122003-02-13 Kim F. Storm <storm@cua.dk>
13513
37cd4238
KS
13514 * lread.c (read_escape): Interpret \s as a SPACE character, except
13515 for \s-X in a character constant which still is the super modifier.
13516 (read1): Signal an `invalid read syntax' error if a character
13517 constant is immediately followed by a digit or symbol character.
13518
140a6b7e
KS
13519 * search.c (Fmatch_data): Doc fix. Explicitly state that
13520 match-data is undefined if last search failed.
13521
3419757d 13522 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
13523 All uses changed.
13524
7d5c86e5
JB
135252003-02-12 Juanma Barranquero <lektu@terra.es>
13526
13527 * eval.c (Fdefmacro): Fix typo.
13528
295fff2c
KS
135292003-02-12 Kim F. Storm <storm@cua.dk>
13530
13531 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
13532 macro is a string, convert meta modifiers in string when copying
13533 the string into a vector.
13534
60f3202d
KS
135352003-02-11 Kim F. Storm <storm@cua.dk>
13536
13537 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
13538
61cb0b53
KH
135392003-02-11 Kenichi Handa <handa@m17n.org>
13540
13541 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
13542
7392e23c
KS
135432003-02-10 Kim F. Storm <storm@cua.dk>
13544
13545 * process.c: Doc fixes.
13546 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
13547
ce4254bd
KH
135482003-02-10 Kenichi Handa <handa@m17n.org>
13549
9c7a329a
KH
13550 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
13551
ce4254bd
KH
13552 * process.c (QCfilter_multibyte): New variable.
13553 (setup_process_coding_systems): New function.
e52bd6b7
SM
13554 (Fset_process_buffer, Fset_process_filter):
13555 Call setup_process_coding_systems.
ce4254bd
KH
13556 (Fstart_process): Initialize the member `filter_multibyte' of
13557 struct Lisp_Process.
13558 (create_process): Call setup_process_coding_systems.
13559 (Fmake_network_process): New keyward `:filter-multibyte'.
13560 Initialize the member `filter_multibyte' of struct Lisp_Process.
13561 Call setup_process_coding_systems.
13562 (server_accept_connection): Call setup_process_coding_systems.
13563 (read_process_output): If the process has a filter, decide the
13564 multibyteness of a string to given to the filter by
13565 `filter_multibyte' member of the process. If the process doesn't
13566 have a filter and the result of conversion is unibyte, use
13567 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
13568 multibyte form.
13569 (Fset_process_coding_system): Call setup_process_coding_systems.
13570 (Fset_process_filter_multibyte): New function.
13571 (Fprocess_filter_multibyte_p): New function.
13572 (syms_of_process): Intern and staticpro QCfilter_multibyte.
13573 Defsubr Sset_process_filter_multibyte and
13574 Sprocess_filter_multibyte_p.
13575
13576 * process.h (struct Lisp_Process): New member filter_multibyte.
13577
13578 * lisp.h (setup_process_coding_systems): Add prototype.
13579
13580 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
13581 process, update coding systems for the process.
13582
b08d5f59
KH
135832003-02-09 Kenichi Handa <handa@m17n.org>
13584
13585 * fns.c (string_to_multibyte): New function.
13586 (Fstring_to_multibyte): New function.
13587 (syms_of_fns): Defsubr it.
13588
0dfd93c0
AS
135892003-02-08 Andreas Schwab <schwab@suse.de>
13590
13591 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
13592 instead of the substitution.
13593
7b76ca1c
JD
135942003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13595
13596 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
13597
13598 * xmenu.c (menu_position_func): Adjust menu popup position so that
13599 the menu is fully visible.
7b76ca1c 13600
2436a4e4
JD
136012003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13602
13603 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
13604 (x_make_frame_invisible, x_wm_set_icon_position):
13605 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
13606
13607 * xfns.c (x_set_name, x_set_title): Ditto.
13608
37d1e680
RS
136092003-02-04 Richard M. Stallman <rms@gnu.org>
13610
13611 * keyboard.c (echo_now): Update before_command_echo_length.
13612 (Freset_this_command_lengths): Reset this_command_key_count etc.
13613 immediately rather than arranging to do it later.
13614 (before_command_key_count_1, before_command_echo_length_1)
13615 (before_command_restore_flag): Vars deleted.
13616 (add_command_key): Don't handle before_command_restore_flag.
13617 (read_char, record_menu_key): Don't update before_command_key_count or
13618 before_command_echo_length.
13619 (read_char): Don't handle before_command_restore_flag.
13620
13621 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
13622 in direct-output clauses if it wouldn't be called in the ordinary case.
13623
578846a3
KS
136242003-02-04 Kim F. Storm <storm@cua.dk>
13625
13626 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
13627
49853a4d
JD
136282003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13629
13630 * gtkutil.c (remove_from_container): Copying list is not needed.
13631 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
13632 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
13633 on list returned from gtk_container_get_children to avoid memory leak.
13634
8b53dc06
JR
136352003-02-01 Jason Rumney <jasonr@gnu.org>
13636
5d54d177
JR
13637 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
13638 local malloc.
13639 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
13640 definitions in xpm.h.
13641 (init_xpm_functions): New function.
f63fd14e 13642 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
13643 (init_external_image_libraries): Try to load libXpm.dll.
13644
8b53dc06
JR
13645 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
13646 timestamp.
13647
b222e415
DL
136482003-01-31 Dave Love <fx@gnu.org>
13649
13650 * syntax.c (Fskip_chars_forward)
13651 (open-paren-in-column-0-is-defun-start): Doc fix.
13652
c60ee5e7
JB
136532003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
13654
13655 * fileio.c: Support // at start of name for Cygwin (just added proper
13656 preprocessor tests).
13657
13658 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
13659
13660 * Makefile.in: Use @EXEEXT@ for Cygwin.
13661
13662 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
13663
13664 * s/cygwin.h: Added for Cygwin port.
13665
53b37591
JB
136662003-01-31 Juanma Barranquero <lektu@terra.es>
13667
13668 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
13669 when including gif_lib.h.
fe929957 13670 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
13671 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
13672 Windows. Disable color table lookups. Call library functions
53b37591 13673 through pointers determined at runtime.
fe929957
JB
13674 (init_external_image_libraries): Try to load libungif.dll and
13675 libtiff.dll.
53b37591 13676
45415a8f
KH
136772003-01-31 Kenichi Handa <handa@m17n.org>
13678
13679 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 13680 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 13681
a97e4138
JD
136822003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13683
e52bd6b7 13684 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 13685
6eed9bed
DL
136862003-01-30 Dave Love <fx@gnu.org>
13687
13688 * alloc.c (Vgc_elapsed, gcs_done): New variables.
13689 (Fgarbage_collect): Use them.
13690 (init_alloc, syms_of_alloc): Set them up.
13691
100dcd40
JB
136922003-01-30 Juanma Barranquero <lektu@terra.es>
13693
13694 * w32fns.c (init_external_image_libraries): Add missing operator.
13695
fbd852af
JR
136962003-01-29 Jason Rumney <jasonr@gnu.org>
13697
13698 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
13699 an alternative name for jpeg.dll.
13700
8a2d8020
KH
137012003-01-29 Kenichi Handa <handa@m17n.org>
13702
13703 * xdisp.c (set_cursor_from_row): Pay attention to string display
13704 properties.
13705
058c18c7
AC
137062003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
13707
13708 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
13709 <escape>.
13710 (keycode_to_xkeysym_table): Reformat and add more comments.
13711 (XTread_socket): Drop special case for backspace.
13712
385f11cf
AC
137132003-01-28 Andrew Choi <akochoi@shaw.ca>
13714
13715 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
13716 values in old-style RGB specs.
13717
c922a224
JB
137182003-01-27 Juanma Barranquero <lektu@terra.es>
13719
13720 * w32fns.c (init_external_image_libraries): Try alternate names for the
13721 jpeg dll.
13722
0a1d6de0
JD
137232003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13724
13725 * gtkutil.c (create_dialog, xg_separator_p)
13726 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
13727 before calling strcmp or strlen.
13728
a97e4138 137292003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
13730
13731 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
13732 and handle image load failure.
13733
28908312
JR
137342003-01-26 Jason Rumney <jasonr@gnu.org>
13735
13736 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
13737 New functions.
f63fd14e
JB
13738 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
13739 Disable color table lookups. Call jpeg library functions
28908312
JR
13740 through pointers determined at runtime.
13741 (init_external_image_libraries): Try to load jpeg.dll.
13742
84e47416
RS
137432003-01-25 Richard M. Stallman <rms@gnu.org>
13744
13745 * lisp.h: Declare format2 instead of format1.
13746
13747 * fileio.c (barf_or_query_if_file_exists):
13748 Call format2 instead of format1.
13749
13750 * editfns.c (format2): New function, replaces format1
13751 but takes exactly two Lisp Objects as format args.
13752
13753 * buffer.c (Fkill_buffer): Call format2 instead of format1.
13754
a97e4138 137552003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
13756
13757 * xterm.h: Change to return value of x_dispatch_event to int.
13758
13759 * xterm.c (x_filter_event): New function.
13760 (event_handler_gdk, XTread_socket): Call x_filter_event.
13761 (x_dispatch_event): Change to return value of finish.
13762 (event_handler_gdk): Use return value from x_dispatch_event.
13763
13764 * xfns.c (x_window): Call create_frame_xic for GTK version to
13765 initialize input methods.
13766
13767 * gtkutil.h: Add (void) prototypes.
13768
13769 * gtkutil.c (create_menus): Remove code that puts the help menu to
13770 the right.
13771
54eefef1
JR
137722003-01-25 Jason Rumney <jasonr@gnu.org>
13773
13774 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
13775 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
13776 (png_load): Adjust colors for Windows. Use Windows
13777 bitmaps. Disable color table lookups.
c262430d
JR
13778 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
13779 (init_png_functions): New function.
13780 (png_read_from_memory, png_load): Call png library functions
13781 through pointers determined at runtime.
13782 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
13783 (init_external_image_libraries): New function.
13784 (init_xfns): Call it.
54eefef1 13785
1a9e275b
AS
137862003-01-24 Andreas Schwab <schwab@suse.de>
13787
13788 * minibuf.c (Fminibuffer_message): Verify type of parameter.
13789
a97e4138 137902003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
13791
13792 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
13793 of static initializer.
13794
422eec7e
DL
137952003-01-24 Dave Love <fx@gnu.org>
13796
13797 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
13798 architectures.
13799
13800 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
13801 Use __alignof__.
13802
2a026b04
KH
138032003-01-24 Kenichi Handa <handa@m17n.org>
13804
13805 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 13806 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
13807 (command_loop_1): Call adjust_point_for_property with proper
13808 second arg.
13809
a18bb28d
JR
138102003-01-22 Jason Rumney <jasonr@gnu.org>
13811
13812 Sync changes with xterm.c and xfns.c.
13813
13814 * w32term.c (x_draw_glyph_string_foreground)
13815 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13816
13817 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
13818 phys_cursor's hpos is overwritten. This is still not completely
13819 correct, as it doesn't really make sense to use hpos at all to
13820 get the cursor glyph (as that is relative to the width of the
13821 characters on the line, which may have changed during the update).
13822
13823 * w32term.c (notice_overwritten_cursor): Handle the special case
13824 of the cursor being in the first blank non-text line at the
13825 end of a window.
13826
13827 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13828 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13829 Compute from the x position returned by x_draw_glyphs.
13830
13831 (x_display_and_set_cursor): Don't set phys_cursor_width here,
13832 except for NO_CURSOR and system caret, to make phys_cursor_width
13833 contain what its name suggests.
13834 (notice_overwritten_cursor): Consider the cursor image erased if
13835 the output area intersects the cursor image in y-direction.
13836
6a097c0c
SM
13837 * w32term.c (note_mode_line_or_margin_highlight): Rename from
13838 note_mode_line_highlight and extend.
a18bb28d
JR
13839
13840 * w32term.c (last_window): New variable.
13841 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
13842 (note_mouse_movement): Remove reimplemented code in #if 0.
13843
13844 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
13845 not update_mode_lines, and always set it to 1.
13846
ac6e47ef
JR
138472003-01-21 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32fns.c (IDC_HAND): Define it if system headers don't.
13850
138512003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13852
13853 * w32term.h (struct w32_output): New member hand_cursor.
13854 (WM_EMACS_SETCURSOR): New message definition.
13855
13856 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
13857 function w32_define_cursor.
13858 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
13859 position, change member name output_data.x to output_data.w32 and
13860 add function w32_define_cursor.
13861 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
13862 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
13863 (w32_initialize_display_info):
13864 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
13865
13866 * w32fns.c (Vx_hand_shape): New variable.
13867 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
13868 WM_EMACS_SETCURSOR.
13869 (x-create-frame): Setup Cursor types.
13870
ceb39a17
JB
138712003-01-21 David Ponce <david@dponce.com>
13872
ac6e47ef 13873 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
13874 ccl->reg[2] to -1 before calling ccl_driver.
13875 (Sync. with xterm.c x_encode_char change by Kenichi Handa
13876 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
13877 (w32_draw_relief_rect): Declare all args.
13878 (w32_define_cursor): New.
13879
13880 * w32fns.c (w32_load_cursor): New function.
13881 (w32_init_class): Use it.
13882 (x_put_x_image): Declare all args.
13883
b6189c3b 138842003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
13885
13886 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
13887
a97e4138 138882003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
13889
13890 * gtkutil.c: Must include stdio.h before termhooks.h
13891
83fc9c63
DL
138922003-01-21 Dave Love <fx@gnu.org>
13893
13894 * alloc.c (Fgc_status): Print zombie list.
13895 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13896 Fix assignment of zombies.
13897 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13898 Don't take car of non-cons.
13899
13900 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13901
13902 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13903
fe04b8c8
JR
139042003-01-20 David Ponce <david@dponce.com>
13905
13906 * w32menu.c (digest_single_submenu): Declare all args.
13907
13908 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
13909 changes in xmenu.c:
13910
13911 (parse_single_submenu): Use individual keymap's prompt
13912 string as pane name, if there is one.
13913 (set_frame_menubar): Save menu_items_n_panes from each call to
13914 parse_single_submenu and use it when calling digest_single_submenu.
13915
539e69a9
ST
139162003-01-20 Steven Tamm <steventamm@mac.com>
13917
7e26f91b 13918 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
13919 before sending a scroll-wheel event.
13920
675d000f
RS
139212003-01-20 Richard M. Stallman <rms@gnu.org>
13922
13923 * xdisp.c (redisplay_window): If mini window's buffer is not
13924 a minibuffer, then redisplay it like other windows.
13925
a97e4138 139262003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
13927
13928 * gtkutil.c (xg_create_frame_widgets): Check if there is an
13929 external tool bar before setting tool bar height.
13930
048addec
JD
139312003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13932
13933 * xterm.c (handle_one_xevent): Surround popup_activated
13934 with #ifdef:s for non-toolkit version.
13935
13936 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
13937 (gtkutil.o): New file.
13938 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
13939 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
13940
13941 * gtkutil.c: New file for GTK version.
13942
13943 * gtkutil.h: New file for GTK version.
13944
13945 * xterm.h: Add xt_or_gtk_widget.
13946 Include gtk files for USE_GTK.
13947 (struct x_output): Add toolbar_height.
13948 (struct x_output): Add GTK widgets and Gdk size_hints.
13949 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
13950 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
13951 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
13952
13953 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 13954 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
13955 (note_mouse_highlight): Check popup_activated for USE_GTK.
13956 (xt_action_hook): Don't compile if USE_GTK.
13957 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
13958 (xg_scroll_callback): New function.
13959 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
13960 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
13961 for USE_GTK.
13962 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
13963 xg_show_scroll_bar for USE_GTK.
13964 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
13965 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
13966 (event_handler_gdk): New function for USE_GTK.
13967 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
13968 (handle_one_xevent): Make sure widget is mapped before
13969 calling x_real_positions for USE_GTK.
13970 (XTread_socket): Add GTK event loop for USE_GTK.
13971 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
13972 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
13973 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
13974 (x_iconify_frame): Add code for USE_GTK.
13975 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
13976 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
13977 is in gtkutil.c.
13978 (x_term_init): Add initialization for GTK.
13979 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
13980
13981 * xmenu.c: Include gtkutil.h for USE_GTK.
13982 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
13983 (single_menu_item, single_menu_item, Fx_popup_dialog):
13984 Check for USE_GTK.
048addec
JD
13985 (popup_widget_loop): New function for USE_GTK.
13986 (x_activate_menubar): Add code for USE_GTK.
13987 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
13988 (menu_highlight_callback, menubar_selection_callback):
13989 Add USE_GTK versions.
048addec
JD
13990 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
13991 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
13992 (free_frame_menubar): Only compile if not USE_GTK. GTK version
13993 is in gtkutil.c.
13994 (popup_selection_callback): New version for USE_GTK.
13995 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 13996 one USE_X_TOOLKIT version.
048addec
JD
13997 (xmenu_show): Call create_and_show_popup_menu.
13998 (dialog_selection_callback): New version for USE_GTK.
13999 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 14000 one USE_X_TOOLKIT version.
048addec
JD
14001 (xdialog_show): Call create_and_show_dialog.
14002
14003 * xfns.c: Include gtkutil for USE_GTK.
14004 (x_window_to_frame, x_any_window_to_frame)
14005 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14006 (x_top_window_to_frame): Add code for USE_GTK.
14007 (x_set_background_color): Call xg_set_background_color for GTK.
14008 (x_set_menu_bar_lines): Check for USE_GTK.
14009 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
14010 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
14011 (x_window): Call xg_create_frame_widgets for USE_GTK.
14012 (Fx_create_frame): Check for USE_GTK
14013 (Fx_file_dialog): New implementation for USE_GTK.
14014
14015 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
14016 (update_menu_bar): Add check for USE_GTK.
14017 (update_tool_bar): Add check for USE_GTK and external tool bar.
14018 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
14019 (redisplay_internal): Add check for USE_GTK and popup_activated.
14020 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
14021 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
14022 (display_menu_bar): Add check for USE_GTK
14023
78819ebb 14024 * lisp.h (Vx_resource_name): Declare extern.
048addec 14025
a64387ee 14026 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
14027 for USE_GTK.
14028 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
14029
14030 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
14031 (FRAME_EXTERNAL_TOOL_BAR): New macro.
14032 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
14033
14034 * fileio.c (Fread_file_name): Add check for USE_GTK.
14035
6bdb309a
SM
14036 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
14037 Add check for USE_GTK.
048addec
JD
14038
14039 * config.in: Added HAVE_GTK
14040
14041 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
14042
140432003-01-18 Stefan Monnier <monnier@cs.yale.edu>
14044
14045 * charset.h (Funibyte_char_to_multibyte): Export.
14046
140472003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14048
14049 * xmenu.c (mouse_position_for_popup): New function.
14050 (Fx_popup_menu): Call mouse_position_for_popup for X and
14051 mouse_position_hook for others.
14052
140532003-01-17 Kim F. Storm <storm@cua.dk>
14054
14055 * editfns.c (Finsert): Mention `string-make-multibyte' and
14056 `string-as-multibyte' in doc string.
14057
140582003-01-17 Kenichi Handa <handa@m17n.org>
14059
14060 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 14061
048addec
JD
14062 * editfns.c (Fformat): Convert an unibyte char argument that is
14063 formatted by "%c" to multibyte if the total result must be a
14064 multibyte string.
cd7df9c0 14065
048addec 140662003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 14067
048addec
JD
14068 * process.c (set-process-filter): Document unibyte/multibyte-ness
14069 of string argument.
56210ecd 14070
048addec 140712003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 14072
048addec 14073 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 14074
048addec
JD
14075 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
14076 (re_search_2): Likewise.
6df8b9fe 14077
048addec 140782003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 14079
048addec
JD
14080 * xdisp.c (message_dolog): Fix bug of the case that *Message*
14081 buffer is unibyte.
292ddc31 14082
048addec 140832003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 14084
048addec 14085 * fns.c (Fsubstring): Clarify doc string.
292ddc31 14086
048addec
JD
14087 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
14088 (Fprevious_char_property_change)
14089 (Fnext_single_char_property_change)
14090 (Fprevious_single_char_property_change, Fnext_property_change)
14091 (Fnext_single_property_change, Fprevious_property_change)
14092 (Fprevious_single_property_change, Fadd_text_properties)
14093 (Fput_text_property, Fset_text_properties)
14094 (Fremove_text_properties, Fremove_list_of_text_properties)
14095 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 14096
048addec 140972003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 14098
048addec
JD
14099 * process.h (struct Lisp_Process): New member plist replaces old
14100 member private_vars. All uses changed.
63e4e4c6 14101
048addec 14102 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 14103 (QCplist): Rename from QCvars. Change all uses.
048addec 14104 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 14105 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 14106 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 14107 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 14108
048addec 141092003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 14110
6bdb309a 14111 * m/delta.h: Remove (obsolete).
e833850f 14112
048addec 141132003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 14114
048addec
JD
14115 * fileio.c (Fdelete_directory, Fdelete_file): Document the
14116 behaviour in front of symlinks.
14117 (Fdelete_file): Raise an error on directories.
817cb127 14118
048addec 141192003-01-13 Dave Love <fx@gnu.org>
817cb127 14120
048addec 14121 * fns.c (Freverse): Use QUIT.
3e8cf2ea 14122
048addec 141232003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 14124
048addec
JD
14125 * minibuf.c (minibuffer_completion_contents):
14126 Error if point is inside prompt.
3e8cf2ea 14127
048addec
JD
14128 * keyboard.c (command_loop_1): Don't redisplay directly
14129 if there's a post-command-hook.
3e8cf2ea 14130
048addec
JD
14131 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
14132 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 14133
048addec 141342003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 14135
048addec 14136 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 14137
048addec
JD
14138 * process.c (QCvars): New variable.
14139 (syms_of_process): Intern and staticpro it.
14140 (Fset_process_contact): Removed function.
14141 (Fprocess_variable, Fset_process_variable): New functions.
14142 (syms_of_process): Defsubr them.
14143 (Fstart_process): Initialize private_vars plist to nil.
14144 (Fmake_network_process): New arg :vars to setup the private
14145 variables for new network process.
14146 (server_accept_connection): Copy server's private variables to
14147 client process.
2c10f029 14148
048addec
JD
14149 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
14150 crashes). Code rewritten and simplified. Now directly aligns the
14151 pointer and recalculates pure_bytes_used, rather than aligning the
14152 size and adjusting the pointer.
b8a76c6c 14153
048addec 141542003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 14155
048addec
JD
14156 * process.c (Fset_process_contact): New function.
14157 (syms_of_process): defsubr it.
14158 (make-network-process): Update doc.
3a8d0899 14159
048addec 141602003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 14161
048addec
JD
14162 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
14163 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 14164
048addec 141652003-01-10 Dave Love <fx@gnu.org>
4abc7470 14166
048addec 14167 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 14168
048addec 141692003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 14170
048addec
JD
14171 * process.c (Fmake_network_process): Convert new port number
14172 to host byte order for `:service t' case. From Mario Lang.
bf338245 14173
048addec 141742003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 14175
048addec
JD
14176 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
14177 instead of XtAppProcessEvent.
bf338245 14178
048addec
JD
14179 * xterm.c (handle_one_xevent): New function.
14180 (x_dispatch_event): New function.
14181 (XTread_socket): Call handle_one_xevent.
bf338245 14182
048addec 14183 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 14184
048addec
JD
14185 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
14186 call XQueryPointer to get coordinates.
14187 (popup_get_selection): Do not set popup_activated_flag to zero,
14188 let popup_deactivate_callback do that. Needed for Motif.
14189 Call x_dispatch_event instead of XtDispatchEvent.
14190 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 14191
048addec 141922003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 14193
6bdb309a 14194 * process.c (server_accept_connection): Fix recording of new
048addec
JD
14195 connection's local address in :local property of contact info.
14196 (Fmake_network_process): Record local network address for new
14197 client processes in :local property of contact info.
6bdb309a 14198 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 14199
048addec 142002003-01-07 Dave Love <fx@gnu.org>
00e3ab56 14201
048addec 14202 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 14203
048addec 142042003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 14205
048addec 14206 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 14207
048addec
JD
14208 * eval.c (Fuser_variable_p): Doc change. For custom variables,
14209 use the same test as for custom-variable-p.
8c6d74c6 14210
048addec 142112003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 14212
048addec
JD
14213 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
14214 Count LAST_LINE_MISFIT in scroll margin for end of window.
14215 Move label too_near_end before setting SCROLL_MARGIN_POS.
14216 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 14217
048addec
JD
14218 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
14219 scroll_conservatively case. If scrolling that much doesn't change
14220 STARTP, move it down one line.
e833850f 14221
048addec
JD
14222 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
14223 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 14224
048addec
JD
14225 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
14226 selected frame.
8c6d74c6 14227
048addec 14228 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 14229 (syms_of_keymap): Staticpro them.
048addec
JD
14230 (Fapropos_internal): Initialize them and clear them out.
14231 Don't GCPRO them.
8c6d74c6 14232
048addec
JD
14233 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
14234 Doc fixes.
8c6d74c6 14235
048addec
JD
14236 * lisp.h: New misc type Lisp_Save_Value.
14237 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
14238 (XSAVE_VALUE): New macro.
14239 (struct Lisp_Save_Value): New data type.
14240 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 14241 (make_save_value): Declare.
8c6d74c6 14242
048addec 14243 * alloc.c (make_save_value): New function.
8c6d74c6 14244
048addec
JD
14245 * xterm.c (x_catch_errors): Save dpy using make_save_value.
14246 (x_catch_errors_unwind): Call XSync.
8c6d74c6 14247
048addec 142482003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 14249
048addec 14250 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 14251
048addec
JD
14252 * keyboard.c (command_loop_1): Call adjust_point_for_property
14253 in direct action cases for Qforward_char and Qbackward_char.
14254 Set already_adjusted so it won't be done twice.
8c6d74c6 14255
b6189c3b 142562002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 14257
048addec
JD
14258 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
14259 type definition of size_t.
8c609cff 14260
048addec 142612003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 14262
048addec
JD
14263 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
14264 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 14265
048addec 142662002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 14267
048addec
JD
14268 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
14269 to default to t.
fa634a5e 14270
048addec 142712002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 14272
048addec 14273 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 14274
048addec 142752002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 14276
7e26f91b 14277 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
14278 allow building in a different directory than source. Uses some
14279 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 14280
048addec 142812002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 14282
048addec
JD
14283 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
14284 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
14285 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
14286 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 14287
048addec 142882002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 14289
048addec
JD
14290 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
14291 <scroll-down-aggressively>: Doc fix.
2155ecf3 14292
048addec
JD
14293 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
14294 string as pane name, if there is one.
14295 (set_frame_menubar): Save menu_items_n_panes from each call to
14296 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 14297
048addec
JD
14298 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
14299 Don't try to make last line fully visible if it is past end of window.
61f1d295 14300
048addec 143012002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 14302
048addec
JD
14303 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
14304 (mac_menu_show): Add support for hierarchical popup menus.
14305 (add_menu_item): Remove indentation support.
14306 (fill_submenu, fill_menu): Create hierarchical menus
14307 instead of using indentation.
0b17a217 14308
048addec 143092002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 14310
048addec
JD
14311 * xdisp.c (try_cursor_movement): Don't call try_window here.
14312 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 14313
048addec 14314 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 14315
048addec 143162002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 14317
048addec
JD
14318 * macterm.c (XTread_socket): Call KeyTranslate for control and
14319 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 14320 being treated like C-%. Do not look for shift key to deal
048addec 14321 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 14322
048addec 143232002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 14324
048addec
JD
14325 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
14326 If it is non-nil, run timers. Use an unwind-protect to requeue
14327 the events that were read ahead.
14328 (popup_get_selection_unwind): New subroutine.
14329 (popup_get_selection_queue): File-scope variable now holds that queue.
14330 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
14331 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
14332 Use an unwind-protect to pop down the dialog box.
14333 (xdialog_show_unwind): New subroutine implements that.
f02cac82 14334
048addec
JD
14335 * xdisp.c (row_containing_pos): Change exit test using last_y.
14336 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 14337
048addec
JD
14338 * lread.c (load_error_handler): New function.
14339 (Fload): Handle errors in Fsubstitute_in_file_name.
14340 Don't expect Fsignal to return.
f02cac82 14341
048addec
JD
14342 * eval.c: Errors and throws work right with interrupt blocking.
14343 (struct catchtag): New elt interrupt_input_blocked.
14344 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
14345 (internal_catch, Fcondition_case, internal_condition_case)
14346 (internal_condition_case_1, internal_condition_case_2): Save it.
14347 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 14348
048addec 14349 * editfns.c (Fformat): Add parens.
f02cac82 14350
048addec
JD
14351 * dired.c (file_name_completion): Fix that change.
14352 Delete special quit-handling code; just use QUIT.
f02cac82 14353
b6189c3b 143542002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 14355
048addec
JD
14356 * dired.c (file_name_completion): Close directory on error
14357 just as in directory_files_internal.
1a590729 14358
048addec 143592002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 14360
048addec
JD
14361 * window.c (Fset_window_configuration): Set old_point to correct
14362 value when new_current_buffer == current_buffer.
f02cac82 14363
048addec 143642002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 14365
048addec
JD
14366 Revisited my earlier fix for the following entry in etc/PROBLEMS:
14367 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14368 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 14369
048addec
JD
14370 These changes were in part based upon suggestions made by Peter
14371 'Luna' Runestig [peter@runestig.com].
9785d95b 14372
f4a5a485
SM
14373 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
14374 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
14375 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 14376 global variables.
9785d95b 14377
048addec
JD
14378 * w32.c (globals_of_w32): New function. Used to initialize those
14379 global variables that must always be initialized on startup even
14380 when the global variable initialized is non zero. Its primary
14381 purpose at this time is to set the global variables
14382 g_b_init_is_windows_9x, g_b_init_open_process_token,
14383 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
14384 g_b_init_get_sid_identifier_authority to 0 on startup.
14385 Called from main.
9785d95b 14386
048addec
JD
14387 * w32.c (is_windows_9x): Perform initialization only if
14388 g_b_init_is_windows_9x is equal to 0. On initialization set
14389 g_b_init_is_windows_9x equal to 1.
2308af15 14390
048addec
JD
14391 * w32.c (open_process_token): Perform initialization only if
14392 g_b_init_open_process_token is equal to 0. On initialization set
14393 g_b_init_open_process_token equal to 1.
2308af15 14394
048addec
JD
14395 * w32.c (get_token_information): Perform initialization only if
14396 g_b_init_get_token_information is equal to 0. On initialization
14397 set g_b_init_get_token_information equal to 1.
9785d95b 14398
048addec
JD
14399 * w32.c (lookup_account_sid): Perform initialization only if
14400 g_b_init_lookup_account_sid is equal to 0. On initialization
14401 set g_b_init_lookup_account_sid equal to 1.
9785d95b 14402
048addec
JD
14403 * w32.c (get_sid_identifier_authority): Perform initialization
14404 only if g_b_init_get_sid_identifier_authority is equal to 0.
14405 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 14406
f63fd14e 14407 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
14408 those global variables that must always be initialized on startup
14409 even when the global variable initialized is non zero.
14410 Its primary purpose at this time is to initialize the global variable
14411 track_mouse_event_fn.
9785d95b 14412
a64387ee 14413 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 14414 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 14415
048addec 14416 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 14417
f63fd14e 14418 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
14419 initialize those global variables that must always be initialized
14420 on startup even when the global variable initialized is non zero.
14421 Its primary purpose at this time is to initialize the global
14422 variables get_menu_item_info and set_menu_item_info.
9785d95b 14423
048addec
JD
14424 * w32menu.c (initialize_frame_menubar): Remove initialization of
14425 get_menu_item_info and set_menu_item_info.
9785d95b 14426
048addec 14427 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 14428
048addec
JD
14429 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
14430 Declare them.
9785d95b 14431
048addec
JD
14432 * emacs.c (main): Call globals_of_w32 prior to calling
14433 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
14434 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
14435 is defined.
9785d95b 14436
048addec
JD
14437 * w32term.c (x_update_window_begin): Fix Windows API error
14438 detected by BoundsChecker. Test to determine if
14439 w32_system_caret_hwnd is NULL prior to attempting to use
14440 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 14441
048addec
JD
14442 * w32term.c (x_update_window_end): Fix Windows API error
14443 detected by BoundsChecker. Test to determine if
14444 w32_system_caret_hwnd is NULL prior to attempting to use
14445 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 14446
048addec 144472002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 14448
048addec
JD
14449 * coding.c (coding_system_require_warning): New variable.
14450 (syms_of_coding): DEFVAR it.
b6da19ef 14451
048addec 14452 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 14453
048addec
JD
14454 * fileio.c (choose_write_coding_system): Even if
14455 Vcoding_system_for_write is non-nil, if
14456 coding_system_require_warning is nonzero, call
14457 Vselect_safe_coding_system_function.
bfcf6dbe 14458
048addec 144592002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 14460
048addec
JD
14461 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
14462 (lisp): Add font-core.
2c568af5 14463
048addec 144642002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 14465
048addec
JD
14466 * textprop.c (text_read_only): New arg `propval'.
14467 (get_char_property_and_overlay): Remove unused var `next_overlay'.
14468 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 14469
048addec 144702002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 14471
048addec 14472 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 14473
048addec 144742002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 14475
048addec
JD
14476 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
14477 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
14478 Be more careful about when help_events are generated.
96720f09 14479
048addec 144802002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 14481
048addec
JD
14482 * macterm.c (mac_check_for_quit_char): Correctly set the
14483 modifiers of the event to 0.
14484 * mac.c (sys_select): Duplicate rfds before calling select to
14485 ensure that rfds survive the while loop.
e5ae1c49 14486
048addec 144872002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 14488
048addec
JD
14489 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
14490 row_containing_pos returned NULL.
2eb46b2d 14491
048addec 144922002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 14493
6bdb309a 14494 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 14495 non-blocking.
6bdb309a 14496 (sys_select): Fix sys_select to not use a timeout larger than
048addec 14497 the one given.
b11f1d8a 14498
048addec 144992002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 14500
048addec 14501 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 14502
048addec 145032002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 14504
048addec
JD
14505 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
14506 as the last thing.
a4ac5b17 14507
048addec 145082002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 14509
048addec 14510 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 14511
048addec 145122002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 14513
048addec
JD
14514 * editfns.c (Fformat): Handle precision in string conversion
14515 specifiers like libc functions do (ie, print at most that many
14516 characters).
85cce843 14517
048addec 145182002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 14519
048addec
JD
14520 * xdisp.c (row_containing_pos): Check more carefully
14521 whether charpos is really in the row before returning it.
0d4d26a7 14522
048addec 145232002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 14524
048addec 14525 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 14526
048addec
JD
14527 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
14528 each stack frame. This may change as it could be time consuming.
0d4d26a7 14529
048addec
JD
14530 * macterm.c (mac_check_for_quit_char, quit_char_comp)
14531 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 14532 (mac_initialize): Add code to check for pressing of quit_char
048addec 14533 in the OS event queue.
b11f1d8a 14534
048addec
JD
14535 * mac.c (sys_select): Call mac_check_for_quit_char every second
14536 while blocking on select.
0d4d26a7 14537
048addec
JD
14538 * mac.c (sys_read): Use sys_select to test for input first
14539 before calling read, to allow C-g to break.
9252f7bc 14540
048addec 145412002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 14542
048addec 14543 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 14544
048addec 14545 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 14546
048addec 14547 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 14548
048addec
JD
14549 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
14550 autoload.
9252f7bc 14551
048addec 14552 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 14553
048addec 14554 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 14555
048addec 145562002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 14557
048addec 14558 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 14559
048addec 145602002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 14561
048addec 14562 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14563
048addec 14564 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14565
048addec 14566 * alloca.c: Don't use #error.
02d588e2 14567
048addec 145682002-12-03 Dave Love <fx@gnu.org>
02d588e2 14569
048addec
JD
14570 * buffer.c (Qucs_set_table_for_input): New.
14571 (Fget_buffer_create): Use it.
14572 (Qset_buffer_major_mode_hook): Deleted.
14573 (Fset_buffer_major_mode): Revert previous change.
14574 (init_buffer_once): Intern ucs-set-table-for-input.
14575 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
14576 Add &Qucs_set_table_for_input.
451e2697 14577
048addec 145782002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 14579
048addec
JD
14580 * callint.c (Fcall_interactively): Use next_event only if less
14581 than key_count.
72742a99 14582
048addec 145832002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 14584
048addec
JD
14585 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
14586 names to 255 characters.
72742a99 14587
048addec
JD
14588 * macterm.c (XTread_socket): If all frames have been collapsed,
14589 expand the first one before handling drag-and-drop events.
72742a99 14590
048addec
JD
14591 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
14592 which is detected by autoconf.
40e6ff95 14593
048addec 145942002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 14595
048addec
JD
14596 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
14597 offset in two hints table to allow prebinding to be redone and
14598 allow the executable to be stripped.
c02138c6 14599
048addec 146002002-11-29 Dave Love <fx@gnu.org>
c02138c6 14601
048addec
JD
14602 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
14603 already provided.
0e47bbf7 14604
048addec 146052002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 14606
048addec
JD
14607 * xdisp.c (start_display): Check more intelligently for
14608 whether the line is continued.
14609 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 14610
048addec 146112002-11-28 Dave Love <fx@gnu.org>
44129dcb 14612
048addec
JD
14613 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
14614 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 14615
048addec 146162002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 14617
048addec
JD
14618 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
14619 more descriptive error output from lread.c:Fload upon most require
14620 cycles during boostrapping.
1637fd2c 14621
048addec 146222002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 14623
048addec
JD
14624 * fileio.c (Finsert_file_contents): Give a more appropriate error
14625 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 14626
048addec
JD
14627 * dired.c (Ffile_attributes): Don't return negative file sizes for
14628 files bigger than 2Gb when off_t is 32 bit.
540c2788 14629
048addec 146302002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 14631
048addec 14632 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 14633
048addec
JD
14634 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
14635 Test GETPGRP_VOID instead.
14636 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 14637
048addec
JD
14638 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
14639 Don't define.
14640 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 14641
048addec 14642 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 14643
048addec 146442002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 14645
048addec
JD
14646 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
14647 supported.
4042a81a 14648
048addec 146492002-11-25 Dave Love <fx@gnu.org>
4042a81a 14650
048addec 14651 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 14652
048addec 14653 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 14654
048addec 146552002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 14656
048addec 14657 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 14658
048addec 146592002-11-24 Steven Tamm <steventamm@mac.com>
82122254 14660
048addec
JD
14661 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
14662 determine the size of pointers alloced in unexed space instead
14663 of using possibly invalid emacs_zone pointers. This fixes the
14664 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 14665
048addec 146662002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 14667
048addec 14668 * search.c (Fstring_match): Doc fix.
c1ee53bc 14669
048addec
JD
14670 * callint.c (Fcall_interactively): If a command fails because
14671 `*' detects a read-only buffer, but RECORD_FLAG is set,
14672 record it anyway if the args don't actually do tty input.
5598c32e 14673
048addec 146742002-11-22 Dave Love <fx@gnu.org>
5598c32e 14675
048addec 14676 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 14677
048addec
JD
14678 * keyboard.c (interrupt_signal): Provide forward declaration.
14679 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 14680
048addec 14681 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 14682
048addec 146832002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 14684
048addec
JD
14685 * eval.c (interactive_p): Skip any number of bytecode
14686 and special form frames, in any order.
516eea8e 14687
048addec 146882002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 14689
048addec
JD
14690 * w32fns.c (convert_mono_to_color_image): New function.
14691 (xbm_load, xbm_load_image): Use it when foreground or background
14692 is explicitly set.
04dbfa08 14693
048addec 146942002-11-19 Dave Love <fx@gnu.org>
04dbfa08 14695
048addec 14696 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 14697
048addec 146982002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 14699
048addec
JD
14700 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
14701 (XPutPixel): Swap blue and red.
14702 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
14703 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14704 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
14705 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 14706
048addec 147072002-11-18 Dave Love <fx@gnu.org>
d824beee 14708
048addec 14709 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 14710
048addec 14711 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 14712
048addec 14713 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 14714
048addec
JD
14715 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
14716 malloc, realloc, calloc.
d824beee 14717
048addec
JD
14718 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
14719 (bcmp): Don't define.
d824beee 14720
048addec 14721 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 14722
048addec 14723 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 14724
048addec 14725 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 14726
048addec 14727 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 14728
048addec
JD
14729 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
14730 Don't include alloca.h.
d824beee 14731
048addec 14732 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 14733
048addec 14734 * regex.c (_GNU_SOURCE): Don't define.
1998560a 14735
048addec 14736 * process.c (_GNU_SOURCE): Don't define.
1998560a 14737
048addec 14738 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 14739
048addec 147402002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 14741
048addec 14742 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 14743
048addec 147442002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 14745
048addec
JD
14746 * dispextern.h (struct face): Add `overstrike' field.
14747 * xterm.c (x_draw_glyph_string_foreground)
14748 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14749 * xfaces.c (load_face_font): Set `face->overstrike' based on
14750 result from choose_face_font.
14751 (best_matching_font, choose_face_font): Add `needs_overstrike'
14752 argument, and use it to return whether overstriking is desirable
14753 for this face/font combo.
14754 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 14755
048addec 147562002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 14757
048addec
JD
14758 This change is my fix for the following entry in etc/PROBLEMS:
14759 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14760 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 14761
048addec
JD
14762 * w32.c: Added wrapper functions around the win32 API functions
14763 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
14764 GetSidIdentifierAuthority. These wrapper functions serve two
14765 purposes:
14766 1. They ensure that the wrapped function can never be called
14767 when Emacs is running on an operating system on which they are
14768 not supported (Microsoft Windows 95 / 98 / ME).
14769 2. They call the wrapped functions via function pointers rather
14770 than calling them directly. This avoids taking advantage of the
14771 undocumented fact that although these functions are not supported
14772 in the 9x branch of Microsoft Windows, the functions do exist in
14773 the version of advapi32.dll that is found in the 9x branch of
14774 Microsoft Windows.
f60ae425 14775
6bdb309a 14776 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
14777 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
14778 and GetSidIdentifierAuthority with calls to the newly added
14779 wrapper functions.
f60ae425 14780
048addec
JD
14781 * w32.h: Added extern declarations for the following functions:
14782 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
14783 syms_of_w32menu, and void syms_of_fontset.
f60ae425 14784
6bdb309a 14785 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
14786 function pointer track_mouse_event_fn in the handler for the
14787 WM_SETFOCUS message.
3582b6a3 14788
6bdb309a 14789 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
14790 reinitialize the function pointers set_menu_item_info and
14791 get_menu_item_info.
f60ae425 14792
048addec 147932002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 14794
048addec
JD
14795 * sound.c: Added a partial implementation of play-sound-internal
14796 for Microsoft Windows. Added various #ifdef / #else / #endif
14797 code blocks to separate the code that will compile under
9fed2905 14798 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 14799 Moved several blocks of code around to make this separation of code
9fed2905 14800 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 14801
048addec 14802 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 14803
048addec
JD
14804 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
14805 added support for play-sound-internal under Windows would be
14806 included in the build of Emacs.
517f42a0 14807
048addec 148082002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 14809
048addec 14810 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 14811
048addec 14812 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 14813
048addec 148142002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 14815
048addec
JD
14816 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
14817 (adjust_point_for_property): Move out of display and invisible even if
14818 we were already inside before (in case a property was added while
14819 we weren't looking). Be more careful when handling invisible props.
14820 Skip invisible text as if it really wasn't there at all.
aab83f91 14821
048addec 148222002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 14823
048addec
JD
14824 * w32term.c (x_draw_image_foreground)
14825 (w32_draw_image_foreground_1): Use standard copy and invert
14826 operations to draw images.
aab83f91 14827
048addec
JD
14828 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
14829 depth of 1.
14830 (xbm_read_bitmap_data): Invert bits as xbm is read in.
14831 (XPutPixel): Don't invert bits here.
a4478a76 14832
048addec 148332002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 14834
048addec
JD
14835 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
14836 (w32_draw_image_foreground_1): Handle image masks.
14837 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 14838
048addec
JD
14839 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
14840 (x_from_xcolors): Adjust RGB values for W32.
14841 (image_background, image_background_transparent)
14842 (postprocess_image, x_to_xcolors, x_disable_image)
14843 (x_build_heuristic_mask): Adapt for W32 and enable.
14844 (x_create_x_image_and_pixmap): Mark images with palettes as such.
14845 (xbm_load): Remove unused variable.
03670a65 14846
048addec 148472002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 14848
048addec 14849 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 14850
048addec 148512002-11-14 Dave Love <fx@gnu.org>
59daa29a 14852
048addec 14853 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 14854
048addec
JD
14855 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
14856 * xmenu.c (unuse_menu_items, digest_single_submenu):
14857 * xfns.c (x_put_x_image):
14858 * xdisp.c (message2_nolog, set_message):
14859 * undo.c (record_point):
14860 * terminfo.c (tparam):
14861 * syntax.c (scan_sexps_forward):
14862 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14863 * composite.c (update_compositions):
14864 * cm.c (calccost, cmgoto):
14865 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 14866
048addec 14867 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 14868
048addec
JD
14869 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
14870 Don't declare.
59daa29a 14871
048addec 14872 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 14873
048addec
JD
14874 * fns.c (Fcopy_sequence): Doc fix.
14875 (Fmap_char_table): Cast `call2'.
3947677c 14876
048addec
JD
148772002-11-14 Francesco Potorti` <pot@gnu.org>
14878
14879 * s/sol2-8.h: New file.
14880
148812002-11-14 Kim F. Storm <storm@cua.dk>
14882
14883 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
14884 dependency on `risky-local-variable' and the :propertize form.
14885
148862002-11-12 Stefan Monnier <monnier@cs.yale.edu>
14887
14888 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
14889
14890 * syntax.c (scan_sexps_forward): Undo last patch.
14891 Use a more obvious fix: check eob before updating the syntax table.
14892
148932002-11-09 Stefan Monnier <monnier@cs.yale.edu>
14894
14895 * syntax.c (scan_sexps_forward): Update syntax table before reading
14896 a char rather than after so we don't update the table past eob.
14897
148982002-11-09 Dave Love <fx@gnu.org>
14899
14900 * buffer.c (Fset_buffer_major_mode): Fix last change.
14901
14902 * regex.c (regexec): Fix pmatch declaration.
14903
14904 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
14905
14906 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
14907 to self-inserting characters.
14908 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
14909
14910 * coding.c (Vtranslation_table_for_input): New.
14911 (syms_of_coding): DEFVAR it.
14912
149132002-11-08 Juanma Barranquero <lektu@terra.es>
14914
14915 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
14916 window.
14917
149182002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14919
6bdb309a 14920 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
14921 cp, and i.
14922
149232002-11-06 Dave Love <fx@gnu.org>
14924
14925 * buffer.c (Qset_buffer_major_mode_hook): New.
14926 (Fset_buffer_major_mode): Use it.
14927
149282002-11-06 Richard M. Stallman <rms@gnu.org>
14929
14930 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
14931 and stop_polling.
14932
14933 * process.c (wait_reading_process_input):
14934 Test POLLING_PROBLEM_IN_SELECT, not hpux.
14935 Avoid initialization for auto Lisp_Object var.
14936
14937 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
14938
14939 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
14940
149412002-11-05 Richard M. Stallman <rms@gnu.org>
14942
14943 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
14944
14945 * callint.c (Fcall_interactively): New local filter_specs.
14946 (Fcall_interactively): Check for progn as well as let.
14947 Add a gcpro.
14948 (Qprogn): New variable.
14949 (syms_of_callint): Staticpro and init Qprogn.
14950
149512002-11-04 John Paul Wallington <jpw@shootybangbang.com>
14952
14953 * lread.c (Feval_buffer): Doc fix.
14954
149552002-11-04 Dave Love <fx@gnu.org>
14956
14957 * keyboard.c (read_char): Always translate iff
14958 Vkeyboard_translate_table is a char table and c is valid.
14959
14960 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14961 and fix C types.
14962
149632002-11-03 Stefan Monnier <monnier@cs.yale.edu>
14964
14965 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
14966
14967 * editfns.c (get_pos_property): Don't hardcode Qfield.
14968
14969 * keyboard.c (adjust_point_for_property): Handle `display' prop on
14970 overlays. Also handle `invisible' prop.
14971
149722002-11-02 Stefan Monnier <monnier@cs.yale.edu>
14973
14974 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
14975 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
14976
149772002-11-01 Andreas Schwab <schwab@suse.de>
14978
14979 * editfns.c (Fmessage): Revert last change to properly handle %%.
14980
149812002-11-01 Stefan Monnier <monnier@cs.yale.edu>
14982
14983 * xmenu.c (unuse_menu_items): New fun.
14984 (menu_items_inuse): New var.
14985 (syms_of_xmenu): Initialize it.
14986 (init_menu_items): Use it to detect re-entrance.
14987 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
14988 (Fx_popup_menu): Remove spurious XSETFRAME.
14989
14990 * editfns.c (find_field): Make an exception for nil fields.
14991
149922002-11-01 Dave Love <fx@gnu.org>
14993
14994 * m/gec63.h: Deleted.
14995
149962002-10-31 Dave Love <fx@gnu.org>
14997
14998 * xterm.c (XTread_socket): Fix last change.
14999 (xaw_scroll_callback): Cast call_data to long to avoid warning.
15000
150012002-10-31 Stefan Monnier <monnier@cs.yale.edu>
15002
15003 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
15004
150052002-10-30 Stefan Monnier <monnier@cs.yale.edu>
15006
15007 * editfns.c (overlays_around, get_pos_property): New funs.
15008 (find_field): Use them.
15009 Also be careful not to modify POS before its last use.
15010 (Fmessage): Don't Fformat if there's nothing to format.
15011
150122002-10-30 Dave Love <fx@gnu.org>
15013
15014 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
15015 [HAVE_PTY_H]; Include pty.h.
15016
15017 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
15018
15019 * xterm.c (Qeql): Declare.
15020 (Vx_keysym_table): New.
15021 (syms_of_xterm): Initialize it.
15022 (XTread_socket): Use it. Deal with ASCII keysyms.
15023 (XSetIMValues) [HAVE_X11R6]: Prototype.
15024
15025 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
15026 (lispy_kana_keys): Comment out.
15027 (make_lispy_event) [XK_kana_A]: Comment out.
15028 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
15029 Fix sprintf call.
15030
15031 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
15032 regexp.h change).
15033 (TERMINFO, LIBS_TERMCAP): Define.
15034
15035 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
15036 (bcmp): Define conditional on HAVE_BCMP.
15037 (NO_SIOCTL_H): Don't define.
15038 (TIOCSIGSEND): Don't make conditional on IRIX6.
15039
15040 * s/sol2-5.h: Don't include strings.h.
15041 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
15042
15043 * s/irix6-0.h (IRIX6): Don't define.
15044 (bcopy, bcmp, bzero): Don't undef.
15045
15046 * s/irix6-5.h: Don't include strings.h.
15047 (IRIX6): Don't define.
15048 (bcopy, bcmp, bzero): Don't undef.
15049
15050 * syntax.c (Fforward_comment): Doc fix.
15051
150522002-10-29 Kim F. Storm <storm@cua.dk>
15053
15054 * process.c (Fsignal_process): Allow PROCESS to be specified by
15055 name in addition to pid (as integer or string).
15056
150572002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
15058
15059 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
15060 environments.
15061
150622002-10-27 Kim F. Storm <storm@cua.dk>
15063
15064 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15065
15066 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
15067
15068 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
15069
15070 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15071
150722002-10-26 Richard M. Stallman <rms@gnu.org>
15073
15074 * editfns.c (Fformat): Detect invalid format letters for floats.
15075
150762002-10-25 Kenichi Handa <handa@m17n.org>
15077
15078 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
15079 (x_set_title): Likewise.
15080
150812002-10-25 Juanma Barranquero <lektu@terra.es>
15082
15083 * macgui.h:
15084 * w32gui.h: Remove definition of XColor.
15085
15086 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
15087
150882002-10-24 Kim F. Storm <storm@cua.dk>
15089
15090 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
15091 Callers changed (supply dummy arg).
15092
15093 * lisp.h (get_window_cursor_type): Update prototype.
15094
15095 * w32term.c (x_display_and_set_cursor): Get active_cursor from
15096 get_window_cursor_type to track system caret.
15097
150982002-10-24 Kim F. Storm <storm@cua.dk>
15099
15100 * process.c (Fformat_network_address): New function.
15101 (syms_of_process): Defsubr it.
15102 (list_processes_1): Use it to format :local/:remote address if
f9711de4 15103 service/host is not set; before Emacs would crash in that case.
048addec
JD
15104 (Fmake_network_process): Don't use Ffind_operation_coding_system
15105 to setup coding system if host or service is not set.
15106
151072002-10-23 Juanma Barranquero <lektu@terra.es>
15108
15109 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
15110
15111 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
15112 COLORREF.
15113
15114 * macgui.h:
15115 * w32gui.h: Add definition of XColor.
15116
15117 * macfns.c:
15118 * w32fns.c:
15119 * xfaces.c: Remove definition of XColor.
15120
151212002-10-22 Stefan Monnier <monnier@cs.yale.edu>
15122
15123 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
15124
15125 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
15126 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
15127 window if it is dedicated.
15128 (Fshrink_window): Add preserve_before as was done for enlarge_window.
15129 (Vspecial_display_function): Update docstring.
15130
15131 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
15132 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
15133 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
15134
151352002-10-21 Stefan Monnier <monnier@cs.yale.edu>
15136
15137 * casefiddle.c (casify_region): Don't treat a prefix char as part
15138 of a word when at the beginning.
15139
151402002-10-17 Juanma Barranquero <lektu@terra.es>
15141
15142 * lread.c (syms_of_lread): Fix typos.
15143
151442002-10-17 Dave Love <fx@gnu.org>
15145
15146 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
15147
151482002-10-16 Richard M. Stallman <rms@gnu.org>
15149
15150 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
15151
151522002-10-14 Juanma Barranquero <lektu@terra.es>
15153
15154 * w16select.c (syms_of_win16select): Fix docstring for
15155 `selection-coding-system'.
15156
15157 * w32select.c (syms_of_w32select): Likewise.
15158
151592002-10-14 Stefan Monnier <monnier@cs.yale.edu>
15160
15161 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
15162 a backslash-quoted char.
15163 (scan_lists, scan_sexps_forward): Pacify the compiler.
15164
151652002-10-13 Richard M. Stallman <rms@gnu.org>
15166
15167 * window.c (window_scroll): Set immediate_quit.
15168
15169 * print.c (print): When backquote form is the car of a list,
15170 output in old style. Use old_backquote_output to output all
15171 comma forms inside it in old style too.
15172
15173 * buffer.h (struct buffer): Move `undo_list' down below `name'.
15174
151752002-10-11 Markus Rost <rost@math.ohio-state.edu>
15176
15177 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
15178 batch mode).
15179
15180 * lread.c (Fload): Doc fix (load-suffixes).
15181
151822002-10-10 Steven Tamm <steventamm@mac.com>
15183
15184 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
15185 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
15186 Also switch the default to Qnil from Qt.
15187
151882002-10-08 Kenichi Handa <handa@m17n.org>
15189
15190 * coding.c (code_convert_region): When we need more GAP for
15191 conversion, pay attention to the case that coding->produced is not
15192 greater than coding->consumed.
15193
151942002-10-07 Richard M. Stallman <rms@gnu.org>
15195
15196 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
15197
151982002-10-06 Andrew Choi <akochoi@shaw.ca>
15199
15200 * macmenu.c (mac_menu_show): Add j to count menu items; match
15201 menu_item_selection to it to find selected item.
15202
152032002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15204
15205 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
15206 cases. The correct fix is to pass ReparentNotify to Xt.
15207 The shell widget interprets ConfigureNotify differently depending
15208 on if it has been reparented or not.
15209
152102002-10-05 Markus Rost <rost@math.ohio-state.edu>
15211
15212 * editfns.c (Fformat_time_string): Doc fix.
15213
152142002-10-05 John Paul Wallington <jpw@shootybangbang.com>
15215
15216 * fns.c (Flength): Doc fix.
15217
152182002-10-04 Stefan Monnier <monnier@cs.yale.edu>
15219
15220 * keyboard.c (keyremap): New struct.
15221 (read_key_sequence): Use it: globally replace keytran_foo with
15222 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
15223 keytran_next and fkey_next to just `next'.
15224
152252002-10-04 Steven Tamm <steventamm@mac.com>
15226
15227 * macterm.c (keycode_to_xkeysym_table): Change return to be
15228 treated like an X keysym.
15229
152302002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15231
15232 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
15233 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
15234 This is to also handle x/y changes that occur because of a resize.
15235
152362002-10-02 John Paul Wallington <jpw@shootybangbang.com>
15237
15238 * frame.c (Vdelete_frame_functions): New variable.
15239 (syms_of_frame): Initialize and defvar it.
15240 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
15241 it when frame's `tooltip' parameter is non-nil.
15242
15243 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
15244
15245 * w32fns.c (x_create_tip_frame): Likewise.
15246
15247 * macfns.c (x_create_tip_frame): Likewise.
15248
152492002-09-30 Kenichi Handa <handa@m17n.org>
15250
15251 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
15252 -1 before calling ccl_driver.
15253
15254 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
15255 Only when it is non-nil, handle composition sequence.
15256 (setup_coding_system) <0>: Don't force composition handling.
15257
15258 * Makefile.in (lisp, shortlisp): Add utf-16.elc
15259
152602002-09-29 Richard M. Stallman <rms@gnu.org>
15261
15262 * search.c (Freplace_match): Adjust match data for the substitution
15263 just made in the buffer.
15264
15265 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
15266 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
15267
152682002-09-27 Richard M. Stallman <rms@gnu.org>
15269
15270 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
15271 (read_char): Use them. Do all exits thru the end of the function.
15272
152732002-09-27 Kenichi Handa <handa@etl.go.jp>
15274
15275 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
15276 is nil.
15277
152782002-09-26 Richard M. Stallman <rms@gnu.org>
15279
15280 * regex.h (__restrict_arr): Don't define if already defined.
15281
15282 * coding.c (run_pre_post_conversion_on_str):
15283 Save and restore Vdeactivate_mark.
15284
152852002-09-26 John Paul Wallington <jpw@shootybangbang.com>
15286
15287 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
15288
152892002-09-26 Kenichi Handa <handa@etl.go.jp>
15290
15291 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
15292 nonzero, try face's family at first. Otherwise try FAMILY at first.
15293 (choose_face_font): If C is a single byte char or latin-1, call
15294 try_font_list with PREFER_FACE_FAMILY 1.
15295
152962002-09-21 Richard M. Stallman <rms@gnu.org>
15297
15298 * window.c (select_window_1): Don't select frame.
15299 Set frame's selected window only when frame itself is selected.
15300 (Fselect_window): Doc fix.
15301
153022002-09-18 Kim F. Storm <storm@cua.dk>
15303
15304 * process.c (make-network-process): Doc fix (there is no
15305 network-server-log-function hook).
15306
153072002-09-18 Richard M. Stallman <rms@gnu.org>
15308
15309 * print.c (print): Clear out the unused parts of Vprint_number_table.
15310 (syms_of_print): Doc fix for `print-number-table'.
15311
15312 * unexelf.c (unexec): Undo previous change.
15313
153142002-09-17 Andreas Schwab <schwab@suse.de>
15315
15316 * m/alpha.h [LINUX]: Don't define DATA_START.
15317
153182002-09-16 Dave Love <fx@gnu.org>
15319
15320 * unexelf.c (unexec): Deal with .got, reinstating change from
15321 25-08-1999.
15322
153232002-09-13 Richard M. Stallman <rms@gnu.org>
15324
15325 * s/sol2-6.h (UNEXEC): Comment out definition.
15326
15327 * unexsol.c (unexec): Don't downcase first letter of error msg.
15328
15329 * xfaces.c (Fcolor_supported_p): Just one arg is required.
15330
153312002-09-12 Markus Rost <rost@math.ohio-state.edu>
15332
15333 * unexsol.c: Include buffer.h, charset.h, coding.h.
15334
153352002-09-11 Richard M. Stallman <rms@gnu.org>
15336
15337 * unexsol.c: Don't use report_file_error; do it by hand
15338 using dlerror.
15339
15340 * process.c (wait_reading_process_input, both versions):
15341 Before calling turn_on_atimers, call stop_polling.
15342
15343 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
15344
15345 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
15346 we go to too_near_end, call clear_glyph_matrix.
15347 (redisplay_window): After make_cursor_line_fully_visible,
15348 call clear_glyph_matrix and bypass `goto done'.
15349
15350 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
15351 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
15352
153532002-09-10 Richard M. Stallman <rms@gnu.org>
15354
15355 * fileio.c (Fdo_auto_save): Catch error making directory.
15356 Only call push_message if we need to.
15357 At the same time, make an unwind-protect to pop it.
15358 Rename local message_p to old_message_p.
15359 (do_auto_save_make_dir, do_auto_save_eh): New functions.
15360 (do_auto_save_unwind): Don't call pop_message.
15361
15362 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
15363
15364 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
15365
15366 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
15367
15368 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
15369
153702002-09-10 Stefan Monnier <monnier@cs.yale.edu>
15371
15372 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
15373 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
15374 (re_match_2_internal): Be more careful with infinite loops.
15375
153762002-09-10 Kim F. Storm <storm@cua.dk>
15377
15378 * macros.c (end_kbd_macro): New function.
15379 (Fend_kbd_macro): Use it.
15380
15381 * macros.h (end_kbd_macro): Declare extern.
15382
15383 * keyboard.c (Fdiscard_input): If defining keyboard macro,
15384 end and save it instead of discarding it.
15385
153862002-09-09 Markus Rost <rost@math.ohio-state.edu>
15387
15388 * s/sol2-6.h: Fix typo. Add comment.
15389
153902002-09-09 Richard M. Stallman <rms@gnu.org>
15391
15392 * regex.c (regnum_t): Use signed int, not unsigned int.
15393
15394 * s/sol2-6.h: New file.
15395
15396 * s/sol2-5.h (UNEXEC): Definition deleted.
15397
153982002-09-08 Kim F. Storm <storm@cua.dk>
15399
15400 * macros.c (executing_macro_index): Change type to EMACS_INT.
15401 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
15402
15403 * macros.h (executing_macro_index): Change type to EMACS_INT.
15404
154052002-09-06 Richard M. Stallman <rms@gnu.org>
15406
15407 * casetab.c (set_case_table): Make canon table point to eqv table.
15408
154092002-09-06 Juanma Barranquero <lektu@terra.es>
15410
15411 * coding.c (syms_of_coding): Fix spacing.
15412
15413 * composite.c (Fcompose_region_internal)
15414 (Fcompose_string_internal): Likewise.
15415
15416 * data.c (Flsh): Likewise.
15417
15418 * fontset.c (Fset_fontset_font): Likewise.
15419
15420 * macfns.c (Fx_server_max_request_size): Likewise.
15421
15422 * w16select.c (syms_of_win16select): Likewise.
15423
15424 * w32select.c (syms_of_w32select): Likewise.
15425
15426 * xselect.c (syms_of_xselect): Likewise.
15427
154282002-09-05 Richard M. Stallman <rms@gnu.org>
15429
15430 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
15431 call EXTEND_RANGE_TABLE and return a proper value.
15432 (set_image_of_range): Don't call set_image_of_range_1
15433 if no TRANSLATE or if range includes all of Latin-1.
15434 Only call it for the Latin-1 part of the range.
15435 For other cases, make two separate ranges,
15436 one for the original specified characters and one for
15437 their case-conversions.
15438
154392002-09-04 Richard M. Stallman <rms@gnu.org>
15440
15441 * s/sol2-5.h (UNEXEC): Use unexsol.o.
15442
15443 * window.c (displayed_window_lines): Correct for one-off bug
15444 in HEIGHT on non-window displays.
15445
15446 * regex.c (set_image_of_range_1): New function.
15447 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
15448 Return a value to indicate running out of memory.
15449 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
15450 (extend_range_table_work_area): New subroutine.
15451 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
15452 Different calling conventions, and used from set_image_of_range{,_1}.
15453 (IMMEDIATE_QUIT_CHECK): Definitions moved.
15454
154552002-09-04 Juanma Barranquero <lektu@terra.es>
15456
15457 * makefile.w32-in: All dependencies updated.
15458
154592002-09-01 Richard M. Stallman <rms@gnu.org>
15460
15461 * unexsol.c: New file.
15462
15463 * xfns.c (Qbox): Declare external, don't define.
15464
15465 * xdisp.c (redisplay_window) <force-start case>:
15466 If point is on semi-visible last line, reposition
15467 it at previous line.
15468
15469 * alloc.c (display_malloc_warning): Use display-warning.
15470 (malloc_warning_1): Function deleted.
15471
15472 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
15473
15474 * lread.c (read1): Handle #! by skipping the line.
15475
154762002-08-31 Richard M. Stallman <rms@gnu.org>
15477
15478 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
15479 Don't include LDFLAGS.
15480 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
15481
154822002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
15483
15484 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
15485 member of x_display_info unless we compile for some window system.
15486
154872002-08-31 Kim F. Storm <storm@cua.dk>
15488
15489 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
15490 (get_window_cursor_type): Don't use them.
15491 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
15492
154932002-08-30 Kenichi Handa <handa@etl.go.jp>
15494
15495 * xdisp.c (get_next_display_element): Fix previous change.
15496
154972002-08-30 Andrew Choi <akochoi@shaw.ca>
15498
15499 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
15500 (expose_window): Use it to fix the display of overlapping
15501 rows (merge code from xterm.c).
15502
15503 * macfns.c (Qbox): Add extern declaration.
15504
155052002-08-30 Juanma Barranquero <lektu@terra.es>
15506
15507 * w32fns.c (Qbox): Make extern.
15508 (syms_of_w32fns): Remove initialization of Qbox.
15509
155102002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
15511
15512 * xfns.c (Fx_open_connection): Fix error message.
15513
155142002-08-30 Kim F. Storm <storm@cua.dk>
15515
15516 The following changes consolidates the handling of the cursor
15517 type in xdisp.c, moving duplicate code and functionality from
15518 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
15519
15520 * frame.h (enum text_cursor_kinds): Consolidated here.
15521 Added DEFAULT_CURSOR value.
15522 (struct frame) <desired_cursor, cursor_width>
15523 <blink_off_cursor, blink_off_cursor_width>: New fields.
15524 Consolidated from output_x, output_w32 and output_mac structs.
15525 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15526 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
15527
15528 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
15529 Variables consolidated here.
15530 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
15531 (Vcursor_in_non_selected_windows): Renamed from
15532 cursor_in_non_selected_windows and changed to Lisp_Object.
15533 (syms_of_xdisp): Define and staticpro new and moved variables.
15534 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
15535 consolidated here. Recognize Qhollow setting.
15536 (set_frame_cursor_types): New function to set frame cursor types
15537 based on the frame parameters.
15538 (get_window_cursor_type): New function to calculate new cursor
15539 type and width for the specified window. Based on duplicated
15540 code consolidated here.
15541 Enhancements: cursor-in-non-selected-windows may be a cursor type,
15542 check buffer-local alternate-cursor-type and blink-cursor-alist
15543 before using built-in blink off methods.
15544
15545 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
15546
15547 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
15548 (get_specified_cursor_type, get_window_cursor_type)
15549 (set_frame_cursor_types): Added prototypes.
15550
15551 * macfns.c (x_specified_cursor_type): Removed.
15552 (x_set_cursor_type): Use set_frame_cursor_types.
15553 (Qbar, Qbox): Removed.
15554 (syms_of_macfns): Don't intern or staticpro them.
15555
15556 * macterm.c (x_specified_cursor_type): Remove prototype.
15557 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15558 (x_display_and_set_cursor): Use get_window_cursor_type.
15559 Remove unused local variables cursor_non_selected, active_cursor.
15560 Redraw cursor if hbar cursor width changes.
15561 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
15562
15563 * macterm.h (enum text_cursor_kinds): Removed.
15564 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
15565 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15566 (FRAME_DESIRED_CURSOR): Macro removed.
15567
15568 * w32fns.c (Vblink_cursor_alist): Removed.
15569 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15570 (syms_of_w32fns): Don't intern, staticpro, or define them.
15571 (x_specified_cursor_type): Removed.
15572 (x_set_cursor_type): Use set_frame_cursor_types.
15573
15574 * w32term.c (x_specified_cursor_type): Remove prototype.
15575 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15576 (x_display_and_set_cursor): Use get_window_cursor_type.
15577 Remove unused local variables cursor_off_state.
15578 Redraw cursor if hbar cursor width changes.
15579 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
15580
15581 * w32term.h (enum text_cursor_kinds): Removed.
15582 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
15583 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15584 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15585 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15586 (struct w32_display_info) <x_highlight_frame>: Renamed member from
15587 w32_highlight_frame.
15588
15589 * xfns.c (Vblink_cursor_alist): Removed.
15590 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15591 (syms_of_xfns): Don't intern, staticpro, or define them.
15592 (x_specified_cursor_type): Removed.
15593 (x_set_cursor_type): Use set_frame_cursor_types.
15594
15595 * xterm.c (x_specified_cursor_type): Remove prototype.
15596 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15597 (x_display_and_set_cursor): Use get_window_cursor_type.
15598 Remove unused local variables cursor_off_state.
15599 Redraw cursor if hbar cursor width changes.
15600
15601 * xterm.h (enum text_cursor_kinds): Removed.
15602 (struct output_x) <current_cursor, desired_cursor, cursor_width>
15603 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15604 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15605 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15606 (x_specified_cursor_type): Remove prototype.
15607
156082002-08-28 Richard M. Stallman <rms@gnu.org>
15609
15610 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15611 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15612 (Vblink_cursor_alist): New variable.
15613 (syms_of_w32fns): Initialize and defvar it.
15614 (x_specified_cursor_type): Recognize Qbox for filled box.
15615 Exceptions are hollow boxes.
15616 (Qbox, Qhollow): New variables.
15617 (syms_of_w32fns): Initialize and staticpro them.
15618
15619 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15620 New macros.
15621 (struct w32_output): New fields blink_off_cursor,
15622 blink_off_cursor_width.
15623 (FRAME_CURSOR_WIDTH): New macro.
15624
15625 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15626 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15627
15628 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15629 for bar cursor.
15630
15631 * w32term.c (expose_overlaps): New function.
15632 (expose_window): Use it to fix the display of overlapping rows.
15633
156342002-08-28 Simon Josefsson <jas@extundo.com>
15635
15636 * xfns.c (Fx_open_connection): Improve help when X connection
15637 fails, xhost is insecure and xauth is better.
15638
156392002-08-28 Juanma Barranquero <lektu@terra.es>
15640
15641 * makefile.w32-in: Add missing dependencies on w32term.h and
15642 composite.h.
15643
15644 * emacs.c (USAGE1): Add missing newline.
15645
156462002-08-27 Andrew Choi <akochoi@shaw.ca>
15647
15648 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
15649
156502002-08-27 Richard M. Stallman <rms@gnu.org>
15651
15652 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15653 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15654 (Vblink_cursor_alist): New variable.
15655 (syms_of_xfns): Initialize and defvar it.
15656 (x_specified_cursor_type): Recognize Qbox for filled box.
15657 Exceptions are hollow boxes.
15658 (Qbox, Qhollow): New variables.
15659 (syms_of_xfns): Initialize and staticpro them.
15660
15661 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15662 New macros.
15663 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
15664
15665 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15666 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15667
15668 * emacs.c (main): Handle --script.
15669 (USAGE1): Mention --script.
15670 (standard_args): Define sort order for --script.
15671
156722002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
15673
15674 * xdisp.c (redisplay_updating_p): Variable removed.
15675 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
15676 New variables.
15677 (init_iterator): Don't free realized faces if
15678 inhibit_free_realized_faces is set.
15679 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
15680 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
15681 initialize Qinhibit_free_realized_faces.
15682
15683 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
15684 when iterator is adding glyphs to a glyph matrix.
15685
156862002-08-27 Kenichi Handa <handa@etl.go.jp>
15687
15688 * xdisp.c (get_next_display_element): In unibyte case, don't use
15689 octal form for such eight-bit characters that can be converted to
15690 multibyte char.
15691
156922002-08-26 Kim F. Storm <storm@cua.dk>
15693
b6189c3b
KS
15694 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
15695 foreground and background colors. From Joe Buehler.
048addec
JD
15696
156972002-08-26 Miles Bader <miles@gnu.org>
15698
15699 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
15700
157012002-08-25 Andrew Choi <akochoi@shaw.ca>
15702
15703 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
15704 defined instead of MAC_OSX.
15705
15706 * s/darwin.h (select): Define select to sys_select only if
15707 HAVE_CARBON is defined.
15708 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
15709 (DONT_REOPEN_PTY): #def it.
15710
15711 * macterm.c (XTread_socket): Remove code to call
15712 SendEventToEventTarget for keys with command modifiers when
15713 mac_command_key_is_meta is nil.
15714
157152002-08-24 Andreas Schwab <schwab@suse.de>
15716
15717 * eval.c (Fdefvar): Fix last change.
15718
157192002-08-23 Richard M. Stallman <rms@gnu.org>
15720
15721 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
15722 Record variables in load history as (defvar . VAR).
15723 (Fdefvar): Don't record in load history if no initial value.
15724 (Qdefvar): New variable.
15725 (syms_of_eval): Init and staticpro it.
15726
15727 * lread.c (syms_of_lread): Doc fix.
15728 (build_load_history): Use Fmember to see if a definition
15729 is already in the Vload_history element.
15730
15731 * process.c (Fstart_process): Remove /: from program name.
15732
15733 * emacs.c (decode_env_path): Don't add /: if file name handler
15734 has a `safe-magic' property.
15735
15736 * callproc.c (Fcall_process): Remove /: from program name.
15737
157382002-08-23 Stefan Monnier <monnier@cs.yale.edu>
15739
15740 * regex.c (PATFETCH): Remove the translating fetch.
15741 (PATFETCH_RAW): Rename to PATFETCH.
15742 (set_image_of_range): New fun.
15743 (SET_RANGE_TABLE_WORK_AREA): Use it.
15744 (regex_compile): Don't translate the pattern chars so eagerly.
15745 Only do it when inserting an `exactn' bytecode or when handling
15746 a char-range.
15747 (mutually_exclusive_p): Avoid empty statement.
15748
157492002-08-22 Kim F. Storm <storm@cua.dk>
15750
15751 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
15752 end up on a partially visible line; this reverts a specific part
15753 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
15754 display error which has been reported several times now.
15755 However it introduces the problem that changes was supposed to fix.
15756 See my comments in the source if you want to debug this further.
15757
157582002-08-20 Kenichi Handa <handa@etl.go.jp>
15759
15760 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15761
157622002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
15763
15764 * msdos.c (croak): Add `void' to definition.
15765
c1380aa6 15766 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
15767 Don't define them, they are defined in msdos.c.
15768
15769 * mem-limits.h [MSDOS]: Declare etext.
15770
15771 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
15772 `const' since CORRECT_DIR_SEPS modifies its target.
15773
157742002-08-19 Kim F. Storm <storm@cua.dk>
15775
2fb0ce67 15776 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
15777 KEEP-RECORD to avoid clearing lossage when we just want to clear
15778 the current key sequence (kmacro needs this).
15779
157802002-08-19 Kenichi Handa <handa@localhost>
15781
15782 * composite.c (run_composition_function): Call FUNC if it is fboundp.
15783
15784 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
15785 cons, return Qnil.
15786
157872002-08-17 Richard M. Stallman <rms@gnu.org>
15788
15789 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
15790
15791 * sysdep.c [!VMS]: Include sys/files.h.
15792
15793 * editfns.c (save_restriction_restore): Defend from unchained marker.
15794
15795 * buffer.c (overlays_at): Handle extending vec uniformly.
15796 (overlays_in): Handle extending vec from length 0 as in overlays_at.
15797
157982002-08-15 Andrew Choi <akochoi@shaw.ca>
15799
15800 * mac.c (init_mac_osx_environment): New function.
15801
15802 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
15803
158042002-08-14 Kim F. Storm <storm@cua.dk>
15805
15806 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
15807 executing macro before appending to it (when used from Lisp).
15808 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
15809 which is called prior to each iteration of macro (for kmacro.el).
15810 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
15811
15812 * lisp.h (Fexecute_kbd_macro): Update prototype.
15813
15814 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
15815
158162002-08-14 Kenichi Handa <handa@etl.go.jp>
15817
15818 * xselect.c (QUTF8_STRING): New variable.
15819 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
15820 (x_atom_to_symbol): Likewise.
15821 (x_get_local_selection): New argument local_request. If it is
15822 nonzero, call handler_fn with the second arg nil.
15823 (x_handle_selection_request): Call x_get_local_selection with
15824 local_request 0.
15825 (lisp_data_to_selection_data): Don't encode the string here.
15826 (Fx_get_selection_internal): Call x_get_local_selection with
15827 local_request 1.
15828 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
15829
15830 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
15831
15832 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
15833
158342002-08-13 Richard M. Stallman <rms@gnu.org>
15835
15836 * minibuf.c (Fminibufferp): New function.
15837 (syms_of_minibuf): Defsubr it.
15838 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
15839
158402002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
15841
15842 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
15843
158442002-08-12 Richard M. Stallman <rms@gnu.org>
15845
15846 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
15847 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
15848 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
15849 already.
15850
15851 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
15852
158532002-08-11 Andrew Choi <akochoi@shaw.ca>
15854
15855 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
15856 (Vmac_pass_command_to_system): New variable.
15857 (Vmac_pass_control_to_system): New variable.
15858 (do_mouse_moved): Check wp with is_emacs_window.
15859 (XTread_socket): Check window_ptr with is_emacs_window.
15860 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
15861 events back to Mac Toolbox for processing, depending on values of
15862 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
15863 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
15864 Vmac_pass_control_to_system.
15865
158662002-08-10 Kenichi Handa <handa@etl.go.jp>
15867
15868 * coding.c (unencodable_char_position): New function.
15869 (Funencodable_char_position): New function.
15870 (syms_of_coding): Defsubr Funencodable_char_position.
15871
158722002-08-10 Andrew Choi <akochoi@shaw.ca>
15873
15874 * mac.c (sys_select) [MAC_OSX]: New function.
15875
15876 * macterm.c (MakeMeTheFrontProcess): New function.
15877 (mac_initialize): Call MakeMeTheFrontProcess.
15878
15879 * s/darwin.h: Define select to sys_select.
15880
158812002-08-09 Richard M. Stallman <rms@gnu.org>
15882
15883 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
15884
158852002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
15886
15887 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
15888 end of the buffer.
15889
158902002-08-08 Ken Raeburn <raeburn@mit.edu>
15891
15892 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
15893
15894 * puresize.h (BASE_PURESIZE): Increase to 910000.
15895
158962002-08-08 Kenichi Handa <handa@etl.go.jp>
15897
15898 * coding.c (Ffind_operation_coding_system): For write-region, if
15899 VISIT is a filename, make it the target.
15900
159012002-08-07 Richard M. Stallman <rms@gnu.org>
15902
15903 * alloc.c (mark_object): Detect long lists for debugging.
15904 (mark_object_loop_halt): New variable.
15905
15906 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
15907
15908 * data.c (Fmake_variable_frame_local): Doc fix.
15909
159102002-08-01 David Ponce <david@dponce.com>
15911
15912 * w32menu.c (local_heap, local_alloc, local_free): New macros.
15913 (malloc_widget_value, free_widget_value)
15914 (w32_free_submenu_strings): Use them.
15915
15916 (push_submenu_start, push_submenu_end, push_left_right_boundary)
15917 (push_menu_pane, push_menu_item, single_keymap_panes)
15918 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
15919 (single_submenu, set_frame_menubar)
15920 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
15921
15922 (Fx_popup_menu): Don't show pop up menu until preceding one is
15923 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
15924
15925 * w32menu.c: Changes adapted from xmenu.c
15926 (set_frame_menubar): First parse all submenus,
15927 then make widget_value trees from them.
15928 Don't allocate any widget_value objects
15929 until we are done with the parsing.
15930 (parse_single_submenu): New function.
15931 (digest_single_submenu): New function.
15932 (single_submenu): Function deleted, replaced by those two.
15933
159342002-08-04 Andrew Choi <akochoi@shaw.ca>
15935
15936 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
15937 returns a valid window pointer before proceeding for keyDown and
15938 autoKey events.
15939
159402002-08-03 Andrew Choi <akochoi@shaw.ca>
15941
15942 * macterm.c (USE_CARBON_EVENTS): New macro.
15943 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
15944 (x_iconify_frame): Call CollapseWindow.
15945 (Vmac_reverse_ctrl_meta): New variable.
15946 (Vmac_wheel_button_is_mouse_2): New variable.
15947 (init_mac_drag_n_drop): New function.
15948 (mac_do_receive_drag): New function.
15949 (mac_handle_service_event): New function.
15950 (init_service_handler): New function.
15951 (mac_to_emacs_modifiers): New function.
15952 (mac_event_to_emacs_modifiers): New function.
15953 (mac_get_mouse_btn): New function.
15954 (mac_convert_event_ref): New function.
15955 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
15956 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
15957 mac_get_mouse_btn.
15958 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
15959
15960 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
15961 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
15962 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
15963 TOOL_BAR_EVENT for MAC_OS as well.
15964 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
15965 as for WINDOWS_NT.
15966 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
15967
15968 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
15969
159702002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
15971
15972 * xdisp.c (forward_to_next_line_start): Fix a condition that
15973 lead to a newline being skipped.
15974
159752002-08-02 Andrew Choi <akochoi@shaw.ca>
15976
15977 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
15978
159792002-08-01 Richard M. Stallman <rms@gnu.org>
15980
15981 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
15982
159832002-07-31 Andrew Choi <akochoi@shaw.ca>
15984
15985 * macfns.c: #undef init_process before #define-ing it.
15986
15987 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
15988 HAVE_CARBON is defined.
15989
159902002-07-31 Richard M. Stallman <rms@gnu.org>
15991
15992 * xmenu.c (set_frame_menubar): First parse all submenus,
15993 then make widget_value trees from them.
15994 Don't allocate any widget_value objects
15995 until we are done with the parsing.
15996 (parse_single_submenu): New function.
15997 (digest_single_submenu): New function.
15998 (single_submenu): Function deleted, replaced by those two.
15999
160002002-07-30 Juanma Barranquero <lektu@terra.es>
16001
16002 * w32proc.c (syms_of_ntproc): Fix docstring of
16003 `w32-get-true-file-attributes'.
16004
160052002-07-28 Richard M. Stallman <rms@gnu.org>
16006
16007 * s/hpux8.h (HPUX8): Define this before including hpux.h.
16008 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
16009
16010 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
16011
16012 * keyboard.c (make_lispy_event):
16013 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
16014 Explicitly clear up_modifier in event->modifiers.
16015
160162002-07-27 Richard M. Stallman <rms@gnu.org>
16017
16018 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
16019
16020 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16021 for bar cursor.
16022
160232002-07-26 Kenichi Handa <handa@etl.go.jp>
16024
16025 * coding.c (detect_coding_iso2022): While checking a byte sequence
16026 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
16027 it in the normal loop.
16028
160292002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
16030
16031 * xterm.c (expose_overlaps): New function.
16032 (expose_window): Use it to fix the display of overlapping rows.
16033
16034 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
16035
160362002-07-23 Ken Raeburn <raeburn@gnu.org>
16037
16038 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
16039 since it only depends on XUINT.
16040
16041 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
16042 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
16043 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
16044 Macros deleted.
3947677c 16045
77d1daf2
AS
16046 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
16047 its value over other approaches.
16048 * sysdep.c (start_of_data): Don't define the function if a macro
16049 form has been defined.
8a8e19a3 16050
048addec
JD
160512002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
16052
16053 * xdisp.c (redisplay_updating_p): New variable.
16054 (init_iterator): Don't free realized faces when
16055 redisplay_updating_p is set.
16056 (redisplay_internal): Set redisplay_updating_p while updating
16057 the display.
16058
160592002-07-23 Richard M. Stallman <rms@gnu.org>
16060
16061 * editfns.c (Fmessage): Treat "" like nil.
16062
160632002-07-23 Kenichi Handa <handa@etl.go.jp>
16064
16065 * xdisp.c (face_before_or_after_it_pos):
16066 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16067
160682002-07-22 Juanma Barranquero <lektu@terra.es>
16069
16070 * callproc.c (init_callproc) [DOS_NT]:
16071 Initialize Vshared_game_score_directory to nil.
16072 (syms_of_callproc) [DOS_NT]: Likewise.
16073
160742002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
16075
16076 * xdisp.c (display_line): Replace an abort with xassert.
16077
160782002-07-21 Richard M. Stallman <rms@gnu.org>
16079
16080 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
16081 and END_UNCHANGED when setting buffer_unchanged_p.
16082 Use current_matrix_up_to_date_p to decide whether to use
16083 try_cursor_movement.
16084
16085 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
16086
16087 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
16088
16089 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
16090 Set to nil if dir does not exist.
16091 (syms_of_callproc): Init unconditionally and simply.
16092
16093 * buffer.c (Fbuffer_list): Doc fix.
16094
160952002-07-21 Ken Raeburn <raeburn@gnu.org>
16096
16097 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
16098
16099 * buffer.c (mmap_realloc): When shrinking, make sure number of
16100 pages to unmap is rounded towards zero.
16101
16102 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
16103 (XSETINT): Deleted.
16104
16105 * m/att3b.h (XINT): Don't define.
16106 (VALBITS, VALMASK, XTYPE): Deleted.
16107 (DATA_SEG_BITS): Define.
16108 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
16109 ARRAY_MARK_FLAG): Deleted.
16110 (DATA_SEG_BITS): Define.
16111 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
16112 (DATA_SEG_BITS): Define.
16113
161142002-07-20 Richard M. Stallman <rms@gnu.org>
16115
16116 * print.c (print_error_message): New args CONTEXT and CALLER.
16117 Calls changed.
16118
16119 * lisp.h (print_error_message): Declare new args.
16120
16121 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
16122 and CONTEXT to print_error_message, don't print them here.
16123 For a Quit, don't use Vsignaling_function.
16124 Call message_log_maybe_newline.
16125
16126 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
16127
161282002-07-20 Kim F. Storm <storm@cua.dk>
16129
16130 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
16131
161322002-07-19 Ken Raeburn <raeburn@gnu.org>
16133
16134 * bytecode.c (struct byte_stack): Pointers into byte string now
16135 point to const.
16136 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
16137 const.
16138 * charset.h (BCOPY_SHORT): Source pointer now points to const.
16139 * coding.c (encode_eol, detect_coding, detect_eol):
16140 (decode_coding, encode_coding, detect_coding_system):
16141 Source strings now treated as const.
16142 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
16143 modify Lisp string contents.
16144 * coding.h (decode_coding, encode_coding, detect_coding,
16145 detect_eol): Declarations updated.
16146 * composite.c (compose_chars_in_text): Treat Lisp string contents
16147 as const.
16148 * dispnew.c (safe_bcopy): Source pointer now points to const.
16149 * lisp.h (STRING_COPYIN): New macro.
16150 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
16151 (internal_with_output_to_temp_buffer): Declarations updated.
16152 * print.c (temp_output_buffer_setup):
16153 (internal_with_output_to_temp_buffer): Buffer name argument is now
16154 pointer to const.
16155 * sound.c (struct sound_device): Function pointer field "write"
16156 buffer argument now points to const.
16157 (vox_write): Buffer argument points to const.
16158 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
16159 contents as const.
16160 * sysdep.c (emacs_write): Buffer pointer now const.
16161 * term.c (encode_terminal_code): Buffer pointer now const.
16162 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
16163 (x_face_list_fonts, x_update_menu_appearance):
16164 (hash_string_case_insensitive): Treat Lisp string contents as const.
16165
161662002-07-19 Juanma Barranquero <lektu@terra.es>
16167
048addec
JD
16168 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
16169
16170 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
16171 (Ffile_name_as_directory): Fix argument name in docstring.
16172 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
16173
161742002-07-18 Richard M. Stallman <rms@gnu.org>
16175
16176 * data.c (Fdefalias): Doc fix.
16177
161782002-07-17 Dave Love <fx@gnu.org>
16179
16180 * intervals.h (text_property_stickiness): Use P_.
16181
16182 * ccl.c: Remove `emacs' conditionals.
16183 (ccl_backtrace_table): Fix size spec.
16184 (ccl_driver): Fix type errors.
16185
161862002-07-16 Ken Raeburn <raeburn@gnu.org>
16187
16188 * alloc.c (xstrdup, make_string, make_unibyte_string)
16189 (make_multibyte_string, build_string): String pointer args now
16190 point to const.
16191 * charset.c (find_charset_in_text, c_string_width):
16192 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
16193 * fileio.c (report_file_error):
16194 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
16195 (count_combining_before, count_combining_after, insert_1_both):
16196 (insert, insert_and_inherit, insert_string):
16197 (insert_before_markers, insert_before_markers_and_inherit):
16198 * lread.c (intern, oblookup, hash_string):
16199 * minibuf.c (temp_echo_area_glyphs):
16200 * search.c (fast_c_string_match_ignore_case):
16201 * sysdep.c (emacs_open, set_file_times):
16202 * xfaces.c (xstricmp):
16203 * xdisp.c (store_frame_title, string_char_and_length):
16204 (message_dolog, message2, message2_nolog, set_message): Likewise.
16205 (set_message_1): Cast message string argument to const pointer.
16206 * editfns.c (general_insert_function): Insertion function now
16207 takes pointer to const for input data.
16208 * charset.h (find_charset_in_text, c_string_width):
16209 (parse_str_as_multibyte): Declarations updated.
16210 * dispextern.h (xstricmp): Declaration updated.
16211 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
16212 (count_size_as_multibyte, count_combining_before):
16213 (count_combining_after, insert_1, insert_1_both, message_dolog):
16214 (insert, insert_and_inherit, insert_before_markers)
16215 (insert_before_markers_and_inherit, set_message, message2):
16216 (message2_dolog, build_string, make_string, make_unibyte_string):
16217 (make_multibyte_string, intern, oblookup, report_file_error):
16218 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
16219 (emacs_open, xstrdup): Declarations updated.
16220 * systime.h (set_file_times): Declaration updated.
16221
16222 * charset.c (find_charset_in_text, lisp_string_width): Use const
16223 for pointer to lisp string data.
16224 * charset.h (FETCH_STRING_CHAR_ADVANCE):
16225 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
16226 * coding.c (Ffind_coding_systems_region_interval):
16227 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
16228 (Fmake_directory_internal, Fdelete_directory):
16229 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
16230 * fontset.c (font_family_registry, fs_query_fontset):
16231 (list_fontsets):
16232 * frame.c (Fframe_parameter):
16233 * keyboard.c (cmd_error_internal):
16234 * keymap.c (Fdescribe_buffer_bindings):
16235 * lread.c (complete_filename_p, openp):
16236 * minibuf.c (Fminibuffer_complete_word):
16237 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
16238 (face_before_or_after_it_pos, next_element_from_string):
16239 (get_overlay_arrow_glyph_row, display_mode_element):
16240 (decode_mode_spec_coding):
16241 * xterm.c (same_x_server): Likewise.
16242
16243 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
16244 settings of non-existent fields.
16245
16246 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
16247 copy a lisp value.
16248
16249 * lread.c (Fintern_soft): Use string macros instead of
16250 Lisp_String fields.
16251 * keyboard.c (echo_char, parse_modifiers_uncached):
16252 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
16253 * textprop.c (validate_interval_range, interval_of): Likewise.
16254
16255 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
16256
16257 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16258 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
16259 XSTRING()->size_byte.
16260
16261 * lisp.h (SDATA, SREF): Produce rvalue.
16262 (SSET): New macro.
16263 * alloc.c (make_event_array): Use SSET for storing into a string.
16264 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
16265 a string.
16266 * casefiddle.c (casify_object): Use SSET.
16267 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16268 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
16269 address of string contents.
16270 * data.c (Faref): Use SDATA.
16271 (Faset): Use SDATA, SSET.
16272 * dired.c (directory_files_internal): Use SSET.
16273 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
16274 (Fread_file_name): Use SREF, SSET.
16275 * fns.c (concat): Use SSET.
16276 (concat, Fdelete): Use SDATA.
16277 * insdel.c (insert_from_string_1): Use SDATA.
16278 * keyboard.c (Fevent_convert_list): Use SREF.
16279 * lread.c (Fload): Use SDATA, SSET.
16280 * macfns.c (validate_x_resource_name): Use SSET.
16281 * process.c (status_message): Use SSET.
16282 * search.c (wordify): Use SDATA.
16283 (Freplace_match): Use SREF.
16284 * w32fns.c (validate_x_resource_name): Use SSET.
16285 * xfns.c (validate_x_resource_name): Use SSET.
16286 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
16287
162882002-07-16 Richard M. Stallman <rms@gnu.org>
16289
16290 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
16291
16292 * xdisp.c (reconsider_clip_changes):
16293 Don't test prevent_redisplay_optimizations_p.
16294 (redisplay_internal): Test prevent_redisplay_optimizations_p
16295 along with clip_changed in some cases.
16296 (try_window_id): Likewise.
16297 (redisplay_window): New local var buffer_unchanged_p.
16298
16299 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
16300
16301 * process.c (create_process): Test USG_SUBTTY_WORKS.
16302 (process_send_signal): Clean up handling of GID.
16303 Detect errors in ioctls meant to set GID.
16304
16305 * window.c (temp_output_buffer_show):
16306 Don't set prevent_redisplay_optimizations_p.
16307
163082002-07-15 Juanma Barranquero <lektu@terra.es>
16309
16310 * eval.c (Fdefvaralias): Add docstring argument.
16311
163122002-07-15 Ken Raeburn <raeburn@gnu.org>
16313
16314 * lisp.h (STRING_INTERVALS): Produce rvalue.
16315 (STRING_SET_INTERVALS): New macro.
16316 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
16317 * fns.c (Fstring_as_multibyte): Likewise.
16318 * intervals.c (balance_possible_root_interval, delete_interval)
16319 (create_root_interval, copy_intervals_to_string): Likewise.
16320 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
16321 instead of 0.
16322
163232002-07-14 Ken Raeburn <raeburn@gnu.org>
16324
16325 * lisp.h (STRING_SET_CHARS): New macro.
16326 (SCHARS, SBYTES): Produce rvalues.
16327 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
16328 * fns.c (concat): Likewise.
16329 * lread.c (read_vector): Likewise.
16330
3419757d 16331 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 16332 (STRING_SET_UNIBYTE): New macro.
3419757d 16333 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
16334 length of -1) changed to use STRING_SET_UNIBYTE.
16335 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16336 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
16337 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
16338 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
16339 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
16340 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
16341 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
16342 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
16343 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16344 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
16345 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
16346 STRING_BYTES or indirection changed to SCHARS, SBYTES,
16347 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
16348 unchanged for now.
16349
163502002-07-13 Kim F. Storm <storm@cua.dk>
16351
16352 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
16353
163542002-07-12 Richard M. Stallman <rms@gnu.org>
16355
16356 * fileio.c (Fwrite_region): Doc fix.
16357
16358 * print.c (print_error_message): Don't handle Vsignaling_function here.
16359
16360 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
16361 (command_loop_1): Avoid certain actions after memory-full error.
16362
16363 * eval.c (Fsignal): Don't call cancel_hourglass.
16364 For a memory-full error, don't call Vsignal_hook_function
16365 and don't set Vsignaling_function.
16366
16367 * process.c (process_send_signal): Add abort call.
16368
163692002-07-11 Markus Rost <rost@math.ohio-state.edu>
16370
16371 * keymap.c (Fkey_binding): Fix typo.
16372
163732002-07-11 Richard M. Stallman <rms@gnu.org>
16374
16375 * alloc.c (Vmemory_full): New variable.
3419757d 16376 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
16377 Uses changed.
16378 (syms_of_alloc): Defvar them.
16379 (memory_full, buffer_memory_full): Set Vmemory_full.
16380
16381 * lisp.h (Vmemory_full): Add declaration.
16382 (current_column, indented_beyond_p): Change declaration.
16383
16384 * indent.c (last_known_column): Declare as double, not float.
16385 (current_column, current_column_1, string_display_width)
16386 (position_indentation): Return `double'.
16387 (indented_beyond_p): Arg `column' is `double'. Callers changed.
16388
16389 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
16390 (back_to_previous_visible_line_start)
16391 (reseat_at_next_visible_line_start, next_element_from_buffer):
16392 Use `double', not `float', when calling indented_beyond_p.
16393
3419757d 16394 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
16395
16396 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
16397
163982002-07-11 Juanma Barranquero <lektu@terra.es>
16399
16400 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
16401 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
16402 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
16403 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
16404 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
16405 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
16406
164072002-07-10 Juanma Barranquero <lektu@terra.es>
16408
d814862a
JB
16409 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
16410 All callers changed.
048addec
JD
16411
164122002-07-09 Stefan Monnier <monnier@cs.yale.edu>
16413
16414 * data.c (Fdefalias): Add an optional `docstring' argument.
16415 (set_internal, Fsetq_default): Use XCAR/XCDR.
16416
16417 * composite.c (HASH_VALUE, HASH_KEY):
16418 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
16419
164202002-07-09 Kenichi Handa <handa@etl.go.jp>
16421
16422 * callproc.c (Fcall_process): Fix previous change.
16423
164242002-07-07 Stefan Monnier <monnier@cs.yale.edu>
16425
16426 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
16427 Add support for hash-tables.
16428 (Ftry_completion): Return t even if the string appears multiple times.
16429
16430 * fns.c (Fnconc): Use XCDR.
16431 (Fprovide): Use CONSP and XCDR.
16432 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16433 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
16434 (Fmake_hash_table): Accept `:size nil'.
16435 (Fmakehash): Delete: moved to subr.el.
16436 (syms_of_fns): Don't defsubr makehash.
16437
16438 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16439 (HASH_TABLE_SIZE): Move from fns.c.
16440
164412002-07-07 Richard M. Stallman <rms@gnu.org>
16442
16443 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
16444 Instead just return 0 when there is something to be done.
16445 (try_scrolling): If make_cursor_line_fully_visible returns 0,
16446 retry scrolling as if cursor were off the bottom.
16447 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
16448 return CURSOR_MOVEMENT_MUST_SCROLL.
16449 (redisplay_window): If make_cursor_line_fully_visible returns 0,
16450 go to try_to_scroll.
16451
16452 * buffer.c (Fbuffer_local_value): Store current value into its binding
16453 so we get the up-to-date value for the binding that is loaded.
16454
16455 * eval.c (Fdefmacro): Doc fix.
16456
164572002-07-05 Dave Love <fx@gnu.org>
16458
16459 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
16460 correctly.
16461
16462 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
16463 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
16464 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
16465 CCL_LookupCharConstTbl.
16466 (syms_of_ccl): Defvar translation-hash-table-vector.
16467
164682002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16469
16470 * xdisp.c: Remove unused variable `face'.
16471
164722002-07-04 Juanma Barranquero <lektu@terra.es>
16473
16474 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
16475 obsolescence information.
16476
164772002-07-03 Andrew Choi <akochoi@shaw.ca>
16478
16479 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
16480 pattern. Search cache first.
16481 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
16482 for Japanese font.
16483 (XLoadQueryFont): Use it.
16484
164852002-07-02 Richard M. Stallman <rms@gnu.org>
16486
16487 * keymap.c (Fdefine_key): Doc fix.
16488
16489 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
16490
164912002-07-02 Juanma Barranquero <lektu@terra.es>
16492
16493 * keymap.c (syms_of_keymap): Fix typo.
16494
164952002-07-01 Andrew Choi <akochoi@shaw.ca>
16496
16497 * s/darwin.h: Define POSIX_SIGNALS.
16498
16499 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
16500 and FSRefMakePath to convert FSSpec returned with Apple Event to
16501 Posix pathname.
16502 (mac_initialize) [TARGET_API_MAC_CARBON]:
16503 Call init_required_apple_events and disable the `Quit' menu item
16504 provided automatically by the Carbon Toolbox.
16505
165062002-07-01 Dave Love <fx@gnu.org>
16507
16508 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16509 for K&R.
16510
16511 * xterm.c: Fix prototype for K&R.
16512
16513 * term.c (costs_set): Declare static, non-initialized for pcc.
16514
165152002-07-01 Richard M. Stallman <rms@gnu.org>
16516
16517 * keyboard.c (timer_last_idleness_start_time): New variable.
16518 (timer_start_idle): Set that.
16519 (read_key_sequence): Use that to reset timer_idleness_start_time
16520 to previous value.
16521
16522 * window.c (Frecenter): With arg, set optional_new_start.
16523
16524 * xdisp.c (redisplay_internal): Make optional_new_start really work.
16525
16526 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
16527 buffer for completion.
16528
165292002-06-29 Ken Raeburn <raeburn@gnu.org>
16530
16531 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
16532
165332002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16534
16535 * keyboard.c (readable_filtered_events): New function that filters
16536 FOCUS_IN_EVENT depending on parameter.
16537 (readable_events): Calls readable_filtered_events, not filtering
16538 FOCUS_IN_EVENT.
16539 (get_filtered_input_pending): New function, filtering parameter passed
16540 to readable_filtered_events.
16541 (get_input_pending): Calls get_filtered_input_pending, not filtering
16542 FOCUS_IN_EVENT.
16543 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
16544 FOCUS_IN_EVENT.
16545
16546 * xterm.h (struct x_output): Add focus_state.
16547
16548 * xterm.c (x_focus_changed): New function.
16549 (x_detect_focus_change): New function.
16550 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
16551 EnterNotify and LeaveNotify to track X focus changes.
16552
165532002-06-28 Andreas Schwab <schwab@suse.de>
16554
16555 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
16556
165572002-06-27 Kim F. Storm <storm@cua.dk>
16558
52eb0373 16559 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
16560 (mode_line_string_face_prop): New variables.
16561 (store_mode_line_string): New function.
16562 (display_mode_element): Use store_mode_line_string to
16563 add mode-line string elements to mode_line_string_list
16564 when mode_line_string_list is non-nil.
16565 (Fformat_mode_line): Now returns propertized string by
16566 default. New arg NO-PROPS to ignore properties.
16567 (decode_mode_spec): Only add two dashes for %- in propertized
16568 mode-line string.
16569 (syms_of_xdisp): Init and staticpro mode_line_string_list.
16570
165712002-06-27 Stefan Monnier <monnier@cs.yale.edu>
16572
16573 * minibuf.c (minibuffer_completion_contents): Add return type.
16574
165752002-06-27 Juanma Barranquero <lektu@terra.es>
16576
16577 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
16578
165792002-06-26 Juanma Barranquero <lektu@terra.es>
16580
16581 * fileio.c (read_file_name_cleanup): Add missing return.
16582
165832002-06-26 Richard M. Stallman <rms@gnu.org>
16584
16585 * window.c (Frecenter): Don't set force_start flag.
16586
16587 * minibuf.c (do_completion, Fminibuffer_complete_word)
16588 (Fminibuffer_completion_help): Complete just the text before point.
16589 (minibuffer_completion_contents): New function.
16590
16591 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
16592
16593 * frame.c (frames_bury_buffer): Function deleted.
16594
165952002-06-25 Miles Bader <miles@gnu.org>
16596
16597 * callint.c (Fcall_interactively): When checking to see if doprnt hit
16598 the end of callint_message, allow for a terminating '\0'.
16599
166002002-06-24 Juanma Barranquero <lektu@terra.es>
16601
52eb0373 16602 * w32select.c: Include composite.h.
048addec
JD
16603
16604 * w16select.c: Likewise.
16605
166062002-06-24 Kenichi Handa <handa@etl.go.jp>
16607
16608 * callproc.c (Fcall_process): If code detection is necessary,
16609 call detect_coding directly here.
16610
16611 * coding.c (detect_eol): Preserve coding->cmp_data.
16612
16613 * w16select.c (Fw16_get_clipboard_data):
16614 * w32fns.c (w32_to_x_font):
16615 * w32select.c (Fw32_get_clipboard_data):
16616 * xselect.c (selection_data_to_lisp_data):
16617 * xterm.c (XTread_socket): Disable composition handling.
16618
166192002-06-24 Stefan Monnier <monnier@cs.yale.edu>
16620
16621 * print.c (temp_output_buffer_setup): Kill all local variables.
16622
166232002-06-22 Stefan Monnier <monnier@cs.yale.edu>
16624
16625 * lread.c (Fread): Remove redundant and imprecise declaration.
16626
16627 * xfns.c (check_x_display_info): Use check_x_frame.
16628
16629 * .gdbinit (xprintsym): Use the new `xname' field.
16630 (xsymbol): Use it.
16631
166322002-06-22 Jason Rumney <jasonr@gnu.org>
16633
16634 * w32fns.c (file_dialog_callback): New function.
16635 (Fx_file_dialog): Allow selecting directories as well as files.
16636
166372002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16638
16639 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 16640 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
16641
166422002-06-17 Andrew Choi <akochoi@shaw.ca>
16643
16644 * macterm.c (mac_scroll_area): Set foreground and backcolor to
16645 black and white before scrolling. Restore frame background and
16646 foreground color after scrolling.
16647 (do_window_update): Call XClearWindow before calling expose_frame.
16648 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
16649 FRAME_FOREGROUND_PIXEL of frame.
16650
16651 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16652 test Mac command key as <ALT> key.
16653
166542002-06-17 Stefan Monnier <monnier@cs.yale.edu>
16655
16656 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
16657
16658 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
16659 Lookup keys in function-key-map immediately so that key-translation-map
16660 can be applied earlier.
16661 Remove function_key_possible and key_translation_possible, replaced
16662 by checking `keytran_start < t'.
16663
16664 * .gdbinit (xsymbol): Use the new `xname' field.
16665
166662002-06-17 Andrew Choi <akochoi@shaw.ca>
16667
16668 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16669 test Mac command key as <ALT> key.
16670
16671 * mac.c (do_applescript): Call initialize_applescript if necessary
16672 when first called. Dispose of result_desc only when there is no error.
16673 (Fdo_applescript): Use %d format specifier instead of %ld.
16674
166752002-06-16 Andrew Choi <akochoi@shaw.ca>
16676
16677 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
16678 of FrontWindow for cases keyDown and autoKey.
16679
16680 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
16681 Vdefault_fontset to Monaco with mac-roman coding.
16682
16683 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
16684 init_process before and after inclusion of Carbon/Carbon.h, resp.
16685
16686 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
16687 cursor_gc.
16688 (add_font_name_table_entry): New function.
16689 (init_font_name_table): Use add_font_name_table_entry; add italic,
16690 bold, and bold-italic entries for truetype fonts.
16691
16692 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
16693 for Mac too.
16694 (try_font_list) [MAC_OS]: If no font matches given registry, try
16695 fonts with any registry matching face_family.
16696 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
16697
16698 * s/darwin.h: If autoconf detects the Ncurses library, define
16699 LIBS_TERMCAP to -lncurses to use it.
16700
167012002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
16702
16703 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
16704
167052002-06-15 Richard M. Stallman <rms@gnu.org>
16706
16707 * window.c (Fset_window_configuration): Explicitly preserve
16708 the point value that new_current_buffer had at the start.
16709
167102002-06-14 Juanma Barranquero <lektu@terra.es>
16711
16712 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
16713 Fix typos.
16714
167152002-06-14 Kim F. Storm <storm@cua.dk>
16716
16717 * insdel.c (insert_1_both, insert_from_string_1)
16718 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
16719 insert happened in the end_unchanged region. Otherwise, the
16720 redisplay may be confused and duplicate the last line in the
16721 buffer [seen after save-buffer when require-final-newline==t].
16722
167232002-06-13 Jason Rumney <jasonr@gnu.org>
16724
16725 * w32.c (init_environment): Remove EMACSLOCKDIR.
16726 (stat): Swap _S_IFDIR and _S_IFREG.
16727
167282002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16729
16730 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
16731 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
16732 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
16733 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
16734 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
16735 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
16736 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
16737 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
16738 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
16739 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
16740 SELECTION_REQUEST_EVENT, selection_clear_event to
16741 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
16742 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
16743 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
16744 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
16745 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
16746 no_event to NO_EVENT.
16747
167482002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16749
16750 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
16751
167522002-06-12 Stefan Monnier <monnier@cs.yale.edu>
16753
16754 * intervals.c (textget): Don't forget to `return'.
16755 (lookup_char_property): Use XCAR/XCDR.
16756
167572002-06-12 Juanma Barranquero <lektu@terra.es>
16758
16759 * xdisp.c (Fformat_mode_line): Fix typo.
16760
167612002-06-12 Kim F. Storm <storm@cua.dk>
16762
16763 * xdisp.c (Fformat_mode_line): New function.
16764 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
16765 (store_frame_title_char, store_frame_title): Use unconditionally.
16766 (init_xdisp): Defsubr Fformat_mode_line.
16767 Initialize frame_title_buf etc. unconditionally.
16768
167692002-06-11 Stefan Monnier <monnier@cs.yale.edu>
16770
16771 * keyboard.c (read_key_sequence):
16772 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
16773 things through those maps after downcasing events.
16774 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
16775 applies after function-key-map.
16776 Make sure that keytran can be done in the middle in the sequence.
16777 Be careful not to throw away events past the one we downcase.
16778
16779 * lread.c (read_integer): Remove unused var `tem'.
16780 (read1): Fix int/Lisp_Object mixup.
16781
16782 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
16783
167842002-06-11 Richard M. Stallman <rms@gnu.org>
16785
16786 * keyboard.c (readable_events): Ignore any number of
16787 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
16788
167892002-06-09 Miles Bader <miles@gnu.org>
16790
16791 * xfaces.c (Ftty_supports_face_attributes_p): New function.
16792 (parse_rgb_list, tty_lookup_color): New functions.
16793 (tty_defined_color): Use `tty_lookup_color' to do all the work.
16794 (color_distance, Fcolor_distance): New functions.
16795 (TTY_SAME_COLOR_THRESHOLD): New macro.
16796 (Qtty_color_standard_values): New variable.
16797 (syms_of_xfaces): Initialize new vars & functions.
16798
167992002-06-08 Colin Walters <walters@verbum.org>
16800
16801 * textprop.c (Vchar_property_alias_alist): New variable.
16802 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
16803
16804 * intervals.c (lookup_char_property): New function for looking up
16805 overlay and text properties, created from textget.
16806 (textget): Use it.
16807
16808 * intervals.h (lookup_char_property): Declare.
16809 (Vchar_property_alias_alist): Declare.
16810
16811 * buffer.c (Foverlay_get): Use lookup_char_property.
16812
168132002-06-07 Sam Steingold <sds@gnu.org>
16814
16815 * xselect.c (lisp_data_to_selection_data): Fix last change:
16816 *data_ret is not a Lisp string, while unibyte_string is.
16817
168182002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
16819
16820 * xselect.c (lisp_data_to_selection_data): Fix last change:
16821 set size_ret.
16822
168232002-06-07 Andreas Schwab <schwab@suse.de>
16824
16825 * m/amdx86-64.h: New file.
16826
168272002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
16828
16829 * fns.c (Fstring_make_unibyte): Doc fix.
16830
16831 * xselect.c (lisp_data_to_selection_data): If the requested type
16832 is STRING, call string_make_unibyte to encode the selected text
16833 as a string.
16834
16835 * window.c (Fset_window_hscroll): Doc fix.
16836
168372002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16838
16839 * fileio.c (choose_write_coding_system):
16840 Call select-safe-coding-system properly.
16841
168422002-06-03 Richard M. Stallman <rms@gnu.org>
16843
16844 * xdisp.c (message_with_string): Error if STRING is not a string.
16845
16846 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
16847
16848 * fileio.c (choose_write_coding_system): Pass FILE arg to
16849 Vselect_safe_coding_system_function.
16850
168512002-06-03 Ken Raeburn <raeburn@gnu.org>
16852
16853 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
16854
168552002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
16856
16857 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
16858 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
16859 * keymap.c (describe_command): Likewise.
16860 * minibuf.c (read_minibuf): Likewise.
16861
16862 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
16863 Cast `current_column' return value to int.
16864 (back_to_previous_visible_line_start)
16865 (reseat_at_next_visible_line_start, next_element_from_buffer):
16866 Cast `indented_beyond_p' 3rd arg to float.
16867
16868 * indent.c (last_known_column): Now a float.
16869 (current_column_1, position_indentation, current_column)
16870 (string_display_width): Return float.
16871 (Fcurrent_column): Cast `current_column' return value to int.
16872 (Fcurrent_indentation): Cast `position_indentation' retval to int.
16873 (indented_beyond_p): Third arg now a float.
16874 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
16875
16876 * lisp.h (current_column): Now returns float.
16877 (indented_beyond_p): 3rd arg now a float.
16878
168792002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
16880
16881 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
16882 is Qcompound_text_with_extensions.
16883
16884 * xselect.c (lisp_data_to_selection_data): Always set selection
16885 type as string if x_encode_text returns streingp non-NULL.
16886
16887 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
16888
168892002-05-30 Richard M. Stallman <rms@gnu.org>
16890
16891 * window.c (Fset_window_configuration): Correct the handling
16892 of point in current buffer, to work with multiple windows.
16893
168942002-05-29 Colin Walters <walters@verbum.org>
16895
16896 * lread.c (Fread_from_string): Don't depend on order of evaluation
16897 for C function parameters.
16898
168992002-05-28 Richard M. Stallman <rms@gnu.org>
16900
16901 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
16902 way for blinked-off state and for a nonselected window.
16903
16904 * window.c (window_scroll_pixel_based): Don't call Fbolp;
16905 instead, see if the new start pos is at beginning of line.
16906
16907 * fileio.c (Fwrite_region): If START is a string, don't
16908 make any annotations.
16909
16910 * eval.c (syms_of_eval): Doc fix.
16911
169122002-05-28 Colin Walters <walters@debian.org>
16913
16914 * emacs.c (USAGE1): Add --no-splash.
16915 (standard_args): Ditto.
16916
169172002-05-28 Colin Walters <walters@gnu.org>
16918
16919 * lread.c (readchar_count): New variable.
16920 (readchar): Increment it.
16921 (unreadchar): Decrement it.
16922 (read_multibyte): Decrement it.
16923 (Vread_with_symbol_positions): New variable.
16924 (Vread_symbol_positions_list): New variable.
16925 (read_internal_start): New function, created from Fread and
16926 Fread_from_string. Handle Vread_symbol_positions_list and
16927 Vread_with_symbol_positions.
16928 (readevalloop, Fread, Fread_from_string): Use it.
16929 (read1): Use readchar_count to add symbol positions to
16930 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
16931 (syms_of_lread): DEFVAR_LISP and initialize them.
16932
16933 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
16934 (substitute_object_recurse, substitute_object_in_subtree)
16935 (substitute_in_interval): Prototype.
16936 (read_multibyte): Return c if it's less than zero.
16937
169382002-05-28 Kim F. Storm <storm@cua.dk>
16939
16940 * fileio.c (Fread_file_name_internal): Added brute-force
16941 speed up for using predicate file-directory-p.
16942
169432002-05-28 Kim F. Storm <storm@cua.dk>
16944
16945 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
16946 New variables.
16947 (syms_of_fileio): DEFVAR_LISP them.
16948 (read_file_name_cleanup): New unwind function.
16949 (Fread_file_name_internal): Only return completions satifying
16950 Vread_file_name_predicate. Temporarily unwind protect and rebind
16951 default-directory while checking completions against the predicate.
16952 (Fread_file_name): Added PREDICATE argument. Specbind it to
16953 Vread_file_name_predicate during completion.
16954 Call Vread_file_name_function to read the file name if non-nil.
16955
16956 * lisp.h (Fread_file_name): Now has 6 args.
16957
16958 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
16959 predicate for Fread_file_name when reading directory name.
16960 Supply Qnil for predicate in other calls to Fread_file_name.
16961
169622002-05-26 Miles Bader <miles@gnu.org>
16963
16964 * term.c (tty_capable_p): New function.
16965 * dispextern.h (tty_capable_p): New function declaration.
16966 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
16967 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
16968
169692002-05-23 Stefan Monnier <monnier@cs.yale.edu>
16970
16971 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
16972 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
16973 (Vwrite_region_annotate_functions): Docstring fix.
16974
169752002-05-23 Kim F. Storm <storm@cua.dk>
16976
16977 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
16978 phys_cursor's hpos is overwritten. This is still not completely
16979 correct, as it doesn't really make sense to use hpos at all to
16980 get the cursor glyph (as that is relative to the width of the
16981 characters on the line, which may have changed during the update).
16982
169832002-05-22 Jason Rumney <jasonr@gnu.org>
16984
16985 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
16986 Lisp_Object.
16987 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
16988 Use modified enumfont_t struct.
16989
16990 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
16991
16992 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
16993 Handle the `hbar' cursor type.
16994 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
16995
16996 * w32fns.c (Qhbar): New variable.
16997 (x_specified_cursor_type): Use it.
16998
169992002-05-21 Ken Raeburn <raeburn@gnu.org>
17000
17001 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
17002 now, when the address is needed.
17003
170042002-05-21 Colin Walters <walters@gnu.org>
17005
17006 * Makefile.in (shortlisp): Add font-core.el.
17007
170082002-05-20 Richard M. Stallman <rms@gnu.org>
17009
17010 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
17011
17012 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
17013 equivalent key bindings here.
17014
170152002-05-20 Ken Raeburn <raeburn@gnu.org>
17016
17017 Change symbol structure to contain a lisp object for the symbol
17018 name:
17019 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
17020 object field named "xname".
17021 (SYMBOL_NAME): New macro.
17022 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
17023 name field.
17024 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
17025 (mark_object, gc_sweep): Use symbol xname field and XSTRING
17026 instead of name field.
17027 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
17028 SYMBOL_NAME instead of XSYMBOL and name field.
17029 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
17030 instead of XSYMBOL and name field.
17031 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
17032 and SYMBOL_NAME instead of XSYMBOL and name field.
17033 * coding.c (Fread_coding_system, code_convert_region1)
17034 (code_convert_string1, code_convert_string_norecord)
17035 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
17036 XSYMBOL and name field.
17037 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
17038 (Fmake_variable_buffer_local, Fmake_local_variable)
17039 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
17040 of XSYMBOL and name field.
17041 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
17042 XSYMBOL and name field.
17043 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
17044 instead of XSYMBOL and name field.
17045 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
17046 XSYMBOL and name field.
17047 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
17048 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17049 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
17050 instead of XSYMBOL and name field.
17051 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
17052 (parse_modifiers, apply_modifiers, Fevent_convert_list)
17053 (parse_solitary_modifier, Fexecute_extended_command):
17054 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17055 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
17056 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
17057 of XSYMBOL and name field.
17058 (describe_command, describe_translation): Use SYMBOL_NAME and
17059 assignment instead of XSYMBOL and name field and XSETSTRING.
17060 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
17061 instead of XSYMBOL and name field.
17062 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
17063 name field and XSETSTRING.
17064 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17065 of XSYMBOL and name field.
17066 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
17067 assignment instead of XSYMBOL and name field and XSETSTRING.
17068 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
17069 XSTRING instead of XSYMBOL and name field.
17070 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
17071 and XSTRING instead of XSYMBOL and name field.
17072 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
17073 and XSTRING instead of XSYMBOL and name field.
17074 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
17075 XSTRING instead of XSYMBOL and name field.
17076 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17077 of XSYMBOL and name field.
17078 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
17079 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17080
170812002-05-19 Ken Raeburn <raeburn@gnu.org>
17082
17083 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
17084 and XCDR real rvalues in most configurations.
17085
17086 * buffer.c (fix_overlays_in_range, fix_overlays_before):
17087 Don't take the address of the cdr part of a cons cell; instead, track
17088 the parent cell and call XSETCDR, or set the variable for the head
17089 of the list if we haven't started down the list yet.
17090
170912002-05-19 Richard M. Stallman <rms@gnu.org>
17092
17093 * doc.c (reread_doc_file): Don't ask for confirmation.
17094
170952002-05-18 Jason Rumney <jasonr@gnu.org>
17096
17097 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
17098 (xbm_load_image): Use it.
17099 (xbm_load): Ditto.
17100 (xbm_read_bitmap_data): Reverted to xfns.c version.
17101 From David Ponce <david@dponce.com>.
17102
171032002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
17104
17105 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
17106 2.02 and later.
17107
171082002-05-16 Juanma Barranquero <lektu@terra.es>
17109
17110 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
17111
171122002-05-15 Stefan Monnier <monnier@cs.yale.edu>
17113
17114 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
17115 meaningful test.
17116 (read_char_minibuf_menu_prompt): Fix typo.
17117
171182002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
17119
17120 * eval.c (Fcommandp): Doc fix.
17121
171222002-05-13 Stefan Monnier <monnier@cs.yale.edu>
17123
17124 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
17125 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
17126 (Fset_keymap_parent): Gcpro a bit more.
17127 (access_keymap): Gcpro around meta_map call and around the main loop.
17128 (get_keyelt): Gcpro when following indirect references.
17129 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
17130 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
17131 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
17132 Remove useless ad-hoc remap code.
17133
171342002-05-13 Richard M. Stallman <rms@gnu.org>
17135
17136 * search.c (search_buffer): Give up boyer moore search if inverse
17137 translation change charset_base.
17138
171392002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
17140
17141 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
17142 characters is carried over from the previous block of text, adjust
17143 coding->produced to account for the extra character.
17144
171452002-05-11 Andreas Schwab <schwab@suse.de>
17146
17147 * coding.c (intersection): Keep the elements of the returned list
17148 in the same order as in the first list.
17149
171502002-05-11 Kim F. Storm <storm@cua.dk>
17151
3419757d 17152 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
17153 only update cmm_size if realloc actually succeeds.
17154 Testing with initial size of 2 elements revealed that using
17155 realloc on GNU/Linux would cause a random trap in xmalloc
17156 later on, so I rewrote the code to use malloc/bcopy/free instead
17157 of realloc.
17158
171592002-05-10 Jason Rumney <jasonr@gnu.org>
17160
17161 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
17162
171632002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
17164
17165 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
17166 parens, to ensure correct evaluation order.
17167
171682002-05-10 Kim F. Storm <storm@cua.dk>
17169
17170 * keymap.c (Vemulation_mode_map_alists): New variable.
17171 (syms_of_keymap): DEFVAR_LISP it.
17172 (current_minor_maps): Process keymap alists in that list before
17173 minor-mode-overriding-map-alist and minor-mode-map-alist.
17174
171752002-05-09 Richard M. Stallman <rms@gnu.org>
17176
17177 * search.c (Freplace_match): Doc fix.
17178
171792002-05-09 Kim F. Storm <storm@cua.dk>
17180
17181 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17182 Enlarge cursor rectangle drawn around image with non-zero relief.
17183
17184 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
17185 Enlarge cursor rectangle drawn around image with non-zero relief.
17186
17187 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17188 Enlarge cursor rectangle drawn around image with non-zero relief.
17189
171902002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
17191
17192 * xselect.c (lisp_data_to_selection_data): Don't set selection
17193 type if comes from the Lisp object's car. If the selection
17194 contains a pure ASCII text, always return QSTRING as its type.
17195
171962002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17197
17198 * mac.c (mac-cut-function): Doc fix.
17199
172002002-05-05 Richard M. Stallman <rms@gnu.org>
17201
17202 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17203
172042002-05-04 Jason Rumney <jasonr@gnu.org>
17205
17206 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
17207 for event-click-count.
17208
17209 * process.c (init_process): Only add server subfeature if we can
17210 use non-blocking I/O.
17211
172122002-05-04 Andrew Choi <akochoi@shaw.ca>
17213
17214 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
17215 repeatedly.
17216
172172002-05-03 Jason Rumney <jasonr@gnu.org>
17218
17219 * process.c (Fmake_network_process): Only support server sockets
17220 when we can make them non-blocking.
17221
17222 * s/ms-w32.h (HAVE_SELECT): Define.
17223
17224 * w32.h (FILE_NDELAY): New flag.
17225
17226 * w32.c (sys_getpeername, fcntl): New functions.
17227 (_sys_read_ahead): Temporarily block on non-blocking sockets.
17228
2d4713aa 17229 * w32proc.c: Include sys/file.h.
048addec
JD
17230
172312002-05-03 Colin Walters <walters@verbum.org>
17232
17233 * callproc.c (Vgame_score_directory): Renamed to
17234 Vshared_game_score_directory.
17235
172362002-04-30 Richard M. Stallman <rms@gnu.org>
17237
17238 * s/gnu.h [emacs]: Include stdio.h.
17239 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
17240
17241 * eval.c (do_autoload): Error if called while preparing to dump.
17242
17243 * fns.c (Frequire): Error if need to load while preparing to dump.
17244
172452002-04-28 Colin Walters <walters@verbum.org>
17246
17247 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
17248 Default to "~/.emacs.d/games".
17249
172502002-04-29 Stefan Monnier <monnier@cs.yale.edu>
17251
17252 * lread.c (openp): Change arg exec_only to predicate.
17253 (build_load_history): Use XCAR/XCDR.
17254 (Flocate_file_internal): New fun.
17255 (syms_of_lread): Defsubr it.
17256 (Fload): Update call to openp.
17257
17258 * lisp.h (openp): Update prototype.
17259
17260 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
17261 * w32proc.c (sys_spawnve):
17262 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
17263 * w32.c (check_windows_init_file):
17264 * sound.c (Fplay_sound_internal):
17265 * process.c (Fstart_process):
17266 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
17267 * mac.c (run_mac_command):
17268 * emacs.c (init_cmdargs):
17269 * callproc.c (Fcall_process): Update call to openp.
17270
17271 * textprop.c (remove_properties): Don't use XCAR without CONSP.
17272
17273 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
17274
172752002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17276
17277 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
17278 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
17279
172802002-04-28 Richard M. Stallman <rms@gnu.org>
17281
17282 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
17283
17284 * eval.c (Fcommandp): New arg for_call_interactively.
17285 * lisp.h (Fcommandp): Declare new arg.
17286
172872002-04-28 Jason Rumney <jasonr@gnu.org>
17288
17289 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
17290
17291 * w32.c (stat, fstat): Use file index information to generate
17292 inodes for directories where available.
17293
172942002-04-26 Andrew Choi <akochoi@shaw.ca>
17295
17296 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
17297 [HAVE_CARBON]: Include Mac object files.
17298
17299 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
17300 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
17301 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
17302 MAC_OSX, and MAC_OS instead of macintosh.
17303
17304 * editfns.c [MAC_OS8]: Include stdio.h.
17305
17306 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
17307
17308 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
17309 Apple Monaco.
17310
78819ebb 17311 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
17312 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
17313 calling select.
17314
17315 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
17316
17317 * tparam.c [MAC_OSX]: Don't define BC and UP.
17318
17319 * config.in [HAVE_CARBON]: Add.
17320
17321 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
17322 Move here from mac/src and mac/inc.
17323
17324 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
17325
173262002-04-26 Gerd Moellmann <gerd@gnu.org>
17327
17328 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
17329 Compute phys_cursor_width from the x position returned
17330 by x_draw_glyhs, which is cheaper.
17331 (x_display_and_set_cursor): Compute the buffer-local value
17332 of `cursor-in-non-selected-windows' only when needed.
17333
173342002-04-25 Gerd Moellmann <gerd@gnu.org>
17335
17336 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
17337 cursor on a stretch glyph has a width that depends on
17338 x_stretch_cursor_p.
17339
173402002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17341
17342 * abbrev.c (abbrev-start-location): Doc fix.
17343
17344 * indent.c (Fvertical_motion): Fix last change.
17345
173462002-04-25 Gerd Moellmann <gerd@gnu.org>
17347
17348 * indent.c (Fvertical_motion): Move to the start of the line
17349 containing PT before moving up or down.
17350
173512002-04-24 Gerd Moellmann <gerd@gnu.org>
17352
17353 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
17354 case of writing a whole row, more or less analogous to the case of
17355 writing only parts of a row.
17356
17357 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
17358 0 for NO_CURSOR.
17359
17360 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
17361
173622002-04-23 Colin Walters <walters@verbum.org>
17363
17364 * buffer.c (syms_of_buffer): Doc fix.
17365
173662002-04-23 Gerd Moellmann <gerd@gnu.org>
17367
17368 * xterm.c (notice_overwritten_cursor): Handle the special case
17369 of the cursor being in the first blank non-text line at the
17370 end of a window.
17371
17372 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17373 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17374 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
17375 bar cursors only, to make phys_cursor_width contain what its name
17376 suggests.
17377 (notice_overwritten_cursor): Consider the cursor image erased if
17378 the output area intersects the cursor image in y-direction.
17379
173802002-04-23 Simon Marshall <simon@gnu.org>
17381
17382 * xfns.c (x_set_mouse_color): Change default for cross_cursor
17383 to XC_hand2.
17384
173852002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17386
17387 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
17388
173892002-04-22 Kim F. Storm <storm@cua.dk>
17390
17391 * textprop.c (remove_properties): Fixed trap for malformed plist.
17392
173932002-04-22 Richard M. Stallman <rms@gnu.org>
17394
17395 * cmds.c (Fend_of_line): Handle intangible text in mid line.
17396
17397 * window.c (make_window): Initialize height_fixed_p,
17398 last_cursor_off_p, and p->cursor_off_p slots.
17399
174002002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17401
17402 * fns.c (use-dialog-box): Doc fix.
17403
174042002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17405
17406 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
17407 variables `row', `i' and `area'.
17408 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
17409 toolkit library.
17410
174112002-04-19 Stefan Monnier <monnier@cs.yale.edu>
17412
17413 * xfaces.c (clear_font_table): Don't free the default font of
17414 a frame even if it's on another display.
17415 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
17416 that could be Qt.
17417
174182002-04-19 Juanma Barranquero <lektu@terra.es>
17419
17420 * indent.c (Fmove_to_column): Remove unused local variable
17421 `next_boundary_byte'.
17422 (current_column_1): Likewise.
17423
174242002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
17425
17426 * msdos.c (Qhbar): New variable.
17427 (syms_of_msdos): Intern and staticpro it.
17428 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
17429 cursor type.
17430
174312002-04-19 Dave Lambert <dlambert@acm.org>
17432
17433 Theses change implement an underscore-like (`hbar') cursor.
17434
17435 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17436
17437 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
17438 Handle the `hbar' cursor type.
17439 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17440
17441 * xfns.c (Qhbar): New variable.
17442 (syms_of_xfns): Intern and staticpro it.
17443 (x_specified_cursor_type): Handle `hbar' cursor.
17444
17445 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
17446 not defined.
17447
174482002-04-18 Richard M. Stallman <rms@gnu.org>
17449
17450 * textprop.c (remove_properties): New arg LIST allows scanning
17451 either a list or a plist.
17452 (interval_has_some_properties_list): New function, like
17453 interval_has_some_properties using list instead of plist.
17454 All callers changed.
17455 (Fremove_list_of_text_properties): New function.
17456 (syms_of_textprop): Defsubr it.
17457
174582002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17459
17460 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
17461
174622002-04-17 Juanma Barranquero <lektu@terra.es>
17463
17464 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
17465
174662002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17467
17468 * window.c (coordinates_in_window): Don't report on margin area
17469 if its width is zero.
17470
174712002-04-16 Jason Rumney <jasonr@gnu.org>
17472
17473 * w32fns.c (Fx_file_dialog): Decode file name before using.
17474
17475 * w32term.c (construct_drag_n_drop): Likewise.
17476
174772002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
17478
17479 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
17480 store load-history in pure space.
17481
17482 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
17483
174842002-04-16 Stefan Monnier <monnier@cs.yale.edu>
17485
17486 * xterm.c (Qlatin_1, Qutf_8): New vars.
17487 (syms_of_xterm): Initialize them.
17488 (XTread_socket): Eliminate incorrect optimization that tried to avoid
17489 decoding the output of X*LookupString.
17490 Always use latin-1 to decode the output of XLookupString.
17491 Try Xutf8LookupString if XmbLookupString failed.
17492
17493 * region-cache.c (new_region_cache): Use BEG.
17494
174952002-04-16 Gerd Moellmann <gerd@gnu.org>
17496
17497 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
17498 configuration files.
17499 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
17500 returns 0.
17501
175022002-04-15 Andreas Schwab <schwab@suse.de>
17503
17504 * config.in: Regenerated using autoheader.
17505
17506 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
17507 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
17508 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
17509 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
17510 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
17511 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
17512 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
17513 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
17514 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
17515 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
17516 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
17517 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
17518 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
17519 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
17520 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
17521 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
17522 STACK_DIRECTION, now set by autoconf.
17523
175242002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17525
17526 * dispnew.c (marginal_area_string): Sort arguments.
17527
17528 * dispextern.h (marginal_area_string): Add prototype.
17529
175302002-04-13 Richard M. Stallman <rms@gnu.org>
17531
17532 * fileio.c (Finsert_file_contents):
17533 Don't call temp_output_buffer_setup--do just part, by hand.
17534
17535 * coding.c (run_pre_post_conversion_on_str):
17536 Don't call temp_output_buffer_setup--do just part, by hand.
17537
17538 * keyboard.c (command_loop_1): Don't call start_hourglass
17539 or cancel_hourglass when executing a macro.
17540
17541 * marker.c (count_markers): New function.
17542
17543 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
17544 grow without limit. Move recently used elements to the front.
17545
175462002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
17547
17548 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
17549
175502002-04-12 Gerd Moellmann <gerd@gnu.org>
17551
17552 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
17553 rows marginal areas.
17554 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
17555 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
17556
17557 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
17558
175592002-04-12 Dave Love <fx@gnu.org>
17560
17561 * dispnew.c (marginal_area_string): New.
17562
17563 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
17564 (Qleft_margin, Qright_margin): Declare.
17565 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
17566
17567 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
17568 note_mode_line_highlight and extended.
17569
17570 * keyboard.c (Qleft_margin, Qright_margin): Declare.
17571 (make_lispy_event): Deal with mouse events in margins.
17572
175732002-04-12 Stefan Monnier <monnier@cs.yale.edu>
17574
17575 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
17576
17577 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
17578 than deactivating the mark if tmm is set to `lambda'.
17579 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
17580 Use a single event for HELP_EVENT.
17581 (Fexecute_extended_command): Save last_point_position.
17582
175832002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17584
17585 * lisp.h (Fpropertize): Add prototype.
17586
17587 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
17588
175892002-04-10 Colin Walters <walters@verbum.org>
17590
17591 * config.in: Add HAVE_SHARED_GAME_DIR.
17592
52eb0373 17593 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
17594 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
17595
175962002-04-10 Richard M. Stallman <rms@gnu.org>
17597
17598 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
17599
176002002-04-09 Stefan Monnier <monnier@cs.yale.edu>
17601
17602 * minibuf.c (read_minibuf): Use empty_string.
17603 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
17604 Short-circuit the search as soon as it "failed".
17605 (Fall_completions): Allow lambda forms and lists of strings for alist.
17606 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
17607 when require_match is nil.
17608 (Ftest_completion): Rename from `test_completion' and export to elisp.
17609 Call the predicate also when alist is a list.
17610 Obey Vcompletion_regexp_list.
17611 (do_completion, Fminibuffer_complete_and_exit): Use it.
17612 (Fassoc_string): Rename from `assoc_for_completion'.
17613 Allow list of strings as well and export to elisp.
17614
176152002-04-08 Stefan Monnier <monnier@cs.yale.edu>
17616
17617 * puresize.h (BASE_PURESIZE): Increase to 900KB.
17618
176192002-04-08 Juanma Barranquero <lektu@terra.es>
17620
17621 * w32.c (sys_accept): Don't hide variable `s'.
17622
176232002-04-05 Gerd Moellmann <gerd@gnu.org>
17624
17625 * callint.c (Fcall_interactively): Use INTEGERP instead of
17626 NUMBERP for checking Vhistory_length.
17627
176282002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17629
17630 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
17631 Doc fix to reflect it.
17632
176332002-04-04 Richard M. Stallman <rms@gnu.org>
17634
17635 * xdisp.c (display_mode_element): New arg RISKY.
17636 Disregard text props found or specified within a variable
17637 that isn't marked risky-local-variable.
17638 (Qrisky_local_variable): New variable.
17639 (syms_of_xdisp): Init and staticpro it.
17640
176412002-04-04 Stefan Monnier <monnier@cs.yale.edu>
17642
17643 * undo.c (record_point): New fun.
17644 (record_delete, record_insert): Use it.
17645
176462002-04-03 Juanma Barranquero <lektu@terra.es>
17647
17648 * doc.c (Fdocumentation): Add missing parentheses.
17649 (Fdocumentation_property): Likewise.
17650
176512002-04-03 Stefan Monnier <monnier@cs.yale.edu>
17652
17653 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
17654 data is 0, just return nil.
17655
176562002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
17657
17658 * msdos.c (syms_of_msdos): Fix last change with
17659 mouse_autoselect_window.
17660
176612002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17662
17663 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
17664 mouse_autoselect_window.
17665
176662002-04-02 Stefan Monnier <monnier@cs.yale.edu>
17667
17668 * keyboard.c (make_lispy_event): Handle unknown keysyms together
17669 with system-specific keysyms. Use it also for unknown function keys.
17670
17671 * doc.c (reread_doc_file): Return whether reload was attempted.
17672 (Fdocumentation, Fdocumentation_property): Don't try to reload
17673 if the doc is 0 and only ask once.
17674
17675 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
17676
176772002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
17678
17679 * keyboard.c (read_char): If the event was Qselect_window,
17680 restore timer_idleness_start_time to its previous value.
17681
17682 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
17683
176842002-04-01 Stefan Monnier <monnier@cs.yale.edu>
17685
17686 * region-cache.c (new_region_cache): Use BEG.
17687
17688 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
17689 Use BEG and BEG_BYTE.
17690
17691 * doc.c (get_doc_string): Return nil if the location is wrong.
17692 (reread_doc_file): New fun.
17693 (Fdocumentation, Fdocumentation_property):
17694 Call it if get_doc_string fails.
17695 (Fsnarf_documentation): Make it work for a dumped Emacs.
17696
17697 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
17698 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
17699
17700 * charset.c (Fstring): Allow 0 arguments.
17701
17702 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
17703
17704 * process.c (DATAGRAM_CONN_P, list_processes_1)
17705 (Fprocess_datagram_address, Fset_process_datagram_address)
17706 (Fset_network_process_options, server_accept_connection):
17707 Fix some int/Lisp_Object confusions (thank you union types).
17708
177092002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17710
17711 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
17712
17713 * w32term.c: Likewise.
17714 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
17715
17716 * keyboard.c (Qselect_window): New symbol.
17717 (head_table): Use it.
17718 (keys_of_keyboard): Bound select-window event to handle-select-window.
17719 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
17720
17721 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
17722 (last_window): New variable.
17723 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
17724 (note_mouse_movement): Remove reimplemented code in #if 0.
17725 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
17726 Emacs windows.
17727
17728 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
17729
177302002-03-31 Gerd Moellmann <gerd@gnu.org>
17731
17732 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
17733 Callers changed.
17734
177352002-03-30 Richard M. Stallman <rms@gnu.org>
17736
17737 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
17738 loop whenever it stops making progress.
17739
17740 * widget.c (set_frame_size): Don't call change_frame_size.
17741
177422002-03-30 Gerd Moellmann <gerd@gnu.org>
17743
17744 * dispnew.c (direct_output_for_insert):
17745 Call mark_window_display_accurate.
17746
177472002-03-29 Jason Rumney <jasonr@gnu.org>
17748
17749 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
17750
177512002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
17752
17753 * Makefile.in (lread.o): Depend on coding.h.
17754
17755 * lread.c (openp, Fload): Encode the file name before passing it
17756 to `stat', `access', and `emacs_open'.
17757 (openp): GCPRO the encoded file name. Don't recompute Lisp
17758 strings unnecessarily.
17759
177602002-03-29 Kim F. Storm <storm@cua.dk>
17761
17762 * fns.c (Flax_plist_put): Doc fix.
17763
177642002-03-28 Miles Bader <miles@gnu.org>
17765
17766 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
17767
177682002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17769
17770 * process.c (set-network-process-options): Add usage.
17771 (make-network-process): Doc fix.
17772
177732002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
17774
17775 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
17776
177772002-03-26 Richard M. Stallman <rms@gnu.org>
17778
17779 * fns.c (Fsubstring_no_properties): New function.
17780 (Flax_plist_get, Flax_plist_put): New functions.
17781 (syms_of_fns): defsubr them.
17782
17783 * xdisp.c (update_menu_bar): Test only update_mode_lines;
17784 don't test or alter w->update_mode_line.
17785
17786 * window.c (Fdisplay_buffer): Doc fix.
17787
177882002-03-24 Richard M. Stallman <rms@gnu.org>
17789
17790 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
17791
177922002-03-24 Gerd Moellmann <gerd@gnu.org>
17793
17794 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
17795 (Fdefmacro): Handle `(declare ...)'.
17796 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
17797 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
17798
177992002-03-24 Jason Rumney <jasonr@gnu.org>
17800
17801 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
17802 (xbm_file_p): Add prototypes.
17803 (xbm_format, xbm_image_p): Sync with xfns.c.
17804 (reflect_byte): New function.
17805 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
17806 (xbm_load_image): Create bitmaps with a depth of 1.
17807 (init_xfns): Enable XBM images.
17808
178092002-03-23 Jason Rumney <jasonr@gnu.org>
17810
17811 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
17812 correctly. Do not pass up_modifier to keyboard buffer.
17813
17814 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
17815
178162002-03-22 Stefan Monnier <monnier@cs.yale.edu>
17817
17818 * Makefile.in (bootstrapclean): New target.
17819 (bootstrap-temacs, bootstrap-doc): Remove.
17820 (bootstrap-emacs): Use a bog-standard `temacs'.
17821 Don't bother to build a DOC file.
17822
17823 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
17824
17825 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
17826 in temacs even if !CANNOT_DUMP.
17827 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
17828
17829 * alloc.c (check_pure_size): Only output a warning.
17830
178312002-03-22 Jason Rumney <jasonr@gnu.org>
17832
17833 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
17834 supported.
17835
17836 * w32term.c (zv_bits): Declare as short, for word alignment.
17837 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
17838 (syms_of_w32term): Define x-use-underline-position-properties.
17839
17840 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
17841 (clear_image_cache): Block input, fix logic, clear matrices in
17842 all frames that share this cache.
17843
178442002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
17845
17846 * emacs.c (main): Update the Copyright year in the blurb printed
17847 by "emacs --version".
17848
17849 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
17850
17851 * xterm.c (XTread_socket): If XK_ISO_Lock and
17852 XK_ISO_Last_Group_Lock are defined, handle keysyms between
17853 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
17854
178552002-03-21 Kim F. Storm <storm@cua.dk>
17856
17857 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
17858 menu-bar bindings in keymap and local-map properties _are_ used.
17859 But try keymap property first in accordance with 2002-01-03 patch.
17860 Added comment describing why this is not always reliable.
17861 (tool_bar_items): Ditto for tool-bar.
17862
178632002-03-21 Jason Rumney <jasonr@gnu.org>
17864
17865 * w32fns.c (x_clear_image_1): Disable color table code.
17866
178672002-03-21 Kim F. Storm <storm@cua.dk>
17868
17869 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
17870 removed the wrong version of the DEFUN macro; fixed it.
17871
17872 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
17873 Fmember rather than Fmemq).
17874 (Fprovide): Check that subfeatures is a list.
17875
17876 * process.c (QCfeature, QCdatagram): Removed variables.
17877 (QCtype, Qdatagram): New variables.
17878 (network_process_featurep): Removed function.
17879 (Fmake_network_process): Removed :feature check.
17880 Use :type 'datagram instead of :datagram t to create a datagram
17881 socket. This allows us to add other connection types (e.g. raw
17882 sockets) later in a consistent manner.
17883 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
17884 supported subfeatures for feature make-network-process.
17885 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
17886 Intern and staticpro QCtype and Qdatagram.
17887 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
17888
17889 * xfns.c: (QCtype): Remove duplicate declaration and
17890 initialization (is now declared in process.c).
17891
17892 * w32fns.c: (QCtype): Remove duplicate declaration and
17893 initialization (is now declared in process.c).
17894
178952002-03-21 Richard M. Stallman <rms@gnu.org>
17896
17897 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
17898 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
17899 when jumping to `fail' to avoid undoing reg changes in the
17900 last iteration of the loop.
17901 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
17902
17903 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
17904 Depend on process.h.
17905
179062002-03-20 Jason Rumney <jasonr@gnu.org>
17907
17908 Most of the following changes are still conditional on HAVE_IMAGES
17909 which is not set by default on Windows.
17910
17911 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
17912
17913 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
17914 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
17915 (four_corners_best, x_clear_image_1, x_clear_image)
17916 (x_alloc_image_color, postprocess_image)
17917 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
17918 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
17919 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
17920
17921 * w32gui.h (struct XImage): Define.
17922
17923 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
17924 extract mouse co-ordinates.
17925
179262002-03-20 Jason Rumney <jasonr@gnu.org>
17927
17928 * w32.c (init_winsock): Dynamically load new server and UDP
17929 socket functions.
17930 (socket_to_fd): New function.
17931 (sys_socket): Use it.
17932 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
17933 (sys_recvfrom, sys_sendto): New wrapper functions.
17934
17935 * process.c (QCfamily, QCfilter): Remove duplicate declaration
17936 and initialization.
17937
17938 * makefile.w32-in (LIBS): Remove $(WSOCK32).
17939
179402002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
17941
17942 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
17943 Don't use "sun" as a variable, it's a predefined constant on Sun
17944 machines.
17945
179462002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17947
17948 * bytecode.c (Fbyte_code): Revert last change.
17949
179502002-03-19 Kim F. Storm <storm@cua.dk>
17951
17952 * makefile.w32-in (LIBS): Add $(WSOCK32).
17953 From David Ponce <dponce@voila.fr>.
17954
179552002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17956
17957 * process.c (wait_reading_process_input): Move variables `pname'
17958 and `pnamelen' down where they are used.
17959
17960 * bytecode.c (Fbyte_code): Discard unused computed value to
17961 prevent gcc warning.
17962
17963 * lisp.h (Fplist_member): Add prototype.
17964
179652002-03-18 Kim F. Storm <storm@cua.dk>
17966
17967 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
17968 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
17969
17970 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
17971 Remove explicit GNU_LINUX settings for datagram support.
17972
179732002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17974
17975 * process.c (Fmake_network_process): Remove unused variable `sa'.
17976 Doc fix. Add usage:.
17977 (set_socket_options): Remove unused variables `optnum' and `opttype'.
17978
179792002-03-17 Richard M. Stallman <rms@gnu.org>
17980
17981 * xdisp.c (cursor_type_changed): New variable.
17982 (redisplay_internal): Redisplay all windows if cursor_type_changed.
17983 Clear it when clearing windows_or_buffers_changed.
17984 (try_cursor_movement, redisplay_window, try_window_id)
17985 (try_window_reusing_current_matrix): Test cursor_type_changed
17986 along with windows_or_buffers_changed.
17987
17988 * window.h (cursor_type_changed): New variable.
17989
17990 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
17991 not update_mode_lines, and always set it to 1.
17992
17993 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
17994 if no frames needed redrawing.
17995
179962002-03-17 Kim F. Storm <storm@cua.dk>
17997
17998 The following changes add support for network server processes,
17999 datagram connections, and local (unix) sockets.
18000
18001 * process.h (struct Lisp_Process): New member log.
18002 Doc fix: Member command used to indicate stopped network process.
18003 Doc fix: Member childp contains plist for network process.
18004 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
18005
18006 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
18007 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
18008 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
18009 New variables.
18010 (NETCONN1_P): New macro.
18011 (DATAGRAM_SOCKETS): New conditional symbol.
18012 (datagram_address): New array.
18013 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
18014 (status_message): Use concat3.
18015 (Fprocess_status): Add `listen' status to doc string. Return `stop'
18016 for a stopped network process.
18017 (Fset_process_buffer): Update contact plist for network process.
18018 (Fset_process_filter): Ditto. Don't enable input for stopped
18019 network processes. Server must listen, even if filter is t.
18020 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
18021 New functions.
18022 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
18023 (Fprocess_contact): Added KEY argument. Handle datagrams.
18024 (list_processes_1): Optionally show only processes with the query
18025 on exit flag set. Dynamically adjust column widths. Omit tty
18026 column if not needed. Report stopped network processes.
18027 Identify server and datagram network processes.
18028 (Flist_processes): New optional arg `query-only'.
18029 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
18030 (conv_lisp_to_sockaddr, set_socket_options)
18031 (network_process_featurep, unwind_request_sigio): New helper functions.
18032 (Fprocess_datagram_address, Fset_process_datagram_address):
18033 (Fset_network_process_options): New lisp functions.
18034 (Fopen_network_stream): Removed. Now defined in simple.el.
18035 (Fmake_network_process): New lisp function. Code is based on previous
18036 Fopen_network_stream, but heavily reworked with new property list based
18037 argument list, support for datagrams, server processes, and local
18038 sockets in addition to old client-only functionality.
18039 (server_accept_connection): New function.
18040 (wait_reading_process_input): Use it to handle incoming connects.
18041 Do not enable input on a new connection if process is stopped.
f63fd14e 18042 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
18043 (send_process): Handle datagram sockets.
18044 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
18045 network process is indicated by setting command field to t .
18046 (Fprocess_send_eof): No-op if datagram connection.
18047 (Fstatus_notify): Don't read input for a stream server socket or a
18048 stopped network process.
18049 (init_process): Initialize datagram_address array.
18050 (syms_of_process): Intern and staticpro new variables, defsubr new
18051 functions.
18052
180532002-03-16 Jason Rumney <jasonr@gnu.org>
18054
18055 * w32fns.c (w32_to_all_x_charsets): Return correct type in
18056 startup case.
18057
180582002-03-16 Richard M. Stallman <rms@gnu.org>
18059
18060 * xdisp.c (redisplay_internal, redisplay_windows):
18061 Use list_of_error to call internal_condition_case_1.
18062 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
18063 so as to catch all errors with no possibility of debugger redisplay.
18064 (list_of_error): New variable.
18065 (syms_of_xdisp): Init and staticpro it.
18066
18067 * print.c (print_object): Delete `\ ' from printed rep of frame.
18068
180692002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
18070
18071 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
18072 until its implementation is fixed.
18073
180742002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18075
18076 * xfns.c (png_load): Remove unused variable `gamma_str'.
18077
180782002-03-14 Richard M. Stallman <rms@gnu.org>
18079
18080 * xfns.c (x_real_positions): Handle failure in XQueryTree.
18081
180822002-03-14 Miles Bader <miles@gnu.org>
18083
18084 * intervals.c (adjust_for_invis_intang): New function.
18085 (set_point_both): Use `adjust_for_invis_intang' to do most of the
18086 work for dealing with invisible+intangible regions. Do so before
18087 and after both forward and backward movements, to handle both
18088 front-sticky and rear-sticky cases.
18089 * textprop.c (text_property_stickiness): Function moved here from
18090 `editfns.c'.
18091 * intervals.h (text_property_stickiness): New declaration.
18092 * editfns.c (char_property_eq): Function removed.
18093 (text_property_stickiness): Function moved to `textprop.c'.
18094
180952002-03-13 Jason Rumney <jasonr@gnu.org>
18096
18097 * config.in: Add STRFTIME_NO_POSIX2.
18098
18099 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
18100 and %OX when underlying strftime does not.
18101
181022002-03-13 Stefan Monnier <monnier@cs.yale.edu>
18103
18104 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
18105 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
18106 line) to avoid annoying flicker.
18107 (xm_scroll_callback): Get rid of the now unnecessary kludge.
18108 (XTread_socket): Mark it static.
18109
18110 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
18111
181122002-03-13 Kim F. Storm <storm@cua.dk>
18113
18114 * puresize.h (BASE_PURESIZE): Increase to 775000.
18115
181162002-03-12 Juanma Barranquero <lektu@terra.es>
18117
18118 * editfns.c (syms_of_editfns): Fix typo.
18119
181202002-03-12 Gerd Moellmann <gerd@gnu.org>
18121
18122 * xsmfns.c: Include stdio.h because termhooks.h needs it.
18123 Include termopt.h for interrupt_input.
18124
181252002-03-11 Andreas Schwab <schwab@suse.de>
18126
18127 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
18128
181292002-03-11 Gerd Moellmann <gerd@gnu.org>
18130
18131 * xterm.c (note_mouse_movement): Put code for
18132 x_autoselect_window_p in #if 0.
18133
18134 * lread.c (Fload): Don't assume that message_with_string uses the
18135 string it is given like a C string.
18136
181372002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18138
78819ebb 18139 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 18140
52eb0373 18141 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
18142 x_session_have_connection.
18143 (x_initialize): Add call to x_session_initialize.
18144
18145 * termhooks.h (enum event_kind): Add save_session_event.
18146
18147 * keyboard.c: Add Emacs event save_session_event.
18148
18149 * emacs.c (main): Add call to syms_of_xsmfns.
18150
78819ebb 18151 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
18152
18153 * config.in: Add HAVE_X_SM.
18154
18155 * Makefile.in (LIBXT): Add -lSM -lICE
18156 if HAVE_X_SM and not USE_X_TOOLKIT.
18157 (XOBJ): New file xsmfns.c added.
18158
18159 * xsmfns.c: New file for X session management.
18160
181612002-03-09 Jason Rumney <jasonr@gnu.org>
18162
18163 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
18164 read-only when setting modified time.
18165
181662002-03-08 Gerd Moellmann <gerd@gnu.org>
18167
18168 * xdisp.c (move_it_vertically_backward): At the end of the function,
18169 when moving forward by lines, treat terminal frames specially.
18170
18171 * keyboard.c (echo_char): Make sure to add a separator between
18172 keys even if echo_dash hasn't been called.
18173
18174 * xdisp.c: Use new string macros.
18175 (update_echo_area): Pass number of bytes to message3 instead of
18176 number of chars.
18177 (set_message_1): Don't access a string's size_byte directly.
18178 (decode_mode_spec_coding): Use number of bytes of eoltype string
18179 instead number of chars.
18180
18181 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
18182
181832002-03-08 Juanma Barranquero <lektu@terra.es>
18184
18185 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
18186 24-bit.
18187
181882002-03-06 Jason Rumney <jasonr@gnu.org>
18189
18190 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
18191
181922002-03-06 Gerd Moellmann <gerd@gnu.org>
18193
18194 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
18195 (cancel_echoing, echo_length, echo_truncate): Changed to
18196 work with new kboard definition.
18197 (echo_now): Use message3_nolog instead of message2_nolog.
18198
18199 * alloc.c (mark_kboards): Mark echo_string.
18200
18201 * keyboard.h (ECHOBUFSIZE): Removed.
18202 (struct kboard): Member echoptr removed, member echobuf renamed
18203 to echo_string.
18204
18205 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
18206 message3 instead of message2 to display the message using STRING's
18207 text properties.
18208
182092002-03-05 Andreas Schwab <schwab@suse.de>
18210
18211 * xdisp.c (hscroll_margin): Change to EMACS_INT.
18212
182132002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
18214
18215 * frame.c (default-frame-alist): Explain that setting it doesn't
18216 affect existing frames.
18217
182182002-03-05 Stefan Monnier <monnier@cs.yale.edu>
18219
18220 * indent.c (skip_invisible): Fix my brain fart.
18221
18222 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
18223
182242002-03-04 Stefan Monnier <monnier@cs.yale.edu>
18225
18226 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
18227 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
18228 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
18229 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
18230 and variables to use EMACS_INT instead of just int.
18231
18232 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
18233
182342002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
18235
18236 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
18237 environment, pass it down with corrected value.
18238
182392002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18240
18241 * lread.c (read_filtered_event): Do not call start_hourglass
18242 before returning.
18243
182442002-03-04 Juanma Barranquero <lektu@terra.es>
18245
18246 * w32term.c (x_display_and_set_cursor): Fix typo.
18247
182482002-03-03 Richard M. Stallman <rms@gnu.org>
18249
18250 * fileio.c (Fmake_temp_name): Doc fix.
18251
182522002-03-03 Gary Wong <gtw@gnu.org>
18253
18254 * termcap.c [!emacs]: Replace ospeed for building standalone
18255 libtermcap, for binary compatibility.
18256
18257 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
18258
182592002-03-03 Richard M. Stallman <rms@gnu.org>
18260
18261 * xrdb.c (file_p): Rename arg `path' to `filename'.
18262
18263 * abbrev.c (Fexpand_abbrev): Increment plist as use count
18264 only if it is an integer.
18265
18266 * xfns.c (png_load): Set screen_gamma based on f->gamma.
18267 If png_get_sRGB gives an answer, call png_set_gamma
18268 using the default image gamma value.
18269
18270 * lread.c (read1): When reading from a file, default string to
18271 multibyte only if it has some multibyte characters.
18272
18273 * print.c (print_object): Output multibyte chars 128...255
18274 using \x even if ! print_escape_multibyte.
18275
18276 * xdisp.c (display_mode_element): Move the places where
18277 bytepos, charpos, this, and lisp_string are set.
18278 Use lisp_string to set bytepos.
18279
18280 * xdisp.c (redisplay_internal):
18281 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
18282
18283 * xdisp.c (display_mode_element): Merge properties specified with
18284 :propertize onto those that come with the string.
18285
182862002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
18287
18288 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
18289 automatic-hscrolling. Users changed.
18290 <hscroll-margin>: Renamed from automatic-hscroll-margin.
18291 Users changed.
18292 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
18293
182942002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
18295
18296 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
18297
182982002-03-02 Kim F. Storm <storm@cua.dk>
18299
18300 * window.c (Fminibuffer_selected_window): New function.
18301 (syms_of_window): Defsubr it.
18302
183032002-03-01 Kim F. Storm <storm@cua.dk>
18304
18305 * window.h (struct window): New member phys_cursor_width.
18306
18307 * window.c (make_window, replace_window): Init phys_cursor_width.
18308
18309 * xterm.c (x_display_and_set_cursor): Blink box cursor using
18310 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18311
18312 * w32term.c (x_display_and_set_cursor): Blink box cursor using
18313 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18314
18315 * lisp.h (GCPRO6): New macro.
18316
18317 * process.c (Fopen_network_stream): Use GCPRO6.
18318
183192002-03-01 Kim F. Storm <storm@cua.dk>
18320
18321 * process.c (Qconnect, Qfailed): New variables.
18322 (syms_of_process): Intern and staticpro them.
18323 (Fprocess_status): Document connect and failed return values.
18324 [NON_BLOCKING_CONNECT]: New conditional.
18325 (connect_wait_mask, num_pending_connects): New variables.
18326 (status_message): Convert Qfailed status.
18327 (Fopen_network_stream): Added support for non-blocking connect.
18328 New optional args: filter, sentinel, non_blocking. Doc updated.
18329 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
18330 (deactivate_process): Handle pending non-blocking connect.
18331 (wait_reading_process_input): Poll for status of non-blocking
18332 connects. Exec sentinel directly when connect succeeds.
18333 (status_notify): Don't read process output if not yet connected.
18334
183352002-02-28 Kim F. Storm <storm@cua.dk>
18336
18337 * window.c: (minibuf_selected_window): Renamed from
18338 Vminibuf_selected_window. Users changed.
18339 (syms_of_window): Staticpro it.
18340
183412002-02-26 Kim F. Storm <storm@cua.dk>
18342
18343 The following changes add a new Vminibuf_selected_window variable
18344 which is similar to Vminibuf_scroll_window, but which is only set
18345 on entry to the minibuffer (from a non-minibuffer window):
18346
18347 * window.c: (Vminibuf_selected_window): New variable.
18348 (struct save_window_data): New member minibuf_selected_window.
18349 (Fset_window_configuration): Restore Vminibuf_selected_window.
18350 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
18351 Set minibuf_scroll_window member to nil if minibuf_level is 0.
18352 (compare_window_configurations): Compare minibuf_selected_window.
18353
18354 * window.h: (Vminibuf_selected_window): Declare extern.
18355
18356 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
18357 entry to minibuffer or on entry from a non-minibuffer window.
18358
18359 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
18360 Vminibuf_selected_window instead of Vminibuf_scroll_window.
18361
18362 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
18363 instead of Vminibuf_scroll_window when deciding in which window
18364 the region should be highlighted. Consequently, the region remains
18365 highlighteded even when a completion buffer is also displayed.
18366
183672002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
18368
18369 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
18370
18371 * xselect.c (Qcompound_text_with_extensions): Renamed from
18372 Qcompound_text_no_extensions.
18373 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
18374
183752002-02-26 Juanma Barranquero <lektu@terra.es>
18376
18377 * w32proc.c (syms_of_ntproc): Doc fix.
18378
183792002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18380
18381 * intervals.h: Include "dispextern.h" unconditionally.
18382
183832002-02-24 Jason Rumney <jasonr@gnu.org>
18384
18385 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
18386 and disp-table.elc.
18387 (lisp): Add emacs-lisp/backquote.elc.
18388
183892002-02-24 Kim F. Storm <storm@cua.dk>
18390
3419757d 18391 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
18392 The validation of the event type was too strict as it didn't
18393 allow string events; buffer names are used in bindings for
18394 menu-bar-select-buffer (see `menu-bar-update-buffers').
18395
183962002-02-23 Kim F. Storm <storm@cua.dk>
18397
18398 The following changes rework my patch of 2002-02-06 which
18399 added command remapping by entering the commands directly into
18400 the keymaps. Now, command remapping uses an explicit `remap'
18401 prefix in the keymaps, i.e. [remap COMMAND].
18402
18403 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 18404 (is_command_symbol): Remove function.
048addec
JD
18405 (Fdefine_key): No longer accept a symbol for KEY.
18406 Added validation of [remap COMMAND] argument for KEY.
18407 The DEF is no longer required to be a symbol when remapping a command.
18408 (Fremap_command): New function to remap command through keymaps.
18409 (Flookup_key): Perform command remapping initiated by
18410 Fremap_command directly for speed.
18411 (Fkey_binding): Use Fremap_command for command remapping.
18412 (where_is_internal): Handle new command remapping representation.
18413 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
18414 staticpro them. Defsubr Fremap_command.
18415
18416 * keymap.h (Fremap_command): Declare extern.
18417 (is_command_symbol): Remove extern.
18418
18419 * keyboard.c (command_loop_1): Use Fremap_command for command
18420 remapping; now try command remapping for all symbols.
18421
184222002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18423
18424 * coding.h (run_pre_post_conversion_on_str): Add prototype.
18425
184262002-02-23 Jason Rumney <jasonr@gnu.org>
18427
18428 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
18429 on the string before encoding it.
18430 (Fw32_get_clipboard_data): Run post-read-conversion on the string
18431 after decoding it.
18432
18433 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
18434
184352002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18436
18437 * w32term.c (enter_timestamp): Remove unused static variable to
18438 prevent warning.
18439
18440 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
18441
184422002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18443
18444 * w16select.c (Fw16_get_clipboard_data): Fix last change.
18445
18446 * xselect.c (selection_data_to_lisp_data): Fix last change.
18447
184482002-02-22 Jason Rumney <jasonr@gnu.org>
18449
18450 * w32term.h (struct w32_output): New member menu_command_in_progress.
18451
18452 * w32menu.c (menubar_selection_callback): Free the menu and
18453 clear the menu_command_in_progress flag.
18454
18455 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
18456 (menu_free_timer): New variable.
18457 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
18458 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
18459 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
18460 menu command is in progress.
18461 <WM_COMMAND>: Set the menu_command_in_progress flag.
18462 Kill any menu_free_timer that is running.
18463
18464 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
18465 Call ExtTextOutA rather than ExtTextOut.
18466
184672002-02-22 Eli Zaretskii <eliz@gnu.org>
18468
18469 * puresize.h (BASE_PURESIZE): Increase to 755000.
18470
184712002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18472
18473 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
18474 on the string before encoding it.
18475 (Fw16_get_clipboard_data): Run post-read-conversion on the string
18476 after decoding it.
18477
184782002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18479
18480 Support for ICCCM Extended Segments in X selections:
18481
18482 * xselect.c <Qcompound_text_no_extensions>: New variable.
18483 (syms_of_xselect): Intern and staticpro it.
18484 (selection_data_to_lisp_data): Run post-read-conversion on decoded
18485 selection text.
18486 (lisp_data_to_selection_data): If next-selection-coding-system is
18487 compound-text-no-extensions, set the type of selection to be
18488 compound-text.
18489
18490 * xterm.h (x_encode_text): Update prototype.
18491
18492 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
18493 callers changed. If SELECTIONP is non-zero, run the
18494 pre-write-conversion function before encoding the selection text.
18495
184962002-02-21 Kim F. Storm <storm@cua.dk>
18497
18498 * frame.c (syms_of_frame): Change mouse-highlight default to t.
18499
18500 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
18501 Correct composing of language-change event.
18502
185032002-02-20 Kim F. Storm <storm@cua.dk>
18504
18505 * keyboard.c (menu_bar_items): Don't include keymap or local-map
18506 bindings at PT when building menu (the menu is not updated often
18507 enough for this to work reliable).
18508 (tool_bar_items): Likewise.
18509 (current_active_maps): Removed unused (and buggy) function.
18510
185112002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18512
18513 * xfns.c (gif_load): Use correct width and height for GIF images.
18514
185152002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
18516
18517 * floatfns.c (Fatan): Accept an optional second arg and call
18518 atan2 if passed 2 args.
18519
185202002-02-18 Jason Rumney <jasonr@gnu.org>
18521
18522 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
18523
185242002-02-17 Jason Rumney <jasonr@gnu.org>
18525
18526 * w32term.c (x_autoselect_window_p): New variable.
18527 (syms_of_w32term): DEFVAR_BOOL and initialize it.
18528 (note_mouse_movement): Use it.
18529
18530 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
18531
18532 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
18533
18534 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18535 New variables.
18536 (syms_of_w32fns): Intern and staticpro them.
18537 (x_frame_parms) <"fullscreen">: New parameter.
18538 (x_fullscreen_move, x_set_fullscreen): New functions.
18539 (x_set_frame_parameters): Support Qfullscreen.
18540 (x_real_positions): Save x/y_pixels_diff frame params.
18541 (x_figure_window_size): Support full-screen frames.
18542 (Fx_create_frame): Default the fullscreen parameter.
18543
18544 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
18545 (x_fullscreen_adjust): New functions.
18546 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
18547 fullscreen. Call x_check_fullscreen_move, and set the
18548 want_fullscreen member of output_data.w32
18549 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
18550
18551 * w32term.h: New enum for FULLSCREEN_* constants.
18552 (struct w32_output): New members want_fullscreen, x_pixels_diff,
18553 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
18554 (x-fullscreen-adjust): New prototype.
18555
185562002-02-17 Kim F. Storm <storm@cua.dk>
18557
52eb0373 18558 * frame.c (Vmouse_highlight): New variable.
048addec
JD
18559 (syms_of_frame): DEFVAR_LISP it.
18560
52eb0373 18561 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 18562
048addec 18563 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 18564
048addec
JD
18565 * xterm.c (disable_mouse_highlight): Removed variable.
18566 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18567 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18568 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
18569 and on after keyboard input.
18570 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 18571
048addec 18572 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 18573
048addec
JD
18574 * msdos.c (disable_mouse_highlight): Removed variable.
18575 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18576 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18577 (internal_terminal_init): Initialize mouse_face_hidden.
18578 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
18579 and on after keyboard input.
4f1b1854 18580
048addec 18581 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 18582
048addec
JD
18583 * w32term.c (disable_mouse_highlight): Removed variable.
18584 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
18585 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18586 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
18587 and on after keyboard input.
18588 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 18589
048addec 185902002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 18591
048addec
JD
18592 * msdos.c (last_mouse_window): New variable.
18593 (dos_rawgetc): Fix last change--if the mouse is in the same window
18594 as recorded in last_mouse_window, don't select this window.
5cb6905d 18595
048addec 18596 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 18597
048addec
JD
18598 * msdos.c (x_autoselect_window_p): New variable.
18599 (syms_of_msdos): Defvar it.
18600 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
18601 which the last mouse movement occured, unless it is already selected.
437dfb9f 18602
048addec
JD
18603 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
18604 New variables.
18605 (syms_of_xdisp): DEVFAR them.
18606 (hscroll_window_tree): Use automatic_hscroll_margin and
18607 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 18608
048addec 186092002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 18610
048addec
JD
18611 * xterm.c (x-autoselect-window): New variable.
18612 (note_mouse_movement): Use it.
9f696a00 18613
048addec 18614 * keyboard.c: Do not include "systime.h" twice.
d57966d7 18615
048addec 186162002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 18617
bfa02563 18618 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 18619
048addec 18620 * alloc.c (NSTATICS): Increase to 1280.
74779f52 18621
048addec 186222002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 18623
048addec 18624 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 18625
048addec
JD
18626 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
18627 (Vx_super_keysym): New variables.
18628 (syms_of_xterm): DEFVAR_LISP them.
18629 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
18630 variables to determine which keys to use for the various modifiers.
a474d59c 18631
048addec 186322002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 18633
048addec
JD
18634 * window.c: (Vmode_line_in_non_selected_windows): Removed.
18635 (mode_line_in_non_selected_windows): New variable.
18636 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 18637
048addec
JD
18638 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
18639 Use mode_line_in_non_selected_windows.
18640 (mode_line_in_non_selected_windows): Declare extern.
18641 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 18642
048addec 186432002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 18644
048addec
JD
18645 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
18646 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
18647 (Fclear_this_command_keys): Doc fixes.
2d10309f 18648
048addec
JD
18649 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
18650 (update_face_from_frame_parameter): Increment face_change_count
18651 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 18652
048addec
JD
18653 * xdisp.c (QCpropertize): New variable.
18654 (mode_line_proptrans_alist): New variable.
18655 (display_mode_element): New arg PROPS; all calls changed.
18656 Implement this, for strings.
18657 Handle literal output of strings by sharing the
18658 main-line code for strings, using local var `literal'.
18659 Handle :propertize feature.
18660 (syms_of_xdisp): Initialze and staticpro QCpropertize and
18661 mode_line_proptrans_alist.
0b1e6b54 18662
048addec 186632002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 18664
048addec
JD
18665 * window.c: (Vmode_line_in_non_selected_windows): New variable.
18666 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 18667
048addec
JD
18668 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
18669 (CURRENT_MODE_LINE_FACE_ID): Use it.
18670 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 18671
048addec
JD
18672 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
18673 to get mode line face.
e17144de 18674
048addec 186752002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18676
048addec
JD
18677 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
18678 variables; cus-start.el doesn't need them anymore.
44368f8f 18679
048addec 186802002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 18681
048addec
JD
18682 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
18683 reduction. This fixes a display problem where stray newlines were
18684 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 18685
048addec 186862002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18687
048addec 18688 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 18689
048addec 18690 * xdisp.c (display_mode_lines): Fix last change.
453c5510 18691
048addec 186922002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 18693
048addec
JD
18694 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
18695 match each other.
18696 (w32_load_system_font): Prevent Cleartype fonts from loading.
18697 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 18698
048addec 186992002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 18700
048addec
JD
18701 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
18702 (CURRENT_MODE_LINE_HEIGHT): Use it.
18703 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18704
048addec
JD
18705 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
18706 (pos_visible_p, handle_face_prop): Likewise.
18707 (display_mode_lines): Likewise, but for the real selected window.
18708 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18709
048addec
JD
18710 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
18711 in non-selected windows.
18712 (realize_basic_faces): Realize it.
18713 (syms_of_term): Intern and staticpro it.
308dd672 18714
048addec 187152002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 18716
048addec
JD
18717 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
18718 Changed mail addresses to emacs-devel@gnu.org.
308dd672 18719
048addec 187202002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 18721
048addec
JD
18722 * fileio.c (Fsubstitute_in_file_name): If the file name includes
18723 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 18724
048addec 18725 * floatfns.c (Fround): Doc fix.
3c1e6b46 18726
048addec 187272002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 18728
048addec 18729 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 18730
048addec 187312002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 18732
048addec 18733 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 18734
048addec 187352002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 18736
048addec
JD
18737 * keymap.c (where_is_internal): Only check whether definition is
18738 remapped if it fulfills is_command_symbol.
0065bb74 18739
048addec 187402002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 18741
048addec 18742 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 18743
048addec 18744 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 18745
048addec 187462002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 18747
048addec
JD
18748 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
18749 defining command remapping. Doc updated.
18750 (Flookup_key): Remap command through keymap if KEY is a symbol.
18751 (is_command_symbol): New function.
18752 (Fkey_binding): Use it. New optional argument NO-REMAP.
18753 Doc updated. Callers changed. Perform command remapping via
18754 recursive call unless that arg is non-nil.
18755 (where_is_internal): New argument no_remap. Callers changed.
18756 Call recursively to find original key bindings for a remapped
18757 comand unless that arg is non-nil.
18758 (Fwhere_is_internal): New optional argument NO-REMAP.
18759 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 18760
048addec 18761 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 18762 (is_command_symbol): Add prototype.
0d8466cc 18763
048addec
JD
18764 * keyboard.c (Vthis_original_command): New variable.
18765 (syms_of_keyboard): DEFVAR_LISP it.
18766 (command_loop_1): Set it, and perform command remapping.
15fff01d 18767
048addec 187682002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 18769
048addec 18770 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 18771
048addec 187722002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 18773
048addec 18774 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 18775
048addec 187762002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 18777
048addec 18778 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 18779
048addec 187802002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 18781
048addec 18782 * filelock.c (S_ISLNK): Define if not defined.
3a232704 18783
048addec 187842002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 18785
048addec 18786 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 18787
048addec
JD
18788 * lread.c (read1): Redesign strategy for force_multibyte and
18789 force_singlebyte. Now is_multibyte records whether read_buffer
18790 is multibyte. Encountering any multibyte character makes it so.
4e02881b 18791
048addec 187922002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 18793
048addec
JD
18794 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
18795 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 18796
048addec 187972002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 18798
048addec
JD
18799 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
18800 latter never being defined on GNU/Linux.
749f499f 18801
048addec 188022002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 18803
048addec
JD
18804 * xfaces.c (realize_default_face): Don't set the weight and slant of
18805 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 18806
048addec 188072002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 18808
048addec
JD
18809 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
18810 Call cancel_hourglass unconditionally.
d0fd26dd 18811
048addec
JD
18812 * eval.c (Fsignal): Remove duplicated declaration of
18813 the variable `display_hourglass_p'.
b4c45162 18814
048addec 188152002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 18816
048addec 18817 * editfns.c (region_limit): Nicer error message.
c95eaa61 18818
048addec
JD
18819 * coding.c (decode_composition_emacs_mule):
18820 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 18821
048addec
JD
18822 * callint.c (check_mark): New arg to specify clearer error message.
18823 Callers changed.
c95eaa61 18824
048addec 188252002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 18826
048addec 18827 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 18828
048addec 188292002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 18830
048addec
JD
18831 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
18832 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
18833 Fix doc-strings.
c95eaa61 18834
048addec 188352002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 18836
048addec 18837 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 18838
048addec
JD
18839 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
18840 and scroll_up_aggressively.
c95eaa61 18841
048addec 188422002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 18843
048addec 18844 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 18845
048addec 188462002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 18847
048addec
JD
18848 * textprop.c (Fnext_property_change, Fnext_single_property_change)
18849 (Fprevious_property_change, Fprevious_single_property_change):
18850 Stay within the narrowed-buffer boundaries.
e2c3786a 18851
048addec 188522002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 18853
048addec
JD
18854 * term.c (Ftty_display_color_cells): New function.
18855 (syms_of_term): Defsubr it.
18856 (Ftty_display_color_cells, Ftty_display_color_p): Change the
18857 argument name to DISPLAY. Doc fix.
bf794306 18858
048addec
JD
18859 * dispextern.h: Add prototype for set_tty_color_mode and
18860 tty_setup_colors.
bf794306 18861
048addec 188622002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 18863
048addec
JD
18864 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
18865 If region left to draw is not what was expected, mark the frame as
18866 garbaged.
62582985 18867
048addec
JD
18868 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
18869 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 18870
048addec 188712002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 18872
048addec
JD
18873 * w32term.c (x_update_window_begin): Only hide caret if
18874 w32_use_visible_system_caret is set.
18875 (x_update_window_end): Only show caret if
18876 w32_use_visible_system_caret is set.
18877 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 18878
048addec 18879 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 18880
048addec 188812002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 18882
048addec
JD
18883 * unexelf.c (unexec): Define n so as to cause compilation error
18884 for the code where people have often written n instead of nn.
1e9a6186 18885
048addec 18886 * .gdbinit (hookpost-run): Defined.
1e9a6186 18887
048addec 188882002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 18889
048addec 18890 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 18891
048addec 188922002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 18893
048addec
JD
18894 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
18895 if fullscreen is being set.
7c75be36 18896
048addec 188972002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 18898
048addec
JD
18899 * minibuf.c (Fminibuffer_contents)
18900 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
18901 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 18902
048addec 189032002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 18904
048addec 18905 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 18906
048addec 189072002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 18908
048addec
JD
18909 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
18910 height before comparison.
18911 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 18912
048addec 189132002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 18914
048addec
JD
18915 * w32term.c (w32_system_caret_width): Remove.
18916 (w32_use_visible_system_caret): New user flag.
18917 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
18918 Windows reports a screen reader running.
18919 (x_update_window_begin): Hide the system caret.
18920 (x_update_window_end): Show the system caret.
18921 (x_display_and_set_cursor): Don't draw a cursor when
18922 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 18923
048addec
JD
18924 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
18925 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
18926 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
18927 the user requests it. Use system default width when creating.
18928 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 18929
048addec
JD
18930 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
18931 New window messages.
905cc05a 18932
048addec 189332002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 18934
048addec 18935 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 18936
048addec 189372002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 18938
048addec 18939 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 18940
048addec 189412002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 18942
048addec 18943 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 18944
048addec 189452002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 18946
048addec
JD
18947 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
18948 that Windows returns. If a double check fails, try to guess how
18949 ExtTextOut is going to act.
4d0fa4f3 18950
048addec
JD
18951 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
18952 in place of stricmp.
18953 (w32_list_synthesized_fonts): Removed.
18954 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
18955 (struct enumfont_t): New element; list.
18956 (enum_font_cb2): List all style and charset variations of a font.
18957 (Fw32_select_font): New optional argument; include_proportional.
18958 Exclude vertical fonts. Exclude proportional fonts unless
18959 include_proportional is non-nil.
18960 (w32_enable_synthesized_fonts): Change to a boolean.
18961 (Fw32_send_sys_command): Doc fix.
493faf20 18962
048addec 189632002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 18964
048addec
JD
18965 * dispnew.c (update_frame): Move the variable `tem' to the block
18966 where it is used.
4971e491 18967
048addec 189682002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 18969
048addec
JD
18970 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
18971 call to face-set-after-frame-default.
4971e491 18972
048addec 189732002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 18974
048addec
JD
18975 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
18976 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 18977
048addec 189782002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 18979
048addec
JD
18980 * window.c (enlarge_window): When exceeding size of parent,
18981 directly delete all the siblings instead of trying to resize it.
201c831a 18982
048addec 189832002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 18984
048addec 18985 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 18986
048addec 189872002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 18988
048addec 18989 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 18990
048addec 189912002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 18992
048addec
JD
18993 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
18994 is invisible. This can happen if cursor is on top line of a
18995 window, and we switch to a buffer with a header line.
d77fbc16 18996
048addec 18997 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 18998
048addec 189992002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 19000
048addec
JD
19001 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
19002 `dont_resize' only when used.
61e3b944 19003
048addec 19004 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 19005
048addec 190062002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 19007
048addec
JD
19008 * xdisp.c (display_mode_element): When computing charpos, depend
19009 on multibyteness of elt, not the text in field.
8af01033 19010
048addec 190112002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 19012
048addec
JD
19013 * buffer.c (Fkill_all_local_variables):
19014 Increment `update_mode_lines' only once.
7363986a 19015
048addec 190162002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 19017
048addec
JD
19018 * lisp.h (adjust_after_replace_noundo)
19019 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 19020
048addec 19021 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 19022
048addec 190232002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 19024
048addec
JD
19025 Support for the --color command-line argument and tty-color-mode
19026 frame parameter:
f1a85b89 19027
048addec
JD
19028 * term.c (tty_default_color_capabilities, tty_setup_colors)
19029 (set_tty_color_mode): New functions.
19030 (term_init): Call tty_default_color_capabilities.
19031 (Qtty_color_mode_alist): New variable.
19032 (syms_of_term): Intern and staticpro it.
f1a85b89 19033
048addec
JD
19034 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
19035 frames.
19036 (do_switch_frame): For termcap frames, switch the tty
19037 color mode as specified by the frame's parameters.
19038 (Qtty_color_mode): New variable.
19039 (syms_of_frame): Intern and staticpro it.
3a62677f 19040
048addec
JD
19041 * emacs.c (USAGE2): Add the --color option.
19042 (standard_args): Ditto.
72244db2 19043
048addec
JD
190442002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19045
19046 * xterm.h (struct x_output): New members want_fullscreen,
19047 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
19048 y_pixels_outer_diff.
19049 New enum for FULLSCREEN_* constants.
19050 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
19051 is NULL.
19052 (x_fullscreen_adjust): Add prototype.
3a62677f 19053
048addec
JD
19054 * emacs.c (USAGE2): Add the new full-screen arguments.
19055 (standard_args): Ditto.
3a62677f 19056
048addec
JD
19057 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19058 New variables.
19059 (syms_of_xfns): Intern and staticpro them.
19060 (x_frame_parms) <"fullscreen">: New parameter.
19061 (x_fullscreen_move, x_set_fullscreen): New functions.
19062 (x_set_frame_parameters): Support for Qfullscreen.
19063 (x_real_positions): More accurate computation of the frame position.
19064 (x_figure_window_size): Support full-screen frames.
19065 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 19066
048addec
JD
19067 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
19068 (XTread_socket) <Expose>: Call x_check_fullscreen.
19069 <ConfigureNotify>: Don't resize to fullscreen.
19070 Call x_check_fullscreen_move, and set the want_fullscreen member of
19071 output_data.x.
3a62677f 19072
048addec 190732002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 19074
048addec
JD
19075 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
19076 for mice with more than 3 buttons.
b8523839 19077
048addec
JD
19078 * w32term.c (parse_button): New parameter xbutton. Callers changed.
19079 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 19080
048addec
JD
19081 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
19082 (syms_of_w32fns): DEFVAR_BOOL it.
19083 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 19084
048addec 190852002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 19086
048addec 19087 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 19088
048addec 190892002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 19090
048addec 19091 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 19092
048addec 190932002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 19094
048addec
JD
19095 * .gdbinit (xbuffer): Remove address operator since data is now a
19096 pointer.
c93674bb 19097
048addec 190982002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 19099
048addec 19100 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 19101
048addec 19102 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 19103
048addec 191042002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 19105
048addec
JD
19106 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
19107 when checking for multiple frames.
91175673 19108
048addec 191092002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 19110
048addec
JD
19111 * window.c (delete_window): Rewrite the code for changing the
19112 selected window to handle the case where WINDOW is not a leaf.
91175673 19113
048addec 191142002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 19115
048addec
JD
19116 * process.c (send_process): Set src_multibyte to 1 after the call
19117 top setup_coding_system, not before the call.
e0fead5d 19118
048addec 191192002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 19120
048addec
JD
19121 * xmenu.c (set_frame_menubar, xmenu_show):
19122 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 19123
048addec
JD
19124 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
19125 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 19126
048addec 191272002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 19128
048addec 19129 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 19130
048addec 19131 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 19132
048addec 19133 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 19134
048addec 191352002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 19136
048addec
JD
19137 * insdel.c (make_gap_larger): Make sure buffer size does not
19138 overflow range of int.
62854fe2 19139
048addec 191402002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 19141
048addec
JD
19142 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19143 OVERLAPS_P.
656f46bb 19144
048addec 19145 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 19146
048addec
JD
19147 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
19148 to the left or to the right of the pointer, put it against
19149 the left screen edge.
19150 (x_frame_parms): Add missing braces around initializer.
036e218d 19151
048addec
JD
19152 * w32term.c (x_setup_relief_colors): Don't compute an image's
19153 background color if it doesn't have a Pixmap.
19154 (notice_overwritten_cursor): Don't depend on
19155 output_cursor and updated_area. Compare pixel coordinates with
19156 window's cursor pixel coordinates.
19157 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19158 Call notice_overwritten_cursor with new arg list.
19159 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19160 unconditionally.
19161 (x_draw_image_relief): Use predefined macro instead of
19162 constant when the value of `tool_bar_button_relief' is negative.
036e218d 19163
048addec 19164 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 19165
048addec 191662002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 19167
048addec 19168 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 19169
048addec 191702002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 19171
048addec
JD
19172 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
19173 (Fkey_binding): Try the `keymap' property map first.
19174 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
19175 minor mode bindings.
90647b07 19176
048addec 191772002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 19178
3419757d 19179 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 19180
048addec 191812002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 19182
048addec
JD
19183 * keyboard.c (read_key_sequence): Handle the keymap property
19184 before minor mode maps.
9fbc32aa 19185
048addec
JD
19186 * editfns.c (Fformat): Update thissize from field_width
19187 based on the actual width, in the string case.
036e218d 19188
048addec 191892002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 19190
048addec
JD
19191 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
19192 when used as truth value to prevent gcc warnings.
9fbc32aa 19193
048addec
JD
19194 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
19195 * w32proc.c: Include <config.h>.
9fbc32aa 19196
048addec 191972002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 19198
048addec
JD
19199 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
19200 not EMACS_INT, to make them compatible with DEFVAR_INT.
19201 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 19202
048addec 192032002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19204
048addec
JD
19205 * print.c (print_object): Test print_escape_nonascii only for
19206 unibyte strings.
19207 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
19208 when outputting to a multibyte buffer.
9fbc32aa 19209
048addec 192102001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19211
048addec
JD
19212 * print.c (print_object): In multibyte string, use hex escapes.
19213 Use octal only for unibyte strings.
19214 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 19215
048addec
JD
19216 * lread.c (read_escape): New arg BYTEREP for reporting whether
19217 escape forces unibyte or multibyte.
19218 (read1): When reading a string, take note of that info.
0142178a 19219
048addec 192202001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 19221
048addec
JD
19222 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
19223 comparison to test lisp value returned by Fget.
d4824a5d 19224
048addec 192252001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 19226
048addec 19227 * lisp.h (max_specpdl_size): Add declaration.
b1356234 19228
048addec 19229 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 19230
048addec
JD
19231 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
19232 Handle modifier bits. Correct typo in error message.
99e380ee 19233
048addec 192342001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 19235
048addec
JD
19236 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
19237 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
19238 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19239 Update calls to Fdefine_abbrev.
19240 (write_abbrev): Update for changed data format.
19241 Don't list "system" abbrevs.
19242 (Fexpand_abbrev): Update use count with new data format.
19243 (describe_abbrev): Update for changed data format.
19244 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 19245
048addec 19246 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 19247
048addec 19248 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 19249
048addec
JD
19250 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
19251 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 19252
048addec
JD
19253 * keymap.c (Flookup_key): Error message if key has wrong data type.
19254 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
19255 (exclude_key): New variable.
59a86c99 19256
048addec 192572001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 19258
048addec
JD
19259 * xterm.c (x_setup_relief_colors): Don't compute an image's
19260 background color if it doesn't have a Pixmap.
eb77a5f4 19261
048addec
JD
19262 * xterm.c (notice_overwritten_cursor): Don't depend on
19263 output_cursor and updated_area. Compare pixel coordinates with
19264 window's cursor pixel coordinates.
19265 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19266 Call notice_overwritten_cursor with new arg list.
19267 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19268 unconditionally.
eb77a5f4 19269
048addec
JD
19270 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
19271 height of the cursor line to the amount to scroll.
eb77a5f4 19272
048addec 192732001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 19274
048addec
JD
19275 * intervals.c (set_point_both): The position after an invisible,
19276 intangible character is not an acceptable stopping point.
bb313871 19277
048addec 192782001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 19279
048addec
JD
19280 * window.c (enlarge_window): In new preserve_before code, convert
19281 CURBEG from lisp object to integer before doing arithmetic.
6052529b 19282
048addec 192832001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 19284
048addec 19285 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 19286
048addec 192872001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 19288
048addec
JD
19289 * keyboard.c (record_char): Ignore duplicate help-echo events only
19290 separated by mouse-movement. When tracking mouse, only record
19291 first and last mouse-movement event in same window.
19292 Don't record mouse-movement events in keyboard macros.
3ce081f5 19293
048addec 192942001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 19295
048addec
JD
19296 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
19297 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 19298
048addec
JD
19299 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
19300 instead of Fstring_as_unibyte.
9fabb2f5 19301
048addec 193022001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 19303
048addec 19304 The following changes remove mocklisp support:
9fabb2f5 19305
048addec 19306 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 19307
048addec
JD
19308 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
19309 `Qmocklisp' and `Qmocklisp_arguments'.
19310 Remove prototype of syms_of_mocklisp.
2fa0eedf 19311
048addec 19312 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 19313
048addec
JD
19314 * callint.c: Do not include mocklisp.h.
19315 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 19316
048addec
JD
19317 * eval.c: Remove variables `Qmocklisp_arguments',
19318 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
19319 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
19320 Do not test for mocklisp case.
19321 (Fwhile): Remove unused variable `tem'.
19322 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 19323
048addec 19324 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 19325
048addec 19326 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 19327
048addec 19328 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 19329
048addec 193302001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 19331
048addec
JD
19332 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
19333 to the left or to the right of the pointer, put it against
19334 the left screen edge.
6108b49c 19335
048addec 193362001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 19337
048addec
JD
19338 * Makefile.in (distclean): Remove .gdbinit if we are building
19339 outside the source tree.
5eea19a4 19340
048addec 193412001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 19342
048addec 19343 * w32.c (emacs_root_dir): New function.
5eea19a4 19344
048addec 19345 * msdos.c (emacs_root_dir): New function.
5eea19a4 19346
048addec
JD
19347 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
19348 of the current drive as the fallback for default_directory.
438e57dd 19349
048addec
JD
19350 * dired.c (file_name_completion): Run the elements of
19351 completion-ignored-extensions through ENCODE_FILE.
438e57dd 19352
048addec
JD
19353 * lisp.h (scmp): Remove prototype, since it's now a static
19354 function private to dired.c.
c88e5347 19355
048addec 193562001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 19357
048addec
JD
19358 * dired.c (scmp): Function moved from minibuf.c.
19359 Delete multibyte handling--used only on encoded strings.
59ce1461 19360
048addec 19361 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 19362
048addec 19363 * fns.c (merge): Add QUIT call.
59ce1461 19364
048addec 193652001-12-18 Dave Love <fx@gnu.org>
8727d588 19366
048addec
JD
19367 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
19368 language/georgian.el.
8727d588 19369
048addec 193702001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 19371
048addec
JD
19372 * Makefile.in (lisp, shortlisp): Synchronize with changes to
19373 lisp/Makefile.in:DONTCOMPILE.
cc63037e 19374
048addec 193752001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 19376
048addec
JD
19377 * xdisp.c (window_box_height): Do not return negative values.
19378 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 19379
048addec 19380 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 19381
048addec 19382 * term.c (keys): Likewise.
deece6f5 19383
048addec 19384 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 19385
048addec 193862001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 19387
048addec
JD
19388 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
19389 patch (COMPOSING_P, not COMPOSING).
28ff4293 19390
048addec 193912001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 19392
048addec 19393 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 19394
048addec
JD
19395 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
19396 before calling decode_coding.
9b46de40 19397
048addec 19398 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 19399
048addec
JD
19400 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
19401 instead of only for COMPOSITION_DISABLED.
9b46de40 19402
048addec 194032001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 19404
048addec 19405 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 19406
048addec 19407 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 19408
048addec
JD
19409 * buffer.h (struct buffer): New field `display_error_modiff'.
19410 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 19411
048addec 19412 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 19413
048addec
JD
19414 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
19415 Call redisplay_window, but not if display_error_modiff field says no.
19416 (redisplay_window_error): New function.
19417 (displayed_buffer): New variable.
19418 (redisplay_internal, redisplay_windows): Call the new functions
19419 instead of redisplay_window directly.
2cd23960 19420
048addec 194212001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 19422
048addec 19423 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 19424
048addec 194252001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 19426
048addec 19427 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 19428 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 19429 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 19430
048addec 194312001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 19432
048addec
JD
19433 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
19434 parameter have a numeric value all the time.
f6fa0866 19435
048addec 19436 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 19437
048addec 194382001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 19439
048addec 19440 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 19441
048addec
JD
19442 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
19443 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 19444
048addec 194452001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 19446
048addec
JD
19447 * xdisp.c (move_it_vertically_backward): Change heuristic
19448 for the case that we didn't move far enough initially.
91c153e2 19449
048addec
JD
19450 * window.c (Frecenter): Simplify computation in the case of window
19451 system frames and ARG < 0; use window_box_height.
65b7d3e7 19452
048addec 194532001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 19454
048addec
JD
19455 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
19456 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 19457
048addec 194582001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 19459
048addec
JD
19460 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
19461 arg is negative.
be676094 19462
048addec 194632001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 19464
048addec
JD
19465 * m/hp800.h: Split the __hpux conditional into the parts
19466 that are right for GNU/Linux too and the parts that are not.
19467 Use the former if GNU_LINUX.
19468 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 19469
048addec 19470 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 19471
048addec 194722001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 19473
048addec
JD
19474 * macros.c, msdos.c, w16select.c: Change doc-string comments to
19475 `new style' [w/`doc:' keyword].
032a857d 19476
048addec 194772001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 19478
048addec
JD
19479 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
19480 before using.
b6270150 19481
048addec 194822001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 19483
048addec
JD
19484 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
19485 keyword].
98cbb9fa 19486
048addec 194872001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 19488
048addec 19489 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 19490
048addec 19491 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 19492
048addec 194932001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 19494
048addec 19495 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 19496 Add comment to explain where the struct came from.
048addec
JD
19497 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
19498 (add_menu_item): Process pop-up menus first to avoid memory leak.
19499 (add_menu_item, w32_menu_display_help): Use `help' field as
19500 Lisp_Object.
19501 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 19502
048addec 195032001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 19504
048addec 19505 * COPYING: Moved back.
fa336b91 19506
048addec
JD
19507 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
19508 Add parentheses around && within ||.
077907d4 19509
048addec 19510 * indent.c (compute_motion): Likewise.
aa2af83a 19511
048addec 19512 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 19513
048addec
JD
19514 * coding.c (setup_coding_system, shrink_encoding_region)
19515 (Fdecode_sjis_char): Likewise.
60a653f1 19516
048addec 195172001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 19518
048addec
JD
19519 * xdisp.c (display_mode_element): Don't read past end of string if
19520 it ends with '%'.
60a653f1 19521
048addec
JD
19522 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
19523 can hold.
60a653f1 19524
048addec
JD
19525 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
19526 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
19527 type changed to Lisp_Object.
19528 (syms_of_data): DEFVAR_LISP them.
60a653f1 19529
048addec 195302001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 19531
048addec
JD
19532 * callproc.c (init_callproc): Set Vdata_directory based on the source
19533 location whenever Emacs was run uninstalled.
60a653f1 19534
048addec 195352001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 19536
048addec
JD
19537 * config.in (HAVE_WORKING_VFORK): New #undefs.
19538 * process.c (create_process):
19539 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
19540 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
19541 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
19542 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
19543 * m/intel386.h (HAVE_VFORK): Likewise.
19544 * m/mips-siemens.h (HAVE_VFORK): Likewise.
19545 * m/mips.h (HAVE_VFORK): Likewise.
19546 * s/freebsd.h (vfork): Remove #define.
19547 * s/lynxos.h (HAVE_VFORK): Remove #undef.
19548 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 19549
048addec 195502001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 19551
048addec
JD
19552 * s/hpux10.h (random): Add undef.
19553 (HAVE_RANDOM): Define it just once.
60a653f1 19554
048addec 195552001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19556
048addec 19557 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 19558
048addec 195592001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19560
048addec
JD
19561 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
19562 scroll bars of the frame before deleting the frame itself. If the
19563 frame has a widget, delete the frame with XtDestroyWidget, and do
19564 not call XDestroyWindow before that.
60a653f1 19565
048addec 195662001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 19567
048addec 19568 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19569
048addec 19570 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19571
048addec 195722001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 19573
048addec
JD
19574 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
19575 excessively large.
60a653f1 19576
048addec
JD
19577 * insdel.c (make_gap_larger): New function.
19578 (make_gap_smaller): New function.
19579 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
19580 Call make_gap_smaller if arg is negative.
60a653f1 19581
048addec 195822001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19583
048addec
JD
19584 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
19585 Pass a dummy argument when calling interrupt_signal.
19586 (parse_menu_item): Mark disabled items before checking for empty def.
19587 (read_char_minibuf_menu_prompt): Make safety more visible.
19588 (read_key_sequence): Add a `first_unbound' variable.
19589 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
19590 unbound prefix as soon as we can detect it.
60a653f1 19591
048addec
JD
19592 * doc.c (Fsnarf_documentation): Add prototype.
19593 (get_doc_string): Handle negative arguments.
19594 (Fdocumentation): Use AREF and ASIZE.
19595 Move the calls to get_doc_string to a single place.
19596 Don't confuse an interactive-spec for a docstring reference.
19597 (Fdocumentation_property): Take advantage of the fact that
19598 get_doc_string now ignores the sign of the docstring position.
60a653f1 19599
048addec 19600 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 19601
048addec 196022001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19603
a64387ee 19604 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 19605
048addec 196062001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19607
048addec
JD
19608 * xterm.c (x_draw_image_relief): Use predefined macro instead of
19609 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 19610
048addec 196112001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 19612
048addec
JD
19613 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
19614 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 19615
048addec 19616 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 19617
048addec 196182001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19619
048addec 19620 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 19621
048addec 196222001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 19623
048addec 19624 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 19625
048addec 196262001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 19627
f63fd14e 19628 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 19629
048addec
JD
19630 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
19631 [!WM_MOUSELEAVE]: Define.
60a653f1 19632
048addec
JD
19633 * w32menu.c (current_popup_menu, get_menu_item_info):
19634 (set_menu_item_info): New vars.
19635 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
19636 (w32_menu_show): Set current_popup_menu.
19637 (add_menu_item): Allocate new strings for owner-drawn menu items
19638 and help strings.
19639 Use owner-draw for disabled menu items again.
19640 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
19641 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 19642
048addec
JD
19643 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
19644 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
19645 <WM_EXITMENULOOP>: Free menu strings.
19646 <WM_MOUSELEAVE>: Stop tracking mouse.
19647 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 19648
048addec
JD
19649 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
19650 and mouse face.
60a653f1 19651
048addec 196522001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 19653
048addec
JD
19654 The following changes add left-fringe and right-fringe
19655 frame parameters to adjust fringe widths, or remove one or
19656 both fringes.
60a653f1 19657
048addec
JD
19658 * frame.h (struct frame): Remove trunc_area_pixel_width and
19659 trunc_area_cols fields.
19660 (Qleft_fringe, Qright_fringe): Declare.
19661 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 19662
048addec
JD
19663 * frame.c (Qleft_fringe, Qright_fringe): New vars.
19664 (syms_of_frame): Initialize them.
60a653f1 19665
048addec
JD
19666 * window.c (coordinates_in_window): Handle separate left and right
19667 fringe widths.
60a653f1 19668
048addec
JD
19669 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
19670 and fringe_cols fields.
19671 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
19672 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
19673 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
19674 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
19675 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
19676 (x_compute_fringe_widths): Add prototype.
60a653f1 19677
048addec
JD
19678 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
19679 fill fringe evenly with small dashes.
f63fd14e 19680 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
19681 clip the new ZV bitmap to avoid jitter between rows.
19682 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
19683 background. Don't draw fringe bitmaps if fringe width is zero.
19684 (x_compute_fringe_widths): New function.
19685 (x_new_font, x_set_window_size_1): Use it.
60a653f1 19686
048addec
JD
19687 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
19688 (x_set_frame_parameters): Process `font' parameter before other
19689 parameters as fringe widths depend on it.
19690 (x_set_fringe_width): New function.
19691 (x_figure_window_size): Use x_compute_fringe_widths.
19692 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
19693 parameters.
60a653f1 19694
048addec
JD
19695 * widget.c (set_frame_size): Use x_compute_fringe_widths.
19696 (EmacsFrameSetCharSize): Ditto.
60a653f1 19697
048addec
JD
19698 * w32term.h: Merged changes from xterm.h.
19699 * w32term.c: Merged changes from xterm.c.
19700 * w32fns.c: Merged changes from xfns.c.
60a653f1 19701
048addec 197022001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19703
048addec 19704 * COPYING: Removed.
60a653f1 19705
048addec 197062001-11-29 Dave Love <fx@gnu.org>
60a653f1 19707
048addec
JD
19708 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
19709 extra extra slot.
19710 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 19711
048addec 197122001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19713
048addec
JD
19714 * fileio.c (file-name-coding-system)
19715 (default-file-name-coding-system): Doc fix (links to referenced
19716 variables added).
60a653f1 19717
048addec 197182001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19719
048addec
JD
19720 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
19721 Add dummy uses of gcproN variables.
60a653f1 19722
048addec
JD
19723 * category.c (describe_category, describe_category_1)
19724 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
19725 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 19726
048addec 197272001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 19728
048addec 19729 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 19730
048addec
JD
19731 * Makefile.in (lispdir): New variable, referring to build dir.
19732 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 19733
048addec 197342001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 19735
048addec
JD
19736 * w32menu.c (w32_menu_display_help): Actually add the new argument
19737 OWNER.
60a653f1 19738
048addec 197392001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 19740
048addec
JD
19741 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
19742 menu items. From David Ponce <dponce@wanadoo.fr>.
19743 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
19744 conditionally.
f63fd14e 19745 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 19746 help event in the owner frame's keyboard buffer.
60a653f1 19747
048addec
JD
19748 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
19749 (Fx_show_tip): Don't subtract last width from row width.
19750
19751 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
19752 (w32_read_socket): Use EQ to compare frames.
60a653f1 19753
048addec 197542001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 19755
048addec
JD
19756 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19757 OVERLAPS_P.
60a653f1 19758
048addec 197592001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19760
048addec
JD
19761 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
19762 `gcpro3' and `gcpro4'.
60a653f1 19763
048addec 19764 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 19765
048addec 197662001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19767
048addec 19768 * ccl.c: Use AREF and ASIZE.
60a653f1 19769
048addec 197702001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19771
048addec
JD
19772 * lisp.h (run_hook_list_with_args): Remove.
19773 (LIST_END_P): Fix call to wrong_type_argument.
19774 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 19775
048addec 197762001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19777
048addec
JD
19778 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
19779 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 19780
048addec
JD
19781 * eval.c: Use AREF and ASIZE.
19782 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 19783
048addec
JD
19784 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
19785 which match the end of the file-name.
19786 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
19787 is not a valid env var, but leave it as is instead.
60a653f1 19788
048addec
JD
19789 * keymap.c (access_keymap): Handle t bindings like nil bindings.
19790 Make nil bindings in char-tables transparent.
19791 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 19792
048addec 197932001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 19794
048addec
JD
19795 * textprop.c (set_text_properties_1): Allow START, END in either order.
19796 Do nothing if range is empty.
60a653f1 19797
048addec 19798 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 19799
048addec
JD
19800 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
19801 (clean): Not here.
60a653f1 19802
048addec 198032001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19804
048addec
JD
19805 * textprop.c (set_text_properties_1): Clearly mark that the
19806 interval should not be empty.
60a653f1 19807
048addec
JD
19808 * intervals.c (graft_intervals_into_buffer):
19809 Don't call set_text_properties_1 on an empty interval.
60a653f1 19810
048addec 198112001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 19812
048addec 19813 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 19814
048addec
JD
19815 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
19816 don't lose the data in it.
60a653f1 19817
048addec 198182001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 19819
048addec 19820 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 19821
c62aec78 19822 * buffer.c (Fkill_buffer): Likewise.
60a653f1 19823
c62aec78 19824 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 19825
048addec 198262001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19827
048addec 19828 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 19829
048addec 198302001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19831
048addec
JD
19832 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
19833 Niemitalo <kon@iki.fi>.
60a653f1 19834
048addec 198352001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 19836
048addec 19837 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 19838
048addec
JD
19839 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
19840 (Fx_show_tip): Block input during frame creation.
19841 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 19842
048addec 198432001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 19844
048addec
JD
19845 * lread.c (Fload): Detect recursive load error for more than 3
19846 nestings of the same file.
19847 (Vrecursive_load_depth_limit): Variable deleted.
19848 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 19849
048addec 198502001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 19851
048addec
JD
19852 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
19853 mouse position if either left or top is not specified.
60a653f1 19854
048addec
JD
19855 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
19856 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
19857 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
19858 (my_create_tip_window): Assign tip_window.
19859 (x_create_tip_frame): Use same defaults as X.
19860 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 19861 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 19862
048addec
JD
19863 * w32term.c (x_after_update_window_line): Doc fix.
19864 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
19865 frames.
19866 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 19867
048addec
JD
19868 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
19869 for all Windowed systems.
60a653f1 19870
048addec 198712001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19872
048addec
JD
19873 * msdos.c (IT_clear_screen): If the frame's faces are not yet
19874 realized, use the initial screen colors to clear the screen.
60a653f1 19875
048addec 198762001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19877
048addec
JD
19878 * textprop.c (Fset_text_properties): Remove unused variables
19879 `unchanged', `prev_changed', `s' and `len'.
60a653f1 19880
048addec
JD
19881 * search.c (Freplace_match): Remove unused variable `inslen'.
19882
19883 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
19884
198852001-11-22 Jason Rumney <jasonr@gnu.org>
19886
19887 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
19888 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
19889 (my_create_tip_window): New function.
19890 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
19891 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
19892
198932001-11-20 Jason Rumney <jasonr@gnu.org>
19894
19895 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
19896 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
19897
19898 * w32fns.c (Vw32_system_coding_system): Remove.
19899 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
19900
199012001-11-19 Stefan Monnier <monnier@cs.yale.edu>
19902
19903 * fileio.c (Fwrite_region): Move choose_write_coding_system to
19904 after build_annotations.
19905
19906 * syntax.c (describe_syntax): Add dummy arg.
19907 (describe_syntax_1): Update call to describe_vector.
19908
19909 * category.c (describe_category): Add dummy arg.
19910 (describe_category_1): Update call to describe_vector.
19911
19912 * keymap.c (Fdescribe_vector): Add `describer' parameter.
19913 (describe_command, describe_translation): Add dummy second param.
19914 (describe_map): Call elt_describer with two arguments.
19915 (describe_vector_princ): Add `fun' parameter.
19916 Call it instead of the hardcoded `princ'.
19917 (describe_vector): Add arg `args'.
19918 Pass it as a new second argument to elt_describer.
60a653f1 19919
048addec 19920 * keymap.h (describe_vector): Update prototype.
60a653f1 19921
048addec
JD
19922 * frame.c: Don't include keymap.h any more.
19923 (keys_of_frame): Remove.
60a653f1 19924
048addec 19925 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 19926
048addec 19927 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 19928
048addec 199292001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 19930
048addec
JD
19931 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
19932 if defined, 0 otherwise.
19933 (MAP_FAILED): Define if not defined and use it to test mmap failure.
19934 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 19935
048addec 199362001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 19937
048addec 19938 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 19939
048addec 199402001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 19941
048addec
JD
19942 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
19943 (x_draw_bar_cursor): If the background color of the glyph under
19944 the cursor equals the frame's cursor color, use the glyph's
19945 foreground color for drawing the bar cursor.
19946 (x_after_update_window_line): Clear internal border in different
19947 circumstances.
19948 (w32_set_vertical_scroll_bar): Check for width and height > 0.
19949 (w32_draw_relief_rect): Correct relief by 1 pixel.
19950 (x_set_glyph_string_background_width):
19951 Set extends_to_end_of_line_p if the row's fill_line_p is set and
19952 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
19953 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
19954 if cursor_in_non_selected_windows is false.
19955 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
19956 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
19957 Notice if cursor gets overwritten.
19958 (notice_overwritten_cursor): Renamed from
19959 note_overwritten_text_cursor. Rewritten to take glyph widths
19960 into account, and to take X positions as parameters.
19961 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19962 around call to x_draw_glyphs.
19963 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19964 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19965 color to use for image glyph reliefs.
19966 (x_draw_image_relief): Accept zero tool_bar_button_relief.
19967 (glyph_rect): Remove unused variable `area'.
60a653f1 19968
048addec
JD
19969 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
19970 some items.
19971 (x_set_internal_border_width): Set frame garbaged when window
19972 doesn't exist yet.
19973 (Fx_create_frame): Accept zero tool_bar_button_relief.
19974 (x_clear_image_1, four_corners_best, image_background)
19975 (image_background_transparent): New functions.
19976 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
19977 (gs_format): Add `:background' entry.
19978 (lookup_image): Set IMG's background color if specified.
19979 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19980 when appropriate.
19981 (x_clear_image_1): Reset `background_valid' and
19982 `background_transparent_valid' fields.
19983 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19984 calculating it here. Set IMG's background_transparent field.
19985 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19986 (enum png_keyword_index): Add PNG_BACKGROUND.
19987 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19988 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19989 (enum gif_keyword_index): Add GIF_BACKGROUND.
19990 (enum gs_keyword_index): Add GS_BACKGROUND.
19991 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
19992 Pre-calculate image background color where necessary.
19993 (x_create_x_image_and_pixmap, xbm_load, gs_load):
19994 Use display info's n_cbits entry for screen depth.
19995 (Fx_show_tip): Remove unused variables `buffer', `top',
19996 `left', `max_width' and `max_height'.
60a653f1 19997
048addec 19998 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 19999
048addec 200002001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 20001
048addec 20002 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 20003
048addec 200042001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20005
048addec 20006 * frame.c (Fframe_live_p): Doc fix.
60a653f1 20007
048addec 200082001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 20009
048addec
JD
20010 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
20011 (message_dolog_marker3): New static variables hold three markers.
20012 (syms_of_xdisp): Initialize and staticpro them.
20013 (message_dolog): Use message_dolog_marker1..3 instead of
20014 allocating markers each time. Unchain them when done.
60a653f1 20015
048addec 200162001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20017
048addec 20018 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 20019
048addec 200202001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 20021
048addec 20022 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 20023
048addec 200242001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20025
048addec 20026 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 20027
048addec 200282001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 20029
048addec 20030 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 20031
048addec 200322001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 20033
048addec
JD
20034 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
20035 with invalid position.
60a653f1 20036
048addec 200372001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 20038
048addec 20039 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 20040
048addec
JD
20041 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
20042 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
20043 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 20044
048addec 20045 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 20046
048addec 200472001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20048
048addec
JD
20049 * fileio.c (build_annotations): Split off the tail.
20050 (build_annotations_2): New fun. Extracted from build_annotations.
20051 (Fwrite_region): Split the call to build_annotations into two
20052 calls to build_annotations and build_annotations_2.
077907d4 20053
048addec 200542001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 20055
048addec
JD
20056 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
20057 clear_waiting_for_input with argument.
1756e2fb 20058
048addec 20059 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 20060
048addec 20061 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 20062
048addec 20063 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 20064
048addec 20065 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 20066
048addec 200672001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 20068
048addec
JD
20069 * fileio.c (choose_write_coding_system): New fun, extracted
20070 from Fwrite_region.
20071 (Fwrite_region): Use it.
fa336b91 20072
048addec
JD
20073 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
20074 (funcall_lambda, run_hook_with_args): Make static and add prototype.
20075 (ml_apply, find_handler_clause): Add prototype.
fa336b91 20076
048addec 200772001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 20078
048addec 20079 * config.in: Add #undef HAVE_COFF_H.
fa336b91 20080
048addec
JD
20081 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
20082 Required for ISC 4.1.
fa336b91 20083
048addec 200842001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 20085
52eb0373 20086 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 20087 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 20088
048addec 200892001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 20090
048addec
JD
20091 The following changes are made to clean up the various internal
20092 references to the fringes to actually use the term `fringe' for
20093 them. Previously, they were called `flags areas', `bitmap areas',
20094 `left/right side of windows', or implicitly as `flags' or
20095 `bitmaps':
fa336b91 20096
048addec 20097 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 20098 Comments fixed. Use renamed symbols.
06e8f738 20099
f63fd14e 20100 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 20101
048addec
JD
20102 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
20103 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
20104 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 20105
048addec 20106 * msdos.c: Comment fix.
9ce647f4 20107
048addec 20108 * w32fns.c: Use renamed symbols.
9b784ab8 20109
f63fd14e 20110 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
20111 (fringe_bitmap_type): Renamed from bitmap_type.
20112 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20113 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
20114 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 20115
f63fd14e 20116 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
20117 (fringes_extra): Renamed from flags_areas_extra.
20118 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20119 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20120 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20121 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20122 (FRAME_X_LEFT_FRINGE_WIDTH):
20123 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20124 (FRAME_X_RIGHT_FRINGE_WIDTH):
20125 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 20126
048addec 20127 * widget.c: Use renamed symbols.
9f7e52b4 20128
f63fd14e 20129 * window.c: Comment fixes. Use renamed symbols.
048addec 20130 (coordinates-in-window-p): Doc fix.
fa336b91 20131
f63fd14e 20132 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 20133
048addec 20134 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 20135
048addec 20136 * xfns.c: Use renamed symbols.
89512fcd 20137
f63fd14e 20138 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
20139 (fringe_bitmap_type): Renamed from bitmap_type.
20140 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20141 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
20142 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 20143
f63fd14e 20144 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
20145 (fringes_extra): Renamed from flags_areas_extra.
20146 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20147 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20148 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20149 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20150 (FRAME_X_LEFT_FRINGE_WIDTH):
20151 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20152 (FRAME_X_RIGHT_FRINGE_WIDTH):
20153 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
20154
201552001-11-15 Jason Rumney <jasonr@gnu.org>
20156
20157 * w32menu.c (add-menu-item): Make help_echo and radio buttons
20158 work for most menu items. From David Ponce
20159 <david.ponce@wanadoo.fr>.
20160
201612001-11-15 Gerd Moellmann <gerd@gnu.org>
20162
20163 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
20164 Some x_set_* function expect to be called even if old and new
20165 value are equal.
20166
20167 * xdisp.c (build_desired_tool_bar_string): Accept zero
20168 tool_bar_button_relief.
20169
20170 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
20171
20172 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
20173
20174 * xterm.c (x_draw_bar_cursor): If the background color of the
20175 glyph under the cursor equals the frame's cursor color, use
20176 the glyph's foreground color for drawing the bar cursor.
20177
20178 * dispnew.c (direct_output_forward_char): Fix character/byte
20179 position comparison.
7d18891d 20180
048addec 201812001-11-15 Miles Bader <miles@gnu.org>
d2936d21 20182
048addec
JD
20183 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
20184 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
20185 Update arguments to find_field.
20186 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
20187 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
20188 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
20189 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 20190
048addec 201912001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 20192
048addec 20193 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 20194
048addec
JD
20195 * dispextern.h (image_background, image_background_transparent):
20196 Conditionalize on HAVE_X_WINDOWS.
7d18891d 20197
048addec 201982001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 20199
048addec 20200 * print.c (Fprin1_to_string): Doc fix.
7d18891d 20201
048addec 20202 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 20203
048addec 20204 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 20205
048addec 20206 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 20207
048addec 20208 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 20209
048addec 20210 * eval.c (syms_of_eval): Doc fix.
7d18891d 20211
048addec 20212 * coding.c (syms_of_coding): Doc fix.
7d18891d 20213
048addec 20214 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 20215
048addec 20216 * dispnew.c (syms_of_display): Doc fix.
9474c847 20217
048addec 20218 * category.c (Fget_unused_category): Doc fix.
9474c847 20219
048addec 20220 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 20221
048addec 202222001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 20223
048addec 20224 * print.c (prin1, print): Doc fix.
e3059a5d 20225
048addec 202262001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 20227
048addec
JD
20228 * fontset.h: Remove declarations of variables
20229 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 20230
048addec
JD
20231 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
20232 `Vclip_large_size_font'.
eae936e2 20233
048addec 202342001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 20235
048addec 20236 * w32fns.c: Doc fix.
ddb67bdc 20237
048addec 202382001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 20239
048addec 20240 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 20241
048addec 20242 * fns.c: Doc fix.
6e1b91d7 20243
048addec 20244 * emacs.c: Doc fix.
1c1d3d69 20245
048addec 20246 * coding.c: Doc fix.
1c1d3d69 20247
048addec
JD
20248 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
20249 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
20250 `new style' [w/`doc:' keyword].
b6f4c7ba 20251
048addec 202522001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 20253
048addec
JD
20254 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
20255 LeaveNotify events. Only FocusIn and FocusOut do that now.
20256 (x_display_and_set_cursor): Do display hollow cursors in active
20257 minibuffer windows when they are not selected.
b6f4c7ba 20258
048addec 202592001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 20260
048addec 20261 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
20262 * w32term.c: Change doc-string comments to `new style'
20263 [w/`doc:' keyword]. Doc fixes.
a89f435d 20264
048addec
JD
20265 * w32fns.c: Don't define max.
20266 (Fx_open_connection): Only execute once.
a4cd0cd7 20267
048addec 202682001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 20269
048addec
JD
20270 * ccl.c: Change macros to use do-while block instead of if-else.
20271 Use braces to follow GNU Coding Standards.
eafb659a 20272
048addec 202732001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 20274
048addec 20275 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 20276
048addec 20277 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 20278
048addec
JD
20279 * insdel.c (replace_range): Use adjust_markers_for_replace
20280 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 20281
78819ebb 20282 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 20283
048addec
JD
20284 * textprop.c (set_text_properties_1): New subroutine
20285 broken out of set_text_properties.
20286 (set_text_properties): Use set_text_properties_1.
91823618 20287
048addec
JD
20288 * intervals.c (graft_intervals_into_buffer):
20289 Use set_text_properties_1 to clear out properties.
91823618 20290
048addec
JD
20291 * search.c (Freplace_match): Use replace_range to insert
20292 and delete. Don't request property inheritance from
20293 surrounding text.
86928dfb 20294
048addec 202952001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 20296
048addec 20297 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 20298 vertical fonts. Allow them if face name is explicitly specified.
048addec 20299 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 20300
048addec 203012001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 20302
048addec
JD
20303 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
20304 instead of malloc/free.
a78e0303 20305
048addec 203062001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 20307
048addec
JD
20308 * xfaces.c (merge_face_vectors): Use braces to follow GNU
20309 Coding Standards.
20310 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 20311
048addec 20312 * buffer.c (Fbury_buffer): Likewise.
0c99b139 20313
048addec 20314 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 20315
048addec
JD
20316 * coding.c (encode_coding): Use precomputed value of `src'.
20317 (encode_coding): Remove unused variable `src_end'.
20318 (code_convert_region): Remove unused variables `count'.
830ddd77 20319
048addec 203202001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 20321
048addec
JD
20322 * w32term.c (x_display_and_set_cursor): Do not move system caret
20323 if cursor_glyph is NULL.
55c6d645 20324
048addec 203252001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 20326
048addec 20327 * keymap.c (access_keymap): Fix compilation error.
5de38842 20328
048addec 203292001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 20330
048addec 20331 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 20332
048addec 203332001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 20334
048addec
JD
20335 * intervals.c (graft_intervals_into_buffer):
20336 Remove #ifdef'd-out code.
20337 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 20338
048addec
JD
20339 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
20340 code (eval-current-buffer).
20341 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 20342
048addec 203432001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 20344
048addec 20345 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 20346
048addec 203472001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 20348
048addec 20349 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 20350
048addec
JD
20351 * keyboard.c (make_lispy_event): Check integerness and fix
20352 Lisp_Object/int mixup.
17893c65 20353
048addec 203542001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 20355
048addec 20356 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 20357
048addec
JD
20358 * fontset.c (fontset_font_pattern): Remove unused variable
20359 `family_registry'.
d5360cc7 20360
048addec 20361 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 20362
048addec 203632001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 20364
048addec 20365 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 20366
048addec
JD
20367 * buffer.c (Fkill_buffer): Don't delete auto save file
20368 if buffer is modified.
d9d54213 20369
048addec 203702001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 20371
048addec
JD
20372 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
20373 CHECK_NUMBER_CDR.
b116830b 20374
048addec 203752001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 20376
048addec 20377 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 20378
048addec 203792001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 20380
048addec 20381 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 20382
048addec 203832001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 20384
048addec 20385 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 20386
048addec 203872001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 20388
048addec
JD
20389 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
20390 the program image directly.
982f6c7e 20391
048addec 203922001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 20393
048addec 20394 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 20395
048addec 203962001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 20397
048addec
JD
20398 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
20399 and CHECK_BUFFER.
d31053f9 20400
048addec
JD
20401 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
20402 (record_char): Likewise.
d31053f9 20403
048addec
JD
20404 * keyboard.c (make_lispy_event): Don't insist a drag event must
20405 move to a different buffer position. Instead, check for moving at
20406 least double_click_fuzz.
982f6c7e 20407
048addec 20408 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 20409
048addec 20410 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 20411
048addec
JD
20412 * indent.c (current_column_1, Fmove_to_column): Separate the code
20413 for display-table glyphs from the code for buffer text, to fix
20414 bugs in the former.
830047fd 20415
048addec 204162001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 20417
048addec
JD
20418 * buffer.c (Fbuffer_local_value): New function.
20419 (syms_of_buffer): Defsubr it.
2df5238c 20420
048addec
JD
20421 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
20422 value of `cursor-in-non-selected-windows'.
4e397688 20423
048addec
JD
20424 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
20425 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
20426 (syms_of_xdisp): Initialize it.
48b0f3ae 20427
048addec 204282001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 20429
048addec 20430 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 20431
048addec
JD
20432 * coding.c: Change doc-string comments to `new style' [w/`doc:'
20433 keyword].
3ecaf7e5 20434
048addec
JD
20435 * eval.c (top_level_value, top_level_set): Remove commented and
20436 #ifdef'd-out code.
20437 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 20438
048addec 204392001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 20440
048addec 20441 * xfns.c: Include unistd.h, if it exists.
8db2e33b 20442
048addec 20443 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 20444
048addec 20445 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 20446
048addec 204472001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 20448
048addec
JD
20449 * lisp.h (CHECK_STRING_CAR): New macro.
20450 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
20451 treating XCAR and XCDR as lvalues.
20452 (openp): Use CHECK_STRING_CAR.
20453 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 20454
048addec 204552001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 20456
048addec
JD
20457 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
20458 (SIGMASKTYPE): Define.
1b1acc13 20459
048addec 20460 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 20461
048addec 204622001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 20463
048addec
JD
20464 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
20465 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
20466 Fix typos in comments.
6cb16f95 20467
048addec
JD
20468 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
20469 and #ifdef'd-out code.
20470 Fix and reindent comments.
6cb16f95 20471
048addec 20472 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 20473
048addec
JD
20474 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
20475 argument `i' in macros.
6cb16f95 20476
048addec
JD
20477 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
20478 `i' in macros.
7e9d3c2f 20479
048addec
JD
20480 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
20481 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
20482 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
20483 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
20484 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
20485 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
20486 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
20487 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
20488 in macros.
7e9d3c2f 20489
048addec
JD
20490 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
20491 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
20492 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
20493 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
20494 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
20495 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
20496 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
20497 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
20498 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
20499 (remove unused second argument).
7e9d3c2f 20500
048addec 205012001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20502
048addec
JD
20503 * syntax.c (describe_syntax): New wrapper.
20504 (Finternal_describe_syntax_value): Rename from describe_syntax.
20505 Don't insert space at front and \n at the end.
20506 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 20507
048addec
JD
20508 * regex.c (re_wctype): Try to fix some warnings.
20509 (regcomp, regexec): Don't forget the __restrict.
9ba48103 20510
048addec 205112001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 20512
048addec 20513 * textprop.c (Fget_char_property): Doc fix.
9ba48103 20514
048addec 205152001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 20516
048addec 20517 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 20518
048addec 20519 * data.c (Fsetq_default): Ditto.
c22e59e1 20520
048addec 20521 * callint.c (Finteractive): Ditto.
9271ed2c 20522
048addec 205232001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20524
048addec
JD
20525 * macros.c: Don't include keymap.h any more.
20526
205272001-11-01 Richard M. Stallman <rms@gnu.org>
20528
20529 * data.c (Fmake_local_variable): Doc fix.
20530
20531 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
20532 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 20533
048addec 20534 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
20535 bindings along with or instead of the buffer local map.
20536 Make the overriding maps override what they should.
20537
f00691a3 205382001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
20539
20540 * window.c (grow_mini_window): Fix typo in comment.
20541
27188d11
GM
205422001-11-01 Gerd Moellmann <gerd@gnu.org>
20543
7b49b9d2
GM
20544 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
20545 (XTset_vertical_scroll_bar): Likewise.
20546
43f7c3ea
GM
20547 * xfns.c (x_build_heuristic_mask): Use four_corners_best
20548 instead of IMAGE_BACKGROUND.
c22e59e1 20549
b350c2e5
GM
20550 * xfns.c (four_corners_best): Reindent.
20551
c22e59e1 20552 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
20553 Handle :box so that it is possible to specify sexprs.
20554
bf00d461
EZ
205552001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
20556
20557 * s/hpux11.h: New file.
20558
f00691a3 205592001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 20560
2b209b97
PJ
20561 * emacs.c (USAGE1): Show command line option --no-window-system
20562 instead of --no-windows in usage.
20563 (standard_args): Rename --no-windows to --no-window-system.
20564 (bug_reporting_address): Follow Emacs coding conventions.
20565
9dbc9081
PJ
20566 * eval.c (Fcommandp): Doc fix.
20567 Change doc-string comments to `new style' [w/`doc:' keyword].
20568
4e10df59
PJ
20569 * frame.c (Fframe_live_p): Doc fix.
20570
20571 * buffer.c (selective-display-ellipses): Doc fix.
20572
dd387b25
GM
205732001-10-31 Gerd Moellmann <gerd@gnu.org>
20574
fe957e65
GM
20575 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
20576
dd387b25
GM
20577 * xfaces.c (realize_x_face): If C is not a single-byte character,
20578 set the face's colors_copied_bitwise_p instead of the defaulted_p
20579 members which have a different meaning.
20580 (free_face_colors): Do nothing for a face whose colors have been
20581 copied bitwise.
20582
c22e59e1 20583 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 20584
f00691a3 205852001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 20586
687784e8
PJ
20587 * marker.c, mocklisp.c: Change doc-string comments to `new style'
20588 [w/`doc:' keyword].
2e1280f8 20589
b9d9a9b9
GM
205902001-10-31 Gerd Moellmann <gerd@gnu.org>
20591
20592 * fns.c (require_unwind): Return Lisp_Object.
20593
f00691a3 205942001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 20595
fa1361cb
PJ
20596 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
20597 (last-input-char): Revert doc-string to be the same as the
20598 doc-string of `last-input-event'.
20599
6c465a15 20600 * xdisp.c: Fix typos in comments.
48400103 20601
eafa3196
GM
206022001-10-31 Gerd Moellmann <gerd@gnu.org>
20603
20604 * window.c (grow_mini_window): Handle case that the root
20605 window is already smaller than the nominal mininum height.
20606
747d3f2a
SM
206072001-10-30 Stefan Monnier <monnier@cs.yale.edu>
20608
bf9bb76f
SM
20609 * emacs.c (main): Don't call keys_of_macros any more.
20610
20611 * lisp.h (keys_of_macros): Remove.
20612
20613 * macros.c (keys_of_macros): Remove.
20614
747d3f2a
SM
20615 * xfaces.c (Fface_attribute_relative_p): Declare args.
20616
5e905a57
JR
206172001-10-30 Jason Rumney <jasonr@gnu.org>
20618
20619 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
20620 (enum_font_cb2): Ignore fonts with vertical orientation.
20621
3a426197
RS
206222001-10-30 Richard M. Stallman <rms@gnu.org>
20623
20624 * keyboard.c (Finput_pending_p): Doc fix.
20625
a742d646
GM
206262001-10-30 Gerd Moellmann <gerd@gnu.org>
20627
259cf6bc
GM
20628 * xterm.c (x_after_update_window_line): Don't run the code
20629 clearing in borders for rows whose visible height is 0.
20630
3f99f948
GM
20631 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
20632 resized_p flag is set. If not set, use the much less flickering
20633 method previously used.
20634
20635 * dispnew.c (change_frame_size_1): Set frame's resized_p.
20636
20637 * frame.h (struct frame) <resized_p>: New member.
20638
b4a3be43
GM
20639 * lread.c (to_multibyte): Ensure read_buffer is at least twice
20640 as large as the number of bytes to convert.
747d3f2a 20641
a742d646
GM
20642 * lread.c (to_multibyte): New function.
20643 (read1): Use it.
20644
cacbb9e9
EZ
206452001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
20646
20647 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
20648
99cb6b2f
GM
206492001-10-30 Gerd Moellmann <gerd@gnu.org>
20650
327f42ee 20651 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
20652 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
20653 if the row's fill_line_p is set and drawing the last glyph with
20654 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 20655
99cb6b2f
GM
20656 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
20657
8e8223e2
SM
206582001-10-29 Stefan Monnier <monnier@cs.yale.edu>
20659
20660 * xmenu.c: Include coding.h and charset.h.
20661 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
20662 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
20663 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
20664 Explicitly set wv->help. Use `TRUE' rather than `True'.
20665 (menu_help_callback): Use empty_string.
20666
20667 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
20668 (Fx_popup_dialog): Explicitly init f.
20669 (w32_menu_display_help): Use empty_string.
20670
4d083a8f
RS
206712001-10-29 Richard M. Stallman <rms@gnu.org>
20672
b2304472
RS
20673 * fns.c (Frequire): Detect recursive try to require the same
20674 feature 3 or more levels deep, and get error.
20675 (require_unwind): New subroutine.
20676 (require_nesting_list): New variable.
20677 (syms_of_fns): Init and staticpro it.
20678
4d083a8f
RS
20679 * print.c (print_object): Clarify indication of insertion type.
20680
2fe41216
EZ
206812001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
20682
90480000
EZ
20683 * coding.c (syms_of_coding): Document that locale-coding-system is
20684 used for decoding input on X.
20685
2fe41216
EZ
20686 * window.c (Fscroll_left, Fscroll_right): Doc fix.
20687
f00691a3 206882001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
20689
20690 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
20691 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
20692
60ebcfe8
GM
206932001-10-29 Gerd Moellmann <gerd@gnu.org>
20694
9a7bdceb
GM
20695 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
20696 use NO_CURSOR if cursor_in_non_selected_windows is false.
20697
3f08fcd2
GM
20698 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
20699 the slant attribute if FRAME is t.
20700
0ccfdad2
GM
20701 * xfns.c (x_set_internal_border_width): Set frame garbaged
20702 when X window doesn't exist yet.
20703
ef253080
GM
20704 * xterm.c (x_after_update_window_line): Clear internal border
20705 in different circumstances.
b116830b 20706
60ebcfe8
GM
20707 * xterm.c (XTread_socket) <KeyPress>: Don't use
20708 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
20709 <handa@etl.go.jp>.
20710
73d25f9c
EZ
207112001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
20712
20713 * m/ibms390.h: New file. From Adam Thornton
20714 <athornton@sinenomine.net>.
20715
cac1daf0
GM
207162001-10-28 Gerd Moellmann <gerd@gnu.org>
20717
053b3256 20718 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 20719
cac1daf0
GM
20720 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
20721 a loop counter.
20722
f00691a3 207232001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 20724
f9711de4 20725 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 20726
4707d2d0
PJ
20727 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
20728 keyword].
20729 Fix typos in comments.
b116830b 20730
d883731c
PJ
20731 * emacs.c (bug_reporting_address): New function.
20732 Use it when displaying usage message.
20733
04012254
PJ
20734 * minibuf.c (read_minibuf): Remove unused external declaration of
20735 variable `Qread_only'.
20736
13b1a09c
PJ
20737 * keymap.c (access_keymap): Remove unused variable `charset'.
20738
5bbf4378
MB
207392001-10-28 Miles Bader <miles@gnu.org>
20740
20741 * xfaces.c (merge_face_heights): Handle TO being relative as well.
20742 Remove #ifdef'd-out code.
20743 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
20744 (syms_of_xfaces): Initialize them.
20745
1ce1e4ee
JR
207462001-10-27 Jason Rumney <jasonr@gnu.org>
20747
20748 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
20749 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
20750 position using the system caret.
20751
20752 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
20753 (w32_system_caret_height, w32_system_caret_x)
20754 (w32_system_caret_y): New variables for tracking system caret.
20755 (w32_initialize): Initialize them.
c2d53558 20756 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 20757
c2d53558
SM
20758 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
20759 New messages types.
1ce1e4ee
JR
20760
20761 * w32term.c (note_mouse_highlight): Clear old help_echo.
20762
f00691a3 207632001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 20764
bb4600a4
PJ
20765 * xterm.c: Fix typo in a comment.
20766
7db35a48
PJ
20767 * emacs.c: Fix typos in comments.
20768 Remove unnecessary spaces.
20769 Change doc-string comments to `new style' [w/`doc:' keyword].
20770 (USAGE2): Fix typos in usage string.
20771
a7248e4f
PJ
20772 * xterm.c: Fix typo in a comment.
20773
52eb0373 20774 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
20775 emacs.c.
20776
62725a92
GM
207772001-10-27 Gerd Moellmann <gerd@gnu.org>
20778
798dbe1f 20779 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 20780 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
20781 farther backward when target_y was not reached.
20782
62725a92
GM
20783 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
20784 Display errno only if non-zero.
20785 (sound_warning): New function.
20786 (vox_configure): Don't treat failing to set sample rate as error.
20787 (various places): Improve error messages.
20788
d4e34d24
EZ
207892001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
20790
944e6f60
EZ
20791 * fileio.c (Faccess_file): Run the argument filename through
20792 Fexpand_file_name, before using it.
20793
d4e34d24
EZ
20794 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
20795 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
20796
38d2af0c
GM
207972001-10-26 Gerd Moellmann <gerd@gnu.org>
20798
da80a8d5
GM
20799 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
20800
38d2af0c
GM
20801 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20802 Fix clearing in the case of scroll bars on the right.
c2d53558 20803
45de4a6f 208042001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
20805
20806 * w32gui.h (XImage): Add a dummy typedef.
20807
fbd5ceb2
GM
208082001-10-26 Gerd Moellmann <gerd@gnu.org>
20809
c2d53558 20810 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 20811
b23236fb
EZ
208122001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
20813
20814 * frame.c (Fframe_parameter): Fix last change.
20815
5d991fc4
EZ
20816 * fileio.c: Revert last change (which removed old commented-out
20817 version of expand-file-name). Add a comment that explains why
20818 this old version should not be removed.
20819
879eadc3
GM
208202001-10-25 Gerd Moellmann <gerd@gnu.org>
20821
75700ff2
GM
20822 * frame.c (Fframe_parameter): Fix a bug whereby some
20823 ``artificial'' frame parameters, like `minibuffer' were not
20824 obtained by calling Fframe_parameters.
20825
dfe92a6a
GM
20826 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
20827 cursor differently.
20828
879eadc3
GM
20829 * xdisp.c (move_it_vertically_backward): Compute line height
20830 differently. Add heuristic to try to be more compatible to 20.x.
20831
e1010ebe
SM
208322001-10-25 Stefan Monnier <monnier@cs.yale.edu>
20833
d73a471b
SM
20834 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
20835
d6da5a06
GM
20836 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
20837 boolean.
e1010ebe 20838
f66bd220
MB
208392001-10-25 Miles Bader <miles@gnu.org>
20840
20841 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
20842 BG is a pointer to a structure, not a structure.
20843 (gif_format, png_format): Add missing commas.
20844
d436d538
RS
208452001-10-24 Richard M. Stallman <rms@gnu.org>
20846
20847 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 20848 (syms_of_xfaces): Defsubr it.
d436d538 20849
f00691a3 208502001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
20851
20852 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
20853 variable `area'.
20854
f00691a3 208552001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 20856
c2d53558 20857 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 20858
e2a57b34
MB
208592001-10-25 Miles Bader <miles@gnu.org>
20860
20861 * dispextern.h (struct image): Add `background',
20862 `background_valid', and `background_transparent' fields.
20863 (image_background, image_background_transparent): New declarations.
20864 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
20865 * xfns.c (image_background, image_background_transparent)
20866 (four_corners_best): New functions.
c2d53558 20867 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
20868 (gs_format): Add `:background' entry.
20869 (lookup_image): Set IMG's background color if specified.
20870 (pbm_load, xbm_load_image, png_load): Set IMG's background field
20871 when appropriate.
20872 (x_clear_image_1): Reset `background_valid' and
20873 `background_transparent_valid' fields.
20874 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20875 calculating it here. Set IMG's background_transparent field.
20876 (enum xpm_keyword_index): Add XPM_BACKGROUND.
20877 (enum png_keyword_index): Add PNG_BACKGROUND.
20878 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20879 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20880 (enum gif_keyword_index): Add GIF_BACKGROUND.
20881 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 20882 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
20883 Pre-calculate image background color where necessary.
20884 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20885 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20886 color to use for image glyph reliefs.
20887
b547b6e8
GM
208882001-10-24 Gerd Moellmann <gerd@gnu.org>
20889
d9e3b8c6
GM
20890 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
20891 in full-width rows.
c2d53558 20892
b547b6e8
GM
20893 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20894 Fix clearing of area not covered by scroll bar.
20895
f00691a3 208962001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 20897
52eb0373 20898 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 20899 and `real_start'.
c2d53558 20900 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
20901 (glyph_rect): Remove unused variable `area'.
20902
76cb5e06
GM
209032001-10-24 Gerd Moellmann <gerd@gnu.org>
20904
bdbdebff 20905 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
20906
20907 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
20908 (row_containing_pos): Take additional argument DY.
20909 Treat rows ending in middle of char differently.
62e33982
GM
20910 (display_line): Handle tabs on window systems differently.
20911
20912 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
20913 with additional argument.
20914
20915 * dispextern.h (row_containing_pos): Adjust prototype.
20916
76cb5e06
GM
20917 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
20918 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
20919 (try_window_id, try_window_reusing_current_matrix)
20920 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 20921 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 20922
f00691a3 209232001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 20924
c9e60620
PJ
20925 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
20926 gnuemacs).
20927 (HAVE_BOXES): Fix typo in comment.
20928 (push_menu_pane): Fix typo in comment.
20929
52eb0373 20930 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
20931 of `Qwhen'.
20932 (single_display_prop_string_p): Remove unused local declarations
20933 of `Qwhen' and `Qmargin'.
20934 (string_buffer_position): Remove unused variable `around'.
20935 (store_frame_title): Remove unused variable `width'.
20936
15c565ac
PJ
20937 * window.c: Don't define max.
20938 (coordinates_in_window): Remove unused variable `uy'.
20939
a8818eb9
PJ
20940 * widget.c: Don't define max.
20941
996fee11
PJ
20942 * process.c: Don't define max.
20943 (create_process): Remove unused variable `buffer'.
20944
496e1a5b
GM
209452001-10-23 Gerd Moellmann <gerd@gnu.org>
20946
c2d53558 20947 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 20948
5905ae8b
EZ
209492001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
20950
20951 * xfaces.c (Finternal_set_lisp_face_attribute)
20952 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
20953 frame is on a windowed display.
20954
24db49fb
GM
209552001-10-23 Gerd Moellmann <gerd@gnu.org>
20956
c2d53558
SM
20957 * dispnew.c (sync_window_with_frame_matrix_rows):
20958 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
20959 of marginal areas.
20960
c2d53558 20961 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 20962
f0487f05
EZ
209632001-10-23 Andreas Schwab <schwab@suse.de>
20964
20965 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
20966 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
20967
f0a48a01
GM
209682001-10-23 Gerd Moellmann <gerd@gnu.org>
20969
c2d53558 20970 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
20971 REAL_END. Notice if cursor gets overwritten.
20972 (notice_overwritten_cursor): Take X positions as parameters.
20973 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20974 around call to x_draw_glyphs.
20975
f00691a3 209762001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 20977
fc11dff0
PJ
20978 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
20979 instead of C) and usage.
a50a10a0 20980
fc11dff0
PJ
20981 * editfns.c (char-to-string): Fix argument names (use CHAR instead
20982 of C) and usage.
a50a10a0
PJ
20983
20984 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
20985 `left', `max_width' and `max_height'.
20986
8738febd
GM
209872001-10-23 Gerd Moellmann <gerd@gnu.org>
20988
20989 * xdisp.c (display_line): For a tab continued to the next line,
20990 set row's ends_in_middle_of_char_p.
20991
653c329b
GM
209922001-10-22 Gerd Moellmann <gerd@gnu.org>
20993
20994 * xdisp.c (display_line): Fix computation of continuation lines
20995 width for TABs.
20996
f00691a3 209972001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 20998
7ba51063
PJ
20999 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
21000 `Qlaplace'.
21001
f958c5ac
PJ
21002 * fileio.c: Remove unused code.
21003
eb360291
MB
210042001-10-22 Miles Bader <miles@gnu.org>
21005
21006 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
21007 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
21008 Remove `DOC_STRINGS_IN_COMMENTS' cases.
21009
98515cf0
JR
210102001-10-21 Jason Rumney <jasonr@gnu.org>
21011
21012 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
21013
93026d88
EZ
210142001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
21015
21016 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
21017 (Finsert_string): Avoid the multi-line string literals warning.
21018
c9a95b79
MB
210192001-10-22 Miles Bader <miles@gnu.org>
21020
21021 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
21022 (Fdocumentation): Don't use it.
21023 (syms_of_doc): Don't initialize it.
21024
21025 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
21026 * print.c (Fwith_output_to_temp_buffer): Likewise.
21027 * window.c (Fsave_window_excursion): Likewise.
c2d53558 21028 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 21029 (Fsave_restriction): Likewise.
c2d53558
SM
21030 * eval.c (Frun_hooks, Frun_hook_with_args)
21031 (Frun_hook_with_args_until_failure)
21032 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
21033 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
21034 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
21035 (Funwind_protect, Fcondition_case): Likewise.
21036 * coding.c (Ffind_operation_coding_system): Likewise.
21037 * keyboard.c (Ftrack_mouse): Likewise.
21038
a3b10252
MB
210392001-10-21 Miles Bader <miles@gnu.org>
21040
c2d53558 21041 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
21042 (Fmake_hash_table): Add usage: string to doc string.
21043 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 21044 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
21045 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
21046 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
21047 (Fml_prefix_argument_loop): Likewise.
21048
f00691a3 210492001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 21050
c2d53558 21051 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 21052
c6f73eec
PJ
21053 * sysdep.c (init_sys_modes): Change doc-string comments to `new
21054 style' [w/`doc:' keyword].
21055
21056 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
21057 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
21058 comments to `new style' [w/`doc:' keyword].
21059
3cf3436e
JR
210602001-10-21 Jason Rumney <jasonr@gnu.org>
21061
21062 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
21063
c169b8f1
JR
21064 * w32term.c (remember_mouse_glyph): New function.
21065 (w32_mouse_position): Use it.
21066 (note_mouse_movement): If the mouse moved off the glyph, remember
21067 its new position.
c2d53558 21068
4fdd691b
JR
21069 * w32term.h (struct w32_output): Correct spelling of x_compatible.
21070 (w32_display_info): Add mouse_face_overlay.
21071
c169b8f1
JR
21072 * w32term.c (notice_overwritten_cursor): Renamed from
21073 note_overwritten_text_cursor. Rewritten to take glyph widths into
21074 account.
21075 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
21076 (fast_find_string_pos): New function.
21077 (fast_find_position): Return the correct vpos. Add parameter
21078 STOP. In the final row, stop before glyphs having STOP as object.
21079 Don't consider glyphs that are not from a buffer.
21080 (fast_find_position) [0]: Add a presumably more correct version
21081 for after 21.1.
21082 (expose_window_tree, expose_frame): Don't compute intersections here.
21083 (expose_window): Do it here instead.
21084 (expose_window_tree, expose_window, expose_line): Return 1 when
21085 overwriting mouse-face.
21086 (expose_window): If W is the window currently being updated, mark
21087 the frame garbaged.
21088 (expose_frame): If mouse-face was overwritten, redo it.
21089 (x_use_underline_position_properties): New variable.
21090 (syms_of_xterm): DEFVAR_BOOL it.
21091 (x_draw_glyph_string): Add comment to use it in future.
21092 (x_draw_glyph_string): Restore clipping after drawing box.
21093 Fix a computation of the underline position.
21094 (w32_get_glyph_string_clip_rect): Minor cleanup.
21095 (x_fill_stretch_glyph_string): Remove an assertion.
21096 (x_produce_glyphs): Don't convert multibyte characters
21097 to unibyte characters in unibyte buffers.
21098 (cursor_in_mouse_face_p): New function.
21099 (x_draw_stretch_glyph_string): Use it to choose a different GC
21100 when drawing a cursor within highlighted text. Don't draw
21101 background again if it has already been drawn.
21102 (x_draw_glyph_string_box): Don't draw a full-width
21103 box just because the glyph row's full_width_p flag is set.
21104 (x_draw_glyphs): Fix computation of rightmost x for
21105 full-width rows.
21106 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
21107 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 21108 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
21109 (x_update_window_end): Handle overwritten mouse face
21110 also for tool bar windows.
21111 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
21112 DRAW is DRAW_IMAGE_RAISED.
21113 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
21114 actually redrawn. Make the function static.
21115 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
21116 optimize away highlighting if we pass over that same overlay again.
21117 (note_mouse_highlight): Call mouse_face_overlay_overlaps
21118 to detect a case where we have to highlight a different region
21119 despite not having left the currently highlighted region.
21120 Set mouse_face_overlay in the x_display_info. Avoid changing the
21121 mouse pointer shape when show_mouse_face has already done it, or
21122 there is no need. Handle mouse-face and help-echo in strings.
21123 (glyph_rect): New function.
21124 (w32_mouse_position): Use it to raise the threshold for mouse
21125 movement event generation.
21126 (w32_initialize_display_info): Initialize the x_display_info's
21127 mouse_face_overlay.
21128 (w32_set_vertical_scroll_bar): Don't clear a zero height
21129 or width area.
21130 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
21131 a widget to zero height.
21132
3cf3436e 21133 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 21134 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
21135 equivalents in menu_items.
21136 (w32_menu_show): Don't overwrite an item's name with its key
21137 description in case the description is a multibyte string.
21138 (single_submenu): Some cleanup.
21139
21140 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
21141 (postprocess_image): New function.
21142 (lookup_image): Call it for all image types except PostScript.
21143 (x_kill_gs_process): Call postprocess_image.
21144 (tiff_error_handler, tiff_warning_handler): New functions.
21145 (tiff_load): Install them as handlers.
21146 (x_kill_gs_process): Recognize if someone has cleared the image
21147 cache under us.
21148 (valid_image_p): Protect better against invalid image
21149 specifications. Previous code could signal an error.
21150 (Fx_hide_tip, Fshow_tip): Doc fix.
21151 (Fv_max_tooltip_size): New variable.
21152 (syns_of_xfns): DEFVAR_LISP it.
21153 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 21154 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
21155 window_width. Use a maximum tooltip size specified by
21156 Vx_max_tooltip_size, if that has valid contents.
21157 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
21158 Make sure the tooltip is completely visible.
21159 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
21160 (Fx_create_frame): Adjust the frame's height for presence
21161 of the tool bar before calling x_figure_window_size.
21162 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
21163 when the window gets smaller.
21164 (x_set_foreground_color): Set frame's cursor_pixel.
21165 (x_set_foreground_color, x_set_background_color): Cleaned up.
21166 (x_set_font): Handle case of x_new_fontset returning the same name
21167 as before, although there was a change in fontsets.
21168
386ca361
MB
211692001-10-21 Miles Bader <miles@gnu.org>
21170
c2d53558 21171 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
21172 (Flogxor): Add usage: string to doc string.
21173 * charset.c (Fstring): Likewise.
21174 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
21175 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
21176
f00691a3 211772001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 21178
03be2694
PJ
21179 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
21180
21181 * alloc.c: Reindent DEFUNs with doc: keywords.
21182
21183 * abbrev.c (Finsert_abbrev_table_description): Reindent.
21184
14ff1ee0
PJ
21185 * frame.c: Change doc-string comments to `new style' [w/`doc:'
21186 keyword].
21187
2f147815 21188See ChangeLog.9 for earlier changes.
6922b018
KH
21189
21190;; Local Variables:
49b3bd82 21191;; coding: iso-2022-7bit
6922b018 21192;; End:
2a34a036 21193
2f147815 21194 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
21195 Copying and distribution of this file, with or without modification,
21196 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
21197
21198;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4