(append_space_for_newline): Rename from append_space.
[bpt/emacs.git] / src / ChangeLog
1 2004-04-25 Kim F. Storm <storm@cua.dk>
2
3 * xdisp.c (append_space_for_newline): Rename from append_space.
4 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
5 (x_produce_glyphs): Handle line-spacing property on newline char.
6 If value is t, adjust ascent and descent to fit current row height.
7 If value is an integer or float, set extra_line_spacing to integer
8 value, or to float value x current line height.
9
10 2004-04-23 Kenichi Handa <handa@m17n.org>
11
12 * fontset.c (Finternal_char_font): If POSITION is nil, return
13 font for displaying CH with the default face.
14
15 2004-04-23 Juanma Barranquero <lektu@terra.es>
16
17 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
18
19 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20
21 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
22 Don't make assumptions about the relative place of i and val.
23 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
24
25 2004-04-21 Kim F. Storm <storm@cua.dk>
26
27 * dispextern.h (struct glyph_slice): New struct.
28 (struct glyph): New member slice.
29 (GLYPH_SLICE_EQUAL_P): New macro.
30 (GLYPH_EQUAL_P): Use it.
31 (struct glyph_string): New member slice.
32 (struct it_slice): New struct.
33 (struct it): New member slice, add member to stack too.
34 New member constrain_row_ascent_descent_p.
35 (image_ascent): Add prototype.
36
37 * dispnew.c (buffer_posn_from_coords): Return full image width
38 and height even for image slices (posn is relative to full image).
39 (marginal_area_string): Adjust x0,y0 for image slice.
40
41 * image.c (image_ascent): Add slice arg; calculate ascent for
42 image slice (or full image).
43
44 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
45 (syms_of_keyboard): Defsubr them.
46
47 * lisp.h (pos_visible_p): Fix prototype.
48
49 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
50 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
51 (x_draw_image_foreground, x_draw_image_relief)
52 (x_draw_image_foreground_1, x_draw_image_glyph_string):
53 Draw sliced images.
54
55 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
56 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
57 (x_draw_image_foreground, x_draw_image_relief)
58 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
59 Draw sliced images.
60
61 * w32term.h (image_ascent): Remove prototype.
62
63 * window.c (Fpos_visible_in_window_p): Return pixel position if
64 PARTIALLY arg is non-nil. Simplify. Doc fix.
65 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
66 to return/set vscroll in pixels.
67
68 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
69
70 * xdisp.c (Qslice): New variable.
71 (syms_of_xdisp): Intern and staticpro it.
72 (pos_visible_p): Return pixel position in new x and y args.
73 (init_iterator): Reset it->slice info.
74 (handle_display_prop): Parse (slice ...) property.
75 (push_it, pop_it): Save/restore slice info.
76 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
77 force repositioning of tall row if window is vscrolled, as that
78 would reset vscroll.
79 (append_space): Set it->constrain_row_ascent_descent_p to avoid
80 increasing row height if row is non-empty.
81 (fill_image_glyph_string): Copy slice info.
82 (take_vertical_position_into_account): Simplify.
83 (produce_image_glyph): Handle iterator slice info, setup glyph
84 slice info. Do not force minimum line height.
85 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
86 do not increase height (ascent/descent) of non-empty row when
87 adding normal character glyph; instead reduce glyph ascent/descent
88 appropriately; if row is higher than current glyph, adjust glyph
89 descent/ascent to reposition glyph within the existing row.
90 Likewise, when char is newline, only set ascent/descent if row is
91 currently empty.
92 (note_mouse_highlight): Handle hotspots with sliced image.
93
94 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
95 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
96 (x_draw_image_foreground, x_draw_image_relief)
97 (x_draw_image_foreground_1, x_draw_image_glyph_string):
98 Draw sliced images.
99
100 * xterm.h (image_ascent): Remove prototype.
101
102 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
103
104 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
105
106 2004-04-20 John Paul Wallington <jpw@gnu.org>
107
108 * fns.c (Fassoc, Feql): Fix indentation.
109
110 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
111
112 2004-04-19 John Paul Wallington <jpw@gnu.org>
113
114 * fns.c (Feql): New function.
115 (syms_of_fns): Defsubr it.
116
117 2004-04-18 Jason Rumney <jasonr@gnu.org>
118
119 * w32select.c (Fw32_set_clipboard_data): Get sequence number
120 after closing the clipboard.
121
122 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
123
124 * buffer.c (Fbuffer_base_buffer): Doc fix.
125
126 2004-04-17 Kim F. Storm <storm@cua.dk>
127
128 * keymap.c (Fkey_description): Add optional PREFIX arg.
129 Combine prefix with KEYS to make up the full key sequence to describe.
130 Correlate meta_prefix_char and following (simple) key to describe
131 as meta modifier. All callers changed.
132 (describe_map): Rename arg `keys' to `prefix'. Remove local
133 `elt_prefix' var. Use Fkey_description with prefix instead of
134 elt_prefix combined with Fsingle_key_description.
135 (describe_vector): Declare static. Replace arg `elt_prefix' with
136 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
137 if !KEYMAP_P. Use Fkey_description with prefix instead of
138 Fsingle_key_description.
139
140 * keymap.h (Fkey_description): Fix prototype.
141 (describe_vector): Remove prototype.
142
143 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
144
145 * image.c (PNG_BG_COLOR_SHIFT): Remove.
146 (png_load): Fix calculation of transparent background color on X
147 and W32 platforms.
148
149 2004-04-16 Juanma Barranquero <lektu@terra.es>
150
151 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
152 not too large before computing how much to scroll.
153
154 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
155
156 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
157
158 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
159
160 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
161 Add hyperlink to Elisp manual to the docstring.
162
163 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 * callint.c (fix_command): Use XDCR.
166
167 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
168
169 * window.c (Fget_lru_window): Doc fix.
170
171 2004-04-14 Kim F. Storm <storm@cua.dk>
172
173 * editfns.c (Fformat): Fix allocation size of precision array.
174
175 * dispnew.c (update_window): Only set changed_p if
176 scrolling_window actually did scroll.
177 (scrolling_window): Only return 1 if we actually did scroll.
178
179 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
180 height to glyph height when cursor row is not fully visible.
181 (make_cursor_line_fully_visible): Add FORCE_P arg to return
182 failure in case row is higher than window. Callers changed.
183 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
184 Try to scroll partially visible, higher-than-window cursor row.
185 (redisplay_window): Always try to scroll partially visible,
186 higher-than-window cursor row - both initially and again with
187 centering_position = 0.
188 Clear desired matrix before retrying with centering_position = 0.
189
190 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
191
192 * syntax.c (scan_lists): Simplify backward string scan.
193 Fix off-by-one boundary check for string and comment fences.
194
195 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
196
197 * sheap.c, unexcw.c: New files.
198
199 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
200
201 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
202 base buffer has been killed. Correct the error message if the
203 base buffer does not exist.
204
205 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
206
207 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
208 Cygwin itself. Add support for Xaw3d scrollbars.
209
210 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
211
212 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
213
214 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
215 before Cygwin unexec.
216
217 * Makefile.in: Link changes for Cygwin unexec() support.
218
219 2004-04-12 Andreas Schwab <schwab@suse.de>
220
221 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
222
223 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
224
225 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
226 IGNORE argument equals NAME. Doc fix.
227
228 2004-04-11 Masatake YAMATO <jet@gyve.org>
229
230 * buffer.c (fix_start_end_in_overlays): Make overlays
231 empty if they are backwards.
232
233 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
234
235 * xfaces.c (face_color_supported_p): Fix compilation without X11.
236
237 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
238
239 * doc.c (Fsnarf_documentation): Ignore new file name entries.
240
241 2004-04-06 Kim F. Storm <storm@cua.dk>
242
243 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
244 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
245
246 * w32term.c (w32_read_socket): Set mouse_face_hidden after
247 clearing highlight.
248
249 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
250
251 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
252 clearing highlight.
253
254 * indent.c (vmotion): Do not reserve one column for continuation
255 marks on window frames.
256
257 2004-04-04 Eli Zaretskii <eliz@gnu.org>
258
259 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
260 from GCC.
261
262 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
263
264 * .gdbinit-union: Remove.
265
266 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
267 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
268 ($nonvalbits): Remove.
269 ($valmask): Set it by calling xreload to avoid redundancy.
270
271 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
272 (gdb_emacs_intbits): Remove.
273
274 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
275
276 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
277
278 2004-03-30 Kenichi Handa <handa@m17n.org>
279
280 * editfns.c (Fformat): Fix initialization of the array info.
281
282 2004-03-30 Kim F. Storm <storm@cua.dk>
283
284 * xterm.c (x_mouse_click_focus_ignore_position): New var.
285 (syms_of_xterm): DEFVAR_BOOL it.
286 (ignore_next_mouse_click_timeout): New var.
287 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
288 Use it to filter mouse clicks following focus event.
289
290 2004-03-29 David Ponce <david@dponce.com>
291
292 * callint.c (Fcall_interactively): Fix last change.
293
294 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
295
296 * eval.c (Fcommandp): Simplify.
297
298 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
299 Extend to handle all kinds of functions.
300
301 * lisp.h (Finteractive_form): Declare.
302
303 * callint.c (Fcall_interactively): Use it.
304
305 2004-03-26 Kim F. Storm <storm@cua.dk>
306
307 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
308 to catch errors in calc_pixel_width_or_height during redisplay.
309
310 2004-03-26 Masatake YAMATO <jet@gyve.org>
311
312 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
313
314 * lisp.h (fix_start_end_in_overlays): Likewise.
315
316 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
317
318 * editfns.c (Ftranspose_regions): Likewise.
319
320 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
321
322 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
323
324 2004-03-19 Richard M. Stallman <rms@gnu.org>
325
326 * s/sol2-6.h: Delete previous change.
327
328 2004-03-19 Kim F. Storm <storm@cua.dk>
329
330 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
331 to_charpos corresponds to newline in right fringe. Use local
332 BUFFER_POS_REACHED_P macro.
333
334 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
335
336 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
337 to compile on non-window system.
338
339 2004-03-19 Kim F. Storm <storm@cua.dk>
340
341 * dispextern.h (calc_pixel_width_or_height): Add prototype.
342
343 * image.c (Qcenter): Move to xdisp.c.
344
345 * xdisp.c (Qcenter): Declare here.
346 (syms_of_xdisp): Intern and staticpro it.
347 (handle_single_display_prop): Allow space display property on all
348 platforms.
349 (display_mode_line): Set mode_line_p before displaying line.
350 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
351 handling. Remove complex cases for fringes and scroll-bars.
352 Add left, right, and center alignment positions. Add text (area)
353 width/height. Return width or height for image specs.
354 (produce_stretch_glyph): Improve handling of :align-to. Is now
355 relative to left of text area by default, but other base offsets
356 can be specified -- also for text lines.
357
358 * term.c (produce_glyphs): Handle IT_STRETCH.
359 (produce_stretch_glyph): New function to handle space width and
360 align-to display properties on non-window systems.
361
362 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
363
364 * fileio.c (Fread_file_name): Set completion-ignore-case for
365 case-insensitive systems.
366
367 2004-03-14 Masatake YAMATO <jet@gyve.org>
368
369 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
370 when keymap and cursor are setup.
371
372 2004-03-14 Steven Tamm <steventamm@mac.com>
373
374 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
375
376 2004-03-14 Kim F. Storm <storm@cua.dk>
377
378 * dispextern.h (x_find_image_file): Add prototype.
379
380 * image.c (x_find_image_file): Make extern.
381
382 * xfns.c (x_find_image_file): Remove prototype.
383
384 2004-03-13 Eli Zaretskii <eliz@gnu.org>
385
386 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
387
388 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
389
390 2004-03-12 Richard M. Stallman <rms@gnu.org>
391
392 * fns.c (internal_equal): New arg PROPS controls comparing
393 text properties. All callers changed.
394 (Fequal_including_properties): New function.
395 (syms_of_fns): defsubr it.
396
397 2004-03-12 Kim F. Storm <storm@cua.dk>
398
399 Fix image support on MAC. From YAMAMOTO Mitsuharu.
400
401 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
402 (image_background, image_background_transparent): Fix prototypes.
403
404 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
405
406 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
407 (x_query_font, x_find_ccl_program, x_set_window_size)
408 (x_make_frame_visible, mac_initialize, XCreatePixmap)
409 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
410 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
411
412 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
413 (x_query_font, x_find_ccl_program, x_set_window_size)
414 (x_make_frame_visible, mac_initialize, XCreatePixmap)
415 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
416 (mac_draw_line_to_pixmap): Add prototypes.
417
418 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
419
420 * macterm.c (XTread_socket): Fix mouse click on tool bar.
421
422 2004-03-11 Kim F. Storm <storm@cua.dk>
423
424 * dispextern.h: Move image related prototypes from xfns.c section
425 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
426 HAVE_X_WINDOWS.
427
428 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
429 Move gtkutil.o to new GTK_OBJ list.
430 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
431 (GTK_OBJ) [USE_GTK]: New declaration.
432 (obj): Add $(GTK_OBJ) to list.
433
434 2004-03-11 Steven Tamm <steventamm@mac.com>
435
436 * image.c [MAC_OSX]: Include sys/stat.h
437
438 * macfns.c (syms_of_macfns): Remove definitions of things now
439 defined in image.c
440
441 2004-03-11 Kim F. Storm <storm@cua.dk>
442
443 The following changes consolidates the identical/similar image
444 support code previously found in xfns.c, w32fns.c, and macfns.c
445 into a new file image.c.
446
447 * makefile.w32-in (OBJ1): Add image.o.
448 ($(BLD)/image.$(O)): Add dependencies.
449
450 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
451 (image.o): Add dependencies.
452
453 * image.c: New file with consolidated image support code.
454 (COLOR_TABLE_SUPPORT): New define to control whether
455 color table support is available (X only).
456 (Bitmap_Record): Common name for x_bitmap_record,
457 w32_bitmap_record, and mac_bitmap_record.
458 (XImagePtr): Common name for pointer to XImage or equivalent.
459 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
460 to XImagePtr on X+MAC, and to HDC on W32.
461 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
462 (NO_PIXMAP): Common name for "None" or equivalent.
463 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
464 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
465 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
466 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
467 Define with suitable equivalents on W32 and MAC for code sharing.
468 (XDrawLine): Define on MAC for code sharing.
469 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
470 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
471 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
472 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
473 (x_reference_bitmap, x_create_bitmap_from_data)
474 (x_create_bitmap_from_file, x_destroy_bitmap)
475 (x_destroy_all_bitmaps, x_create_bitmap_mask)
476 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
477 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
478 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
479 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
480 (define_image_type, lookup_image_type, valid_image_p)
481 (image_error, enum image_value_type, struct image_keyword)
482 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
483 (make_image, free_image, prepare_image_for_display, image_ascent)
484 (four_corners_best, image_background, image_background_transparent)
485 (x_clear_image_1, x_clear_image, x_alloc_image_color)
486 (make_image_cache, free_image_cache, clear_image_cache)
487 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
488 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
489 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
490 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
491 (init_image_func_pointer, image_load_quartz2d)
492 (struct ct_color, init_color_table, free_color_table)
493 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
494 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
495 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
496 (x_disable_image, x_build_heuristic_mask)
497 (XBM support, XPM support, PBM support, PNG support, JPEG support)
498 (TIFF support, GIF support, Ghostscript support): Consolidate image
499 code from xfns.c, w32fns.c, and macfns.c.
500 (syms_of_image): Consolidate image related symbol setup here.
501 (init_image): Consolidate image related initializations here.
502
503 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
504 and init_image. Remove call to init_xfns.
505
506 * macterm.h (struct mac_bitmap_record): Add file member.
507 Not currently used, but simplifies code sharing.
508
509 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
510 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
511 (x_reference_bitmap, x_create_bitmap_from_data)
512 (x_create_bitmap_from_file, x_destroy_bitmap)
513 (x_destroy_all_bitmaps, x_create_bitmap_mask)
514 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
515 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
516 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
517 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
518 (define_image_type, lookup_image_type, valid_image_p)
519 (image_error, enum image_value_type, struct image_keyword)
520 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
521 (make_image, free_image, prepare_image_for_display, image_ascent)
522 (four_corners_best, image_background, image_background_transparent)
523 (x_clear_image_1, x_clear_image, x_alloc_image_color)
524 (make_image_cache, free_image_cache, clear_image_cache)
525 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
526 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
527 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
528 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
529 (init_image_func_pointer, image_load_quartz2d)
530 (struct ct_color, init_color_table, free_color_table)
531 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
532 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
533 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
534 (x_disable_image, x_build_heuristic_mask)
535 (XBM support, XPM support, PBM support, PNG support, JPEG support)
536 (TIFF support, GIF support, Ghostscript support): Merge with image
537 code from xfns.c and macfns.c into image.c.
538 (syms_of_xfns): Move image related symbols to image.c.
539 (init_external_image_libraries, init_xfns): Remove; initialization
540 moved to init_image in image.c.
541
542 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
543 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
544 (x_reference_bitmap, x_create_bitmap_from_data)
545 (x_create_bitmap_from_file, x_destroy_bitmap)
546 (x_destroy_all_bitmaps, x_create_bitmap_mask)
547 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
548 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
549 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
550 (define_image_type, lookup_image_type, valid_image_p)
551 (image_error, enum image_value_type, struct image_keyword)
552 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
553 (make_image, free_image, prepare_image_for_display, image_ascent)
554 (four_corners_best, image_background, image_background_transparent)
555 (x_clear_image_1, x_clear_image, x_alloc_image_color)
556 (make_image_cache, free_image_cache, clear_image_cache)
557 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
558 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
559 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
560 (struct ct_color, init_color_table, free_color_table)
561 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
562 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
563 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
564 (x_disable_image, x_build_heuristic_mask)
565 (XBM support, XPM support, PBM support, PNG support, JPEG support)
566 (TIFF support, GIF support, Ghostscript support): Merge with image
567 code from xfns.c and macfns.c into image.c.
568 (syms_of_xfns): Move image related symbols to image.c.
569 (init_external_image_libraries, init_xfns): Remove; initialization
570 moved to init_image in image.c.
571
572 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
573 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
574 (x_reference_bitmap, x_create_bitmap_from_data)
575 (x_create_bitmap_from_file, x_destroy_bitmap)
576 (x_destroy_all_bitmaps, x_create_bitmap_mask)
577 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
578 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
579 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
580 (define_image_type, lookup_image_type, valid_image_p)
581 (image_error, enum image_value_type, struct image_keyword)
582 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
583 (make_image, free_image, prepare_image_for_display, image_ascent)
584 (four_corners_best, image_background, image_background_transparent)
585 (x_clear_image_1, x_clear_image, x_alloc_image_color)
586 (make_image_cache, free_image_cache, clear_image_cache)
587 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
588 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
589 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
590 (struct ct_color, init_color_table, free_color_table)
591 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
592 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
593 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
594 (x_disable_image, x_build_heuristic_mask)
595 (XBM support, XPM support, PBM support, PNG support, JPEG support)
596 (TIFF support, GIF support, Ghostscript support): Merge with
597 w32fns.c and macfns.c image code into image.c.
598 (syms_of_xfns): Move image related symbols to image.c.
599 (init_xfns): Remove; initialization moved to init_image in image.c.
600
601 * lisp.h (syms_of_image, init_image): Add protoypes.
602 (init_xfns): Remove prototype.
603
604 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
605 (x_reference_bitmap, x_create_bitmap_from_data)
606 (x_create_bitmap_from_file, x_destroy_bitmap)
607 (x_create_bitmap_mask): Move prototypes from dispextern.h.
608 (gamma_correct) [MAC_OS]: Add prototype.
609
610 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
611 (x_reference_bitmap, x_create_bitmap_from_data)
612 (x_create_bitmap_from_file, x_destroy_bitmap)
613 (x_create_bitmap_mask): Move prototypes to dispextern.h.
614
615 2004-03-09 Kenichi Handa <handa@etlken2>
616
617 * coding.c (decode_coding_emacs_mule): Handle insufficent source
618 correctly.
619
620 2004-03-04 Richard M. Stallman <rms@gnu.org>
621
622 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
623
624 * window.c (Fdisplay_buffer): Doc fix.
625
626 * buffer.c (Fpop_to_buffer): Doc fix.
627
628 2004-03-03 Kim F. Storm <storm@cua.dk>
629
630 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
631
632 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
633
634 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
635
636 2004-03-02 Richard M. Stallman <rms@gnu.org>
637
638 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
639
640 2004-03-02 Kenichi Handa <handa@m17n.org>
641
642 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
643
644 2004-03-02 Kim F. Storm <storm@cua.dk>
645
646 * window.h (struct window): New member overlay_arrow_bitmap.
647
648 * window.c (make_window): Initialize overlay_arrow_bitmap.
649
650 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
651 implement and integrate multiple overlay arrows with redisplay.
652 (syms_of_xdisp): DEFVAR_LISP and initialize it.
653 (last_arrow_position, last_arrow_string): Replace by properties.
654 (Qlast_arrow_position, Qlast_arrow_string)
655 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
656 (syms_of_xdisp): Intern and staticpro them.
657 (overlay_arrow_string_or_property, update_overlay_arrows)
658 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
659 (overlay_arrow_at_row): New functions for multiple overlay arrows.
660 (redisplay_internal): Use them instead of directly accessing
661 Voverlay_arrow_position etc. for multiple overlay arrows.
662 (mark_window_display_accurate): Use update_overlay_arrows.
663 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
664 (try_window_id): Use overlay_arrows_changed_p.
665 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
666 (display_line): Use overlay_arrow_at_row to check multiple
667 overlay arrows, and get relevant overlay-arrow-string and
668 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
669 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
670 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
671
672 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
673 (update_window_fringes): Remove unused code.
674
675 2004-03-01 Jason Rumney <jasonr@gnu.org>
676
677 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
678
679 2004-03-01 Juanma Barranquero <lektu@terra.es>
680
681 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
682
683 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
684
685 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
686
687 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
688 how many colors can be displayed.
689
690 2004-03-01 Kenichi Handa <handa@m17n.org>
691
692 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
693 correctly.
694
695 2004-02-28 Kim F. Storm <storm@cua.dk>
696
697 * dispnew.c (update_window): Update header line also if there are
698 no other changes in window (move code after set_cursor label).
699
700 * lisp.h (mark_window_display_accurate): Remove prototype.
701
702 * window.c (window_loop, Fforce_window_update): Force mode line
703 updates by setting prevent_redisplay_optimizations_p and
704 update_mode_lines.
705
706 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
707
708 * xfns.c (x_window): Fix indentation.
709
710 * xterm.c (x_calc_absolute_position): Call x_real_positions
711 to get WM window sizes and use those to calculate position.
712 (x_set_offset): Remove code commented out.
713
714 2004-02-28 Miles Bader <miles@gnu.org>
715
716 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
717
718 2004-02-28 Kim F. Storm <storm@cua.dk>
719
720 * keyboard.c (kbd_buffer_store_event_hold): New function to store
721 an event into kbd fifo, but with special handling of quit event;
722 a quit event is saved for later, and further events are discarded
723 until the saved quit event has been processed.
724 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
725 (gen_help_event): Store help event in kbd fifo.
726 (NREAD_INPUT_EVENTS): Remove.
727 (read_avail_input): Adapt to new read_socket_hook interface.
728 Remove allocation and initialization of local input_event buffer,
729 as read_socket_hook stores events directly in fifo. Allocate and
730 initialize local hold_quit event to handle postponed quit event
731 (and store it if set by kbd_buffer_store_event_hold).
732
733 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
734 (gen_help_event): Fix prototype.
735
736 * macterm.c (XTread_socket): Remove bufp_r and
737 numcharsp args. Add hold_quit arg.
738 Rework to use just one, local, inev input_event. Store inev
739 directly in fifo using kbd_buffer_store_event_hold.
740
741 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
742 (read_input_waiting): Adapt to new read_socket_hook interface.
743 Remove allocation and initialization of local input_event buffer,
744 as read_socket_hook stores events directly in fifo. Allocate and
745 initialize local hold_quit event to handle postponed quit event
746 (and store it if set by kbd_buffer_store_event_hold).
747
748 * term.c (read_socket_hook): Fix arg list.
749
750 * termhooks.h (read_socket_hook): Fix prototype.
751
752 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
753 numcharsp args. Add hold_quit arg.
754 Rework to use just one, local, inev input_event. Store inev
755 directly in fifo using kbd_buffer_store_event_hold.
756
757 * w32inevt.h (w32_console_mouse_position): Fix prototype.
758
759 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
760 Add hold_quit arg. Rework to use just one, local, inev
761 input_event. Store inev directly in fifo using
762 kbd_buffer_store_event_hold. Update count in one place.
763 Postpone call to gen_help_event until inev is stored; use new
764 local do_help for this.
765 Remove local emacs_event in handing of ButtonPress event; just use
766 inev instead (so no reason to copy it later).
767
768 * xsmfns.c (x_session_check_input): Remove numchars arg.
769
770 * xterm.c (x_focus_changed, x_detect_focus_change):
771 Remove numchars arg. Always store event into bufp arg.
772 Return nothing. Callers changed accordingly.
773 (glyph_rect): Simplify.
774 (STORE_KEYSYM_FOR_DEBUG): New macro.
775 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
776 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
777 (current_hold_quit) [USE_GTK]: Add.
778 (event_handler_gdk): Adapt to new handle_one_xevent.
779 (handle_one_xevent): Remove bufp_r and numcharsp args.
780 Add hold_quit arg. Rework to use just one, local, inev
781 input_event. Store inev directly in fifo using
782 kbd_buffer_store_event_hold. Update count in one place.
783 Postpone call to gen_help_event until inev is stored; use new
784 local do_help for this.
785 Simplify handling of keysyms (consolidate common code). Fix bug
786 where count was updated with nchars instead of nbytes.
787 Remove local emacs_event in handing of ButtonPress event; just use
788 inev instead (so no reason to copy it later).
789 Remove `out' label. Rename label `ret' to `done'; add various
790 `goto done' to clarify code flow in deeply nested blocks.
791 (x_dispatch_event): Simplify as handle_one_xevent now calls
792 kbd_buffer_store_event itself.
793 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
794 arg. Call handle_one_xevent with new arglist. Store event from
795 x_session_check_input in fifo.
796 [USE_GTK]: Setup current_hold_quit.
797 Decrement handling_signal before unblocking input.
798 (x_initialize) [USE_GTK]: Initialize current_count.
799
800 * xterm.h (x_session_check_input): Fix prototype.
801
802 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
803
804 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
805
806 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
807 macgui.h).
808
809 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
810
811 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
812 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
813 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
814 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
815 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
816 (Bitmap): Remove typedef.
817 (Pixmap): Change int to GWorldPtr.
818
819 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
820
821 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
822 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
823 New #define to extract 16-bit depth color components from unsigned
824 long representation.
825 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
826 colors used for masks.
827 (struct mac_display_info): Add color_p. Remove n_cbits.
828
829 * macfns.c: Include sys/types.h and sys/stat.h.
830 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
831 Include QuickTime/QuickTime.h.
832 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
833 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
834 functions defined in macterm.c.
835 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
836 (ZPixmap): New #define for compatibility with xfns.c.
837 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
838 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
839 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
840 New functions.
841 (four_corners_best, x_create_x_image_and_pixmap)
842 (x_destroy_x_image, unwind_create_frame, x_disable_image)
843 (x_edge_detection, init_color_table, colors_in_color_table)
844 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
845 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
846 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
847 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
848 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
849 long mixup.
850 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
851 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
852 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
853 (x_set_cursor_type, Fxw_color_values, valid_image_p)
854 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
855 (x_alloc_image_color, clear_image_cache, lookup_image)
856 (x_find_image_file, xbm_read_bitmap_file_data)
857 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
858 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
859 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
860 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
861 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
862 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
863 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
864 #if 0.
865 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
866 #if 0. Free white_relief.gc and black_relief.gc.
867 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
868 New functions (from xfns.c).
869 (Fx_create_frame): Record unwind_create_frame.
870 (Fxw_display_color_p): Use dpyinfo->color_p.
871 (Fx_display_grayscale_p, Fx_display_planes): Don't use
872 dpyinfo->n_cbits.
873 (Fx_display_color_cells): Use dpyinfo->n_planes;
874 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
875 (Qheuristic, cross_disabled_images, emboss_matrix)
876 (laplace_matrix): New variables (from xfns.c).
877 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
878 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
879 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
880 (image_background_transparent): New function (from xfns.c).
881 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
882 (image_load_quicktime): Add declaration.
883 [MAC_OSX] (image_load_quartz2d): Likewise.
884 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
885 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
886 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
887 (xbm_load_image_from_file, x_laplace_read_row)
888 (x_laplace_write_row, pbm_read_file): Remove functions.
889 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
890 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
891 (colors_in_color_table): Sync with xfns.c (although not used).
892 (lookup_rgb_color): Don't lookup color table. Just do gamma
893 correction.
894 (COLOR_INTENSITY): New #define (from xfns.c).
895 (x_disable_image): New function (from xfns.c).
896 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
897 (x_build_heuristic_mask): Sync with xfns.c.
898 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
899 (HAVE_PBM): Remove #ifdef.
900 (pbm_load): Sync with xfns.c. Set img->width and img->height
901 before IMAGE_BACKGROUND.
902 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
903 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
904 Don't enclose with #if HAVE_PNG.
905 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
906 symbol _CGImageCreateWithPNGDataProvider is defined.
907 Otherwise use image_load_quicktime.
908 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
909 [HAVE_PNG] (png_load): Sync with xfns.c.
910 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
911 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
912 HAVE_JPEG.
913 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
914 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
915 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
916 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
917 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
918 (tiff_image_p, tiff_load): Don't enclose declarations with #if
919 HAVE_TIFF.
920 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
921 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
922 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
923 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
924 New functions (from xfns.c).
925 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
926 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
927 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
928 Don't enclose with #if HAVE_GIF.
929 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
930 animated gif. Otherwise use image_load_quicktime.
931 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
932 gif_DrawText to avoid conflict with QuickdrawText.h.
933 [HAVE_GIF] (gif_load): Sync with xfns.c.
934 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
935 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
936 Ghostscript is not supported yet).
937 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
938 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
939 cross_disabled_images (from xfns.c). Remove #if 0 for supported
940 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
941 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
942 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
943 HAVE_PNG. Call EnterMovies to support animated gifs.
944 Call init_image_func_pointer to bind a symbol
945 _CGImageCreateWithPNGDataProvider if it is defined.
946
947 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
948 (x_draw_bar_cursor): Sync declaration with xterm.c.
949 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
950 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
951 graphics).
952 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
953 (mac_draw_line_to_pixmap, XCreatePixmap)
954 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
955 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
956 New functions.
957 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
958 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
959 Cast bits to char *.
960 (reflect_byte): New function (from w32fns.c).
961 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
962 due to byte alignment.
963 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
964 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
965 (XSetForeground): Remove static (now used in macfns.c).
966 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
967 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
968 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
969 (x_draw_glyph_string_box, x_draw_image_foreground)
970 (x_draw_image_foreground_1, x_draw_image_glyph_string)
971 (x_draw_stretch_glyph_string, x_draw_glyph_string)
972 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
973 Sync with xterm.c.
974 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
975 than the xterm.c version when a strictly horizontal or vertical
976 line is drawn.
977 (XTset_terminal_window): Add static.
978 (x_make_frame_visible): Add UNBLOCK_INPUT.
979 (x_free_frame_resources): New funcion (from xterm.c).
980 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
981 occurs in tool bar area.
982 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
983 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
984 Initialize image cache.
985 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
986 Enclose unused functions with #if 0.
987 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
988 (decode_mac_font_name): New function to apply code conversions
989 from a mac font name to an XLFD font name according to its script code.
990 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
991 font name to a mac font name according to REGISTRY and ENCODING fields.
992 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
993 whose name starts with `.'.
994 (init_font_name_table): Use decode_mac_font_name. Add both
995 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
996 of a font is smJapanese.
997 (mac_do_list_fonts): New function to list fonts that match a given
998 pattern.
999 (x_list_fonts, XLoadQueryFont): Use it.
1000 (XLoadQueryFont): Set rbearing field for each variable width
1001 character to avoid needless redraw.
1002 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
1003
1004 2004-02-26 Kim F. Storm <storm@cua.dk>
1005
1006 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
1007 as read_socket_hook handler on X aborts if buffer is too small
1008 and W32 handler doesn't always check buffer limit.
1009
1010 * xdisp.c (handle_single_display_prop): Handle left-fringe and
1011 right-fringe similar to a display margin image. Specifically,
1012 the characters having the fringe prop are no longer shown, and
1013 we use IT_IMAGE/next_element_from_image with image_id = -1 to
1014 do this. Set fringe bitmap face_id in it->face_id.
1015 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
1016 still realize it->face (i.e. the fringe bitmap face).
1017
1018 2004-02-25 Miles Bader <miles@gnu.org>
1019
1020 * xdisp.c (check_it): Check string/string_pos consistency.
1021 (init_iterator): Initialize string-related fields properly.
1022
1023 2004-02-11 Miles Bader <miles@gnu.org>
1024
1025 * xdisp.c (produce_image_glyph): Force negative descents to zero.
1026
1027 2004-02-10 Miles Bader <miles@gnu.org>
1028
1029 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
1030 BLOCK_INPUT can be nested, so it doesn't make much sense.
1031
1032 2004-02-24 Michael Mauger <mmaug@yahoo.com>
1033
1034 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
1035 (xbm_read_bitmap_data): Use unsigned char for image data.
1036
1037 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
1038
1039 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
1040
1041 2004-02-22 Jason Rumney <jasonr@gnu.org>
1042
1043 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
1044 correctly over other bitmaps.
1045
1046 2004-02-21 Eli Zaretskii <eliz@gnu.org>
1047
1048 * emacs.c (USAGE1): Split into two halves.
1049 (USAGE2): Second half of the old USAGE1.
1050 (USAGE3): Rename from USAGE2.
1051 (USAGE4): Rename from USAGE3.
1052
1053 2004-02-21 Juri Linkov <juri@jurta.org>
1054
1055 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
1056 Fix --multibyte. Move --help, --version to USAGE2. Add alias
1057 --file. Fix -f, -l. Sort options. Untabify.
1058 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
1059
1060 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
1061
1062 * category.c (Fdefine_category, Fcategory_docstring)
1063 (Fget_unused_category, Fset_category_table)
1064 (Fcategory_set_mnemonics): Doc fixes.
1065
1066 2004-02-20 Kim F. Storm <storm@cua.dk>
1067
1068 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
1069 The following changes are relative to the 2004-01-21 revision.
1070 (NREAD_INPUT_EVENTS): Define as max number of input events to read
1071 in one call to read_socket_hook. Value is 8.
1072 (read_avail_input): Separate and rework handling of read_socket_hook
1073 and non-read_socket_hook cases. Use smaller input_event buffer
1074 in read_socket_hook case, and repeat if full buffer is read.
1075 Use new local variable 'discard' to skip input after C-g.
1076 In non-read_socket_hook case, just use a single input_event, and
1077 call kbd_buffer_store_event on the fly for each character.
1078
1079 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
1080
1081 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
1082 Remove unused `gu' alternative.
1083
1084 2004-02-19 Andreas Schwab <schwab@suse.de>
1085
1086 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
1087 warning.
1088
1089 2004-02-18 Kim F. Storm <storm@cua.dk>
1090
1091 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
1092 Fix last change.
1093
1094 2004-02-17 Kim F. Storm <storm@cua.dk>
1095
1096 * xdisp.c (fast_find_position): Fix return value of new version;
1097 it was inverted compared to the 21.1 version.
1098 (get_window_cursor_type): Don't look at glyph if NULL.
1099 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
1100
1101 * keyboard.c: Rework previous change; it didn't consider that the
1102 buf array was allocated on the stack.
1103 (prev_read): Remove variable.
1104 (read_avail_input_buf): New static event buffer array.
1105 (in_read_avail_input): New static variable to handle re-entrancy.
1106 (read_avail_input): Change buf to pinter to read_avail_input_buf.
1107 Use in_read_avail_input to handle re-entrance; when re-entered,
1108 fully initialize and use tmp_buf array instead of read_avail_input_buf.
1109 Do not initialize read_avail_input_buf in full here; instead assume it
1110 is always cleared on entry. To ensure that, we clear (just) the
1111 entries that were used before we return.
1112 (init_keyboard): Initialize read_avail_input_buf here.
1113
1114 2004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
1115
1116 * cmds.c (Fend_of_line): Doc fix.
1117
1118 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
1119
1120 * keyboard.c (prev_read): New static variable.
1121 (read_avail_input): Use it to zero out only those slots in buf[]
1122 that were used last time we were called.
1123
1124 2004-02-16 Eli Zaretskii <eliz@gnu.org>
1125
1126 * Makefile.in (obj): Move fringe.o from here...
1127 (XOBJ, MAC_OBJ): ...to here.
1128
1129 2004-02-16 Stephen Eglen <stephen@gnu.org>
1130
1131 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
1132
1133 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
1134
1135 * data.c (Fbyteorder):
1136 * fringe.c (Fdefine_fringe_bitmap):
1137 * xdisp.c (handle_single_display_prop):
1138 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
1139
1140 2004-02-16 Jason Rumney <jasonr@gnu.org>
1141
1142 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
1143
1144 2004-02-15 Steven Tamm <steventamm@mac.com>
1145
1146 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
1147 controlling emulation of a three button mouse with option and
1148 command keys.
1149 (Qreverse, mac_get_enumlated_btn): Handle the emulation
1150 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
1151
1152 2004-02-15 Kim F. Storm <storm@cua.dk>
1153
1154 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
1155
1156 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
1157 Perform byte-swapping.
1158
1159 2004-02-14 Kim F. Storm <storm@cua.dk>
1160
1161 * dispextern.h (struct draw_fringe_bitmap_params): Change member
1162 bits from char to short to facilitate wider bitmaps.
1163 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
1164 member.
1165
1166 * fringe.c (struct fringe_bitmap): Change member bits from char to
1167 short to facilitate 16 bits wide bitmaps. Modify all standard
1168 bitmaps accordingly.
1169 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
1170 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
1171 (draw_fringe_bitmap): Ditto.
1172 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
1173 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
1174 handle up to 16 bits wide bitmaps.
1175 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
1176 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
1177
1178 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
1179 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
1180 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
1181
1182 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
1183 so it is no longer necessary to expand them here.
1184
1185 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
1186
1187 2004-02-12 Kim F. Storm <storm@cua.dk>
1188
1189 * window.c (Fwindow_fringes): Doc fix.
1190
1191 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1192
1193 * xselect.c (x_get_foreign_selection): Add new optional parameter
1194 time_stamp.
1195 (Fx_get_selection_internal): Ditto, pass time_stamp to
1196 x_get_foreign_selection.
1197
1198 * data.c (Fbyteorder): New function.
1199
1200 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1201
1202 * atimer.c: Move include stdio.h to same place as in other files.
1203
1204 * region-cache.c: Ditto.
1205
1206 * sysdep.c: Ditto.
1207
1208 * xfaces.c: Ditto.
1209
1210 2004-02-09 Sam Steingold <sds@gnu.org>
1211
1212 * w32term.c (w32_draw_fringe_bitmap): Fixed a typo in the last patch.
1213
1214 2004-02-09 Kim F. Storm <storm@cua.dk>
1215
1216 * fringe.c: New file. Move original fringe related declarations
1217 and code from dispextern.h and xdisp.c here.
1218 Rework code to support user defined fringe bitmaps, redefining
1219 standard bitmaps, ability to overlay user defined bitmap with
1220 overlay arrow bitmap, and add faces to bitmaps.
1221 (Voverflow_newline_into_fringe): Declare here.
1222 (enum fringe_bitmap_align): New enum.
1223 (..._bits): All bitmaps are now defined without bitswapping; that
1224 is now done in init_fringe_once (if necessary).
1225 (standard_bitmaps): New array with specifications for the
1226 standard fringe bitmaps.
1227 (fringe_faces): New array.
1228 (valid_fringe_bitmap_id_p): New function.
1229 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
1230 (draw_fringe_bitmap): New function which draws fringe bitmap,
1231 possibly overlaying bitmap with cursor in right fringe or the
1232 overlay arrow in the left fringe.
1233 (update_window_fringes): Do not handle overlay arrow here.
1234 Compare and copy fringe bitmap faces.
1235 (init_fringe_bitmap): New function.
1236 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
1237 define and destroy user defined fringe bitmaps.
1238 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
1239 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
1240 (syms_of_fringe): New function. Defsubr new DEFUNs.
1241 DEFVAR_LISP Voverflow_newline_into_fringe.
1242 (init_fringe_once, init_fringe): New functions.
1243 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
1244
1245 * Makefile.in (obj): Add fringe.o.
1246 (fringe.o): New dependencies.
1247
1248 * dispextern.h (FRINGE_ID_BITS): New definition for number of
1249 bits allocated to hold a fringe number. Increase number of bits
1250 from 4 to 8 to allow user defined fringe bitmaps.
1251 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
1252 left_user_fringe_face_id, right_user_fringe_bitmap,
1253 right_user_fringe_face_id.
1254 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
1255 Move to new file fringe.c.
1256 (MAX_FRINGE_BITMAPS): Define here.
1257 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
1258 and overlay_p. Change member which to int.
1259 (struct redisplay_interface): New members define_fringe_bitmap
1260 and destroy_fringe_bitmap.
1261 (valid_fringe_bitmap_id_p): Add prototype.
1262 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
1263
1264 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
1265 arrows.
1266 (update_frame): Do flush_display if force_flush_display_p to
1267 ensure display (specifically fringes) are updated in a timely
1268 manner when resizing the frame by dragging the mouse.
1269 (update_window_line): Update row if overlay arrow changed.
1270 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
1271 or overlay arrow changed.
1272
1273 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
1274 syms_of_fringe, and init_fringe.
1275
1276 * frame.h (struct frame): New member force_flush_display_p.
1277
1278 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
1279 Add prototypes.
1280
1281 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
1282 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
1283 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
1284 Use cursor color for displaying cursor in fringe.
1285 (x_redisplay_interface): Add null handlers for
1286 define_fringe_bitmap and destroy_fringe_bitmap functions.
1287
1288 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
1289 xterm.c to handle overlayed fringe bitmaps and to use cursor color
1290 for displaying cursor in fringe.
1291 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
1292 specific functions to define and destroy fringe bitmaps in fringe_bmp.
1293 (w32_redisplay_interface): Add them to redisplay_interface.
1294 (w32_term_init): Call w32_init_fringe instead of explicitly
1295 defining fringe bitmaps in fringe_bmp array.
1296 (x_delete_display): Call w32_reset_fringes instead of explicitly
1297 destroying fringe bitmaps in fringe_bmp array.
1298
1299 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
1300 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
1301 (continued_bits, continuation_bits, ov_bits, first_line_bits)
1302 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
1303 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
1304 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
1305 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
1306 Move fringe handling vars and code to new file fringe.c.
1307 (handle_display_prop): Handle left-fringe and right-fringe
1308 display properties; store user fringe bitmaps in iterator.
1309 (move_it_in_display_line_to): Handle cursor in fringe at eob.
1310 (clear_garbaged_frames): Set force_flush_display_p if resized.
1311 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
1312 (display_line): Handle cursor in fringe at eob.
1313 (display_line): Set row user fringe bitmaps from iterator.
1314
1315 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
1316 Use cursor color for displaying cursor in fringe.
1317 (x_redisplay_interface): Add null handlers for
1318 define_fringe_bitmap and destroy_fringe_bitmap functions.
1319
1320 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1321
1322 * macfns.c (Fx_change_window_property): Make doc string and
1323 parameters same as for X version.
1324
1325 * w32fns.c (Fx_change_window_property): Ditto.
1326
1327 2004-02-07 Kim F. Storm <storm@cua.dk>
1328
1329 * xdisp.c (hscroll_window_tree): Position cursor near to right
1330 margin in hscrolled window when jumping to end of line (rather
1331 than centering cursor).
1332
1333 * process.c (wait_reading_process_input): Don't do adaptive read
1334 buffering if waiting for a specific process.
1335
1336 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
1337
1338 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
1339 (Fread_minibuffer, Feval_minibuffer)
1340 (Fread_string, Fread_no_blanks_input)
1341 (Fcompleting_read): Doc fixes.
1342 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
1343 completion-regexp-list. Define Qcase_fold_search and staticpro it.
1344 (read_minibuf): Fix initial comment.
1345 (Ftry_completion, Fall_completions, Ftest_completion): Bind
1346 case-fold-serach to the value of completion-ignore-case when
1347 checking completion-regexp-list.
1348 (Fdisplay_completion_list): Make it handle arguments that are
1349 symbols. Doc fix.
1350
1351 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1352
1353 * xterm.h: Add declaration of free_frame_menubar.
1354
1355 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
1356 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
1357 (Fx_change_window_property): Add declaration of parameters type and
1358 format. Remove unused variable cons.
1359
1360 * xselect.c: Include stdio,h.
1361
1362 2004-02-05 Kenichi Handa <handa@m17n.org>
1363
1364 * fns.c (Fset_char_table_range): Fix previous change.
1365
1366 * buffer.c (Fset_buffer_multibyte): Fix docstring.
1367
1368 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
1369
1370 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
1371
1372 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
1373
1374 * keymap.c (Vmouse_events): Rename from Vmenu_events.
1375 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
1376
1377 2004-02-04 Kenichi Handa <handa@m17n.org>
1378
1379 * fns.c (Fset_char_table_range): Handle charsets ascii,
1380 eight-bit-control, and eight-bit-graphic correctly.
1381
1382 2004-02-03 Jason Rumney <jasonr@gnu.org>
1383
1384 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
1385
1386 * w32fns.c (x_to_w32_font): Likewise.
1387
1388 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1389
1390 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
1391 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
1392
1393 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
1394 ClientMessages.
1395
1396 * xselect.c: Include termhooks.h and X11/Xproto.h
1397 (x_check_property_data, x_fill_property_data)
1398 (x_property_data_to_lisp, mouse_position_for_drop)
1399 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
1400 (Fx_send_client_event): Move here from xfns.c.
1401 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
1402
1403 * xfns.c (x-send-client-message): Move to xselect.c
1404 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
1405 OUTER_P.
1406 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
1407 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
1408 if vector_ret_p is true.
1409 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
1410
1411 2004-02-02 Eli Zaretskii <eliz@gnu.org>
1412
1413 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
1414 basename of FILE relative to it, not FILE itself.
1415
1416 2004-02-02 Kenichi Handa <handa@m17n.org>
1417
1418 * coding.c (coding_restore_composition): Check invalid
1419 composition data more rigidly.
1420
1421 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
1422
1423 * fileio.c (Fread_file_name_internal): Correctly handle the case
1424 where insert-default-directory is nil.
1425 (Fread_file_name): Always return an empty string if the user exits
1426 with an empty minibuffer. Adapt the docstring accordingly.
1427 (syms_of_fileio): Adapt the docstring of insert-default-directory
1428 to the change in Fread_file_name.
1429
1430 2004-01-29 Eli Zaretskii <eliz@gnu.org>
1431
1432 * alloca.c [!alloca]: Fix the prototype for xfree.
1433
1434 2004-01-29 Kenichi Handa <handa@m17n.org>
1435
1436 * fns.c (string_char_to_byte): Optimize for ASCII only string.
1437 (string_byte_to_char): Likewise.
1438
1439 2004-01-28 Peter Runestig <peter@runestig.com>
1440
1441 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
1442
1443 2004-01-27 Steven Tamm <steventamm@mac.com>
1444
1445 * unexmacosx.c (unexec_copy): Do not copy more than was
1446 requested to prevent overwriting during unexec.
1447
1448 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1449
1450 * process.c (sigchld_handler): Add comment about not calling malloc.
1451
1452 * process.h: Add extern to synch_process_termsig.
1453
1454 2004-01-27 Steven Tamm <steventamm@mac.com>
1455
1456 * macterm.c (make_mac_frame, make_mac_terminal_frame):
1457 Move setting of scroll bars from make_mac_frame to
1458 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
1459
1460 2004-01-26 Richard M. Stallman <rms@gnu.org>
1461
1462 * search.c (Freplace_match): Handle nonexistent
1463 back-references properly.
1464
1465 2004-01-03 Richard M. Stallman <rms@gnu.org>
1466
1467 * window.c (decode_any_window): New function.
1468 (Fwindow_height, Fwindow_width, Fwindow_edges)
1469 (Fwindow_pixel_edges, Fwindow_inside_edges)
1470 (Fwindow_inside_pixel_edges): Use decode_any_window.
1471
1472 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1473
1474 * process.h: synch_process_termsig new variable.
1475
1476 * callproc.c: Define synch_process_termsig.
1477 (Fcall_process): Initiate synch_process_termsig to zero and
1478 check if non-zero and get signal name after subprocess has ended.
1479
1480 * process.c (sigchld_handler): Set synch_process_termsig
1481 if terminated by a signal. synch_process_death setting removed.
1482
1483 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
1484
1485 2004-01-26 Andreas Schwab <schwab@suse.de>
1486
1487 * print.c (print_preprocess): Declare size as EMACS_INT to not
1488 lose bits.
1489 (print_object): Likewise.
1490 * alloc.c (Fpurecopy): Likewise.
1491
1492 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
1493
1494 * window.c (Fwindow_minibuffer_p): Doc fix.
1495
1496 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
1497
1498 * editfns.c (Fformat): Make both passes accept the same set of flags.
1499
1500 2004-01-23 Kenichi Handa <handa@m17n.org>
1501
1502 * fns.c (Fmd5): If OBJECT is a buffer different from the current
1503 one, set buffer to OBJECT temporarily.
1504
1505 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1506
1507 * keyboard.c (kbd_buffer_gcpro): Remove.
1508 (kbd_buffer_store_event, clear_event, Fdiscard_input)
1509 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
1510 Don't initialize and/or maintain the variable any more. It was made
1511 redundant by my commit of 2003-06-15.
1512
1513 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
1514
1515 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1516
1517 * lisp.h: Add undef DECL_ALIGN.
1518
1519 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1520
1521 * process.c (wait_reading_process_input) [SYNC_INPUT]:
1522 Check interrupt_input_pending explicitly.
1523
1524 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
1525
1526 * keyboard.c (handle_async_input): New fun,
1527 extracted from input_available_signal.
1528 (input_available_signal, reinvoke_input_signal): Use it.
1529
1530 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
1531
1532 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
1533
1534 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
1535 manipulation macros for when tags are in the lower bits.
1536 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
1537 (DECL_ALIGN): New macro.
1538 (DEFUN): Use it.
1539
1540 * lisp.h [ENABLE_CHECKING]: Don't force union type.
1541
1542 * s/darwin.h (__attribute__): Remove outdated workaround.
1543
1544 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
1545
1546 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
1547 Don't check range of malloc address.
1548 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
1549
1550 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
1551
1552 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
1553
1554 2004-01-19 Kenichi Handa <handa@m17n.org>
1555
1556 * fontset.c (fontset_font_pattern): Fix previous change.
1557
1558 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
1559
1560 * xdisp.c (Voverflow_newline_into_fringe)
1561 (move_it_in_display_line_to, redisplay_internal)
1562 (update_window_fringes, redisplay_window, display_line, window):
1563 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
1564 that it compiles without a window-system.
1565 * dispnew.c (direct_output_for_insert, update_window): Likewise.
1566
1567 2004-01-16 Kim F. Storm <storm@cua.dk>
1568
1569 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
1570
1571 * buffer.c (init_buffer_once): Set buffer_defaults and
1572 buffer_local_flags for indicate_buffer_boundaries.
1573 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
1574 default- variable for it.
1575
1576 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
1577 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
1578 New members exact_window_width_line_p and cursor_in_fringe_p for
1579 overflowing newlines into right fringe.
1580 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
1581 and indicate_bottom_line_p for buffer boundaries and scrolling.
1582 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
1583 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
1584 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
1585 and HOLLOW_SQUARE_BITMAP.
1586 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
1587 Add prototypes.
1588
1589 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
1590 instead of related indicator fields.
1591 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
1592 (direct_output_for_insert): Handle exact width lines like
1593 contined lines. Call update_window_fringes.
1594 (update_window): Call update_window_fringes.
1595 (scrolling_window): Don't skip desired rows with changed bitmaps.
1596 Check if fringe bitmaps changes when assigning scrolled rows.
1597
1598 * xdisp.c (Voverflow_newline_into_fringe): New variable.
1599 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
1600 (move_it_in_display_line_to): Overflow newline into fringe for
1601 rows that are exactly as wide as the window.
1602 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
1603 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
1604 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
1605 (fringe_bitmaps): Add new bitmaps.
1606 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
1607 Select proper bitmap for cursor in fringe when appropriate.
1608 Handle alignment of bitmap to top or bottom of row.
1609 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
1610 done by update_window_fringes.
1611 (update_window_fringes, draw_window_fringes): New functions.
1612 (redisplay_internal): Call update_window_fringes in case only
1613 cursor row is updated.
1614 (redisplay_window): Call update_window_fringes.
1615 Explicitly call draw_window_fringes if redisplay was done using
1616 the current matrix or the overlay arrow is in the window.
1617 (try_window_reusing_current_matrix): Mark scrolled rows for
1618 fringe update (to update buffer-boundaries / scrolling icons).
1619 (find_last_unchanged_at_beg_row): Handle exact width lines line
1620 continued lines.
1621 (display_line): Overflow newline into fringe for rows that are
1622 exactly as wide as the window. Don't append space for newline
1623 in this case.
1624 (notice_overwritten_cursor): Explicitly clear cursor bitmap
1625 in fringe as if it had been overwritten.
1626 (erase_phys_cursor): Erase cursor bitmap in fringe.
1627 (syms_of_xdisp): Mark show-trailing-whitespace and
1628 void-text-area-pointer as user options.
1629 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
1630
1631 * xterm.c (x_update_window_end): Call draw_window_fringes.
1632 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1633 in row instead of actually drawing fringe bitmaps.
1634 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1635 (x_draw_window_cursor): Draw cursor in fringe.
1636
1637 * w32term.c (x_update_window_end): Call draw_window_fringes.
1638 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1639 in row instead of actually drawing fringe bitmaps.
1640 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1641 (w32_draw_window_cursor): Draw cursor in fringe.
1642
1643 * macterm.c (x_update_window_end): Call draw_window_fringes.
1644 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1645 in row instead of actually drawing fringe bitmaps.
1646 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1647 (mac_draw_window_cursor): Draw cursor in fringe.
1648
1649 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1650
1651 * xterm.c (handle_one_xevent): Don't handle characters that are part
1652 of an old style (XLookupString) compose sequence.
1653
1654 2004-01-15 Kenichi Handa <handa@m17n.org>
1655
1656 * search.c (Freplace_match): Use make_multibyte_string or
1657 make_unibyte_string according to the buffer multibyteness.
1658
1659 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
1660
1661 * alloc.c (struct interval_block, struct string_block)
1662 (struct symbol_block, struct marker_block, live_string_p)
1663 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
1664 Better preserve alignment for objects in blocks.
1665 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
1666
1667 * lread.c (defvar_per_buffer): Remove dead declaration.
1668
1669 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
1670 space size.
1671
1672 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1673
1674 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
1675 if a key press should pop down. Only pop down if a key is pressed
1676 outside the menu/dialog.
1677 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
1678 popup_get_selection.
1679 (create_and_show_dialog): Pass 1 for down_on_keypress to
1680 popup_get_selection.
1681
1682 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1683
1684 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
1685 BLOCK/UNBLOCK_INPUT.
1686
1687 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1688
1689 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
1690 specified.
1691
1692 2004-01-08 Kenichi Handa <handa@m17n.org>
1693
1694 * editfns.c (Fformat): Fix '&' to '&&'.
1695
1696 2004-01-08 Andreas Schwab <schwab@suse.de>
1697
1698 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
1699 size if PSEUDOVECTOR_FLAG is set.
1700
1701 2004-01-07 Kenichi Handa <handa@m17n.org>
1702
1703 * charset.c (Fdeclare_equiv_charset): Fix docstring.
1704
1705 * fontset.c (fontset_ref_via_base): Fix previous change.
1706
1707 2004-01-07 Kim F. Storm <storm@cua.dk>
1708
1709 * process.c (read_process_output): Only activate adaptive
1710 buffering if we read less than 256 bytes at a time.
1711
1712 2004-01-06 Kim F. Storm <storm@cua.dk>
1713
1714 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
1715 object and image object. Return glyph width and height.
1716 (mode_line_string, marginal_area_string): Ditto.
1717
1718 * dispextern.h (buffer_posn_from_coords, mode_line_string)
1719 (marginal_area_string): Fix prototypes.
1720
1721 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
1722 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
1723 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
1724
1725 * keyboard.c (make_lispy_position): Use modified mode_line_string,
1726 buffer_posn_from_coords, and marginal_area_string functions to
1727 include both string object and image object in the lispy position.
1728 Also add actual glyph width and height to position.
1729 (read_key_sequence): Use real buffer position from mouse
1730 event to find keymap property even when click is in marginal area.
1731
1732 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
1733 mode_line_string and marginal_area_string functions to handle
1734 both string object and image object properties.
1735
1736 2004-01-06 Andreas Schwab <schwab@suse.de>
1737
1738 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
1739 character.
1740
1741 2004-01-02 Andreas Schwab <schwab@suse.de>
1742
1743 * macterm.c (emacs_options, x_initialized, same_x_server):
1744 Remove unused (and duplicated) definitions.
1745
1746 2004-01-02 Kim F. Storm <storm@cua.dk>
1747
1748 * process.h (struct Lisp_Process): New members for adaptive read
1749 buffering: adaptive_read_buffering, read_output_delay, and
1750 read_output_skip.
1751
1752 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
1753 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
1754 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
1755 (process_output_delay_count, process_output_skip): New vars.
1756 (Vprocess_adaptive_read_buffering): New variable.
1757 (make_process): Initialize adaptive read buffering members.
1758 (Fstart_process): Set adaptive_read_buffering member.
1759 (deactivate_process): Cleanup adaptive read buffering.
1760 (wait_reading_process_input): Temporarily omit delayed
1761 subprocesses from the set of file descriptors to read from;
1762 adjust the select timeout if we skipped any subprocesses.
1763 (read_process_output): Increase adaptive read buffering delay if
1764 we read less than a full buffer; reduce delay when we read a
1765 full buffer.
1766 (send_process): Simplify using local Lisp_Process var.
1767 Reset adaptive read buffering delay after write.
1768 (init_process): Initialize process_output_delay_count and
1769 process_output_skip.
1770 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
1771
1772 2004-01-01 Jason Rumney <jasonr@gnu.org>
1773
1774 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
1775
1776 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
1777
1778 * print.c (Ferror_message_string): Add hyperlink in the docstring
1779 to the definition of `signal' in the Elisp manual.
1780 * eval.c (Fsignal): Ditto.
1781
1782 2003-12-29 James Clark <jjc@jclark.com> (tiny change)
1783
1784 * fns.c (internal_equal): Return t for two NaN arguments.
1785
1786 2003-12-29 Richard M. Stallman <rms@gnu.org>
1787
1788 * data.c (store_symval_forwarding): Handle setting
1789 default-fill-column, etc., by changing the value in
1790 buffers that use the default.
1791
1792 * minibuf.c (Fset_minibuffer_window): Doc fix.
1793
1794 * fileio.c (choose_write_coding_system): Ignore auto_saving
1795 if using the visited file for auto saves.
1796 (Fwrite_region): Don't update SAVE_MODIFF
1797 if auto-saving in visited file.
1798
1799 2003-12-29 Kenichi Handa <handa@m17n.org>
1800
1801 * dispextern.h (face_font_available_p): Extern it.
1802
1803 * fontset.c (Voverriding_fontspec_alist): New variable.
1804 (lookup_overriding_fontspec): New function.
1805 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
1806 (fontset_font_pattern): Likewise.
1807 (regulalize_fontname): New function.
1808 (Fset_fontset_font): Call regulalize_fontname.
1809 (Fset_overriding_fontspec_internal): New function.
1810 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
1811 Defsubr Sset_overriding_fontspec_internal.
1812
1813 * xfaces.c (face_font_available_p): New function.
1814
1815 2003-12-28 Richard M. Stallman <rms@gnu.org>
1816
1817 * buffer.c (Fother_buffer): Don't crash if BUF is nil
1818 or if its name is nil.
1819
1820 * buffer.c (Fkill_buffer): Don't delete auto-save file
1821 if it's the same as the visited file.
1822
1823 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
1824
1825 * coding.c (Fcheck_coding_system): Doc fix.
1826
1827 2003-12-28 Kim F. Storm <storm@cua.dk>
1828
1829 * Makefile.in (eval.o): Depend on dispextern.h.
1830
1831 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
1832 image glyph using image's ascent.
1833 (mode_line_string): Return image glyph as object clicked on.
1834 Adjust y0 for image glyph using image's ascent.
1835
1836 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
1837 (struct glyph): New members, ascent and descent. Used to save
1838 this glyph's ascent and descent, instead of having.
1839 (struct glyph): Declare member face_id using FACE_ID_BITS.
1840 (find_hot_spot): Add prototype.
1841
1842 * keyboard.c (Qimage): Remove extern (now in lisp.h).
1843 (QCmap): Declare extern.
1844 (make_lispy_position): When position is inside image hot-spot,
1845 use hot-spot element's id as posn element.
1846
1847 * lisp.h (IMAGEP): New macro to test for image object type.
1848 (Qimage): Declare extern.
1849
1850 * macfns.c (Qimage): Remove extern (now in lisp.h).
1851 (valid_image_p, parse_image_spec): Use IMAGEP macro.
1852
1853 * macterm.c (Qface, Qmouse_face): Remove unused externs.
1854
1855 * w32fns.c (Qimage): Remove extern (now in lisp.h).
1856 (valid_image_p, parse_image_spec): Use IMAGEP macro.
1857
1858 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
1859
1860 * w32term.c (Qface, Qmouse_face): Remove unused externs.
1861
1862 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
1863 pointer types.
1864 (Qrelative_width, Qalign_to): Remove unused variables.
1865 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
1866 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
1867 image maps.
1868 (x_y_to_hpos_vpos): Return glyph relative coordinates through
1869 new dx and dy args.
1870 Remove buffer_only_p arg (always 0). Simplify code accordingly.
1871 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
1872 than row's ascent and height, to get sensible height on tall rows.
1873 (build_desired_tool_bar_string): Remove Qimage extern.
1874 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
1875 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
1876 image glyph is alone on the last line.
1877 (append_glyph, append_composite_glyph, produce_image_glyph)
1878 (append_stretch_glyph): Set glyph's ascent and descent.
1879 (on_hot_spot_p): New function to check if position is inside an
1880 rectangular, circular, or polygon-shaped image hot-spot,
1881 (find_hot_spot): New function to search for image hot-spot.
1882 (Flookup_image_map): New defun to search for image hot-spot.
1883 (define_frame_cursor1): New aux function to determine frame pointer.
1884 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1885 Handle `pointer' text property and :pointer image property to
1886 control frame pointer shape. Detect image hot-spots for pointer
1887 and help_echo properties. Use define_frame_cursor1.
1888 (note_mouse_highlight): Use Vvoid_text_area_pointer.
1889 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
1890 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
1891
1892 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
1893
1894 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
1895 (Qimage): Remove extern (now in lisp.h).
1896 (valid_image_p, parse_image_spec): Use IMAGEP macro.
1897
1898 * xmenu.c (show_help_event): Remove unused code.
1899
1900 * xterm.c (Qface, Qmouse_face): Remove unused externs.
1901 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
1902 row's ascent and descent, to get a sensible height on tall rows.
1903
1904 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
1905
1906 * minibuf.c (Fcompleting_read): Undo previous change.
1907
1908 2003-12-25 Lars Hansen <larsh@math.ku.dk>
1909
1910 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
1911 Arguments GCPRO'ed in call to file name handler.
1912
1913 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
1914
1915 * termcap.c (tgetst1): Scan for "%pN"; if all
1916 N are continuous in [1,9], remove all "%pN".
1917
1918 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1919
1920 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
1921
1922 * xfaces.c (lface_fully_specified_p): Take into account that
1923 MAC OS always have unspecified stipple.
1924
1925 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
1926
1927 * tparam.c (tparam1): Add handling for `%pN', which
1928 means use param N for the next substitution.
1929
1930 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
1931
1932 * xfaces.c (Fcolor_gray_p): Fix omission bug:
1933 In case `frame' is nil, consult the selected frame.
1934 (Fcolor_supported_p): Likewise.
1935
1936 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
1937
1938 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
1939 Doc fixes.
1940
1941 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
1942 and an integer. Adapt the introductory comment accordingly.
1943 (Fread_from_minibuffer): Delete code moved into read_minibuf.
1944 Doc fix.
1945 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
1946 read_minibuf.
1947 (Fcompleting_read): Delete code moved into read_minibuf.
1948 (Ftest_completion): Make it handle obarrays and hash tables correctly.
1949
1950 2003-12-03 Kenichi Handa <handa@m17n.org>
1951
1952 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
1953 encoding sequence.
1954
1955 2003-12-01 Kenichi Handa <handa@m17n.org>
1956
1957 * composite.c (syms_of_composite): Don't make the compostion hash
1958 table week.
1959
1960 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
1961
1962 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
1963 * textprop.c (Fget_char_property_and_overlay): New function.
1964 (syms_of_textprop): Defsubr it.
1965
1966 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1967
1968 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
1969 to compile on terminal configuration.
1970
1971 * fileio.c (Fread_file_name): Check use_file_dialog also before
1972 calling Fx_file_dialog.
1973
1974 * fns.c: use_file_dialog: New variable.
1975 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
1976
1977 2003-11-29 Kim F. Storm <storm@cua.dk>
1978
1979 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
1980 (syms_of_msdos): Don't intern and staticpro them.
1981
1982 2003-11-27 Kim F. Storm <storm@cua.dk>
1983
1984 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
1985 coordinates relative to glyph at posn. If glyph is an image,
1986 return that as object at posn. Callers changed.
1987 (mode_line_string, marginal_area_string): Calculate and return
1988 pixel coordinates relative to glyph. Callers changed.
1989
1990 * dispextern.h (buffer_posn_from_coords, mode_line_string)
1991 (marginal_area_string): Fix prototypes.
1992 (window_box_left_offset, window_box_right_offset): Add prototypes.
1993
1994 * frame.h (get_specified_cursor_type, get_window_cursor_type):
1995 Remove prototypes.
1996
1997 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
1998
1999 * keyboard.c (make_lispy_position): Add x and y coordinates
2000 relative to the current glyph as 7th element of position.
2001 If glyph is an image, return it in the object element.
2002 (read_key_sequence): Skip checks for keymap property in cases
2003 where POSN_STRING is not a string (e.g. an image).
2004
2005 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
2006 (Vshow_text_cursor_in_void): New variable.
2007 (glyph_to_pixel_coords): Don't use negative hpos.
2008 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
2009 (append_stretch_glyph): Change ascent arg to be actual value
2010 in pixels rather than ratio to height. Callers changed.
2011 (calc_pixel_width_or_height): New aux function, implementing
2012 pixel based artihmetic for glyph widths and heights.
2013 (produce_stretch_glyph): Use calc_pixel_width_or_height for
2014 :width, :height, :align-to, and :ascent, thus allowing these to
2015 be specified in pixels as well as multiples of characters.
2016 Don't produce stretch glyphs with zero width or height.
2017 (get_specified_cursor_type): Declare static.
2018 (get_window_cursor_type): Declare static. Add glyph arg to be
2019 able to know when cursor is on an image; always substitute
2020 hollow-box cursor for filled-box cursor on images, to avoid
2021 negative images and flicker when blinking the cursor.
2022 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
2023 (note_mode_line_or_margin_highlight): Use non-text cursor rather
2024 than vertical scroll-bar cursor in display margins.
2025 (note_mouse_highlight): Use non-text cursor rather than text
2026 cursor in fringes and over images in the text area.
2027 Use non-text cursor when mouse pointer is outside editable text,
2028 i.e. in the void after end-of-line or end-of-buffer; this was
2029 already done for W32, but is now standard for all systems --
2030 user can toggle show-text-cursor-in-void to get old behaviour.
2031 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
2032 Vdisplay_pixels_per_inch.
2033
2034 2003-11-25 Andreas Schwab <schwab@suse.de>
2035
2036 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
2037 EMACS_INT to not lose bits.
2038 (Ffillarray): Don't set bits beyond the size of a bool vector.
2039
2040 2003-11-25 Kim F. Storm <storm@cua.dk>
2041
2042 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
2043 define this defun on systems that cannot use stderr as lvalue.
2044
2045 2003-11-24 Gerd Moellmann <gerd@gnu.org>
2046
2047 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
2048 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
2049 ld's default is incompatible with unexec.
2050
2051 2003-11-23 Kim F. Storm <storm@cua.dk>
2052
2053 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
2054 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
2055 (Fforce_window_update): New defun.
2056 (syms_of_window): Defsubr it.
2057 (Fset_window_margins, Fset_window_fringes): Doc fix.
2058
2059 * print.c (Fredirect_debugging_output): New defun.
2060 (syms_of_print): Defsubr it.
2061
2062 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
2063
2064 * fns.c (Fset_char_table_parent): Doc fix.
2065
2066 2003-11-22 Kim F. Storm <storm@cua.dk>
2067
2068 * dispnew.c (buffer_posn_from_coords): Return actual row/column
2069 for glyph clicked on, rather than (unused) pixel positions.
2070 (mode_line_string, marginal_area_string): Change X and Y args to
2071 pointers for returning actual row/column for glyph clicked on.
2072 Simplify and optimize loops.
2073
2074 * dispextern.h (mode_line_string, marginal_area_string):
2075 Update prototypes.
2076
2077 * keyboard.c (make_lispy_position): New function for generating
2078 mouse click positions from frame and pixel coordinates.
2079 Enhanced to return buffer position and actual row/column for
2080 events outside the text area using updated mode_line_string and
2081 marginal_area_string functions.
2082 Return left-fringe and right-fringe clicks as such, rather than
2083 clicks in text area.
2084 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
2085 pixel_to_glyph_coords, as we never use the results.
2086 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
2087 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
2088 Eliminate unused code in WHEEL_EVENT handling.
2089 (make_lispy_movement): Use make_lispy_position.
2090
2091 * window.c (coordinates_in_window): Remove redundant tests.
2092 Fix returned X pixel value for left-margin.
2093
2094 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
2095 mode_line_string and marginal_area_string parameters.
2096
2097 2003-11-22 Lars Hansen <larsh@math.ku.dk>
2098
2099 * w32.c (struct the_group, getgrgid): Add.
2100 * mac.c (struct my_group, getgrgid): Add.
2101
2102 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2103
2104 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
2105
2106 2003-11-21 Lars Hansen <larsh@math.ku.dk>
2107
2108 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
2109 include in call to file name handler. Optionally translate numeric
2110 UID and GID to strings. Update docstring.
2111 (directory_files_internal): Add parameter ID-FORMAT.
2112 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
2113 include in call to file name handler and call to
2114 directory_files_internal. Update Docstring.
2115 (Fdirectory_files): Add dummy parameter in call to
2116 directory_files_internal.
2117 * lisp.h (Qinteger): Add.
2118 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
2119 (Ffile_attributes): Add parameter.
2120 * data.c (Qinteger): Export.
2121
2122 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2123
2124 * fns.c (Freverse, Fnreverse): Doc fixes.
2125
2126 2003-11-19 Kim F. Storm <storm@cua.dk>
2127
2128 * xdisp.c (init_iterator): Initialize it->start to position
2129 before reseating (in case start position is invisible).
2130 (init_to_row_start): Set it->start to row-start.
2131 (redisplay_window): Accept optional_new_start if start position
2132 is invisible (in which case IT_CHARPOS overshoots PT).
2133 (display_line): Setup row->start from it->start (rather than
2134 it->current which is wrong if first char on line is invisible).
2135 When done, reseat it->start to it->current (= start of next row).
2136 (expose_area): Fix exposure of text area when first char (e.g. TAB)
2137 is only partially visible.
2138
2139 * dispextern.h (struct it): New member start.
2140
2141 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2142
2143 * alloc.c (make_float, Fcons): Clear the markbit at init time.
2144 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
2145 of block_index outside of the macro call.
2146 (Fgarbage_collect): Remove null code.
2147
2148 * m/amdx86-64.h: Don't redefine XPNTR.
2149
2150 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
2151 of VALMASK.
2152
2153 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
2154 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
2155 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
2156
2157 * lisp.h (VALMASK): Only define for non-union type.
2158 (MARKBIT): Remove.
2159 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
2160 (XTYPE): Define unconditionally.
2161 (XSETTYPE): Remove one more remnant.
2162 (EQ): Define differently for the union and non-union cases.
2163 (INTMASK): New bit mask.
2164 (struct Lisp_Marker): Move down to prepare for upcoming patch.
2165 (GC_EQ): Delegate to EQ.
2166
2167 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
2168
2169 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2170
2171 * xterm.c (x_window_to_scroll_bar): Move check of display to
2172 where window_id is compared.
2173
2174 2003-11-17 Kim F. Storm <storm@cua.dk>
2175
2176 * dispextern.h (struct it): New member first_vpos.
2177
2178 * xdisp.c (start_display): Set it->first_vpos.
2179 (try_window_id): Use first_vpos to start display in first _text_
2180 line if no reusable lines at start of window with header line.
2181
2182 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2183
2184 * w32fns.c (XPutPixel):
2185 * w32bdf.c (w32_init_bdf_font):
2186 * sunfns.c (sel_read):
2187 * process.c (Fmake_network_process):
2188 * frame.c (store_frame_param):
2189 * fontset.c (Fset_fontset_font):
2190 * emacs.c (shut_down_emacs):
2191 * ccl.c (ccl_driver): Remove period at end of error message.
2192
2193 * config.in: Regenerate.
2194
2195 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2196 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2197 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
2198 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
2199 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
2200
2201 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
2202
2203 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
2204 (XTmouse_position, handle_one_xevent): Pass Display* to
2205 x_window_to_scroll_bar.
2206 (x_window_to_scroll_bar): Take a Display* argument.
2207 Check that display for frame is equal to Display* argument.
2208 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
2209 x_display_info_for_display instead. Use Display in xev instead
2210 of GDK_DISPLAY.
2211 (x_dispatch_event): Call x_display_info_for_display.
2212 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
2213 (x_connection_closed): Call xg_display_close for GTK.
2214 (x_term_init): Call xg_display_open for additional displays.
2215 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
2216 for GTK.
2217
2218 * xmenu.c (single_menu_item, mouse_position_for_popup)
2219 (x_activate_menubar): Formatting adjustments.
2220
2221 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
2222 adjustments.
2223
2224 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
2225 (xg_display_close, xg_create_default_cursor)
2226 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
2227 handling.
2228 (xg_left_ptr_cursor): Remove.
2229 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
2230 cursor here.
2231 (xg_win_to_widget): Take Display* argument, call
2232 gdk_xid_table_lookup_for_display.
2233 (xg_create_frame_widgets, xg_get_file_name, create_menus)
2234 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
2235 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
2236 in FRAME_X_DISPLAY_INFO.
2237 (xg_get_scroll_id_for_window): Take Display* argument.
2238 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
2239 (xg_initialize): Remove xg_left_ptr_cursor.
2240
2241 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
2242 Display* argument also. Declare xg_display_open,
2243 xg_display_close, xg_create_default_cursor.
2244
2245 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2246
2247 * xterm.c (x_detect_focus_change): Do not change focus frame for
2248 Enter/LeaveNotify if the current focus frame has explicit focus.
2249
2250 2003-11-14 Kim F. Storm <storm@cua.dk>
2251
2252 * dispnew.c (update_text_area): Fix redisplay error when hscroll
2253 is active and first glyph is only partially visible.
2254
2255 2003-11-13 Kenichi Handa <handa@m17n.org>
2256
2257 * xdisp.c (select_frame_for_redisplay): New function.
2258 (redisplay_internal): Record also selected_frame for
2259 unwind_redisplay. Call select_frame_for_redisplay before
2260 redrawing each frame.
2261 (unwind_redisplay): Argument changed to a cons.
2262
2263 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
2264
2265 * fns.c (Fstring_to_multibyte): Doc fix.
2266
2267 2003-11-11 Kenichi Handa <handa@m17n.org>
2268
2269 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
2270
2271 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2272
2273 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
2274 program specified positions.
2275
2276 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2277
2278 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
2279
2280 2003-11-08 Kenichi Handa <handa@m17n.org>
2281
2282 * Makefile.in (lisp): Add kannada.el.
2283 (shortlisp): Likewise.
2284
2285 2003-11-07 Kenichi Handa <handa@m17n.org>
2286
2287 * coding.c (coding_allocate_composition_data):
2288 Reset coding->composing to COMPOSITION_NO.
2289 (coding_restore_composition): Detect invalid composition data.
2290 Give Fstring and Fvector a Lispy integer, not C int.
2291
2292 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
2293
2294 * floatfns.c (Flogb): Don't use VALMASK.
2295
2296 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
2297 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
2298
2299 * lisp.h (XINT): Move the cast to clarify what is going on.
2300 (GCTYPEMASK, XSETTYPE): Remove.
2301 (XGCTYPE): Make it an alias of XTYPE.
2302
2303 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2304
2305 * xterm.c (x_term_init): Fix formatting.
2306
2307 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2308
2309 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
2310 and xg_did_tearoff.
2311
2312 * gtkutil.c: Remove variable xg_did_tearoff.
2313 (xg_have_tear_offs): New function.
2314 (tearoff_remove): Just decrease xg_detached_menus.
2315 (tearoff_activate): Increase xg_detached_menus and call
2316 tearoff_remove when tearoff is removed.
2317 (xg_keep_popup): Remove function.
2318 (create_menus): Give add_tearoff_p as argument to recursive
2319 call to create_menus.
2320 (xg_create_widget): Use variables instead of multiple
2321 strcmp. Tell create_menus to create tear off only for
2322 menu bar menus.
2323 (xg_update_menubar): Change title for a detached menu also.
2324 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
2325 of deep_p.
2326 (xg_initialize): Initialize xg_detached_menus, remove
2327 initialization of xg_did_tearoff.
2328
2329 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
2330 xg_have_tear_offs returns non-zero.
2331 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
2332 call to xg_keep_popup.
2333
2334 2003-11-01 Andrew Choi <akochoi@shaw.ca>
2335
2336 * macterm.c (XTread_socket): Handle menubar selection and grow
2337 window only for mouseDown events.
2338
2339 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2340
2341 * xterm.c (x_term_init): For GTK part, increase x_initialized
2342 to check for more than one display. Use error instead of return 0.
2343
2344 2003-10-31 Andrew Choi <akochoi@shaw.ca>
2345
2346 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
2347 (copy_dysymtab): Call it.
2348
2349 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
2350
2351 * eval.c (Fdefvaralias): Doc fix.
2352
2353 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
2354
2355 * data.c (Fsetplist): Doc fix.
2356
2357 2003-10-14 Lute Kamstra <lute@gnu.org>
2358
2359 * window.c (Fset_window_fringes): Clarify docstring.
2360
2361 2003-10-14 Kim F. Storm <storm@cua.dk>
2362
2363 * window.c (Fset_window_margins): Simplify arg checking.
2364
2365 2003-10-13 Richard M. Stallman <rms@gnu.org>
2366
2367 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
2368 (print_partial_compiled_pattern): Replace assert with a printout.
2369 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
2370
2371 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
2372
2373 * window.c (Fset_window_margins): Allow only integers as args.
2374 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
2375 Doc fixes.
2376
2377 2003-10-13 Lute Kamstra <lute@gnu.org>
2378
2379 * window.c (Fset_window_fringes): Elaborate docstring.
2380
2381 2003-10-12 Andrew Choi <akochoi@shaw.ca>
2382
2383 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
2384
2385 * s/darwin.h (GC_MARK_STACK): Define.
2386
2387 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2388
2389 * window.c (shrink_windows): New function.
2390 (size_window): Call shrink_windows to calculate window sizes when
2391 shrinking frame with more than one window.
2392
2393 2003-10-12 Kim F. Storm <storm@cua.dk>
2394
2395 * xdisp.c (compute_fringe_widths): Doc fix.
2396
2397 2003-10-08 Kenichi Handa <handa@m17n.org>
2398
2399 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
2400
2401 2003-10-07 Kenichi Handa <handa@m17n.org>
2402
2403 * coding.c (Qcoding_system_define_form): New variable.
2404 (syms_of_coding): Intern and staticpro it.
2405 (Fcheck_coding_system): Try to autoload the definition of
2406 CODING-SYSTEM.
2407
2408 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
2409
2410 * fns.c (Frequire): Doc fix.
2411
2412 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2413
2414 * xfns.c (Fx_send_client_event): New function as a base for
2415 manipulating extended window manager hints.
2416 (Fx_send_client_event): Remove unused variable s.
2417
2418 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
2419 that function is removed.
2420
2421 * xterm.c (x_set_offset): Use move_offset_left/top instead of
2422 x/y_pixels_outer_diff.
2423 (x_check_expected_move): Calculate move_offset_left/top.
2424
2425 * xterm.h (struct x_output): New members: move_offset_top/left.
2426
2427 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
2428 call x_set_offset directly.
2429
2430 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
2431
2432 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
2433
2434 * xterm.c (x_delete_display): Free font names and font_encoder
2435 in dpyinfo->font_table.
2436
2437 * xfns.c (Fx_close_connection): Only call XFreeFont here.
2438 Move xfree of font names to x_delete_display.
2439
2440 * xterm.h (struct x_display_info): New member, wm_type.
2441 (struct x_output): New members, expected_top/left and
2442 check_expected_move.
2443
2444 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
2445 is received.
2446 (handle_one_xevent): Rename x_check_expected_move from
2447 x_check_fullscreen_move.
2448 (x_set_offset): Only add WM decoration sizes to modified_top/left
2449 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
2450 (x_check_expected_move): Rename from x_check_fullscreen_move.
2451 Removed fullscreen specific code. Use check_expected_move,
2452 expected_left/top instead. Also, set wm_type.
2453 (x_term_init): Initialize wm_type to unknown.
2454
2455 * frame.c (x_fullscreen_move): Remove addition of WM decoration
2456 sizes to move_x/y.
2457
2458 2003-10-03 Kenichi Handa <handa@m17n.org>
2459
2460 * macterm.c (x_load_font): Clear all members of FONTP before start
2461 filling them.
2462
2463 2003-10-02 Kenichi Handa <handa@m17n.org>
2464
2465 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
2466 before calling find_ccl_program_func. Call find_ccl_program_func
2467 only when fontp->font_encoder is not NULL.
2468
2469 * xterm.c (x_load_font): Clear all members of FONTP before start
2470 filling them.
2471
2472 2003-10-03 John Paul Wallington <jpw@gnu.org>
2473
2474 * keymap.c (map_keymap): Don't abort when binding is a vector.
2475
2476 2003-10-02 Jason Rumney <jasonr@gnu.org>
2477
2478 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
2479 Sync dependencies with Makefile.in.
2480 (alloca.o): Remove.
2481
2482 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
2483 filling them.
2484
2485 * w32bdf.c (w32_load_bdf_font): Likewise.
2486
2487 2003-09-30 Richard M. Stallman <rms@gnu.org>
2488
2489 * term.c (set_tty_color_mode): Calculate current_mode_spec
2490 regardless of value of VAL.
2491
2492 * intervals.c (graft_intervals_into_buffer):
2493 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
2494 Handle over_used when splitting UNDER.
2495
2496 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2497
2498 * regex.c (regex_compile): Free the stack when returning from function.
2499
2500 2003-09-28 Kenichi Handa <handa@m17n.org>
2501
2502 * fontset.c (Finternal_char_font): Change return value to
2503 cons (FONT-NAME . GLYPH-CODE).
2504
2505 2003-09-28 Eli Zaretskii <eliz@gnu.org>
2506
2507 * term.c (tty_setup_colors): Treat any negative argument as -1.
2508
2509 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
2510
2511 * process.c (send_process): Delete unused temp_buf.
2512
2513 2003-09-26 Dave Love <fx@gnu.org>
2514
2515 * xterm.c (x_bitmap_mask): Declare.
2516
2517 2003-09-25 Dave Love <fx@gnu.org>
2518
2519 * Makefile.in (fns.o): Depend on md5.h.
2520
2521 2003-09-25 Kim F. Storm <storm@cua.dk>
2522
2523 * window.c (set_window_buffer): Fix redisplay problems when
2524 switching between buffers with different display margin widths.
2525
2526 2003-09-23 Kim F. Storm <storm@cua.dk>
2527
2528 * process.c (set_socket_option): Fix :bindtodevice option.
2529 (Fset_network_process_option): Update process contact list when
2530 setting option succeeds.
2531 (Fmake_network_process): Doc fix.
2532
2533 2003-09-23 Dave Love <fx@gnu.org>
2534
2535 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
2536
2537 2003-09-22 Eli Zaretskii <eliz@gnu.org>
2538
2539 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
2540 color mode is an integer number (it could be -1).
2541
2542 2003-09-22 Richard M. Stallman <rms@gnu.org>
2543
2544 * intervals.c (graft_intervals_into_buffer): Correct the main loop
2545 in the case where OVER is longer than UNDER.
2546
2547 2003-09-22 Masatake YAMATO <jet@gyve.org>
2548
2549 * window.c (Fset_window_scroll_bars): Validate the value of
2550 `vertical_type'.
2551
2552 2003-09-21 Kim F. Storm <storm@cua.dk>
2553
2554 * frame.c (Vdefault_frame_scroll_bars): New variable.
2555 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
2556 (syms_of_frame): DEFVAR_LISP it, and initialize according to
2557 window-system default scroll bar position.
2558
2559 * window.c (Fwindow_scroll_bars): Doc fix.
2560
2561 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2562
2563 * xterm.c (x_set_offset): Take window manager decorations into account.
2564
2565 2003-09-19 Richard M. Stallman <rms@gnu.org>
2566
2567 * atimer.h: Don't include lisp.h.
2568 (P_): Define it here (as well as elsewhere).
2569
2570 * print.c (Fprin1_to_string): Move the PRINTPREPARE
2571 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
2572
2573 * data.c (Fvariable_binding_locus): New function.
2574 (syms_of_data): defsubr it.
2575 (Flocal_variable_p): Delete duplicate call to indirect_variable.
2576
2577 2003-09-18 Dave Love <fx@gnu.org>
2578
2579 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
2580
2581 * process.c (Fnetwork_interface_info): Fix type error.
2582 (Fnetwork_interface_list): Doc fix.
2583 (read_process_output, read_process_output): Delete unused var.
2584
2585 2003-09-17 Kim F. Storm <storm@cua.dk>
2586
2587 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
2588 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
2589 (Fnetwork_interface_info): Check that ifreq struct has required
2590 fields before accessing them; this requires that those fields are
2591 defined as macros, which may be too restrictive on some platforms,
2592 but it is better than failing on other platforms.
2593 (syms_of_process): Only defsubr above fns when included.
2594
2595 2003-09-17 Dave Love <fx@gnu.org>
2596
2597 * unexalpha.c: Don't include varargs.h.
2598
2599 2003-09-17 Kim F. Storm <storm@cua.dk>
2600
2601 * process.c (Fset_process_sentinel): Add sentinel to childp plist
2602 for network process.
2603 (socket_options): Add `:' prefix to option names. Add optbit field.
2604 (set_socket_option): Remove no_error arg and special handling of s < 0.
2605 Return 1<<optbit for known option, 0 for unknown.
2606 Do not interpret 0 as false for boolean option (only nil).
2607 Pass failed option and value to report_file_error.
2608 (Fset_network_process_options): Replace by Fset_network_process_option.
2609 (Fset_network_process_option): New function to set just one option.
2610 (Fmake_network_process): Allow :coding arg to be a cons.
2611 Allow :server arg to be an integer specifying backlog size.
2612 Remove :options arg, and allow options to be specified directly
2613 as :KEY, VALUE pairs. Parse these options before binding socket.
2614 As before, :reuseaddr t is default for a server process, but this
2615 can now be disabled by specifying :reuseaddr nil.
2616 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
2617 (init_process): Availability of network options is now checked with
2618 simpler syntax (featurep 'make-network-process :OPTION); use loop to
2619 setup features.
2620 (syms_of_process): Fix defsubr's for the replaced functions.
2621
2622 2003-09-16 Dave Love <fx@gnu.org>
2623
2624 * Makefile.in: Depend on coding.h.
2625
2626 2003-09-14 Kim F. Storm <storm@cua.dk>
2627
2628 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
2629 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
2630 (syms_of_process): Defsubr them.
2631
2632 * config.in: Regenerate.
2633
2634 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2635
2636 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
2637 * m/news-r6.h (XUNMARK): Remove.
2638 * m/mips.h (XUNMARK): Remove.
2639 * m/mips-siemens.h (XUNMARK): Remove.
2640 * m/iris4d.h (XUNMARK): Remove.
2641 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
2642
2643 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2644
2645 * lisp.h (VALBITS): Don't remove 1 for the markbit.
2646 (union Lisp_Object): Use unsigned int for types. Remove markbit.
2647 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
2648 (XTYPE): Use unsigned right-shift.
2649 (XMARKBIT, XMARK, XUNMARK): Remove.
2650
2651 * alloc.c (init_intervals, init_symbol, init_marker):
2652 Don't preallocate anything.
2653 (Fgarbage_collect, mark_object): Ignore the markbit.
2654
2655 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
2656
2657 2003-09-08 Lute Kamstra <lute@gnu.org>
2658
2659 * xdisp.c (pint2hrstr): New function.
2660 (decode_mode_spec): Add `%i' and `%I' specs.
2661 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
2662 for `mode-line-format'.
2663
2664 2003-09-07 Andreas Schwab <schwab@suse.de>
2665
2666 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
2667 avoid warning.
2668
2669 2003-09-07 Eli Zaretskii <eliz@gnu.org>
2670
2671 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2672
2673 2003-09-03 Kim F. Storm <storm@cua.dk>
2674
2675 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
2676 change (superseded by 2002-08-30 change); the default blink-off
2677 cursor is now again "no cursor".
2678
2679 2003-09-01 Jason Rumney <jasonr@gnu.org>
2680
2681 * makefile.w32-in (alloca.o): Remove.
2682 (coding.o): Depend on intervals.h
2683 (emacs.o, bytecode.o): Depend on window.h
2684
2685 2003-09-01 Dave Love <fx@gnu.org>
2686
2687 * Makefile.in (alloca.o): Remove commands.
2688 (coding.o): Depend on intervals.h composite.h window.h.
2689 (emacs.o): Depend on window.h keyboard.h keymap.h.
2690 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
2691 (bytecode.o): Depend on window.h.
2692
2693 2003-08-31 Jason Rumney <jasonr@gnu.org>
2694
2695 * w32term.c (w32_per_char_metric): Allow cached metrics to be
2696 returned even when font_type is unknown.
2697
2698 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
2699
2700 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2701
2702 * xterm.c (x_term_init): Initialize new fields in x_display_info.
2703
2704 * xterm.h (struct x_display_info): Add red/green/blue_bits and
2705 *_offset.
2706
2707 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
2708 calculate pixel value.
2709
2710 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
2711
2712 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
2713 Don't tell redisplay display is accurate when it's actually been
2714 paused for pending input.
2715
2716 2003-08-29 Richard M. Stallman <rms@gnu.org>
2717
2718 * dispnew.c (adjust_glyph_matrix): Call window_box
2719 whenever W is nonzero.
2720
2721 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2722 (Fkill_local_variable, Fmake_variable_frame_local)
2723 (Flocal_variable_p, Flocal_variable_if_set_p):
2724 Use indirect_variable to trace thru variable aliases.
2725
2726 * config.in: Updated.
2727
2728 * callint.c (Fcall_interactively): Save and restore
2729 Vthis_command, Vthis_original_command, real_this_command,
2730 and current_kboard->Vlast_command.
2731
2732 * abbrev.c (Fexpand_abbrev): Insert before deleting.
2733
2734 2003-08-29 Gerd Moellmann <gerd@gnu.org>
2735
2736 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
2737
2738 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
2739
2740 * coding.c (decode_coding_iso2022): Initialize local variable c2.
2741 (decode_coding_sjis_big5): Likewise.
2742
2743 2003-08-27 Jason Rumney <jasonr@gnu.org>
2744
2745 * w32.c (sys_pipe): Protect against file descriptor overflow.
2746
2747 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
2748
2749 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
2750
2751 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
2752
2753 * xfns.c (Vgtk_version_string): New variable.
2754 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
2755
2756 2003-08-24 Eli Zaretskii <eliz@gnu.org>
2757
2758 * term.c (term_init): Remove `const' from buffer_size's declaration.
2759
2760 * Makefile.in (msdos.o): Depend on intervals.h.
2761
2762 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
2763
2764 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2765
2766 * xterm.h (struct x_display_info): New fields: client_leader_window
2767 and Xatom_wm_client_leader.
2768
2769 * xterm.c (x_initialize): Move call to x_session_initialize to ...
2770 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
2771
2772 * xsmfns.c (create_client_leader_window): New function.
2773 (x_session_initialize): Call create_client_leader_window, take
2774 dpyinfo as argument.
2775
2776 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
2777
2778 * Makefile.in (xsmfns.o): Add more depenedencies.
2779
2780 2003-08-21 Dave Love <fx@gnu.org>
2781
2782 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
2783
2784 2003-08-21 Kenichi Handa <handa@m17n.org>
2785
2786 * term.c (term_init): Fix previous change; don't rely on the
2787 length of `buffer' if TERMINFO is defined.
2788
2789 2003-08-20 Dave Love <fx@gnu.org>
2790
2791 * atimer.h: Include lisp.h.
2792
2793 * lisp.h (EMACS_LISP_H): New.
2794 (popup_activated_flag): Don't declare.
2795
2796 * alloca.c: Some merging with gnulib. Change logic and doc
2797 concerning (x)malloc/(x)free -- no longer Emacs-specific.
2798 [DO_BLOCK_INPUT]: Don't include lisp.h.
2799 (xmalloc, xfree): Declare.
2800 (malloc): Don't declare.
2801
2802 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
2803 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
2804 atimer.h, blockinput.h.
2805
2806 * alloc.c (lisp_align_malloc): Change type of `aligned'.
2807
2808 * alloca.s: Removed.
2809
2810 2003-08-19 Gerd Moellmann <gerd@gnu.org>
2811
2812 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
2813 use -lncurses.
2814
2815 * term.c (term_init): Use a buffer of size 4096 for tgetent since
2816 FreeBSD returns something longer than 2044. Abort if the end of
2817 the buffer is overwritten.
2818
2819 2003-08-19 Miles Bader <miles@gnu.org>
2820
2821 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
2822
2823 2003-08-19 Gerd Moellmann <gerd@gnu.org>
2824
2825 * alloc.c (lisp_align_malloc): Check for memory full when
2826 allocating ablocks, which also avoids freeing a pointer into an
2827 ablocks structure.
2828
2829 * puresize.h (BASE_PURESIZE): Increase to 1100000.
2830
2831 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2832
2833 2003-08-16 Richard M. Stallman <rms@gnu.org>
2834
2835 * editfns.c (Fencode_time): Doc fix.
2836
2837 2003-08-16 David Ponce <david@dponce.com>
2838
2839 * fileio.c (Fwrite_region): Fix conditional expression to issue
2840 the right message.
2841
2842 2003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
2843
2844 * syntax.c (Fforward_word): Argument changed to optional.
2845 Set default value to 1.
2846
2847 2003-08-15 Kenichi Handa <handa@m17n.org>
2848
2849 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
2850 what autoscaled.
2851 (best_matching_font): Once we find a better scalable font, set
2852 non_scalable_has_exact_height_p to 1.
2853 (try_font_list): Call try_alternative_families to try any family
2854 with the given registry.
2855
2856 2003-08-09 Andreas Schwab <schwab@suse.de>
2857
2858 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
2859
2860 * print.c (print_string): Fix printing of multibyte string with
2861 nontrivial printcharfun.
2862
2863 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2864
2865 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
2866
2867 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
2868
2869 2003-07-31 Kenichi Handa <handa@m17n.org>
2870
2871 * process.c (read_process_output): Return the actually read bytes
2872 instead of the result of decoding.
2873
2874 2003-07-31 Kenichi Handa <handa@m17n.org>
2875
2876 * xterm.h (struct x_bitmap_record): New member have_mask.
2877
2878 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
2879 to 0.
2880 (x_create_bitmap_from_file): Likewise.
2881 (x_destroy_bitmap): Check have_mask member before freeing a mask.
2882 (x_destroy_all_bitmaps): Likewise.
2883 (x_create_bitmap_mask): Set have_mask member to 1.
2884
2885 2003-07-30 Richard M. Stallman <rms@gnu.org>
2886
2887 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
2888
2889 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2890
2891 * gtkutil.c (xg_mark_data): Update calls to mark_object.
2892
2893 2003-07-29 Richard M. Stallman <rms@gnu.org>
2894
2895 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
2896 Conditionalize XIM code on HAVE_XIM.
2897
2898 * fns.c (Fclear_string): New function.
2899 (syms_of_fns): defsubr it.
2900
2901 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
2902
2903 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
2904
2905 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
2906
2907 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
2908
2909 * buffer.c (delete_all_overlays): New function.
2910 * buffer.h (delete_all_overlays): Declare.
2911 * coding.c (run_pre_post_conversion_on_str):
2912 * print.c (temp_output_buffer_setup):
2913 * fileio.c (Finsert_file_contents):
2914 * minibuf.c (get_minibuffer): Use it.
2915
2916 2003-07-22 Andrew Choi <akochoi@shaw.ca>
2917
2918 * unexmacosx.c (unexec_regions_sort_compare):
2919 (unexec_regions_merge): New functions. Sort and merge unexec
2920 regions before dumping them.
2921
2922 2003-07-22 Dave Love <fx@gnu.org>
2923
2924 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
2925
2926 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
2927
2928 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
2929 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
2930 MARKBIT as the gcmarkbit for strings.
2931
2932 2003-07-21 Richard M. Stallman <rms@gnu.org>
2933
2934 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
2935
2936 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
2937 (syms_of_fns): Corresponding change.
2938
2939 * alloc.c (syms_of_alloc): Doc fixes.
2940
2941 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
2942
2943 * s/netbsd.h: Use -Wl syntax.
2944
2945 2003-07-17 Richard M. Stallman <rms@gnu.org>
2946
2947 * xterm.c (xim_initialize): Redo 6/24 change.
2948
2949 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
2950
2951 * buffer.c (copy_overlays): Use EMACS_INT for positions.
2952 (Fswitch_to_buffer): Don't signal an error when switching to the same
2953 buffer in a dedicated window.
2954
2955 * alloc.c: Use bitmaps for cons, as was done for floats.
2956 (init_float, init_cons): Let the normal code allocate the first block.
2957 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
2958 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
2959 New macros.
2960 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
2961 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
2962 (live_cons_p): Check the pointer is not past the `conses' array.
2963 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
2964 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
2965 (survives_gc_p): Use CONS_MARKED_P and simplify.
2966 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
2967
2968 2003-07-13 Paul Eggert <eggert@twinsun.com>
2969
2970 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
2971 puts it into BSS instead, at least on Solaris 8 and 9.
2972 This is a valid optimization, and it may occur on other platforms,
2973 so Emacs should not assume that initializing a static variable to
2974 zero puts it into data.
2975 * alloc.c (pure, staticvec):
2976 Initialize these arrays to nonzero, so that they're not
2977 put into BSS by that optimization.
2978
2979 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
2980
2981 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
2982 (lisp_align_malloc): Use posix_memalign is available.
2983 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
2984 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
2985 for consistency. Update users.
2986
2987 2003-07-13 Richard M. Stallman <rms@gnu.org>
2988
2989 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
2990
2991 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
2992
2993 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
2994 and use the Gtk+ function gtk_window_icon_from_file if available.
2995
2996 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
2997 handle mask of bitmaps.
2998 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
2999 mask property.
3000 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
3001
3002 * xterm.h (xg_set_icon): New function.
3003
3004 2003-07-12 Paul Eggert <eggert@twinsun.com>
3005
3006 * unexelf.c (unexec): Consider a section to precede the .bss
3007 section if its addresses overlap that of .bss.
3008
3009 2003-07-12 Richard M. Stallman <rms@gnu.org>
3010
3011 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
3012
3013 * config.in (HAVE_CRTIN): Add #undef.
3014 (INLINE): Really inline only if OPTIMIZE is defined.
3015
3016 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
3017 END_FILES_1.
3018 (START_FILES_1, END_FILES_1): New macros (conditional).
3019 (LD_SWITCH_SYSTEM_TEMACS): Define.
3020
3021 * s/openbsd.h: Don't include bsd4-3.h.
3022 (TERMINFO): Define.
3023 (LIBS_TERMCAP): Define.
3024 (LD_SWITCH_SYSTEM): Define (two definitions).
3025
3026 * xfns.c: Include libpng/png.h instead of png.h.
3027
3028 2003-07-11 Andreas Schwab <schwab@suse.de>
3029
3030 * buffer.c (modify_overlay): Update prototype.
3031 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
3032 Likewise.
3033
3034 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3035
3036 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
3037 (struct interval): Move to intervals.h.
3038 (struct Lisp_Marker): Use EMACS_INT for position info.
3039 (forward_point): Remove prototype of defunct function.
3040 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
3041 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
3042 (syms_of_textprop, set_text_properties): Remove prototypes that are
3043 already in intervals.h.
3044
3045 * intervals.h (struct interval): Move from lisp.h.
3046 Use EMACS_INT for position and size info.
3047
3048 * coding.c: Include intervals.h for Fset_text_properties.
3049
3050 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3051 position and length information.
3052
3053 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3054
3055 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3056 position and length information.
3057
3058 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3059
3060 Change overlays_after and overlays_before so the overlays themselves
3061 are linked into lists, rather than using cons cells. After all each
3062 Lisp_Misc already occupies 5 words, so we can add a `next' field to
3063 Lisp_Overlay for free and save up one cons cell per overlay (not
3064 to mention one indirection when traversing the list of overlay).
3065
3066 * lisp.h (struct Lisp_Overlay): New field `next'.
3067
3068 * buffer.h (struct buffer): Change overlays_before and overlays_after
3069 from Lisp lists of overlays to pointers to overlays.
3070
3071 * buffer.c (overlay_strings, recenter_overlay_lists):
3072 Fix typo in eassert in last commit.
3073 (unchain_overlay): New function.
3074 (add_overlay_mod_hooklist): Use AREF.
3075 (copy_overlays, reset_buffer, overlays_at, overlays_in)
3076 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
3077 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
3078 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
3079 (report_overlay_modification, evaporate_overlays, init_buffer_once):
3080 Adjust to new type of overlays_(before|after).
3081
3082 * alloc.c (mark_object): Mark the new `next' field of overlays.
3083 (mark_buffer): Manually mark the overlays_(after|before) fields.
3084
3085 * coding.c (run_pre_post_conversion_on_str):
3086 * editfns.c (overlays_around):
3087 * xdisp.c (load_overlay_strings):
3088 * fileio.c (Finsert_file_contents):
3089 * indent.c (current_column):
3090 * insdel.c (signal_before_change, signal_after_change):
3091 * intervals.c (set_point_both):
3092 * print.c (temp_output_buffer_setup): Use new type for
3093 overlays_(before|after).
3094
3095 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
3096
3097 * buffer.c (report_overlay_modification): Don't run hooks while
3098 traversing the list of overlays.
3099
3100 * buffer.h (struct buffer): Use an int for overlay_center.
3101 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3102 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3103
3104 * buffer.c (reset_buffer, recenter_overlay_lists)
3105 (adjust_overlays_for_insert, adjust_overlays_for_delete)
3106 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
3107 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
3108 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3109 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3110
3111 * xdisp.c (fast_find_position): Remove unused var.
3112
3113 * cmds.c (Qexpand_abbrev): New sym.
3114 (syms_of_cmds): Initialize it.
3115 (internal_self_insert): Use it to call expand-abbrev.
3116
3117 2003-07-09 Kim F. Storm <storm@cua.dk>
3118
3119 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if emacs
3120 was configured with --without-xim.
3121 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
3122
3123 2003-07-07 Richard M. Stallman <rms@gnu.org>
3124
3125 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
3126
3127 * alloc.c (Fgarbage_collect): Doc fix.
3128
3129 2003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
3130
3131 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
3132
3133 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3134
3135 * minibuf.c (read_minibuf): UNGCPRO before returning.
3136 (Ftry_completion, Fall_completions): Doc fix.
3137
3138 * alloc.c (live_float_p): Check that p is not past the `floats' array,
3139 now that `floats' is not the last element of the struct any more.
3140
3141 2003-07-06 Jason Rumney <jasonr@gnu.org>
3142
3143 * w32term.h (ClipboardSequence_Proc): New type.
3144
3145 * w32fns.c (clipboard_sequence_fn): New variable.
3146 (globals_of_w32fns): Initialize it.
3147
3148 * w32select.c (last_clipboard_sequence_number): New variable.
3149 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
3150 number if possible.
3151
3152 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3153
3154 * m/amdx86-64.h (MARKBIT):
3155 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
3156 MARKBIT and ARRAY_MARK_FLAG any more.
3157
3158 * m/hp800.h (XSETMARKBIT):
3159 * m/sr2k.h (XSETMARKBIT):
3160 * lisp.h (XSETMARKBIT): Remove unused macro.
3161
3162 * lisp.h (mark_object): Change prototype.
3163
3164 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
3165 (last_marked): Change accordingly.
3166 (mark_interval, mark_maybe_object, mark_maybe_pointer)
3167 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
3168 (mark_buffer): Update calls to mark_object.
3169
3170 * bytecode.c (mark_byte_stack):
3171 * fns.c (sweep_weak_table):
3172 * keyboard.c (mark_kboards): Update calls to mark_object.
3173
3174 2003-07-06 Jason Rumney <jasonr@gnu.org>
3175
3176 * alloc.c (struct ablock): Only include padding when there is some.
3177
3178 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
3179
3180 * alloc.c (ALIGN): Add casts to simplify usage.
3181 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
3182 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
3183 (struct ablock, struct ablocks): New types.
3184 (free_ablock): New global var.
3185 (lisp_align_malloc, lisp_align_free): New functions.
3186 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
3187 (struct float_block): Reorder and add gcmarkbits.
3188 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
3189 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
3190 (init_float, make_float): Use lisp_align_malloc.
3191 (free_float, live_float_p): Don't use `type' any more.
3192 (make_float): Use FLOAT_UNMARK to access to mark bit.
3193 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
3194 Use FLOAT_MARKED_P to access the mark bit.
3195 (pure_alloc): Simplify use of ALIGN.
3196 (mark_object): Use FLOAT_MARK to access the mark bit.
3197 (gc_sweep): Use new macros to access the float's mark bit.
3198 (init_alloc_once): Init free_ablock.
3199
3200 * lisp.h (struct Lisp_Float): Remove unused field `type'.
3201
3202 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
3203
3204 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
3205 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
3206 (allocate_buffer): Move.
3207 (string_bytes): Don't mask markbit of `size_byte'.
3208 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3209 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
3210 Use the `size' field of buffers (rather than the `name' field) for
3211 the mark bit, as is done for all other vectorlike objects.
3212 Use the new macros to access the mark bit of vectorlike objects.
3213
3214 2003-06-26 Richard M. Stallman <rms@gnu.org>
3215
3216 * puresize.h (BASE_PURESIZE): Increment base size.
3217
3218 * xdisp.c (fast_find_position): Enable Gerd's new definition.
3219
3220 * xterm.c (xim_initialize): Undo previous change.
3221
3222 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
3223
3224 * alloc.c (survives_gc_p): Simplify.
3225
3226 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
3227
3228 * window.c (Fset_window_dedicated_p): Simplify.
3229 (display_buffer_1): Don't raise the win from which minibuf was entered.
3230 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
3231 (Fminibuffer_selected_window): Simplify.
3232
3233 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
3234
3235 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
3236 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
3237
3238 * insdel.c (check_markers, adjust_markers_for_delete)
3239 (adjust_markers_for_insert, adjust_markers_for_replace)
3240 (prepare_to_modify_buffer, RESTORE_VALUE):
3241 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
3242 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
3243 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
3244 * alloc.c (Fmake_marker, free_marker, gc_sweep):
3245 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
3246 * editfns.c (save_excursion_restore, transpose_markers):
3247 * window.c (delete_window):
3248 * xdisp.c (message_dolog): Update for new types.
3249
3250 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3251
3252 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
3253 (realize_default_face): Use default_face_done_p for the force_p
3254 argument to set_lface_from_font_name. Set default_face_done_p to one.
3255
3256 * frame.c (make_frame): Initialize default_face_done_p.
3257
3258 * frame.h (struct frame): Add default_face_done_p.
3259
3260 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
3261 will be defined.
3262
3263 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
3264
3265 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
3266 Initialize the new field `gcmarkbit'.
3267 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
3268 (mark_interval_tree): Don't mark the tree separately from the nodes.
3269 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
3270 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3271 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
3272
3273 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
3274 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
3275 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
3276 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
3277 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
3278
3279 2003-06-24 Dave Love <fx@gnu.org>
3280
3281 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
3282
3283 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
3284 from gnulib.
3285
3286 2003-06-21 Richard M. Stallman <rms@gnu.org>
3287
3288 * fileio.c (Fwrite_region): Alternate messages
3289 for append and partial write.
3290
3291 * keyboard.c (read_key_sequence): When converting upcase fn key to
3292 downcase, update fkey and keytran so `backspace' gets translated.
3293
3294 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
3295
3296 * process.c (wait_reading_process_input): Don't signal SIGIO
3297 in batch mode.
3298
3299 2003-06-17 Kenichi Handa <handa@m17n.org>
3300
3301 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
3302 composite.h.
3303
3304 * xselect.c: Don't include charset.h, coding.h, composite.h.
3305 (Qforeign_selection): New variable.
3306 (syms_of_xselect): Intern and static it.
3307 (selection_data_to_lisp_data): Return a unibyte string made from
3308 data with `foreign-selection' text property.
3309
3310 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
3311
3312 * termhooks.h (EVENT_INIT): New macro.
3313
3314 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
3315
3316 * alloc.c (mark_kboards): Move to keyboard.c.
3317
3318 * keyboard.c (record_asynch_buffer_change, read_avail_input):
3319 * xterm.c (x_dispatch_event):
3320 * xmenu.c (find_and_call_menu_selection):
3321 * xdisp.c (handle_tool_bar_click):
3322 * w32menu.c (menubar_selection_callback):
3323 * sysdep.c (kbd_input_ast, read_input_waiting):
3324 * msdos.c (dos_rawgetc):
3325 * macterm.c (mac_check_for_quit_char):
3326 * macmenu.c (menubar_selection_callback):
3327 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
3328 data to kbd_buffer_store_event.
3329
3330 2003-06-15 Kim F. Storm <storm@cua.dk>
3331
3332 * xdisp.c (x_fix_overlapping_area): Always use area relative X
3333 to fix redisplay problem with tall characters (such as \e,AC\e(B).
3334
3335 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
3336
3337 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
3338
3339 2003-06-12 Kenichi Handa <handa@m17n.org>
3340
3341 * fileio.c (Fwrite_region): Save and restore restriction.
3342
3343 2003-06-12 Dave Love <fx@gnu.org>
3344
3345 * alloca.c (alloca): Declare arg as size_t.
3346
3347 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
3348 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
3349
3350 2003-06-11 Dave Love <fx@gnu.org>
3351
3352 * search.c (shrink_regexp_cache): Use xrealloc.
3353 (syms_of_search): Use xmalloc.
3354
3355 2003-06-10 Kim F. Storm <storm@cua.dk>
3356
3357 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
3358 Adjust phys_cursor.x to be relative to window box, rather than
3359 text area before checking -- to ensure cursor is redrawn when
3360 exposing window.
3361 Note: This also fixes a similar (older) bug if display margins
3362 are present.
3363
3364 2003-06-06 Kenichi Handa <handa@m17n.org>
3365
3366 * coding.c (encoding_buffer_size): If coding->type is
3367 coding_type_ccl, double magnification on CRLF encoding.
3368
3369 2003-06-06 Jason Rumney <jasonr@gnu.org>
3370
3371 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
3372 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
3373
3374 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
3375 Mac too.
3376
3377 2003-06-05 Dave Love <fx@gnu.org>
3378
3379 * strftime.c: Merge changes from gnulib.
3380
3381 * mktime.c (__mktime_internal): Merge changes from gnulib
3382 involving year 69 and dst2.
3383
3384 Changes to merge with gnulib version and be consistent with the
3385 autoconf test:
3386
3387 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
3388 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
3389 [HAVE_LOCALE_H]: Include locale.h.
3390 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
3391
3392 2003-06-05 Kim F. Storm <storm@cua.dk>
3393
3394 * window.c (coordinates_in_window): Convert X and Y to window
3395 relative coordinates inside mode-line and header-line parts.
3396 Convert X and Y to margin area relative coordinates inside left
3397 and right display margin parts.
3398
3399 2003-06-05 Jason Rumney <jasonr@gnu.org>
3400
3401 * w32fns.c (add_system_logical_colors_to_map): New function.
3402 (Fx_open_connection): Use it.
3403
3404 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
3405
3406 * process.c (allocate_pty): Revert part of the previous patch.
3407 (Faccept_process_output): Simplify.
3408
3409 2003-06-04 Jason Rumney <jasonr@gnu.org>
3410
3411 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
3412
3413 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
3414 (lispy_mouse_wheel_names): Remove.
3415 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
3416 Always define drag_and_drop_syms.
3417
3418 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
3419 WHEEL_EVENT events.
3420
3421 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
3422
3423 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
3424
3425 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
3426
3427 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3428
3429 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
3430 menu item label.
3431
3432 2003-06-03 Richard M. Stallman <rms@gnu.org>
3433
3434 * window.c (Fwindow_edges): Doc fix.
3435 (Fwindow_pixel_edges, Fwindow_inside_edges)
3436 (Fwindow_inside_pixel_edges): New functions.
3437 (syms_of_window): defsubr them.
3438
3439 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
3440 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
3441
3442 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
3443
3444 * dispnew.c (Fsit_for): Don't lie about the number of args.
3445
3446 2003-06-02 Dave Love <fx@gnu.org>
3447
3448 * callproc.c: Use HAVE_FCNTL_H, not USG5.
3449 (syms_of_callproc) <process-environment>: Doc fix.
3450
3451 * doc.c: Use HAVE_FCNTL_H, not USG5.
3452
3453 * xfaces.c (font_rescale_ratio): Fix for K&R.
3454
3455 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
3456
3457 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
3458
3459 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
3460
3461 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
3462 (xg_create_frame_widgets): Use ENCODE_UTF_8.
3463
3464 * xterm.c (Qutf_8): Move to coding.c
3465
3466 * xmenu.c (ENCODE_MENU_STRING): New.
3467 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
3468 Use it.
3469
3470 * coding.h (ENCODE_UTF_8): New.
3471 (Qutf_8): Declare.
3472
3473 * coding.c (Qutf_8): New.
3474 (syms_of_coding): Intern it.
3475
3476 * fns.c: Doc fixes.
3477
3478 2003-06-02 Kenichi Handa <handa@m17n.org>
3479
3480 * buffer.c (Fset_buffer_multibyte): Fix previous change.
3481
3482 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
3483
3484 * lread.c (openp): Make sure STR is a string.
3485
3486 2003-06-01 David Ponce <david@dponce.com>
3487
3488 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
3489 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
3490
3491 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
3492 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
3493 (discard_mouse_events): Discard WHEEL_EVENT events too.
3494 (lispy_wheel_names, wheel_syms): New.
3495 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
3496 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
3497 defined.
3498 (make_lispy_event): Add WHEEL_EVENT handler.
3499
3500 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
3501 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
3502 WHEEL_EVENT events.
3503
3504 2003-05-31 John Paul Wallington <jpw@gnu.org>
3505
3506 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
3507 timer are in lisp/emacs-lisp.
3508
3509 2003-05-31 Kenichi Handa <handa@m17n.org>
3510
3511 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
3512 region when a buffer is changed to unibyte.
3513
3514 * charset.h (VALID_LEADING_CODE_P): New macro.
3515 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
3516
3517 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
3518 is nonzero, accept multibyte form of eight-bit-control chars.
3519 (decode_composition_emacs_mule): Likewise.
3520 (decode_coding_emacs_mule): Likewise.
3521 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
3522 multibyte form of eight-bit-control chars.
3523
3524 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
3525 (Finsert_file_contents): If coding-system-for-read is bound to
3526 Qauto_save_coding, use the coding system emacs-mule with special
3527 setting for recovering a file.
3528 (choose_write_coding_system): On auto saving, use the coding
3529 system emacs-mule with special setting for auto saving.
3530 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
3531
3532 2003-05-30 Kenichi Handa <handa@m17n.org>
3533
3534 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
3535 properly before calling ccl_driver.
3536
3537 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
3538
3539 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
3540 nonzero.
3541 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
3542 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
3543
3544 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
3545
3546 * xfaces.c (realize_default_face): Do not abort if lface is
3547 non-existent - reverts change from 2003-05-19.
3548
3549 2003-05-29 Kenichi Handa <handa@m17n.org>
3550
3551 * coding.c (decode_coding_iso2022): Pay attention to the byte
3552 sequence of CTEXT extended segment, and retain those bytes as is.
3553
3554 2003-05-28 Kenichi Handa <handa@m17n.org>
3555
3556 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
3557 of CODING_REPLACEMENT_CHARACTER.
3558 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
3559 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
3560 check this flag on encoding.
3561 (encode_coding_sjis_big5): Check
3562 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
3563 (Fset_terminal_coding_system_internal): Set
3564 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
3565 instead of setting CODING_FLAG_ISO_SAFE flag in
3566 terminal_coding.flags.
3567
3568 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
3569 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
3570 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
3571
3572 2003-05-28 Richard M. Stallman <rms@gnu.org>
3573
3574 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
3575
3576 * eval.c (unbind_to): Move init of this_binding to separate statement.
3577
3578 2003-05-28 Kim F. Storm <storm@cua.dk>
3579
3580 * xdisp.c (expose_window): Fix error in calculation of
3581 window relative coordinates of area to redisplay.
3582
3583 2003-05-27 Jason Rumney <jasonr@gnu.org>
3584
3585 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
3586
3587 2003-05-27 David Ponce <david@dponce.com>
3588
3589 Handle W32 mouse wheel events as mouse click events, like in X.
3590
3591 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
3592 MOUSE_WHEEL_EVENT anymore.
3593
3594 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
3595 Scrolling down/up the mouse wheel is respectively mapped to mouse
3596 button 4 and 5.
3597 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
3598 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
3599 WM_MOUSEWHEEL events.
3600
3601 2003-05-27 Andreas Schwab <schwab@suse.de>
3602
3603 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
3604
3605 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
3606 partially visible line.
3607
3608 * alloc.c (Fgarbage_collect): Fix last change.
3609
3610 2003-05-26 John Paul Wallington <jpw@gnu.org>
3611
3612 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
3613
3614 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
3615
3616 * window.c (Fset_window_buffer): Add type of `keep_margins'.
3617 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
3618
3619 * window.h (window_box_text_cols): Declare.
3620
3621 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
3622 (x_draw_vertical_border): Remove unused var `f'.
3623
3624 * xfaces.c (build_scalable_font_name): Remove `unused var
3625 pixel_size' warning.
3626
3627 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
3628
3629 * unexelf.c (unexec): Remove `unused var n' warning.
3630
3631 * strftime.c (my_strftime_localtime_r): Remove `defined but
3632 unused' warning.
3633
3634 * process.c (allocate_pty): Remove `unused var stb' and
3635 `cp might be used uninitialized' warnings.
3636
3637 * dispnew.c (mode_line_string): Remove unused var `f'.
3638
3639 * coding.c (find_safe_codings): Remove unused var `i'.
3640
3641 * bytecode.c (Fbyte_code): Remove `unused val' warning.
3642
3643 * buffer.c (Fkill_buffer): Remove unused var `list'.
3644
3645 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
3646
3647 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3648
3649 * frame.c (make_frame): Condition want_fullscreen with
3650 HAVE_WINDOW_SYSTEM.
3651
3652 2003-05-25 Juanma Barranquero <lektu@terra.es>
3653
3654 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
3655 (Fwindow_scroll_bars): Fix typo in docstring.
3656
3657 2003-05-24 Kim F. Storm <storm@cua.dk>
3658
3659 The following changes serve several purposes:
3660
3661 1) Swap the position of fringes and display margins in windows, i.e.
3662 the fringes are now displayed between the margins and the text area
3663 (by default).
3664
3665 2) Allow fringe and scroll bar parameters to be set per-buffer and
3666 per-window (like display margins). Such settings are now stored
3667 in window configurations, preserved when frames are resized, and
3668 copied when windows are split vertically or horizontally.
3669 Several bugs related to display margins have been fixed.
3670
3671 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
3672
3673 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
3674 rather than FRAME_WIDTH (FRAME_FONT (f)).
3675
3676 5) Introduce a consistent naming of variables, members and macros
3677 depending on whether their value is measured in pixels or in
3678 canonical columns/lines. Pixel dimensions are named *_width and
3679 *_height, while canonical columns/lines are named *_cols and
3680 *_lines. Pixel positions are named *_x and *_y, while column/line
3681 positions are named *_col and *_line.
3682
3683 6) Consolidate more of the X, W32, and MAC gui code by moving
3684 common data into struct frame, and generalize it for the non-gui
3685 case by using suitable defaults.
3686
3687 7) Cleanup and consolidate the macros controlling frame and window
3688 layout into frame.h and window.h, and generalize the use of the
3689 various window_box_* functions (enhanced to handle the new fringe
3690 position and the per-window fringe and scroll bar settings).
3691
3692 * frame.h (struct frame): Rename members height to text_lines,
3693 width to text_cols, window_height to total_lines, window_width to
3694 total_cols, new_height to new_text_lines, new_width to
3695 new_text_cols. All uses changed.
3696 (struct frame): New members which consolidate common members of
3697 x_output, w32_output, and mac_output structures: left_pos,
3698 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
3699 win_gravity, size_hint_flags, border_width, internal_border_width,
3700 line_height, fringe_cols, left_fringe_width, right_fringe_width,
3701 want_fullscreen. All uses changed.
3702 (struct frame): New member column_width contaning the canonical
3703 column width, analogue to line_height. All uses changed.
3704 (struct frame): Rename members scroll_bar_pixel_width to
3705 config_scroll_bar_width, and scroll_bar_cols to
3706 config_scroll_bar_cols. All uses changed.
3707 (struct frame): New member scroll_bar_actual_width which
3708 consolidates and renames the vertical_scroll_bar_extra member of
3709 x_output, w32_output, and mac_output structures. All uses changed.
3710 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
3711 from x/w32/macterm.h files. All uses changed. Also change code
3712 which referred to f->output_data...->pixel_height.
3713 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
3714 from x/w32/macterm.h files. All uses changed. Also change code
3715 which referred to f->output_data...->pixel_width.
3716 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
3717 Also change code which referred to f->height.
3718 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
3719 Also change code which referred to f->width.
3720 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
3721 to update new_text_lines and new_text_cols members directly.
3722 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
3723 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
3724 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
3725 FRAME_SCROLL_BAR_COLS. All uses changed.
3726 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
3727 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
3728 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
3729 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
3730 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
3731 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
3732 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
3733 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
3734 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
3735 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
3736 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
3737 return line_height member (it now has proper value also for
3738 non-window frames).
3739 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
3740 return new column_width member (rather than the default font width).
3741 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
3742 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
3743 from x/w32/macterm.h files. Unconditionally return corresponding
3744 member of frame structure (they now have proper values also for
3745 non-window frames).
3746 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
3747 Calculate return value from left and right widths.
3748 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
3749 internal_border_width member (has proper value for non-window frame).
3750 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
3751 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
3752 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
3753 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
3754 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
3755 consolidated from xterm.h, macterm.h, and w32term.h.
3756 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
3757 consolidated from xterm.h, macterm.h, and w32term.h.
3758 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
3759 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
3760 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
3761 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
3762 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
3763 consolidated from x/mac/w32term.h.
3764 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
3765 consolidated from x/mac/w32term.h.
3766 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
3767 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
3768 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
3769 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
3770
3771 * window.h (struct window): Rename members left to left_col,
3772 top to top_line, height to total_lines, width to total_cols,
3773 left_margin_width to left_margin_cols, right_margin_width to
3774 right_margin_cols, orig_height to orig_total_lines, orig_top to
3775 orig_top_line. All uses changed.
3776 (struct window): New members left_fringe_width, right_fringe_width,
3777 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
3778 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
3779 New macros primarily used to simplify other macros.
3780 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
3781 referred to XINT (w->width).
3782 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
3783 referred to XINT (w->height).
3784 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
3785 referred to XINT (w->width) * canon_x_unit.
3786 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
3787 referred to XINT (w->height) * canon_y_unit.
3788 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
3789 referred to XINT (w->left).
3790 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
3791 all uses and code that referred to XINT (w->left) + XINT (w->width).
3792 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
3793 referred to XINT (w->top).
3794 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
3795 referred to XINT (w->top) + XINT (w->height).
3796 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
3797 referred to XINT (w->left) * canon_x_unit.
3798 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
3799 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
3800 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
3801 referred to XINT (w->top) * canon_y_unit.
3802 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
3803 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
3804 (WINDOW_LEFTMOST_P): New macro.
3805 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
3806 All uses changed.
3807 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
3808 All uses changed.
3809 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
3810 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
3811 Do not exclude left fringe width.
3812 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
3813 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
3814 Do not exclude fringe widths.
3815 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
3816 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
3817 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
3818 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
3819 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
3820 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
3821 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
3822 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
3823 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
3824 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
3825 New macros. Change code which referenced corresponding
3826 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
3827 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
3828 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
3829 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
3830 allow per-window scroll-bar settings.
3831 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
3832 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
3833 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
3834 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
3835 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
3836 FRAME_SCROLL_BAR_WIDTH.
3837 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
3838 (WINDOW_SCROLL_BAR_AREA_X): New macros.
3839 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
3840 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
3841 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
3842 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
3843 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
3844 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
3845 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
3846 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
3847 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
3848 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
3849 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
3850 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
3851 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
3852 (window_from_coordinates): Update prototype.
3853 (Fset_window_buffer): Update EXFUN.
3854 (set_window_buffer): Update prototype.
3855
3856 * dispextern.h (struct glyph_matrix): Rename members window_left_x
3857 to window_left_col, window_top_y to window_top_line. All uses
3858 changed.
3859 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
3860 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
3861 internal_border_width is now set to 0 for non-window frames.
3862 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
3863 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
3864 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
3865 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
3866 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
3867 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
3868 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
3869 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
3870 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
3871 Move to window.h and renamed [see window.h changes].
3872 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
3873 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
3874 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
3875 Use WINDOW_TOTAL_LINES.
3876 (frame_update_line_height): Remove prototype.
3877
3878 * buffer.h (struct buffer): Rename members measured in columns:
3879 left_margin_width to left_margin_cols, right_margin_width to
3880 right_margin_cols. All uses changed.
3881 New members left_fringe_width, right_fringe_width,
3882 fringes_outside_margins for per-buffer fringe settings.
3883 New members scroll_bar_width and vertical_scroll_bar_type for
3884 per-buffer scroll bar settings.
3885
3886 * buffer.c (init_buffer_once): Set buffer_defaults and
3887 buffer_local_flags for new buffer-local variables
3888 left_fringe_width, right_fringe_width, fringes_outside_margins,
3889 scroll_bar_width, and vertical_scroll_bar_type.
3890 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
3891 default-* variables for them.
3892
3893 * dispnew.c: Make (many) trivial substitutions for renamed and
3894 new macros in dispextern.h, frame.h and window.h.
3895 (mode_line_string): No need to adjust width for mode lines, as it
3896 is already adjusted by the caller.
3897 (marginal_area_string): Handle fringes inside/outside margins.
3898
3899 * frame.c: Make (many) trivial substitutions for renamed and
3900 new macros in dispextern.h, frame.h and window.h.
3901 (make_frame): Initialize left_fringe_width, right_fringe_width,
3902 fringe_cols, scroll_bar_actual_width, border_width,
3903 internal_border_width, column_width, line_height, x_pixels_diff,
3904 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
3905 members with values suitable for a non-window frames.
3906
3907 * gtkutil.c: Make (many) trivial substitutions for renamed and
3908 new macros in dispextern.h, frame.h and window.h.
3909
3910 * indent.c: Make (few) trivial substitutions for renamed and
3911 new macros in dispextern.h, frame.h and window.h.
3912
3913 * keyboard.c: Make (many) trivial substitutions for renamed and
3914 new macros in dispextern.h, frame.h and window.h.
3915 (make_lispy_event): Use window positions returned from
3916 window_from_coordinates when constructing the lisp event for
3917 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
3918 (incorrect) values locally.
3919 (make_lispy_movement): Use window positions returned from
3920 window_from_coordinates when constructing the lisp event, rather
3921 than calculating (incorrect) values locally.
3922
3923 * scroll.c: Make (some) trivial substitutions for renamed and
3924 new macros in dispextern.h, frame.h and window.h.
3925
3926 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
3927 scroll-bars.
3928
3929 * sysdep.c: Make (few) trivial substitutions for renamed and
3930 new macros in dispextern.h, frame.h and window.h.
3931
3932 * term.c: Make (some) trivial substitutions for renamed and
3933 new macros in dispextern.h, frame.h and window.h.
3934
3935 * widget.c: Make (few) trivial substitutions for renamed and
3936 new macros in dispextern.h, frame.h and window.h.
3937
3938 * window.c: Make (many) trivial substitutions for renamed and
3939 new macros in dispextern.h, frame.h and window.h.
3940 (make_window): Initialize new members
3941 left_margin_cols, right_margin_cols, left_fringe_width,
3942 right_fringe_width, fringes_outside_margins, scroll_bar_width,
3943 and vertical_scroll_bar_type.
3944 (coordinates_in_window): Adapted to new fringe/margin positions
3945 and per-window fringes and scroll-bars.
3946 Fix bug related to incorrectly adjusting coordinates by
3947 frame's internal_border_width (the effect normally negible since
3948 the internal_border_width is typically 0 or 1 pixel, but very
3949 noticeable for an internal_border_width of e.g. 25 pixels).
3950 Upon successful return (other than ON_NOTHING), the coordinates
3951 are now always properly converted to window relative for the
3952 given display element.
3953 (window_from_coordinates): Add new parameters wx and wy to
3954 return the window relative x and y position in the returned
3955 window and part. A null arg means, don't return the position.
3956 All callers changed.
3957 (adjust_window_margins): New function which may reduce the width
3958 of the display margins if a window's text area is too small after
3959 resizing or splitting windows.
3960 (size_window): Fix bug that did not account for display margin
3961 widths when checking the minimum width of a window; use
3962 adjust_window_margins.
3963 (set_window_buffer): Call Fset_window_fringes and
3964 Fset_window_scroll_bars to setup per-window elements.
3965 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
3966 existing display margin, fringe widths, and scroll bar settings
3967 (e.g. after splitting a window or resizing the frame).
3968 All callers changed.
3969 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
3970 (Fsplit_window): Duplicate original window's display margin,
3971 fringe, and scroll-bar settings; then call Fset_window_buffer with
3972 KEEP_MARGINS non-nil. This fixes a bug which caused a split
3973 window to only preserve the display margins in one of the windows.
3974 When splitting horizontally, call adjust_window_margins on both
3975 windows to ensure that the text area of the new windows is non too
3976 narrow. This fixes a bug which could cause emacs to trap if the
3977 width of the split window was less than the width of the display
3978 margins.
3979 (window_box_text_cols): Renamed from window_internal_width.
3980 All uses changed. Adapt to per-window fringes and scroll bars.
3981 Fix bug that caused vertical separator to be subtracted also on
3982 window frames. Fix another bug that did not reduce the returned
3983 value by the columns used for display margins.
3984 (window_scroll_line_based): Fix bug related to scrolling too much
3985 when display margins are present (implicitly fixed by the fix to
3986 window_box_text_cols).
3987 (scroll_left, scroll_right): Fix bug related to scrolling too far
3988 by default when display margins are present (implicitly fixed by
3989 the fix to window_box_text_cols).
3990 (struct saved_window): Rename members left to left_col, top to
3991 top_line, width to total_cols, height to total_lines, orig_top to
3992 orig_top_line, orig_height to orig_total_lines. All uses changed.
3993 New members left_margin_cols, right_margin_cols,
3994 left_fringe_width, right_fringe_width, fringes_outside_margins,
3995 scroll_bar_width, and vertical_scroll_bar_type for saving
3996 per-window display elements.
3997 (Fset_window_configuration): Restore display margins, fringes,
3998 and scroll bar settings. This fixes a bug which caused display
3999 margins to be discarded when saving and restoring a window
4000 configuration.
4001 (save_window_save): Save display margins, fringes, and scroll bar
4002 settings. This fixes a bug which caused display margins to be
4003 discarded when saving and restoring a window configuration.
4004 (Fset_window_margins): Do nothing if display margins are not
4005 really changed. Otherwise, call adjust_window_margins to ensure
4006 the text area doesn't get too narrow. This fixes a bug which
4007 could cause emacs to trap if setting display margins wider than
4008 the width of the window.
4009 (Fset_window_fringes): New defun to allow user to specifically set
4010 this window's fringe widths and position vs. display margins.
4011 (Fwindow_fringes): New defun to return window's actual fringe
4012 settings.
4013 (Fset_window_scroll_bars): New defun to allow user to specifically
4014 set this window's scroll bar width and position.
4015 (Fwindow_scroll_bars): New defun to return window's actual scroll
4016 bar settings.
4017 (compare_window_configurations): Also compare display margins,
4018 fringes, and scroll bar settings.
4019 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
4020
4021 * xdisp.c: Make (many) trivial substitutions for renamed and
4022 new macros in dispextern.h, frame.h and window.h.
4023 (window_box_width): Adapt to per-window fringes and scroll bars,
4024 and new fringe vs. display margin position. Note that returned
4025 value is no longer guaranteed to be a whole multiple of the frame
4026 column width, since per-window fringes may now be any width.
4027 (window_box_left_offset): New function like window_box_left, but
4028 value is relative to left border of window (rather than frame).
4029 (window_box_right_offset): New function like window_box_right,
4030 but value is relative to left border of window.
4031 (window_box_left): Adapt to per-window fringes and scroll bars,
4032 and new fringe vs. display margin position. Simplify by using
4033 WINDOW_LEFT_EDGE_X and window_box_left_offset.
4034 (window_box): Allow null args for unnecessary return values;
4035 change/simplify relevant callers.
4036 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
4037 and new fringe vs. display margin position.
4038 Use window_box_left_offset and window_box_right_offset
4039 (get_glyph_string_clip_rect): Adapt to per-window fringes and
4040 scroll bars, and new fringe vs. display margin position.
4041 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
4042 (draw_fringe_bitmap): Rework to handle per-window fringes and new
4043 fringe vs. display margin position.
4044 (hscroll_window_tree): Use window_box_width instead of window_box.
4045 (redisplay_window): Adapt to per-window scroll bars.
4046 (draw_glyphs): Rework to handle per-window fringes and scroll
4047 bars, and new fringe vs. display margin position.
4048 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
4049 (x_clear_end_of_line): Adapt to per-window fringes and scroll
4050 bars, and new fringe vs. display margin position. Fix bug which
4051 increased total width of full_width rows by width of scroll bars
4052 although window's total width already includes that.
4053 (x_fix_overlapping_area): Simplify using window_box_left_offset.
4054 (expose_area): Simplify using window_box_left_offset.
4055 (x_draw_vertical_border): Handle per-window scroll bar settings,
4056 mixing windows with left, right and no scroll bars.
4057
4058 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
4059 where it's used in x_list_fonts (for clarity).
4060 (frame_update_line_height): Remove unused function; functionality
4061 is now done directly when setting the default font in x_set_font.
4062
4063 * xfns.c: Make (many) trivial substitutions for renamed and
4064 new macros in dispextern.h, frame.h and window.h.
4065
4066 * xmenu.c: Make (some) trivial substitutions for renamed and
4067 new macros in dispextern.h, frame.h and window.h.
4068
4069 * xterm.h (struct x_output): Move members left_pos, top_pos,
4070 border_width, pixel_height, pixel_width, line_height,
4071 internal_border_width, vertical_scroll_bar_extra,
4072 left_fringe_width, right_fringe_width, fringe_cols,
4073 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4074 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4075 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4076 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4077 (PIXEL_WIDTH, PIXEL_HEIGHT)
4078 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4079 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4080 frame.h and renamed [see frame.h changes].
4081 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4082 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4083 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4084 and renamed [see frame.h changes].
4085
4086 * xterm.c: Make (several) trivial substitutions for renamed and
4087 new macros in dispextern.h, frame.h and window.h.
4088 (x_draw_glyph_string_box): Adapt to per-window fringes and
4089 scroll-bars.
4090 (scroll_run): Adapt to new fringe position.
4091 (glyph_rect): Use window coordinates returned from
4092 window_from_coordinates rather than frame_to_window_pixel_xy.
4093 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4094 scroll-bars.
4095 (handle_one_xevent): Simplify a USE_GTK conditional.
4096 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4097 (fringes are now inside margins, i.e. always in the clipping area).
4098 All callers changed.
4099 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4100 directly, then call compute_fringe_widths. Don't call
4101 frame_update_line_height.
4102
4103 * w32term.h (struct w32_output): Move members left_pos, top_pos,
4104 border_width, pixel_height, pixel_width, line_height,
4105 internal_border_width, vertical_scroll_bar_extra,
4106 left_fringe_width, right_fringe_width, fringe_cols,
4107 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4108 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4109 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4110 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4111 (PIXEL_WIDTH, PIXEL_HEIGHT)
4112 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4113 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4114 frame.h and renamed [see frame.h changes].
4115 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4116 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4117 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4118 and renamed [see frame.h changes].
4119
4120 * w32term.c: Make (several) trivial substitutions for renamed and
4121 new macros in dispextern.h, frame.h and window.h.
4122 (x_draw_glyph_string_box): Adapt to per-window fringes and
4123 scroll-bars.
4124 (glyph_rect): Use window coordinates returned from
4125 window_from_coordinates rather than frame_to_window_pixel_xy.
4126 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4127 scroll-bars.
4128 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
4129 (fringes are now inside margins, i.e. always in the clipping area).
4130 All callers changed.
4131 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4132 directly, then call compute_fringe_widths. Don't call
4133 frame_update_line_height.
4134
4135 * w32console.c: Make (few) trivial substitutions for renamed and
4136 new macros in dispextern.h, frame.h and window.h.
4137
4138 * w32fns.c: Make (many) trivial substitutions for renamed and
4139 new macros in dispextern.h, frame.h and window.h.
4140
4141 * w32menu.c: Make (few) trivial substitutions for renamed and
4142 new macros in dispextern.h, frame.h and window.h.
4143
4144 * macterm.h (struct mac_output): Move members left_pos, top_pos,
4145 border_width, pixel_height, pixel_width, line_height,
4146 internal_border_width, vertical_scroll_bar_extra,
4147 left_fringe_width, right_fringe_width, fringe_cols,
4148 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4149 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
4150 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4151 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4152 (PIXEL_WIDTH, PIXEL_HEIGHT)
4153 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4154 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4155 frame.h and renamed [see frame.h changes].
4156 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4157 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4158 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4159 and renamed [see frame.h changes].
4160
4161 * macterm.c: Make (several) trivial substitutions for renamed and
4162 new macros in dispextern.h, frame.h and window.h.
4163 (x_draw_glyph_string_box): Adapt to per-window fringes and
4164 scroll-bars.
4165 (glyph_rect): Use window coordinates returned from
4166 window_from_coordinates rather than frame_to_window_pixel_xy.
4167 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4168 scroll-bars.
4169 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4170 (fringes are now inside margins, i.e. always in the clipping area).
4171 All callers changed.
4172 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4173 directly, then call compute_fringe_widths. Don't call
4174 frame_update_line_height.
4175
4176 * macfns.c: Make (several) trivial substitutions for renamed and
4177 new macros in dispextern.h, frame.h and window.h.
4178 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
4179
4180 * macmenu.c: Make (few) trivial substitutions for renamed and
4181 new macros in dispextern.h, frame.h and window.h.
4182
4183 * msdos.h (struct x_output): Remove members left_pos, top_pos,
4184 and line_height, and use corresponding new members in struct
4185 frame. All uses changed.
4186 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
4187 superseeded by corresponding macros in frame.h.
4188
4189 * msdos.c: Make (several) trivial substitutions for renamed and
4190 new macros in dispextern.h, frame.h and window.h.
4191 (IT_note_mouse_highlight): Use updated window coordinates returned
4192 by window_from_coordinates, rather than adjusting them locally.
4193 (internal_terminal_init): No need to initialize line_height here;
4194 it now defaults to 1.
4195
4196 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
4197
4198 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
4199 dropping `down' events.
4200
4201 2003-05-24 Andreas Schwab <schwab@suse.de>
4202
4203 * coding.c (find_safe_codings): Fix last change.
4204
4205 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
4206
4207 * xfns.c (x_window): Fix typo from 2003-05-21 change.
4208
4209 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
4210
4211 * xdisp.c (display_mode_element): Increase max depth.
4212 Simplify the error handling code. Use a different error string
4213 for the case where we hit the depth limit.
4214
4215 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
4216
4217 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
4218
4219 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
4220
4221 * intervals.c (get_local_map): Don't get char-property of previous
4222 point any more: get_pos_property already does it and better.
4223
4224 2003-05-21 Dave Love <fx@gnu.org>
4225
4226 [Merged from unicode branch.]
4227
4228 * xfns.c (x_window, x_window): Use use_xim.
4229
4230 * xterm.c (use_xim): Initialize.
4231 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
4232 (x_term_init): Maybe set use_xim.
4233
4234 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
4235
4236 2003-05-21 Jason Rumney <jasonr@gnu.org>
4237
4238 * unexw32.c (_start): Remove _fmode initialization.
4239
4240 * emacs.c (main) [WINDOWSNT]: Move it here.
4241
4242 2003-05-20 Dave Love <fx@gnu.org>
4243
4244 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
4245
4246 2003-05-19 Richard M. Stallman <rms@gnu.org>
4247
4248 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
4249 as value for QCfont attribute.
4250 (realize_default_face): lface should already exist; crash if not.
4251 Specify 0 for FORCE_P when calling set_lface_from_font_name.
4252
4253 * frame.c (Fignore_event): Doc fix.
4254
4255 2003-05-19 Kenichi Handa <handa@m17n.org>
4256
4257 * coding.c (decode_coding_string): Handle post-read-conversion
4258 even if the coding doesn't require decoding.
4259
4260 2003-05-18 Richard M. Stallman <rms@gnu.org>
4261
4262 * callproc.c (Fcall_process_region): Doc fix.
4263
4264 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4265
4266 * lread.c (Fload): Print a message if package is obsolete.
4267
4268 * window.c (Fselect_window): Add optional `norecord' arg.
4269 (select_window_1): Fold into Fselect_window.
4270 (select_window_norecord): New function.
4271 (temp_output_buffer_show): Use it. Preserve current buffer.
4272
4273 * window.h (Fselect_window): Update declaration.
4274
4275 * window.c (delete_window, Fother_window, Fset_window_configuration):
4276 * minibuf.c (read_minibuf):
4277 * macterm.c (x_new_focus_frame):
4278 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
4279 * callint.c (Fcall_interactively):
4280 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
4281
4282 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
4283
4284 2003-05-17 David Kastrup <dak@gnu.org>
4285
4286 * process.c (read_process_output): Back out change from 2003-03-09.
4287
4288 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4289
4290 * editfns.c (get_pos_property): Don't assume that `object' = nil.
4291
4292 * textprop.c (text_property_stickiness): New arg `buffer'.
4293
4294 * intervals.h (text_property_stickiness): New arg `buffer'.
4295 (get_pos_property): Declare.
4296
4297 * intervals.c (get_local_map): Use get_pos_property, to obey
4298 stickiness and empty overlays.
4299 (create_root_interval, graft_intervals_into_buffer): Use BEG.
4300 (merge_properties, intervals_equal, merge_properties_sticky):
4301 Use XCAR, XCDR.
4302 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
4303
4304 2003-05-17 Richard M. Stallman <rms@gnu.org>
4305
4306 * minibuf.c (read_minibuf): If buffer is empty, record the default
4307 in the history.
4308 (Fminibuffer_complete_word): When deleting the overlap, take account
4309 of its real position.
4310
4311 * fns.c (map_char_table): Fix previous change.
4312
4313 * syntax.c (find_defun_start):
4314 When open_paren_in_column_0_is_defun_start,
4315 return beginning of buffer.
4316
4317 * lisp.h (map_char_table): Declare added arg.
4318
4319 * fns.c (map_char_table): New arg TABLE gets the master table.
4320 All calls changed.
4321 Process default and inheritance, resorting to Faref if necessary.
4322
4323 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
4324 (Faccessible_keymaps): Pass new arg to map_char_table.
4325
4326 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
4327
4328 * casetab.c (set_case_table): Pass new arg to map_char_table.
4329
4330 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
4331
4332 * lisp.h (specbinding_func): New typedef.
4333 (struct specbinding): Use specbinding_func, to put the `volatile'
4334 in the right place.
4335
4336 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
4337 to avoid GCC warning.
4338
4339 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
4340
4341 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
4342
4343 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
4344
4345 * keyboard.c (apply_modifiers): Don't fill the other cache.
4346
4347 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
4348
4349 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
4350
4351 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
4352 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
4353 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
4354 (Fset_window_configuration, Fcurrent_window_configuration)
4355 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
4356 (Fpos_visible_in_window_p, mark_window_cursors_off)
4357 (window_internal_height, window_internal_width, Frecenter)
4358 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
4359 (replace_buffer_in_all_windows, init_window_once, init_window)
4360 (syms_of_window, keys_of_window): Move from lisp.h.
4361 * lisp.h: Move window.c declarations to window.h.
4362
4363 * bytecode.c: Include window.h.
4364 * emacs.c: Include window.h.
4365
4366 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
4367 (keyremap): Add `parent' field.
4368 (keyremap_step): Use it. Remove `parent' argument.
4369 (read_key_sequence): Setup and use the new `parent' field.
4370
4371 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
4372
4373 * keyboard.c (adjust_point_for_property): Ensure termination.
4374
4375 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
4376
4377 * keyboard.c (follow_key): Remove dead variable `did_meta'.
4378 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
4379 duplicated handling of function-key-map and key-translation-map
4380 in read_key_sequence.
4381 (read_key_sequence): Use them.
4382
4383 * keyboard.c (adjust_point_for_property): Try harder to move point
4384 to the non-sticky end of an invisible property.
4385
4386 * xdisp.c (single_display_prop_intangible_p): Make `space' display
4387 property intangible as well.
4388
4389 2003-05-10 Andreas Schwab <schwab@suse.de>
4390
4391 * xmenu.c (single_menu_item): Change last parameter to void* to
4392 avoid warning.
4393
4394 2003-05-09 Richard M. Stallman <rms@gnu.org>
4395
4396 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
4397 Bind Qinhibit_modification_hooks to t so there will be no GC.
4398 Rename local `tem' to `save_deactivate_mark'.
4399
4400 * eval.c (specpdl_ptr): Declare volatile.
4401 (unbind_to): Copy the whole binding and decrement specpdl_ptr
4402 before doing the work of unbinding it.
4403
4404 * lisp.h (struct specbinding): Declare elements volatile.
4405 (specpdl_ptr): Declare volatile.
4406
4407 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
4408
4409 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
4410 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
4411
4412 2003-05-08 Dave Love <fx@gnu.org>
4413
4414 * coding.c (Vlast_coding_system_used): Doc fix.
4415
4416 2003-05-07 Jason Rumney <jasonr@gnu.org>
4417
4418 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
4419 when system does not support them.
4420
4421 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
4422
4423 * fileio.c (Qwrite_region_annotate_functions): New var.
4424 (build_annotations): Use it to process the global part of the hook.
4425 (syms_of_fileio): Init and staticpro it.
4426
4427 * keyboard.c (safe_run_hooks_error): Display a message instead of
4428 silently ignoring the error.
4429
4430 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
4431
4432 * keyboard.c (input_available_signal): Mark static.
4433 (menu_bar_items): Use map_keymap.
4434 (menu_bar_one_keymap): Remove.
4435 (menu_bar_item): Adjust arglist (for use in map_keymap).
4436 Properly hide a second binding when not both are keymaps.
4437
4438 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
4439 (single_keymap_panes): Use it and map_keymap.
4440 (single_menu_item): Use skp as well.
4441
4442 * keymap.h (map_keymap_function_t): New type.
4443 (map_keymap): Declare.
4444
4445 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
4446 (map_keymap_call, Fmap_keymap): New functions.
4447 (syms_of_keymap): Defsubr map-keymap.
4448
4449 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4450
4451 * gtkutil.c (create_dialog, make_widget_for_menu_item)
4452 (make_menu_item, create_menus, xg_update_menu_item): Don't call
4453 ..._with_mnemonic functions for menu items.
4454
4455 2003-05-01 Kenichi Handa <handa@m17n.org>
4456
4457 * coding.c (coding_system_accept_latin_extra_p): Delete this
4458 function.
4459 (find_safe_codings): Pay attention to
4460 the property tranlsation-table-for-encode of each codings.
4461 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
4462
4463 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
4464
4465 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
4466
4467 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
4468
4469 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
4470
4471 * lisp.h (CHECK): Wrap args in parenthesis.
4472 (specbind): Fix doc: symbol = Qnil is not supported any more.
4473
4474 * bytecode.c (Fbyte_code) <unwind-protect>:
4475 Use Fprogn rather than 0 and Qnil.
4476
4477 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
4478 `double', and `triple' modifiers as well.
4479
4480 2003-04-30 Richard M. Stallman <rms@gnu.org>
4481
4482 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
4483
4484 * alloc.c (abort_on_gc): New variable.
4485 (Fgarbage_collect): Abort if abort_on_gc is set.
4486
4487 * lisp.h (abort_on_gc): Add decl.
4488
4489 * eval.c (Fsignal): Clear abort_on_gc.
4490
4491 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
4492 Reinit FORMAT_START and END before second scan.
4493
4494 * xdisp.c (move_it_vertically_backward): Do the final big else
4495 even if nlines is 0.
4496
4497 * xdisp.c (redisplay_internal): Finish the per-frame loop
4498 even if redisplay is suspended by input.
4499
4500 2003-04-24 Andrew Choi <akochoi@shaw.ca>
4501
4502 * macterm.c (x_list_fonts): Return all fonts that match if
4503 maxnames = -1.
4504
4505 2003-04-25 Kenichi Handa <handa@m17n.org>
4506
4507 * syntax.c (skip_chars): Fix previous change.
4508
4509 2003-04-24 Kenichi Handa <handa@m17n.org>
4510
4511 * syntax.c (skip_chars): Make the code faster by using the common
4512 technique of *p, *stop, and *endp.
4513
4514 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4515
4516 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
4517 tool_bar_items so GTK tool bar expose callback does not access items
4518 being updated.
4519
4520 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
4521
4522 * eval.c (Fapply): Undo last change and add a comment about why.
4523
4524 2003-04-18 Miles Bader <miles@gnu.org>
4525
4526 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
4527 pickier PARSE_MULTIBYTE_SEQ.
4528
4529 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
4530
4531 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
4532 Use XCDR, XCAR, CONSP.
4533 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
4534 (Fapply): Remove unnecessary GCPRO.
4535
4536 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
4537
4538 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
4539
4540 * buffer.h: Don't hardcode BEG==1.
4541
4542 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
4543
4544 2003-04-16 Richard M. Stallman <rms@gnu.org>
4545
4546 * xdisp.c (try_window, try_window_reusing_current_matrix):
4547 When at end of window, set window_end_pos to Z-ZV.
4548
4549 * buffer.c (Foverlay_recenter): Doc fix.
4550
4551 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
4552
4553 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
4554
4555 2003-04-14 Andrew Choi <akochoi@shaw.ca>
4556
4557 * macterm.c (mac_check_for_quit_char): Don't check more often than
4558 once a second.
4559
4560 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
4561
4562 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
4563 specially, so that they can't hide an implicit switch-frame event.
4564 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
4565 (head_table): Use switch-frame as event_kind for select-window.
4566 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
4567
4568 * editfns.c (Fformat): Lisp_Object/int mixup.
4569 (format2): Remove unused var numargs.
4570
4571 2003-04-11 Kenichi Handa <handa@m17n.org>
4572
4573 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
4574 (Qafter_insert_file_set_coding): New variable.
4575 (syms_of_fileio): Initialize and staticpro it. Delete declaration
4576 for after-insert-file-adjust-coding-function.
4577 (Finsert_file_contents): Call Qafter_insert_file_set_coding
4578 instead of Vafter_insert_file_adjust_coding_function.
4579
4580 2003-04-11 Kenichi Handa <handa@m17n.org>
4581
4582 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
4583
4584 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
4585 string. Callers changed.
4586
4587 2003-04-10 Kenichi Handa <handa@m17n.org>
4588
4589 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
4590 (syms_of_fileio): Declare it as a lisp variable.
4591 (Finsert_file_contents):
4592 Call Vafter_insert_file_adjust_coding_function before calling
4593 decode-format.
4594
4595 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4596
4597 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
4598 get GtkAdjustment as widget now is a GtkRange.
4599
4600 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
4601 GtkRange to avoid memory leak.
4602
4603 2003-04-09 Kenichi Handa <handa@m17n.org>
4604
4605 * xfaces.c (Vface_font_rescale_alist): New variable.
4606 (struct font_name): New member rescale_ratio.
4607 (font_rescale_ratio): New function.
4608 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
4609 (better_font_p): On comparing point sized, pay attention to
4610 recale_ratio member of fonts.
4611 (build_scalable_font_name): Reflect font->rescale_ratio in the
4612 font name.
4613 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
4614
4615 * lread.c (read1): Before calling index, check if the 2nd
4616 arguemnt is in ASCII range.
4617
4618 2003-04-08 Richard M. Stallman <rms@gnu.org>
4619
4620 * fileio.c (Ffile_symlink_p): Doc fix.
4621
4622 * editfns.c (Fformat): Translate positions of text properties
4623 in the format string to apply them to the result.
4624
4625 * fileio.c (Finsert_file_contents): Doc fix.
4626 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
4627
4628 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
4629
4630 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
4631
4632 2003-04-08 Steven Tamm <steventamm@mac.com>
4633
4634 * mac.c (init_mac_osx_environment): Switch libexec and bin so
4635 that self-contained application finds libexec files.
4636
4637 2003-04-08 Kenichi Handa <handa@m17n.org>
4638
4639 * coding.c (code_convert_region_unwind):
4640 Set Vlast_coding_system_used to the argument.
4641 (code_convert_region): If post-read-conversion function changed
4642 the value of last-coding-sytem, keep the new value in
4643 coding->symbol so that it won't be overridden.
4644 (run_pre_post_conversion_on_str): Likewise.
4645 (coding_system_accept_latin_extra_p): New function.
4646 (find_safe_codings): Pay attention to characters registered in
4647 latin-extra-code-table.
4648
4649 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
4650
4651 * Makefile.in (md5.o): Add missing dependency info.
4652
4653 2003-04-06 Richard M. Stallman <rms@gnu.org>
4654
4655 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
4656
4657 * marker.c (verify_bytepos): New function.
4658
4659 * intervals.c (set_intervals_multibyte_1): When becoming
4660 multibyte, adjust right and left child sizes to a whole set of
4661 characters. If an interval gets zero total-length, delete it.
4662 If an interval consists of just its children, delete one of them.
4663
4664 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
4665 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
4666
4667 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
4668 All calls deleted.
4669 (lisp_malloc): Do the work here directly.
4670
4671 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
4672
4673 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
4674 char tables.
4675
4676 2003-04-04 Kenichi Handa <handa@m17n.org>
4677
4678 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
4679 destructively change "%S" to "%s".
4680
4681 2003-04-03 Miles Bader <miles@gnu.org>
4682
4683 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
4684 always set.
4685
4686 2003-04-01 Dave Love <fx@gnu.org>
4687
4688 * xfns.c (xpm_lookup_color): Grok "opaque".
4689
4690 2003-03-31 Andrew Choi <akochoi@shaw.ca>
4691
4692 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
4693 parent window ID.
4694
4695 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
4696
4697 * macterm.h (struct mac_output): Define x_pixels_diff and
4698 y_pixels_diff.
4699
4700 2003-03-31 Juanma Barranquero <lektu@terra.es>
4701
4702 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
4703 blockinput.h and files included from it.
4704
4705 2003-03-31 Kim F. Storm <storm@cua.dk>
4706
4707 The following changes consolidates the common code related to
4708 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
4709 files into frame.c.
4710
4711 * frame.c: Include blockinput.h.
4712 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
4713 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
4714 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
4715 related vars here.
4716 (struct frame_parm_table, frame_parms): New table for describing
4717 frame parameters and their associated Q-variable.
4718 The order of the parameters corresponds to the sequence of the
4719 frame_parm_handlers table in redisplay_interface.
4720 (x_fullscreen_move, x_set_frame_parameters)
4721 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
4722 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
4723 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
4724 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
4725 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
4726 Generic functions for processing of frame parameters.
4727 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
4728 (display_x_get_resource, x_get_resource_string): Functions for
4729 generic access to X resources.
4730 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4731 (x_default_parameter, Fx_parse_geometry): Functions for generic
4732 access to frame parameters.
4733 (x_figure_window_size): Generic calculation of frame size.
4734 Fixed to add space needed for tool bar. Also setup size_hint_flags.
4735 (syms_of_frame): Intern and staticpro frame parameter variables.
4736 Defvar_lisp Vx_resource_class and Vx_resource_name here.
4737 Defsubr Sx_get_resource and Sx_parse_geometry.
4738
4739 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
4740 parameter related vars defined in frame.c.
4741 (EMACS_CLASS): Define here.
4742 (enum FULLSCREEN_*): Define here.
4743 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
4744 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
4745 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
4746 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
4747 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
4748 (x_set_visibility, x_set_autoraise, x_set_autolower)
4749 (x_set_unsplittable, x_set_vertical_scroll_bars)
4750 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
4751 (x_figure_window_size): Add prototypes.
4752
4753 * dispextern.h (frame_parm_handler): New typedef.
4754 (struct redisplay_interface): New member frame_parm_handlers.
4755 (enum resource_types): Move declaration here.
4756 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4757 (x_default_parameter): Add prototypes.
4758
4759 * window.c: Remove extern decl for frame parameter vars.
4760 (change_window_heights): New generic function;
4761 replaces x_change_window_heights. All users changed.
4762
4763 * window.h (change_window_heights): Add prototype.
4764
4765 * xfaces.c: Remove extern decl for frame parameter vars.
4766
4767 * xterm.h (EMACS_CLASS): Remove. Use generic define.
4768 (struct w32_display_info): Fix type of xrdb member.
4769 (enum FULLSCREEN_*): Remove.
4770 Remove prototypes for generic functions (in frame.h).
4771
4772 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
4773 parameters now defined in frame.h and frame.c.
4774 (Vx_resource_name): Remove. Use generic var.
4775 (enum x_frame_parms): Remove (bogus, unused enum).
4776 (check_x_display_info): Make non-static (for frame.c).
4777 (struct x_frame_parm_table, x_frame_parms): Remove.
4778 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
4779 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
4780 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
4781 (x_change_window_heights, x_set_autoraise, x_set_autolower)
4782 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
4783 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
4784 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
4785 Remove. Use generic functions instead.
4786 (enum resource_types): Remove.
4787 (x_set_scroll_bar_default_width): New global function (for frame.c).
4788 (Fx_create_frame): Depend on x_figure_window_size to add space for
4789 toolbar and setup size_hint_flags.
4790 (x_frame_parm_handlers): New table for redisplay_interface.
4791 (syms_of_xfns): Don't intern/staticpro removed vars.
4792
4793 * xterm.c: Remove unnecessary extern declarations.
4794 (x_fullscreen_adjust): Remove. Use generic instead.
4795 (x_redisplay_interface): Add x_frame_parm_handlers member.
4796
4797 * w32gui.h (XrmDatabase): New (dummy) typedef.
4798
4799 * w32term.h (EMACS_CLASS): Remove. Use generic define.
4800 (struct w32_display_info): Fix type of xrdb member.
4801 (enum FULLSCREEN_*): Remove.
4802 (x_fullscreen_adjust): Remove prototype.
4803
4804 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
4805 parameters now defined in frame.h and frame.c.
4806 (Vx_resource_name): Remove. Use generic var.
4807 (enum x_frame_parms): Remove (bogus, unused enum).
4808 (check_x_display_info): Make non-static (for frame.c).
4809 (struct x_frame_parm_table, x_frame_parms): Remove.
4810 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
4811 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
4812 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
4813 (x_change_window_heights, x_set_autoraise, x_set_autolower)
4814 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
4815 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
4816 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
4817 Remove. Use generic functions instead.
4818 (enum resource_types): Remove.
4819 (x_set_scroll_bar_default_width): New global function (for frame.c).
4820 (Fx_create_frame): Depend on x_figure_window_size to add space for
4821 toolbar and setup size_hint_flags.
4822 (w32_frame_parm_handlers): New table for redisplay_interface.
4823 (syms_of_w32fns): Don't intern/staticpro removed vars.
4824
4825 * w32term.c: Remove unnecessary extern declarations.
4826 (x_fullscreen_adjust): Remove. Use generic instead.
4827 (x_redisplay_interface): Add w32_frame_parm_handlers member.
4828
4829 * w32reg.c (x_get_string_resource): Use XrmDatabase.
4830
4831 * macgui.h (XrmDatabase): New (dummy) typedef.
4832
4833 * macterm.h (EMACS_CLASS): Remove.
4834 (struct mac_display_info): Add xrdb member.
4835 (struct mac_output): Add want_fullscreen member.
4836
4837 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
4838 parameters now defined in frame.h and frame.c.
4839 (Vx_resource_name): Remove. Use generic var.
4840 (check_x_display_info): Make non-static (for frame.c).
4841 (struct x_frame_parm_table, x_frame_parms): Remove.
4842 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
4843 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
4844 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
4845 (x_change_window_heights, x_set_autoraise, x_set_autolower)
4846 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
4847 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
4848 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
4849 Remove. Use generic functions instead.
4850 (enum resource_types): Remove.
4851 (x_set_scroll_bar_default_width): New global function (for frame.c).
4852 (mac_frame_parm_handlers): New table for redisplay_interface.
4853 (syms_of_macfns): Don't intern/staticpro removed vars.
4854
4855 * macterm.c: Remove unnecessary extern declarations.
4856 (x_redisplay_interface): Add mac_frame_parm_handlers member.
4857
4858 * Makefile.in (frame.o): Add dependency on blockinput.h and files
4859 included from it (atimer.h and systime.h).
4860
4861 2003-03-30 Andreas Schwab <schwab@suse.de>
4862
4863 * xdisp.c (x_insert_glyphs): Fix swapped width and height
4864 parameters for shift_glyphs_for_insert.
4865
4866 * macterm.c (x_redisplay_interface): Add missing entry for
4867 draw_vertical_window_border.
4868
4869 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4870
4871 * fileio.c (Fexpand_file_name): In the no-handler case, after
4872 expanding, look again for a handler and invoke it. This is needed
4873 for filenames like "/foo/../user@host:/bar/../baz" -- the first
4874 expansion produces "/user@host:/bar/../baz" which needs to be
4875 expanded again for the finame result "/user@host:/baz".
4876
4877 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4878
4879 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
4880 of area to be redrawn for better performance.
4881
4882 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
4883
4884 * xterm.c (take_vertical_position_into_account): Remove.
4885 (xt_action_hook): Call set_vertical_scroll_bar if needed.
4886 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
4887 (xm_scroll_callback, x_create_toolkit_scroll_bar)
4888 (x_set_toolkit_scroll_bar_thumb): Simplify.
4889 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
4890 (XTread_socket): Remove unused var.
4891 (x_make_frame_invisible): Replace goto with else.
4892
4893 * xdisp.c (set_vertical_scroll_bar): New fun.
4894 (redisplay_window): Use it.
4895
4896 2003-03-26 Richard M. Stallman <rms@gnu.org>
4897
4898 * xdisp.c (update_tool_bar): Recompute tool bar if
4899 update_mode_lines is set. Set w->update_mode_line
4900 only if the tool bar contents actually change.
4901 (update_menu_bar): Undo previous change.
4902
4903 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4904
4905 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
4906 (xg_frame_set_char_size): Calculate scroll bar width before frame
4907 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
4908 (xg_separator_p): Check for all documented separator types.
4909 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
4910 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
4911
4912 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
4913 so tool bar gets updated.
4914
4915 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
4916
4917 * data.c (store_symval_forwarding): Re-instate part of the code
4918 that was deleted with too much enthusiasm.
4919
4920 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
4921
4922 * data.c (store_symval_forwarding): Delete special read-only
4923 hack for type == -1, since we now use ->constant instead.
4924 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
4925
4926 * buffer.c (overlays_in): Declare static.
4927 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
4928 `constant' field rather than the variable's `type' field.
4929
4930 2003-03-24 Andrew Choi <akochoi@shaw.ca>
4931
4932 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
4933
4934 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
4935
4936 * fns.c [MAC_OSX]: Do not redefine vector.
4937
4938 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
4939
4940 * macgui.h: Remove definition of No_Cursor.
4941
4942 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
4943
4944 * xdisp.c: Define No_Cursor.
4945 (x_write_glyphs, notice_overwritten_cursor)
4946 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
4947 (note_mouse_highlight): Remove Mac-specific code.
4948 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
4949
4950 2003-03-24 John Paul Wallington <jpw@gnu.org>
4951
4952 * xdisp.c (redisplay_window): If mini window's buffer is not
4953 empty, then redisplay it like other windows.
4954
4955 2003-03-23 Kim F. Storm <storm@cua.dk>
4956
4957 * w32term.c (w32_draw_window_cursor): Fix last change.
4958
4959 2003-03-23 Kenichi Handa <handa@m17n.org>
4960
4961 * alloc.c (make_string_from_bytes, make_specified_string):
4962 Add `const' for the arg CONTENTS.
4963
4964 * lisp.h (make_string_from_bytes, make_specified_string):
4965 Prototypes adjusted.
4966
4967 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4968
4969 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
4970
4971 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
4972 (XG_SB_RANGE): New define.
4973
4974 * gtkutil.c (xg_fixed_handle_expose): New function.
4975 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
4976 expose events.
4977 (xg_update_scrollbar_pos): Take two more arguments, left and width
4978 of scroll bar including borders.
4979 Clear left and right part outside scroll bar separately as some
4980 themes have bars that are not an even number of pixels.
4981 Don't set reallocate_redraws, don't call
4982 gdk_window_process_all_updates.
4983 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
4984 so no need to change it. Calculate size and value with XG_SB_RANGE.
4985
4986 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
4987 Pass left and width of scroll bar including borders to
4988 xg_update_scrollbar_pos.
4989
4990 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
4991
4992 * Makefile.in: Make sure space precedes end-of-line backslashes.
4993
4994 2003-03-22 Kim F. Storm <storm@cua.dk>
4995
4996 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
4997 Add generic versions here. Remove system specific versions
4998 defined elsewhere.
4999
5000 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
5001 Add prototypes.
5002
5003 * xterm.h (STORE_NATIVE_RECT): New macro.
5004
5005 2003-03-21 Kim F. Storm <storm@cua.dk>
5006
5007 * xdisp.c (get_glyph_string_clip_rect):
5008 Use FRAME_INTERNAL_BORDER_WIDTH.
5009
5010 * dispextern.h (struct redisplay_interface): Add active_p
5011 argument to draw_window_cursor member. All uses changed.
5012
5013 2003-03-21 Kim F. Storm <storm@cua.dk>
5014
5015 The following changes consolidate code related to writing and
5016 inserting glyphs, exposing frame, the tool bar, the mouse face,
5017 the output cursor, and help echo from xterm.c, w32term.c and
5018 macterm.c into xdisp.c. It also generalizes the use of the
5019 window_part enum instead of using numeric values throughout.
5020
5021 * xdisp.c: Consolidate gui-independent code here.
5022 Include keymap.h.
5023 (Qhelp_echo): Import.
5024 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
5025 (help_echo_string, help_echo_window, help_echo_object)
5026 (previous_help_echo_string, help_echo_pos): Declare here.
5027 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
5028 (estimate_mode_line_height): Define here. Handle windowing
5029 systems directly (without using estimate_mode_line_height_hook).
5030 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
5031 (update_window_cursor, update_cursor_in_window_tree)
5032 (fast_find_position, fast_find_string_pos)
5033 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
5034 (expose_area, expose_line, expose_overlaps, expose_window)
5035 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
5036 declared static as they are only used locally in xdisp.c.
5037 (draw_glyphs): Rename from x_draw_glyphs and make static.
5038 (tool_bar_item_info, notice_overwritten_cursor): Make static.
5039 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5040 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
5041 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
5042 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5043 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
5044 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
5045 (note_mouse_highlight, x_clear_window_mouse_face)
5046 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
5047 (x_intersect_rectangles): New generic functions for use by xdisp.c
5048 and GUI front-ends.
5049 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
5050 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
5051
5052 * dispextern.h (Display_Info): Generic typedef for *_display_info.
5053 (NativeRectangle): Generic typedef for rectangle type.
5054 (enum window_part): Move here from window.c.
5055 (struct redisplay_interface): New members flush_display_optional,
5056 define_frame_cursor, clear_frame_area, draw_window_cursor,
5057 draw_vertical_window_border, shift_glyphs_for_insert.
5058 Rename member clear_mouse_face to clear_window_mouse_face.
5059 (estimate_mode_line_height_hook): Remove hook.
5060 (auto_raise_tool_bar_buttons_p): Don't declare extern.
5061 (tool_bar_item_info): Remove prototype.
5062 (help_echo_string, help_echo_window, help_echo_object)
5063 (previous_help_echo_string, help_echo_pos)
5064 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
5065 (x_stretch_cursor_p, output_cursor): Declare extern.
5066 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
5067 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
5068 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5069 (display_and_set_cursor, set_output_cursor, x_cursor_to)
5070 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
5071 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5072 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
5073 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
5074 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
5075 Add prototypes.
5076 (mode_line_string, marginal_area_string): Fix prototypes.
5077
5078 * window.c (enum window_part): Move to dispextern.h.
5079 (coordinates_in_window): Use enum window_part member names
5080 instead of numbers to describe return value.
5081 (struct check_window_data): Change part member to window_part.
5082 (check_window_containing): Return window_part unaltered.
5083 (window_from_coordinates): Change part arg from int to enum
5084 window_part. Allow part arg to be null. All users changed.
5085
5086 * window.h (window_from_coordinates): Fix prototype.
5087
5088 * term.c (estimate_mode_line_height): Move to xdisp.c.
5089
5090 * keyboard.c (make_lispy_event): Use enum window_part.
5091
5092 * dispnew.c (mode_line_string, marginal_area_string): Use enum
5093 window_part instead of int in arg list. Users changed.
5094
5095 * xterm.h (No_Cursor): Declare as None for X.
5096 (struct mac_output): Replace member cross_cursor by hand_cursor.
5097
5098 * xterm.c: Remove consolidated defines and code.
5099 (BETWEEN): Remove unused macro.
5100 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
5101 (x_define_frame_cursor, x_clear_frame_area)
5102 (x_draw_window_cursor): New X-specific functions for RIF.
5103 (x_redisplay_interface): Add new members.
5104
5105 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
5106
5107 * w32term.h (struct w32_output): Remove cross_cursor member.
5108
5109 * w32term.c: Remove consolidated defines and code.
5110 (BETWEEN): Remove unused macro.
5111 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
5112 (w32_define_frame_cursor, w32_clear_frame_area)
5113 (w32_draw_window_cursor): New W32-specific functions for RIF.
5114 (w32_redisplay_interface): Add new members.
5115
5116 * w32gui.h (No_Cursor): Define as 0 for W32.
5117 (XRectangle): Add X compatible rectangle type.
5118 (NativeRectangle): Declare as RECT for W32.
5119 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5120
5121 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
5122
5123 * w32console.c: Remove consolidated defines and code.
5124
5125 * msdos.h (Display_Info): Add generic typedef.
5126
5127 * msdos.c: Remove consolidated defines and code.
5128 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
5129
5130 * macterm.h (struct mac_output): Replace member cross_cursor by
5131 hand_cursor.
5132 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
5133
5134 * macterm.c: Remove consolidated defines and code.
5135 (BETWEEN): Remove unused macro.
5136 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
5137 (mac_define_frame_cursor, mac_clear_frame_area)
5138 (mac_draw_window_cursor): New Mac-specific functions for RIF.
5139 (x_redisplay_interface): Add new members.
5140
5141 * macgui.h (No_Cursor): Define as 0 for Mac.
5142 (XRectangle): Add X compatible rectangle type.
5143 (NativeRectangle): Declare as Rect for Mac.
5144 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5145
5146 * macfns.c (x_set_mouse_color): Setup hand_cursor.
5147 (x_set_cursor_color): Use x_display_and_set_cursor.
5148
5149 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
5150 included from it. Add dependency on keymap.h.
5151
5152 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
5153
5154 2003-03-21 Kenichi Handa <handa@m17n.org>
5155
5156 * fileio.c (Fexpand_file_name): Fix previous change.
5157
5158 2003-03-19 Kenichi Handa <handa@m17n.org>
5159
5160 * fileio.c (Ffile_name_directory): Reconstruct file name by
5161 make_specified_string.
5162 (Ffile_name_nondirectory, Ffile_name_as_directory)
5163 (Fdirectory_file_name, Fexpand_file_name)
5164 (Fsubstitute_in_file_name): Likewise.
5165 (Fread_file_name): Compare decoded homedir with DIR and
5166 DEFAULT_FILENAME.
5167
5168 * alloc.c (make_specified_string): If NCHARS is negative, count
5169 the number of characters.
5170
5171 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5172
5173 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
5174 all widgets.
5175
5176 * gtkutil.h: Removed xg_ignore_next_thumb.
5177
5178 2003-03-18 Kenichi Handa <handa@m17n.org>
5179
5180 * coding.c (Vchar_coding_system_table): Remove this variable.
5181 (Vcoding_system_safe_chars): New variable.
5182 (intersection): Remove this function.
5183 (find_safe_codings): Don't use Vchar_coding_system_table, but try
5184 all codings in SAFE_CODINGS.
5185 (Ffind_coding_systems_region_internal): Adjust for the change of
5186 find_safe_codings. Get generic coding systems from
5187 Vcoding_system_safe_chars.
5188 (Fdefine_coding_system_internal): New function.
5189 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
5190 Initialize and staticpro Vcoding_system_safe_chars.
5191
5192 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5193
5194 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
5195 equal old values before updating.
5196
5197 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
5198
5199 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
5200
5201 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5202
5203 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
5204 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
5205 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
5206 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
5207 (xg_create_scroll_bar): Pass bar to button event callback.
5208 (xg_find_top_left_in_fixed): New function.
5209 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
5210 whole scroll bar area. Get old position with
5211 xg_find_top_left_in_fixed, calculate and only clear needed areas.
5212 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
5213 dragging is in progress. Calculate whole as for Motif.
5214 Remove code that saved last values. Call gtk_range functions to
5215 set scroll bar sizes.
5216
5217 * gtkutil.h: Removed xg_ignore_next_thumb.
5218
5219 2003-03-17 Juanma Barranquero <lektu@terra.es>
5220
5221 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
5222 and files included from it.
5223
5224 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
5225
5226 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
5227 multiple occurrences of the same keymap under different prefixes.
5228 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
5229
5230 2003-03-16 Jason Rumney <jasonr@gnu.org>
5231
5232 * w32gui.h: Use HDC for Display.
5233
5234 * w32term.c (w32_encode_char): Prevent double-byte chars from
5235 crashing Emacs.
5236
5237 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
5238 as binary.
5239
5240 2003-03-16 Juanma Barranquero <lektu@terra.es>
5241
5242 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
5243
5244 2003-03-16 Kim F. Storm <storm@cua.dk>
5245
5246 The following changes consolidate some of the gui-independent
5247 parts of the processing and drawing of "glyph strings" from
5248 xterm.c, w32term.c, and macterm.c into xdisp.c.
5249
5250 * dispextern.h (struct glyph): Reduce face_id member from 22 to
5251 21 bits (this reduces number of faces from 4M to 2M).
5252 Replace W32 specific w32_font_type member (2 bits) by generic
5253 font_type member (3 bits) for portability.
5254 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
5255 (enum draw_glyphs_face): Define here.
5256 (struct glyph_string): Define here. Merge W32 and X versions.
5257 (struct redisplay_interface): New members per_char_metric,
5258 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
5259 (VCENTER_BASELINE_OFFSET): Define here.
5260 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
5261 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
5262
5263 * xdisp.c: Consolidate gui-independent "glyph string" code here.
5264 (dump_glyph_string): Moved here.
5265 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
5266 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
5267 (fill_composite_glyph_string, fill_glyph_string)
5268 (fill_image_glyph_string, fill_stretch_glyph_string)
5269 (left_overwritten, left_overwriting, right_overwritten)
5270 (right_overwriting, get_char_face_and_encoding)
5271 (set_glyph_string_background_width, compute_overhangs_and_x)
5272 (append_glyph, append_composite_glyph, produce_image_glyph)
5273 (take_vertical_position_into_account, append_stretch_glyph)
5274 (produce_stretch_glyph): New generic functions (based on X version).
5275 Call platform specific functions through rif.
5276 (INIT_GLYPH_STRING): New macro, hides W32 details.
5277 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
5278 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
5279 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
5280 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
5281 (notice_overwritten_cursor):
5282 Generic functions exported to platform modules. Users changed.
5283
5284 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
5285 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
5286 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
5287 New macros for consolidated code.
5288
5289 * xterm.c: Remove consolidated defines and code.
5290 (x_per_char_metric, x_encode_char)
5291 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
5292 (x_redisplay_interface): Add new members.
5293
5294 * w32gui.h (Display): Add dummy typedef for consolidation.
5295 (XChar2b): Define alias for wchar_t for consolidation.
5296 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5297
5298 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
5299 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
5300 New macros for consolidation.
5301
5302 * w32term.c: Remove consolidated defines and code.
5303 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
5304 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
5305 (w32_per_char_metric): Change font_type arg to int for RIF.
5306 (w32_encode_char): Return int according to RIF requirements.
5307 (w32_compute_glyph_string_overhangs): Adapt to RIF.
5308 (w32_get_glyph_overhangs): New function for RIF. Uses generic
5309 x_get_glyph_overhangs.
5310 (w32_redisplay_interface): Add new members.
5311
5312 * macgui.h (XChar2b): Move typedef here for consolidation.
5313 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5314
5315 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
5316 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
5317 consolidation.
5318
5319 * macterm.c: Remove consolidated defines and code.
5320 (mac_per_char_metric): New function for RIF.
5321 (mac_encode_char): Adapt to new RIF requirements.
5322 (mac_compute_glyph_string_overhangs): Adapt for RIF.
5323 (x_redisplay_interface): Add new members.
5324
5325 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
5326
5327 * keymap.c (Vmenu_events): New var.
5328 (syms_of_keymap): Initialize it.
5329 (where_is_internal): Check more carefully what is a menu event.
5330
5331 2003-03-14 Richard M. Stallman <rms@gnu.org>
5332
5333 * lread.c (read1): After #!, exit loop on eof.
5334
5335 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5336
5337 * gtkutil.h: Add declaration for xg_frame_cleared.
5338
5339 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
5340
5341 * gtkutil.c (struct xg_last_sb_pos): New structure.
5342 (handle_fixed_child): New function.
5343 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
5344 and force a redraw on them.
5345 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
5346 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
5347 so we can avoid unneeded redraws.
5348 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
5349 and force a redraw on the scroll bar.
5350 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
5351 if xg_last_sb_pos shows the positions are up to date.
5352 (xg_frame_cleared): New function.
5353
5354 2003-03-13 Kenichi Handa <handa@m17n.org>
5355
5356 * coding.c (Fdetect_coding_region): Fix docstring.
5357 (Fdetect_coding_string): Fix docstring.
5358
5359 2003-03-13 Andreas Schwab <schwab@suse.de>
5360
5361 * gtkutil.c: Add prototype for create_menus.
5362
5363 * data.c (long_to_cons): Fix type of top.
5364
5365 * xselect.c (selection_data_to_lisp_data): Use int instead of
5366 long for an integer of size 4.
5367
5368 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
5369 (xg_tool_bar_help_callback): Likewise.
5370
5371 2003-03-12 Andreas Schwab <schwab@suse.de>
5372
5373 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
5374
5375 2003-03-12 Kim F. Storm <storm@cua.dk>
5376
5377 The following changes consolidate the fringe handling from
5378 xterm.c, w32term.c, and macterm.c into xdisp.c.
5379
5380 * xdisp.c: Consolidate fringe handling code here.
5381 (left_bits, right_bits, continued_bits, continuation_bits)
5382 (ov_bits, zv_bits): Define fringe bitmaps.
5383 (fringe_bitmaps): New array holding fringe bitmaps.
5384 (draw_fringe_bitmap): Draw a specific bitmap; call display
5385 specific drawing routine via rif->draw_fringe_bitmap.
5386 (draw_row_fringe_bitmaps): Generic replacement for
5387 x_draw_row_fringe_bitmaps; all callers changed.
5388 (compute_fringe_widths): Generic replacement for
5389 x_compute_fringe_widths; all callers changed.
5390
5391 * dispextern.h (enum fringe_bitmap_type): Define here.
5392 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
5393 (fringe_bitmaps): Declare extern.
5394 (struct redisplay_interface): New member draw_fringe_bitmap.
5395 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
5396
5397 * xterm.c: Remove generic fringe code.
5398 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5399 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5400
5401 * w32term.c: Remove generic fringe code.
5402 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
5403 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
5404
5405 * macterm.c: Remove generic fringe code.
5406 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5407 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5408
5409 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
5410
5411 * print.c (Fprin1_to_string): Return unibyte string if possible.
5412
5413 2003-03-09 David Kastrup <dak@gnu.org>
5414
5415 * process.c (read_process_output): We have allocated enough space
5416 for readmax and carryover, so actually use the alloted space.
5417
5418 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5419
5420 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
5421 toolkit scrollbar click.
5422
5423 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
5424 for USE_GTK.
5425 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
5426 also.
5427 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
5428 scrollbar and control is pressed, call x_scroll_bar_handle_click.
5429
5430 * gtkutil.h: Declare xg_get_scroll_id_for_window.
5431
5432 * gtkutil.c (xg_get_scroll_id_for_window): New function.
5433 (xg_tool_bar_item_expose_callback): New function.
5434 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
5435 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
5436 on the tool bar widget.
5437 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
5438 to expose on the tool bar item widgets.
5439
5440 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5441
5442 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
5443 struct image* when deciding to update (struct image* may have been
5444 deleted from the image cache).
5445
5446 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
5447 the event isn't for a frame (i.e. for dialogs).
5448
5449 2003-03-07 Kenichi Handa <handa@m17n.org>
5450
5451 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
5452 composition components reaches the limit, terminate composing.
5453 (COMPOSITION_OK): New macro.
5454 (detect_coding_iso2022): Use it if an escape sequence for
5455 composition is found.
5456 (coding_restore_composition): Adjust the number of composition
5457 components if it is not sane.
5458
5459 2003-03-06 Juanma Barranquero <lektu@terra.es>
5460
5461 * w32term.h (struct w32_display_info): Add xrdb member to support
5462 passing resources via -xrm on Windows.
5463
5464 * w32term.c (w32_make_rdb): New function.
5465 (w32_term_init): Use it to initialize xrdb member of w32_display_info
5466 struct. Delete leftover code.
5467
5468 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
5469 for resources passed on the command line.
5470
5471 * w32reg.c (w32_get_rdb_resource): New function.
5472 (x_get_string_resource): Use it, so resources passed with -xrm
5473 supercede the ones in the registry.
5474
5475 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5476
5477 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
5478 instead of x_top_window_to_frame.
5479
5480 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5481
5482 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
5483 when restarting Emacs.
5484
5485 2003-03-03 Richard M. Stallman <rms@gnu.org>
5486
5487 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
5488 to run kill-buffer-query-functions.
5489 (Qkill_buffer_query_functions): New var.
5490 (syms_of_buffer): Init and staticpro it.
5491
5492 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5493
5494 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
5495
5496 2003-02-25 Kim F. Storm <storm@cua.dk>
5497
5498 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
5499 If centering point failed to make whole line visible and vscroll
5500 is non-zero, disable vscroll and try centering point again.
5501
5502 * lread.c (read1): Accept `single space' syntax like (? x).
5503
5504 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5505
5506 * keyboard.c (cancel_hourglass_unwind): Surround with
5507 #ifdef HAVE_X_WINDOWS
5508
5509 2003-02-25 Kenichi Handa <handa@m17n.org>
5510
5511 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
5512 process only when "subprocesses" is defined.
5513
5514 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
5515
5516 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
5517
5518 2003-02-24 Juanma Barranquero <lektu@terra.es>
5519
5520 * callint.c (fix_command): Declare as static void and move before
5521 Fcall_interactively.
5522
5523 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
5524 (syms_of_xdisp): Don't initialize Qwhen.
5525
5526 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5527
5528 * keyboard.c (cancel_hourglass_unwind): New function.
5529 (command_loop_1): Cancel hourglass with unwind-protect.
5530
5531 2003-02-23 Richard M. Stallman <rms@gnu.org>
5532
5533 * callint.c (fix_command): New subroutine, from Fcall_interactively.
5534 Detect (when ... (region-beginning)) etc.
5535 (Fcall_interactively): Call fix_command.
5536 (Qif, Qwhen): New variables.
5537 (syms_of_callint): Init and staticpro them.
5538
5539 * regex.c (print_partial_compiled_pattern): Output to stderr.
5540
5541 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
5542
5543 * dired.c (directory_files_internal): Don't expand directory.
5544 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
5545 instead. From Lars Hansen <larsh@math.ku.dk>.
5546
5547 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
5548
5549 * fns.c (string_to_multibyte): Remove unused var i.
5550 (Flanginfo): Fix int/Lisp_Object mixup.
5551 (void_call2): New fun.
5552 (Fmap_char_table): Use it in place of call2.
5553
5554 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
5555
5556 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
5557
5558 * keymap.c (copy_keymap_1): Make it static.
5559
5560 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
5561
5562 2003-02-22 David Ponce <david@dponce.com>
5563
5564 * lread.c (Fload): Don't check STRING_MULTIBYTE.
5565
5566 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5567
5568 * process.h: Removed subtty field from struct Lisp_Process.
5569
5570 * process.c (create_process): Remove setting of subtty.
5571 (emacs_get_tty_pgrp): New function.
5572 (Fprocess_running_child_p, process_send_signal):
5573 Call emacs_get_tty_pgrp instead of ioctl.
5574 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
5575
5576 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
5577
5578 * keymap.c (Fdefine_key): Doc fix.
5579
5580 2003-02-21 Juanma Barranquero <lektu@terra.es>
5581
5582 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
5583
5584 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
5585 POLLING_PROBLEM_IN_SELECT.
5586
5587 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
5588 Delete #undef of POLLING_PROBLEM_IN_SELECT.
5589
5590 * s/hpux10-20.h: New file.
5591
5592 * process.c (wait_reading_process_input):
5593 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
5594
5595 2003-02-20 Kenichi Handa <handa@m17n.org>
5596
5597 * fontset.c (check_fontset_name): If NAME is nil, return the
5598 default fontset.
5599 (override_font_info): New function.
5600 (Fset_fontset_font): Document that NAME nil means the default fontset.
5601 (Ffontset_info): If FONTSET is not the default fontset, merge
5602 FONTSET onto the copy of the default fontset, and work on that
5603 copy. Document that NAME nil means the default fontset.
5604 (Ffontset_font): Document that NAME nil means the default fontset.
5605
5606 * process.c (setup_process_coding_systems): If the process's
5607 in/out descriptor is -1, do nothing.
5608
5609 2003-02-19 Andreas Schwab <schwab@suse.de>
5610
5611 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
5612 Add prototypes.
5613
5614 2003-02-19 Kenichi Handa <handa@m17n.org>
5615
5616 * xfaces.c (try_alternative_families): Try all scalable fonts if
5617 Vscalable_fonts_allowed is not Qt.
5618
5619 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5620
5621 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
5622
5623 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5624
5625 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
5626 names.
5627
5628 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
5629 (sorted_font_list): Move allocation of struct font_name to
5630 x_face_list_fonts.
5631 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
5632 (Fx_list_fonts): Set maxnames to -1 to get all font names.
5633
5634 2003-02-18 Kim F. Storm <storm@cua.dk>
5635
5636 * lread.c (read1): Fix last change.
5637 "`" is not always special. Allow "?" after a character constant.
5638
5639 2003-02-18 Andrew Choi <akochoi@shaw.ca>
5640
5641 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
5642
5643 2003-02-18 Andreas Schwab <schwab@suse.de>
5644
5645 * window.c (window_scroll_pixel_based): Move outside a
5646 multi-glyph character before setting new window start.
5647
5648 * xdisp.c (in_display_vector_p): New function.
5649 * dispextern.h (in_display_vector_p): Declare.
5650
5651 2003-02-18 Kim F. Storm <storm@cua.dk>
5652
5653 * lread.c (read1): Fix and relax read syntax.
5654 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
5655 Only recognize "," after dotted-pair dot if inside backquote.
5656 Never include "`" or "," (inside backquote) in a symbol.
5657 Allow dotted-pair dot after a character constant.
5658 Allow "`" and "," (inside backquote) after a character constant.
5659
5660 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5661
5662 * gtkutil.c (xg_tool_bar_expose_callback): New function.
5663 (xg_create_tool_bar): Force style of tool bar to be horizontal with
5664 icons. Set name of tool bar to emacs-toolbar.
5665 (update_frame_tool_bar): Connect expose event to
5666 xg_tool_bar_expose_callback.
5667
5668 2003-02-17 Richard M. Stallman <rms@gnu.org>
5669
5670 * keyboard.c (this_command_key_count_reset): New variable.
5671 Initiatize to 0 where this_command_key_count is set.
5672 (read_char): Save and restore this_command_key_count_reset
5673 around input method code.
5674 (read_char): If this_command_key_count_reset, echo reread commands.
5675 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
5676
5677 2003-02-17 Kenichi Handa <handa@m17n.org>
5678
5679 * fns.c (string_to_multibyte): Always return a multibyte string.
5680
5681 2003-02-16 Jason Rumney <jasonr@gnu.org>
5682
5683 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
5684 Negative max_fonts parameter means list all.
5685
5686 2003-02-14 Dave Love <fx@gnu.org>
5687
5688 * fns.c (Flanginfo): Doc fix.
5689
5690 2003-02-13 Kim F. Storm <storm@cua.dk>
5691
5692 * lread.c (read_escape): Interpret \s as a SPACE character, except
5693 for \s-X in a character constant which still is the super modifier.
5694 (read1): Signal an `invalid read syntax' error if a character
5695 constant is immediately followed by a digit or symbol character.
5696
5697 * search.c (Fmatch_data): Doc fix. Explicitly state that
5698 match-data is undefined if last search failed.
5699
5700 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
5701 All uses changed.
5702
5703 2003-02-12 Juanma Barranquero <lektu@terra.es>
5704
5705 * eval.c (Fdefmacro): Fix typo.
5706
5707 2003-02-12 Kim F. Storm <storm@cua.dk>
5708
5709 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
5710 macro is a string, convert meta modifiers in string when copying
5711 the string into a vector.
5712
5713 2003-02-11 Kim F. Storm <storm@cua.dk>
5714
5715 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
5716
5717 2003-02-11 Kenichi Handa <handa@m17n.org>
5718
5719 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
5720
5721 2003-02-10 Kim F. Storm <storm@cua.dk>
5722
5723 * process.c: Doc fixes.
5724 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
5725
5726 2003-02-10 Kenichi Handa <handa@m17n.org>
5727
5728 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
5729
5730 * process.c (QCfilter_multibyte): New variable.
5731 (setup_process_coding_systems): New function.
5732 (Fset_process_buffer, Fset_process_filter):
5733 Call setup_process_coding_systems.
5734 (Fstart_process): Initialize the member `filter_multibyte' of
5735 struct Lisp_Process.
5736 (create_process): Call setup_process_coding_systems.
5737 (Fmake_network_process): New keyward `:filter-multibyte'.
5738 Initialize the member `filter_multibyte' of struct Lisp_Process.
5739 Call setup_process_coding_systems.
5740 (server_accept_connection): Call setup_process_coding_systems.
5741 (read_process_output): If the process has a filter, decide the
5742 multibyteness of a string to given to the filter by
5743 `filter_multibyte' member of the process. If the process doesn't
5744 have a filter and the result of conversion is unibyte, use
5745 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
5746 multibyte form.
5747 (Fset_process_coding_system): Call setup_process_coding_systems.
5748 (Fset_process_filter_multibyte): New function.
5749 (Fprocess_filter_multibyte_p): New function.
5750 (syms_of_process): Intern and staticpro QCfilter_multibyte.
5751 Defsubr Sset_process_filter_multibyte and
5752 Sprocess_filter_multibyte_p.
5753
5754 * process.h (struct Lisp_Process): New member filter_multibyte.
5755
5756 * lisp.h (setup_process_coding_systems): Add prototype.
5757
5758 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
5759 process, update coding systems for the process.
5760
5761 2003-02-09 Kenichi Handa <handa@m17n.org>
5762
5763 * fns.c (string_to_multibyte): New function.
5764 (Fstring_to_multibyte): New function.
5765 (syms_of_fns): Defsubr it.
5766
5767 2003-02-08 Andreas Schwab <schwab@suse.de>
5768
5769 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
5770 instead of the substitution.
5771
5772 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5773
5774 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
5775
5776 * xmenu.c (menu_position_func): Adjust menu popup position so that
5777 the menu is fully visible.
5778
5779 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5780
5781 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
5782 (x_make_frame_invisible, x_wm_set_icon_position):
5783 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
5784
5785 * xfns.c (x_set_name, x_set_title): Ditto.
5786
5787 2003-02-04 Richard M. Stallman <rms@gnu.org>
5788
5789 * keyboard.c (echo_now): Update before_command_echo_length.
5790 (Freset_this_command_lengths): Reset this_command_key_count etc.
5791 immediately rather than arranging to do it later.
5792 (before_command_key_count_1, before_command_echo_length_1)
5793 (before_command_restore_flag): Vars deleted.
5794 (add_command_key): Don't handle before_command_restore_flag.
5795 (read_char, record_menu_key): Don't update before_command_key_count or
5796 before_command_echo_length.
5797 (read_char): Don't handle before_command_restore_flag.
5798
5799 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
5800 in direct-output clauses if it wouldn't be called in the ordinary case.
5801
5802 2003-02-04 Kim F. Storm <storm@cua.dk>
5803
5804 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
5805
5806 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5807
5808 * gtkutil.c (remove_from_container): Copying list is not needed.
5809 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
5810 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
5811 on list returned from gtk_container_get_children to avoid memory leak.
5812
5813 2003-02-01 Jason Rumney <jasonr@gnu.org>
5814
5815 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
5816 local malloc.
5817 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
5818 definitions in xpm.h.
5819 (init_xpm_functions): New function.
5820 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5821 (init_external_image_libraries): Try to load libXpm.dll.
5822
5823 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
5824 timestamp.
5825
5826 2003-01-31 Dave Love <fx@gnu.org>
5827
5828 * syntax.c (Fskip_chars_forward)
5829 (open-paren-in-column-0-is-defun-start): Doc fix.
5830
5831 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
5832
5833 * fileio.c: Support // at start of name for Cygwin (just added proper
5834 preprocessor tests).
5835
5836 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
5837
5838 * Makefile.in: Use @EXEEXT@ for Cygwin.
5839
5840 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
5841
5842 * s/cygwin.h: Added for Cygwin port.
5843
5844 2003-01-31 Juanma Barranquero <lektu@terra.es>
5845
5846 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
5847 when including gif_lib.h.
5848 (init_gif_functions, init_tiff_functions): New functions.
5849 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
5850 Windows. Disable color table lookups. Call library functions
5851 through pointers determined at runtime.
5852 (init_external_image_libraries): Try to load libungif.dll and
5853 libtiff.dll.
5854
5855 2003-01-31 Kenichi Handa <handa@m17n.org>
5856
5857 * xdisp.c (SKIP_GLYPHS): New macro.
5858 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
5859
5860 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5861
5862 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
5863
5864 2003-01-30 Dave Love <fx@gnu.org>
5865
5866 * alloc.c (Vgc_elapsed, gcs_done): New variables.
5867 (Fgarbage_collect): Use them.
5868 (init_alloc, syms_of_alloc): Set them up.
5869
5870 2003-01-30 Juanma Barranquero <lektu@terra.es>
5871
5872 * w32fns.c (init_external_image_libraries): Add missing operator.
5873
5874 2003-01-29 Jason Rumney <jasonr@gnu.org>
5875
5876 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
5877 an alternative name for jpeg.dll.
5878
5879 2003-01-29 Kenichi Handa <handa@m17n.org>
5880
5881 * xdisp.c (set_cursor_from_row): Pay attention to string display
5882 properties.
5883
5884 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
5885
5886 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
5887 <escape>.
5888 (keycode_to_xkeysym_table): Reformat and add more comments.
5889 (XTread_socket): Drop special case for backspace.
5890
5891 2003-01-28 Andrew Choi <akochoi@shaw.ca>
5892
5893 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
5894 values in old-style RGB specs.
5895
5896 2003-01-27 Juanma Barranquero <lektu@terra.es>
5897
5898 * w32fns.c (init_external_image_libraries): Try alternate names for the
5899 jpeg dll.
5900
5901 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5902
5903 * gtkutil.c (create_dialog, xg_separator_p)
5904 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
5905 before calling strcmp or strlen.
5906
5907 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5908
5909 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
5910 and handle image load failure.
5911
5912 2003-01-26 Jason Rumney <jasonr@gnu.org>
5913
5914 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
5915 New functions.
5916 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
5917 Disable color table lookups. Call jpeg library functions
5918 through pointers determined at runtime.
5919 (init_external_image_libraries): Try to load jpeg.dll.
5920
5921 2003-01-25 Richard M. Stallman <rms@gnu.org>
5922
5923 * lisp.h: Declare format2 instead of format1.
5924
5925 * fileio.c (barf_or_query_if_file_exists):
5926 Call format2 instead of format1.
5927
5928 * editfns.c (format2): New function, replaces format1
5929 but takes exactly two Lisp Objects as format args.
5930
5931 * buffer.c (Fkill_buffer): Call format2 instead of format1.
5932
5933 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5934
5935 * xterm.h: Change to return value of x_dispatch_event to int.
5936
5937 * xterm.c (x_filter_event): New function.
5938 (event_handler_gdk, XTread_socket): Call x_filter_event.
5939 (x_dispatch_event): Change to return value of finish.
5940 (event_handler_gdk): Use return value from x_dispatch_event.
5941
5942 * xfns.c (x_window): Call create_frame_xic for GTK version to
5943 initialize input methods.
5944
5945 * gtkutil.h: Add (void) prototypes.
5946
5947 * gtkutil.c (create_menus): Remove code that puts the help menu to
5948 the right.
5949
5950 2003-01-25 Jason Rumney <jasonr@gnu.org>
5951
5952 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
5953 [HAVE_PNG]: Sync with xfns.c version.
5954 (png_load): Adjust colors for Windows. Use Windows
5955 bitmaps. Disable color table lookups.
5956 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
5957 (init_png_functions): New function.
5958 (png_read_from_memory, png_load): Call png library functions
5959 through pointers determined at runtime.
5960 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
5961 (init_external_image_libraries): New function.
5962 (init_xfns): Call it.
5963
5964 2003-01-24 Andreas Schwab <schwab@suse.de>
5965
5966 * minibuf.c (Fminibuffer_message): Verify type of parameter.
5967
5968 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5969
5970 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
5971 of static initializer.
5972
5973 2003-01-24 Dave Love <fx@gnu.org>
5974
5975 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
5976 architectures.
5977
5978 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
5979 Use __alignof__.
5980
5981 2003-01-24 Kenichi Handa <handa@m17n.org>
5982
5983 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
5984 It it is nonzero, don't pretend that an invisible area doesn't exist.
5985 (command_loop_1): Call adjust_point_for_property with proper
5986 second arg.
5987
5988 2003-01-22 Jason Rumney <jasonr@gnu.org>
5989
5990 Sync changes with xterm.c and xfns.c.
5991
5992 * w32term.c (x_draw_glyph_string_foreground)
5993 (x_draw_composite_glyph_string_foreground): Implement overstriking.
5994
5995 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
5996 phys_cursor's hpos is overwritten. This is still not completely
5997 correct, as it doesn't really make sense to use hpos at all to
5998 get the cursor glyph (as that is relative to the width of the
5999 characters on the line, which may have changed during the update).
6000
6001 * w32term.c (notice_overwritten_cursor): Handle the special case
6002 of the cursor being in the first blank non-text line at the
6003 end of a window.
6004
6005 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
6006 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
6007 Compute from the x position returned by x_draw_glyphs.
6008
6009 (x_display_and_set_cursor): Don't set phys_cursor_width here,
6010 except for NO_CURSOR and system caret, to make phys_cursor_width
6011 contain what its name suggests.
6012 (notice_overwritten_cursor): Consider the cursor image erased if
6013 the output area intersects the cursor image in y-direction.
6014
6015 * w32term.c (note_mode_line_or_margin_highlight): Rename from
6016 note_mode_line_highlight and extend.
6017
6018 * w32term.c (last_window): New variable.
6019 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
6020 (note_mouse_movement): Remove reimplemented code in #if 0.
6021
6022 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
6023 not update_mode_lines, and always set it to 1.
6024
6025 2003-01-21 Jason Rumney <jasonr@gnu.org>
6026
6027 * w32fns.c (IDC_HAND): Define it if system headers don't.
6028
6029 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6030
6031 * w32term.h (struct w32_output): New member hand_cursor.
6032 (WM_EMACS_SETCURSOR): New message definition.
6033
6034 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
6035 function w32_define_cursor.
6036 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
6037 position, change member name output_data.x to output_data.w32 and
6038 add function w32_define_cursor.
6039 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
6040 and change member name output_data.x to output_data.w32.
6041 (w32_initialize_display_info):
6042 Setup dpyinfo->vertical_scroll_bar_cursor.
6043
6044 * w32fns.c (Vx_hand_shape): New variable.
6045 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
6046 WM_EMACS_SETCURSOR.
6047 (x-create-frame): Setup Cursor types.
6048
6049 2003-01-21 David Ponce <david@dponce.com>
6050
6051 * w32term.c (w32_encode_char): For DIM=1 charset, set
6052 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
6053 x_encode_char change by Kenichi Handa <handa@m17n.org> on
6054 2002-09-30.)
6055 (w32_draw_relief_rect): Declare all args.
6056 (w32_define_cursor): New.
6057
6058 * w32fns.c (w32_load_cursor): New function.
6059 (w32_init_class): Use it.
6060 (x_put_x_image): Declare all args.
6061
6062 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
6063
6064 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
6065
6066 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6067
6068 * gtkutil.c: Must include stdio.h before termhooks.h
6069
6070 2003-01-21 Dave Love <fx@gnu.org>
6071
6072 * alloc.c (Fgc_status): Print zombie list.
6073 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6074 Fix assignment of zombies.
6075 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6076 Don't take car of non-cons.
6077
6078 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6079
6080 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6081
6082 2003-01-20 David Ponce <david@dponce.com>
6083
6084 * w32menu.c (digest_single_submenu): Declare all args.
6085
6086 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
6087 changes in xmenu.c:
6088
6089 (parse_single_submenu): Use individual keymap's prompt
6090 string as pane name, if there is one.
6091 (set_frame_menubar): Save menu_items_n_panes from each call to
6092 parse_single_submenu and use it when calling digest_single_submenu.
6093
6094 2003-01-20 Steven Tamm <steventamm@mac.com>
6095
6096 * macterm.c (XTread_socket): Checks for valid, visible window
6097 before sending a scroll-wheel event.
6098
6099 2003-01-20 Richard M. Stallman <rms@gnu.org>
6100
6101 * xdisp.c (redisplay_window): If mini window's buffer is not
6102 a minibuffer, then redisplay it like other windows.
6103
6104 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6105
6106 * gtkutil.c (xg_create_frame_widgets): Check if there is an
6107 external tool bar before setting tool bar height.
6108
6109 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6110
6111 * xterm.c (handle_one_xevent): Surround popup_activated
6112 with #ifdef:s for non-toolkit version.
6113
6114 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
6115 (gtkutil.o): New file.
6116 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
6117 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
6118
6119 * gtkutil.c: New file for GTK version.
6120
6121 * gtkutil.h: New file for GTK version.
6122
6123 * xterm.h: Add xt_or_gtk_widget.
6124 Include gtk files for USE_GTK.
6125 (struct x_output): Add toolbar_height.
6126 (struct x_output): Add GTK widgets and Gdk size_hints.
6127 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
6128 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
6129 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
6130
6131 * xterm.c: Include gtkutil.h for USE_GTK.
6132 Declare extern void free_frame_menubar for USE_GTK.
6133 (note_mouse_highlight): Check popup_activated for USE_GTK.
6134 (xt_action_hook): Don't compile if USE_GTK.
6135 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
6136 (xg_scroll_callback): New function.
6137 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
6138 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
6139 for USE_GTK.
6140 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
6141 xg_show_scroll_bar for USE_GTK.
6142 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
6143 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
6144 (event_handler_gdk): New function for USE_GTK.
6145 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
6146 (handle_one_xevent): Make sure widget is mapped before
6147 calling x_real_positions for USE_GTK.
6148 (XTread_socket): Add GTK event loop for USE_GTK.
6149 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
6150 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
6151 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
6152 (x_iconify_frame): Add code for USE_GTK.
6153 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
6154 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
6155 is in gtkutil.c.
6156 (x_term_init): Add initialization for GTK.
6157 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
6158
6159 * xmenu.c: Include gtkutil.h for USE_GTK.
6160 (Fx_popup_menu): Use current position if x and y is NIL.
6161 (single_menu_item, single_menu_item, Fx_popup_dialog):
6162 Check for USE_GTK.
6163 (popup_widget_loop): New function for USE_GTK.
6164 (x_activate_menubar): Add code for USE_GTK.
6165 (popup_activate_callback, popup_deactivate_callback)
6166 (menu_highlight_callback, menubar_selection_callback):
6167 Add USE_GTK versions.
6168 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
6169 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
6170 (free_frame_menubar): Only compile if not USE_GTK. GTK version
6171 is in gtkutil.c.
6172 (popup_selection_callback): New version for USE_GTK.
6173 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6174 one USE_X_TOOLKIT version.
6175 (xmenu_show): Call create_and_show_popup_menu.
6176 (dialog_selection_callback): New version for USE_GTK.
6177 (create_and_show_dialog): New fuction, one USE_GTK version and
6178 one USE_X_TOOLKIT version.
6179 (xdialog_show): Call create_and_show_dialog.
6180
6181 * xfns.c: Include gtkutil for USE_GTK.
6182 (x_window_to_frame, x_any_window_to_frame)
6183 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6184 (x_top_window_to_frame): Add code for USE_GTK.
6185 (x_set_background_color): Call xg_set_background_color for GTK.
6186 (x_set_menu_bar_lines): Check for USE_GTK.
6187 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
6188 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
6189 (x_window): Call xg_create_frame_widgets for USE_GTK.
6190 (Fx_create_frame): Check for USE_GTK
6191 (Fx_file_dialog): New implementation for USE_GTK.
6192
6193 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
6194 (update_menu_bar): Add check for USE_GTK.
6195 (update_tool_bar): Add check for USE_GTK and external tool bar.
6196 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
6197 (redisplay_internal): Add check for USE_GTK and popup_activated.
6198 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
6199 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
6200 (display_menu_bar): Add check for USE_GTK
6201
6202 * lisp.h: Declare Vx_resource_name extern.
6203
6204 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
6205 for USE_GTK.
6206 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
6207
6208 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
6209 (FRAME_EXTERNAL_TOOL_BAR): New macro.
6210 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
6211
6212 * fileio.c (Fread_file_name): Add check for USE_GTK.
6213
6214 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
6215 Add check for USE_GTK.
6216
6217 * config.in: Added HAVE_GTK
6218
6219 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
6220
6221 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
6222
6223 * charset.h (Funibyte_char_to_multibyte): Export.
6224
6225 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6226
6227 * xmenu.c (mouse_position_for_popup): New function.
6228 (Fx_popup_menu): Call mouse_position_for_popup for X and
6229 mouse_position_hook for others.
6230
6231 2003-01-17 Kim F. Storm <storm@cua.dk>
6232
6233 * editfns.c (Finsert): Mention `string-make-multibyte' and
6234 `string-as-multibyte' in doc string.
6235
6236 2003-01-17 Kenichi Handa <handa@m17n.org>
6237
6238 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
6239
6240 * editfns.c (Fformat): Convert an unibyte char argument that is
6241 formatted by "%c" to multibyte if the total result must be a
6242 multibyte string.
6243
6244 2003-01-16 Kim F. Storm <storm@cua.dk>
6245
6246 * process.c (set-process-filter): Document unibyte/multibyte-ness
6247 of string argument.
6248
6249 2003-01-16 Kenichi Handa <handa@m17n.org>
6250
6251 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
6252
6253 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
6254 (re_search_2): Likewise.
6255
6256 2003-01-15 Kenichi Handa <handa@m17n.org>
6257
6258 * xdisp.c (message_dolog): Fix bug of the case that *Message*
6259 buffer is unibyte.
6260
6261 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
6262
6263 * fns.c (Fsubstring): Clarify doc string.
6264
6265 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
6266 (Fprevious_char_property_change)
6267 (Fnext_single_char_property_change)
6268 (Fprevious_single_char_property_change, Fnext_property_change)
6269 (Fnext_single_property_change, Fprevious_property_change)
6270 (Fprevious_single_property_change, Fadd_text_properties)
6271 (Fput_text_property, Fset_text_properties)
6272 (Fremove_text_properties, Fremove_list_of_text_properties)
6273 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
6274
6275 2003-01-14 Kim F. Storm <storm@cua.dk>
6276
6277 * process.h (struct Lisp_Process): New member plist replaces old
6278 member private_vars. All uses changed.
6279
6280 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6281 (QCplist): Rename from QCvars. Change all uses.
6282 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6283 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
6284 (syms_of_process): Intern, staticpro, defsubr these.
6285 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
6286
6287 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
6288
6289 * m/delta.h: Remove (obsolete).
6290
6291 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
6292
6293 * fileio.c (Fdelete_directory, Fdelete_file): Document the
6294 behaviour in front of symlinks.
6295 (Fdelete_file): Raise an error on directories.
6296
6297 2003-01-13 Dave Love <fx@gnu.org>
6298
6299 * fns.c (Freverse): Use QUIT.
6300
6301 2003-01-13 Richard M. Stallman <rms@gnu.org>
6302
6303 * minibuf.c (minibuffer_completion_contents):
6304 Error if point is inside prompt.
6305
6306 * keyboard.c (command_loop_1): Don't redisplay directly
6307 if there's a post-command-hook.
6308
6309 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
6310 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
6311
6312 2003-01-12 Kim F. Storm <storm@cua.dk>
6313
6314 * process.h (struct Lisp_Process): New member private_vars.
6315
6316 * process.c (QCvars): New variable.
6317 (syms_of_process): Intern and staticpro it.
6318 (Fset_process_contact): Removed function.
6319 (Fprocess_variable, Fset_process_variable): New functions.
6320 (syms_of_process): Defsubr them.
6321 (Fstart_process): Initialize private_vars plist to nil.
6322 (Fmake_network_process): New arg :vars to setup the private
6323 variables for new network process.
6324 (server_accept_connection): Copy server's private variables to
6325 client process.
6326
6327 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
6328 crashes). Code rewritten and simplified. Now directly aligns the
6329 pointer and recalculates pure_bytes_used, rather than aligning the
6330 size and adjusting the pointer.
6331
6332 2003-01-11 Kim F. Storm <storm@cua.dk>
6333
6334 * process.c (Fset_process_contact): New function.
6335 (syms_of_process): defsubr it.
6336 (make-network-process): Update doc.
6337
6338 2003-01-10 Andreas Schwab <schwab@suse.de>
6339
6340 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
6341 Reported by Berthold Gunreben <b.gunreben@web.de>.
6342
6343 2003-01-10 Dave Love <fx@gnu.org>
6344
6345 * composite.c (syms_of_composite): Make composition_hash_table weak.
6346
6347 2003-01-09 Kim F. Storm <storm@cua.dk>
6348
6349 * process.c (Fmake_network_process): Convert new port number
6350 to host byte order for `:service t' case. From Mario Lang.
6351
6352 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6353
6354 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
6355 instead of XtAppProcessEvent.
6356
6357 * xterm.c (handle_one_xevent): New function.
6358 (x_dispatch_event): New function.
6359 (XTread_socket): Call handle_one_xevent.
6360
6361 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
6362
6363 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
6364 call XQueryPointer to get coordinates.
6365 (popup_get_selection): Do not set popup_activated_flag to zero,
6366 let popup_deactivate_callback do that. Needed for Motif.
6367 Call x_dispatch_event instead of XtDispatchEvent.
6368 (xmenu_show): Calculate root coordinate from frame top/left position.
6369
6370 2003-01-08 Kim F. Storm <storm@cua.dk>
6371
6372 * process.c (server_accept_connection): Fix recording of new
6373 connection's local address in :local property of contact info.
6374 (Fmake_network_process): Record local network address for new
6375 client processes in :local property of contact info.
6376 (format-network-address): Add arg OMIT-PORT. Change callers.
6377
6378 2003-01-07 Dave Love <fx@gnu.org>
6379
6380 * Makefile.in (fns.o): Depend on coding.h.
6381
6382 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
6383
6384 * minibuf.c (Fread_variable): Doc fix.
6385
6386 * eval.c (Fuser_variable_p): Doc change. For custom variables,
6387 use the same test as for custom-variable-p.
6388
6389 2003-01-05 Richard M. Stallman <rms@gnu.org>
6390
6391 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
6392 Count LAST_LINE_MISFIT in scroll margin for end of window.
6393 Move label too_near_end before setting SCROLL_MARGIN_POS.
6394 Set LAST_LINE_MISFIT before jumping there.
6395
6396 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
6397 scroll_conservatively case. If scrolling that much doesn't change
6398 STARTP, move it down one line.
6399
6400 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
6401 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
6402
6403 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
6404 selected frame.
6405
6406 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
6407 (syms_of_keymap): staticpro them.
6408 (Fapropos_internal): Initialize them and clear them out.
6409 Don't GCPRO them.
6410
6411 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
6412 Doc fixes.
6413
6414 * lisp.h: New misc type Lisp_Save_Value.
6415 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
6416 (XSAVE_VALUE): New macro.
6417 (struct Lisp_Save_Value): New data type.
6418 (union Lisp_Misc): Add u_save_value alternative.
6419 (make_save_value): Declared.
6420
6421 * alloc.c (make_save_value): New function.
6422
6423 * xterm.c (x_catch_errors): Save dpy using make_save_value.
6424 (x_catch_errors_unwind): Call XSync.
6425
6426 2003-01-01 Richard M. Stallman <rms@gnu.org>
6427
6428 * window.c (window_scroll_pixel_based): Partially undo last change.
6429
6430 * keyboard.c (command_loop_1): Call adjust_point_for_property
6431 in direct action cases for Qforward_char and Qbackward_char.
6432 Set already_adjusted so it won't be done twice.
6433
6434 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
6435
6436 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
6437 type definition of size_t.
6438
6439 2003-01-02 Steven Tamm <steventamm@mac.com>
6440
6441 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
6442 distinguish Carbon GUI builds from X11 builds on darwin.
6443
6444 2002-12-30 Steven Tamm <steventamm@mac.com>
6445
6446 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
6447 to default to t.
6448
6449 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
6450
6451 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
6452
6453 2002-12-28 Steven Tamm <steventamm@mac.com>
6454
6455 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
6456 allow building in a different directory than source. Uses some
6457 GNU Make extensions, but there is no other make on Mac OS X.
6458
6459 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
6460
6461 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
6462 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
6463 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
6464 (Fstring_to_number): Mention the returned value in the doc strings.
6465
6466 2002-12-23 Richard M. Stallman <rms@gnu.org>
6467
6468 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
6469 <scroll-down-aggressively>: Doc fix.
6470
6471 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
6472 string as pane name, if there is one.
6473 (set_frame_menubar): Save menu_items_n_panes from each call to
6474 parse_single_submenu and use it when calling digest_single_submenu.
6475
6476 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
6477 Don't try to make last line fully visible if it is past end of window.
6478
6479 2002-12-22 Steven Tamm <steventamm@mac.com>
6480
6481 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
6482 (mac_menu_show): Add support for hierarchical popup menus.
6483 (add_menu_item): Remove indentation support.
6484 (fill_submenu, fill_menu): Create hierarchical menus
6485 instead of using indentation.
6486
6487 2002-12-22 Richard M. Stallman <rms@gnu.org>
6488
6489 * xdisp.c (try_cursor_movement): Don't call try_window here.
6490 (redisplay_window): Never redisplay minibuffer when inactive.
6491
6492 * window.c (select_window_1): Undo 9/21 change.
6493
6494 2002-12-22 Steven Tamm <steventamm@mac.com>
6495
6496 * macterm.c (XTread_socket): Call KeyTranslate for control and
6497 meta to deal correctly shifted non-alpha characters, like C-S-5
6498 being treated like C-%. Does not look for shift key to deal
6499 with masking off control-key with mac-reverse-ctrl-meta.
6500
6501 2002-12-21 Richard M. Stallman <rms@gnu.org>
6502
6503 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
6504 If it is non-nil, run timers. Use an unwind-protect to requeue
6505 the events that were read ahead.
6506 (popup_get_selection_unwind): New subroutine.
6507 (popup_get_selection_queue): File-scope variable now holds that queue.
6508 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
6509 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
6510 Use an unwind-protect to pop down the dialog box.
6511 (xdialog_show_unwind): New subroutine implements that.
6512
6513 * xdisp.c (row_containing_pos): Change exit test using last_y.
6514 (try_window_id): Abort if row_containing_pos returns null.
6515
6516 * lread.c (load_error_handler): New function.
6517 (Fload): Handle errors in Fsubstitute_in_file_name.
6518 Don't expect Fsignal to return.
6519
6520 * eval.c: Errors and throws work right with interrupt blocking.
6521 (struct catchtag): New elt interrupt_input_blocked.
6522 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
6523 (internal_catch, Fcondition_case, internal_condition_case)
6524 (internal_condition_case_1, internal_condition_case_2): Save it.
6525 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
6526
6527 * editfns.c (Fformat): Add parens.
6528
6529 * dired.c (file_name_completion): Fix that change.
6530 Delete special quit-handling code; just use QUIT.
6531
6532 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
6533
6534 * dired.c (file_name_completion): Close directory on error
6535 just as in directory_files_internal.
6536
6537 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
6538
6539 * window.c (Fset_window_configuration): Set old_point to correct
6540 value when new_current_buffer == current_buffer.
6541
6542 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
6543
6544 Revisited my earlier fix for the following entry in etc/PROBLEMS:
6545 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
6546 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
6547
6548 These changes were in part based upon suggestions made by Peter
6549 'Luna' Runestig [peter@runestig.com].
6550
6551 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
6552 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6553 g_b_init_get_sid_identifier_authority ): Add several static
6554 global variables.
6555
6556 * w32.c (globals_of_w32): New function. Used to initialize those
6557 global variables that must always be initialized on startup even
6558 when the global variable initialized is non zero. Its primary
6559 purpose at this time is to set the global variables
6560 g_b_init_is_windows_9x, g_b_init_open_process_token,
6561 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
6562 g_b_init_get_sid_identifier_authority to 0 on startup.
6563 Called from main.
6564
6565 * w32.c (is_windows_9x): Perform initialization only if
6566 g_b_init_is_windows_9x is equal to 0. On initialization set
6567 g_b_init_is_windows_9x equal to 1.
6568
6569 * w32.c (open_process_token): Perform initialization only if
6570 g_b_init_open_process_token is equal to 0. On initialization set
6571 g_b_init_open_process_token equal to 1.
6572
6573 * w32.c (get_token_information): Perform initialization only if
6574 g_b_init_get_token_information is equal to 0. On initialization
6575 set g_b_init_get_token_information equal to 1.
6576
6577 * w32.c (lookup_account_sid): Perform initialization only if
6578 g_b_init_lookup_account_sid is equal to 0. On initialization
6579 set g_b_init_lookup_account_sid equal to 1.
6580
6581 * w32.c (get_sid_identifier_authority): Perform initialization
6582 only if g_b_init_get_sid_identifier_authority is equal to 0.
6583 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
6584
6585 * w32fns.c (globals_of_w32fns): New function. Used to initialize
6586 those global variables that must always be initialized on startup
6587 even when the global variable initialized is non zero.
6588 Its primary purpose at this time is to initialize the global variable
6589 track_mouse_event_fn.
6590
6591 * w32fns.c (w32_wnd_proc): Remove initialization of
6592 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
6593
6594 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
6595
6596 * w32menu.c (globals_of_w32menu): New function. Used to
6597 initialize those global variables that must always be initialized
6598 on startup even when the global variable initialized is non zero.
6599 Its primary purpose at this time is to initialize the global
6600 variables get_menu_item_info and set_menu_item_info.
6601
6602 * w32menu.c (initialize_frame_menubar): Remove initialization of
6603 get_menu_item_info and set_menu_item_info.
6604
6605 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
6606
6607 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
6608 Declare them.
6609
6610 * emacs.c (main): Call globals_of_w32 prior to calling
6611 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
6612 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
6613 is defined.
6614
6615 * w32term.c (x_update_window_begin): Fix Windows API error
6616 detected by BoundsChecker. Test to determine if
6617 w32_system_caret_hwnd is NULL prior to attempting to use
6618 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
6619
6620 * w32term.c (x_update_window_end): Fix Windows API error
6621 detected by BoundsChecker. Test to determine if
6622 w32_system_caret_hwnd is NULL prior to attempting to use
6623 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
6624
6625 2002-12-17 Kenichi Handa <handa@m17n.org>
6626
6627 * coding.c (coding_system_require_warning): New variable.
6628 (syms_of_coding): DEFVAR it.
6629
6630 * coding.h (coding_system_require_warning): Extern it.
6631
6632 * fileio.c (choose_write_coding_system): Even if
6633 Vcoding_system_for_write is non-nil, if
6634 coding_system_require_warning is nonzero, call
6635 Vselect_safe_coding_system_function.
6636
6637 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
6638
6639 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
6640 (lisp): Add font-core.
6641
6642 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
6643
6644 * textprop.c (text_read_only): New arg `propval'.
6645 (get_char_property_and_overlay): Remove unused var `next_overlay'.
6646 (verify_interval_modification): Use text_read_only's new arg.
6647
6648 2002-12-13 Kenichi Handa <handa@m17n.org>
6649
6650 * coding.c (Funencodable_char_position): Set pend correctly.
6651
6652 2002-12-12 Jason Rumney <jasonr@gnu.org>
6653
6654 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
6655 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
6656 Be more careful about when help_events are generated.
6657
6658 2002-12-12 Steven Tamm <steventamm@mac.com>
6659
6660 * macterm.c (mac_check_for_quit_char): Correctly set the
6661 modifiers of the event to 0.
6662 * mac.c (sys_select): Duplicate rfds before calling select to
6663 ensure that rfds survive the while loop.
6664
6665 2002-12-11 Kim F. Storm <storm@cua.dk>
6666
6667 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
6668 row_containing_pos returned NULL.
6669
6670 2002-12-10 Steven Tamm <steventamm@mac.com>
6671
6672 * mac.c (sys_read): Fix sys_read to not call select if IO is
6673 non-blocking.
6674 (sys_select): Fix sys_select to not use a timeout larger than
6675 the one given.
6676
6677 2002-12-10 Juanma Barranquero <lektu@terra.es>
6678
6679 * editfns.c (Fformat): Use alloca, not _alloca.
6680
6681 2002-12-09 Richard M. Stallman <rms@gnu.org>
6682
6683 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
6684 as the last thing.
6685
6686 2002-12-09 Dave Love <fx@gnu.org>
6687
6688 * s/sol2-8.h: Removed. (Not necessary.)
6689
6690 2002-12-09 Matthew Swift <swift@alum.mit.edu>
6691
6692 * editfns.c (Fformat): Handle precision in string conversion
6693 specifiers like libc functions do (ie, print at most that many
6694 characters).
6695
6696 2002-12-08 Richard M. Stallman <rms@gnu.org>
6697
6698 * xdisp.c (row_containing_pos): Check more carefully
6699 whether charpos is really in the row before returning it.
6700
6701 2002-12-07 Steven Tamm <steventamm@mac.com>
6702
6703 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
6704
6705 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
6706 each stack frame. This may change as it could be time consuming.
6707
6708 * macterm.c (mac_check_for_quit_char, quit_char_comp)
6709 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6710 (mac_initialize): Add code to check for pressing of quit_char
6711 in the OS event queue.
6712
6713 * mac.c (sys_select): Call mac_check_for_quit_char every second
6714 while blocking on select.
6715
6716 * mac.c (sys_read): Use sys_select to test for input first
6717 before calling read, to allow C-g to break.
6718
6719 2002-12-07 Richard M. Stallman <rms@gnu.org>
6720
6721 * minibuf.c (Fcompleting_read): Doc fix.
6722
6723 * lread.c (syms_of_lread) <load-history>: Doc fix.
6724
6725 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
6726
6727 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
6728 autoload.
6729
6730 * data.c (Fdefalias): Record in load-history redefining an autoload.
6731
6732 * alloca.c: Undo ifdef change accidentally made on 12-04.
6733
6734 2002-12-06 Francesco Potorti` <pot@gnu.org>
6735
6736 * xfns.c (png_load): Avoid double gamma correction for PNG images.
6737
6738 2002-12-04 Richard M. Stallman <rms@gnu.org>
6739
6740 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
6741
6742 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
6743
6744 * alloca.c: Don't use #error.
6745
6746 2002-12-03 Dave Love <fx@gnu.org>
6747
6748 * buffer.c (Qucs_set_table_for_input): New.
6749 (Fget_buffer_create): Use it.
6750 (Qset_buffer_major_mode_hook): Deleted.
6751 (Fset_buffer_major_mode): Revert previous change.
6752 (init_buffer_once): Intern ucs-set-table-for-input.
6753 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
6754 Add &Qucs_set_table_for_input.
6755
6756 2002-12-03 Andreas Schwab <schwab@suse.de>
6757
6758 * callint.c (Fcall_interactively): Use next_event only if less
6759 than key_count.
6760
6761 2002-12-02 Andrew Choi <akochoi@shaw.ca>
6762
6763 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
6764 names to 255 characters.
6765
6766 * macterm.c (XTread_socket): If all frames have been collapsed,
6767 expand the first one before handling drag-and-drop events.
6768
6769 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
6770 which is detected by autoconf.
6771
6772 2002-12-01 Steven Tamm <steventamm@mac.com>
6773
6774 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
6775 offset in two hints table to allow prebinding to be redone and
6776 allow the executable to be stripped.
6777
6778 2002-11-29 Dave Love <fx@gnu.org>
6779
6780 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
6781 already provided.
6782
6783 2002-11-29 Richard M. Stallman <rms@gnu.org>
6784
6785 * xdisp.c (start_display): Check more intelligently for
6786 whether the line is continued.
6787 (move_it_vertically_backward): Clear it->continuation_lines_width.
6788
6789 2002-11-28 Dave Love <fx@gnu.org>
6790
6791 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
6792 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
6793
6794 2002-11-27 Steven Tamm <steventamm@mac.com>
6795
6796 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
6797 more descriptive error output from lread.c:Fload upon most require
6798 cycles during boostrapping.
6799
6800 2002-11-27 Jason Rumney <jasonr@gnu.org>
6801
6802 * fileio.c (Finsert_file_contents): Give a more appropriate error
6803 for files bigger than 2Gb when off_t is 32 bit.
6804
6805 * dired.c (Ffile_attributes): Don't return negative file sizes for
6806 files bigger than 2Gb when off_t is 32 bit.
6807
6808 2002-11-27 Dave Love <fx@gnu.org>
6809
6810 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6811
6812 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
6813 Test GETPGRP_VOID instead.
6814 [BSD_TERMIOS]: Remove definitions (never used).
6815
6816 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
6817 Don't define.
6818 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6819
6820 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
6821
6822 2002-11-25 Jason Rumney <jasonr@gnu.org>
6823
6824 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
6825 supported.
6826
6827 2002-11-25 Dave Love <fx@gnu.org>
6828
6829 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
6830
6831 * Makefile.in (TEMACS_LDFLAGS): Update last change.
6832
6833 2002-11-25 Andreas Schwab <schwab@suse.de>
6834
6835 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
6836
6837 2002-11-24 Steven Tamm <steventamm@mac.com>
6838
6839 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
6840 determine the size of pointers alloced in unexed space instead
6841 of using possibly invalid emacs_zone pointers. This fixes the
6842 binary incompatibility problems caused by updates to libSystem.B.
6843
6844 2002-11-24 Richard M. Stallman <rms@gnu.org>
6845
6846 * search.c (Fstring_match): Doc fix.
6847
6848 * callint.c (Fcall_interactively): If a command fails because
6849 `*' detects a read-only buffer, but RECORD_FLAG is set,
6850 record it anyway if the args don't actually do tty input.
6851
6852 2002-11-22 Dave Love <fx@gnu.org>
6853
6854 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
6855
6856 * keyboard.c (interrupt_signal): Provide forward declaration.
6857 (kbd_buffer_store_event): Don't declare interrupt_signal.
6858
6859 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
6860
6861 2002-11-21 Richard M. Stallman <rms@gnu.org>
6862
6863 * eval.c (interactive_p): Skip any number of bytecode
6864 and special form frames, in any order.
6865
6866 2002-11-20 Jason Rumney <jasonr@gnu.org>
6867
6868 * w32fns.c (convert_mono_to_color_image): New function.
6869 (xbm_load, xbm_load_image): Use it when foreground or background
6870 is explicitly set.
6871
6872 2002-11-19 Dave Love <fx@gnu.org>
6873
6874 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
6875
6876 2002-11-18 Jason Rumney <jasonr@gnu.org>
6877
6878 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
6879 (XPutPixel): Swap blue and red.
6880 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
6881 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
6882 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
6883 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
6884
6885 2002-11-18 Dave Love <fx@gnu.org>
6886
6887 * m/orion105.h (HAVE_ALLOCA): Don't define.
6888
6889 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
6890
6891 * m/intel386.h: Don't include alloca.h or define alloca.
6892
6893 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
6894 malloc, realloc, calloc.
6895
6896 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
6897 (bcmp): Don't define.
6898
6899 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
6900
6901 * m/amdahl.h: Don't define LIB_STANDARD.
6902
6903 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
6904
6905 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
6906
6907 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
6908 Don't include alloca.h.
6909
6910 * s/aix3-2.h (HAVE_FSYNC): Don't define.
6911
6912 * regex.c (_GNU_SOURCE): Don't define.
6913
6914 * process.c (_GNU_SOURCE): Don't define.
6915
6916 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
6917
6918 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
6919
6920 * s/sol2-8.h: Include sol2-6.h.
6921
6922 2002-11-18 Miles Bader <miles@gnu.org>
6923
6924 * dispextern.h (struct face): Add `overstrike' field.
6925 * xterm.c (x_draw_glyph_string_foreground)
6926 (x_draw_composite_glyph_string_foreground): Implement overstriking.
6927 * xfaces.c (load_face_font): Set `face->overstrike' based on
6928 result from choose_face_font.
6929 (best_matching_font, choose_face_font): Add `needs_overstrike'
6930 argument, and use it to return whether overstriking is desirable
6931 for this face/font combo.
6932 (set_font_frame_param: Pass new argument to choose_face_font.
6933
6934 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
6935
6936 This change is my fix for the following entry in etc/PROBLEMS:
6937 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
6938 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
6939
6940 * w32.c: Added wrapper functions around the win32 API functions
6941 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
6942 GetSidIdentifierAuthority. These wrapper functions serve two
6943 purposes:
6944 1. They ensure that the wrapped function can never be called
6945 when Emacs is running on an operating system on which they are
6946 not supported (Microsoft Windows 95 / 98 / ME).
6947 2. They call the wrapped functions via function pointers rather
6948 than calling them directly. This avoids taking advantage of the
6949 undocumented fact that although these functions are not supported
6950 in the 9x branch of Microsoft Windows, the functions do exist in
6951 the version of advapi32.dll that is found in the 9x branch of
6952 Microsoft Windows.
6953
6954 * w32.c (init_user_info): Replace the calls to the win32 API
6955 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
6956 and GetSidIdentifierAuthority with calls to the newly added
6957 wrapper functions.
6958
6959 * w32.h: Added extern declarations for the following functions:
6960 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
6961 syms_of_w32menu, and void syms_of_fontset.
6962
6963 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
6964 function pointer track_mouse_event_fn in the handler for the
6965 WM_SETFOCUS message.
6966
6967 * w32menu.c (initialize_frame_menubar): Add code to
6968 reinitialize the function pointers set_menu_item_info and
6969 get_menu_item_info.
6970
6971 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
6972
6973 * sound.c: Added a partial implementation of play-sound-internal
6974 for Microsoft Windows. Added various #ifdef / #else / #endif
6975 code blocks to separate the code that will compile under
6976 Microsoft Windows from the code that is specific to Gnu/Linux.
6977 Moved several blocks of code around to make this separation of code
6978 into Windows compatible and Gnu/Linux compatible code blocks easier.
6979
6980 * makefile.w32-in: Include sound.c and link with WinMM.lib.
6981
6982 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
6983 added support for play-sound-internal under Windows would be
6984 included in the build of Emacs.
6985
6986 2002-11-16 Jason Rumney <jasonr@gnu.org>
6987
6988 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
6989
6990 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
6991
6992 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
6993
6994 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
6995 (adjust_point_for_property): Move out of display and invisible even if
6996 we were already inside before (in case a property was added while
6997 we weren't looking). Be more careful when handling invisible props.
6998 Skip invisible text as if it really wasn't there at all.
6999
7000 2002-11-15 Jason Rumney <jasonr@gnu.org>
7001
7002 * w32term.c (x_draw_image_foreground)
7003 (w32_draw_image_foreground_1): Use standard copy and invert
7004 operations to draw images.
7005
7006 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
7007 depth of 1.
7008 (xbm_read_bitmap_data): Invert bits as xbm is read in.
7009 (XPutPixel): Don't invert bits here.
7010
7011 2002-11-15 Jason Rumney <jasonr@gnu.org>
7012
7013 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
7014 (w32_draw_image_foreground_1): Handle image masks.
7015 (x_draw_image_glyph_string): Don't BitBlt transparently.
7016
7017 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
7018 (x_from_xcolors): Adjust RGB values for W32.
7019 (image_background, image_background_transparent)
7020 (postprocess_image, x_to_xcolors, x_disable_image)
7021 (x_build_heuristic_mask): Adapt for W32 and enable.
7022 (x_create_x_image_and_pixmap): Mark images with palettes as such.
7023 (xbm_load): Remove unused variable.
7024
7025 2002-11-14 Richard M. Stallman <rms@gnu.org>
7026
7027 * buffer.c (syms_of_buffer): Doc fix.
7028
7029 2002-11-14 Dave Love <fx@gnu.org>
7030
7031 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
7032
7033 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
7034 * xmenu.c (unuse_menu_items, digest_single_submenu):
7035 * xfns.c (x_put_x_image):
7036 * xdisp.c (message2_nolog, set_message):
7037 * undo.c (record_point):
7038 * terminfo.c (tparam):
7039 * syntax.c (scan_sexps_forward):
7040 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7041 * composite.c (update_compositions):
7042 * cm.c (calccost, cmgoto):
7043 * charset.c (c_string_width): Declare all args (per C99).
7044
7045 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
7046
7047 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
7048 Don't declare.
7049
7050 * emacs.c (main) [!VMS]: Avoid third arg.
7051
7052 * fns.c (Fcopy_sequence): Doc fix.
7053 (Fmap_char_table): Cast `call2'.
7054
7055 2002-11-14 Francesco Potorti` <pot@gnu.org>
7056
7057 * s/sol2-8.h: New file.
7058
7059 2002-11-14 Kim F. Storm <storm@cua.dk>
7060
7061 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
7062 dependency on `risky-local-variable' and the :propertize form.
7063
7064 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
7065
7066 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
7067
7068 * syntax.c (scan_sexps_forward): Undo last patch.
7069 Use a more obvious fix: check eob before updating the syntax table.
7070
7071 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
7072
7073 * syntax.c (scan_sexps_forward): Update syntax table before reading
7074 a char rather than after so we don't update the table past eob.
7075
7076 2002-11-09 Dave Love <fx@gnu.org>
7077
7078 * buffer.c (Fset_buffer_major_mode): Fix last change.
7079
7080 * regex.c (regexec): Fix pmatch declaration.
7081
7082 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
7083
7084 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
7085 to self-inserting characters.
7086 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
7087
7088 * coding.c (Vtranslation_table_for_input): New.
7089 (syms_of_coding): DEFVAR it.
7090
7091 2002-11-08 Juanma Barranquero <lektu@terra.es>
7092
7093 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
7094 window.
7095
7096 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7097
7098 * process.c (Fformat_network_address): Remove unused locals p,
7099 cp, and i.
7100
7101 2002-11-06 Dave Love <fx@gnu.org>
7102
7103 * buffer.c (Qset_buffer_major_mode_hook): New.
7104 (Fset_buffer_major_mode): Use it.
7105
7106 2002-11-06 Richard M. Stallman <rms@gnu.org>
7107
7108 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
7109 and stop_polling.
7110
7111 * process.c (wait_reading_process_input):
7112 Test POLLING_PROBLEM_IN_SELECT, not hpux.
7113 Avoid initialization for auto Lisp_Object var.
7114
7115 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
7116
7117 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
7118
7119 2002-11-05 Richard M. Stallman <rms@gnu.org>
7120
7121 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
7122
7123 * callint.c (Fcall_interactively): New local filter_specs.
7124 (Fcall_interactively): Check for progn as well as let.
7125 Add a gcpro.
7126 (Qprogn): New variable.
7127 (syms_of_callint): Staticpro and init Qprogn.
7128
7129 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
7130
7131 * lread.c (Feval_buffer): Doc fix.
7132
7133 2002-11-04 Dave Love <fx@gnu.org>
7134
7135 * keyboard.c (read_char): Always translate iff
7136 Vkeyboard_translate_table is a char table and c is valid.
7137
7138 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7139 and fix C types.
7140
7141 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
7142
7143 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
7144
7145 * editfns.c (get_pos_property): Don't hardcode Qfield.
7146
7147 * keyboard.c (adjust_point_for_property): Handle `display' prop on
7148 overlays. Also handle `invisible' prop.
7149
7150 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
7151
7152 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
7153 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
7154
7155 2002-11-01 Andreas Schwab <schwab@suse.de>
7156
7157 * editfns.c (Fmessage): Revert last change to properly handle %%.
7158
7159 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
7160
7161 * xmenu.c (unuse_menu_items): New fun.
7162 (menu_items_inuse): New var.
7163 (syms_of_xmenu): Initialize it.
7164 (init_menu_items): Use it to detect re-entrance.
7165 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
7166 (Fx_popup_menu): Remove spurious XSETFRAME.
7167
7168 * editfns.c (find_field): Make an exception for nil fields.
7169
7170 2002-11-01 Dave Love <fx@gnu.org>
7171
7172 * m/gec63.h: Deleted.
7173
7174 2002-10-31 Dave Love <fx@gnu.org>
7175
7176 * xterm.c (XTread_socket): Fix last change.
7177 (xaw_scroll_callback): Cast call_data to long to avoid warning.
7178
7179 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
7180
7181 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
7182
7183 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
7184
7185 * editfns.c (overlays_around, get_pos_property): New funs.
7186 (find_field): Use them.
7187 Also be careful not to modify POS before its last use.
7188 (Fmessage): Don't Fformat if there's nothing to format.
7189
7190 2002-10-30 Dave Love <fx@gnu.org>
7191
7192 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
7193 [HAVE_PTY_H]; Include pty.h.
7194
7195 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
7196
7197 * xterm.c (Qeql): Declare.
7198 (Vx_keysym_table): New.
7199 (syms_of_xterm): Initialize it.
7200 (XTread_socket): Use it. Deal with ASCII keysyms.
7201 (XSetIMValues) [HAVE_X11R6]: Prototype.
7202
7203 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
7204 (lispy_kana_keys): Comment out.
7205 (make_lispy_event) [XK_kana_A]: Comment out.
7206 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
7207 Fix sprintf call.
7208
7209 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
7210 regexp.h change).
7211 (TERMINFO, LIBS_TERMCAP): Define.
7212
7213 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
7214 (bcmp): Define conditional on HAVE_BCMP.
7215 (NO_SIOCTL_H): Don't define.
7216 (TIOCSIGSEND): Don't make conditional on IRIX6.
7217
7218 * s/sol2-5.h: Don't include strings.h.
7219 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
7220
7221 * s/irix6-0.h (IRIX6): Don't define.
7222 (bcopy, bcmp, bzero): Don't undef.
7223
7224 * s/irix6-5.h: Don't include strings.h.
7225 (IRIX6): Don't define.
7226 (bcopy, bcmp, bzero): Don't undef.
7227
7228 * syntax.c (Fforward_comment): Doc fix.
7229
7230 2002-10-29 Kim F. Storm <storm@cua.dk>
7231
7232 * process.c (Fsignal_process): Allow PROCESS to be specified by
7233 name in addition to pid (as integer or string).
7234
7235 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
7236
7237 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
7238 environments.
7239
7240 2002-10-27 Kim F. Storm <storm@cua.dk>
7241
7242 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7243
7244 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
7245
7246 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
7247
7248 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7249
7250 2002-10-26 Richard M. Stallman <rms@gnu.org>
7251
7252 * editfns.c (Fformat): Detect invalid format letters for floats.
7253
7254 2002-10-25 Kenichi Handa <handa@m17n.org>
7255
7256 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
7257 (x_set_title): Likewise.
7258
7259 2002-10-25 Juanma Barranquero <lektu@terra.es>
7260
7261 * macgui.h:
7262 * w32gui.h: Remove definition of XColor.
7263
7264 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
7265
7266 2002-10-24 Kim F. Storm <storm@cua.dk>
7267
7268 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
7269 Callers changed (supply dummy arg).
7270
7271 * lisp.h (get_window_cursor_type): Update prototype.
7272
7273 * w32term.c (x_display_and_set_cursor): Get active_cursor from
7274 get_window_cursor_type to track system caret.
7275
7276 2002-10-24 Kim F. Storm <storm@cua.dk>
7277
7278 * process.c (Fformat_network_address): New function.
7279 (syms_of_process): Defsubr it.
7280 (list_processes_1): Use it to format :local/:remote address if
7281 service/host is not set; before emacs would crash in that case.
7282 (Fmake_network_process): Don't use Ffind_operation_coding_system
7283 to setup coding system if host or service is not set.
7284
7285 2002-10-23 Juanma Barranquero <lektu@terra.es>
7286
7287 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
7288
7289 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
7290 COLORREF.
7291
7292 * macgui.h:
7293 * w32gui.h: Add definition of XColor.
7294
7295 * macfns.c:
7296 * w32fns.c:
7297 * xfaces.c: Remove definition of XColor.
7298
7299 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
7300
7301 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
7302
7303 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
7304 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
7305 window if it is dedicated.
7306 (Fshrink_window): Add preserve_before as was done for enlarge_window.
7307 (Vspecial_display_function): Update docstring.
7308
7309 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
7310 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
7311 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
7312
7313 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
7314
7315 * casefiddle.c (casify_region): Don't treat a prefix char as part
7316 of a word when at the beginning.
7317
7318 2002-10-17 Juanma Barranquero <lektu@terra.es>
7319
7320 * lread.c (syms_of_lread): Fix typos.
7321
7322 2002-10-17 Dave Love <fx@gnu.org>
7323
7324 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
7325
7326 2002-10-16 Richard M. Stallman <rms@gnu.org>
7327
7328 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
7329
7330 2002-10-14 Juanma Barranquero <lektu@terra.es>
7331
7332 * w16select.c (syms_of_win16select): Fix docstring for
7333 `selection-coding-system'.
7334
7335 * w32select.c (syms_of_w32select): Likewise.
7336
7337 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
7338
7339 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
7340 a backslash-quoted char.
7341 (scan_lists, scan_sexps_forward): Pacify the compiler.
7342
7343 2002-10-13 Richard M. Stallman <rms@gnu.org>
7344
7345 * window.c (window_scroll): Set immediate_quit.
7346
7347 * print.c (print): When backquote form is the car of a list,
7348 output in old style. Use old_backquote_output to output all
7349 comma forms inside it in old style too.
7350
7351 * buffer.h (struct buffer): Move `undo_list' down below `name'.
7352
7353 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
7354
7355 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
7356 batch mode).
7357
7358 * lread.c (Fload): Doc fix (load-suffixes).
7359
7360 2002-10-10 Steven Tamm <steventamm@mac.com>
7361
7362 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
7363 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
7364 Also switch the default to Qnil from Qt.
7365
7366 2002-10-08 Kenichi Handa <handa@m17n.org>
7367
7368 * coding.c (code_convert_region): When we need more GAP for
7369 conversion, pay attention to the case that coding->produced is not
7370 greater than coding->consumed.
7371
7372 2002-10-07 Richard M. Stallman <rms@gnu.org>
7373
7374 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
7375
7376 2002-10-06 Andrew Choi <akochoi@shaw.ca>
7377
7378 * macmenu.c (mac_menu_show): Add j to count menu items; match
7379 menu_item_selection to it to find selected item.
7380
7381 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7382
7383 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
7384 cases. The correct fix is to pass ReparentNotify to Xt.
7385 The shell widget interprets ConfigureNotify differently depending
7386 on if it has been reparented or not.
7387
7388 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
7389
7390 * editfns.c (Fformat_time_string): Doc fix.
7391
7392 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
7393
7394 * fns.c (Flength): Doc fix.
7395
7396 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
7397
7398 * keyboard.c (keyremap): New struct.
7399 (read_key_sequence): Use it: globally replace keytran_foo with
7400 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
7401 keytran_next and fkey_next to just `next'.
7402
7403 2002-10-04 Steven Tamm <steventamm@mac.com>
7404
7405 * macterm.c (keycode_to_xkeysym_table): Change return to be
7406 treated like an X keysym.
7407
7408 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7409
7410 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
7411 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
7412 This is to also handle x/y changes that occur because of a resize.
7413
7414 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
7415
7416 * frame.c (Vdelete_frame_functions): New variable.
7417 (syms_of_frame): Initialize and defvar it.
7418 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
7419 it when frame's `tooltip' parameter is non-nil.
7420
7421 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
7422
7423 * w32fns.c (x_create_tip_frame): Likewise.
7424
7425 * macfns.c (x_create_tip_frame): Likewise.
7426
7427 2002-09-30 Kenichi Handa <handa@m17n.org>
7428
7429 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
7430 -1 before calling ccl_driver.
7431
7432 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
7433 Only when it is non-nil, handle composition sequence.
7434 (setup_coding_system) <0>: Don't force composition handling.
7435
7436 * Makefile.in (lisp, shortlisp): Add utf-16.elc
7437
7438 2002-09-29 Richard M. Stallman <rms@gnu.org>
7439
7440 * search.c (Freplace_match): Adjust match data for the substitution
7441 just made in the buffer.
7442
7443 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
7444 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
7445
7446 2002-09-27 Richard M. Stallman <rms@gnu.org>
7447
7448 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
7449 (read_char): Use them. Do all exits thru the end of the function.
7450
7451 2002-09-27 Kenichi Handa <handa@etl.go.jp>
7452
7453 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
7454 is nil.
7455
7456 2002-09-26 Richard M. Stallman <rms@gnu.org>
7457
7458 * regex.h (__restrict_arr): Don't define if already defined.
7459
7460 * coding.c (run_pre_post_conversion_on_str):
7461 Save and restore Vdeactivate_mark.
7462
7463 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
7464
7465 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
7466
7467 2002-09-26 Kenichi Handa <handa@etl.go.jp>
7468
7469 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
7470 nonzero, try face's family at first. Otherwise try FAMILY at first.
7471 (choose_face_font): If C is a single byte char or latin-1, call
7472 try_font_list with PREFER_FACE_FAMILY 1.
7473
7474 2002-09-21 Richard M. Stallman <rms@gnu.org>
7475
7476 * window.c (select_window_1): Don't select frame.
7477 Set frame's selected window only when frame itself is selected.
7478 (Fselect_window): Doc fix.
7479
7480 2002-09-18 Kim F. Storm <storm@cua.dk>
7481
7482 * process.c (make-network-process): Doc fix (there is no
7483 network-server-log-function hook).
7484
7485 2002-09-18 Richard M. Stallman <rms@gnu.org>
7486
7487 * print.c (print): Clear out the unused parts of Vprint_number_table.
7488 (syms_of_print): Doc fix for `print-number-table'.
7489
7490 * unexelf.c (unexec): Undo previous change.
7491
7492 2002-09-17 Andreas Schwab <schwab@suse.de>
7493
7494 * m/alpha.h [LINUX]: Don't define DATA_START.
7495
7496 2002-09-16 Dave Love <fx@gnu.org>
7497
7498 * unexelf.c (unexec): Deal with .got, reinstating change from
7499 25-08-1999.
7500
7501 2002-09-13 Richard M. Stallman <rms@gnu.org>
7502
7503 * s/sol2-6.h (UNEXEC): Comment out definition.
7504
7505 * unexsol.c (unexec): Don't downcase first letter of error msg.
7506
7507 * xfaces.c (Fcolor_supported_p): Just one arg is required.
7508
7509 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
7510
7511 * unexsol.c: Include buffer.h, charset.h, coding.h.
7512
7513 2002-09-11 Richard M. Stallman <rms@gnu.org>
7514
7515 * unexsol.c: Don't use report_file_error; do it by hand
7516 using dlerror.
7517
7518 * process.c (wait_reading_process_input, both versions):
7519 Before calling turn_on_atimers, call stop_polling.
7520
7521 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
7522
7523 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
7524 we go to too_near_end, call clear_glyph_matrix.
7525 (redisplay_window): After make_cursor_line_fully_visible,
7526 call clear_glyph_matrix and bypass `goto done'.
7527
7528 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
7529 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
7530
7531 2002-09-10 Richard M. Stallman <rms@gnu.org>
7532
7533 * fileio.c (Fdo_auto_save): Catch error making directory.
7534 Only call push_message if we need to.
7535 At the same time, make an unwind-protect to pop it.
7536 Rename local message_p to old_message_p.
7537 (do_auto_save_make_dir, do_auto_save_eh): New functions.
7538 (do_auto_save_unwind): Don't call pop_message.
7539
7540 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
7541
7542 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
7543
7544 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
7545
7546 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
7547
7548 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
7549
7550 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
7551 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
7552 (re_match_2_internal): Be more careful with infinite loops.
7553
7554 2002-09-10 Kim F. Storm <storm@cua.dk>
7555
7556 * macros.c (end_kbd_macro): New function.
7557 (Fend_kbd_macro): Use it.
7558
7559 * macros.h (end_kbd_macro): Declare extern.
7560
7561 * keyboard.c (Fdiscard_input): If defining keyboard macro,
7562 end and save it instead of discarding it.
7563
7564 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
7565
7566 * s/sol2-6.h: Fix typo. Add comment.
7567
7568 2002-09-09 Richard M. Stallman <rms@gnu.org>
7569
7570 * regex.c (regnum_t): Use signed int, not unsigned int.
7571
7572 * s/sol2-6.h: New file.
7573
7574 * s/sol2-5.h (UNEXEC): Definition deleted.
7575
7576 2002-09-08 Kim F. Storm <storm@cua.dk>
7577
7578 * macros.c (executing_macro_index): Change type to EMACS_INT.
7579 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
7580
7581 * macros.h (executing_macro_index): Change type to EMACS_INT.
7582
7583 2002-09-06 Richard M. Stallman <rms@gnu.org>
7584
7585 * casetab.c (set_case_table): Make canon table point to eqv table.
7586
7587 2002-09-06 Juanma Barranquero <lektu@terra.es>
7588
7589 * coding.c (syms_of_coding): Fix spacing.
7590
7591 * composite.c (Fcompose_region_internal)
7592 (Fcompose_string_internal): Likewise.
7593
7594 * data.c (Flsh): Likewise.
7595
7596 * fontset.c (Fset_fontset_font): Likewise.
7597
7598 * macfns.c (Fx_server_max_request_size): Likewise.
7599
7600 * w16select.c (syms_of_win16select): Likewise.
7601
7602 * w32select.c (syms_of_w32select): Likewise.
7603
7604 * xselect.c (syms_of_xselect): Likewise.
7605
7606 2002-09-05 Richard M. Stallman <rms@gnu.org>
7607
7608 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
7609 call EXTEND_RANGE_TABLE and return a proper value.
7610 (set_image_of_range): Don't call set_image_of_range_1
7611 if no TRANSLATE or if range includes all of Latin-1.
7612 Only call it for the Latin-1 part of the range.
7613 For other cases, make two separate ranges,
7614 one for the original specified characters and one for
7615 their case-conversions.
7616
7617 2002-09-04 Richard M. Stallman <rms@gnu.org>
7618
7619 * s/sol2-5.h (UNEXEC): Use unexsol.o.
7620
7621 * window.c (displayed_window_lines): Correct for one-off bug
7622 in HEIGHT on non-window displays.
7623
7624 * regex.c (set_image_of_range_1): New function.
7625 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
7626 Return a value to indicate running out of memory.
7627 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
7628 (extend_range_table_work_area): New subroutine.
7629 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
7630 Different calling conventions, and used from set_image_of_range{,_1}.
7631 (IMMEDIATE_QUIT_CHECK): Definitions moved.
7632
7633 2002-09-04 Juanma Barranquero <lektu@terra.es>
7634
7635 * makefile.w32-in: All dependencies updated.
7636
7637 2002-09-01 Richard M. Stallman <rms@gnu.org>
7638
7639 * unexsol.c: New file.
7640
7641 * xfns.c (Qbox): Declare external, don't define.
7642
7643 * xdisp.c (redisplay_window) <force-start case>:
7644 If point is on semi-visible last line, reposition
7645 it at previous line.
7646
7647 * alloc.c (display_malloc_warning): Use display-warning.
7648 (malloc_warning_1): Function deleted.
7649
7650 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
7651
7652 * lread.c (read1): Handle #! by skipping the line.
7653
7654 2002-08-31 Richard M. Stallman <rms@gnu.org>
7655
7656 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
7657 Don't include LDFLAGS.
7658 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
7659
7660 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
7661
7662 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
7663 member of x_display_info unless we compile for some window system.
7664
7665 2002-08-31 Kim F. Storm <storm@cua.dk>
7666
7667 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
7668 (get_window_cursor_type): Don't use them.
7669 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
7670
7671 2002-08-30 Kenichi Handa <handa@etl.go.jp>
7672
7673 * xdisp.c (get_next_display_element): Fix previous change.
7674
7675 2002-08-30 Andrew Choi <akochoi@shaw.ca>
7676
7677 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
7678 (expose_window): Use it to fix the display of overlapping
7679 rows (merge code from xterm.c).
7680
7681 * macfns.c (Qbox): Add extern declaration.
7682
7683 2002-08-30 Juanma Barranquero <lektu@terra.es>
7684
7685 * w32fns.c (Qbox): Make extern.
7686 (syms_of_w32fns): Remove initialization of Qbox.
7687
7688 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
7689
7690 * xfns.c (Fx_open_connection): Fix error message.
7691
7692 2002-08-30 Kim F. Storm <storm@cua.dk>
7693
7694 The following changes consolidates the handling of the cursor
7695 type in xdisp.c, moving duplicate code and functionality from
7696 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
7697
7698 * frame.h (enum text_cursor_kinds): Consolidated here.
7699 Added DEFAULT_CURSOR value.
7700 (struct frame) <desired_cursor, cursor_width>
7701 <blink_off_cursor, blink_off_cursor_width>: New fields.
7702 Consolidated from output_x, output_w32 and output_mac structs.
7703 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
7704 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
7705
7706 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
7707 Variables consolidated here.
7708 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
7709 (Vcursor_in_non_selected_windows): Renamed from
7710 cursor_in_non_selected_windows and changed to Lisp_Object.
7711 (syms_of_xdisp): Define and staticpro new and moved variables.
7712 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
7713 consolidated here. Recognize Qhollow setting.
7714 (set_frame_cursor_types): New function to set frame cursor types
7715 based on the frame parameters.
7716 (get_window_cursor_type): New function to calculate new cursor
7717 type and width for the specified window. Based on duplicated
7718 code consolidated here.
7719 Enhancements: cursor-in-non-selected-windows may be a cursor type,
7720 check buffer-local alternate-cursor-type and blink-cursor-alist
7721 before using built-in blink off methods.
7722
7723 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
7724
7725 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
7726 (get_specified_cursor_type, get_window_cursor_type)
7727 (set_frame_cursor_types): Added prototypes.
7728
7729 * macfns.c (x_specified_cursor_type): Removed.
7730 (x_set_cursor_type): Use set_frame_cursor_types.
7731 (Qbar, Qbox): Removed.
7732 (syms_of_macfns): Don't intern or staticpro them.
7733
7734 * macterm.c (x_specified_cursor_type): Remove prototype.
7735 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
7736 (x_display_and_set_cursor): Use get_window_cursor_type.
7737 Remove unused local variables cursor_non_selected, active_cursor.
7738 Redraw cursor if hbar cursor width changes.
7739 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
7740
7741 * macterm.h (enum text_cursor_kinds): Removed.
7742 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
7743 <blink_off_cursor, blink_off_cursor_width>: Members removed.
7744 (FRAME_DESIRED_CURSOR): Macro removed.
7745
7746 * w32fns.c (Vblink_cursor_alist): Removed.
7747 (Qbar, Qhbar, Qbox, Qhollow): Removed.
7748 (syms_of_w32fns): Don't intern, staticpro, or define them.
7749 (x_specified_cursor_type): Removed.
7750 (x_set_cursor_type): Use set_frame_cursor_types.
7751
7752 * w32term.c (x_specified_cursor_type): Remove prototype.
7753 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
7754 (x_display_and_set_cursor): Use get_window_cursor_type.
7755 Remove unused local variables cursor_off_state.
7756 Redraw cursor if hbar cursor width changes.
7757 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
7758
7759 * w32term.h (enum text_cursor_kinds): Removed.
7760 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
7761 <blink_off_cursor, blink_off_cursor_width>: Members removed.
7762 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
7763 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
7764 (struct w32_display_info) <x_highlight_frame>: Renamed member from
7765 w32_highlight_frame.
7766
7767 * xfns.c (Vblink_cursor_alist): Removed.
7768 (Qbar, Qhbar, Qbox, Qhollow): Removed.
7769 (syms_of_xfns): Don't intern, staticpro, or define them.
7770 (x_specified_cursor_type): Removed.
7771 (x_set_cursor_type): Use set_frame_cursor_types.
7772
7773 * xterm.c (x_specified_cursor_type): Remove prototype.
7774 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
7775 (x_display_and_set_cursor): Use get_window_cursor_type.
7776 Remove unused local variables cursor_off_state.
7777 Redraw cursor if hbar cursor width changes.
7778
7779 * xterm.h (enum text_cursor_kinds): Removed.
7780 (struct output_x) <current_cursor, desired_cursor, cursor_width>
7781 <blink_off_cursor, blink_off_cursor_width>: Members removed.
7782 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
7783 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
7784 (x_specified_cursor_type): Remove prototype.
7785
7786 2002-08-28 Richard M. Stallman <rms@gnu.org>
7787
7788 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
7789 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
7790 (Vblink_cursor_alist): New variable.
7791 (syms_of_w32fns): Initialize and defvar it.
7792 (x_specified_cursor_type): Recognize Qbox for filled box.
7793 Exceptions are hollow boxes.
7794 (Qbox, Qhollow): New variables.
7795 (syms_of_w32fns): Initialize and staticpro them.
7796
7797 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
7798 New macros.
7799 (struct w32_output): New fields blink_off_cursor,
7800 blink_off_cursor_width.
7801 (FRAME_CURSOR_WIDTH): New macro.
7802
7803 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
7804 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
7805
7806 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
7807 for bar cursor.
7808
7809 * w32term.c (expose_overlaps): New function.
7810 (expose_window): Use it to fix the display of overlapping rows.
7811
7812 2002-08-28 Simon Josefsson <jas@extundo.com>
7813
7814 * xfns.c (Fx_open_connection): Improve help when X connection
7815 fails, xhost is insecure and xauth is better.
7816
7817 2002-08-28 Juanma Barranquero <lektu@terra.es>
7818
7819 * makefile.w32-in: Add missing dependencies on w32term.h and
7820 composite.h.
7821
7822 * emacs.c (USAGE1): Add missing newline.
7823
7824 2002-08-27 Andrew Choi <akochoi@shaw.ca>
7825
7826 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
7827
7828 2002-08-27 Richard M. Stallman <rms@gnu.org>
7829
7830 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
7831 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
7832 (Vblink_cursor_alist): New variable.
7833 (syms_of_xfns): Initialize and defvar it.
7834 (x_specified_cursor_type): Recognize Qbox for filled box.
7835 Exceptions are hollow boxes.
7836 (Qbox, Qhollow): New variables.
7837 (syms_of_xfns): Initialize and staticpro them.
7838
7839 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
7840 New macros.
7841 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
7842
7843 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
7844 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
7845
7846 * emacs.c (main): Handle --script.
7847 (USAGE1): Mention --script.
7848 (standard_args): Define sort order for --script.
7849
7850 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
7851
7852 * xdisp.c (redisplay_updating_p): Variable removed.
7853 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
7854 New variables.
7855 (init_iterator): Don't free realized faces if
7856 inhibit_free_realized_faces is set.
7857 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
7858 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
7859 initialize Qinhibit_free_realized_faces.
7860
7861 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
7862 when iterator is adding glyphs to a glyph matrix.
7863
7864 2002-08-27 Kenichi Handa <handa@etl.go.jp>
7865
7866 * xdisp.c (get_next_display_element): In unibyte case, don't use
7867 octal form for such eight-bit characters that can be converted to
7868 multibyte char.
7869
7870 2002-08-26 Kim F. Storm <storm@cua.dk>
7871
7872 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
7873 and background colors. From Joe Buehler (tiny change).
7874
7875 2002-08-26 Miles Bader <miles@gnu.org>
7876
7877 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
7878
7879 2002-08-25 Andrew Choi <akochoi@shaw.ca>
7880
7881 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
7882 defined instead of MAC_OSX.
7883
7884 * s/darwin.h (select): Define select to sys_select only if
7885 HAVE_CARBON is defined.
7886 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
7887 (DONT_REOPEN_PTY): #def it.
7888
7889 * macterm.c (XTread_socket): Remove code to call
7890 SendEventToEventTarget for keys with command modifiers when
7891 mac_command_key_is_meta is nil.
7892
7893 2002-08-24 Andreas Schwab <schwab@suse.de>
7894
7895 * eval.c (Fdefvar): Fix last change.
7896
7897 2002-08-23 Richard M. Stallman <rms@gnu.org>
7898
7899 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
7900 Record variables in load history as (defvar . VAR).
7901 (Fdefvar): Don't record in load history if no initial value.
7902 (Qdefvar): New variable.
7903 (syms_of_eval): Init and staticpro it.
7904
7905 * lread.c (syms_of_lread): Doc fix.
7906 (build_load_history): Use Fmember to see if a definition
7907 is already in the Vload_history element.
7908
7909 * process.c (Fstart_process): Remove /: from program name.
7910
7911 * emacs.c (decode_env_path): Don't add /: if file name handler
7912 has a `safe-magic' property.
7913
7914 * callproc.c (Fcall_process): Remove /: from program name.
7915
7916 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
7917
7918 * regex.c (PATFETCH): Remove the translating fetch.
7919 (PATFETCH_RAW): Rename to PATFETCH.
7920 (set_image_of_range): New fun.
7921 (SET_RANGE_TABLE_WORK_AREA): Use it.
7922 (regex_compile): Don't translate the pattern chars so eagerly.
7923 Only do it when inserting an `exactn' bytecode or when handling
7924 a char-range.
7925 (mutually_exclusive_p): Avoid empty statement.
7926
7927 2002-08-22 Kim F. Storm <storm@cua.dk>
7928
7929 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
7930 end up on a partially visible line; this reverts a specific part
7931 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
7932 display error which has been reported several times now.
7933 However it introduces the problem that changes was supposed to fix.
7934 See my comments in the source if you want to debug this further.
7935
7936 2002-08-20 Kenichi Handa <handa@etl.go.jp>
7937
7938 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7939
7940 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
7941
7942 * msdos.c (croak): Add `void' to definition.
7943
7944 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
7945 Don't define them, they are defined in msdos.c.
7946
7947 * mem-limits.h [MSDOS]: Declare etext.
7948
7949 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
7950 `const' since CORRECT_DIR_SEPS modifies its target.
7951
7952 2002-08-19 Kim F. Storm <storm@cua.dk>
7953
7954 * keyboard.c (Fclear_this_command_keys): Added optional arg
7955 KEEP-RECORD to avoid clearing lossage when we just want to clear
7956 the current key sequence (kmacro needs this).
7957
7958 2002-08-19 Kenichi Handa <handa@localhost>
7959
7960 * composite.c (run_composition_function): Call FUNC if it is fboundp.
7961
7962 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
7963 cons, return Qnil.
7964
7965 2002-08-17 Richard M. Stallman <rms@gnu.org>
7966
7967 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
7968
7969 * sysdep.c [!VMS]: Include sys/files.h.
7970
7971 * editfns.c (save_restriction_restore): Defend from unchained marker.
7972
7973 * buffer.c (overlays_at): Handle extending vec uniformly.
7974 (overlays_in): Handle extending vec from length 0 as in overlays_at.
7975
7976 2002-08-15 Andrew Choi <akochoi@shaw.ca>
7977
7978 * mac.c (init_mac_osx_environment): New function.
7979
7980 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
7981
7982 2002-08-14 Kim F. Storm <storm@cua.dk>
7983
7984 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
7985 executing macro before appending to it (when used from Lisp).
7986 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
7987 which is called prior to each iteration of macro (for kmacro.el).
7988 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
7989
7990 * lisp.h (Fexecute_kbd_macro): Update prototype.
7991
7992 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
7993
7994 2002-08-14 Kenichi Handa <handa@etl.go.jp>
7995
7996 * xselect.c (QUTF8_STRING): New variable.
7997 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
7998 (x_atom_to_symbol): Likewise.
7999 (x_get_local_selection): New argument local_request. If it is
8000 nonzero, call handler_fn with the second arg nil.
8001 (x_handle_selection_request): Call x_get_local_selection with
8002 local_request 0.
8003 (lisp_data_to_selection_data): Don't encode the string here.
8004 (Fx_get_selection_internal): Call x_get_local_selection with
8005 local_request 1.
8006 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
8007
8008 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
8009
8010 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
8011
8012 2002-08-13 Richard M. Stallman <rms@gnu.org>
8013
8014 * minibuf.c (Fminibufferp): New function.
8015 (syms_of_minibuf): Defsubr it.
8016 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
8017
8018 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
8019
8020 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
8021
8022 2002-08-12 Richard M. Stallman <rms@gnu.org>
8023
8024 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
8025 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
8026 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
8027 already.
8028
8029 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
8030
8031 2002-08-11 Andrew Choi <akochoi@shaw.ca>
8032
8033 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
8034 (Vmac_pass_command_to_system): New variable.
8035 (Vmac_pass_control_to_system): New variable.
8036 (do_mouse_moved): Check wp with is_emacs_window.
8037 (XTread_socket): Check window_ptr with is_emacs_window.
8038 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
8039 events back to Mac Toolbox for processing, depending on values of
8040 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
8041 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
8042 Vmac_pass_control_to_system.
8043
8044 2002-08-10 Kenichi Handa <handa@etl.go.jp>
8045
8046 * coding.c (unencodable_char_position): New function.
8047 (Funencodable_char_position): New function.
8048 (syms_of_coding): Defsubr Funencodable_char_position.
8049
8050 2002-08-10 Andrew Choi <akochoi@shaw.ca>
8051
8052 * mac.c (sys_select) [MAC_OSX]: New function.
8053
8054 * macterm.c (MakeMeTheFrontProcess): New function.
8055 (mac_initialize): Call MakeMeTheFrontProcess.
8056
8057 * s/darwin.h: Define select to sys_select.
8058
8059 2002-08-09 Richard M. Stallman <rms@gnu.org>
8060
8061 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
8062
8063 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
8064
8065 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
8066 end of the buffer.
8067
8068 2002-08-08 Ken Raeburn <raeburn@mit.edu>
8069
8070 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
8071
8072 * puresize.h (BASE_PURESIZE): Increase to 910000.
8073
8074 2002-08-08 Kenichi Handa <handa@etl.go.jp>
8075
8076 * coding.c (Ffind_operation_coding_system): For write-region, if
8077 VISIT is a filename, make it the target.
8078
8079 2002-08-07 Richard M. Stallman <rms@gnu.org>
8080
8081 * alloc.c (mark_object): Detect long lists for debugging.
8082 (mark_object_loop_halt): New variable.
8083
8084 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
8085
8086 * data.c (Fmake_variable_frame_local): Doc fix.
8087
8088 2002-08-01 David Ponce <david@dponce.com>
8089
8090 * w32menu.c (local_heap, local_alloc, local_free): New macros.
8091 (malloc_widget_value, free_widget_value)
8092 (w32_free_submenu_strings): Use them.
8093
8094 (push_submenu_start, push_submenu_end, push_left_right_boundary)
8095 (push_menu_pane, push_menu_item, single_keymap_panes)
8096 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
8097 (single_submenu, set_frame_menubar)
8098 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
8099
8100 (Fx_popup_menu): Don't show pop up menu until preceding one is
8101 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
8102
8103 * w32menu.c: Changes adapted from xmenu.c
8104 (set_frame_menubar): First parse all submenus,
8105 then make widget_value trees from them.
8106 Don't allocate any widget_value objects
8107 until we are done with the parsing.
8108 (parse_single_submenu): New function.
8109 (digest_single_submenu): New function.
8110 (single_submenu): Function deleted, replaced by those two.
8111
8112 2002-08-04 Andrew Choi <akochoi@shaw.ca>
8113
8114 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
8115 returns a valid window pointer before proceeding for keyDown and
8116 autoKey events.
8117
8118 2002-08-03 Andrew Choi <akochoi@shaw.ca>
8119
8120 * macterm.c (USE_CARBON_EVENTS): New macro.
8121 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
8122 (x_iconify_frame): Call CollapseWindow.
8123 (Vmac_reverse_ctrl_meta): New variable.
8124 (Vmac_wheel_button_is_mouse_2): New variable.
8125 (init_mac_drag_n_drop): New function.
8126 (mac_do_receive_drag): New function.
8127 (mac_handle_service_event): New function.
8128 (init_service_handler): New function.
8129 (mac_to_emacs_modifiers): New function.
8130 (mac_event_to_emacs_modifiers): New function.
8131 (mac_get_mouse_btn): New function.
8132 (mac_convert_event_ref): New function.
8133 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
8134 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
8135 mac_get_mouse_btn.
8136 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
8137
8138 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
8139 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
8140 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
8141 TOOL_BAR_EVENT for MAC_OS as well.
8142 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
8143 as for WINDOWS_NT.
8144 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
8145
8146 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
8147
8148 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
8149
8150 * xdisp.c (forward_to_next_line_start): Fix a condition that
8151 lead to a newline being skipped.
8152
8153 2002-08-02 Andrew Choi <akochoi@shaw.ca>
8154
8155 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
8156
8157 2002-08-01 Richard M. Stallman <rms@gnu.org>
8158
8159 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
8160
8161 2002-07-31 Andrew Choi <akochoi@shaw.ca>
8162
8163 * macfns.c: #undef init_process before #define-ing it.
8164
8165 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
8166 HAVE_CARBON is defined.
8167
8168 2002-07-31 Richard M. Stallman <rms@gnu.org>
8169
8170 * xmenu.c (set_frame_menubar): First parse all submenus,
8171 then make widget_value trees from them.
8172 Don't allocate any widget_value objects
8173 until we are done with the parsing.
8174 (parse_single_submenu): New function.
8175 (digest_single_submenu): New function.
8176 (single_submenu): Function deleted, replaced by those two.
8177
8178 2002-07-30 Juanma Barranquero <lektu@terra.es>
8179
8180 * w32proc.c (syms_of_ntproc): Fix docstring of
8181 `w32-get-true-file-attributes'.
8182
8183 2002-07-28 Richard M. Stallman <rms@gnu.org>
8184
8185 * s/hpux8.h (HPUX8): Define this before including hpux.h.
8186 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
8187
8188 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
8189
8190 * keyboard.c (make_lispy_event):
8191 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
8192 Explicitly clear up_modifier in event->modifiers.
8193
8194 2002-07-27 Richard M. Stallman <rms@gnu.org>
8195
8196 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
8197
8198 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8199 for bar cursor.
8200
8201 2002-07-26 Kenichi Handa <handa@etl.go.jp>
8202
8203 * coding.c (detect_coding_iso2022): While checking a byte sequence
8204 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
8205 it in the normal loop.
8206
8207 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
8208
8209 * xterm.c (expose_overlaps): New function.
8210 (expose_window): Use it to fix the display of overlapping rows.
8211
8212 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
8213
8214 2002-07-23 Ken Raeburn <raeburn@gnu.org>
8215
8216 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
8217 since it only depends on XUINT.
8218
8219 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
8220 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
8221 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
8222 Macros deleted.
8223
8224 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
8225 its value over other approaches.
8226 * sysdep.c (start_of_data): Don't define the function if a macro
8227 form has been defined.
8228
8229 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
8230
8231 * xdisp.c (redisplay_updating_p): New variable.
8232 (init_iterator): Don't free realized faces when
8233 redisplay_updating_p is set.
8234 (redisplay_internal): Set redisplay_updating_p while updating
8235 the display.
8236
8237 2002-07-23 Richard M. Stallman <rms@gnu.org>
8238
8239 * editfns.c (Fmessage): Treat "" like nil.
8240
8241 2002-07-23 Kenichi Handa <handa@etl.go.jp>
8242
8243 * xdisp.c (face_before_or_after_it_pos):
8244 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8245
8246 2002-07-22 Juanma Barranquero <lektu@terra.es>
8247
8248 * callproc.c (init_callproc) [DOS_NT]:
8249 Initialize Vshared_game_score_directory to nil.
8250 (syms_of_callproc) [DOS_NT]: Likewise.
8251
8252 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
8253
8254 * xdisp.c (display_line): Replace an abort with xassert.
8255
8256 2002-07-21 Richard M. Stallman <rms@gnu.org>
8257
8258 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
8259 and END_UNCHANGED when setting buffer_unchanged_p.
8260 Use current_matrix_up_to_date_p to decide whether to use
8261 try_cursor_movement.
8262
8263 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
8264
8265 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
8266
8267 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
8268 Set to nil if dir does not exist.
8269 (syms_of_callproc): Init unconditionally and simply.
8270
8271 * buffer.c (Fbuffer_list): Doc fix.
8272
8273 2002-07-21 Ken Raeburn <raeburn@gnu.org>
8274
8275 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
8276
8277 * buffer.c (mmap_realloc): When shrinking, make sure number of
8278 pages to unmap is rounded towards zero.
8279
8280 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
8281 (XSETINT): Deleted.
8282
8283 * m/att3b.h (XINT): Don't define.
8284 (VALBITS, VALMASK, XTYPE): Deleted.
8285 (DATA_SEG_BITS): Define.
8286 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
8287 ARRAY_MARK_FLAG): Deleted.
8288 (DATA_SEG_BITS): Define.
8289 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
8290 (DATA_SEG_BITS): Define.
8291
8292 2002-07-20 Richard M. Stallman <rms@gnu.org>
8293
8294 * print.c (print_error_message): New args CONTEXT and CALLER.
8295 Calls changed.
8296
8297 * lisp.h (print_error_message): Declare new args.
8298
8299 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
8300 and CONTEXT to print_error_message, don't print them here.
8301 For a Quit, don't use Vsignaling_function.
8302 Call message_log_maybe_newline.
8303
8304 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
8305
8306 2002-07-20 Kim F. Storm <storm@cua.dk>
8307
8308 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
8309
8310 2002-07-19 Ken Raeburn <raeburn@gnu.org>
8311
8312 * bytecode.c (struct byte_stack): Pointers into byte string now
8313 point to const.
8314 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
8315 const.
8316 * charset.h (BCOPY_SHORT): Source pointer now points to const.
8317 * coding.c (encode_eol, detect_coding, detect_eol):
8318 (decode_coding, encode_coding, detect_coding_system):
8319 Source strings now treated as const.
8320 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
8321 modify Lisp string contents.
8322 * coding.h (decode_coding, encode_coding, detect_coding,
8323 detect_eol): Declarations updated.
8324 * composite.c (compose_chars_in_text): Treat Lisp string contents
8325 as const.
8326 * dispnew.c (safe_bcopy): Source pointer now points to const.
8327 * lisp.h (STRING_COPYIN): New macro.
8328 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
8329 (internal_with_output_to_temp_buffer): Declarations updated.
8330 * print.c (temp_output_buffer_setup):
8331 (internal_with_output_to_temp_buffer): Buffer name argument is now
8332 pointer to const.
8333 * sound.c (struct sound_device): Function pointer field "write"
8334 buffer argument now points to const.
8335 (vox_write): Buffer argument points to const.
8336 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
8337 contents as const.
8338 * sysdep.c (emacs_write): Buffer pointer now const.
8339 * term.c (encode_terminal_code): Buffer pointer now const.
8340 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
8341 (x_face_list_fonts, x_update_menu_appearance):
8342 (hash_string_case_insensitive): Treat Lisp string contents as const.
8343
8344 2002-07-19 Juanma Barranquero <lektu@terra.es>
8345
8346 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
8347
8348 * fileio.c (syms_of_fileio): Likewise.
8349 (Ffile_name_as_directory): Fix argument name in docstring.
8350 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
8351
8352 2002-07-18 Richard M. Stallman <rms@gnu.org>
8353
8354 * data.c (Fdefalias): Doc fix.
8355
8356 2002-07-17 Dave Love <fx@gnu.org>
8357
8358 * intervals.h (text_property_stickiness): Use P_.
8359
8360 * ccl.c: Remove `emacs' conditionals.
8361 (ccl_backtrace_table): Fix size spec.
8362 (ccl_driver): Fix type errors.
8363
8364 2002-07-16 Ken Raeburn <raeburn@gnu.org>
8365
8366 * alloc.c (xstrdup, make_string, make_unibyte_string)
8367 (make_multibyte_string, build_string): String pointer args now
8368 point to const.
8369 * charset.c (find_charset_in_text, c_string_width):
8370 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
8371 * fileio.c (report_file_error):
8372 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
8373 (count_combining_before, count_combining_after, insert_1_both):
8374 (insert, insert_and_inherit, insert_string):
8375 (insert_before_markers, insert_before_markers_and_inherit):
8376 * lread.c (intern, oblookup, hash_string):
8377 * minibuf.c (temp_echo_area_glyphs):
8378 * search.c (fast_c_string_match_ignore_case):
8379 * sysdep.c (emacs_open, set_file_times):
8380 * xfaces.c (xstricmp):
8381 * xdisp.c (store_frame_title, string_char_and_length):
8382 (message_dolog, message2, message2_nolog, set_message): Likewise.
8383 (set_message_1): Cast message string argument to const pointer.
8384 * editfns.c (general_insert_function): Insertion function now
8385 takes pointer to const for input data.
8386 * charset.h (find_charset_in_text, c_string_width):
8387 (parse_str_as_multibyte): Declarations updated.
8388 * dispextern.h (xstricmp): Declaration updated.
8389 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
8390 (count_size_as_multibyte, count_combining_before):
8391 (count_combining_after, insert_1, insert_1_both, message_dolog):
8392 (insert, insert_and_inherit, insert_before_markers)
8393 (insert_before_markers_and_inherit, set_message, message2):
8394 (message2_dolog, build_string, make_string, make_unibyte_string):
8395 (make_multibyte_string, intern, oblookup, report_file_error):
8396 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
8397 (emacs_open, xstrdup): Declarations updated.
8398 * systime.h (set_file_times): Declaration updated.
8399
8400 * charset.c (find_charset_in_text, lisp_string_width): Use const
8401 for pointer to lisp string data.
8402 * charset.h (FETCH_STRING_CHAR_ADVANCE):
8403 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
8404 * coding.c (Ffind_coding_systems_region_interval):
8405 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
8406 (Fmake_directory_internal, Fdelete_directory):
8407 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
8408 * fontset.c (font_family_registry, fs_query_fontset):
8409 (list_fontsets):
8410 * frame.c (Fframe_parameter):
8411 * keyboard.c (cmd_error_internal):
8412 * keymap.c (Fdescribe_buffer_bindings):
8413 * lread.c (complete_filename_p, openp):
8414 * minibuf.c (Fminibuffer_complete_word):
8415 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
8416 (face_before_or_after_it_pos, next_element_from_string):
8417 (get_overlay_arrow_glyph_row, display_mode_element):
8418 (decode_mode_spec_coding):
8419 * xterm.c (same_x_server): Likewise.
8420
8421 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
8422 settings of non-existent fields.
8423
8424 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
8425 copy a lisp value.
8426
8427 * lread.c (Fintern_soft): Use string macros instead of
8428 Lisp_String fields.
8429 * keyboard.c (echo_char, parse_modifiers_uncached):
8430 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
8431 * textprop.c (validate_interval_range, interval_of): Likewise.
8432
8433 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
8434
8435 * charset.h (FETCH_STRING_CHAR_ADVANCE)
8436 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
8437 XSTRING()->size_byte.
8438
8439 * lisp.h (SDATA, SREF): Produce rvalue.
8440 (SSET): New macro.
8441 * alloc.c (make_event_array): Use SSET for storing into a string.
8442 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
8443 a string.
8444 * casefiddle.c (casify_object): Use SSET.
8445 * charset.h (FETCH_STRING_CHAR_ADVANCE)
8446 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
8447 address of string contents.
8448 * data.c (Faref): Use SDATA.
8449 (Faset): Use SDATA, SSET.
8450 * dired.c (directory_files_internal): Use SSET.
8451 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
8452 (Fread_file_name): Use SREF, SSET.
8453 * fns.c (concat): Use SSET.
8454 (concat, Fdelete): Use SDATA.
8455 * insdel.c (insert_from_string_1): Use SDATA.
8456 * keyboard.c (Fevent_convert_list): Use SREF.
8457 * lread.c (Fload): Use SDATA, SSET.
8458 * macfns.c (validate_x_resource_name): Use SSET.
8459 * process.c (status_message): Use SSET.
8460 * search.c (wordify): Use SDATA.
8461 (Freplace_match): Use SREF.
8462 * w32fns.c (validate_x_resource_name): Use SSET.
8463 * xfns.c (validate_x_resource_name): Use SSET.
8464 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
8465
8466 2002-07-16 Richard M. Stallman <rms@gnu.org>
8467
8468 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
8469
8470 * xdisp.c (reconsider_clip_changes):
8471 Don't test prevent_redisplay_optimizations_p.
8472 (redisplay_internal): Test prevent_redisplay_optimizations_p
8473 along with clip_changed in some cases.
8474 (try_window_id): Likewise.
8475 (redisplay_window): New local var buffer_unchanged_p.
8476
8477 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
8478
8479 * process.c (create_process): Test USG_SUBTTY_WORKS.
8480 (process_send_signal): Clean up handling of GID.
8481 Detect errors in ioctls meant to set GID.
8482
8483 * window.c (temp_output_buffer_show):
8484 Don't set prevent_redisplay_optimizations_p.
8485
8486 2002-07-15 Juanma Barranquero <lektu@terra.es>
8487
8488 * eval.c (Fdefvaralias): Add docstring argument.
8489
8490 2002-07-15 Ken Raeburn <raeburn@gnu.org>
8491
8492 * lisp.h (STRING_INTERVALS): Produce rvalue.
8493 (STRING_SET_INTERVALS): New macro.
8494 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
8495 * fns.c (Fstring_as_multibyte): Likewise.
8496 * intervals.c (balance_possible_root_interval, delete_interval)
8497 (create_root_interval, copy_intervals_to_string): Likewise.
8498 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
8499 instead of 0.
8500
8501 2002-07-14 Ken Raeburn <raeburn@gnu.org>
8502
8503 * lisp.h (STRING_SET_CHARS): New macro.
8504 (SCHARS, SBYTES): Produce rvalues.
8505 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
8506 * fns.c (concat): Likewise.
8507 * lread.c (read_vector): Likewise.
8508
8509 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
8510 (STRING_SET_UNIBYTE): New macro.
8511 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
8512 length of -1) changed to use STRING_SET_UNIBYTE.
8513 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
8514 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
8515 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
8516 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
8517 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
8518 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
8519 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
8520 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
8521 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
8522 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
8523 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
8524 STRING_BYTES or indirection changed to SCHARS, SBYTES,
8525 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
8526 unchanged for now.
8527
8528 2002-07-13 Kim F. Storm <storm@cua.dk>
8529
8530 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
8531
8532 2002-07-12 Richard M. Stallman <rms@gnu.org>
8533
8534 * fileio.c (Fwrite_region): Doc fix.
8535
8536 * print.c (print_error_message): Don't handle Vsignaling_function here.
8537
8538 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
8539 (command_loop_1): Avoid certain actions after memory-full error.
8540
8541 * eval.c (Fsignal): Don't call cancel_hourglass.
8542 For a memory-full error, don't call Vsignal_hook_function
8543 and don't set Vsignaling_function.
8544
8545 * process.c (process_send_signal): Add abort call.
8546
8547 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
8548
8549 * keymap.c (Fkey_binding): Fix typo.
8550
8551 2002-07-11 Richard M. Stallman <rms@gnu.org>
8552
8553 * alloc.c (Vmemory_full): New variable.
8554 (Vmemory_signal_data): Renamed from memory_signal_data.
8555 Uses changed.
8556 (syms_of_alloc): Defvar them.
8557 (memory_full, buffer_memory_full): Set Vmemory_full.
8558
8559 * lisp.h (Vmemory_full): Add declaration.
8560 (current_column, indented_beyond_p): Change declaration.
8561
8562 * indent.c (last_known_column): Declare as double, not float.
8563 (current_column, current_column_1, string_display_width)
8564 (position_indentation): Return `double'.
8565 (indented_beyond_p): Arg `column' is `double'. Callers changed.
8566
8567 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
8568 (back_to_previous_visible_line_start)
8569 (reseat_at_next_visible_line_start, next_element_from_buffer):
8570 Use `double', not `float', when calling indented_beyond_p.
8571
8572 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
8573
8574 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
8575
8576 2002-07-11 Juanma Barranquero <lektu@terra.es>
8577
8578 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
8579 composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
8580 fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
8581 macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
8582 textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
8583 xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
8584
8585 2002-07-10 Juanma Barranquero <lektu@terra.es>
8586
8587 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
8588 All callers changed.
8589
8590 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
8591
8592 * data.c (Fdefalias): Add an optional `docstring' argument.
8593 (set_internal, Fsetq_default): Use XCAR/XCDR.
8594
8595 * composite.c (HASH_VALUE, HASH_KEY):
8596 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
8597
8598 2002-07-09 Kenichi Handa <handa@etl.go.jp>
8599
8600 * callproc.c (Fcall_process): Fix previous change.
8601
8602 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
8603
8604 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
8605 Add support for hash-tables.
8606 (Ftry_completion): Return t even if the string appears multiple times.
8607
8608 * fns.c (Fnconc): Use XCDR.
8609 (Fprovide): Use CONSP and XCDR.
8610 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
8611 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
8612 (Fmake_hash_table): Accept `:size nil'.
8613 (Fmakehash): Delete: moved to subr.el.
8614 (syms_of_fns): Don't defsubr makehash.
8615
8616 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
8617 (HASH_TABLE_SIZE): Move from fns.c.
8618
8619 2002-07-07 Richard M. Stallman <rms@gnu.org>
8620
8621 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
8622 Instead just return 0 when there is something to be done.
8623 (try_scrolling): If make_cursor_line_fully_visible returns 0,
8624 retry scrolling as if cursor were off the bottom.
8625 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
8626 return CURSOR_MOVEMENT_MUST_SCROLL.
8627 (redisplay_window): If make_cursor_line_fully_visible returns 0,
8628 go to try_to_scroll.
8629
8630 * buffer.c (Fbuffer_local_value): Store current value into its binding
8631 so we get the up-to-date value for the binding that is loaded.
8632
8633 * eval.c (Fdefmacro): Doc fix.
8634
8635 2002-07-05 Dave Love <fx@gnu.org>
8636
8637 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
8638 correctly.
8639
8640 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
8641 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
8642 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
8643 CCL_LookupCharConstTbl.
8644 (syms_of_ccl): Defvar translation-hash-table-vector.
8645
8646 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8647
8648 * xdisp.c: Remove unused variable `face'.
8649
8650 2002-07-04 Juanma Barranquero <lektu@terra.es>
8651
8652 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
8653 obsolescence information.
8654
8655 2002-07-03 Andrew Choi <akochoi@shaw.ca>
8656
8657 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
8658 pattern. Search cache first.
8659 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
8660 for Japanese font.
8661 (XLoadQueryFont): Use it.
8662
8663 2002-07-02 Richard M. Stallman <rms@gnu.org>
8664
8665 * keymap.c (Fdefine_key): Doc fix.
8666
8667 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
8668
8669 2002-07-02 Juanma Barranquero <lektu@terra.es>
8670
8671 * keymap.c (syms_of_keymap): Fix typo.
8672
8673 2002-07-01 Andrew Choi <akochoi@shaw.ca>
8674
8675 * s/darwin.h: Define POSIX_SIGNALS.
8676
8677 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
8678 and FSRefMakePath to convert FSSpec returned with Apple Event to
8679 Posix pathname.
8680 (mac_initialize) [TARGET_API_MAC_CARBON]:
8681 Call init_required_apple_events and disable the `Quit' menu item
8682 provided automatically by the Carbon Toolbox.
8683
8684 2002-07-01 Dave Love <fx@gnu.org>
8685
8686 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8687 for K&R.
8688
8689 * xterm.c: Fix prototype for K&R.
8690
8691 * term.c (costs_set): Declare static, non-initialized for pcc.
8692
8693 2002-07-01 Richard M. Stallman <rms@gnu.org>
8694
8695 * keyboard.c (timer_last_idleness_start_time): New variable.
8696 (timer_start_idle): Set that.
8697 (read_key_sequence): Use that to reset timer_idleness_start_time
8698 to previous value.
8699
8700 * window.c (Frecenter): With arg, set optional_new_start.
8701
8702 * xdisp.c (redisplay_internal): Make optional_new_start really work.
8703
8704 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
8705 buffer for completion.
8706
8707 2002-06-29 Ken Raeburn <raeburn@gnu.org>
8708
8709 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
8710
8711 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8712
8713 * keyboard.c (readable_filtered_events): New function that filters
8714 FOCUS_IN_EVENT depending on parameter.
8715 (readable_events): Calls readable_filtered_events, not filtering
8716 FOCUS_IN_EVENT.
8717 (get_filtered_input_pending): New function, filtering parameter passed
8718 to readable_filtered_events.
8719 (get_input_pending): Calls get_filtered_input_pending, not filtering
8720 FOCUS_IN_EVENT.
8721 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
8722 FOCUS_IN_EVENT.
8723
8724 * xterm.h (struct x_output): Add focus_state.
8725
8726 * xterm.c (x_focus_changed): New function.
8727 (x_detect_focus_change): New function.
8728 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
8729 EnterNotify and LeaveNotify to track X focus changes.
8730
8731 2002-06-28 Andreas Schwab <schwab@suse.de>
8732
8733 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
8734
8735 2002-06-27 Kim F. Storm <storm@cua.dk>
8736
8737 * xdisp.c: (mode_line_string_list, mode_line_string_face)
8738 (mode_line_string_face_prop): New variables.
8739 (store_mode_line_string): New function.
8740 (display_mode_element): Use store_mode_line_string to
8741 add mode-line string elements to mode_line_string_list
8742 when mode_line_string_list is non-nil.
8743 (Fformat_mode_line): Now returns propertized string by
8744 default. New arg NO-PROPS to ignore properties.
8745 (decode_mode_spec): Only add two dashes for %- in propertized
8746 mode-line string.
8747 (syms_of_xdisp): Init and staticpro mode_line_string_list.
8748
8749 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
8750
8751 * minibuf.c (minibuffer_completion_contents): Add return type.
8752
8753 2002-06-27 Juanma Barranquero <lektu@terra.es>
8754
8755 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
8756
8757 2002-06-26 Juanma Barranquero <lektu@terra.es>
8758
8759 * fileio.c (read_file_name_cleanup): Add missing return.
8760
8761 2002-06-26 Richard M. Stallman <rms@gnu.org>
8762
8763 * window.c (Frecenter): Don't set force_start flag.
8764
8765 * minibuf.c (do_completion, Fminibuffer_complete_word)
8766 (Fminibuffer_completion_help): Complete just the text before point.
8767 (minibuffer_completion_contents): New function.
8768
8769 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
8770
8771 * frame.c (frames_bury_buffer): Function deleted.
8772
8773 2002-06-25 Miles Bader <miles@gnu.org>
8774
8775 * callint.c (Fcall_interactively): When checking to see if doprnt hit
8776 the end of callint_message, allow for a terminating '\0'.
8777
8778 2002-06-24 Juanma Barranquero <lektu@terra.es>
8779
8780 * w32select.c: Include composite.h
8781
8782 * w16select.c: Likewise.
8783
8784 2002-06-24 Kenichi Handa <handa@etl.go.jp>
8785
8786 * callproc.c (Fcall_process): If code detection is necessary,
8787 call detect_coding directly here.
8788
8789 * coding.c (detect_eol): Preserve coding->cmp_data.
8790
8791 * w16select.c (Fw16_get_clipboard_data):
8792 * w32fns.c (w32_to_x_font):
8793 * w32select.c (Fw32_get_clipboard_data):
8794 * xselect.c (selection_data_to_lisp_data):
8795 * xterm.c (XTread_socket): Disable composition handling.
8796
8797 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
8798
8799 * print.c (temp_output_buffer_setup): Kill all local variables.
8800
8801 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
8802
8803 * lread.c (Fread): Remove redundant and imprecise declaration.
8804
8805 * xfns.c (check_x_display_info): Use check_x_frame.
8806
8807 * .gdbinit (xprintsym): Use the new `xname' field.
8808 (xsymbol): Use it.
8809
8810 2002-06-22 Jason Rumney <jasonr@gnu.org>
8811
8812 * w32fns.c (file_dialog_callback): New function.
8813 (Fx_file_dialog): Allow selecting directories as well as files.
8814
8815 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8816
8817 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
8818 OpenBSD. Add support for mipseb-*-netbsd* machines.
8819
8820 2002-06-17 Andrew Choi <akochoi@shaw.ca>
8821
8822 * macterm.c (mac_scroll_area): Set foreground and backcolor to
8823 black and white before scrolling. Restore frame background and
8824 foreground color after scrolling.
8825 (do_window_update): Call XClearWindow before calling expose_frame.
8826 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
8827 FRAME_FOREGROUND_PIXEL of frame.
8828
8829 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
8830 test Mac command key as <ALT> key.
8831
8832 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
8833
8834 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
8835
8836 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
8837 Lookup keys in function-key-map immediately so that key-translation-map
8838 can be applied earlier.
8839 Remove function_key_possible and key_translation_possible, replaced
8840 by checking `keytran_start < t'.
8841
8842 * .gdbinit (xsymbol): Use the new `xname' field.
8843
8844 2002-06-17 Andrew Choi <akochoi@shaw.ca>
8845
8846 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
8847 test Mac command key as <ALT> key.
8848
8849 * mac.c (do_applescript): Call initialize_applescript if necessary
8850 when first called. Dispose of result_desc only when there is no error.
8851 (Fdo_applescript): Use %d format specifier instead of %ld.
8852
8853 2002-06-16 Andrew Choi <akochoi@shaw.ca>
8854
8855 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
8856 of FrontWindow for cases keyDown and autoKey.
8857
8858 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
8859 Vdefault_fontset to Monaco with mac-roman coding.
8860
8861 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
8862 init_process before and after inclusion of Carbon/Carbon.h, resp.
8863
8864 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
8865 cursor_gc.
8866 (add_font_name_table_entry): New function.
8867 (init_font_name_table): Use add_font_name_table_entry; add italic,
8868 bold, and bold-italic entries for truetype fonts.
8869
8870 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
8871 for Mac too.
8872 (try_font_list) [MAC_OS]: If no font matches given registry, try
8873 fonts with any registry matching face_family.
8874 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
8875
8876 * s/darwin.h: If autoconf detects the Ncurses library, define
8877 LIBS_TERMCAP to -lncurses to use it.
8878
8879 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
8880
8881 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
8882
8883 2002-06-15 Richard M. Stallman <rms@gnu.org>
8884
8885 * window.c (Fset_window_configuration): Explicitly preserve
8886 the point value that new_current_buffer had at the start.
8887
8888 2002-06-14 Juanma Barranquero <lektu@terra.es>
8889
8890 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
8891 Fix typos.
8892
8893 2002-06-14 Kim F. Storm <storm@cua.dk>
8894
8895 * insdel.c (insert_1_both, insert_from_string_1)
8896 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
8897 insert happened in the end_unchanged region. Otherwise, the
8898 redisplay may be confused and duplicate the last line in the
8899 buffer [seen after save-buffer when require-final-newline==t].
8900
8901 2002-06-13 Jason Rumney <jasonr@gnu.org>
8902
8903 * w32.c (init_environment): Remove EMACSLOCKDIR.
8904 (stat): Swap _S_IFDIR and _S_IFREG.
8905
8906 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8907
8908 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
8909 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
8910 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
8911 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
8912 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
8913 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
8914 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
8915 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
8916 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
8917 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
8918 SELECTION_REQUEST_EVENT, selection_clear_event to
8919 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
8920 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
8921 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
8922 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
8923 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
8924 no_event to NO_EVENT.
8925
8926 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8927
8928 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
8929
8930 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
8931
8932 * intervals.c (textget): Don't forget to `return'.
8933 (lookup_char_property): Use XCAR/XCDR.
8934
8935 2002-06-12 Juanma Barranquero <lektu@terra.es>
8936
8937 * xdisp.c (Fformat_mode_line): Fix typo.
8938
8939 2002-06-12 Kim F. Storm <storm@cua.dk>
8940
8941 * xdisp.c (Fformat_mode_line): New function.
8942 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
8943 (store_frame_title_char, store_frame_title): Use unconditionally.
8944 (init_xdisp): Defsubr Fformat_mode_line.
8945 Initialize frame_title_buf etc. unconditionally.
8946
8947 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
8948
8949 * keyboard.c (read_key_sequence):
8950 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
8951 things through those maps after downcasing events.
8952 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
8953 applies after function-key-map.
8954 Make sure that keytran can be done in the middle in the sequence.
8955 Be careful not to throw away events past the one we downcase.
8956
8957 * lread.c (read_integer): Remove unused var `tem'.
8958 (read1): Fix int/Lisp_Object mixup.
8959
8960 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
8961
8962 2002-06-11 Richard M. Stallman <rms@gnu.org>
8963
8964 * keyboard.c (readable_events): Ignore any number of
8965 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
8966
8967 2002-06-09 Miles Bader <miles@gnu.org>
8968
8969 * xfaces.c (Ftty_supports_face_attributes_p): New function.
8970 (parse_rgb_list, tty_lookup_color): New functions.
8971 (tty_defined_color): Use `tty_lookup_color' to do all the work.
8972 (color_distance, Fcolor_distance): New functions.
8973 (TTY_SAME_COLOR_THRESHOLD): New macro.
8974 (Qtty_color_standard_values): New variable.
8975 (syms_of_xfaces): Initialize new vars & functions.
8976
8977 2002-06-08 Colin Walters <walters@verbum.org>
8978
8979 * textprop.c (Vchar_property_alias_alist): New variable.
8980 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
8981
8982 * intervals.c (lookup_char_property): New function for looking up
8983 overlay and text properties, created from textget.
8984 (textget): Use it.
8985
8986 * intervals.h (lookup_char_property): Declare.
8987 (Vchar_property_alias_alist): Declare.
8988
8989 * buffer.c (Foverlay_get): Use lookup_char_property.
8990
8991 2002-06-07 Sam Steingold <sds@gnu.org>
8992
8993 * xselect.c (lisp_data_to_selection_data): Fix last change:
8994 *data_ret is not a Lisp string, while unibyte_string is.
8995
8996 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
8997
8998 * xselect.c (lisp_data_to_selection_data): Fix last change:
8999 set size_ret.
9000
9001 2002-06-07 Andreas Schwab <schwab@suse.de>
9002
9003 * m/amdx86-64.h: New file.
9004
9005 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
9006
9007 * fns.c (Fstring_make_unibyte): Doc fix.
9008
9009 * xselect.c (lisp_data_to_selection_data): If the requested type
9010 is STRING, call string_make_unibyte to encode the selected text
9011 as a string.
9012
9013 * window.c (Fset_window_hscroll): Doc fix.
9014
9015 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9016
9017 * fileio.c (choose_write_coding_system):
9018 Call select-safe-coding-system properly.
9019
9020 2002-06-03 Richard M. Stallman <rms@gnu.org>
9021
9022 * xdisp.c (message_with_string): Error if STRING is not a string.
9023
9024 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
9025
9026 * fileio.c (choose_write_coding_system): Pass FILE arg to
9027 Vselect_safe_coding_system_function.
9028
9029 2002-06-03 Ken Raeburn <raeburn@gnu.org>
9030
9031 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
9032
9033 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
9034
9035 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
9036 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
9037 * keymap.c (describe_command): Likewise.
9038 * minibuf.c (read_minibuf): Likewise.
9039
9040 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
9041 Cast `current_column' return value to int.
9042 (back_to_previous_visible_line_start)
9043 (reseat_at_next_visible_line_start, next_element_from_buffer):
9044 Cast `indented_beyond_p' 3rd arg to float.
9045
9046 * indent.c (last_known_column): Now a float.
9047 (current_column_1, position_indentation, current_column)
9048 (string_display_width): Return float.
9049 (Fcurrent_column): Cast `current_column' return value to int.
9050 (Fcurrent_indentation): Cast `position_indentation' retval to int.
9051 (indented_beyond_p): Third arg now a float.
9052 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
9053
9054 * lisp.h (current_column): Now returns float.
9055 (indented_beyond_p): 3rd arg now a float.
9056
9057 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
9058
9059 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
9060 is Qcompound_text_with_extensions.
9061
9062 * xselect.c (lisp_data_to_selection_data): Always set selection
9063 type as string if x_encode_text returns streingp non-NULL.
9064
9065 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
9066
9067 2002-05-30 Richard M. Stallman <rms@gnu.org>
9068
9069 * window.c (Fset_window_configuration): Correct the handling
9070 of point in current buffer, to work with multiple windows.
9071
9072 2002-05-29 Colin Walters <walters@verbum.org>
9073
9074 * lread.c (Fread_from_string): Don't depend on order of evaluation
9075 for C function parameters.
9076
9077 2002-05-28 Richard M. Stallman <rms@gnu.org>
9078
9079 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
9080 way for blinked-off state and for a nonselected window.
9081
9082 * window.c (window_scroll_pixel_based): Don't call Fbolp;
9083 instead, see if the new start pos is at beginning of line.
9084
9085 * fileio.c (Fwrite_region): If START is a string, don't
9086 make any annotations.
9087
9088 * eval.c (syms_of_eval): Doc fix.
9089
9090 2002-05-28 Colin Walters <walters@debian.org>
9091
9092 * emacs.c (USAGE1): Add --no-splash.
9093 (standard_args): Ditto.
9094
9095 2002-05-28 Colin Walters <walters@gnu.org>
9096
9097 * lread.c (readchar_count): New variable.
9098 (readchar): Increment it.
9099 (unreadchar): Decrement it.
9100 (read_multibyte): Decrement it.
9101 (Vread_with_symbol_positions): New variable.
9102 (Vread_symbol_positions_list): New variable.
9103 (read_internal_start): New function, created from Fread and
9104 Fread_from_string. Handle Vread_symbol_positions_list and
9105 Vread_with_symbol_positions.
9106 (readevalloop, Fread, Fread_from_string): Use it.
9107 (read1): Use readchar_count to add symbol positions to
9108 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
9109 (syms_of_lread): DEFVAR_LISP and initialize them.
9110
9111 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
9112 (substitute_object_recurse, substitute_object_in_subtree)
9113 (substitute_in_interval): Prototype.
9114 (read_multibyte): Return c if it's less than zero.
9115
9116 2002-05-28 Kim F. Storm <storm@cua.dk>
9117
9118 * fileio.c (Fread_file_name_internal): Added brute-force
9119 speed up for using predicate file-directory-p.
9120
9121 2002-05-28 Kim F. Storm <storm@cua.dk>
9122
9123 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
9124 New variables.
9125 (syms_of_fileio): DEFVAR_LISP them.
9126 (read_file_name_cleanup): New unwind function.
9127 (Fread_file_name_internal): Only return completions satifying
9128 Vread_file_name_predicate. Temporarily unwind protect and rebind
9129 default-directory while checking completions against the predicate.
9130 (Fread_file_name): Added PREDICATE argument. Specbind it to
9131 Vread_file_name_predicate during completion.
9132 Call Vread_file_name_function to read the file name if non-nil.
9133
9134 * lisp.h (Fread_file_name): Now has 6 args.
9135
9136 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
9137 predicate for Fread_file_name when reading directory name.
9138 Supply Qnil for predicate in other calls to Fread_file_name.
9139
9140 2002-05-26 Miles Bader <miles@gnu.org>
9141
9142 * term.c (tty_capable_p): New function.
9143 * dispextern.h (tty_capable_p): New function declaration.
9144 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
9145 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
9146
9147 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
9148
9149 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
9150 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
9151 (Vwrite_region_annotate_functions): Docstring fix.
9152
9153 2002-05-23 Kim F. Storm <storm@cua.dk>
9154
9155 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
9156 phys_cursor's hpos is overwritten. This is still not completely
9157 correct, as it doesn't really make sense to use hpos at all to
9158 get the cursor glyph (as that is relative to the width of the
9159 characters on the line, which may have changed during the update).
9160
9161 2002-05-22 Jason Rumney <jasonr@gnu.org>
9162
9163 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
9164 Lisp_Object.
9165 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
9166 Use modified enumfont_t struct.
9167
9168 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
9169
9170 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
9171 Handle the `hbar' cursor type.
9172 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
9173
9174 * w32fns.c (Qhbar): New variable.
9175 (x_specified_cursor_type): Use it.
9176
9177 2002-05-21 Ken Raeburn <raeburn@gnu.org>
9178
9179 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
9180 now, when the address is needed.
9181
9182 2002-05-21 Colin Walters <walters@gnu.org>
9183
9184 * Makefile.in (shortlisp): Add font-core.el.
9185
9186 2002-05-20 Richard M. Stallman <rms@gnu.org>
9187
9188 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9189
9190 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
9191 equivalent key bindings here.
9192
9193 2002-05-20 Ken Raeburn <raeburn@gnu.org>
9194
9195 Change symbol structure to contain a lisp object for the symbol
9196 name:
9197 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
9198 object field named "xname".
9199 (SYMBOL_NAME): New macro.
9200 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
9201 name field.
9202 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
9203 (mark_object, gc_sweep): Use symbol xname field and XSTRING
9204 instead of name field.
9205 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
9206 SYMBOL_NAME instead of XSYMBOL and name field.
9207 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
9208 instead of XSYMBOL and name field.
9209 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
9210 and SYMBOL_NAME instead of XSYMBOL and name field.
9211 * coding.c (Fread_coding_system, code_convert_region1)
9212 (code_convert_string1, code_convert_string_norecord)
9213 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
9214 XSYMBOL and name field.
9215 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
9216 (Fmake_variable_buffer_local, Fmake_local_variable)
9217 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
9218 of XSYMBOL and name field.
9219 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
9220 XSYMBOL and name field.
9221 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
9222 instead of XSYMBOL and name field.
9223 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
9224 XSYMBOL and name field.
9225 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
9226 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9227 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
9228 instead of XSYMBOL and name field.
9229 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
9230 (parse_modifiers, apply_modifiers, Fevent_convert_list)
9231 (parse_solitary_modifier, Fexecute_extended_command):
9232 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9233 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
9234 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
9235 of XSYMBOL and name field.
9236 (describe_command, describe_translation): Use SYMBOL_NAME and
9237 assignment instead of XSYMBOL and name field and XSETSTRING.
9238 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
9239 instead of XSYMBOL and name field.
9240 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
9241 name field and XSETSTRING.
9242 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9243 of XSYMBOL and name field.
9244 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
9245 assignment instead of XSYMBOL and name field and XSETSTRING.
9246 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
9247 XSTRING instead of XSYMBOL and name field.
9248 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
9249 and XSTRING instead of XSYMBOL and name field.
9250 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
9251 and XSTRING instead of XSYMBOL and name field.
9252 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
9253 XSTRING instead of XSYMBOL and name field.
9254 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9255 of XSYMBOL and name field.
9256 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
9257 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9258
9259 2002-05-19 Ken Raeburn <raeburn@gnu.org>
9260
9261 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
9262 and XCDR real rvalues in most configurations.
9263
9264 * buffer.c (fix_overlays_in_range, fix_overlays_before):
9265 Don't take the address of the cdr part of a cons cell; instead, track
9266 the parent cell and call XSETCDR, or set the variable for the head
9267 of the list if we haven't started down the list yet.
9268
9269 2002-05-19 Richard M. Stallman <rms@gnu.org>
9270
9271 * doc.c (reread_doc_file): Don't ask for confirmation.
9272
9273 2002-05-18 Jason Rumney <jasonr@gnu.org>
9274
9275 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
9276 (xbm_load_image): Use it.
9277 (xbm_load): Ditto.
9278 (xbm_read_bitmap_data): Reverted to xfns.c version.
9279 From David Ponce <david@dponce.com>.
9280
9281 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
9282
9283 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
9284 2.02 and later.
9285
9286 2002-05-16 Juanma Barranquero <lektu@terra.es>
9287
9288 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
9289
9290 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
9291
9292 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
9293 meaningful test.
9294 (read_char_minibuf_menu_prompt): Fix typo.
9295
9296 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9297
9298 * eval.c (Fcommandp): Doc fix.
9299
9300 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
9301
9302 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
9303 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
9304 (Fset_keymap_parent): Gcpro a bit more.
9305 (access_keymap): Gcpro around meta_map call and around the main loop.
9306 (get_keyelt): Gcpro when following indirect references.
9307 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
9308 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
9309 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
9310 Remove useless ad-hoc remap code.
9311
9312 2002-05-13 Richard M. Stallman <rms@gnu.org>
9313
9314 * search.c (search_buffer): Give up boyer moore search if inverse
9315 translation change charset_base.
9316
9317 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
9318
9319 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
9320 characters is carried over from the previous block of text, adjust
9321 coding->produced to account for the extra character.
9322
9323 2002-05-11 Andreas Schwab <schwab@suse.de>
9324
9325 * coding.c (intersection): Keep the elements of the returned list
9326 in the same order as in the first list.
9327
9328 2002-05-11 Kim F. Storm <storm@cua.dk>
9329
9330 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
9331 only update cmm_size if realloc actually succeeds.
9332 Testing with initial size of 2 elements revealed that using
9333 realloc on GNU/Linux would cause a random trap in xmalloc
9334 later on, so I rewrote the code to use malloc/bcopy/free instead
9335 of realloc.
9336
9337 2002-05-10 Jason Rumney <jasonr@gnu.org>
9338
9339 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
9340
9341 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
9342
9343 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
9344 parens, to ensure correct evaluation order.
9345
9346 2002-05-10 Kim F. Storm <storm@cua.dk>
9347
9348 * keymap.c (Vemulation_mode_map_alists): New variable.
9349 (syms_of_keymap): DEFVAR_LISP it.
9350 (current_minor_maps): Process keymap alists in that list before
9351 minor-mode-overriding-map-alist and minor-mode-map-alist.
9352
9353 2002-05-09 Richard M. Stallman <rms@gnu.org>
9354
9355 * search.c (Freplace_match): Doc fix.
9356
9357 2002-05-09 Kim F. Storm <storm@cua.dk>
9358
9359 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9360 Enlarge cursor rectangle drawn around image with non-zero relief.
9361
9362 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
9363 Enlarge cursor rectangle drawn around image with non-zero relief.
9364
9365 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9366 Enlarge cursor rectangle drawn around image with non-zero relief.
9367
9368 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
9369
9370 * xselect.c (lisp_data_to_selection_data): Don't set selection
9371 type if comes from the Lisp object's car. If the selection
9372 contains a pure ASCII text, always return QSTRING as its type.
9373
9374 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9375
9376 * mac.c (mac-cut-function): Doc fix.
9377
9378 2002-05-05 Richard M. Stallman <rms@gnu.org>
9379
9380 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
9381
9382 2002-05-04 Jason Rumney <jasonr@gnu.org>
9383
9384 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
9385 for event-click-count.
9386
9387 * process.c (init_process): Only add server subfeature if we can
9388 use non-blocking I/O.
9389
9390 2002-05-04 Andrew Choi <akochoi@shaw.ca>
9391
9392 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
9393 repeatedly.
9394
9395 2002-05-03 Jason Rumney <jasonr@gnu.org>
9396
9397 * process.c (Fmake_network_process): Only support server sockets
9398 when we can make them non-blocking.
9399
9400 * s/ms-w32.h (HAVE_SELECT): Define.
9401
9402 * w32.h (FILE_NDELAY): New flag.
9403
9404 * w32.c (sys_getpeername, fcntl): New functions.
9405 (_sys_read_ahead): Temporarily block on non-blocking sockets.
9406
9407 * w32proc.c: include sys/file.h.
9408
9409 2002-05-03 Colin Walters <walters@verbum.org>
9410
9411 * callproc.c (Vgame_score_directory): Renamed to
9412 Vshared_game_score_directory.
9413
9414 2002-04-30 Richard M. Stallman <rms@gnu.org>
9415
9416 * s/gnu.h [emacs]: Include stdio.h.
9417 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
9418
9419 * eval.c (do_autoload): Error if called while preparing to dump.
9420
9421 * fns.c (Frequire): Error if need to load while preparing to dump.
9422
9423 2002-04-28 Colin Walters <walters@verbum.org>
9424
9425 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
9426 Default to "~/.emacs.d/games".
9427
9428 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
9429
9430 * lread.c (openp): Change arg exec_only to predicate.
9431 (build_load_history): Use XCAR/XCDR.
9432 (Flocate_file_internal): New fun.
9433 (syms_of_lread): Defsubr it.
9434 (Fload): Update call to openp.
9435
9436 * lisp.h (openp): Update prototype.
9437
9438 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
9439 * w32proc.c (sys_spawnve):
9440 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
9441 * w32.c (check_windows_init_file):
9442 * sound.c (Fplay_sound_internal):
9443 * process.c (Fstart_process):
9444 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
9445 * mac.c (run_mac_command):
9446 * emacs.c (init_cmdargs):
9447 * callproc.c (Fcall_process): Update call to openp.
9448
9449 * textprop.c (remove_properties): Don't use XCAR without CONSP.
9450
9451 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
9452
9453 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9454
9455 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
9456 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
9457
9458 2002-04-28 Richard M. Stallman <rms@gnu.org>
9459
9460 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
9461
9462 * eval.c (Fcommandp): New arg for_call_interactively.
9463 * lisp.h (Fcommandp): Declare new arg.
9464
9465 2002-04-28 Jason Rumney <jasonr@gnu.org>
9466
9467 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
9468
9469 * w32.c (stat, fstat): Use file index information to generate
9470 inodes for directories where available.
9471
9472 2002-04-26 Andrew Choi <akochoi@shaw.ca>
9473
9474 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
9475 [HAVE_CARBON]: Include Mac object files.
9476
9477 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
9478 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
9479 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
9480 MAC_OSX, and MAC_OS instead of macintosh.
9481
9482 * editfns.c [MAC_OS8]: Include stdio.h.
9483
9484 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
9485
9486 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
9487 Apple Monaco.
9488
9489 * process.c: Declare QCfamily and QCfilter as extern.
9490 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
9491 calling select.
9492
9493 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
9494
9495 * tparam.c [MAC_OSX]: Don't define BC and UP.
9496
9497 * config.in [HAVE_CARBON]: Add.
9498
9499 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
9500 Move here from mac/src and mac/inc.
9501
9502 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
9503
9504 2002-04-26 Gerd Moellmann <gerd@gnu.org>
9505
9506 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
9507 Compute phys_cursor_width from the x position returned
9508 by x_draw_glyhs, which is cheaper.
9509 (x_display_and_set_cursor): Compute the buffer-local value
9510 of `cursor-in-non-selected-windows' only when needed.
9511
9512 2002-04-25 Gerd Moellmann <gerd@gnu.org>
9513
9514 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
9515 cursor on a stretch glyph has a width that depends on
9516 x_stretch_cursor_p.
9517
9518 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9519
9520 * abbrev.c (abbrev-start-location): Doc fix.
9521
9522 * indent.c (Fvertical_motion): Fix last change.
9523
9524 2002-04-25 Gerd Moellmann <gerd@gnu.org>
9525
9526 * indent.c (Fvertical_motion): Move to the start of the line
9527 containing PT before moving up or down.
9528
9529 2002-04-24 Gerd Moellmann <gerd@gnu.org>
9530
9531 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
9532 case of writing a whole row, more or less analogous to the case of
9533 writing only parts of a row.
9534
9535 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
9536 0 for NO_CURSOR.
9537
9538 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
9539
9540 2002-04-23 Colin Walters <walters@verbum.org>
9541
9542 * buffer.c (syms_of_buffer): Doc fix.
9543
9544 2002-04-23 Gerd Moellmann <gerd@gnu.org>
9545
9546 * xterm.c (notice_overwritten_cursor): Handle the special case
9547 of the cursor being in the first blank non-text line at the
9548 end of a window.
9549
9550 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9551 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9552 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
9553 bar cursors only, to make phys_cursor_width contain what its name
9554 suggests.
9555 (notice_overwritten_cursor): Consider the cursor image erased if
9556 the output area intersects the cursor image in y-direction.
9557
9558 2002-04-23 Simon Marshall <simon@gnu.org>
9559
9560 * xfns.c (x_set_mouse_color): Change default for cross_cursor
9561 to XC_hand2.
9562
9563 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9564
9565 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
9566
9567 2002-04-22 Kim F. Storm <storm@cua.dk>
9568
9569 * textprop.c (remove_properties): Fixed trap for malformed plist.
9570
9571 2002-04-22 Richard M. Stallman <rms@gnu.org>
9572
9573 * cmds.c (Fend_of_line): Handle intangible text in mid line.
9574
9575 * window.c (make_window): Initialize height_fixed_p,
9576 last_cursor_off_p, and p->cursor_off_p slots.
9577
9578 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9579
9580 * fns.c (use-dialog-box): Doc fix.
9581
9582 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9583
9584 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
9585 variables `row', `i' and `area'.
9586 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
9587 toolkit library.
9588
9589 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
9590
9591 * xfaces.c (clear_font_table): Don't free the default font of
9592 a frame even if it's on another display.
9593 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
9594 that could be Qt.
9595
9596 2002-04-19 Juanma Barranquero <lektu@terra.es>
9597
9598 * indent.c (Fmove_to_column): Remove unused local variable
9599 `next_boundary_byte'.
9600 (current_column_1): Likewise.
9601
9602 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9603
9604 * msdos.c (Qhbar): New variable.
9605 (syms_of_msdos): Intern and staticpro it.
9606 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
9607 cursor type.
9608
9609 2002-04-19 Dave Lambert <dlambert@acm.org>
9610
9611 Theses change implement an underscore-like (`hbar') cursor.
9612
9613 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
9614
9615 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
9616 Handle the `hbar' cursor type.
9617 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
9618
9619 * xfns.c (Qhbar): New variable.
9620 (syms_of_xfns): Intern and staticpro it.
9621 (x_specified_cursor_type): Handle `hbar' cursor.
9622
9623 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
9624 not defined.
9625
9626 2002-04-18 Richard M. Stallman <rms@gnu.org>
9627
9628 * textprop.c (remove_properties): New arg LIST allows scanning
9629 either a list or a plist.
9630 (interval_has_some_properties_list): New function, like
9631 interval_has_some_properties using list instead of plist.
9632 All callers changed.
9633 (Fremove_list_of_text_properties): New function.
9634 (syms_of_textprop): Defsubr it.
9635
9636 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
9637
9638 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
9639
9640 2002-04-17 Juanma Barranquero <lektu@terra.es>
9641
9642 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
9643
9644 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
9645
9646 * window.c (coordinates_in_window): Don't report on margin area
9647 if its width is zero.
9648
9649 2002-04-16 Jason Rumney <jasonr@gnu.org>
9650
9651 * w32fns.c (Fx_file_dialog): Decode file name before using.
9652
9653 * w32term.c (construct_drag_n_drop): Likewise.
9654
9655 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
9656
9657 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
9658 store load-history in pure space.
9659
9660 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
9661
9662 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
9663
9664 * xterm.c (Qlatin_1, Qutf_8): New vars.
9665 (syms_of_xterm): Initialize them.
9666 (XTread_socket): Eliminate incorrect optimization that tried to avoid
9667 decoding the output of X*LookupString.
9668 Always use latin-1 to decode the output of XLookupString.
9669 Try Xutf8LookupString if XmbLookupString failed.
9670
9671 * region-cache.c (new_region_cache): Use BEG.
9672
9673 2002-04-16 Gerd Moellmann <gerd@gnu.org>
9674
9675 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
9676 configuration files.
9677 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
9678 returns 0.
9679
9680 2002-04-15 Andreas Schwab <schwab@suse.de>
9681
9682 * config.in: Regenerated using autoheader.
9683
9684 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
9685 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
9686 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
9687 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
9688 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
9689 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
9690 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
9691 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
9692 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
9693 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
9694 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
9695 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
9696 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
9697 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
9698 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
9699 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
9700 STACK_DIRECTION, now set by autoconf.
9701
9702 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9703
9704 * dispnew.c (marginal_area_string): Sort arguments.
9705
9706 * dispextern.h (marginal_area_string): Add prototype.
9707
9708 2002-04-13 Richard M. Stallman <rms@gnu.org>
9709
9710 * fileio.c (Finsert_file_contents):
9711 Don't call temp_output_buffer_setup--do just part, by hand.
9712
9713 * coding.c (run_pre_post_conversion_on_str):
9714 Don't call temp_output_buffer_setup--do just part, by hand.
9715
9716 * keyboard.c (command_loop_1): Don't call start_hourglass
9717 or cancel_hourglass when executing a macro.
9718
9719 * marker.c (count_markers): New function.
9720
9721 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
9722 grow without limit. Move recently used elements to the front.
9723
9724 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9725
9726 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
9727
9728 2002-04-12 Gerd Moellmann <gerd@gnu.org>
9729
9730 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
9731 rows marginal areas.
9732 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
9733 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
9734
9735 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
9736
9737 2002-04-12 Dave Love <fx@gnu.org>
9738
9739 * dispnew.c (marginal_area_string): New.
9740
9741 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
9742 (Qleft_margin, Qright_margin): Declare.
9743 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
9744
9745 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
9746 note_mode_line_highlight and extended.
9747
9748 * keyboard.c (Qleft_margin, Qright_margin): Declare.
9749 (make_lispy_event): Deal with mouse events in margins.
9750
9751 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
9752
9753 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
9754
9755 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
9756 than deactivating the mark if tmm is set to `lambda'.
9757 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
9758 Use a single event for HELP_EVENT.
9759 (Fexecute_extended_command): Save last_point_position.
9760
9761 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9762
9763 * lisp.h (Fpropertize): Add prototype.
9764
9765 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
9766
9767 2002-04-10 Colin Walters <walters@verbum.org>
9768
9769 * config.in: Add HAVE_SHARED_GAME_DIR.
9770
9771 * callproc.c: (Vgame_score_directory): New variable.
9772 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
9773
9774 2002-04-10 Richard M. Stallman <rms@gnu.org>
9775
9776 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
9777
9778 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
9779
9780 * minibuf.c (read_minibuf): Use empty_string.
9781 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
9782 Short-circuit the search as soon as it "failed".
9783 (Fall_completions): Allow lambda forms and lists of strings for alist.
9784 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
9785 when require_match is nil.
9786 (Ftest_completion): Rename from `test_completion' and export to elisp.
9787 Call the predicate also when alist is a list.
9788 Obey Vcompletion_regexp_list.
9789 (do_completion, Fminibuffer_complete_and_exit): Use it.
9790 (Fassoc_string): Rename from `assoc_for_completion'.
9791 Allow list of strings as well and export to elisp.
9792
9793 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
9794
9795 * puresize.h (BASE_PURESIZE): Increase to 900KB.
9796
9797 2002-04-08 Juanma Barranquero <lektu@terra.es>
9798
9799 * w32.c (sys_accept): Don't hide variable `s'.
9800
9801 2002-04-05 Gerd Moellmann <gerd@gnu.org>
9802
9803 * callint.c (Fcall_interactively): Use INTEGERP instead of
9804 NUMBERP for checking Vhistory_length.
9805
9806 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9807
9808 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
9809 Doc fix to reflect it.
9810
9811 2002-04-04 Richard M. Stallman <rms@gnu.org>
9812
9813 * xdisp.c (display_mode_element): New arg RISKY.
9814 Disregard text props found or specified within a variable
9815 that isn't marked risky-local-variable.
9816 (Qrisky_local_variable): New variable.
9817 (syms_of_xdisp): Init and staticpro it.
9818
9819 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
9820
9821 * undo.c (record_point): New fun.
9822 (record_delete, record_insert): Use it.
9823
9824 2002-04-03 Juanma Barranquero <lektu@terra.es>
9825
9826 * doc.c (Fdocumentation): Add missing parentheses.
9827 (Fdocumentation_property): Likewise.
9828
9829 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
9830
9831 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
9832 data is 0, just return nil.
9833
9834 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
9835
9836 * msdos.c (syms_of_msdos): Fix last change with
9837 mouse_autoselect_window.
9838
9839 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9840
9841 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
9842 mouse_autoselect_window.
9843
9844 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
9845
9846 * keyboard.c (make_lispy_event): Handle unknown keysyms together
9847 with system-specific keysyms. Use it also for unknown function keys.
9848
9849 * doc.c (reread_doc_file): Return whether reload was attempted.
9850 (Fdocumentation, Fdocumentation_property): Don't try to reload
9851 if the doc is 0 and only ask once.
9852
9853 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
9854
9855 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
9856
9857 * keyboard.c (read_char): If the event was Qselect_window,
9858 restore timer_idleness_start_time to its previous value.
9859
9860 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
9861
9862 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
9863
9864 * region-cache.c (new_region_cache): Use BEG.
9865
9866 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
9867 Use BEG and BEG_BYTE.
9868
9869 * doc.c (get_doc_string): Return nil if the location is wrong.
9870 (reread_doc_file): New fun.
9871 (Fdocumentation, Fdocumentation_property):
9872 Call it if get_doc_string fails.
9873 (Fsnarf_documentation): Make it work for a dumped Emacs.
9874
9875 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
9876 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
9877
9878 * charset.c (Fstring): Allow 0 arguments.
9879
9880 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
9881
9882 * process.c (DATAGRAM_CONN_P, list_processes_1)
9883 (Fprocess_datagram_address, Fset_process_datagram_address)
9884 (Fset_network_process_options, server_accept_connection):
9885 Fix some int/Lisp_Object confusions (thank you union types).
9886
9887 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9888
9889 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
9890
9891 * w32term.c: Likewise.
9892 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
9893
9894 * keyboard.c (Qselect_window): New symbol.
9895 (head_table): Use it.
9896 (keys_of_keyboard): Bound select-window event to handle-select-window.
9897 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
9898
9899 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
9900 (last_window): New variable.
9901 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
9902 (note_mouse_movement): Remove reimplemented code in #if 0.
9903 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
9904 Emacs windows.
9905
9906 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
9907
9908 2002-03-31 Gerd Moellmann <gerd@gnu.org>
9909
9910 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
9911 Callers changed.
9912
9913 2002-03-30 Richard M. Stallman <rms@gnu.org>
9914
9915 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
9916 loop whenever it stops making progress.
9917
9918 * widget.c (set_frame_size): Don't call change_frame_size.
9919
9920 2002-03-30 Gerd Moellmann <gerd@gnu.org>
9921
9922 * dispnew.c (direct_output_for_insert):
9923 Call mark_window_display_accurate.
9924
9925 2002-03-29 Jason Rumney <jasonr@gnu.org>
9926
9927 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
9928
9929 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
9930
9931 * Makefile.in (lread.o): Depend on coding.h.
9932
9933 * lread.c (openp, Fload): Encode the file name before passing it
9934 to `stat', `access', and `emacs_open'.
9935 (openp): GCPRO the encoded file name. Don't recompute Lisp
9936 strings unnecessarily.
9937
9938 2002-03-29 Kim F. Storm <storm@cua.dk>
9939
9940 * fns.c (Flax_plist_put): Doc fix.
9941
9942 2002-03-28 Miles Bader <miles@gnu.org>
9943
9944 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
9945
9946 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9947
9948 * process.c (set-network-process-options): Add usage.
9949 (make-network-process): Doc fix.
9950
9951 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
9952
9953 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
9954
9955 2002-03-26 Richard M. Stallman <rms@gnu.org>
9956
9957 * fns.c (Fsubstring_no_properties): New function.
9958 (Flax_plist_get, Flax_plist_put): New functions.
9959 (syms_of_fns): defsubr them.
9960
9961 * xdisp.c (update_menu_bar): Test only update_mode_lines;
9962 don't test or alter w->update_mode_line.
9963
9964 * window.c (Fdisplay_buffer): Doc fix.
9965
9966 2002-03-24 Richard M. Stallman <rms@gnu.org>
9967
9968 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
9969
9970 2002-03-24 Gerd Moellmann <gerd@gnu.org>
9971
9972 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
9973 (Fdefmacro): Handle `(declare ...)'.
9974 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
9975 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
9976
9977 2002-03-24 Jason Rumney <jasonr@gnu.org>
9978
9979 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
9980 (xbm_file_p): Add prototypes.
9981 (xbm_format, xbm_image_p): Sync with xfns.c.
9982 (reflect_byte): New function.
9983 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
9984 (xbm_load_image): Create bitmaps with a depth of 1.
9985 (init_xfns): Enable XBM images.
9986
9987 2002-03-23 Jason Rumney <jasonr@gnu.org>
9988
9989 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
9990 correctly. Do not pass up_modifier to keyboard buffer.
9991
9992 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
9993
9994 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
9995
9996 * Makefile.in (bootstrapclean): New target.
9997 (bootstrap-temacs, bootstrap-doc): Remove.
9998 (bootstrap-emacs): Use a bog-standard `temacs'.
9999 Don't bother to build a DOC file.
10000
10001 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
10002
10003 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
10004 in temacs even if !CANNOT_DUMP.
10005 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
10006
10007 * alloc.c (check_pure_size): Only output a warning.
10008
10009 2002-03-22 Jason Rumney <jasonr@gnu.org>
10010
10011 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
10012 supported.
10013
10014 * w32term.c (zv_bits): Declare as short, for word alignment.
10015 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
10016 (syms_of_w32term): Define x-use-underline-position-properties.
10017
10018 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
10019 (clear_image_cache): Block input, fix logic, clear matrices in
10020 all frames that share this cache.
10021
10022 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
10023
10024 * emacs.c (main): Update the Copyright year in the blurb printed
10025 by "emacs --version".
10026
10027 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
10028
10029 * xterm.c (XTread_socket): If XK_ISO_Lock and
10030 XK_ISO_Last_Group_Lock are defined, handle keysyms between
10031 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
10032
10033 2002-03-21 Kim F. Storm <storm@cua.dk>
10034
10035 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
10036 menu-bar bindings in keymap and local-map properties _are_ used.
10037 But try keymap property first in accordance with 2002-01-03 patch.
10038 Added comment describing why this is not always reliable.
10039 (tool_bar_items): Ditto for tool-bar.
10040
10041 2002-03-21 Jason Rumney <jasonr@gnu.org>
10042
10043 * w32fns.c (x_clear_image_1): Disable color table code.
10044
10045 2002-03-21 Kim F. Storm <storm@cua.dk>
10046
10047 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
10048 removed the wrong version of the DEFUN macro; fixed it.
10049
10050 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
10051 Fmember rather than Fmemq).
10052 (Fprovide): Check that subfeatures is a list.
10053
10054 * process.c (QCfeature, QCdatagram): Removed variables.
10055 (QCtype, Qdatagram): New variables.
10056 (network_process_featurep): Removed function.
10057 (Fmake_network_process): Removed :feature check.
10058 Use :type 'datagram instead of :datagram t to create a datagram
10059 socket. This allows us to add other connection types (e.g. raw
10060 sockets) later in a consistent manner.
10061 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
10062 supported subfeatures for feature make-network-process.
10063 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
10064 Intern and staticpro QCtype and Qdatagram.
10065 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
10066
10067 * xfns.c: (QCtype): Remove duplicate declaration and
10068 initialization (is now declared in process.c).
10069
10070 * w32fns.c: (QCtype): Remove duplicate declaration and
10071 initialization (is now declared in process.c).
10072
10073 2002-03-21 Richard M. Stallman <rms@gnu.org>
10074
10075 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
10076 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
10077 when jumping to `fail' to avoid undoing reg changes in the
10078 last iteration of the loop.
10079 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
10080
10081 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
10082 Depend on process.h.
10083
10084 2002-03-20 Jason Rumney <jasonr@gnu.org>
10085
10086 Most of the following changes are still conditional on HAVE_IMAGES
10087 which is not set by default on Windows.
10088
10089 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
10090
10091 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
10092 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
10093 (four_corners_best, x_clear_image_1, x_clear_image)
10094 (x_alloc_image_color, postprocess_image)
10095 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
10096 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
10097 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
10098
10099 * w32gui.h (struct XImage): Define.
10100
10101 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
10102 extract mouse co-ordinates.
10103
10104 2002-03-20 Jason Rumney <jasonr@gnu.org>
10105
10106 * w32.c (init_winsock): Dynamically load new server and UDP
10107 socket functions.
10108 (socket_to_fd): New function.
10109 (sys_socket): Use it.
10110 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
10111 (sys_recvfrom, sys_sendto): New wrapper functions.
10112
10113 * process.c (QCfamily, QCfilter): Remove duplicate declaration
10114 and initialization.
10115
10116 * makefile.w32-in (LIBS): Remove $(WSOCK32).
10117
10118 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
10119
10120 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
10121 Don't use "sun" as a variable, it's a predefined constant on Sun
10122 machines.
10123
10124 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10125
10126 * bytecode.c (Fbyte_code): Revert last change.
10127
10128 2002-03-19 Kim F. Storm <storm@cua.dk>
10129
10130 * makefile.w32-in (LIBS): Add $(WSOCK32).
10131 From David Ponce <dponce@voila.fr>.
10132
10133 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10134
10135 * process.c (wait_reading_process_input): Move variables `pname'
10136 and `pnamelen' down where they are used.
10137
10138 * bytecode.c (Fbyte_code): Discard unused computed value to
10139 prevent gcc warning.
10140
10141 * lisp.h (Fplist_member): Add prototype.
10142
10143 2002-03-18 Kim F. Storm <storm@cua.dk>
10144
10145 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
10146 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
10147
10148 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10149 Remove explicit GNU_LINUX settings for datagram support.
10150
10151 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10152
10153 * process.c (Fmake_network_process): Remove unused variable `sa'.
10154 Doc fix. Add usage:.
10155 (set_socket_options): Remove unused variables `optnum' and `opttype'.
10156
10157 2002-03-17 Richard M. Stallman <rms@gnu.org>
10158
10159 * xdisp.c (cursor_type_changed): New variable.
10160 (redisplay_internal): Redisplay all windows if cursor_type_changed.
10161 Clear it when clearing windows_or_buffers_changed.
10162 (try_cursor_movement, redisplay_window, try_window_id)
10163 (try_window_reusing_current_matrix): Test cursor_type_changed
10164 along with windows_or_buffers_changed.
10165
10166 * window.h (cursor_type_changed): New variable.
10167
10168 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
10169 not update_mode_lines, and always set it to 1.
10170
10171 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
10172 if no frames needed redrawing.
10173
10174 2002-03-17 Kim F. Storm <storm@cua.dk>
10175
10176 The following changes add support for network server processes,
10177 datagram connections, and local (unix) sockets.
10178
10179 * process.h (struct Lisp_Process): New member log.
10180 Doc fix: Member command used to indicate stopped network process.
10181 Doc fix: Member childp contains plist for network process.
10182 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
10183
10184 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
10185 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
10186 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
10187 New variables.
10188 (NETCONN1_P): New macro.
10189 (DATAGRAM_SOCKETS): New conditional symbol.
10190 (datagram_address): New array.
10191 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
10192 (status_message): Use concat3.
10193 (Fprocess_status): Add `listen' status to doc string. Return `stop'
10194 for a stopped network process.
10195 (Fset_process_buffer): Update contact plist for network process.
10196 (Fset_process_filter): Ditto. Don't enable input for stopped
10197 network processes. Server must listen, even if filter is t.
10198 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
10199 New functions.
10200 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
10201 (Fprocess_contact): Added KEY argument. Handle datagrams.
10202 (list_processes_1): Optionally show only processes with the query
10203 on exit flag set. Dynamically adjust column widths. Omit tty
10204 column if not needed. Report stopped network processes.
10205 Identify server and datagram network processes.
10206 (Flist_processes): New optional arg `query-only'.
10207 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
10208 (conv_lisp_to_sockaddr, set_socket_options)
10209 (network_process_featurep, unwind_request_sigio): New helper functions.
10210 (Fprocess_datagram_address, Fset_process_datagram_address):
10211 (Fset_network_process_options): New lisp functions.
10212 (Fopen_network_stream): Removed. Now defined in simple.el.
10213 (Fmake_network_process): New lisp function. Code is based on previous
10214 Fopen_network_stream, but heavily reworked with new property list based
10215 argument list, support for datagrams, server processes, and local
10216 sockets in addition to old client-only functionality.
10217 (server_accept_connection): New function.
10218 (wait_reading_process_input): Use it to handle incoming connects.
10219 Do not enable input on a new connection if process is stopped.
10220 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
10221 (send_process): Handle datagram sockets.
10222 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
10223 network process is indicated by setting command field to t .
10224 (Fprocess_send_eof): No-op if datagram connection.
10225 (Fstatus_notify): Don't read input for a stream server socket or a
10226 stopped network process.
10227 (init_process): Initialize datagram_address array.
10228 (syms_of_process): Intern and staticpro new variables, defsubr new
10229 functions.
10230
10231 2002-03-16 Jason Rumney <jasonr@gnu.org>
10232
10233 * w32fns.c (w32_to_all_x_charsets): Return correct type in
10234 startup case.
10235
10236 2002-03-16 Richard M. Stallman <rms@gnu.org>
10237
10238 * xdisp.c (redisplay_internal, redisplay_windows):
10239 Use list_of_error to call internal_condition_case_1.
10240 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
10241 so as to catch all errors with no possibility of debugger redisplay.
10242 (list_of_error): New variable.
10243 (syms_of_xdisp): Init and staticpro it.
10244
10245 * print.c (print_object): Delete `\ ' from printed rep of frame.
10246
10247 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
10248
10249 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
10250 until its implementation is fixed.
10251
10252 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10253
10254 * xfns.c (png_load): Remove unused variable `gamma_str'.
10255
10256 2002-03-14 Richard M. Stallman <rms@gnu.org>
10257
10258 * xfns.c (x_real_positions): Handle failure in XQueryTree.
10259
10260 2002-03-14 Miles Bader <miles@gnu.org>
10261
10262 * intervals.c (adjust_for_invis_intang): New function.
10263 (set_point_both): Use `adjust_for_invis_intang' to do most of the
10264 work for dealing with invisible+intangible regions. Do so before
10265 and after both forward and backward movements, to handle both
10266 front-sticky and rear-sticky cases.
10267 * textprop.c (text_property_stickiness): Function moved here from
10268 `editfns.c'.
10269 * intervals.h (text_property_stickiness): New declaration.
10270 * editfns.c (char_property_eq): Function removed.
10271 (text_property_stickiness): Function moved to `textprop.c'.
10272
10273 2002-03-13 Jason Rumney <jasonr@gnu.org>
10274
10275 * config.in: Add STRFTIME_NO_POSIX2.
10276
10277 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
10278 and %OX when underlying strftime does not.
10279
10280 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
10281
10282 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
10283 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
10284 line) to avoid annoying flicker.
10285 (xm_scroll_callback): Get rid of the now unnecessary kludge.
10286 (XTread_socket): Mark it static.
10287
10288 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
10289
10290 2002-03-13 Kim F. Storm <storm@cua.dk>
10291
10292 * puresize.h (BASE_PURESIZE): Increase to 775000.
10293
10294 2002-03-12 Juanma Barranquero <lektu@terra.es>
10295
10296 * editfns.c (syms_of_editfns): Fix typo.
10297
10298 2002-03-12 Gerd Moellmann <gerd@gnu.org>
10299
10300 * xsmfns.c: Include stdio.h because termhooks.h needs it.
10301 Include termopt.h for interrupt_input.
10302
10303 2002-03-11 Andreas Schwab <schwab@suse.de>
10304
10305 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
10306
10307 2002-03-11 Gerd Moellmann <gerd@gnu.org>
10308
10309 * xterm.c (note_mouse_movement): Put code for
10310 x_autoselect_window_p in #if 0.
10311
10312 * lread.c (Fload): Don't assume that message_with_string uses the
10313 string it is given like a C string.
10314
10315 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10316
10317 * xterm.h (x_session_check_input, x_session_initialize): Declared.
10318
10319 * xterm.c: (XTread_socket): Add call to x_session_check_input and
10320 x_session_have_connection.
10321 (x_initialize): Add call to x_session_initialize.
10322
10323 * termhooks.h (enum event_kind): Add save_session_event.
10324
10325 * keyboard.c: Add Emacs event save_session_event.
10326
10327 * emacs.c (main): Add call to syms_of_xsmfns.
10328
10329 * lisp.h: Declare syms_of_xsmfns as extern.
10330
10331 * config.in: Add HAVE_X_SM.
10332
10333 * Makefile.in (LIBXT): Add -lSM -lICE
10334 if HAVE_X_SM and not USE_X_TOOLKIT.
10335 (XOBJ): New file xsmfns.c added.
10336
10337 * xsmfns.c: New file for X session management.
10338
10339 2002-03-09 Jason Rumney <jasonr@gnu.org>
10340
10341 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
10342 read-only when setting modified time.
10343
10344 2002-03-08 Gerd Moellmann <gerd@gnu.org>
10345
10346 * xdisp.c (move_it_vertically_backward): At the end of the function,
10347 when moving forward by lines, treat terminal frames specially.
10348
10349 * keyboard.c (echo_char): Make sure to add a separator between
10350 keys even if echo_dash hasn't been called.
10351
10352 * xdisp.c: Use new string macros.
10353 (update_echo_area): Pass number of bytes to message3 instead of
10354 number of chars.
10355 (set_message_1): Don't access a string's size_byte directly.
10356 (decode_mode_spec_coding): Use number of bytes of eoltype string
10357 instead number of chars.
10358
10359 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
10360
10361 2002-03-08 Juanma Barranquero <lektu@terra.es>
10362
10363 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
10364 24-bit.
10365
10366 2002-03-06 Jason Rumney <jasonr@gnu.org>
10367
10368 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
10369
10370 2002-03-06 Gerd Moellmann <gerd@gnu.org>
10371
10372 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
10373 (cancel_echoing, echo_length, echo_truncate): Changed to
10374 work with new kboard definition.
10375 (echo_now): Use message3_nolog instead of message2_nolog.
10376
10377 * alloc.c (mark_kboards): Mark echo_string.
10378
10379 * keyboard.h (ECHOBUFSIZE): Removed.
10380 (struct kboard): Member echoptr removed, member echobuf renamed
10381 to echo_string.
10382
10383 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
10384 message3 instead of message2 to display the message using STRING's
10385 text properties.
10386
10387 2002-03-05 Andreas Schwab <schwab@suse.de>
10388
10389 * xdisp.c (hscroll_margin): Change to EMACS_INT.
10390
10391 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
10392
10393 * frame.c (default-frame-alist): Explain that setting it doesn't
10394 affect existing frames.
10395
10396 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
10397
10398 * indent.c (skip_invisible): Fix my brain fart.
10399
10400 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
10401
10402 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
10403
10404 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
10405 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
10406 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
10407 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
10408 and variables to use EMACS_INT instead of just int.
10409
10410 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
10411
10412 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
10413
10414 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
10415 environment, pass it down with corrected value.
10416
10417 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10418
10419 * lread.c (read_filtered_event): Do not call start_hourglass
10420 before returning.
10421
10422 2002-03-04 Juanma Barranquero <lektu@terra.es>
10423
10424 * w32term.c (x_display_and_set_cursor): Fix typo.
10425
10426 2002-03-03 Richard M. Stallman <rms@gnu.org>
10427
10428 * fileio.c (Fmake_temp_name): Doc fix.
10429
10430 2002-03-03 Gary Wong <gtw@gnu.org>
10431
10432 * termcap.c [!emacs]: Replace ospeed for building standalone
10433 libtermcap, for binary compatibility.
10434
10435 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
10436
10437 2002-03-03 Richard M. Stallman <rms@gnu.org>
10438
10439 * xrdb.c (file_p): Rename arg `path' to `filename'.
10440
10441 * abbrev.c (Fexpand_abbrev): Increment plist as use count
10442 only if it is an integer.
10443
10444 * xfns.c (png_load): Set screen_gamma based on f->gamma.
10445 If png_get_sRGB gives an answer, call png_set_gamma
10446 using the default image gamma value.
10447
10448 * lread.c (read1): When reading from a file, default string to
10449 multibyte only if it has some multibyte characters.
10450
10451 * print.c (print_object): Output multibyte chars 128...255
10452 using \x even if ! print_escape_multibyte.
10453
10454 * xdisp.c (display_mode_element): Move the places where
10455 bytepos, charpos, this, and lisp_string are set.
10456 Use lisp_string to set bytepos.
10457
10458 * xdisp.c (redisplay_internal):
10459 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
10460
10461 * xdisp.c (display_mode_element): Merge properties specified with
10462 :propertize onto those that come with the string.
10463
10464 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
10465
10466 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
10467 automatic-hscrolling. Users changed.
10468 <hscroll-margin>: Renamed from automatic-hscroll-margin.
10469 Users changed.
10470 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
10471
10472 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10473
10474 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
10475
10476 2002-03-02 Kim F. Storm <storm@cua.dk>
10477
10478 * window.c (Fminibuffer_selected_window): New function.
10479 (syms_of_window): Defsubr it.
10480
10481 2002-03-01 Kim F. Storm <storm@cua.dk>
10482
10483 * window.h (struct window): New member phys_cursor_width.
10484
10485 * window.c (make_window, replace_window): Init phys_cursor_width.
10486
10487 * xterm.c (x_display_and_set_cursor): Blink box cursor using
10488 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
10489
10490 * w32term.c (x_display_and_set_cursor): Blink box cursor using
10491 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
10492
10493 * lisp.h (GCPRO6): New macro.
10494
10495 * process.c (Fopen_network_stream): Use GCPRO6.
10496
10497 2002-03-01 Kim F. Storm <storm@cua.dk>
10498
10499 * process.c (Qconnect, Qfailed): New variables.
10500 (syms_of_process): Intern and staticpro them.
10501 (Fprocess_status): Document connect and failed return values.
10502 [NON_BLOCKING_CONNECT]: New conditional.
10503 (connect_wait_mask, num_pending_connects): New variables.
10504 (status_message): Convert Qfailed status.
10505 (Fopen_network_stream): Added support for non-blocking connect.
10506 New optional args: filter, sentinel, non_blocking. Doc updated.
10507 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
10508 (deactivate_process): Handle pending non-blocking connect.
10509 (wait_reading_process_input): Poll for status of non-blocking
10510 connects. Exec sentinel directly when connect succeeds.
10511 (status_notify): Don't read process output if not yet connected.
10512
10513 2002-02-28 Kim F. Storm <storm@cua.dk>
10514
10515 * window.c: (minibuf_selected_window): Renamed from
10516 Vminibuf_selected_window. Users changed.
10517 (syms_of_window): Staticpro it.
10518
10519 2002-02-26 Kim F. Storm <storm@cua.dk>
10520
10521 The following changes add a new Vminibuf_selected_window variable
10522 which is similar to Vminibuf_scroll_window, but which is only set
10523 on entry to the minibuffer (from a non-minibuffer window):
10524
10525 * window.c: (Vminibuf_selected_window): New variable.
10526 (struct save_window_data): New member minibuf_selected_window.
10527 (Fset_window_configuration): Restore Vminibuf_selected_window.
10528 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
10529 Set minibuf_scroll_window member to nil if minibuf_level is 0.
10530 (compare_window_configurations): Compare minibuf_selected_window.
10531
10532 * window.h: (Vminibuf_selected_window): Declare extern.
10533
10534 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
10535 entry to minibuffer or on entry from a non-minibuffer window.
10536
10537 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
10538 Vminibuf_selected_window instead of Vminibuf_scroll_window.
10539
10540 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
10541 instead of Vminibuf_scroll_window when deciding in which window
10542 the region should be highlighted. Consequently, the region remains
10543 highlighteded even when a completion buffer is also displayed.
10544
10545 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
10546
10547 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
10548
10549 * xselect.c (Qcompound_text_with_extensions): Renamed from
10550 Qcompound_text_no_extensions.
10551 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
10552
10553 2002-02-26 Juanma Barranquero <lektu@terra.es>
10554
10555 * w32proc.c (syms_of_ntproc): Doc fix.
10556
10557 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10558
10559 * intervals.h: Include "dispextern.h" unconditionally.
10560
10561 2002-02-24 Jason Rumney <jasonr@gnu.org>
10562
10563 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
10564 and disp-table.elc.
10565 (lisp): Add emacs-lisp/backquote.elc.
10566
10567 2002-02-24 Kim F. Storm <storm@cua.dk>
10568
10569 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
10570 The validation of the event type was too strict as it didn't
10571 allow string events; buffer names are used in bindings for
10572 menu-bar-select-buffer (see `menu-bar-update-buffers').
10573
10574 2002-02-23 Kim F. Storm <storm@cua.dk>
10575
10576 The following changes rework my patch of 2002-02-06 which
10577 added command remapping by entering the commands directly into
10578 the keymaps. Now, command remapping uses an explicit `remap'
10579 prefix in the keymaps, i.e. [remap COMMAND].
10580
10581 * keymap.c (Qremap, remap_command_vector): New variables.
10582 (is_command_symbol): Removed function.
10583 (Fdefine_key): No longer accept a symbol for KEY.
10584 Added validation of [remap COMMAND] argument for KEY.
10585 The DEF is no longer required to be a symbol when remapping a command.
10586 (Fremap_command): New function to remap command through keymaps.
10587 (Flookup_key): Perform command remapping initiated by
10588 Fremap_command directly for speed.
10589 (Fkey_binding): Use Fremap_command for command remapping.
10590 (where_is_internal): Handle new command remapping representation.
10591 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
10592 staticpro them. Defsubr Fremap_command.
10593
10594 * keymap.h (Fremap_command): Declare extern.
10595 (is_command_symbol): Remove extern.
10596
10597 * keyboard.c (command_loop_1): Use Fremap_command for command
10598 remapping; now try command remapping for all symbols.
10599
10600 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
10601
10602 * coding.h (run_pre_post_conversion_on_str): Add prototype.
10603
10604 2002-02-23 Jason Rumney <jasonr@gnu.org>
10605
10606 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
10607 on the string before encoding it.
10608 (Fw32_get_clipboard_data): Run post-read-conversion on the string
10609 after decoding it.
10610
10611 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
10612
10613 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10614
10615 * w32term.c (enter_timestamp): Remove unused static variable to
10616 prevent warning.
10617
10618 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
10619
10620 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
10621
10622 * w16select.c (Fw16_get_clipboard_data): Fix last change.
10623
10624 * xselect.c (selection_data_to_lisp_data): Fix last change.
10625
10626 2002-02-22 Jason Rumney <jasonr@gnu.org>
10627
10628 * w32term.h (struct w32_output): New member menu_command_in_progress.
10629
10630 * w32menu.c (menubar_selection_callback): Free the menu and
10631 clear the menu_command_in_progress flag.
10632
10633 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
10634 (menu_free_timer): New variable.
10635 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
10636 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
10637 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
10638 menu command is in progress.
10639 <WM_COMMAND>: Set the menu_command_in_progress flag.
10640 Kill any menu_free_timer that is running.
10641
10642 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
10643 Call ExtTextOutA rather than ExtTextOut.
10644
10645 2002-02-22 Eli Zaretskii <eliz@gnu.org>
10646
10647 * puresize.h (BASE_PURESIZE): Increase to 755000.
10648
10649 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10650
10651 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
10652 on the string before encoding it.
10653 (Fw16_get_clipboard_data): Run post-read-conversion on the string
10654 after decoding it.
10655
10656 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10657
10658 Support for ICCCM Extended Segments in X selections:
10659
10660 * xselect.c <Qcompound_text_no_extensions>: New variable.
10661 (syms_of_xselect): Intern and staticpro it.
10662 (selection_data_to_lisp_data): Run post-read-conversion on decoded
10663 selection text.
10664 (lisp_data_to_selection_data): If next-selection-coding-system is
10665 compound-text-no-extensions, set the type of selection to be
10666 compound-text.
10667
10668 * xterm.h (x_encode_text): Update prototype.
10669
10670 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
10671 callers changed. If SELECTIONP is non-zero, run the
10672 pre-write-conversion function before encoding the selection text.
10673
10674 2002-02-21 Kim F. Storm <storm@cua.dk>
10675
10676 * frame.c (syms_of_frame): Change mouse-highlight default to t.
10677
10678 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
10679 Correct composing of language-change event.
10680
10681 2002-02-20 Kim F. Storm <storm@cua.dk>
10682
10683 * keyboard.c (menu_bar_items): Don't include keymap or local-map
10684 bindings at PT when building menu (the menu is not updated often
10685 enough for this to work reliable).
10686 (tool_bar_items): Likewise.
10687 (current_active_maps): Removed unused (and buggy) function.
10688
10689 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10690
10691 * xfns.c (gif_load): Use correct width and height for GIF images.
10692
10693 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
10694
10695 * floatfns.c (Fatan): Accept an optional second arg and call
10696 atan2 if passed 2 args.
10697
10698 2002-02-18 Jason Rumney <jasonr@gnu.org>
10699
10700 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
10701
10702 2002-02-17 Jason Rumney <jasonr@gnu.org>
10703
10704 * w32term.c (x_autoselect_window_p): New variable.
10705 (syms_of_w32term): DEFVAR_BOOL and initialize it.
10706 (note_mouse_movement): Use it.
10707
10708 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
10709
10710 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
10711
10712 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
10713 New variables.
10714 (syms_of_w32fns): Intern and staticpro them.
10715 (x_frame_parms) <"fullscreen">: New parameter.
10716 (x_fullscreen_move, x_set_fullscreen): New functions.
10717 (x_set_frame_parameters): Support Qfullscreen.
10718 (x_real_positions): Save x/y_pixels_diff frame params.
10719 (x_figure_window_size): Support full-screen frames.
10720 (Fx_create_frame): Default the fullscreen parameter.
10721
10722 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
10723 (x_fullscreen_adjust): New functions.
10724 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
10725 fullscreen. Call x_check_fullscreen_move, and set the
10726 want_fullscreen member of output_data.w32
10727 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
10728
10729 * w32term.h: New enum for FULLSCREEN_* constants.
10730 (struct w32_output): New members want_fullscreen, x_pixels_diff,
10731 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
10732 (x-fullscreen-adjust): New prototype.
10733
10734 2002-02-17 Kim F. Storm <storm@cua.dk>
10735
10736 * frame.c: (Vmouse_highlight): New variable.
10737 (syms_of_frame): DEFVAR_LISP it.
10738
10739 * frame.h: (Vmouse_highlight): Declare extern.
10740
10741 * xterm.h (struct x_display_info): Add mouse_face_hidden.
10742
10743 * xterm.c (disable_mouse_highlight): Removed variable.
10744 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
10745 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
10746 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
10747 and on after keyboard input.
10748 (x_term_init): Initialize mouse_face_hidden.
10749
10750 * msdos.h (struct display_info): Add mouse_face_hidden.
10751
10752 * msdos.c (disable_mouse_highlight): Removed variable.
10753 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
10754 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
10755 (internal_terminal_init): Initialize mouse_face_hidden.
10756 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
10757 and on after keyboard input.
10758
10759 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
10760
10761 * w32term.c (disable_mouse_highlight): Removed variable.
10762 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
10763 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
10764 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
10765 and on after keyboard input.
10766 (w32_initialize_display_info): Initialize mouse_face_hidden.
10767
10768 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
10769
10770 * msdos.c (last_mouse_window): New variable.
10771 (dos_rawgetc): Fix last change--if the mouse is in the same window
10772 as recorded in last_mouse_window, don't select this window.
10773
10774 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
10775
10776 * msdos.c (x_autoselect_window_p): New variable.
10777 (syms_of_msdos): Defvar it.
10778 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
10779 which the last mouse movement occured, unless it is already selected.
10780
10781 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
10782 New variables.
10783 (syms_of_xdisp): DEVFAR them.
10784 (hscroll_window_tree): Use automatic_hscroll_margin and
10785 Vautomatic_hscroll_step to compute the amount of window scrolling.
10786
10787 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10788
10789 * xterm.c (x-autoselect-window): New variable.
10790 (note_mouse_movement): Use it.
10791
10792 * keyboard.c: Do not include "systime.h" twice.
10793
10794 2002-02-15 Andreas Schwab <schwab@suse.de>
10795
10796 * puresize.h (BASE_PURESIZE): Increase to 9/5.
10797
10798 * alloc.c (NSTATICS): Increase to 1280.
10799
10800 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10801
10802 * alloc.c (NSTATICS): Bump to 1026.
10803
10804 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
10805 (Vx_super_keysym): New variables.
10806 (syms_of_xterm): DEFVAR_LISP them.
10807 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
10808 variables to determine which keys to use for the various modifiers.
10809
10810 2002-02-13 Kim F. Storm <storm@cua.dk>
10811
10812 * window.c: (Vmode_line_in_non_selected_windows): Removed.
10813 (mode_line_in_non_selected_windows): New variable.
10814 (syms_of_window): DEFVAR_BOOL it.
10815
10816 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
10817 Use mode_line_in_non_selected_windows.
10818 (mode_line_in_non_selected_windows): Declare extern.
10819 (Vmode_line_in_non_selected_windows): Removed extern.
10820
10821 2002-02-13 Richard M. Stallman <rms@gnu.org>
10822
10823 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
10824 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
10825 (Fclear_this_command_keys): Doc fixes.
10826
10827 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
10828 (update_face_from_frame_parameter): Increment face_change_count
10829 and windows_or_buffers_changed to force redisplay using changed faces.
10830
10831 * xdisp.c (QCpropertize): New variable.
10832 (mode_line_proptrans_alist): New variable.
10833 (display_mode_element): New arg PROPS; all calls changed.
10834 Implement this, for strings.
10835 Handle literal output of strings by sharing the
10836 main-line code for strings, using local var `literal'.
10837 Handle :propertize feature.
10838 (syms_of_xdisp): Initialze and staticpro QCpropertize and
10839 mode_line_proptrans_alist.
10840
10841 2002-02-11 Kim F. Storm <storm@cua.dk>
10842
10843 * window.c: (Vmode_line_in_non_selected_windows): New variable.
10844 (syms_of_window): DEFVAR_LISP it.
10845
10846 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
10847 (CURRENT_MODE_LINE_FACE_ID): Use it.
10848 (Vmode_line_in_non_selected_windows): Declare extern.
10849
10850 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
10851 to get mode line face.
10852
10853 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
10854
10855 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
10856 variables; cus-start.el doesn't need them anymore.
10857
10858 2002-02-09 Kim F. Storm <storm@cua.dk>
10859
10860 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
10861 reduction. This fixes a display problem where stray newlines were
10862 inserted in the window (corrected by C-l). Clarified code (IMHO).
10863
10864 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
10865
10866 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
10867
10868 * xdisp.c (display_mode_lines): Fix last change.
10869
10870 2002-02-09 Jason Rumney <jasonr@gnu.org>
10871
10872 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
10873 match each other.
10874 (w32_load_system_font): Prevent Cleartype fonts from loading.
10875 (Fx_show_tip): Ensure tip frames are above other topmost windows.
10876
10877 2002-02-09 Kim F. Storm <storm@cua.dk>
10878
10879 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
10880 (CURRENT_MODE_LINE_HEIGHT): Use it.
10881 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
10882
10883 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
10884 (pos_visible_p, handle_face_prop): Likewise.
10885 (display_mode_lines): Likewise, but for the real selected window.
10886 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
10887
10888 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
10889 in non-selected windows.
10890 (realize_basic_faces): Realize it.
10891 (syms_of_term): Intern and staticpro it.
10892
10893 2002-02-08 Kim F. Storm <storm@cua.dk>
10894
10895 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
10896 Changed mail addresses to emacs-devel@gnu.org.
10897
10898 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
10899
10900 * fileio.c (Fsubstitute_in_file_name): If the file name includes
10901 ~user, and there's no such user, don't discard everything before ~user.
10902
10903 * floatfns.c (Fround): Doc fix.
10904
10905 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10906
10907 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
10908
10909 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
10910
10911 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
10912
10913 2002-02-07 Kim F. Storm <storm@cua.dk>
10914
10915 * keymap.c (where_is_internal): Only check whether definition is
10916 remapped if it fulfills is_command_symbol.
10917
10918 2002-02-07 Andreas Schwab <schwab@suse.de>
10919
10920 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
10921
10922 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
10923
10924 2002-02-06 Kim F. Storm <storm@cua.dk>
10925
10926 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
10927 defining command remapping. Doc updated.
10928 (Flookup_key): Remap command through keymap if KEY is a symbol.
10929 (is_command_symbol): New function.
10930 (Fkey_binding): Use it. New optional argument NO-REMAP.
10931 Doc updated. Callers changed. Perform command remapping via
10932 recursive call unless that arg is non-nil.
10933 (where_is_internal): New argument no_remap. Callers changed.
10934 Call recursively to find original key bindings for a remapped
10935 comand unless that arg is non-nil.
10936 (Fwhere_is_internal): New optional argument NO-REMAP.
10937 Doc updated. Callers changed. Pass arg to where_is_internal.
10938
10939 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
10940 (is_command_symbol): Added prototype.
10941
10942 * keyboard.c (Vthis_original_command): New variable.
10943 (syms_of_keyboard): DEFVAR_LISP it.
10944 (command_loop_1): Set it, and perform command remapping.
10945
10946 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10947
10948 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
10949
10950 2002-02-06 Jason Rumney <jasonr@gnu.org>
10951
10952 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
10953
10954 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
10955
10956 * charset.c (get_charset_id): Use if-else instead of ?:.
10957
10958 2002-02-06 Richard M. Stallman <rms@gnu.org>
10959
10960 * filelock.c (S_ISLNK): Define if not defined.
10961
10962 2002-02-03 Richard M. Stallman <rms@gnu.org>
10963
10964 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
10965
10966 * lread.c (read1): Redesign strategy for force_multibyte and
10967 force_singlebyte. Now is_multibyte records whether read_buffer
10968 is multibyte. Encountering any multibyte character makes it so.
10969
10970 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
10971
10972 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
10973 with the same sequence, map that sequence to f10 rather than f0.
10974
10975 2002-02-03 Andreas Schwab <schwab@suse.de>
10976
10977 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
10978 latter never being defined on GNU/Linux.
10979
10980 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
10981
10982 * xfaces.c (realize_default_face): Don't set the weight and slant of
10983 the default face to Qnormal, unless these attributes are unspecified.
10984
10985 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10986
10987 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
10988 Call cancel_hourglass unconditionally.
10989
10990 * eval.c (Fsignal): Remove duplicated declaration of
10991 the variable `display_hourglass_p'.
10992
10993 2002-01-31 Richard M. Stallman <rms@gnu.org>
10994
10995 * editfns.c (region_limit): Nicer error message.
10996
10997 * coding.c (decode_composition_emacs_mule):
10998 Give up if NCOMPONENT gets too large to index `component'.
10999
11000 * callint.c (check_mark): New arg to specify clearer error message.
11001 Callers changed.
11002
11003 2002-01-27 Richard M. Stallman <rms@gnu.org>
11004
11005 * minibuf.c (Fcompleting_read): Doc fix.
11006
11007 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11008
11009 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
11010 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
11011 Fix doc-strings.
11012
11013 2002-01-26 Richard M. Stallman <rms@gnu.org>
11014
11015 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
11016
11017 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
11018 and scroll_up_aggressively.
11019
11020 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11021
11022 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
11023
11024 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
11025
11026 * textprop.c (Fnext_property_change, Fnext_single_property_change)
11027 (Fprevious_property_change, Fprevious_single_property_change):
11028 Stay within the narrowed-buffer boundaries.
11029
11030 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
11031
11032 * term.c (Ftty_display_color_cells): New function.
11033 (syms_of_term): Defsubr it.
11034 (Ftty_display_color_cells, Ftty_display_color_p): Change the
11035 argument name to DISPLAY. Doc fix.
11036
11037 * dispextern.h: Add prototype for set_tty_color_mode and
11038 tty_setup_colors.
11039
11040 2002-01-24 Jason Rumney <jasonr@gnu.org>
11041
11042 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
11043 If region left to draw is not what was expected, mark the frame as
11044 garbaged.
11045
11046 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
11047 Combine the regions returned by BeginPaint and GetUpdateRect.
11048
11049 2002-01-23 Jason Rumney <jasonr@gnu.org>
11050
11051 * w32term.c (x_update_window_begin): Only hide caret if
11052 w32_use_visible_system_caret is set.
11053 (x_update_window_end): Only show caret if
11054 w32_use_visible_system_caret is set.
11055 (syms_of_w32term): Handle SystemParametersInfo call failing.
11056
11057 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
11058
11059 2002-01-22 Richard M. Stallman <rms@gnu.org>
11060
11061 * unexelf.c (unexec): Define n so as to cause compilation error
11062 for the code where people have often written n instead of nn.
11063
11064 * .gdbinit (hookpost-run): Defined.
11065
11066 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11067
11068 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
11069
11070 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11071
11072 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
11073 if fullscreen is being set.
11074
11075 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11076
11077 * minibuf.c (Fminibuffer_contents)
11078 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
11079 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
11080
11081 2002-01-21 Richard M. Stallman <rms@gnu.org>
11082
11083 * window.c (check_frame_size): Fix minimum height calculation.
11084
11085 2002-01-20 Ken Raeburn <raeburn@gnu.org>
11086
11087 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
11088 height before comparison.
11089 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
11090
11091 2002-01-20 Jason Rumney <jasonr@gnu.org>
11092
11093 * w32term.c (w32_system_caret_width): Remove.
11094 (w32_use_visible_system_caret): New user flag.
11095 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
11096 Windows reports a screen reader running.
11097 (x_update_window_begin): Hide the system caret.
11098 (x_update_window_end): Show the system caret.
11099 (x_display_and_set_cursor): Don't draw a cursor when
11100 w32_use_visible_system_caret is set. Do not adjust width.
11101
11102 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
11103 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
11104 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
11105 the user requests it. Use system default width when creating.
11106 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
11107
11108 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
11109 New window messages.
11110
11111 2002-01-20 Richard M. Stallman <rms@gnu.org>
11112
11113 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
11114
11115 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11116
11117 * doprnt.c (doprnt1): Fix typos in error call.
11118
11119 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
11120
11121 * unexelf.c (unexec) [__sgi]: Support the .got sections.
11122
11123 2002-01-20 Jason Rumney <jasonr@gnu.org>
11124
11125 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
11126 that Windows returns. If a double check fails, try to guess how
11127 ExtTextOut is going to act.
11128
11129 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
11130 in place of stricmp.
11131 (w32_list_synthesized_fonts): Removed.
11132 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
11133 (struct enumfont_t): New element; list.
11134 (enum_font_cb2): List all style and charset variations of a font.
11135 (Fw32_select_font): New optional argument; include_proportional.
11136 Exclude vertical fonts. Exclude proportional fonts unless
11137 include_proportional is non-nil.
11138 (w32_enable_synthesized_fonts): Change to a boolean.
11139 (Fw32_send_sys_command): Doc fix.
11140
11141 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11142
11143 * dispnew.c (update_frame): Move the variable `tem' to the block
11144 where it is used.
11145
11146 2002-01-19 Jason Rumney <jasonr@gnu.org>
11147
11148 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
11149 call to face-set-after-frame-default.
11150
11151 2002-01-18 Richard M. Stallman <rms@gnu.org>
11152
11153 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
11154 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
11155
11156 2002-01-17 Richard M. Stallman <rms@gnu.org>
11157
11158 * window.c (enlarge_window): When exceeding size of parent,
11159 directly delete all the siblings instead of trying to resize it.
11160
11161 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11162
11163 * term.c (set_tty_color_mode): Remove unused variable `tem'.
11164
11165 2002-01-16 Henrik Enberg <henrik@enberg.org>
11166
11167 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
11168
11169 2002-01-16 Kim F. Storm <storm@cua.dk>
11170
11171 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
11172 is invisible. This can happen if cursor is on top line of a
11173 window, and we switch to a buffer with a header line.
11174
11175 * w32term.c (x_erase_phys_cursor): Ditto.
11176
11177 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11178
11179 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
11180 `dont_resize' only when used.
11181
11182 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
11183
11184 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
11185
11186 * xdisp.c (display_mode_element): When computing charpos, depend
11187 on multibyteness of elt, not the text in field.
11188
11189 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11190
11191 * buffer.c (Fkill_all_local_variables):
11192 Increment `update_mode_lines' only once.
11193
11194 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11195
11196 * lisp.h (adjust_after_replace_noundo)
11197 (Fupdate_coding_systems_internal): Add prototypes.
11198
11199 * sound.c (Fplay_sound): Initialize header_size also for :data case.
11200
11201 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
11202
11203 Support for the --color command-line argument and tty-color-mode
11204 frame parameter:
11205
11206 * term.c (tty_default_color_capabilities, tty_setup_colors)
11207 (set_tty_color_mode): New functions.
11208 (term_init): Call tty_default_color_capabilities.
11209 (Qtty_color_mode_alist): New variable.
11210 (syms_of_term): Intern and staticpro it.
11211
11212 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
11213 frames.
11214 (do_switch_frame): For termcap frames, switch the tty
11215 color mode as specified by the frame's parameters.
11216 (Qtty_color_mode): New variable.
11217 (syms_of_frame): Intern and staticpro it.
11218
11219 * emacs.c (USAGE2): Add the --color option.
11220 (standard_args): Ditto.
11221
11222 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11223
11224 * xterm.h (struct x_output): New members want_fullscreen,
11225 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
11226 y_pixels_outer_diff.
11227 New enum for FULLSCREEN_* constants.
11228 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
11229 is NULL.
11230 (x_fullscreen_adjust): Add prototype.
11231
11232 * emacs.c (USAGE2): Add the new full-screen arguments.
11233 (standard_args): Ditto.
11234
11235 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11236 New variables.
11237 (syms_of_xfns): Intern and staticpro them.
11238 (x_frame_parms) <"fullscreen">: New parameter.
11239 (x_fullscreen_move, x_set_fullscreen): New functions.
11240 (x_set_frame_parameters): Support for Qfullscreen.
11241 (x_real_positions): More accurate computation of the frame position.
11242 (x_figure_window_size): Support full-screen frames.
11243 (Fx_create_frame): Default the fullscreen parameter.
11244
11245 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
11246 (XTread_socket) <Expose>: Call x_check_fullscreen.
11247 <ConfigureNotify>: Don't resize to fullscreen.
11248 Call x_check_fullscreen_move, and set the want_fullscreen member of
11249 output_data.x.
11250
11251 2002-01-13 Jason Rumney <jasonr@gnu.org>
11252
11253 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
11254 for mice with more than 3 buttons.
11255
11256 * w32term.c (parse_button): New parameter xbutton. Callers changed.
11257 (w32_read_socket): Handle new "XBUTTON" messages.
11258
11259 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
11260 (syms_of_w32fns): DEFVAR_BOOL it.
11261 (w32_wnd_proc): Handle new "XBUTTON" messages.
11262
11263 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11264
11265 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
11266
11267 2002-01-13 Andreas Schwab <schwab@suse.de>
11268
11269 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
11270
11271 2002-01-12 Andreas Schwab <schwab@suse.de>
11272
11273 * .gdbinit (xbuffer): Remove address operator since data is now a
11274 pointer.
11275
11276 2002-01-11 Richard M. Stallman <rms@gnu.org>
11277
11278 * insdel.c (adjust_after_replace_noundo): New function.
11279
11280 * coding.c (code_convert_region): Don't copy old text if undo disabled.
11281
11282 2002-01-09 Jason Rumney <jasonr@gnu.org>
11283
11284 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
11285 when checking for multiple frames.
11286
11287 2002-01-08 Richard M. Stallman <rms@gnu.org>
11288
11289 * window.c (delete_window): Rewrite the code for changing the
11290 selected window to handle the case where WINDOW is not a leaf.
11291
11292 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
11293
11294 * process.c (send_process): Set src_multibyte to 1 after the call
11295 top setup_coding_system, not before the call.
11296
11297 2002-01-07 Jason Rumney <jasonr@gnu.org>
11298
11299 * xmenu.c (set_frame_menubar, xmenu_show):
11300 (xdialog_show): Initialize wv->help to Qnil.
11301
11302 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
11303 (w32_dialog_show): Initialize wv->help to Qnil.
11304
11305 2002-01-06 Jason Rumney <jasonr@gnu.org>
11306
11307 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
11308
11309 * w32menu.c (w32_menu_display_help): Revert last change.
11310
11311 * xmenu.c (menu_highlight_callback): Revert last change.
11312
11313 2002-01-06 Andreas Schwab <schwab@suse.de>
11314
11315 * insdel.c (make_gap_larger): Make sure buffer size does not
11316 overflow range of int.
11317
11318 2002-01-05 Jason Rumney <jasonr@gnu.org>
11319
11320 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
11321 OVERLAPS_P.
11322
11323 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
11324
11325 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
11326 to the left or to the right of the pointer, put it against
11327 the left screen edge.
11328 (x_frame_parms): Add missing braces around initializer.
11329
11330 * w32term.c (x_setup_relief_colors): Don't compute an image's
11331 background color if it doesn't have a Pixmap.
11332 (notice_overwritten_cursor): Don't depend on
11333 output_cursor and updated_area. Compare pixel coordinates with
11334 window's cursor pixel coordinates.
11335 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
11336 Call notice_overwritten_cursor with new arg list.
11337 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
11338 unconditionally.
11339 (x_draw_image_relief): Use predefined macro instead of
11340 constant when the value of `tool_bar_button_relief' is negative.
11341
11342 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
11343
11344 2002-01-04 Richard M. Stallman <rms@gnu.org>
11345
11346 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
11347
11348 2002-01-03 Richard M. Stallman <rms@gnu.org>
11349
11350 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
11351 (Fkey_binding): Try the `keymap' property map first.
11352 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
11353 minor mode bindings.
11354
11355 2002-01-03 Kim F. Storm <storm@cua.dk>
11356
11357 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
11358
11359 2002-01-02 Richard M. Stallman <rms@gnu.org>
11360
11361 * keyboard.c (read_key_sequence): Handle the keymap property
11362 before minor mode maps.
11363
11364 * editfns.c (Fformat): Update thissize from field_width
11365 based on the actual width, in the string case.
11366
11367 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11368
11369 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
11370 when used as truth value to prevent gcc warnings.
11371
11372 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
11373 * w32proc.c: Include <config.h>.
11374
11375 2002-01-01 Andreas Schwab <schwab@suse.de>
11376
11377 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
11378 not EMACS_INT, to make them compatible with DEFVAR_INT.
11379 * lisp.h (max_specpdl_size): Adjust declaration.
11380
11381 2002-01-01 Richard M. Stallman <rms@gnu.org>
11382
11383 * print.c (print_object): Test print_escape_nonascii only for
11384 unibyte strings.
11385 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
11386 when outputting to a multibyte buffer.
11387
11388 2001-12-29 Richard M. Stallman <rms@gnu.org>
11389
11390 * print.c (print_object): In multibyte string, use hex escapes.
11391 Use octal only for unibyte strings.
11392 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
11393
11394 * lread.c (read_escape): New arg BYTEREP for reporting whether
11395 escape forces unibyte or multibyte.
11396 (read1): When reading a string, take note of that info.
11397
11398 2001-12-29 Ken Raeburn <raeburn@gnu.org>
11399
11400 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
11401 comparison to test lisp value returned by Fget.
11402
11403 2001-12-29 Richard M. Stallman <rms@gnu.org>
11404
11405 * lisp.h (max_specpdl_size): Add declaration.
11406
11407 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
11408
11409 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
11410 Handle modifier bits. Correct typo in error message.
11411
11412 2001-12-28 Richard M. Stallman <rms@gnu.org>
11413
11414 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
11415 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
11416 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11417 Update calls to Fdefine_abbrev.
11418 (write_abbrev): Update for changed data format.
11419 Don't list "system" abbrevs.
11420 (Fexpand_abbrev): Update use count with new data format.
11421 (describe_abbrev): Update for changed data format.
11422 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
11423
11424 * config.in (HAVE_MBSINIT): Add #undef.
11425
11426 * strftime.c (mbsinit): Define as no-op if not available.
11427
11428 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
11429 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
11430
11431 * keymap.c (Flookup_key): Error message if key has wrong data type.
11432 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
11433 (exclude_key): New variable.
11434
11435 2001-12-28 Gerd Moellmann <gerd@gnu.org>
11436
11437 * xterm.c (x_setup_relief_colors): Don't compute an image's
11438 background color if it doesn't have a Pixmap.
11439
11440 * xterm.c (notice_overwritten_cursor): Don't depend on
11441 output_cursor and updated_area. Compare pixel coordinates with
11442 window's cursor pixel coordinates.
11443 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
11444 Call notice_overwritten_cursor with new arg list.
11445 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
11446 unconditionally.
11447
11448 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
11449 height of the cursor line to the amount to scroll.
11450
11451 2001-12-27 Richard M. Stallman <rms@gnu.org>
11452
11453 * intervals.c (set_point_both): The position after an invisible,
11454 intangible character is not an acceptable stopping point.
11455
11456 2001-12-27 Ken Raeburn <raeburn@gnu.org>
11457
11458 * window.c (enlarge_window): In new preserve_before code, convert
11459 CURBEG from lisp object to integer before doing arithmetic.
11460
11461 2001-12-27 Richard M. Stallman <rms@gnu.org>
11462
11463 * bytecode.c (Fbyte_code): Undo previous change.
11464
11465 2001-12-26 Kim F. Storm <storm@cua.dk>
11466
11467 * keyboard.c (record_char): Ignore duplicate help-echo events only
11468 separated by mouse-movement. When tracking mouse, only record
11469 first and last mouse-movement event in same window.
11470 Don't record mouse-movement events in keyboard macros.
11471
11472 2001-12-25 Richard M. Stallman <rms@gnu.org>
11473
11474 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
11475 (Fenlarge_window): New arg PRESERVE_BEFORE.
11476
11477 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
11478 instead of Fstring_as_unibyte.
11479
11480 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11481
11482 The following changes remove mocklisp support:
11483
11484 * mocklisp.h, mocklisp.c: Files removed.
11485
11486 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
11487 `Qmocklisp' and `Qmocklisp_arguments'.
11488 Remove prototype of syms_of_mocklisp.
11489
11490 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
11491
11492 * callint.c: Do not include mocklisp.h.
11493 (Fcall_interactively): Do not test for mocklisp case.
11494
11495 * eval.c: Remove variables `Qmocklisp_arguments',
11496 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
11497 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
11498 Do not test for mocklisp case.
11499 (Fwhile): Remove unused variable `tem'.
11500 (syms_of_eval): Remove variable `moclisp-arguments'.
11501
11502 * data.c (wrong_type_argument): Remove mocklisp case.
11503
11504 * doc.c (Fdocumentation): Remove mocklisp case.
11505
11506 * emacs.c (main): Do not call syms_of_mocklisp.
11507
11508 2001-12-21 Richard M. Stallman <rms@gnu.org>
11509
11510 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
11511 to the left or to the right of the pointer, put it against
11512 the left screen edge.
11513
11514 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
11515
11516 * Makefile.in (distclean): Remove .gdbinit if we are building
11517 outside the source tree.
11518
11519 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
11520
11521 * w32.c (emacs_root_dir): New function.
11522
11523 * msdos.c (emacs_root_dir): New function.
11524
11525 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
11526 of the current drive as the fallback for default_directory.
11527
11528 * dired.c (file_name_completion): Run the elements of
11529 completion-ignored-extensions through ENCODE_FILE.
11530
11531 * lisp.h (scmp): Remove prototype, since it's now a static
11532 function private to dired.c.
11533
11534 2001-12-18 Richard M. Stallman <rms@gnu.org>
11535
11536 * dired.c (scmp): Function moved from minibuf.c.
11537 Delete multibyte handling--used only on encoded strings.
11538
11539 * minibuf.c (scmp): Function moved to dired.c.
11540
11541 * fns.c (merge): Add QUIT call.
11542
11543 2001-12-18 Dave Love <fx@gnu.org>
11544
11545 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
11546 language/georgian.el.
11547
11548 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
11549
11550 * Makefile.in (lisp, shortlisp): Synchronize with changes to
11551 lisp/Makefile.in:DONTCOMPILE.
11552
11553 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11554
11555 * xdisp.c (window_box_height): Do not return negative values.
11556 From Gerd Moellmann <gerd@gnu.org>.
11557
11558 * keyboard.c (head_table): Add missing braces around initializer.
11559
11560 * term.c (keys): Likewise.
11561
11562 * xfns.c (x_frame_parms, visual_classes): Likewise.
11563
11564 2001-12-17 Sam Steingold <sds@gnu.org>
11565
11566 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
11567 patch (COMPOSING_P, not COMPOSING).
11568
11569 2001-12-17 Richard M. Stallman <rms@gnu.org>
11570
11571 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
11572
11573 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
11574 before calling decode_coding.
11575
11576 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
11577
11578 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
11579 instead of only for COMPOSITION_DISABLED.
11580
11581 2001-12-16 Richard M. Stallman <rms@gnu.org>
11582
11583 * alloc.c (pure_alloc): After overflow, allocate just a small block.
11584
11585 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
11586
11587 * buffer.h (struct buffer): New field `display_error_modiff'.
11588 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
11589
11590 * window.c (Frecenter): Clear display_error_modiff field.
11591
11592 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
11593 Call redisplay_window, but not if display_error_modiff field says no.
11594 (redisplay_window_error): New function.
11595 (displayed_buffer): New variable.
11596 (redisplay_internal, redisplay_windows): Call the new functions
11597 instead of redisplay_window directly.
11598
11599 2001-12-15 Richard M. Stallman <rms@gnu.org>
11600
11601 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
11602
11603 2001-12-14 Andrew Innes <andrewi@gnu.org>
11604
11605 * makefile.w32-in (EMACSLOADPATH): Define.
11606 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
11607 (bootstrap-temacs): Remove dependency on bootstrap-clean.
11608
11609 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
11610
11611 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
11612 parameter have a numeric value all the time.
11613
11614 * w32fns.c (x_report_frame_params): Likewise.
11615
11616 2001-12-12 Richard M. Stallman <rms@gnu.org>
11617
11618 * fileio.c (Fwrite_region): Doc fix.
11619
11620 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
11621 (redisplay_internal): Call clear_image_cache only for window terminals.
11622
11623 2001-12-12 Gerd Moellmann <gerd@gnu.org>
11624
11625 * xdisp.c (move_it_vertically_backward): Change heuristic
11626 for the case that we didn't move far enough initially.
11627
11628 * window.c (Frecenter): Simplify computation in the case of window
11629 system frames and ARG < 0; use window_box_height.
11630
11631 2001-12-11 Richard M. Stallman <rms@gnu.org>
11632
11633 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
11634 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
11635
11636 2001-12-11 Andrew Innes <andrewi@gnu.org>
11637
11638 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
11639 arg is negative.
11640
11641 2001-12-11 Richard M. Stallman <rms@gnu.org>
11642
11643 * m/hp800.h: Split the __hpux conditional into the parts
11644 that are right for GNU/Linux too and the parts that are not.
11645 Use the former if GNU_LINUX.
11646 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
11647
11648 * s/gnu-linux.h (GNU_LINUX): Defined.
11649
11650 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11651
11652 * macros.c, msdos.c, w16select.c: Change doc-string comments to
11653 `new style' [w/`doc:' keyword].
11654
11655 2001-12-10 Jason Rumney <jasonr@gnu.org>
11656
11657 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
11658 before using.
11659
11660 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11661
11662 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
11663 keyword].
11664
11665 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
11666
11667 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
11668
11669 * s/hpux10.h (srand48): Don't undefine.
11670
11671 2001-12-09 Jason Rumney <jasonr@gnu.org>
11672
11673 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
11674 Add comment to explain where the struct came from.
11675 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
11676 (add_menu_item): Process pop-up menus first to avoid memory leak.
11677 (add_menu_item, w32_menu_display_help): Use `help' field as
11678 Lisp_Object.
11679 (w32_free_submenu_strings): Only free owner-drawn strings.
11680
11681 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11682
11683 * COPYING: Moved back.
11684
11685 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
11686 Add parentheses around && within ||.
11687
11688 * indent.c (compute_motion): Likewise.
11689
11690 * intervals.c (merge_properties_sticky): Likewise.
11691
11692 * coding.c (setup_coding_system, shrink_encoding_region)
11693 (Fdecode_sjis_char): Likewise.
11694
11695 2001-12-07 Andreas Schwab <schwab@suse.de>
11696
11697 * xdisp.c (display_mode_element): Don't read past end of string if
11698 it ends with '%'.
11699
11700 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
11701 can hold.
11702
11703 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
11704 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
11705 type changed to Lisp_Object.
11706 (syms_of_data): DEFVAR_LISP them.
11707
11708 2001-12-07 Richard M. Stallman <rms@gnu.org>
11709
11710 * callproc.c (init_callproc): Set Vdata_directory based on the source
11711 location whenever Emacs was run uninstalled.
11712
11713 2001-12-06 Paul Eggert <eggert@twinsun.com>
11714
11715 * config.in (HAVE_WORKING_VFORK): New #undefs.
11716 * process.c (create_process):
11717 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
11718 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
11719 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
11720 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
11721 * m/intel386.h (HAVE_VFORK): Likewise.
11722 * m/mips-siemens.h (HAVE_VFORK): Likewise.
11723 * m/mips.h (HAVE_VFORK): Likewise.
11724 * s/freebsd.h (vfork): Remove #define.
11725 * s/lynxos.h (HAVE_VFORK): Remove #undef.
11726 * s/usg5-4-2.h: Fix comment about vfork.
11727
11728 2001-12-06 Richard M. Stallman <rms@gnu.org>
11729
11730 * s/hpux10.h (random): Add undef.
11731 (HAVE_RANDOM): Define it just once.
11732
11733 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
11734
11735 * eval.c: Undo last change: the standard syntax is not wanted.
11736
11737 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
11738
11739 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
11740 scroll bars of the frame before deleting the frame itself. If the
11741 frame has a widget, delete the frame with XtDestroyWidget, and do
11742 not call XDestroyWindow before that.
11743
11744 2001-12-06 Kim F. Storm <storm@cua.dk>
11745
11746 * xfns.c (x_report_frame_params): Return actual fringe widths.
11747
11748 * w32fns.c (x_report_frame_params): Return actual fringe widths.
11749
11750 2001-12-05 Andrew Innes <andrewi@gnu.org>
11751
11752 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
11753 excessively large.
11754
11755 * insdel.c (make_gap_larger): New function.
11756 (make_gap_smaller): New function.
11757 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
11758 Call make_gap_smaller if arg is negative.
11759
11760 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
11761
11762 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
11763 Pass a dummy argument when calling interrupt_signal.
11764 (parse_menu_item): Mark disabled items before checking for empty def.
11765 (read_char_minibuf_menu_prompt): Make safety more visible.
11766 (read_key_sequence): Add a `first_unbound' variable.
11767 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
11768 unbound prefix as soon as we can detect it.
11769
11770 * doc.c (Fsnarf_documentation): Add prototype.
11771 (get_doc_string): Handle negative arguments.
11772 (Fdocumentation): Use AREF and ASIZE.
11773 Move the calls to get_doc_string to a single place.
11774 Don't confuse an interactive-spec for a docstring reference.
11775 (Fdocumentation_property): Take advantage of the fact that
11776 get_doc_string now ignores the sign of the docstring position.
11777
11778 * eval.c: Use standard syntax for usage in docstrings.
11779
11780 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11781
11782 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
11783
11784 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11785
11786 * xterm.c (x_draw_image_relief): Use predefined macro instead of
11787 constant when the value of `tool_bar_button_relief' is negative.
11788
11789 2001-12-02 Richard M. Stallman <rms@gnu.org>
11790
11791 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
11792 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
11793
11794 * fileio.c (read_non_regular): Delete Fsignal call.
11795
11796 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
11797
11798 * lisp.h (run_hook_list_with_args): Undo last change.
11799
11800 2001-12-01 Gerd Moellmann <gerd@gnu.org>
11801
11802 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
11803
11804 2001-12-01 Jason Rumney <jasonr@gnu.org>
11805
11806 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
11807
11808 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
11809 [!WM_MOUSELEAVE]: Define.
11810
11811 * w32menu.c (current_popup_menu, get_menu_item_info):
11812 (set_menu_item_info): New vars.
11813 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
11814 (w32_menu_show): Set current_popup_menu.
11815 (add_menu_item): Allocate new strings for owner-drawn menu items
11816 and help strings.
11817 Use owner-draw for disabled menu items again.
11818 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
11819 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
11820
11821 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
11822 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
11823 <WM_EXITMENULOOP>: Free menu strings.
11824 <WM_MOUSELEAVE>: Stop tracking mouse.
11825 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
11826
11827 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
11828 and mouse face.
11829
11830 2001-12-01 Kim F. Storm <storm@cua.dk>
11831
11832 The following changes add left-fringe and right-fringe
11833 frame parameters to adjust fringe widths, or remove one or
11834 both fringes.
11835
11836 * frame.h (struct frame): Remove trunc_area_pixel_width and
11837 trunc_area_cols fields.
11838 (Qleft_fringe, Qright_fringe): Declare.
11839 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
11840
11841 * frame.c (Qleft_fringe, Qright_fringe): New vars.
11842 (syms_of_frame): Initialize them.
11843
11844 * window.c (coordinates_in_window): Handle separate left and right
11845 fringe widths.
11846
11847 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
11848 and fringe_cols fields.
11849 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
11850 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
11851 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
11852 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
11853 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
11854 (x_compute_fringe_widths): Add prototype.
11855
11856 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
11857 fill fringe evenly with small dashes.
11858 (x_draw_fringe_bitmap): Clear background if necessary. Align and
11859 clip the new ZV bitmap to avoid jitter between rows.
11860 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
11861 background. Don't draw fringe bitmaps if fringe width is zero.
11862 (x_compute_fringe_widths): New function.
11863 (x_new_font, x_set_window_size_1): Use it.
11864
11865 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
11866 (x_set_frame_parameters): Process `font' parameter before other
11867 parameters as fringe widths depend on it.
11868 (x_set_fringe_width): New function.
11869 (x_figure_window_size): Use x_compute_fringe_widths.
11870 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
11871 parameters.
11872
11873 * widget.c (set_frame_size): Use x_compute_fringe_widths.
11874 (EmacsFrameSetCharSize): Ditto.
11875
11876 * w32term.h: Merged changes from xterm.h.
11877 * w32term.c: Merged changes from xterm.c.
11878 * w32fns.c: Merged changes from xfns.c.
11879
11880 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11881
11882 * COPYING: Removed.
11883
11884 2001-11-29 Dave Love <fx@gnu.org>
11885
11886 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
11887 extra extra slot.
11888 (detect_coding_mask): Fix call of detect_coding_iso2022.
11889
11890 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11891
11892 * fileio.c (file-name-coding-system)
11893 (default-file-name-coding-system): Doc fix (links to referenced
11894 variables added).
11895
11896 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
11897
11898 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
11899 Add dummy uses of gcproN variables.
11900
11901 * category.c (describe_category, describe_category_1)
11902 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
11903 (syms_of_category): Don't defsubr Sdescribe_categories.
11904
11905 2001-11-28 Richard M. Stallman <rms@gnu.org>
11906
11907 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
11908
11909 * Makefile.in (lispdir): New variable, referring to build dir.
11910 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
11911
11912 2001-11-28 Andrew Innes <andrewi@gnu.org>
11913
11914 * w32menu.c (w32_menu_display_help): Actually add the new argument
11915 OWNER.
11916
11917 2001-11-28 Jason Rumney <jasonr@gnu.org>
11918
11919 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
11920 menu items. From David Ponce <dponce@wanadoo.fr>.
11921 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
11922 conditionally.
11923 (w32_menu_display_help): New argument OWNER. Rewritten to store a
11924 help event in the owner frame's keyboard buffer.
11925
11926 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
11927 (Fx_show_tip): Don't subtract last width from row width.
11928
11929 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
11930 (w32_read_socket): Use EQ to compare frames.
11931
11932 2001-11-28 Gerd Moellmann <gerd@gnu.org>
11933
11934 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
11935 OVERLAPS_P.
11936
11937 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11938
11939 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
11940 `gcpro3' and `gcpro4'.
11941
11942 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
11943
11944 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
11945
11946 * ccl.c: Use AREF and ASIZE.
11947
11948 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
11949
11950 * lisp.h (run_hook_list_with_args): Remove.
11951 (LIST_END_P): Fix call to wrong_type_argument.
11952 (make_fixnum_or_float): Use EMACS_INT rather than int.
11953
11954 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
11955
11956 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
11957 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
11958
11959 * eval.c: Use AREF and ASIZE.
11960 (Ffetch_bytecode): Add the file name to the error message.
11961
11962 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
11963 which match the end of the file-name.
11964 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
11965 is not a valid env var, but leave it as is instead.
11966
11967 * keymap.c (access_keymap): Handle t bindings like nil bindings.
11968 Make nil bindings in char-tables transparent.
11969 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
11970
11971 2001-11-26 Richard M. Stallman <rms@gnu.org>
11972
11973 * textprop.c (set_text_properties_1): Allow START, END in either order.
11974 Do nothing if range is empty.
11975
11976 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
11977
11978 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
11979 (clean): Not here.
11980
11981 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
11982
11983 * textprop.c (set_text_properties_1): Clearly mark that the
11984 interval should not be empty.
11985
11986 * intervals.c (graft_intervals_into_buffer):
11987 Don't call set_text_properties_1 on an empty interval.
11988
11989 2001-11-25 Richard M. Stallman <rms@gnu.org>
11990
11991 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
11992
11993 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
11994 don't lose the data in it.
11995
11996 2001-11-25 Juanma Barranquero <lektu@terra.es>
11997
11998 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
11999
12000 * buffer.c (Fkill_buffer): Likewise.
12001
12002 * print.c (temp_output_buffer_setup): Likewise.
12003
12004 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
12005
12006 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
12007
12008 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
12009
12010 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
12011 Niemitalo <kon@iki.fi>.
12012
12013 2001-11-25 Jason Rumney <jasonr@gnu.org>
12014
12015 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
12016
12017 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
12018 (Fx_show_tip): Block input during frame creation.
12019 (Fx_show_tip, Fx_hide_tip): Enable.
12020
12021 2001-11-24 Richard M. Stallman <rms@gnu.org>
12022
12023 * lread.c (Fload): Detect recursive load error for more than 3
12024 nestings of the same file.
12025 (Vrecursive_load_depth_limit): Variable deleted.
12026 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
12027
12028 2001-11-24 Jason Rumney <jasonr@gnu.org>
12029
12030 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
12031 mouse position if either left or top is not specified.
12032
12033 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
12034 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
12035 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
12036 (my_create_tip_window): Assign tip_window.
12037 (x_create_tip_frame): Use same defaults as X.
12038 (compute_tip_xy): Remove unused variable. Use full screen width.
12039 (Fx_show_tip): Do not double height. Call ShowWindow directly.
12040
12041 * w32term.c (x_after_update_window_line): Doc fix.
12042 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
12043 frames.
12044 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
12045
12046 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
12047 for all Windowed systems.
12048
12049 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
12050
12051 * msdos.c (IT_clear_screen): If the frame's faces are not yet
12052 realized, use the initial screen colors to clear the screen.
12053
12054 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12055
12056 * textprop.c (Fset_text_properties): Remove unused variables
12057 `unchanged', `prev_changed', `s' and `len'.
12058
12059 * search.c (Freplace_match): Remove unused variable `inslen'.
12060
12061 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
12062
12063 2001-11-22 Jason Rumney <jasonr@gnu.org>
12064
12065 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
12066 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
12067 (my_create_tip_window): New function.
12068 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
12069 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
12070
12071 2001-11-20 Jason Rumney <jasonr@gnu.org>
12072
12073 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
12074 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
12075
12076 * w32fns.c (Vw32_system_coding_system): Remove.
12077 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
12078
12079 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
12080
12081 * fileio.c (Fwrite_region): Move choose_write_coding_system to
12082 after build_annotations.
12083
12084 * syntax.c (describe_syntax): Add dummy arg.
12085 (describe_syntax_1): Update call to describe_vector.
12086
12087 * category.c (describe_category): Add dummy arg.
12088 (describe_category_1): Update call to describe_vector.
12089
12090 * keymap.c (Fdescribe_vector): Add `describer' parameter.
12091 (describe_command, describe_translation): Add dummy second param.
12092 (describe_map): Call elt_describer with two arguments.
12093 (describe_vector_princ): Add `fun' parameter.
12094 Call it instead of the hardcoded `princ'.
12095 (describe_vector): Add arg `args'.
12096 Pass it as a new second argument to elt_describer.
12097
12098 * keymap.h (describe_vector): Update prototype.
12099
12100 * frame.c: Don't include keymap.h any more.
12101 (keys_of_frame): Remove.
12102
12103 * lisp.h (keys_of_frame): Remove declaration.
12104
12105 * emacs.c (main): Don't call `keys_of_frame' any more.
12106
12107 2001-11-14 Andreas Schwab <schwab@suse.de>
12108
12109 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
12110 if defined, 0 otherwise.
12111 (MAP_FAILED): Define if not defined and use it to test mmap failure.
12112 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
12113
12114 2001-11-19 Richard M. Stallman <rms@gnu.org>
12115
12116 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
12117
12118 2001-11-18 Jason Rumney <jasonr@gnu.org>
12119
12120 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
12121 (x_draw_bar_cursor): If the background color of the glyph under
12122 the cursor equals the frame's cursor color, use the glyph's
12123 foreground color for drawing the bar cursor.
12124 (x_after_update_window_line): Clear internal border in different
12125 circumstances.
12126 (w32_set_vertical_scroll_bar): Check for width and height > 0.
12127 (w32_draw_relief_rect): Correct relief by 1 pixel.
12128 (x_set_glyph_string_background_width):
12129 Set extends_to_end_of_line_p if the row's fill_line_p is set and
12130 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
12131 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
12132 if cursor_in_non_selected_windows is false.
12133 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
12134 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
12135 Notice if cursor gets overwritten.
12136 (notice_overwritten_cursor): Renamed from
12137 note_overwritten_text_cursor. Rewritten to take glyph widths
12138 into account, and to take X positions as parameters.
12139 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
12140 around call to x_draw_glyphs.
12141 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
12142 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
12143 color to use for image glyph reliefs.
12144 (x_draw_image_relief): Accept zero tool_bar_button_relief.
12145 (glyph_rect): Remove unused variable `area'.
12146
12147 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
12148 some items.
12149 (x_set_internal_border_width): Set frame garbaged when window
12150 doesn't exist yet.
12151 (Fx_create_frame): Accept zero tool_bar_button_relief.
12152 (x_clear_image_1, four_corners_best, image_background)
12153 (image_background_transparent): New functions.
12154 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
12155 (gs_format): Add `:background' entry.
12156 (lookup_image): Set IMG's background color if specified.
12157 (pbm_load, xbm_load_image, png_load): Set IMG's background field
12158 when appropriate.
12159 (x_clear_image_1): Reset `background_valid' and
12160 `background_transparent_valid' fields.
12161 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
12162 calculating it here. Set IMG's background_transparent field.
12163 (enum xpm_keyword_index): Add XPM_BACKGROUND.
12164 (enum png_keyword_index): Add PNG_BACKGROUND.
12165 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
12166 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
12167 (enum gif_keyword_index): Add GIF_BACKGROUND.
12168 (enum gs_keyword_index): Add GS_BACKGROUND.
12169 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
12170 Pre-calculate image background color where necessary.
12171 (x_create_x_image_and_pixmap, xbm_load, gs_load):
12172 Use display info's n_cbits entry for screen depth.
12173 (Fx_show_tip): Remove unused variables `buffer', `top',
12174 `left', `max_width' and `max_height'.
12175
12176 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
12177
12178 2001-11-18 Gerd Moellmann <gerd@gnu.org>
12179
12180 * puresize.h (BASE_PURESIZE): Increase to 750000.
12181
12182 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12183
12184 * frame.c (Fframe_live_p): Doc fix.
12185
12186 2001-11-18 Richard M. Stallman <rms@gnu.org>
12187
12188 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
12189 (message_dolog_marker3): New static variables hold three markers.
12190 (syms_of_xdisp): Initialize and staticpro them.
12191 (message_dolog): Use message_dolog_marker1..3 instead of
12192 allocating markers each time. Unchain them when done.
12193
12194 2001-11-17 Richard M. Stallman <rms@gnu.org>
12195
12196 * doc.c (Fsnarf_documentation): Doc fix.
12197
12198 2001-11-17 Andreas Schwab <schwab@suse.de>
12199
12200 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
12201
12202 2001-11-17 Richard M. Stallman <rms@gnu.org>
12203
12204 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
12205
12206 2001-11-17 Jason Rumney <jasonr@gnu.org>
12207
12208 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
12209
12210 2001-11-17 Gerd Moellmann <gerd@gnu.org>
12211
12212 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
12213 with invalid position.
12214
12215 2001-11-16 Richard M. Stallman <rms@gnu.org>
12216
12217 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
12218
12219 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
12220 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
12221 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
12222
12223 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
12224
12225 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
12226
12227 * fileio.c (build_annotations): Split off the tail.
12228 (build_annotations_2): New fun. Extracted from build_annotations.
12229 (Fwrite_region): Split the call to build_annotations into two
12230 calls to build_annotations and build_annotations_2.
12231
12232 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12233
12234 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
12235 clear_waiting_for_input with argument.
12236
12237 * xterm.h (x_update_cursor): Remove duplicated prototype.
12238
12239 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
12240
12241 * xterm.c (waiting_for_input): Remove unnecessary declaration.
12242
12243 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
12244
12245 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
12246
12247 * fileio.c (choose_write_coding_system): New fun, extracted
12248 from Fwrite_region.
12249 (Fwrite_region): Use it.
12250
12251 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
12252 (funcall_lambda, run_hook_with_args): Make static and add prototype.
12253 (ml_apply, find_handler_clause): Add prototype.
12254
12255 2001-11-16 Eli Zaretskii <eliz@gnu.org>
12256
12257 * config.in: Add #undef HAVE_COFF_H.
12258
12259 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
12260 Required for ISC 4.1.
12261
12262 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
12263
12264 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
12265 Andrew Wiseman <a.wiseman@btclick.com>.
12266
12267 2001-11-16 Kim F. Storm <storm@cua.dk>
12268
12269 The following changes are made to clean up the various internal
12270 references to the fringes to actually use the term `fringe' for
12271 them. Previously, they were called `flags areas', `bitmap areas',
12272 `left/right side of windows', or implicitly as `flags' or
12273 `bitmaps':
12274
12275 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
12276 Comments fixed. Use renamed symbols.
12277
12278 * dispnew.c: Comment fix. Use renamed symbols.
12279
12280 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
12281 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
12282 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
12283
12284 * msdos.c: Comment fix.
12285
12286 * w32fns.c: Use renamed symbols.
12287
12288 * w32term.c: Comment fixes. Use renamed symbols.
12289 (fringe_bitmap_type): Renamed from bitmap_type.
12290 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12291 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
12292 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
12293
12294 * w32term.h: Comment fixes. Use renamed symbols.
12295 (fringes_extra): Renamed from flags_areas_extra.
12296 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12297 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12298 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12299 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12300 (FRAME_X_LEFT_FRINGE_WIDTH):
12301 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12302 (FRAME_X_RIGHT_FRINGE_WIDTH):
12303 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
12304
12305 * widget.c: Use renamed symbols.
12306
12307 * window.c: Comment fixes. Use renamed symbols.
12308 (coordinates-in-window-p): Doc fix.
12309
12310 * xdisp.c: Comment fixes. Use renamed symbols.
12311
12312 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
12313
12314 * xfns.c: Use renamed symbols.
12315
12316 * xterm.c: Comment fixes. Use renamed symbols.
12317 (fringe_bitmap_type): Renamed from bitmap_type.
12318 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12319 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
12320 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
12321
12322 * xterm.h: Comment fixes. Use renamed symbols.
12323 (fringes_extra): Renamed from flags_areas_extra.
12324 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12325 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12326 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12327 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12328 (FRAME_X_LEFT_FRINGE_WIDTH):
12329 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12330 (FRAME_X_RIGHT_FRINGE_WIDTH):
12331 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
12332
12333 2001-11-15 Jason Rumney <jasonr@gnu.org>
12334
12335 * w32menu.c (add-menu-item): Make help_echo and radio buttons
12336 work for most menu items. From David Ponce
12337 <david.ponce@wanadoo.fr>.
12338
12339 2001-11-15 Gerd Moellmann <gerd@gnu.org>
12340
12341 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
12342 Some x_set_* function expect to be called even if old and new
12343 value are equal.
12344
12345 * xdisp.c (build_desired_tool_bar_string): Accept zero
12346 tool_bar_button_relief.
12347
12348 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
12349
12350 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
12351
12352 * xterm.c (x_draw_bar_cursor): If the background color of the
12353 glyph under the cursor equals the frame's cursor color, use
12354 the glyph's foreground color for drawing the bar cursor.
12355
12356 * dispnew.c (direct_output_forward_char): Fix character/byte
12357 position comparison.
12358
12359 2001-11-15 Miles Bader <miles@gnu.org>
12360
12361 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
12362 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
12363 Update arguments to find_field.
12364 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
12365 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
12366 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
12367 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
12368
12369 2001-11-14 Richard M. Stallman <rms@gnu.org>
12370
12371 * editfns.c (Fpropertize): Allow call with 1 arg.
12372
12373 * dispextern.h (image_background, image_background_transparent):
12374 Conditionalize on HAVE_X_WINDOWS.
12375
12376 2001-11-13 Richard M. Stallman <rms@gnu.org>
12377
12378 * print.c (Fprin1_to_string): Doc fix.
12379
12380 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
12381
12382 * floatfns.c (Fceiling, Ffloor): Doc fixes.
12383
12384 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
12385
12386 * fileio.c (Ffile_accessible_directory_p): Doc fix.
12387
12388 * eval.c (syms_of_eval): Doc fix.
12389
12390 * coding.c (syms_of_coding): Doc fix.
12391
12392 * doc.c (Fsnarf_documentation): Doc fix.
12393
12394 * dispnew.c (syms_of_display): Doc fix.
12395
12396 * category.c (Fget_unused_category): Doc fix.
12397
12398 * buffer.c (syms_of_buffer): Doc fixes.
12399
12400 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
12401
12402 * print.c (prin1, print): Doc fix.
12403
12404 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12405
12406 * fontset.h: Remove declarations of variables
12407 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
12408
12409 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
12410 `Vclip_large_size_font'.
12411
12412 2001-11-13 Jason Rumney <jasonr@gnu.org>
12413
12414 * w32fns.c: Doc fix.
12415
12416 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12417
12418 * xfaces.c (Fface_attributes_as_vector): Doc fix.
12419
12420 * fns.c: Doc fix.
12421
12422 * emacs.c: Doc fix.
12423
12424 * coding.c: Doc fix.
12425
12426 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
12427 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
12428 `new style' [w/`doc:' keyword].
12429
12430 2001-11-12 Richard M. Stallman <rms@gnu.org>
12431
12432 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
12433 LeaveNotify events. Only FocusIn and FocusOut do that now.
12434 (x_display_and_set_cursor): Do display hollow cursors in active
12435 minibuffer windows when they are not selected.
12436
12437 2001-11-12 Jason Rumney <jasonr@gnu.org>
12438
12439 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12440 * w32term.c: Change doc-string comments to `new style'.
12441 [w/`doc:' keyword]. Doc fixes.
12442
12443 * w32fns.c: Don't define max.
12444 (Fx_open_connection): Only execute once.
12445
12446 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12447
12448 * ccl.c: Change macros to use do-while block instead of if-else.
12449 Use braces to follow GNU Coding Standards.
12450
12451 2001-11-11 Richard M. Stallman <rms@gnu.org>
12452
12453 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
12454
12455 * lread.c (read_escape): Use end_of_file_error for reporting eof.
12456
12457 * insdel.c (replace_range): Use adjust_markers_for_replace
12458 instead of adjust_markers_for_delete and adjust_markers_for_insert.
12459
12460 * intervals.h: Declare set_text_properties and set_text_properties_1.
12461
12462 * textprop.c (set_text_properties_1): New subroutine
12463 broken out of set_text_properties.
12464 (set_text_properties): Use set_text_properties_1.
12465
12466 * intervals.c (graft_intervals_into_buffer):
12467 Use set_text_properties_1 to clear out properties.
12468
12469 * search.c (Freplace_match): Use replace_range to insert
12470 and delete. Don't request property inheritance from
12471 surrounding text.
12472
12473 2001-11-10 Jason Rumney <jasonr@gnu.org>
12474
12475 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
12476 vertical fonts. Allow them if face name is explicitly specified.
12477 Do not give up if we find a font that cannot be converted to an xlfd.
12478
12479 2001-11-10 Gerd Moellmann <gerd@gnu.org>
12480
12481 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
12482 instead of malloc/free.
12483
12484 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12485
12486 * xfaces.c (merge_face_vectors): Use braces to follow GNU
12487 Coding Standards.
12488 (Finternal_set_lisp_face_attribute): Likewise.
12489
12490 * buffer.c (Fbury_buffer): Likewise.
12491
12492 * indent.c (current_column_1): Remove unused variable `prev_col'.
12493
12494 * coding.c (encode_coding): Use precomputed value of `src'.
12495 (encode_coding): Remove unused variable `src_end'.
12496 (code_convert_region): Remove unused variables `count'.
12497
12498 2001-11-07 Jason Rumney <jasonr@gnu.org>
12499
12500 * w32term.c (x_display_and_set_cursor): Do not move system caret
12501 if cursor_glyph is NULL.
12502
12503 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12504
12505 * keymap.c (access_keymap): Fix compilation error.
12506
12507 2001-11-07 Miles Bader <miles@gnu.org>
12508
12509 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
12510
12511 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12512
12513 * intervals.c (graft_intervals_into_buffer):
12514 Remove #ifdef'd-out code.
12515 (graft_intervals_into_buffer): Remove unused variable `middle'.
12516
12517 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
12518 code (eval-current-buffer).
12519 Change doc-string comments to `new style' [w/`doc:' keyword].
12520
12521 2001-11-06 Richard M. Stallman <rms@gnu.org>
12522
12523 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
12524
12525 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
12526
12527 * lread.c (read1): Fix behavior with nested backquoting.
12528
12529 * keyboard.c (make_lispy_event): Check integerness and fix
12530 Lisp_Object/int mixup.
12531
12532 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12533
12534 * fns.c (copy_hash_table): Remove unused variable `v'.
12535
12536 * fontset.c (fontset_font_pattern): Remove unused variable
12537 `family_registry'.
12538
12539 * indent.c (current_column_1): Remove unused variable `prev_col'.
12540
12541 2001-11-05 Richard M. Stallman <rms@gnu.org>
12542
12543 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
12544
12545 * buffer.c (Fkill_buffer): Don't delete auto save file
12546 if buffer is modified.
12547
12548 2001-11-05 Andrew Innes <andrewi@gnu.org>
12549
12550 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
12551 CHECK_NUMBER_CDR.
12552
12553 2001-11-05 Richard M. Stallman <rms@gnu.org>
12554
12555 * unexelf.c (unexec): Minor changes; clean up comments.
12556
12557 2001-11-05 Sam Steingold <sds@gnu.org>
12558
12559 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
12560
12561 2001-11-05 Andreas Schwab <schwab@suse.de>
12562
12563 * sound.c (sound_perror): Save errno from being clobbered.
12564
12565 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
12566
12567 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
12568 the program image directly.
12569
12570 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12571
12572 * buffer.h (Fbuffer_local_value): Add prototype.
12573
12574 2001-11-04 Richard M. Stallman <rms@gnu.org>
12575
12576 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
12577 and CHECK_BUFFER.
12578
12579 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
12580 (record_char): Likewise.
12581
12582 * keyboard.c (make_lispy_event): Don't insist a drag event must
12583 move to a different buffer position. Instead, check for moving at
12584 least double_click_fuzz.
12585
12586 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
12587
12588 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
12589
12590 * indent.c (current_column_1, Fmove_to_column): Separate the code
12591 for display-table glyphs from the code for buffer text, to fix
12592 bugs in the former.
12593
12594 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
12595
12596 * buffer.c (Fbuffer_local_value): New function.
12597 (syms_of_buffer): Defsubr it.
12598
12599 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
12600 value of `cursor-in-non-selected-windows'.
12601
12602 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
12603 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
12604 (syms_of_xdisp): Initialize it.
12605
12606 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12607
12608 * xfns.c (Fx_create_frame): Doc fix.
12609
12610 * coding.c: Change doc-string comments to `new style' [w/`doc:'
12611 keyword].
12612
12613 * eval.c (top_level_value, top_level_set): Remove commented and
12614 #ifdef'd-out code.
12615 (Fdefvar): Fix usage in doc-string.
12616
12617 2001-11-03 Richard M. Stallman <rms@gnu.org>
12618
12619 * xfns.c: Include unistd.h, if it exists.
12620
12621 * editfns.c: Move the include of ctype.h after unistd.h.
12622
12623 * gmalloc.c: Test BROKEN_PROTOTYPES.
12624
12625 2001-11-03 Ken Raeburn <raeburn@gnu.org>
12626
12627 * lisp.h (CHECK_STRING_CAR): New macro.
12628 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
12629 treating XCAR and XCDR as lvalues.
12630 (openp): Use CHECK_STRING_CAR.
12631 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
12632
12633 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
12634
12635 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
12636 (SIGMASKTYPE): Define.
12637
12638 * syssignal.h (sigunblock): Don't define if already defined.
12639
12640 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12641
12642 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
12643 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
12644 Fix typos in comments.
12645
12646 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
12647 and #ifdef'd-out code.
12648 Fix and reindent comments.
12649
12650 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
12651
12652 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
12653 argument `i' in macros.
12654
12655 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
12656 `i' in macros.
12657
12658 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
12659 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
12660 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
12661 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
12662 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
12663 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
12664 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
12665 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
12666 in macros.
12667
12668 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12669 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
12670 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
12671 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
12672 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
12673 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
12674 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
12675 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
12676 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
12677 (remove unused second argument).
12678
12679 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
12680
12681 * syntax.c (describe_syntax): New wrapper.
12682 (Finternal_describe_syntax_value): Rename from describe_syntax.
12683 Don't insert space at front and \n at the end.
12684 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
12685
12686 * regex.c (re_wctype): Try to fix some warnings.
12687 (regcomp, regexec): Don't forget the __restrict.
12688
12689 2001-11-02 Richard M. Stallman <rms@gnu.org>
12690
12691 * textprop.c (Fget_char_property): Doc fix.
12692
12693 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12694
12695 * process.c (Fstart_process): Add usage to doc-string.
12696
12697 * data.c (Fsetq_default): Ditto.
12698
12699 * callint.c (Finteractive): Ditto.
12700
12701 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
12702
12703 * macros.c: Don't include keymap.h any more.
12704
12705 2001-11-01 Richard M. Stallman <rms@gnu.org>
12706
12707 * data.c (Fmake_local_variable): Doc fix.
12708
12709 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
12710 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
12711
12712 * keymap.c (Fdescribe_buffer_bindings): Print character property
12713 bindings along with or instead of the buffer local map.
12714 Make the overriding maps override what they should.
12715
12716 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12717
12718 * window.c (grow_mini_window): Fix typo in comment.
12719
12720 2001-11-01 Gerd Moellmann <gerd@gnu.org>
12721
12722 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
12723 (XTset_vertical_scroll_bar): Likewise.
12724
12725 * xfns.c (x_build_heuristic_mask): Use four_corners_best
12726 instead of IMAGE_BACKGROUND.
12727
12728 * xfns.c (four_corners_best): Reindent.
12729
12730 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
12731 Handle :box so that it is possible to specify sexprs.
12732
12733 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
12734
12735 * s/hpux11.h: New file.
12736
12737 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12738
12739 * emacs.c (USAGE1): Show command line option --no-window-system
12740 instead of --no-windows in usage.
12741 (standard_args): Rename --no-windows to --no-window-system.
12742 (bug_reporting_address): Follow Emacs coding conventions.
12743
12744 * eval.c (Fcommandp): Doc fix.
12745 Change doc-string comments to `new style' [w/`doc:' keyword].
12746
12747 * frame.c (Fframe_live_p): Doc fix.
12748
12749 * buffer.c (selective-display-ellipses): Doc fix.
12750
12751 2001-10-31 Gerd Moellmann <gerd@gnu.org>
12752
12753 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
12754
12755 * xfaces.c (realize_x_face): If C is not a single-byte character,
12756 set the face's colors_copied_bitwise_p instead of the defaulted_p
12757 members which have a different meaning.
12758 (free_face_colors): Do nothing for a face whose colors have been
12759 copied bitwise.
12760
12761 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
12762
12763 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12764
12765 * marker.c, mocklisp.c: Change doc-string comments to `new style'
12766 [w/`doc:' keyword].
12767
12768 2001-10-31 Gerd Moellmann <gerd@gnu.org>
12769
12770 * fns.c (require_unwind): Return Lisp_Object.
12771
12772 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12773
12774 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
12775 (last-input-char): Revert doc-string to be the same as the
12776 doc-string of `last-input-event'.
12777
12778 * xdisp.c: Fix typos in comments.
12779
12780 2001-10-31 Gerd Moellmann <gerd@gnu.org>
12781
12782 * window.c (grow_mini_window): Handle case that the root
12783 window is already smaller than the nominal mininum height.
12784
12785 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
12786
12787 * emacs.c (main): Don't call keys_of_macros any more.
12788
12789 * lisp.h (keys_of_macros): Remove.
12790
12791 * macros.c (keys_of_macros): Remove.
12792
12793 * xfaces.c (Fface_attribute_relative_p): Declare args.
12794
12795 2001-10-30 Jason Rumney <jasonr@gnu.org>
12796
12797 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
12798 (enum_font_cb2): Ignore fonts with vertical orientation.
12799
12800 2001-10-30 Richard M. Stallman <rms@gnu.org>
12801
12802 * keyboard.c (Finput_pending_p): Doc fix.
12803
12804 2001-10-30 Gerd Moellmann <gerd@gnu.org>
12805
12806 * xterm.c (x_after_update_window_line): Don't run the code
12807 clearing in borders for rows whose visible height is 0.
12808
12809 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
12810 resized_p flag is set. If not set, use the much less flickering
12811 method previously used.
12812
12813 * dispnew.c (change_frame_size_1): Set frame's resized_p.
12814
12815 * frame.h (struct frame) <resized_p>: New member.
12816
12817 * lread.c (to_multibyte): Ensure read_buffer is at least twice
12818 as large as the number of bytes to convert.
12819
12820 * lread.c (to_multibyte): New function.
12821 (read1): Use it.
12822
12823 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
12824
12825 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
12826
12827 2001-10-30 Gerd Moellmann <gerd@gnu.org>
12828
12829 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
12830 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
12831 if the row's fill_line_p is set and drawing the last glyph with
12832 DRAW_IMAGE_{RAISED,SUNKEN}.
12833
12834 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
12835
12836 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
12837
12838 * xmenu.c: Include coding.h and charset.h.
12839 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
12840 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
12841 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
12842 Explicitly set wv->help. Use `TRUE' rather than `True'.
12843 (menu_help_callback): Use empty_string.
12844
12845 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
12846 (Fx_popup_dialog): Explicitly init f.
12847 (w32_menu_display_help): Use empty_string.
12848
12849 2001-10-29 Richard M. Stallman <rms@gnu.org>
12850
12851 * fns.c (Frequire): Detect recursive try to require the same
12852 feature 3 or more levels deep, and get error.
12853 (require_unwind): New subroutine.
12854 (require_nesting_list): New variable.
12855 (syms_of_fns): Init and staticpro it.
12856
12857 * print.c (print_object): Clarify indication of insertion type.
12858
12859 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
12860
12861 * coding.c (syms_of_coding): Document that locale-coding-system is
12862 used for decoding input on X.
12863
12864 * window.c (Fscroll_left, Fscroll_right): Doc fix.
12865
12866 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12867
12868 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
12869 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
12870
12871 2001-10-29 Gerd Moellmann <gerd@gnu.org>
12872
12873 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
12874 use NO_CURSOR if cursor_in_non_selected_windows is false.
12875
12876 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
12877 the slant attribute if FRAME is t.
12878
12879 * xfns.c (x_set_internal_border_width): Set frame garbaged
12880 when X window doesn't exist yet.
12881
12882 * xterm.c (x_after_update_window_line): Clear internal border
12883 in different circumstances.
12884
12885 * xterm.c (XTread_socket) <KeyPress>: Don't use
12886 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
12887 <handa@etl.go.jp>.
12888
12889 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
12890
12891 * m/ibms390.h: New file. From Adam Thornton
12892 <athornton@sinenomine.net>.
12893
12894 2001-10-28 Gerd Moellmann <gerd@gnu.org>
12895
12896 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
12897
12898 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
12899 a loop counter.
12900
12901 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12902
12903 * emacs.c: Use argv[0] instead of emacs when -t was specified.
12904
12905 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
12906 keyword].
12907 Fix typos in comments.
12908
12909 * emacs.c (bug_reporting_address): New function.
12910 Use it when displaying usage message.
12911
12912 * minibuf.c (read_minibuf): Remove unused external declaration of
12913 variable `Qread_only'.
12914
12915 * keymap.c (access_keymap): Remove unused variable `charset'.
12916
12917 2001-10-28 Miles Bader <miles@gnu.org>
12918
12919 * xfaces.c (merge_face_heights): Handle TO being relative as well.
12920 Remove #ifdef'd-out code.
12921 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
12922 (syms_of_xfaces): Initialize them.
12923
12924 2001-10-27 Jason Rumney <jasonr@gnu.org>
12925
12926 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
12927 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
12928 position using the system caret.
12929
12930 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
12931 (w32_system_caret_height, w32_system_caret_x)
12932 (w32_system_caret_y): New variables for tracking system caret.
12933 (w32_initialize): Initialize them.
12934 (x_display_and_set_cursor): Make system caret follow the active cursor.
12935
12936 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
12937 New messages types.
12938
12939 * w32term.c (note_mouse_highlight): Clear old help_echo.
12940
12941 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12942
12943 * xterm.c: Fix typo in a comment.
12944
12945 * emacs.c: Fix typos in comments.
12946 Remove unnecessary spaces.
12947 Change doc-string comments to `new style' [w/`doc:' keyword].
12948 (USAGE2): Fix typos in usage string.
12949
12950 * xterm.c: Fix typo in a comment.
12951
12952 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
12953 emacs.c.
12954
12955 2001-10-27 Gerd Moellmann <gerd@gnu.org>
12956
12957 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
12958 instead of 1/2 line_height in the heuristic for skipping
12959 farther backward when target_y was not reached.
12960
12961 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
12962 Display errno only if non-zero.
12963 (sound_warning): New function.
12964 (vox_configure): Don't treat failing to set sample rate as error.
12965 (various places): Improve error messages.
12966
12967 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
12968
12969 * fileio.c (Faccess_file): Run the argument filename through
12970 Fexpand_file_name, before using it.
12971
12972 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
12973 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
12974
12975 2001-10-26 Gerd Moellmann <gerd@gnu.org>
12976
12977 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
12978
12979 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
12980 Fix clearing in the case of scroll bars on the right.
12981
12982 2001-10-26 Juanma Barranquero <lektu@terra.es>
12983
12984 * w32gui.h (XImage): Add a dummy typedef.
12985
12986 2001-10-26 Gerd Moellmann <gerd@gnu.org>
12987
12988 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
12989
12990 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
12991
12992 * frame.c (Fframe_parameter): Fix last change.
12993
12994 * fileio.c: Revert last change (which removed old commented-out
12995 version of expand-file-name). Add a comment that explains why
12996 this old version should not be removed.
12997
12998 2001-10-25 Gerd Moellmann <gerd@gnu.org>
12999
13000 * frame.c (Fframe_parameter): Fix a bug whereby some
13001 ``artificial'' frame parameters, like `minibuffer' were not
13002 obtained by calling Fframe_parameters.
13003
13004 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
13005 cursor differently.
13006
13007 * xdisp.c (move_it_vertically_backward): Compute line height
13008 differently. Add heuristic to try to be more compatible to 20.x.
13009
13010 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
13011
13012 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
13013
13014 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
13015 boolean.
13016
13017 2001-10-25 Miles Bader <miles@gnu.org>
13018
13019 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
13020 BG is a pointer to a structure, not a structure.
13021 (gif_format, png_format): Add missing commas.
13022
13023 2001-10-24 Richard M. Stallman <rms@gnu.org>
13024
13025 * xfaces.c (Fface_attributes_as_vector): New function.
13026 (syms_of_xfaces): Defsubr it.
13027
13028 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13029
13030 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
13031 variable `area'.
13032
13033 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13034
13035 * search.c (scan_newline): Remove unused variable `selective_display'.
13036
13037 2001-10-25 Miles Bader <miles@gnu.org>
13038
13039 * dispextern.h (struct image): Add `background',
13040 `background_valid', and `background_transparent' fields.
13041 (image_background, image_background_transparent): New declarations.
13042 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
13043 * xfns.c (image_background, image_background_transparent)
13044 (four_corners_best): New functions.
13045 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13046 (gs_format): Add `:background' entry.
13047 (lookup_image): Set IMG's background color if specified.
13048 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13049 when appropriate.
13050 (x_clear_image_1): Reset `background_valid' and
13051 `background_transparent_valid' fields.
13052 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13053 calculating it here. Set IMG's background_transparent field.
13054 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13055 (enum png_keyword_index): Add PNG_BACKGROUND.
13056 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13057 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13058 (enum gif_keyword_index): Add GIF_BACKGROUND.
13059 (enum gs_keyword_index): Add GS_BACKGROUND.
13060 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13061 Pre-calculate image background color where necessary.
13062 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13063 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13064 color to use for image glyph reliefs.
13065
13066 2001-10-24 Gerd Moellmann <gerd@gnu.org>
13067
13068 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
13069 in full-width rows.
13070
13071 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13072 Fix clearing of area not covered by scroll bar.
13073
13074 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13075
13076 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
13077 and `real_start'.
13078 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
13079 (glyph_rect): Remove unused variable `area'.
13080
13081 2001-10-24 Gerd Moellmann <gerd@gnu.org>
13082
13083 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
13084
13085 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
13086 (row_containing_pos): Take additional argument DY.
13087 Treat rows ending in middle of char differently.
13088 (display_line): Handle tabs on window systems differently.
13089
13090 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
13091 with additional argument.
13092
13093 * dispextern.h (row_containing_pos): Adjust prototype.
13094
13095 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
13096 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
13097 (try_window_id, try_window_reusing_current_matrix)
13098 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
13099 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
13100
13101 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13102
13103 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
13104 gnuemacs).
13105 (HAVE_BOXES): Fix typo in comment.
13106 (push_menu_pane): Fix typo in comment.
13107
13108 * xdisp.c: (display_prop_string_p): Remove unused local declaration
13109 of `Qwhen'.
13110 (single_display_prop_string_p): Remove unused local declarations
13111 of `Qwhen' and `Qmargin'.
13112 (string_buffer_position): Remove unused variable `around'.
13113 (store_frame_title): Remove unused variable `width'.
13114
13115 * window.c: Don't define max.
13116 (coordinates_in_window): Remove unused variable `uy'.
13117
13118 * widget.c: Don't define max.
13119
13120 * process.c: Don't define max.
13121 (create_process): Remove unused variable `buffer'.
13122
13123 2001-10-23 Gerd Moellmann <gerd@gnu.org>
13124
13125 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
13126
13127 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
13128
13129 * xfaces.c (Finternal_set_lisp_face_attribute)
13130 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
13131 frame is on a windowed display.
13132
13133 2001-10-23 Gerd Moellmann <gerd@gnu.org>
13134
13135 * dispnew.c (sync_window_with_frame_matrix_rows):
13136 Fix handling of windows which aren't full-width, fix handling
13137 of marginal areas.
13138
13139 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
13140
13141 2001-10-23 Andreas Schwab <schwab@suse.de>
13142
13143 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
13144 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
13145
13146 2001-10-23 Gerd Moellmann <gerd@gnu.org>
13147
13148 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
13149 REAL_END. Notice if cursor gets overwritten.
13150 (notice_overwritten_cursor): Take X positions as parameters.
13151 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13152 around call to x_draw_glyphs.
13153
13154 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13155
13156 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
13157 instead of C) and usage.
13158
13159 * editfns.c (char-to-string): Fix argument names (use CHAR instead
13160 of C) and usage.
13161
13162 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
13163 `left', `max_width' and `max_height'.
13164
13165 2001-10-23 Gerd Moellmann <gerd@gnu.org>
13166
13167 * xdisp.c (display_line): For a tab continued to the next line,
13168 set row's ends_in_middle_of_char_p.
13169
13170 2001-10-22 Gerd Moellmann <gerd@gnu.org>
13171
13172 * xdisp.c (display_line): Fix computation of continuation lines
13173 width for TABs.
13174
13175 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13176
13177 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
13178 `Qlaplace'.
13179
13180 * fileio.c: Remove unused code.
13181
13182 2001-10-22 Miles Bader <miles@gnu.org>
13183
13184 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
13185 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
13186 Remove `DOC_STRINGS_IN_COMMENTS' cases.
13187
13188 2001-10-21 Jason Rumney <jasonr@gnu.org>
13189
13190 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
13191
13192 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
13193
13194 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
13195 (Finsert_string): Avoid the multi-line string literals warning.
13196
13197 2001-10-22 Miles Bader <miles@gnu.org>
13198
13199 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
13200 (Fdocumentation): Don't use it.
13201 (syms_of_doc): Don't initialize it.
13202
13203 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
13204 * print.c (Fwith_output_to_temp_buffer): Likewise.
13205 * window.c (Fsave_window_excursion): Likewise.
13206 * editfns.c (Fsave_excursion, Fsave_current_buffer)
13207 (Fsave_restriction): Likewise.
13208 * eval.c (Frun_hooks, Frun_hook_with_args)
13209 (Frun_hook_with_args_until_failure)
13210 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
13211 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
13212 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
13213 (Funwind_protect, Fcondition_case): Likewise.
13214 * coding.c (Ffind_operation_coding_system): Likewise.
13215 * keyboard.c (Ftrack_mouse): Likewise.
13216
13217 2001-10-21 Miles Bader <miles@gnu.org>
13218
13219 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
13220 (Fmake_hash_table): Add usage: string to doc string.
13221 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
13222 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
13223 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
13224 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
13225 (Fml_prefix_argument_loop): Likewise.
13226
13227 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13228
13229 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
13230
13231 * sysdep.c (init_sys_modes): Change doc-string comments to `new
13232 style' [w/`doc:' keyword].
13233
13234 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
13235 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
13236 comments to `new style' [w/`doc:' keyword].
13237
13238 2001-10-21 Jason Rumney <jasonr@gnu.org>
13239
13240 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
13241
13242 * w32term.c (remember_mouse_glyph): New function.
13243 (w32_mouse_position): Use it.
13244 (note_mouse_movement): If the mouse moved off the glyph, remember
13245 its new position.
13246
13247 * w32term.h (struct w32_output): Correct spelling of x_compatible.
13248 (w32_display_info): Add mouse_face_overlay.
13249
13250 * w32term.c (notice_overwritten_cursor): Renamed from
13251 note_overwritten_text_cursor. Rewritten to take glyph widths into
13252 account.
13253 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
13254 (fast_find_string_pos): New function.
13255 (fast_find_position): Return the correct vpos. Add parameter
13256 STOP. In the final row, stop before glyphs having STOP as object.
13257 Don't consider glyphs that are not from a buffer.
13258 (fast_find_position) [0]: Add a presumably more correct version
13259 for after 21.1.
13260 (expose_window_tree, expose_frame): Don't compute intersections here.
13261 (expose_window): Do it here instead.
13262 (expose_window_tree, expose_window, expose_line): Return 1 when
13263 overwriting mouse-face.
13264 (expose_window): If W is the window currently being updated, mark
13265 the frame garbaged.
13266 (expose_frame): If mouse-face was overwritten, redo it.
13267 (x_use_underline_position_properties): New variable.
13268 (syms_of_xterm): DEFVAR_BOOL it.
13269 (x_draw_glyph_string): Add comment to use it in future.
13270 (x_draw_glyph_string): Restore clipping after drawing box.
13271 Fix a computation of the underline position.
13272 (w32_get_glyph_string_clip_rect): Minor cleanup.
13273 (x_fill_stretch_glyph_string): Remove an assertion.
13274 (x_produce_glyphs): Don't convert multibyte characters
13275 to unibyte characters in unibyte buffers.
13276 (cursor_in_mouse_face_p): New function.
13277 (x_draw_stretch_glyph_string): Use it to choose a different GC
13278 when drawing a cursor within highlighted text. Don't draw
13279 background again if it has already been drawn.
13280 (x_draw_glyph_string_box): Don't draw a full-width
13281 box just because the glyph row's full_width_p flag is set.
13282 (x_draw_glyphs): Fix computation of rightmost x for
13283 full-width rows.
13284 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
13285 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
13286 change bottom shadow accordingly. Some cleanup.
13287 (x_update_window_end): Handle overwritten mouse face
13288 also for tool bar windows.
13289 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
13290 DRAW is DRAW_IMAGE_RAISED.
13291 (clear_mouse_face): Return 1 if text with mouse face was
13292 actually redrawn. Make the function static.
13293 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
13294 optimize away highlighting if we pass over that same overlay again.
13295 (note_mouse_highlight): Call mouse_face_overlay_overlaps
13296 to detect a case where we have to highlight a different region
13297 despite not having left the currently highlighted region.
13298 Set mouse_face_overlay in the x_display_info. Avoid changing the
13299 mouse pointer shape when show_mouse_face has already done it, or
13300 there is no need. Handle mouse-face and help-echo in strings.
13301 (glyph_rect): New function.
13302 (w32_mouse_position): Use it to raise the threshold for mouse
13303 movement event generation.
13304 (w32_initialize_display_info): Initialize the x_display_info's
13305 mouse_face_overlay.
13306 (w32_set_vertical_scroll_bar): Don't clear a zero height
13307 or width area.
13308 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
13309 a widget to zero height.
13310
13311 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
13312 Protect unibyte strings created by replacing their multibyte
13313 equivalents in menu_items.
13314 (w32_menu_show): Don't overwrite an item's name with its key
13315 description in case the description is a multibyte string.
13316 (single_submenu): Some cleanup.
13317
13318 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
13319 (postprocess_image): New function.
13320 (lookup_image): Call it for all image types except PostScript.
13321 (x_kill_gs_process): Call postprocess_image.
13322 (tiff_error_handler, tiff_warning_handler): New functions.
13323 (tiff_load): Install them as handlers.
13324 (x_kill_gs_process): Recognize if someone has cleared the image
13325 cache under us.
13326 (valid_image_p): Protect better against invalid image
13327 specifications. Previous code could signal an error.
13328 (Fx_hide_tip, Fshow_tip): Doc fix.
13329 (Fv_max_tooltip_size): New variable.
13330 (syns_of_xfns): DEFVAR_LISP it.
13331 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
13332 window buffer to *tip* right after creating the frame. Set frame's
13333 window_width. Use a maximum tooltip size specified by
13334 Vx_max_tooltip_size, if that has valid contents.
13335 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
13336 Make sure the tooltip is completely visible.
13337 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
13338 (Fx_create_frame): Adjust the frame's height for presence
13339 of the tool bar before calling x_figure_window_size.
13340 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
13341 when the window gets smaller.
13342 (x_set_foreground_color): Set frame's cursor_pixel.
13343 (x_set_foreground_color, x_set_background_color): Cleaned up.
13344 (x_set_font): Handle case of x_new_fontset returning the same name
13345 as before, although there was a change in fontsets.
13346
13347 2001-10-21 Miles Bader <miles@gnu.org>
13348
13349 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
13350 (Flogxor): Add usage: string to doc string.
13351 * charset.c (Fstring): Likewise.
13352 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
13353 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
13354
13355 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13356
13357 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
13358
13359 * alloc.c: Reindent DEFUNs with doc: keywords.
13360
13361 * abbrev.c (Finsert_abbrev_table_description): Reindent.
13362
13363 * frame.c: Change doc-string comments to `new style' [w/`doc:'
13364 keyword].
13365
13366 See ChangeLog.9 for earlier changes.
13367
13368 ;; Local Variables:
13369 ;; coding: iso-2022-7bit
13370 ;; End:
13371
13372 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
13373 Copying and distribution of this file, with or without modification,
13374 are permitted provided the copyright notice and this notice are preserved.
13375
13376 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4