aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorKenichi Handa2004-04-16 12:51:06 +0000
committerKenichi Handa2004-04-16 12:51:06 +0000
commit6b61353c0a0320ee15bb6488149735381fed62ec (patch)
treee69adba60e504a5a37beb556ad70084de88a7aab /src/ChangeLog
parentdc6a28319312fe81f7a1015e363174022313f0bd (diff)
downloademacs-6b61353c0a0320ee15bb6488149735381fed62ec.tar.gz
emacs-6b61353c0a0320ee15bb6488149735381fed62ec.zip
Sync to HEAD
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog2723
1 files changed, 2712 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6c92bf7cd88..c9cf12dc159 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,2703 @@
12004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2
3 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4 Add hyperlink to Elisp manual to the docstring.
5
62004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * callint.c (fix_command): Use XDCR.
9
102004-04-14 Nick Roberts <nick@nick.uklinux.net>
11
12 * window.c (Fget_lru_window): Doc fix.
13
142004-04-14 Kim F. Storm <storm@cua.dk>
15
16 * editfns.c (Fformat): Fix allocation size of precision array.
17
18 * dispnew.c (update_window): Only set changed_p if
19 scrolling_window actually did scroll.
20 (scrolling_window): Only return 1 if we actually did scroll.
21
22 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
23 height to glyph height when cursor row is not fully visible.
24 (make_cursor_line_fully_visible): Add FORCE_P arg to return
25 failure in case row is higher than window. Callers changed.
26 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
27 Try to scroll partially visible, higher-than-window cursor row.
28 (redisplay_window): Always try to scroll partially visible,
29 higher-than-window cursor row - both initially and again with
30 centering_position = 0.
31 Clear desired matrix before retrying with centering_position = 0.
32
332004-04-13 Joe Buehler <jbuehler@hekimian.com>
34
35 * sheap.c, unexcw.c: New files.
36
372004-04-12 Luc Teirlinck <teirllm@auburn.edu>
38
39 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
40 base buffer has been killed. Correct the error message if the
41 base buffer does not exist.
42
432004-04-12 Joe Buehler <jbuehler@hekimian.com>
44
45 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
46 Cygwin itself. Add support for Xaw3d scrollbars.
47
48 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
49
50 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
51
52 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
53 before Cygwin unexec.
54
55 * Makefile.in: Link changes for Cygwin unexec() support.
56
572004-04-12 Andreas Schwab <schwab@suse.de>
58
59 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
60
612004-04-11 Luc Teirlinck <teirllm@auburn.edu>
62
63 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
64 IGNORE argument equals NAME. Doc fix.
65
662004-04-11 Masatake YAMATO <jet@gyve.org>
67
68 * buffer.c (fix_start_end_in_overlays): Make overlays
69 empty if they are backwards.
70
712004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
72
73 * xfaces.c (face_color_supported_p): Fix compilation without X11.
74
752004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
76
77 * doc.c (Fsnarf_documentation): Ignore new file name entries.
78
792004-04-06 Kim F. Storm <storm@cua.dk>
80
81 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
82 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
83
84 * w32term.c (w32_read_socket): Set mouse_face_hidden after
85 clearing highlight.
86
87 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
88
89 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
90 clearing highlight.
91
92 * indent.c (vmotion): Do not reserve one column for continuation
93 marks on window frames.
94
952004-04-04 Eli Zaretskii <eliz@gnu.org>
96
97 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
98 from GCC.
99
1002004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
101
102 * .gdbinit-union: Remove.
103
104 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
105 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
106 ($nonvalbits): Remove.
107 ($valmask): Set it by calling xreload to avoid redundancy.
108
109 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
110 (gdb_emacs_intbits): Remove.
111
1122004-03-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
113
114 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
115
1162004-03-30 Kenichi Handa <handa@m17n.org>
117
118 * editfns.c (Fformat): Fix initialization of the array info.
119
1202004-03-30 Kim F. Storm <storm@cua.dk>
121
122 * xterm.c (x_mouse_click_focus_ignore_position): New var.
123 (syms_of_xterm): DEFVAR_BOOL it.
124 (ignore_next_mouse_click_timeout): New var.
125 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
126 Use it to filter mouse clicks following focus event.
127
1282004-03-29 David Ponce <david@dponce.com>
129
130 * callint.c (Fcall_interactively): Fix last change.
131
1322004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
133
134 * eval.c (Fcommandp): Simplify.
135
136 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
137 Extend to handle all kinds of functions.
138
139 * lisp.h (Finteractive_form): Declare.
140
141 * callint.c (Fcall_interactively): Use it.
142
1432004-03-26 Kim F. Storm <storm@cua.dk>
144
145 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
146 to catch errors in calc_pixel_width_or_height during redisplay.
147
1482004-03-26 Masatake YAMATO <jet@gyve.org>
149
150 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
151
152 * lisp.h (fix_start_end_in_overlays): Likewise.
153
154 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
155
156 * editfns.c (Ftranspose_regions): Likewise.
157
1582004-03-20 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
159
160 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
161
1622004-03-19 Richard M. Stallman <rms@gnu.org>
163
164 * s/sol2-6.h: Delete previous change.
165
1662004-03-19 Kim F. Storm <storm@cua.dk>
167
168 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
169 to_charpos corresponds to newline in right fringe. Use local
170 BUFFER_POS_REACHED_P macro.
171
1722004-03-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
173
174 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
175 to compile on non-window system.
176
1772004-03-19 Kim F. Storm <storm@cua.dk>
178
179 * dispextern.h (calc_pixel_width_or_height): Add prototype.
180
181 * image.c (Qcenter): Move to xdisp.c.
182
183 * xdisp.c (Qcenter): Declare here.
184 (syms_of_xdisp): Intern and staticpro it.
185 (handle_single_display_prop): Allow space display property on all
186 platforms.
187 (display_mode_line): Set mode_line_p before displaying line.
188 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
189 handling. Remove complex cases for fringes and scroll-bars.
190 Add left, right, and center alignment positions. Add text (area)
191 width/height. Return width or height for image specs.
192 (produce_stretch_glyph): Improve handling of :align-to. Is now
193 relative to left of text area by default, but other base offsets
194 can be specified -- also for text lines.
195
196 * term.c (produce_glyphs): Handle IT_STRETCH.
197 (produce_stretch_glyph): New function to handle space width and
198 align-to display properties on non-window systems.
199
2002004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
201
202 * fileio.c (Fread_file_name): Set completion-ignore-case for
203 case-insensitive systems.
204
2052004-03-14 Masatake YAMATO <jet@gyve.org>
206
207 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
208 when keymap and cursor are setup.
209
2102004-03-14 Steven Tamm <steventamm@mac.com>
211
212 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
213
2142004-03-14 Kim F. Storm <storm@cua.dk>
215
216 * dispextern.h (x_find_image_file): Add prototype.
217
218 * image.c (x_find_image_file): Make extern.
219
220 * xfns.c (x_find_image_file): Remove prototype.
221
2222004-03-13 Eli Zaretskii <eliz@gnu.org>
223
224 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
225
226 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
227
2282004-03-12 Richard M. Stallman <rms@gnu.org>
229
230 * fns.c (internal_equal): New arg PROPS controls comparing
231 text properties. All callers changed.
232 (Fequal_including_properties): New function.
233 (syms_of_fns): defsubr it.
234
2352004-03-12 Kim F. Storm <storm@cua.dk>
236
237 Fix image support on MAC. From YAMAMOTO Mitsuharu.
238
239 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
240 (image_background, image_background_transparent): Fix prototypes.
241
242 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
243
244 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
245 (x_query_font, x_find_ccl_program, x_set_window_size)
246 (x_make_frame_visible, mac_initialize, XCreatePixmap)
247 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
248 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
249
250 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
251 (x_query_font, x_find_ccl_program, x_set_window_size)
252 (x_make_frame_visible, mac_initialize, XCreatePixmap)
253 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
254 (mac_draw_line_to_pixmap): Add prototypes.
255
2562004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
257
258 * macterm.c (XTread_socket): Fix mouse click on tool bar.
259
2602004-03-11 Kim F. Storm <storm@cua.dk>
261
262 * dispextern.h: Move image related prototypes from xfns.c section
263 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
264 HAVE_X_WINDOWS.
265
266 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
267 Move gtkutil.o to new GTK_OBJ list.
268 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
269 (GTK_OBJ) [USE_GTK]: New declaration.
270 (obj): Add $(GTK_OBJ) to list.
271
2722004-03-11 Steven Tamm <steventamm@mac.com>
273
274 * image.c [MAC_OSX]: Include sys/stat.h
275
276 * macfns.c (syms_of_macfns): Remove definitions of things now
277 defined in image.c
278
2792004-03-11 Kim F. Storm <storm@cua.dk>
280
281 The following changes consolidates the identical/similar image
282 support code previously found in xfns.c, w32fns.c, and macfns.c
283 into a new file image.c.
284
285 * makefile.w32-in (OBJ1): Add image.o.
286 ($(BLD)/image.$(O)): Add dependencies.
287
288 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
289 (image.o): Add dependencies.
290
291 * image.c: New file with consolidated image support code.
292 (COLOR_TABLE_SUPPORT): New define to control whether
293 color table support is available (X only).
294 (Bitmap_Record): Common name for x_bitmap_record,
295 w32_bitmap_record, and mac_bitmap_record.
296 (XImagePtr): Common name for pointer to XImage or equivalent.
297 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
298 to XImagePtr on X+MAC, and to HDC on W32.
299 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
300 (NO_PIXMAP): Common name for "None" or equivalent.
301 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
302 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
303 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
304 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
305 Define with suitable equivalents on W32 and MAC for code sharing.
306 (XDrawLine): Define on MAC for code sharing.
307 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
308 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
309 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
310 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
311 (x_reference_bitmap, x_create_bitmap_from_data)
312 (x_create_bitmap_from_file, x_destroy_bitmap)
313 (x_destroy_all_bitmaps, x_create_bitmap_mask)
314 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
315 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
316 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
317 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
318 (define_image_type, lookup_image_type, valid_image_p)
319 (image_error, enum image_value_type, struct image_keyword)
320 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
321 (make_image, free_image, prepare_image_for_display, image_ascent)
322 (four_corners_best, image_background, image_background_transparent)
323 (x_clear_image_1, x_clear_image, x_alloc_image_color)
324 (make_image_cache, free_image_cache, clear_image_cache)
325 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
326 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
327 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
328 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
329 (init_image_func_pointer, image_load_quartz2d)
330 (struct ct_color, init_color_table, free_color_table)
331 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
332 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
333 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
334 (x_disable_image, x_build_heuristic_mask)
335 (XBM support, XPM support, PBM support, PNG support, JPEG support)
336 (TIFF support, GIF support, Ghostscript support): Consolidate image
337 code from xfns.c, w32fns.c, and macfns.c.
338 (syms_of_image): Consolidate image related symbol setup here.
339 (init_image): Consolidate image related initializations here.
340
341 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
342 and init_image. Remove call to init_xfns.
343
344 * macterm.h (struct mac_bitmap_record): Add file member.
345 Not currently used, but simplifies code sharing.
346
347 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
348 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
349 (x_reference_bitmap, x_create_bitmap_from_data)
350 (x_create_bitmap_from_file, x_destroy_bitmap)
351 (x_destroy_all_bitmaps, x_create_bitmap_mask)
352 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
353 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
354 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
355 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
356 (define_image_type, lookup_image_type, valid_image_p)
357 (image_error, enum image_value_type, struct image_keyword)
358 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
359 (make_image, free_image, prepare_image_for_display, image_ascent)
360 (four_corners_best, image_background, image_background_transparent)
361 (x_clear_image_1, x_clear_image, x_alloc_image_color)
362 (make_image_cache, free_image_cache, clear_image_cache)
363 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
364 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
365 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
366 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
367 (init_image_func_pointer, image_load_quartz2d)
368 (struct ct_color, init_color_table, free_color_table)
369 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
370 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
371 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
372 (x_disable_image, x_build_heuristic_mask)
373 (XBM support, XPM support, PBM support, PNG support, JPEG support)
374 (TIFF support, GIF support, Ghostscript support): Merge with image
375 code from xfns.c and macfns.c into image.c.
376 (syms_of_xfns): Move image related symbols to image.c.
377 (init_external_image_libraries, init_xfns): Remove; initialization
378 moved to init_image in image.c.
379
380 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
381 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
382 (x_reference_bitmap, x_create_bitmap_from_data)
383 (x_create_bitmap_from_file, x_destroy_bitmap)
384 (x_destroy_all_bitmaps, x_create_bitmap_mask)
385 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
386 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
387 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
388 (define_image_type, lookup_image_type, valid_image_p)
389 (image_error, enum image_value_type, struct image_keyword)
390 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
391 (make_image, free_image, prepare_image_for_display, image_ascent)
392 (four_corners_best, image_background, image_background_transparent)
393 (x_clear_image_1, x_clear_image, x_alloc_image_color)
394 (make_image_cache, free_image_cache, clear_image_cache)
395 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
396 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
397 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
398 (struct ct_color, init_color_table, free_color_table)
399 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
400 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
401 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
402 (x_disable_image, x_build_heuristic_mask)
403 (XBM support, XPM support, PBM support, PNG support, JPEG support)
404 (TIFF support, GIF support, Ghostscript support): Merge with image
405 code from xfns.c and macfns.c into image.c.
406 (syms_of_xfns): Move image related symbols to image.c.
407 (init_external_image_libraries, init_xfns): Remove; initialization
408 moved to init_image in image.c.
409
410 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
411 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
412 (x_reference_bitmap, x_create_bitmap_from_data)
413 (x_create_bitmap_from_file, x_destroy_bitmap)
414 (x_destroy_all_bitmaps, x_create_bitmap_mask)
415 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
416 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
417 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
418 (define_image_type, lookup_image_type, valid_image_p)
419 (image_error, enum image_value_type, struct image_keyword)
420 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
421 (make_image, free_image, prepare_image_for_display, image_ascent)
422 (four_corners_best, image_background, image_background_transparent)
423 (x_clear_image_1, x_clear_image, x_alloc_image_color)
424 (make_image_cache, free_image_cache, clear_image_cache)
425 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
426 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
427 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
428 (struct ct_color, init_color_table, free_color_table)
429 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
430 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
431 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
432 (x_disable_image, x_build_heuristic_mask)
433 (XBM support, XPM support, PBM support, PNG support, JPEG support)
434 (TIFF support, GIF support, Ghostscript support): Merge with
435 w32fns.c and macfns.c image code into image.c.
436 (syms_of_xfns): Move image related symbols to image.c.
437 (init_xfns): Remove; initialization moved to init_image in image.c.
438
439 * lisp.h (syms_of_image, init_image): Add protoypes.
440 (init_xfns): Remove prototype.
441
442 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
443 (x_reference_bitmap, x_create_bitmap_from_data)
444 (x_create_bitmap_from_file, x_destroy_bitmap)
445 (x_create_bitmap_mask): Move prototypes from dispextern.h.
446 (gamma_correct) [MAC_OS]: Add prototype.
447
448 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
449 (x_reference_bitmap, x_create_bitmap_from_data)
450 (x_create_bitmap_from_file, x_destroy_bitmap)
451 (x_create_bitmap_mask): Move prototypes to dispextern.h.
452
4532004-03-09 Kenichi Handa <handa@etlken2>
454
455 * coding.c (decode_coding_emacs_mule): Handle insufficent source
456 correctly.
457
4582004-03-04 Richard M. Stallman <rms@gnu.org>
459
460 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
461
462 * window.c (Fdisplay_buffer): Doc fix.
463
464 * buffer.c (Fpop_to_buffer): Doc fix.
465
4662004-03-03 Kim F. Storm <storm@cua.dk>
467
468 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
469
4702004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
471
472 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
473
4742004-03-02 Richard M. Stallman <rms@gnu.org>
475
476 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
477
4782004-03-02 Kenichi Handa <handa@m17n.org>
479
480 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
481
4822004-03-02 Kim F. Storm <storm@cua.dk>
483
484 * window.h (struct window): New member overlay_arrow_bitmap.
485
486 * window.c (make_window): Initialize overlay_arrow_bitmap.
487
488 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
489 implement and integrate multiple overlay arrows with redisplay.
490 (syms_of_xdisp): DEFVAR_LISP and initialize it.
491 (last_arrow_position, last_arrow_string): Replace by properties.
492 (Qlast_arrow_position, Qlast_arrow_string)
493 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
494 (syms_of_xdisp): Intern and staticpro them.
495 (overlay_arrow_string_or_property, update_overlay_arrows)
496 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
497 (overlay_arrow_at_row): New functions for multiple overlay arrows.
498 (redisplay_internal): Use them instead of directly accessing
499 Voverlay_arrow_position etc. for multiple overlay arrows.
500 (mark_window_display_accurate): Use update_overlay_arrows.
501 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
502 (try_window_id): Use overlay_arrows_changed_p.
503 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
504 (display_line): Use overlay_arrow_at_row to check multiple
505 overlay arrows, and get relevant overlay-arrow-string and
506 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
507 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
508 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
509
510 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
511 (update_window_fringes): Remove unused code.
512
5132004-03-01 Jason Rumney <jasonr@gnu.org>
514
515 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
516
5172004-03-01 Juanma Barranquero <lektu@terra.es>
518
519 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
520
521 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
522
5232004-03-01 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
524
525 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
526 how many colors can be displayed.
527
5282004-03-01 Kenichi Handa <handa@m17n.org>
529
530 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
531 correctly.
532
5332004-02-28 Kim F. Storm <storm@cua.dk>
534
535 * dispnew.c (update_window): Update header line also if there are
536 no other changes in window (move code after set_cursor label).
537
538 * lisp.h (mark_window_display_accurate): Remove prototype.
539
540 * window.c (window_loop, Fforce_window_update): Force mode line
541 updates by setting prevent_redisplay_optimizations_p and
542 update_mode_lines.
543
5442004-02-28 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
545
546 * xfns.c (x_window): Fix indentation.
547
548 * xterm.c (x_calc_absolute_position): Call x_real_positions
549 to get WM window sizes and use those to calculate position.
550 (x_set_offset): Remove code commented out.
551
5522004-02-28 Miles Bader <miles@gnu.org>
553
554 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
555
5562004-02-28 Kim F. Storm <storm@cua.dk>
557
558 * keyboard.c (kbd_buffer_store_event_hold): New function to store
559 an event into kbd fifo, but with special handling of quit event;
560 a quit event is saved for later, and further events are discarded
561 until the saved quit event has been processed.
562 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
563 (gen_help_event): Store help event in kbd fifo.
564 (NREAD_INPUT_EVENTS): Remove.
565 (read_avail_input): Adapt to new read_socket_hook interface.
566 Remove allocation and initialization of local input_event buffer,
567 as read_socket_hook stores events directly in fifo. Allocate and
568 initialize local hold_quit event to handle postponed quit event
569 (and store it if set by kbd_buffer_store_event_hold).
570
571 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
572 (gen_help_event): Fix prototype.
573
574 * macterm.c (XTread_socket): Remove bufp_r and
575 numcharsp args. Add hold_quit arg.
576 Rework to use just one, local, inev input_event. Store inev
577 directly in fifo using kbd_buffer_store_event_hold.
578
579 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
580 (read_input_waiting): Adapt to new read_socket_hook interface.
581 Remove allocation and initialization of local input_event buffer,
582 as read_socket_hook stores events directly in fifo. Allocate and
583 initialize local hold_quit event to handle postponed quit event
584 (and store it if set by kbd_buffer_store_event_hold).
585
586 * term.c (read_socket_hook): Fix arg list.
587
588 * termhooks.h (read_socket_hook): Fix prototype.
589
590 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
591 numcharsp args. Add hold_quit arg.
592 Rework to use just one, local, inev input_event. Store inev
593 directly in fifo using kbd_buffer_store_event_hold.
594
595 * w32inevt.h (w32_console_mouse_position): Fix prototype.
596
597 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
598 Add hold_quit arg. Rework to use just one, local, inev
599 input_event. Store inev directly in fifo using
600 kbd_buffer_store_event_hold. Update count in one place.
601 Postpone call to gen_help_event until inev is stored; use new
602 local do_help for this.
603 Remove local emacs_event in handing of ButtonPress event; just use
604 inev instead (so no reason to copy it later).
605
606 * xsmfns.c (x_session_check_input): Remove numchars arg.
607
608 * xterm.c (x_focus_changed, x_detect_focus_change):
609 Remove numchars arg. Always store event into bufp arg.
610 Return nothing. Callers changed accordingly.
611 (glyph_rect): Simplify.
612 (STORE_KEYSYM_FOR_DEBUG): New macro.
613 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
614 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
615 (current_hold_quit) [USE_GTK]: Add.
616 (event_handler_gdk): Adapt to new handle_one_xevent.
617 (handle_one_xevent): Remove bufp_r and numcharsp args.
618 Add hold_quit arg. Rework to use just one, local, inev
619 input_event. Store inev directly in fifo using
620 kbd_buffer_store_event_hold. Update count in one place.
621 Postpone call to gen_help_event until inev is stored; use new
622 local do_help for this.
623 Simplify handling of keysyms (consolidate common code). Fix bug
624 where count was updated with nchars instead of nbytes.
625 Remove local emacs_event in handing of ButtonPress event; just use
626 inev instead (so no reason to copy it later).
627 Remove `out' label. Rename label `ret' to `done'; add various
628 `goto done' to clarify code flow in deeply nested blocks.
629 (x_dispatch_event): Simplify as handle_one_xevent now calls
630 kbd_buffer_store_event itself.
631 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
632 arg. Call handle_one_xevent with new arglist. Store event from
633 x_session_check_input in fifo.
634 [USE_GTK]: Setup current_hold_quit.
635 Decrement handling_signal before unblocking input.
636 (x_initialize) [USE_GTK]: Initialize current_count.
637
638 * xterm.h (x_session_check_input): Fix prototype.
639
6402004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
641
642 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
643
644 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
645 macgui.h).
646
647 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
648
649 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
650 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
651 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
652 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
653 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
654 (Bitmap): Remove typedef.
655 (Pixmap): Change int to GWorldPtr.
656
657 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
658
659 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
660 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
661 New #define to extract 16-bit depth color components from unsigned
662 long representation.
663 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
664 colors used for masks.
665 (struct mac_display_info): Add color_p. Remove n_cbits.
666
667 * macfns.c: Include sys/types.h and sys/stat.h.
668 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
669 Include QuickTime/QuickTime.h.
670 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
671 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
672 functions defined in macterm.c.
673 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
674 (ZPixmap): New #define for compatibility with xfns.c.
675 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
676 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
677 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
678 New functions.
679 (four_corners_best, x_create_x_image_and_pixmap)
680 (x_destroy_x_image, unwind_create_frame, x_disable_image)
681 (x_edge_detection, init_color_table, colors_in_color_table)
682 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
683 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
684 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
685 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
686 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
687 long mixup.
688 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
689 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
690 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
691 (x_set_cursor_type, Fxw_color_values, valid_image_p)
692 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
693 (x_alloc_image_color, clear_image_cache, lookup_image)
694 (x_find_image_file, xbm_read_bitmap_file_data)
695 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
696 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
697 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
698 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
699 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
700 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
701 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
702 #if 0.
703 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
704 #if 0. Free white_relief.gc and black_relief.gc.
705 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
706 New functions (from xfns.c).
707 (Fx_create_frame): Record unwind_create_frame.
708 (Fxw_display_color_p): Use dpyinfo->color_p.
709 (Fx_display_grayscale_p, Fx_display_planes): Don't use
710 dpyinfo->n_cbits.
711 (Fx_display_color_cells): Use dpyinfo->n_planes;
712 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
713 (Qheuristic, cross_disabled_images, emboss_matrix)
714 (laplace_matrix): New variables (from xfns.c).
715 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
716 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
717 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
718 (image_background_transparent): New function (from xfns.c).
719 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
720 (image_load_quicktime): Add declaration.
721 [MAC_OSX] (image_load_quartz2d): Likewise.
722 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
723 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
724 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
725 (xbm_load_image_from_file, x_laplace_read_row)
726 (x_laplace_write_row, pbm_read_file): Remove functions.
727 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
728 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
729 (colors_in_color_table): Sync with xfns.c (although not used).
730 (lookup_rgb_color): Don't lookup color table. Just do gamma
731 correction.
732 (COLOR_INTENSITY): New #define (from xfns.c).
733 (x_disable_image): New function (from xfns.c).
734 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
735 (x_build_heuristic_mask): Sync with xfns.c.
736 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
737 (HAVE_PBM): Remove #ifdef.
738 (pbm_load): Sync with xfns.c. Set img->width and img->height
739 before IMAGE_BACKGROUND.
740 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
741 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
742 Don't enclose with #if HAVE_PNG.
743 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
744 symbol _CGImageCreateWithPNGDataProvider is defined.
745 Otherwise use image_load_quicktime.
746 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
747 [HAVE_PNG] (png_load): Sync with xfns.c.
748 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
749 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
750 HAVE_JPEG.
751 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
752 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
753 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
754 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
755 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
756 (tiff_image_p, tiff_load): Don't enclose declarations with #if
757 HAVE_TIFF.
758 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
759 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
760 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
761 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
762 New functions (from xfns.c).
763 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
764 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
765 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
766 Don't enclose with #if HAVE_GIF.
767 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
768 animated gif. Otherwise use image_load_quicktime.
769 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
770 gif_DrawText to avoid conflict with QuickdrawText.h.
771 [HAVE_GIF] (gif_load): Sync with xfns.c.
772 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
773 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
774 Ghostscript is not supported yet).
775 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
776 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
777 cross_disabled_images (from xfns.c). Remove #if 0 for supported
778 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
779 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
780 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
781 HAVE_PNG. Call EnterMovies to support animated gifs.
782 Call init_image_func_pointer to bind a symbol
783 _CGImageCreateWithPNGDataProvider if it is defined.
784
785 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
786 (x_draw_bar_cursor): Sync declaration with xterm.c.
787 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
788 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
789 graphics).
790 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
791 (mac_draw_line_to_pixmap, XCreatePixmap)
792 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
793 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
794 New functions.
795 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
796 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
797 Cast bits to char *.
798 (reflect_byte): New function (from w32fns.c).
799 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
800 due to byte alignment.
801 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
802 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
803 (XSetForeground): Remove static (now used in macfns.c).
804 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
805 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
806 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
807 (x_draw_glyph_string_box, x_draw_image_foreground)
808 (x_draw_image_foreground_1, x_draw_image_glyph_string)
809 (x_draw_stretch_glyph_string, x_draw_glyph_string)
810 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
811 Sync with xterm.c.
812 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
813 than the xterm.c version when a strictly horizontal or vertical
814 line is drawn.
815 (XTset_terminal_window): Add static.
816 (x_make_frame_visible): Add UNBLOCK_INPUT.
817 (x_free_frame_resources): New funcion (from xterm.c).
818 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
819 occurs in tool bar area.
820 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
821 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
822 Initialize image cache.
823 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
824 Enclose unused functions with #if 0.
825 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
826 (decode_mac_font_name): New function to apply code conversions
827 from a mac font name to an XLFD font name according to its script code.
828 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
829 font name to a mac font name according to REGISTRY and ENCODING fields.
830 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
831 whose name starts with `.'.
832 (init_font_name_table): Use decode_mac_font_name. Add both
833 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
834 of a font is smJapanese.
835 (mac_do_list_fonts): New function to list fonts that match a given
836 pattern.
837 (x_list_fonts, XLoadQueryFont): Use it.
838 (XLoadQueryFont): Set rbearing field for each variable width
839 character to avoid needless redraw.
840 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
841
8422004-02-26 Kim F. Storm <storm@cua.dk>
843
844 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
845 as read_socket_hook handler on X aborts if buffer is too small
846 and W32 handler doesn't always check buffer limit.
847
848 * xdisp.c (handle_single_display_prop): Handle left-fringe and
849 right-fringe similar to a display margin image. Specifically,
850 the characters having the fringe prop are no longer shown, and
851 we use IT_IMAGE/next_element_from_image with image_id = -1 to
852 do this. Set fringe bitmap face_id in it->face_id.
853 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
854 still realize it->face (i.e. the fringe bitmap face).
855
8562004-02-25 Miles Bader <miles@gnu.org>
857
858 * xdisp.c (check_it): Check string/string_pos consistency.
859 (init_iterator): Initialize string-related fields properly.
860
8612004-02-11 Miles Bader <miles@gnu.org>
862
863 * xdisp.c (produce_image_glyph): Force negative descents to zero.
864
8652004-02-10 Miles Bader <miles@gnu.org>
866
867 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
868 BLOCK_INPUT can be nested, so it doesn't make much sense.
869
8702004-02-24 Michael Mauger <mmaug@yahoo.com>
871
872 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
873 (xbm_read_bitmap_data): Use unsigned char for image data.
874
8752004-02-23 Luc Teirlinck <teirllm@auburn.edu>
876
877 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
878
8792004-02-22 Jason Rumney <jasonr@gnu.org>
880
881 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
882 correctly over other bitmaps.
883
8842004-02-21 Eli Zaretskii <eliz@gnu.org>
885
886 * emacs.c (USAGE1): Split into two halves.
887 (USAGE2): Second half of the old USAGE1.
888 (USAGE3): Rename from USAGE2.
889 (USAGE4): Rename from USAGE3.
890
8912004-02-21 Juri Linkov <juri@jurta.org>
892
893 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
894 Fix --multibyte. Move --help, --version to USAGE2. Add alias
895 --file. Fix -f, -l. Sort options. Untabify.
896 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
897
8982004-02-19 Luc Teirlinck <teirllm@auburn.edu>
899
900 * category.c (Fdefine_category, Fcategory_docstring)
901 (Fget_unused_category, Fset_category_table)
902 (Fcategory_set_mnemonics): Doc fixes.
903
9042004-02-20 Kim F. Storm <storm@cua.dk>
905
906 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
907 The following changes are relative to the 2004-01-21 revision.
908 (NREAD_INPUT_EVENTS): Define as max number of input events to read
909 in one call to read_socket_hook. Value is 8.
910 (read_avail_input): Separate and rework handling of read_socket_hook
911 and non-read_socket_hook cases. Use smaller input_event buffer
912 in read_socket_hook case, and repeat if full buffer is read.
913 Use new local variable 'discard' to skip input after C-g.
914 In non-read_socket_hook case, just use a single input_event, and
915 call kbd_buffer_store_event on the fly for each character.
916
9172004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
918
919 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
920 Remove unused `gu' alternative.
921
9222004-02-19 Andreas Schwab <schwab@suse.de>
923
924 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
925 warning.
926
9272004-02-18 Kim F. Storm <storm@cua.dk>
928
929 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
930 Fix last change.
931
9322004-02-17 Kim F. Storm <storm@cua.dk>
933
934 * xdisp.c (fast_find_position): Fix return value of new version;
935 it was inverted compared to the 21.1 version.
936 (get_window_cursor_type): Don't look at glyph if NULL.
937 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
938
939 * keyboard.c: Rework previous change; it didn't consider that the
940 buf array was allocated on the stack.
941 (prev_read): Remove variable.
942 (read_avail_input_buf): New static event buffer array.
943 (in_read_avail_input): New static variable to handle re-entrancy.
944 (read_avail_input): Change buf to pinter to read_avail_input_buf.
945 Use in_read_avail_input to handle re-entrance; when re-entered,
946 fully initialize and use tmp_buf array instead of read_avail_input_buf.
947 Do not initialize read_avail_input_buf in full here; instead assume it
948 is always cleared on entry. To ensure that, we clear (just) the
949 entries that were used before we return.
950 (init_keyboard): Initialize read_avail_input_buf here.
951
9522004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
953
954 * cmds.c (Fend_of_line): Doc fix.
955
9562004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
957
958 * keyboard.c (prev_read): New static variable.
959 (read_avail_input): Use it to zero out only those slots in buf[]
960 that were used last time we were called.
961
9622004-02-16 Eli Zaretskii <eliz@gnu.org>
963
964 * Makefile.in (obj): Move fringe.o from here...
965 (XOBJ, MAC_OBJ): ...to here.
966
9672004-02-16 Stephen Eglen <stephen@gnu.org>
968
969 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
970
9712004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
972
973 * data.c (Fbyteorder):
974 * fringe.c (Fdefine_fringe_bitmap):
975 * xdisp.c (handle_single_display_prop):
976 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
977
9782004-02-16 Jason Rumney <jasonr@gnu.org>
979
980 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
981
9822004-02-15 Steven Tamm <steventamm@mac.com>
983
984 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
985 controlling emulation of a three button mouse with option and
986 command keys.
987 (Qreverse, mac_get_enumlated_btn): Handle the emulation
988 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
989
9902004-02-15 Kim F. Storm <storm@cua.dk>
991
992 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
993
994 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
995 Perform byte-swapping.
996
9972004-02-14 Kim F. Storm <storm@cua.dk>
998
999 * dispextern.h (struct draw_fringe_bitmap_params): Change member
1000 bits from char to short to facilitate wider bitmaps.
1001 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
1002 member.
1003
1004 * fringe.c (struct fringe_bitmap): Change member bits from char to
1005 short to facilitate 16 bits wide bitmaps. Modify all standard
1006 bitmaps accordingly.
1007 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
1008 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
1009 (draw_fringe_bitmap): Ditto.
1010 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
1011 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
1012 handle up to 16 bits wide bitmaps.
1013 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
1014 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
1015
1016 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
1017 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
1018 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
1019
1020 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
1021 so it is no longer necessary to expand them here.
1022
1023 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
1024
10252004-02-12 Kim F. Storm <storm@cua.dk>
1026
1027 * window.c (Fwindow_fringes): Doc fix.
1028
10292004-02-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1030
1031 * xselect.c (x_get_foreign_selection): Add new optional parameter
1032 time_stamp.
1033 (Fx_get_selection_internal): Ditto, pass time_stamp to
1034 x_get_foreign_selection.
1035
1036 * data.c (Fbyteorder): New function.
1037
10382004-02-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1039
1040 * atimer.c: Move include stdio.h to same place as in other files.
1041
1042 * region-cache.c: Ditto.
1043
1044 * sysdep.c: Ditto.
1045
1046 * xfaces.c: Ditto.
1047
10482004-02-09 Sam Steingold <sds@gnu.org>
1049
1050 * w32term.c (w32_draw_fringe_bitmap): Fixed a typo in the last patch.
1051
10522004-02-09 Kim F. Storm <storm@cua.dk>
1053
1054 * fringe.c: New file. Move original fringe related declarations
1055 and code from dispextern.h and xdisp.c here.
1056 Rework code to support user defined fringe bitmaps, redefining
1057 standard bitmaps, ability to overlay user defined bitmap with
1058 overlay arrow bitmap, and add faces to bitmaps.
1059 (Voverflow_newline_into_fringe): Declare here.
1060 (enum fringe_bitmap_align): New enum.
1061 (..._bits): All bitmaps are now defined without bitswapping; that
1062 is now done in init_fringe_once (if necessary).
1063 (standard_bitmaps): New array with specifications for the
1064 standard fringe bitmaps.
1065 (fringe_faces): New array.
1066 (valid_fringe_bitmap_id_p): New function.
1067 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
1068 (draw_fringe_bitmap): New function which draws fringe bitmap,
1069 possibly overlaying bitmap with cursor in right fringe or the
1070 overlay arrow in the left fringe.
1071 (update_window_fringes): Do not handle overlay arrow here.
1072 Compare and copy fringe bitmap faces.
1073 (init_fringe_bitmap): New function.
1074 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
1075 define and destroy user defined fringe bitmaps.
1076 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
1077 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
1078 (syms_of_fringe): New function. Defsubr new DEFUNs.
1079 DEFVAR_LISP Voverflow_newline_into_fringe.
1080 (init_fringe_once, init_fringe): New functions.
1081 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
1082
1083 * Makefile.in (obj): Add fringe.o.
1084 (fringe.o): New dependencies.
1085
1086 * dispextern.h (FRINGE_ID_BITS): New definition for number of
1087 bits allocated to hold a fringe number. Increase number of bits
1088 from 4 to 8 to allow user defined fringe bitmaps.
1089 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
1090 left_user_fringe_face_id, right_user_fringe_bitmap,
1091 right_user_fringe_face_id.
1092 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
1093 Move to new file fringe.c.
1094 (MAX_FRINGE_BITMAPS): Define here.
1095 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
1096 and overlay_p. Change member which to int.
1097 (struct redisplay_interface): New members define_fringe_bitmap
1098 and destroy_fringe_bitmap.
1099 (valid_fringe_bitmap_id_p): Add prototype.
1100 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
1101
1102 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
1103 arrows.
1104 (update_frame): Do flush_display if force_flush_display_p to
1105 ensure display (specifically fringes) are updated in a timely
1106 manner when resizing the frame by dragging the mouse.
1107 (update_window_line): Update row if overlay arrow changed.
1108 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
1109 or overlay arrow changed.
1110
1111 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
1112 syms_of_fringe, and init_fringe.
1113
1114 * frame.h (struct frame): New member force_flush_display_p.
1115
1116 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
1117 Add prototypes.
1118
1119 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
1120 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
1121 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
1122 Use cursor color for displaying cursor in fringe.
1123 (x_redisplay_interface): Add null handlers for
1124 define_fringe_bitmap and destroy_fringe_bitmap functions.
1125
1126 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
1127 xterm.c to handle overlayed fringe bitmaps and to use cursor color
1128 for displaying cursor in fringe.
1129 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
1130 specific functions to define and destroy fringe bitmaps in fringe_bmp.
1131 (w32_redisplay_interface): Add them to redisplay_interface.
1132 (w32_term_init): Call w32_init_fringe instead of explicitly
1133 defining fringe bitmaps in fringe_bmp array.
1134 (x_delete_display): Call w32_reset_fringes instead of explicitly
1135 destroying fringe bitmaps in fringe_bmp array.
1136
1137 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
1138 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
1139 (continued_bits, continuation_bits, ov_bits, first_line_bits)
1140 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
1141 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
1142 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
1143 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
1144 Move fringe handling vars and code to new file fringe.c.
1145 (handle_display_prop): Handle left-fringe and right-fringe
1146 display properties; store user fringe bitmaps in iterator.
1147 (move_it_in_display_line_to): Handle cursor in fringe at eob.
1148 (clear_garbaged_frames): Set force_flush_display_p if resized.
1149 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
1150 (display_line): Handle cursor in fringe at eob.
1151 (display_line): Set row user fringe bitmaps from iterator.
1152
1153 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
1154 Use cursor color for displaying cursor in fringe.
1155 (x_redisplay_interface): Add null handlers for
1156 define_fringe_bitmap and destroy_fringe_bitmap functions.
1157
11582004-02-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1159
1160 * macfns.c (Fx_change_window_property): Make doc string and
1161 parameters same as for X version.
1162
1163 * w32fns.c (Fx_change_window_property): Ditto.
1164
11652004-02-07 Kim F. Storm <storm@cua.dk>
1166
1167 * xdisp.c (hscroll_window_tree): Position cursor near to right
1168 margin in hscrolled window when jumping to end of line (rather
1169 than centering cursor).
1170
1171 * process.c (wait_reading_process_input): Don't do adaptive read
1172 buffering if waiting for a specific process.
1173
11742004-02-05 Luc Teirlinck <teirllm@auburn.edu>
1175
1176 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
1177 (Fread_minibuffer, Feval_minibuffer)
1178 (Fread_string, Fread_no_blanks_input)
1179 (Fcompleting_read): Doc fixes.
1180 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
1181 completion-regexp-list. Define Qcase_fold_search and staticpro it.
1182 (read_minibuf): Fix initial comment.
1183 (Ftry_completion, Fall_completions, Ftest_completion): Bind
1184 case-fold-serach to the value of completion-ignore-case when
1185 checking completion-regexp-list.
1186 (Fdisplay_completion_list): Make it handle arguments that are
1187 symbols. Doc fix.
1188
11892004-02-05 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1190
1191 * xterm.h: Add declaration of free_frame_menubar.
1192
1193 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
1194 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
1195 (Fx_change_window_property): Add declaration of parameters type and
1196 format. Remove unused variable cons.
1197
1198 * xselect.c: Include stdio,h.
1199
12002004-02-05 Kenichi Handa <handa@m17n.org>
1201
1202 * fns.c (Fset_char_table_range): Fix previous change.
1203
1204 * buffer.c (Fset_buffer_multibyte): Fix docstring.
1205
12062004-02-04 Luc Teirlinck <teirllm@auburn.edu>
1207
1208 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
1209
12102004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
1211
1212 * keymap.c (Vmouse_events): Rename from Vmenu_events.
1213 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
1214
12152004-02-04 Kenichi Handa <handa@m17n.org>
1216
1217 * fns.c (Fset_char_table_range): Handle charsets ascii,
1218 eight-bit-control, and eight-bit-graphic correctly.
1219
12202004-02-03 Jason Rumney <jasonr@gnu.org>
1221
1222 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
1223
1224 * w32fns.c (x_to_w32_font): Likewise.
1225
12262004-02-03 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1227
1228 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
1229 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
1230
1231 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
1232 ClientMessages.
1233
1234 * xselect.c: Include termhooks.h and X11/Xproto.h
1235 (x_check_property_data, x_fill_property_data)
1236 (x_property_data_to_lisp, mouse_position_for_drop)
1237 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
1238 (Fx_send_client_event): Move here from xfns.c.
1239 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
1240
1241 * xfns.c (x-send-client-message): Move to xselect.c
1242 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
1243 OUTER_P.
1244 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
1245 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
1246 if vector_ret_p is true.
1247 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
1248
12492004-02-02 Eli Zaretskii <eliz@gnu.org>
1250
1251 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
1252 basename of FILE relative to it, not FILE itself.
1253
12542004-02-02 Kenichi Handa <handa@m17n.org>
1255
1256 * coding.c (coding_restore_composition): Check invalid
1257 composition data more rigidly.
1258
12592004-01-30 Luc Teirlinck <teirllm@auburn.edu>
1260
1261 * fileio.c (Fread_file_name_internal): Correctly handle the case
1262 where insert-default-directory is nil.
1263 (Fread_file_name): Always return an empty string if the user exits
1264 with an empty minibuffer. Adapt the docstring accordingly.
1265 (syms_of_fileio): Adapt the docstring of insert-default-directory
1266 to the change in Fread_file_name.
1267
12682004-01-29 Eli Zaretskii <eliz@gnu.org>
1269
1270 * alloca.c [!alloca]: Fix the prototype for xfree.
1271
12722004-01-29 Kenichi Handa <handa@m17n.org>
1273
1274 * fns.c (string_char_to_byte): Optimize for ASCII only string.
1275 (string_byte_to_char): Likewise.
1276
12772004-01-28 Peter Runestig <peter@runestig.com>
1278
1279 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
1280
12812004-01-27 Steven Tamm <steventamm@mac.com>
1282
1283 * unexmacosx.c (unexec_copy): Do not copy more than was
1284 requested to prevent overwriting during unexec.
1285
12862004-01-27 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1287
1288 * process.c (sigchld_handler): Add comment about not calling malloc.
1289
1290 * process.h: Add extern to synch_process_termsig.
1291
12922004-01-27 Steven Tamm <steventamm@mac.com>
1293
1294 * macterm.c (make_mac_frame, make_mac_terminal_frame):
1295 Move setting of scroll bars from make_mac_frame to
1296 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
1297
12982004-01-26 Richard M. Stallman <rms@gnu.org>
1299
1300 * search.c (Freplace_match): Handle nonexistent
1301 back-references properly.
1302
13032004-01-03 Richard M. Stallman <rms@gnu.org>
1304
1305 * window.c (decode_any_window): New function.
1306 (Fwindow_height, Fwindow_width, Fwindow_edges)
1307 (Fwindow_pixel_edges, Fwindow_inside_edges)
1308 (Fwindow_inside_pixel_edges): Use decode_any_window.
1309
13102004-01-27 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1311
1312 * process.h: synch_process_termsig new variable.
1313
1314 * callproc.c: Define synch_process_termsig.
1315 (Fcall_process): Initiate synch_process_termsig to zero and
1316 check if non-zero and get signal name after subprocess has ended.
1317
1318 * process.c (sigchld_handler): Set synch_process_termsig
1319 if terminated by a signal. synch_process_death setting removed.
1320
1321 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
1322
13232004-01-26 Andreas Schwab <schwab@suse.de>
1324
1325 * print.c (print_preprocess): Declare size as EMACS_INT to not
1326 lose bits.
1327 (print_object): Likewise.
1328 * alloc.c (Fpurecopy): Likewise.
1329
13302004-01-25 Luc Teirlinck <teirllm@auburn.edu>
1331
1332 * window.c (Fwindow_minibuffer_p): Doc fix.
1333
13342004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
1335
1336 * editfns.c (Fformat): Make both passes accept the same set of flags.
1337
13382004-01-23 Kenichi Handa <handa@m17n.org>
1339
1340 * fns.c (Fmd5): If OBJECT is a buffer different from the current
1341 one, set buffer to OBJECT temporarily.
1342
13432004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1344
1345 * keyboard.c (kbd_buffer_gcpro): Remove.
1346 (kbd_buffer_store_event, clear_event, Fdiscard_input)
1347 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
1348 Don't initialize and/or maintain the variable any more. It was made
1349 redundant by my commit of 2003-06-15.
1350
1351 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
1352
13532004-01-21 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1354
1355 * lisp.h: Add undef DECL_ALIGN.
1356
13572004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1358
1359 * process.c (wait_reading_process_input) [SYNC_INPUT]:
1360 Check interrupt_input_pending explicitly.
1361
1362 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
1363
1364 * keyboard.c (handle_async_input): New fun,
1365 extracted from input_available_signal.
1366 (input_available_signal, reinvoke_input_signal): Use it.
1367
13682004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
1369
1370 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
1371
1372 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
1373 manipulation macros for when tags are in the lower bits.
1374 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
1375 (DECL_ALIGN): New macro.
1376 (DEFUN): Use it.
1377
1378 * lisp.h [ENABLE_CHECKING]: Don't force union type.
1379
1380 * s/darwin.h (__attribute__): Remove outdated workaround.
1381
1382 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
1383
1384 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
1385 Don't check range of malloc address.
1386 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
1387
1388 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
1389
1390 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
1391
13922004-01-19 Kenichi Handa <handa@m17n.org>
1393
1394 * fontset.c (fontset_font_pattern): Fix previous change.
1395
13962004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
1397
1398 * xdisp.c (Voverflow_newline_into_fringe)
1399 (move_it_in_display_line_to, redisplay_internal)
1400 (update_window_fringes, redisplay_window, display_line, window):
1401 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
1402 that it compiles without a window-system.
1403 * dispnew.c (direct_output_for_insert, update_window): Likewise.
1404
14052004-01-16 Kim F. Storm <storm@cua.dk>
1406
1407 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
1408
1409 * buffer.c (init_buffer_once): Set buffer_defaults and
1410 buffer_local_flags for indicate_buffer_boundaries.
1411 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
1412 default- variable for it.
1413
1414 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
1415 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
1416 New members exact_window_width_line_p and cursor_in_fringe_p for
1417 overflowing newlines into right fringe.
1418 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
1419 and indicate_bottom_line_p for buffer boundaries and scrolling.
1420 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
1421 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
1422 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
1423 and HOLLOW_SQUARE_BITMAP.
1424 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
1425 Add prototypes.
1426
1427 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
1428 instead of related indicator fields.
1429 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
1430 (direct_output_for_insert): Handle exact width lines like
1431 contined lines. Call update_window_fringes.
1432 (update_window): Call update_window_fringes.
1433 (scrolling_window): Don't skip desired rows with changed bitmaps.
1434 Check if fringe bitmaps changes when assigning scrolled rows.
1435
1436 * xdisp.c (Voverflow_newline_into_fringe): New variable.
1437 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
1438 (move_it_in_display_line_to): Overflow newline into fringe for
1439 rows that are exactly as wide as the window.
1440 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
1441 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
1442 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
1443 (fringe_bitmaps): Add new bitmaps.
1444 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
1445 Select proper bitmap for cursor in fringe when appropriate.
1446 Handle alignment of bitmap to top or bottom of row.
1447 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
1448 done by update_window_fringes.
1449 (update_window_fringes, draw_window_fringes): New functions.
1450 (redisplay_internal): Call update_window_fringes in case only
1451 cursor row is updated.
1452 (redisplay_window): Call update_window_fringes.
1453 Explicitly call draw_window_fringes if redisplay was done using
1454 the current matrix or the overlay arrow is in the window.
1455 (try_window_reusing_current_matrix): Mark scrolled rows for
1456 fringe update (to update buffer-boundaries / scrolling icons).
1457 (find_last_unchanged_at_beg_row): Handle exact width lines line
1458 continued lines.
1459 (display_line): Overflow newline into fringe for rows that are
1460 exactly as wide as the window. Don't append space for newline
1461 in this case.
1462 (notice_overwritten_cursor): Explicitly clear cursor bitmap
1463 in fringe as if it had been overwritten.
1464 (erase_phys_cursor): Erase cursor bitmap in fringe.
1465 (syms_of_xdisp): Mark show-trailing-whitespace and
1466 void-text-area-pointer as user options.
1467 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
1468
1469 * xterm.c (x_update_window_end): Call draw_window_fringes.
1470 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1471 in row instead of actually drawing fringe bitmaps.
1472 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1473 (x_draw_window_cursor): Draw cursor in fringe.
1474
1475 * w32term.c (x_update_window_end): Call draw_window_fringes.
1476 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1477 in row instead of actually drawing fringe bitmaps.
1478 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1479 (w32_draw_window_cursor): Draw cursor in fringe.
1480
1481 * macterm.c (x_update_window_end): Call draw_window_fringes.
1482 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1483 in row instead of actually drawing fringe bitmaps.
1484 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1485 (mac_draw_window_cursor): Draw cursor in fringe.
1486
14872004-01-16 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1488
1489 * xterm.c (handle_one_xevent): Don't handle characters that are part
1490 of an old style (XLookupString) compose sequence.
1491
14922004-01-15 Kenichi Handa <handa@m17n.org>
1493
1494 * search.c (Freplace_match): Use make_multibyte_string or
1495 make_unibyte_string according to the buffer multibyteness.
1496
14972004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
1498
1499 * alloc.c (struct interval_block, struct string_block)
1500 (struct symbol_block, struct marker_block, live_string_p)
1501 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
1502 Better preserve alignment for objects in blocks.
1503 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
1504
1505 * lread.c (defvar_per_buffer): Remove dead declaration.
1506
1507 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
1508 space size.
1509
15102004-01-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1511
1512 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
1513 if a key press should pop down. Only pop down if a key is pressed
1514 outside the menu/dialog.
1515 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
1516 popup_get_selection.
1517 (create_and_show_dialog): Pass 1 for down_on_keypress to
1518 popup_get_selection.
1519
15202004-01-11 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1521
1522 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
1523 BLOCK/UNBLOCK_INPUT.
1524
15252004-01-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1526
1527 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
1528 specified.
1529
15302004-01-08 Kenichi Handa <handa@m17n.org>
1531
1532 * editfns.c (Fformat): Fix '&' to '&&'.
1533
15342004-01-08 Andreas Schwab <schwab@suse.de>
1535
1536 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
1537 size if PSEUDOVECTOR_FLAG is set.
1538
15392004-01-07 Kenichi Handa <handa@m17n.org>
1540
1541 * charset.c (Fdeclare_equiv_charset): Fix docstring.
1542
1543 * fontset.c (fontset_ref_via_base): Fix previous change.
1544
15452004-01-07 Kim F. Storm <storm@cua.dk>
1546
1547 * process.c (read_process_output): Only activate adaptive
1548 buffering if we read less than 256 bytes at a time.
1549
15502004-01-06 Kim F. Storm <storm@cua.dk>
1551
1552 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
1553 object and image object. Return glyph width and height.
1554 (mode_line_string, marginal_area_string): Ditto.
1555
1556 * dispextern.h (buffer_posn_from_coords, mode_line_string)
1557 (marginal_area_string): Fix prototypes.
1558
1559 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
1560 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
1561 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
1562
1563 * keyboard.c (make_lispy_position): Use modified mode_line_string,
1564 buffer_posn_from_coords, and marginal_area_string functions to
1565 include both string object and image object in the lispy position.
1566 Also add actual glyph width and height to position.
1567 (read_key_sequence): Use real buffer position from mouse
1568 event to find keymap property even when click is in marginal area.
1569
1570 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
1571 mode_line_string and marginal_area_string functions to handle
1572 both string object and image object properties.
1573
15742004-01-06 Andreas Schwab <schwab@suse.de>
1575
1576 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
1577 character.
1578
15792004-01-02 Andreas Schwab <schwab@suse.de>
1580
1581 * macterm.c (emacs_options, x_initialized, same_x_server):
1582 Remove unused (and duplicated) definitions.
1583
15842004-01-02 Kim F. Storm <storm@cua.dk>
1585
1586 * process.h (struct Lisp_Process): New members for adaptive read
1587 buffering: adaptive_read_buffering, read_output_delay, and
1588 read_output_skip.
1589
1590 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
1591 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
1592 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
1593 (process_output_delay_count, process_output_skip): New vars.
1594 (Vprocess_adaptive_read_buffering): New variable.
1595 (make_process): Initialize adaptive read buffering members.
1596 (Fstart_process): Set adaptive_read_buffering member.
1597 (deactivate_process): Cleanup adaptive read buffering.
1598 (wait_reading_process_input): Temporarily omit delayed
1599 subprocesses from the set of file descriptors to read from;
1600 adjust the select timeout if we skipped any subprocesses.
1601 (read_process_output): Increase adaptive read buffering delay if
1602 we read less than a full buffer; reduce delay when we read a
1603 full buffer.
1604 (send_process): Simplify using local Lisp_Process var.
1605 Reset adaptive read buffering delay after write.
1606 (init_process): Initialize process_output_delay_count and
1607 process_output_skip.
1608 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
1609
16102004-01-01 Jason Rumney <jasonr@gnu.org>
1611
1612 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
1613
16142003-12-30 Luc Teirlinck <teirllm@auburn.edu>
1615
1616 * print.c (Ferror_message_string): Add hyperlink in the docstring
1617 to the definition of `signal' in the Elisp manual.
1618 * eval.c (Fsignal): Ditto.
1619
16202003-12-29 James Clark <jjc@jclark.com> (tiny change)
1621
1622 * fns.c (internal_equal): Return t for two NaN arguments.
1623
16242003-12-29 Richard M. Stallman <rms@gnu.org>
1625
1626 * data.c (store_symval_forwarding): Handle setting
1627 default-fill-column, etc., by changing the value in
1628 buffers that use the default.
1629
1630 * minibuf.c (Fset_minibuffer_window): Doc fix.
1631
1632 * fileio.c (choose_write_coding_system): Ignore auto_saving
1633 if using the visited file for auto saves.
1634 (Fwrite_region): Don't update SAVE_MODIFF
1635 if auto-saving in visited file.
1636
16372003-12-29 Kenichi Handa <handa@m17n.org>
1638
1639 * dispextern.h (face_font_available_p): Extern it.
1640
1641 * fontset.c (Voverriding_fontspec_alist): New variable.
1642 (lookup_overriding_fontspec): New function.
1643 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
1644 (fontset_font_pattern): Likewise.
1645 (regulalize_fontname): New function.
1646 (Fset_fontset_font): Call regulalize_fontname.
1647 (Fset_overriding_fontspec_internal): New function.
1648 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
1649 Defsubr Sset_overriding_fontspec_internal.
1650
1651 * xfaces.c (face_font_available_p): New function.
1652
16532003-12-28 Richard M. Stallman <rms@gnu.org>
1654
1655 * buffer.c (Fother_buffer): Don't crash if BUF is nil
1656 or if its name is nil.
1657
1658 * buffer.c (Fkill_buffer): Don't delete auto-save file
1659 if it's the same as the visited file.
1660
16612003-12-28 Luc Teirlinck <teirllm@auburn.edu>
1662
1663 * coding.c (Fcheck_coding_system): Doc fix.
1664
16652003-12-28 Kim F. Storm <storm@cua.dk>
1666
1667 * Makefile.in (eval.o): Depend on dispextern.h.
1668
1669 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
1670 image glyph using image's ascent.
1671 (mode_line_string): Return image glyph as object clicked on.
1672 Adjust y0 for image glyph using image's ascent.
1673
1674 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
1675 (struct glyph): New members, ascent and descent. Used to save
1676 this glyph's ascent and descent, instead of having.
1677 (struct glyph): Declare member face_id using FACE_ID_BITS.
1678 (find_hot_spot): Add prototype.
1679
1680 * keyboard.c (Qimage): Remove extern (now in lisp.h).
1681 (QCmap): Declare extern.
1682 (make_lispy_position): When position is inside image hot-spot,
1683 use hot-spot element's id as posn element.
1684
1685 * lisp.h (IMAGEP): New macro to test for image object type.
1686 (Qimage): Declare extern.
1687
1688 * macfns.c (Qimage): Remove extern (now in lisp.h).
1689 (valid_image_p, parse_image_spec): Use IMAGEP macro.
1690
1691 * macterm.c (Qface, Qmouse_face): Remove unused externs.
1692
1693 * w32fns.c (Qimage): Remove extern (now in lisp.h).
1694 (valid_image_p, parse_image_spec): Use IMAGEP macro.
1695
1696 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
1697
1698 * w32term.c (Qface, Qmouse_face): Remove unused externs.
1699
1700 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
1701 pointer types.
1702 (Qrelative_width, Qalign_to): Remove unused variables.
1703 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
1704 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
1705 image maps.
1706 (x_y_to_hpos_vpos): Return glyph relative coordinates through
1707 new dx and dy args.
1708 Remove buffer_only_p arg (always 0). Simplify code accordingly.
1709 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
1710 than row's ascent and height, to get sensible height on tall rows.
1711 (build_desired_tool_bar_string): Remove Qimage extern.
1712 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
1713 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
1714 image glyph is alone on the last line.
1715 (append_glyph, append_composite_glyph, produce_image_glyph)
1716 (append_stretch_glyph): Set glyph's ascent and descent.
1717 (on_hot_spot_p): New function to check if position is inside an
1718 rectangular, circular, or polygon-shaped image hot-spot,
1719 (find_hot_spot): New function to search for image hot-spot.
1720 (Flookup_image_map): New defun to search for image hot-spot.
1721 (define_frame_cursor1): New aux function to determine frame pointer.
1722 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1723 Handle `pointer' text property and :pointer image property to
1724 control frame pointer shape. Detect image hot-spots for pointer
1725 and help_echo properties. Use define_frame_cursor1.
1726 (note_mouse_highlight): Use Vvoid_text_area_pointer.
1727 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
1728 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
1729
1730 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
1731
1732 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
1733 (Qimage): Remove extern (now in lisp.h).
1734 (valid_image_p, parse_image_spec): Use IMAGEP macro.
1735
1736 * xmenu.c (show_help_event): Remove unused code.
1737
1738 * xterm.c (Qface, Qmouse_face): Remove unused externs.
1739 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
1740 row's ascent and descent, to get a sensible height on tall rows.
1741
17422003-12-25 Luc Teirlinck <teirllm@auburn.edu>
1743
1744 * minibuf.c (Fcompleting_read): Undo previous change.
1745
17462003-12-25 Lars Hansen <larsh@math.ku.dk>
1747
1748 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
1749 Arguments GCPRO'ed in call to file name handler.
1750
17512003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
1752
1753 * termcap.c (tgetst1): Scan for "%pN"; if all
1754 N are continuous in [1,9], remove all "%pN".
1755
17562003-12-24 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1757
1758 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
1759
1760 * xfaces.c (lface_fully_specified_p): Take into account that
1761 MAC OS always have unspecified stipple.
1762
17632003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
1764
1765 * tparam.c (tparam1): Add handling for `%pN', which
1766 means use param N for the next substitution.
1767
17682003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
1769
1770 * xfaces.c (Fcolor_gray_p): Fix omission bug:
1771 In case `frame' is nil, consult the selected frame.
1772 (Fcolor_supported_p): Likewise.
1773
17742003-12-23 Luc Teirlinck <teirllm@auburn.edu>
1775
1776 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
1777 Doc fixes.
1778
1779 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
1780 and an integer. Adapt the introductory comment accordingly.
1781 (Fread_from_minibuffer): Delete code moved into read_minibuf.
1782 Doc fix.
1783 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
1784 read_minibuf.
1785 (Fcompleting_read): Delete code moved into read_minibuf.
1786 (Ftest_completion): Make it handle obarrays and hash tables correctly.
1787
17882003-12-03 Kenichi Handa <handa@m17n.org>
1789
1790 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
1791 encoding sequence.
1792
17932003-12-01 Kenichi Handa <handa@m17n.org>
1794
1795 * composite.c (syms_of_composite): Don't make the compostion hash
1796 table week.
1797
17982003-11-30 Luc Teirlinck <teirllm@auburn.edu>
1799
1800 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
1801 * textprop.c (Fget_char_property_and_overlay): New function.
1802 (syms_of_textprop): Defsubr it.
1803
18042003-11-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1805
1806 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
1807 to compile on terminal configuration.
1808
1809 * fileio.c (Fread_file_name): Check use_file_dialog also before
1810 calling Fx_file_dialog.
1811
1812 * fns.c: use_file_dialog: New variable.
1813 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
1814
18152003-11-29 Kim F. Storm <storm@cua.dk>
1816
1817 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
1818 (syms_of_msdos): Don't intern and staticpro them.
1819
18202003-11-27 Kim F. Storm <storm@cua.dk>
1821
1822 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
1823 coordinates relative to glyph at posn. If glyph is an image,
1824 return that as object at posn. Callers changed.
1825 (mode_line_string, marginal_area_string): Calculate and return
1826 pixel coordinates relative to glyph. Callers changed.
1827
1828 * dispextern.h (buffer_posn_from_coords, mode_line_string)
1829 (marginal_area_string): Fix prototypes.
1830 (window_box_left_offset, window_box_right_offset): Add prototypes.
1831
1832 * frame.h (get_specified_cursor_type, get_window_cursor_type):
1833 Remove prototypes.
1834
1835 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
1836
1837 * keyboard.c (make_lispy_position): Add x and y coordinates
1838 relative to the current glyph as 7th element of position.
1839 If glyph is an image, return it in the object element.
1840 (read_key_sequence): Skip checks for keymap property in cases
1841 where POSN_STRING is not a string (e.g. an image).
1842
1843 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
1844 (Vshow_text_cursor_in_void): New variable.
1845 (glyph_to_pixel_coords): Don't use negative hpos.
1846 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
1847 (append_stretch_glyph): Change ascent arg to be actual value
1848 in pixels rather than ratio to height. Callers changed.
1849 (calc_pixel_width_or_height): New aux function, implementing
1850 pixel based artihmetic for glyph widths and heights.
1851 (produce_stretch_glyph): Use calc_pixel_width_or_height for
1852 :width, :height, :align-to, and :ascent, thus allowing these to
1853 be specified in pixels as well as multiples of characters.
1854 Don't produce stretch glyphs with zero width or height.
1855 (get_specified_cursor_type): Declare static.
1856 (get_window_cursor_type): Declare static. Add glyph arg to be
1857 able to know when cursor is on an image; always substitute
1858 hollow-box cursor for filled-box cursor on images, to avoid
1859 negative images and flicker when blinking the cursor.
1860 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
1861 (note_mode_line_or_margin_highlight): Use non-text cursor rather
1862 than vertical scroll-bar cursor in display margins.
1863 (note_mouse_highlight): Use non-text cursor rather than text
1864 cursor in fringes and over images in the text area.
1865 Use non-text cursor when mouse pointer is outside editable text,
1866 i.e. in the void after end-of-line or end-of-buffer; this was
1867 already done for W32, but is now standard for all systems --
1868 user can toggle show-text-cursor-in-void to get old behaviour.
1869 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
1870 Vdisplay_pixels_per_inch.
1871
18722003-11-25 Andreas Schwab <schwab@suse.de>
1873
1874 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
1875 EMACS_INT to not lose bits.
1876 (Ffillarray): Don't set bits beyond the size of a bool vector.
1877
18782003-11-25 Kim F. Storm <storm@cua.dk>
1879
1880 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
1881 define this defun on systems that cannot use stderr as lvalue.
1882
18832003-11-24 Gerd Moellmann <gerd@gnu.org>
1884
1885 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
1886 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
1887 ld's default is incompatible with unexec.
1888
18892003-11-23 Kim F. Storm <storm@cua.dk>
1890
1891 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
1892 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
1893 (Fforce_window_update): New defun.
1894 (syms_of_window): Defsubr it.
1895 (Fset_window_margins, Fset_window_fringes): Doc fix.
1896
1897 * print.c (Fredirect_debugging_output): New defun.
1898 (syms_of_print): Defsubr it.
1899
19002003-11-22 Luc Teirlinck <teirllm@auburn.edu>
1901
1902 * fns.c (Fset_char_table_parent): Doc fix.
1903
19042003-11-22 Kim F. Storm <storm@cua.dk>
1905
1906 * dispnew.c (buffer_posn_from_coords): Return actual row/column
1907 for glyph clicked on, rather than (unused) pixel positions.
1908 (mode_line_string, marginal_area_string): Change X and Y args to
1909 pointers for returning actual row/column for glyph clicked on.
1910 Simplify and optimize loops.
1911
1912 * dispextern.h (mode_line_string, marginal_area_string):
1913 Update prototypes.
1914
1915 * keyboard.c (make_lispy_position): New function for generating
1916 mouse click positions from frame and pixel coordinates.
1917 Enhanced to return buffer position and actual row/column for
1918 events outside the text area using updated mode_line_string and
1919 marginal_area_string functions.
1920 Return left-fringe and right-fringe clicks as such, rather than
1921 clicks in text area.
1922 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
1923 pixel_to_glyph_coords, as we never use the results.
1924 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
1925 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
1926 Eliminate unused code in WHEEL_EVENT handling.
1927 (make_lispy_movement): Use make_lispy_position.
1928
1929 * window.c (coordinates_in_window): Remove redundant tests.
1930 Fix returned X pixel value for left-margin.
1931
1932 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
1933 mode_line_string and marginal_area_string parameters.
1934
19352003-11-22 Lars Hansen <larsh@math.ku.dk>
1936
1937 * w32.c (struct the_group, getgrgid): Add.
1938 * mac.c (struct my_group, getgrgid): Add.
1939
19402003-11-21 Luc Teirlinck <teirllm@auburn.edu>
1941
1942 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
1943
19442003-11-21 Lars Hansen <larsh@math.ku.dk>
1945
1946 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
1947 include in call to file name handler. Optionally translate numeric
1948 UID and GID to strings. Update docstring.
1949 (directory_files_internal): Add parameter ID-FORMAT.
1950 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
1951 include in call to file name handler and call to
1952 directory_files_internal. Update Docstring.
1953 (Fdirectory_files): Add dummy parameter in call to
1954 directory_files_internal.
1955 * lisp.h (Qinteger): Add.
1956 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
1957 (Ffile_attributes): Add parameter.
1958 * data.c (Qinteger): Export.
1959
19602003-11-21 Luc Teirlinck <teirllm@auburn.edu>
1961
1962 * fns.c (Freverse, Fnreverse): Doc fixes.
1963
19642003-11-19 Kim F. Storm <storm@cua.dk>
1965
1966 * xdisp.c (init_iterator): Initialize it->start to position
1967 before reseating (in case start position is invisible).
1968 (init_to_row_start): Set it->start to row-start.
1969 (redisplay_window): Accept optional_new_start if start position
1970 is invisible (in which case IT_CHARPOS overshoots PT).
1971 (display_line): Setup row->start from it->start (rather than
1972 it->current which is wrong if first char on line is invisible).
1973 When done, reseat it->start to it->current (= start of next row).
1974 (expose_area): Fix exposure of text area when first char (e.g. TAB)
1975 is only partially visible.
1976
1977 * dispextern.h (struct it): New member start.
1978
19792003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1980
1981 * alloc.c (make_float, Fcons): Clear the markbit at init time.
1982 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
1983 of block_index outside of the macro call.
1984 (Fgarbage_collect): Remove null code.
1985
1986 * m/amdx86-64.h: Don't redefine XPNTR.
1987
1988 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
1989 of VALMASK.
1990
1991 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
1992 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
1993 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
1994
1995 * lisp.h (VALMASK): Only define for non-union type.
1996 (MARKBIT): Remove.
1997 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
1998 (XTYPE): Define unconditionally.
1999 (XSETTYPE): Remove one more remnant.
2000 (EQ): Define differently for the union and non-union cases.
2001 (INTMASK): New bit mask.
2002 (struct Lisp_Marker): Move down to prepare for upcoming patch.
2003 (GC_EQ): Delegate to EQ.
2004
2005 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
2006
20072003-11-17 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2008
2009 * xterm.c (x_window_to_scroll_bar): Move check of display to
2010 where window_id is compared.
2011
20122003-11-17 Kim F. Storm <storm@cua.dk>
2013
2014 * dispextern.h (struct it): New member first_vpos.
2015
2016 * xdisp.c (start_display): Set it->first_vpos.
2017 (try_window_id): Use first_vpos to start display in first _text_
2018 line if no reusable lines at start of window with header line.
2019
20202003-11-16 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2021
2022 * w32fns.c (XPutPixel):
2023 * w32bdf.c (w32_init_bdf_font):
2024 * sunfns.c (sel_read):
2025 * process.c (Fmake_network_process):
2026 * frame.c (store_frame_param):
2027 * fontset.c (Fset_fontset_font):
2028 * emacs.c (shut_down_emacs):
2029 * ccl.c (ccl_driver): Remove period at end of error message.
2030
2031 * config.in: Regenerate.
2032
2033 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2034 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2035 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
2036 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
2037 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
2038
2039 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
2040
2041 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
2042 (XTmouse_position, handle_one_xevent): Pass Display* to
2043 x_window_to_scroll_bar.
2044 (x_window_to_scroll_bar): Take a Display* argument.
2045 Check that display for frame is equal to Display* argument.
2046 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
2047 x_display_info_for_display instead. Use Display in xev instead
2048 of GDK_DISPLAY.
2049 (x_dispatch_event): Call x_display_info_for_display.
2050 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
2051 (x_connection_closed): Call xg_display_close for GTK.
2052 (x_term_init): Call xg_display_open for additional displays.
2053 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
2054 for GTK.
2055
2056 * xmenu.c (single_menu_item, mouse_position_for_popup)
2057 (x_activate_menubar): Formatting adjustments.
2058
2059 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
2060 adjustments.
2061
2062 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
2063 (xg_display_close, xg_create_default_cursor)
2064 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
2065 handling.
2066 (xg_left_ptr_cursor): Remove.
2067 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
2068 cursor here.
2069 (xg_win_to_widget): Take Display* argument, call
2070 gdk_xid_table_lookup_for_display.
2071 (xg_create_frame_widgets, xg_get_file_name, create_menus)
2072 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
2073 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
2074 in FRAME_X_DISPLAY_INFO.
2075 (xg_get_scroll_id_for_window): Take Display* argument.
2076 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
2077 (xg_initialize): Remove xg_left_ptr_cursor.
2078
2079 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
2080 Display* argument also. Declare xg_display_open,
2081 xg_display_close, xg_create_default_cursor.
2082
20832003-11-14 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2084
2085 * xterm.c (x_detect_focus_change): Do not change focus frame for
2086 Enter/LeaveNotify if the current focus frame has explicit focus.
2087
20882003-11-14 Kim F. Storm <storm@cua.dk>
2089
2090 * dispnew.c (update_text_area): Fix redisplay error when hscroll
2091 is active and first glyph is only partially visible.
2092
20932003-11-13 Kenichi Handa <handa@m17n.org>
2094
2095 * xdisp.c (select_frame_for_redisplay): New function.
2096 (redisplay_internal): Record also selected_frame for
2097 unwind_redisplay. Call select_frame_for_redisplay before
2098 redrawing each frame.
2099 (unwind_redisplay): Argument changed to a cons.
2100
21012003-11-12 Luc Teirlinck <teirllm@auburn.edu>
2102
2103 * fns.c (Fstring_to_multibyte): Doc fix.
2104
21052003-11-11 Kenichi Handa <handa@m17n.org>
2106
2107 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
2108
21092003-11-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2110
2111 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
2112 program specified positions.
2113
21142003-11-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2115
2116 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
2117
21182003-11-08 Kenichi Handa <handa@m17n.org>
2119
2120 * Makefile.in (lisp): Add kannada.el.
2121 (shortlisp): Likewise.
2122
21232003-11-07 Kenichi Handa <handa@m17n.org>
2124
2125 * coding.c (coding_allocate_composition_data):
2126 Reset coding->composing to COMPOSITION_NO.
2127 (coding_restore_composition): Detect invalid composition data.
2128 Give Fstring and Fvector a Lispy integer, not C int.
2129
21302003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
2131
2132 * floatfns.c (Flogb): Don't use VALMASK.
2133
2134 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
2135 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
2136
2137 * lisp.h (XINT): Move the cast to clarify what is going on.
2138 (GCTYPEMASK, XSETTYPE): Remove.
2139 (XGCTYPE): Make it an alias of XTYPE.
2140
21412003-11-03 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2142
2143 * xterm.c (x_term_init): Fix formatting.
2144
21452003-11-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2146
2147 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
2148 and xg_did_tearoff.
2149
2150 * gtkutil.c: Remove variable xg_did_tearoff.
2151 (xg_have_tear_offs): New function.
2152 (tearoff_remove): Just decrease xg_detached_menus.
2153 (tearoff_activate): Increase xg_detached_menus and call
2154 tearoff_remove when tearoff is removed.
2155 (xg_keep_popup): Remove function.
2156 (create_menus): Give add_tearoff_p as argument to recursive
2157 call to create_menus.
2158 (xg_create_widget): Use variables instead of multiple
2159 strcmp. Tell create_menus to create tear off only for
2160 menu bar menus.
2161 (xg_update_menubar): Change title for a detached menu also.
2162 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
2163 of deep_p.
2164 (xg_initialize): Initialize xg_detached_menus, remove
2165 initialization of xg_did_tearoff.
2166
2167 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
2168 xg_have_tear_offs returns non-zero.
2169 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
2170 call to xg_keep_popup.
2171
21722003-11-01 Andrew Choi <akochoi@shaw.ca>
2173
2174 * macterm.c (XTread_socket): Handle menubar selection and grow
2175 window only for mouseDown events.
2176
21772003-10-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2178
2179 * xterm.c (x_term_init): For GTK part, increase x_initialized
2180 to check for more than one display. Use error instead of return 0.
2181
21822003-10-31 Andrew Choi <akochoi@shaw.ca>
2183
2184 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
2185 (copy_dysymtab): Call it.
2186
21872003-10-31 Luc Teirlinck <teirllm@auburn.edu>
2188
2189 * eval.c (Fdefvaralias): Doc fix.
2190
21912003-10-26 Luc Teirlinck <teirllm@auburn.edu>
2192
2193 * data.c (Fsetplist): Doc fix.
2194
21952003-10-14 Lute Kamstra <lute@gnu.org>
2196
2197 * window.c (Fset_window_fringes): Clarify docstring.
2198
21992003-10-14 Kim F. Storm <storm@cua.dk>
2200
2201 * window.c (Fset_window_margins): Simplify arg checking.
2202
22032003-10-13 Richard M. Stallman <rms@gnu.org>
2204
2205 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
2206 (print_partial_compiled_pattern): Replace assert with a printout.
2207 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
2208
2209 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
2210
2211 * window.c (Fset_window_margins): Allow only integers as args.
2212 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
2213 Doc fixes.
2214
22152003-10-13 Lute Kamstra <lute@gnu.org>
2216
2217 * window.c (Fset_window_fringes): Elaborate docstring.
2218
22192003-10-12 Andrew Choi <akochoi@shaw.ca>
2220
2221 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
2222
2223 * s/darwin.h (GC_MARK_STACK): Define.
2224
22252003-10-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2226
2227 * window.c (shrink_windows): New function.
2228 (size_window): Call shrink_windows to calculate window sizes when
2229 shrinking frame with more than one window.
2230
22312003-10-12 Kim F. Storm <storm@cua.dk>
2232
2233 * xdisp.c (compute_fringe_widths): Doc fix.
2234
22352003-10-08 Kenichi Handa <handa@m17n.org>
2236
2237 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
2238
22392003-10-07 Kenichi Handa <handa@m17n.org>
2240
2241 * coding.c (Qcoding_system_define_form): New variable.
2242 (syms_of_coding): Intern and staticpro it.
2243 (Fcheck_coding_system): Try to autoload the definition of
2244 CODING-SYSTEM.
2245
22462003-10-05 Luc Teirlinck <teirllm@auburn.edu>
2247
2248 * fns.c (Frequire): Doc fix.
2249
22502003-10-05 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2251
2252 * xfns.c (Fx_send_client_event): New function as a base for
2253 manipulating extended window manager hints.
2254 (Fx_send_client_event): Remove unused variable s.
2255
2256 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
2257 that function is removed.
2258
2259 * xterm.c (x_set_offset): Use move_offset_left/top instead of
2260 x/y_pixels_outer_diff.
2261 (x_check_expected_move): Calculate move_offset_left/top.
2262
2263 * xterm.h (struct x_output): New members: move_offset_top/left.
2264
2265 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
2266 call x_set_offset directly.
2267
2268 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
2269
2270 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
2271
2272 * xterm.c (x_delete_display): Free font names and font_encoder
2273 in dpyinfo->font_table.
2274
2275 * xfns.c (Fx_close_connection): Only call XFreeFont here.
2276 Move xfree of font names to x_delete_display.
2277
2278 * xterm.h (struct x_display_info): New member, wm_type.
2279 (struct x_output): New members, expected_top/left and
2280 check_expected_move.
2281
2282 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
2283 is received.
2284 (handle_one_xevent): Rename x_check_expected_move from
2285 x_check_fullscreen_move.
2286 (x_set_offset): Only add WM decoration sizes to modified_top/left
2287 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
2288 (x_check_expected_move): Rename from x_check_fullscreen_move.
2289 Removed fullscreen specific code. Use check_expected_move,
2290 expected_left/top instead. Also, set wm_type.
2291 (x_term_init): Initialize wm_type to unknown.
2292
2293 * frame.c (x_fullscreen_move): Remove addition of WM decoration
2294 sizes to move_x/y.
2295
22962003-10-03 Kenichi Handa <handa@m17n.org>
2297
2298 * macterm.c (x_load_font): Clear all members of FONTP before start
2299 filling them.
2300
23012003-10-02 Kenichi Handa <handa@m17n.org>
2302
2303 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
2304 before calling find_ccl_program_func. Call find_ccl_program_func
2305 only when fontp->font_encoder is not NULL.
2306
2307 * xterm.c (x_load_font): Clear all members of FONTP before start
2308 filling them.
2309
23102003-10-03 John Paul Wallington <jpw@gnu.org>
2311
2312 * keymap.c (map_keymap): Don't abort when binding is a vector.
2313
23142003-10-02 Jason Rumney <jasonr@gnu.org>
2315
2316 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
2317 Sync dependencies with Makefile.in.
2318 (alloca.o): Remove.
2319
2320 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
2321 filling them.
2322
2323 * w32bdf.c (w32_load_bdf_font): Likewise.
2324
23252003-09-30 Richard M. Stallman <rms@gnu.org>
2326
2327 * term.c (set_tty_color_mode): Calculate current_mode_spec
2328 regardless of value of VAL.
2329
2330 * intervals.c (graft_intervals_into_buffer):
2331 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
2332 Handle over_used when splitting UNDER.
2333
23342003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2335
2336 * regex.c (regex_compile): Free the stack when returning from function.
2337
23382003-09-28 Kenichi Handa <handa@m17n.org>
2339
2340 * fontset.c (Finternal_char_font): Change return value to
2341 cons (FONT-NAME . GLYPH-CODE).
2342
23432003-09-28 Eli Zaretskii <eliz@gnu.org>
2344
2345 * term.c (tty_setup_colors): Treat any negative argument as -1.
2346
23472003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
2348
2349 * process.c (send_process): Delete unused temp_buf.
2350
23512003-09-26 Dave Love <fx@gnu.org>
2352
2353 * xterm.c (x_bitmap_mask): Declare.
2354
23552003-09-25 Dave Love <fx@gnu.org>
2356
2357 * Makefile.in (fns.o): Depend on md5.h.
2358
23592003-09-25 Kim F. Storm <storm@cua.dk>
2360
2361 * window.c (set_window_buffer): Fix redisplay problems when
2362 switching between buffers with different display margin widths.
2363
23642003-09-23 Kim F. Storm <storm@cua.dk>
2365
2366 * process.c (set_socket_option): Fix :bindtodevice option.
2367 (Fset_network_process_option): Update process contact list when
2368 setting option succeeds.
2369 (Fmake_network_process): Doc fix.
2370
23712003-09-23 Dave Love <fx@gnu.org>
2372
2373 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
2374
23752003-09-22 Eli Zaretskii <eliz@gnu.org>
2376
2377 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
2378 color mode is an integer number (it could be -1).
2379
23802003-09-22 Richard M. Stallman <rms@gnu.org>
2381
2382 * intervals.c (graft_intervals_into_buffer): Correct the main loop
2383 in the case where OVER is longer than UNDER.
2384
23852003-09-22 Masatake YAMATO <jet@gyve.org>
2386
2387 * window.c (Fset_window_scroll_bars): Validate the value of
2388 `vertical_type'.
2389
23902003-09-21 Kim F. Storm <storm@cua.dk>
2391
2392 * frame.c (Vdefault_frame_scroll_bars): New variable.
2393 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
2394 (syms_of_frame): DEFVAR_LISP it, and initialize according to
2395 window-system default scroll bar position.
2396
2397 * window.c (Fwindow_scroll_bars): Doc fix.
2398
23992003-09-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2400
2401 * xterm.c (x_set_offset): Take window manager decorations into account.
2402
24032003-09-19 Richard M. Stallman <rms@gnu.org>
2404
2405 * atimer.h: Don't include lisp.h.
2406 (P_): Define it here (as well as elsewhere).
2407
2408 * print.c (Fprin1_to_string): Move the PRINTPREPARE
2409 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
2410
2411 * data.c (Fvariable_binding_locus): New function.
2412 (syms_of_data): defsubr it.
2413 (Flocal_variable_p): Delete duplicate call to indirect_variable.
2414
24152003-09-18 Dave Love <fx@gnu.org>
2416
2417 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
2418
2419 * process.c (Fnetwork_interface_info): Fix type error.
2420 (Fnetwork_interface_list): Doc fix.
2421 (read_process_output, read_process_output): Delete unused var.
2422
24232003-09-17 Kim F. Storm <storm@cua.dk>
2424
2425 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
2426 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
2427 (Fnetwork_interface_info): Check that ifreq struct has required
2428 fields before accessing them; this requires that those fields are
2429 defined as macros, which may be too restrictive on some platforms,
2430 but it is better than failing on other platforms.
2431 (syms_of_process): Only defsubr above fns when included.
2432
24332003-09-17 Dave Love <fx@gnu.org>
2434
2435 * unexalpha.c: Don't include varargs.h.
2436
24372003-09-17 Kim F. Storm <storm@cua.dk>
2438
2439 * process.c (Fset_process_sentinel): Add sentinel to childp plist
2440 for network process.
2441 (socket_options): Add `:' prefix to option names. Add optbit field.
2442 (set_socket_option): Remove no_error arg and special handling of s < 0.
2443 Return 1<<optbit for known option, 0 for unknown.
2444 Do not interpret 0 as false for boolean option (only nil).
2445 Pass failed option and value to report_file_error.
2446 (Fset_network_process_options): Replace by Fset_network_process_option.
2447 (Fset_network_process_option): New function to set just one option.
2448 (Fmake_network_process): Allow :coding arg to be a cons.
2449 Allow :server arg to be an integer specifying backlog size.
2450 Remove :options arg, and allow options to be specified directly
2451 as :KEY, VALUE pairs. Parse these options before binding socket.
2452 As before, :reuseaddr t is default for a server process, but this
2453 can now be disabled by specifying :reuseaddr nil.
2454 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
2455 (init_process): Availability of network options is now checked with
2456 simpler syntax (featurep 'make-network-process :OPTION); use loop to
2457 setup features.
2458 (syms_of_process): Fix defsubr's for the replaced functions.
2459
24602003-09-16 Dave Love <fx@gnu.org>
2461
2462 * Makefile.in: Depend on coding.h.
2463
24642003-09-14 Kim F. Storm <storm@cua.dk>
2465
2466 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
2467 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
2468 (syms_of_process): Defsubr them.
2469
2470 * config.in: Regenerate.
2471
24722003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2473
2474 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
2475 * m/news-r6.h (XUNMARK): Remove.
2476 * m/mips.h (XUNMARK): Remove.
2477 * m/mips-siemens.h (XUNMARK): Remove.
2478 * m/iris4d.h (XUNMARK): Remove.
2479 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
2480
24812003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2482
2483 * lisp.h (VALBITS): Don't remove 1 for the markbit.
2484 (union Lisp_Object): Use unsigned int for types. Remove markbit.
2485 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
2486 (XTYPE): Use unsigned right-shift.
2487 (XMARKBIT, XMARK, XUNMARK): Remove.
2488
2489 * alloc.c (init_intervals, init_symbol, init_marker):
2490 Don't preallocate anything.
2491 (Fgarbage_collect, mark_object): Ignore the markbit.
2492
2493 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
2494
24952003-09-08 Lute Kamstra <lute@gnu.org>
2496
2497 * xdisp.c (pint2hrstr): New function.
2498 (decode_mode_spec): Add `%i' and `%I' specs.
2499 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
2500 for `mode-line-format'.
2501
25022003-09-07 Andreas Schwab <schwab@suse.de>
2503
2504 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
2505 avoid warning.
2506
25072003-09-07 Eli Zaretskii <eliz@gnu.org>
2508
2509 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2510
25112003-09-03 Kim F. Storm <storm@cua.dk>
2512
2513 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
2514 change (superseded by 2002-08-30 change); the default blink-off
2515 cursor is now again "no cursor".
2516
25172003-09-01 Jason Rumney <jasonr@gnu.org>
2518
2519 * makefile.w32-in (alloca.o): Remove.
2520 (coding.o): Depend on intervals.h
2521 (emacs.o, bytecode.o): Depend on window.h
2522
25232003-09-01 Dave Love <fx@gnu.org>
2524
2525 * Makefile.in (alloca.o): Remove commands.
2526 (coding.o): Depend on intervals.h composite.h window.h.
2527 (emacs.o): Depend on window.h keyboard.h keymap.h.
2528 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
2529 (bytecode.o): Depend on window.h.
2530
25312003-08-31 Jason Rumney <jasonr@gnu.org>
2532
2533 * w32term.c (w32_per_char_metric): Allow cached metrics to be
2534 returned even when font_type is unknown.
2535
2536 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
2537
25382003-08-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2539
2540 * xterm.c (x_term_init): Initialize new fields in x_display_info.
2541
2542 * xterm.h (struct x_display_info): Add red/green/blue_bits and
2543 *_offset.
2544
2545 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
2546 calculate pixel value.
2547
25482003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
2549
2550 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
2551 Don't tell redisplay display is accurate when it's actually been
2552 paused for pending input.
2553
25542003-08-29 Richard M. Stallman <rms@gnu.org>
2555
2556 * dispnew.c (adjust_glyph_matrix): Call window_box
2557 whenever W is nonzero.
2558
2559 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2560 (Fkill_local_variable, Fmake_variable_frame_local)
2561 (Flocal_variable_p, Flocal_variable_if_set_p):
2562 Use indirect_variable to trace thru variable aliases.
2563
2564 * config.in: Updated.
2565
2566 * callint.c (Fcall_interactively): Save and restore
2567 Vthis_command, Vthis_original_command, real_this_command,
2568 and current_kboard->Vlast_command.
2569
2570 * abbrev.c (Fexpand_abbrev): Insert before deleting.
2571
25722003-08-29 Gerd Moellmann <gerd@gnu.org>
2573
2574 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
2575
25762003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
2577
2578 * coding.c (decode_coding_iso2022): Initialize local variable c2.
2579 (decode_coding_sjis_big5): Likewise.
2580
25812003-08-27 Jason Rumney <jasonr@gnu.org>
2582
2583 * w32.c (sys_pipe): Protect against file descriptor overflow.
2584
2585 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
2586
2587 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
2588
25892003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
2590
2591 * xfns.c (Vgtk_version_string): New variable.
2592 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
2593
25942003-08-24 Eli Zaretskii <eliz@gnu.org>
2595
2596 * term.c (term_init): Remove `const' from buffer_size's declaration.
2597
2598 * Makefile.in (msdos.o): Depend on intervals.h.
2599
2600 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
2601
26022003-08-21 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2603
2604 * xterm.h (struct x_display_info): New fields: client_leader_window
2605 and Xatom_wm_client_leader.
2606
2607 * xterm.c (x_initialize): Move call to x_session_initialize to ...
2608 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
2609
2610 * xsmfns.c (create_client_leader_window): New function.
2611 (x_session_initialize): Call create_client_leader_window, take
2612 dpyinfo as argument.
2613
2614 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
2615
2616 * Makefile.in (xsmfns.o): Add more depenedencies.
2617
26182003-08-21 Dave Love <fx@gnu.org>
2619
2620 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
2621
26222003-08-21 Kenichi Handa <handa@m17n.org>
2623
2624 * term.c (term_init): Fix previous change; don't rely on the
2625 length of `buffer' if TERMINFO is defined.
2626
26272003-08-20 Dave Love <fx@gnu.org>
2628
2629 * atimer.h: Include lisp.h.
2630
2631 * lisp.h (EMACS_LISP_H): New.
2632 (popup_activated_flag): Don't declare.
2633
2634 * alloca.c: Some merging with gnulib. Change logic and doc
2635 concerning (x)malloc/(x)free -- no longer Emacs-specific.
2636 [DO_BLOCK_INPUT]: Don't include lisp.h.
2637 (xmalloc, xfree): Declare.
2638 (malloc): Don't declare.
2639
2640 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
2641 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
2642 atimer.h, blockinput.h.
2643
2644 * alloc.c (lisp_align_malloc): Change type of `aligned'.
2645
2646 * alloca.s: Removed.
2647
26482003-08-19 Gerd Moellmann <gerd@gnu.org>
2649
2650 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
2651 use -lncurses.
2652
2653 * term.c (term_init): Use a buffer of size 4096 for tgetent since
2654 FreeBSD returns something longer than 2044. Abort if the end of
2655 the buffer is overwritten.
2656
26572003-08-19 Miles Bader <miles@gnu.org>
2658
2659 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
2660
26612003-08-19 Gerd Moellmann <gerd@gnu.org>
2662
2663 * alloc.c (lisp_align_malloc): Check for memory full when
2664 allocating ablocks, which also avoids freeing a pointer into an
2665 ablocks structure.
2666
2667 * puresize.h (BASE_PURESIZE): Increase to 1100000.
2668
2669 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2670
26712003-08-16 Richard M. Stallman <rms@gnu.org>
2672
2673 * editfns.c (Fencode_time): Doc fix.
2674
26752003-08-16 David Ponce <david@dponce.com>
2676
2677 * fileio.c (Fwrite_region): Fix conditional expression to issue
2678 the right message.
2679
26802003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
2681
2682 * syntax.c (Fforward_word): Argument changed to optional.
2683 Set default value to 1.
2684
26852003-08-15 Kenichi Handa <handa@m17n.org>
2686
2687 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
2688 what autoscaled.
2689 (best_matching_font): Once we find a better scalable font, set
2690 non_scalable_has_exact_height_p to 1.
2691 (try_font_list): Call try_alternative_families to try any family
2692 with the given registry.
2693
26942003-08-09 Andreas Schwab <schwab@suse.de>
2695
2696 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
2697
2698 * print.c (print_string): Fix printing of multibyte string with
2699 nontrivial printcharfun.
2700
12003-07-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 27012003-07-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 2702
3 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2. 2703 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
@@ -38,8 +2738,7 @@
38 2738
392003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change) 27392003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
40 2740
41 * xfns.c (xic_set_preeditarea): Add the left fringe width to 2741 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
42 spot.x.
43 2742
442003-07-22 Stefan Monnier <monnier@cs.yale.edu> 27432003-07-22 Stefan Monnier <monnier@cs.yale.edu>
45 2744
@@ -600,7 +3299,7 @@
600 * gtkutil.c: Include keyboard.h, charset.h, coding.h. 3299 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
601 (xg_create_frame_widgets): Use ENCODE_UTF_8. 3300 (xg_create_frame_widgets): Use ENCODE_UTF_8.
602 3301
603 * xterm.c (Qutf_8): Moved to coding.c 3302 * xterm.c (Qutf_8): Move to coding.c
604 3303
605 * xmenu.c (ENCODE_MENU_STRING): New. 3304 * xmenu.c (ENCODE_MENU_STRING): New.
606 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show): 3305 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
@@ -1181,11 +3880,11 @@
1181 (draw_fringe_bitmap): Rework to handle per-window fringes and new 3880 (draw_fringe_bitmap): Rework to handle per-window fringes and new
1182 fringe vs. display margin position. 3881 fringe vs. display margin position.
1183 (hscroll_window_tree): Use window_box_width instead of window_box. 3882 (hscroll_window_tree): Use window_box_width instead of window_box.
1184 (redisplay_window): Adapt to per-window scroll bars. 3883 (redisplay_window): Adapt to per-window scroll bars.
1185 (draw_glyphs): Rework to handle per-window fringes and scroll 3884 (draw_glyphs): Rework to handle per-window fringes and scroll
1186 bars, and new fringe vs. display margin position. 3885 bars, and new fringe vs. display margin position.
1187 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left. 3886 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
1188 (x_clear_end_of_line): Adapt to per-window fringes and scroll 3887 (x_clear_end_of_line): Adapt to per-window fringes and scroll
1189 bars, and new fringe vs. display margin position. Fix bug which 3888 bars, and new fringe vs. display margin position. Fix bug which
1190 increased total width of full_width rows by width of scroll bars 3889 increased total width of full_width rows by width of scroll bars
1191 although window's total width already includes that. 3890 although window's total width already includes that.
@@ -2252,7 +4951,7 @@
2252 (w32_draw_window_cursor): New W32-specific functions for RIF. 4951 (w32_draw_window_cursor): New W32-specific functions for RIF.
2253 (w32_redisplay_interface): Add new members. 4952 (w32_redisplay_interface): Add new members.
2254 4953
2255 * w32gui.h (No_Cursor): Define as 0 for W32. 4954 * w32gui.h (No_Cursor): Define as 0 for W32.
2256 (XRectangle): Add X compatible rectangle type. 4955 (XRectangle): Add X compatible rectangle type.
2257 (NativeRectangle): Declare as RECT for W32. 4956 (NativeRectangle): Declare as RECT for W32.
2258 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros. 4957 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
@@ -3340,7 +6039,7 @@
3340 6039
3341 * lisp.h: Declare Vx_resource_name extern. 6040 * lisp.h: Declare Vx_resource_name extern.
3342 6041
3343 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT 6042 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
3344 for USE_GTK. 6043 for USE_GTK.
3345 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK. 6044 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
3346 6045
@@ -3727,12 +6426,12 @@
3727 Its primary purpose at this time is to initialize the global variable 6426 Its primary purpose at this time is to initialize the global variable
3728 track_mouse_event_fn. 6427 track_mouse_event_fn.
3729 6428
3730 * w32fns.c (w32_wnd_proc): Remove initialization of 6429 * w32fns.c (w32_wnd_proc): Remove initialization of
3731 track_mouse_event_fn from the handler for the WM_SETFOCUS message. 6430 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
3732 6431
3733 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns. 6432 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
3734 6433
3735 * w32menu.c (globals_of_w32menu): New function. Used to 6434 * w32menu.c (globals_of_w32menu): New function. Used to
3736 initialize those global variables that must always be initialized 6435 initialize those global variables that must always be initialized
3737 on startup even when the global variable initialized is non zero. 6436 on startup even when the global variable initialized is non zero.
3738 Its primary purpose at this time is to initialize the global 6437 Its primary purpose at this time is to initialize the global
@@ -8919,7 +11618,7 @@
8919 11618
89202001-12-03 Pavel Jan,Am(Bk <Pavel@Janik.cz> 116192001-12-03 Pavel Jan,Am(Bk <Pavel@Janik.cz>
8921 11620
8922 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option. 11621 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
8923 11622
89242001-12-02 Pavel Jan,Am(Bk <Pavel@Janik.cz> 116232001-12-02 Pavel Jan,Am(Bk <Pavel@Janik.cz>
8925 11624
@@ -10512,3 +13211,5 @@ See ChangeLog.9 for earlier changes.
10512 Copyright (C) 2001, 2002 Free Software Foundation, Inc. 13211 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
10513 Copying and distribution of this file, with or without modification, 13212 Copying and distribution of this file, with or without modification,
10514 are permitted provided the copyright notice and this notice are preserved. 13213 are permitted provided the copyright notice and this notice are preserved.
13214
13215;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4