(struct it): New member ignore_overlay_strings_at_pos_p.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6a77a9f5
KS
12005-11-11 Kim F. Storm <storm@cua.dk>
2
3 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
4
5 * xdisp.c (handle_stop): Skip overlay string handling if
6 ignore_overlay_strings_at_pos_p is set.
7 (set_iterator_to_next): At end of display vector, set
8 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
9 string, so we skip those overlay strings at current pos.
10
19a9c3b7
LH
112005-11-10 Lars Hansen <larsh@soem.dk>
12
13 * fileio.c (file-regular-p): Doc fix.
14
932954d1
KS
152005-11-10 Kim F. Storm <storm@cua.dk>
16
17 * alloc.c (valid_lisp_object_p): New function to validate that
18 an object is really a valid Lisp_Object.
19
20 * lisp.h (valid_lisp_object_p): Add prototype.
21
22 * print.c (safe_debug_print): New function to be called from gdb
23 to print Lisp objects; use valid_lisp_object_p to avoid crashing
24 if user tries to print something which is not a Lisp object.
25
26 * .gdbinit (pp, pp1): Use safe_debug_print.
27 (pv, pv1): New commands to print value of a lisp variable.
28
78e5988d
NR
292005-11-10 Nick Roberts <nickrob@snap.net.nz>
30
31 * .gdbinit (pp1): New user-defined function.
32
f56a5bd8
YM
332005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
34
35 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
36
37 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
38 related variables for dumped executable.
39
40 * unexmacosx.c (unexec_write_zero): New function.
41 (copy_data_segment): Clear uninitialized local variables in
42 statically linked libraries.
43
44 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
45
58b6f884
JL
462005-11-09 Juri Linkov <juri@jurta.org>
47
48 * keymap.c (shadow_lookup): If Flookup_key returns a number,
49 call it again with a sub-key-sequence, and if its return value
50 is non-nil (sub-key is bound), return nil.
51
1f5f957a
KS
522005-11-08 Kim F. Storm <storm@cua.dk>
53
54 * process.c (Fsignal_process): Recognize signal names with and
55 without SIG prefix, e.g. SIGHUP and HUP.
56
57 * search.c (search_buffer): No need to initialize base_pat.
58
20b69789
SM
592005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
60
61 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
62 Don't abuse the `mini' arg. Use the `obj' arg instead.
63
7353f169
KS
642005-11-04 Kim F. Storm <storm@cua.dk>
65
66 * xdisp.c (show_mouse_face): Clear mouse face to eol.
67
1f7b1131
DN
682005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
69
70 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
71 font-lock.elc and jit-lock.elc.
72
e082564e
RS
732005-11-03 Richard M. Stallman <rms@gnu.org>
74
75 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
76 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
77 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
78
79 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
80
81 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
82
49e99345
SM
832005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
84
85 * window.c (Fdisplay_buffer): Fix last change to not use
86 a dedicated window.
87
8f15921b
KS
882005-11-01 Kim F. Storm <storm@cua.dk>
89
90 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
91 Instead, rotate the bottom angle bitmap 180 degrees to indicate
92 that the bottom row does not end in a newline.
93
b4235a80
AS
942005-11-01 Andreas Schwab <schwab@suse.de>
95
96 * unexelf.c (unexec): Handle .plt section in BSS segment.
97
3cbb13c8
SM
982005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
99
e5f64be2
SM
100 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
101
3cbb13c8
SM
102 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
103 determine whether to consider dedicated windows as well.
104 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
105 (Fdisplay_buffer): Do consider dedicated windows in those cases where
106 we will split the window rather than reuse it.
107 Don't try to use windows on other displays.
108
c94f08ff
DN
1092005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
110
111 * puresize.h (BASE_PURESIZE): Increment to 1170000.
112
edf84ae9
RF
1132005-10-31 Romain Francoise <romain@orebokech.com>
114
115 * macfns.c: Update copyright year.
116 * m/gould.h: Likewise.
117
6f07f649
KS
1182005-10-30 Kim F. Storm <storm@cua.dk>
119
120 * xdisp.c (display_line): Restore it->current_x and call
121 extend_face_to_end_of_line when last glyph doesn't fit on line.
122 (set_glyph_string_background_width): Remove specific tests here
123 to see if face background should extend to end of line. Simplify.
124
4d74a5fc
RS
1252005-10-30 Richard M. Stallman <rms@gnu.org>
126
127 * alloc.c (BYTES_USED): Use uordblks, not arena.
128 (bytes_used_when_reconsidered): New variable.
129 (emacs_blocked_free): Set that.
130
bccfb310
CY
1312005-10-29 Chong Yidong <cyd@stupidchicken.com>
132
133 * alloc.c (emacs_blocked_free): Fix typo.
134
f5b8d5f2
RS
1352005-10-29 Richard M. Stallman <rms@gnu.org>
136
4d74a5fc
RS
137 * data.c (Fmake_variable_frame_local): Doc fix.
138
f5b8d5f2
RS
139 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
140 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
141 controls whether to save and restore mode_line_proptrans_alist.
142 Callers changed.
143 (unwind_format_mode_line): Work with that feature.
144 (redisplay_internal): Don't call prepare_menu_bars if memory full.
145 (move_elt_to_front): New function.
146 (display_mode_element): Use move_elt_to_front.
147 Don't bother munging text props on a null string.
148 Delete obsolete elts from mode_line_proptrans_alist.
149 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 150 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 151
49e99345
SM
152 * lisp.h (memory_full_cons_threshold): Declare.
153 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
154
155 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
156 (Fmemory_full_p): Function deleted.
157 (syms_of_alloc): Don't defsubr it.
158 (memory_full_cons_threshold): New variable.
159 (spare_memory): Now a vector of 7 elts.
160 (buffer_memory_full): Don't set Vmemory_full here.
161 (xfree): Don't try to refill here.
162 (emacs_blocked_free): Record BYTES_USED in local var.
163 (memory_full): Now free all the slots in spare_memory.
164 (refill_memory_reserve): Allocate each slot in spare_memory.
165 (init_alloc_once): Call refill_memory_reserve.
166
167 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
168
169 * eval.c (internal_lisp_condition_case): New function.
170 (Fcondition_case): Use internal_lisp_condition_case.
171 (Feval): Test Vmemory_full and memory_full_cons_threshold.
172 (Ffuncall): Likewise.
173
174 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
175
c390e28c
SM
1762005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
177
178 * syntax.c (Fparse_partial_sexp): Fix docstring.
179
ab5d87b3
RF
1802005-10-28 Romain Francoise <romain@orebokech.com>
181
c390e28c 182 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 183
107fb6c9
RS
1842005-10-28 Richard M. Stallman <rms@gnu.org>
185
186 * xfns.c (syms_of_xfns): Provide `x' as feature.
187
188 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
189
190 * editfns.c (Fformat): Don't include string padding
191 between info[n].start and info[n].end.
192
193 * alloc.c (spare_memory): No longer static.
194 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
195
c390e28c 196 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 197
f351b58b
CY
1982005-10-27 Chong Yidong <cyd@stupidchicken.com>
199
c390e28c 200 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 201
f351b58b
CY
202 * fringe.c (update_window_fringes): Handle case where buffer ends
203 with a newline.
204
581e7427
KH
2052005-10-27 Kenichi Handa <handa@m17n.org>
206
207 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
208
2092005-10-24 Kenichi Handa <handa@m17n.org>
210
211 * charset.h (charset_mule_unicode_0100_24ff)
212 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
213 Extern them.
214
215 * charset.c (charset_mule_unicode_0100_24ff)
216 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
217 New variables.
218 (Fsetup_special_charsets): Initialize them.
219
220 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
221 supported Unicode characters.
222
813fa8a8
JR
2232005-10-25 Jason Rumney <jasonr@gnu.org>
224
225 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
226
05f7d868
YM
2272005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
228
229 * image.c [MAC_OS] (image_load_qt_1): Check image size.
230 Use GraphicsImportGetImageDescription instead of
231 GraphicsImportGetNaturalBounds.
232 [MAC_OSX] (image_load_quartz2d): Check image size.
233 [MAC_OS] (xpm_load_image): Likewise.
234
235 * macterm.c (last_mouse_glyph_frame): New var.
236 (note_mouse_movement): Say mouse moved if current frame differs
237 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
238 (XTmouse_position): Set last_mouse_glyph_frame.
239 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
240 (mac_draw_string_common) [MAC_OSX && WORDS_BIG_ENDIAN]: Fix typo.
241 Use EndianU16_BtoN.
242 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
243 (x_per_char_metric, XLoadQueryFont)
244 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
245 glyph bounds.
246 (mac_to_x_fontname, mac_do_list_fonts)
247 (mac_initialize_display_info): Change screen resolutions to 72dpi.
248
128e729d
MY
2492005-10-25 Masatake YAMATO <jet@gyve.org>
250
251 * minibuf.c (Fdisplay_completion_list): Small doc fix.
252
59017afb
KS
2532005-10-24 Kim F. Storm <storm@cua.dk>
254
94717db1
KS
255 * xterm.c: Undo 2005-10-23 change.
256 (last_mouse_glyph_frame): New var.
257 (note_mouse_movement): Say mouse moved if current frame differs
258 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
259 (XTmouse_position): Set last_mouse_glyph_frame.
260 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
261 last_mouse_glyph] on mouse up/down event.
262
59017afb
KS
263 * editfns.c (Fcompare_buffer_substrings): Fix last change.
264
7c5ba0d2
SM
2652005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
266
267 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
268
a4b0e228
JD
2692005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
270
271 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
272 so tool tips don't interfere with press on tool bar button.
273
f6a18aa2
RS
2742005-10-23 Richard M. Stallman <rms@gnu.org>
275
276 * casetab.c (Fset_case_table): Doc fix.
277
278 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
279 (readevalloop): Compute ENTIRE properly.
280 (syms_of_lread) <load-history>: Doc fix.
281
45158e77
RS
2822005-10-21 Richard M. Stallman <rms@gnu.org>
283
284 * lread.c (Fload): Simplify gcpro structure.
285 Gcpro FOUND as well as FILE, but not EFOUND.
286 Unless preloading, record FOUND instead of FILE in Vload_history.
287 Rename repeat local FILE to MSG_FILE.
288 (syms_of_lread) <load-history>: Doc fix.
289
dfa1cd4d
KH
2902005-10-21 Kenichi Handa <handa@m17n.org>
291
96664fc0 292 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 293
1064a9ea
KS
2942005-10-20 Kim F. Storm <storm@cua.dk>
295
296 * buffer.c (clone_per_buffer_values): Remove unused var tem.
297 (init_buffer): Remove unused vars dotstat, pwdstat.
298
299 * ccl.c (check_ccl_update): Remove unused var vp.
300
301 * fileio.c (auto_save_error): Call SAFE_FREE.
302
303 * fns.c (Fchar_table_range): Remove unused var i.
304
305 * minibuf.c (display_completion_list_1): New wrapper function
306 for Fdisplay_completion_list.
307 (Fminibuffer_completion_help): Use it.
308
309 * term.c (encode_terminal_code): Remove unused var src_start.
310
311 * window.c (Fwindow_tree): Remove unused var alist.
312
313 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
314
ce13796f
EZ
3152005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
316
20b69789 317 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 318
ad9c16d3
EZ
3192005-10-20 Olli Savia <ops@iki.fi> (tiny change)
320
321 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
322
26e9d2cf
AS
3232005-10-20 Andreas Schwab <schwab@suse.de>
324
325 * minibuf.c (Fdisplay_completion_list): Doc fix.
326
e50165ec
KS
3272005-10-19 Kim F. Storm <storm@cua.dk>
328
329 * image.c (check_image_size): Handle integer Vmax_image_size value
330 directly as max pixel value. Use default frame size for null frame.
331 (syms_of_image) <max-image-size>: Describe integer value.
332
d7b94c98
RF
3332005-10-19 Romain Francoise <romain@orebokech.com>
334
335 * emacs.c (main): Update copyright year.
336
f1f25b99
CY
3372005-10-18 Chong Yidong <cyd@stupidchicken.com>
338
339 * image.c (Vmax_image_size): New variable.
340 (check_image_size): New function.
341 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
342 (gif_load, gs_load): Use it.
343 (lookup_image): Try loading again if previous load failed.
344 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
345 to display in, NULL if none.
346 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
347 argument.
348
f42d19a2
RS
3492005-10-18 Richard M. Stallman <rms@gnu.org>
350
351 * search.c (Fstring_match): Doc fix.
352
bcbdafce
YM
3532005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
354
355 * macterm.c (note_mouse_movement): Use PtInRect.
356 (XTread_socket): Also ignore mouse motion just before a button
357 release event. Don't process button release event when mouse is
358 not grabbed.
359
f5fab556
MY
3602005-10-16 Masatake YAMATO <jet@gyve.org>
361
362 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 363 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
364 to the optional argument during running `completion-setup-hook'.
365
2ef1363e
YM
3662005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
367
368 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
369 Allow nil as argument.
370 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
371 for encoding arguments as UTF-16 in native byte order, no BOM.
372
373 * macfns.c (Fx_create_frame): Add debugging code.
374 (Fx_show_tip): Set frame pixel width and height.
375
376 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
377 (FRAME_NORMAL_GC): New macro.
378 (mac_draw_line, mac_clear_area, mac_clear_window)
379 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
380 (mac_draw_image_string, mac_draw_image_string_16): Rename from
381 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
382 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
383 All uses changed.
384 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
385 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
386 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
387 (mac_draw_string_16, mac_draw_image_string)
388 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
389 (mac_scroll_area): Drawing functions now take frame as destination.
390 All uses changed.
391 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
392 (x_draw_fringe_bitmap): Set clipping area in face->gc.
393
394 * macterm.h (mac_clear_area): Add extern.
395
fc5c7550
YM
3962005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
397
398 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
399 changes for xterm.c.
400
401 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
402
fed91c38
KH
4032005-10-14 Kenichi Handa <handa@m17n.org>
404
405 * search.c (search_buffer): Give up BM search on case-fold-search
406 if one of a target character has a case-equivalence of different
407 charset even if that target charcter is an ASCII.
408
409 * casefiddle.c (casify_object): Fix for the case that case
410 conversion change the byte length.
411
0ea1a8af
KS
4122005-10-14 Kim F. Storm <storm@cua.dk>
413
414 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
415 (handle_one_xevent): Only clear help_echo_string; restore it if
416 note_mouse_movement didn't record any mouse movement.
417
418 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
419 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
420
421 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
422 (Fposn_at_x_y): Fix calculation of x coordinate.
423 (Fposn_at_point): Return nil if point is hscrolled out of view.
424
6e5b2385
AS
4252005-10-13 Andreas Schwab <schwab@suse.de>
426
427 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
428 non-interactive mode.
429
6de0e1a2
YM
4302005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
431
432 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
433
78f3b91f
KS
4342005-10-12 Kim F. Storm <storm@cua.dk>
435
436 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
437
b639c9be
RF
4382005-10-12 Romain Francoise <romain@orebokech.com>
439
440 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
441
76d8f04c
YM
4422005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
443
444 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
445 get end of text rows. Obtain header-line/mode-line rows directly.
446
621036f9
YM
447 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Restore
448 help_echo_string if mouse is moved inside last_mouse_glyph.
449
d76432f5
KS
4502005-10-12 Kim F. Storm <storm@cua.dk>
451
7a127784
KS
452 * xdisp.c (remember_mouse_glyph): New generic version based on
453 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
454 properly handle all different window areas.
455
456 * dispextern.h (remember_mouse_glyph): Add prototype.
457
458 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
459 (note_mouse_movement, XTmouse_position): Use generic
460 remember_mouse_glyph, add last_mouse_glyph arg.
461
462 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
463 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
464 (note_mouse_movement, w32_mouse_position): Use generic
465 remember_mouse_glyph, add last_mouse_glyph arg.
466
467 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
468 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
469 (XTmouse_position): Adapt to use generic remember_mouse_glyph
470 instead of pixel_to_glyph_coords.
471
d76432f5
KS
472 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
473 Fix x position for ON_TEXT when left margin width > 0.
474
55a4ac3e
KS
4752005-10-11 Kim F. Storm <storm@cua.dk>
476
d76432f5 477 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
478
479 * keyboard.c (make_lispy_position): Fix buffer calculations for
480 mouse click or movement in right fringe and the margins.
481
2d4713aa
JB
4822005-10-11 Juanma Barranquero <lekktu@gmail.com>
483
484 * image.c (fn_jpeg_stdio_src): Don't define it.
485 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
486 (our_common_init_source): Rename from `our_init_source'.
487 (our_common_term_source): Rename from `our_term_source'.
488 (our_memory_fill_input_buffer): Rename from
489 `our_fill_input_buffer'.
490 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
491 (jpeg_memory_src): Use the new names.
492 (struct jpeg_stdio_mgr): New struct.
493 (JPEG_STDIO_BUFFER_SIZE): New constant.
494 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
495 (jpeg_file_src): New functions.
496 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
497
71b7a47f
YM
4982005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
499
500 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
501 (fm_font_family_alist): New variable.
502 (syms_of_macterm): Initialize and staticpro it.
503 (decode_mac_font_name): Replace '-' in family name with '_' if it
504 occurs just once. Lower family name.
505 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
506 All uses changed. Remove argument MF and code conversion for it.
507 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
508 to CHARSET. Parse font size. Lower family name. Return integer
509 value for status of parsing.
510 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
511 Don't use Fdowncase because family name is already lowered by
512 decode_mac_font_name.
513 (init_font_name_table): Always call decode_mac_font_name. Add
514 pair of family name and its reference to fm_font_family_alist.
515 (mac_clear_font_name_table): Clear fm_font_family_alist.
516 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
517 Lookup fm_font_family_alist to get font family reference.
518 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
519 name is already lowered by parse_x_font_name.
520
74051a92
KS
5212005-10-11 Kim F. Storm <storm@cua.dk>
522
31ab1f05
KS
523 * xterm.c (glyph_rect): Return 0 if position is outside text area.
524
74051a92
KS
525 * keyboard.c (make_lispy_position): Fix buffer position calculation for
526 mouse click or movement in fringe.
527
9b909870
JR
5282005-10-10 Jason Rumney <jasonr@gnu.org>
529
530 * xterm.c (remember_mouse_glyph): New function.
58af5591 531 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 532 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 533 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 534
f9e36a6d
JD
5352005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
536
58af5591 537 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 538
04bc7945
JB
5392005-10-10 Juanma Barranquero <lekktu@gmail.com>
540
541 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
542 (next_frame, prev_frame, set_term_frame_name): Make static.
543
544 * window.c (Fwindow_tree): Fix spelling.
545
41791a20
RF
5462005-10-09 Romain Francoise <romain@orebokech.com>
547
548 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
549
e313fc07
JD
5502005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
551
58af5591
KS
552 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
553 Add options -nb, --no-bitmap-icon.
e313fc07
JD
554
555 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
556
61e62f5f
YM
5572005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
558
559 * macgui.h (MAX_CLIP_RECTS): New define.
560 (struct _XGC): New member clip_region.
561 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
562 clip_rects.
563
564 * macterm.c (GC_CLIP_REGION): New macro.
565 (saved_port_clip_region): New variable.
566 (mac_begin_clip, mac_end_clip): New functions.
567 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
568 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
569 (mac_copy_area_with_mask, mac_scroll_area): Use them.
570 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
571 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
572 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
573 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
574 rectangles stored in gc.
71b7a47f 575 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
576 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
577 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
578 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
579 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
580 (x_draw_bar_cursor): Use them.
581 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
582 get multiple clipping rectangles.
583
584 * macterm.h (mac_term_init): Add types to extern.
585 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 586 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
587 scroll_bar_background_pixel in #if 0.
588 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
589
590 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 591 Add debugging code.
61e62f5f 592
ef1b4c9e
KS
5932005-10-08 Kim F. Storm <storm@cua.dk>
594
595 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
596
f1010549
KS
5972005-10-07 Kim F. Storm <storm@cua.dk>
598
599 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
600 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
601 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
602
c2ded1b7
YM
6032005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
604
605 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
606 to for_overlaps. Now occupy 3 bits.
607 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
608 (OVERLAPS_ERASED_CURSOR): New defines.
609 (struct redisplay_interface): Add new OVERLAPS arg to member
610 fix_overlapping_area.
611 (x_fix_overlapping_area): Add new OVERLAPS arg.
612 (get_glyph_string_clip_rects): Add extern.
613
614 * dispnew.c (redraw_overlapping_rows): Call
615 rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
616
617 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
618 for_overlaps.
619 (get_glyph_string_clip_rects): New function created from
f1010549
KS
620 get_glyph_string_clip_rect. Set clipping rectangles according to the
621 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
622 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
623 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
624 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 625 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 626 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
627 calculating clipping rectangles later. Call x_fix_overlapping_area
628 with new OVERLAPS arg to draw only erased cursor area.
f7270128 629 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 630 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
631
632 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
633 struct glyph_string to for_overlaps.
634
a19a0003
RS
6352005-10-04 Richard M. Stallman <rms@gnu.org>
636
637 * alloc.c (refill_memory_reserve): Conditionalize the body,
638 not the function's existence.
639
abc8ce50
KS
6402005-10-04 Kim F. Storm <storm@cua.dk>
641
642 * window.c (window_split_tree): New function.
643 (Fwindow_split_tree): New defun.
644 (syms_of_window): Defsubr it.
645
66533b25
YM
6462005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
647
648 * macterm.c (mac_invert_rectangle): New function.
649 (XTflash): Use it.
650
4156359e
SM
6512005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
652
4e2f601f
SM
653 * regex.h (re_char): Don't expose it in the interface.
654 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
655
656 * regex.c (re_char): Move it back here.
657 (re_set_whitespace_regexp): Change the arg's type to not use it.
658
4156359e
SM
659 * keyboard.c (make_lispy_event): If point has moved between down and up
660 event, make it a drag, not a click, to mirror what
661 mouse-drag-region expects.
662
eb27c2ca
DN
6632005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
664
665 * lisp.h (fatal): Undo previous change.
666 * term.c (fatal): Undo previous change.
667
b059f7d0
RS
6682005-10-01 Richard M. Stallman <rms@gnu.org>
669
670 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
671
21a9a7be
KS
6722005-10-01 Kim F. Storm <storm@cua.dk>
673
674 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
675
ddcb7665
YM
6762005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
677
678 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
679
680 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 681 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
682 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
683 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
684
685 * macgui.h (struct _XCharStruct): New member valid_p.
686 (STORE_XCHARSTRUCT): Set valid_p.
687 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
688
689 * macterm.c (mac_draw_string_common, x_per_char_metric)
690 (mac_compute_glyph_string_overhangs, init_font_name_table)
691 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
692 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
693 (x_draw_glyph_string_background)
694 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
695 XDrawImageString. Always draw background and foreground separately.
696 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
697 functions for one-byte chars when using ATSUI-compatible fonts.
698 (atsu_font_id_hash) [USE_ATSUI]: New variable.
699 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
700 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
701 max_char_or_byte2 more in detail.
702 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
703
fa8459a3
DN
7042005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
705
4156359e 706 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
707 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
708
709 * unexelf.c (fatal): Fix prototype.
710
711 * term.c (fatal): Implement using varargs.
712
21a9a7be 713 * regex.c (re_char): Move typedef ...
fa8459a3 714 * regex.h (re_char): ... here.
4156359e 715 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
716
717 * emacs.c (malloc_set_state): Fix return type.
718 (endif): Fix type.
719
720 * lisp.h (fatal): Add argument types.
721
722 * dispextern.h (fatal): Delete prototype.
723
724 * systime.h: (make_time): Prototype moved from ...
725 * editfns.c (make_time): ... here.
726
727 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
728 * dired.c:
729 * xsmfns.c:
fa8459a3 730 * process.c: Likewise.
21a9a7be 731
fa8459a3
DN
732 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
733 Add parameter types.
734 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
735 (emacs_blocked_free): Change definition to match __free_hook.
736 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 737 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 738
97c3e4cc
RF
7392005-09-30 Romain Francoise <romain@orebokech.com>
740
741 * minibuf.c (Fread_buffer): Follow convention for reading from the
742 minibuffer with a default value. Doc fix.
743
8ad8c5ce
JL
7442005-09-29 Juri Linkov <juri@jurta.org>
745
746 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
747 Rename argument name `string' to `format-string'.
748 (Fformat): Doc fix.
749
64da5759
KS
7502005-09-28 Kim F. Storm <storm@cua.dk>
751
752 * image.c (gif_load): Fix size of allocated image buffer
753 for images where a sub-image may be larger than the image's
754 total height/width specifications.
755
eaf92438
YM
7562005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
757
758 * macgui.h (struct _XCharStruct): Each member now takes short value.
759
43f15d4a
DN
7602005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
761
762 * xfaces.c (lookup_derived_face): Add parameter type.
763
764 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
765
766 * marker.c (verify_bytepos): Add parameter type.
767
768 * process.c (get_operating_system_release): Move prototype ...
769
770 * systime.h (get_operating_system_release): ... here.
771
04bc7945
JB
772 * xterm.c (handle_one_xevent): Refer to union field to match the
773 type required by the function definition.
774 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
775
776 * xterm.h: ... here.
777
778 * fns.c (internal_equal, seed_random): Fix prototypes.
779 (internal_equal): Add missing parameter.
780
c769dcac
RS
7812005-09-25 Richard M. Stallman <rms@gnu.org>
782
783 * keyboard.c (update_menu_bindings): Variable deleted.
784 (syms_of_keyboard): Don't defvar it.
785 (parse_menu_item): Don't test it.
786
8dbf19c7
RS
7872005-09-23 Richard M. Stallman <rms@gnu.org>
788
789 * editfns.c (Fformat): Explicitly test for end of format string
790 and don't use `index'.
791
3480d92b
DN
7922005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
793
4156359e
SM
794 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
795 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
796
797 * sysdep.c (get_current_dir_name): Also define if
64da5759 798 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
799
800 * m/ibmrs6000.h: Test for USG5, not USG5_4.
801
5db60f31
KS
8022005-09-22 Kim F. Storm <storm@cua.dk>
803
804 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
805 (message2): Fix commentary. Ok to use alloca'ed memory.
806 Still not ok to use Lisp string data (because of GC).
807 (set_message): Add comment why GC cannot happen.
808
7c3d233d
YM
8092005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
810
811 * macterm.c (xlfdpat_block_match_1): Fix assertion.
812 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
813 variants for a scalable font multiple times.
814
acde1152
YM
8152005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
816
817 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
818 Setup slave tty options before forking.
819
52d166e0
JD
8202005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
821
822 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
823 positions have been set for the frame (as is done for frames in
824 special-display-buffer-names).
825
12d10bc7
KS
8262005-09-19 Kim F. Storm <storm@cua.dk>
827
828 * editfns.c (Fformat): Don't scan past end of format string that
829 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
830
9f1cf0e3
AS
8312005-09-18 Andreas Schwab <schwab@suse.de>
832
833 * window.h (struct window): Remove height_fixed_p, no longer set.
834
835 * window.c (make_window): Don't initialize height_fixed_p.
836 (window_fixed_size_p): Don't use it.
837
8a658a52
JPW
8382005-09-18 John Paul Wallington <jpw@pobox.com>
839
840 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
841
be9bb408
YM
8422005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
843
844 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
845
846 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
847 New variables.
848 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
849 file selection.
850
851 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
852
cbf223e1
EZ
8532005-09-17 Eli Zaretskii <eliz@gnu.org>
854
855 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
856 (obj): Use XMENU_OBJ, not a literal xmenu.o.
857
e3f509dd
RF
8582005-09-16 Romain Francoise <romain@orebokech.com>
859
8ccd3630 860 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 861
5c4757d3
RS
8622005-09-15 Richard M. Stallman <rms@gnu.org>
863
864 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
865 (display_mode_element): Instead of `lisp_string' and `this',
866 record `offset' and increment that.
867 `last_offset' replaces `last'.
868
869 * Makefile.in (XMENU_OBJ): Variable deleted.
870 (obj): Use xmenu.o unconditionally.
871 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
872
873 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
874
01978521
KS
8752005-09-15 Kim F. Storm <storm@cua.dk>
876
877 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
878 (reseat_at_next_visible_line_start): Likewise (in xassert).
879
ccf61795
RF
8802005-09-14 Romain Francoise <romain@orebokech.com>
881
882 * fileio.c (write_region_inhibit_fsync): New variable.
883 (Fwrite_region): Use it to skip call to fsync.
884 (syms_of_fileio): Initialize it.
885
2b046a72
KH
8862005-09-14 Kenichi Handa <handa@m17n.org>
887
24a2b282
KH
888 * coding.c (code_convert_region_unwind): Argument format changed.
889 (run_pre_post_conversion_on_str): If pre-write-conversion function
890 changed the current buffer, delete the new buffer.
891 (run_pre_write_conversin_on_c_str): Likewise.
892
2b046a72
KH
893 * fileio.c (Fexpand_file_name): Check multibyteness of
894 default_directory.
895
d008f7b7
KH
8962005-09-13 Kenichi Handa <handa@m17n.org>
897
898 * composite.c (compose_chars_in_text): Delete it.
899
900 * composite.h (compose_chars_in_text): Delete extern.
901
2ada8ac5
KS
9022005-09-13 Kim F. Storm <storm@cua.dk>
903
904 * print.c (print_error_message): Fix last change.
905
48c60938
KS
9062005-09-12 Kim F. Storm <storm@cua.dk>
907
0fdbe302
KS
908 * composite.c (compose_chars_in_text): Fix setup of `pend'.
909 Unconditionally reload `ptr' and `pend' after eval.
910
48c60938
KS
911 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
912
913 * print.c (print_error_message): Pass copy of caller name to
914 message_dolog.
915
916 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
917
5add1986
KH
9182005-09-12 Kenichi Handa <handa@m17n.org>
919
920 * xdisp.c (display_mode_element): Be sure to make variables THIS
921 and LISP_STRING point into a string data of ELT.
922
18bb66c7
KS
9232005-09-12 Kim F. Storm <storm@cua.dk>
924
925 * editfns.c (Ftranslate_region_internal): Reload `tt' after
926 signal_after_change that may have GC'ed.
927 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
928
929 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
930 after insert while runs signal_after_change.
931
932 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
933 declaration to where it is used.
934
935 * w32.c (check_windows_init_file): Fix allocation of error buffer.
936
937 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
938 (x_set_name_internal): Call x_encode_text with new FREEP arg to
939 know if xfree is needed instead of guessing.
940
941 * xterm.h (x_encode_text): Remove prototype.
942
945a75f8
JR
9432005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
944
945 * w32term.c (x_bitmap_icon): Load small icons too.
946
156bdb41
RF
9472005-09-10 Romain Francoise <romain@orebokech.com>
948
949 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 950 and terminal zero. Fix typos.
156bdb41 951
67b8391b
EZ
9522005-09-10 Eli Zaretskii <eliz@gnu.org>
953
a17b5ed1
EZ
954 * buffer.c (init_buffer): Fix error message for failed call to
955 get_current_dir_name.
956 (get_current_dir_name): Remove prototype.
957
958 * xsmfns.c: (get_current_dir_name): Remove prototype.
959
960 * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add
961 prototype.
962
ed326e35 963 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 964 Don't #undef NULL after including blockinput.h.
ed326e35 965
67b8391b
EZ
966 * config.in: Regenerated.
967
c187839d
EZ
9682005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
969
970 Remove the MAXPATHLEN limitations:
971
1486d036
EZ
972 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
973 New function.
c187839d
EZ
974
975 * buffer.c (init_buffer): Use it.
976
977 * xsmfns.c (smc_save_yourself_CB): Ditto.
978
ae8a5689
KS
9792005-09-09 Kim F. Storm <storm@cua.dk>
980
39cac6b3
KS
981 * doc.c (Fsubstitute_command_keys): Lookup key binding for
982 commands that are remapped from some other command.
983
aeb55c44
KS
984 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
985 flag in disabled rows below the window.
986
ae8a5689
KS
987 * frame.h (struct frame): New member updated_p.
988
989 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
990 member. Remove local `updated' array and associated variables.
991
821f6dae
KS
9922005-09-07 Kim F. Storm <storm@cua.dk>
993
6e5395f2
KS
994 * xdisp.c (handle_display_prop): Respect overlay window property.
995
821f6dae
KS
996 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
997 Fixes crash reported by YAMAMOTO Mitsuharu.
998
9655b404
YM
9992005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1000
1001 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
1002 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
1003 (xlfdpat_block_match_1, xlfdpat_match): New functions.
1004 (xlfdpat_block_match): New macro.
1005 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
1006 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
1007 (add_font_name_table_entry): Increase font_name_table_size more
1008 rapidly.
1009 (mac_c_string_match): Remove function.
1010 (mac_do_list_fonts): Use XLFD pattern match instead of regular
1011 expression match.
1012
1013 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
1014
d7ea8b71
RS
10152005-09-03 Richard M. Stallman <rms@gnu.org>
1016
1017 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
1018 (move_it_in_display_line_to): Stop after last char on line even
1019 on a windowing terminal, if that's the specified stop position.
1020
1021 * fns.c (Fsort): Doc fix.
1022
1023 * editfns.c (Fpropertize): Don't insist that properties be symbols.
1024
1550ae60
SM
10252005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
1026
1027 * dired.c (directory_files_internal_unwind, directory_files_internal)
1028 (file_name_completion): Use a Save_Value object rather than a cons of
1029 two 16bit ints to store the DIR*.
1030 (directory_files_internal, file_name_completion): Handle both EINTR and
1031 EAGAIN consistently after `readdir'.
1032
bdb4d6d8
SM
10332005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1034
1550ae60
SM
1035 * intervals.c (update_interval): Add position info in error.
1036
bdb4d6d8
SM
1037 * dispnew.c (window_to_frame_hpos, update_window):
1038 Avoid gcc warning about unused variable `f'.
1039
6bcc3ca4
JR
10402005-08-31 Jason Rumney <jasonr@gnu.org>
1041
1042 * w32menu.c (add_menu_item): If unicode_append_menu returns an
1043 error, revert to using AppendMenu.
1044
07c5948c
YM
10452005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1046
bdb4d6d8
SM
1047 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
1048 All uses changed.
07c5948c
YM
1049 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
1050 cases.
1051 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
1052 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
1053 Use posix_pathname_to_fsspec.
07c5948c
YM
1054 [MAC_OS] (xpm_load_image): Fill in background_transparent field
1055 while we have mask.
1056
1057 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
1058
1059 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
1060
5a774522
SM
10612005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1062
1063 * syntax.c (update_syntax_table): Properly reproduce the special +1
1064 setting of e_property at the end of the buffer when bumping into the
1065 INTERVALS_AT_ONCE limit.
1066
0fb57cc0
EZ
10672005-08-27 Eli Zaretskii <eliz@gnu.org>
1068
1069 * emacs.c (USAGE1): Fix the description of the -Q option.
1070
5a774522
SM
10712005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
1072
1073 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
1074
4e6b8c5a
KS
10752005-08-26 Kim F. Storm <storm@cua.dk>
1076
1077 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
1078 Don't move PT to new window start.
1079
1f98fbb4
YM
10802005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1081
1082 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
1083 ICONIFY/DEICONIFY_EVENT.
1084
5a774522
SM
1085 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
1086 Restore background color.
1f98fbb4
YM
1087 (mac_handle_visibility_change): New function.
1088 (x_make_frame_invisible, x_iconify_frame)
1089 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
1090 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 1091 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
1092 (x_make_frame_visible): Don't reposition window if it is iconified
1093 or asked for visible before. Select and uncollapse window when it
1094 is made visible.
1095 (x_make_frame_invisible): Don't reset x_highlight_frame.
1096 (x_iconify_frame): Likewise. Make invisible frame visible before
1097 it is iconified.
1098 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
1099 (do_window_update): Don't change visibility of invisible frame.
1100
16691d29
JL
11012005-08-22 Juri Linkov <juri@jurta.org>
1102
1103 * term.c (turn_on_face): Check for TS_set_foreground and
1104 TS_set_background depending on standout_mode. Simplify.
1105
7c3f805b
KS
11062005-08-21 Kim F. Storm <storm@cua.dk>
1107
0f467468
KS
1108 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
1109 bitmaps on fully visible rows.
1110
7c3f805b
KS
1111 * fringe.c (update_window_fringes): Replace FORCE_P arg with
1112 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
1113 and return 0.
1114
1115 * xdisp.c (redisplay_window): Call update_window_fringes with
1116 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
1117
40b388f9
RS
11182005-08-20 Richard M. Stallman <rms@gnu.org>
1119
1120 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
1121 (resize_mini_window): Set w->start, and PT, so as to display the tail
1122 end of the buffer, if it doesn't all fit.
1123
581360f0
KS
11242005-08-18 Kim F. Storm <storm@cua.dk>
1125
1126 * xdisp.c (calc_pixel_width_or_height): Use actual display
1127 resolution when available instead of Vdisplay_pixels_per_inch.
1128
0eefa6fb
KS
11292005-08-17 Kim F. Storm <storm@cua.dk>
1130
1131 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
1132
1133 * dispnew.c (buffer_posn_from_coords): Check that target row is
1134 within matrix.
1135
ada192ba
JD
11362005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1137
1138 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
1139 xg_set_frame_icon and call it.
1140
1141 * gtkutil.c (xg_set_frame_icon): New function.
1142
0eefa6fb 1143 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 1144
ab89a403
KS
11452005-08-16 Kim F. Storm <storm@cua.dk>
1146
1147 * dispnew.c (increment_row_positions): Skip non-enabled rows.
1148
1149 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
1150 (Fcurrent_window_configuration): Use VECSIZE macro instead.
1151
8d34b5e1
RS
11522005-08-15 Richard M. Stallman <rms@gnu.org>
1153
1154 * xdisp.c (message3_nolog): Clear echo_message_buffer.
1155
71e37f3c
KS
11562005-08-15 Kim F. Storm <storm@cua.dk>
1157
0781c303
KS
1158 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
1159
71e37f3c
KS
1160 * process.c (deactivate_process, status_notify, read_process_output)
1161 (update_status, status_convert, decode_status, allocate_pty)
1162 (make_process, remove_process, list_processes_1)
1163 (create_process_1, unwind_request_sigio, read_process_output)
1164 (send_process, keyboard_bit_set): Declare static.
1165 (Fdelete_process): Simplify. Pass process to status_notify, so we
1166 don't try to read output from it.
1167 (status_notify): New arg deleting_process--don't try to read
1168 output from that process.
1169
1170 * lisp.h (deactivate_process, status_notify, read_process_output):
1171 Remove prototypes.
1172
0bf14bfd
RS
11732005-08-14 Richard M. Stallman <rms@gnu.org>
1174
bdb4d6d8
SM
1175 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
1176 define_image_type.
0bf14bfd 1177
6c7eb721
JD
11782005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1179
1180 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
1181 (xg_get_image_for_pixmap): Move some code to
1182 xg_get_pixbuf_from_pix_and_mask, and call it.
1183
1184 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
1185
1186 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
1187 to get an GTK icon and set it with GTK functions to avoid having GTK
1188 override an icon set with just X functions.
1189
6e2d14c8
RS
11902005-08-11 Richard M. Stallman <rms@gnu.org>
1191
bdb4d6d8
SM
1192 * image.c (syms_of_image): Init image_types here, and call
1193 define_image_type.
6e2d14c8
RS
1194 (init_image): Not here.
1195
61298e17
RS
11962005-08-09 Richard M. Stallman <rms@gnu.org>
1197
1198 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
1199
1200 * lisp.h (QUIT): Throw t to Vthrow_on_input.
1201
5a9807a8
TTN
12022005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
1203
1204 * floatfns.c (Fexpt): Use floats for negative exponent.
1205
93469010
JD
12062005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1207
1208 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
1209 should not be there, causing menu display errors with GTK 2.6.9.
1210
44edd521
RS
12112005-08-07 Richard M. Stallman <rms@gnu.org>
1212
8b6a9551
RS
1213 * floatfns.c (Fexpt): Undo previous change.
1214
44edd521
RS
1215 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
1216 so it can be used with various state vectors.
1217
1218 * emacs.c (endif): Convert -script into -scriptload.
1219 (standard_args): Add -scriptload. Allow -basic-display with one dash.
1220
1221 * fns.c (syms_of_fns): Add `emacs' to features.
1222
1223 * term.c (set_terminal_modes): If no TS_termcap_modes string,
1224 output newlines to scroll the old screen contents off the screen.
1225
cac87e30
TTN
12262005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
1227
2a205424
TTN
1228 * floatfns.c (Fexpt): Use floats for negative exponent.
1229 Reported by D Goel.
cac87e30 1230
31b7cc74
JB
12312005-08-02 Richard M. Stallman <rms@gnu.org>
1232
1233 * frame.c (Fframe_char_width): Doc fix.
1234
e2b64074
JB
12352005-07-30 Juanma Barranquero <lekktu@gmail.com>
1236
1237 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
1238 Defvar it.
1239
0962822d
JB
12402005-07-28 Juanma Barranquero <lekktu@gmail.com>
1241
1242 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
1243 (my_create_window, my_create_tip_window): Make static.
1244
1245 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
1246 (my_set_foreground_window, my_destroy_window): Make static.
1247
9eff9fe3
PE
12482005-07-26 Paul Eggert <eggert@cs.ucla.edu>
1249
1250 Merge gnulib getopt implementation into Emacs.
1251
1252 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
1253 now part of lib-src.
1254
1c9916a1
SM
12552005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
1256
1257 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
1258
94c7f257
JR
12592005-07-25 Jason Rumney <jasonr@gnu.org>
1260
1261 * w32menu.c (w32_menu_display_help): Suppress tooltip when
1262 navigating menus with the keyboard.
1263
bf0bf758
RS
12642005-07-23 Richard M. Stallman <rms@gnu.org>
1265
1266 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
1267
1268 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
1269 gc_relative_threshold, one by one.
1270
1271 * keyboard.c (read_char): Test gc_cons_threshold.
1272 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
1273
1274 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
1275 gc_relative_threshold, one by one.
1276
1277 * alloc.c (gc_cons_threshold): Not static.
1278 (gc_cons_combined_threshold): Var deleted.
1279 (gc_relative_threshold): New variable.
1280 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
1281 instead of gc_cons_combined_threshold.
1282
1c9916a1 1283 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
1284 (gc_cons_combined_threshold): Declaration deleted.
1285
99f963e4
YM
12862005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1287
1288 * mac.c: Don't include stdlib.h or string.h.
1289 (Fdo_applescript, Fmac_file_name_to_posix)
1290 (Fmac_file_name_to_posix): Doc fixes.
1291 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
1292 (Fmac_code_convert_string): Likewise.
1293 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
1294 if the executable is not contained in a bundle.
1295
1296 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
1297 (gray_width, gray_height): Remove defines.
1298 (gray_bits, gray_bitmap_width, gray_bitmap_height)
1299 (gray_bitmap_bits): Remove variables.
1300 (lispy_function_keys): Remove extern.
1301 (free_frame_menubar): Add extern.
1302 (x_window_to_frame): Remove function.
1303 (unwind_create_tip_frame): Add declaration.
1304 (x_set_name_internal): New function.
1305 (x_set_name, x_set_title): Use it.
1306 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
1307 (Fx_display_pixel_height, Fx_display_planes)
1308 (Fx_display_color_cells, Fx_server_max_request_size)
1309 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1310 (Fx_display_mm_height, Fx_display_mm_width)
1311 (Fx_display_backing_store, Fx_display_visual_class)
1312 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
1313
1314 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
1315
bdb4d6d8 1316 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
1317 (Fx_get_selection_internal, Fx_selection_owner_p)
1318 (Fx_selection_exists_p): Doc fixes.
1319 (syms_of_macselect) <selection-converter-alist>: Likewise.
1320
1d256714
JB
13212005-07-21 Juanma Barranquero <lekktu@gmail.com>
1322
1323 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1324
1325 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
1326 (Fccl_execute_on_string): Likewise; add usage info.
1327
1328 * composite.c (Fcompose_region_internal)
1329 (Fcompose_string_internal):
1330 Improve argument/docstring consistency.
1331
1332 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
1333 Fix typos in docstrings.
1334
1335 * textprop.c (Fnext_char_property_change)
1336 (Fprevious_char_property_change): Doc fixes.
1337
1338 * window.c (Fset_window_margins, Fset_window_fringes):
1339 Improve argument/docstring consistency.
1340
1341 * xfaces.c (Finternal_lisp_face_p): Doc fix.
1342
538f78c3
AS
13432005-07-21 Andreas Schwab <schwab@suse.de>
1344
1345 * eval.c (restore_stack_limits): Return a value.
1346
a5b5bf44
JB
13472005-07-20 Juanma Barranquero <lekktu@gmail.com>
1348
1349 * eval.c (Fdefvar): Doc fix.
1350
ae643123
KS
13512005-07-20 Kim F. Storm <storm@cua.dk>
1352
0ed4bf15
KS
1353 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
1354 Use make_save_value to unwind protect stream.
1355
1356 * lread.c (Fload, load_unwind):
1357 Use make_save_value to unwind protect stream.
ae643123 1358
82fc29a1
JB
13592005-07-19 Juanma Barranquero <lekktu@gmail.com>
1360
1361 * eval.c (Fprog2, Fcalled_interactively_p),
1362 (syms_of_eval) <debug-on-quit>: Doc fixes.
1363 (syms_of_eval) <max-specpdl-size>:
1364 (Finteractive_p): Fix typos in docstrings.
1365
73b90087
KS
13662005-07-19 Kim F. Storm <storm@cua.dk>
1367
1368 * w32fns.c (Vx_hand_shape): Variable removed.
1369 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
1370
dfc434d0
KH
13712005-07-19 Kenichi Handa <handa@m17n.org>
1372
bdb4d6d8 1373 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 1374
bcd98331
SM
13752005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
1376
1377 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
1378
2a85a754
KS
13792005-07-18 Kim F. Storm <storm@cua.dk>
1380
1381 * frame.h (struct frame): New member already_hscrolled_p.
1382
1383 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
1384 to avoid redisplay looping hscrolling back and forth ad infinitum.
1385
426179e1
JL
13862005-07-18 Juri Linkov <juri@jurta.org>
1387
1388 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
1389 * keymap.c (Fminor_mode_key_binding):
1390 * macterm.c (mac-emulate-three-button-mouse):
1391 Delete duplicate duplicate words.
1392
9f4a578d
KR
13932005-07-18 Ken Raeburn <raeburn@gnu.org>
1394
1395 * minibuf.c (Ftest_completion): Fix odd syntax in test.
1396
d005338b
YM
13972005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1398
bcd98331 1399 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
1400
1401 * macgui.h (struct _XGC): New struct.
1402 (GC): Use it.
1403 (GCForeground, GCBackground, GCFont): Use X11 mask values.
1404 (XCreateGC, XParseGeometry): Move externs to macterm.h.
1405
bcd98331 1406 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 1407 (XSetFont): Add declaration.
bcd98331
SM
1408 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
1409 Remove functions.
1410 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
1411 New defines.
d005338b
YM
1412 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
1413 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
1414 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
1415 Use them.
d005338b
YM
1416 (mac_erase_rectangle): New function.
1417 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
1418 (x_draw_stretch_glyph_string): Use it.
1419 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
1420 (XSetBackground, XSetFont): Adjust for new GC implementation.
1421 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
1422 (XTset_vertical_scroll_bar): Clear area under scroll bar.
1423
1424 * macterm.h (struct mac_display_info): Change types of
1425 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
1426 (XCreateGC, XParseGeometry): Move externs from macgui.h.
1427
1428 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
1429
9b0c2c56
RS
14302005-07-16 Richard M. Stallman <rms@gnu.org>
1431
1432 * buffer.c (Fmake_overlay): Doc fix.
1433
2e9c1c6d
EZ
14342005-07-16 Eli Zaretskii <eliz@gnu.org>
1435
1436 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
1437 Vw32_valid_locale_ids, and Vw32_valid_codepages.
1438
407289a4
YM
14392005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1440
bcd98331
SM
1441 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
1442 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 1443
e4b477a1
RS
14442005-07-15 Richard M. Stallman <rms@gnu.org>
1445
1446 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
1447
a8613adf
KS
14482005-07-15 Kim F. Storm <storm@cua.dk>
1449
1450 * xdisp.c: Fix redisplay loop in last change.
1451 (IT_POS_VALID_AFTER_MOVE_P): New macro.
1452 (move_it_vertically_backward, move_it_by_lines): Use it.
1453
2d5324c5
JR
14542005-07-14 Jason Rumney <jasonr@gnu.org>
1455
1456 * w32.c (init_environment): Default HOME directory to user's
1457 appdata directory if possible.
1458
3ed70dc4
KS
14592005-07-14 Kim F. Storm <storm@cua.dk>
1460
7b9389b0
KS
1461 * .gdbinit (pitx): Fix output format. Print string charpos.
1462
3ed70dc4
KS
1463 * lread.c (syms_of_lread): Initialize seen_list.
1464
1465 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
1466
1467 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
1468 Staticpro re_match_object.
1469
ef029e5a
YM
14702005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1471
1472 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
1473 dereference.
1474
1475 * macterm.c (mac_window_to_frame): Remove duplicate define.
1476
16ef9c56
KH
14772005-07-14 Kenichi Handa <handa@m17n.org>
1478
1479 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 1480 (code_convert_region): Adjust for the above change.
16ef9c56
KH
1481 (set_conversion_work_buffer): If the work buffer is already in
1482 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 1483 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
1484 (run_pre_write_conversin_on_c_str): Likewise.
1485
098e1273
KS
14862005-07-13 Kim F. Storm <storm@cua.dk>
1487
010b9a45
KS
1488 * xdisp.c (start_display): Don't reseat to next visible line start
1489 if current start position is in a string or image.
1490 (move_it_vertically_backward): Be sure to move out of strings and
1491 images when moving it2 forward.
1492 (move_it_by_lines): When moving forward, move to next buffer
1493 position if we end up in a string or image. When moving backward,
1494 count rows moved over when moving to start of current row in case
1495 row starts in middle of a string or image. Also move further
1496 backward if we end up in a string or image.
bcd98331 1497 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
1498 move backward to set cursor on start of an overlay string.
1499 (cursor_row_p): Row is ok if cursor is at newline from string, but
1500 string starts on this line (so we always position cursor at start
1501 of string).
1502
1503 * indent.c (Fvertical_motion): If start position is on an image,
1504 don't move back if we move too far (that's almost certain to happen).
1505
098e1273
KS
1506 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
1507 row in minibuffer windows.
1508 (try_window): Don't check margins in minibuffer windows.
1509
c229fb15
YM
15102005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1511
1512 * macterm.c: Don't include stdlib.h or composite.h.
1513 (x_use_underline_position_properties, last_mouse_press_frame)
1514 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
1515 (syms_of_macterm, mac_initialize): Don't initialize them.
1516 (waiting_for_input, initial_argv, initial_argc)
1517 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
1518 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
1519 (extra_keyboard_modifiers): Fix type in extern.
1520 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
1521 (x_scroll_bar_report_motion): Add argument types to declaration.
1522 (mac_compute_glyph_string_overhangs): Add declaration.
1523 (disable_mouse_highlight): Remove unused variable.
1524 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
1525 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
1526 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
1527 All callers changed.
c229fb15
YM
1528 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
1529 timestamp.
1530 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
1531 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
1532 only when its width is less than the height.
1533 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
1534 (font_name_table, font_name_table_size, font_name_count):
1535 Make static.
c229fb15
YM
1536 (drag_and_drop_file_list): Remove variable. Previous use is now
1537 local to function.
1538 (do_ae_open_documents): Move DRAG_N_DROP event construction part
1539 from XTread_socket.
bcd98331
SM
1540 (XTread_socket): Consolidate setting of event timestamp.
1541 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
1542 Support extra_keyboard_modifiers.
1543
1544 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
1545 beginning with that for ASCII.
1546
69d05d83
SM
15472005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1548
1549 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
1550 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
1551 (syms_of_alloc): Declare gc-cons-percentage.
1552
1553 * eval.c (Feval, Ffuncall):
1554 * keyboard.c (read_char):
1555 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
1556
1557 * lisp.h (gc_cons_combined_threshold): Declare.
1558
5c7f9de1
KS
15592005-07-12 Kim F. Storm <storm@cua.dk>
1560
1561 * coding.c (Qprocess_argument):
1562 * coding.h (Qprocess_argument): Remove unused var.
1563
1564 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
1565
c37efb7a
YM
15662005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1567
1568 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
1569 Endian.h.
1570 [!MAC_OSX] (fchmod, fchown): New functions.
1571 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
1572 Use SBYTES and EndianU32_BtoN.
1573 (mac_get_object_from_code): Return 4 byte string even if argument
1574 is 0. Use make_unibyte_string and EndianU32_NtoB.
1575 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1576 (Fmac_set_file_type): Fix documents and argument declarations.
1577 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
1578
a4429c5b
SM
15792005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1580
1581 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
1582
a2d7e722
JD
15832005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1584
1585 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
1586 Lucid if X_I18N, font otherwise.
1587
9a4183e9
ST
15882005-07-10 Steven Tamm <steventamm@mac.com>
1589
a4429c5b
SM
1590 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
1591 (Fmac_set_file_type, Fmac_set_file_creator): Add.
1592 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 1593
51f74c37
RS
15942005-07-10 Richard M. Stallman <rms@gnu.org>
1595
1596 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
1597 (syms_of_lread): Set up eval-buffer-list.
1598 (Feval_buffer, Feval_region): Bind eval-buffer-list.
1599
93c7da4c
RS
16002005-07-08 Richard M. Stallman <rms@gnu.org>
1601
1602 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
1603
64af5917
KS
16042005-07-08 Kim F. Storm <storm@cua.dk>
1605
1606 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
1607 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
1608
a96b333c
KS
16092005-07-07 Kim F. Storm <storm@cua.dk>
1610
1611 * window.c (Frecenter): Fix last change (set iarg before use).
1612
dc2204be
RS
16132005-07-06 Richard M. Stallman <rms@gnu.org>
1614
1615 * window.c (Frecenter): When arg is inside the scroll margin,
1616 move it out of the margin.
1617
3fb1d72b
JR
16182005-07-06 Jason Rumney <jasonr@gnu.org>
1619
1620 * w32console.c (initialize_w32_display): Detect when the console
1621 dimensions are insane, and default to 80x25 instead.
a4429c5b 1622 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 1623
dd15724d
YM
16242005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1625
1626 * macterm.c (mac_draw_vertical_window_border): Use foreground of
1627 VERTICAL_BORDER_FACE_ID for vertical border line.
1628 (mac_encode_char): Call check_ccl_update in advance.
1629 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
1630 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
1631 Don't assume that font family length is less than 32.
dd15724d
YM
1632 (x_compute_min_glyph_bounds): Make static.
1633 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 1634
68003d6b
LK
16352005-07-04 Lute Kamstra <lute@gnu.org>
1636
dc2204be 1637 * Update FSF's address in GPL notices.
68003d6b 1638
3d393029
RS
16392005-07-03 Richard M. Stallman <rms@gnu.org>
1640
1641 * xdisp.c (try_window): Fix previous change in how it handles
1642 a partially-visible line or one only partly past the margin.
1643
1644 * window.c (window_scroll_pixel_based): Take account
1645 of this_scroll_margin when finding point when scrolling up.
1646
16472005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
1648
1649 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1650 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
1651 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
1652
d6951bb4
EZ
16532005-07-02 Juri Linkov <juri@jurta.org>
1654
1655 * w32term.c (w32_draw_vertical_window_border): Use foreground of
1656 VERTICAL_BORDER_FACE_ID for vertical border line.
1657
b016179b
EZ
16582005-07-02 Eli Zaretskii <eliz@gnu.org>
1659
1660 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
1661 fchmod so that chmod doesn't get called on MSDOS before the file
1662 is closed.
1663
c2baa2b6
JR
16642005-07-01 Jason Rumney <jasonr@gnu.org>
1665
1666 * w32term.c (cleartype_active): New flag for enabling sub-pixel
1667 workaround.
1668 (w32_initialize): Initialize it.
1669 (w32_native_per_char_metric): Allow a couple of extra pixels when
1670 Cleartype is active.
1671
1672 * w32term.c (w32_initialize): Move check for screen reader here
1673 from syms_of_w32term.
1674
a6d0ae55
JD
16752005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1676
1677 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
1678 is not zero.
1679
711877f3
MY
16802005-07-01 Masatake YAMATO <jet@gyve.org>
1681
a4429c5b 1682 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 1683
63f7ffb3
JL
16842005-06-30 Juri Linkov <juri@jurta.org>
1685
1686 * xdisp.c (x_draw_vertical_border): If left fringe is not present
1687 decrease x coord of vertical border by 1 pixel to not occupy text
1688 area of the right window.
1689
1690 * xterm.c (x_draw_vertical_window_border): Use foreground of
1691 VERTICAL_BORDER_FACE_ID for vertical border line.
1692
1693 * term.c (turn_on_face): In standout mode apply specified
1694 fg to bg, and specified bg to fg (this makes the logic of
1695 inversion on terminal consistent with X).
1696
b26860ad
JB
16972005-06-29 Juanma Barranquero <lekktu@gmail.com>
1698
1699 * eval.c (user_variable_p_eh): New function.
1700 (Fuser_variable_p): Use it. Clarify docstring.
1701 Return t for aliases of user options, nil for alias loops.
1702
3a1f1d79
RS
17032005-06-27 Richard M. Stallman <rms@gnu.org>
1704
1705 * eval.c (Fdefvar): Improve error message.
1706
92de1e01
YM
17072005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1708
1709 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
1710 change.
1711
69410484
JB
17122005-06-27 Juanma Barranquero <lekktu@gmail.com>
1713
1714 * eval.c (Fdefvar): Don't try to set constant symbols.
1715
09352e8f
RS
17162005-06-25 Richard M. Stallman <rms@gnu.org>
1717
a68d870b
RS
1718 * macfns.c (Fx_show_tip): Pass new arg to try_window.
1719
1720 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
1721
1722 * xfns.c (Fx_show_tip): Pass new arg to try_window.
1723
1724 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
1725 (redisplay_window): Handle try_window reporting point in scroll margin.
1726
1727 * dispextern.h (try_window): Declare new arg.
1728
1729 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
1730 Use fchmod to copy the file modes.
1731 (Frename_file): Don't copy UID and GID here;
1732 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
1733
df13531d
RS
1734 * eval.c (call_debugger): Take full care of extending stack limits
1735 to make space for the debugger, and restore the change afterward.
1736 Bind debug-on-error to nil.
1737 (restore_stack_limits): New subroutine.
1738 (Fsignal): Extend specpdl bound along with eval depth bound,
1739 for calling edebug. Don't do either one, for calling debugger.
1740 (find_handler_clause): Don't bind debug-on-error here.
1741 Don't unbind anything either.
1742 Temporarily advance max_specpdl_size for calling
1743 internal_with_output_to_temp_buffer.
1744 (grow_specpdl): Don't alter max_specpdl_size before signaling
1745 an error.
1746 (syms_of_eval) <max-specpdl-size>: Doc fix.
1747
09352e8f
RS
1748 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
1749
90296dd3
EZ
17502005-06-24 Eli Zaretskii <eliz@gnu.org>
1751
1752 * fileio.c (Frename_file): Undo last change: no need to ifdef away
1753 chown on DOS_NT platforms.
1754
1755 * w32.c (sys_chown): New function.
1756
1757 * s/ms-w32.h (chown): New; define to sys_chown.
1758
c4f6ca24
JB
17592005-06-24 Juanma Barranquero <lekktu@gmail.com>
1760
3338c0ad
JB
1761 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
1762 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
1763
9a1505e9 1764 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 1765
528b6abc
RS
17662005-06-23 Richard M. Stallman <rms@gnu.org>
1767
1768 * xdisp.c (get_next_display_element): Finish reversing the tests of
1769 Vnobreak_char_display.
1770
9a1505e9 1771 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 1772 All uses changed.
9a1505e9 1773 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
1774 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
1775
1776 * fileio.c (Frename_file): Preserve owner and group, if possible,
1777 when copying.
1778
1d1c7e75
JB
17792005-06-23 Juanma Barranquero <lekktu@gmail.com>
1780
253b2298
JB
1781 * abbrev.c (Funexpand_abbrev):
1782 * category.c (Fmake_category_set):
1783 * dispnew.c (Fsleep_for, Fsit_for):
1784 * editfns.c (Fsubst_char_in_region):
1785 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
1786 * frame.c (make_frame_without_minibuffer):
1787 * lread.c (read_vector):
1788 * macfns.c (check_x_frame):
1789 * process.c (Fstop_process, Fcontinue_process):
1790 * search.c (Freplace_match):
1791 * syntax.c (Fstring_to_syntax):
1792 * w32fns.c (check_x_frame, check_x_display_info):
1793 * xfaces.c (x_supports_face_attributes_p):
1794 * xselect.c (Fx_own_selection_internal): Follow error conventions.
1795
1d1c7e75
JB
1796 * image.c (fn_png_init_io): Don't define it.
1797 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
1798 (png_read_from_file): New function, based on png_read_from_memory.
1799 (png_load): Use it, instead of fn_png_init_io.
1800
d1fab151
KS
18012005-06-23 Kim F. Storm <storm@cua.dk>
1802
1803 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 1804 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
1805 Add commentary explaining evaporate arg (for internal use only).
1806 (unwind_set_match_data): Add comment on evaporate use.
1807
53abc3bf
MB
18082005-06-22 Miles Bader <miles@gnu.org>
1809
a4429c5b 1810 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
1811 (realize_basic_faces, syms_of_xfaces): Update references to it.
1812 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
1813 to `VERTICAL_BORDER_FACE_ID'.
1814 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
1815
36a3b076
JL
18162005-06-21 Juri Linkov <juri@jurta.org>
1817
1818 * dispextern.h: Add extern Qframe_set_background_mode.
1819
1820 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
1821 Qframe_set_background_mode.
1822
1823 * frame.c (Fmodify_frame_parameters):
1824 Call frame-set-background-mode after changing the background color
1825 on non-window non-dos branch.
1826
23873c96
JB
18272005-06-21 Juanma Barranquero <lekktu@gmail.com>
1828
1829 * fns.c (Fchar_table_range):
1830 * process.c (Fmake_network_process): Fix spellings.
1831
b7d1f38f
KS
18322005-06-20 Kim F. Storm <storm@cua.dk>
1833
1834 * fns.c (Fsort): Doc fix.
1835
b4e49aee
MB
18362005-06-20 Miles Bader <miles@gnu.org>
1837
1838 * xfaces.c (Qvertical_divider): New variable.
1839 (realize_basic_faces): Realize its face.
1840 (syms_of_xfaces): Initialize it.
1841
1842 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
1843
1844 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
1845 window-separator on ttys using `vertical-divider' face by default.
1846
b7da00ba
RS
18472005-06-17 Richard M. Stallman <rms@gnu.org>
1848
a4429c5b
SM
1849 * xdisp.c (get_next_display_element):
1850 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
1851
1852 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
1853 (Ftty_no_underline): New function.
1854 (syms_of_term): defsubr it.
b7d1f38f 1855
b7da00ba
RS
1856 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
1857
1858 * dispnew.c (spec_glyph_lookup_face): New function.
1859 (build_frame_matrix_from_leaf_window): Use it.
1860
1861 * dispextern.h (spec_glyph_lookup_face): Add declaration.
1862
1863 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1864
18652005-06-12 Richard M. Stallman <rms@gnu.org>
1866
1867 * keyboard.c (read_char): After catching a longjmp,
1868 call restore_getcjmp.
1869
289824a3
JB
18702005-06-17 Juanma Barranquero <lekktu@gmail.com>
1871
1872 * xselect.c (lisp_data_to_selection_data): Fix spelling.
1873
95085023
YM
18742005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1875
1876 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
1877 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
1878 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
1879 events.
1880 (XTread_socket): Don't pass keyboard events with the option
1881 modifier to the system when Vmac_command_key_is_meta is nil or
1882 Vmac_option_modifier is non-nil.
1883 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
1884 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
1885 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
1886 handler function.
1887 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
1888 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
1889 handler part to mac_handle_mouse_event.
1890
4a9308b8
JB
18912005-06-14 Juanma Barranquero <lekktu@gmail.com>
1892
1893 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
1894 NEW-ALIAS and BASE-VARIABLE, respectively.
1895
5aa6db57
SM
18962005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
1897
1898 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1899 (get_phys_cursor_geometry, format_mode_line_unwind_data)
1900 (get_line_height_property, x_produce_glyphs): Remove unused vars.
1901
1902 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
1903
0e0dddda
EZ
19042005-06-13 Eli Zaretskii <eliz@gnu.org>
1905
1906 * w32term.c (x_use_underline_position_properties): New variable.
1907 (x_draw_glyph_string): Remind in a comment to change doc string of
1908 x-use-underline-position-properties if/when underline positioning
1909 is implemented.
1910 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
1911 and initialize it to nil.
1912
7f2b4738
JR
19132005-06-12 Jason Rumney <jasonr@gnu.org>
1914
1915 * w32fns.c (NEWOPENFILENAME): New struct.
1916 (Fx_file_dialog): Use it to trick the system into giving us up to
1917 date dialogs on systems that are documented to support it.
1918 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
1919
a1e8cad6
EZ
19202005-06-12 Eli Zaretskii <eliz@gnu.org>
1921
1922 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
1923 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
1924
099a3eea
EZ
19252005-06-11 Eli Zaretskii <eliz@gnu.org>
1926
2e09fef1
EZ
1927 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
1928 to CreateDIBSection to avoid a compiler warning.
1929 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
1930 warning.
1931 (png_load): Cast return values of fn_png_create_read_struct and
1932 fn_png_create_info_struct, to avoid compiler warnings on W32.
1933 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
1934 to avoid compiler warnings.
1935 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
1936 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
1937 avoid a compiler warning.
1938 (tiff_load): Cast return values of fn_TIFFOpen and
1939 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
1940 to IMAGE_BACKGROUND to avoid a compiler warning.
1941 (gif_load): Cast return values of fn_DGifOpenFileName and
1942 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
1943 IMAGE_BACKGROUND to avoid a compiler warning.
1944 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
1945 before redefining.
1946
099a3eea
EZ
1947 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
1948 the call to CreateDIBSection, to avoid a compiler warning.
1949
d11f8e1a
JR
19502005-06-11 Jason Rumney <jasonr@gnu.org>
1951
1952 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
1953 minibuffer.
1954 * macfns.c (Fx_file_dialog): Likewise.
1955
cd4344a3
EZ
19562005-06-10 Eli Zaretskii <eliz@gnu.org>
1957
1958 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
1959
578c1340
JB
19602005-06-10 Juanma Barranquero <lekktu@gmail.com>
1961
1962 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
1963 * w32fns.c (syms_of_w32fns): Fix spellings.
1964
4162f25f
EZ
19652005-06-10 Eli Zaretskii <eliz@gnu.org>
1966
1967 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
1968 `verbose'; print diagnostic messages only if it is non-zero.
1969 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
1970 in the environment.
1971 (copy_executable_and_dump_data): Print section names with %.8s.
1972
121c59a3
MY
19732005-06-10 Masatake YAMATO <jet@gyve.org>
1974
1975 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
1976 when mouse_face is not given.
121c59a3 1977
c869384d
LT
19782005-06-09 Luc Teirlinck <teirllm@auburn.edu>
1979
1980 * window.c (Fselect_window): Adapt call to Fselect_frame.
1981
1982 * lisp.h: Update EXFUN of Fselect_frame.
1983
1984 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
1985
6ecf436d
LT
1986 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
1987 no_enter.
1988 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
1989 Adapt to above change.
1990
c14ec135
JB
19912005-06-10 Juanma Barranquero <lekktu@gmail.com>
1992
1993 * fns.c (Fmemq, Fmaphash): Doc fixes.
1994
9fed2905
JB
19952005-06-09 Juanma Barranquero <lekktu@gmail.com>
1996
1997 * xfaces.c (Fdisplay_supports_face_attributes_p):
1998 Fix typo in docstring.
1999
427c5b1b
ST
20002005-06-08 Steven Tamm <steventamm@mac.com>
2001
2002 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
2003 used by gcc4 on intel mac.
2004
b7aae902
KS
20052005-06-09 Kim F. Storm <storm@cua.dk>
2006
2007 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
2008 in REUSE list if non-nil; free them if equal to evaporate.
2009 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
2010 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
2011 (restore_search_regs): Rename from restore_match_data. Uses changed.
2012 (unwind_set_match_data): New function.
2013 (record_unwind_save_match_data): New function like save-match-data.
2014
2015 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
2016 (record_unwind_save_match_data): Add prototype.
2017 (restore_search_regs): Rename from restore_match_data.
2018
2019 * composite.c (compose_chars_in_text):
2020 * eval.c (do_autoload):
2021 * macmenu.c (set_frame_menubar):
2022 * process.c (read_process_output, exec_sentinel):
2023 * xmenu.c (set_frame_menubar):
2024 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
2025 * w32menu.c (set_frame_menubar):
2026 Use record_unwind_save_match_data.
2027
547d2b37
RS
20282005-06-08 Richard M. Stallman <rms@gnu.org>
2029
2030 * xdisp.c (get_next_display_element): Alter previous change:
2031 Distinguish Vshow_nonbreak_escape = t or not t.
2032 For t, use escape_glyph once again, as before previous change.
2033 Use space or hyphen for display, instead of the non-ASCII char.
2034 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
2035
2036 * process.c (Fstart_process): Don't touch command_channel_p slot.
2037
99598737 2038 * process.h (struct process): Delete command_channel_p.
547d2b37 2039
602907ae
MY
20402005-06-07 Masatake YAMATO <jet@gyve.org>
2041
5aa6db57
SM
2042 * xdisp.c (note_mode_line_or_margin_highlight):
2043 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 2044 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
2045 is not ON_MODE_LINE nor ON_HEADER_LINE.
2046
8b793bed
KS
20472005-06-07 Kim F. Storm <storm@cua.dk>
2048
2049 * process.c: Improve commentary for adaptive read buffering.
2050
3d031334
SM
20512005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
2052
2053 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
2054 if available.
2055
16d2e704
JD
20562005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2057
5aa6db57
SM
2058 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2059 New functions for popping down menus on C-g.
16d2e704
JD
2060 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
2061
2062 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
2063 non-static.
2064
9fed2905 2065 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 2066
b6cc2ad0
EZ
20672005-06-06 Eli Zaretskii <eliz@gnu.org>
2068
9a1505e9 2069 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 2070
5aa6db57 2071 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
2072
2073 * w32proc.c (RVA_TO_PTR): New macro.
2074
2075 * w32heap.c (RVA_TO_PTR): No need to #undef now.
2076
2077 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
2078 Depend on w32heap.h.
2079
24e55feb
LT
20802005-06-06 Luc Teirlinck <teirllm@auburn.edu>
2081
2082 * keyboard.c (command_loop_1): Update Vthis_original_command.
2083
ce6e10af
RS
20842005-06-06 Richard M. Stallman <rms@gnu.org>
2085
2086 * xmenu.c (popup_get_selection): Undo previous change.
2087
c476bcb0
JL
20882005-06-06 Juri Linkov <juri@jurta.org>
2089
2090 * xdisp.c (Qno_break_space): New variable.
2091 (syms_of_xdisp): Initialize it.
2092 (get_next_display_element): Add no-break space and soft hypen
2093 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
2094 Use `no-break-space' face for no-break spaces.
2095
5494d7bc
JD
20962005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2097
2098 * window.c (delete_window): Handle the case where a h/vchild has
2099 a h/vchild.
2100
a0c38328
EZ
21012005-06-05 Eli Zaretskii <eliz@gnu.org>
2102
2103 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
2104 call to pfn_setsockopt, cast optval to `const char *'.
2105
91018229
EZ
21062005-06-04 Eli Zaretskii <eliz@gnu.org>
2107
1a8fb426
EZ
2108 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
2109 (open_unc_volume): Cast return value of map_w32_filename, to avoid
2110 compiler warnings.
2111
b6f0a397
EZ
2112 * s/ms-w32.h (fileno): Don't define if already defined.
2113
17a7c5c2 2114 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 2115
91018229
EZ
2116 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
2117
196ac78c
RS
21182005-06-04 Richard M. Stallman <rms@gnu.org>
2119
2120 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
2121
b8987570
JD
21222005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2123
2124 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 2125 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
2126 mac_menu_show Quit:s.
2127 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
2128 a dialog).
2129
555228aa
KS
21302005-06-04 Kim F. Storm <storm@cua.dk>
2131
2132 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
2133
2134 * callproc.c (Fcall_process): Don't use alloca to gradually
2135 increase size of buf, as it effectively uses twice the necessary
2136 space on the stack. Instead, pre-allocate buf of full size, and
2137 gradually increase the read size.
2138
2139 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
2140
2141 * eval.c (unbind_to): Preserve value of Vquit_flag.
2142
2143 * xterm.c (handle_one_xevent): Also ignore mouse motion just
2144 before a button release event.
2145
6312e5f7
JB
21462005-06-03 Juanma Barranquero <lekktu@gmail.com>
2147
2148 * xfaces.c (Finternal_lisp_face_equal_p): Really report
2149 on faces in a frame, if the argument FRAME is non-nil.
2150 Improve argument/docstring consistency.
2151
0493f7be
KS
21522005-06-02 Kim F. Storm <storm@cua.dk>
2153
2154 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
2155 (x_consider_frame_title, Fformat_mode_line): Save offset into
2156 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
2157
89fe657e
KS
21582005-06-01 Kim F. Storm <storm@cua.dk>
2159
2160 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
2161
02a6375c
YM
21622005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2163
2164 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
2165 resolution fields for scalable fonts to 0.
2166
2167 * xfaces.c (build_scalable_font_name): Round pixel size to the
2168 nearest integer.
2169
95d4fad8
KS
21702005-06-01 Kim F. Storm <storm@cua.dk>
2171
2172 * xdisp.c (display_mode_line): Support nested calls to redisplay
2173 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
2174
3c1b433a
SM
21752005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2176
2177 * fileio.c (Finsert_file_contents):
2178 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2179
13cc7d61
KS
21802005-05-31 Kim F. Storm <storm@cua.dk>
2181
2182 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
2183 (mode_line_noprop_ptr): Rename from frame_title_*.
2184 (store_mode_line_noprop_char): Rename from store_frame_title_char.
2185 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 2186 (mode_line_target): New enum to specify current output target
13cc7d61
KS
2187 for mode line formatting.
2188 (display_mode_element): Test it rather than frame_title_ptr and
2189 mode_line_string_list to determine where output should go.
2190 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
2191 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
2192 (format_mode_line_unwind_data, unwind_format_mode_line):
2193 New functions for unwind protection in mode line formatting.
13cc7d61 2194 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
2195 to support nested calls to format-mode-line and redisplay.
2196 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 2197 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
2198 support nested calls to format-mode-line and redisplay.
2199 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 2200 Don't trim trailing dashes.
13cc7d61
KS
2201 (decode_mode_spec): Don't make infinite number of trailing dashes
2202 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
2203 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
2204 mode_line_string_face_prop, and Vmode_line_unwind_vector.
2205 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
2206 Initialize mode_line_target to MODE_LINE_DISPLAY.
2207
c16b1394
RS
22082005-05-29 Richard M. Stallman <rms@gnu.org>
2209
2210 * buffer.c (Fbuffer_local_value): Call indirect_variable.
2211
edfaeb4e
MY
22122005-05-28 Masatake YAMATO <jet@gyve.org>
2213
2214 * xdisp.c (note_mode_line_or_margin_highlight): Change the
2215 pointer to a hand cursor when hoovering over a mouse-face.
2216
7cf49add
KH
22172005-05-27 Kenichi Handa <handa@m17n.org>
2218
2219 * xterm.c (x_encode_char): Call check_ccl_update in advance.
2220
2221 * ccl.c: Now an element of Vccl_program_table is a vector of
2222 length 4, not 3.
3c1b433a
SM
2223 (ccl_get_compiled_code): New arg idx. Caller changed.
2224 Adjust for the change of Vccl_program_table.
2225 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
2226 (check_ccl_update): New function.
2227 (Fregister_ccl_program): Use ASET to set an element of a vector.
2228 Adjusted for the change of Vccl_program_table.
2229
2230 * ccl.h (struct ccl_program): New member idx.
2231 (check_ccl_update): Extern it.
2232
5e2ad10b
JB
22332005-05-27 Juanma Barranquero <lekktu@gmail.com>
2234
3c1b433a 2235 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
2236 (syms_of_image): Defvar it.
2237 (lookup_image_type): Use it.
2238
5e2ad10b
JB
2239 * buffer.c (Fbuffer_local_value): Make argument name match its use
2240 in docstring.
2241
6e604a9b
JB
22422005-05-26 Juanma Barranquero <lekktu@gmail.com>
2243
2244 * keyboard.c (Frecursive_edit): Fix typo in docstring.
2245 (Fposn_at_x_y): Make argument name match its use in docstring.
2246
59244a3f
LK
22472005-05-26 Lute Kamstra <lute@gnu.org>
2248
2249 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
2250
55ce5058
MY
22512005-05-24 Masatake YAMATO <jet@gyve.org>
2252
2253 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
2254 as loop sentinels.
2255
cb5db137
NR
22562005-05-24 Nick Roberts <nickrob@snap.net.nz>
2257
2258 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
2259 select frame title ("Question"/"Information").
2260 (xdialog_show): Use it.
2261
13dcfc35
NR
2262 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
2263
2264 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
2265
d3393daa
NR
2266 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
2267 a third argument (Qnil).
2268
2269 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
2270
2271 * editfns.c (Fmessage_box): Use "Information" for frame title.
2272
71d4fba1
TTN
22732005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
2274
2275 * termcap.c [VMS]: Include <starlet.h>.
2276
359e4563
MY
22772005-05-23 Masatake YAMATO <jet@gyve.org>
2278
6e604a9b
JB
2279 * xdisp.c (note_mode_line_or_margin_highlight): Add code
2280 for mouse-face. Change the type of the first argument from `window'
2281 to `Lisp_Object'.
359e4563
MY
2282 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
2283 window instead of w.
2284
edceb51c
AS
22852005-05-22 Andreas Schwab <schwab@suse.de>
2286
41c4895c 2287 * process.c (send_process): Move misplaced volatile.
edceb51c 2288
5c213fcc
RS
22892005-05-21 Richard M. Stallman <rms@gnu.org>
2290
2291 * xdisp.c (display_mode_element): If we're processing a list and
2292 padding is specified, put it after the last element.
2293
aa4060b9
EZ
22942005-05-21 Eli Zaretskii <eliz@gnu.org>
2295
2296 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
2297 "superroot" on DOS_NT systems.
2298
a2c9aee6
EZ
22992005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
2300
2301 * process.c (send_process): Restore the SIGPIPE handler if we
2302 catch a SIGPIPE.
2303
09e8eb5b
JB
23042005-05-20 Juanma Barranquero <lekktu@gmail.com>
2305
2306 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
2307 misleading comments).
2308 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
2309
f3fbdb1f
LK
23102005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2311
2312 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
2313 Correct the right value.
2314
639ec765
NR
23152005-05-19 Nick Roberts <nickrob@snap.net.nz>
2316
240d926e 2317 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
2318 post-command-idle-hook and post-command-idle-delay.
2319 (command_loop_1): Don't try to execute post-command-idle-hook.
2320
03d42907
KS
23212005-05-16 Kim F. Storm <storm@cua.dk>
2322
1cb83e13
KS
2323 * xdisp.c (handle_display_prop): Handle empty replacement.
2324 (handle_single_display_spec): Return -1 for empty replacement.
2325
2326 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
2327
03d42907
KS
2328 * .gdbinit (pitx): Print more info about iterator.
2329
0da46b6e
AS
23302005-05-16 Andreas Schwab <schwab@suse.de>
2331
3c1b433a 2332 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 2333
d06ba294
RS
23342005-05-14 Richard M. Stallman <rms@gnu.org>
2335
2336 * xdisp.c (message3): Call cancel_echoing.
2337
2338 * alloc.c (Fmemory_full_p): New function.
2339 (syms_of_alloc): defsubr it.
2340
2341 * process.c (send_process_trap): Unblock SIGPIPE.
2342 (send_process): Reset SIGPIPE handler before reporting error.
2343
90713743
NR
23442005-05-14 Nick Roberts <nickrob@snap.net.nz>
2345
2346 * emacs.c (syms_of_emacs): Fix doc string for system-type.
2347
68780e2a
RS
23482005-05-13 Richard M. Stallman <rms@gnu.org>
2349
2350 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
2351 (Finsert_file_contents): If we read 0 bytes from a special file,
2352 unlock the visited file if we locked it.
2353 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 2354 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 2355
5063dbbf
YM
23562005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2357
2358 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
2359
3c1b433a
SM
2360 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
2361 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
2362 redisplay from being paused by them.
2363
2364 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
2365 [!MAC_OSX] (target_ticks): Remove variable.
2366 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
2367 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
2368 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 2369 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
2370 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
2371 handling using Time Manager routines.
3c1b433a
SM
2372 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
2373 New variables.
5063dbbf
YM
2374 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
2375 (setitimer): New functions.
2376
2377 * macfns.c, macmenu.c: Don't include signal.h.
2378
2379 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
2380 Rename from get_control_part_bound. All callers changed.
2381 (x_scroll_bar_clear): New function.
2382 (x_clear_frame): Use it.
2383 (XTset_vertical_scroll_bar): Don't call Draw1Control.
2384 (x_scroll_bar_handle_click): Change type of second argument from
2385 int to ControlPartCode.
2386 (check_alarm): Remove declaration.
02a6375c
YM
2387 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
2388 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
2389
23902005-05-13 Nozomu Ando <nand@mac.com>
2391
2392 * unexmacosx.c: Include assert.h.
2393 (MACOSX_MALLOC_MULT16): New define.
2394 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
2395 ptr is in unexec regions by checking it is multiple of 16.
2396 (unexec_malloc_header_t): New typedef.
2397 (unexec_malloc, unexec_realloc, unexec_free): Store and use
2398 allocated size information in unexec_malloc_header.
2399
d101bf56
RS
24002005-05-10 Richard M. Stallman <rms@gnu.org>
2401
2402 * xterm.c (noinclude): Add #undef.
2403
2404 * image.c, xfns.c, xmenu.c: Don't include signal.h.
2405
2f60660a
JB
24062005-05-09 Juanma Barranquero <lekktu@gmail.com>
2407
f1701e65
JB
2408 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
2409 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
2410 Doc fixes.
2411
2f60660a
JB
2412 * dired.c (Ffile_name_completion): Make argument name
2413 match its use in docstring.
2414
9f29e806
LT
24152005-05-08 Luc Teirlinck <teirllm@auburn.edu>
2416
2417 * eval.c (Fdefvaralias): Remove any pre-existing
2418 variable-documentation property of the alias.
2419
a790bcd4
TTN
24202005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
2421
2422 * xfns.c (start_hourglass): Do nothing when running on a tty.
2423
d5fb8dab
JB
24242005-05-07 Juanma Barranquero <lekktu@gmail.com>
2425
2426 * fns.c (Fchar_table_range): Fix typos in docstring.
2427
7ec64183
SM
24282005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2429
2430 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
2431
6ff95f1d
EZ
24322005-05-06 Eli Zaretskii <eliz@gnu.org>
2433
2c6b25c7
EZ
2434 * lread.c (Flocate_file_internal): Doc fix.
2435
6ff95f1d
EZ
2436 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
2437
17d28d26
YM
24382005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2439
2440 * macselect.c (x_own_selection): Accept Lisp string as result of
2441 selection converter function.
2442 (x_clear_frame_selections): Don't call x-lost-selection-functions
2443 if Emacs is not owner of the selection.
2444 (Vmac_services_selection): Put variable and initialization in
2445 #ifdef MAC_OSX.
2446 (syms_of_macselect) [MAC_OSX]: Set default value of
2447 Vmac_services_selection to PRIMARY.
2448
7ec64183
SM
2449 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
2450 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
2451 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
2452 (install_scroll_bar_timer, set_scroll_bar_timer)
2453 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
2454 (get_control_part_bound, x_scroll_bar_handle_press)
2455 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
2456 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
2457 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
2458 (scroll_bar_timer_event_posted_p): New variables.
2459 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
2460 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
2461 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
2462 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2463 Initialize track_top and track_height to nil.
2464 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
2465 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
2466 (XTset_vertical_scroll_bar): Don't make space between scroll bar
2467 and associated window.
2468 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
2469 from window config.
7ec64183
SM
2470 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2471 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
2472 Recalculate them if they are nil.
2473 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
2474 clicked control is a scroll bar.
2475 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
2476 event handler functions. Don't add modifiers to scroll bar click
7ec64183 2477 events. Call scroll bar release handler when window is deactivated.
17d28d26 2478 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
2479 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
2480 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 2481
7ec64183
SM
2482 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2483 New members track_top and track_height.
17d28d26
YM
2484
2485 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
2486 init_process when including sys/select.h.
2487
643b4cf5
LT
24882005-05-05 Luc Teirlinck <teirllm@auburn.edu>
2489
2490 * eval.c (Fdefvaralias): Doc fix.
2491
2492 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2493
99bda128
KS
24942005-05-05 Kim F. Storm <storm@cua.dk>
2495
2496 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
2497 default value.
2498 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
2499 Fix type of cursor-in-non-selected-windows.
2500
3a3563e9
JD
25012005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2502
2503 * mac.c: #undef init_process so not to conflict with system headers.
2504
0124c5bd
RS
25052005-05-02 Richard M. Stallman <rms@gnu.org>
2506
2507 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
2508
2509 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
2510
2511 * xdisp.c (Vcursor_in_non_selected_windows)
2512 (Qcursor_in_non_selected_windows): Vars deleted.
2513 (syms_of_xdisp): Don't initialize them.
2514 (get_window_cursor_type): Use cursor_in_non_selected_windows
2515 buffer slot.
2516
4b3f161f
KS
25172005-05-02 Kim F. Storm <storm@cua.dk>
2518
e40527dc
KS
2519 * macros.c (executing_kbd_macro_index): Rename from
2520 executing_macro_index. All uses changed.
2521 (executing_kbd_macro_iterations): Rename from
2522 executing_macro_iterations. All uses changed.
2523 (executing_kbd_macro): Rename from executing_macro.
2524 All uses changed.
2525 (syms_of_macros): Rename Lisp var executing-macro-index to
2526 executing-kbd-macro-index.
2527
4b3f161f
KS
2528 * xdisp.c (move_it_in_display_line_to): Fix last change.
2529
4d49edf6
LT
25302005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2531
f6b1b15a
LT
2532 * xmenu.c (Fx_popup_menu): Doc fix.
2533
4d49edf6
LT
2534 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
2535
4a766fe6
JR
25362005-05-02 Jason Rumney <jasonr@gnu.org>
2537
2538 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
2539
c924d3ff
TTN
25402005-05-02 Nozomu Ando <nand@mac.com>
2541
2542 * sysselect.h: Fix typo.
2543
b161ea4e 25442005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 2545
b161ea4e
NR
2546 * charset.c (Fchars_in_region): Remove as obsolete.
2547
d37e919d 25482005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
2549
2550 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 2551 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 2552 glyph.
5c2e5a5e 2553
bec0b768
LT
25542005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2555
2556 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
2557
ebbfa918
RS
25582005-05-01 Richard M. Stallman <rms@gnu.org>
2559
2560 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
2561 If user cancels the menu, quit unless FOR_CLICK.
2562
7ec64183 2563 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
2564 All uses changed.
2565 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
2566 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
2567 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
2568 * commands.h (Vexecuting_kbd_macro): Likewise.
2569
a72c2d97
TTN
25702005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
2571
2572 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
2573
7e995a23
RS
25742005-04-30 Richard M. Stallman <rms@gnu.org>
2575
2576 * fileio.c (Ffind_file_name_handler): Handle the `operations'
2577 property of the file name handler.
2578 (Qoperations): New variable.
2579 (syms_of_fileio): Initialize and staticpro it.
2580
2581 * xdisp.c (set_message_1): Delete xassert.
2582
7a92caf8
YM
25832005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2584
7ec64183 2585 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
2586
2587 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
2588
2589 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
2590 before/after including Carbon.h if there is a working mktime.
2591
5ae91803
KS
25922005-04-28 Kim F. Storm <storm@cua.dk>
2593
2594 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
2595 Fix cyclic alias check. If alias loop is detected, signal
2596 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
2597
d79b6c21
LK
25982005-04-28 Lute Kamstra <lute@gnu.org>
2599
2600 * eval.c (do_autoload): Record only autoloads in the autoload
2601 property of symbols.
2602
8c75afbf
NR
26032005-04-28 Nick Roberts <nickrob@snap.net.nz>
2604
2605 * emacs.c (USAGE1): Add --basic-display and --quick options.
2606
832e294f
KS
26072005-04-27 Kim F. Storm <storm@cua.dk>
2608
2609 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
2610
f03f317a
RS
26112005-04-26 Richard M. Stallman <rms@gnu.org>
2612
c019856e
RS
2613 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
2614 (syms_of_window): Doc fixes.
2615
f03f317a
RS
2616 * indent.c (Fvertical_motion): Undo previous change.
2617
38f60cd9
KH
26182005-04-26 Kenichi Handa <handa@m17n.org>
2619
2620 * fns.c (char_table_range): New function.
2621 (Fchar_table_range): Signal an error if characters in the range
2622 have inconsistent values. Don't check the parent.
2623
87ede5a1
KH
26242005-04-25 Kenichi Handa <handa@m17n.org>
2625
2626 * fontset.c (fontset_set): Fix previous change.
2627
a6390474
RS
26282005-04-24 Richard M. Stallman <rms@gnu.org>
2629
2630 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
2631
7fce7dfe
EZ
26322005-04-24 Eli Zaretskii <eliz@gnu.org>
2633
cf1982d9
EZ
2634 * regex.c (re_search_2, re_match_2_internal): Convert second arg
2635 of RE_TRANSLATE to int, to shut up GCC warnings.
2636
7fce7dfe
EZ
2637 * fileio.c (Fcopy_file): Doc fix.
2638 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
2639 not needed.
2640
49ed33c7
YM
26412005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2642
2643 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
2644 (SOME_MACHINE_OBJECTS): Likewise.
2645 (mac.o): Depend on ccl.h.
2646 (macselect.o): New target.
2647
7ec64183
SM
2648 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
2649 Call syms_of_macselect.
49ed33c7
YM
2650
2651 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
2652
7ec64183 2653 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
2654 (QCLIPBOARD): Remove variable.
2655 (syms_of_mac): Don't initialize it.
2656 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
2657 Remove functions.
2658 (syms_of_mac): Don't defsubr them.
2659 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
2660 (QHFS_plus_D, QHFS_plus_C): New variables.
2661 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
2662 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
2663 (cfstring_create_normalized): New functions.
2664 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
2665 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2666
7ec64183
SM
2667 * macterm.c (handling_window_update, terminate_flag):
2668 Remove variables.
2669 (do_window_update, do_ae_quit_application, XTread_socket):
2670 Don't use them.
49ed33c7
YM
2671 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
2672 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
2673 (init_service_handler): Move to macselect.c. Remove declarations.
2674 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
2675 (Qapplication, Qabout): New variables.
2676 (syms_of_mac): Initialize them.
2677 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
2678 (Qperform): New variables.
2679 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 2680 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
2681 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
2682 (mac_store_application_menu_event, init_menu_bar): New functions.
2683 [USE_CARBON_EVENTS] (mac_handle_command_event)
2684 (init_command_handler): New functions.
2685 (mac_handle_window_event): Return noErr on window update event.
2686 (do_ae_quit_application): Call mac_store_application_menu_event.
2687 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
2688 and init_menu_bar.
2689
2690 * macterm.h (x_clear_frame_selections): Add extern.
2691
2692 * macselect.c: New file for selection processing on Mac OS.
2693
469bc679
RS
26942005-04-23 Richard M. Stallman <rms@gnu.org>
2695
2696 * fileio.c (Fcopy_file): New arg MUSTBENEW.
2697 (Frename_file): Pass new arg to Fcopy_file.
2698
2699 * window.c (window_size_fixed): Variable deleted.
2700 (syms_of_window): Initialize window-size-fixed to nil.
2701 But don't DEFVAR window_size_fixed.
2702
d379c558
AS
27032005-04-23 Andreas Schwab <schwab@suse.de>
2704
2705 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
2706 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
2707 use lib64 instead of lib.
2708 (_LP64) [_ARCH_PPC64]: Define if not defined.
2709
007d105b
TTN
27102005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
2711
2712 * s/ms-w32.h (HAVE_PWD_H): Define.
2713
b9c15916
KH
27142005-04-22 Kenichi Handa <handa@m17n.org>
2715
2716 * fns.c (copy_sub_char_table): Explicitly copy the default value
2717 of the sub-chartable.
2718
2719 * fontset.c (fontset_set): When a sub-chartable is created,
2720 explicitly sets the defalt value.
2721
1ba52906
KS
27222005-04-22 Kim F. Storm <storm@cua.dk>
2723
2724 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
2725 (Fsafe_plist_get): Rename to Fplist_get.
2726 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
2727 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
2728
2729 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
2730
2731 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
2732 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2733 Use Fplist_get instead of Fsafe_plist_get.
2734
2735 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
2736
e235145c
MB
27372005-04-21 Miles Bader <miles@gnu.org>
2738
2739 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
2740
766c5349
TTN
27412005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
2742
c164a7e6
TTN
2743 * sysdep.c: Remove reference to defunct vms-pwd.h.
2744 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
2745 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
2746
766c5349
TTN
2747 * config.in: Regenerate.
2748
2b048bf5
KH
27492005-04-20 Kenichi Handa <handa@m17n.org>
2750
2751 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
2752 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
2753 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
2754
2755 * alloc.c (make_sub_char_table): Argument changed to initial
2756 value of the slots.
2757
2758 * data.c (Faref): Handle special slots used as default values of
2759 ascii, eight-bit-control, eight-bit-control. Don't ignore a
2760 default value set for a group of characters.
2761 (Faset): Signal an error if IDXVAL is not a valid character code.
2762 Make a sub-chartable with correct initial value.
2763
2764 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
2765 values for ascii, eight-bit-control, eight-bit-graphic.
2766 Don't call Faref with charset-id.
2b048bf5
KH
2767 (Fset_char_table_default): Document how to treat normal character
2768 argument. Handle special slots used as default values of ascii,
2769 eight-bit-control, eight-bit-control. Make a sub chartable if
2770 necessary.
2771
b0a35939
KH
27722005-04-20 Kenichi Handa <handa@m17n.org>
2773
2774 * search.c (boyer_moore): Fix previous change.
2775
98dde726
KS
27762005-04-19 Kim F. Storm <storm@cua.dk>
2777
2778 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
2779 face unless last visible char and first invisible char have the
2780 same face. Also use default face if saved_face_id is undefined.
2781
327a3376
YM
27822005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2783
2784 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
2785 `full_name'.
2786 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
2787 mac_scriptcode member.
2788
2789 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
2790 (syms_of_mac): Don't initialize them.
2791 (Vmac_charset_info_alist): New variable.
2792 (syms_of_mac): Defvar it.
2793 (create_text_encoding_info_alist): New function.
2794 (decode_mac_font_name, mac_to_x_fontname)
2795 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
2796 code the correspondence among XLFD charsets, Mac script codes, and
2797 Emacs coding systems. Use Vmac_charset_info_alist and result of
2798 create_text_encoding_info_alist instead.
2799 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
2800 routines also on Mac OS Classic.
7ec64183
SM
2801 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
2802 Use add_font_name_table_entry.
327a3376
YM
2803 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
2804 specified. Derive unspecified scalable fields from specified one.
2805 (x_list_fonts): Consider Valternate_fontname_alist.
2806 (kDefaultFontSize): Change value from 9 to 12.
2807 (XLoadQueryFont): Get decoded font family, font face, and charset
2808 from x_font_name_to_mac_font_name. Set full name of loaded font.
2809 (mac_unload_font): Free `full_name' member.
2810 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
2811 NULL. Copy full_name member of struct MacFontStruct to that of
2812 struct font_info.
2813
d0636839
KS
28142005-04-19 Kim F. Storm <storm@cua.dk>
2815
5827e9d4
KS
2816 * xdisp.c (handle_stop): Set saved_face_id to current face if
2817 selective_display_ellipsis_p so ellipsis will be shown in same
2818 face as preceding text.
2819 (setup_for_ellipsis): Don't set saved_face_id here.
2820 (next_element_from_display_vector): Default to saved_face_id.
2821
d0636839
KS
2822 * fns.c (Fsafe_get): New function.
2823 (syms_of_fns): Defsubr it.
2824
2825 * lisp.h (Fsafe_get): EXFUN it.
2826
2827 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
2828 loops in case of bad face property lists. Limit number of face
2829 alias lookups to 10 (in case of face alias loops).
2830
e5c78c9d
KS
28312005-04-18 Kim F. Storm <storm@cua.dk>
2832
2833 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
2834 It replaces the corresponding member from struct window, as a
2835 window may now show multiple overlay arrows.
2836 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
2837
2838 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
2839 Compare overlay_arrow_bitmap than overlay_arrow_p members.
2840
2841 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
2842 rather than from window.
2843 (update_window_fringes): Compare overlay_arrow_bitmap rather than
2844 overlay_arrow_p members.
2845 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
2846 if not default.
2847
2848 * window.h (struct window): Remove member overlay_arrow_bitmap.
2849
2850 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
2851
2852 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
2853 Calls changed. Don't check for overlay-arrow-bitmap property here.
2854 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
2855 fringe is present, return Lisp integer for bitmap (or -1 for default).
2856 Fix value of overlay-arrow-bitmap property to be a symbol, use
2857 lookup_fringe_bitmap to parse it.
2858 (display_line): Change call to overlay_arrow_at_row. Store integer
2859 return value as overlay bitmap in row rather than window.
2860 Only show overlay arrow if row displays text, or if no other overlay
2861 arrow is seen in window (if overlay marker is at point-max).
2862
7d603e3f
TTN
28632005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2864
2865 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
2866
9942fa0c
LK
28672005-04-18 Lute Kamstra <lute@gnu.org>
2868
2869 * lread.c (Vloads_in_progress): Static.
2870 * fns.c (Vloads_in_progress): Remove extern.
2871 (load_in_progress): Add extern.
2872 (Frequire): Use load_in_progress instead of Vloads_in_progress.
2873
999cdb8f
TTN
28742005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
2875
2876 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
2877
3f4413f8
YM
28782005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2879
2880 * macterm.c (XTread_socket): Don't beep on keyboard input even if
2881 no frame is visible.
2882
60ec7b7e
DN
28832005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2884
2885 * term.c (struct keys): Add support for shifted keys.
2886
a8a1c0ee
RS
28872005-04-16 Richard M. Stallman <rms@gnu.org>
2888
2889 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
2890 (set_message): Call with_echo_area_buffer with WHICH = 0.
2891 (set_message_1): Erase the echo area buffer first thing.
2892 (echo_area_display): Don't clear echo_message_buffer.
2893
f3cf04d3
YM
28942005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2895
2896 * Makefile.in (mac.o): Depend on charset.h and coding.h.
2897
2898 * mac.c: Include charset.h and coding.h.
2899 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 2900 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
2901 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
2902
2903 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
2904
2905 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
2906
2907 * macterm.c (x_autoselect_window_p): Remove variable.
2908 (last_window): New variable.
7ec64183
SM
2909 (XTreassert_line_highlight, x_change_line_highlight):
2910 Remove declarations.
f3cf04d3
YM
2911 (mac_focus_changed, x_detect_focus_change): New functions and
2912 declarations.
2913 (XTextExtents16, front_emacs_window): Remove function.
2914 (mac_focus_frame): New function.
2915 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
2916 (mac_check_for_quit_char): Use it instead of front_emacs_window.
2917 (x_scroll_bar_report_motion): Obtain window from control owner.
2918 (x_make_frame_invisible): Set window manager size hint.
2919 (do_mouse_moved): Remove function.
2920 (XTread_socket): Move its contents here. Generate select-window
2921 event on mouse movement if needed. Use x_detect_focus_change on
2922 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
2923 window rectangle when dnd items are dropped.
2924 Don't activate/deactivate root control.
f3cf04d3
YM
2925 (frame_highlight, frame_unhighlight): Activate/deactivate root
2926 control here.
2927 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
2928
2929 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
2930 New extern.
2931
9e5b2858
LT
29322005-04-15 Luc Teirlinck <teirllm@auburn.edu>
2933
2934 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
2935 (lisp): Use it.
2936 (SOME_MACHINE_LISP): Add tooltip.
2937
42c6741e
YM
29382005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2939
7ec64183
SM
2940 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
2941 Don't include TextEncodingConverter.h.
42c6741e
YM
2942 (mac_system_script_code, Vmac_system_locale): New variables.
2943 (syms_of_mac): Defvar them.
2944 (mac_get_system_locale): New function.
2945
7ec64183
SM
2946 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
2947 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 2948 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
2949 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
2950 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
2951
2952 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
2953 TextEncodingConverter.h.
2954
0614c575
ST
29552005-04-13 Steven Tamm <steventamm@mac.com>
2956
7e26f91b
KS
2957 * macterm.c (syms_of_macterm): Remove redundant definition of
2958 mac-pass-control-to-system.
0614c575 2959
203eb0aa
SM
29602005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2961
2962 * window.c (Fset_window_configuration): Be careful when you choose
2963 among several possible points for the new_current_buffer.
2964
a56e6111
YM
29652005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2966
2967 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
2968 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
2969 (Qlanguage_change) [MAC_OS]: New variable.
2970 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 2971 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
2972
2973 * macterm.c (mac_keyboard_text_encoding)
2974 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
2975 (XTread_socket): Store language-change event if keyboard script change
2976 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 2977 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 2978
7e26f91b 2979 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 2980
6695c528
RS
29812005-04-10 Richard M. Stallman <rms@gnu.org>
2982
2983 * emacs.c (standard_args): Rename --bare-bones to --quick.
2984 Add -D aka --basic-display.
2985
2986 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
2987
18e2d91f
RS
29882005-04-09 Richard M. Stallman <rms@gnu.org>
2989
2990 * keymap.c (where_is_internal): Convert a string used as event type
2991 into "(any string)".
2992
2993 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
2994 * fns.c (Vloads_in_progress): Add extern.
2995 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
2996
29972005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
2998
2999 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
3000
1cf21850
LK
30012005-04-09 Lute Kamstra <lute@gnu.org>
3002
3003 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
3004 within the accessible part of the buffer.
3005
bfd93240
KS
30062005-04-09 Kim F. Storm <storm@cua.dk>
3007
3008 * lread.c (readevalloop): Add args START and END as region in
3009 current buffer to read. Callers changed.
3010 When specified, narrow to this region only when reading,
3011 not during eval. Track next point to read from during eval.
3012 Also restore point to "real" buffer position before eval.
3013 (Feval_region): Don't save excursion and restriction here, and
3014 don't narrow to region. Just pass region to readevalloop.
3015 Note: Point is now preserved even when PRINTFLAG is nil.
3016
9ba27690
KS
30172005-04-08 Kim F. Storm <storm@cua.dk>
3018
3019 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
3020
73f0d996
KS
30212005-04-06 Kim F. Storm <storm@cua.dk>
3022
3023 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
3024
369f76bb
YM
30252005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3026
3027 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
3028 (Fmac_get_preference): Doc fix.
3029
203eb0aa
SM
3030 * macfns.c (Fx_create_frame, x_create_tip_frame):
3031 Add "fontset-mac" to fallback font/fontsets.
369f76bb 3032
2ba613a6
KS
30332005-04-04 Kim F. Storm <storm@cua.dk>
3034
4d5ddddc
KS
3035 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
3036
2ba613a6
KS
3037 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
3038 Call it again after autoload.
3039
1673df2e
JD
30402005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3041
3042 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
3043 mallopt.
3044
3045 * ralloc.c (r_alloc_init): Ditto.
3046
41639988
KH
30472005-04-01 Kenichi Handa <handa@m17n.org>
3048
1cf21850
LK
3049 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
3050 (Vascii_eqv_table): Extern them.
41639988
KH
3051
3052 * casetab.c (set_case_table): If standard is nonzero, setup
3053 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
3054
3055 * search.c (looking_at_1): Use current_buffer->case_canon_table,
3056 not DOWNCASE_TABLE.
3057 (string_match_1): Likewise.
3058 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
3059 Vascii_downcase_table.
3060 (fast_string_match_ignore_case): Likewise.
3061 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
3062 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
3063 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
3064 simple_translate.
3065
6ca53601
SM
30662005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3067
3068 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
3069 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
3070 Use XtNtopShadowPixel and XtNbottomShadowPixel.
3071 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
3072 really work and that breaks with some versions of Xaw3d.
3073
fafbb99d 30742005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
3075
3076 * coding.c (syms_of_coding): Fix previous change.
3077
6ca53601
SM
30782005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
3079
3080 * fileio.c (search_embedded_absfilename): Fix last change.
3081
bf762c98
KH
30822005-03-25 Kenichi Handa <handa@m17n.org>
3083
3084 * coding.c (syms_of_coding): Suggest to use set-coding-category in
3085 the docstring of coding-category-list.
3086
f793f885
KS
30872005-03-31 Kim F. Storm <storm@cua.dk>
3088
3089 * keyboard.c (Qmouse_fixup_help_message): New var.
3090 (syms_of_keyboard): Intern and staticpro it.
3091 (show_help_echo): Apply mouse-fixup-help-message to help string.
3092
c364fe19
KS
30932005-03-30 Kim F. Storm <storm@cua.dk>
3094
3095 * xdisp.c (display_line): Allow multiple overlay arrows in window.
3096
c70a4df6
SM
30972005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3098
3099 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
3100 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
3101 (Ffile_name_absolute_p): Use it.
3102 (search_embedded_absfilename): New fun, extracted from
3103 Fsubstitute_in_file_name. Use file_name_absolute_p.
3104 Free the pw data after use.
3105 (Fsubstitute_in_file_name): Use it.
3106 After cutting a prefix, re-check file-name-handler.
3107
6e7d0438
JR
31082005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
3109
6ca53601 3110 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
3111
3112 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
3113 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
3114
65671706
SM
31152005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3116
3117 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
3118 Use Fexit_minibuffer.
3119 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
3120
0de4dad4
SM
31212005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3122
781da985
SM
3123 * dired.c (Ffile_attributes): Add a missing gcpro.
3124
0de4dad4
SM
3125 * alloc.c (make_number): The arg can be bigger than `int'.
3126 * lisp.h (make_number): Make prototype more precise.
3127
3128 * process.c, dired.c (Vfile_name_coding_system)
3129 (Vdefault_file_name_coding_system):
3130 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
3131 (Vdefault_file_name_coding_system): Remove unused declarations.
3132
ff18668f
JD
31332005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3134
3135 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
3136 if it failed to pop up (Gnome "show pointer on ctrl" option makes
3137 menus fail to pop up).
3138
0de4dad4 31392005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
3140
3141 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 3142 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 3143
8df0ffbe
KS
31442005-03-22 Kim F. Storm <storm@cua.dk>
3145
3146 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
3147 * dispextern.h (lookup_derived_face): Fix prototype.
3148 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
3149
3150 * xdisp.c (handle_single_display_spec): Derive left-fringe and
3151 right-fringe face from fringe face.
3152
3153 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
3154 Derive face from fringe face.
3155
6ca30ba4
JD
31562005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3157
3158 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
3159
d615870a
DK
31602005-03-22 David Kastrup <dak@gnu.org>
3161
3162 * textprop.c (Fnext_char_property_change)
66347da7 3163 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
3164 (Fnext_single_char_property_change)
3165 (Fprevious_single_char_property_change): Check that limit is a
3166 number in strings.
3167 (Fnext_single_char_property_change): Coerce position to integer.
3168 (Fprevious_single_char_property_change): Same here.
3169
32b939ea
TTN
31702005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
3171
3172 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
3173
6027e473
SM
31742005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3175
3176 * frame.c (Fignore_event): Remove.
3177 (syms_of_frame): Don't defsubr it.
3178
3179 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
3180 redundant `ignore-event'.
3181
730f4d72
EZ
31822005-03-19 Eli Zaretskii <eliz@gnu.org>
3183
3184 * unexec.c (write_segment, unexec): Move these functions to avoid
3185 forward references (which cause errors with "gcc -gcoff").
3186
c7f6afd5
JD
31872005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3188
6027e473 3189 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 3190 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 3191
c7f6afd5
JD
3192 * xrdb.c (x_load_resources): Use different char *helv when I18N
3193 is present.
3194
db328182
KH
31952005-03-17 Kenichi Handa <handa@m17n.org>
3196
66347da7 3197 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 3198
211f2210
SM
31992005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3200
3201 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
3202 Use xic_create_fontsetname even for non-Motif menus.
3203 Don't forget to free the fontsetname.
3204
3205 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
3206
c7bd5d57
RS
32072005-03-17 Richard M. Stallman <rms@gnu.org>
3208
3209 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
3210
3211 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
3212 (Fmake_symbolic_link): Use G to read the new file name.
3213
3214 * callint.c (Finteractive): Document G option.
3215 (Fcall_interactively): Implement G option.
3216
3217 * buffer.c (buffer_lisp_local_variables): New function,
3218 broken out from Fbuffer_local_variables.
3219 (clone_per_buffer_values): Use buffer_lisp_local_variables.
3220
888953f1
SM
32212005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3222
3c916d65
SM
3223 * xfns.c (xic_create_fontsetname): Add `motif' argument.
3224 Always return a freshly allocated string.
3225 (xic_create_xfontset): Adjust call.
3226
3227 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
3228 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
3229 (dump_realized_face): Fix warning.
3230
9f9e5275
SM
3231 * emacs.c (Fkill_emacs): YAILOM.
3232
888953f1
SM
3233 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
3234
48502d68
YM
32352005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3236
3237 * mac.c (HASHKEY_TERMINAL): Remove.
3238 (HASHKEY_MAX_NID): New macro.
3239 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
3240 argument.
888953f1 3241 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
3242 (xrm_create_database, xrm_q_put_resource)
3243 (xrm_merge_string_database, xrm_q_get_resource_1)
3244 (xrm_q_get_resource): Change resource database representation so
3245 that it may not use multiple hash tables for a single database.
3246 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
3247
d5161e8c
SM
32482005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
3249
11a646cd
SM
3250 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
3251
3252 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
3253 locale-coding-system, as was already done for WINDOWSNT.
3254
d5161e8c
SM
3255 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
3256 translation for chars in the 0-255 range.
3257
568b6e41
LK
32582005-03-16 Lute Kamstra <lute@gnu.org>
3259
3260 * floatfns.c (Ffloor): Doc fix.
3261
469fb3cf
YM
32622005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3263
3264 * mac.c: Include macterm.h instead of directly including Carbon.h.
3265 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
3266 (Qarray, Qdictionary): New variables.
3267 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3268 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
3269 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
3270 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
3271 in callback for CFDictionaryApplyFunction.
3272 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3273 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3274 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
3275 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
3276 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
3277 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3278 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 3279 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
3280 (parse_binding, parse_component, parse_resource_name, parse_value)
3281 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
3282 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
3283 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
3284 New functions.
469fb3cf
YM
3285
3286 * macfns.c (mac_get_rdb_resource): Remove function.
3287 (x_get_string_resource): Use xrm_get_resource.
3288
3289 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
3290
3291 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
3292 name_list_element.
3293 (mac_make_rdb): Create resource database from preferences and
3294 argument string.
3295 (mac_term_init): Save resource database to cddr part of
3296 name_list_element.
3297
3298 * macterm.h (xrm_merge_string_database, xrm_get_resource)
3299 (xrm_get_preference_database): Add externs.
3300 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3301 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3302 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
3303
3304 * process.c (init_process): Change `#ifdef DARWIN' to `#if
3305 defined (DARWIN) || defined (MAC_OSX)'
3306
3307 * s/darwin.h (DARWIN): Don't define.
3308
6a3fac90
YM
33092005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3310
3311 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
3312 Remove unused variables.
3313 (syms_of_macfns): Don't initialize them. Likewise for
3314 Qface_set_after_frame_default. Defvar and initialize
3315 Vx_window_horizontal_drag_shape.
3316 (x_set_mouse_color): Change mouse pointer shape.
3317 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 3318 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
3319 (hourglass_started): New function (from xfns.c).
3320 (start_hourglass, cancel_hourglass): Put function body in #ifdef
3321 MAC_OSX.
3322 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
3323 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 3324 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
3325
3326 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
3327 Controls.h. Use ThemeCursor instead of CursHandle.
3328
d5161e8c
SM
3329 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
3330 Remove functions and declarations.
3331 (mac_set_colors): Take argument for saving background color.
3332 All callers changed.
6a3fac90
YM
3333 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
3334 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
3335 background color.
3336 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
3337 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
3338 Use SetThemeCursor.
6a3fac90
YM
3339 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
3340 indicator control to the upper-right corner of the window.
3341 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
3342 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
3343 (do_window_update): Update controls after updating content area.
3344 (mac_handle_window_event): Remove unused extern.
3345 (XTread_socket): Check both control handle and control part code
3346 to determine whether a scroll bar is clicked. Activate/deactivate
3347 root control instead of contained scroll bar controls.
3348 (make_mac_terminal_frame): Use ThemeCursor constants.
3349
d5161e8c
SM
3350 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
3351 New member hourglass_control.
6a3fac90 3352 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 3353 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 3354
a7321976
YM
33552005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3356
3357 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 3358 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
3359 laptops, and fn + `enter' on laptops.
3360
f7b758bd
SM
33612005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3362
3363 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
3364 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
3365 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
3366
3367 * xfns.c (xic_defaut_fontset): New constant.
3368 (xic_create_fontsetname): New function.
3369 Extracted from create_frame_xic. Try to generate a slightly
3370 better fontset.
3371 (xic_create_xfontset): Use it.
3372 (create_frame_xic): Simplify.
3373
dac24db4
SM
33742005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
3375
3376 * fileio.c (Fmake_symbolic_link): Fix last change.
3377
e0402468
RS
33782005-03-11 Richard M. Stallman <rms@gnu.org>
3379
3380 * fileio.c (Frename_file, Fadd_name_to_file)
3381 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
3382 expand the basename of FILE relative to it.
3383
fa815b14
KH
33842005-03-11 Kenichi Handa <handa@m17n.org>
3385
3386 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
3387 before calling setup_coding_system so that autoloading of a coding
3388 system work.
3389
817d354b
JD
33902005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3391
68a505ef
JD
3392 * xfns.c (hourglass_started): New function.
3393
3394 * dispextern.h: Declare hourglass_started.
3395
3396 * keyboard.c (Fexecute_extended_command): Restart hourglass
3397 after call to Fcompleting_read if already started.
3398
817d354b
JD
3399 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
3400 GTK main loop is entered in xterm.c, thus doing the redraw.
3401
b0a6f45c
KS
34022005-03-10 Kim F. Storm <storm@cua.dk>
3403
3404 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
3405
ee5d57b0
KH
34062005-03-08 Kenichi Handa <handa@m17n.org>
3407
3408 * frame.c (x_set_font): Call set_default_ascii_font if an
3409 available font is found.
3410
3411 * fontset.c (set_default_ascii_font): New function.
dac24db4 3412 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
3413
3414 * fontset.h (set_default_ascii_font): Extern it.
3415
f30c4a5c
KS
34162005-03-07 Kim F. Storm <storm@cua.dk>
3417
3fb26a86
KS
3418 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
3419 (clear_image_cache_count): New var.
3420 (redisplay_internal): Don't clear face and image caches in the
3421 middle of redisplay; do it afterwards.
3422
a54595d4
KS
3423 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
3424
f30c4a5c
KS
3425 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
3426 is valid. If not, clear phys_cursor_on_p and return.
3427
3d182f9d
AS
34282005-03-07 Andreas Schwab <schwab@suse.de>
3429
3430 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
3431
85d964de
RS
34322005-03-06 Richard M. Stallman <rms@gnu.org>
3433
3434 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
3435
3436 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
3437 (Feval, Ffuncall): Use CHECK_CONS_LIST.
3438
3439 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
3440
3441 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
3442 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
3443
3ff96c81
JL
34442005-03-05 Juri Linkov <juri@jurta.org>
3445
3446 * emacs.c (USAGE1): Replace Info node name "command arguments"
3447 with "emacs invocation".
3448 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
3449 allow arguments `--color' and `MODE' to be separated by space.
3450 Add --no-blinking-cursor, -nbc.
3451 (standard_args): Add -nbc, --no-blinking-cursor.
3452
64eb0083
TTN
34532005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3454
3455 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
3456 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
3457 * fileio.c (Fexpand_file_name) [VMS]:
3458 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
3459 * doc.c (munge_doc_file_name) [VMS]: Likewise.
3460 (Fsnarf_documentation): Call munge_doc_file_name.
3461
ad708ae5
TTN
34622005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
3463
3464 * s/vms.h (FILE_SYSTEM_CASE): New macro.
3465 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
3466 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
3467
ba025f6d
YM
34682005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3469
3470 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
3471 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 3472
dac24db4 3473 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
3474
3475 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3476 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 3477 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
3478 (mac_clear_font_name_table): Move extern to macterm.h.
3479
3480 * macfns.c (install_window_handler): Move extern to macterm.h.
3481 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
3482 valid. Don't check !NILP (dir) because it is already checked with
3483 CHECK_STRING.
3484 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 3485 specifying the default location and obtaining the selected filename.
ba025f6d
YM
3486
3487 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
3488
2313f861 3489 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
3490 are included via Carbon.h.
3491
dac24db4
SM
3492 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
3493 Define USE_CARBON_EVENTS to 1.
2313f861 3494 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
3495 (x_free_frame_resources): Call remove_window_handler for
3496 non-tooltip windows.
3497 [TARGET_API_MAC_CARBON]: Don't include headers that are included
3498 via Carbon.h.
3499 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3500 (mac_do_receive_dragUPP): New variables.
3501 (mac_handle_service_event, init_service_handler): Put declarations
3502 and definitions in #ifdef MAC_OSX.
3503 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
3504 drag-and-drop handler functions and register them.
3505 (remove_window_handler): New function.
dac24db4
SM
3506 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
3507 Use fsspec_to_posix_pathname.
ba025f6d
YM
3508 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
3509 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
3510 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
3511 Set default cursors.
ba025f6d
YM
3512 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
3513 init_service_handler or init_quit_char_handler.
3514 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
3515
3516 * macterm.h (install_window_handler, remove_window_handler)
3517 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
3518 (mac_clear_font_name_table): New externs.
ad708ae5 3519
c1558952
TTN
35202005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3521
3522 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
3523 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
3524 (Fexpand_file_name): Likewise.
3525
fa439170
TTN
35262005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
3527
3528 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
3529 no longer special-case VMS. Add bogus return value.
3530
db2dacf6
KS
35312005-03-02 Kim F. Storm <storm@cua.dk>
3532
3533 * dispextern.h (XASSERTS): Define to 0 if not already defined.
3534 (xassert) [!XASSERTS]: Define dummy version.
3535
0870514c
KS
35362005-03-02 Kim F. Storm <storm@cua.dk>
3537
3538 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
3539 Reported by David Kastrup.
3540
6b640092
KS
35412005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
3542
3543 * xdisp.c (get_next_display_element): Fix control and escape
3544 glyph from display vector.
3545
f4a5a485
SM
35462005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
3547
3548 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
3549
85d964de
RS
35502005-02-27 Richard M. Stallman <rms@gnu.org>
3551
3552 * xdisp.c (fast_find_position): Rename END to BEG.
3553 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
3554
6e8db3ea
JD
35552005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3556
f4a5a485 3557 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
3558 gtk_window_resize and x_wm_set_size_hint.
3559
0f465b55
KS
35602005-02-25 Kim F. Storm <storm@cua.dk>
3561
3562 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
3563
3564 * xdisp.c (init_from_display_pos): Don't read past end of
3565 it->overlay_strings array.
3566
d5fb8dab 35672005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
3568
3569 * buffer.c (syms_of_buffer): Fix typo.
3570
b02c3eed
LK
35712005-02-23 Lute Kamstra <lute@gnu.org>
3572
3573 * buffer.c (Foverlay_buffer): Doc fix.
3574
c8500765
KS
35752005-02-22 Kim F. Storm <storm@cua.dk>
3576
b686dd59
KS
3577 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
3578 and symbol keys in alists and hash tables.
3579
c8500765
KS
3580 * xdisp.c (fast_find_position): Fix search for start of overlay.
3581
81c85b53
KS
35822005-02-21 Kim F. Storm <storm@cua.dk>
3583
3584 * window.c (window_scroll_pixel_based): When scrolling backwards,
3585 handle partial visible line at end of window even when we hit PT.
3586
f4a5a485 35872005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
3588
3589 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
3590
0dd5a842
KS
35912005-02-21 Kim F. Storm <storm@cua.dk>
3592
3593 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
3594 I think those asserts are bogus if buffer contains invisible text
3595 or images.
3596
d5fb8dab 35972005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
3598
3599 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
3600
0fba9f25
KS
36012005-02-20 Kim F. Storm <storm@cua.dk>
3602
3603 * xdisp.c (pos_visible_p): Be sure to move to the specified
3604 position. Always get the full ascent / descent of the
3605 corresponding row, to return reliable rtop and rbot values.
3606 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
3607 Must look one character back, as back_to_previous_line_start
3608 returns position after the newline.
3609 (move_it_vertically_backward): Fix heuristic for when to move further
3610 back in case line_height * 2/3 is larger than window height.
3611 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
3612 as it does not do anything anymore. Add arg current_matrix_p to
3613 use current matrix rather than desired matrix when set.
3614 (try_cursor_movement): Don't scroll to make cursor row fully
3615 visible if cursor didn't move. This avoids unexpected recentering
3616 in case of blinking cursor or accepting process output.
3617 Use current matrix to check cursor row visibility.
3618 (redisplay_window): Fix whether to recenter or move to top in case
3619 cursor line is taller than window height.
3620 (find_first_unchanged_at_end_row): Stop search if we reach a row
3621 which not enabled (instead of abort).
3622
b1c2adc3
KS
36232005-02-18 Kim F. Storm <storm@cua.dk>
3624
c2ee48fb
KS
3625 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
3626 to be nil in a :box attribute value list; customize prints that
3627 as lisp value when no box color is specified.
3628
b1c2adc3
KS
3629 * .gdbinit (pitx, pit): Pretty print display iterator.
3630 (prowx, prow): Pretty print glyph row.
3631 (pcursorx, pcursor): Pretty print a window cursor.
3632 (pwinx, pwin): Pretty print struct window.
3633
f102186f
SM
36342005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3635
3636 * alloc.c (BLOCK_BYTES): Harmless typo.
3637
9b516537
AS
36382005-02-17 Andreas Schwab <schwab@suse.de>
3639
3640 * xfns.c (hack_wm_protocols): Use correct type for last parameter
3641 of XGetWindowProperty to avoid aliasing issues.
3642 (Fx_window_property): Likewise.
3643
3644 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 3645 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
3646
3647 * xterm.c (handle_one_xevent): Use union of struct input_event and
3648 struct selection_input_event to avoid aliasing issues.
3649 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
3650
886b1418
KS
36512005-02-17 Kim F. Storm <storm@cua.dk>
3652
3653 * dispextern.h (enum it_method): New enum.
3654 (GET_FROM_*): Its members.
3655 (struct it): Change member method from function pointer to enum.
3656
3657 * xdisp.c (check_it, init_from_display_pos, handle_stop)
3658 (setup_for_ellipsis, handle_single_display_spec)
3659 (handle_composition_prop, next_overlay_string)
3660 (get_overlay_strings, reseat_1, reseat_to_string)
3661 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
3662 (in_display_vector_p, display_line, get_next_display_element):
3663 Change it->method from function pointer to enum.
3664 (get_next_element): New array to map it->method to function.
3665 (get_next_display_element): Use it.
3666 (set_iterator_to_next): Use switch instead of if/else chain.
3667
99ee2c6a 36682005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
3669
3670 * w32select.c: Summary: Thorough rework to implement Unicode
3671 clipboard operations and delayed rendering.
3672
3673 Drop last_clipboard_text and related code, keep track of
f4a5a485 3674 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
3675
3676 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
3677 (clipboard_owner, modifying_clipboard, cfg_coding_system)
3678 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
3679 (current_coding_system, current_requires_encoding)
f4a5a485
SM
3680 (current_num_nls, current_clipboard_type, current_lcid):
3681 New static variables.
52c7f9ee
JR
3682
3683 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
3684 (render, render_all, run_protected, lisp_error_handler)
3685 (owner_callback, create_owner, setup_config)
f4a5a485
SM
3686 (enum_locale_callback, cp_from_locale, coding_from_cp):
3687 New local functions.
52c7f9ee
JR
3688
3689 (term_w32select, globals_of_w32select): New global functions.
3690
3691 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
3692 clipboard_owner instead. Use delayed rendering and provide
3693 all text formats. Provide CF_LOCALE if necessary.
3694
3695 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
3696 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
3697 available. Force DOS line-ends for decoding.
3698
3699 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
3700
3701 (syms_of_w32select): Init and register new variables.
3702
3703 * w32.h: Add prototypes for globals_of_w32select and
3704 term_w32select. Make the neighboring K&R declarations into
3705 prototypes, too.
3706
3707 * emacs.c: Include w32.h to get function prototypes.
3708 (main): Call globals_of_w32select.
3709
886b1418 3710 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
3711
3712 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
3713
86e61586
KS
37142005-02-16 Kim F. Storm <storm@cua.dk>
3715
3716 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
3717 at end of display vector.
3718
6407f07b
RS
37192005-02-15 Richard M. Stallman <rms@gnu.org>
3720
3721 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
3722 for mode and header lines.
3723
3724 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
3725
3726 * keymap.h (describe_map_tree): Change decl.
3727
3728 * keyboard.c (command_loop_1): Always use safe_run_hooks
3729 to run Qdeferred_action_function.
3730
3731 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
3732 (describe_map, describe_vector): Likewise. When it's 1,
3733 don't omit shadowed bindings, instead mark them as shadowed.
3734
3735 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
3736 for describe_map_tree. Pass 1 for MENTION_SHADOW.
3737
3738 * data.c (Fsetq_default): Allow no arg case.
3739
3bb917bf
KH
37402005-02-14 Kenichi Handa <handa@m17n.org>
3741
3742 * coding.c (encode_coding_string): Always return a unibyte string.
3743 If NOCOPY is nonzero and there's no need of encoding, make STR
3744 unibyte directly.
3745
3746 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
3747 multibyte string, signal an error instead of aborting.
3748
e31d908f
DN
37492005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
3750
3751 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
3752
48e029b6
KS
37532005-02-12 Kim F. Storm <storm@cua.dk>
3754
3755 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
3756
c10bb00a
KS
37572005-02-10 Kim F. Storm <storm@cua.dk>
3758
3759 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
3760 if it moves outside window or it doesn't display text.
3761
9ca0f64a
KS
37622005-02-09 Kim F. Storm <storm@cua.dk>
3763
3764 * undo.c (Fprimitive_undo): Check that undo function does not
3765 switch buffer.
3766
b8d6f4af
JD
37672005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3768
3769 * xselect.c (selection_data_to_lisp_data): For the special case
3770 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
3771 (x_property_data_to_lisp, selection_data_to_lisp_data):
3772 Comment update: data must be array of int for format == 32.
b8d6f4af 3773
3419757d
SM
37742005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3775
3776 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
3777
3a441526
JD
37782005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3779
fc34503b
JD
3780 * xfns.c (Fx_change_window_property): Use long array when format is 32.
3781 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
3782 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
3783 (x_set_tool_bar_lines): Check that width and height is greater than
3784 zero before clearing area.
fc34503b
JD
3785
3786 * xselect.c (x_reply_selection_request): Pass long array to
3787 XChangeProperty so that 64 bit longs are handeled correctly.
3788 (x_get_window_property): If format is 32 and long is bigger than 32
3789 bits convert data from XGetWindowProperty from long array to int array.
3790 (lisp_data_to_selection_data): When the input is a vector and the
3791 format is 32, allocate a long array even if long is bigger than 32 bits.
3792 (x_fill_property_data): Use char, short and long as the man page
3793 for XChangeProperty specifies. This way the data returned is OK for
3794 both 32 and 64 bit machines.
3795 (x_handle_dnd_message): Calculate size correctly even for 64 bit
3796 machines.
3797 (Fx_send_client_event): Undo change from 2005-02-05,
3798 x_fill_property_data now handles that case.
3799
3419757d 3800 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
3801 reason for the approach in the code.
3802
82ec225b
KS
38032005-02-07 Kim F. Storm <storm@cua.dk>
3804
3805 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
3806
ba2c991c
RS
38072005-02-06 Richard M. Stallman <rms@gnu.org>
3808
3809 * eval.c (Frun_hook_with_args)
3810 (Frun_hook_with_args_until_success)
3811 (Frun_hook_with_args_until_failure): Doc fixes.
3812
e120ea40
AS
38132005-02-05 Andreas Schwab <schwab@suse.de>
3814
3419757d 3815 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 3816
31f16913
JD
38172005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3818
3819 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
3820 the longs in a XClientMessageEvent correctly when long is 64 bits.
3821
6082a820
EZ
38222005-02-05 Eli Zaretskii <eliz@gnu.org>
3823
3824 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
3825 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
3826
0e95095b
JD
38272005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3828
3829 * xmenu.c (menubar_selection_callback): Force out GTK buffered
3830 events so the menu event comes after them. This is to prevent sit-for
3831 from exiting on buffered events directly after a menu selection,
3832 lisp code for Help => About Emacs uses sit-for.
3833
3834 * gtkutil.c (create_menus): Connect selection-done event instead of
3835 the deactivate event to deactivate_cb. This will make the last
3836 leave event come before the call to deactivate_cb, so the leave
3837 event does not make sit-for exit after a menu selection.
3838
5bb6a3c1
KS
38392005-02-03 Kim F. Storm <storm@cua.dk>
3840
3841 * dispnew.c (build_frame_matrix_from_leaf_window)
3842 [!GLYPH_DEBUG]: Fix xassert.
3843
3844 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
3845
3846 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3847
e9859e26
YM
38482005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3849
3850 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
3851 the compiling OS version.
3852
3853 * macfns.c (x_create_tip_frame): Likewise.
3854
3419757d 3855 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 3856
4e07258f
RS
38572005-02-03 Richard M. Stallman <rms@gnu.org>
3858
3859 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
3860
3861 * xdisp.c (echo_area_display): Clear echo_message_buffer.
3862
3863 * buffer.c (Fbury_buffer): Doc fix.
3864
4a34b529
ST
38652005-02-02 Steven Tamm <steventamm@mac.com>
3866
7e26f91b 3867 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 3868 xassert being uncondition, but predicate is.
7e26f91b 3869 * dispnew.c (update_window): Fix compile error due to
f6c62d96 3870 xassert being uncondition, but predicate is.
4a34b529 3871
d78f30b8
MB
38722005-02-02 Miles Bader <miles@gnu.org>
3873
3874 * dispextern.h (xassert): Enable unconditionally.
3875
b044278d
KS
38762005-02-02 Kim F. Storm <storm@cua.dk>
3877
3878 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
3879
56072160
KH
38802005-02-02 Kenichi Handa <handa@m17n.org>
3881
3882 * casefiddle.c (casify_object): Enable changing characters of
3883 different byte length.
3884 (casify_region): Fix loop condition, args to replace_range_2, and
3885 update opoint_byte.
3886
f4a5a485 3887 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 3888
5e1674c5
KS
38892005-02-01 Kim F. Storm <storm@cua.dk>
3890
3891 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
3892 stack before calling handle_display_prop.
3893
fb89c330
KS
38942005-01-31 Kim F. Storm <storm@cua.dk>
3895
3896 * undo.c (Qapply): New lisp var.
3897 (syms_of_undo): Intern and staticpro it.
3898 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
3899 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
3900
3901 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3902
7bf72fa6
JH
39032005-01-30 Jesper Harder <harder@phys.au.dk>
3904
a050b1a9
KS
3905 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
3906 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 3907
03c64f2e
LT
39082005-01-29 Luc Teirlinck <teirllm@auburn.edu>
3909
3910 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 3911 Increase value to 3 Meg.
03c64f2e 3912
49b8b5dc
JD
39132005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3914
3915 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
3916 button events are not received otherwise.
3917
5a92a9eb
RS
39182005-01-29 Richard M. Stallman <rms@gnu.org>
3919
3920 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
3921
3922 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
3923
5c243ee4
SM
39242005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
3925
3926 * keymap.c (access_keymap): YAILOM.
3927
caf533af
KS
39282005-01-27 Kim F. Storm <storm@cua.dk>
3929
3930 * xdisp.c (get_phys_cursor_geometry): New function to calculate
3931 phys cursor position and size for hollow cursor. Position is
3932 aligned with get_glyph_string_clip_rect and ensures that a hollow
3933 cursor is shown, even when the actual glyph is not visible.
3934
3935 * dispextern.h (get_phys_cursor_geometry): Add prototype.
3936
3937 * xterm.c (x_clip_to_row): Ensure y >= 0.
3938 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3939
3940 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3941
3942 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
3943
043f7f73
SM
39442005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
3945
3946 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
3947
889f3641
KS
39482005-01-27 Kim F. Storm <storm@cua.dk>
3949
3950 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
3951 glyph, even when row is only partially visible and actual cursor
3952 position is not visible.
3953
29099c2f
RS
39542005-01-24 Richard M. Stallman <rms@gnu.org>
3955
3956 * xterm.c (x_error_quitter): No longer static, and moved after
3957 x_error_handler.
3958
6adb6f01
KS
39592005-01-24 Kim F. Storm <storm@cua.dk>
3960
3961 * xdisp.c (move_it_by_lines): If we move forward after going too
3962 far back, cancel move if end position is same as start position.
3963
4d904fa0
ST
39642005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3965
3966 * dispextern.h (struct glyph_string): New members clip_head and
3967 clip_tail.
6adb6f01 3968
4d904fa0
ST
3969 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
3970 region to the area between clip_head and clip_tail.
3971 (draw_glyphs): Record the area that need to be actually redrawn to
3972 the new variables clip_head and clip_tail when there are
3973 overhangs. Set values of these variables to the corresponding
3974 members in struct glyph_string. Refine x coordinates for
3975 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 3976
4d904fa0
ST
3977 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
3978
3979 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
3980 QDTextBounds.
3981 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 3982 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 3983 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 3984 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 3985
f2417699
KS
39862005-01-24 Kim F. Storm <storm@cua.dk>
3987
6f67f013
KS
3988 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
3989 direction if window height was smaller than next-screen-context-lines.
3990 Now always scroll at least one line in the requested direction.
3991 Ensure that we actually do scroll backwards when requested to do so.
3992
f2417699
KS
3993 * xdisp.c (redisplay_window): Only try to make cursor line fully
3994 visible once (to avoid redisplay loop).
3995
a354b72c
KS
39962005-01-23 Kim F. Storm <storm@cua.dk>
3997
6b3d88f7 3998 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 3999 partially visible rows.
6b3d88f7
KS
4000 (window_scroll_pixel_based): Adapt to that change.
4001
5c20cae2
KS
4002 * window.c (window_scroll_pixel_based): Force moving to next line
4003 if scrolling doesn't move start point, e.g. if looking at tall image.
4004
a354b72c 4005 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
4006 Clear last_height before calling line_bottom_y to get real height.
4007 Fix calculation of y.
a354b72c 4008
d9e7c622
ST
40092005-01-22 Steven Tamm <steventamm@mac.com>
4010
4011 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 4012 (DARWIN): Define.
7e26f91b 4013
d9e7c622
ST
4014 * process.c (init_process): Default process-connection-type to
4015 nil on darwin 6 or less, t if it is 7 or higher. This way the
4016 broken pty behavior is still allowed on darwin 6 for interactive
4017 processes for people that know what they are doing.
4018
d00e399a
KS
40192005-01-22 Kim F. Storm <storm@cua.dk>
4020
4021 * window.c (auto_window_vscroll_p): New boolean.
4022 (syms_of_window): DEFVAR_BOOL it.
4023 (Fpos_visible_in_window_p): Extend return value to include RTOP
4024 and RBOT values if FULLY is nil.
4025 (window_scroll_pixel_based): Adjust vscroll for partially visible
4026 rows if auto_window_vscroll_p is set.
4027 (Fset_window_vscroll): Do nothing if vscroll is not modified.
4028
4029 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
4030 to return number of partially invisible pixels at top and bottom
4031 of the dislay row at POS.
4032
4033 * lisp.h (pos_visible_p): Fix prototype.
4034
f95a20e7
RS
40352005-01-21 Richard M. Stallman <rms@gnu.org>
4036
4037 * fileio.c (Fcopy_file): Doc fix.
4038
eee141ce
JD
40392005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4040
4041 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
4042 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
4043 start of function for older compilers.
4044
6f771c32
RS
40452005-01-20 Richard M. Stallman <rms@gnu.org>
4046
4047 * editfns.c (Fmessage): If arg is "", return "" (as before).
4048
4049 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
4050
4051 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
4052 variable.
4053
a15252fd
ST
40542005-01-20 Steven Tamm <steventamm@mac.com>
4055
043f7f73 4056 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
4057 (init_editfns): Assign new variable operating-system-release
4058 based on call to uname if available.
043f7f73 4059 (get_operating_system_release): Add function to
d00e399a 4060 allow c-level access to operating system release.
a15252fd
ST
4061
4062 * config.h: Regenerated.
4063
043f7f73
SM
4064 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
4065 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
4066 using ptys as '7'.
4067
3d6a4b2d
KS
40682005-01-20 Kim F. Storm <storm@cua.dk>
4069
62fc9b0f
KS
4070 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
4071
c310aca4
KS
4072 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
4073 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
4074
4075 * macterm.c (x_draw_glyph_string_box): Likewise.
4076
4077 * w32term.c (x_draw_glyph_string_box): Likewise.
4078
3d6a4b2d
KS
4079 * indent.c (Fvertical_motion): Temporarily disable selective display.
4080
27c8be45
KS
40812005-01-19 Kim F. Storm <storm@cua.dk>
4082
77db5cf3
KS
4083 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
4084 image property.
4085
27c8be45
KS
4086 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
4087
81f498dc
KS
40882005-01-18 Kim F. Storm <storm@cua.dk>
4089
4090 * xdisp.c (fast_find_position): Backtrack to find first row if
4091 charpos is inside a display overlay that spans multiple lines.
4092
1cdb0707
KH
40932005-01-18 Kenichi Handa <handa@m17n.org>
4094
4095 * coding.c (decode_coding_iso2022): Translate invalid codes if
4096 translation-table is specified.
4097
677159ce
KS
40982005-01-18 Kim F. Storm <storm@cua.dk>
4099
4100 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
4101 change. If handle_display_prop indicates newline is replaced by
4102 image or text, move back to start of relevant overlay or interval
4103 and continue scan from there. Simplify.
4104
977284cc
KS
41052005-01-17 Kim F. Storm <storm@cua.dk>
4106
043f7f73
SM
4107 * dispnew.c (mode_line_string, marginal_area_string):
4108 Fix off-by-one error in search for glyph.
977284cc 4109
e24531b7
KS
41102005-01-16 Kim F. Storm <storm@cua.dk>
4111
4112 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
4113
5ddd7664
ST
41142005-01-16 Steven Tamm <steventamm@mac.com>
4115
043f7f73 4116 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 4117
fc2ff44b
AS
41182005-01-16 Andreas Schwab <schwab@suse.de>
4119
4120 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
4121
50af5100
JD
41222005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4123
4124 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
4125 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
4126
a2d5fca0
JD
41272005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4128
4129 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
4130 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
4131 New flags for readable_events.
043f7f73 4132 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
4133 (tracking_off): Call readable_events and get_input_pending with
4134 flag READABLE_EVENTS_DO_TIMERS_NOW.
4135 (readable_events): Move code from old readable_filtered_events here,
4136 but check new READABLE_EVENTS_* in argument flags instead of previous
4137 two boolean arguments do_timers_now and filter_events.
4138 If we are doing mouse tracking and the mouse moved, return only if
4139 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
4140 (swallow_events): Call get_input_pending with flag
4141 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 4142 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
4143 here. Replace boolean arguments do_timers_now, filter_events with
4144 flags, and pass flags to readable_events. Document new
4145 READABLE_EVENTS_* flags.
4146 (detect_input_pending_ignore_squeezables): New function.
4147 (detect_input_pending_run_timers): Call get_input_pending with flag
4148 READABLE_EVENTS_DO_TIMERS_NOW.
4149 (Finput_pending_p): Call get_input_pending with flags
4150 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
4151
4152 * dispnew.c (update_window, update_frame_1): Replace calls to
4153 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 4154 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
4155 mouse movements.
4156
4157 * lisp.h: Declare detect_input_pending_ignore_squeezables.
4158
42afbcda
ST
41592005-01-15 Steven Tamm <steventamm@mac.com>
4160
e24531b7
KS
4161 * macterm.c (Vmac_use_core_graphics): Declare variable for
4162 mac-allow-anti-aliasing.
4163 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 4164 (mac_draw_string_common): Use core graphics text rendering if
0530c679 4165 mac-allow-anti-aliasing is enabled.
743d0696 4166
42afbcda
ST
4167 * macfns.c (Fx_file_dialog): Save As dialog includes only the
4168 file name in the text box.
4169
9cdd4884
ST
41702005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4171
043f7f73
SM
4172 * macfns.c (x_set_foreground_color, x_set_background_color):
4173 Sync with xfns.c.
9cdd4884
ST
4174 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
4175 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
4176 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
4177
88948d55
KS
41782005-01-14 Kim F. Storm <storm@cua.dk>
4179
4180 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
4181
20d6de82
RS
41822005-01-13 Richard M. Stallman <rms@gnu.org>
4183
4184 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
4185 if Voverriding_terminal_local_map is non-nil.
4186
4187 * keyboard.c (syms_of_keyboard): Doc fix.
4188
f75a592e
KS
41892005-01-13 Kim F. Storm <storm@cua.dk>
4190
4191 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 4192 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 4193
28f94a34
RS
41942005-01-12 Richard M. Stallman <rms@gnu.org>
4195
4196 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
4197 face property for characters that don't specify one.
4198
4199 * fns.c (Frequire): Record in load-history unconditionally.
4200
57a230b1
KS
42012005-01-10 Kim F. Storm <storm@cua.dk>
4202
4203 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
4204
4205 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
4206 Callers changed.
4207 Add support to merge with lisp face id too (if face_name is t).
4208
4209 * xdisp.c (get_next_display_element, next_element_from_display_vector):
4210 Don't lookup lface_id from display table glyphs here; instead use
4211 merge_faces to merge the lisp face id into current face.
4212
8ab2c119
KS
42132005-01-09 Kim F. Storm <storm@cua.dk>
4214
4215 * dispextern.h (struct it): New member dpvec_face_id.
4216 (merge_into_realized_face): Add prototype.
4217
4218 * xfaces.c (merge_into_realized_face): New function. Used to
4219 merge escape-glyph face or face from display table into current face.
4220
4221 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
4222 (syms_of_xdisp): DEFVAR_LISP it.
4223 (escape_glyph_face): Remove var.
4224 (redisplay_window): Don't initialize it.
4225 (setup_for_ellipsis, get_next_display_element):
4226 Set it->dpvec_face_id to -1.
4227 (get_next_display_element): Test Vshow_nonbreak_escape.
4228 Do not setup escape_glyph_face.
4229 Properly merge escape-glyph face or face from display table with
043f7f73
SM
4230 current face for escape and control characters.
4231 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
4232 element of display vector.
4233 (next_element_from_display_vector): If it->dpvec_face_id is set,
4234 use that instead of lface_id from glyph itself.
4235
e0910857
JD
42362005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4237
4238 * xterm.h (struct x_output): New member, toolbar_detached.
4239
4240 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
4241 38.
4242 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
4243 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
4244 (xg_create_tool_bar): Initialize toolbar_detached.
4245 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
4246 toolbar_detached is zero.
4247
ff59904a
JD
42482005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4249
9b85e63d
JD
4250 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
4251 gtk_menu_popup if not for_click, so callbacks for the menu are called.
4252
ff59904a
JD
4253 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
4254 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 4255 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
4256
4257 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 4258 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
4259 XFLOAT_DATA to get extract number from Lisp object.
4260
f9a23a6f
KS
42612005-01-07 Kim F. Storm <storm@cua.dk>
4262
4263 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
4264 Set stop_charpos to current charpos instead of 0.
4265
28f94a34
RS
42662005-01-06 Nick Roberts <nickrob@snap.net.nz>
4267
4268 * xdisp.c (Fformat_mode_line): First arg now required.
4269
a6fffcdc
ST
42702005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4271
4272 * macterm.c (XLoadQueryFont): Correctly handle 0 size
4273 font widths that are returned from some Japanese fonts.
4274
c35b0c6b
KS
42752005-01-06 Kim F. Storm <storm@cua.dk>
4276
4277 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
4278 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
4279 (destroy_fringe_bitmap): Set fringe_faces element to nil.
4280 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
4281 fringe_faces array and init elements to nil.
4282 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
4283 non-persistent face id.
4284 (mark_fringe_data): New function for GC.
4285
4286 * alloc.c (mark_fringe_data): Declare extern.
4287 (Fgarbage_collect): Call mark_fringe_data.
4288
4289 * alloc.c (overrun_check_free): Invalidate freed memory if
4290 XMALLOC_CLEAR_FREE_MEMORY is defined.
4291
e0e76ab9
ST
42922005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4293
4294 * macfns.c: Include sys/param.h.
4295 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
4296 and function.
4297 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
4298 of filename string. Set event callback function when creating
4299 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 4300 of apple event descriptor record if failed to create it.
e0e76ab9
ST
4301
4302 * macterm.c: Include sys/param.h.
4303 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
4304 kEventWindowUpdate.
4305 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
4306 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
4307 of FSSpec from apple event descriptor record.
4308 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
4309 size of filename string.
4310 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
4311 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
4312 file dialog is in action.
043f7f73
SM
4313 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
4314 Reject only when there are no filename items. Set background color
e0e76ab9 4315 before (un)highlighting the window below the dragged items.
2313f861 4316 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 4317
043bc640
KH
43182005-01-05 Romain Francoise <romain@orebokech.com>
4319
4320 * term.c (encode_terminal_code): Fix buffer size computation.
4321
dd496df6
RS
43222005-01-04 Richard M. Stallman <rms@gnu.org>
4323
4324 * xdisp.c (Fformat_mode_line): Doc fix.
4325
026cdede
SM
43262005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4327
4328 * alloc.c (refill_memory_reserve): Move.
4329 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
4330 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
4331
d57c7572
RS
43322005-01-03 Richard M. Stallman <rms@gnu.org>
4333
4334 * window.c (window_scroll_pixel_based): Don't correct preserve_y
4335 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
4336
b14f868c
JR
43372005-01-03 Jason Rumney <jasonr@gnu.org>
4338
4339 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
4340 fontp->space_width to FONT_WIDTH so they are valid.
4341
4342 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 4343 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
4344 their appropriate values.
4345
4346 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4347 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
4348 fontp->space_width.
4349
e169f939
ST
43502005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4351
4352 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
4353 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
4354 metrics for max and min bounds.
4355 (x_load_font): Correctly calculate average font width metrics.
4356
19996af4
RS
43572005-01-02 Richard M. Stallman <rms@gnu.org>
4358
4359 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
4360
42d02da0
JD
43612004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4362
4363 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
4364
1db7dd46
RS
43652004-12-31 Richard M. Stallman <rms@gnu.org>
4366
b437860a
RS
4367 * xdisp.c (setup_for_ellipsis, get_next_display_element):
4368 Set it->ellipsis_p to 1 or 0.
4369 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 4370 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
4371 (cursor_row_p): If PT's at the end of the ellipsis the row
4372 ends within, don't display cursor on this row.
4373
4374 * dispextern.h (struct it): New element ellipsis_p.
4375 (struct glyph_row): New element ends_in_ellipsis_p.
4376
4377 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
4378 position if we're reading from something other than the buffer.
4379
1db7dd46
RS
4380 * window.c (window_scroll_pixel_based): Only look at
4381 Vscroll_preserve_screen_position if the old PT can't be kept.
4382 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4383
1225f637
KS
43842004-12-30 Kim F. Storm <storm@cua.dk>
4385
4386 * xdisp.c (get_line_height_property): New function extracted from
4387 original calc_line_height_property.
4388 (calc_line_height_property): Rework. Handle t and (nil . ratio).
4389 (x_produce_glyphs): Use them to handle line-height and
4390 line-spacing according to new height spec.
4391 (Qtotal): Remove.
33b2f4ea 4392 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 4393
c243063e
KH
43942004-12-30 Kenichi Handa <handa@m17n.org>
4395
4396 * fileio.c (Finsert_file_contents): Don't use
4397 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 4398 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
4399
4400 * fontset.h (struct font_info): New members space_width and
4401 average_width.
4402
4403 * frame.h (struct frame): New member space_width.
4404 (FRAME_SPACE_WIDTH): New macro.
4405
4406 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
4407
4408 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
4409 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 4410 fontp->space_width.
043f7f73 4411 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
4412 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
4413
4414 * xdisp.c (x_produce_glyphs): Calculate tab width by
4415 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
4416
456e761b
ST
44172004-12-29 Sanghyuk Suh <han9kin@mac.com>
4418
4419 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 4420 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 4421
188577ce
LT
44222004-12-29 Luc Teirlinck <teirllm@auburn.edu>
4423
4424 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
4425
99ec74b9
RS
44262004-12-29 Richard M. Stallman <rms@gnu.org>
4427
4428 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
4429
30c92fab
ST
44302004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4431
4432 * macfns.c (install_window_handler): Modify extern to return OSErr
4433 value.
4434 (mac_window): Handle return value of install_window_handler.
4435
4436 * macterm.c (reflect_byte): Remove function.
4437 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
4438 Lookup table instead.
4439 (mac_do_font_lists): Simplify calculation of the longest
4440 nonspecial string.
4441 (init_mac_drag_n_drop): Remove function and declaration.
4442 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
4443 init_mac_drag_n_drop.
4444 (mac_do_track_drag): New function and declaration.
4445 (install_window_handler): Return OSErr value.
043f7f73
SM
4446 (install_window_handler) [TARGET_API_MAC_CARBON]:
4447 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 4448 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
4449 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
4450 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 4451
4b982924
DN
44522004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4453
4454 * coding.c (decode_coding): Fix previous change.
4455
93fdf45f
RS
44562004-12-28 Richard M. Stallman <rms@gnu.org>
4457
4458 * xdisp.c (back_to_previous_visible_line_start):
4459 Don't call handle_display_prop.
4460
5bdca8af
DN
44612004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
4462
4463 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
4464 (decode_coding_emacs_mule, encode_coding_emacs_mule)
4465 (decode_coding_iso2022, encode_designation_at_bol)
4466 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
4467 (decode_coding): Constify arguments and local vars.
4468
33385c6f
JD
44692004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4470
4471 * xmenu.c (popup_get_selection): Only pop down dialogs
4472 on C-g and Escape.
95bdef2e 4473 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
4474 (create_and_show_popup_menu, create_and_show_dialog):
4475 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 4476
b15325b2
ST
44772004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4478
4479 * dispextern.h: Change HAVE_CARBON to MAC_OS.
4480 (struct glyph_string): Likewise.
a2c7e69a 4481
b15325b2
ST
4482 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
4483 mac_initialize.
a2c7e69a 4484
b15325b2
ST
4485 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
4486 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 4487
b15325b2 4488 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 4489
b15325b2
ST
4490 * frame.c (x_set_frame_parameters, x_report_frame_params)
4491 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
4492 (x_set_border_width, Vdefault_frame_scroll_bars):
4493 Change HAVE_CARBON to MAC_OS.
a2c7e69a 4494
b15325b2
ST
4495 * image.c [MAC_OS]: Include sys/stat.h.
4496 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
4497 QuickTimeComponents.h.
a2c7e69a 4498
b15325b2
ST
4499 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
4500 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 4501 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
4502 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
4503 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4504 (mac_clear_font_name_table): Add extern.
4505 (Fmac_clear_font_name_table): New defun.
4506 (syms_of_mac): Defsubr it.
4507 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
4508 [MAC_OSX] (select_and_poll_event): New function.
4509 [MAC_OSX] (sys_select): Use it.
4510 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
4511 [MAC_OSX && SELECT_USE_CFSOCKET]
4512 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
4513 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
4514 RunLoop for simultaneously monitoring two kinds of inputs, window
4515 events and process outputs, without periodically polling.
a2c7e69a 4516
b15325b2
ST
4517 * macfns.c (mac_initialized): Remove extern.
4518 (stricmp): Put in #if 0. All callers changed to use xstricmp in
4519 xfaces.c.
043f7f73
SM
4520 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
4521 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
4522 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
4523 (mac_get_rdb_resource): New function (from w32reg.c).
4524 (x_get_string_resource): Use it.
4525 (install_window_handler): Add extern.
4526 (mac_window): New function.
043f7f73
SM
4527 (Fx_create_frame): Use it instead of make_mac_frame.
4528 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
4529 (Fx_open_connection, Fx_close_connection): New defuns.
4530 (syms_of_macfns): Defsubr them.
043f7f73
SM
4531 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
4532 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
4533 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
4534 (x_create_tip_frame): Don't call ShowWindow.
4535 (Fx_show_tip): Call ShowWindow.
4536 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
4537 TARGET_API_MAC_CARBON'.
4538 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
4539 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 4540
043f7f73 4541 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
4542 (Window): Typedef to WindowPtr and move outside `#if
4543 TARGET_API_MAC_CARBON'.
4544 (XSizeHints): New struct.
a2c7e69a 4545
b15325b2
ST
4546 * macterm.c (x_update_begin, x_update_end)
4547 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
4548 frame.
4549 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4550 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
4551 (construct_mouse_click): Put in #if 0.
4552 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
4553 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
4554 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
4555 (activate_scroll_bars, deactivate_scroll_bars)
4556 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
4557 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
4558 if the position is neither user-specified nor program-specified.
4559 (x_free_frame_resources): Free size_hints.
043f7f73 4560 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
4561 (mac_clear_font_name_table): New function.
4562 (mac_do_list_fonts): Initialize font_name_table if needed.
4563 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
4564 around mac_do_list_fonts.
4565 (mac_unload_font): New function.
4566 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
4567 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
4568 and definitions with #if TARGET_API_MAC_CARBON.
4569 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
4570 (install_window_handler): Add decl.
4571 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
4572 window. Use UpdateControls. Get the rectangle that should be
4573 updated and restrict the target of expose_frame to it.
043f7f73 4574 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
4575 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
4576 (do_zoom_window): Don't use x_set_window_size.
4577 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
4578 (install_window_handler): New function.
4579 [!USE_CARBON_EVENTS] (mouse_region): New variable.
4580 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
4581 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
4582 GetEventDispatcherTarget inside BLOCK_INPUT.
4583 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
4584 Update mouse_region when mouse is moved.
4585 (make_mac_frame): Remove.
043f7f73
SM
4586 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
4587 Initialize mouse pointer shapes. Change values of f->left_pos and
4588 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
4589 Don't call ShowWindow.
b15325b2
ST
4590 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
4591 Vinvocation_name and Vsystem_name.
4592 (mac_make_rdb): New function (from w32term.c).
4593 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
4594 already been opened. Don't pass argument to
4595 mac_initialize_display_info. Don't set dpyinfo->height/width.
4596 Add entries to x_display_list and x_display_name_list.
4597 (x_delete_display): New function.
4598 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
4599 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
4600
b15325b2
ST
4601 * macterm.h (check_mac): Add extern.
4602 (struct mac_output): New member size_hints.
4603 (FRAME_SIZE_HINTS): New macro.
4604 (mac_unload_font): Add extern.
a2c7e69a 4605
b15325b2 4606 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 4607
1d1c7e75 4608 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 4609
92d2947b
RS
46102004-12-27 Richard M. Stallman <rms@gnu.org>
4611
043f7f73 4612 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
4613 (syms_of_buffer): Don't defsubr it.
4614
4615 * process.c (list_processes_1): Set undo_list instead
4616 of calling Fbuffer_disable_undo.
4617
043f7f73 4618 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 4619 single_display_prop_string_p.
043f7f73 4620 (single_display_spec_intangible_p): Rename from
92d2947b 4621 single_display_prop_intangible_p.
043f7f73 4622 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
4623 Rewritten to be easier to understand.
4624
a2c7e69a 4625 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
4626 and variables get just NAME.
4627
4628 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4629
4630 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
4631 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
4632 (Qdefvar): Var deleted.
4633 (syms_of_eval): Don't initialze it.
4634
4635 * lread.c (syms_of_lread) <load-history>: Doc fix.
4636
9f6fcdc5
JD
46372004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4638
4639 * xmenu.c (popup_get_selection): Pop down on C-g.
4640 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
4641 pops down menu on C-g.
4642 (xdialog_show): If dialog popped down and no button in the dialog was
4643 pushed, call Fsignal to quit.
4644 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
4645 Fsignal to quit.
4646
1d1c7e75 4647 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
4648
4649 * gtkutil.c (xg_initialize): Install bindings for C-g so that
4650 dialogs and menus pop down.
4651
d8ca23a0
KH
46522004-12-27 Kenichi Handa <handa@m17n.org>
4653
4654 * coding.c (code_convert_region): Fix calculation of `ratio'.
4655
857ae68b
JD
46562004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4657
133c0116
JD
4658 * gtkutil.c (update_frame_tool_bar): Make the value of
4659 tool-bar-button-margin control margins of images in tool bar.
4660
857ae68b
JD
4661 * alloc.c (check_depth): New variable.
4662 (overrun_check_malloc, overrun_check_realloc): Only add
4663 overhead and write check pattern if check_depth is 1 (to handle
4664 recursive calls). Increase/decrease check_depth in entry/exit.
4665 (overrun_check_free): Only check for overhead if check_depth is 1.
4666 Increase/decrease check_depth in entry/exit.
4667
bd55c35c
JD
46682004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4669
4670 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
4671 before touching input_available_clear_time, to avoid accessing it
4672 from multiple threads.
4673
66354420
JR
46742004-12-23 Jason Rumney <jasonr@gnu.org>
4675
4676 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
4677 of JPEG library.
4678
55f4edbc
RS
46792004-12-22 Richard M. Stallman <rms@gnu.org>
4680
4681 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
4682
4683 * lisp.h (Vundo_outer_limit): Fix decl.
4684
4685 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
4686 Uses changed.
4687 (syms_of_undo): Initialize appropriately.
4688 (truncate_undo_list): If it's nil, there's no limit.
4689
7a0ea9e3
KH
46902004-12-22 Kenichi Handa <handa@m17n.org>
4691
4692 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
4693
fda2922a
RS
46942004-12-21 Richard M. Stallman <rms@gnu.org>
4695
4696 * eval.c (unwind_to_catch): Clear immediate_quit.
4697
4698 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
4699 specially as `\ ' and `\-'.
4700
4701 * keyboard.c (kbd_buffer_store_event_hold):
4702 In the code for while-no-input, handle immediate_quit.
4703
4704 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
4705 Call that at the very start.
043f7f73 4706 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
4707 (syms_of_alloc): Don't define undo-limit,
4708 undo-strong-limit and undo-outer-limit here.
4709
4710 * undo.c (truncate_undo_list): Return void.
4711 Take just one argument, the buffer.
4712 Make it current, and inhibit recursive GC.
4713 Access and update the undo list directly; return void.
4714 Refer to the undo...limit variables directly.
4715 Test undo_outer_limit only after counting the whole current command.
4716 When it's exceeded, call the function in undo-outer-limit-function.
4717 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
4718 (Vundo_outer_limit_function): New variable.
4719 (syms_of_undo): Define undo-limit, undo-strong-limit
4720 and undo-outer-limit here, and undo-outer-limit-function.
4721 Doc fixes.
4722
4723 * lisp.h (truncate_undo_list): Update decl.
4724
47252004-12-21 Piet van Oostrum <piet@cs.uu.nl>
4726
4727 * fileio.c (Fread_file_name): Delete duplicates in
4728 file-name-history when history_delete_duplicates is true.
4729
68c69027
ST
47302004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4731
4732 * macterm.c (mac_do_list_fonts): Fix memory leak
4733
134579f2
RS
47342004-12-20 Richard M. Stallman <rms@gnu.org>
4735
4736 * regex.c (re_match_2_internal) <symend, wordend>:
4737 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
4738
fbe6152f
ST
47392004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4740
043f7f73
SM
4741 * macterm.c (endif, x_font_name_to_mac_font_name):
4742 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
4743 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
4744 quickly finding a specific font without needing regexps.
4745
fecad3f6
JD
47462004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4747
333f1b6f
JD
4748 * syssignal.h: Declare main_thread.
4749 (SIGNAL_THREAD_CHECK): New macro.
4750
4751 * keyboard.c (input_available_signal): Move thread checking code
4752 to macro SIGNAL_THREAD_CHECK and call that macro.
4753 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
4754
4755 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
4756
4757 * emacs.c: Define main_thread.
4758 (main): Initialize main_thread.
4759 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
4760 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
4761
4762 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
4763
4764 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
4765
4766 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
4767
043f7f73
SM
4768 * process.c (send_process_trap, sigchld_handler):
4769 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
4770
4771 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
4772
4773 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
4774
fecad3f6
JD
4775 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
4776 returning when xg_ignore_gtk_scrollbar is true.
4777
2a84c6da
KS
47782004-12-14 Kim F. Storm <storm@cua.dk>
4779
4780 * keyboard.c (read_char): Save and restore echo_string when
4781 handling input method.
4782
d9c1ce9d
RS
47832004-12-13 Richard M. Stallman <rms@gnu.org>
4784
4785 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
4786
4787 * keyboard.c (Vthrow_on_input): New variable.
4788 (syms_of_keyboard): Defvar and initialize it.
4789 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
4790
4791 * lisp.h (QUIT): Check for Vthrow_on_input.
4792 (Vthrow_on_input): Declare it.
4793
a6495ed5
KS
47942004-12-13 Kim F. Storm <storm@cua.dk>
4795
4796 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
4797 vector.
4798
24a0e22f
RS
47992004-12-12 Richard M. Stallman <rms@gnu.org>
4800
4801 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
4802
4803 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
4804 (Ftry_completion): Really use outer `zero'; eliminate inner one.
4805
d6d31e57
KH
48062004-12-12 Kenichi Handa <handa@m17n.org>
4807
4808 * term.c (encode_terminal_code): Fix previous change.
4809
6f8ffb88
SM
48102004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
4811
fb6f5cbf
SM
4812 * keyboard.c (handle_async_input): Remove pthread mutex handling.
4813 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
4814
6f8ffb88
SM
4815 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
4816 in macro arguments.
4817
4818 * minibuf.c (Ftry_completion, Fall_completions): Don't use
4819 XFASTINT blindly.
4820
4821 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
4822
c83c9f9d
JD
48232004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4824
2f25767f
JD
4825 * w32term.c (x_calc_absolute_position): Remove calculation of
4826 difference between inner and outer window. Don't subtract difference
4827 for left and top calculations.
4828
c83c9f9d
JD
4829 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
4830 for left and top calculations. Remove call to x_real_positions.
24a0e22f 4831 [Bug report by Drew Adams in November]
c83c9f9d
JD
4832 (x_check_expected_move): Do not set change_gravity to 1 when calling
4833 x_set_offset.
4834
cc1caa4e
RS
48352004-12-08 Richard M. Stallman <rms@gnu.org>
4836
4837 * xdisp.c (get_next_display_element): Use `escape-glyph' for
4838 control chars and escaped octal codes.
4839 (Qescape_glyph): New variable.
4840 (syms_of_xdisp): Initialize it.
4841 (escape_glyph_face): New variable.
4842 (redisplay_window): Initialize it.
4843
e0e30823
RS
48442004-12-07 Paul Eggert <eggert@cs.ucla.edu>
4845
4846 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
4847 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
4848
f415cacd
JD
48492004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4850
cf435f39
JD
4851 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
4852 reset_malloc_hooks.
4853
6f8ffb88
SM
4854 * keyboard.c (handle_async_input, input_available_signal):
4855 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 4856
f415cacd
JD
4857 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
4858
043f7f73 48592004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
4860
4861 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
4862
4863 * config.in: Regenerate.
4864
ded997c1
JD
48652004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4866
453a4f1b
JD
4867 * xmenu.c (Fx_popup_menu): Correct documentation about position.
4868 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
4869 if not given by a mouse click to correspond with x-popup-menu
4870 documentation.
4871
9a38524c
JD
4872 * config.in: Regenerate.
4873
aa477689
JD
4874 * gtkutil.c: Include signal.h and syssignal.h.
4875 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
4876
4877 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
4878 new variables main_thread and alloc_mutex,
4879 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
4880 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
4881 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
4882 (UN)BLOCK_INPUT.
4883 (emacs_blocked_free, emacs_blocked_malloc)
4884 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
4885 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
4886 (reset_malloc_hooks): New function.
4887
4888 * lisp.h: Declare reset_malloc_hooks.
4889
4890 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
4891
4892 * keyboard.c: Conditionally include pthread.h
6f8ffb88 4893 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
4894 thread, block signal, send signal to main thread and return.
4895
ded997c1 4896 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 4897 Set current folder in file chooser if default_filename is a directory.
ded997c1 4898
c72b0edd
SM
48992004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
4900
4901 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
4902 Remove redundant correctness checks.
4903 (regex_compile): Fix up error codes for \{..\} expressions.
4904
c721eee5
RS
49052004-12-05 Richard M. Stallman <rms@gnu.org>
4906
4907 * regex.c (regex_compile): Fix end-of-pattern case for space.
4908
d8f96db8
ST
49092004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4910
6108209e
KS
4911 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
4912 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 4913 crashes with invalid characters.
6108209e
KS
4914 * macmenu.c (add_menu_item): Use it.
4915 * image.c (image_load_quartz2d): Likewise.
4916 * macfns.c (x_set_name, x_set_title): Likewise.
4917 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
4918 creating them each time for labels.
d8f96db8 4919
ab67e8b6
RS
49202004-12-02 Richard M. Stallman <rms@gnu.org>
4921
4922 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
4923 don't use it here.
4924
4925 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
4926 (interactive_p): Skip Scalled_interactively_p frames
4927 like Sinteractive_p frames.
b8217ea6 4928 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
4929
4930 * data.c (Fmake_variable_buffer_local): Doc fix.
4931 (Fmake_local_variable): Doc fix.
4932
4933 * insdel.c (insert_from_string_before_markers)
4934 (insert_from_string): Don't modify buffer on empty insertion.
4935
4936 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
4937
f86bdc80
ST
49382004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4939
4940 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
4941 menu text as UTF8 fails.
4942
1cae6d39
KS
49432004-12-01 Kim F. Storm <storm@cua.dk>
4944
4945 * alloc.c: Add commentary for last change.
4946 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
4947 sizeof(size_t) != 4.
4948 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
4949 Use them. Also clear header and trailer of freed memory.
4950 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
4951 (string_overrun_cookie): Rename from string_overrun_pattern.
4952 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
4953
77ea0764
AS
49542004-12-01 Andreas Schwab <schwab@suse.de>
4955
4956 * lisp.h: Declare string_to_multibyte.
4957
2d5cd4e6
KH
49582004-12-01 Kenichi Handa <handa@m17n.org>
4959
4960 * w32console.c (w32con_write_glyphs): Decide coding here.
4961 Adjusted for the change of encode_terminal_code.
4962
4963 * term.c (encode_terminal_code): Don't make it "static".
4964
25a0994a
KH
49652004-11-30 Kenichi Handa <handa@m17n.org>
4966
19b1f29a 4967 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 4968 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
4969 characters at once, and return a pointer to the result of encoding.
4970 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
4971 (insert_glyphs): Likewise.
4972 (term_init): Initialize encode_terminal_bufsize to 0.
4973
4974 * coding.c (Vcode_conversion_workbuf_name): New variable.
4975 (syms_of_coding): Initialize and staticpro it.
4976 (set_conversion_work_buffer): New function.
4977 (run_pre_post_conversion_on_str): Use it.
4978 (run_pre_write_conversin_on_c_str): New function.
4979
4980 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
4981
fc7a70cc
ST
49822004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4983
4984 * keyboard.c: Don't undef SIGIO
4985 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
4986 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
4987 (macfns.o): Don't depend on ccl.h.
4988 * macfns.c (mac_frame_parm_handlers): Set handlers for
4989 Qleft_fringe and Qright_fringe.
4990 * macterm.c (mac_fill_rectangle_to_pixmap)
4991 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
4992 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
4993 Put in #if 0.
4994 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
4995 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
4996 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
4997 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4998 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
4999 XDrawImageString. Always draw background and foreground separately.
5000 (x_draw_image_foreground): Use clipping instead of computing the
5001 intersection rectangle.
5002 (x_draw_image_glyph_string): Don't draw an image with mask to a
5003 pixmap.
5004 (x_redisplay_interface): Set flush_display_optional member to 0.
5005 (XTread_socket): Correctly reset the TEConverter
5006 object.
5007
fc368889
KS
50082004-11-30 Kim F. Storm <storm@cua.dk>
5009
5010 * lisp.h: New defines to enable buffer overrun checking.
5011 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
5012 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
5013
5014 * alloc.c: Add more checks for buffer overruns.
5015 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
5016 xmalloc_overrun_check_trailer, overrun_check_malloc)
5017 overrun_check_realloc, overrun_check_free): Add.
5018 (GC_STRING_EXTRA, string_overrun_pattern): Add.
5019 (check_sblock, allocate_string_data, compact_small_strings):
5020 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
5021 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
5022 (check_string_free_list): Add.
5023 (allocate_string, sweep_strings): Call check_string_free_list.
5024
5025 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
5026 XMALLOC_OVERRUN_CHECK to avoid crash during load.
5027
0af8cfe1
KS
50282004-11-29 Kim F. Storm <storm@cua.dk>
5029
5030 * fns.c (concat): Use SAFE_ALLOCA.
5031
77220eeb
SM
50322004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
5033
5034 * sysdep.c (emacs_write): Don't use QUIT.
5035
a778cf63
KH
50362004-11-29 Kenichi Handa <handa@m17n.org>
5037
5038 * buffer.c (init_buffer): Set current_buffer->directory to a
5039 multibyte string made by string_to_multibyte.
5040
77220eeb 5041 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 5042
e3177e43
AS
50432004-11-27 Andreas Schwab <schwab@suse.de>
5044
5045 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
5046
5047 * s/gnu-linux.h: Enable no-op gcpros on ia64.
5048 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
5049
77220eeb
SM
5050 * filelock.c (lock_file_1): Call get_boot_time early.
5051 Increase buffer size.
e3177e43 5052
ca5e6fef
EZ
50532004-11-27 Eli Zaretskii <eliz@gnu.org>
5054
5055 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
5056 is not defined.
5057
e2811828
KS
50582004-11-27 Kim F. Storm <storm@cua.dk>
5059
5060 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
5061 marker out of doc string.
5062
7a262394
SM
50632004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
5064
5065 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
5066 which was not mentioned in the log.
5067
f33cc5a9
KS
50682004-11-26 Kim F. Storm <storm@cua.dk>
5069
048bb03f
KS
5070 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
5071 angle bitmaps at top/bottom line.
5072
52eb0373 5073 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
5074 set it when it->method is set to next_element_from_display_vector.
5075 (setup_for_ellipsis): Add LEN argument. Callers changed.
5076 Set it->saved_face_id.
5077 (get_next_display_element): Use loop instead of recursion.
5078 Set it->saved_face_id. Combine duplicate code for ctr chars.
5079 (next_element_from_display_vector): Do not set it->saved_face_id.
5080 (next_element_from_ellipsis): Use setup_for_ellipsis.
5081
670e8906
EZ
50822004-11-26 Eli Zaretskii <eliz@gnu.org>
5083
5084 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
5085 prevent compiler warnings.
5086
275464e7
SM
50872004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
5088
1bf0e604
SM
5089 * keyboard.c (command_loop_1): Print a message describing the key
5090 the user just pressed when this key has no binding.
5091
275464e7
SM
5092 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
5093 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
5094
5095 * lread.c (readchar): Check QUIT when `getc' is interrupted.
5096
261b01c6
RS
50972004-11-24 Richard M. Stallman <rms@gnu.org>
5098
5099 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
5100
5101 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
5102
a5bd504e
KS
51032004-11-24 Kim F. Storm <storm@cua.dk>
5104
5105 * xdisp.c (move_it_in_display_line_to, display_line):
5106 Restore saved_face_id also when truncate-lines or hscrolled.
5107
255e4140
JD
51082004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5109
5110 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
5111 x-use-old-gtk-file-dialog.
5112
5113 * xfns.c: Define x_use_old_gtk_file_dialog.
5114 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
5115 outside ifdef USE_GTK.
5116
cab27d04
SM
51172004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
5118
5119 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
5120 Don't use XFASTINT blindly.
5121
5122 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
5123
5124 * indent.c (skip_invisible): Avoid non-idempotent side-effects
5125 in macro arguments.
5126
5127 * keymap.c (Flookup_key): Check INTEGERP before XINT.
5128
5129 * lread.c (oblookup): Don't use XFASTINT blindly.
5130
5131 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
5132 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
5133
11e0be49
KS
51342004-11-23 Kim F. Storm <storm@cua.dk>
5135
4d721114
KS
5136 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
5137 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
5138
11e0be49
KS
5139 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
5140 signal_p is zero and face name is unknown.
5141 (Fx_list_fonts): Don't signal error in lookup_named_face.
5142 (Fface_font): Signal error in lookup_named_face.
5143 (ascii_face_of_lisp_face): Likewise.
5144
5145 * dispextern.h (lookup_named_face): Fix prototype.
5146
5147 * xdisp.c (handle_single_display_prop): Don't signal error in
5148 lookup_named_face for unknown fringe face name.
5149 (highlight_trailing_whitespace): Don't signal error in
5150 lookup_named_face if trailing-whitespace face unknown.
5151 (calc_line_height_property): Don't signal error in
5152 lookup_named_face if specified face name is unknown.
5153
5154 * fringe.c (update_window_fringes): Show top row indicator if
5155 window has header-line. Don't show arrow at bob and eob
5156 if the boundary indicators are not used.
5157 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
5158
5159 * window.c (set_window_buffer): Clear display_error_modiff.
5160
0960a582
KS
51612004-11-22 Kim F. Storm <storm@cua.dk>
5162
5163 * fringe.c (update_window_fringes): Provide sensible fall-back
5164 value for non-nil indicate-buffer-boundaries setting.
5165
b0e9bb28
MR
51662004-11-22 Markus Rost <rost@ias.edu>
5167
5168 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
5169
d0bce91e
SM
51702004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
5171
5172 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
5173
e1814672
KS
51742004-11-21 Kim F. Storm <storm@cua.dk>
5175
b7fd3518
KS
5176 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
5177
5178 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
5179 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5180
5181 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
5182 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5183
5184 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
5185 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5186
d0bce91e
SM
5187 * xdisp.c (move_it_in_display_line_to, display_line):
5188 Restore saved_face_id if overflow-newline-into-fringe is enabled and
5189 line is continued before or in middle of element from display vector.
f01d4d05 5190
f1a61389
KS
5191 * indent.c (Fvertical_motion): Fix last change. Use another
5192 method to detect if iterator moved too far ahead after reseat.
5193
e1814672
KS
5194 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
5195 expand matrix width for overflow in zero-width area.
5196 (append_glyph, append_composite_glyph, produce_image_glyph)
5197 (append_stretch_glyph): Use it to avoid loop in redisplay.
5198 (note_mode_line_or_margin_highlight): Don't let help-echo from
5199 string override help-echo from image map.
5200
2dafe1c9
LT
52012004-11-20 Luc Teirlinck <teirllm@auburn.edu>
5202
d0bce91e 5203 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
5204 * callint.c (Fcall_interactively): Ditto.
5205
fd6866c8 52062004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
5207
5208 * minibuf.c (Fminibuffer_complete_and_exit):
5209 Fixup the case of the completed value, for case-indep completion.
5210
dedbac89
RS
52112004-11-20 Richard M. Stallman <rms@gnu.org>
5212
fd6866c8
RS
5213 * lisp.h (Fread_from_minibuffer): Add arg in decl.
5214
9d00469f 5215 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 5216 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 5217
dedbac89 5218 * search.c (Vsearch_spaces_regexp):
d0bce91e 5219 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 5220
2f672bb5
TTN
52212004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
5222
5223 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
5224
f31a9a68
RS
52252004-11-19 Richard M. Stallman <rms@gnu.org>
5226
5227 * search.c (Vsearch_whitespace_regexp): New variable.
5228 (syms_of_search): Defvar it.
5229 (compile_pattern_1): Call re_set_whitespace_regexp with it.
5230 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
5231 is non-nil.
6de891db
RS
5232 (struct regexp_cache): New element whitespace_regexp.
5233 (syms_of_search): Initialize whitespace_regexp elements.
5234 (compile_pattern): Compare whitespace_regexp elements.
5235 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
5236
5237 * regex.c (regex_compile): Substitute whitespace_regexp
5238 for spaces, if it is nonzero.
5239 (whitespace_regexp): New variable.
5240 (re_set_whitespace_regexp): New function.
5241
cbc34cb3
KS
52422004-11-19 Kim F. Storm <storm@cua.dk>
5243
5244 * indent.c (Fvertical_motion): Fix last change.
5245
b54a7539
KS
52462004-11-18 Kim F. Storm <storm@cua.dk>
5247
5248 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
5249 Instead, move back again if reseating moves too far ahead.
5250
52512004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
5252
5253 * xdisp.c (message3): Call clear_message.
5254
5ff504fe
KS
52552004-11-17 Kim F. Storm <storm@cua.dk>
5256
5257 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
5258
5ae53dcf
JD
52592004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5260
d0bce91e 5261 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 5262
6abf3a27 5263 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
5264 (x_menu_set_in_use): Also set popup_activated_flag.
5265
5ff504fe 5266 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
5267 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
5268
52eb0373 5269 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 5270
ee31cd78
RS
52712004-11-16 Richard M. Stallman <rms@gnu.org>
5272
6abf3a27
SM
5273 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
5274 Use map-keymap-internal to implement that.
ee31cd78
RS
5275
5276 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
5277
6abf3a27
SM
52782004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
5279
5280 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
5281 a window before using XWINDOW.
5282
5283 * window.c (make_window, Fselect_window, make_dummy_parent)
5284 (save_window_save):
5285 * frame.c (make_frame):
5286 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
5287
5288 * lisp.h (NILP): Use EQ rather than XFASTINT.
5289
b4d61105
KS
52902004-11-16 Kim F. Storm <storm@cua.dk>
5291
6abf3a27 5292 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 5293
b4d61105
KS
5294 * indent.c (Fvertical_motion): Fix last change. Only reseat when
5295 moving backwards.
5296
52972004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
5298
5299 * dispextern.h: Extern reseat_at_previous_visible_line_start.
5300
ab5b02b0
KH
53012004-11-16 Kenichi Handa <handa@m17n.org>
5302
5303 * xdisp.c (display_mode_element): Fix previous change (calculate
5304 end position of substring to display correctly).
5305
c482cf97
KS
53062004-11-16 Kim F. Storm <storm@cua.dk>
5307
5308 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
5309 Reported by Andrew M. Scott.
5310
9f89426b
KS
53112004-11-15 Kim F. Storm <storm@cua.dk>
5312
5313 * fns.c (Fsafe_plist_get): New defun.
5314 (syms_of_fns): Defsubr it.
5315
5316 * lisp.h (Fsafe_plist_get): Add EXFUN.
5317
5318 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
5319 Use Fsafe_plist_get.
5320 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5321 Fix image map element parsing. Use Fsafe_plist_get.
5322
27418463
RS
53232004-11-15 Richard M. Stallman <rms@gnu.org>
5324
5325 * xdisp.c (get_next_display_element): Fix previous change.
5326
a130b901
JD
53272004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5328
ef614e04
JD
5329 * window.c (shrink_windows): Handle special case of one window left
5330 when trying to shrink the final reminder. Grow windows if
5331 total_removed is less than total_shrink.
5332
a130b901
JD
5333 * xmenu.c (pop_down_menu): Remove global variable current_menu,
5334 extract pointer from arg with XSAVE_VALUE.
46303896
KS
5335 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
5336 Construct arg to record_unwind_protect with make_save_value.
a130b901 5337
d9a03ad2
RS
53382004-11-13 Richard M. Stallman <rms@gnu.org>
5339
5340 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
5341 (get_next_display_element): Fix previous change to apply only to \n.
5342
5343 * indent.c (Fvertical_motion): Scan to PT from start of line to
5344 make iterator consistent.
5345
5346 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
5347
b3935289
JD
53482004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5349
5350 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
5351
5352 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
5353 Record unwind with clean_up_file_dialog.
5354
78819ebb
KS
5355 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
5356 Declare.
b3935289
JD
5357
5358 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
5359
af89e871
JD
53602004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5361
457a8155 5362 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 5363 (xg_file_sel_destroy): Remove.
46303896
KS
5364 (xg_file_response_cb, pop_down_file_dialog)
5365 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 5366 New functions.
6abf3a27
SM
5367 (xg_get_file_with_chooser, xg_get_file_with_selection):
5368 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
5369 Move common code to xg_get_file_name. Return widget created.
5370 (xg_get_file_name): Set name, transient for, modal and destroy
5371 with parent here. Connect response signal to xg_file_response_cb,
5372 connect delete-event to gtk_true. Record pop_down_file_dialog
5373 for unwind. Do event loop and call x_menu_wait_for_event in loop.
5374 (xg_create_widget): Make dialogs modal.
5375
af89e871
JD
5376 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
5377 Lisp_Object.
5378 (popup_get_selection): Move unwind protect ...
5379 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5380 Move destroy of widget to pop_down_menu.
5381 (popup_widget_loop): Move unwind protect ...
5382 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
5383 Move destroy of widget to pop_down_menu.
5384 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 5385 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
5386 x_mouse_leave and grabbed = 0 to pop_down_menu.
5387
5596fbf1
KS
53882004-11-13 Kim F. Storm <storm@cua.dk>
5389
5390 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
5391 (syms_of_xdisp): DEFVAR_BOOL it.
5392 (make_cursor_line_fully_visible, try_cursor_movement)
5393 (try_window_id): Use it.
5394
b9de078a
KS
53952004-11-12 Kim F. Storm <storm@cua.dk>
5396
381f7091
KS
5397 * dispextern.h (struct glyph_row): New member extra_line_spacing.
5398 (struct it): New member max_extra_line_spacing.
5399 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
5400 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
5401 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
5402 part of last line is only extra line spacing (so the text on the
52eb0373 5403 line is fully visible). Use helper macros.
381f7091
KS
5404 Add W arg (to use them). All callers changed.
5405 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
5406 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
5407
6abf3a27
SM
5408 * window.c (window_scroll_pixel_based, Frecenter):
5409 Use move_it_vertically_backward directly.
381f7091
KS
5410 (Frecenter): Fix calculation of new start pos for negative arg.
5411 Before, the new start pos was sometimes chosen too far back, so
5412 the last line became only partially visible, and thus would be
5413 either only semi-visible or automatically scrolled to the middle
5414 of the window by redisplay.
5415
5416 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
5417 (move_it_vertically_backward): Don't recure to move further back.
5418 (move_it_vertically): Remove superfluous condition.
5419 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 5420 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
5421 (display_tool_bar_line): Clear row->extra_line_spacing.
5422 (try_scrolling): Use move_it_vertically_backward directly.
5423 (redisplay_window): Likewise.
5424 (compute_line_metrics): Set row->extra_line_spacing.
5425 (display_line, display_string): Likewise.
5426 (x_produce_glyphs): Update it->max_extra_line_spacing.
5427
b9de078a
KS
5428 * xmenu.c (pop_down_menu): Return nil.
5429
c3438661
JD
54302004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5431
5432 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 5433 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 5434 to handle timers.
df00f436
JD
5435 (popup_widget_loop): Add argument do_timers.
5436 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
5437 do_timers to popup_widget_loop.
c3438661
JD
5438 (xmenu_show): Call XMenuActivateSetWaitFunction so that
5439 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 5440 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 5441 popup_get_selection.
f1d1cd24
JD
5442 (pop_down_menu): New function.
5443 (popup_get_selection, popup_widget_loop): Unwind protect to
5444 pop_down_menu.
5445 (popup_widget_loop): Add argument widget.
5446 (create_and_show_popup_menu, create_and_show_dialog): Pass new
5447 argument widget to popup_widget_loop.
c3438661 5448
32e2fb04
SM
54492004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5450
5451 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
5452
0faf6806
KS
54532004-11-09 Kim F. Storm <storm@cua.dk>
5454
5455 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
5456 Fix various comments referring to XEvents instead of input events.
5457 (x_queue_event): Fix format strings.
5458 (x_stop_queuing_selection_requests): Likewise.
5459
5460 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
5461 (pint2hrstr): Add extra braces to silence compiler.
5462
5463 * print.c (print_object): Fix format string.
5464
5465 * lread.c (read1): Fix next_char matching.
5466
5467 * lisp.h (Fdelete): Add EXFUN.
5468 (replace_range_2): Add prototype.
5469
5470 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
5471
5472 * intervals.h (NULL_INTERVAL_P): Add separate version when
5473 ENABLE_CHECKING is not defined to silence compiler.
5474 (compare_string_intervals): Add prototype.
5475
5476 * fringe.c (destroy_fringe_bitmap): Fix return type.
5477 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
5478
5479 * emacs.c (Fdump_emacs): Fix format string.
5480
5481 * doc.c: Include <ctype.h>.
5482 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
5483
5484 * data.c (store_symval_forwarding): Remove unused variables.
5485
5486 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
5487
16bf4e32
JD
54882004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5489
5490 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
5491 to ${OLDXMENU}.
5492
cdb805a9
KS
54932004-11-09 Kim F. Storm <storm@cua.dk>
5494
5495 * process.c (Fmake_network_process): Remove kludge for interrupted
5496 connects on BSD. If connect is interrupted, just close socket and
5497 start over rather than sleeping and retry with same socket.
5498
d87a9ab8 54992004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 5500
a8b16c80
JD
5501 * .cvsignore: Add buildobj.lst.
5502
d87a9ab8
JD
5503 * doc.c: New variable Vbuild_files.
5504 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 5505 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
5506 that are in Vbuild_files.
5507 (syms_of_doc): Defvar Vbuild_files.
5508
5509 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
5510 and w32*.o.
5511 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 5512 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
5513
5514 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
5515 is linked.
5516
b6709e77
KS
55172004-11-09 Kim F. Storm <storm@cua.dk>
5518
5519 * fringe.c (update_window_fringes): Update fringe bitmaps if
5520 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
5521 also update previous row to get rid of misc. artifacts.
5522
bae9677d
KS
55232004-11-08 Kim F. Storm <storm@cua.dk>
5524
5525 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 5526 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 5527
3f8ea68c
EZ
55282004-11-08 Eli Zaretskii <eliz@gnu.org>
5529
5530 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
5531 Don't include <sys/time.h> explicitly.
5532 Include <stdio.h> unconditionally, not just on MacOS.
5533
a653f812
KH
55342004-11-08 Kenichi Handa <handa@m17n.org>
5535
5536 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
5537 don't pay attention to '\' before '*'.
5538 (fontset_pattern_regexp): Change the meaning of the second arg.
5539 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
5540 (check_fontset_name): Try NAME as literal at first, and if it
5541 failes, try NAME as pattern.
5542
c37caf9d
JD
55432004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5544
5545 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
5546
b72915a7
AS
55472004-11-07 Andreas Schwab <schwab@suse.de>
5548
78819ebb
KS
5549 * lisp.h (Fmsdos_downcase_filename): Declare.
5550 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
5551 * fileio.c: Likewise.
5552
238a44a8
JD
55532004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5554
5555 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
5556 comparisons with integers instead of Lisp_Object address.
5557 (Fmsdos_set_keyboard): Declare argument allkeys.
5558
5559 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
5560
78819ebb 5561 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
5562 int/Lisp_Object mixup.
5563
5564 * fileio.c: Ditto.
5565
31141c13
ST
55662004-11-06 Steven Tamm <steventamm@mac.com>
5567
5568 * editfns.c: Need to include sys/time.h before resource.h on darwin.
5569
f28c1bd9
RS
55702004-11-06 Richard M. Stallman <rms@gnu.org>
5571
5572 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
5573
5574 * xfaces.c (merge_named_face): GCPRO the face_name in the
5575 named_merge_point struct that we make.
5576 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
5577
5578 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
5579 before deciding whether to inactivate mark.
5580
59dede22
EZ
55812004-11-06 Lars Brinkhoff <lars@nocrew.org>
5582
5583 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
5584 * editfns.c (Fget_internal_run_time): New function.
5585 (syms_of_data): Defsubr it.
5586 * fns.c (sxhash): As far as possible, merge calculation of
5587 hash code for symbols and strings.
59dede22 5588
27540e81
EZ
55892004-11-06 Eli Zaretskii <eliz@gnu.org>
5590
5591 * frame.c (syms_of_frame): Fix the example in the doc string.
5592
df470e3b
JD
55932004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5594
5595 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
5596
5597 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
5598 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 5599
4cc8522c
LT
56002004-11-05 Luc Teirlinck <teirllm@auburn.edu>
5601
5602 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
5603
d4a42098
KS
56042004-11-05 Kim F. Storm <storm@cua.dk>
5605
a8490886
KS
5606 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
5607
d4a42098
KS
5608 * fileio.c (Ffile_modes): Doc fix.
5609 (auto_save_1): Check for Ffile_modes nil value.
5610
36a2b04c
KS
56112004-11-05 Kim F. Storm <storm@cua.dk>
5612
5613 * xselect.c (struct selection_event_queue, selection_queue)
5614 (x_queue_selection_requests, x_queue_event)
5615 (x_start_queuing_selection_requests)
5616 (x_stop_queuing_selection_requests): Add new queue for selection
5617 input events to replace previous XEvent queue in xterm.c.
5618 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
5619 (x_reply_selection_request): Adapt to new queue.
5620 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
5621 (x_handle_selection_request, x_handle_selection_clear): Make static.
5622 (x_handle_selection_event): New function. May queue selection events.
5623 (wait_for_property_change_unwind): Use save_value instead of cons.
5624 Clear property_change_reply_object.
5625 (wait_for_property_change): Abort if already waiting.
5626 Use save_value instead of cons for unwind data.
5627 (x_handle_property_notify): Skip events already arrived, but don't
5628 free them, as "arrived" field is checked by wait_for_property_change,
5629 and it will be freed by unwind or explicit unexpect_property_change.
5630 (x_get_foreign_selection): Add to new queue.
5631 (receive_incremental_selection): Don't unexpect wait_object when done
5632 as it has already been freed by previous wait_for_property_change.
5633
5634 * xterm.h (x_start_queuing_selection_requests)
5635 (x_stop_queuing_selection_requests, x_handle_selection_request)
5636 (x_handle_selection_clear): Remove prototypes.
5637 (x_handle_selection_event): Add prototype.
5638
5639 * xterm.c (handle_one_xevent): Don't queue X selection events
5640 here, it may be too late if we start queuing after we have already
5641 stored some selection events into the kbd buffer.
5642 (struct selection_event_queue, queue, x_queue_selection_requests)
5643 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
5644 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
5645 (x_catch_errors_unwind): Block input around final XSync.
5646
5647 * keyboard.h (kbd_buffer_unget_event): Add prototype.
5648
5649 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
5650 (kbd_buffer_unget_event): New function.
5651 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
5652 and use x_handle_selection_event.
5653 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
5654
9c3ad9e1
JD
56552004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5656
5657 * xselect.c (TRACE3): New debug macro.
5658 (x_reply_selection_request): Use it.
5659 (receive_incremental_selection): In call to TRACE0, the name of
5660 a symbol is in xname.
5661
a33b89de
KS
56622004-11-05 Kim F. Storm <storm@cua.dk>
5663
5664 * fontset.c (fontset_pattern_regexp): Use unsigned char.
5665
a872928c
JD
56662004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5667
88208bb8
JD
5668 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
5669
78819ebb 5670 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
5671
5672 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 5673 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
5674 * xfns.c (syms_of_xfns): ... to here.
5675
a872928c
JD
5676 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
5677 it doesn't start with /.
5678
b912921c
KH
56792004-11-04 Kenichi Handa <handa@m17n.org>
5680
5681 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
5682 treat it as a literal character.
5683
c524d9a6
KS
56842004-11-03 Kim F. Storm <storm@cua.dk>
5685
5686 * .gdbinit (ppt): New function.
5687
8cfd0f36
JD
56882004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5689
a11e1dce
JD
5690 * xterm.c (x_window_to_scroll_bar): Only call
5691 xg_get_scroll_id_for_window if toolkit scroll bars are used.
5692
8cfd0f36
JD
5693 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
5694 of save.
5695
a93563fd
AS
56962004-11-02 Andreas Schwab <schwab@suse.de>
5697
5698 * window.c (Fscroll_right): Fix last change.
5699
2b2d59d8
KS
57002004-11-02 Kim F. Storm <storm@cua.dk>
5701
5702 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
5703
57042004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5705
5706 * callproc.c (Fcall_process): Block input around vfork.
5707
ca28104d
KS
57082004-11-02 Kim F. Storm <storm@cua.dk>
5709
5710 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
5711 (syms_of_eval): Defsubr it.
5712
29bb7127
RS
57132004-11-02 Richard M. Stallman <rms@gnu.org>
5714
5715 * insdel.c (replace_range_2): New function.
5716
5717 * casefiddle.c (casify_region): Handle changes in byte-length
5718 using replace_range_2.
5719
5720 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
5721
b6189c3b 5722 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
5723 Subtract 1 from pos when checking previous newline for invisibility.
5724
5725 * window.c (window_scroll_pixel_based): Update preserve_y
5726 for header line if any.
5727 (Fscroll_left, Fscroll_right): Don't call interactive_p;
5728 use a new second argument instead.
5729
5730 * eval.c (Fcall_interactive_p): New function.
5731 (interactive_p): Don't test INTERACTIVE here.
5732 (Finteractive_p): Doc fix.
5733
5734 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
5735
b6189c3b 57362004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
5737
5738 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 5739 comparing font names.
a3fe4aaf 5740
2a00cdb4
JD
57412004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5742
f9d64bb3
JD
5743 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
5744 Fx_file_dialog if only directories should be read.
5745
5746 * lisp.h: Fx_file_dialog takes 5 parameters.
5747
32e2fb04
SM
5748 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
5749 Add parameter only_dir_p.
f9d64bb3
JD
5750 In Motif version, don't put DEFAULT_FILENAME in filter part of the
5751 dialog, just text field part. Do not add DEFAULT_FILENAME
5752 to list of files if it isn't there.
5753 In GTK version, pass only_dir_p parameter to xg_get_file_name.
5754
32e2fb04
SM
5755 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
5756 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
5757 a save dialog, add option kNavDontConfirmReplacement, change title
5758 to "Enter name", change text for save button to "Ok".
5759
32e2fb04
SM
5760 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
5761 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
5762
5763 * gtkutil.c (xg_get_file_with_chooser)
5764 (xg_get_file_with_selection): New functions, only defined ifdef
5765 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
5766 respectively.
5767 (xg_get_file_name): Add parameter only_dir_p.
5768 Call xg_get_file_with_chooser or xg_get_file_with_selection
5769 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
5770 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
5771
5772 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
5773
2a00cdb4
JD
5774 * config.in: Rebuild (added HAVE_GTK_FILE_*).
5775
f6749d5d
KS
57762004-11-01 Kim F. Storm <storm@cua.dk>
5777
32e2fb04
SM
5778 * process.c (connect_wait_mask, num_pending_connects):
5779 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 5780 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
5781 (IF_NON_BLOCKING_CONNECT): New helper macro.
5782 (wait_reading_process_output): Only declare and use local vars
5783 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 5784
1a99fe1a
JR
57852004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
5786
5787 * w32term.c (x_scroll_run): Delete region objects after use.
5788
fcdb28b4
JD
57892004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5790
495ef86b
JD
5791 * xmenu.c: Add prototypes for forward function declarations.
5792 (popup_get_selection): Remove parameter do_timers, remove call to
5793 timer_check.
32e2fb04
SM
5794 (create_and_show_popup_menu, create_and_show_dialog):
5795 Remove parameter do_timers from call to popup_get_selection.
495ef86b 5796
12e6566a
JD
5797 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
5798 tool_bar_items and assign the result to f->tool_bar_items if
5799 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
5800 tool_bar_items to assignment of result.
5801
fcdb28b4
JD
5802 * atimer.c (alarm_signal_handler): Do not call set_alarm if
5803 pending_atmers is non-zero.
5804
1a1a0c4c
KS
58052004-10-31 Kim F. Storm <storm@cua.dk>
5806
5807 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
5808
a36f1680
JW
58092004-10-28 Will <will@glozer.net>
5810
1d1c7e75 5811 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
5812 key via a 'mac-option-modifier' variable.
5813
32e2fb04 58142004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
5815
5816 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
5817 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
5818 (x_handle_selection_request, x_handle_selection_clear)
5819 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
5820
4f71c13f
RS
58212004-10-28 Richard M. Stallman <rms@gnu.org>
5822
5823 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5824
5825 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
5826
068f3848
SM
58272004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
5828
5829 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
5830 comment-starter over a 1-char one.
5831
4660a9e3
RS
58322004-10-27 Richard M. Stallman <rms@gnu.org>
5833
5834 * xdisp.c (get_next_display_element): In mode lines,
5835 treat newline and tab like other control characters.
5836
5837 * editfns.c (Fmessage): Doc fix.
5838
5839 * indent.c (vmotion): When moving up, check the newline before.
5840 Make prevline an int, not a Lisp_Object.
5841
233f3db6
KS
58422004-10-27 Kim F. Storm <storm@cua.dk>
5843
5844 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
5845 Only allocate info and discarded tables once.
5846
5847 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
5848 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
5849 (SAFE_FREE): Test it to determine if we need to unwind to free.
5850 Remove size arg. All users changed.
5851 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
5852
1442465d
JD
58532004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5854
5855 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
5856 (xg_destroy_widgets): Rename from remove_from_container.
5857 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
5858 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
5859 instead of remove_from_container.
5860 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
5861 (free_frame_tool_bar): Add comment.
5862
5863 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
5864 is not NULL before strcmp.
5865
c8636435
KS
58662004-10-26 Kim F. Storm <storm@cua.dk>
5867
5868 * callint.c (Fcall_interactively): Add 'U' code to get the
5869 up-event discarded by a previous 'k' or 'K' argument.
5870
5629f29b
DK
58712004-10-26 David Kastrup <dak@gnu.org>
5872
5873 * buffer.c (syms_of_buffer): Fix a few typos.
5874
4f2f546e
JD
58752004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5876
5877 * xsmfns.c: Put empty line between comment and function body.
5878 Use two spaces before comment end.
5879
fc1062f5
KH
58802004-10-25 Kenichi Handa <handa@m17n.org>
5881
5882 * fontset.c (fontset_pattern_regexp): Optimize for the case that
5883 PATTERN is full XLFD.
5884
be13f5e5
KH
58852004-10-24 Kenichi Handa <handa@m17n.org>
5886
5887 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
5888
5889 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
5890 (regex_compile): Return REG_ERANGEX if appropriate.
5891
d0ee2ed3
KH
58922004-10-22 Kenichi Handa <handa@m17n.org>
5893
5894 * editfns.c (Ftranslate_region_internal): New function.
5895 (syms_of_editfns): Defsubr it.
5896
63ea8ea5
JD
58972004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5898
5899 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
5900
9ba27690 59012004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 5902
068f3848
SM
5903 * xterm.h (x_output): New member `xic_base_fontname'.
5904 (FRAME_XIC_BASE_FONTNAME): New macro.
5905 (xic_free_xfontset): Declare.
c27ed90a 5906
068f3848
SM
5907 * xfns.c (xic_create_xfontset): Share fontsets between frames
5908 based on base_fontname.
5909 (xic_free_xfontset): New function.
5910 (free_frame_xic): Use it.
5911 (xic_set_xfontset): Ditto.
c27ed90a 5912
068f3848 5913 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
5914
5915
59508699
JR
59162004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
5917
5918 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
5919
dede2792
JD
59202004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5921
3aca2078
JD
5922 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
5923 XSync.
5924
dede2792
JD
5925 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
5926 New variables and constant.
5927 (main): Calculate heap_bss_diff. If we are dumping and the
5928 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
5929 and exec ourself again.
5930 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
5931 print a warning.
5932
5933 * lastfile.c: Make my_endbss and my_endbss_static available on all
5934 platforms.
5935
5936 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
5937 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
5938
1dc5ba01
LT
59392004-10-19 Luc Teirlinck <teirllm@auburn.edu>
5940
5941 * data.c (Flocal_variable_if_set_p): Doc fix.
5942
950090be
JR
59432004-10-19 Jason Rumney <jasonr@gnu.org>
5944
5945 * w32.c (init_environment): Set emacs_dir correctly when running
5946 emacs from the build directory.
5947
8550b998
RS
59482004-10-19 Richard M. Stallman <rms@gnu.org>
5949
5950 * editfns.c (Fdelete_and_extract_region):
5951 If region is empty, return null string.
5952
08dedea6
JD
59532004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5954
1dc5ba01 5955 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 5956 and canon_width.
068f3848 5957 (xg_frame_cleared): Remove.
08dedea6 5958
068f3848
SM
5959 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
5960 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
5961 (xg_create_scroll_bar): Put an event box widget between
5962 the scroll bar widget and the edit widget.
5963 (xg_show_scroll_bar): Show the parent widget (the event box).
5964 (xg_remove_scroll_bar): Destroy parent (the event box) also.
5965 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
5966 Move the parent (the event box) widget inside the fixed widget.
5967 Move window clear to xterm.c.
5968
068f3848 5969 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 5970
08dedea6 5971 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
5972 (x_scroll_bar_create, XTset_vertical_scroll_bar):
5973 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
5974 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
5975
8550b998 59762004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
5977
5978 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 5979
84338890
JD
59802004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5981
5982 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
5983 gdk_window_clear and move gdk_window_process_all_updates after
5984 clear so events are sent to the X server in correct order.
5985
6e1b0d8c
KH
59862004-10-18 Kenichi Handa <handa@m17n.org>
5987
5988 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
5989 comparing font names.
8550b998 5990 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
5991 (list_fontsets): Likewise.
5992
5993 * search.c (fast_string_match_ignore_case): New function.
5994
5995 * lisp.h (fast_string_match_ignore_case): Extern it.
5996
345e75a8
KS
59972004-10-17 Kim F. Storm <storm@cua.dk>
5998
5999 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
6000 than bitmap if there is not left fringe.
6001 (get_overlay_arrow_glyph_row): Also used on windows system.
6002 (display_line): Display overlay string if no left fringe.
6003
be13cbb7
JR
60042004-10-16 Jason Rumney <jasonr@gnu.org>
6005
6006 * w32fns.c (w32_font_match): Encode font name being matched.
6007
c2e2ede7
RS
60082004-10-16 Richard M. Stallman <rms@gnu.org>
6009
6010 * window.c (Fspecial_display_p): Doc fix.
6011
043f7f73 60122004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
6013
6014 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
6015 Don't ignore menus, because where-is-internal already does it for us.
6016
699a0392
KS
60172004-10-15 Kim F. Storm <storm@cua.dk>
6018
b3c7a89b
KS
6019 * xdisp.c (redisplay_window): Only update fringes and vertical
6020 border on window frames.
699a0392 6021
4e382b0f
AS
60222004-10-14 Andreas Schwab <schwab@suse.de>
6023
6024 * m/ia64.h (DATA_SEG_BITS): Don't define.
6025
329a7be2
KS
60262004-10-14 Kim F. Storm <storm@cua.dk>
6027
6028 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 6029 in some X versions.
329a7be2 6030
982241b1
SM
60312004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6032
6033 * fns.c (map_char_table): Add missing gcpros.
6034
9238467d
SM
60352004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6036
6037 * keymap.c (get_keymap): An autoload form is not a keymap.
6038
6039 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
6040
4440e3ca
KS
60412004-10-13 Kim F. Storm <storm@cua.dk>
6042
7cfdabde
KS
6043 * callproc.c (Fcall_process): Simplify handling of display arg.
6044 Resume `display_on_the_fly' once a coding system is determined.
6045
4440e3ca
KS
6046 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
6047
1c8dec6a
KS
60482004-10-12 Kim F. Storm <storm@cua.dk>
6049
6050 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
6051 caller, such as call-process, is not going to poll for input.
6052 (calc_line_height_property): Handle case where it->object is nil.
6053
6054 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
6055
170b174c
KH
60562004-10-12 Kenichi Handa <handa@m17n.org>
6057
9238467d
SM
6058 * xdisp.c (get_next_display_element):
6059 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
6060 chars in octal in unibyte buffer.
6061
b583964c
KS
60622004-10-12 Kim F. Storm <storm@cua.dk>
6063
6064 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
6065 are no ordinary bindings.
6066
29fabd8c
JD
60672004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6068
9238467d 6069 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 6070
c3f4c690
ST
60712004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6072
9238467d
SM
6073 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
6074 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 6075 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
6076 terminal frame.
6077 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
6078 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
6079 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
6080 Make a cancel file-open dialog be like C-g.
9238467d
SM
6081 * mac.c (mktime): Use emacs_mktime.
6082 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
6083 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 6084
9688f9eb
KS
60852004-10-10 Kim F. Storm <storm@cua.dk>
6086
6087 * keyboard.c (timer_resume_idle): New function to resume idle
6088 timer without resetting timers on the idle list.
52eb0373 6089 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
6090 (timer_start_idle, timer_stop_idle): Declare static.
6091 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
6092
6093 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
6094
f7f3a65f
ST
60952004-10-08 Steven Tamm <steventamm@mac.com>
6096
9238467d 6097 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 6098 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 6099 NULL where 0 should be used.
f7f3a65f
ST
6100 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
6101 objc/malloc.h
9238467d 6102 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 6103
3c7d999a
KS
61042004-10-07 Kim F. Storm <storm@cua.dk>
6105
6106 * xdisp.c (redisplay_window): Fix flicker on vertical line between
6107 windows. Update vertical line after drawing window fringes, but
6108 only if actually drawing any bitmaps--or there is no fringe.
6109
6110 * xterm.c (x_update_window_end): Likewise.
6111 * macterm.c (x_update_window_end): Likewise.
6112 * w32term.c (x_update_window_end): Likewise.
6113
6114 * fringe.c (draw_window_fringes): Return value now indicates if
6115 any fringe bitmaps were redrawn (or there are no fringes).
6116
6117 * dispextern.h (draw_window_fringes): Update prototype.
6118
bf06c82f
ST
61192004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6120
6121 * macfns.c (mac_get_window_bounds): Add extern.
6122 (x_real_positions): Use mac_get_window_bounds.
6123
6124 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
6125 xmenu.c (YAILOM).
3c7d999a 6126
bf06c82f
ST
6127 * macterm.c [!MAC_OSX]: Include Windows.h.
6128 (front_emacs_window): Rename from mac_front_window. All uses
6129 changed. Return the frontmost non-tooltip emacs window.
6130 (mac_get_window_bounds): New function.
6131 (x_calc_absolute_position): Use the difference of width and height
6132 between the inner and outer window.
6133 (x_set_offset): Specify window position by the coordinae of the
6134 outer window. Adjust the position if the title bar is completely
6135 outside the screen.
6136 (app_is_suspended, app_sleep_time): Remove unused variables.
6137 (do_app_resume, do_app_suspend): Remove their contents because
6138 window-activate/deactivate events will do the job.
6139 (do_zoom_window): Remove unused variables. Make compliant to the
6140 standard way of zooming. Set f->left_pos and f->top_pos.
6141 (XTread_socket): Don't use argument `expected'. Don't use
6142 FrontWindow to determine the clicked window. Exclude unprocessed
6143 mouseUp cases in the early stage. Add parentheses to fix operator
6144 precedence.
6145 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
6146
4cbbf6b7 61472004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
6148
6149 * config.in: Regenerate.
6150
6151 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
6152 HAVE_EXECSHIELD.
6153
b90ee8b5
JD
61542004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6155
6156 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
6157 a row if Alt or Meta has been found for that row. Also stop scanning
6158 for Keysyms for that row.
6159
904db1a2
KS
61602004-10-04 Kim F. Storm <storm@cua.dk>
6161
0207b8ad
KS
6162 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
6163 to list. Include overlay arrow bitmap in return value.
6164
25f7220c
KS
6165 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
6166 bars with fractional column width. If scroll bar separates two
6167 windows, move it towards the window it belongs to. Only update
6168 the padding area below the scroll bar widget when necessary,
6169 i.e. when scroll bar widget is created, moved, or resized.
6170
562020fe
KS
6171 * xdisp.c (define_frame_cursor1): Do not change frame cursor
6172 while tracking/dragging mouse.
6173 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
6174
37e34af7
KS
6175 * window.c (coordinates_in_window): Relax check for cursor
6176 on vertial border between mode lines.
6177 (Fset_window_fringes): Do not allow negative widths.
6178 (Fset_window_scroll_bars): Likewise.
6179
904db1a2
KS
6180 * .gdbinit (pp): Shorthand for p ARG + pr.
6181 (ff): New command: flush frame updates (X only).
6182
38fe4f64
MA
61832004-10-03 Michael Albinus <michael.albinus@gmx.de>
6184
6185 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
6186
9de36315
KH
61872004-09-30 Kenichi Handa <handa@m17n.org>
6188
07c381ad 6189 * process.c (send_process): Free composition data.
9de36315 6190
07c381ad 6191 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
6192
6193 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
6194 compositions to encode.
6195 (encode_coding_string): Likewise. Free composition data.
6196
d5fb8dab 61972004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
6198
6199 * coding.c (code_convert_region): Free composition data.
9de36315 6200
f2a54fbc
KS
62012004-09-29 Kim F. Storm <storm@cua.dk>
6202
dc5d6435
KS
6203 * fringe.c: Remove limit on number of bitmaps.
6204 (fringe_bitmaps, fringe_faces): Change to pointers.
6205 (max_fringe_bitmaps): New var.
6206 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
6207 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
6208
6209 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
6210 (struct glyph_row): Reorder fringe_bitmap related fields.
6211 (struct it): Likewise.
6212
6213 * w32term.c (fringe_bmp): Change to pointer.
6214 (max_fringe_bmp): New var.
6215 (w32_define_fringe_bitmap): Expand fringe_bmp.
6216 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
6217 (w32_destroy_fringe_bitmap): Likewise.
6218
62192004-09-29 Kim F. Storm <storm@cua.dk>
6220
6221 * fringe.c: Simplify last change.
f2a54fbc
KS
6222 (lookup_fringe_bitmap): New function.
6223 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
6224 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
6225 Keep standard bitmaps in Vfringe_bitmaps.
6226 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
6227 (Fset_fringe_bitmap_face): Likewise.
6228
6229 * dispextern.h (lookup_fringe_bitmap): Add prototype.
6230 (valid_fringe_bitmap_p): Remove prototype.
6231
6232 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
6233
841a8bca
KS
62342004-09-29 Kim F. Storm <storm@cua.dk>
6235
1f2da365
KS
6236 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
6237 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
6238
841a8bca
KS
6239 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
6240
6241 * fringe.c (Vfringe_bitmaps): New variable.
6242 (syms_of_fringe): DEFVAR_LISP it.
6243 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
6244 Change arg to Lisp_Object and fail if not an integer.
6245 (get_fringe_bitmap_name, resolve_fringe_bitmap)
6246 (destroy_fringe_bitmap): New functions.
9238467d
SM
6247 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
6248 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
6249 clear its fringe property.
6250 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
6251 Fdestroy_fringe_bitmap.
6252 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
6253 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
6254 and set fringe property. Signal error if no free slots.
6255 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
6256 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
6257
6258 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
6259 symbols with a fringe property.
6260
4d965590
KS
62612004-09-27 Kim F. Storm <storm@cua.dk>
6262
6263 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
6264 Doc fix. Format may now be a symbol or alist, not a cons.
6265
6266 * fringe.c (update_window_fringes): Handle new formats of
6267 indicate-buffer-boundaries (symbol or alist). No longer
6268 allow a simple cons.
6269 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
6270
e888c2b3
JD
62712004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6272
9238467d 6273 * config.in: Rebuild.
e888c2b3 6274
83f1cb94
JD
62752004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6276
6277 * config.in: Rebuild.
6278
dd3b1d60 6279 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 6280
2c51754c
SM
62812004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
6282
6283 * xterm.c (x_term_init): Work around a bug in some X servers.
6284
3df5f8aa
RS
62852004-09-18 Richard M. Stallman <rms@gnu.org>
6286
557ca2c1
RS
6287 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
6288
3df5f8aa
RS
6289 * xdisp.c (try_window_reusing_current_matrix):
6290 Handle the case where we reach the old displayed text,
6291 out of sync with the old line boundary.
6292
9238467d 62932004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
6294
6295 * fileio.c (Finsert_file_contents): Fix case of replacement in a
6296 narrowed buffer.
6297
bfa02563
KS
62982004-09-14 Kim F. Storm <storm@cua.dk>
6299
a25fe164
KS
6300 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
6301
bfa02563
KS
6302 * xfaces.c (Qface_no_inherit): New var.
6303 (syms_of_xfaces): Intern and staticpro it.
6304 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
6305 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
6306 Don't increment face_change_count when face has non-nil
6307 face-no-inherit property.
6308
126f9c02
SM
63092004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
6310
892a8eb5
SM
6311 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
6312 (Fbyte_code): Remove dead code after `wrong_type_argument'.
6313
126f9c02 6314 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 6315 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 6316
c0ad3b38
KS
63172004-09-12 Kim F. Storm <storm@cua.dk>
6318
6319 * editfns.c (Fformat): Handle format strings with multiple text
6320 properties. Reverse text property list from the format string,
6321 so the positions are in increasing order.
6322
844fc085
JD
63232004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6324
6325 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
6326 x_uncatch_errors so that possible protocol errors are delivered.
6327
b106731c
EZ
63282004-09-10 Eli Zaretskii <eliz@gnu.org>
6329
21065c92
EZ
6330 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
6331 blockinput.h.
6332 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
6333 charset.h, and coding.h
9238467d 6334 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
6335 (term.o): Depend on window.h and keymap.h.
6336 (abbrev.o): Depend on syntax.h.
6337 (callint.o): Depend on keymap.h.
6338 (casefiddle.o): Depend on charset.h and keymap.h.
6339 (category.o): Depend on keymap.h.
6340 (coding.o): Depend on dispextern.h.
6341 (cmds.o): Depend on keyboard.h and keymap.h.
6342 (dispnew.o): Depend on indent.h and intervals.h.
6343 (doc.o): Depend on keymap.h.
6344 (editfns.o): Depend on frame.h.
6345 (emacs.o): Depend on dispextern.h.
6346 (fileio.o): Don't depend on ccl.h.
6347 (filelock.o): Depend on charset.h and coding.h.
6348 (frame.o): Depend on w32term.h and macterm.h.
6349 (insdel.o): Depend on region-cache.h.
6350 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
6351 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
6352 (search.o): Depend on $(INTERVALS_SRC).
6353 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
6354 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
6355 xterm.h, w32term.h, and macterm.h.
6356 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
6357 w32term.h, and macterm.h.
6358 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
6359 region-cache.h, xterm.h, w32term.h, and macterm.h.
6360 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
6361 (data.o): Depend on frame.h.
6362 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
6363 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
6364 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
6365 (intervals.o): Depend on keymap.h.
6366
9238467d
SM
6367 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
6368 Add debugging print-out to termscript.
b106731c 6369
64b7122d
RS
63702004-09-09 Richard M. Stallman <rms@gnu.org>
6371
6372 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
6373
5670531e
RS
63742004-09-08 Richard M. Stallman <rms@gnu.org>
6375
6cb4a892
RS
6376 * window.c (Fset_window_buffer): Doc fix.
6377
5670531e
RS
6378 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
6379
7e388eb7
JL
63802004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
6381
6382 * minibuf.c (history_delete_duplicates): New variable.
6383 (read_minibuf): Use it.
6384 (syms_of_minibuf): Create the corresponding lisp variable.
6385
370e3587
KS
63862004-09-08 Kim F. Storm <storm@cua.dk>
6387
6388 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
6389 overlay just before point.
6390
f844ba4e
LT
63912004-09-07 Luc Teirlinck <teirllm@auburn.edu>
6392
6393 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
6394 * buffer.c (reset_buffer, init_buffer_once):
6395 Handle auto_save_file_format field.
f844ba4e
LT
6396 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
6397 `buffer-auto-save-file-format'.
f844ba4e
LT
6398 * fileio.c: Delete declaration for removed Vauto_save_file_format.
6399 (build_annotations): Adapt to replacement of
6400 `auto-save-file-format' with the new buffer-local variable
6401 `buffer-auto-save-file-format'.
6402 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
6403
f0f90717
JR
64042004-09-07 Jason Rumney <jasonr@gnu.org>
6405
6406 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
6407
9238467d
SM
6408 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
6409 Handle Unicode menu titles.
f0f90717 6410
4e14f66c
KS
64112004-09-07 Kim F. Storm <storm@cua.dk>
6412
6413 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
6414 property from text property or overlay strings at point.
6415
9238467d 64162004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
6417
6418 * xmenu.c (update_submenu_strings): YAILOM.
6419 (set_frame_menubar): Make sure last_i is initialized.
6420
1f06d367
JR
64212004-09-03 Jason Rumney <jasonr@gnu.org>
6422
1806714a 6423 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
6424 (digest_single_submenu): Set lname and lkey in widget_value
6425 instead of name and key.
6426 (update_submenu_strings): New function.
6427 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6428 call update_submenu_strings.
6429
6430 * w32menu.c (globals_of_w32menu): Check for Unicode API.
6431 (digest_single_submenu, w32_menu_show): Encode menu strings as
6432 UTF-8 if Unicode API is available.
6433 (utf8to16): New function.
6434 (add_menu_item): Use it when calling Unicode API.
1806714a 6435
46540080
KS
64362004-09-03 Kim F. Storm <storm@cua.dk>
6437
6438 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
6439 in overlay or text-property strings; set cursor on corresponding
6440 glyph rather than at end of the string.
6441
9277ba61 64422004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 6443
9277ba61 6444 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
6445 set a new one before obtaining the global coordinate.
6446 Use FRAME_MAC_WINDOW.
6447 (x_set_name, x_set_title): Encode title to UTF8.
6448 Use SetWindowTitleWithCFString.
9277ba61
ST
6449 (Fx_server_version): Get correct OS version.
6450
1806714a
SM
6451 * macmenu.c (add_menu_item): Remove unused variable `i'.
6452 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
6453
6454 * macterm.c (x_update_end): Move SetPortWindowPort to inside
6455 BLOCK_INPUT.
6456 (x_set_offset): Use FRAME_MAC_WINDOW.
6457
6458 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
6459 nontext_cursor if it is on a scroll bar.
6460
6461 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
6462 Carbon support.
1806714a
SM
6463 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
6464 Use LIBS_CARBON.
9277ba61 6465
b10daec7
JD
64662004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6467
6468 * xfns.c (x_set_name_internal): New function. Check if we shall call
6469 xfree before ENCODE_UTF_8.
6470 (x_set_name, x_set_title): Call x_set_name_internal.
6471
f7e22385
JR
64722004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
6473
6474 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
6475 reload it.
6476
2bf436c3
JD
64772004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6478
1806714a 6479 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
6480 (single_submenu): Set lname and lkey in widget_value
6481 instead of name and key.
6482 (update_submenu_strings): New function.
6483 (set_frame_menubar): Remove call to inhibit_garbage_collection,
6484 call update_submenu_strings.
6485
2bf436c3
JD
6486 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
6487 instead of name and key.
6488 (update_submenu_strings): New function.
6489 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 6490 call update_submenu_strings.
2bf436c3
JD
6491
6492 * gtkutil.h (_widget_value): Added lname and lkey.
6493
11715f92
ST
64942004-08-30 Steven Tamm <steventamm@mac.com>
6495
6496 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
6497 by using different names for inner loop variables.
6498
5500be54
JD
64992004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6500
059cd329
JD
6501 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
6502 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
6503
5500be54
JD
6504 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
6505 tool bar items is 0.
6506
383418e5
ST
65072004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6508
6509 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
6510 strings in menu items.
6511 (single_submenu): Use ENCODE_MENU_STRING
6512 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
6513 button release isn't passed to event loop
6514 (add_menu_item): Use SetMenuItemWithCFString
6515
6eb3ee72
ST
65162004-08-26 Steven Tamm <steventamm@mac.com>
6517
6518 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
6519 tool-bar/menu click.
6520 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 6521
10b43ac3
JD
65222004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6523
2728b5d0
JD
6524 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
6525
10b43ac3
JD
6526 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6527 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6528 (x_top_window_to_frame): Return 0 if wdesc is None.
6529
2ee3b79e
RS
65302004-08-22 Richard M. Stallman <rms@gnu.org>
6531
6532 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
6533 HAVE_TERMIOS]: If there's no char for this signal, drop through
6534 and use system calls.
6535
6536 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
6537
9a1ba2ea
KS
65382004-08-20 Kim F. Storm <storm@cua.dk>
6539
6540 * process.c (wait_reading_process_output): Rename from
6541 wait_reading_process_input. All uses changed.
6542 (wait_reading_process_output_1): Rename from
6543 wait_reading_process_input_1. All uses changed.
6544
6545 * dispnew.c (Fsleep_for): Remove obsolete code.
6546
295f3b30
KH
65472004-08-20 Kenichi Handa <handa@m17n.org>
6548
6549 * syntax.c (skip_chars): Fix for unibyte case.
6550
27615979
SM
65512004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6552
6553 * syntax.c (char_quoted): Mixup byte/char pos.
6554 (back_comment): Fixup globals in all cases.
6555
00267f94
JD
65562004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6557
6558 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
6559 passing it to gtk_window_set_title.
6560
2439909e
KS
65612004-08-19 Kim F. Storm <storm@cua.dk>
6562
6ba0f14c
KS
6563 * process.c (wait_reading_process_input): Clean up.
6564 Add wait_for_cell, wait_proc, and just_wait_proc args
6565 to avoid overloading `read_kbd' and `do_display' args.
6566 Change read_kbd arg to int. All callers changed.
6567
2439909e
KS
6568 * process.c (process_send_signal): Use CDISABLE.
6569
6570 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
6571
101c421e
KS
65722004-08-18 Kim F. Storm <storm@cua.dk>
6573
6574 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
6575 forward to wait_reading_process_input via DO_DISPLAY arg.
6576 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
6577 object, only process output from that process; also inhibit
6578 running timers if DO_DISPLAY==-2.
6579
c438dc33
KS
65802004-08-17 Kim F. Storm <storm@cua.dk>
6581
6582 * process.c (process_send_signal): Fix last change--use
6583 _POSIX_VDISABLE instead of CVDISABLE when available.
6584
8afc13c6
RS
65852004-08-16 Richard M. Stallman <rms@gnu.org>
6586
6587 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
6588 Set VQUIT and VINTR chars to the standard ones if they are unset.
6589 [AIX]: Don't do that here. And don't force VINTR to standard
6590 when SIGNALS_VIA_CHARACTERS.
6591
c438dc33 6592 * process.c (process_send_signal)
8afc13c6
RS
6593 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
6594 Do nothing if the character is CVDISABLE.
6595
6596 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
6597
c438dc33 6598 * intervals.c (move_if_not_intangible):
8afc13c6
RS
6599 Force POSITION to be between BEGV and ZV.
6600
6dad1714
JPW
66012004-08-14 John Paul Wallington <jpw@gnu.org>
6602
6603 * buffer.c (Frestore_buffer_modified_p): Doc fix.
6604
6605 * fileio.c (Fread_file_name): Doc fix.
6606
6607 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6608
2bd77330
LT
66092004-08-09 Luc Teirlinck <teirllm@auburn.edu>
6610
6611 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
6612
c90e7e43
LT
66132004-08-08 Luc Teirlinck <teirllm@auburn.edu>
6614
6615 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 6616 Qdisabled_command_hook.
c90e7e43 6617 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 6618 Qdisabled_command_hook.
c90e7e43
LT
6619 (syms_of_keyboard): Ditto.
6620
81909a1a
LT
66212004-08-07 Luc Teirlinck <teirllm@auburn.edu>
6622
6623 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
6624 (syms_of_keymap) <key-translation-map>: Doc fixes.
6625
0cedd530
SM
66262004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
6627
1725a7c9
SM
6628 * window.c (window_list_1): YAILOM.
6629
0cedd530
SM
6630 * fileio.c (make_temp_name): Handle multibyte prefixes.
6631
2515a131
LT
66322004-08-06 Luc Teirlinck <teirllm@auburn.edu>
6633
6634 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6635 Doc fix.
6636
c8b20fb7
KH
66372004-08-03 Kenichi Handa <handa@m17n.org>
6638
6639 * coding.c (decode_coding_string): Adjust coding->consumed, and
6640 etc. with shrinked_bytes.
6641
fb8b092b
KS
66422004-08-03 Kim F. Storm <storm@cua.dk>
6643
6644 * indent.c (compute_motion): Fix check for full width window
6645 in non-window case. Do not count left truncation glyph on
6646 window systems.
6647
df133612
LT
66482004-08-02 Luc Teirlinck <teirllm@auburn.edu>
6649
6650 * data.c (Finteractive_form): Doc fix.
6651
0f7a93c1
KS
66522004-08-02 Kim F. Storm <storm@cua.dk>
6653
6654 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
6655 properly accounting for continuation glyph on non-window systems.
6656 (Fcompute_motion): Use actual window width if WIDTH is nil, and
6657 actual window width/height if TOPOS is nil, properly accounting for
6658 continuation glyphs on non-window systems, and optional header lines.
6659 (vmotion): Let compute_motion calculate actual window width.
6660
6661 * window.c (window_scroll_line_based): Let compute_motion
6662 calculate actual window width.
6663
f491e1ed
KS
66642004-08-02 Kim F. Storm <storm@cua.dk>
6665
6666 * process.c (read_process_output): Use whole read buffer.
6667 Don't trigger adaptive read buffering on errors.
6668
83f64226
LT
66692004-07-31 Luc Teirlinck <teirllm@auburn.edu>
6670
6671 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
6672
1d1c7e75 6673 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
6674
6675 * callint.c (Fcall_interactively): Doc fix.
6676
8afc13c6
RS
66772004-07-30 Richard M. Stallman <rms@gnu.org>
6678
6679 * abbrev.c (Fexpand_abbrev): Undo previous change.
6680
7c111482
KS
66812004-07-30 Kim F. Storm <storm@cua.dk>
6682
6683 * editfns.c (Fformat): Allocate extra (dummy) element in info.
6684
ee945d08
LT
66852004-07-28 Luc Teirlinck <teirllm@auburn.edu>
6686
6687 * eval.c (Fdefvar, Fdefconst): Doc fixes.
6688
3f911c94
KS
66892004-07-27 Kim F. Storm <storm@cua.dk>
6690
6691 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
6692 we have ensured that the glyph fits on the current line (or returned
6693 MOVE_LINE_CONTINUED otherwise).
6694
f29ff8c7
KS
66952004-07-26 Kim F. Storm <storm@cua.dk>
6696
6697 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
6698 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
6699 if target position is at end of display line but char is not a newline.
6700
81159bb9
RS
67012004-07-25 Richard M. Stallman <rms@gnu.org>
6702
ab431b61
RS
6703 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
6704 instead of ON_VERTICAL_BORDER, when on scroll bar.
6705 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
6706
6707 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
6708
f29ff8c7 6709 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
6710 Take account of FRAME_INTERNAL_BORDER_WIDTH.
6711
6712 * alloc.c (check_cons_list): New function (contents commented out).
6713
fc820cc5
LT
67142004-07-24 Luc Teirlinck <teirllm@auburn.edu>
6715
6716 * xfaces.c (Fcolor_supported_p): Doc fix.
6717
6718 * frame.c (Fselect_frame, Fset_frame_selected_window)
6719 (Fframe_visible_p, Fraise_frame): Doc fixes.
6720
289978b5
LT
67212004-07-24 Richard M. Stallman <rms@gnu.org>
6722
78819ebb 6723 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
6724
6725 * fileio.c (Fwrite_region): Doc fix.
6726
6727 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
6728
6729 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
6730 only when a real abbrev is present.
6731
289978b5
LT
6732 * xfns.c (x_icon_verify): New function.
6733 (Fx_create_frame): Use it.
6734
d5fb8dab 67352004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
6736
6737 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
6738
36f826d4
KS
67392004-07-21 Kim F. Storm <storm@cua.dk>
6740
6741 * window.h (struct glyph_matrix): New members nrows_scale_factor
6742 and ncols_scale_factor.
6743
6744 * window.c (make_window): Initialize nrows_scale_factor and
6745 ncols_scale_factor members.
6746
6747 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
6748 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
6749 (required_matrix_height): Apply nrows_scale_factor.
6750 (required_matrix_width): Apply ncols_scale_factor.
6751
6752 * xdisp.c (display_line): Increment nrows_scale_factor and set
6753 fonts_changed_p if past last allocated row.
6754 (append_glyph, append_composite_glyph, produce_image_glyph)
6755 (append_stretch_glyph): Increment ncols_scale_factor and set
6756 fonts_changed_p if current area is full.
6757
5fc1c546
JD
67582004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6759
6760 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
6761
cb7516e5
LT
67622004-07-19 Luc Teirlinck <teirllm@auburn.edu>
6763
6764 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
6765 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
6766 (Fset_window_start, Fscroll_up, Fscroll_down)
6767 (Fother_window_for_scrolling, Fscroll_other_window)
6768 (Fsave_window_excursion, Fset_window_vscroll)
6769 (syms_of_window) <window-size-fixed>: Doc fixes.
6770
b6189c3b 67712004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
6772
6773 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
6774 ENCODE_SYSTEM for filenames.
6775
bfcf6608
ST
67762004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6777
6778 * mac.c (sys_select): Block input around call to
6779 ReceiveNextEvent to prevent breakage. Correctly handle
6780 blocking on event queue only by calling ReceiveNextEvent
6781 instead of select (since GUI events aren't on an fd).
6782 (sys_read): Remove function
6783 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
6784
e082ac9d
ST
67852004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6786
6787 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 6788 polling instead of 1 sec timeouts (like solaris).
e082ac9d 6789
cb7516e5 6790 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
6791 frame creation.
6792
6793 * keyboard.c: Undef SIGIO on Carbon
6794
6795 * atimer.c (alarm_signal_handler): Call alarm handlers after
6796 scheduling.
6797
6798 * eval.c (Feval): Remove quit_char test
6799
6800 * process.c (wait_reading_process_input): Remove clearing
6801 stdin for select call on process input.
6802
4b9da0fb
LT
68032004-07-18 Luc Teirlinck <teirllm@auburn.edu>
6804
1204e81c
LT
6805 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
6806 capitalization error in docstring.
4b9da0fb 6807
26503ad2
JB
68082004-07-17 Juanma Barranquero <lektu@terra.es>
6809
6810 * keyboard.c (not_single_kboard_state): Do nothing unless
6811 MULTI_KBOARD is defined.
6812
3751eb00
RS
68132004-07-17 Richard M. Stallman <rms@gnu.org>
6814
6815 * window.c (coordinates_in_window): Inside the window but outside
6816 its box to the L or R, return ON_VERTICAL_BORDER.
6817 (window_list_1): Rotate the list to start with WINDOW.
6818
6819 * print.c (print_preprocess): Test for print_depth at limit
6820 before entering in being_printed.
6821
6822 * keyboard.c (not_single_kboard_state): New function.
6823 (stuff_buffered_input): Now no-op only if no SIGTSTP.
6824
6825 * frame.c (Fdelete_frame): If we're in single_bboard_state on
6826 this kboard, and we delete its last frame, go to any_kboard_state.
6827
6828 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
6829
b6189c3b 68302004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
6831
6832 * w32fns.c (Fx_file_dialog): Encode strings in system coding
6833 system before passing them to OS functions for display.
6834
0f6af254
DK
68352004-07-15 David Kastrup <dak@gnu.org>
6836
f9253326
KS
6837 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
6838 Apparently fixes an abort condition.
0f6af254 6839
386c8f42
LT
68402004-07-14 Luc Teirlinck <teirllm@auburn.edu>
6841
6842 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
6843 instead of a cons.
6844
366511da
MB
68452004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6846
6847 * keyboard.c (echo_dash): Do nothing if there already is a dash
6848 at the end of the echo string.
6849
f85409d3
KS
68502004-07-12 Kim F. Storm <storm@cua.dk>
6851
6852 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
6853 if GC_MARK_STACK.
6854
0ba2e87b
LT
68552004-07-10 Luc Teirlinck <teirllm@auburn.edu>
6856
da38045d
LT
6857 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
6858
0ba2e87b
LT
6859 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
6860 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
6861 (Freplace_buffer_in_windows, Fset_window_buffer)
6862 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
6863 (syms_of_window): Expand docstring of `display-buffer-function'.
6864
5668fbb8
LT
68652004-07-09 Luc Teirlinck <teirllm@auburn.edu>
6866
6867 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
6868 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
6869 that time values of the type (HIGH . LOW) are considered obsolete.
6870
a085bf9d
LT
68712004-07-06 Luc Teirlinck <teirllm@auburn.edu>
6872
669de2fb
LT
6873 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
6874 docstring.
6875
bac66325 6876 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 6877
8e975df9
JPW
68782004-07-06 John Paul Wallington <jpw@gnu.org>
6879
6880 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
6881
fa164e6a
JPW
6882 * fns.c (Fclear_string): Signal an error if STRING is not a string.
6883
2bac9bb1
JD
68842004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6885
6886 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
6887 instead of CGMainDisplayID (only in OSX 10.2 and later).
6888
316ef0dc
JPW
68892004-07-04 John Paul Wallington <jpw@gnu.org>
6890
6891 * fileio.c (read_file_name_completion_ignore_case): New variable.
6892 (syms_of_fileio): Declare and initialise it.
6893 (Fread_file_name): Bind `completion-ignore-case' to respect it.
6894
2a1a35c6
EZ
68952004-07-03 Eli Zaretskii <eliz@gnu.org>
6896
6897 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
6898 for event.x and event.y.
6899
33a72331
KH
69002004-07-01 Kenichi Handa <handa@m17n.org>
6901
6902 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
6903 after getting a new string by pre-write-conversion.
6904
9238467d 69052004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
6906
6907 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
6908 (x_calc_absolute_position): Remove unused var `child'.
6909
6910 * xfaces.c (x_supports_face_attributes_p)
6911 (Fdisplay_supports_face_attributes_p): YAILOM.
6912 (tty_supports_face_attributes_p): Remove unused var `i'.
6913
6914 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
6915 back_unibyte_ok.
6916
6917 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
6918
6919 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
6920
6921 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
6922
f96ec754
AS
69232004-06-30 Andreas Schwab <schwab@suse.de>
6924
6925 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
6926 (Finit_image_library): Pass LIBRARIES through to
6927 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
6928 (lookup_image_type): Pass Qnil as second argument to
6929 Finit_image_library.
6930
78819ebb 6931 * lisp.h (Finit_image_library): Declare.
f96ec754 6932
59feca74 69332004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 6934
31983645
AS
6935 * macterm.c (do_window_activate, do_window_deactivate): Remove.
6936 (XTread_socket): Send mouse button events to the toolbox
6937 dispatcher even when the mouse is grabbed. Don't process window
6938 activate events for non-Emacs windows. Replace function calls to
6939 do_window_activate and do_window_deactivate with their contents.
6940 Reset mouse grabbing status when a window is deactivated.
59feca74 6941
c61278bb
ST
69422004-06-29 Steven Tamm <steventamm@mac.com>
6943
6944 * macterm.c (mac_get_emulated_btn)
6945 (mac_event_to_emacs_modifiers): Fix emulated mouse button
6946 support to correctly mask out modifiers.
6947
c3762cbd
DK
69482004-06-29 David Kastrup <dak@gnu.org>
6949
6950 * search.c (Fset_match_data): Allow buffer before end of list
6951 which can happen if set-match-data is using a pre-consed list.
6952
c61278bb 69532004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
6954
6955 * macterm.c (XTread_socket): Correctly set the frame position
6956 after the window is moved.
6957
74cdfe05
JD
69582004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6959
6960 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
6961 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
6962 (xg_get_image_for_pixmap): Add workaround for monochrome displays
6963 so insensitive and activated icons look ok.
74cdfe05 6964
ef544dc8
JR
69652004-06-27 Jason Rumney <jasonr@gnu.org>
6966
6967 * w32fns.c (file_dialog_callback): Disable edit control if set
6968 to directories only on CDN_INITDONE message.
6969 (Fx_file_dialog): Default to directories only when prompt starts
6970 with "Dired".
6971
7b7990cc
KS
69722004-06-25 Kim F. Storm <storm@cua.dk>
6973
6974 * alloc.c (allocate_misc): Update total_free_markers.
6975 (free_misc): New function.
6976 (safe_alloca_unwind, free_marker): Use it.
6977
6978 * lisp.h (free_misc): Add prototype.
6979
6980 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
6981
d8c379f8
RS
69822004-06-24 Richard M. Stallman <rms@gnu.org>
6983
6984 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
6985 (syms_of_emacs): Lisp variables deleted.
6986
559cdd07
DK
69872004-06-23 David Kastrup <dak@gnu.org>
6988
94939b84
DK
6989 * search.c (Freplace_match): Adjust the match-data more thoroughly
6990 when replacing strings in the buffer.
6991 (Fmatch_data): When INTEGERS is non-nil and the last match was in
6992 a buffer, add the buffer as last element to the match data.
6993 (Fset_match_data): If an additional element of the match-data is a
6994 buffer, restore it to last_thing_searched.
c8d09ad8 6995 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
6996 (restore_match_data): Restore it again.
6997
dce417e7
LT
69982004-06-23 Luc Teirlinck <teirllm@auburn.edu>
6999
7000 * keymap.c (Ftext_char_description): Doc fix.
7001 * doc.c (Fsnarf_documentation): Doc fix.
7002
ef54b2d0
KS
70032004-06-22 Kim F. Storm <storm@cua.dk>
7004
b5bc4d05
KS
7005 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
7006
ef54b2d0
KS
7007 * lisp.h (struct Lisp_Save_Value): New member dogc.
7008 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
7009 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
7010 (SAFE_FREE_LISP): New macro.
7011
7012 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
7013 (make_save_value): Init new dogc member.
7014 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
7015
7016 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
7017 SAFE_FREE_LISP macros.
7018
3d33d993
KS
70192004-06-22 Kim F. Storm <storm@cua.dk>
7020
7021 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
7022 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
7023 in that memory area are unknown to GC. Add comments.
7024
7025 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
7026
5c917f98
KS
70272004-06-21 Kim F. Storm <storm@cua.dk>
7028
7029 * lisp.h (MAX_ALLOCA): Define here.
7030 (safe_alloca_unwind): Add prototype.
7031 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
7032
7033 * alloc.c (safe_alloca_unwind): New function.
7034
7035 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
7036
7037 * charset.c (Fstring): Use SAFE_ALLOCA.
7038
7039 * coding.c (MAX_ALLOCA): Remove define.
7040
7041 * data.c (MAX_ALLOCA): Remove define.
7042 (Faset): Use SAFE_ALLOCA.
7043
7044 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
7045
7046 * fns.c (string_make_multibyte, string_to_multibyte)
7047 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
7048 (MAX_ALLOCA): Remove define.
7049 (Fbase64_encode_region, Fbase64_encode_string)
7050 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
7051 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
7052 memory leak if encoding fails.
7053
7054 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
7055
9a09408e
EZ
70562004-06-21 Eli Zaretskii <eliz@gnu.org>
7057
7058 * print.c (Fwith_output_to_temp_buffer): Doc fix.
7059
376de739
RS
70602004-06-20 Richard M. Stallman <rms@gnu.org>
7061
7062 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
7063
7064 * search.c (match_limit): Cleaner err msg when no match data available.
7065
7066 * window.c (syms_of_window): Doc fix.
7067
7068 * keyboard.c (command_loop_1): Handle values `only' and `identity'
7069 for Vtransient_mark_mode.
7070
7071 * buffer.c (syms_of_buffer): Doc fix.
7072
acd81db9
DK
70732004-06-21 David Kastrup <dak@gnu.org>
7074
7075 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
7076 and unbinding of `case-fold-search' according to
7077 `completion-ignore-case' around calls of string-match and
7078 predicates, respectively. Should give satisfactory performance
7079 in all relevant cases.
7080
f303762d
JD
70812004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7082
95911c74
JD
7083 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
7084 clip_x/y_origin.
7085
a6cb6b78
JD
7086 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
7087
f303762d
JD
7088 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
7089
7090 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
7091 on Mac OSX.
7092
bbdb2684
LT
70932004-06-16 Luc Teirlinck <teirllm@auburn.edu>
7094
7095 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
7096
5ea48b1c
KS
70972004-06-16 Kim F. Storm <storm@cua.dk>
7098
7099 * dispextern.h (Vimage_types): Remove extern.
7100
803aac3e
MB
71012004-06-16 Miles Bader <miles@gnu.org>
7102
7103 * image.c (lookup_image_type): Initialize image type if necessary.
7104
cdc97764
KS
71052004-06-15 Kim F. Storm <storm@cua.dk>
7106
c4a5739c
KS
7107 * xdisp.c (try_cursor_movement): Exclude header line from scroll
7108 margin at top of window.
7109 (try_window_reusing_current_matrix): Calculate proper cursor position
7110 after scrolling up with non-zero scroll margin, as the old cursor
7111 position corresponds to value of PT before executing this command.
7112 (try_window_id): Consider scroll margin at bottom of window too;
7113 otherwise we fail to scroll when hl-line-mode is enabled.
7114
cdc97764
KS
7115 * syntax.c (skip_chars): Only recognize [:class:] when it has the
7116 proper format and class is a lower-case word.
7117
5b166323
JD
71182004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7119
7120 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 7121 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
7122 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
7123 xg_get_gdk_pixmap_and_mask.
cdc97764 7124
5b166323
JD
7125 * xterm.h (struct x_display_info): Typo in comment fixed.
7126
1ebd4f78
JB
71272004-06-14 Juanma Barranquero <lektu@terra.es>
7128
7129 * dispextern.h (Vimage_types): Make it conditional on
7130 HAVE_WINDOW_SYSTEM.
7131
7132 * image.c (Vimage_types): Move from xdisp.c.
7133 (Vimage_type_cache): New variable.
7134 (define_image_type): New argument indicating whether an image
7135 library was loaded; cache loaded status and return t on success,
7136 nil otherwise.
7137 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
7138 (w32_delayed_load): New function to load an image library from a
7139 list of possible filenames.
7140 (init_xpm_functions, init_png_functions, init_jpeg_functions)
7141 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 7142 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
7143 (Finit_image_library): New function, extracted from `init_image'.
7144 Try to initialize an image library on demand and cache whether we
7145 were successful or not.
7146 (syms_of_image): Initialize `Vimage_types' and
7147 `Vimage_type_cache'. Add recognized image types to Vimage_types.
7148 Export `init-image-library'.
7149 (init_image): Remove initialization of all image types, except xbm
7150 and pbm.
7151
7152 * xdisp.c (Vimage_types): Delete (moved to image.c).
7153
904ee128
AS
71542004-06-14 Andreas Schwab <schwab@suse.de>
7155
7156 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
7157 Avoid calling specbind when completion-regexp-list is empty.
7158
092de21d
RS
71592004-06-13 Richard M. Stallman <rms@gnu.org>
7160
7161 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7162 (re_wctype, re_iswctype, re_wctype_to_bit):
7163 Non-function definitions moved here from regex.c.
1ebd4f78 7164
092de21d
RS
7165 * regex.c (re_wctype, re_iswctype): Function defs longer static.
7166 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7167 (re_wctype, re_iswctype, re_wctype_to_bit):
7168 Non-function definitions moved to regex.h.
7169
7170 * window.c (Fselect_window): Doc fix.
7171
7172 * syntax.c: Include regex.h.
7173 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
7174 If requested, make a list of classes, then check the scanned
7175 chars for membership in them.
7176 (in_classes): New function.
7177 Doc fix.
7178
7179 * keyboard.c (cmd_error): Don't call any_kboard_state
7180 if inside a recursive edit level.
7181
9ba27690 71822004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
7183
7184 * keyboard.c (command_loop): Call any_kboard_state before
7185 command_loop_2 when at top level.
7186
3ebc0939
AS
71872004-06-13 Andreas Schwab <schwab@suse.de>
7188
cea5d0d4
AS
7189 * print.c (print_object): Always use %ld for printing EMACS_INT.
7190
7191 * keyboard.c (cancel_hourglass_unwind): Return a value.
7192 (modify_event_symbol): Always use %ld for printing EMACS_INT.
7193 (Fexecute_extended_command): Likewise.
7194
7195 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
7196 avoid clashes.
7197 (SYNTAX): Likewise.
7198 (SYNTAX_WITH_FLAGS): Likewise.
7199 (SYNTAX_MATCH): Likewise.
7200
7201 * syntax.c (char_quoted): Avoid warning about undefined operation.
7202 (find_defun_start): Likewise.
7203 (scan_lists): Likewise.
7204 (INC_FROM): Likewise.
7205 (scan_sexps_forward): Likewise.
7206
be8c4ce4
AS
7207 * image.c: Include <ctype.h>.
7208
3ebc0939
AS
7209 * xfaces.c (face_attr_equal_p): Declare parameters.
7210
6fb41b5b
KH
72112004-06-13 Kenichi Handa <handa@m17n.org>
7212
7213 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
7214
fc3095ce
EZ
72152004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
7216
7217 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
7218
66189a40
KH
72192004-06-12 Kenichi Handa <handa@m17n.org>
7220
7221 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
7222 ccl_prog_stack_struct and update it.
7223 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
7224 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
7225 ccl->eof_ic on EOF.
7226 (ccl_debug_hook): New function.
7227 (struct ccl_prog_stack): New member eof_ic.
7228 (ccl_driver): Handle EOF in subrountine call correctly.
7229
72302004-06-11 Kenichi Handa <handa@m17n.org>
7231
a9b43336 7232 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 7233
1da71023
KS
72342004-06-11 Kim F. Storm <storm@cua.dk>
7235
7236 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
7237
e9efcef4
JB
72382004-06-11 Juanma Barranquero <lektu@terra.es>
7239
7240 * keyboard.c (Fposn_at_point): Doc fix.
7241
9b9ceb61
DK
72422004-06-11 David Kastrup <dak@gnu.org>
7243
7244 * search.c (match_limit): Don't flag an error if match-data
7245 exceeding the allocated search_regs.num_regs gets requested, just
7246 return Qnil.
7247
6e87ac8f
MB
72482004-06-08 Miles Bader <miles@gnu.org>
7249
7250 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
7251
0b0dea7b
JB
72522004-06-07 Juanma Barranquero <lektu@terra.es>
7253
7254 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
7255 (Fcurrent_time_string, Fcurrent_time_zone)
7256 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
7257
a0a23346
MB
72582004-06-07 Miles Bader <miles@gnu.org>
7259
08384afd 7260 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
7261 (push_named_merge_point): New function.
7262 (merge_named_face): New function.
7263 (merge_face_ref, face_at_buffer_position, face_at_string_position):
7264 Use `merge_named_face'.
7265 (merge_face_inheritance): Function removed.
c8d09ad8 7266 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
7267 Add new `err_msgs' and `named_merge_points' args. Return error
7268 status. Only print error messages if ERR_MSGS is true. Don't try to
7269 do :inherit attribute validation.
7270 (merge_face_heights): Handle `unspecified' in both directions.
7271 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
7272 Call `merge_face_ref' instead of `merge_face_inheritance'.
7273 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
7274 (compute_char_face, face_at_buffer_position)
7275 (face_at_string_position): Call `merge_face_ref' instead of
7276 `merge_face_vector_with_property'.
7277
12d5b185
KH
72782004-06-07 Kenichi Handa <handa@m17n.org>
7279
7280 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
7281 the necessary places.
7282
2e2d7ee6
KS
72832004-06-07 Kim F. Storm <storm@cua.dk>
7284
7285 * process.c (Fdelete_process): Undo 2004-05-28 change.
7286 Instead, call status_notify also for network process.
7287 (status_message): Use process instead of status as arg.
7288 Give messages "deleted" or "connection broken by remote peer" for
7289 an exited network process.
7290 (status_notify): Change call to status_message.
7291 (read_process_output): Increase readmax to 4096. Do not increase
7292 buffer size for datagram channels (default is now large enough).
7293
fcf0d299
ST
72942004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7295
7296 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
7297 problem due to newly defined variable.
7298
0722292b
MB
72992004-06-06 Miles Bader <miles@gnu.org>
7300
7301 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
7302 immediately if non-interactive or not initialized.
7303
ddfb8369
RS
73042004-06-05 Richard M. Stallman <rms@gnu.org>
7305
7306 * minibuf.c (Fcompleting_read): Doc fix.
7307
57015754
AS
73082004-06-05 Andreas Schwab <schwab@suse.de>
7309
7310 * macfns.c (x_create_tip_frame): Fix declaration after statement.
7311
23715ea6
JB
73122004-06-05 Juanma Barranquero <lektu@terra.es>
7313
7314 * keymap.c (Fdescribe_vector): Fix docstring.
7315 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
7316
8e330b22
MB
73172004-06-05 Miles Bader <miles@gnu.org>
7318
7319 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
7320 attributes have different values than the default face.
7321
9742a3a6
EZ
73222004-06-04 Eli Zaretskii <eliz@gnu.org>
7323
7324 * xfaces.c (x_supports_face_attributes_p): Make this function
7325 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
7326 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
7327 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 7328
9717e36c
MB
73292004-06-04 Miles Bader <miles@gnu.org>
7330
7331 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
7332 from Ftty_supports_face_attributes_p.
7333 (x_supports_face_attributes_p): New function.
7334 (Ftty_supports_face_attributes_p): Function deleted.
7335 (Fdisplay_supports_face_attributes_p): New function.
7336 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 7337 (face_attr_equal_p): New function.
9717e36c
MB
7338 (lface_equal_p): Use it.
7339
52deb19f
JB
73402004-06-03 Juanma Barranquero <lektu@terra.es>
7341
7342 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
7343 (Vw32_color_map): Fix typo in docstring.
7344 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
7345 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
7346 Make argument names match their use in docstring.
7347
86d373e6
JB
73482004-06-02 Juanma Barranquero <lektu@terra.es>
7349
7350 Work around bugs/problems with MinGW builds of graphics libraries
7351 called from MSVC builds of Emacs.
7352
7353 * image.c (lookup_image): Make pointer to img static.
7354 (png_read_from_memory): Disable "global" optimization.
7355
2fb0ce67
SM
73562004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7357
c8d09ad8
SM
7358 * eval.c (Fcondition_case): Fix usage. Simplify.
7359
2fb0ce67
SM
7360 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
7361
50bf7673
ST
73622004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7363
7364 * macfns.c: Don't include ccl.h.
7365 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
7366 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
7367 TextUtils.h.
c8d09ad8 7368 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
7369 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
7370 display height/width.
7371 (compute_tip_xy, Vx_max_tooltip_size): Declare.
7372 (unwind_create_tip_frame, compute_tip_xy): New functions.
7373 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
7374 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
7375 and last_show_tip_args.
2fb0ce67 7376
50bf7673
ST
7377 * macgui.h [!MAC_OSX]: Include Gestalt.h.
7378 (Cursor, No_Cursor): New defines.
c8d09ad8 7379 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
7380 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
7381
7382 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
7383
7384 * macterm.c: Don't include Gestalt.h.
7385 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
7386 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
7387 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
7388 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
7389 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
7390 (construct_mouse_click, XTmouse_position)
7391 (x_scroll_bar_report_motion, x_calc_absolute_position)
7392 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
7393 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
7394 (note_mouse_movement): Clear the mouse face and reset the pointer
7395 shape when the pointer goes outside the frame without grabbing.
7396 (mac_front_window): New function.
7397 (mac_window_to_frame): New macro.
7398 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
7399 (do_window_activate, do_window_deactivate, do_app_resume)
7400 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
7401 (do_zoom_window, mac_do_receive_drag, XTread_socket)
7402 (mac_check_for_quit_char): Use mac_front_window and/or
7403 mac_window_to_frame.
7404 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
7405 scroll-bar click event.
7406 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
7407 (x_free_frame_resources): Reset tip_window to NULL when it is
7408 disposed of.
50bf7673 7409 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 7410 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
7411 (do_window_update): Don't do anything if the updated window is the
7412 tooltip window.
7413 (do_mouse_moved): Handle mouse movement events here (previously in
7414 XTread_socket). Clear the mouse face if
7415 dpyinfo->mouse_face_hidden is set.
7416 (do_os_event, do_events): Remove (now in XTread_socket).
7417 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
7418 Loop until all the events in the queue are processed.
7419 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
7420 contents of do_os_event and do_events. Remove mouse movement
7421 handling (now in do_mouse_moved). Add the case where
7422 Vmouse_highlight has an integer value.
7423 (NewMacWindow): Remove.
7424 (make_mac_frame): Do what NewMacWindow previously did. Don't do
7425 excess initializations.
7426 (make_mac_terminal_frame): Previous initializations in
7427 make_mac_frame are moved here.
c8d09ad8
SM
7428 (mac_initialize_display_info):
7429 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
7430
7431 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
7432 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
7433
08fd1251
RS
74342004-05-29 Richard M. Stallman <rms@gnu.org>
7435
7436 * lisp.h (truncate_undo_list): Update decl.
7437
7438 * alloc.c (undo_outer_limit): New variable.
7439 (syms_of_alloc): Defvar it.
7440 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
7441
7442 * undo.c (truncate_undo_list): New arg LIMITSIZE.
7443
7444 * alloc.c (lisp_align_malloc): Check for base == 0
7445 regardless of HAVE_POSIX_MEMALIGN.
7446 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
7447
227ef0ff
SM
74482004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7449
7450 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
7451 (marker_blocks_pending_free): Remove.
7452 (Fgarbage_collect): Sweep after cleaning up undo-lists.
7453 Mark the undo lists after claning them up.
7454 Don't free block in marker_blocks_pending_free.
7455 (mark_buffer): Don't mark undo_list.
7456 (gc_sweep): Sweep hash-tables and strings first.
7457 Do free marker blocks that are empty.
7458
034a6113
SM
74592004-05-28 Jim Blandy <jimb@redhat.com>
7460
7461 * regex.c (print_partial_compiled_pattern): Add missing 'break'
7462 after 'case wordend'. For symbeg and symend, print to stderr,
7463 like the other cases.
7464
33594a8d
NF
74652004-05-28 Noah Friedman <friedman@splode.com>
7466
7467 * process.c (Fdelete_process): Do not call remove_process.
7468
ce50a847
SM
74692004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7470
7471 * alloc.c (struct backtrace): Remove.
7472 (Fgarbage_collect): Use the new mark_backtrace.
7473
7474 * eval.c (mark_backtrace): New function.
7475
7476 * minibuf.c (run_exit_minibuf_hook): New function.
7477 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
7478 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
7479
1e8dae36
KS
74802004-05-27 Kim F. Storm <storm@cua.dk>
7481
7482 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
7483 over display properties, e.g. images, that replace buffer text.
7484
846faa3b
KS
74852004-05-25 Kim F. Storm <storm@cua.dk>
7486
7487 * alloc.c (marker_blocks_pending_free): New var.
7488 (gc_sweep): Store free marker blocks on that list.
7489 (Fgarbage_collect): Free them after undo-list cleanup.
7490
7491 * process.c (wait_reading_process_input): Check connect_wait_mask
7492 before actually accepting connection in case it has already been
7493 accepted due to recursion.
7494
b6189c3b 74952004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 7496
ce50a847
SM
7497 * coding.c (Fset_safe_terminal_coding_system_internal):
7498 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 7499
71d5a208
RS
75002004-05-22 Richard M. Stallman <rms@gnu.org>
7501
7502 * alloc.c (Fmake_string): Doc fix.
7503
7504 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
7505 and the alist pairs too.
7506
7507 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
7508
51391fb9
RF
7509 * emacs.c (main): Update copyright year.
7510
71d5a208
RS
7511 * fileio.c (Fread_file_name): Expand DIR if not absolute.
7512
7513 * insdel.c (del_range_2, replace_range): Don't write an anchor
7514 if the gap is empty.
7515
7516 * xdisp.c (try_scrolling): If scroll-up-aggressively or
7517 scroll-down-aggressively is small but positive, put point
7518 near the screen edge.
7519
f63fd14e
JB
75202004-05-22 Juanma Barranquero <lektu@terra.es>
7521
7522 * keymap.c (Fdefine_key): Doc fix.
7523
4d12067c
KS
75242004-05-22 Kim F. Storm <storm@cua.dk>
7525
7526 * alloc.c (struct backtrace): Add debug_on_exit member.
7527 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
7528 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
7529 the removed cons cells.
7530 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
7531 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
7532 any cons cells pointing to unallocated stings.
7533 Do not lisp_free any marker blocks, as there may still be pointers
7534 to them from buffer undo lists at this stage of GC.
7535
7536 * keyboard.c (struct backtrace): Add debug_on_exit member.
7537 (Fcommand_execute): Clear it.
7538
931285e2
LT
75392004-05-20 Luc Teirlinck <teirllm@auburn.edu>
7540
7541 * intervals.c (lookup_char_property): Do not prematurely return nil.
7542
669fa600
SM
75432004-05-19 Jim Blandy <jimb@redhat.com>
7544
7545 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 7546 beginning and end of symbols.
4d12067c 7547
669fa600
SM
7548 * regex.c (enum syntaxcode): Add Ssymbol.
7549 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
7550 (re_opcode_t): New opcodes `symbeg' and `symend'.
7551 (print_partial_compiled_pattern): Print the new opcodes properly.
7552 (regex_compile): Parse the new operators.
ce50a847 7553 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
7554 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
7555 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
7556 (re_match_2_internal): Match symbeg and symend.
7557
7558 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
7559
0d8c2e5c
KS
75602004-05-19 Kim F. Storm <storm@cua.dk>
7561
7562 * .gdbinit (xsymbol): Fix last change.
7563
669fa600
SM
75642004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
7565
7566 * .gdbinit (xprintstr): New fun.
7567 (xstring, xprintsym): Use it.
7568
7569 * w32proc.c (create_child): Use INTMASK.
7570
7571 * alloc.c (Fgarbage_collect): Do all the marking before flushing
7572 unmarked elements of the undo list.
7573
9a6a4c40
DP
75742004-05-18 David Ponce <david@dponce.com>
7575
7576 * print.c (print): Reset print_depth before to call print_object.
7577
f3c4ec74
JR
75782004-05-18 Jason Rumney <jasonr@gnu.org>
7579
7580 * w32console.c: Prefix RIF functions with w32con_ to avoid
7581 namespace clash with functions in term.c and w32term.c.
7582
7583 * w32menu.c (add_menu_item, w32_menu_display_help)
7584 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
7585
0d8c2e5c 7586 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 7587
6be49c3a
EZ
75882004-05-18 Eli Zaretskii <eliz@gnu.org>
7589
4d0b9a0a
EZ
7590 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
7591
6be49c3a
EZ
7592 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
7593 with make_number.
7594 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
7595 with XINT.
7596
0bc90bba
KS
75972004-05-18 Kim F. Storm <storm@cua.dk>
7598
89d19988
KS
7599 * blockinput.h (INPUT_BLOCKED_P): New macros.
7600
7601 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
7602 (Ftop_level): Unblock input if blocked.
7603
0bc90bba
KS
7604 * buffer.h (GET_OVERLAYS_AT): New macro.
7605 * msdos.c (IT_note_mouse_highlight): Use it.
7606 * textprop.c (get_char_property_and_overlay): Use it.
7607 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
7608 * xfaces.c (face_at_buffer_position): Use it.
7609
7610 * print.c (print_object): Increase buf size.
7611
653bd0f6
JR
76122004-05-17 Jason Rumney <jasonr@gnu.org>
7613
7614 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
7615 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
7616 Lisp_Object using i member.
7617 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
7618 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
7619 consistently.
7620
7621 * w32proc.c (create_child): Use make_number instead of masking pid.
7622
7623 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
7624 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
7625 Use EQ to compare Lisp_Objects.
7626 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
7627
7628 * w32term.c (w32_num_mouse_buttons): Rename from
7629 Vw32_num_mouse_buttons and make it an int.
7630
7631 * w32.c (init_environment): Use it.
7632
7633 * w32fns.c (w32_wnd_proc): Likewise.
7634
7635 * w32proc.c (w32_pipe_read_delay): Rename from
7636 Vw32_pipe_read_delay and make it an int.
7637
7638 * w32.c (_sys_read_ahead): Use it.
7639
7640 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
7641
7642 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
7643
7644 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
7645 (key_event): Don't mix Lisp_Object and int.
7646
7647 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
7648
7649 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
7650 modifiers in language change event.
7651
54b53ba7
KS
76522004-05-17 Kim F. Storm <storm@cua.dk>
7653
7654 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
7655 Such objects may be freed markers which still exist on an undo list.
7656
6e86a75d
JB
76572004-05-16 Juanma Barranquero <lektu@terra.es>
7658
7659 * data.c (Fset_default): Make argument names match their use in
7660 docstring.
7661
fc80da24
AS
76622004-05-15 Andreas Schwab <schwab@suse.de>
7663
7664 * emacs.c (gdb_array_mark_flag): Define.
7665 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
7666
c1380aa6
EZ
76672004-05-15 Eli Zaretskii <eliz@gnu.org>
7668
7669 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
7670 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
7671 defined for the MS-DOS build.
7672
89458937
SM
76732004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7674
7675 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
7676
08020f9a
KH
76772004-05-14 Kenichi Handa <handa@m17n.org>
7678
7679 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
7680
a433994a
ST
76812004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7682
7683 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
7684 section to frame.c section.
7685 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 7686 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 7687
a433994a 7688 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 7689
a433994a 7690 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 7691
a433994a
ST
7692 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
7693 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
7694 (XTread_socket): Fix int/Lisp_Object mixup.
7695 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 7696
a433994a
ST
7697 * macterm.h (struct frame, struct face, struct image)
7698 (display_x_get_resource, Fx_display_color_p)
89458937
SM
7699 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
7700 Add prototypes.
a433994a 7701
b51a51b9
KS
77022004-05-14 Kim F. Storm <storm@cua.dk>
7703
7704 * process.c (wait_reading_process_input): Make reentrant.
7705 Make Available and Connecting non-static. Save and restore value
7706 of waiting_for_user_input_p.
7707
2bde1dd8
KS
77082004-05-13 Kim F. Storm <storm@cua.dk>
7709
7710 * keyboard.c (mark_kboards): Don't mark x and y members
7711 that are overloaded in selection request events.
7712
a267ab4d
SM
77132004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7714
7715 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
7716
eb15ce9e
GM
77172004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
7718
7719 * window.c (Fdisplay_buffer, Fsplit_window)
7720 (split-height-threshold): Doc fix.
7721
7fc92635
JB
77222004-05-13 Juanma Barranquero <lektu@terra.es>
7723
7724 * xfaces.c (Ftty_supports_face_attributes_p)
7725 (Finternal_copy_lisp_face): Fix typo in docstring.
7726 (Finternal_get_lisp_face_attribute): Fix docstring.
7727
1ec2a572
JD
77282004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7729
7730 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
7731
ae9292e0
ST
77322004-05-11 Steven Tamm <steventamm@mac.com>
7733
7734 * macfns.c (Fx_create_frame): Default to using tool-bar by
7735 setting tool-bar-lines to 1 in default-frame-alist.
7736
77372004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
7738
7739 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
7740 (xpm_get_color_table_v, xpm_make_color_table_h)
7741 (xpm_put_color_table_h, xpm_get_color_table_h)
7742 (xpm_str_to_color_key, xpm_load_image, xpm_load)
7743 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 7744 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 7745
fe97e8df
ST
77462004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7747
a267ab4d 7748 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
7749 instead of FRAME_X_P
7750
b47e779e
KS
77512004-05-11 Kim F. Storm <storm@cua.dk>
7752
7753 * process.c (read_process_output): Grow decoding_buf when needed;
7754 this could cause a crash in allocate_string and compact_small_strings.
7755
cdc9b845
EZ
77562004-04-29 Jim Blandy <jimb@redhat.com>
7757
7758 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
7759 against proper opcode.
7760
aa7094ba
JB
77612004-05-10 Juanma Barranquero <lektu@terra.es>
7762
7763 * process.c (Fstart_process): Fix docstring.
7764
7765 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
7766 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
7767 (Fsplit_char, Fchar_charset): Make argument names match their use
7768 in docstring.
7769
e109331a
RS
77702004-05-10 Richard M. Stallman <rms@gnu.org>
7771
7772 * print.c (print_preprocess): Use being_printed, loop_count and
7773 halftail to detect overdeep nesting and cyclic cdr chains.
7774
9a28b921
AS
77752004-05-10 Andreas Schwab <schwab@suse.de>
7776
78819ebb 7777 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
7778
7779 * fileio.c (Frename_file): Remove extra argument in call to
7780 Fmake_symbolic_link.
7781
e2c02c1a
KS
77822004-05-10 Kim F. Storm <storm@cua.dk>
7783
7784 * xdisp.c (calc_line_height_property): Use string position when
7785 object is a string.
7786
cfe9d13e
KH
77872004-05-10 Kenichi Handa <handa@m17n.org>
7788
a57e8159
KH
7789 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
7790 inhibit-modification-hooks to t temporarily before calling
7791 Ferase_buffer.
7792
7793 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
7794 inhibit-modification-hooks to t temporarily before calling
7795 Ferase_buffer.
7796
7797 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
7798 inhibit-modification-hooks to t temporarily before calling
7799 Ferase_buffer.
7800
cfe9d13e
KH
7801 * fns.c (count_combining): Delete it.
7802 (concat): Don't check combining bytes.
7803
ceb96489
JR
78042004-05-09 Jason Rumney <jasonr@gnu.org>
7805
7806 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
7807 (globals_of_w32fns): Set it.
7808
b6189c3b 78092004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
7810
7811 * data.c (Fquo): Simplify.
7812
28712a21
JB
78132004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
7814
7815 * data.c (Fquo): If any argument is float, do the computation in
7816 floating point.
7817
0f0af7a8
JB
78182004-05-08 Juanma Barranquero <lektu@terra.es>
7819
88214ef6
JB
7820 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
7821 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
7822 Fix spelling of Emacs on docstring.
7823 (Fset_process_coding_system, Fprocess_coding_system)
7824 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
7825 Make argument names match their use in docstring.
7826 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
7827 Fix docstring.
7828
0f0af7a8
JB
7829 * editfns.c (Finsert_buffer_substring): Make argument names match their
7830 use in docstring.
7831
7832 * syntax.c (Fmodify_syntax_entry): Fix docstring.
7833
2a316a84
ST
78342004-05-07 Steven Tamm <steventamm@mac.com>
7835
7836 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
7837 around call to ReceiveEvent to avoid certain crashes.
7838
78392004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 7840
2a316a84
ST
7841 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
7842 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
7843 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
7844 Save/restore the current graphics port and device handle when
7845 drawing into an offscreen graphics world.
7846
7847 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
7848 (gif_load): Likewise.
7849
ab80314b
JB
78502004-05-07 Juanma Barranquero <lektu@terra.es>
7851
7852 * window.c (Fset_window_buffer): Fix docstring.
7853
70646bb5
TTN
78542004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
7855
7856 * emacs.c (main) [VMS]: Fix var ref.
7857
b6189c3b 78582004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
7859
7860 * data.c (Fsetq_default): Fix docstring.
7861
279d3293
JR
78622004-05-06 Jason Rumney <jasonr@gnu.org>
7863
7864 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
7865 to avoid name clash.
7866
f72b5416
JD
78672004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7868
7869 * fileio.c (barf_or_query_if_file_exists): Use lstat.
7870 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 7871 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 7872
6ab66799
KS
78732004-05-04 Kim F. Storm <storm@cua.dk>
7874
7875 * xdisp.c (Qtotal): New var.
7876 (syms_of_xdisp): Intern and staticpro it.
7877 (calc_line_height_property): New arg total. Set it if
7878 line-spacing property has format (total . VALUE).
7879 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
7880 Handle total line-spacing property.
7881
ab2d724b
JD
78822004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7883
7884 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
7885 "under" scroll bar when size/position changes.
7886
238add5e
JR
78872004-05-03 Jason Rumney <jasonr@gnu.org>
7888
7889 * makefile.nt: Remove.
7890
1644f4e4
EZ
78912004-05-02 Eli Zaretskii <eliz@gnu.org>
7892
a267ab4d
SM
7893 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
7894 Avoid compiler warnings.
05fdbeb8 7895
1644f4e4
EZ
7896 * Makefile.in (region-cache.o): Depend on config.h.
7897
b6189c3b 78982004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
7899
7900 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
7901 with continuation lines, too.
7902
2b98b088
TTN
79032004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
7904
7905 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
7906
d9bf7950
SM
79072004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
7908
7909 * xdisp.c (calc_line_height_property): YAILOM (yet another
7910 int/Lisp_Object mixup).
7911
affa509c
EZ
79122004-05-01 Eli Zaretskii <eliz@gnu.org>
7913
7914 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
7915 undo bad effect of pack(4) in some versions of system headers.
7916
07c07cfe
JR
79172004-05-01 Jason Rumney <jasonr@gnu.org>
7918
7919 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
7920
e71caa4e
KS
79212004-04-30 Kim F. Storm <storm@cua.dk>
7922
7923 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 7924 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
7925
7926 * dispextern.h (struct it): Remove member use_default_face.
7927 Add members override_ascent, override_descent, override_boff.
7928
7929 * xdisp.c (init_iterator): Handle line-spacing float value.
7930 Initialize override_ascent member.
7931 (append_space_for_newline): Reset override_ascent.
7932 Remove use_default_face.
7933 (calc_line_height_property): New function to calculate value of
7934 line-height and line-spacing properties. Look at overlays, too.
7935 Set override_ascent, override_descent, override_boff members when
7936 using another face than the current face. Float values are now
7937 relative to the frame default font, by default; accept a cons
7938 of ratio and face name to specify value relative to a specific face.
7939 (x_produce_glyphs): Use calc_line_height_property.
7940 Use override_ascent etc. when set to handle different face heights.
7941 A negative line-spacing property value is interpreted as a total
7942 line height, rather than inter-line spacing.
7943 (note_mouse_highlight): Allocate room for 40 overlays initially.
7944
0fddae66
SM
79452004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7946
7947 * data.c (Fsubr_name): New fun.
7948 (syms_of_data): Defsubr it.
7949
712d23dc
KS
79502004-04-29 Kim F. Storm <storm@cua.dk>
7951
7952 * xdisp.c (null_glyph_slice): New var.
7953 (append_glyph, append_composite_glyph, append_stretch_glyph):
7954 Use it to initialize glyph slice.
7955
033ad8c6
SM
79562004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
7957
7958 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
7959 (on_hot_spot_p): Make sure we always return a value.
7960 (Flookup_image_map): Remove unused var ix and iy.
7961 (note_mode_line_or_margin_highlight): Remove unused var `image'.
7962
93397360
EZ
79632004-04-27 Eli Zaretskii <eliz@gnu.org>
7964
7965 * msdos.c (init_environment): If one of the TMP... environment
7966 variables is set to a drive letter without a trailing slash,
7967 append a slash.
7968
0c54865e
EZ
79692004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
7970
7971 * editfns.c (lisp_time_argument): Provide externally.
7972
7973 * fileio.c (Fset_file_times): New function.
7974 (syms_of_fileio): Intern and staticpro it.
7975
d3b111bd
KS
79762004-04-27 Kim F. Storm <storm@cua.dk>
7977
07dc1231
KS
7978 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
7979 header line strings.
7980
360fe9d2
KS
7981 * dispextern.h (struct it): New member use_default_face.
7982
d3b111bd
KS
7983 * xdisp.c (Qline_height): New variable.
7984 (syms_of_xdisp): Intern and staticpro it.
7985 (append_space_for_newline): Partially undo 2004-04-25 change;
7986 add default_face_p arg, and restore callers.
7987 Clear it->use_default_face after use.
7988 (x_produce_glyphs): Set default font for ascii char if
7989 it->use_default_font is set. Change line-spacing property to set
7990 just extra line spacing. Handle new line-height property.
7991
0448588b
AS
79922004-04-26 Andreas Schwab <schwab@suse.de>
7993
7994 * print.c (print_object): Print non-ascii characters in bool
7995 vector representation as octal escapes.
7996
7997 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
7998 * print.c (print_object): Use it instead of BITS_PER_CHAR for
7999 bool vectors.
8000 * lread.c (read1): Likewise.
8001 * alloc.c (Fmake_bool_vector): Likewise.
8002 * data.c (Faref, Faset): Likewise.
8003 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
8004 (mapcar1): Likewise.
d3b111bd 8005
536d6baa
ST
80062004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8007
7e26f91b 8008 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 8009
ae11577a
MB
80102004-04-26 Miles Bader <miles@gnu.org>
8011
8012 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
8013
e198ba87
JB
80142004-04-26 Juanma Barranquero <lektu@terra.es>
8015
8016 * buffer.c (Fpop_to_buffer): Fix docstring.
8017
f3d5f92d 80182004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 8019
f3d5f92d
ST
8020 * lread.c (init_lread): Don't display missing lisp directory
8021 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 8022 may be built without correct installation path.
f3d5f92d 8023
03e35edc
KS
80242004-04-25 Kim F. Storm <storm@cua.dk>
8025
9ff3aa31
KS
8026 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8027
8028 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8029
03e35edc
KS
8030 * xdisp.c (append_space_for_newline): Rename from append_space.
8031 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
8032 (x_produce_glyphs): Handle line-spacing property on newline char.
8033 If value is t, adjust ascent and descent to fit current row height.
8034 If value is an integer or float, set extra_line_spacing to integer
8035 value, or to float value x current line height.
8036
f24814e0
KH
80372004-04-23 Kenichi Handa <handa@m17n.org>
8038
8039 * fontset.c (Finternal_char_font): If POSITION is nil, return
8040 font for displaying CH with the default face.
8041
d814862a
JB
80422004-04-23 Juanma Barranquero <lektu@terra.es>
8043
8044 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
8045
063a45c5
SM
80462004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8047
8048 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
8049 Don't make assumptions about the relative place of i and val.
8050 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
8051
ae7ab2d3
KS
80522004-04-21 Kim F. Storm <storm@cua.dk>
8053
8054 * dispextern.h (struct glyph_slice): New struct.
8055 (struct glyph): New member slice.
8056 (GLYPH_SLICE_EQUAL_P): New macro.
8057 (GLYPH_EQUAL_P): Use it.
8058 (struct glyph_string): New member slice.
8059 (struct it_slice): New struct.
8060 (struct it): New member slice, add member to stack too.
8061 New member constrain_row_ascent_descent_p.
8062 (image_ascent): Add prototype.
8063
8064 * dispnew.c (buffer_posn_from_coords): Return full image width
8065 and height even for image slices (posn is relative to full image).
8066 (marginal_area_string): Adjust x0,y0 for image slice.
8067
8068 * image.c (image_ascent): Add slice arg; calculate ascent for
8069 image slice (or full image).
8070
8071 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
8072 (syms_of_keyboard): Defsubr them.
8073
8074 * lisp.h (pos_visible_p): Fix prototype.
8075
c62aec78 8076 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
8077 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8078 (x_draw_image_foreground, x_draw_image_relief)
8079 (x_draw_image_foreground_1, x_draw_image_glyph_string):
8080 Draw sliced images.
8081
8082 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
8083 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8084 (x_draw_image_foreground, x_draw_image_relief)
8085 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
8086 Draw sliced images.
8087
8088 * w32term.h (image_ascent): Remove prototype.
8089
8090 * window.c (Fpos_visible_in_window_p): Return pixel position if
8091 PARTIALLY arg is non-nil. Simplify. Doc fix.
8092 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
8093 to return/set vscroll in pixels.
8094
8095 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
8096
8097 * xdisp.c (Qslice): New variable.
8098 (syms_of_xdisp): Intern and staticpro it.
8099 (pos_visible_p): Return pixel position in new x and y args.
8100 (init_iterator): Reset it->slice info.
8101 (handle_display_prop): Parse (slice ...) property.
8102 (push_it, pop_it): Save/restore slice info.
8103 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
8104 force repositioning of tall row if window is vscrolled, as that
8105 would reset vscroll.
8106 (append_space): Set it->constrain_row_ascent_descent_p to avoid
8107 increasing row height if row is non-empty.
8108 (fill_image_glyph_string): Copy slice info.
8109 (take_vertical_position_into_account): Simplify.
8110 (produce_image_glyph): Handle iterator slice info, setup glyph
8111 slice info. Do not force minimum line height.
8112 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
8113 do not increase height (ascent/descent) of non-empty row when
8114 adding normal character glyph; instead reduce glyph ascent/descent
8115 appropriately; if row is higher than current glyph, adjust glyph
8116 descent/ascent to reposition glyph within the existing row.
8117 Likewise, when char is newline, only set ascent/descent if row is
8118 currently empty.
8119 (note_mouse_highlight): Handle hotspots with sliced image.
8120
8121 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
8122 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8123 (x_draw_image_foreground, x_draw_image_relief)
8124 (x_draw_image_foreground_1, x_draw_image_glyph_string):
8125 Draw sliced images.
8126
8127 * xterm.h (image_ascent): Remove prototype.
8128
d58f8753
SM
81292004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8130
8131 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
8132
4ce2719d
JPW
81332004-04-20 John Paul Wallington <jpw@gnu.org>
8134
8135 * fns.c (Fassoc, Feql): Fix indentation.
8136
d58f8753 8137 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 8138
95f8c3b9
JPW
81392004-04-19 John Paul Wallington <jpw@gnu.org>
8140
8141 * fns.c (Feql): New function.
d58f8753 8142 (syms_of_fns): Defsubr it.
95f8c3b9 8143
b7e85537
JR
81442004-04-18 Jason Rumney <jasonr@gnu.org>
8145
8146 * w32select.c (Fw32_set_clipboard_data): Get sequence number
8147 after closing the clipboard.
8148
5a72efd4
LT
81492004-04-16 Luc Teirlinck <teirllm@auburn.edu>
8150
8151 * buffer.c (Fbuffer_base_buffer): Doc fix.
8152
20dc8583
KS
81532004-04-17 Kim F. Storm <storm@cua.dk>
8154
60962ec4
KS
8155 * keymap.c (Fkey_description): Add optional PREFIX arg.
8156 Combine prefix with KEYS to make up the full key sequence to describe.
8157 Correlate meta_prefix_char and following (simple) key to describe
8158 as meta modifier. All callers changed.
8159 (describe_map): Rename arg `keys' to `prefix'. Remove local
8160 `elt_prefix' var. Use Fkey_description with prefix instead of
8161 elt_prefix combined with Fsingle_key_description.
8162 (describe_vector): Declare static. Replace arg `elt_prefix' with
8163 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 8164 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
8165 Fsingle_key_description.
8166
8167 * keymap.h (Fkey_description): Fix prototype.
8168 (describe_vector): Remove prototype.
8169
409368b9
KS
8170 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
8171
20dc8583
KS
8172 * image.c (PNG_BG_COLOR_SHIFT): Remove.
8173 (png_load): Fix calculation of transparent background color on X
8174 and W32 platforms.
8175
75c5501b
JB
81762004-04-16 Juanma Barranquero <lektu@terra.es>
8177
8178 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
8179 not too large before computing how much to scroll.
8180
da879ae8
SM
81812004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
8182
8183 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
8184
d01ca4a8
LT
81852004-04-14 Luc Teirlinck <teirllm@auburn.edu>
8186
8187 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
8188 Add hyperlink to Elisp manual to the docstring.
8189
572943b3
SM
81902004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
8191
8192 * callint.c (fix_command): Use XDCR.
8193
5e30a0fb
NR
81942004-04-14 Nick Roberts <nick@nick.uklinux.net>
8195
8196 * window.c (Fget_lru_window): Doc fix.
8197
a27ddfaf
KS
81982004-04-14 Kim F. Storm <storm@cua.dk>
8199
8200 * editfns.c (Fformat): Fix allocation size of precision array.
8201
8202 * dispnew.c (update_window): Only set changed_p if
8203 scrolling_window actually did scroll.
8204 (scrolling_window): Only return 1 if we actually did scroll.
8205
8206 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
8207 height to glyph height when cursor row is not fully visible.
8208 (make_cursor_line_fully_visible): Add FORCE_P arg to return
8209 failure in case row is higher than window. Callers changed.
8210 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
8211 Try to scroll partially visible, higher-than-window cursor row.
8212 (redisplay_window): Always try to scroll partially visible,
8213 higher-than-window cursor row - both initially and again with
8214 centering_position = 0.
8215 Clear desired matrix before retrying with centering_position = 0.
8216
da879ae8
SM
82172004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8218
8219 * syntax.c (scan_lists): Simplify backward string scan.
8220 Fix off-by-one boundary check for string and comment fences.
8221
5fc16e8e
SM
82222004-04-13 Joe Buehler <jbuehler@hekimian.com>
8223
8224 * sheap.c, unexcw.c: New files.
8225
c9aac8e6
LT
82262004-04-12 Luc Teirlinck <teirllm@auburn.edu>
8227
8228 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
8229 base buffer has been killed. Correct the error message if the
8230 base buffer does not exist.
8231
1e88a355
SM
82322004-04-12 Joe Buehler <jbuehler@hekimian.com>
8233
8234 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
8235 Cygwin itself. Add support for Xaw3d scrollbars.
8236
8237 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
8238
8239 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
8240
8241 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
8242 before Cygwin unexec.
8243
8244 * Makefile.in: Link changes for Cygwin unexec() support.
8245
8dbff9a0
AS
82462004-04-12 Andreas Schwab <schwab@suse.de>
8247
8248 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
8249
54dffe35
LT
82502004-04-11 Luc Teirlinck <teirllm@auburn.edu>
8251
8252 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
8253 IGNORE argument equals NAME. Doc fix.
8254
99a72bdf
MY
82552004-04-11 Masatake YAMATO <jet@gyve.org>
8256
1e88a355 8257 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
8258 empty if they are backwards.
8259
40899d7b
SM
82602004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8261
8262 * xfaces.c (face_color_supported_p): Fix compilation without X11.
8263
f8f853de
SM
82642004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
8265
8266 * doc.c (Fsnarf_documentation): Ignore new file name entries.
8267
c953fe1b
KS
82682004-04-06 Kim F. Storm <storm@cua.dk>
8269
661e85c1
KS
8270 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8271 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
8272
8273 * w32term.c (w32_read_socket): Set mouse_face_hidden after
8274 clearing highlight.
8275
8276 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8277
8278 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
8279 clearing highlight.
8280
c953fe1b
KS
8281 * indent.c (vmotion): Do not reserve one column for continuation
8282 marks on window frames.
8283
c1994268
EZ
82842004-04-04 Eli Zaretskii <eliz@gnu.org>
8285
8286 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
8287 from GCC.
8288
9f691b0d
SM
82892004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8290
8291 * .gdbinit-union: Remove.
8292
8293 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
8294 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
8295 ($nonvalbits): Remove.
8296 ($valmask): Set it by calling xreload to avoid redundancy.
8297
8298 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
8299 (gdb_emacs_intbits): Remove.
8300
7a8560d7
JD
83012004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8302
9f691b0d 8303 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 8304
3c8111fc
KH
83052004-03-30 Kenichi Handa <handa@m17n.org>
8306
8307 * editfns.c (Fformat): Fix initialization of the array info.
8308
48a0bce4
KS
83092004-03-30 Kim F. Storm <storm@cua.dk>
8310
8311 * xterm.c (x_mouse_click_focus_ignore_position): New var.
8312 (syms_of_xterm): DEFVAR_BOOL it.
8313 (ignore_next_mouse_click_timeout): New var.
8314 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
8315 Use it to filter mouse clicks following focus event.
8316
1cd0066c
KS
83172004-03-29 David Ponce <david@dponce.com>
8318
8319 * callint.c (Fcall_interactively): Fix last change.
8320
adb3b353
SM
83212004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8322
8323 * eval.c (Fcommandp): Simplify.
8324
8325 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
8326 Extend to handle all kinds of functions.
8327
8328 * lisp.h (Finteractive_form): Declare.
8329
8330 * callint.c (Fcall_interactively): Use it.
8331
6fc4c9c9
KS
83322004-03-26 Kim F. Storm <storm@cua.dk>
8333
8334 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
8335 to catch errors in calc_pixel_width_or_height during redisplay.
8336
abdb9b83
MY
83372004-03-26 Masatake YAMATO <jet@gyve.org>
8338
b17856dd 8339 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 8340
b17856dd 8341 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 8342
b17856dd 8343 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 8344
b17856dd 8345 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 8346
e8a84b6c
JD
83472004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8348
b17856dd 8349 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 8350
36a3fd05
RS
83512004-03-19 Richard M. Stallman <rms@gnu.org>
8352
8353 * s/sol2-6.h: Delete previous change.
8354
ab24c127
KS
83552004-03-19 Kim F. Storm <storm@cua.dk>
8356
8357 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
8358 to_charpos corresponds to newline in right fringe. Use local
8359 BUFFER_POS_REACHED_P macro.
8360
992126de
JD
83612004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8362
8363 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
8364 to compile on non-window system.
8365
45dbfc84
KS
83662004-03-19 Kim F. Storm <storm@cua.dk>
8367
8368 * dispextern.h (calc_pixel_width_or_height): Add prototype.
8369
8370 * image.c (Qcenter): Move to xdisp.c.
8371
8372 * xdisp.c (Qcenter): Declare here.
adb3b353 8373 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
8374 (handle_single_display_prop): Allow space display property on all
8375 platforms.
8376 (display_mode_line): Set mode_line_p before displaying line.
8377 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
8378 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 8379 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
8380 width/height. Return width or height for image specs.
8381 (produce_stretch_glyph): Improve handling of :align-to. Is now
8382 relative to left of text area by default, but other base offsets
8383 can be specified -- also for text lines.
8384
8385 * term.c (produce_glyphs): Handle IT_STRETCH.
8386 (produce_stretch_glyph): New function to handle space width and
8387 align-to display properties on non-window systems.
8388
37264101
SM
83892004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8390
8391 * fileio.c (Fread_file_name): Set completion-ignore-case for
8392 case-insensitive systems.
8393
73bc43da
MY
83942004-03-14 Masatake YAMATO <jet@gyve.org>
8395
8396 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
8397 when keymap and cursor are setup.
8398
d5fb8dab 83992004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 8400
b17856dd 8401 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 8402
e4b1b5ab
KS
84032004-03-14 Kim F. Storm <storm@cua.dk>
8404
8405 * dispextern.h (x_find_image_file): Add prototype.
8406
8407 * image.c (x_find_image_file): Make extern.
8408
8409 * xfns.c (x_find_image_file): Remove prototype.
8410
a6eeaa81 84112004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 8412
37264101 8413 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 8414
37264101 8415 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 8416
e69cfac2
RS
84172004-03-12 Richard M. Stallman <rms@gnu.org>
8418
8419 * fns.c (internal_equal): New arg PROPS controls comparing
8420 text properties. All callers changed.
8421 (Fequal_including_properties): New function.
8422 (syms_of_fns): defsubr it.
8423
45034953
KS
84242004-03-12 Kim F. Storm <storm@cua.dk>
8425
8426 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 8427
45034953
KS
8428 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
8429 (image_background, image_background_transparent): Fix prototypes.
8430
37264101 8431 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
8432
8433 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
8434 (x_query_font, x_find_ccl_program, x_set_window_size)
8435 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8436 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8437 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
8438
8439 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
8440 (x_query_font, x_find_ccl_program, x_set_window_size)
8441 (x_make_frame_visible, mac_initialize, XCreatePixmap)
8442 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
8443 (mac_draw_line_to_pixmap): Add prototypes.
8444
84452004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8446
8447 * macterm.c (XTread_socket): Fix mouse click on tool bar.
8448
a12d3d87
KS
84492004-03-11 Kim F. Storm <storm@cua.dk>
8450
d3ab1cf1
KS
8451 * dispextern.h: Move image related prototypes from xfns.c section
8452 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
8453 HAVE_X_WINDOWS.
37264101 8454
37de9f51 8455 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 8456 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
8457 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
8458 (GTK_OBJ) [USE_GTK]: New declaration.
8459 (obj): Add $(GTK_OBJ) to list.
8460
d5fb8dab 84612004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 8462
7e26f91b 8463 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
8464
8465 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 8466 defined in image.c.
5243c06a 8467
c0f97789
KS
84682004-03-11 Kim F. Storm <storm@cua.dk>
8469
8470 The following changes consolidates the identical/similar image
8471 support code previously found in xfns.c, w32fns.c, and macfns.c
8472 into a new file image.c.
8473
8474 * makefile.w32-in (OBJ1): Add image.o.
8475 ($(BLD)/image.$(O)): Add dependencies.
8476
8477 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
8478 (image.o): Add dependencies.
37264101 8479
c0f97789
KS
8480 * image.c: New file with consolidated image support code.
8481 (COLOR_TABLE_SUPPORT): New define to control whether
8482 color table support is available (X only).
8483 (Bitmap_Record): Common name for x_bitmap_record,
8484 w32_bitmap_record, and mac_bitmap_record.
8485 (XImagePtr): Common name for pointer to XImage or equivalent.
8486 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
8487 to XImagePtr on X+MAC, and to HDC on W32.
8488 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
8489 (NO_PIXMAP): Common name for "None" or equivalent.
8490 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
8491 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
8492 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
8493 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
8494 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
8495 (XDrawLine): Define on MAC for code sharing.
8496 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
8497 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
8498 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8499 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8500 (x_reference_bitmap, x_create_bitmap_from_data)
8501 (x_create_bitmap_from_file, x_destroy_bitmap)
8502 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8503 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8504 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8505 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8506 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8507 (define_image_type, lookup_image_type, valid_image_p)
8508 (image_error, enum image_value_type, struct image_keyword)
8509 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8510 (make_image, free_image, prepare_image_for_display, image_ascent)
8511 (four_corners_best, image_background, image_background_transparent)
8512 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8513 (make_image_cache, free_image_cache, clear_image_cache)
8514 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8515 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8516 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8517 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8518 (init_image_func_pointer, image_load_quartz2d)
8519 (struct ct_color, init_color_table, free_color_table)
8520 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8521 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8522 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8523 (x_disable_image, x_build_heuristic_mask)
8524 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8525 (TIFF support, GIF support, Ghostscript support): Consolidate image
8526 code from xfns.c, w32fns.c, and macfns.c.
8527 (syms_of_image): Consolidate image related symbol setup here.
8528 (init_image): Consolidate image related initializations here.
37264101 8529
c0f97789
KS
8530 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
8531 and init_image. Remove call to init_xfns.
8532
37264101
SM
8533 * macterm.h (struct mac_bitmap_record): Add file member.
8534 Not currently used, but simplifies code sharing.
c0f97789
KS
8535
8536 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8537 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8538 (x_reference_bitmap, x_create_bitmap_from_data)
8539 (x_create_bitmap_from_file, x_destroy_bitmap)
8540 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8541 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8542 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8543 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8544 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8545 (define_image_type, lookup_image_type, valid_image_p)
8546 (image_error, enum image_value_type, struct image_keyword)
8547 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8548 (make_image, free_image, prepare_image_for_display, image_ascent)
8549 (four_corners_best, image_background, image_background_transparent)
8550 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8551 (make_image_cache, free_image_cache, clear_image_cache)
8552 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8553 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8554 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8555 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
8556 (init_image_func_pointer, image_load_quartz2d)
8557 (struct ct_color, init_color_table, free_color_table)
8558 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8559 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8560 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8561 (x_disable_image, x_build_heuristic_mask)
8562 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8563 (TIFF support, GIF support, Ghostscript support): Merge with image
8564 code from xfns.c and macfns.c into image.c.
8565 (syms_of_xfns): Move image related symbols to image.c.
8566 (init_external_image_libraries, init_xfns): Remove; initialization
8567 moved to init_image in image.c.
8568
8569 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8570 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8571 (x_reference_bitmap, x_create_bitmap_from_data)
8572 (x_create_bitmap_from_file, x_destroy_bitmap)
8573 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8574 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8575 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8576 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8577 (define_image_type, lookup_image_type, valid_image_p)
8578 (image_error, enum image_value_type, struct image_keyword)
8579 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8580 (make_image, free_image, prepare_image_for_display, image_ascent)
8581 (four_corners_best, image_background, image_background_transparent)
8582 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8583 (make_image_cache, free_image_cache, clear_image_cache)
8584 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8585 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8586 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8587 (struct ct_color, init_color_table, free_color_table)
8588 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8589 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8590 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8591 (x_disable_image, x_build_heuristic_mask)
8592 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8593 (TIFF support, GIF support, Ghostscript support): Merge with image
8594 code from xfns.c and macfns.c into image.c.
8595 (syms_of_xfns): Move image related symbols to image.c.
8596 (init_external_image_libraries, init_xfns): Remove; initialization
8597 moved to init_image in image.c.
8598
8599 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
8600 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8601 (x_reference_bitmap, x_create_bitmap_from_data)
8602 (x_create_bitmap_from_file, x_destroy_bitmap)
8603 (x_destroy_all_bitmaps, x_create_bitmap_mask)
8604 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
8605 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
8606 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
8607 (define_image_type, lookup_image_type, valid_image_p)
8608 (image_error, enum image_value_type, struct image_keyword)
8609 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
8610 (make_image, free_image, prepare_image_for_display, image_ascent)
8611 (four_corners_best, image_background, image_background_transparent)
8612 (x_clear_image_1, x_clear_image, x_alloc_image_color)
8613 (make_image_cache, free_image_cache, clear_image_cache)
8614 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
8615 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
8616 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
8617 (struct ct_color, init_color_table, free_color_table)
8618 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
8619 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
8620 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
8621 (x_disable_image, x_build_heuristic_mask)
8622 (XBM support, XPM support, PBM support, PNG support, JPEG support)
8623 (TIFF support, GIF support, Ghostscript support): Merge with
8624 w32fns.c and macfns.c image code into image.c.
8625 (syms_of_xfns): Move image related symbols to image.c.
8626 (init_xfns): Remove; initialization moved to init_image in image.c.
8627
8628 * lisp.h (syms_of_image, init_image): Add protoypes.
8629 (init_xfns): Remove prototype.
8630
8631 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8632 (x_reference_bitmap, x_create_bitmap_from_data)
8633 (x_create_bitmap_from_file, x_destroy_bitmap)
8634 (x_create_bitmap_mask): Move prototypes from dispextern.h.
8635 (gamma_correct) [MAC_OS]: Add prototype.
8636
8637 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
8638 (x_reference_bitmap, x_create_bitmap_from_data)
8639 (x_create_bitmap_from_file, x_destroy_bitmap)
8640 (x_create_bitmap_mask): Move prototypes to dispextern.h.
8641
6eced09c
KH
86422004-03-09 Kenichi Handa <handa@etlken2>
8643
8644 * coding.c (decode_coding_emacs_mule): Handle insufficent source
8645 correctly.
8646
9a7e95f3
RS
86472004-03-04 Richard M. Stallman <rms@gnu.org>
8648
04a6e76b
RS
8649 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
8650
9a7e95f3
RS
8651 * window.c (Fdisplay_buffer): Doc fix.
8652
8653 * buffer.c (Fpop_to_buffer): Doc fix.
8654
6c2488df
KS
86552004-03-03 Kim F. Storm <storm@cua.dk>
8656
8657 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
8658
d8d95bc7
SM
86592004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
8660
8661 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
8662
357589bf
RS
86632004-03-02 Richard M. Stallman <rms@gnu.org>
8664
8665 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
8666
409949b5
KH
86672004-03-02 Kenichi Handa <handa@m17n.org>
8668
8669 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
8670
d24bc50f
KS
86712004-03-02 Kim F. Storm <storm@cua.dk>
8672
8673 * window.h (struct window): New member overlay_arrow_bitmap.
8674
8675 * window.c (make_window): Initialize overlay_arrow_bitmap.
8676
8677 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
8678 implement and integrate multiple overlay arrows with redisplay.
8679 (syms_of_xdisp): DEFVAR_LISP and initialize it.
8680 (last_arrow_position, last_arrow_string): Replace by properties.
8681 (Qlast_arrow_position, Qlast_arrow_string)
8682 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
8683 (syms_of_xdisp): Intern and staticpro them.
8684 (overlay_arrow_string_or_property, update_overlay_arrows)
8685 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
8686 (overlay_arrow_at_row): New functions for multiple overlay arrows.
8687 (redisplay_internal): Use them instead of directly accessing
8688 Voverlay_arrow_position etc. for multiple overlay arrows.
8689 (mark_window_display_accurate): Use update_overlay_arrows.
8690 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
8691 (try_window_id): Use overlay_arrows_changed_p.
8692 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
8693 (display_line): Use overlay_arrow_at_row to check multiple
8694 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 8695 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
8696 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
8697 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
8698
8699 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
8700 (update_window_fringes): Remove unused code.
8701
c1464661
JR
87022004-03-01 Jason Rumney <jasonr@gnu.org>
8703
8704 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
8705
a64387ee
JB
87062004-03-01 Juanma Barranquero <lektu@terra.es>
8707
8708 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
8709
8710 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
8711
334faa08
JD
87122004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8713
8714 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
8715 how many colors can be displayed.
8716
bb62616f
KH
87172004-03-01 Kenichi Handa <handa@m17n.org>
8718
8719 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
8720 correctly.
8721
0fd16104
KS
87222004-02-28 Kim F. Storm <storm@cua.dk>
8723
8724 * dispnew.c (update_window): Update header line also if there are
8725 no other changes in window (move code after set_cursor label).
8726
8727 * lisp.h (mark_window_display_accurate): Remove prototype.
8728
8729 * window.c (window_loop, Fforce_window_update): Force mode line
8730 updates by setting prevent_redisplay_optimizations_p and
8731 update_mode_lines.
8732
b59dd9c8
JD
87332004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8734
d8d95bc7 8735 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
8736
8737 * xterm.c (x_calc_absolute_position): Call x_real_positions
8738 to get WM window sizes and use those to calculate position.
d8d95bc7 8739 (x_set_offset): Remove code commented out.
b59dd9c8 8740
a874691c
MB
87412004-02-28 Miles Bader <miles@gnu.org>
8742
8743 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
8744
3e0c6482
KS
87452004-02-28 Kim F. Storm <storm@cua.dk>
8746
8747 * keyboard.c (kbd_buffer_store_event_hold): New function to store
8748 an event into kbd fifo, but with special handling of quit event;
8749 a quit event is saved for later, and further events are discarded
8750 until the saved quit event has been processed.
8751 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
8752 (gen_help_event): Store help event in kbd fifo.
8753 (NREAD_INPUT_EVENTS): Remove.
8754 (read_avail_input): Adapt to new read_socket_hook interface.
8755 Remove allocation and initialization of local input_event buffer,
8756 as read_socket_hook stores events directly in fifo. Allocate and
8757 initialize local hold_quit event to handle postponed quit event
8758 (and store it if set by kbd_buffer_store_event_hold).
8759
8760 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
8761 (gen_help_event): Fix prototype.
8762
a64387ee 8763 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 8764 numcharsp args. Add hold_quit arg.
f63fd14e 8765 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8766 directly in fifo using kbd_buffer_store_event_hold.
8767
8768 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
8769 (read_input_waiting): Adapt to new read_socket_hook interface.
8770 Remove allocation and initialization of local input_event buffer,
8771 as read_socket_hook stores events directly in fifo. Allocate and
8772 initialize local hold_quit event to handle postponed quit event
8773 (and store it if set by kbd_buffer_store_event_hold).
8774
a64387ee 8775 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
8776
8777 * termhooks.h (read_socket_hook): Fix prototype.
8778
8779 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
8780 numcharsp args. Add hold_quit arg.
f63fd14e 8781 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
8782 directly in fifo using kbd_buffer_store_event_hold.
8783
8784 * w32inevt.h (w32_console_mouse_position): Fix prototype.
8785
8786 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
8787 Add hold_quit arg. Rework to use just one, local, inev
8788 input_event. Store inev directly in fifo using
3e0c6482
KS
8789 kbd_buffer_store_event_hold. Update count in one place.
8790 Postpone call to gen_help_event until inev is stored; use new
8791 local do_help for this.
8792 Remove local emacs_event in handing of ButtonPress event; just use
8793 inev instead (so no reason to copy it later).
8794
8795 * xsmfns.c (x_session_check_input): Remove numchars arg.
8796
d8d95bc7
SM
8797 * xterm.c (x_focus_changed, x_detect_focus_change):
8798 Remove numchars arg. Always store event into bufp arg.
8799 Return nothing. Callers changed accordingly.
3e0c6482
KS
8800 (glyph_rect): Simplify.
8801 (STORE_KEYSYM_FOR_DEBUG): New macro.
8802 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
8803 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
8804 (current_hold_quit) [USE_GTK]: Add.
8805 (event_handler_gdk): Adapt to new handle_one_xevent.
8806 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
8807 Add hold_quit arg. Rework to use just one, local, inev
8808 input_event. Store inev directly in fifo using
3e0c6482
KS
8809 kbd_buffer_store_event_hold. Update count in one place.
8810 Postpone call to gen_help_event until inev is stored; use new
8811 local do_help for this.
8812 Simplify handling of keysyms (consolidate common code). Fix bug
8813 where count was updated with nchars instead of nbytes.
8814 Remove local emacs_event in handing of ButtonPress event; just use
8815 inev instead (so no reason to copy it later).
8816 Remove `out' label. Rename label `ret' to `done'; add various
8817 `goto done' to clarify code flow in deeply nested blocks.
8818 (x_dispatch_event): Simplify as handle_one_xevent now calls
8819 kbd_buffer_store_event itself.
f63fd14e 8820 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
8821 arg. Call handle_one_xevent with new arglist. Store event from
8822 x_session_check_input in fifo.
8823 [USE_GTK]: Setup current_hold_quit.
8824 Decrement handling_signal before unblocking input.
8825 (x_initialize) [USE_GTK]: Initialize current_count.
8826
8827 * xterm.h (x_session_check_input): Fix prototype.
8828
e3564461 88292004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 8830
d8d95bc7 8831 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 8832
e3564461
ST
8833 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
8834 macgui.h).
a64387ee 8835
e3564461 8836 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 8837
e3564461
ST
8838 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
8839 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
8840 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
8841 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
8842 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
8843 (Bitmap): Remove typedef.
8844 (Pixmap): Change int to GWorldPtr.
8845
d8d95bc7 8846 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 8847
d8d95bc7
SM
8848 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
8849 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
8850 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
8851 long representation.
8852 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
8853 colors used for masks.
8854 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 8855
e3564461
ST
8856 * macfns.c: Include sys/types.h and sys/stat.h.
8857 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
8858 Include QuickTime/QuickTime.h.
8859 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8860 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
8861 functions defined in macterm.c.
8862 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
8863 (ZPixmap): New #define for compatibility with xfns.c.
8864 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8865 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
8866 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
8867 New functions.
e3564461 8868 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
8869 (x_destroy_x_image, unwind_create_frame, x_disable_image)
8870 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
8871 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
8872 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
8873 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
8874 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
8875 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
8876 long mixup.
8877 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
8878 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
8879 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
8880 (x_set_cursor_type, Fxw_color_values, valid_image_p)
8881 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
8882 (x_alloc_image_color, clear_image_cache, lookup_image)
8883 (x_find_image_file, xbm_read_bitmap_file_data)
8884 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
8885 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
8886 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
8887 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
8888 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 8889 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
8890 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
8891 #if 0.
8892 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
8893 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
8894 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
8895 New functions (from xfns.c).
e3564461
ST
8896 (Fx_create_frame): Record unwind_create_frame.
8897 (Fxw_display_color_p): Use dpyinfo->color_p.
8898 (Fx_display_grayscale_p, Fx_display_planes): Don't use
8899 dpyinfo->n_cbits.
8900 (Fx_display_color_cells): Use dpyinfo->n_planes;
8901 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
8902 (Qheuristic, cross_disabled_images, emboss_matrix)
8903 (laplace_matrix): New variables (from xfns.c).
8904 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
8905 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
8906 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
8907 (image_background_transparent): New function (from xfns.c).
8908 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8909 (image_load_quicktime): Add declaration.
8910 [MAC_OSX] (image_load_quartz2d): Likewise.
8911 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
8912 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 8913 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
8914 (xbm_load_image_from_file, x_laplace_read_row)
8915 (x_laplace_write_row, pbm_read_file): Remove functions.
8916 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
8917 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
8918 (colors_in_color_table): Sync with xfns.c (although not used).
8919 (lookup_rgb_color): Don't lookup color table. Just do gamma
8920 correction.
8921 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
8922 (x_disable_image): New function (from xfns.c).
8923 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
8924 (x_build_heuristic_mask): Sync with xfns.c.
8925 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8926 (HAVE_PBM): Remove #ifdef.
8927 (pbm_load): Sync with xfns.c. Set img->width and img->height
8928 before IMAGE_BACKGROUND.
d8d95bc7 8929 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
8930 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
8931 Don't enclose with #if HAVE_PNG.
8932 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
8933 symbol _CGImageCreateWithPNGDataProvider is defined.
8934 Otherwise use image_load_quicktime.
e3564461 8935 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
8936 [HAVE_PNG] (png_load): Sync with xfns.c.
8937 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
8938 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
8939 HAVE_JPEG.
8940 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
8941 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
8942 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
8943 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
8944 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
8945 (tiff_image_p, tiff_load): Don't enclose declarations with #if
8946 HAVE_TIFF.
8947 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
8948 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
8949 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
8950 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
8951 New functions (from xfns.c).
e3564461 8952 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 8953 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
8954 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
8955 Don't enclose with #if HAVE_GIF.
8956 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
8957 animated gif. Otherwise use image_load_quicktime.
8958 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
8959 gif_DrawText to avoid conflict with QuickdrawText.h.
8960 [HAVE_GIF] (gif_load): Sync with xfns.c.
8961 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
8962 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
8963 Ghostscript is not supported yet).
8964 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
8965 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
8966 cross_disabled_images (from xfns.c). Remove #if 0 for supported
8967 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
8968 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
8969 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
8970 HAVE_PNG. Call EnterMovies to support animated gifs.
8971 Call init_image_func_pointer to bind a symbol
e3564461 8972 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 8973
d8d95bc7 8974 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
8975 (x_draw_bar_cursor): Sync declaration with xterm.c.
8976 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
8977 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
8978 graphics).
8979 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
8980 (mac_draw_line_to_pixmap, XCreatePixmap)
8981 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
8982 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
8983 New functions.
8984 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
8985 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
8986 Cast bits to char *.
e3564461
ST
8987 (reflect_byte): New function (from w32fns.c).
8988 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
8989 due to byte alignment.
d8d95bc7
SM
8990 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
8991 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
8992 (XSetForeground): Remove static (now used in macfns.c).
8993 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
8994 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
8995 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
8996 (x_draw_glyph_string_box, x_draw_image_foreground)
8997 (x_draw_image_foreground_1, x_draw_image_glyph_string)
8998 (x_draw_stretch_glyph_string, x_draw_glyph_string)
8999 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
9000 Sync with xterm.c.
9001 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
9002 than the xterm.c version when a strictly horizontal or vertical
9003 line is drawn.
9004 (XTset_terminal_window): Add static.
9005 (x_make_frame_visible): Add UNBLOCK_INPUT.
9006 (x_free_frame_resources): New funcion (from xterm.c).
9007 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
9008 occurs in tool bar area.
d8d95bc7
SM
9009 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
9010 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
9011 Initialize image cache.
9012 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
9013 Enclose unused functions with #if 0.
9014 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
9015 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 9016 from a mac font name to an XLFD font name according to its script code.
e3564461 9017 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 9018 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
9019 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
9020 whose name starts with `.'.
9021 (init_font_name_table): Use decode_mac_font_name. Add both
9022 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
9023 of a font is smJapanese.
9024 (mac_do_list_fonts): New function to list fonts that match a given
9025 pattern.
9026 (x_list_fonts, XLoadQueryFont): Use it.
9027 (XLoadQueryFont): Set rbearing field for each variable width
9028 character to avoid needless redraw.
9029 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
9030
446f5f3d
KS
90312004-02-26 Kim F. Storm <storm@cua.dk>
9032
af617d0f
KS
9033 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
9034 as read_socket_hook handler on X aborts if buffer is too small
9035 and W32 handler doesn't always check buffer limit.
9036
446f5f3d
KS
9037 * xdisp.c (handle_single_display_prop): Handle left-fringe and
9038 right-fringe similar to a display margin image. Specifically,
9039 the characters having the fringe prop are no longer shown, and
9040 we use IT_IMAGE/next_element_from_image with image_id = -1 to
9041 do this. Set fringe bitmap face_id in it->face_id.
9042 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
9043 still realize it->face (i.e. the fringe bitmap face).
9044
7d8a0b55
MB
90452004-02-25 Miles Bader <miles@gnu.org>
9046
9047 * xdisp.c (check_it): Check string/string_pos consistency.
9048 (init_iterator): Initialize string-related fields properly.
9049
90502004-02-11 Miles Bader <miles@gnu.org>
9051
9052 * xdisp.c (produce_image_glyph): Force negative descents to zero.
9053
90542004-02-10 Miles Bader <miles@gnu.org>
9055
9056 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
9057 BLOCK_INPUT can be nested, so it doesn't make much sense.
9058
a64387ee 90592004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
9060
9061 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
9062 (xbm_read_bitmap_data): Use unsigned char for image data.
9063
92f5fba2
LT
90642004-02-23 Luc Teirlinck <teirllm@auburn.edu>
9065
9066 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
9067
8565fb3d
JR
90682004-02-22 Jason Rumney <jasonr@gnu.org>
9069
9070 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
9071 correctly over other bitmaps.
9072
a6eeaa81 90732004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
9074
9075 * emacs.c (USAGE1): Split into two halves.
9076 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
9077 (USAGE3): Rename from USAGE2.
9078 (USAGE4): Rename from USAGE3.
f8125c39 9079
4effffca
EZ
90802004-02-21 Juri Linkov <juri@jurta.org>
9081
9082 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
9083 Fix --multibyte. Move --help, --version to USAGE2. Add alias
9084 --file. Fix -f, -l. Sort options. Untabify.
9085 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
9086
923c1e6f
LT
90872004-02-19 Luc Teirlinck <teirllm@auburn.edu>
9088
9089 * category.c (Fdefine_category, Fcategory_docstring)
9090 (Fget_unused_category, Fset_category_table)
9091 (Fcategory_set_mnemonics): Doc fixes.
9092
b0e225fd
KS
90932004-02-20 Kim F. Storm <storm@cua.dk>
9094
9095 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
9096 The following changes are relative to the 2004-01-21 revision.
9097 (NREAD_INPUT_EVENTS): Define as max number of input events to read
9098 in one call to read_socket_hook. Value is 8.
9099 (read_avail_input): Separate and rework handling of read_socket_hook
9100 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
9101 in read_socket_hook case, and repeat if full buffer is read.
9102 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
9103 In non-read_socket_hook case, just use a single input_event, and
9104 call kbd_buffer_store_event on the fly for each character.
9105
b15aa9f9
SM
91062004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9107
9108 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
9109 Remove unused `gu' alternative.
9110
83c9aa95
AS
91112004-02-19 Andreas Schwab <schwab@suse.de>
9112
9113 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
9114 warning.
9115
cc808173
KS
91162004-02-18 Kim F. Storm <storm@cua.dk>
9117
9118 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
9119 Fix last change.
9120
ab90a54d
KS
91212004-02-17 Kim F. Storm <storm@cua.dk>
9122
b26f249f
KS
9123 * xdisp.c (fast_find_position): Fix return value of new version;
9124 it was inverted compared to the 21.1 version.
9125 (get_window_cursor_type): Don't look at glyph if NULL.
9126 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 9127
ab90a54d
KS
9128 * keyboard.c: Rework previous change; it didn't consider that the
9129 buf array was allocated on the stack.
9130 (prev_read): Remove variable.
9131 (read_avail_input_buf): New static event buffer array.
b9568dfc 9132 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 9133 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
9134 Use in_read_avail_input to handle re-entrance; when re-entered,
9135 fully initialize and use tmp_buf array instead of read_avail_input_buf.
9136 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
9137 is always cleared on entry. To ensure that, we clear (just) the
9138 entries that were used before we return.
9139 (init_keyboard): Initialize read_avail_input_buf here.
9140
b6189c3b 91412004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
9142
9143 * cmds.c (Fend_of_line): Doc fix.
9144
7b5368c1
EZ
91452004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
9146
9147 * keyboard.c (prev_read): New static variable.
9148 (read_avail_input): Use it to zero out only those slots in buf[]
9149 that were used last time we were called.
9150
a6eeaa81 91512004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
9152
9153 * Makefile.in (obj): Move fringe.o from here...
9154 (XOBJ, MAC_OBJ): ...to here.
9155
159c348e
SE
91562004-02-16 Stephen Eglen <stephen@gnu.org>
9157
9158 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
9159
d2f14999
SM
91602004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
9161
b15aa9f9
SM
9162 * data.c (Fbyteorder):
9163 * fringe.c (Fdefine_fringe_bitmap):
9164 * xdisp.c (handle_single_display_prop):
d2f14999
SM
9165 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
9166
8d50508a
JR
91672004-02-16 Jason Rumney <jasonr@gnu.org>
9168
9169 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
9170
dd4497dc
ST
91712004-02-15 Steven Tamm <steventamm@mac.com>
9172
9173 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
9174 controlling emulation of a three button mouse with option and
9175 command keys.
7e26f91b 9176 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 9177 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 9178
c9159cb3
KS
91792004-02-15 Kim F. Storm <storm@cua.dk>
9180
2cc52658
KS
9181 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
9182
c9159cb3
KS
9183 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
9184 Perform byte-swapping.
9185
12fde2dc
KS
91862004-02-14 Kim F. Storm <storm@cua.dk>
9187
9188 * dispextern.h (struct draw_fringe_bitmap_params): Change member
9189 bits from char to short to facilitate wider bitmaps.
9190 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
9191 member.
9192
9193 * fringe.c (struct fringe_bitmap): Change member bits from char to
9194 short to facilitate 16 bits wide bitmaps. Modify all standard
9195 bitmaps accordingly.
9196 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
9197 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
9198 (draw_fringe_bitmap): Ditto.
9199 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
9200 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
9201 handle up to 16 bits wide bitmaps.
9202 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 9203 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
9204
9205 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
9206 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
9207 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
9208
9209 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
9210 so it is no longer necessary to expand them here.
9211
9212 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
9213
9d7271e8
KS
92142004-02-12 Kim F. Storm <storm@cua.dk>
9215
9216 * window.c (Fwindow_fringes): Doc fix.
9217
706c1e4f
JD
92182004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9219
9220 * xselect.c (x_get_foreign_selection): Add new optional parameter
9221 time_stamp.
9222 (Fx_get_selection_internal): Ditto, pass time_stamp to
9223 x_get_foreign_selection.
9224
9225 * data.c (Fbyteorder): New function.
9226
c2d12b5d
JD
92272004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9228
9229 * atimer.c: Move include stdio.h to same place as in other files.
9230
9231 * region-cache.c: Ditto.
9232
9233 * sysdep.c: Ditto.
9234
9235 * xfaces.c: Ditto.
9236
4c1947b9
SS
92372004-02-09 Sam Steingold <sds@gnu.org>
9238
89458937 9239 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 9240
82722af3
KS
92412004-02-09 Kim F. Storm <storm@cua.dk>
9242
9243 * fringe.c: New file. Move original fringe related declarations
9244 and code from dispextern.h and xdisp.c here.
9245 Rework code to support user defined fringe bitmaps, redefining
9246 standard bitmaps, ability to overlay user defined bitmap with
9247 overlay arrow bitmap, and add faces to bitmaps.
9248 (Voverflow_newline_into_fringe): Declare here.
9249 (enum fringe_bitmap_align): New enum.
9250 (..._bits): All bitmaps are now defined without bitswapping; that
9251 is now done in init_fringe_once (if necessary).
9252 (standard_bitmaps): New array with specifications for the
9253 standard fringe bitmaps.
9254 (fringe_faces): New array.
9255 (valid_fringe_bitmap_id_p): New function.
9256 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
9257 (draw_fringe_bitmap): New function which draws fringe bitmap,
9258 possibly overlaying bitmap with cursor in right fringe or the
9259 overlay arrow in the left fringe.
9260 (update_window_fringes): Do not handle overlay arrow here.
9261 Compare and copy fringe bitmap faces.
9262 (init_fringe_bitmap): New function.
9263 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
9264 define and destroy user defined fringe bitmaps.
9265 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
9266 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
9267 (syms_of_fringe): New function. Defsubr new DEFUNs.
9268 DEFVAR_LISP Voverflow_newline_into_fringe.
9269 (init_fringe_once, init_fringe): New functions.
9270 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 9271
82722af3
KS
9272 * Makefile.in (obj): Add fringe.o.
9273 (fringe.o): New dependencies.
9274
9275 * dispextern.h (FRINGE_ID_BITS): New definition for number of
9276 bits allocated to hold a fringe number. Increase number of bits
9277 from 4 to 8 to allow user defined fringe bitmaps.
9278 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
9279 left_user_fringe_face_id, right_user_fringe_bitmap,
9280 right_user_fringe_face_id.
9281 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
9282 Move to new file fringe.c.
9283 (MAX_FRINGE_BITMAPS): Define here.
9284 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
9285 and overlay_p. Change member which to int.
9286 (struct redisplay_interface): New members define_fringe_bitmap
9287 and destroy_fringe_bitmap.
9288 (valid_fringe_bitmap_id_p): Add prototype.
9289 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
9290
9291 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
9292 arrows.
9293 (update_frame): Do flush_display if force_flush_display_p to
9294 ensure display (specifically fringes) are updated in a timely
9295 manner when resizing the frame by dragging the mouse.
9296 (update_window_line): Update row if overlay arrow changed.
9297 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
9298 or overlay arrow changed.
9299
9300 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
9301 syms_of_fringe, and init_fringe.
9302
9303 * frame.h (struct frame): New member force_flush_display_p.
9304
9305 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
9306 Add prototypes.
9307
a3993cc8 9308 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 9309 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
9310 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
9311 Use cursor color for displaying cursor in fringe.
82722af3
KS
9312 (x_redisplay_interface): Add null handlers for
9313 define_fringe_bitmap and destroy_fringe_bitmap functions.
9314
9315 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
9316 xterm.c to handle overlayed fringe bitmaps and to use cursor color
9317 for displaying cursor in fringe.
9318 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
9319 specific functions to define and destroy fringe bitmaps in fringe_bmp.
9320 (w32_redisplay_interface): Add them to redisplay_interface.
9321 (w32_term_init): Call w32_init_fringe instead of explicitly
9322 defining fringe bitmaps in fringe_bmp array.
9323 (x_delete_display): Call w32_reset_fringes instead of explicitly
9324 destroying fringe bitmaps in fringe_bmp array.
9325
9326 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
9327 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
9328 (continued_bits, continuation_bits, ov_bits, first_line_bits)
9329 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
9330 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
9331 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
9332 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
9333 Move fringe handling vars and code to new file fringe.c.
9334 (handle_display_prop): Handle left-fringe and right-fringe
9335 display properties; store user fringe bitmaps in iterator.
9336 (move_it_in_display_line_to): Handle cursor in fringe at eob.
9337 (clear_garbaged_frames): Set force_flush_display_p if resized.
9338 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
9339 (display_line): Handle cursor in fringe at eob.
9340 (display_line): Set row user fringe bitmaps from iterator.
9341
9342 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
9343 Use cursor color for displaying cursor in fringe.
9344 (x_redisplay_interface): Add null handlers for
9345 define_fringe_bitmap and destroy_fringe_bitmap functions.
9346
030400eb
JD
93472004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9348
9349 * macfns.c (Fx_change_window_property): Make doc string and
9350 parameters same as for X version.
9351
9352 * w32fns.c (Fx_change_window_property): Ditto.
9353
3af55251
KS
93542004-02-07 Kim F. Storm <storm@cua.dk>
9355
ec110e9e
KS
9356 * xdisp.c (hscroll_window_tree): Position cursor near to right
9357 margin in hscrolled window when jumping to end of line (rather
9358 than centering cursor).
9359
3af55251
KS
9360 * process.c (wait_reading_process_input): Don't do adaptive read
9361 buffering if waiting for a specific process.
9362
b0c138ce
LT
93632004-02-05 Luc Teirlinck <teirllm@auburn.edu>
9364
9365 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
9366 (Fread_minibuffer, Feval_minibuffer)
9367 (Fread_string, Fread_no_blanks_input)
9368 (Fcompleting_read): Doc fixes.
9369 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
9370 completion-regexp-list. Define Qcase_fold_search and staticpro it.
9371 (read_minibuf): Fix initial comment.
9372 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 9373 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
9374 checking completion-regexp-list.
9375 (Fdisplay_completion_list): Make it handle arguments that are
9376 symbols. Doc fix.
9377
9676f5ad 93782004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 9379
9676f5ad 9380 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 9381
9676f5ad
JD
9382 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
9383 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 9384 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 9385 format. Remove unused variable cons.
5b698285
JD
9386
9387 * xselect.c: Include stdio,h.
9388
fc1d15f6
KH
93892004-02-05 Kenichi Handa <handa@m17n.org>
9390
ebaff4af
KH
9391 * fns.c (Fset_char_table_range): Fix previous change.
9392
fc1d15f6
KH
9393 * buffer.c (Fset_buffer_multibyte): Fix docstring.
9394
9676f5ad
JD
93952004-02-04 Luc Teirlinck <teirllm@auburn.edu>
9396
9397 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
9398
da75761f
SM
93992004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
9400
9401 * keymap.c (Vmouse_events): Rename from Vmenu_events.
9402 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
9403
13c5d120
KH
94042004-02-04 Kenichi Handa <handa@m17n.org>
9405
9406 * fns.c (Fset_char_table_range): Handle charsets ascii,
9407 eight-bit-control, and eight-bit-graphic correctly.
9408
2883d842
JR
94092004-02-03 Jason Rumney <jasonr@gnu.org>
9410
9411 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
9412
9413 * w32fns.c (x_to_w32_font): Likewise.
9414
69eff41f
JD
94152004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9416
9417 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
9418 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
9419
9420 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
9421 ClientMessages.
9422
9423 * xselect.c: Include termhooks.h and X11/Xproto.h
9424 (x_check_property_data, x_fill_property_data)
9425 (x_property_data_to_lisp, mouse_position_for_drop)
9426 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 9427 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
9428 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
9429
da75761f 9430 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
9431 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
9432 OUTER_P.
9433 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
9434 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
9435 if vector_ret_p is true.
9436 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 9437
a6eeaa81 94382004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
9439
9440 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
9441 basename of FILE relative to it, not FILE itself.
9442
09721b31
KH
94432004-02-02 Kenichi Handa <handa@m17n.org>
9444
9445 * coding.c (coding_restore_composition): Check invalid
9446 composition data more rigidly.
9447
eb996101
LT
94482004-01-30 Luc Teirlinck <teirllm@auburn.edu>
9449
9450 * fileio.c (Fread_file_name_internal): Correctly handle the case
9451 where insert-default-directory is nil.
9452 (Fread_file_name): Always return an empty string if the user exits
9453 with an empty minibuffer. Adapt the docstring accordingly.
9454 (syms_of_fileio): Adapt the docstring of insert-default-directory
9455 to the change in Fread_file_name.
9456
a6eeaa81 94572004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
9458
9459 * alloca.c [!alloca]: Fix the prototype for xfree.
9460
13f52ed8
KH
94612004-01-29 Kenichi Handa <handa@m17n.org>
9462
9463 * fns.c (string_char_to_byte): Optimize for ASCII only string.
9464 (string_byte_to_char): Likewise.
9465
d57625a0
JR
94662004-01-28 Peter Runestig <peter@runestig.com>
9467
9468 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
9469
a64387ee 94702004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
9471
9472 * unexmacosx.c (unexec_copy): Do not copy more than was
9473 requested to prevent overwriting during unexec.
9474
eb37b8fd
JD
94752004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9476
ce38070a
JD
9477 * process.c (sigchld_handler): Add comment about not calling malloc.
9478
eb37b8fd
JD
9479 * process.h: Add extern to synch_process_termsig.
9480
a64387ee 94812004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 9482
da75761f
SM
9483 * macterm.c (make_mac_frame, make_mac_terminal_frame):
9484 Move setting of scroll bars from make_mac_frame to
9485 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 9486
d62a265d
RS
94872004-01-26 Richard M. Stallman <rms@gnu.org>
9488
9489 * search.c (Freplace_match): Handle nonexistent
9490 back-references properly.
9491
94922004-01-03 Richard M. Stallman <rms@gnu.org>
9493
9494 * window.c (decode_any_window): New function.
9495 (Fwindow_height, Fwindow_width, Fwindow_edges)
9496 (Fwindow_pixel_edges, Fwindow_inside_edges)
9497 (Fwindow_inside_pixel_edges): Use decode_any_window.
9498
ff236419
JD
94992004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9500
9501 * process.h: synch_process_termsig new variable.
9502
9503 * callproc.c: Define synch_process_termsig.
9504 (Fcall_process): Initiate synch_process_termsig to zero and
9505 check if non-zero and get signal name after subprocess has ended.
9506
9507 * process.c (sigchld_handler): Set synch_process_termsig
9508 if terminated by a signal. synch_process_death setting removed.
9509
9510 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
9511
41b867ea
AS
95122004-01-26 Andreas Schwab <schwab@suse.de>
9513
9514 * print.c (print_preprocess): Declare size as EMACS_INT to not
9515 lose bits.
9516 (print_object): Likewise.
9517 * alloc.c (Fpurecopy): Likewise.
9518
a08084ff
LT
95192004-01-25 Luc Teirlinck <teirllm@auburn.edu>
9520
9521 * window.c (Fwindow_minibuffer_p): Doc fix.
9522
b19ac475
JY
95232004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
9524
9525 * editfns.c (Fformat): Make both passes accept the same set of flags.
9526
fe905025
KH
95272004-01-23 Kenichi Handa <handa@m17n.org>
9528
9529 * fns.c (Fmd5): If OBJECT is a buffer different from the current
9530 one, set buffer to OBJECT temporarily.
9531
438fc6c0
SM
95322004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9533
455316e2
SM
9534 * keyboard.c (kbd_buffer_gcpro): Remove.
9535 (kbd_buffer_store_event, clear_event, Fdiscard_input)
9536 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
9537 Don't initialize and/or maintain the variable any more. It was made
9538 redundant by my commit of 2003-06-15.
9539
438fc6c0
SM
9540 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
9541
5335a4ee
JD
95422004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9543
9544 * lisp.h: Add undef DECL_ALIGN.
9545
dcdaeebc
SM
95462004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
9547
9548 * process.c (wait_reading_process_input) [SYNC_INPUT]:
9549 Check interrupt_input_pending explicitly.
9550
9551 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
9552
9553 * keyboard.c (handle_async_input): New fun,
9554 extracted from input_available_signal.
9555 (input_available_signal, reinvoke_input_signal): Use it.
9556
9076a823
SM
95572004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
9558
d7107586
SM
9559 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
9560
9561 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
9562 manipulation macros for when tags are in the lower bits.
9563 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
9564 (DECL_ALIGN): New macro.
9565 (DEFUN): Use it.
9566
9567 * lisp.h [ENABLE_CHECKING]: Don't force union type.
9568
9569 * s/darwin.h (__attribute__): Remove outdated workaround.
9570
9571 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
9572
9573 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
9574 Don't check range of malloc address.
9575 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
9576
9076a823
SM
9577 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
9578
9579 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
9580
ba029065
KH
95812004-01-19 Kenichi Handa <handa@m17n.org>
9582
9583 * fontset.c (fontset_font_pattern): Fix previous change.
9584
7af0e8d7
MB
95852004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
9586
9587 * xdisp.c (Voverflow_newline_into_fringe)
9588 (move_it_in_display_line_to, redisplay_internal)
9589 (update_window_fringes, redisplay_window, display_line, window):
9590 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
9591 that it compiles without a window-system.
9592 * dispnew.c (direct_output_for_insert, update_window): Likewise.
9593
77a9cf69
KS
95942004-01-16 Kim F. Storm <storm@cua.dk>
9595
9596 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
9597
a64387ee 9598 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
9599 buffer_local_flags for indicate_buffer_boundaries.
9600 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
9601 default- variable for it.
9602
9603 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
9604 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 9605 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
9606 overflowing newlines into right fringe.
9607 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
9608 and indicate_bottom_line_p for buffer boundaries and scrolling.
9609 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
9610 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
9611 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
9612 and HOLLOW_SQUARE_BITMAP.
9613 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
9614 Add prototypes.
9615
9616 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
9617 instead of related indicator fields.
9618 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
9619 (direct_output_for_insert): Handle exact width lines like
9620 contined lines. Call update_window_fringes.
9621 (update_window): Call update_window_fringes.
9622 (scrolling_window): Don't skip desired rows with changed bitmaps.
9623 Check if fringe bitmaps changes when assigning scrolled rows.
9624
9625 * xdisp.c (Voverflow_newline_into_fringe): New variable.
9626 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
9627 (move_it_in_display_line_to): Overflow newline into fringe for
9628 rows that are exactly as wide as the window.
9629 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
9630 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
9631 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
9632 (fringe_bitmaps): Add new bitmaps.
9633 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
9634 Select proper bitmap for cursor in fringe when appropriate.
9635 Handle alignment of bitmap to top or bottom of row.
9636 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
9637 done by update_window_fringes.
9638 (update_window_fringes, draw_window_fringes): New functions.
9639 (redisplay_internal): Call update_window_fringes in case only
9640 cursor row is updated.
9641 (redisplay_window): Call update_window_fringes.
9642 Explicitly call draw_window_fringes if redisplay was done using
9643 the current matrix or the overlay arrow is in the window.
9644 (try_window_reusing_current_matrix): Mark scrolled rows for
9645 fringe update (to update buffer-boundaries / scrolling icons).
9646 (find_last_unchanged_at_beg_row): Handle exact width lines line
9647 continued lines.
9648 (display_line): Overflow newline into fringe for rows that are
9649 exactly as wide as the window. Don't append space for newline
d7107586 9650 in this case.
77a9cf69
KS
9651 (notice_overwritten_cursor): Explicitly clear cursor bitmap
9652 in fringe as if it had been overwritten.
9653 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 9654 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
9655 void-text-area-pointer as user options.
9656 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 9657
77a9cf69
KS
9658 * xterm.c (x_update_window_end): Call draw_window_fringes.
9659 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9660 in row instead of actually drawing fringe bitmaps.
9661 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9662 (x_draw_window_cursor): Draw cursor in fringe.
9663
9664 * w32term.c (x_update_window_end): Call draw_window_fringes.
9665 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9666 in row instead of actually drawing fringe bitmaps.
9667 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9668 (w32_draw_window_cursor): Draw cursor in fringe.
9669
9670 * macterm.c (x_update_window_end): Call draw_window_fringes.
9671 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
9672 in row instead of actually drawing fringe bitmaps.
9673 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
9674 (mac_draw_window_cursor): Draw cursor in fringe.
9675
a633a954
JD
96762004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9677
9678 * xterm.c (handle_one_xevent): Don't handle characters that are part
9679 of an old style (XLookupString) compose sequence.
9680
80460525
KH
96812004-01-15 Kenichi Handa <handa@m17n.org>
9682
9683 * search.c (Freplace_match): Use make_multibyte_string or
9684 make_unibyte_string according to the buffer multibyteness.
9685
7fc34f85
SM
96862004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
9687
9688 * alloc.c (struct interval_block, struct string_block)
9689 (struct symbol_block, struct marker_block, live_string_p)
9690 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
9691 Better preserve alignment for objects in blocks.
9692 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
9693
9694 * lread.c (defvar_per_buffer): Remove dead declaration.
9695
9696 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
9697 space size.
9698
66070bd1
JD
96992004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9700
9701 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
9702 if a key press should pop down. Only pop down if a key is pressed
9703 outside the menu/dialog.
9704 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
9705 popup_get_selection.
9706 (create_and_show_dialog): Pass 1 for down_on_keypress to
9707 popup_get_selection.
9708
de7515d6
JD
97092004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9710
9711 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
9712 BLOCK/UNBLOCK_INPUT.
9713
160b1b50
JD
97142004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9715
9716 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
9717 specified.
9718
3a9f36e6
KH
97192004-01-08 Kenichi Handa <handa@m17n.org>
9720
9721 * editfns.c (Fformat): Fix '&' to '&&'.
9722
3803eb32
AS
97232004-01-08 Andreas Schwab <schwab@suse.de>
9724
9725 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
9726 size if PSEUDOVECTOR_FLAG is set.
9727
9da88f37
KH
97282004-01-07 Kenichi Handa <handa@m17n.org>
9729
74ac5074
KH
9730 * charset.c (Fdeclare_equiv_charset): Fix docstring.
9731
9da88f37
KH
9732 * fontset.c (fontset_ref_via_base): Fix previous change.
9733
05faee07
KS
97342004-01-07 Kim F. Storm <storm@cua.dk>
9735
9736 * process.c (read_process_output): Only activate adaptive
9737 buffering if we read less than 256 bytes at a time.
9738
634910c8
KS
97392004-01-06 Kim F. Storm <storm@cua.dk>
9740
9741 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
9742 object and image object. Return glyph width and height.
9743 (mode_line_string, marginal_area_string): Ditto.
9744
9745 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9746 (marginal_area_string): Fix prototypes.
9747
9748 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 9749 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
9750 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
9751
9752 * keyboard.c (make_lispy_position): Use modified mode_line_string,
9753 buffer_posn_from_coords, and marginal_area_string functions to
9754 include both string object and image object in the lispy position.
9755 Also add actual glyph width and height to position.
9756 (read_key_sequence): Use real buffer position from mouse
9757 event to find keymap property even when click is in marginal area.
9758
9759 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
9760 mode_line_string and marginal_area_string functions to handle
9761 both string object and image object properties.
d7107586 9762
57951c2e
AS
97632004-01-06 Andreas Schwab <schwab@suse.de>
9764
9765 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
9766 character.
9767
181e6a61
AS
97682004-01-02 Andreas Schwab <schwab@suse.de>
9769
d7107586
SM
9770 * macterm.c (emacs_options, x_initialized, same_x_server):
9771 Remove unused (and duplicated) definitions.
181e6a61 9772
31e0fbdd
KS
97732004-01-02 Kim F. Storm <storm@cua.dk>
9774
9775 * process.h (struct Lisp_Process): New members for adaptive read
9776 buffering: adaptive_read_buffering, read_output_delay, and
9777 read_output_skip.
9778
9779 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
9780 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
9781 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
9782 (process_output_delay_count, process_output_skip): New vars.
9783 (Vprocess_adaptive_read_buffering): New variable.
9784 (make_process): Initialize adaptive read buffering members.
9785 (Fstart_process): Set adaptive_read_buffering member.
9786 (deactivate_process): Cleanup adaptive read buffering.
9787 (wait_reading_process_input): Temporarily omit delayed
9788 subprocesses from the set of file descriptors to read from;
9789 adjust the select timeout if we skipped any subprocesses.
9790 (read_process_output): Increase adaptive read buffering delay if
9791 we read less than a full buffer; reduce delay when we read a
9792 full buffer.
9793 (send_process): Simplify using local Lisp_Process var.
9794 Reset adaptive read buffering delay after write.
9795 (init_process): Initialize process_output_delay_count and
9796 process_output_skip.
9797 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
9798
68c6a789
JR
97992004-01-01 Jason Rumney <jasonr@gnu.org>
9800
d7107586 9801 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 9802
3f70fe82
LT
98032003-12-30 Luc Teirlinck <teirllm@auburn.edu>
9804
9805 * print.c (Ferror_message_string): Add hyperlink in the docstring
9806 to the definition of `signal' in the Elisp manual.
9807 * eval.c (Fsignal): Ditto.
9808
b6189c3b 98092003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
9810
9811 * fns.c (internal_equal): Return t for two NaN arguments.
9812
7abd90ea
RS
98132003-12-29 Richard M. Stallman <rms@gnu.org>
9814
9815 * data.c (store_symval_forwarding): Handle setting
9816 default-fill-column, etc., by changing the value in
9817 buffers that use the default.
9818
9819 * minibuf.c (Fset_minibuffer_window): Doc fix.
9820
9821 * fileio.c (choose_write_coding_system): Ignore auto_saving
9822 if using the visited file for auto saves.
9823 (Fwrite_region): Don't update SAVE_MODIFF
9824 if auto-saving in visited file.
9825
3e7cfcdc
KH
98262003-12-29 Kenichi Handa <handa@m17n.org>
9827
9828 * dispextern.h (face_font_available_p): Extern it.
9829
9830 * fontset.c (Voverriding_fontspec_alist): New variable.
9831 (lookup_overriding_fontspec): New function.
d7107586 9832 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
9833 (fontset_font_pattern): Likewise.
9834 (regulalize_fontname): New function.
9835 (Fset_fontset_font): Call regulalize_fontname.
9836 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
9837 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
9838 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
9839
9840 * xfaces.c (face_font_available_p): New function.
9841
7abd90ea
RS
98422003-12-28 Richard M. Stallman <rms@gnu.org>
9843
9844 * buffer.c (Fother_buffer): Don't crash if BUF is nil
9845 or if its name is nil.
9846
9847 * buffer.c (Fkill_buffer): Don't delete auto-save file
9848 if it's the same as the visited file.
9849
de1d1a40
LT
98502003-12-28 Luc Teirlinck <teirllm@auburn.edu>
9851
9852 * coding.c (Fcheck_coding_system): Doc fix.
9853
204fb75e
KS
98542003-12-28 Kim F. Storm <storm@cua.dk>
9855
9856 * Makefile.in (eval.o): Depend on dispextern.h.
9857
9858 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
9859 image glyph using image's ascent.
9860 (mode_line_string): Return image glyph as object clicked on.
9861 Adjust y0 for image glyph using image's ascent.
9862
9863 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
9864 (struct glyph): New members, ascent and descent. Used to save
9865 this glyph's ascent and descent, instead of having.
9866 (struct glyph): Declare member face_id using FACE_ID_BITS.
9867 (find_hot_spot): Add prototype.
9868
9869 * keyboard.c (Qimage): Remove extern (now in lisp.h).
9870 (QCmap): Declare extern.
9871 (make_lispy_position): When position is inside image hot-spot,
9872 use hot-spot element's id as posn element.
9873
9874 * lisp.h (IMAGEP): New macro to test for image object type.
9875 (Qimage): Declare extern.
9876
9877 * macfns.c (Qimage): Remove extern (now in lisp.h).
9878 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9879
9880 * macterm.c (Qface, Qmouse_face): Remove unused externs.
9881
9882 * w32fns.c (Qimage): Remove extern (now in lisp.h).
9883 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9884
9885 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
9886
9887 * w32term.c (Qface, Qmouse_face): Remove unused externs.
9888
9889 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
9890 pointer types.
9891 (Qrelative_width, Qalign_to): Remove unused variables.
9892 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
9893 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
9894 image maps.
d7107586 9895 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
9896 new dx and dy args.
9897 Remove buffer_only_p arg (always 0). Simplify code accordingly.
9898 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
9899 than row's ascent and height, to get sensible height on tall rows.
9900 (build_desired_tool_bar_string): Remove Qimage extern.
9901 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
9902 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
9903 image glyph is alone on the last line.
9904 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 9905 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 9906 (on_hot_spot_p): New function to check if position is inside an
d7107586 9907 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
9908 (find_hot_spot): New function to search for image hot-spot.
9909 (Flookup_image_map): New defun to search for image hot-spot.
9910 (define_frame_cursor1): New aux function to determine frame pointer.
9911 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9912 Handle `pointer' text property and :pointer image property to
9913 control frame pointer shape. Detect image hot-spots for pointer
9914 and help_echo properties. Use define_frame_cursor1.
9915 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 9916 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
9917 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
9918
9919 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
9920
9921 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
9922 (Qimage): Remove extern (now in lisp.h).
9923 (valid_image_p, parse_image_spec): Use IMAGEP macro.
9924
9925 * xmenu.c (show_help_event): Remove unused code.
9926
9927 * xterm.c (Qface, Qmouse_face): Remove unused externs.
9928 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
9929 row's ascent and descent, to get a sensible height on tall rows.
9930
fc052137
LT
99312003-12-25 Luc Teirlinck <teirllm@auburn.edu>
9932
9933 * minibuf.c (Fcompleting_read): Undo previous change.
9934
a64387ee 99352003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
9936
9937 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
9938 Arguments GCPRO'ed in call to file name handler.
9939
56ffd194
TTN
99402003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
9941
9942 * termcap.c (tgetst1): Scan for "%pN"; if all
9943 N are continuous in [1,9], remove all "%pN".
9944
5202d23d
JD
99452003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9946
f26fab36
JD
9947 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
9948
5202d23d
JD
9949 * xfaces.c (lface_fully_specified_p): Take into account that
9950 MAC OS always have unspecified stipple.
9951
8babaa59
TTN
99522003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9953
9954 * tparam.c (tparam1): Add handling for `%pN', which
9955 means use param N for the next substitution.
9956
2d176448
TTN
99572003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9958
9959 * xfaces.c (Fcolor_gray_p): Fix omission bug:
9960 In case `frame' is nil, consult the selected frame.
9961 (Fcolor_supported_p): Likewise.
9962
adb0708c
LT
99632003-12-23 Luc Teirlinck <teirllm@auburn.edu>
9964
000eeb15
LT
9965 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
9966 Doc fixes.
0dc72b11
LT
9967
9968 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
9969 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
9970 (Fread_from_minibuffer): Delete code moved into read_minibuf.
9971 Doc fix.
9972 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
9973 read_minibuf.
9974 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 9975 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 9976
2e4d132b
KH
99772003-12-03 Kenichi Handa <handa@m17n.org>
9978
9979 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
9980 encoding sequence.
9981
3999c705
KH
99822003-12-01 Kenichi Handa <handa@m17n.org>
9983
9984 * composite.c (syms_of_composite): Don't make the compostion hash
9985 table week.
9986
d344ecbb
LT
99872003-11-30 Luc Teirlinck <teirllm@auburn.edu>
9988
9989 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
9990 * textprop.c (Fget_char_property_and_overlay): New function.
9991 (syms_of_textprop): Defsubr it.
9992
03d6484e
JD
99932003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9994
019b1f0e
JD
9995 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
9996 to compile on terminal configuration.
9997
03d6484e
JD
9998 * fileio.c (Fread_file_name): Check use_file_dialog also before
9999 calling Fx_file_dialog.
10000
1d1c7e75 10001 * fns.c (use_file_dialog): New variable.
03d6484e
JD
10002 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
10003
442d3fd0
KS
100042003-11-29 Kim F. Storm <storm@cua.dk>
10005
10006 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
10007 (syms_of_msdos): Don't intern and staticpro them.
10008
0f6a07a8
KS
100092003-11-27 Kim F. Storm <storm@cua.dk>
10010
10011 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
10012 coordinates relative to glyph at posn. If glyph is an image,
10013 return that as object at posn. Callers changed.
10014 (mode_line_string, marginal_area_string): Calculate and return
10015 pixel coordinates relative to glyph. Callers changed.
10016
10017 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10018 (marginal_area_string): Fix prototypes.
10019 (window_box_left_offset, window_box_right_offset): Add prototypes.
10020
10021 * frame.h (get_specified_cursor_type, get_window_cursor_type):
10022 Remove prototypes.
10023
10024 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
10025
10026 * keyboard.c (make_lispy_position): Add x and y coordinates
10027 relative to the current glyph as 7th element of position.
10028 If glyph is an image, return it in the object element.
10029 (read_key_sequence): Skip checks for keymap property in cases
10030 where POSN_STRING is not a string (e.g. an image).
10031
10032 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
10033 (Vshow_text_cursor_in_void): New variable.
10034 (glyph_to_pixel_coords): Don't use negative hpos.
10035 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
10036 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 10037 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
10038 (calc_pixel_width_or_height): New aux function, implementing
10039 pixel based artihmetic for glyph widths and heights.
10040 (produce_stretch_glyph): Use calc_pixel_width_or_height for
10041 :width, :height, :align-to, and :ascent, thus allowing these to
10042 be specified in pixels as well as multiples of characters.
10043 Don't produce stretch glyphs with zero width or height.
10044 (get_specified_cursor_type): Declare static.
10045 (get_window_cursor_type): Declare static. Add glyph arg to be
10046 able to know when cursor is on an image; always substitute
10047 hollow-box cursor for filled-box cursor on images, to avoid
10048 negative images and flicker when blinking the cursor.
10049 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
10050 (note_mode_line_or_margin_highlight): Use non-text cursor rather
10051 than vertical scroll-bar cursor in display margins.
10052 (note_mouse_highlight): Use non-text cursor rather than text
10053 cursor in fringes and over images in the text area.
10054 Use non-text cursor when mouse pointer is outside editable text,
10055 i.e. in the void after end-of-line or end-of-buffer; this was
10056 already done for W32, but is now standard for all systems --
10057 user can toggle show-text-cursor-in-void to get old behaviour.
10058 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
10059 Vdisplay_pixels_per_inch.
10060
00498bfc
AS
100612003-11-25 Andreas Schwab <schwab@suse.de>
10062
10063 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
10064 EMACS_INT to not lose bits.
10065 (Ffillarray): Don't set bits beyond the size of a bool vector.
10066
edaa824d
KS
100672003-11-25 Kim F. Storm <storm@cua.dk>
10068
10069 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
10070 define this defun on systems that cannot use stderr as lvalue.
10071
74d6f539
GM
100722003-11-24 Gerd Moellmann <gerd@gnu.org>
10073
10074 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
10075 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
10076 ld's default is incompatible with unexec.
10077
6a1ff3ba
KS
100782003-11-23 Kim F. Storm <storm@cua.dk>
10079
63dc7c6b
KS
10080 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
10081 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
10082 (Fforce_window_update): New defun.
10083 (syms_of_window): Defsubr it.
10084 (Fset_window_margins, Fset_window_fringes): Doc fix.
10085
6a1ff3ba
KS
10086 * print.c (Fredirect_debugging_output): New defun.
10087 (syms_of_print): Defsubr it.
10088
aef109b7
LT
100892003-11-22 Luc Teirlinck <teirllm@auburn.edu>
10090
10091 * fns.c (Fset_char_table_parent): Doc fix.
10092
6a1ff3ba 100932003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
10094
10095 * dispnew.c (buffer_posn_from_coords): Return actual row/column
10096 for glyph clicked on, rather than (unused) pixel positions.
10097 (mode_line_string, marginal_area_string): Change X and Y args to
10098 pointers for returning actual row/column for glyph clicked on.
10099 Simplify and optimize loops.
10100
aef109b7
LT
10101 * dispextern.h (mode_line_string, marginal_area_string):
10102 Update prototypes.
63ccbe21
KS
10103
10104 * keyboard.c (make_lispy_position): New function for generating
10105 mouse click positions from frame and pixel coordinates.
10106 Enhanced to return buffer position and actual row/column for
10107 events outside the text area using updated mode_line_string and
10108 marginal_area_string functions.
10109 Return left-fringe and right-fringe clicks as such, rather than
10110 clicks in text area.
10111 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
10112 pixel_to_glyph_coords, as we never use the results.
10113 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
10114 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
10115 Eliminate unused code in WHEEL_EVENT handling.
10116 (make_lispy_movement): Use make_lispy_position.
10117
10118 * window.c (coordinates_in_window): Remove redundant tests.
10119 Fix returned X pixel value for left-margin.
10120
10121 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
10122 mode_line_string and marginal_area_string parameters.
10123
a64387ee 101242003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 10125
d7107586
SM
10126 * w32.c (struct the_group, getgrgid): Add.
10127 * mac.c (struct my_group, getgrgid): Add.
aef109b7 10128
3dbf3426
LT
101292003-11-21 Luc Teirlinck <teirllm@auburn.edu>
10130
10131 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
10132
cae8ddbb 101332003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 10134
d7107586
SM
10135 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
10136 include in call to file name handler. Optionally translate numeric
10137 UID and GID to strings. Update docstring.
10138 (directory_files_internal): Add parameter ID-FORMAT.
10139 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
10140 include in call to file name handler and call to
10141 directory_files_internal. Update Docstring.
10142 (Fdirectory_files): Add dummy parameter in call to
10143 directory_files_internal.
10144 * lisp.h (Qinteger): Add.
10145 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
10146 (Ffile_attributes): Add parameter.
10147 * data.c (Qinteger): Export.
cae8ddbb 10148
2550b848
LT
101492003-11-21 Luc Teirlinck <teirllm@auburn.edu>
10150
3dbf3426 10151 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 10152
88380018
KS
101532003-11-19 Kim F. Storm <storm@cua.dk>
10154
10155 * xdisp.c (init_iterator): Initialize it->start to position
10156 before reseating (in case start position is invisible).
10157 (init_to_row_start): Set it->start to row-start.
10158 (redisplay_window): Accept optional_new_start if start position
10159 is invisible (in which case IT_CHARPOS overshoots PT).
10160 (display_line): Setup row->start from it->start (rather than
10161 it->current which is wrong if first char on line is invisible).
10162 When done, reseat it->start to it->current (= start of next row).
10163 (expose_area): Fix exposure of text area when first char (e.g. TAB)
10164 is only partially visible.
10165
10166 * dispextern.h (struct it): New member start.
10167
854c1a59
SM
101682003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10169
455316e2
SM
10170 * alloc.c (make_float, Fcons): Clear the markbit at init time.
10171 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
10172 of block_index outside of the macro call.
10173 (Fgarbage_collect): Remove null code.
10174
10175 * m/amdx86-64.h: Don't redefine XPNTR.
10176
854c1a59
SM
10177 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
10178 of VALMASK.
10179
10180 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
10181 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
10182 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
10183
10184 * lisp.h (VALMASK): Only define for non-union type.
10185 (MARKBIT): Remove.
10186 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
10187 (XTYPE): Define unconditionally.
10188 (XSETTYPE): Remove one more remnant.
10189 (EQ): Define differently for the union and non-union cases.
10190 (INTMASK): New bit mask.
10191 (struct Lisp_Marker): Move down to prepare for upcoming patch.
10192 (GC_EQ): Delegate to EQ.
10193
10194 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
10195
a0c6ef2d
JD
101962003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10197
10198 * xterm.c (x_window_to_scroll_bar): Move check of display to
10199 where window_id is compared.
10200
859492c4
KS
102012003-11-17 Kim F. Storm <storm@cua.dk>
10202
10203 * dispextern.h (struct it): New member first_vpos.
10204
10205 * xdisp.c (start_display): Set it->first_vpos.
10206 (try_window_id): Use first_vpos to start display in first _text_
10207 line if no reusable lines at start of window with header line.
10208
810f2256
JD
102092003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10210
7c402969 10211 * w32fns.c (XPutPixel):
854c1a59
SM
10212 * w32bdf.c (w32_init_bdf_font):
10213 * sunfns.c (sel_read):
10214 * process.c (Fmake_network_process):
10215 * frame.c (store_frame_param):
10216 * fontset.c (Fset_fontset_font):
10217 * emacs.c (shut_down_emacs):
a64387ee 10218 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 10219
a32e9bfd
JD
10220 * config.in: Regenerate.
10221
810f2256
JD
10222 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10223 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10224 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
10225 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
10226 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
10227
10228 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
10229
10230 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
10231 (XTmouse_position, handle_one_xevent): Pass Display* to
10232 x_window_to_scroll_bar.
10233 (x_window_to_scroll_bar): Take a Display* argument.
10234 Check that display for frame is equal to Display* argument.
854c1a59 10235 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
10236 x_display_info_for_display instead. Use Display in xev instead
10237 of GDK_DISPLAY.
10238 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 10239 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
10240 (x_connection_closed): Call xg_display_close for GTK.
10241 (x_term_init): Call xg_display_open for additional displays.
10242 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
10243 for GTK.
10244
10245 * xmenu.c (single_menu_item, mouse_position_for_popup)
10246 (x_activate_menubar): Formatting adjustments.
10247
10248 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
10249 adjustments.
10250
10251 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
10252 (xg_display_close, xg_create_default_cursor)
10253 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
10254 handling.
854c1a59
SM
10255 (xg_left_ptr_cursor): Remove.
10256 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
10257 cursor here.
10258 (xg_win_to_widget): Take Display* argument, call
10259 gdk_xid_table_lookup_for_display.
10260 (xg_create_frame_widgets, xg_get_file_name, create_menus)
10261 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
10262 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
10263 in FRAME_X_DISPLAY_INFO.
10264 (xg_get_scroll_id_for_window): Take Display* argument.
10265 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 10266 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 10267
78819ebb
KS
10268 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
10269 Display* argument.
10270 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 10271
0b03cc78
JD
102722003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10273
10274 * xterm.c (x_detect_focus_change): Do not change focus frame for
10275 Enter/LeaveNotify if the current focus frame has explicit focus.
10276
77e688fa
KS
102772003-11-14 Kim F. Storm <storm@cua.dk>
10278
10279 * dispnew.c (update_text_area): Fix redisplay error when hscroll
10280 is active and first glyph is only partially visible.
854c1a59 10281
dd429b03
KH
102822003-11-13 Kenichi Handa <handa@m17n.org>
10283
10284 * xdisp.c (select_frame_for_redisplay): New function.
10285 (redisplay_internal): Record also selected_frame for
10286 unwind_redisplay. Call select_frame_for_redisplay before
10287 redrawing each frame.
10288 (unwind_redisplay): Argument changed to a cons.
10289
6d9266f4
LT
102902003-11-12 Luc Teirlinck <teirllm@auburn.edu>
10291
10292 * fns.c (Fstring_to_multibyte): Doc fix.
10293
80060eb3
KH
102942003-11-11 Kenichi Handa <handa@m17n.org>
10295
10296 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
10297
74305183
JD
102982003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10299
10300 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
10301 program specified positions.
10302
cfda993e
JD
103032003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10304
10305 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
10306
df211069
KH
103072003-11-08 Kenichi Handa <handa@m17n.org>
10308
10309 * Makefile.in (lisp): Add kannada.el.
10310 (shortlisp): Likewise.
10311
4307d534
KH
103122003-11-07 Kenichi Handa <handa@m17n.org>
10313
854c1a59
SM
10314 * coding.c (coding_allocate_composition_data):
10315 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
10316 (coding_restore_composition): Detect invalid composition data.
10317 Give Fstring and Fvector a Lispy integer, not C int.
10318
854c1a59
SM
103192003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
10320
10321 * floatfns.c (Flogb): Don't use VALMASK.
10322
10323 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
10324 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
10325
10326 * lisp.h (XINT): Move the cast to clarify what is going on.
10327 (GCTYPEMASK, XSETTYPE): Remove.
10328 (XGCTYPE): Make it an alias of XTYPE.
10329
d04103a1
JD
103302003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10331
10332 * xterm.c (x_term_init): Fix formatting.
10333
da18b5ac
JD
103342003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10335
78819ebb
KS
10336 * gtkutil.h (xg_have_tear_offs): Declare.
10337 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
10338
10339 * gtkutil.c: Remove variable xg_did_tearoff.
10340 (xg_have_tear_offs): New function.
10341 (tearoff_remove): Just decrease xg_detached_menus.
10342 (tearoff_activate): Increase xg_detached_menus and call
10343 tearoff_remove when tearoff is removed.
854c1a59 10344 (xg_keep_popup): Remove function.
da18b5ac
JD
10345 (create_menus): Give add_tearoff_p as argument to recursive
10346 call to create_menus.
10347 (xg_create_widget): Use variables instead of multiple
10348 strcmp. Tell create_menus to create tear off only for
10349 menu bar menus.
10350 (xg_update_menubar): Change title for a detached menu also.
10351 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
10352 of deep_p.
10353 (xg_initialize): Initialize xg_detached_menus, remove
10354 initialization of xg_did_tearoff.
10355
10356 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
10357 xg_have_tear_offs returns non-zero.
10358 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
10359 call to xg_keep_popup.
10360
64d4923e
AC
103612003-11-01 Andrew Choi <akochoi@shaw.ca>
10362
10363 * macterm.c (XTread_socket): Handle menubar selection and grow
10364 window only for mouseDown events.
854c1a59 10365
6cc8bc07
JD
103662003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10367
10368 * xterm.c (x_term_init): For GTK part, increase x_initialized
10369 to check for more than one display. Use error instead of return 0.
10370
043131c4
AC
103712003-10-31 Andrew Choi <akochoi@shaw.ca>
10372
854c1a59 10373 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
10374 (copy_dysymtab): Call it.
10375
bdda99a1
LT
103762003-10-31 Luc Teirlinck <teirllm@auburn.edu>
10377
10378 * eval.c (Fdefvaralias): Doc fix.
10379
800f42ff 103802003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
10381
10382 * data.c (Fsetplist): Doc fix.
10383
ef35b389
LK
103842003-10-14 Lute Kamstra <lute@gnu.org>
10385
10386 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 10387
ef35b389 103882003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 10389
07107abc
KS
10390 * window.c (Fset_window_margins): Simplify arg checking.
10391
f7005886
RS
103922003-10-13 Richard M. Stallman <rms@gnu.org>
10393
10394 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
10395 (print_partial_compiled_pattern): Replace assert with a printout.
10396 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
10397
10398 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
10399
10400 * window.c (Fset_window_margins): Allow only integers as args.
10401 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
10402 Doc fixes.
10403
9c0c2af5
LK
104042003-10-13 Lute Kamstra <lute@gnu.org>
10405
10406 * window.c (Fset_window_fringes): Elaborate docstring.
10407
3f080e4e
AC
104082003-10-12 Andrew Choi <akochoi@shaw.ca>
10409
854c1a59 10410 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 10411
3f080e4e
AC
10412 * s/darwin.h (GC_MARK_STACK): Define.
10413
0aa513ed
JD
104142003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10415
10416 * window.c (shrink_windows): New function.
10417 (size_window): Call shrink_windows to calculate window sizes when
10418 shrinking frame with more than one window.
10419
6aa8858a
KS
104202003-10-12 Kim F. Storm <storm@cua.dk>
10421
10422 * xdisp.c (compute_fringe_widths): Doc fix.
10423
c2164d91
KH
104242003-10-08 Kenichi Handa <handa@m17n.org>
10425
854c1a59 10426 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 10427
f82ac129
KH
104282003-10-07 Kenichi Handa <handa@m17n.org>
10429
10430 * coding.c (Qcoding_system_define_form): New variable.
10431 (syms_of_coding): Intern and staticpro it.
10432 (Fcheck_coding_system): Try to autoload the definition of
10433 CODING-SYSTEM.
10434
9296c947
LT
104352003-10-05 Luc Teirlinck <teirllm@auburn.edu>
10436
10437 * fns.c (Frequire): Doc fix.
10438
c1f0671a
JD
104392003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10440
3d8c3826
JD
10441 * xfns.c (Fx_send_client_event): New function as a base for
10442 manipulating extended window manager hints.
6dc15d98 10443 (Fx_send_client_event): Remove unused variable s.
3d8c3826 10444
068ae0fd
JD
10445 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
10446 that function is removed.
10447
10448 * xterm.c (x_set_offset): Use move_offset_left/top instead of
10449 x/y_pixels_outer_diff.
10450 (x_check_expected_move): Calculate move_offset_left/top.
10451
10452 * xterm.h (struct x_output): New members: move_offset_top/left.
10453
854c1a59 10454 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
10455 call x_set_offset directly.
10456
10457 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
10458
96f09305
JD
10459 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
10460
10461 * xterm.c (x_delete_display): Free font names and font_encoder
10462 in dpyinfo->font_table.
10463
854c1a59
SM
10464 * xfns.c (Fx_close_connection): Only call XFreeFont here.
10465 Move xfree of font names to x_delete_display.
96f09305 10466
c1f0671a
JD
10467 * xterm.h (struct x_display_info): New member, wm_type.
10468 (struct x_output): New members, expected_top/left and
10469 check_expected_move.
10470
10471 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
10472 is received.
854c1a59
SM
10473 (handle_one_xevent): Rename x_check_expected_move from
10474 x_check_fullscreen_move.
c1f0671a
JD
10475 (x_set_offset): Only add WM decoration sizes to modified_top/left
10476 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 10477 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
10478 Removed fullscreen specific code. Use check_expected_move,
10479 expected_left/top instead. Also, set wm_type.
10480 (x_term_init): Initialize wm_type to unknown.
10481
10482 * frame.c (x_fullscreen_move): Remove addition of WM decoration
10483 sizes to move_x/y.
10484
be2fdba9
KH
104852003-10-03 Kenichi Handa <handa@m17n.org>
10486
10487 * macterm.c (x_load_font): Clear all members of FONTP before start
10488 filling them.
10489
104902003-10-02 Kenichi Handa <handa@m17n.org>
10491
10492 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
10493 before calling find_ccl_program_func. Call find_ccl_program_func
10494 only when fontp->font_encoder is not NULL.
10495
10496 * xterm.c (x_load_font): Clear all members of FONTP before start
10497 filling them.
10498
26a6e439
JPW
104992003-10-03 John Paul Wallington <jpw@gnu.org>
10500
10501 * keymap.c (map_keymap): Don't abort when binding is a vector.
10502
0d4c2dc2
JR
105032003-10-02 Jason Rumney <jasonr@gnu.org>
10504
854c1a59
SM
10505 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
10506 Sync dependencies with Makefile.in.
a63cf46f
JR
10507 (alloca.o): Remove.
10508
0d4c2dc2
JR
10509 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
10510 filling them.
10511
10512 * w32bdf.c (w32_load_bdf_font): Likewise.
10513
ab8f7d5c
RS
105142003-09-30 Richard M. Stallman <rms@gnu.org>
10515
10516 * term.c (set_tty_color_mode): Calculate current_mode_spec
10517 regardless of value of VAL.
10518
854c1a59 10519 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
10520 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
10521 Handle over_used when splitting UNDER.
10522
a64387ee 105232003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
10524
10525 * regex.c (regex_compile): Free the stack when returning from function.
10526
3413f972
KH
105272003-09-28 Kenichi Handa <handa@m17n.org>
10528
10529 * fontset.c (Finternal_char_font): Change return value to
10530 cons (FONT-NAME . GLYPH-CODE).
10531
a6eeaa81 105322003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
10533
10534 * term.c (tty_setup_colors): Treat any negative argument as -1.
10535
f98ddc99
KH
105362003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
10537
10538 * process.c (send_process): Delete unused temp_buf.
10539
66c8f1a8
DL
105402003-09-26 Dave Love <fx@gnu.org>
10541
10542 * xterm.c (x_bitmap_mask): Declare.
10543
ca716c26
DL
105442003-09-25 Dave Love <fx@gnu.org>
10545
10546 * Makefile.in (fns.o): Depend on md5.h.
10547
fbe57420
KS
105482003-09-25 Kim F. Storm <storm@cua.dk>
10549
10550 * window.c (set_window_buffer): Fix redisplay problems when
10551 switching between buffers with different display margin widths.
10552
ef6ae4ff
KS
105532003-09-23 Kim F. Storm <storm@cua.dk>
10554
10555 * process.c (set_socket_option): Fix :bindtodevice option.
10556 (Fset_network_process_option): Update process contact list when
10557 setting option succeeds.
10558 (Fmake_network_process): Doc fix.
10559
68e03c1c
DL
105602003-09-23 Dave Love <fx@gnu.org>
10561
7146d1c1 10562 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 10563
a6eeaa81 105642003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
10565
10566 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
10567 color mode is an integer number (it could be -1).
10568
8fe7d8c8
RS
105692003-09-22 Richard M. Stallman <rms@gnu.org>
10570
10571 * intervals.c (graft_intervals_into_buffer): Correct the main loop
10572 in the case where OVER is longer than UNDER.
10573
2f71b5ea
MY
105742003-09-22 Masatake YAMATO <jet@gyve.org>
10575
7146d1c1 10576 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 10577 `vertical_type'.
7146d1c1 10578
0c4da023
KS
105792003-09-21 Kim F. Storm <storm@cua.dk>
10580
10581 * frame.c (Vdefault_frame_scroll_bars): New variable.
10582 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
10583 (syms_of_frame): DEFVAR_LISP it, and initialize according to
10584 window-system default scroll bar position.
10585
b648413b
KS
10586 * window.c (Fwindow_scroll_bars): Doc fix.
10587
8f5b9e34
JD
105882003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10589
854c1a59 10590 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 10591
b0f23edf
RS
105922003-09-19 Richard M. Stallman <rms@gnu.org>
10593
10594 * atimer.h: Don't include lisp.h.
10595 (P_): Define it here (as well as elsewhere).
10596
10597 * print.c (Fprin1_to_string): Move the PRINTPREPARE
10598 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
10599
10600 * data.c (Fvariable_binding_locus): New function.
10601 (syms_of_data): defsubr it.
10602 (Flocal_variable_p): Delete duplicate call to indirect_variable.
10603
e1283999
DL
106042003-09-18 Dave Love <fx@gnu.org>
10605
ad5f3636
DL
10606 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
10607
e1283999
DL
10608 * process.c (Fnetwork_interface_info): Fix type error.
10609 (Fnetwork_interface_list): Doc fix.
10610 (read_process_output, read_process_output): Delete unused var.
10611
b8c7fd71
KS
106122003-09-17 Kim F. Storm <storm@cua.dk>
10613
10614 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
10615 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
10616 (Fnetwork_interface_info): Check that ifreq struct has required
10617 fields before accessing them; this requires that those fields are
10618 defined as macros, which may be too restrictive on some platforms,
10619 but it is better than failing on other platforms.
10620 (syms_of_process): Only defsubr above fns when included.
10621
11e0a411
DL
106222003-09-17 Dave Love <fx@gnu.org>
10623
10624 * unexalpha.c: Don't include varargs.h.
10625
e9c50801
KS
106262003-09-17 Kim F. Storm <storm@cua.dk>
10627
10628 * process.c (Fset_process_sentinel): Add sentinel to childp plist
10629 for network process.
10630 (socket_options): Add `:' prefix to option names. Add optbit field.
10631 (set_socket_option): Remove no_error arg and special handling of s < 0.
10632 Return 1<<optbit for known option, 0 for unknown.
10633 Do not interpret 0 as false for boolean option (only nil).
10634 Pass failed option and value to report_file_error.
7146d1c1 10635 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
10636 (Fset_network_process_option): New function to set just one option.
10637 (Fmake_network_process): Allow :coding arg to be a cons.
10638 Allow :server arg to be an integer specifying backlog size.
10639 Remove :options arg, and allow options to be specified directly
10640 as :KEY, VALUE pairs. Parse these options before binding socket.
10641 As before, :reuseaddr t is default for a server process, but this
10642 can now be disabled by specifying :reuseaddr nil.
10643 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
10644 (init_process): Availability of network options is now checked with
10645 simpler syntax (featurep 'make-network-process :OPTION); use loop to
10646 setup features.
10647 (syms_of_process): Fix defsubr's for the replaced functions.
10648
a0fc3644
DL
106492003-09-16 Dave Love <fx@gnu.org>
10650
10651 * Makefile.in: Depend on coding.h.
10652
6df2a645
KS
106532003-09-14 Kim F. Storm <storm@cua.dk>
10654
10655 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
10656 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
10657 (syms_of_process): Defsubr them.
10658
10659 * config.in: Regenerate.
7146d1c1
SM
10660
106612003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10662
10663 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
10664 * m/news-r6.h (XUNMARK): Remove.
10665 * m/mips.h (XUNMARK): Remove.
10666 * m/mips-siemens.h (XUNMARK): Remove.
10667 * m/iris4d.h (XUNMARK): Remove.
10668 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
10669
0930c1a1
SM
106702003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10671
31003b9e
SM
10672 * lisp.h (VALBITS): Don't remove 1 for the markbit.
10673 (union Lisp_Object): Use unsigned int for types. Remove markbit.
10674 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
10675 (XTYPE): Use unsigned right-shift.
10676 (XMARKBIT, XMARK, XUNMARK): Remove.
10677
0930c1a1
SM
10678 * alloc.c (init_intervals, init_symbol, init_marker):
10679 Don't preallocate anything.
10680 (Fgarbage_collect, mark_object): Ignore the markbit.
10681
10682 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
10683
19bb0fcd 106842003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
10685
10686 * xdisp.c (pint2hrstr): New function.
10687 (decode_mode_spec): Add `%i' and `%I' specs.
10688 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
10689 for `mode-line-format'.
10690
03bb6a06
AS
106912003-09-07 Andreas Schwab <schwab@suse.de>
10692
10693 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
10694 avoid warning.
10695
a6eeaa81 106962003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 10697
0930c1a1 10698 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 10699
ed159bbf
KS
107002003-09-03 Kim F. Storm <storm@cua.dk>
10701
10702 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
10703 change (superseded by 2002-08-30 change); the default blink-off
10704 cursor is now again "no cursor".
10705
fe64a394
JR
107062003-09-01 Jason Rumney <jasonr@gnu.org>
10707
10708 * makefile.w32-in (alloca.o): Remove.
10709 (coding.o): Depend on intervals.h
10710 (emacs.o, bytecode.o): Depend on window.h
10711
c0175e24
DL
107122003-09-01 Dave Love <fx@gnu.org>
10713
10714 * Makefile.in (alloca.o): Remove commands.
10715 (coding.o): Depend on intervals.h composite.h window.h.
10716 (emacs.o): Depend on window.h keyboard.h keymap.h.
10717 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
10718 (bytecode.o): Depend on window.h.
10719
a24d4cb2
JR
107202003-08-31 Jason Rumney <jasonr@gnu.org>
10721
4bc2315e
JR
10722 * w32term.c (w32_per_char_metric): Allow cached metrics to be
10723 returned even when font_type is unknown.
10724
a24d4cb2
JR
10725 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
10726
9d35adc7
JD
107272003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10728
10729 * xterm.c (x_term_init): Initialize new fields in x_display_info.
10730
10731 * xterm.h (struct x_display_info): Add red/green/blue_bits and
10732 *_offset.
10733
10734 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
10735 calculate pixel value.
10736
6f68b035
GM
107372003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
10738
0930c1a1
SM
10739 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
10740 Don't tell redisplay display is accurate when it's actually been
10741 paused for pending input.
6f68b035 10742
4828b4d7
RS
107432003-08-29 Richard M. Stallman <rms@gnu.org>
10744
10745 * dispnew.c (adjust_glyph_matrix): Call window_box
10746 whenever W is nonzero.
10747
10748 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10749 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 10750 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
10751 Use indirect_variable to trace thru variable aliases.
10752
10753 * config.in: Updated.
10754
10755 * callint.c (Fcall_interactively): Save and restore
10756 Vthis_command, Vthis_original_command, real_this_command,
10757 and current_kboard->Vlast_command.
10758
10759 * abbrev.c (Fexpand_abbrev): Insert before deleting.
10760
e019878d
GM
107612003-08-29 Gerd Moellmann <gerd@gnu.org>
10762
10763 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
10764
85478bc6
KH
107652003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
10766
0930c1a1 10767 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
10768 (decode_coding_sjis_big5): Likewise.
10769
07ce82d3
JR
107702003-08-27 Jason Rumney <jasonr@gnu.org>
10771
d3703de3
JR
10772 * w32.c (sys_pipe): Protect against file descriptor overflow.
10773
ee4a01d1
JR
10774 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
10775
07ce82d3
JR
10776 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
10777
a64387ee 107782003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
10779
10780 * xfns.c (Vgtk_version_string): New variable.
10781 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
10782
a6eeaa81 107832003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 10784
0930c1a1 10785 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 10786
5459e42a
EZ
10787 * Makefile.in (msdos.o): Depend on intervals.h.
10788
0930c1a1 10789 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 10790
231d6cfb
JD
107912003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10792
10793 * xterm.h (struct x_display_info): New fields: client_leader_window
10794 and Xatom_wm_client_leader.
10795
10796 * xterm.c (x_initialize): Move call to x_session_initialize to ...
10797 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
10798
10799 * xsmfns.c (create_client_leader_window): New function.
10800 (x_session_initialize): Call create_client_leader_window, take
10801 dpyinfo as argument.
10802
10803 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
10804
10805 * Makefile.in (xsmfns.o): Add more depenedencies.
10806
afa88464
DL
108072003-08-21 Dave Love <fx@gnu.org>
10808
10809 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
10810
f730033e
KH
108112003-08-21 Kenichi Handa <handa@m17n.org>
10812
10813 * term.c (term_init): Fix previous change; don't rely on the
10814 length of `buffer' if TERMINFO is defined.
10815
6dca786c
DL
108162003-08-20 Dave Love <fx@gnu.org>
10817
10818 * atimer.h: Include lisp.h.
10819
10820 * lisp.h (EMACS_LISP_H): New.
10821 (popup_activated_flag): Don't declare.
10822
10823 * alloca.c: Some merging with gnulib. Change logic and doc
10824 concerning (x)malloc/(x)free -- no longer Emacs-specific.
10825 [DO_BLOCK_INPUT]: Don't include lisp.h.
10826 (xmalloc, xfree): Declare.
10827 (malloc): Don't declare.
10828
0930c1a1 10829 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
10830 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
10831 atimer.h, blockinput.h.
10832
10833 * alloc.c (lisp_align_malloc): Change type of `aligned'.
10834
78819ebb 10835 * alloca.s: Remove.
6dca786c 10836
3a06a6d9
RS
108372003-08-19 Gerd Moellmann <gerd@gnu.org>
10838
10839 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
10840 use -lncurses.
10841
10842 * term.c (term_init): Use a buffer of size 4096 for tgetent since
10843 FreeBSD returns something longer than 2044. Abort if the end of
10844 the buffer is overwritten.
10845
27eeee55
MB
108462003-08-19 Miles Bader <miles@gnu.org>
10847
10848 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
10849
2f297815
GM
108502003-08-19 Gerd Moellmann <gerd@gnu.org>
10851
f4446bbf
GM
10852 * alloc.c (lisp_align_malloc): Check for memory full when
10853 allocating ablocks, which also avoids freeing a pointer into an
10854 ablocks structure.
10855
10856 * puresize.h (BASE_PURESIZE): Increase to 1100000.
10857
0930c1a1 10858 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 10859
0e7d7aae
RS
108602003-08-16 Richard M. Stallman <rms@gnu.org>
10861
10862 * editfns.c (Fencode_time): Doc fix.
10863
108642003-08-16 David Ponce <david@dponce.com>
10865
10866 * fileio.c (Fwrite_region): Fix conditional expression to issue
10867 the right message.
10868
b6189c3b 108692003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
10870
10871 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 10872 Set default value to 1.
0e7d7aae 10873
5d551295
KH
108742003-08-15 Kenichi Handa <handa@m17n.org>
10875
10876 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
10877 what autoscaled.
10878 (best_matching_font): Once we find a better scalable font, set
10879 non_scalable_has_exact_height_p to 1.
10880 (try_font_list): Call try_alternative_families to try any family
10881 with the given registry.
10882
1661e56b
AS
108832003-08-09 Andreas Schwab <schwab@suse.de>
10884
f29181dc
AS
10885 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
10886
1661e56b
AS
10887 * print.c (print_string): Fix printing of multibyte string with
10888 nontrivial printcharfun.
10889
465aa50a
JD
108902003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10891
10892 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
10893
10894 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
10895
e430e5ba
KH
108962003-07-31 Kenichi Handa <handa@m17n.org>
10897
10898 * process.c (read_process_output): Return the actually read bytes
10899 instead of the result of decoding.
10900
97e7188e
KH
109012003-07-31 Kenichi Handa <handa@m17n.org>
10902
10903 * xterm.h (struct x_bitmap_record): New member have_mask.
10904
10905 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
10906 to 0.
10907 (x_create_bitmap_from_file): Likewise.
10908 (x_destroy_bitmap): Check have_mask member before freeing a mask.
10909 (x_destroy_all_bitmaps): Likewise.
10910 (x_create_bitmap_mask): Set have_mask member to 1.
10911
b53094d6
RS
109122003-07-30 Richard M. Stallman <rms@gnu.org>
10913
10914 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
10915
631f2082
JD
109162003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10917
10918 * gtkutil.c (xg_mark_data): Update calls to mark_object.
10919
c855f2ca
RS
109202003-07-29 Richard M. Stallman <rms@gnu.org>
10921
10922 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
10923 Conditionalize XIM code on HAVE_XIM.
10924
10925 * fns.c (Fclear_string): New function.
10926 (syms_of_fns): defsubr it.
10927
b6189c3b 109282003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 10929
0930c1a1 10930 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 10931
29ea8ae9
SM
109322003-07-22 Stefan Monnier <monnier@cs.yale.edu>
10933
10934 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
10935
10936 * buffer.c (delete_all_overlays): New function.
10937 * buffer.h (delete_all_overlays): Declare.
10938 * coding.c (run_pre_post_conversion_on_str):
10939 * print.c (temp_output_buffer_setup):
10940 * fileio.c (Finsert_file_contents):
10941 * minibuf.c (get_minibuffer): Use it.
10942
1dd7ccf2
AC
109432003-07-22 Andrew Choi <akochoi@shaw.ca>
10944
10945 * unexmacosx.c (unexec_regions_sort_compare):
10946 (unexec_regions_merge): New functions. Sort and merge unexec
10947 regions before dumping them.
10948
f57bd967
DL
109492003-07-22 Dave Love <fx@gnu.org>
10950
10951 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
10952
7cdee936
SM
109532003-07-21 Stefan Monnier <monnier@cs.yale.edu>
10954
10955 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
10956 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
10957 MARKBIT as the gcmarkbit for strings.
10958
e50886d3
RS
109592003-07-21 Richard M. Stallman <rms@gnu.org>
10960
10961 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
10962
29ea8ae9 10963 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
10964 (syms_of_fns): Corresponding change.
10965
10966 * alloc.c (syms_of_alloc): Doc fixes.
10967
109682003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
10969
10970 * s/netbsd.h: Use -Wl syntax.
10971
fdc39b59
RS
109722003-07-17 Richard M. Stallman <rms@gnu.org>
10973
10974 * xterm.c (xim_initialize): Redo 6/24 change.
10975
9c53385f
SM
109762003-07-15 Stefan Monnier <monnier@cs.yale.edu>
10977
10978 * buffer.c (copy_overlays): Use EMACS_INT for positions.
10979 (Fswitch_to_buffer): Don't signal an error when switching to the same
10980 buffer in a dedicated window.
10981
10982 * alloc.c: Use bitmaps for cons, as was done for floats.
10983 (init_float, init_cons): Let the normal code allocate the first block.
10984 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
10985 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
10986 New macros.
10987 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
10988 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
10989 (live_cons_p): Check the pointer is not past the `conses' array.
10990 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
10991 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
10992 (survives_gc_p): Use CONS_MARKED_P and simplify.
10993 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
10994
dde13196
PE
109952003-07-13 Paul Eggert <eggert@twinsun.com>
10996
10997 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
10998 puts it into BSS instead, at least on Solaris 8 and 9.
10999 This is a valid optimization, and it may occur on other platforms,
11000 so Emacs should not assume that initializing a static variable to
11001 zero puts it into data.
11002 * alloc.c (pure, staticvec):
11003 Initialize these arrays to nonzero, so that they're not
11004 put into BSS by that optimization.
11005
a801bc34
SM
110062003-07-13 Stefan Monnier <monnier@cs.yale.edu>
11007
11008 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
11009 (lisp_align_malloc): Use posix_memalign is available.
11010 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
11011 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
11012 for consistency. Update users.
11013
0c8b2afa
RS
110142003-07-13 Richard M. Stallman <rms@gnu.org>
11015
11016 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
11017
668c2ab0
JB
110182003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
11019
11020 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
11021 and use the Gtk+ function gtk_window_icon_from_file if available.
11022
11023 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
11024 handle mask of bitmaps.
11025 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
11026 mask property.
11027 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
11028
11029 * xterm.h (xg_set_icon): New function.
11030
800bebe3
RS
110312003-07-12 Paul Eggert <eggert@twinsun.com>
11032
11033 * unexelf.c (unexec): Consider a section to precede the .bss
11034 section if its addresses overlap that of .bss.
11035
69e38995
RS
110362003-07-12 Richard M. Stallman <rms@gnu.org>
11037
11038 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
11039
11040 * config.in (HAVE_CRTIN): Add #undef.
11041 (INLINE): Really inline only if OPTIMIZE is defined.
11042
11043 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
11044 END_FILES_1.
11045 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 11046 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
11047
11048 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
11049 (TERMINFO): Define.
11050 (LIBS_TERMCAP): Define.
11051 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
11052
11053 * xfns.c: Include libpng/png.h instead of png.h.
11054
f1d0c238
AS
110552003-07-11 Andreas Schwab <schwab@suse.de>
11056
11057 * buffer.c (modify_overlay): Update prototype.
11058 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
11059 Likewise.
11060
5f6bf5fe
SM
110612003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11062
11063 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
11064 (struct interval): Move to intervals.h.
11065 (struct Lisp_Marker): Use EMACS_INT for position info.
11066 (forward_point): Remove prototype of defunct function.
11067 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
11068 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
11069 (syms_of_textprop, set_text_properties): Remove prototypes that are
11070 already in intervals.h.
11071
11072 * intervals.h (struct interval): Move from lisp.h.
11073 Use EMACS_INT for position and size info.
11074
11075 * coding.c: Include intervals.h for Fset_text_properties.
11076
11077 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11078 position and length information.
11079
2765b457
SM
110802003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11081
11082 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11083 position and length information.
11084
2410d73a
SM
110852003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11086
11087 Change overlays_after and overlays_before so the overlays themselves
11088 are linked into lists, rather than using cons cells. After all each
11089 Lisp_Misc already occupies 5 words, so we can add a `next' field to
11090 Lisp_Overlay for free and save up one cons cell per overlay (not
11091 to mention one indirection when traversing the list of overlay).
11092
11093 * lisp.h (struct Lisp_Overlay): New field `next'.
11094
11095 * buffer.h (struct buffer): Change overlays_before and overlays_after
11096 from Lisp lists of overlays to pointers to overlays.
11097
11098 * buffer.c (overlay_strings, recenter_overlay_lists):
11099 Fix typo in eassert in last commit.
11100 (unchain_overlay): New function.
11101 (add_overlay_mod_hooklist): Use AREF.
11102 (copy_overlays, reset_buffer, overlays_at, overlays_in)
11103 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
11104 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
11105 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
11106 (report_overlay_modification, evaporate_overlays, init_buffer_once):
11107 Adjust to new type of overlays_(before|after).
11108
11109 * alloc.c (mark_object): Mark the new `next' field of overlays.
11110 (mark_buffer): Manually mark the overlays_(after|before) fields.
11111
11112 * coding.c (run_pre_post_conversion_on_str):
11113 * editfns.c (overlays_around):
11114 * xdisp.c (load_overlay_strings):
11115 * fileio.c (Finsert_file_contents):
11116 * indent.c (current_column):
11117 * insdel.c (signal_before_change, signal_after_change):
11118 * intervals.c (set_point_both):
11119 * print.c (temp_output_buffer_setup): Use new type for
11120 overlays_(before|after).
11121
04812929
SM
111222003-07-08 Stefan Monnier <monnier@cs.yale.edu>
11123
11124 * buffer.c (report_overlay_modification): Don't run hooks while
11125 traversing the list of overlays.
11126
11127 * buffer.h (struct buffer): Use an int for overlay_center.
11128 (overlays_at, evaporate_overlays, recenter_overlay_lists)
11129 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11130
11131 * buffer.c (reset_buffer, recenter_overlay_lists)
11132 (adjust_overlays_for_insert, adjust_overlays_for_delete)
11133 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
11134 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
11135 (overlays_at, evaporate_overlays, recenter_overlay_lists)
11136 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11137
11138 * xdisp.c (fast_find_position): Remove unused var.
11139
11140 * cmds.c (Qexpand_abbrev): New sym.
11141 (syms_of_cmds): Initialize it.
11142 (internal_self_insert): Use it to call expand-abbrev.
11143
2e7ecf15
KS
111442003-07-09 Kim F. Storm <storm@cua.dk>
11145
f9711de4 11146 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 11147 was configured with --without-xim.
42f81f64 11148 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 11149
c6de56a0
RS
111502003-07-07 Richard M. Stallman <rms@gnu.org>
11151
11152 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
11153
11154 * alloc.c (Fgarbage_collect): Doc fix.
11155
b6189c3b 111562003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
11157
11158 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
11159
bfe1a3f7
SM
111602003-07-06 Stefan Monnier <monnier@cs.yale.edu>
11161
04812929
SM
11162 * minibuf.c (read_minibuf): UNGCPRO before returning.
11163 (Ftry_completion, Fall_completions): Doc fix.
11164
bfe1a3f7
SM
11165 * alloc.c (live_float_p): Check that p is not past the `floats' array,
11166 now that `floats' is not the last element of the struct any more.
11167
ee79d1aa
JR
111682003-07-06 Jason Rumney <jasonr@gnu.org>
11169
11170 * w32term.h (ClipboardSequence_Proc): New type.
11171
11172 * w32fns.c (clipboard_sequence_fn): New variable.
11173 (globals_of_w32fns): Initialize it.
11174
11175 * w32select.c (last_clipboard_sequence_number): New variable.
11176 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
11177 number if possible.
11178
49723c04
SM
111792003-07-06 Stefan Monnier <monnier@cs.yale.edu>
11180
4698665f
SM
11181 * m/amdx86-64.h (MARKBIT):
11182 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
11183 MARKBIT and ARRAY_MARK_FLAG any more.
11184
11185 * m/hp800.h (XSETMARKBIT):
11186 * m/sr2k.h (XSETMARKBIT):
11187 * lisp.h (XSETMARKBIT): Remove unused macro.
11188
49723c04
SM
11189 * lisp.h (mark_object): Change prototype.
11190
11191 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
11192 (last_marked): Change accordingly.
11193 (mark_interval, mark_maybe_object, mark_maybe_pointer)
11194 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
11195 (mark_buffer): Update calls to mark_object.
11196
11197 * bytecode.c (mark_byte_stack):
11198 * fns.c (sweep_weak_table):
11199 * keyboard.c (mark_kboards): Update calls to mark_object.
11200
1d660eca
JR
112012003-07-06 Jason Rumney <jasonr@gnu.org>
11202
11203 * alloc.c (struct ablock): Only include padding when there is some.
11204
618b5ae4
SM
112052003-07-04 Stefan Monnier <monnier@cs.yale.edu>
11206
11207 * alloc.c (ALIGN): Add casts to simplify usage.
11208 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
11209 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
11210 (struct ablock, struct ablocks): New types.
11211 (free_ablock): New global var.
11212 (lisp_align_malloc, lisp_align_free): New functions.
11213 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
11214 (struct float_block): Reorder and add gcmarkbits.
11215 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
11216 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
11217 (init_float, make_float): Use lisp_align_malloc.
11218 (free_float, live_float_p): Don't use `type' any more.
11219 (make_float): Use FLOAT_UNMARK to access to mark bit.
11220 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
11221 Use FLOAT_MARKED_P to access the mark bit.
11222 (pure_alloc): Simplify use of ALIGN.
11223 (mark_object): Use FLOAT_MARK to access the mark bit.
11224 (gc_sweep): Use new macros to access the float's mark bit.
11225 (init_alloc_once): Init free_ablock.
11226
11227 * lisp.h (struct Lisp_Float): Remove unused field `type'.
11228
3ef06d12
SM
112292003-06-27 Stefan Monnier <monnier@cs.yale.edu>
11230
11231 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
11232 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
11233 (allocate_buffer): Move.
11234 (string_bytes): Don't mask markbit of `size_byte'.
11235 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11236 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
11237 Use the `size' field of buffers (rather than the `name' field) for
11238 the mark bit, as is done for all other vectorlike objects.
11239 Use the new macros to access the mark bit of vectorlike objects.
11240
e81043aa
RS
112412003-06-26 Richard M. Stallman <rms@gnu.org>
11242
11243 * puresize.h (BASE_PURESIZE): Increment base size.
11244
11245 * xdisp.c (fast_find_position): Enable Gerd's new definition.
11246
11247 * xterm.c (xim_initialize): Undo previous change.
11248
2d0834cc
SM
112492003-06-26 Stefan Monnier <monnier@cs.yale.edu>
11250
11251 * alloc.c (survives_gc_p): Simplify.
11252
11253 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
11254
11255 * window.c (Fset_window_dedicated_p): Simplify.
11256 (display_buffer_1): Don't raise the win from which minibuf was entered.
11257 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
11258 (Fminibuffer_selected_window): Simplify.
11259
11260 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
11261
11262 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
11263 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
11264
11265 * insdel.c (check_markers, adjust_markers_for_delete)
11266 (adjust_markers_for_insert, adjust_markers_for_replace)
11267 (prepare_to_modify_buffer, RESTORE_VALUE):
11268 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
11269 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
11270 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
11271 * alloc.c (Fmake_marker, free_marker, gc_sweep):
11272 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
11273 * editfns.c (save_excursion_restore, transpose_markers):
11274 * window.c (delete_window):
11275 * xdisp.c (message_dolog): Update for new types.
11276
d54ae3d8
JD
112772003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11278
a5f696ac
JD
11279 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
11280 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 11281 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
11282
11283 * frame.c (make_frame): Initialize default_face_done_p.
11284
11285 * frame.h (struct frame): Add default_face_done_p.
11286
d54ae3d8
JD
11287 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
11288 will be defined.
11289
2336fe58
SM
112902003-06-25 Stefan Monnier <monnier@cs.yale.edu>
11291
11292 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
11293 Initialize the new field `gcmarkbit'.
11294 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
11295 (mark_interval_tree): Don't mark the tree separately from the nodes.
11296 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
11297 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11298 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
11299
11300 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
11301 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
11302 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
11303 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
11304 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
11305
bcea31c2
DL
113062003-06-24 Dave Love <fx@gnu.org>
11307
11308 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
11309
11310 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
11311 from gnulib.
11312
2601f59e
RS
113132003-06-21 Richard M. Stallman <rms@gnu.org>
11314
11315 * fileio.c (Fwrite_region): Alternate messages
11316 for append and partial write.
11317
11318 * keyboard.c (read_key_sequence): When converting upcase fn key to
11319 downcase, update fkey and keytran so `backspace' gets translated.
11320
11321 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
11322
11323 * process.c (wait_reading_process_input): Don't signal SIGIO
11324 in batch mode.
11325
b5d2c621
KH
113262003-06-17 Kenichi Handa <handa@m17n.org>
11327
11328 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
11329 composite.h.
11330
11331 * xselect.c: Don't include charset.h, coding.h, composite.h.
11332 (Qforeign_selection): New variable.
11333 (syms_of_xselect): Intern and static it.
11334 (selection_data_to_lisp_data): Return a unibyte string made from
11335 data with `foreign-selection' text property.
11336
6793bc63
SM
113372003-06-15 Stefan Monnier <monnier@cs.yale.edu>
11338
11339 * termhooks.h (EVENT_INIT): New macro.
11340
11341 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
11342
11343 * alloc.c (mark_kboards): Move to keyboard.c.
11344
11345 * keyboard.c (record_asynch_buffer_change, read_avail_input):
11346 * xterm.c (x_dispatch_event):
11347 * xmenu.c (find_and_call_menu_selection):
11348 * xdisp.c (handle_tool_bar_click):
11349 * w32menu.c (menubar_selection_callback):
11350 * sysdep.c (kbd_input_ast, read_input_waiting):
11351 * msdos.c (dos_rawgetc):
11352 * macterm.c (mac_check_for_quit_char):
11353 * macmenu.c (menubar_selection_callback):
11354 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
11355 data to kbd_buffer_store_event.
11356
b3ea810c
KS
113572003-06-15 Kim F. Storm <storm@cua.dk>
11358
11359 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 11360 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 11361
b8f75eda
KG
113622003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11363
11364 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
11365
ba92ce48
KH
113662003-06-12 Kenichi Handa <handa@m17n.org>
11367
11368 * fileio.c (Fwrite_region): Save and restore restriction.
11369
b80263be
DL
113702003-06-12 Dave Love <fx@gnu.org>
11371
11372 * alloca.c (alloca): Declare arg as size_t.
11373
6793bc63
SM
11374 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
11375 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 11376
b23c0a83
DL
113772003-06-11 Dave Love <fx@gnu.org>
11378
11379 * search.c (shrink_regexp_cache): Use xrealloc.
11380 (syms_of_search): Use xmalloc.
11381
700e47c2
KS
113822003-06-10 Kim F. Storm <storm@cua.dk>
11383
11384 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
11385 Adjust phys_cursor.x to be relative to window box, rather than
11386 text area before checking -- to ensure cursor is redrawn when
11387 exposing window.
11388 Note: This also fixes a similar (older) bug if display margins
11389 are present.
11390
f11aa0b2
KH
113912003-06-06 Kenichi Handa <handa@m17n.org>
11392
11393 * coding.c (encoding_buffer_size): If coding->type is
11394 coding_type_ccl, double magnification on CRLF encoding.
11395
3d143690
JR
113962003-06-06 Jason Rumney <jasonr@gnu.org>
11397
11398 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
11399 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
11400
11401 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
11402 Mac too.
11403
f16205ca
DL
114042003-06-05 Dave Love <fx@gnu.org>
11405
b23c0a83
DL
11406 * strftime.c: Merge changes from gnulib.
11407
f16205ca
DL
11408 * mktime.c (__mktime_internal): Merge changes from gnulib
11409 involving year 69 and dst2.
11410
11411 Changes to merge with gnulib version and be consistent with the
11412 autoconf test:
11413
6793bc63
SM
11414 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
11415 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
11416 [HAVE_LOCALE_H]: Include locale.h.
11417 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
11418
9b87a0bc
KS
114192003-06-05 Kim F. Storm <storm@cua.dk>
11420
11421 * window.c (coordinates_in_window): Convert X and Y to window
11422 relative coordinates inside mode-line and header-line parts.
11423 Convert X and Y to margin area relative coordinates inside left
11424 and right display margin parts.
11425
5a8a15ec
JR
114262003-06-05 Jason Rumney <jasonr@gnu.org>
11427
11428 * w32fns.c (add_system_logical_colors_to_map): New function.
11429 (Fx_open_connection): Use it.
11430
01ed8ff1
SM
114312003-06-04 Stefan Monnier <monnier@cs.yale.edu>
11432
11433 * process.c (allocate_pty): Revert part of the previous patch.
11434 (Faccept_process_output): Simplify.
11435
b427b65d
JR
114362003-06-04 Jason Rumney <jasonr@gnu.org>
11437
11438 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
11439
11440 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
11441 (lispy_mouse_wheel_names): Remove.
11442 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
11443 Always define drag_and_drop_syms.
11444
11445 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
11446 WHEEL_EVENT events.
11447
914a8c47
SM
114482003-06-03 Stefan Monnier <monnier@cs.yale.edu>
11449
01ed8ff1
SM
11450 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
11451
914a8c47
SM
11452 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
11453
adcb132c
JD
114542003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11455
11456 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
11457 menu item label.
11458
be781fa7
RS
114592003-06-03 Richard M. Stallman <rms@gnu.org>
11460
11461 * window.c (Fwindow_edges): Doc fix.
11462 (Fwindow_pixel_edges, Fwindow_inside_edges)
11463 (Fwindow_inside_pixel_edges): New functions.
11464 (syms_of_window): defsubr them.
11465
11466 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
11467 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
11468
914a8c47
SM
114692003-06-02 Stefan Monnier <monnier@cs.yale.edu>
11470
11471 * dispnew.c (Fsit_for): Don't lie about the number of args.
11472
5b07197a
DL
114732003-06-02 Dave Love <fx@gnu.org>
11474
11475 * callproc.c: Use HAVE_FCNTL_H, not USG5.
11476 (syms_of_callproc) <process-environment>: Doc fix.
11477
11478 * doc.c: Use HAVE_FCNTL_H, not USG5.
11479
11480 * xfaces.c (font_rescale_ratio): Fix for K&R.
11481
11482 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
11483
11484 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
11485
11486 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
11487
11488 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
11489 (xg_create_frame_widgets): Use ENCODE_UTF_8.
11490
d7107586 11491 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
11492
11493 * xmenu.c (ENCODE_MENU_STRING): New.
11494 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
11495 Use it.
11496
11497 * coding.h (ENCODE_UTF_8): New.
11498 (Qutf_8): Declare.
11499
11500 * coding.c (Qutf_8): New.
11501 (syms_of_coding): Intern it.
11502
11503 * fns.c: Doc fixes.
11504
7335b336
KH
115052003-06-02 Kenichi Handa <handa@m17n.org>
11506
11507 * buffer.c (Fset_buffer_multibyte): Fix previous change.
11508
914a8c47
SM
115092003-06-01 Stefan Monnier <monnier@cs.yale.edu>
11510
11511 * lread.c (openp): Make sure STR is a string.
11512
9862c135
JR
115132003-06-01 David Ponce <david@dponce.com>
11514
cab27d04 11515 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
11516 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
11517
11518 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
11519 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
11520 (discard_mouse_events): Discard WHEEL_EVENT events too.
11521 (lispy_wheel_names, wheel_syms): New.
11522 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 11523 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 11524 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
11525
11526 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
11527 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11528 WHEEL_EVENT events.
11529
f984e73e
JPW
115302003-05-31 John Paul Wallington <jpw@gnu.org>
11531
11532 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
11533 timer are in lisp/emacs-lisp.
11534
1efcd78f
KH
115352003-05-31 Kenichi Handa <handa@m17n.org>
11536
458c8af4
KH
11537 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
11538 region when a buffer is changed to unibyte.
11539
1efcd78f
KH
11540 * charset.h (VALID_LEADING_CODE_P): New macro.
11541 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
11542
778e2804
KH
11543 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
11544 is nonzero, accept multibyte form of eight-bit-control chars.
11545 (decode_composition_emacs_mule): Likewise.
11546 (decode_coding_emacs_mule): Likewise.
11547 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
11548 multibyte form of eight-bit-control chars.
11549
11550 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
11551 (Finsert_file_contents): If coding-system-for-read is bound to
11552 Qauto_save_coding, use the coding system emacs-mule with special
11553 setting for recovering a file.
11554 (choose_write_coding_system): On auto saving, use the coding
11555 system emacs-mule with special setting for auto saving.
11556 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
11557
034060e4
KH
115582003-05-30 Kenichi Handa <handa@m17n.org>
11559
11560 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
11561 properly before calling ccl_driver.
11562
778e2804 11563 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 11564
cab27d04 11565 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
11566 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
11567 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
11568
595f5aa5
GM
115692003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
11570
11571 * xfaces.c (realize_default_face): Do not abort if lface is
11572 non-existent - reverts change from 2003-05-19.
11573
103e0180
KH
115742003-05-29 Kenichi Handa <handa@m17n.org>
11575
11576 * coding.c (decode_coding_iso2022): Pay attention to the byte
11577 sequence of CTEXT extended segment, and retain those bytes as is.
11578
115792003-05-28 Kenichi Handa <handa@m17n.org>
11580
cab27d04 11581 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
11582 of CODING_REPLACEMENT_CHARACTER.
11583 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
11584 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
11585 check this flag on encoding.
cab27d04
SM
11586 (encode_coding_sjis_big5):
11587 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
11588 (Fset_terminal_coding_system_internal):
11589 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
11590 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
11591
11592 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
11593 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
11594 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
11595
ff6a3bfb 115962003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 11597
ff6a3bfb
RS
11598 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
11599
11600 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 11601
1963c428
KS
116022003-05-28 Kim F. Storm <storm@cua.dk>
11603
11604 * xdisp.c (expose_window): Fix error in calculation of
11605 window relative coordinates of area to redisplay.
11606
2b5d4601
JR
116072003-05-27 Jason Rumney <jasonr@gnu.org>
11608
11609 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
11610
1c64a4a2
JB
116112003-05-27 David Ponce <david@dponce.com>
11612
11613 Handle W32 mouse wheel events as mouse click events, like in X.
11614
11615 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
11616 MOUSE_WHEEL_EVENT anymore.
11617
11618 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
11619 Scrolling down/up the mouse wheel is respectively mapped to mouse
11620 button 4 and 5.
11621 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
11622 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
11623 WM_MOUSEWHEEL events.
11624
2d031b89
AS
116252003-05-27 Andreas Schwab <schwab@suse.de>
11626
20464fdf
AS
11627 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
11628
2d031b89
AS
11629 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
11630 partially visible line.
11631
11632 * alloc.c (Fgarbage_collect): Fix last change.
11633
97bc76d4
JPW
116342003-05-26 John Paul Wallington <jpw@gnu.org>
11635
11636 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
11637
56613f06
SM
116382003-05-25 Stefan Monnier <monnier@cs.yale.edu>
11639
11640 * window.c (Fset_window_buffer): Add type of `keep_margins'.
11641 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
11642
11643 * window.h (window_box_text_cols): Declare.
11644
11645 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
11646 (x_draw_vertical_border): Remove unused var `f'.
11647
11648 * xfaces.c (build_scalable_font_name): Remove `unused var
11649 pixel_size' warning.
11650
11651 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
11652
11653 * unexelf.c (unexec): Remove `unused var n' warning.
11654
11655 * strftime.c (my_strftime_localtime_r): Remove `defined but
11656 unused' warning.
11657
11658 * process.c (allocate_pty): Remove `unused var stb' and
11659 `cp might be used uninitialized' warnings.
11660
11661 * dispnew.c (mode_line_string): Remove unused var `f'.
11662
11663 * coding.c (find_safe_codings): Remove unused var `i'.
11664
11665 * bytecode.c (Fbyte_code): Remove `unused val' warning.
11666
11667 * buffer.c (Fkill_buffer): Remove unused var `list'.
11668
11669 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
11670
93421a1f
JD
116712003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11672
11673 * frame.c (make_frame): Condition want_fullscreen with
11674 HAVE_WINDOW_SYSTEM.
11675
c4b8aebc
JB
116762003-05-25 Juanma Barranquero <lektu@terra.es>
11677
11678 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
11679 (Fwindow_scroll_bars): Fix typo in docstring.
11680
0416870b
KS
116812003-05-24 Kim F. Storm <storm@cua.dk>
11682
11683 The following changes serve several purposes:
11684
11685 1) Swap the position of fringes and display margins in windows, i.e.
11686 the fringes are now displayed between the margins and the text area
11687 (by default).
11688
11689 2) Allow fringe and scroll bar parameters to be set per-buffer and
11690 per-window (like display margins). Such settings are now stored
11691 in window configurations, preserved when frames are resized, and
9018a88e 11692 copied when windows are split vertically or horizontally.
0416870b
KS
11693 Several bugs related to display margins have been fixed.
11694
11695 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 11696
0416870b
KS
11697 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
11698 rather than FRAME_WIDTH (FRAME_FONT (f)).
11699
11700 5) Introduce a consistent naming of variables, members and macros
11701 depending on whether their value is measured in pixels or in
11702 canonical columns/lines. Pixel dimensions are named *_width and
11703 *_height, while canonical columns/lines are named *_cols and
11704 *_lines. Pixel positions are named *_x and *_y, while column/line
11705 positions are named *_col and *_line.
11706
11707 6) Consolidate more of the X, W32, and MAC gui code by moving
11708 common data into struct frame, and generalize it for the non-gui
11709 case by using suitable defaults.
11710
11711 7) Cleanup and consolidate the macros controlling frame and window
11712 layout into frame.h and window.h, and generalize the use of the
11713 various window_box_* functions (enhanced to handle the new fringe
11714 position and the per-window fringe and scroll bar settings).
11715
11716 * frame.h (struct frame): Rename members height to text_lines,
11717 width to text_cols, window_height to total_lines, window_width to
11718 total_cols, new_height to new_text_lines, new_width to
11719 new_text_cols. All uses changed.
11720 (struct frame): New members which consolidate common members of
11721 x_output, w32_output, and mac_output structures: left_pos,
11722 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
11723 win_gravity, size_hint_flags, border_width, internal_border_width,
11724 line_height, fringe_cols, left_fringe_width, right_fringe_width,
11725 want_fullscreen. All uses changed.
11726 (struct frame): New member column_width contaning the canonical
11727 column width, analogue to line_height. All uses changed.
11728 (struct frame): Rename members scroll_bar_pixel_width to
11729 config_scroll_bar_width, and scroll_bar_cols to
11730 config_scroll_bar_cols. All uses changed.
11731 (struct frame): New member scroll_bar_actual_width which
11732 consolidates and renames the vertical_scroll_bar_extra member of
11733 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 11734 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
11735 from x/w32/macterm.h files. All uses changed. Also change code
11736 which referred to f->output_data...->pixel_height.
cab27d04 11737 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 11738 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 11739 which referred to f->output_data...->pixel_width.
cab27d04 11740 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 11741 Also change code which referred to f->height.
cab27d04 11742 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
11743 Also change code which referred to f->width.
11744 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
11745 to update new_text_lines and new_text_cols members directly.
cab27d04 11746 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 11747 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 11748 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
11749 FRAME_SCROLL_BAR_COLS. All uses changed.
11750 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 11751 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
11752 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
11753 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
11754 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
11755 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
11756 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
11757 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
11758 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
11759 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
11760 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
11761 Unconditionally return line_height member (it now has proper value
11762 also for non-window frames).
11763 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
11764 return new column_width member (rather than the default font width).
11765 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 11766 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
11767 from x/w32/macterm.h files. Unconditionally return corresponding
11768 member of frame structure (they now have proper values also for
11769 non-window frames).
cab27d04 11770 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
11771 Calculate return value from left and right widths.
11772 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
11773 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
11774 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
11775 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
11776 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
11777 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
11778 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 11779 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11780 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 11781 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 11782 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 11783 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11784 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 11785 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 11786 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 11787 consolidated from x/mac/w32term.h.
cab27d04 11788 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 11789 consolidated from x/mac/w32term.h.
cab27d04 11790 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 11791 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 11792 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
11793 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
11794
11795 * window.h (struct window): Rename members left to left_col,
11796 top to top_line, height to total_lines, width to total_cols,
11797 left_margin_width to left_margin_cols, right_margin_width to
11798 right_margin_cols, orig_height to orig_total_lines, orig_top to
11799 orig_top_line. All uses changed.
11800 (struct window): New members left_fringe_width, right_fringe_width,
11801 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
11802 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
11803 New macros primarily used to simplify other macros.
11804 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
11805 referred to XINT (w->width).
11806 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
11807 referred to XINT (w->height).
11808 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
11809 referred to XINT (w->width) * canon_x_unit.
11810 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
11811 referred to XINT (w->height) * canon_y_unit.
11812 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
11813 referred to XINT (w->left).
cab27d04 11814 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
11815 all uses and code that referred to XINT (w->left) + XINT (w->width).
11816 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
11817 referred to XINT (w->top).
11818 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
11819 referred to XINT (w->top) + XINT (w->height).
11820 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
11821 referred to XINT (w->left) * canon_x_unit.
11822 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
11823 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
11824 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
11825 referred to XINT (w->top) * canon_y_unit.
11826 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
11827 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
11828 (WINDOW_LEFTMOST_P): New macro.
cab27d04 11829 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 11830 All uses changed.
cab27d04 11831 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 11832 All uses changed.
cab27d04 11833 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
11834 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
11835 Do not exclude left fringe width.
cab27d04 11836 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
11837 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
11838 Do not exclude fringe widths.
11839 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
11840 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
11841 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
11842 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
11843 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
11844 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
11845 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
11846 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
11847 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
11848 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
11849 New macros. Change code which referenced corresponding
11850 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
11851 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
11852 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
11853 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
11854 allow per-window scroll-bar settings.
11855 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
11856 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
11857 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
11858 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
11859 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
11860 FRAME_SCROLL_BAR_WIDTH.
11861 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 11862 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 11863 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 11864 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 11865 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 11866 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 11867 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
11868 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
11869 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11870 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
11871 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
11872 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 11873 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 11874 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
11875 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
11876 (window_from_coordinates): Update prototype.
11877 (Fset_window_buffer): Update EXFUN.
11878 (set_window_buffer): Update prototype.
9018a88e 11879
0416870b 11880 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 11881 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
11882 changed.
11883 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
11884 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
11885 internal_border_width is now set to 0 for non-window frames.
11886 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
11887 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
11888 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
11889 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
11890 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
11891 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
11892 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
11893 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
11894 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 11895 Move to window.h and renamed [see window.h changes].
0416870b
KS
11896 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
11897 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
11898 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
11899 Use WINDOW_TOTAL_LINES.
0416870b
KS
11900 (frame_update_line_height): Remove prototype.
11901
11902 * buffer.h (struct buffer): Rename members measured in columns:
11903 left_margin_width to left_margin_cols, right_margin_width to
11904 right_margin_cols. All uses changed.
11905 New members left_fringe_width, right_fringe_width,
11906 fringes_outside_margins for per-buffer fringe settings.
11907 New members scroll_bar_width and vertical_scroll_bar_type for
11908 per-buffer scroll bar settings.
11909
11910 * buffer.c (init_buffer_once): Set buffer_defaults and
11911 buffer_local_flags for new buffer-local variables
11912 left_fringe_width, right_fringe_width, fringes_outside_margins,
11913 scroll_bar_width, and vertical_scroll_bar_type.
11914 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
11915 default-* variables for them.
11916
11917 * dispnew.c: Make (many) trivial substitutions for renamed and
11918 new macros in dispextern.h, frame.h and window.h.
11919 (mode_line_string): No need to adjust width for mode lines, as it
11920 is already adjusted by the caller.
11921 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 11922
0416870b
KS
11923 * frame.c: Make (many) trivial substitutions for renamed and
11924 new macros in dispextern.h, frame.h and window.h.
11925 (make_frame): Initialize left_fringe_width, right_fringe_width,
11926 fringe_cols, scroll_bar_actual_width, border_width,
11927 internal_border_width, column_width, line_height, x_pixels_diff,
11928 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
11929 members with values suitable for a non-window frames.
11930
11931 * gtkutil.c: Make (many) trivial substitutions for renamed and
11932 new macros in dispextern.h, frame.h and window.h.
9018a88e 11933
0416870b
KS
11934 * indent.c: Make (few) trivial substitutions for renamed and
11935 new macros in dispextern.h, frame.h and window.h.
11936
11937 * keyboard.c: Make (many) trivial substitutions for renamed and
11938 new macros in dispextern.h, frame.h and window.h.
11939 (make_lispy_event): Use window positions returned from
11940 window_from_coordinates when constructing the lisp event for
11941 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
11942 (incorrect) values locally.
11943 (make_lispy_movement): Use window positions returned from
11944 window_from_coordinates when constructing the lisp event, rather
11945 than calculating (incorrect) values locally.
11946
11947 * scroll.c: Make (some) trivial substitutions for renamed and
11948 new macros in dispextern.h, frame.h and window.h.
11949
11950 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
11951 scroll-bars.
11952
11953 * sysdep.c: Make (few) trivial substitutions for renamed and
11954 new macros in dispextern.h, frame.h and window.h.
11955
11956 * term.c: Make (some) trivial substitutions for renamed and
11957 new macros in dispextern.h, frame.h and window.h.
11958
11959 * widget.c: Make (few) trivial substitutions for renamed and
11960 new macros in dispextern.h, frame.h and window.h.
11961
11962 * window.c: Make (many) trivial substitutions for renamed and
11963 new macros in dispextern.h, frame.h and window.h.
11964 (make_window): Initialize new members
11965 left_margin_cols, right_margin_cols, left_fringe_width,
11966 right_fringe_width, fringes_outside_margins, scroll_bar_width,
11967 and vertical_scroll_bar_type.
cab27d04 11968 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 11969 and per-window fringes and scroll-bars.
0416870b 11970 Fix bug related to incorrectly adjusting coordinates by
9018a88e 11971 frame's internal_border_width (the effect normally negible since
0416870b
KS
11972 the internal_border_width is typically 0 or 1 pixel, but very
11973 noticeable for an internal_border_width of e.g. 25 pixels).
11974 Upon successful return (other than ON_NOTHING), the coordinates
11975 are now always properly converted to window relative for the
11976 given display element.
11977 (window_from_coordinates): Add new parameters wx and wy to
11978 return the window relative x and y position in the returned
11979 window and part. A null arg means, don't return the position.
11980 All callers changed.
11981 (adjust_window_margins): New function which may reduce the width
11982 of the display margins if a window's text area is too small after
11983 resizing or splitting windows.
11984 (size_window): Fix bug that did not account for display margin
11985 widths when checking the minimum width of a window; use
11986 adjust_window_margins.
11987 (set_window_buffer): Call Fset_window_fringes and
11988 Fset_window_scroll_bars to setup per-window elements.
11989 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
11990 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
11991 (e.g. after splitting a window or resizing the frame).
11992 All callers changed.
0416870b
KS
11993 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
11994 (Fsplit_window): Duplicate original window's display margin,
11995 fringe, and scroll-bar settings; then call Fset_window_buffer with
11996 KEEP_MARGINS non-nil. This fixes a bug which caused a split
11997 window to only preserve the display margins in one of the windows.
c4b8aebc 11998 When splitting horizontally, call adjust_window_margins on both
0416870b 11999 windows to ensure that the text area of the new windows is non too
f9711de4 12000 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
12001 width of the split window was less than the width of the display
12002 margins.
cab27d04 12003 (window_box_text_cols): Rename from window_internal_width.
9018a88e 12004 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
12005 Fix bug that caused vertical separator to be subtracted also on
12006 window frames. Fix another bug that did not reduce the returned
12007 value by the columns used for display margins.
12008 (window_scroll_line_based): Fix bug related to scrolling too much
12009 when display margins are present (implicitly fixed by the fix to
12010 window_box_text_cols).
12011 (scroll_left, scroll_right): Fix bug related to scrolling too far
12012 by default when display margins are present (implicitly fixed by
12013 the fix to window_box_text_cols).
12014 (struct saved_window): Rename members left to left_col, top to
12015 top_line, width to total_cols, height to total_lines, orig_top to
12016 orig_top_line, orig_height to orig_total_lines. All uses changed.
12017 New members left_margin_cols, right_margin_cols,
12018 left_fringe_width, right_fringe_width, fringes_outside_margins,
12019 scroll_bar_width, and vertical_scroll_bar_type for saving
12020 per-window display elements.
12021 (Fset_window_configuration): Restore display margins, fringes,
12022 and scroll bar settings. This fixes a bug which caused display
12023 margins to be discarded when saving and restoring a window
12024 configuration.
12025 (save_window_save): Save display margins, fringes, and scroll bar
12026 settings. This fixes a bug which caused display margins to be
12027 discarded when saving and restoring a window configuration.
12028 (Fset_window_margins): Do nothing if display margins are not
12029 really changed. Otherwise, call adjust_window_margins to ensure
12030 the text area doesn't get too narrow. This fixes a bug which
f9711de4 12031 could cause Emacs to trap if setting display margins wider than
0416870b
KS
12032 the width of the window.
12033 (Fset_window_fringes): New defun to allow user to specifically set
12034 this window's fringe widths and position vs. display margins.
cab27d04 12035 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
12036 (Fset_window_scroll_bars): New defun to allow user to specifically
12037 set this window's scroll bar width and position.
12038 (Fwindow_scroll_bars): New defun to return window's actual scroll
12039 bar settings.
12040 (compare_window_configurations): Also compare display margins,
12041 fringes, and scroll bar settings.
12042 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
12043
12044 * xdisp.c: Make (many) trivial substitutions for renamed and
12045 new macros in dispextern.h, frame.h and window.h.
12046 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 12047 and new fringe vs. display margin position. Note that returned
0416870b
KS
12048 value is no longer guaranteed to be a whole multiple of the frame
12049 column width, since per-window fringes may now be any width.
12050 (window_box_left_offset): New function like window_box_left, but
12051 value is relative to left border of window (rather than frame).
12052 (window_box_right_offset): New function like window_box_right,
12053 but value is relative to left border of window.
12054 (window_box_left): Adapt to per-window fringes and scroll bars,
12055 and new fringe vs. display margin position. Simplify by using
12056 WINDOW_LEFT_EDGE_X and window_box_left_offset.
12057 (window_box): Allow null args for unnecessary return values;
12058 change/simplify relevant callers.
12059 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
12060 and new fringe vs. display margin position.
12061 Use window_box_left_offset and window_box_right_offset
0416870b 12062 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
12063 scroll bars, and new fringe vs. display margin position.
12064 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
12065 (draw_fringe_bitmap): Rework to handle per-window fringes and new
12066 fringe vs. display margin position.
12067 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
12068 (redisplay_window): Adapt to per-window scroll bars.
12069 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
12070 bars, and new fringe vs. display margin position.
12071 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 12072 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
12073 bars, and new fringe vs. display margin position. Fix bug which
12074 increased total width of full_width rows by width of scroll bars
12075 although window's total width already includes that.
12076 (x_fix_overlapping_area): Simplify using window_box_left_offset.
12077 (expose_area): Simplify using window_box_left_offset.
12078 (x_draw_vertical_border): Handle per-window scroll bar settings,
12079 mixing windows with left, right and no scroll bars.
12080
12081 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
12082 where it's used in x_list_fonts (for clarity).
12083 (frame_update_line_height): Remove unused function; functionality
12084 is now done directly when setting the default font in x_set_font.
12085
12086 * xfns.c: Make (many) trivial substitutions for renamed and
12087 new macros in dispextern.h, frame.h and window.h.
12088
12089 * xmenu.c: Make (some) trivial substitutions for renamed and
12090 new macros in dispextern.h, frame.h and window.h.
12091
12092 * xterm.h (struct x_output): Move members left_pos, top_pos,
12093 border_width, pixel_height, pixel_width, line_height,
12094 internal_border_width, vertical_scroll_bar_extra,
12095 left_fringe_width, right_fringe_width, fringe_cols,
12096 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12097 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12098 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12099 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12100 (PIXEL_WIDTH, PIXEL_HEIGHT)
12101 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12102 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12103 frame.h and renamed [see frame.h changes].
12104 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12105 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12106 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12107 and renamed [see frame.h changes].
9018a88e 12108
0416870b
KS
12109 * xterm.c: Make (several) trivial substitutions for renamed and
12110 new macros in dispextern.h, frame.h and window.h.
cab27d04 12111 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12112 (scroll_run): Adapt to new fringe position.
12113 (glyph_rect): Use window coordinates returned from
12114 window_from_coordinates rather than frame_to_window_pixel_xy.
12115 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12116 scroll-bars.
12117 (handle_one_xevent): Simplify a USE_GTK conditional.
12118 (x_clip_to_row): Remove superfluous whole_line_p arg and code
12119 (fringes are now inside margins, i.e. always in the clipping area).
12120 All callers changed.
12121 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12122 directly, then call compute_fringe_widths. Don't call
12123 frame_update_line_height.
12124
12125 * w32term.h (struct w32_output): Move members left_pos, top_pos,
12126 border_width, pixel_height, pixel_width, line_height,
12127 internal_border_width, vertical_scroll_bar_extra,
12128 left_fringe_width, right_fringe_width, fringe_cols,
12129 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12130 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12131 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12132 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12133 (PIXEL_WIDTH, PIXEL_HEIGHT)
12134 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12135 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12136 frame.h and renamed [see frame.h changes].
12137 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12138 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12139 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12140 and renamed [see frame.h changes].
9018a88e 12141
0416870b
KS
12142 * w32term.c: Make (several) trivial substitutions for renamed and
12143 new macros in dispextern.h, frame.h and window.h.
cab27d04 12144 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12145 (glyph_rect): Use window coordinates returned from
12146 window_from_coordinates rather than frame_to_window_pixel_xy.
12147 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12148 scroll-bars.
12149 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
12150 (fringes are now inside margins, i.e. always in the clipping area).
12151 All callers changed.
12152 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12153 directly, then call compute_fringe_widths. Don't call
12154 frame_update_line_height.
12155
12156 * w32console.c: Make (few) trivial substitutions for renamed and
12157 new macros in dispextern.h, frame.h and window.h.
12158
12159 * w32fns.c: Make (many) trivial substitutions for renamed and
12160 new macros in dispextern.h, frame.h and window.h.
12161
12162 * w32menu.c: Make (few) trivial substitutions for renamed and
12163 new macros in dispextern.h, frame.h and window.h.
12164
12165 * macterm.h (struct mac_output): Move members left_pos, top_pos,
12166 border_width, pixel_height, pixel_width, line_height,
12167 internal_border_width, vertical_scroll_bar_extra,
12168 left_fringe_width, right_fringe_width, fringe_cols,
12169 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12170 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
12171 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12172 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12173 (PIXEL_WIDTH, PIXEL_HEIGHT)
12174 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 12175 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
12176 frame.h and renamed [see frame.h changes].
12177 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12178 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 12179 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 12180 and renamed [see frame.h changes].
9018a88e 12181
0416870b
KS
12182 * macterm.c: Make (several) trivial substitutions for renamed and
12183 new macros in dispextern.h, frame.h and window.h.
cab27d04 12184 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
12185 (glyph_rect): Use window coordinates returned from
12186 window_from_coordinates rather than frame_to_window_pixel_xy.
12187 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12188 scroll-bars.
12189 (x_clip_to_row): Remove superfluous whole_line_p arg and code
12190 (fringes are now inside margins, i.e. always in the clipping area).
12191 All callers changed.
12192 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12193 directly, then call compute_fringe_widths. Don't call
12194 frame_update_line_height.
12195
12196 * macfns.c: Make (several) trivial substitutions for renamed and
12197 new macros in dispextern.h, frame.h and window.h.
9018a88e 12198 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
12199
12200 * macmenu.c: Make (few) trivial substitutions for renamed and
12201 new macros in dispextern.h, frame.h and window.h.
12202
12203 * msdos.h (struct x_output): Remove members left_pos, top_pos,
12204 and line_height, and use corresponding new members in struct
12205 frame. All uses changed.
12206 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
12207 superseeded by corresponding macros in frame.h.
12208
12209 * msdos.c: Make (several) trivial substitutions for renamed and
12210 new macros in dispextern.h, frame.h and window.h.
12211 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 12212 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
12213 (internal_terminal_init): No need to initialize line_height here;
12214 it now defaults to 1.
12215
9018a88e
SM
122162003-05-24 Stefan Monnier <monnier@cs.yale.edu>
12217
12218 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
12219 dropping `down' events.
12220
016bd3c0
AS
122212003-05-24 Andreas Schwab <schwab@suse.de>
12222
12223 * coding.c (find_safe_codings): Fix last change.
12224
4dacadcc
TTN
122252003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
12226
12227 * xfns.c (x_window): Fix typo from 2003-05-21 change.
12228
319830ce
SM
122292003-05-23 Stefan Monnier <monnier@cs.yale.edu>
12230
9018a88e
SM
12231 * xdisp.c (display_mode_element): Increase max depth.
12232 Simplify the error handling code. Use a different error string
12233 for the case where we hit the depth limit.
12234
319830ce
SM
12235 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
12236
12237 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
12238
122392003-05-21 Stefan Monnier <monnier@cs.yale.edu>
12240
12241 * intervals.c (get_local_map): Don't get char-property of previous
12242 point any more: get_pos_property already does it and better.
12243
c67de8ba
DL
122442003-05-21 Dave Love <fx@gnu.org>
12245
12246 [Merged from unicode branch.]
12247
12248 * xfns.c (x_window, x_window): Use use_xim.
12249
12250 * xterm.c (use_xim): Initialize.
12251 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12252 (x_term_init): Maybe set use_xim.
12253
12254 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12255
edd3ff1d
JR
122562003-05-21 Jason Rumney <jasonr@gnu.org>
12257
12258 * unexw32.c (_start): Remove _fmode initialization.
12259
12260 * emacs.c (main) [WINDOWSNT]: Move it here.
12261
463f55ee
DL
122622003-05-20 Dave Love <fx@gnu.org>
12263
12264 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
12265
af253914
RS
122662003-05-19 Richard M. Stallman <rms@gnu.org>
12267
12268 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
12269 as value for QCfont attribute.
12270 (realize_default_face): lface should already exist; crash if not.
12271 Specify 0 for FORCE_P when calling set_lface_from_font_name.
12272
12273 * frame.c (Fignore_event): Doc fix.
12274
1d211019
KH
122752003-05-19 Kenichi Handa <handa@m17n.org>
12276
12277 * coding.c (decode_coding_string): Handle post-read-conversion
12278 even if the coding doesn't require decoding.
12279
4dd68254
RS
122802003-05-18 Richard M. Stallman <rms@gnu.org>
12281
12282 * callproc.c (Fcall_process_region): Doc fix.
12283
14d87dc9
SM
122842003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12285
deca5d96
SM
12286 * lread.c (Fload): Print a message if package is obsolete.
12287
14d87dc9
SM
12288 * window.c (Fselect_window): Add optional `norecord' arg.
12289 (select_window_1): Fold into Fselect_window.
12290 (select_window_norecord): New function.
12291 (temp_output_buffer_show): Use it. Preserve current buffer.
12292
12293 * window.h (Fselect_window): Update declaration.
12294
12295 * window.c (delete_window, Fother_window, Fset_window_configuration):
12296 * minibuf.c (read_minibuf):
12297 * macterm.c (x_new_focus_frame):
12298 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
12299 * callint.c (Fcall_interactively):
12300 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
12301
12302 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
12303
78f52183
DK
123042003-05-17 David Kastrup <dak@gnu.org>
12305
12306 * process.c (read_process_output): Back out change from 2003-03-09.
12307
14d87dc9
SM
123082003-05-17 Stefan Monnier <monnier@cs.yale.edu>
12309
12310 * editfns.c (get_pos_property): Don't assume that `object' = nil.
12311
12312 * textprop.c (text_property_stickiness): New arg `buffer'.
12313
12314 * intervals.h (text_property_stickiness): New arg `buffer'.
12315 (get_pos_property): Declare.
12316
12317 * intervals.c (get_local_map): Use get_pos_property, to obey
12318 stickiness and empty overlays.
12319 (create_root_interval, graft_intervals_into_buffer): Use BEG.
12320 (merge_properties, intervals_equal, merge_properties_sticky):
12321 Use XCAR, XCDR.
12322 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
12323
1fd1cc2f
RS
123242003-05-17 Richard M. Stallman <rms@gnu.org>
12325
4f9f637a
RS
12326 * minibuf.c (read_minibuf): If buffer is empty, record the default
12327 in the history.
12328 (Fminibuffer_complete_word): When deleting the overlap, take account
12329 of its real position.
12330
12331 * fns.c (map_char_table): Fix previous change.
12332
1fd1cc2f
RS
12333 * syntax.c (find_defun_start):
12334 When open_paren_in_column_0_is_defun_start,
12335 return beginning of buffer.
12336
12337 * lisp.h (map_char_table): Declare added arg.
12338
12339 * fns.c (map_char_table): New arg TABLE gets the master table.
12340 All calls changed.
12341 Process default and inheritance, resorting to Faref if necessary.
12342
12343 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12344 (Faccessible_keymaps): Pass new arg to map_char_table.
12345
12346 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
12347
12348 * casetab.c (set_case_table): Pass new arg to map_char_table.
12349
12350 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
12351
12352 * lisp.h (specbinding_func): New typedef.
12353 (struct specbinding): Use specbinding_func, to put the `volatile'
12354 in the right place.
12355
12356 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
12357 to avoid GCC warning.
14d87dc9 12358
b6189c3b 123592003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 12360
14d87dc9 12361 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 12362
35fb885d
SM
123632003-05-15 Stefan Monnier <monnier@cs.yale.edu>
12364
12365 * keyboard.c (apply_modifiers): Don't fill the other cache.
12366
9a274fbd
SM
123672003-05-14 Stefan Monnier <monnier@cs.yale.edu>
12368
c55b5fad
SM
12369 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
12370
9a274fbd
SM
12371 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
12372 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
12373 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
12374 (Fset_window_configuration, Fcurrent_window_configuration)
12375 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
12376 (Fpos_visible_in_window_p, mark_window_cursors_off)
12377 (window_internal_height, window_internal_width, Frecenter)
12378 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
12379 (replace_buffer_in_all_windows, init_window_once, init_window)
12380 (syms_of_window, keys_of_window): Move from lisp.h.
12381 * lisp.h: Move window.c declarations to window.h.
12382
12383 * bytecode.c: Include window.h.
12384 * emacs.c: Include window.h.
12385
14d87dc9 12386 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
12387 (keyremap): Add `parent' field.
12388 (keyremap_step): Use it. Remove `parent' argument.
12389 (read_key_sequence): Setup and use the new `parent' field.
12390
fd93e331
SM
123912003-05-11 Stefan Monnier <monnier@cs.yale.edu>
12392
12393 * keyboard.c (adjust_point_for_property): Ensure termination.
12394
1c4001a1
SM
123952003-05-10 Stefan Monnier <monnier@cs.yale.edu>
12396
12397 * keyboard.c (follow_key): Remove dead variable `did_meta'.
12398 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
12399 duplicated handling of function-key-map and key-translation-map
12400 in read_key_sequence.
12401 (read_key_sequence): Use them.
12402
12403 * keyboard.c (adjust_point_for_property): Try harder to move point
12404 to the non-sticky end of an invisible property.
12405
12406 * xdisp.c (single_display_prop_intangible_p): Make `space' display
12407 property intangible as well.
12408
780379b1
AS
124092003-05-10 Andreas Schwab <schwab@suse.de>
12410
12411 * xmenu.c (single_menu_item): Change last parameter to void* to
12412 avoid warning.
12413
ca2de342
RS
124142003-05-09 Richard M. Stallman <rms@gnu.org>
12415
12416 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
12417 Bind Qinhibit_modification_hooks to t so there will be no GC.
12418 Rename local `tem' to `save_deactivate_mark'.
12419
12420 * eval.c (specpdl_ptr): Declare volatile.
12421 (unbind_to): Copy the whole binding and decrement specpdl_ptr
12422 before doing the work of unbinding it.
12423
12424 * lisp.h (struct specbinding): Declare elements volatile.
12425 (specpdl_ptr): Declare volatile.
12426
12427 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
12428
12429 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
12430 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
12431
347003be
DL
124322003-05-08 Dave Love <fx@gnu.org>
12433
12434 * coding.c (Vlast_coding_system_used): Doc fix.
12435
5adcec23
JR
124362003-05-07 Jason Rumney <jasonr@gnu.org>
12437
12438 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
12439 when system does not support them.
12440
5fe3b8a4
SM
124412003-05-05 Stefan Monnier <monnier@cs.yale.edu>
12442
12443 * fileio.c (Qwrite_region_annotate_functions): New var.
12444 (build_annotations): Use it to process the global part of the hook.
12445 (syms_of_fileio): Init and staticpro it.
12446
12447 * keyboard.c (safe_run_hooks_error): Display a message instead of
12448 silently ignoring the error.
12449
124502003-05-03 Stefan Monnier <monnier@cs.yale.edu>
12451
12452 * keyboard.c (input_available_signal): Mark static.
12453 (menu_bar_items): Use map_keymap.
12454 (menu_bar_one_keymap): Remove.
12455 (menu_bar_item): Adjust arglist (for use in map_keymap).
12456 Properly hide a second binding when not both are keymaps.
12457
12458 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
12459 (single_keymap_panes): Use it and map_keymap.
12460 (single_menu_item): Use skp as well.
12461
12462 * keymap.h (map_keymap_function_t): New type.
12463 (map_keymap): Declare.
12464
12465 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
12466 (map_keymap_call, Fmap_keymap): New functions.
12467 (syms_of_keymap): Defsubr map-keymap.
12468
4b1b4443
JD
124692003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12470
12471 * gtkutil.c (create_dialog, make_widget_for_menu_item)
12472 (make_menu_item, create_menus, xg_update_menu_item): Don't call
12473 ..._with_mnemonic functions for menu items.
12474
1f816871
KH
124752003-05-01 Kenichi Handa <handa@m17n.org>
12476
12477 * coding.c (coding_system_accept_latin_extra_p): Delete this
12478 function.
12479 (find_safe_codings): Pay attention to
12480 the property tranlsation-table-for-encode of each codings.
12481 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
12482
5ed6ba5b
SM
124832003-05-01 Stefan Monnier <monnier@cs.yale.edu>
12484
12485 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
12486
32c06229
SM
124872003-04-30 Stefan Monnier <monnier@cs.yale.edu>
12488
12489 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
12490
12491 * lisp.h (CHECK): Wrap args in parenthesis.
12492 (specbind): Fix doc: symbol = Qnil is not supported any more.
12493
12494 * bytecode.c (Fbyte_code) <unwind-protect>:
12495 Use Fprogn rather than 0 and Qnil.
12496
12497 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
12498 `double', and `triple' modifiers as well.
12499
ed3c3314
RS
125002003-04-30 Richard M. Stallman <rms@gnu.org>
12501
12502 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
12503
12504 * alloc.c (abort_on_gc): New variable.
12505 (Fgarbage_collect): Abort if abort_on_gc is set.
12506
12507 * lisp.h (abort_on_gc): Add decl.
12508
12509 * eval.c (Fsignal): Clear abort_on_gc.
12510
12511 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 12512 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
12513
12514 * xdisp.c (move_it_vertically_backward): Do the final big else
12515 even if nlines is 0.
12516
12517 * xdisp.c (redisplay_internal): Finish the per-frame loop
12518 even if redisplay is suspended by input.
12519
0b325c12
AC
125202003-04-24 Andrew Choi <akochoi@shaw.ca>
12521
12522 * macterm.c (x_list_fonts): Return all fonts that match if
12523 maxnames = -1.
12524
4e837cd0
KH
125252003-04-25 Kenichi Handa <handa@m17n.org>
12526
12527 * syntax.c (skip_chars): Fix previous change.
12528
9af7511a
KH
125292003-04-24 Kenichi Handa <handa@m17n.org>
12530
12531 * syntax.c (skip_chars): Make the code faster by using the common
12532 technique of *p, *stop, and *endp.
12533
e3b2c21f
JD
125342003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12535
12536 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 12537 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
12538 being updated.
12539
32c06229
SM
125402003-04-19 Stefan Monnier <monnier@cs.yale.edu>
12541
12542 * eval.c (Fapply): Undo last change and add a comment about why.
12543
c6464167
MB
125442003-04-18 Miles Bader <miles@gnu.org>
12545
12546 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
12547 pickier PARSE_MULTIBYTE_SEQ.
12548
e509f168
SM
125492003-04-17 Stefan Monnier <monnier@cs.yale.edu>
12550
12551 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
12552 Use XCDR, XCAR, CONSP.
12553 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
12554 (Fapply): Remove unnecessary GCPRO.
12555
12556 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
12557
12558 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
12559
12560 * buffer.h: Don't hardcode BEG==1.
12561
12562 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
12563
5ceea398
RS
125642003-04-16 Richard M. Stallman <rms@gnu.org>
12565
12566 * xdisp.c (try_window, try_window_reusing_current_matrix):
12567 When at end of window, set window_end_pos to Z-ZV.
12568
12569 * buffer.c (Foverlay_recenter): Doc fix.
12570
e509f168
SM
125712003-04-14 Stefan Monnier <monnier@cs.yale.edu>
12572
12573 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
12574
d243e605
AC
125752003-04-14 Andrew Choi <akochoi@shaw.ca>
12576
12577 * macterm.c (mac_check_for_quit_char): Don't check more often than
12578 once a second.
12579
6901b111
SM
125802003-04-11 Stefan Monnier <monnier@cs.yale.edu>
12581
12582 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
12583 specially, so that they can't hide an implicit switch-frame event.
12584 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
12585 (head_table): Use switch-frame as event_kind for select-window.
12586 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
12587
12588 * editfns.c (Fformat): Lisp_Object/int mixup.
12589 (format2): Remove unused var numargs.
12590
e301806f 125912003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 12592
6901b111 12593 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
12594 (Qafter_insert_file_set_coding): New variable.
12595 (syms_of_fileio): Initialize and staticpro it. Delete declaration
12596 for after-insert-file-adjust-coding-function.
12597 (Finsert_file_contents): Call Qafter_insert_file_set_coding
12598 instead of Vafter_insert_file_adjust_coding_function.
12599
38914424
KH
126002003-04-11 Kenichi Handa <handa@m17n.org>
12601
12602 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
12603
12604 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
12605 string. Callers changed.
12606
126072003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 12608
6901b111 12609 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 12610 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
12611 (Finsert_file_contents):
12612 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
12613 decode-format.
12614
f979dc05
JD
126152003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12616
12617 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
12618 get GtkAdjustment as widget now is a GtkRange.
12619
12620 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
12621 GtkRange to avoid memory leak.
12622
f8c6b4c2 126232003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 12624
50ebc53d
KH
12625 * xfaces.c (Vface_font_rescale_alist): New variable.
12626 (struct font_name): New member rescale_ratio.
12627 (font_rescale_ratio): New function.
6901b111 12628 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
12629 (better_font_p): On comparing point sized, pay attention to
12630 recale_ratio member of fonts.
12631 (build_scalable_font_name): Reflect font->rescale_ratio in the
12632 font name.
6901b111 12633 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 12634
cb98871c
KH
12635 * lread.c (read1): Before calling index, check if the 2nd
12636 arguemnt is in ASCII range.
12637
4773b8ca
RS
126382003-04-08 Richard M. Stallman <rms@gnu.org>
12639
b0ada147
RS
12640 * fileio.c (Ffile_symlink_p): Doc fix.
12641
12642 * editfns.c (Fformat): Translate positions of text properties
12643 in the format string to apply them to the result.
12644
4773b8ca
RS
12645 * fileio.c (Finsert_file_contents): Doc fix.
12646 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12647
126482003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 12649
4773b8ca
RS
12650 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
12651
e8f25745 126522003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 12653
e8f25745
ST
12654 * mac.c (init_mac_osx_environment): Switch libexec and bin so
12655 that self-contained application finds libexec files.
12656
f8c6b4c2 126572003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 12658
6901b111
SM
12659 * coding.c (code_convert_region_unwind):
12660 Set Vlast_coding_system_used to the argument.
2310d84c
KH
12661 (code_convert_region): If post-read-conversion function changed
12662 the value of last-coding-sytem, keep the new value in
12663 coding->symbol so that it won't be overridden.
12664 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
12665 (coding_system_accept_latin_extra_p): New function.
12666 (find_safe_codings): Pay attention to characters registered in
12667 latin-extra-code-table.
2310d84c 12668
39c9a034
TTN
126692003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
12670
12671 * Makefile.in (md5.o): Add missing dependency info.
12672
eb67c5d6
RS
126732003-04-06 Richard M. Stallman <rms@gnu.org>
12674
12675 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
12676
12677 * marker.c (verify_bytepos): New function.
12678
12679 * intervals.c (set_intervals_multibyte_1): When becoming
12680 multibyte, adjust right and left child sizes to a whole set of
12681 characters. If an interval gets zero total-length, delete it.
12682 If an interval consists of just its children, delete one of them.
12683
12684 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
12685 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 12686
52eb0373 12687 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
12688 All calls deleted.
12689 (lisp_malloc): Do the work here directly.
12690
b1f81fc5
JB
126912003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
12692
12693 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
12694 char tables.
12695
126962003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
12697
12698 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
12699 destructively change "%S" to "%s".
12700
774666fb
MB
127012003-04-03 Miles Bader <miles@gnu.org>
12702
12703 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
12704 always set.
12705
19c37f01
DL
127062003-04-01 Dave Love <fx@gnu.org>
12707
12708 * xfns.c (xpm_lookup_color): Grok "opaque".
12709
2f4b24c3
AC
127102003-03-31 Andrew Choi <akochoi@shaw.ca>
12711
12712 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
12713 parent window ID.
12714
12715 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
12716
12717 * macterm.h (struct mac_output): Define x_pixels_diff and
12718 y_pixels_diff.
b1f81fc5 12719
9443fcf6
JB
127202003-03-31 Juanma Barranquero <lektu@terra.es>
12721
12722 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
12723 blockinput.h and files included from it.
12724
e072891b
KS
127252003-03-31 Kim F. Storm <storm@cua.dk>
12726
12727 The following changes consolidates the common code related to
12728 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
12729 files into frame.c.
9443fcf6 12730
e072891b
KS
12731 * frame.c: Include blockinput.h.
12732 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
12733 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
12734 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
12735 related vars here.
12736 (struct frame_parm_table, frame_parms): New table for describing
12737 frame parameters and their associated Q-variable.
12738 The order of the parameters corresponds to the sequence of the
12739 frame_parm_handlers table in redisplay_interface.
12740 (x_fullscreen_move, x_set_frame_parameters)
12741 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
12742 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
12743 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12744 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
12745 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
12746 Generic functions for processing of frame parameters.
12747 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
12748 (display_x_get_resource, x_get_resource_string): Functions for
12749 generic access to X resources.
12750 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12751 (x_default_parameter, Fx_parse_geometry): Functions for generic
12752 access to frame parameters.
6901b111
SM
12753 (x_figure_window_size): Generic calculation of frame size.
12754 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
12755 (syms_of_frame): Intern and staticpro frame parameter variables.
12756 Defvar_lisp Vx_resource_class and Vx_resource_name here.
12757 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 12758
e072891b
KS
12759 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
12760 parameter related vars defined in frame.c.
12761 (EMACS_CLASS): Define here.
12762 (enum FULLSCREEN_*): Define here.
12763 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
12764 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
12765 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
12766 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
12767 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
12768 (x_set_visibility, x_set_autoraise, x_set_autolower)
12769 (x_set_unsplittable, x_set_vertical_scroll_bars)
12770 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
12771 (x_figure_window_size): Add prototypes.
12772
12773 * dispextern.h (frame_parm_handler): New typedef.
12774 (struct redisplay_interface): New member frame_parm_handlers.
12775 (enum resource_types): Move declaration here.
12776 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
12777 (x_default_parameter): Add prototypes.
12778
12779 * window.c: Remove extern decl for frame parameter vars.
12780 (change_window_heights): New generic function;
12781 replaces x_change_window_heights. All users changed.
12782
12783 * window.h (change_window_heights): Add prototype.
12784
12785 * xfaces.c: Remove extern decl for frame parameter vars.
12786
12787 * xterm.h (EMACS_CLASS): Remove. Use generic define.
12788 (struct w32_display_info): Fix type of xrdb member.
12789 (enum FULLSCREEN_*): Remove.
12790 Remove prototypes for generic functions (in frame.h).
12791
12792 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12793 parameters now defined in frame.h and frame.c.
f63fd14e 12794 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12795 (enum x_frame_parms): Remove (bogus, unused enum).
12796 (check_x_display_info): Make non-static (for frame.c).
12797 (struct x_frame_parm_table, x_frame_parms): Remove.
12798 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12799 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12800 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12801 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12802 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12803 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12804 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12805 Remove. Use generic functions instead.
12806 (enum resource_types): Remove.
12807 (x_set_scroll_bar_default_width): New global function (for frame.c).
12808 (Fx_create_frame): Depend on x_figure_window_size to add space for
12809 toolbar and setup size_hint_flags.
12810 (x_frame_parm_handlers): New table for redisplay_interface.
12811 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 12812
e072891b 12813 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 12814 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12815 (x_redisplay_interface): Add x_frame_parm_handlers member.
12816
12817 * w32gui.h (XrmDatabase): New (dummy) typedef.
12818
12819 * w32term.h (EMACS_CLASS): Remove. Use generic define.
12820 (struct w32_display_info): Fix type of xrdb member.
12821 (enum FULLSCREEN_*): Remove.
12822 (x_fullscreen_adjust): Remove prototype.
12823
12824 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12825 parameters now defined in frame.h and frame.c.
f63fd14e 12826 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12827 (enum x_frame_parms): Remove (bogus, unused enum).
12828 (check_x_display_info): Make non-static (for frame.c).
12829 (struct x_frame_parm_table, x_frame_parms): Remove.
12830 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12831 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12832 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12833 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12834 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12835 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12836 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12837 Remove. Use generic functions instead.
12838 (enum resource_types): Remove.
12839 (x_set_scroll_bar_default_width): New global function (for frame.c).
12840 (Fx_create_frame): Depend on x_figure_window_size to add space for
12841 toolbar and setup size_hint_flags.
12842 (w32_frame_parm_handlers): New table for redisplay_interface.
12843 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 12844
e072891b 12845 * w32term.c: Remove unnecessary extern declarations.
52eb0373 12846 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
12847 (x_redisplay_interface): Add w32_frame_parm_handlers member.
12848
12849 * w32reg.c (x_get_string_resource): Use XrmDatabase.
12850
12851 * macgui.h (XrmDatabase): New (dummy) typedef.
12852
12853 * macterm.h (EMACS_CLASS): Remove.
12854 (struct mac_display_info): Add xrdb member.
12855 (struct mac_output): Add want_fullscreen member.
12856
12857 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
12858 parameters now defined in frame.h and frame.c.
f63fd14e 12859 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
12860 (check_x_display_info): Make non-static (for frame.c).
12861 (struct x_frame_parm_table, x_frame_parms): Remove.
12862 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
12863 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
12864 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
12865 (x_change_window_heights, x_set_autoraise, x_set_autolower)
12866 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
12867 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
12868 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
12869 Remove. Use generic functions instead.
12870 (enum resource_types): Remove.
12871 (x_set_scroll_bar_default_width): New global function (for frame.c).
12872 (mac_frame_parm_handlers): New table for redisplay_interface.
12873 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 12874
e072891b
KS
12875 * macterm.c: Remove unnecessary extern declarations.
12876 (x_redisplay_interface): Add mac_frame_parm_handlers member.
12877
3e6a560b
KS
12878 * Makefile.in (frame.o): Add dependency on blockinput.h and files
12879 included from it (atimer.h and systime.h).
12880
7b7b454e
AS
128812003-03-30 Andreas Schwab <schwab@suse.de>
12882
12883 * xdisp.c (x_insert_glyphs): Fix swapped width and height
12884 parameters for shift_glyphs_for_insert.
12885
12886 * macterm.c (x_redisplay_interface): Add missing entry for
12887 draw_vertical_window_border.
12888
beb402de
KG
128892003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12890
12891 * fileio.c (Fexpand_file_name): In the no-handler case, after
12892 expanding, look again for a handler and invoke it. This is needed
12893 for filenames like "/foo/../user@host:/bar/../baz" -- the first
12894 expansion produces "/user@host:/bar/../baz" which needs to be
12895 expanded again for the finame result "/user@host:/baz".
12896
b676f356
JD
128972003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12898
12899 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
12900 of area to be redrawn for better performance.
12901
3c671a56
SM
129022003-03-28 Stefan Monnier <monnier@cs.yale.edu>
12903
12904 * xterm.c (take_vertical_position_into_account): Remove.
12905 (xt_action_hook): Call set_vertical_scroll_bar if needed.
12906 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
12907 (xm_scroll_callback, x_create_toolkit_scroll_bar)
12908 (x_set_toolkit_scroll_bar_thumb): Simplify.
12909 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
12910 (XTread_socket): Remove unused var.
12911 (x_make_frame_invisible): Replace goto with else.
12912
12913 * xdisp.c (set_vertical_scroll_bar): New fun.
12914 (redisplay_window): Use it.
12915
84f2e615
RS
129162003-03-26 Richard M. Stallman <rms@gnu.org>
12917
12918 * xdisp.c (update_tool_bar): Recompute tool bar if
12919 update_mode_lines is set. Set w->update_mode_line
12920 only if the tool bar contents actually change.
12921 (update_menu_bar): Undo previous change.
12922
70b6104c
JD
129232003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12924
5fd6f727
JD
12925 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
12926 (xg_frame_set_char_size): Calculate scroll bar width before frame
12927 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
12928 (xg_separator_p): Check for all documented separator types.
12929 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
12930 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
12931
70b6104c
JD
12932 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
12933 so tool bar gets updated.
12934
d9b36d19
SM
129352003-03-26 Stefan Monnier <monnier@cs.yale.edu>
12936
12937 * data.c (store_symval_forwarding): Re-instate part of the code
12938 that was deleted with too much enthusiasm.
12939
129402003-03-25 Stefan Monnier <monnier@cs.yale.edu>
12941
12942 * data.c (store_symval_forwarding): Delete special read-only
12943 hack for type == -1, since we now use ->constant instead.
12944 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
12945
12946 * buffer.c (overlays_in): Declare static.
12947 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
12948 `constant' field rather than the variable's `type' field.
12949
365fa1b3
AC
129502003-03-24 Andrew Choi <akochoi@shaw.ca>
12951
12952 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
12953
12954 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
12955
12956 * fns.c [MAC_OSX]: Do not redefine vector.
12957
12958 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
12959
12960 * macgui.h: Remove definition of No_Cursor.
12961
d9b36d19 12962 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
12963
12964 * xdisp.c: Define No_Cursor.
12965 (x_write_glyphs, notice_overwritten_cursor)
12966 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
12967 (note_mouse_highlight): Remove Mac-specific code.
12968 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 12969
c0bcce6f
JPW
129702003-03-24 John Paul Wallington <jpw@gnu.org>
12971
12972 * xdisp.c (redisplay_window): If mini window's buffer is not
12973 empty, then redisplay it like other windows.
12974
a526b96c
KS
129752003-03-23 Kim F. Storm <storm@cua.dk>
12976
12977 * w32term.c (w32_draw_window_cursor): Fix last change.
12978
37ab321e
KH
129792003-03-23 Kenichi Handa <handa@m17n.org>
12980
a526b96c
KS
12981 * alloc.c (make_string_from_bytes, make_specified_string):
12982 Add `const' for the arg CONTENTS.
37ab321e
KH
12983
12984 * lisp.h (make_string_from_bytes, make_specified_string):
12985 Prototypes adjusted.
12986
7863d625
JD
129872003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12988
a526b96c 12989 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 12990
7863d625
JD
12991 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
12992 (XG_SB_RANGE): New define.
12993
12994 * gtkutil.c (xg_fixed_handle_expose): New function.
12995 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
12996 expose events.
12997 (xg_update_scrollbar_pos): Take two more arguments, left and width
12998 of scroll bar including borders.
12999 Clear left and right part outside scroll bar separately as some
13000 themes have bars that are not an even number of pixels.
d9b36d19 13001 Don't set reallocate_redraws, don't call
7863d625
JD
13002 gdk_window_process_all_updates.
13003 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
13004 so no need to change it. Calculate size and value with XG_SB_RANGE.
13005
d9b36d19
SM
13006 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
13007 Pass left and width of scroll bar including borders to
7863d625
JD
13008 xg_update_scrollbar_pos.
13009
af0ad939
TTN
130102003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
13011
13012 * Makefile.in: Make sure space precedes end-of-line backslashes.
13013
b22139fd
KS
130142003-03-22 Kim F. Storm <storm@cua.dk>
13015
13016 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
13017 Add generic versions here. Remove system specific versions
13018 defined elsewhere.
13019
13020 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
13021 Add prototypes.
13022
6e6410cf
KS
13023 * xterm.h (STORE_NATIVE_RECT): New macro.
13024
5c9cc435
KS
130252003-03-21 Kim F. Storm <storm@cua.dk>
13026
00c64fab
SM
13027 * xdisp.c (get_glyph_string_clip_rect):
13028 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
13029
13030 * dispextern.h (struct redisplay_interface): Add active_p
13031 argument to draw_window_cursor member. All uses changed.
13032
acd37560
KS
130332003-03-21 Kim F. Storm <storm@cua.dk>
13034
13035 The following changes consolidate code related to writing and
13036 inserting glyphs, exposing frame, the tool bar, the mouse face,
13037 the output cursor, and help echo from xterm.c, w32term.c and
13038 macterm.c into xdisp.c. It also generalizes the use of the
13039 window_part enum instead of using numeric values throughout.
af0ad939 13040
acd37560
KS
13041 * xdisp.c: Consolidate gui-independent code here.
13042 Include keymap.h.
13043 (Qhelp_echo): Import.
13044 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
13045 (help_echo_string, help_echo_window, help_echo_object)
13046 (previous_help_echo_string, help_echo_pos): Declare here.
13047 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
13048 (estimate_mode_line_height): Define here. Handle windowing
13049 systems directly (without using estimate_mode_line_height_hook).
13050 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
13051 (update_window_cursor, update_cursor_in_window_tree)
13052 (fast_find_position, fast_find_string_pos)
13053 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
13054 (expose_area, expose_line, expose_overlaps, expose_window)
13055 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
13056 declared static as they are only used locally in xdisp.c.
13057 (draw_glyphs): Rename from x_draw_glyphs and make static.
13058 (tool_bar_item_info, notice_overwritten_cursor): Make static.
13059 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13060 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 13061 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
13062 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13063 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
13064 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
13065 (note_mouse_highlight, x_clear_window_mouse_face)
13066 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
13067 (x_intersect_rectangles): New generic functions for use by xdisp.c
13068 and GUI front-ends.
13069 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
13070 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
13071
13072 * dispextern.h (Display_Info): Generic typedef for *_display_info.
13073 (NativeRectangle): Generic typedef for rectangle type.
13074 (enum window_part): Move here from window.c.
13075 (struct redisplay_interface): New members flush_display_optional,
13076 define_frame_cursor, clear_frame_area, draw_window_cursor,
13077 draw_vertical_window_border, shift_glyphs_for_insert.
13078 Rename member clear_mouse_face to clear_window_mouse_face.
13079 (estimate_mode_line_height_hook): Remove hook.
13080 (auto_raise_tool_bar_buttons_p): Don't declare extern.
13081 (tool_bar_item_info): Remove prototype.
13082 (help_echo_string, help_echo_window, help_echo_object)
13083 (previous_help_echo_string, help_echo_pos)
13084 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
13085 (x_stretch_cursor_p, output_cursor): Declare extern.
13086 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
13087 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
13088 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13089 (display_and_set_cursor, set_output_cursor, x_cursor_to)
13090 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
13091 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13092 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
13093 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
13094 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
13095 Add prototypes.
13096 (mode_line_string, marginal_area_string): Fix prototypes.
13097
13098 * window.c (enum window_part): Move to dispextern.h.
13099 (coordinates_in_window): Use enum window_part member names
13100 instead of numbers to describe return value.
13101 (struct check_window_data): Change part member to window_part.
13102 (check_window_containing): Return window_part unaltered.
13103 (window_from_coordinates): Change part arg from int to enum
13104 window_part. Allow part arg to be null. All users changed.
13105
13106 * window.h (window_from_coordinates): Fix prototype.
13107
13108 * term.c (estimate_mode_line_height): Move to xdisp.c.
13109
13110 * keyboard.c (make_lispy_event): Use enum window_part.
13111
13112 * dispnew.c (mode_line_string, marginal_area_string): Use enum
13113 window_part instead of int in arg list. Users changed.
13114
13115 * xterm.h (No_Cursor): Declare as None for X.
13116 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 13117
acd37560
KS
13118 * xterm.c: Remove consolidated defines and code.
13119 (BETWEEN): Remove unused macro.
13120 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
13121 (x_define_frame_cursor, x_clear_frame_area)
13122 (x_draw_window_cursor): New X-specific functions for RIF.
13123 (x_redisplay_interface): Add new members.
13124
13125 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
13126
13127 * w32term.h (struct w32_output): Remove cross_cursor member.
13128
13129 * w32term.c: Remove consolidated defines and code.
13130 (BETWEEN): Remove unused macro.
13131 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
13132 (w32_define_frame_cursor, w32_clear_frame_area)
13133 (w32_draw_window_cursor): New W32-specific functions for RIF.
13134 (w32_redisplay_interface): Add new members.
13135
a64387ee 13136 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
13137 (XRectangle): Add X compatible rectangle type.
13138 (NativeRectangle): Declare as RECT for W32.
13139 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13140
13141 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
13142
13143 * w32console.c: Remove consolidated defines and code.
af0ad939 13144
acd37560
KS
13145 * msdos.h (Display_Info): Add generic typedef.
13146
13147 * msdos.c: Remove consolidated defines and code.
13148 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
13149
13150 * macterm.h (struct mac_output): Replace member cross_cursor by
13151 hand_cursor.
13152 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
13153
13154 * macterm.c: Remove consolidated defines and code.
13155 (BETWEEN): Remove unused macro.
13156 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
13157 (mac_define_frame_cursor, mac_clear_frame_area)
13158 (mac_draw_window_cursor): New Mac-specific functions for RIF.
13159 (x_redisplay_interface): Add new members.
13160
13161 * macgui.h (No_Cursor): Define as 0 for Mac.
13162 (XRectangle): Add X compatible rectangle type.
13163 (NativeRectangle): Declare as Rect for Mac.
13164 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13165
204ccab1
KS
13166 * macfns.c (x_set_mouse_color): Setup hand_cursor.
13167 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 13168
9443fcf6 13169 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
13170 included from it. Add dependency on keymap.h.
13171
13172 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
13173
8ba01a70 131742003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
13175
13176 * fileio.c (Fexpand_file_name): Fix previous change.
13177
8ba01a70 131782003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
13179
13180 * fileio.c (Ffile_name_directory): Reconstruct file name by
13181 make_specified_string.
13182 (Ffile_name_nondirectory, Ffile_name_as_directory)
13183 (Fdirectory_file_name, Fexpand_file_name)
13184 (Fsubstitute_in_file_name): Likewise.
13185 (Fread_file_name): Compare decoded homedir with DIR and
13186 DEFAULT_FILENAME.
13187
13188 * alloc.c (make_specified_string): If NCHARS is negative, count
13189 the number of characters.
13190
19536747
JD
131912003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13192
de38ae5a
JD
13193 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
13194 all widgets.
13195
19536747
JD
13196 * gtkutil.h: Removed xg_ignore_next_thumb.
13197
37ab321e 131982003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
13199
13200 * coding.c (Vchar_coding_system_table): Remove this variable.
13201 (Vcoding_system_safe_chars): New variable.
13202 (intersection): Remove this function.
13203 (find_safe_codings): Don't use Vchar_coding_system_table, but try
13204 all codings in SAFE_CODINGS.
00c64fab 13205 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
13206 find_safe_codings. Get generic coding systems from
13207 Vcoding_system_safe_chars.
13208 (Fdefine_coding_system_internal): New function.
13209 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
13210 Initialize and staticpro Vcoding_system_safe_chars.
13211
17097258
JD
132122003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13213
2a2071c3
JD
13214 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
13215 equal old values before updating.
13216
17097258
JD
13217 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
13218
13219 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
13220
132212003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13222
13223 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
13224 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
13225 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
13226 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
13227 (xg_create_scroll_bar): Pass bar to button event callback.
13228 (xg_find_top_left_in_fixed): New function.
13229 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
13230 whole scroll bar area. Get old position with
13231 xg_find_top_left_in_fixed, calculate and only clear needed areas.
13232 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
13233 dragging is in progress. Calculate whole as for Motif.
13234 Remove code that saved last values. Call gtk_range functions to
13235 set scroll bar sizes.
13236
13237 * gtkutil.h: Removed xg_ignore_next_thumb.
13238
8cb9dfbf
JB
132392003-03-17 Juanma Barranquero <lektu@terra.es>
13240
13241 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
13242 and files included from it.
13243
00c64fab
SM
132442003-03-18 Stefan Monnier <monnier@cs.yale.edu>
13245
13246 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
13247 multiple occurrences of the same keymap under different prefixes.
13248 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
13249
c45bb3b2
JR
132502003-03-16 Jason Rumney <jasonr@gnu.org>
13251
13252 * w32gui.h: Use HDC for Display.
13253
13254 * w32term.c (w32_encode_char): Prevent double-byte chars from
13255 crashing Emacs.
13256
13257 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
13258 as binary.
13259
2a6d0874
JB
132602003-03-16 Juanma Barranquero <lektu@terra.es>
13261
13262 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
13263
03eb5fab
KS
132642003-03-16 Kim F. Storm <storm@cua.dk>
13265
13266 The following changes consolidate some of the gui-independent
13267 parts of the processing and drawing of "glyph strings" from
13268 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 13269
03eb5fab
KS
13270 * dispextern.h (struct glyph): Reduce face_id member from 22 to
13271 21 bits (this reduces number of faces from 4M to 2M).
13272 Replace W32 specific w32_font_type member (2 bits) by generic
13273 font_type member (3 bits) for portability.
13274 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
13275 (enum draw_glyphs_face): Define here.
13276 (struct glyph_string): Define here. Merge W32 and X versions.
13277 (struct redisplay_interface): New members per_char_metric,
13278 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
13279 (VCENTER_BASELINE_OFFSET): Define here.
13280 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
13281 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
13282
13283 * xdisp.c: Consolidate gui-independent "glyph string" code here.
13284 (dump_glyph_string): Moved here.
13285 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
13286 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
13287 (fill_composite_glyph_string, fill_glyph_string)
13288 (fill_image_glyph_string, fill_stretch_glyph_string)
13289 (left_overwritten, left_overwriting, right_overwritten)
13290 (right_overwriting, get_char_face_and_encoding)
13291 (set_glyph_string_background_width, compute_overhangs_and_x)
13292 (append_glyph, append_composite_glyph, produce_image_glyph)
13293 (take_vertical_position_into_account, append_stretch_glyph)
13294 (produce_stretch_glyph): New generic functions (based on X version).
13295 Call platform specific functions through rif.
13296 (INIT_GLYPH_STRING): New macro, hides W32 details.
13297 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
13298 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
13299 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
13300 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
13301 (notice_overwritten_cursor):
13302 Generic functions exported to platform modules. Users changed.
13303
13304 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
13305 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
13306 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 13307 New macros for consolidated code.
2a6d0874 13308
03eb5fab
KS
13309 * xterm.c: Remove consolidated defines and code.
13310 (x_per_char_metric, x_encode_char)
13311 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
13312 (x_redisplay_interface): Add new members.
13313
13314 * w32gui.h (Display): Add dummy typedef for consolidation.
13315 (XChar2b): Define alias for wchar_t for consolidation.
13316 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13317
13318 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 13319 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
13320 New macros for consolidation.
13321
fad49844 13322 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
13323 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
13324 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
13325 (w32_per_char_metric): Change font_type arg to int for RIF.
13326 (w32_encode_char): Return int according to RIF requirements.
13327 (w32_compute_glyph_string_overhangs): Adapt to RIF.
13328 (w32_get_glyph_overhangs): New function for RIF. Uses generic
13329 x_get_glyph_overhangs.
13330 (w32_redisplay_interface): Add new members.
13331
13332 * macgui.h (XChar2b): Move typedef here for consolidation.
13333 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
13334
13335 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
13336 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
13337 consolidation.
13338
13339 * macterm.c: Remove consolidated defines and code.
13340 (mac_per_char_metric): New function for RIF.
00c64fab 13341 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
13342 (mac_compute_glyph_string_overhangs): Adapt for RIF.
13343 (x_redisplay_interface): Add new members.
13344
00c64fab
SM
133452003-03-15 Stefan Monnier <monnier@cs.yale.edu>
13346
13347 * keymap.c (Vmenu_events): New var.
13348 (syms_of_keymap): Initialize it.
13349 (where_is_internal): Check more carefully what is a menu event.
13350
225c7a07
RS
133512003-03-14 Richard M. Stallman <rms@gnu.org>
13352
13353 * lread.c (read1): After #!, exit loop on eof.
13354
cea9be54
JD
133552003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13356
9ea0e54d
JD
13357 * gtkutil.h: Add declaration for xg_frame_cleared.
13358
0cb35f4e
JD
13359 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
13360
cea9be54
JD
13361 * gtkutil.c (struct xg_last_sb_pos): New structure.
13362 (handle_fixed_child): New function.
13363 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
13364 and force a redraw on them.
13365 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
13366 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
13367 so we can avoid unneeded redraws.
13368 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
13369 and force a redraw on the scroll bar.
13370 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
13371 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 13372 (xg_frame_cleared): New function.
cea9be54 13373
20b853f3
KH
133742003-03-13 Kenichi Handa <handa@m17n.org>
13375
13376 * coding.c (Fdetect_coding_region): Fix docstring.
13377 (Fdetect_coding_string): Fix docstring.
13378
7a555aff
AS
133792003-03-13 Andreas Schwab <schwab@suse.de>
13380
25cc0080
AS
13381 * gtkutil.c: Add prototype for create_menus.
13382
30225431
AS
13383 * data.c (long_to_cons): Fix type of top.
13384
13385 * xselect.c (selection_data_to_lisp_data): Use int instead of
13386 long for an integer of size 4.
13387
7a555aff 13388 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 13389 (xg_tool_bar_help_callback): Likewise.
7a555aff 13390
a3e4741f
AS
133912003-03-12 Andreas Schwab <schwab@suse.de>
13392
13393 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
13394
9668be7c
KS
133952003-03-12 Kim F. Storm <storm@cua.dk>
13396
03eb5fab 13397 The following changes consolidate the fringe handling from
9668be7c 13398 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 13399
9668be7c
KS
13400 * xdisp.c: Consolidate fringe handling code here.
13401 (left_bits, right_bits, continued_bits, continuation_bits)
13402 (ov_bits, zv_bits): Define fringe bitmaps.
13403 (fringe_bitmaps): New array holding fringe bitmaps.
13404 (draw_fringe_bitmap): Draw a specific bitmap; call display
13405 specific drawing routine via rif->draw_fringe_bitmap.
13406 (draw_row_fringe_bitmaps): Generic replacement for
13407 x_draw_row_fringe_bitmaps; all callers changed.
13408 (compute_fringe_widths): Generic replacement for
13409 x_compute_fringe_widths; all callers changed.
13410
13411 * dispextern.h (enum fringe_bitmap_type): Define here.
13412 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
13413 (fringe_bitmaps): Declare extern.
13414 (struct redisplay_interface): New member draw_fringe_bitmap.
13415 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
13416
13417 * xterm.c: Remove generic fringe code.
13418 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13419 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13420
13421 * w32term.c: Remove generic fringe code.
13422 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
13423 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 13424
9668be7c
KS
13425 * macterm.c: Remove generic fringe code.
13426 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
13427 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
13428
00a88f32
SM
134292003-03-11 Stefan Monnier <monnier@cs.yale.edu>
13430
13431 * print.c (Fprin1_to_string): Return unibyte string if possible.
13432
1d1de695
DK
134332003-03-09 David Kastrup <dak@gnu.org>
13434
13435 * process.c (read_process_output): We have allocated enough space
13436 for readmax and carryover, so actually use the alloted space.
13437
257f40f2
JD
134382003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13439
13440 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
13441 toolkit scrollbar click.
13442
13443 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
13444 for USE_GTK.
13445 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
13446 also.
1d1c7e75 13447 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 13448 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 13449
78819ebb 13450 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
13451
13452 * gtkutil.c (xg_get_scroll_id_for_window): New function.
13453 (xg_tool_bar_item_expose_callback): New function.
13454 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
13455 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
13456 on the tool bar widget.
13457 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
13458 to expose on the tool bar item widgets.
13459
15213141
JD
134602003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13461
26b74a0b 13462 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 13463 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
13464 deleted from the image cache).
13465
15213141
JD
13466 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
13467 the event isn't for a frame (i.e. for dialogs).
13468
20b853f3 134692003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
13470
13471 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
13472 composition components reaches the limit, terminate composing.
13473 (COMPOSITION_OK): New macro.
00a88f32 13474 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
13475 composition is found.
13476 (coding_restore_composition): Adjust the number of composition
13477 components if it is not sane.
13478
c9029fe5
JB
134792003-03-06 Juanma Barranquero <lektu@terra.es>
13480
13481 * w32term.h (struct w32_display_info): Add xrdb member to support
13482 passing resources via -xrm on Windows.
13483
13484 * w32term.c (w32_make_rdb): New function.
13485 (w32_term_init): Use it to initialize xrdb member of w32_display_info
13486 struct. Delete leftover code.
13487
13488 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
13489 for resources passed on the command line.
13490
13491 * w32reg.c (w32_get_rdb_resource): New function.
13492 (x_get_string_resource): Use it, so resources passed with -xrm
13493 supercede the ones in the registry.
13494
9d00001f
JD
134952003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13496
13497 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
13498 instead of x_top_window_to_frame.
13499
ca2417b9
JD
135002003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13501
13502 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
13503 when restarting Emacs.
13504
5b20caf0
RS
135052003-03-03 Richard M. Stallman <rms@gnu.org>
13506
13507 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
13508 to run kill-buffer-query-functions.
13509 (Qkill_buffer_query_functions): New var.
13510 (syms_of_buffer): Init and staticpro it.
13511
58e91b77
JD
135122003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13513
13514 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
13515
932357b4
KS
135162003-02-25 Kim F. Storm <storm@cua.dk>
13517
13518 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
13519 If centering point failed to make whole line visible and vscroll
13520 is non-zero, disable vscroll and try centering point again.
13521
13522 * lread.c (read1): Accept `single space' syntax like (? x).
13523
bb8db7e1
JD
135242003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13525
13526 * keyboard.c (cancel_hourglass_unwind): Surround with
13527 #ifdef HAVE_X_WINDOWS
13528
47d77aab
KH
135292003-02-25 Kenichi Handa <handa@m17n.org>
13530
13531 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
13532 process only when "subprocesses" is defined.
13533
6a097c0c
SM
135342003-02-24 Stefan Monnier <monnier@cs.yale.edu>
13535
13536 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
13537
0b063c27
JB
135382003-02-24 Juanma Barranquero <lektu@terra.es>
13539
d1135afc
JB
13540 * callint.c (fix_command): Declare as static void and move before
13541 Fcall_interactively.
13542
0b063c27
JB
13543 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
13544 (syms_of_xdisp): Don't initialize Qwhen.
13545
0af912f0
JD
135462003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13547
13548 * keyboard.c (cancel_hourglass_unwind): New function.
13549 (command_loop_1): Cancel hourglass with unwind-protect.
13550
120d0a23
RS
135512003-02-23 Richard M. Stallman <rms@gnu.org>
13552
13553 * callint.c (fix_command): New subroutine, from Fcall_interactively.
13554 Detect (when ... (region-beginning)) etc.
13555 (Fcall_interactively): Call fix_command.
13556 (Qif, Qwhen): New variables.
13557 (syms_of_callint): Init and staticpro them.
0b063c27 13558
120d0a23
RS
13559 * regex.c (print_partial_compiled_pattern): Output to stderr.
13560
4ece81a6
KG
135612003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13562
13563 * dired.c (directory_files_internal): Don't expand directory.
13564 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
13565 instead. From Lars Hansen <larsh@math.ku.dk>.
13566
e52bd6b7
SM
135672003-02-22 Stefan Monnier <monnier@cs.yale.edu>
13568
13569 * fns.c (string_to_multibyte): Remove unused var i.
13570 (Flanginfo): Fix int/Lisp_Object mixup.
13571 (void_call2): New fun.
13572 (Fmap_char_table): Use it in place of call2.
13573
13574 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
13575
13576 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
13577
13578 * keymap.c (copy_keymap_1): Make it static.
13579
13580 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
13581
c33ef7c4
JB
135822003-02-22 David Ponce <david@dponce.com>
13583
13584 * lread.c (Fload): Don't check STRING_MULTIBYTE.
13585
16782258
JD
135862003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13587
13588 * process.h: Removed subtty field from struct Lisp_Process.
13589
13590 * process.c (create_process): Remove setting of subtty.
13591 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
13592 (Fprocess_running_child_p, process_send_signal):
13593 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
13594 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
13595
3abeca61
KG
135962003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
13597
13598 * keymap.c (Fdefine_key): Doc fix.
13599
92a8ce63
JB
136002003-02-21 Juanma Barranquero <lektu@terra.es>
13601
13602 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
13603
13604 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
13605 POLLING_PROBLEM_IN_SELECT.
13606
13607 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
13608 Delete #undef of POLLING_PROBLEM_IN_SELECT.
13609
13610 * s/hpux10-20.h: New file.
13611
e52bd6b7
SM
13612 * process.c (wait_reading_process_input):
13613 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 13614
20f1ef2e
KH
136152003-02-20 Kenichi Handa <handa@m17n.org>
13616
32d0a9dc
KH
13617 * fontset.c (check_fontset_name): If NAME is nil, return the
13618 default fontset.
13619 (override_font_info): New function.
e52bd6b7 13620 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
13621 (Ffontset_info): If FONTSET is not the default fontset, merge
13622 FONTSET onto the copy of the default fontset, and work on that
13623 copy. Document that NAME nil means the default fontset.
13624 (Ffontset_font): Document that NAME nil means the default fontset.
13625
20f1ef2e
KH
13626 * process.c (setup_process_coding_systems): If the process's
13627 in/out descriptor is -1, do nothing.
13628
77d1daf2
AS
136292003-02-19 Andreas Schwab <schwab@suse.de>
13630
e52bd6b7
SM
13631 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
13632 Add prototypes.
77d1daf2 13633
f9a45bb3
KH
136342003-02-19 Kenichi Handa <handa@m17n.org>
13635
13636 * xfaces.c (try_alternative_families): Try all scalable fonts if
13637 Vscalable_fonts_allowed is not Qt.
13638
72ecb43c
JD
136392003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13640
13641 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
13642
ee5be7c3
JD
136432003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13644
13645 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
13646 names.
13647
13648 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 13649 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
13650 x_face_list_fonts.
13651 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
13652 (Fx_list_fonts): Set maxnames to -1 to get all font names.
13653
4cd519a7
KS
136542003-02-18 Kim F. Storm <storm@cua.dk>
13655
068f9882
KS
13656 * lread.c (read1): Fix last change.
13657 "`" is not always special. Allow "?" after a character constant.
4cd519a7 13658
7290a344
AC
136592003-02-18 Andrew Choi <akochoi@shaw.ca>
13660
13661 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
13662
1f7fa69b
AS
136632003-02-18 Andreas Schwab <schwab@suse.de>
13664
13665 * window.c (window_scroll_pixel_based): Move outside a
13666 multi-glyph character before setting new window start.
13667
13668 * xdisp.c (in_display_vector_p): New function.
13669 * dispextern.h (in_display_vector_p): Declare.
13670
23e21195
KS
136712003-02-18 Kim F. Storm <storm@cua.dk>
13672
13673 * lread.c (read1): Fix and relax read syntax.
13674 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
13675 Only recognize "," after dotted-pair dot if inside backquote.
13676 Never include "`" or "," (inside backquote) in a symbol.
13677 Allow dotted-pair dot after a character constant.
13678 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 13679
f098b121
JD
136802003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13681
13682 * gtkutil.c (xg_tool_bar_expose_callback): New function.
13683 (xg_create_tool_bar): Force style of tool bar to be horizontal with
13684 icons. Set name of tool bar to emacs-toolbar.
13685 (update_frame_tool_bar): Connect expose event to
13686 xg_tool_bar_expose_callback.
13687
63020c46
RS
136882003-02-17 Richard M. Stallman <rms@gnu.org>
13689
13690 * keyboard.c (this_command_key_count_reset): New variable.
13691 Initiatize to 0 where this_command_key_count is set.
13692 (read_char): Save and restore this_command_key_count_reset
13693 around input method code.
13694 (read_char): If this_command_key_count_reset, echo reread commands.
13695 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
13696
fb4452cc
KH
136972003-02-17 Kenichi Handa <handa@m17n.org>
13698
13699 * fns.c (string_to_multibyte): Always return a multibyte string.
13700
bd11cc09
JR
137012003-02-16 Jason Rumney <jasonr@gnu.org>
13702
e52bd6b7
SM
13703 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
13704 Negative max_fonts parameter means list all.
bd11cc09 13705
4cdf4bde
DL
137062003-02-14 Dave Love <fx@gnu.org>
13707
13708 * fns.c (Flanginfo): Doc fix.
13709
023b93f6
KS
137102003-02-13 Kim F. Storm <storm@cua.dk>
13711
37cd4238
KS
13712 * lread.c (read_escape): Interpret \s as a SPACE character, except
13713 for \s-X in a character constant which still is the super modifier.
13714 (read1): Signal an `invalid read syntax' error if a character
13715 constant is immediately followed by a digit or symbol character.
13716
140a6b7e
KS
13717 * search.c (Fmatch_data): Doc fix. Explicitly state that
13718 match-data is undefined if last search failed.
13719
3419757d 13720 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
13721 All uses changed.
13722
7d5c86e5
JB
137232003-02-12 Juanma Barranquero <lektu@terra.es>
13724
13725 * eval.c (Fdefmacro): Fix typo.
13726
295fff2c
KS
137272003-02-12 Kim F. Storm <storm@cua.dk>
13728
13729 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
13730 macro is a string, convert meta modifiers in string when copying
13731 the string into a vector.
13732
60f3202d
KS
137332003-02-11 Kim F. Storm <storm@cua.dk>
13734
13735 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
13736
61cb0b53
KH
137372003-02-11 Kenichi Handa <handa@m17n.org>
13738
13739 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
13740
7392e23c
KS
137412003-02-10 Kim F. Storm <storm@cua.dk>
13742
13743 * process.c: Doc fixes.
13744 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
13745
ce4254bd
KH
137462003-02-10 Kenichi Handa <handa@m17n.org>
13747
9c7a329a
KH
13748 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
13749
ce4254bd
KH
13750 * process.c (QCfilter_multibyte): New variable.
13751 (setup_process_coding_systems): New function.
e52bd6b7
SM
13752 (Fset_process_buffer, Fset_process_filter):
13753 Call setup_process_coding_systems.
ce4254bd
KH
13754 (Fstart_process): Initialize the member `filter_multibyte' of
13755 struct Lisp_Process.
13756 (create_process): Call setup_process_coding_systems.
13757 (Fmake_network_process): New keyward `:filter-multibyte'.
13758 Initialize the member `filter_multibyte' of struct Lisp_Process.
13759 Call setup_process_coding_systems.
13760 (server_accept_connection): Call setup_process_coding_systems.
13761 (read_process_output): If the process has a filter, decide the
13762 multibyteness of a string to given to the filter by
13763 `filter_multibyte' member of the process. If the process doesn't
13764 have a filter and the result of conversion is unibyte, use
13765 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
13766 multibyte form.
13767 (Fset_process_coding_system): Call setup_process_coding_systems.
13768 (Fset_process_filter_multibyte): New function.
13769 (Fprocess_filter_multibyte_p): New function.
13770 (syms_of_process): Intern and staticpro QCfilter_multibyte.
13771 Defsubr Sset_process_filter_multibyte and
13772 Sprocess_filter_multibyte_p.
13773
13774 * process.h (struct Lisp_Process): New member filter_multibyte.
13775
13776 * lisp.h (setup_process_coding_systems): Add prototype.
13777
13778 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
13779 process, update coding systems for the process.
13780
b08d5f59
KH
137812003-02-09 Kenichi Handa <handa@m17n.org>
13782
13783 * fns.c (string_to_multibyte): New function.
13784 (Fstring_to_multibyte): New function.
13785 (syms_of_fns): Defsubr it.
13786
0dfd93c0
AS
137872003-02-08 Andreas Schwab <schwab@suse.de>
13788
13789 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
13790 instead of the substitution.
13791
7b76ca1c
JD
137922003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13793
13794 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
13795
13796 * xmenu.c (menu_position_func): Adjust menu popup position so that
13797 the menu is fully visible.
7b76ca1c 13798
2436a4e4
JD
137992003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13800
13801 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
13802 (x_make_frame_invisible, x_wm_set_icon_position):
13803 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
13804
13805 * xfns.c (x_set_name, x_set_title): Ditto.
13806
37d1e680
RS
138072003-02-04 Richard M. Stallman <rms@gnu.org>
13808
13809 * keyboard.c (echo_now): Update before_command_echo_length.
13810 (Freset_this_command_lengths): Reset this_command_key_count etc.
13811 immediately rather than arranging to do it later.
13812 (before_command_key_count_1, before_command_echo_length_1)
13813 (before_command_restore_flag): Vars deleted.
13814 (add_command_key): Don't handle before_command_restore_flag.
13815 (read_char, record_menu_key): Don't update before_command_key_count or
13816 before_command_echo_length.
13817 (read_char): Don't handle before_command_restore_flag.
13818
13819 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
13820 in direct-output clauses if it wouldn't be called in the ordinary case.
13821
578846a3
KS
138222003-02-04 Kim F. Storm <storm@cua.dk>
13823
13824 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
13825
49853a4d
JD
138262003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13827
13828 * gtkutil.c (remove_from_container): Copying list is not needed.
13829 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
13830 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
13831 on list returned from gtk_container_get_children to avoid memory leak.
13832
8b53dc06
JR
138332003-02-01 Jason Rumney <jasonr@gnu.org>
13834
5d54d177
JR
13835 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
13836 local malloc.
13837 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
13838 definitions in xpm.h.
13839 (init_xpm_functions): New function.
f63fd14e 13840 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
13841 (init_external_image_libraries): Try to load libXpm.dll.
13842
8b53dc06
JR
13843 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
13844 timestamp.
13845
b222e415
DL
138462003-01-31 Dave Love <fx@gnu.org>
13847
13848 * syntax.c (Fskip_chars_forward)
13849 (open-paren-in-column-0-is-defun-start): Doc fix.
13850
c60ee5e7
JB
138512003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
13852
13853 * fileio.c: Support // at start of name for Cygwin (just added proper
13854 preprocessor tests).
13855
13856 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
13857
13858 * Makefile.in: Use @EXEEXT@ for Cygwin.
13859
13860 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
13861
13862 * s/cygwin.h: Added for Cygwin port.
13863
53b37591
JB
138642003-01-31 Juanma Barranquero <lektu@terra.es>
13865
13866 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
13867 when including gif_lib.h.
fe929957 13868 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
13869 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
13870 Windows. Disable color table lookups. Call library functions
53b37591 13871 through pointers determined at runtime.
fe929957
JB
13872 (init_external_image_libraries): Try to load libungif.dll and
13873 libtiff.dll.
53b37591 13874
45415a8f
KH
138752003-01-31 Kenichi Handa <handa@m17n.org>
13876
13877 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 13878 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 13879
a97e4138
JD
138802003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13881
e52bd6b7 13882 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 13883
6eed9bed
DL
138842003-01-30 Dave Love <fx@gnu.org>
13885
13886 * alloc.c (Vgc_elapsed, gcs_done): New variables.
13887 (Fgarbage_collect): Use them.
13888 (init_alloc, syms_of_alloc): Set them up.
13889
100dcd40
JB
138902003-01-30 Juanma Barranquero <lektu@terra.es>
13891
13892 * w32fns.c (init_external_image_libraries): Add missing operator.
13893
fbd852af
JR
138942003-01-29 Jason Rumney <jasonr@gnu.org>
13895
13896 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
13897 an alternative name for jpeg.dll.
13898
8a2d8020
KH
138992003-01-29 Kenichi Handa <handa@m17n.org>
13900
13901 * xdisp.c (set_cursor_from_row): Pay attention to string display
13902 properties.
13903
058c18c7
AC
139042003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
13905
13906 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
13907 <escape>.
13908 (keycode_to_xkeysym_table): Reformat and add more comments.
13909 (XTread_socket): Drop special case for backspace.
13910
385f11cf
AC
139112003-01-28 Andrew Choi <akochoi@shaw.ca>
13912
13913 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
13914 values in old-style RGB specs.
13915
c922a224
JB
139162003-01-27 Juanma Barranquero <lektu@terra.es>
13917
13918 * w32fns.c (init_external_image_libraries): Try alternate names for the
13919 jpeg dll.
13920
0a1d6de0
JD
139212003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13922
13923 * gtkutil.c (create_dialog, xg_separator_p)
13924 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
13925 before calling strcmp or strlen.
13926
a97e4138 139272003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
13928
13929 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
13930 and handle image load failure.
13931
28908312
JR
139322003-01-26 Jason Rumney <jasonr@gnu.org>
13933
13934 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
13935 New functions.
f63fd14e
JB
13936 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
13937 Disable color table lookups. Call jpeg library functions
28908312
JR
13938 through pointers determined at runtime.
13939 (init_external_image_libraries): Try to load jpeg.dll.
13940
84e47416
RS
139412003-01-25 Richard M. Stallman <rms@gnu.org>
13942
13943 * lisp.h: Declare format2 instead of format1.
13944
13945 * fileio.c (barf_or_query_if_file_exists):
13946 Call format2 instead of format1.
13947
13948 * editfns.c (format2): New function, replaces format1
13949 but takes exactly two Lisp Objects as format args.
13950
13951 * buffer.c (Fkill_buffer): Call format2 instead of format1.
13952
a97e4138 139532003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
13954
13955 * xterm.h: Change to return value of x_dispatch_event to int.
13956
13957 * xterm.c (x_filter_event): New function.
13958 (event_handler_gdk, XTread_socket): Call x_filter_event.
13959 (x_dispatch_event): Change to return value of finish.
13960 (event_handler_gdk): Use return value from x_dispatch_event.
13961
13962 * xfns.c (x_window): Call create_frame_xic for GTK version to
13963 initialize input methods.
13964
13965 * gtkutil.h: Add (void) prototypes.
13966
13967 * gtkutil.c (create_menus): Remove code that puts the help menu to
13968 the right.
13969
54eefef1
JR
139702003-01-25 Jason Rumney <jasonr@gnu.org>
13971
13972 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
13973 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
13974 (png_load): Adjust colors for Windows. Use Windows
13975 bitmaps. Disable color table lookups.
c262430d
JR
13976 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
13977 (init_png_functions): New function.
13978 (png_read_from_memory, png_load): Call png library functions
13979 through pointers determined at runtime.
13980 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
13981 (init_external_image_libraries): New function.
13982 (init_xfns): Call it.
54eefef1 13983
1a9e275b
AS
139842003-01-24 Andreas Schwab <schwab@suse.de>
13985
13986 * minibuf.c (Fminibuffer_message): Verify type of parameter.
13987
a97e4138 139882003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
13989
13990 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
13991 of static initializer.
13992
422eec7e
DL
139932003-01-24 Dave Love <fx@gnu.org>
13994
13995 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
13996 architectures.
13997
13998 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
13999 Use __alignof__.
14000
2a026b04
KH
140012003-01-24 Kenichi Handa <handa@m17n.org>
14002
14003 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 14004 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
14005 (command_loop_1): Call adjust_point_for_property with proper
14006 second arg.
14007
a18bb28d
JR
140082003-01-22 Jason Rumney <jasonr@gnu.org>
14009
14010 Sync changes with xterm.c and xfns.c.
14011
14012 * w32term.c (x_draw_glyph_string_foreground)
14013 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14014
14015 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
14016 phys_cursor's hpos is overwritten. This is still not completely
14017 correct, as it doesn't really make sense to use hpos at all to
14018 get the cursor glyph (as that is relative to the width of the
14019 characters on the line, which may have changed during the update).
14020
14021 * w32term.c (notice_overwritten_cursor): Handle the special case
14022 of the cursor being in the first blank non-text line at the
14023 end of a window.
14024
14025 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14026 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14027 Compute from the x position returned by x_draw_glyphs.
14028
14029 (x_display_and_set_cursor): Don't set phys_cursor_width here,
14030 except for NO_CURSOR and system caret, to make phys_cursor_width
14031 contain what its name suggests.
14032 (notice_overwritten_cursor): Consider the cursor image erased if
14033 the output area intersects the cursor image in y-direction.
14034
6a097c0c
SM
14035 * w32term.c (note_mode_line_or_margin_highlight): Rename from
14036 note_mode_line_highlight and extend.
a18bb28d
JR
14037
14038 * w32term.c (last_window): New variable.
14039 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
14040 (note_mouse_movement): Remove reimplemented code in #if 0.
14041
14042 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
14043 not update_mode_lines, and always set it to 1.
14044
ac6e47ef
JR
140452003-01-21 Jason Rumney <jasonr@gnu.org>
14046
14047 * w32fns.c (IDC_HAND): Define it if system headers don't.
14048
140492003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14050
14051 * w32term.h (struct w32_output): New member hand_cursor.
14052 (WM_EMACS_SETCURSOR): New message definition.
14053
14054 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
14055 function w32_define_cursor.
14056 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
14057 position, change member name output_data.x to output_data.w32 and
14058 add function w32_define_cursor.
14059 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
14060 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
14061 (w32_initialize_display_info):
14062 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
14063
14064 * w32fns.c (Vx_hand_shape): New variable.
14065 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
14066 WM_EMACS_SETCURSOR.
14067 (x-create-frame): Setup Cursor types.
14068
ceb39a17
JB
140692003-01-21 David Ponce <david@dponce.com>
14070
ac6e47ef 14071 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
14072 ccl->reg[2] to -1 before calling ccl_driver.
14073 (Sync. with xterm.c x_encode_char change by Kenichi Handa
14074 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
14075 (w32_draw_relief_rect): Declare all args.
14076 (w32_define_cursor): New.
14077
14078 * w32fns.c (w32_load_cursor): New function.
14079 (w32_init_class): Use it.
14080 (x_put_x_image): Declare all args.
14081
b6189c3b 140822003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
14083
14084 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
14085
a97e4138 140862003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
14087
14088 * gtkutil.c: Must include stdio.h before termhooks.h
14089
83fc9c63
DL
140902003-01-21 Dave Love <fx@gnu.org>
14091
14092 * alloc.c (Fgc_status): Print zombie list.
14093 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14094 Fix assignment of zombies.
14095 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14096 Don't take car of non-cons.
14097
14098 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14099
14100 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14101
fe04b8c8
JR
141022003-01-20 David Ponce <david@dponce.com>
14103
14104 * w32menu.c (digest_single_submenu): Declare all args.
14105
14106 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
14107 changes in xmenu.c:
14108
14109 (parse_single_submenu): Use individual keymap's prompt
14110 string as pane name, if there is one.
14111 (set_frame_menubar): Save menu_items_n_panes from each call to
14112 parse_single_submenu and use it when calling digest_single_submenu.
14113
539e69a9
ST
141142003-01-20 Steven Tamm <steventamm@mac.com>
14115
7e26f91b 14116 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
14117 before sending a scroll-wheel event.
14118
675d000f
RS
141192003-01-20 Richard M. Stallman <rms@gnu.org>
14120
14121 * xdisp.c (redisplay_window): If mini window's buffer is not
14122 a minibuffer, then redisplay it like other windows.
14123
a97e4138 141242003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
14125
14126 * gtkutil.c (xg_create_frame_widgets): Check if there is an
14127 external tool bar before setting tool bar height.
14128
048addec
JD
141292003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14130
14131 * xterm.c (handle_one_xevent): Surround popup_activated
14132 with #ifdef:s for non-toolkit version.
14133
14134 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
14135 (gtkutil.o): New file.
14136 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
14137 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
14138
14139 * gtkutil.c: New file for GTK version.
14140
14141 * gtkutil.h: New file for GTK version.
14142
14143 * xterm.h: Add xt_or_gtk_widget.
14144 Include gtk files for USE_GTK.
14145 (struct x_output): Add toolbar_height.
14146 (struct x_output): Add GTK widgets and Gdk size_hints.
14147 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
14148 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
14149 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
14150
14151 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 14152 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
14153 (note_mouse_highlight): Check popup_activated for USE_GTK.
14154 (xt_action_hook): Don't compile if USE_GTK.
14155 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
14156 (xg_scroll_callback): New function.
14157 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
14158 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
14159 for USE_GTK.
14160 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
14161 xg_show_scroll_bar for USE_GTK.
14162 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
14163 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
14164 (event_handler_gdk): New function for USE_GTK.
14165 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
14166 (handle_one_xevent): Make sure widget is mapped before
14167 calling x_real_positions for USE_GTK.
14168 (XTread_socket): Add GTK event loop for USE_GTK.
14169 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
14170 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
14171 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
14172 (x_iconify_frame): Add code for USE_GTK.
14173 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
14174 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
14175 is in gtkutil.c.
14176 (x_term_init): Add initialization for GTK.
14177 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
14178
14179 * xmenu.c: Include gtkutil.h for USE_GTK.
14180 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
14181 (single_menu_item, single_menu_item, Fx_popup_dialog):
14182 Check for USE_GTK.
048addec
JD
14183 (popup_widget_loop): New function for USE_GTK.
14184 (x_activate_menubar): Add code for USE_GTK.
14185 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
14186 (menu_highlight_callback, menubar_selection_callback):
14187 Add USE_GTK versions.
048addec
JD
14188 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
14189 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
14190 (free_frame_menubar): Only compile if not USE_GTK. GTK version
14191 is in gtkutil.c.
14192 (popup_selection_callback): New version for USE_GTK.
14193 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 14194 one USE_X_TOOLKIT version.
048addec
JD
14195 (xmenu_show): Call create_and_show_popup_menu.
14196 (dialog_selection_callback): New version for USE_GTK.
14197 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 14198 one USE_X_TOOLKIT version.
048addec
JD
14199 (xdialog_show): Call create_and_show_dialog.
14200
14201 * xfns.c: Include gtkutil for USE_GTK.
14202 (x_window_to_frame, x_any_window_to_frame)
14203 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14204 (x_top_window_to_frame): Add code for USE_GTK.
14205 (x_set_background_color): Call xg_set_background_color for GTK.
14206 (x_set_menu_bar_lines): Check for USE_GTK.
14207 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
14208 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
14209 (x_window): Call xg_create_frame_widgets for USE_GTK.
14210 (Fx_create_frame): Check for USE_GTK
14211 (Fx_file_dialog): New implementation for USE_GTK.
14212
14213 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
14214 (update_menu_bar): Add check for USE_GTK.
14215 (update_tool_bar): Add check for USE_GTK and external tool bar.
14216 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
14217 (redisplay_internal): Add check for USE_GTK and popup_activated.
14218 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
14219 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
14220 (display_menu_bar): Add check for USE_GTK
14221
78819ebb 14222 * lisp.h (Vx_resource_name): Declare extern.
048addec 14223
a64387ee 14224 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
14225 for USE_GTK.
14226 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
14227
14228 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
14229 (FRAME_EXTERNAL_TOOL_BAR): New macro.
14230 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
14231
14232 * fileio.c (Fread_file_name): Add check for USE_GTK.
14233
6bdb309a
SM
14234 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
14235 Add check for USE_GTK.
048addec
JD
14236
14237 * config.in: Added HAVE_GTK
14238
14239 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
14240
142412003-01-18 Stefan Monnier <monnier@cs.yale.edu>
14242
14243 * charset.h (Funibyte_char_to_multibyte): Export.
14244
142452003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14246
14247 * xmenu.c (mouse_position_for_popup): New function.
14248 (Fx_popup_menu): Call mouse_position_for_popup for X and
14249 mouse_position_hook for others.
14250
142512003-01-17 Kim F. Storm <storm@cua.dk>
14252
14253 * editfns.c (Finsert): Mention `string-make-multibyte' and
14254 `string-as-multibyte' in doc string.
14255
142562003-01-17 Kenichi Handa <handa@m17n.org>
14257
14258 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 14259
048addec
JD
14260 * editfns.c (Fformat): Convert an unibyte char argument that is
14261 formatted by "%c" to multibyte if the total result must be a
14262 multibyte string.
cd7df9c0 14263
048addec 142642003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 14265
048addec
JD
14266 * process.c (set-process-filter): Document unibyte/multibyte-ness
14267 of string argument.
56210ecd 14268
048addec 142692003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 14270
048addec 14271 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 14272
048addec
JD
14273 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
14274 (re_search_2): Likewise.
6df8b9fe 14275
048addec 142762003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 14277
048addec
JD
14278 * xdisp.c (message_dolog): Fix bug of the case that *Message*
14279 buffer is unibyte.
292ddc31 14280
048addec 142812003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 14282
048addec 14283 * fns.c (Fsubstring): Clarify doc string.
292ddc31 14284
048addec
JD
14285 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
14286 (Fprevious_char_property_change)
14287 (Fnext_single_char_property_change)
14288 (Fprevious_single_char_property_change, Fnext_property_change)
14289 (Fnext_single_property_change, Fprevious_property_change)
14290 (Fprevious_single_property_change, Fadd_text_properties)
14291 (Fput_text_property, Fset_text_properties)
14292 (Fremove_text_properties, Fremove_list_of_text_properties)
14293 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 14294
048addec 142952003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 14296
048addec
JD
14297 * process.h (struct Lisp_Process): New member plist replaces old
14298 member private_vars. All uses changed.
63e4e4c6 14299
048addec 14300 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 14301 (QCplist): Rename from QCvars. Change all uses.
048addec 14302 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 14303 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 14304 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 14305 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 14306
048addec 143072003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 14308
6bdb309a 14309 * m/delta.h: Remove (obsolete).
e833850f 14310
048addec 143112003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 14312
048addec
JD
14313 * fileio.c (Fdelete_directory, Fdelete_file): Document the
14314 behaviour in front of symlinks.
14315 (Fdelete_file): Raise an error on directories.
817cb127 14316
048addec 143172003-01-13 Dave Love <fx@gnu.org>
817cb127 14318
048addec 14319 * fns.c (Freverse): Use QUIT.
3e8cf2ea 14320
048addec 143212003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 14322
048addec
JD
14323 * minibuf.c (minibuffer_completion_contents):
14324 Error if point is inside prompt.
3e8cf2ea 14325
048addec
JD
14326 * keyboard.c (command_loop_1): Don't redisplay directly
14327 if there's a post-command-hook.
3e8cf2ea 14328
048addec
JD
14329 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
14330 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 14331
048addec 143322003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 14333
048addec 14334 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 14335
048addec
JD
14336 * process.c (QCvars): New variable.
14337 (syms_of_process): Intern and staticpro it.
14338 (Fset_process_contact): Removed function.
14339 (Fprocess_variable, Fset_process_variable): New functions.
14340 (syms_of_process): Defsubr them.
14341 (Fstart_process): Initialize private_vars plist to nil.
14342 (Fmake_network_process): New arg :vars to setup the private
14343 variables for new network process.
14344 (server_accept_connection): Copy server's private variables to
14345 client process.
2c10f029 14346
048addec
JD
14347 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
14348 crashes). Code rewritten and simplified. Now directly aligns the
14349 pointer and recalculates pure_bytes_used, rather than aligning the
14350 size and adjusting the pointer.
b8a76c6c 14351
048addec 143522003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 14353
048addec
JD
14354 * process.c (Fset_process_contact): New function.
14355 (syms_of_process): defsubr it.
14356 (make-network-process): Update doc.
3a8d0899 14357
048addec 143582003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 14359
048addec
JD
14360 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
14361 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 14362
048addec 143632003-01-10 Dave Love <fx@gnu.org>
4abc7470 14364
048addec 14365 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 14366
048addec 143672003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 14368
048addec
JD
14369 * process.c (Fmake_network_process): Convert new port number
14370 to host byte order for `:service t' case. From Mario Lang.
bf338245 14371
048addec 143722003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 14373
048addec
JD
14374 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
14375 instead of XtAppProcessEvent.
bf338245 14376
048addec
JD
14377 * xterm.c (handle_one_xevent): New function.
14378 (x_dispatch_event): New function.
14379 (XTread_socket): Call handle_one_xevent.
bf338245 14380
048addec 14381 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 14382
048addec
JD
14383 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
14384 call XQueryPointer to get coordinates.
14385 (popup_get_selection): Do not set popup_activated_flag to zero,
14386 let popup_deactivate_callback do that. Needed for Motif.
14387 Call x_dispatch_event instead of XtDispatchEvent.
14388 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 14389
048addec 143902003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 14391
6bdb309a 14392 * process.c (server_accept_connection): Fix recording of new
048addec
JD
14393 connection's local address in :local property of contact info.
14394 (Fmake_network_process): Record local network address for new
14395 client processes in :local property of contact info.
6bdb309a 14396 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 14397
048addec 143982003-01-07 Dave Love <fx@gnu.org>
00e3ab56 14399
048addec 14400 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 14401
048addec 144022003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 14403
048addec 14404 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 14405
048addec
JD
14406 * eval.c (Fuser_variable_p): Doc change. For custom variables,
14407 use the same test as for custom-variable-p.
8c6d74c6 14408
048addec 144092003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 14410
048addec
JD
14411 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
14412 Count LAST_LINE_MISFIT in scroll margin for end of window.
14413 Move label too_near_end before setting SCROLL_MARGIN_POS.
14414 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 14415
048addec
JD
14416 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
14417 scroll_conservatively case. If scrolling that much doesn't change
14418 STARTP, move it down one line.
e833850f 14419
048addec
JD
14420 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
14421 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 14422
048addec
JD
14423 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
14424 selected frame.
8c6d74c6 14425
048addec 14426 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 14427 (syms_of_keymap): Staticpro them.
048addec
JD
14428 (Fapropos_internal): Initialize them and clear them out.
14429 Don't GCPRO them.
8c6d74c6 14430
048addec
JD
14431 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
14432 Doc fixes.
8c6d74c6 14433
048addec
JD
14434 * lisp.h: New misc type Lisp_Save_Value.
14435 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
14436 (XSAVE_VALUE): New macro.
14437 (struct Lisp_Save_Value): New data type.
14438 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 14439 (make_save_value): Declare.
8c6d74c6 14440
048addec 14441 * alloc.c (make_save_value): New function.
8c6d74c6 14442
048addec
JD
14443 * xterm.c (x_catch_errors): Save dpy using make_save_value.
14444 (x_catch_errors_unwind): Call XSync.
8c6d74c6 14445
048addec 144462003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 14447
048addec 14448 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 14449
048addec
JD
14450 * keyboard.c (command_loop_1): Call adjust_point_for_property
14451 in direct action cases for Qforward_char and Qbackward_char.
14452 Set already_adjusted so it won't be done twice.
8c6d74c6 14453
b6189c3b 144542002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 14455
048addec
JD
14456 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
14457 type definition of size_t.
8c609cff 14458
048addec 144592003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 14460
048addec
JD
14461 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
14462 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 14463
048addec 144642002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 14465
048addec
JD
14466 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
14467 to default to t.
fa634a5e 14468
048addec 144692002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 14470
048addec 14471 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 14472
048addec 144732002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 14474
7e26f91b 14475 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
14476 allow building in a different directory than source. Uses some
14477 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 14478
048addec 144792002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 14480
048addec
JD
14481 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
14482 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
14483 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
14484 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 14485
048addec 144862002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 14487
048addec
JD
14488 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
14489 <scroll-down-aggressively>: Doc fix.
2155ecf3 14490
048addec
JD
14491 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
14492 string as pane name, if there is one.
14493 (set_frame_menubar): Save menu_items_n_panes from each call to
14494 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 14495
048addec
JD
14496 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
14497 Don't try to make last line fully visible if it is past end of window.
61f1d295 14498
048addec 144992002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 14500
048addec
JD
14501 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
14502 (mac_menu_show): Add support for hierarchical popup menus.
14503 (add_menu_item): Remove indentation support.
14504 (fill_submenu, fill_menu): Create hierarchical menus
14505 instead of using indentation.
0b17a217 14506
048addec 145072002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 14508
048addec
JD
14509 * xdisp.c (try_cursor_movement): Don't call try_window here.
14510 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 14511
048addec 14512 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 14513
048addec 145142002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 14515
048addec
JD
14516 * macterm.c (XTread_socket): Call KeyTranslate for control and
14517 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 14518 being treated like C-%. Do not look for shift key to deal
048addec 14519 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 14520
048addec 145212002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 14522
048addec
JD
14523 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
14524 If it is non-nil, run timers. Use an unwind-protect to requeue
14525 the events that were read ahead.
14526 (popup_get_selection_unwind): New subroutine.
14527 (popup_get_selection_queue): File-scope variable now holds that queue.
14528 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
14529 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
14530 Use an unwind-protect to pop down the dialog box.
14531 (xdialog_show_unwind): New subroutine implements that.
f02cac82 14532
048addec
JD
14533 * xdisp.c (row_containing_pos): Change exit test using last_y.
14534 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 14535
048addec
JD
14536 * lread.c (load_error_handler): New function.
14537 (Fload): Handle errors in Fsubstitute_in_file_name.
14538 Don't expect Fsignal to return.
f02cac82 14539
048addec
JD
14540 * eval.c: Errors and throws work right with interrupt blocking.
14541 (struct catchtag): New elt interrupt_input_blocked.
14542 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
14543 (internal_catch, Fcondition_case, internal_condition_case)
14544 (internal_condition_case_1, internal_condition_case_2): Save it.
14545 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 14546
048addec 14547 * editfns.c (Fformat): Add parens.
f02cac82 14548
048addec
JD
14549 * dired.c (file_name_completion): Fix that change.
14550 Delete special quit-handling code; just use QUIT.
f02cac82 14551
b6189c3b 145522002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 14553
048addec
JD
14554 * dired.c (file_name_completion): Close directory on error
14555 just as in directory_files_internal.
1a590729 14556
048addec 145572002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 14558
048addec
JD
14559 * window.c (Fset_window_configuration): Set old_point to correct
14560 value when new_current_buffer == current_buffer.
f02cac82 14561
048addec 145622002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 14563
048addec
JD
14564 Revisited my earlier fix for the following entry in etc/PROBLEMS:
14565 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14566 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 14567
048addec
JD
14568 These changes were in part based upon suggestions made by Peter
14569 'Luna' Runestig [peter@runestig.com].
9785d95b 14570
f4a5a485
SM
14571 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
14572 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
14573 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 14574 global variables.
9785d95b 14575
048addec
JD
14576 * w32.c (globals_of_w32): New function. Used to initialize those
14577 global variables that must always be initialized on startup even
14578 when the global variable initialized is non zero. Its primary
14579 purpose at this time is to set the global variables
14580 g_b_init_is_windows_9x, g_b_init_open_process_token,
14581 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
14582 g_b_init_get_sid_identifier_authority to 0 on startup.
14583 Called from main.
9785d95b 14584
048addec
JD
14585 * w32.c (is_windows_9x): Perform initialization only if
14586 g_b_init_is_windows_9x is equal to 0. On initialization set
14587 g_b_init_is_windows_9x equal to 1.
2308af15 14588
048addec
JD
14589 * w32.c (open_process_token): Perform initialization only if
14590 g_b_init_open_process_token is equal to 0. On initialization set
14591 g_b_init_open_process_token equal to 1.
2308af15 14592
048addec
JD
14593 * w32.c (get_token_information): Perform initialization only if
14594 g_b_init_get_token_information is equal to 0. On initialization
14595 set g_b_init_get_token_information equal to 1.
9785d95b 14596
048addec
JD
14597 * w32.c (lookup_account_sid): Perform initialization only if
14598 g_b_init_lookup_account_sid is equal to 0. On initialization
14599 set g_b_init_lookup_account_sid equal to 1.
9785d95b 14600
048addec
JD
14601 * w32.c (get_sid_identifier_authority): Perform initialization
14602 only if g_b_init_get_sid_identifier_authority is equal to 0.
14603 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 14604
f63fd14e 14605 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
14606 those global variables that must always be initialized on startup
14607 even when the global variable initialized is non zero.
14608 Its primary purpose at this time is to initialize the global variable
14609 track_mouse_event_fn.
9785d95b 14610
a64387ee 14611 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 14612 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 14613
048addec 14614 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 14615
f63fd14e 14616 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
14617 initialize those global variables that must always be initialized
14618 on startup even when the global variable initialized is non zero.
14619 Its primary purpose at this time is to initialize the global
14620 variables get_menu_item_info and set_menu_item_info.
9785d95b 14621
048addec
JD
14622 * w32menu.c (initialize_frame_menubar): Remove initialization of
14623 get_menu_item_info and set_menu_item_info.
9785d95b 14624
048addec 14625 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 14626
048addec
JD
14627 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
14628 Declare them.
9785d95b 14629
048addec
JD
14630 * emacs.c (main): Call globals_of_w32 prior to calling
14631 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
14632 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
14633 is defined.
9785d95b 14634
048addec
JD
14635 * w32term.c (x_update_window_begin): Fix Windows API error
14636 detected by BoundsChecker. Test to determine if
14637 w32_system_caret_hwnd is NULL prior to attempting to use
14638 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 14639
048addec
JD
14640 * w32term.c (x_update_window_end): Fix Windows API error
14641 detected by BoundsChecker. Test to determine if
14642 w32_system_caret_hwnd is NULL prior to attempting to use
14643 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 14644
048addec 146452002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 14646
048addec
JD
14647 * coding.c (coding_system_require_warning): New variable.
14648 (syms_of_coding): DEFVAR it.
b6da19ef 14649
048addec 14650 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 14651
048addec
JD
14652 * fileio.c (choose_write_coding_system): Even if
14653 Vcoding_system_for_write is non-nil, if
14654 coding_system_require_warning is nonzero, call
14655 Vselect_safe_coding_system_function.
bfcf6dbe 14656
048addec 146572002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 14658
048addec
JD
14659 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
14660 (lisp): Add font-core.
2c568af5 14661
048addec 146622002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 14663
048addec
JD
14664 * textprop.c (text_read_only): New arg `propval'.
14665 (get_char_property_and_overlay): Remove unused var `next_overlay'.
14666 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 14667
048addec 146682002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 14669
048addec 14670 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 14671
048addec 146722002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 14673
048addec
JD
14674 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
14675 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
14676 Be more careful about when help_events are generated.
96720f09 14677
048addec 146782002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 14679
048addec
JD
14680 * macterm.c (mac_check_for_quit_char): Correctly set the
14681 modifiers of the event to 0.
14682 * mac.c (sys_select): Duplicate rfds before calling select to
14683 ensure that rfds survive the while loop.
e5ae1c49 14684
048addec 146852002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 14686
048addec
JD
14687 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
14688 row_containing_pos returned NULL.
2eb46b2d 14689
048addec 146902002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 14691
6bdb309a 14692 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 14693 non-blocking.
6bdb309a 14694 (sys_select): Fix sys_select to not use a timeout larger than
048addec 14695 the one given.
b11f1d8a 14696
048addec 146972002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 14698
048addec 14699 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 14700
048addec 147012002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 14702
048addec
JD
14703 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
14704 as the last thing.
a4ac5b17 14705
048addec 147062002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 14707
048addec 14708 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 14709
048addec 147102002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 14711
048addec
JD
14712 * editfns.c (Fformat): Handle precision in string conversion
14713 specifiers like libc functions do (ie, print at most that many
14714 characters).
85cce843 14715
048addec 147162002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 14717
048addec
JD
14718 * xdisp.c (row_containing_pos): Check more carefully
14719 whether charpos is really in the row before returning it.
0d4d26a7 14720
048addec 147212002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 14722
048addec 14723 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 14724
048addec
JD
14725 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
14726 each stack frame. This may change as it could be time consuming.
0d4d26a7 14727
048addec
JD
14728 * macterm.c (mac_check_for_quit_char, quit_char_comp)
14729 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 14730 (mac_initialize): Add code to check for pressing of quit_char
048addec 14731 in the OS event queue.
b11f1d8a 14732
048addec
JD
14733 * mac.c (sys_select): Call mac_check_for_quit_char every second
14734 while blocking on select.
0d4d26a7 14735
048addec
JD
14736 * mac.c (sys_read): Use sys_select to test for input first
14737 before calling read, to allow C-g to break.
9252f7bc 14738
048addec 147392002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 14740
048addec 14741 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 14742
048addec 14743 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 14744
048addec 14745 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 14746
048addec
JD
14747 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
14748 autoload.
9252f7bc 14749
048addec 14750 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 14751
048addec 14752 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 14753
048addec 147542002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 14755
048addec 14756 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 14757
048addec 147582002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 14759
048addec 14760 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14761
048addec 14762 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 14763
048addec 14764 * alloca.c: Don't use #error.
02d588e2 14765
048addec 147662002-12-03 Dave Love <fx@gnu.org>
02d588e2 14767
048addec
JD
14768 * buffer.c (Qucs_set_table_for_input): New.
14769 (Fget_buffer_create): Use it.
14770 (Qset_buffer_major_mode_hook): Deleted.
14771 (Fset_buffer_major_mode): Revert previous change.
14772 (init_buffer_once): Intern ucs-set-table-for-input.
14773 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
14774 Add &Qucs_set_table_for_input.
451e2697 14775
048addec 147762002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 14777
048addec
JD
14778 * callint.c (Fcall_interactively): Use next_event only if less
14779 than key_count.
72742a99 14780
048addec 147812002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 14782
048addec
JD
14783 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
14784 names to 255 characters.
72742a99 14785
048addec
JD
14786 * macterm.c (XTread_socket): If all frames have been collapsed,
14787 expand the first one before handling drag-and-drop events.
72742a99 14788
048addec
JD
14789 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
14790 which is detected by autoconf.
40e6ff95 14791
048addec 147922002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 14793
048addec
JD
14794 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
14795 offset in two hints table to allow prebinding to be redone and
14796 allow the executable to be stripped.
c02138c6 14797
048addec 147982002-11-29 Dave Love <fx@gnu.org>
c02138c6 14799
048addec
JD
14800 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
14801 already provided.
0e47bbf7 14802
048addec 148032002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 14804
048addec
JD
14805 * xdisp.c (start_display): Check more intelligently for
14806 whether the line is continued.
14807 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 14808
048addec 148092002-11-28 Dave Love <fx@gnu.org>
44129dcb 14810
048addec
JD
14811 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
14812 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 14813
048addec 148142002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 14815
048addec
JD
14816 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
14817 more descriptive error output from lread.c:Fload upon most require
14818 cycles during boostrapping.
1637fd2c 14819
048addec 148202002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 14821
048addec
JD
14822 * fileio.c (Finsert_file_contents): Give a more appropriate error
14823 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 14824
048addec
JD
14825 * dired.c (Ffile_attributes): Don't return negative file sizes for
14826 files bigger than 2Gb when off_t is 32 bit.
540c2788 14827
048addec 148282002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 14829
048addec 14830 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 14831
048addec
JD
14832 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
14833 Test GETPGRP_VOID instead.
14834 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 14835
048addec
JD
14836 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
14837 Don't define.
14838 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 14839
048addec 14840 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 14841
048addec 148422002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 14843
048addec
JD
14844 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
14845 supported.
4042a81a 14846
048addec 148472002-11-25 Dave Love <fx@gnu.org>
4042a81a 14848
048addec 14849 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 14850
048addec 14851 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 14852
048addec 148532002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 14854
048addec 14855 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 14856
048addec 148572002-11-24 Steven Tamm <steventamm@mac.com>
82122254 14858
048addec
JD
14859 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
14860 determine the size of pointers alloced in unexed space instead
14861 of using possibly invalid emacs_zone pointers. This fixes the
14862 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 14863
048addec 148642002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 14865
048addec 14866 * search.c (Fstring_match): Doc fix.
c1ee53bc 14867
048addec
JD
14868 * callint.c (Fcall_interactively): If a command fails because
14869 `*' detects a read-only buffer, but RECORD_FLAG is set,
14870 record it anyway if the args don't actually do tty input.
5598c32e 14871
048addec 148722002-11-22 Dave Love <fx@gnu.org>
5598c32e 14873
048addec 14874 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 14875
048addec
JD
14876 * keyboard.c (interrupt_signal): Provide forward declaration.
14877 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 14878
048addec 14879 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 14880
048addec 148812002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 14882
048addec
JD
14883 * eval.c (interactive_p): Skip any number of bytecode
14884 and special form frames, in any order.
516eea8e 14885
048addec 148862002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 14887
048addec
JD
14888 * w32fns.c (convert_mono_to_color_image): New function.
14889 (xbm_load, xbm_load_image): Use it when foreground or background
14890 is explicitly set.
04dbfa08 14891
048addec 148922002-11-19 Dave Love <fx@gnu.org>
04dbfa08 14893
048addec 14894 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 14895
048addec 148962002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 14897
048addec
JD
14898 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
14899 (XPutPixel): Swap blue and red.
14900 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
14901 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14902 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
14903 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 14904
048addec 149052002-11-18 Dave Love <fx@gnu.org>
d824beee 14906
048addec 14907 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 14908
048addec 14909 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 14910
048addec 14911 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 14912
048addec
JD
14913 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
14914 malloc, realloc, calloc.
d824beee 14915
048addec
JD
14916 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
14917 (bcmp): Don't define.
d824beee 14918
048addec 14919 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 14920
048addec 14921 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 14922
048addec 14923 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 14924
048addec 14925 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 14926
048addec
JD
14927 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
14928 Don't include alloca.h.
d824beee 14929
048addec 14930 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 14931
048addec 14932 * regex.c (_GNU_SOURCE): Don't define.
1998560a 14933
048addec 14934 * process.c (_GNU_SOURCE): Don't define.
1998560a 14935
048addec 14936 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 14937
048addec 149382002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 14939
048addec 14940 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 14941
048addec 149422002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 14943
048addec
JD
14944 * dispextern.h (struct face): Add `overstrike' field.
14945 * xterm.c (x_draw_glyph_string_foreground)
14946 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14947 * xfaces.c (load_face_font): Set `face->overstrike' based on
14948 result from choose_face_font.
14949 (best_matching_font, choose_face_font): Add `needs_overstrike'
14950 argument, and use it to return whether overstriking is desirable
14951 for this face/font combo.
14952 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 14953
048addec 149542002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 14955
048addec
JD
14956 This change is my fix for the following entry in etc/PROBLEMS:
14957 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14958 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 14959
048addec
JD
14960 * w32.c: Added wrapper functions around the win32 API functions
14961 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
14962 GetSidIdentifierAuthority. These wrapper functions serve two
14963 purposes:
14964 1. They ensure that the wrapped function can never be called
14965 when Emacs is running on an operating system on which they are
14966 not supported (Microsoft Windows 95 / 98 / ME).
14967 2. They call the wrapped functions via function pointers rather
14968 than calling them directly. This avoids taking advantage of the
14969 undocumented fact that although these functions are not supported
14970 in the 9x branch of Microsoft Windows, the functions do exist in
14971 the version of advapi32.dll that is found in the 9x branch of
14972 Microsoft Windows.
f60ae425 14973
6bdb309a 14974 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
14975 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
14976 and GetSidIdentifierAuthority with calls to the newly added
14977 wrapper functions.
f60ae425 14978
048addec
JD
14979 * w32.h: Added extern declarations for the following functions:
14980 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
14981 syms_of_w32menu, and void syms_of_fontset.
f60ae425 14982
6bdb309a 14983 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
14984 function pointer track_mouse_event_fn in the handler for the
14985 WM_SETFOCUS message.
3582b6a3 14986
6bdb309a 14987 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
14988 reinitialize the function pointers set_menu_item_info and
14989 get_menu_item_info.
f60ae425 14990
048addec 149912002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 14992
048addec
JD
14993 * sound.c: Added a partial implementation of play-sound-internal
14994 for Microsoft Windows. Added various #ifdef / #else / #endif
14995 code blocks to separate the code that will compile under
9fed2905 14996 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 14997 Moved several blocks of code around to make this separation of code
9fed2905 14998 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 14999
048addec 15000 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 15001
048addec
JD
15002 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
15003 added support for play-sound-internal under Windows would be
15004 included in the build of Emacs.
517f42a0 15005
048addec 150062002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 15007
048addec 15008 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 15009
048addec 15010 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 15011
048addec 150122002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 15013
048addec
JD
15014 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
15015 (adjust_point_for_property): Move out of display and invisible even if
15016 we were already inside before (in case a property was added while
15017 we weren't looking). Be more careful when handling invisible props.
15018 Skip invisible text as if it really wasn't there at all.
aab83f91 15019
048addec 150202002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 15021
048addec
JD
15022 * w32term.c (x_draw_image_foreground)
15023 (w32_draw_image_foreground_1): Use standard copy and invert
15024 operations to draw images.
aab83f91 15025
048addec
JD
15026 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
15027 depth of 1.
15028 (xbm_read_bitmap_data): Invert bits as xbm is read in.
15029 (XPutPixel): Don't invert bits here.
a4478a76 15030
048addec 150312002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 15032
048addec
JD
15033 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
15034 (w32_draw_image_foreground_1): Handle image masks.
15035 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 15036
048addec
JD
15037 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
15038 (x_from_xcolors): Adjust RGB values for W32.
15039 (image_background, image_background_transparent)
15040 (postprocess_image, x_to_xcolors, x_disable_image)
15041 (x_build_heuristic_mask): Adapt for W32 and enable.
15042 (x_create_x_image_and_pixmap): Mark images with palettes as such.
15043 (xbm_load): Remove unused variable.
03670a65 15044
048addec 150452002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 15046
048addec 15047 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 15048
048addec 150492002-11-14 Dave Love <fx@gnu.org>
59daa29a 15050
048addec 15051 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 15052
048addec
JD
15053 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
15054 * xmenu.c (unuse_menu_items, digest_single_submenu):
15055 * xfns.c (x_put_x_image):
15056 * xdisp.c (message2_nolog, set_message):
15057 * undo.c (record_point):
15058 * terminfo.c (tparam):
15059 * syntax.c (scan_sexps_forward):
15060 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15061 * composite.c (update_compositions):
15062 * cm.c (calccost, cmgoto):
15063 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 15064
048addec 15065 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 15066
048addec
JD
15067 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
15068 Don't declare.
59daa29a 15069
048addec 15070 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 15071
048addec
JD
15072 * fns.c (Fcopy_sequence): Doc fix.
15073 (Fmap_char_table): Cast `call2'.
3947677c 15074
048addec
JD
150752002-11-14 Francesco Potorti` <pot@gnu.org>
15076
15077 * s/sol2-8.h: New file.
15078
150792002-11-14 Kim F. Storm <storm@cua.dk>
15080
15081 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
15082 dependency on `risky-local-variable' and the :propertize form.
15083
150842002-11-12 Stefan Monnier <monnier@cs.yale.edu>
15085
15086 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
15087
15088 * syntax.c (scan_sexps_forward): Undo last patch.
15089 Use a more obvious fix: check eob before updating the syntax table.
15090
150912002-11-09 Stefan Monnier <monnier@cs.yale.edu>
15092
15093 * syntax.c (scan_sexps_forward): Update syntax table before reading
15094 a char rather than after so we don't update the table past eob.
15095
150962002-11-09 Dave Love <fx@gnu.org>
15097
15098 * buffer.c (Fset_buffer_major_mode): Fix last change.
15099
15100 * regex.c (regexec): Fix pmatch declaration.
15101
15102 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
15103
15104 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
15105 to self-inserting characters.
15106 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
15107
15108 * coding.c (Vtranslation_table_for_input): New.
15109 (syms_of_coding): DEFVAR it.
15110
151112002-11-08 Juanma Barranquero <lektu@terra.es>
15112
15113 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
15114 window.
15115
151162002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15117
6bdb309a 15118 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
15119 cp, and i.
15120
151212002-11-06 Dave Love <fx@gnu.org>
15122
15123 * buffer.c (Qset_buffer_major_mode_hook): New.
15124 (Fset_buffer_major_mode): Use it.
15125
151262002-11-06 Richard M. Stallman <rms@gnu.org>
15127
15128 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
15129 and stop_polling.
15130
15131 * process.c (wait_reading_process_input):
15132 Test POLLING_PROBLEM_IN_SELECT, not hpux.
15133 Avoid initialization for auto Lisp_Object var.
15134
15135 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
15136
15137 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
15138
151392002-11-05 Richard M. Stallman <rms@gnu.org>
15140
15141 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
15142
15143 * callint.c (Fcall_interactively): New local filter_specs.
15144 (Fcall_interactively): Check for progn as well as let.
15145 Add a gcpro.
15146 (Qprogn): New variable.
15147 (syms_of_callint): Staticpro and init Qprogn.
15148
151492002-11-04 John Paul Wallington <jpw@shootybangbang.com>
15150
15151 * lread.c (Feval_buffer): Doc fix.
15152
151532002-11-04 Dave Love <fx@gnu.org>
15154
15155 * keyboard.c (read_char): Always translate iff
15156 Vkeyboard_translate_table is a char table and c is valid.
15157
15158 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15159 and fix C types.
15160
151612002-11-03 Stefan Monnier <monnier@cs.yale.edu>
15162
15163 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
15164
15165 * editfns.c (get_pos_property): Don't hardcode Qfield.
15166
15167 * keyboard.c (adjust_point_for_property): Handle `display' prop on
15168 overlays. Also handle `invisible' prop.
15169
151702002-11-02 Stefan Monnier <monnier@cs.yale.edu>
15171
15172 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
15173 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
15174
151752002-11-01 Andreas Schwab <schwab@suse.de>
15176
15177 * editfns.c (Fmessage): Revert last change to properly handle %%.
15178
151792002-11-01 Stefan Monnier <monnier@cs.yale.edu>
15180
15181 * xmenu.c (unuse_menu_items): New fun.
15182 (menu_items_inuse): New var.
15183 (syms_of_xmenu): Initialize it.
15184 (init_menu_items): Use it to detect re-entrance.
15185 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
15186 (Fx_popup_menu): Remove spurious XSETFRAME.
15187
15188 * editfns.c (find_field): Make an exception for nil fields.
15189
151902002-11-01 Dave Love <fx@gnu.org>
15191
15192 * m/gec63.h: Deleted.
15193
151942002-10-31 Dave Love <fx@gnu.org>
15195
15196 * xterm.c (XTread_socket): Fix last change.
15197 (xaw_scroll_callback): Cast call_data to long to avoid warning.
15198
151992002-10-31 Stefan Monnier <monnier@cs.yale.edu>
15200
15201 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
15202
152032002-10-30 Stefan Monnier <monnier@cs.yale.edu>
15204
15205 * editfns.c (overlays_around, get_pos_property): New funs.
15206 (find_field): Use them.
15207 Also be careful not to modify POS before its last use.
15208 (Fmessage): Don't Fformat if there's nothing to format.
15209
152102002-10-30 Dave Love <fx@gnu.org>
15211
15212 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
15213 [HAVE_PTY_H]; Include pty.h.
15214
15215 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
15216
15217 * xterm.c (Qeql): Declare.
15218 (Vx_keysym_table): New.
15219 (syms_of_xterm): Initialize it.
15220 (XTread_socket): Use it. Deal with ASCII keysyms.
15221 (XSetIMValues) [HAVE_X11R6]: Prototype.
15222
15223 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
15224 (lispy_kana_keys): Comment out.
15225 (make_lispy_event) [XK_kana_A]: Comment out.
15226 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
15227 Fix sprintf call.
15228
15229 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
15230 regexp.h change).
15231 (TERMINFO, LIBS_TERMCAP): Define.
15232
15233 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
15234 (bcmp): Define conditional on HAVE_BCMP.
15235 (NO_SIOCTL_H): Don't define.
15236 (TIOCSIGSEND): Don't make conditional on IRIX6.
15237
15238 * s/sol2-5.h: Don't include strings.h.
15239 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
15240
15241 * s/irix6-0.h (IRIX6): Don't define.
15242 (bcopy, bcmp, bzero): Don't undef.
15243
15244 * s/irix6-5.h: Don't include strings.h.
15245 (IRIX6): Don't define.
15246 (bcopy, bcmp, bzero): Don't undef.
15247
15248 * syntax.c (Fforward_comment): Doc fix.
15249
152502002-10-29 Kim F. Storm <storm@cua.dk>
15251
15252 * process.c (Fsignal_process): Allow PROCESS to be specified by
15253 name in addition to pid (as integer or string).
15254
152552002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
15256
15257 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
15258 environments.
15259
152602002-10-27 Kim F. Storm <storm@cua.dk>
15261
15262 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15263
15264 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
15265
15266 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
15267
15268 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15269
152702002-10-26 Richard M. Stallman <rms@gnu.org>
15271
15272 * editfns.c (Fformat): Detect invalid format letters for floats.
15273
152742002-10-25 Kenichi Handa <handa@m17n.org>
15275
15276 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
15277 (x_set_title): Likewise.
15278
152792002-10-25 Juanma Barranquero <lektu@terra.es>
15280
15281 * macgui.h:
15282 * w32gui.h: Remove definition of XColor.
15283
15284 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
15285
152862002-10-24 Kim F. Storm <storm@cua.dk>
15287
15288 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
15289 Callers changed (supply dummy arg).
15290
15291 * lisp.h (get_window_cursor_type): Update prototype.
15292
15293 * w32term.c (x_display_and_set_cursor): Get active_cursor from
15294 get_window_cursor_type to track system caret.
15295
152962002-10-24 Kim F. Storm <storm@cua.dk>
15297
15298 * process.c (Fformat_network_address): New function.
15299 (syms_of_process): Defsubr it.
15300 (list_processes_1): Use it to format :local/:remote address if
f9711de4 15301 service/host is not set; before Emacs would crash in that case.
048addec
JD
15302 (Fmake_network_process): Don't use Ffind_operation_coding_system
15303 to setup coding system if host or service is not set.
15304
153052002-10-23 Juanma Barranquero <lektu@terra.es>
15306
15307 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
15308
15309 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
15310 COLORREF.
15311
15312 * macgui.h:
15313 * w32gui.h: Add definition of XColor.
15314
15315 * macfns.c:
15316 * w32fns.c:
15317 * xfaces.c: Remove definition of XColor.
15318
153192002-10-22 Stefan Monnier <monnier@cs.yale.edu>
15320
15321 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
15322
15323 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
15324 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
15325 window if it is dedicated.
15326 (Fshrink_window): Add preserve_before as was done for enlarge_window.
15327 (Vspecial_display_function): Update docstring.
15328
15329 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
15330 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
15331 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
15332
153332002-10-21 Stefan Monnier <monnier@cs.yale.edu>
15334
15335 * casefiddle.c (casify_region): Don't treat a prefix char as part
15336 of a word when at the beginning.
15337
153382002-10-17 Juanma Barranquero <lektu@terra.es>
15339
15340 * lread.c (syms_of_lread): Fix typos.
15341
153422002-10-17 Dave Love <fx@gnu.org>
15343
15344 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
15345
153462002-10-16 Richard M. Stallman <rms@gnu.org>
15347
15348 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
15349
153502002-10-14 Juanma Barranquero <lektu@terra.es>
15351
15352 * w16select.c (syms_of_win16select): Fix docstring for
15353 `selection-coding-system'.
15354
15355 * w32select.c (syms_of_w32select): Likewise.
15356
153572002-10-14 Stefan Monnier <monnier@cs.yale.edu>
15358
15359 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
15360 a backslash-quoted char.
15361 (scan_lists, scan_sexps_forward): Pacify the compiler.
15362
153632002-10-13 Richard M. Stallman <rms@gnu.org>
15364
15365 * window.c (window_scroll): Set immediate_quit.
15366
15367 * print.c (print): When backquote form is the car of a list,
15368 output in old style. Use old_backquote_output to output all
15369 comma forms inside it in old style too.
15370
15371 * buffer.h (struct buffer): Move `undo_list' down below `name'.
15372
153732002-10-11 Markus Rost <rost@math.ohio-state.edu>
15374
15375 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
15376 batch mode).
15377
15378 * lread.c (Fload): Doc fix (load-suffixes).
15379
153802002-10-10 Steven Tamm <steventamm@mac.com>
15381
15382 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
15383 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
15384 Also switch the default to Qnil from Qt.
15385
153862002-10-08 Kenichi Handa <handa@m17n.org>
15387
15388 * coding.c (code_convert_region): When we need more GAP for
15389 conversion, pay attention to the case that coding->produced is not
15390 greater than coding->consumed.
15391
153922002-10-07 Richard M. Stallman <rms@gnu.org>
15393
15394 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
15395
153962002-10-06 Andrew Choi <akochoi@shaw.ca>
15397
15398 * macmenu.c (mac_menu_show): Add j to count menu items; match
15399 menu_item_selection to it to find selected item.
15400
154012002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15402
15403 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
15404 cases. The correct fix is to pass ReparentNotify to Xt.
15405 The shell widget interprets ConfigureNotify differently depending
15406 on if it has been reparented or not.
15407
154082002-10-05 Markus Rost <rost@math.ohio-state.edu>
15409
15410 * editfns.c (Fformat_time_string): Doc fix.
15411
154122002-10-05 John Paul Wallington <jpw@shootybangbang.com>
15413
15414 * fns.c (Flength): Doc fix.
15415
154162002-10-04 Stefan Monnier <monnier@cs.yale.edu>
15417
15418 * keyboard.c (keyremap): New struct.
15419 (read_key_sequence): Use it: globally replace keytran_foo with
15420 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
15421 keytran_next and fkey_next to just `next'.
15422
154232002-10-04 Steven Tamm <steventamm@mac.com>
15424
15425 * macterm.c (keycode_to_xkeysym_table): Change return to be
15426 treated like an X keysym.
15427
154282002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15429
15430 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
15431 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
15432 This is to also handle x/y changes that occur because of a resize.
15433
154342002-10-02 John Paul Wallington <jpw@shootybangbang.com>
15435
15436 * frame.c (Vdelete_frame_functions): New variable.
15437 (syms_of_frame): Initialize and defvar it.
15438 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
15439 it when frame's `tooltip' parameter is non-nil.
15440
15441 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
15442
15443 * w32fns.c (x_create_tip_frame): Likewise.
15444
15445 * macfns.c (x_create_tip_frame): Likewise.
15446
154472002-09-30 Kenichi Handa <handa@m17n.org>
15448
15449 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
15450 -1 before calling ccl_driver.
15451
15452 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
15453 Only when it is non-nil, handle composition sequence.
15454 (setup_coding_system) <0>: Don't force composition handling.
15455
15456 * Makefile.in (lisp, shortlisp): Add utf-16.elc
15457
154582002-09-29 Richard M. Stallman <rms@gnu.org>
15459
15460 * search.c (Freplace_match): Adjust match data for the substitution
15461 just made in the buffer.
15462
15463 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
15464 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
15465
154662002-09-27 Richard M. Stallman <rms@gnu.org>
15467
15468 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
15469 (read_char): Use them. Do all exits thru the end of the function.
15470
154712002-09-27 Kenichi Handa <handa@etl.go.jp>
15472
15473 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
15474 is nil.
15475
154762002-09-26 Richard M. Stallman <rms@gnu.org>
15477
15478 * regex.h (__restrict_arr): Don't define if already defined.
15479
15480 * coding.c (run_pre_post_conversion_on_str):
15481 Save and restore Vdeactivate_mark.
15482
154832002-09-26 John Paul Wallington <jpw@shootybangbang.com>
15484
15485 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
15486
154872002-09-26 Kenichi Handa <handa@etl.go.jp>
15488
15489 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
15490 nonzero, try face's family at first. Otherwise try FAMILY at first.
15491 (choose_face_font): If C is a single byte char or latin-1, call
15492 try_font_list with PREFER_FACE_FAMILY 1.
15493
154942002-09-21 Richard M. Stallman <rms@gnu.org>
15495
15496 * window.c (select_window_1): Don't select frame.
15497 Set frame's selected window only when frame itself is selected.
15498 (Fselect_window): Doc fix.
15499
155002002-09-18 Kim F. Storm <storm@cua.dk>
15501
15502 * process.c (make-network-process): Doc fix (there is no
15503 network-server-log-function hook).
15504
155052002-09-18 Richard M. Stallman <rms@gnu.org>
15506
15507 * print.c (print): Clear out the unused parts of Vprint_number_table.
15508 (syms_of_print): Doc fix for `print-number-table'.
15509
15510 * unexelf.c (unexec): Undo previous change.
15511
155122002-09-17 Andreas Schwab <schwab@suse.de>
15513
15514 * m/alpha.h [LINUX]: Don't define DATA_START.
15515
155162002-09-16 Dave Love <fx@gnu.org>
15517
15518 * unexelf.c (unexec): Deal with .got, reinstating change from
15519 25-08-1999.
15520
155212002-09-13 Richard M. Stallman <rms@gnu.org>
15522
15523 * s/sol2-6.h (UNEXEC): Comment out definition.
15524
15525 * unexsol.c (unexec): Don't downcase first letter of error msg.
15526
15527 * xfaces.c (Fcolor_supported_p): Just one arg is required.
15528
155292002-09-12 Markus Rost <rost@math.ohio-state.edu>
15530
15531 * unexsol.c: Include buffer.h, charset.h, coding.h.
15532
155332002-09-11 Richard M. Stallman <rms@gnu.org>
15534
15535 * unexsol.c: Don't use report_file_error; do it by hand
15536 using dlerror.
15537
15538 * process.c (wait_reading_process_input, both versions):
15539 Before calling turn_on_atimers, call stop_polling.
15540
15541 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
15542
15543 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
15544 we go to too_near_end, call clear_glyph_matrix.
15545 (redisplay_window): After make_cursor_line_fully_visible,
15546 call clear_glyph_matrix and bypass `goto done'.
15547
15548 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
15549 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
15550
155512002-09-10 Richard M. Stallman <rms@gnu.org>
15552
15553 * fileio.c (Fdo_auto_save): Catch error making directory.
15554 Only call push_message if we need to.
15555 At the same time, make an unwind-protect to pop it.
15556 Rename local message_p to old_message_p.
15557 (do_auto_save_make_dir, do_auto_save_eh): New functions.
15558 (do_auto_save_unwind): Don't call pop_message.
15559
15560 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
15561
15562 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
15563
15564 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
15565
15566 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
15567
155682002-09-10 Stefan Monnier <monnier@cs.yale.edu>
15569
15570 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
15571 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
15572 (re_match_2_internal): Be more careful with infinite loops.
15573
155742002-09-10 Kim F. Storm <storm@cua.dk>
15575
15576 * macros.c (end_kbd_macro): New function.
15577 (Fend_kbd_macro): Use it.
15578
15579 * macros.h (end_kbd_macro): Declare extern.
15580
15581 * keyboard.c (Fdiscard_input): If defining keyboard macro,
15582 end and save it instead of discarding it.
15583
155842002-09-09 Markus Rost <rost@math.ohio-state.edu>
15585
15586 * s/sol2-6.h: Fix typo. Add comment.
15587
155882002-09-09 Richard M. Stallman <rms@gnu.org>
15589
15590 * regex.c (regnum_t): Use signed int, not unsigned int.
15591
15592 * s/sol2-6.h: New file.
15593
15594 * s/sol2-5.h (UNEXEC): Definition deleted.
15595
155962002-09-08 Kim F. Storm <storm@cua.dk>
15597
15598 * macros.c (executing_macro_index): Change type to EMACS_INT.
15599 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
15600
15601 * macros.h (executing_macro_index): Change type to EMACS_INT.
15602
156032002-09-06 Richard M. Stallman <rms@gnu.org>
15604
15605 * casetab.c (set_case_table): Make canon table point to eqv table.
15606
156072002-09-06 Juanma Barranquero <lektu@terra.es>
15608
15609 * coding.c (syms_of_coding): Fix spacing.
15610
15611 * composite.c (Fcompose_region_internal)
15612 (Fcompose_string_internal): Likewise.
15613
15614 * data.c (Flsh): Likewise.
15615
15616 * fontset.c (Fset_fontset_font): Likewise.
15617
15618 * macfns.c (Fx_server_max_request_size): Likewise.
15619
15620 * w16select.c (syms_of_win16select): Likewise.
15621
15622 * w32select.c (syms_of_w32select): Likewise.
15623
15624 * xselect.c (syms_of_xselect): Likewise.
15625
156262002-09-05 Richard M. Stallman <rms@gnu.org>
15627
15628 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
15629 call EXTEND_RANGE_TABLE and return a proper value.
15630 (set_image_of_range): Don't call set_image_of_range_1
15631 if no TRANSLATE or if range includes all of Latin-1.
15632 Only call it for the Latin-1 part of the range.
15633 For other cases, make two separate ranges,
15634 one for the original specified characters and one for
15635 their case-conversions.
15636
156372002-09-04 Richard M. Stallman <rms@gnu.org>
15638
15639 * s/sol2-5.h (UNEXEC): Use unexsol.o.
15640
15641 * window.c (displayed_window_lines): Correct for one-off bug
15642 in HEIGHT on non-window displays.
15643
15644 * regex.c (set_image_of_range_1): New function.
15645 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
15646 Return a value to indicate running out of memory.
15647 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
15648 (extend_range_table_work_area): New subroutine.
15649 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
15650 Different calling conventions, and used from set_image_of_range{,_1}.
15651 (IMMEDIATE_QUIT_CHECK): Definitions moved.
15652
156532002-09-04 Juanma Barranquero <lektu@terra.es>
15654
15655 * makefile.w32-in: All dependencies updated.
15656
156572002-09-01 Richard M. Stallman <rms@gnu.org>
15658
15659 * unexsol.c: New file.
15660
15661 * xfns.c (Qbox): Declare external, don't define.
15662
15663 * xdisp.c (redisplay_window) <force-start case>:
15664 If point is on semi-visible last line, reposition
15665 it at previous line.
15666
15667 * alloc.c (display_malloc_warning): Use display-warning.
15668 (malloc_warning_1): Function deleted.
15669
15670 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
15671
15672 * lread.c (read1): Handle #! by skipping the line.
15673
156742002-08-31 Richard M. Stallman <rms@gnu.org>
15675
15676 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
15677 Don't include LDFLAGS.
15678 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
15679
156802002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
15681
15682 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
15683 member of x_display_info unless we compile for some window system.
15684
156852002-08-31 Kim F. Storm <storm@cua.dk>
15686
15687 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
15688 (get_window_cursor_type): Don't use them.
15689 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
15690
156912002-08-30 Kenichi Handa <handa@etl.go.jp>
15692
15693 * xdisp.c (get_next_display_element): Fix previous change.
15694
156952002-08-30 Andrew Choi <akochoi@shaw.ca>
15696
15697 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
15698 (expose_window): Use it to fix the display of overlapping
15699 rows (merge code from xterm.c).
15700
15701 * macfns.c (Qbox): Add extern declaration.
15702
157032002-08-30 Juanma Barranquero <lektu@terra.es>
15704
15705 * w32fns.c (Qbox): Make extern.
15706 (syms_of_w32fns): Remove initialization of Qbox.
15707
157082002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
15709
15710 * xfns.c (Fx_open_connection): Fix error message.
15711
157122002-08-30 Kim F. Storm <storm@cua.dk>
15713
15714 The following changes consolidates the handling of the cursor
15715 type in xdisp.c, moving duplicate code and functionality from
15716 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
15717
15718 * frame.h (enum text_cursor_kinds): Consolidated here.
15719 Added DEFAULT_CURSOR value.
15720 (struct frame) <desired_cursor, cursor_width>
15721 <blink_off_cursor, blink_off_cursor_width>: New fields.
15722 Consolidated from output_x, output_w32 and output_mac structs.
15723 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15724 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
15725
15726 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
15727 Variables consolidated here.
15728 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
15729 (Vcursor_in_non_selected_windows): Renamed from
15730 cursor_in_non_selected_windows and changed to Lisp_Object.
15731 (syms_of_xdisp): Define and staticpro new and moved variables.
15732 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
15733 consolidated here. Recognize Qhollow setting.
15734 (set_frame_cursor_types): New function to set frame cursor types
15735 based on the frame parameters.
15736 (get_window_cursor_type): New function to calculate new cursor
15737 type and width for the specified window. Based on duplicated
15738 code consolidated here.
15739 Enhancements: cursor-in-non-selected-windows may be a cursor type,
15740 check buffer-local alternate-cursor-type and blink-cursor-alist
15741 before using built-in blink off methods.
15742
15743 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
15744
15745 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
15746 (get_specified_cursor_type, get_window_cursor_type)
15747 (set_frame_cursor_types): Added prototypes.
15748
15749 * macfns.c (x_specified_cursor_type): Removed.
15750 (x_set_cursor_type): Use set_frame_cursor_types.
15751 (Qbar, Qbox): Removed.
15752 (syms_of_macfns): Don't intern or staticpro them.
15753
15754 * macterm.c (x_specified_cursor_type): Remove prototype.
15755 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15756 (x_display_and_set_cursor): Use get_window_cursor_type.
15757 Remove unused local variables cursor_non_selected, active_cursor.
15758 Redraw cursor if hbar cursor width changes.
15759 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
15760
15761 * macterm.h (enum text_cursor_kinds): Removed.
15762 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
15763 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15764 (FRAME_DESIRED_CURSOR): Macro removed.
15765
15766 * w32fns.c (Vblink_cursor_alist): Removed.
15767 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15768 (syms_of_w32fns): Don't intern, staticpro, or define them.
15769 (x_specified_cursor_type): Removed.
15770 (x_set_cursor_type): Use set_frame_cursor_types.
15771
15772 * w32term.c (x_specified_cursor_type): Remove prototype.
15773 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15774 (x_display_and_set_cursor): Use get_window_cursor_type.
15775 Remove unused local variables cursor_off_state.
15776 Redraw cursor if hbar cursor width changes.
15777 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
15778
15779 * w32term.h (enum text_cursor_kinds): Removed.
15780 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
15781 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15782 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15783 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15784 (struct w32_display_info) <x_highlight_frame>: Renamed member from
15785 w32_highlight_frame.
15786
15787 * xfns.c (Vblink_cursor_alist): Removed.
15788 (Qbar, Qhbar, Qbox, Qhollow): Removed.
15789 (syms_of_xfns): Don't intern, staticpro, or define them.
15790 (x_specified_cursor_type): Removed.
15791 (x_set_cursor_type): Use set_frame_cursor_types.
15792
15793 * xterm.c (x_specified_cursor_type): Remove prototype.
15794 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
15795 (x_display_and_set_cursor): Use get_window_cursor_type.
15796 Remove unused local variables cursor_off_state.
15797 Redraw cursor if hbar cursor width changes.
15798
15799 * xterm.h (enum text_cursor_kinds): Removed.
15800 (struct output_x) <current_cursor, desired_cursor, cursor_width>
15801 <blink_off_cursor, blink_off_cursor_width>: Members removed.
15802 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
15803 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
15804 (x_specified_cursor_type): Remove prototype.
15805
158062002-08-28 Richard M. Stallman <rms@gnu.org>
15807
15808 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15809 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15810 (Vblink_cursor_alist): New variable.
15811 (syms_of_w32fns): Initialize and defvar it.
15812 (x_specified_cursor_type): Recognize Qbox for filled box.
15813 Exceptions are hollow boxes.
15814 (Qbox, Qhollow): New variables.
15815 (syms_of_w32fns): Initialize and staticpro them.
15816
15817 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15818 New macros.
15819 (struct w32_output): New fields blink_off_cursor,
15820 blink_off_cursor_width.
15821 (FRAME_CURSOR_WIDTH): New macro.
15822
15823 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15824 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15825
15826 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15827 for bar cursor.
15828
15829 * w32term.c (expose_overlaps): New function.
15830 (expose_window): Use it to fix the display of overlapping rows.
15831
158322002-08-28 Simon Josefsson <jas@extundo.com>
15833
15834 * xfns.c (Fx_open_connection): Improve help when X connection
15835 fails, xhost is insecure and xauth is better.
15836
158372002-08-28 Juanma Barranquero <lektu@terra.es>
15838
15839 * makefile.w32-in: Add missing dependencies on w32term.h and
15840 composite.h.
15841
15842 * emacs.c (USAGE1): Add missing newline.
15843
158442002-08-27 Andrew Choi <akochoi@shaw.ca>
15845
15846 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
15847
158482002-08-27 Richard M. Stallman <rms@gnu.org>
15849
15850 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
15851 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
15852 (Vblink_cursor_alist): New variable.
15853 (syms_of_xfns): Initialize and defvar it.
15854 (x_specified_cursor_type): Recognize Qbox for filled box.
15855 Exceptions are hollow boxes.
15856 (Qbox, Qhollow): New variables.
15857 (syms_of_xfns): Initialize and staticpro them.
15858
15859 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
15860 New macros.
15861 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
15862
15863 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
15864 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
15865
15866 * emacs.c (main): Handle --script.
15867 (USAGE1): Mention --script.
15868 (standard_args): Define sort order for --script.
15869
158702002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
15871
15872 * xdisp.c (redisplay_updating_p): Variable removed.
15873 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
15874 New variables.
15875 (init_iterator): Don't free realized faces if
15876 inhibit_free_realized_faces is set.
15877 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
15878 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
15879 initialize Qinhibit_free_realized_faces.
15880
15881 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
15882 when iterator is adding glyphs to a glyph matrix.
15883
158842002-08-27 Kenichi Handa <handa@etl.go.jp>
15885
15886 * xdisp.c (get_next_display_element): In unibyte case, don't use
15887 octal form for such eight-bit characters that can be converted to
15888 multibyte char.
15889
158902002-08-26 Kim F. Storm <storm@cua.dk>
15891
b6189c3b
KS
15892 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
15893 foreground and background colors. From Joe Buehler.
048addec
JD
15894
158952002-08-26 Miles Bader <miles@gnu.org>
15896
15897 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
15898
158992002-08-25 Andrew Choi <akochoi@shaw.ca>
15900
15901 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
15902 defined instead of MAC_OSX.
15903
15904 * s/darwin.h (select): Define select to sys_select only if
15905 HAVE_CARBON is defined.
15906 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
15907 (DONT_REOPEN_PTY): #def it.
15908
15909 * macterm.c (XTread_socket): Remove code to call
15910 SendEventToEventTarget for keys with command modifiers when
15911 mac_command_key_is_meta is nil.
15912
159132002-08-24 Andreas Schwab <schwab@suse.de>
15914
15915 * eval.c (Fdefvar): Fix last change.
15916
159172002-08-23 Richard M. Stallman <rms@gnu.org>
15918
15919 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
15920 Record variables in load history as (defvar . VAR).
15921 (Fdefvar): Don't record in load history if no initial value.
15922 (Qdefvar): New variable.
15923 (syms_of_eval): Init and staticpro it.
15924
15925 * lread.c (syms_of_lread): Doc fix.
15926 (build_load_history): Use Fmember to see if a definition
15927 is already in the Vload_history element.
15928
15929 * process.c (Fstart_process): Remove /: from program name.
15930
15931 * emacs.c (decode_env_path): Don't add /: if file name handler
15932 has a `safe-magic' property.
15933
15934 * callproc.c (Fcall_process): Remove /: from program name.
15935
159362002-08-23 Stefan Monnier <monnier@cs.yale.edu>
15937
15938 * regex.c (PATFETCH): Remove the translating fetch.
15939 (PATFETCH_RAW): Rename to PATFETCH.
15940 (set_image_of_range): New fun.
15941 (SET_RANGE_TABLE_WORK_AREA): Use it.
15942 (regex_compile): Don't translate the pattern chars so eagerly.
15943 Only do it when inserting an `exactn' bytecode or when handling
15944 a char-range.
15945 (mutually_exclusive_p): Avoid empty statement.
15946
159472002-08-22 Kim F. Storm <storm@cua.dk>
15948
15949 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
15950 end up on a partially visible line; this reverts a specific part
15951 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
15952 display error which has been reported several times now.
15953 However it introduces the problem that changes was supposed to fix.
15954 See my comments in the source if you want to debug this further.
15955
159562002-08-20 Kenichi Handa <handa@etl.go.jp>
15957
15958 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15959
159602002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
15961
15962 * msdos.c (croak): Add `void' to definition.
15963
c1380aa6 15964 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
15965 Don't define them, they are defined in msdos.c.
15966
15967 * mem-limits.h [MSDOS]: Declare etext.
15968
15969 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
15970 `const' since CORRECT_DIR_SEPS modifies its target.
15971
159722002-08-19 Kim F. Storm <storm@cua.dk>
15973
2fb0ce67 15974 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
15975 KEEP-RECORD to avoid clearing lossage when we just want to clear
15976 the current key sequence (kmacro needs this).
15977
159782002-08-19 Kenichi Handa <handa@localhost>
15979
15980 * composite.c (run_composition_function): Call FUNC if it is fboundp.
15981
15982 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
15983 cons, return Qnil.
15984
159852002-08-17 Richard M. Stallman <rms@gnu.org>
15986
15987 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
15988
15989 * sysdep.c [!VMS]: Include sys/files.h.
15990
15991 * editfns.c (save_restriction_restore): Defend from unchained marker.
15992
15993 * buffer.c (overlays_at): Handle extending vec uniformly.
15994 (overlays_in): Handle extending vec from length 0 as in overlays_at.
15995
159962002-08-15 Andrew Choi <akochoi@shaw.ca>
15997
15998 * mac.c (init_mac_osx_environment): New function.
15999
16000 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
16001
160022002-08-14 Kim F. Storm <storm@cua.dk>
16003
16004 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
16005 executing macro before appending to it (when used from Lisp).
16006 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
16007 which is called prior to each iteration of macro (for kmacro.el).
16008 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
16009
16010 * lisp.h (Fexecute_kbd_macro): Update prototype.
16011
16012 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
16013
160142002-08-14 Kenichi Handa <handa@etl.go.jp>
16015
16016 * xselect.c (QUTF8_STRING): New variable.
16017 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
16018 (x_atom_to_symbol): Likewise.
16019 (x_get_local_selection): New argument local_request. If it is
16020 nonzero, call handler_fn with the second arg nil.
16021 (x_handle_selection_request): Call x_get_local_selection with
16022 local_request 0.
16023 (lisp_data_to_selection_data): Don't encode the string here.
16024 (Fx_get_selection_internal): Call x_get_local_selection with
16025 local_request 1.
16026 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
16027
16028 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
16029
16030 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
16031
160322002-08-13 Richard M. Stallman <rms@gnu.org>
16033
16034 * minibuf.c (Fminibufferp): New function.
16035 (syms_of_minibuf): Defsubr it.
16036 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
16037
160382002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
16039
16040 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
16041
160422002-08-12 Richard M. Stallman <rms@gnu.org>
16043
16044 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
16045 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
16046 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
16047 already.
16048
16049 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
16050
160512002-08-11 Andrew Choi <akochoi@shaw.ca>
16052
16053 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
16054 (Vmac_pass_command_to_system): New variable.
16055 (Vmac_pass_control_to_system): New variable.
16056 (do_mouse_moved): Check wp with is_emacs_window.
16057 (XTread_socket): Check window_ptr with is_emacs_window.
16058 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
16059 events back to Mac Toolbox for processing, depending on values of
16060 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
16061 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
16062 Vmac_pass_control_to_system.
16063
160642002-08-10 Kenichi Handa <handa@etl.go.jp>
16065
16066 * coding.c (unencodable_char_position): New function.
16067 (Funencodable_char_position): New function.
16068 (syms_of_coding): Defsubr Funencodable_char_position.
16069
160702002-08-10 Andrew Choi <akochoi@shaw.ca>
16071
16072 * mac.c (sys_select) [MAC_OSX]: New function.
16073
16074 * macterm.c (MakeMeTheFrontProcess): New function.
16075 (mac_initialize): Call MakeMeTheFrontProcess.
16076
16077 * s/darwin.h: Define select to sys_select.
16078
160792002-08-09 Richard M. Stallman <rms@gnu.org>
16080
16081 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
16082
160832002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
16084
16085 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
16086 end of the buffer.
16087
160882002-08-08 Ken Raeburn <raeburn@mit.edu>
16089
16090 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
16091
16092 * puresize.h (BASE_PURESIZE): Increase to 910000.
16093
160942002-08-08 Kenichi Handa <handa@etl.go.jp>
16095
16096 * coding.c (Ffind_operation_coding_system): For write-region, if
16097 VISIT is a filename, make it the target.
16098
160992002-08-07 Richard M. Stallman <rms@gnu.org>
16100
16101 * alloc.c (mark_object): Detect long lists for debugging.
16102 (mark_object_loop_halt): New variable.
16103
16104 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
16105
16106 * data.c (Fmake_variable_frame_local): Doc fix.
16107
161082002-08-01 David Ponce <david@dponce.com>
16109
16110 * w32menu.c (local_heap, local_alloc, local_free): New macros.
16111 (malloc_widget_value, free_widget_value)
16112 (w32_free_submenu_strings): Use them.
16113
16114 (push_submenu_start, push_submenu_end, push_left_right_boundary)
16115 (push_menu_pane, push_menu_item, single_keymap_panes)
16116 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
16117 (single_submenu, set_frame_menubar)
16118 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
16119
16120 (Fx_popup_menu): Don't show pop up menu until preceding one is
16121 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
16122
16123 * w32menu.c: Changes adapted from xmenu.c
16124 (set_frame_menubar): First parse all submenus,
16125 then make widget_value trees from them.
16126 Don't allocate any widget_value objects
16127 until we are done with the parsing.
16128 (parse_single_submenu): New function.
16129 (digest_single_submenu): New function.
16130 (single_submenu): Function deleted, replaced by those two.
16131
161322002-08-04 Andrew Choi <akochoi@shaw.ca>
16133
16134 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
16135 returns a valid window pointer before proceeding for keyDown and
16136 autoKey events.
16137
161382002-08-03 Andrew Choi <akochoi@shaw.ca>
16139
16140 * macterm.c (USE_CARBON_EVENTS): New macro.
16141 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
16142 (x_iconify_frame): Call CollapseWindow.
16143 (Vmac_reverse_ctrl_meta): New variable.
16144 (Vmac_wheel_button_is_mouse_2): New variable.
16145 (init_mac_drag_n_drop): New function.
16146 (mac_do_receive_drag): New function.
16147 (mac_handle_service_event): New function.
16148 (init_service_handler): New function.
16149 (mac_to_emacs_modifiers): New function.
16150 (mac_event_to_emacs_modifiers): New function.
16151 (mac_get_mouse_btn): New function.
16152 (mac_convert_event_ref): New function.
16153 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
16154 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
16155 mac_get_mouse_btn.
16156 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
16157
16158 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
16159 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
16160 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
16161 TOOL_BAR_EVENT for MAC_OS as well.
16162 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
16163 as for WINDOWS_NT.
16164 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
16165
16166 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
16167
161682002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
16169
16170 * xdisp.c (forward_to_next_line_start): Fix a condition that
16171 lead to a newline being skipped.
16172
161732002-08-02 Andrew Choi <akochoi@shaw.ca>
16174
16175 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
16176
161772002-08-01 Richard M. Stallman <rms@gnu.org>
16178
16179 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
16180
161812002-07-31 Andrew Choi <akochoi@shaw.ca>
16182
16183 * macfns.c: #undef init_process before #define-ing it.
16184
16185 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
16186 HAVE_CARBON is defined.
16187
161882002-07-31 Richard M. Stallman <rms@gnu.org>
16189
16190 * xmenu.c (set_frame_menubar): First parse all submenus,
16191 then make widget_value trees from them.
16192 Don't allocate any widget_value objects
16193 until we are done with the parsing.
16194 (parse_single_submenu): New function.
16195 (digest_single_submenu): New function.
16196 (single_submenu): Function deleted, replaced by those two.
16197
161982002-07-30 Juanma Barranquero <lektu@terra.es>
16199
16200 * w32proc.c (syms_of_ntproc): Fix docstring of
16201 `w32-get-true-file-attributes'.
16202
162032002-07-28 Richard M. Stallman <rms@gnu.org>
16204
16205 * s/hpux8.h (HPUX8): Define this before including hpux.h.
16206 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
16207
16208 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
16209
16210 * keyboard.c (make_lispy_event):
16211 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
16212 Explicitly clear up_modifier in event->modifiers.
16213
162142002-07-27 Richard M. Stallman <rms@gnu.org>
16215
16216 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
16217
16218 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16219 for bar cursor.
16220
162212002-07-26 Kenichi Handa <handa@etl.go.jp>
16222
16223 * coding.c (detect_coding_iso2022): While checking a byte sequence
16224 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
16225 it in the normal loop.
16226
162272002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
16228
16229 * xterm.c (expose_overlaps): New function.
16230 (expose_window): Use it to fix the display of overlapping rows.
16231
16232 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
16233
162342002-07-23 Ken Raeburn <raeburn@gnu.org>
16235
16236 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
16237 since it only depends on XUINT.
16238
16239 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
16240 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
16241 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
16242 Macros deleted.
3947677c 16243
77d1daf2
AS
16244 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
16245 its value over other approaches.
16246 * sysdep.c (start_of_data): Don't define the function if a macro
16247 form has been defined.
8a8e19a3 16248
048addec
JD
162492002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
16250
16251 * xdisp.c (redisplay_updating_p): New variable.
16252 (init_iterator): Don't free realized faces when
16253 redisplay_updating_p is set.
16254 (redisplay_internal): Set redisplay_updating_p while updating
16255 the display.
16256
162572002-07-23 Richard M. Stallman <rms@gnu.org>
16258
16259 * editfns.c (Fmessage): Treat "" like nil.
16260
162612002-07-23 Kenichi Handa <handa@etl.go.jp>
16262
16263 * xdisp.c (face_before_or_after_it_pos):
16264 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16265
162662002-07-22 Juanma Barranquero <lektu@terra.es>
16267
16268 * callproc.c (init_callproc) [DOS_NT]:
16269 Initialize Vshared_game_score_directory to nil.
16270 (syms_of_callproc) [DOS_NT]: Likewise.
16271
162722002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
16273
16274 * xdisp.c (display_line): Replace an abort with xassert.
16275
162762002-07-21 Richard M. Stallman <rms@gnu.org>
16277
16278 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
16279 and END_UNCHANGED when setting buffer_unchanged_p.
16280 Use current_matrix_up_to_date_p to decide whether to use
16281 try_cursor_movement.
16282
16283 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
16284
16285 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
16286
16287 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
16288 Set to nil if dir does not exist.
16289 (syms_of_callproc): Init unconditionally and simply.
16290
16291 * buffer.c (Fbuffer_list): Doc fix.
16292
162932002-07-21 Ken Raeburn <raeburn@gnu.org>
16294
16295 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
16296
16297 * buffer.c (mmap_realloc): When shrinking, make sure number of
16298 pages to unmap is rounded towards zero.
16299
16300 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
16301 (XSETINT): Deleted.
16302
16303 * m/att3b.h (XINT): Don't define.
16304 (VALBITS, VALMASK, XTYPE): Deleted.
16305 (DATA_SEG_BITS): Define.
16306 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
16307 ARRAY_MARK_FLAG): Deleted.
16308 (DATA_SEG_BITS): Define.
16309 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
16310 (DATA_SEG_BITS): Define.
16311
163122002-07-20 Richard M. Stallman <rms@gnu.org>
16313
16314 * print.c (print_error_message): New args CONTEXT and CALLER.
16315 Calls changed.
16316
16317 * lisp.h (print_error_message): Declare new args.
16318
16319 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
16320 and CONTEXT to print_error_message, don't print them here.
16321 For a Quit, don't use Vsignaling_function.
16322 Call message_log_maybe_newline.
16323
16324 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
16325
163262002-07-20 Kim F. Storm <storm@cua.dk>
16327
16328 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
16329
163302002-07-19 Ken Raeburn <raeburn@gnu.org>
16331
16332 * bytecode.c (struct byte_stack): Pointers into byte string now
16333 point to const.
16334 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
16335 const.
16336 * charset.h (BCOPY_SHORT): Source pointer now points to const.
16337 * coding.c (encode_eol, detect_coding, detect_eol):
16338 (decode_coding, encode_coding, detect_coding_system):
16339 Source strings now treated as const.
16340 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
16341 modify Lisp string contents.
16342 * coding.h (decode_coding, encode_coding, detect_coding,
16343 detect_eol): Declarations updated.
16344 * composite.c (compose_chars_in_text): Treat Lisp string contents
16345 as const.
16346 * dispnew.c (safe_bcopy): Source pointer now points to const.
16347 * lisp.h (STRING_COPYIN): New macro.
16348 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
16349 (internal_with_output_to_temp_buffer): Declarations updated.
16350 * print.c (temp_output_buffer_setup):
16351 (internal_with_output_to_temp_buffer): Buffer name argument is now
16352 pointer to const.
16353 * sound.c (struct sound_device): Function pointer field "write"
16354 buffer argument now points to const.
16355 (vox_write): Buffer argument points to const.
16356 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
16357 contents as const.
16358 * sysdep.c (emacs_write): Buffer pointer now const.
16359 * term.c (encode_terminal_code): Buffer pointer now const.
16360 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
16361 (x_face_list_fonts, x_update_menu_appearance):
16362 (hash_string_case_insensitive): Treat Lisp string contents as const.
16363
163642002-07-19 Juanma Barranquero <lektu@terra.es>
16365
048addec
JD
16366 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
16367
16368 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
16369 (Ffile_name_as_directory): Fix argument name in docstring.
16370 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
16371
163722002-07-18 Richard M. Stallman <rms@gnu.org>
16373
16374 * data.c (Fdefalias): Doc fix.
16375
163762002-07-17 Dave Love <fx@gnu.org>
16377
16378 * intervals.h (text_property_stickiness): Use P_.
16379
16380 * ccl.c: Remove `emacs' conditionals.
16381 (ccl_backtrace_table): Fix size spec.
16382 (ccl_driver): Fix type errors.
16383
163842002-07-16 Ken Raeburn <raeburn@gnu.org>
16385
16386 * alloc.c (xstrdup, make_string, make_unibyte_string)
16387 (make_multibyte_string, build_string): String pointer args now
16388 point to const.
16389 * charset.c (find_charset_in_text, c_string_width):
16390 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
16391 * fileio.c (report_file_error):
16392 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
16393 (count_combining_before, count_combining_after, insert_1_both):
16394 (insert, insert_and_inherit, insert_string):
16395 (insert_before_markers, insert_before_markers_and_inherit):
16396 * lread.c (intern, oblookup, hash_string):
16397 * minibuf.c (temp_echo_area_glyphs):
16398 * search.c (fast_c_string_match_ignore_case):
16399 * sysdep.c (emacs_open, set_file_times):
16400 * xfaces.c (xstricmp):
16401 * xdisp.c (store_frame_title, string_char_and_length):
16402 (message_dolog, message2, message2_nolog, set_message): Likewise.
16403 (set_message_1): Cast message string argument to const pointer.
16404 * editfns.c (general_insert_function): Insertion function now
16405 takes pointer to const for input data.
16406 * charset.h (find_charset_in_text, c_string_width):
16407 (parse_str_as_multibyte): Declarations updated.
16408 * dispextern.h (xstricmp): Declaration updated.
16409 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
16410 (count_size_as_multibyte, count_combining_before):
16411 (count_combining_after, insert_1, insert_1_both, message_dolog):
16412 (insert, insert_and_inherit, insert_before_markers)
16413 (insert_before_markers_and_inherit, set_message, message2):
16414 (message2_dolog, build_string, make_string, make_unibyte_string):
16415 (make_multibyte_string, intern, oblookup, report_file_error):
16416 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
16417 (emacs_open, xstrdup): Declarations updated.
16418 * systime.h (set_file_times): Declaration updated.
16419
16420 * charset.c (find_charset_in_text, lisp_string_width): Use const
16421 for pointer to lisp string data.
16422 * charset.h (FETCH_STRING_CHAR_ADVANCE):
16423 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
16424 * coding.c (Ffind_coding_systems_region_interval):
16425 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
16426 (Fmake_directory_internal, Fdelete_directory):
16427 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
16428 * fontset.c (font_family_registry, fs_query_fontset):
16429 (list_fontsets):
16430 * frame.c (Fframe_parameter):
16431 * keyboard.c (cmd_error_internal):
16432 * keymap.c (Fdescribe_buffer_bindings):
16433 * lread.c (complete_filename_p, openp):
16434 * minibuf.c (Fminibuffer_complete_word):
16435 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
16436 (face_before_or_after_it_pos, next_element_from_string):
16437 (get_overlay_arrow_glyph_row, display_mode_element):
16438 (decode_mode_spec_coding):
16439 * xterm.c (same_x_server): Likewise.
16440
16441 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
16442 settings of non-existent fields.
16443
16444 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
16445 copy a lisp value.
16446
16447 * lread.c (Fintern_soft): Use string macros instead of
16448 Lisp_String fields.
16449 * keyboard.c (echo_char, parse_modifiers_uncached):
16450 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
16451 * textprop.c (validate_interval_range, interval_of): Likewise.
16452
16453 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
16454
16455 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16456 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
16457 XSTRING()->size_byte.
16458
16459 * lisp.h (SDATA, SREF): Produce rvalue.
16460 (SSET): New macro.
16461 * alloc.c (make_event_array): Use SSET for storing into a string.
16462 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
16463 a string.
16464 * casefiddle.c (casify_object): Use SSET.
16465 * charset.h (FETCH_STRING_CHAR_ADVANCE)
16466 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
16467 address of string contents.
16468 * data.c (Faref): Use SDATA.
16469 (Faset): Use SDATA, SSET.
16470 * dired.c (directory_files_internal): Use SSET.
16471 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
16472 (Fread_file_name): Use SREF, SSET.
16473 * fns.c (concat): Use SSET.
16474 (concat, Fdelete): Use SDATA.
16475 * insdel.c (insert_from_string_1): Use SDATA.
16476 * keyboard.c (Fevent_convert_list): Use SREF.
16477 * lread.c (Fload): Use SDATA, SSET.
16478 * macfns.c (validate_x_resource_name): Use SSET.
16479 * process.c (status_message): Use SSET.
16480 * search.c (wordify): Use SDATA.
16481 (Freplace_match): Use SREF.
16482 * w32fns.c (validate_x_resource_name): Use SSET.
16483 * xfns.c (validate_x_resource_name): Use SSET.
16484 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
16485
164862002-07-16 Richard M. Stallman <rms@gnu.org>
16487
16488 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
16489
16490 * xdisp.c (reconsider_clip_changes):
16491 Don't test prevent_redisplay_optimizations_p.
16492 (redisplay_internal): Test prevent_redisplay_optimizations_p
16493 along with clip_changed in some cases.
16494 (try_window_id): Likewise.
16495 (redisplay_window): New local var buffer_unchanged_p.
16496
16497 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
16498
16499 * process.c (create_process): Test USG_SUBTTY_WORKS.
16500 (process_send_signal): Clean up handling of GID.
16501 Detect errors in ioctls meant to set GID.
16502
16503 * window.c (temp_output_buffer_show):
16504 Don't set prevent_redisplay_optimizations_p.
16505
165062002-07-15 Juanma Barranquero <lektu@terra.es>
16507
16508 * eval.c (Fdefvaralias): Add docstring argument.
16509
165102002-07-15 Ken Raeburn <raeburn@gnu.org>
16511
16512 * lisp.h (STRING_INTERVALS): Produce rvalue.
16513 (STRING_SET_INTERVALS): New macro.
16514 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
16515 * fns.c (Fstring_as_multibyte): Likewise.
16516 * intervals.c (balance_possible_root_interval, delete_interval)
16517 (create_root_interval, copy_intervals_to_string): Likewise.
16518 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
16519 instead of 0.
16520
165212002-07-14 Ken Raeburn <raeburn@gnu.org>
16522
16523 * lisp.h (STRING_SET_CHARS): New macro.
16524 (SCHARS, SBYTES): Produce rvalues.
16525 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
16526 * fns.c (concat): Likewise.
16527 * lread.c (read_vector): Likewise.
16528
3419757d 16529 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 16530 (STRING_SET_UNIBYTE): New macro.
3419757d 16531 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
16532 length of -1) changed to use STRING_SET_UNIBYTE.
16533 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16534 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
16535 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
16536 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
16537 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
16538 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
16539 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
16540 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
16541 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16542 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
16543 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
16544 STRING_BYTES or indirection changed to SCHARS, SBYTES,
16545 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
16546 unchanged for now.
16547
165482002-07-13 Kim F. Storm <storm@cua.dk>
16549
16550 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
16551
165522002-07-12 Richard M. Stallman <rms@gnu.org>
16553
16554 * fileio.c (Fwrite_region): Doc fix.
16555
16556 * print.c (print_error_message): Don't handle Vsignaling_function here.
16557
16558 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
16559 (command_loop_1): Avoid certain actions after memory-full error.
16560
16561 * eval.c (Fsignal): Don't call cancel_hourglass.
16562 For a memory-full error, don't call Vsignal_hook_function
16563 and don't set Vsignaling_function.
16564
16565 * process.c (process_send_signal): Add abort call.
16566
165672002-07-11 Markus Rost <rost@math.ohio-state.edu>
16568
16569 * keymap.c (Fkey_binding): Fix typo.
16570
165712002-07-11 Richard M. Stallman <rms@gnu.org>
16572
16573 * alloc.c (Vmemory_full): New variable.
3419757d 16574 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
16575 Uses changed.
16576 (syms_of_alloc): Defvar them.
16577 (memory_full, buffer_memory_full): Set Vmemory_full.
16578
16579 * lisp.h (Vmemory_full): Add declaration.
16580 (current_column, indented_beyond_p): Change declaration.
16581
16582 * indent.c (last_known_column): Declare as double, not float.
16583 (current_column, current_column_1, string_display_width)
16584 (position_indentation): Return `double'.
16585 (indented_beyond_p): Arg `column' is `double'. Callers changed.
16586
16587 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
16588 (back_to_previous_visible_line_start)
16589 (reseat_at_next_visible_line_start, next_element_from_buffer):
16590 Use `double', not `float', when calling indented_beyond_p.
16591
3419757d 16592 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
16593
16594 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
16595
165962002-07-11 Juanma Barranquero <lektu@terra.es>
16597
16598 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
16599 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
16600 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
16601 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
16602 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
16603 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
16604
166052002-07-10 Juanma Barranquero <lektu@terra.es>
16606
d814862a
JB
16607 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
16608 All callers changed.
048addec
JD
16609
166102002-07-09 Stefan Monnier <monnier@cs.yale.edu>
16611
16612 * data.c (Fdefalias): Add an optional `docstring' argument.
16613 (set_internal, Fsetq_default): Use XCAR/XCDR.
16614
16615 * composite.c (HASH_VALUE, HASH_KEY):
16616 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
16617
166182002-07-09 Kenichi Handa <handa@etl.go.jp>
16619
16620 * callproc.c (Fcall_process): Fix previous change.
16621
166222002-07-07 Stefan Monnier <monnier@cs.yale.edu>
16623
16624 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
16625 Add support for hash-tables.
16626 (Ftry_completion): Return t even if the string appears multiple times.
16627
16628 * fns.c (Fnconc): Use XCDR.
16629 (Fprovide): Use CONSP and XCDR.
16630 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16631 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
16632 (Fmake_hash_table): Accept `:size nil'.
16633 (Fmakehash): Delete: moved to subr.el.
16634 (syms_of_fns): Don't defsubr makehash.
16635
16636 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
16637 (HASH_TABLE_SIZE): Move from fns.c.
16638
166392002-07-07 Richard M. Stallman <rms@gnu.org>
16640
16641 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
16642 Instead just return 0 when there is something to be done.
16643 (try_scrolling): If make_cursor_line_fully_visible returns 0,
16644 retry scrolling as if cursor were off the bottom.
16645 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
16646 return CURSOR_MOVEMENT_MUST_SCROLL.
16647 (redisplay_window): If make_cursor_line_fully_visible returns 0,
16648 go to try_to_scroll.
16649
16650 * buffer.c (Fbuffer_local_value): Store current value into its binding
16651 so we get the up-to-date value for the binding that is loaded.
16652
16653 * eval.c (Fdefmacro): Doc fix.
16654
166552002-07-05 Dave Love <fx@gnu.org>
16656
16657 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
16658 correctly.
16659
16660 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
16661 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
16662 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
16663 CCL_LookupCharConstTbl.
16664 (syms_of_ccl): Defvar translation-hash-table-vector.
16665
166662002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16667
16668 * xdisp.c: Remove unused variable `face'.
16669
166702002-07-04 Juanma Barranquero <lektu@terra.es>
16671
16672 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
16673 obsolescence information.
16674
166752002-07-03 Andrew Choi <akochoi@shaw.ca>
16676
16677 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
16678 pattern. Search cache first.
16679 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
16680 for Japanese font.
16681 (XLoadQueryFont): Use it.
16682
166832002-07-02 Richard M. Stallman <rms@gnu.org>
16684
16685 * keymap.c (Fdefine_key): Doc fix.
16686
16687 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
16688
166892002-07-02 Juanma Barranquero <lektu@terra.es>
16690
16691 * keymap.c (syms_of_keymap): Fix typo.
16692
166932002-07-01 Andrew Choi <akochoi@shaw.ca>
16694
16695 * s/darwin.h: Define POSIX_SIGNALS.
16696
16697 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
16698 and FSRefMakePath to convert FSSpec returned with Apple Event to
16699 Posix pathname.
16700 (mac_initialize) [TARGET_API_MAC_CARBON]:
16701 Call init_required_apple_events and disable the `Quit' menu item
16702 provided automatically by the Carbon Toolbox.
16703
167042002-07-01 Dave Love <fx@gnu.org>
16705
16706 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16707 for K&R.
16708
16709 * xterm.c: Fix prototype for K&R.
16710
16711 * term.c (costs_set): Declare static, non-initialized for pcc.
16712
167132002-07-01 Richard M. Stallman <rms@gnu.org>
16714
16715 * keyboard.c (timer_last_idleness_start_time): New variable.
16716 (timer_start_idle): Set that.
16717 (read_key_sequence): Use that to reset timer_idleness_start_time
16718 to previous value.
16719
16720 * window.c (Frecenter): With arg, set optional_new_start.
16721
16722 * xdisp.c (redisplay_internal): Make optional_new_start really work.
16723
16724 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
16725 buffer for completion.
16726
167272002-06-29 Ken Raeburn <raeburn@gnu.org>
16728
16729 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
16730
167312002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16732
16733 * keyboard.c (readable_filtered_events): New function that filters
16734 FOCUS_IN_EVENT depending on parameter.
16735 (readable_events): Calls readable_filtered_events, not filtering
16736 FOCUS_IN_EVENT.
16737 (get_filtered_input_pending): New function, filtering parameter passed
16738 to readable_filtered_events.
16739 (get_input_pending): Calls get_filtered_input_pending, not filtering
16740 FOCUS_IN_EVENT.
16741 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
16742 FOCUS_IN_EVENT.
16743
16744 * xterm.h (struct x_output): Add focus_state.
16745
16746 * xterm.c (x_focus_changed): New function.
16747 (x_detect_focus_change): New function.
16748 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
16749 EnterNotify and LeaveNotify to track X focus changes.
16750
167512002-06-28 Andreas Schwab <schwab@suse.de>
16752
16753 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
16754
167552002-06-27 Kim F. Storm <storm@cua.dk>
16756
52eb0373 16757 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
16758 (mode_line_string_face_prop): New variables.
16759 (store_mode_line_string): New function.
16760 (display_mode_element): Use store_mode_line_string to
16761 add mode-line string elements to mode_line_string_list
16762 when mode_line_string_list is non-nil.
16763 (Fformat_mode_line): Now returns propertized string by
16764 default. New arg NO-PROPS to ignore properties.
16765 (decode_mode_spec): Only add two dashes for %- in propertized
16766 mode-line string.
16767 (syms_of_xdisp): Init and staticpro mode_line_string_list.
16768
167692002-06-27 Stefan Monnier <monnier@cs.yale.edu>
16770
16771 * minibuf.c (minibuffer_completion_contents): Add return type.
16772
167732002-06-27 Juanma Barranquero <lektu@terra.es>
16774
16775 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
16776
167772002-06-26 Juanma Barranquero <lektu@terra.es>
16778
16779 * fileio.c (read_file_name_cleanup): Add missing return.
16780
167812002-06-26 Richard M. Stallman <rms@gnu.org>
16782
16783 * window.c (Frecenter): Don't set force_start flag.
16784
16785 * minibuf.c (do_completion, Fminibuffer_complete_word)
16786 (Fminibuffer_completion_help): Complete just the text before point.
16787 (minibuffer_completion_contents): New function.
16788
16789 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
16790
16791 * frame.c (frames_bury_buffer): Function deleted.
16792
167932002-06-25 Miles Bader <miles@gnu.org>
16794
16795 * callint.c (Fcall_interactively): When checking to see if doprnt hit
16796 the end of callint_message, allow for a terminating '\0'.
16797
167982002-06-24 Juanma Barranquero <lektu@terra.es>
16799
52eb0373 16800 * w32select.c: Include composite.h.
048addec
JD
16801
16802 * w16select.c: Likewise.
16803
168042002-06-24 Kenichi Handa <handa@etl.go.jp>
16805
16806 * callproc.c (Fcall_process): If code detection is necessary,
16807 call detect_coding directly here.
16808
16809 * coding.c (detect_eol): Preserve coding->cmp_data.
16810
16811 * w16select.c (Fw16_get_clipboard_data):
16812 * w32fns.c (w32_to_x_font):
16813 * w32select.c (Fw32_get_clipboard_data):
16814 * xselect.c (selection_data_to_lisp_data):
16815 * xterm.c (XTread_socket): Disable composition handling.
16816
168172002-06-24 Stefan Monnier <monnier@cs.yale.edu>
16818
16819 * print.c (temp_output_buffer_setup): Kill all local variables.
16820
168212002-06-22 Stefan Monnier <monnier@cs.yale.edu>
16822
16823 * lread.c (Fread): Remove redundant and imprecise declaration.
16824
16825 * xfns.c (check_x_display_info): Use check_x_frame.
16826
16827 * .gdbinit (xprintsym): Use the new `xname' field.
16828 (xsymbol): Use it.
16829
168302002-06-22 Jason Rumney <jasonr@gnu.org>
16831
16832 * w32fns.c (file_dialog_callback): New function.
16833 (Fx_file_dialog): Allow selecting directories as well as files.
16834
168352002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16836
16837 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 16838 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
16839
168402002-06-17 Andrew Choi <akochoi@shaw.ca>
16841
16842 * macterm.c (mac_scroll_area): Set foreground and backcolor to
16843 black and white before scrolling. Restore frame background and
16844 foreground color after scrolling.
16845 (do_window_update): Call XClearWindow before calling expose_frame.
16846 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
16847 FRAME_FOREGROUND_PIXEL of frame.
16848
16849 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16850 test Mac command key as <ALT> key.
16851
168522002-06-17 Stefan Monnier <monnier@cs.yale.edu>
16853
16854 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
16855
16856 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
16857 Lookup keys in function-key-map immediately so that key-translation-map
16858 can be applied earlier.
16859 Remove function_key_possible and key_translation_possible, replaced
16860 by checking `keytran_start < t'.
16861
16862 * .gdbinit (xsymbol): Use the new `xname' field.
16863
168642002-06-17 Andrew Choi <akochoi@shaw.ca>
16865
16866 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
16867 test Mac command key as <ALT> key.
16868
16869 * mac.c (do_applescript): Call initialize_applescript if necessary
16870 when first called. Dispose of result_desc only when there is no error.
16871 (Fdo_applescript): Use %d format specifier instead of %ld.
16872
168732002-06-16 Andrew Choi <akochoi@shaw.ca>
16874
16875 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
16876 of FrontWindow for cases keyDown and autoKey.
16877
16878 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
16879 Vdefault_fontset to Monaco with mac-roman coding.
16880
16881 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
16882 init_process before and after inclusion of Carbon/Carbon.h, resp.
16883
16884 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
16885 cursor_gc.
16886 (add_font_name_table_entry): New function.
16887 (init_font_name_table): Use add_font_name_table_entry; add italic,
16888 bold, and bold-italic entries for truetype fonts.
16889
16890 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
16891 for Mac too.
16892 (try_font_list) [MAC_OS]: If no font matches given registry, try
16893 fonts with any registry matching face_family.
16894 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
16895
16896 * s/darwin.h: If autoconf detects the Ncurses library, define
16897 LIBS_TERMCAP to -lncurses to use it.
16898
168992002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
16900
16901 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
16902
169032002-06-15 Richard M. Stallman <rms@gnu.org>
16904
16905 * window.c (Fset_window_configuration): Explicitly preserve
16906 the point value that new_current_buffer had at the start.
16907
169082002-06-14 Juanma Barranquero <lektu@terra.es>
16909
16910 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
16911 Fix typos.
16912
169132002-06-14 Kim F. Storm <storm@cua.dk>
16914
16915 * insdel.c (insert_1_both, insert_from_string_1)
16916 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
16917 insert happened in the end_unchanged region. Otherwise, the
16918 redisplay may be confused and duplicate the last line in the
16919 buffer [seen after save-buffer when require-final-newline==t].
16920
169212002-06-13 Jason Rumney <jasonr@gnu.org>
16922
16923 * w32.c (init_environment): Remove EMACSLOCKDIR.
16924 (stat): Swap _S_IFDIR and _S_IFREG.
16925
169262002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16927
16928 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
16929 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
16930 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
16931 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
16932 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
16933 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
16934 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
16935 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
16936 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
16937 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
16938 SELECTION_REQUEST_EVENT, selection_clear_event to
16939 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
16940 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
16941 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
16942 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
16943 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
16944 no_event to NO_EVENT.
16945
169462002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16947
16948 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
16949
169502002-06-12 Stefan Monnier <monnier@cs.yale.edu>
16951
16952 * intervals.c (textget): Don't forget to `return'.
16953 (lookup_char_property): Use XCAR/XCDR.
16954
169552002-06-12 Juanma Barranquero <lektu@terra.es>
16956
16957 * xdisp.c (Fformat_mode_line): Fix typo.
16958
169592002-06-12 Kim F. Storm <storm@cua.dk>
16960
16961 * xdisp.c (Fformat_mode_line): New function.
16962 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
16963 (store_frame_title_char, store_frame_title): Use unconditionally.
16964 (init_xdisp): Defsubr Fformat_mode_line.
16965 Initialize frame_title_buf etc. unconditionally.
16966
169672002-06-11 Stefan Monnier <monnier@cs.yale.edu>
16968
16969 * keyboard.c (read_key_sequence):
16970 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
16971 things through those maps after downcasing events.
16972 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
16973 applies after function-key-map.
16974 Make sure that keytran can be done in the middle in the sequence.
16975 Be careful not to throw away events past the one we downcase.
16976
16977 * lread.c (read_integer): Remove unused var `tem'.
16978 (read1): Fix int/Lisp_Object mixup.
16979
16980 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
16981
169822002-06-11 Richard M. Stallman <rms@gnu.org>
16983
16984 * keyboard.c (readable_events): Ignore any number of
16985 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
16986
169872002-06-09 Miles Bader <miles@gnu.org>
16988
16989 * xfaces.c (Ftty_supports_face_attributes_p): New function.
16990 (parse_rgb_list, tty_lookup_color): New functions.
16991 (tty_defined_color): Use `tty_lookup_color' to do all the work.
16992 (color_distance, Fcolor_distance): New functions.
16993 (TTY_SAME_COLOR_THRESHOLD): New macro.
16994 (Qtty_color_standard_values): New variable.
16995 (syms_of_xfaces): Initialize new vars & functions.
16996
169972002-06-08 Colin Walters <walters@verbum.org>
16998
16999 * textprop.c (Vchar_property_alias_alist): New variable.
17000 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
17001
17002 * intervals.c (lookup_char_property): New function for looking up
17003 overlay and text properties, created from textget.
17004 (textget): Use it.
17005
17006 * intervals.h (lookup_char_property): Declare.
17007 (Vchar_property_alias_alist): Declare.
17008
17009 * buffer.c (Foverlay_get): Use lookup_char_property.
17010
170112002-06-07 Sam Steingold <sds@gnu.org>
17012
17013 * xselect.c (lisp_data_to_selection_data): Fix last change:
17014 *data_ret is not a Lisp string, while unibyte_string is.
17015
170162002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
17017
17018 * xselect.c (lisp_data_to_selection_data): Fix last change:
17019 set size_ret.
17020
170212002-06-07 Andreas Schwab <schwab@suse.de>
17022
17023 * m/amdx86-64.h: New file.
17024
170252002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
17026
17027 * fns.c (Fstring_make_unibyte): Doc fix.
17028
17029 * xselect.c (lisp_data_to_selection_data): If the requested type
17030 is STRING, call string_make_unibyte to encode the selected text
17031 as a string.
17032
17033 * window.c (Fset_window_hscroll): Doc fix.
17034
170352002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17036
17037 * fileio.c (choose_write_coding_system):
17038 Call select-safe-coding-system properly.
17039
170402002-06-03 Richard M. Stallman <rms@gnu.org>
17041
17042 * xdisp.c (message_with_string): Error if STRING is not a string.
17043
17044 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
17045
17046 * fileio.c (choose_write_coding_system): Pass FILE arg to
17047 Vselect_safe_coding_system_function.
17048
170492002-06-03 Ken Raeburn <raeburn@gnu.org>
17050
17051 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
17052
170532002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
17054
17055 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
17056 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
17057 * keymap.c (describe_command): Likewise.
17058 * minibuf.c (read_minibuf): Likewise.
17059
17060 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
17061 Cast `current_column' return value to int.
17062 (back_to_previous_visible_line_start)
17063 (reseat_at_next_visible_line_start, next_element_from_buffer):
17064 Cast `indented_beyond_p' 3rd arg to float.
17065
17066 * indent.c (last_known_column): Now a float.
17067 (current_column_1, position_indentation, current_column)
17068 (string_display_width): Return float.
17069 (Fcurrent_column): Cast `current_column' return value to int.
17070 (Fcurrent_indentation): Cast `position_indentation' retval to int.
17071 (indented_beyond_p): Third arg now a float.
17072 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
17073
17074 * lisp.h (current_column): Now returns float.
17075 (indented_beyond_p): 3rd arg now a float.
17076
170772002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
17078
17079 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
17080 is Qcompound_text_with_extensions.
17081
17082 * xselect.c (lisp_data_to_selection_data): Always set selection
17083 type as string if x_encode_text returns streingp non-NULL.
17084
17085 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
17086
170872002-05-30 Richard M. Stallman <rms@gnu.org>
17088
17089 * window.c (Fset_window_configuration): Correct the handling
17090 of point in current buffer, to work with multiple windows.
17091
170922002-05-29 Colin Walters <walters@verbum.org>
17093
17094 * lread.c (Fread_from_string): Don't depend on order of evaluation
17095 for C function parameters.
17096
170972002-05-28 Richard M. Stallman <rms@gnu.org>
17098
17099 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
17100 way for blinked-off state and for a nonselected window.
17101
17102 * window.c (window_scroll_pixel_based): Don't call Fbolp;
17103 instead, see if the new start pos is at beginning of line.
17104
17105 * fileio.c (Fwrite_region): If START is a string, don't
17106 make any annotations.
17107
17108 * eval.c (syms_of_eval): Doc fix.
17109
171102002-05-28 Colin Walters <walters@debian.org>
17111
17112 * emacs.c (USAGE1): Add --no-splash.
17113 (standard_args): Ditto.
17114
171152002-05-28 Colin Walters <walters@gnu.org>
17116
17117 * lread.c (readchar_count): New variable.
17118 (readchar): Increment it.
17119 (unreadchar): Decrement it.
17120 (read_multibyte): Decrement it.
17121 (Vread_with_symbol_positions): New variable.
17122 (Vread_symbol_positions_list): New variable.
17123 (read_internal_start): New function, created from Fread and
17124 Fread_from_string. Handle Vread_symbol_positions_list and
17125 Vread_with_symbol_positions.
17126 (readevalloop, Fread, Fread_from_string): Use it.
17127 (read1): Use readchar_count to add symbol positions to
17128 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
17129 (syms_of_lread): DEFVAR_LISP and initialize them.
17130
17131 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
17132 (substitute_object_recurse, substitute_object_in_subtree)
17133 (substitute_in_interval): Prototype.
17134 (read_multibyte): Return c if it's less than zero.
17135
171362002-05-28 Kim F. Storm <storm@cua.dk>
17137
17138 * fileio.c (Fread_file_name_internal): Added brute-force
17139 speed up for using predicate file-directory-p.
17140
171412002-05-28 Kim F. Storm <storm@cua.dk>
17142
17143 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
17144 New variables.
17145 (syms_of_fileio): DEFVAR_LISP them.
17146 (read_file_name_cleanup): New unwind function.
17147 (Fread_file_name_internal): Only return completions satifying
17148 Vread_file_name_predicate. Temporarily unwind protect and rebind
17149 default-directory while checking completions against the predicate.
17150 (Fread_file_name): Added PREDICATE argument. Specbind it to
17151 Vread_file_name_predicate during completion.
17152 Call Vread_file_name_function to read the file name if non-nil.
17153
17154 * lisp.h (Fread_file_name): Now has 6 args.
17155
17156 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
17157 predicate for Fread_file_name when reading directory name.
17158 Supply Qnil for predicate in other calls to Fread_file_name.
17159
171602002-05-26 Miles Bader <miles@gnu.org>
17161
17162 * term.c (tty_capable_p): New function.
17163 * dispextern.h (tty_capable_p): New function declaration.
17164 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
17165 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
17166
171672002-05-23 Stefan Monnier <monnier@cs.yale.edu>
17168
17169 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
17170 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
17171 (Vwrite_region_annotate_functions): Docstring fix.
17172
171732002-05-23 Kim F. Storm <storm@cua.dk>
17174
17175 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
17176 phys_cursor's hpos is overwritten. This is still not completely
17177 correct, as it doesn't really make sense to use hpos at all to
17178 get the cursor glyph (as that is relative to the width of the
17179 characters on the line, which may have changed during the update).
17180
171812002-05-22 Jason Rumney <jasonr@gnu.org>
17182
17183 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
17184 Lisp_Object.
17185 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
17186 Use modified enumfont_t struct.
17187
17188 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17189
17190 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
17191 Handle the `hbar' cursor type.
17192 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17193
17194 * w32fns.c (Qhbar): New variable.
17195 (x_specified_cursor_type): Use it.
17196
171972002-05-21 Ken Raeburn <raeburn@gnu.org>
17198
17199 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
17200 now, when the address is needed.
17201
172022002-05-21 Colin Walters <walters@gnu.org>
17203
17204 * Makefile.in (shortlisp): Add font-core.el.
17205
172062002-05-20 Richard M. Stallman <rms@gnu.org>
17207
17208 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
17209
17210 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
17211 equivalent key bindings here.
17212
172132002-05-20 Ken Raeburn <raeburn@gnu.org>
17214
17215 Change symbol structure to contain a lisp object for the symbol
17216 name:
17217 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
17218 object field named "xname".
17219 (SYMBOL_NAME): New macro.
17220 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
17221 name field.
17222 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
17223 (mark_object, gc_sweep): Use symbol xname field and XSTRING
17224 instead of name field.
17225 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
17226 SYMBOL_NAME instead of XSYMBOL and name field.
17227 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
17228 instead of XSYMBOL and name field.
17229 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
17230 and SYMBOL_NAME instead of XSYMBOL and name field.
17231 * coding.c (Fread_coding_system, code_convert_region1)
17232 (code_convert_string1, code_convert_string_norecord)
17233 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
17234 XSYMBOL and name field.
17235 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
17236 (Fmake_variable_buffer_local, Fmake_local_variable)
17237 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
17238 of XSYMBOL and name field.
17239 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
17240 XSYMBOL and name field.
17241 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
17242 instead of XSYMBOL and name field.
17243 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
17244 XSYMBOL and name field.
17245 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
17246 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17247 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
17248 instead of XSYMBOL and name field.
17249 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
17250 (parse_modifiers, apply_modifiers, Fevent_convert_list)
17251 (parse_solitary_modifier, Fexecute_extended_command):
17252 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17253 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
17254 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
17255 of XSYMBOL and name field.
17256 (describe_command, describe_translation): Use SYMBOL_NAME and
17257 assignment instead of XSYMBOL and name field and XSETSTRING.
17258 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
17259 instead of XSYMBOL and name field.
17260 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
17261 name field and XSETSTRING.
17262 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17263 of XSYMBOL and name field.
17264 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
17265 assignment instead of XSYMBOL and name field and XSETSTRING.
17266 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
17267 XSTRING instead of XSYMBOL and name field.
17268 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
17269 and XSTRING instead of XSYMBOL and name field.
17270 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
17271 and XSTRING instead of XSYMBOL and name field.
17272 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
17273 XSTRING instead of XSYMBOL and name field.
17274 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17275 of XSYMBOL and name field.
17276 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
17277 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17278
172792002-05-19 Ken Raeburn <raeburn@gnu.org>
17280
17281 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
17282 and XCDR real rvalues in most configurations.
17283
17284 * buffer.c (fix_overlays_in_range, fix_overlays_before):
17285 Don't take the address of the cdr part of a cons cell; instead, track
17286 the parent cell and call XSETCDR, or set the variable for the head
17287 of the list if we haven't started down the list yet.
17288
172892002-05-19 Richard M. Stallman <rms@gnu.org>
17290
17291 * doc.c (reread_doc_file): Don't ask for confirmation.
17292
172932002-05-18 Jason Rumney <jasonr@gnu.org>
17294
17295 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
17296 (xbm_load_image): Use it.
17297 (xbm_load): Ditto.
17298 (xbm_read_bitmap_data): Reverted to xfns.c version.
17299 From David Ponce <david@dponce.com>.
17300
173012002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
17302
17303 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
17304 2.02 and later.
17305
173062002-05-16 Juanma Barranquero <lektu@terra.es>
17307
17308 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
17309
173102002-05-15 Stefan Monnier <monnier@cs.yale.edu>
17311
17312 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
17313 meaningful test.
17314 (read_char_minibuf_menu_prompt): Fix typo.
17315
173162002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
17317
17318 * eval.c (Fcommandp): Doc fix.
17319
173202002-05-13 Stefan Monnier <monnier@cs.yale.edu>
17321
17322 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
17323 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
17324 (Fset_keymap_parent): Gcpro a bit more.
17325 (access_keymap): Gcpro around meta_map call and around the main loop.
17326 (get_keyelt): Gcpro when following indirect references.
17327 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
17328 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
17329 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
17330 Remove useless ad-hoc remap code.
17331
173322002-05-13 Richard M. Stallman <rms@gnu.org>
17333
17334 * search.c (search_buffer): Give up boyer moore search if inverse
17335 translation change charset_base.
17336
173372002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
17338
17339 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
17340 characters is carried over from the previous block of text, adjust
17341 coding->produced to account for the extra character.
17342
173432002-05-11 Andreas Schwab <schwab@suse.de>
17344
17345 * coding.c (intersection): Keep the elements of the returned list
17346 in the same order as in the first list.
17347
173482002-05-11 Kim F. Storm <storm@cua.dk>
17349
3419757d 17350 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
17351 only update cmm_size if realloc actually succeeds.
17352 Testing with initial size of 2 elements revealed that using
17353 realloc on GNU/Linux would cause a random trap in xmalloc
17354 later on, so I rewrote the code to use malloc/bcopy/free instead
17355 of realloc.
17356
173572002-05-10 Jason Rumney <jasonr@gnu.org>
17358
17359 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
17360
173612002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
17362
17363 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
17364 parens, to ensure correct evaluation order.
17365
173662002-05-10 Kim F. Storm <storm@cua.dk>
17367
17368 * keymap.c (Vemulation_mode_map_alists): New variable.
17369 (syms_of_keymap): DEFVAR_LISP it.
17370 (current_minor_maps): Process keymap alists in that list before
17371 minor-mode-overriding-map-alist and minor-mode-map-alist.
17372
173732002-05-09 Richard M. Stallman <rms@gnu.org>
17374
17375 * search.c (Freplace_match): Doc fix.
17376
173772002-05-09 Kim F. Storm <storm@cua.dk>
17378
17379 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17380 Enlarge cursor rectangle drawn around image with non-zero relief.
17381
17382 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
17383 Enlarge cursor rectangle drawn around image with non-zero relief.
17384
17385 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
17386 Enlarge cursor rectangle drawn around image with non-zero relief.
17387
173882002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
17389
17390 * xselect.c (lisp_data_to_selection_data): Don't set selection
17391 type if comes from the Lisp object's car. If the selection
17392 contains a pure ASCII text, always return QSTRING as its type.
17393
173942002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17395
17396 * mac.c (mac-cut-function): Doc fix.
17397
173982002-05-05 Richard M. Stallman <rms@gnu.org>
17399
17400 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
17401
174022002-05-04 Jason Rumney <jasonr@gnu.org>
17403
17404 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
17405 for event-click-count.
17406
17407 * process.c (init_process): Only add server subfeature if we can
17408 use non-blocking I/O.
17409
174102002-05-04 Andrew Choi <akochoi@shaw.ca>
17411
17412 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
17413 repeatedly.
17414
174152002-05-03 Jason Rumney <jasonr@gnu.org>
17416
17417 * process.c (Fmake_network_process): Only support server sockets
17418 when we can make them non-blocking.
17419
17420 * s/ms-w32.h (HAVE_SELECT): Define.
17421
17422 * w32.h (FILE_NDELAY): New flag.
17423
17424 * w32.c (sys_getpeername, fcntl): New functions.
17425 (_sys_read_ahead): Temporarily block on non-blocking sockets.
17426
2d4713aa 17427 * w32proc.c: Include sys/file.h.
048addec
JD
17428
174292002-05-03 Colin Walters <walters@verbum.org>
17430
17431 * callproc.c (Vgame_score_directory): Renamed to
17432 Vshared_game_score_directory.
17433
174342002-04-30 Richard M. Stallman <rms@gnu.org>
17435
17436 * s/gnu.h [emacs]: Include stdio.h.
17437 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
17438
17439 * eval.c (do_autoload): Error if called while preparing to dump.
17440
17441 * fns.c (Frequire): Error if need to load while preparing to dump.
17442
174432002-04-28 Colin Walters <walters@verbum.org>
17444
17445 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
17446 Default to "~/.emacs.d/games".
17447
174482002-04-29 Stefan Monnier <monnier@cs.yale.edu>
17449
17450 * lread.c (openp): Change arg exec_only to predicate.
17451 (build_load_history): Use XCAR/XCDR.
17452 (Flocate_file_internal): New fun.
17453 (syms_of_lread): Defsubr it.
17454 (Fload): Update call to openp.
17455
17456 * lisp.h (openp): Update prototype.
17457
17458 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
17459 * w32proc.c (sys_spawnve):
17460 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
17461 * w32.c (check_windows_init_file):
17462 * sound.c (Fplay_sound_internal):
17463 * process.c (Fstart_process):
17464 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
17465 * mac.c (run_mac_command):
17466 * emacs.c (init_cmdargs):
17467 * callproc.c (Fcall_process): Update call to openp.
17468
17469 * textprop.c (remove_properties): Don't use XCAR without CONSP.
17470
17471 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
17472
174732002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17474
17475 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
17476 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
17477
174782002-04-28 Richard M. Stallman <rms@gnu.org>
17479
17480 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
17481
17482 * eval.c (Fcommandp): New arg for_call_interactively.
17483 * lisp.h (Fcommandp): Declare new arg.
17484
174852002-04-28 Jason Rumney <jasonr@gnu.org>
17486
17487 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
17488
17489 * w32.c (stat, fstat): Use file index information to generate
17490 inodes for directories where available.
17491
174922002-04-26 Andrew Choi <akochoi@shaw.ca>
17493
17494 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
17495 [HAVE_CARBON]: Include Mac object files.
17496
17497 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
17498 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
17499 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
17500 MAC_OSX, and MAC_OS instead of macintosh.
17501
17502 * editfns.c [MAC_OS8]: Include stdio.h.
17503
17504 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
17505
17506 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
17507 Apple Monaco.
17508
78819ebb 17509 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
17510 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
17511 calling select.
17512
17513 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
17514
17515 * tparam.c [MAC_OSX]: Don't define BC and UP.
17516
17517 * config.in [HAVE_CARBON]: Add.
17518
17519 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
17520 Move here from mac/src and mac/inc.
17521
17522 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
17523
175242002-04-26 Gerd Moellmann <gerd@gnu.org>
17525
17526 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
17527 Compute phys_cursor_width from the x position returned
17528 by x_draw_glyhs, which is cheaper.
17529 (x_display_and_set_cursor): Compute the buffer-local value
17530 of `cursor-in-non-selected-windows' only when needed.
17531
175322002-04-25 Gerd Moellmann <gerd@gnu.org>
17533
17534 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
17535 cursor on a stretch glyph has a width that depends on
17536 x_stretch_cursor_p.
17537
175382002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17539
17540 * abbrev.c (abbrev-start-location): Doc fix.
17541
17542 * indent.c (Fvertical_motion): Fix last change.
17543
175442002-04-25 Gerd Moellmann <gerd@gnu.org>
17545
17546 * indent.c (Fvertical_motion): Move to the start of the line
17547 containing PT before moving up or down.
17548
175492002-04-24 Gerd Moellmann <gerd@gnu.org>
17550
17551 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
17552 case of writing a whole row, more or less analogous to the case of
17553 writing only parts of a row.
17554
17555 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
17556 0 for NO_CURSOR.
17557
17558 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
17559
175602002-04-23 Colin Walters <walters@verbum.org>
17561
17562 * buffer.c (syms_of_buffer): Doc fix.
17563
175642002-04-23 Gerd Moellmann <gerd@gnu.org>
17565
17566 * xterm.c (notice_overwritten_cursor): Handle the special case
17567 of the cursor being in the first blank non-text line at the
17568 end of a window.
17569
17570 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17571 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17572 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
17573 bar cursors only, to make phys_cursor_width contain what its name
17574 suggests.
17575 (notice_overwritten_cursor): Consider the cursor image erased if
17576 the output area intersects the cursor image in y-direction.
17577
175782002-04-23 Simon Marshall <simon@gnu.org>
17579
17580 * xfns.c (x_set_mouse_color): Change default for cross_cursor
17581 to XC_hand2.
17582
175832002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17584
17585 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
17586
175872002-04-22 Kim F. Storm <storm@cua.dk>
17588
17589 * textprop.c (remove_properties): Fixed trap for malformed plist.
17590
175912002-04-22 Richard M. Stallman <rms@gnu.org>
17592
17593 * cmds.c (Fend_of_line): Handle intangible text in mid line.
17594
17595 * window.c (make_window): Initialize height_fixed_p,
17596 last_cursor_off_p, and p->cursor_off_p slots.
17597
175982002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17599
17600 * fns.c (use-dialog-box): Doc fix.
17601
176022002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17603
17604 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
17605 variables `row', `i' and `area'.
17606 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
17607 toolkit library.
17608
176092002-04-19 Stefan Monnier <monnier@cs.yale.edu>
17610
17611 * xfaces.c (clear_font_table): Don't free the default font of
17612 a frame even if it's on another display.
17613 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
17614 that could be Qt.
17615
176162002-04-19 Juanma Barranquero <lektu@terra.es>
17617
17618 * indent.c (Fmove_to_column): Remove unused local variable
17619 `next_boundary_byte'.
17620 (current_column_1): Likewise.
17621
176222002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
17623
17624 * msdos.c (Qhbar): New variable.
17625 (syms_of_msdos): Intern and staticpro it.
17626 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
17627 cursor type.
17628
176292002-04-19 Dave Lambert <dlambert@acm.org>
17630
17631 Theses change implement an underscore-like (`hbar') cursor.
17632
17633 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17634
17635 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
17636 Handle the `hbar' cursor type.
17637 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17638
17639 * xfns.c (Qhbar): New variable.
17640 (syms_of_xfns): Intern and staticpro it.
17641 (x_specified_cursor_type): Handle `hbar' cursor.
17642
17643 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
17644 not defined.
17645
176462002-04-18 Richard M. Stallman <rms@gnu.org>
17647
17648 * textprop.c (remove_properties): New arg LIST allows scanning
17649 either a list or a plist.
17650 (interval_has_some_properties_list): New function, like
17651 interval_has_some_properties using list instead of plist.
17652 All callers changed.
17653 (Fremove_list_of_text_properties): New function.
17654 (syms_of_textprop): Defsubr it.
17655
176562002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17657
17658 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
17659
176602002-04-17 Juanma Barranquero <lektu@terra.es>
17661
17662 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
17663
176642002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
17665
17666 * window.c (coordinates_in_window): Don't report on margin area
17667 if its width is zero.
17668
176692002-04-16 Jason Rumney <jasonr@gnu.org>
17670
17671 * w32fns.c (Fx_file_dialog): Decode file name before using.
17672
17673 * w32term.c (construct_drag_n_drop): Likewise.
17674
176752002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
17676
17677 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
17678 store load-history in pure space.
17679
17680 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
17681
176822002-04-16 Stefan Monnier <monnier@cs.yale.edu>
17683
17684 * xterm.c (Qlatin_1, Qutf_8): New vars.
17685 (syms_of_xterm): Initialize them.
17686 (XTread_socket): Eliminate incorrect optimization that tried to avoid
17687 decoding the output of X*LookupString.
17688 Always use latin-1 to decode the output of XLookupString.
17689 Try Xutf8LookupString if XmbLookupString failed.
17690
17691 * region-cache.c (new_region_cache): Use BEG.
17692
176932002-04-16 Gerd Moellmann <gerd@gnu.org>
17694
17695 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
17696 configuration files.
17697 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
17698 returns 0.
17699
177002002-04-15 Andreas Schwab <schwab@suse.de>
17701
17702 * config.in: Regenerated using autoheader.
17703
17704 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
17705 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
17706 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
17707 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
17708 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
17709 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
17710 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
17711 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
17712 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
17713 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
17714 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
17715 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
17716 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
17717 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
17718 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
17719 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
17720 STACK_DIRECTION, now set by autoconf.
17721
177222002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17723
17724 * dispnew.c (marginal_area_string): Sort arguments.
17725
17726 * dispextern.h (marginal_area_string): Add prototype.
17727
177282002-04-13 Richard M. Stallman <rms@gnu.org>
17729
17730 * fileio.c (Finsert_file_contents):
17731 Don't call temp_output_buffer_setup--do just part, by hand.
17732
17733 * coding.c (run_pre_post_conversion_on_str):
17734 Don't call temp_output_buffer_setup--do just part, by hand.
17735
17736 * keyboard.c (command_loop_1): Don't call start_hourglass
17737 or cancel_hourglass when executing a macro.
17738
17739 * marker.c (count_markers): New function.
17740
17741 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
17742 grow without limit. Move recently used elements to the front.
17743
177442002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
17745
17746 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
17747
177482002-04-12 Gerd Moellmann <gerd@gnu.org>
17749
17750 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
17751 rows marginal areas.
17752 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
17753 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
17754
17755 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
17756
177572002-04-12 Dave Love <fx@gnu.org>
17758
17759 * dispnew.c (marginal_area_string): New.
17760
17761 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
17762 (Qleft_margin, Qright_margin): Declare.
17763 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
17764
17765 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
17766 note_mode_line_highlight and extended.
17767
17768 * keyboard.c (Qleft_margin, Qright_margin): Declare.
17769 (make_lispy_event): Deal with mouse events in margins.
17770
177712002-04-12 Stefan Monnier <monnier@cs.yale.edu>
17772
17773 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
17774
17775 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
17776 than deactivating the mark if tmm is set to `lambda'.
17777 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
17778 Use a single event for HELP_EVENT.
17779 (Fexecute_extended_command): Save last_point_position.
17780
177812002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17782
17783 * lisp.h (Fpropertize): Add prototype.
17784
17785 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
17786
177872002-04-10 Colin Walters <walters@verbum.org>
17788
17789 * config.in: Add HAVE_SHARED_GAME_DIR.
17790
52eb0373 17791 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
17792 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
17793
177942002-04-10 Richard M. Stallman <rms@gnu.org>
17795
17796 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
17797
177982002-04-09 Stefan Monnier <monnier@cs.yale.edu>
17799
17800 * minibuf.c (read_minibuf): Use empty_string.
17801 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
17802 Short-circuit the search as soon as it "failed".
17803 (Fall_completions): Allow lambda forms and lists of strings for alist.
17804 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
17805 when require_match is nil.
17806 (Ftest_completion): Rename from `test_completion' and export to elisp.
17807 Call the predicate also when alist is a list.
17808 Obey Vcompletion_regexp_list.
17809 (do_completion, Fminibuffer_complete_and_exit): Use it.
17810 (Fassoc_string): Rename from `assoc_for_completion'.
17811 Allow list of strings as well and export to elisp.
17812
178132002-04-08 Stefan Monnier <monnier@cs.yale.edu>
17814
17815 * puresize.h (BASE_PURESIZE): Increase to 900KB.
17816
178172002-04-08 Juanma Barranquero <lektu@terra.es>
17818
17819 * w32.c (sys_accept): Don't hide variable `s'.
17820
178212002-04-05 Gerd Moellmann <gerd@gnu.org>
17822
17823 * callint.c (Fcall_interactively): Use INTEGERP instead of
17824 NUMBERP for checking Vhistory_length.
17825
178262002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17827
17828 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
17829 Doc fix to reflect it.
17830
178312002-04-04 Richard M. Stallman <rms@gnu.org>
17832
17833 * xdisp.c (display_mode_element): New arg RISKY.
17834 Disregard text props found or specified within a variable
17835 that isn't marked risky-local-variable.
17836 (Qrisky_local_variable): New variable.
17837 (syms_of_xdisp): Init and staticpro it.
17838
178392002-04-04 Stefan Monnier <monnier@cs.yale.edu>
17840
17841 * undo.c (record_point): New fun.
17842 (record_delete, record_insert): Use it.
17843
178442002-04-03 Juanma Barranquero <lektu@terra.es>
17845
17846 * doc.c (Fdocumentation): Add missing parentheses.
17847 (Fdocumentation_property): Likewise.
17848
178492002-04-03 Stefan Monnier <monnier@cs.yale.edu>
17850
17851 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
17852 data is 0, just return nil.
17853
178542002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
17855
17856 * msdos.c (syms_of_msdos): Fix last change with
17857 mouse_autoselect_window.
17858
178592002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17860
17861 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
17862 mouse_autoselect_window.
17863
178642002-04-02 Stefan Monnier <monnier@cs.yale.edu>
17865
17866 * keyboard.c (make_lispy_event): Handle unknown keysyms together
17867 with system-specific keysyms. Use it also for unknown function keys.
17868
17869 * doc.c (reread_doc_file): Return whether reload was attempted.
17870 (Fdocumentation, Fdocumentation_property): Don't try to reload
17871 if the doc is 0 and only ask once.
17872
17873 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
17874
178752002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
17876
17877 * keyboard.c (read_char): If the event was Qselect_window,
17878 restore timer_idleness_start_time to its previous value.
17879
17880 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
17881
178822002-04-01 Stefan Monnier <monnier@cs.yale.edu>
17883
17884 * region-cache.c (new_region_cache): Use BEG.
17885
17886 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
17887 Use BEG and BEG_BYTE.
17888
17889 * doc.c (get_doc_string): Return nil if the location is wrong.
17890 (reread_doc_file): New fun.
17891 (Fdocumentation, Fdocumentation_property):
17892 Call it if get_doc_string fails.
17893 (Fsnarf_documentation): Make it work for a dumped Emacs.
17894
17895 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
17896 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
17897
17898 * charset.c (Fstring): Allow 0 arguments.
17899
17900 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
17901
17902 * process.c (DATAGRAM_CONN_P, list_processes_1)
17903 (Fprocess_datagram_address, Fset_process_datagram_address)
17904 (Fset_network_process_options, server_accept_connection):
17905 Fix some int/Lisp_Object confusions (thank you union types).
17906
179072002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17908
17909 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
17910
17911 * w32term.c: Likewise.
17912 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
17913
17914 * keyboard.c (Qselect_window): New symbol.
17915 (head_table): Use it.
17916 (keys_of_keyboard): Bound select-window event to handle-select-window.
17917 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
17918
17919 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
17920 (last_window): New variable.
17921 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
17922 (note_mouse_movement): Remove reimplemented code in #if 0.
17923 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
17924 Emacs windows.
17925
17926 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
17927
179282002-03-31 Gerd Moellmann <gerd@gnu.org>
17929
17930 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
17931 Callers changed.
17932
179332002-03-30 Richard M. Stallman <rms@gnu.org>
17934
17935 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
17936 loop whenever it stops making progress.
17937
17938 * widget.c (set_frame_size): Don't call change_frame_size.
17939
179402002-03-30 Gerd Moellmann <gerd@gnu.org>
17941
17942 * dispnew.c (direct_output_for_insert):
17943 Call mark_window_display_accurate.
17944
179452002-03-29 Jason Rumney <jasonr@gnu.org>
17946
17947 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
17948
179492002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
17950
17951 * Makefile.in (lread.o): Depend on coding.h.
17952
17953 * lread.c (openp, Fload): Encode the file name before passing it
17954 to `stat', `access', and `emacs_open'.
17955 (openp): GCPRO the encoded file name. Don't recompute Lisp
17956 strings unnecessarily.
17957
179582002-03-29 Kim F. Storm <storm@cua.dk>
17959
17960 * fns.c (Flax_plist_put): Doc fix.
17961
179622002-03-28 Miles Bader <miles@gnu.org>
17963
17964 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
17965
179662002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17967
17968 * process.c (set-network-process-options): Add usage.
17969 (make-network-process): Doc fix.
17970
179712002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
17972
17973 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
17974
179752002-03-26 Richard M. Stallman <rms@gnu.org>
17976
17977 * fns.c (Fsubstring_no_properties): New function.
17978 (Flax_plist_get, Flax_plist_put): New functions.
17979 (syms_of_fns): defsubr them.
17980
17981 * xdisp.c (update_menu_bar): Test only update_mode_lines;
17982 don't test or alter w->update_mode_line.
17983
17984 * window.c (Fdisplay_buffer): Doc fix.
17985
179862002-03-24 Richard M. Stallman <rms@gnu.org>
17987
17988 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
17989
179902002-03-24 Gerd Moellmann <gerd@gnu.org>
17991
17992 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
17993 (Fdefmacro): Handle `(declare ...)'.
17994 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
17995 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
17996
179972002-03-24 Jason Rumney <jasonr@gnu.org>
17998
17999 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
18000 (xbm_file_p): Add prototypes.
18001 (xbm_format, xbm_image_p): Sync with xfns.c.
18002 (reflect_byte): New function.
18003 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
18004 (xbm_load_image): Create bitmaps with a depth of 1.
18005 (init_xfns): Enable XBM images.
18006
180072002-03-23 Jason Rumney <jasonr@gnu.org>
18008
18009 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
18010 correctly. Do not pass up_modifier to keyboard buffer.
18011
18012 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
18013
180142002-03-22 Stefan Monnier <monnier@cs.yale.edu>
18015
18016 * Makefile.in (bootstrapclean): New target.
18017 (bootstrap-temacs, bootstrap-doc): Remove.
18018 (bootstrap-emacs): Use a bog-standard `temacs'.
18019 Don't bother to build a DOC file.
18020
18021 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
18022
18023 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
18024 in temacs even if !CANNOT_DUMP.
18025 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
18026
18027 * alloc.c (check_pure_size): Only output a warning.
18028
180292002-03-22 Jason Rumney <jasonr@gnu.org>
18030
18031 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
18032 supported.
18033
18034 * w32term.c (zv_bits): Declare as short, for word alignment.
18035 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
18036 (syms_of_w32term): Define x-use-underline-position-properties.
18037
18038 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
18039 (clear_image_cache): Block input, fix logic, clear matrices in
18040 all frames that share this cache.
18041
180422002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
18043
18044 * emacs.c (main): Update the Copyright year in the blurb printed
18045 by "emacs --version".
18046
18047 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
18048
18049 * xterm.c (XTread_socket): If XK_ISO_Lock and
18050 XK_ISO_Last_Group_Lock are defined, handle keysyms between
18051 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
18052
180532002-03-21 Kim F. Storm <storm@cua.dk>
18054
18055 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
18056 menu-bar bindings in keymap and local-map properties _are_ used.
18057 But try keymap property first in accordance with 2002-01-03 patch.
18058 Added comment describing why this is not always reliable.
18059 (tool_bar_items): Ditto for tool-bar.
18060
180612002-03-21 Jason Rumney <jasonr@gnu.org>
18062
18063 * w32fns.c (x_clear_image_1): Disable color table code.
18064
180652002-03-21 Kim F. Storm <storm@cua.dk>
18066
18067 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
18068 removed the wrong version of the DEFUN macro; fixed it.
18069
18070 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
18071 Fmember rather than Fmemq).
18072 (Fprovide): Check that subfeatures is a list.
18073
18074 * process.c (QCfeature, QCdatagram): Removed variables.
18075 (QCtype, Qdatagram): New variables.
18076 (network_process_featurep): Removed function.
18077 (Fmake_network_process): Removed :feature check.
18078 Use :type 'datagram instead of :datagram t to create a datagram
18079 socket. This allows us to add other connection types (e.g. raw
18080 sockets) later in a consistent manner.
18081 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
18082 supported subfeatures for feature make-network-process.
18083 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
18084 Intern and staticpro QCtype and Qdatagram.
18085 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
18086
18087 * xfns.c: (QCtype): Remove duplicate declaration and
18088 initialization (is now declared in process.c).
18089
18090 * w32fns.c: (QCtype): Remove duplicate declaration and
18091 initialization (is now declared in process.c).
18092
180932002-03-21 Richard M. Stallman <rms@gnu.org>
18094
18095 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
18096 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
18097 when jumping to `fail' to avoid undoing reg changes in the
18098 last iteration of the loop.
18099 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
18100
18101 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
18102 Depend on process.h.
18103
181042002-03-20 Jason Rumney <jasonr@gnu.org>
18105
18106 Most of the following changes are still conditional on HAVE_IMAGES
18107 which is not set by default on Windows.
18108
18109 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
18110
18111 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
18112 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
18113 (four_corners_best, x_clear_image_1, x_clear_image)
18114 (x_alloc_image_color, postprocess_image)
18115 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
18116 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
18117 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
18118
18119 * w32gui.h (struct XImage): Define.
18120
18121 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
18122 extract mouse co-ordinates.
18123
181242002-03-20 Jason Rumney <jasonr@gnu.org>
18125
18126 * w32.c (init_winsock): Dynamically load new server and UDP
18127 socket functions.
18128 (socket_to_fd): New function.
18129 (sys_socket): Use it.
18130 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
18131 (sys_recvfrom, sys_sendto): New wrapper functions.
18132
18133 * process.c (QCfamily, QCfilter): Remove duplicate declaration
18134 and initialization.
18135
18136 * makefile.w32-in (LIBS): Remove $(WSOCK32).
18137
181382002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
18139
18140 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
18141 Don't use "sun" as a variable, it's a predefined constant on Sun
18142 machines.
18143
181442002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18145
18146 * bytecode.c (Fbyte_code): Revert last change.
18147
181482002-03-19 Kim F. Storm <storm@cua.dk>
18149
18150 * makefile.w32-in (LIBS): Add $(WSOCK32).
18151 From David Ponce <dponce@voila.fr>.
18152
181532002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18154
18155 * process.c (wait_reading_process_input): Move variables `pname'
18156 and `pnamelen' down where they are used.
18157
18158 * bytecode.c (Fbyte_code): Discard unused computed value to
18159 prevent gcc warning.
18160
18161 * lisp.h (Fplist_member): Add prototype.
18162
181632002-03-18 Kim F. Storm <storm@cua.dk>
18164
18165 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
18166 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
18167
18168 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
18169 Remove explicit GNU_LINUX settings for datagram support.
18170
181712002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18172
18173 * process.c (Fmake_network_process): Remove unused variable `sa'.
18174 Doc fix. Add usage:.
18175 (set_socket_options): Remove unused variables `optnum' and `opttype'.
18176
181772002-03-17 Richard M. Stallman <rms@gnu.org>
18178
18179 * xdisp.c (cursor_type_changed): New variable.
18180 (redisplay_internal): Redisplay all windows if cursor_type_changed.
18181 Clear it when clearing windows_or_buffers_changed.
18182 (try_cursor_movement, redisplay_window, try_window_id)
18183 (try_window_reusing_current_matrix): Test cursor_type_changed
18184 along with windows_or_buffers_changed.
18185
18186 * window.h (cursor_type_changed): New variable.
18187
18188 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
18189 not update_mode_lines, and always set it to 1.
18190
18191 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
18192 if no frames needed redrawing.
18193
181942002-03-17 Kim F. Storm <storm@cua.dk>
18195
18196 The following changes add support for network server processes,
18197 datagram connections, and local (unix) sockets.
18198
18199 * process.h (struct Lisp_Process): New member log.
18200 Doc fix: Member command used to indicate stopped network process.
18201 Doc fix: Member childp contains plist for network process.
18202 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
18203
18204 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
18205 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
18206 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
18207 New variables.
18208 (NETCONN1_P): New macro.
18209 (DATAGRAM_SOCKETS): New conditional symbol.
18210 (datagram_address): New array.
18211 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
18212 (status_message): Use concat3.
18213 (Fprocess_status): Add `listen' status to doc string. Return `stop'
18214 for a stopped network process.
18215 (Fset_process_buffer): Update contact plist for network process.
18216 (Fset_process_filter): Ditto. Don't enable input for stopped
18217 network processes. Server must listen, even if filter is t.
18218 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
18219 New functions.
18220 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
18221 (Fprocess_contact): Added KEY argument. Handle datagrams.
18222 (list_processes_1): Optionally show only processes with the query
18223 on exit flag set. Dynamically adjust column widths. Omit tty
18224 column if not needed. Report stopped network processes.
18225 Identify server and datagram network processes.
18226 (Flist_processes): New optional arg `query-only'.
18227 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
18228 (conv_lisp_to_sockaddr, set_socket_options)
18229 (network_process_featurep, unwind_request_sigio): New helper functions.
18230 (Fprocess_datagram_address, Fset_process_datagram_address):
18231 (Fset_network_process_options): New lisp functions.
18232 (Fopen_network_stream): Removed. Now defined in simple.el.
18233 (Fmake_network_process): New lisp function. Code is based on previous
18234 Fopen_network_stream, but heavily reworked with new property list based
18235 argument list, support for datagrams, server processes, and local
18236 sockets in addition to old client-only functionality.
18237 (server_accept_connection): New function.
18238 (wait_reading_process_input): Use it to handle incoming connects.
18239 Do not enable input on a new connection if process is stopped.
f63fd14e 18240 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
18241 (send_process): Handle datagram sockets.
18242 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
18243 network process is indicated by setting command field to t .
18244 (Fprocess_send_eof): No-op if datagram connection.
18245 (Fstatus_notify): Don't read input for a stream server socket or a
18246 stopped network process.
18247 (init_process): Initialize datagram_address array.
18248 (syms_of_process): Intern and staticpro new variables, defsubr new
18249 functions.
18250
182512002-03-16 Jason Rumney <jasonr@gnu.org>
18252
18253 * w32fns.c (w32_to_all_x_charsets): Return correct type in
18254 startup case.
18255
182562002-03-16 Richard M. Stallman <rms@gnu.org>
18257
18258 * xdisp.c (redisplay_internal, redisplay_windows):
18259 Use list_of_error to call internal_condition_case_1.
18260 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
18261 so as to catch all errors with no possibility of debugger redisplay.
18262 (list_of_error): New variable.
18263 (syms_of_xdisp): Init and staticpro it.
18264
18265 * print.c (print_object): Delete `\ ' from printed rep of frame.
18266
182672002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
18268
18269 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
18270 until its implementation is fixed.
18271
182722002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18273
18274 * xfns.c (png_load): Remove unused variable `gamma_str'.
18275
182762002-03-14 Richard M. Stallman <rms@gnu.org>
18277
18278 * xfns.c (x_real_positions): Handle failure in XQueryTree.
18279
182802002-03-14 Miles Bader <miles@gnu.org>
18281
18282 * intervals.c (adjust_for_invis_intang): New function.
18283 (set_point_both): Use `adjust_for_invis_intang' to do most of the
18284 work for dealing with invisible+intangible regions. Do so before
18285 and after both forward and backward movements, to handle both
18286 front-sticky and rear-sticky cases.
18287 * textprop.c (text_property_stickiness): Function moved here from
18288 `editfns.c'.
18289 * intervals.h (text_property_stickiness): New declaration.
18290 * editfns.c (char_property_eq): Function removed.
18291 (text_property_stickiness): Function moved to `textprop.c'.
18292
182932002-03-13 Jason Rumney <jasonr@gnu.org>
18294
18295 * config.in: Add STRFTIME_NO_POSIX2.
18296
18297 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
18298 and %OX when underlying strftime does not.
18299
183002002-03-13 Stefan Monnier <monnier@cs.yale.edu>
18301
18302 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
18303 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
18304 line) to avoid annoying flicker.
18305 (xm_scroll_callback): Get rid of the now unnecessary kludge.
18306 (XTread_socket): Mark it static.
18307
18308 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
18309
183102002-03-13 Kim F. Storm <storm@cua.dk>
18311
18312 * puresize.h (BASE_PURESIZE): Increase to 775000.
18313
183142002-03-12 Juanma Barranquero <lektu@terra.es>
18315
18316 * editfns.c (syms_of_editfns): Fix typo.
18317
183182002-03-12 Gerd Moellmann <gerd@gnu.org>
18319
18320 * xsmfns.c: Include stdio.h because termhooks.h needs it.
18321 Include termopt.h for interrupt_input.
18322
183232002-03-11 Andreas Schwab <schwab@suse.de>
18324
18325 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
18326
183272002-03-11 Gerd Moellmann <gerd@gnu.org>
18328
18329 * xterm.c (note_mouse_movement): Put code for
18330 x_autoselect_window_p in #if 0.
18331
18332 * lread.c (Fload): Don't assume that message_with_string uses the
18333 string it is given like a C string.
18334
183352002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18336
78819ebb 18337 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 18338
52eb0373 18339 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
18340 x_session_have_connection.
18341 (x_initialize): Add call to x_session_initialize.
18342
18343 * termhooks.h (enum event_kind): Add save_session_event.
18344
18345 * keyboard.c: Add Emacs event save_session_event.
18346
18347 * emacs.c (main): Add call to syms_of_xsmfns.
18348
78819ebb 18349 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
18350
18351 * config.in: Add HAVE_X_SM.
18352
18353 * Makefile.in (LIBXT): Add -lSM -lICE
18354 if HAVE_X_SM and not USE_X_TOOLKIT.
18355 (XOBJ): New file xsmfns.c added.
18356
18357 * xsmfns.c: New file for X session management.
18358
183592002-03-09 Jason Rumney <jasonr@gnu.org>
18360
18361 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
18362 read-only when setting modified time.
18363
183642002-03-08 Gerd Moellmann <gerd@gnu.org>
18365
18366 * xdisp.c (move_it_vertically_backward): At the end of the function,
18367 when moving forward by lines, treat terminal frames specially.
18368
18369 * keyboard.c (echo_char): Make sure to add a separator between
18370 keys even if echo_dash hasn't been called.
18371
18372 * xdisp.c: Use new string macros.
18373 (update_echo_area): Pass number of bytes to message3 instead of
18374 number of chars.
18375 (set_message_1): Don't access a string's size_byte directly.
18376 (decode_mode_spec_coding): Use number of bytes of eoltype string
18377 instead number of chars.
18378
18379 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
18380
183812002-03-08 Juanma Barranquero <lektu@terra.es>
18382
18383 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
18384 24-bit.
18385
183862002-03-06 Jason Rumney <jasonr@gnu.org>
18387
18388 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
18389
183902002-03-06 Gerd Moellmann <gerd@gnu.org>
18391
18392 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
18393 (cancel_echoing, echo_length, echo_truncate): Changed to
18394 work with new kboard definition.
18395 (echo_now): Use message3_nolog instead of message2_nolog.
18396
18397 * alloc.c (mark_kboards): Mark echo_string.
18398
18399 * keyboard.h (ECHOBUFSIZE): Removed.
18400 (struct kboard): Member echoptr removed, member echobuf renamed
18401 to echo_string.
18402
18403 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
18404 message3 instead of message2 to display the message using STRING's
18405 text properties.
18406
184072002-03-05 Andreas Schwab <schwab@suse.de>
18408
18409 * xdisp.c (hscroll_margin): Change to EMACS_INT.
18410
184112002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
18412
18413 * frame.c (default-frame-alist): Explain that setting it doesn't
18414 affect existing frames.
18415
184162002-03-05 Stefan Monnier <monnier@cs.yale.edu>
18417
18418 * indent.c (skip_invisible): Fix my brain fart.
18419
18420 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
18421
184222002-03-04 Stefan Monnier <monnier@cs.yale.edu>
18423
18424 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
18425 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
18426 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
18427 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
18428 and variables to use EMACS_INT instead of just int.
18429
18430 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
18431
184322002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
18433
18434 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
18435 environment, pass it down with corrected value.
18436
184372002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18438
18439 * lread.c (read_filtered_event): Do not call start_hourglass
18440 before returning.
18441
184422002-03-04 Juanma Barranquero <lektu@terra.es>
18443
18444 * w32term.c (x_display_and_set_cursor): Fix typo.
18445
184462002-03-03 Richard M. Stallman <rms@gnu.org>
18447
18448 * fileio.c (Fmake_temp_name): Doc fix.
18449
184502002-03-03 Gary Wong <gtw@gnu.org>
18451
18452 * termcap.c [!emacs]: Replace ospeed for building standalone
18453 libtermcap, for binary compatibility.
18454
18455 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
18456
184572002-03-03 Richard M. Stallman <rms@gnu.org>
18458
18459 * xrdb.c (file_p): Rename arg `path' to `filename'.
18460
18461 * abbrev.c (Fexpand_abbrev): Increment plist as use count
18462 only if it is an integer.
18463
18464 * xfns.c (png_load): Set screen_gamma based on f->gamma.
18465 If png_get_sRGB gives an answer, call png_set_gamma
18466 using the default image gamma value.
18467
18468 * lread.c (read1): When reading from a file, default string to
18469 multibyte only if it has some multibyte characters.
18470
18471 * print.c (print_object): Output multibyte chars 128...255
18472 using \x even if ! print_escape_multibyte.
18473
18474 * xdisp.c (display_mode_element): Move the places where
18475 bytepos, charpos, this, and lisp_string are set.
18476 Use lisp_string to set bytepos.
18477
18478 * xdisp.c (redisplay_internal):
18479 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
18480
18481 * xdisp.c (display_mode_element): Merge properties specified with
18482 :propertize onto those that come with the string.
18483
184842002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
18485
18486 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
18487 automatic-hscrolling. Users changed.
18488 <hscroll-margin>: Renamed from automatic-hscroll-margin.
18489 Users changed.
18490 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
18491
184922002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
18493
18494 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
18495
184962002-03-02 Kim F. Storm <storm@cua.dk>
18497
18498 * window.c (Fminibuffer_selected_window): New function.
18499 (syms_of_window): Defsubr it.
18500
185012002-03-01 Kim F. Storm <storm@cua.dk>
18502
18503 * window.h (struct window): New member phys_cursor_width.
18504
18505 * window.c (make_window, replace_window): Init phys_cursor_width.
18506
18507 * xterm.c (x_display_and_set_cursor): Blink box cursor using
18508 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18509
18510 * w32term.c (x_display_and_set_cursor): Blink box cursor using
18511 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
18512
18513 * lisp.h (GCPRO6): New macro.
18514
18515 * process.c (Fopen_network_stream): Use GCPRO6.
18516
185172002-03-01 Kim F. Storm <storm@cua.dk>
18518
18519 * process.c (Qconnect, Qfailed): New variables.
18520 (syms_of_process): Intern and staticpro them.
18521 (Fprocess_status): Document connect and failed return values.
18522 [NON_BLOCKING_CONNECT]: New conditional.
18523 (connect_wait_mask, num_pending_connects): New variables.
18524 (status_message): Convert Qfailed status.
18525 (Fopen_network_stream): Added support for non-blocking connect.
18526 New optional args: filter, sentinel, non_blocking. Doc updated.
18527 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
18528 (deactivate_process): Handle pending non-blocking connect.
18529 (wait_reading_process_input): Poll for status of non-blocking
18530 connects. Exec sentinel directly when connect succeeds.
18531 (status_notify): Don't read process output if not yet connected.
18532
185332002-02-28 Kim F. Storm <storm@cua.dk>
18534
18535 * window.c: (minibuf_selected_window): Renamed from
18536 Vminibuf_selected_window. Users changed.
18537 (syms_of_window): Staticpro it.
18538
185392002-02-26 Kim F. Storm <storm@cua.dk>
18540
18541 The following changes add a new Vminibuf_selected_window variable
18542 which is similar to Vminibuf_scroll_window, but which is only set
18543 on entry to the minibuffer (from a non-minibuffer window):
18544
18545 * window.c: (Vminibuf_selected_window): New variable.
18546 (struct save_window_data): New member minibuf_selected_window.
18547 (Fset_window_configuration): Restore Vminibuf_selected_window.
18548 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
18549 Set minibuf_scroll_window member to nil if minibuf_level is 0.
18550 (compare_window_configurations): Compare minibuf_selected_window.
18551
18552 * window.h: (Vminibuf_selected_window): Declare extern.
18553
18554 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
18555 entry to minibuffer or on entry from a non-minibuffer window.
18556
18557 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
18558 Vminibuf_selected_window instead of Vminibuf_scroll_window.
18559
18560 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
18561 instead of Vminibuf_scroll_window when deciding in which window
18562 the region should be highlighted. Consequently, the region remains
18563 highlighteded even when a completion buffer is also displayed.
18564
185652002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
18566
18567 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
18568
18569 * xselect.c (Qcompound_text_with_extensions): Renamed from
18570 Qcompound_text_no_extensions.
18571 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
18572
185732002-02-26 Juanma Barranquero <lektu@terra.es>
18574
18575 * w32proc.c (syms_of_ntproc): Doc fix.
18576
185772002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18578
18579 * intervals.h: Include "dispextern.h" unconditionally.
18580
185812002-02-24 Jason Rumney <jasonr@gnu.org>
18582
18583 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
18584 and disp-table.elc.
18585 (lisp): Add emacs-lisp/backquote.elc.
18586
185872002-02-24 Kim F. Storm <storm@cua.dk>
18588
3419757d 18589 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
18590 The validation of the event type was too strict as it didn't
18591 allow string events; buffer names are used in bindings for
18592 menu-bar-select-buffer (see `menu-bar-update-buffers').
18593
185942002-02-23 Kim F. Storm <storm@cua.dk>
18595
18596 The following changes rework my patch of 2002-02-06 which
18597 added command remapping by entering the commands directly into
18598 the keymaps. Now, command remapping uses an explicit `remap'
18599 prefix in the keymaps, i.e. [remap COMMAND].
18600
18601 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 18602 (is_command_symbol): Remove function.
048addec
JD
18603 (Fdefine_key): No longer accept a symbol for KEY.
18604 Added validation of [remap COMMAND] argument for KEY.
18605 The DEF is no longer required to be a symbol when remapping a command.
18606 (Fremap_command): New function to remap command through keymaps.
18607 (Flookup_key): Perform command remapping initiated by
18608 Fremap_command directly for speed.
18609 (Fkey_binding): Use Fremap_command for command remapping.
18610 (where_is_internal): Handle new command remapping representation.
18611 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
18612 staticpro them. Defsubr Fremap_command.
18613
18614 * keymap.h (Fremap_command): Declare extern.
18615 (is_command_symbol): Remove extern.
18616
18617 * keyboard.c (command_loop_1): Use Fremap_command for command
18618 remapping; now try command remapping for all symbols.
18619
186202002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18621
18622 * coding.h (run_pre_post_conversion_on_str): Add prototype.
18623
186242002-02-23 Jason Rumney <jasonr@gnu.org>
18625
18626 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
18627 on the string before encoding it.
18628 (Fw32_get_clipboard_data): Run post-read-conversion on the string
18629 after decoding it.
18630
18631 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
18632
186332002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18634
18635 * w32term.c (enter_timestamp): Remove unused static variable to
18636 prevent warning.
18637
18638 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
18639
186402002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
18641
18642 * w16select.c (Fw16_get_clipboard_data): Fix last change.
18643
18644 * xselect.c (selection_data_to_lisp_data): Fix last change.
18645
186462002-02-22 Jason Rumney <jasonr@gnu.org>
18647
18648 * w32term.h (struct w32_output): New member menu_command_in_progress.
18649
18650 * w32menu.c (menubar_selection_callback): Free the menu and
18651 clear the menu_command_in_progress flag.
18652
18653 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
18654 (menu_free_timer): New variable.
18655 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
18656 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
18657 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
18658 menu command is in progress.
18659 <WM_COMMAND>: Set the menu_command_in_progress flag.
18660 Kill any menu_free_timer that is running.
18661
18662 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
18663 Call ExtTextOutA rather than ExtTextOut.
18664
186652002-02-22 Eli Zaretskii <eliz@gnu.org>
18666
18667 * puresize.h (BASE_PURESIZE): Increase to 755000.
18668
186692002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18670
18671 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
18672 on the string before encoding it.
18673 (Fw16_get_clipboard_data): Run post-read-conversion on the string
18674 after decoding it.
18675
186762002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
18677
18678 Support for ICCCM Extended Segments in X selections:
18679
18680 * xselect.c <Qcompound_text_no_extensions>: New variable.
18681 (syms_of_xselect): Intern and staticpro it.
18682 (selection_data_to_lisp_data): Run post-read-conversion on decoded
18683 selection text.
18684 (lisp_data_to_selection_data): If next-selection-coding-system is
18685 compound-text-no-extensions, set the type of selection to be
18686 compound-text.
18687
18688 * xterm.h (x_encode_text): Update prototype.
18689
18690 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
18691 callers changed. If SELECTIONP is non-zero, run the
18692 pre-write-conversion function before encoding the selection text.
18693
186942002-02-21 Kim F. Storm <storm@cua.dk>
18695
18696 * frame.c (syms_of_frame): Change mouse-highlight default to t.
18697
18698 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
18699 Correct composing of language-change event.
18700
187012002-02-20 Kim F. Storm <storm@cua.dk>
18702
18703 * keyboard.c (menu_bar_items): Don't include keymap or local-map
18704 bindings at PT when building menu (the menu is not updated often
18705 enough for this to work reliable).
18706 (tool_bar_items): Likewise.
18707 (current_active_maps): Removed unused (and buggy) function.
18708
187092002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18710
18711 * xfns.c (gif_load): Use correct width and height for GIF images.
18712
187132002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
18714
18715 * floatfns.c (Fatan): Accept an optional second arg and call
18716 atan2 if passed 2 args.
18717
187182002-02-18 Jason Rumney <jasonr@gnu.org>
18719
18720 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
18721
187222002-02-17 Jason Rumney <jasonr@gnu.org>
18723
18724 * w32term.c (x_autoselect_window_p): New variable.
18725 (syms_of_w32term): DEFVAR_BOOL and initialize it.
18726 (note_mouse_movement): Use it.
18727
18728 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
18729
18730 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
18731
18732 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18733 New variables.
18734 (syms_of_w32fns): Intern and staticpro them.
18735 (x_frame_parms) <"fullscreen">: New parameter.
18736 (x_fullscreen_move, x_set_fullscreen): New functions.
18737 (x_set_frame_parameters): Support Qfullscreen.
18738 (x_real_positions): Save x/y_pixels_diff frame params.
18739 (x_figure_window_size): Support full-screen frames.
18740 (Fx_create_frame): Default the fullscreen parameter.
18741
18742 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
18743 (x_fullscreen_adjust): New functions.
18744 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
18745 fullscreen. Call x_check_fullscreen_move, and set the
18746 want_fullscreen member of output_data.w32
18747 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
18748
18749 * w32term.h: New enum for FULLSCREEN_* constants.
18750 (struct w32_output): New members want_fullscreen, x_pixels_diff,
18751 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
18752 (x-fullscreen-adjust): New prototype.
18753
187542002-02-17 Kim F. Storm <storm@cua.dk>
18755
52eb0373 18756 * frame.c (Vmouse_highlight): New variable.
048addec
JD
18757 (syms_of_frame): DEFVAR_LISP it.
18758
52eb0373 18759 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 18760
048addec 18761 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 18762
048addec
JD
18763 * xterm.c (disable_mouse_highlight): Removed variable.
18764 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18765 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18766 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
18767 and on after keyboard input.
18768 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 18769
048addec 18770 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 18771
048addec
JD
18772 * msdos.c (disable_mouse_highlight): Removed variable.
18773 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18774 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
18775 (internal_terminal_init): Initialize mouse_face_hidden.
18776 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
18777 and on after keyboard input.
4f1b1854 18778
048addec 18779 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 18780
048addec
JD
18781 * w32term.c (disable_mouse_highlight): Removed variable.
18782 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
18783 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
18784 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
18785 and on after keyboard input.
18786 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 18787
048addec 187882002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 18789
048addec
JD
18790 * msdos.c (last_mouse_window): New variable.
18791 (dos_rawgetc): Fix last change--if the mouse is in the same window
18792 as recorded in last_mouse_window, don't select this window.
5cb6905d 18793
048addec 18794 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 18795
048addec
JD
18796 * msdos.c (x_autoselect_window_p): New variable.
18797 (syms_of_msdos): Defvar it.
18798 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
18799 which the last mouse movement occured, unless it is already selected.
437dfb9f 18800
048addec
JD
18801 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
18802 New variables.
18803 (syms_of_xdisp): DEVFAR them.
18804 (hscroll_window_tree): Use automatic_hscroll_margin and
18805 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 18806
048addec 188072002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 18808
048addec
JD
18809 * xterm.c (x-autoselect-window): New variable.
18810 (note_mouse_movement): Use it.
9f696a00 18811
048addec 18812 * keyboard.c: Do not include "systime.h" twice.
d57966d7 18813
048addec 188142002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 18815
bfa02563 18816 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 18817
048addec 18818 * alloc.c (NSTATICS): Increase to 1280.
74779f52 18819
048addec 188202002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 18821
048addec 18822 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 18823
048addec
JD
18824 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
18825 (Vx_super_keysym): New variables.
18826 (syms_of_xterm): DEFVAR_LISP them.
18827 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
18828 variables to determine which keys to use for the various modifiers.
a474d59c 18829
048addec 188302002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 18831
048addec
JD
18832 * window.c: (Vmode_line_in_non_selected_windows): Removed.
18833 (mode_line_in_non_selected_windows): New variable.
18834 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 18835
048addec
JD
18836 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
18837 Use mode_line_in_non_selected_windows.
18838 (mode_line_in_non_selected_windows): Declare extern.
18839 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 18840
048addec 188412002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 18842
048addec
JD
18843 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
18844 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
18845 (Fclear_this_command_keys): Doc fixes.
2d10309f 18846
048addec
JD
18847 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
18848 (update_face_from_frame_parameter): Increment face_change_count
18849 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 18850
048addec
JD
18851 * xdisp.c (QCpropertize): New variable.
18852 (mode_line_proptrans_alist): New variable.
18853 (display_mode_element): New arg PROPS; all calls changed.
18854 Implement this, for strings.
18855 Handle literal output of strings by sharing the
18856 main-line code for strings, using local var `literal'.
18857 Handle :propertize feature.
18858 (syms_of_xdisp): Initialze and staticpro QCpropertize and
18859 mode_line_proptrans_alist.
0b1e6b54 18860
048addec 188612002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 18862
048addec
JD
18863 * window.c: (Vmode_line_in_non_selected_windows): New variable.
18864 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 18865
048addec
JD
18866 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
18867 (CURRENT_MODE_LINE_FACE_ID): Use it.
18868 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 18869
048addec
JD
18870 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
18871 to get mode line face.
e17144de 18872
048addec 188732002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18874
048addec
JD
18875 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
18876 variables; cus-start.el doesn't need them anymore.
44368f8f 18877
048addec 188782002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 18879
048addec
JD
18880 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
18881 reduction. This fixes a display problem where stray newlines were
18882 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 18883
048addec 188842002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 18885
048addec 18886 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 18887
048addec 18888 * xdisp.c (display_mode_lines): Fix last change.
453c5510 18889
048addec 188902002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 18891
048addec
JD
18892 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
18893 match each other.
18894 (w32_load_system_font): Prevent Cleartype fonts from loading.
18895 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 18896
048addec 188972002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 18898
048addec
JD
18899 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
18900 (CURRENT_MODE_LINE_HEIGHT): Use it.
18901 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18902
048addec
JD
18903 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
18904 (pos_visible_p, handle_face_prop): Likewise.
18905 (display_mode_lines): Likewise, but for the real selected window.
18906 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 18907
048addec
JD
18908 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
18909 in non-selected windows.
18910 (realize_basic_faces): Realize it.
18911 (syms_of_term): Intern and staticpro it.
308dd672 18912
048addec 189132002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 18914
048addec
JD
18915 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
18916 Changed mail addresses to emacs-devel@gnu.org.
308dd672 18917
048addec 189182002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 18919
048addec
JD
18920 * fileio.c (Fsubstitute_in_file_name): If the file name includes
18921 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 18922
048addec 18923 * floatfns.c (Fround): Doc fix.
3c1e6b46 18924
048addec 189252002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 18926
048addec 18927 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 18928
048addec 189292002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 18930
048addec 18931 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 18932
048addec 189332002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 18934
048addec
JD
18935 * keymap.c (where_is_internal): Only check whether definition is
18936 remapped if it fulfills is_command_symbol.
0065bb74 18937
048addec 189382002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 18939
048addec 18940 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 18941
048addec 18942 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 18943
048addec 189442002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 18945
048addec
JD
18946 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
18947 defining command remapping. Doc updated.
18948 (Flookup_key): Remap command through keymap if KEY is a symbol.
18949 (is_command_symbol): New function.
18950 (Fkey_binding): Use it. New optional argument NO-REMAP.
18951 Doc updated. Callers changed. Perform command remapping via
18952 recursive call unless that arg is non-nil.
18953 (where_is_internal): New argument no_remap. Callers changed.
18954 Call recursively to find original key bindings for a remapped
18955 comand unless that arg is non-nil.
18956 (Fwhere_is_internal): New optional argument NO-REMAP.
18957 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 18958
048addec 18959 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 18960 (is_command_symbol): Add prototype.
0d8466cc 18961
048addec
JD
18962 * keyboard.c (Vthis_original_command): New variable.
18963 (syms_of_keyboard): DEFVAR_LISP it.
18964 (command_loop_1): Set it, and perform command remapping.
15fff01d 18965
048addec 189662002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 18967
048addec 18968 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 18969
048addec 189702002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 18971
048addec 18972 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 18973
048addec 189742002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 18975
048addec 18976 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 18977
048addec 189782002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 18979
048addec 18980 * filelock.c (S_ISLNK): Define if not defined.
3a232704 18981
048addec 189822002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 18983
048addec 18984 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 18985
048addec
JD
18986 * lread.c (read1): Redesign strategy for force_multibyte and
18987 force_singlebyte. Now is_multibyte records whether read_buffer
18988 is multibyte. Encountering any multibyte character makes it so.
4e02881b 18989
048addec 189902002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 18991
048addec
JD
18992 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
18993 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 18994
048addec 189952002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 18996
048addec
JD
18997 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
18998 latter never being defined on GNU/Linux.
749f499f 18999
048addec 190002002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 19001
048addec
JD
19002 * xfaces.c (realize_default_face): Don't set the weight and slant of
19003 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 19004
048addec 190052002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 19006
048addec
JD
19007 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
19008 Call cancel_hourglass unconditionally.
d0fd26dd 19009
048addec
JD
19010 * eval.c (Fsignal): Remove duplicated declaration of
19011 the variable `display_hourglass_p'.
b4c45162 19012
048addec 190132002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 19014
048addec 19015 * editfns.c (region_limit): Nicer error message.
c95eaa61 19016
048addec
JD
19017 * coding.c (decode_composition_emacs_mule):
19018 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 19019
048addec
JD
19020 * callint.c (check_mark): New arg to specify clearer error message.
19021 Callers changed.
c95eaa61 19022
048addec 190232002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 19024
048addec 19025 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 19026
048addec 190272002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 19028
048addec
JD
19029 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
19030 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
19031 Fix doc-strings.
c95eaa61 19032
048addec 190332002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 19034
048addec 19035 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 19036
048addec
JD
19037 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
19038 and scroll_up_aggressively.
c95eaa61 19039
048addec 190402002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 19041
048addec 19042 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 19043
048addec 190442002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 19045
048addec
JD
19046 * textprop.c (Fnext_property_change, Fnext_single_property_change)
19047 (Fprevious_property_change, Fprevious_single_property_change):
19048 Stay within the narrowed-buffer boundaries.
e2c3786a 19049
048addec 190502002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 19051
048addec
JD
19052 * term.c (Ftty_display_color_cells): New function.
19053 (syms_of_term): Defsubr it.
19054 (Ftty_display_color_cells, Ftty_display_color_p): Change the
19055 argument name to DISPLAY. Doc fix.
bf794306 19056
048addec
JD
19057 * dispextern.h: Add prototype for set_tty_color_mode and
19058 tty_setup_colors.
bf794306 19059
048addec 190602002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 19061
048addec
JD
19062 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
19063 If region left to draw is not what was expected, mark the frame as
19064 garbaged.
62582985 19065
048addec
JD
19066 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
19067 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 19068
048addec 190692002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 19070
048addec
JD
19071 * w32term.c (x_update_window_begin): Only hide caret if
19072 w32_use_visible_system_caret is set.
19073 (x_update_window_end): Only show caret if
19074 w32_use_visible_system_caret is set.
19075 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 19076
048addec 19077 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 19078
048addec 190792002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 19080
048addec
JD
19081 * unexelf.c (unexec): Define n so as to cause compilation error
19082 for the code where people have often written n instead of nn.
1e9a6186 19083
048addec 19084 * .gdbinit (hookpost-run): Defined.
1e9a6186 19085
048addec 190862002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 19087
048addec 19088 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 19089
048addec 190902002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 19091
048addec
JD
19092 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
19093 if fullscreen is being set.
7c75be36 19094
048addec 190952002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 19096
048addec
JD
19097 * minibuf.c (Fminibuffer_contents)
19098 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
19099 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 19100
048addec 191012002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 19102
048addec 19103 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 19104
048addec 191052002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 19106
048addec
JD
19107 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
19108 height before comparison.
19109 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 19110
048addec 191112002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 19112
048addec
JD
19113 * w32term.c (w32_system_caret_width): Remove.
19114 (w32_use_visible_system_caret): New user flag.
19115 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
19116 Windows reports a screen reader running.
19117 (x_update_window_begin): Hide the system caret.
19118 (x_update_window_end): Show the system caret.
19119 (x_display_and_set_cursor): Don't draw a cursor when
19120 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 19121
048addec
JD
19122 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
19123 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
19124 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
19125 the user requests it. Use system default width when creating.
19126 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 19127
048addec
JD
19128 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
19129 New window messages.
905cc05a 19130
048addec 191312002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 19132
048addec 19133 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 19134
048addec 191352002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 19136
048addec 19137 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 19138
048addec 191392002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 19140
048addec 19141 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 19142
048addec 191432002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 19144
048addec
JD
19145 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
19146 that Windows returns. If a double check fails, try to guess how
19147 ExtTextOut is going to act.
4d0fa4f3 19148
048addec
JD
19149 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
19150 in place of stricmp.
19151 (w32_list_synthesized_fonts): Removed.
19152 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
19153 (struct enumfont_t): New element; list.
19154 (enum_font_cb2): List all style and charset variations of a font.
19155 (Fw32_select_font): New optional argument; include_proportional.
19156 Exclude vertical fonts. Exclude proportional fonts unless
19157 include_proportional is non-nil.
19158 (w32_enable_synthesized_fonts): Change to a boolean.
19159 (Fw32_send_sys_command): Doc fix.
493faf20 19160
048addec 191612002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 19162
048addec
JD
19163 * dispnew.c (update_frame): Move the variable `tem' to the block
19164 where it is used.
4971e491 19165
048addec 191662002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 19167
048addec
JD
19168 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
19169 call to face-set-after-frame-default.
4971e491 19170
048addec 191712002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 19172
048addec
JD
19173 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
19174 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 19175
048addec 191762002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 19177
048addec
JD
19178 * window.c (enlarge_window): When exceeding size of parent,
19179 directly delete all the siblings instead of trying to resize it.
201c831a 19180
048addec 191812002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 19182
048addec 19183 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 19184
048addec 191852002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 19186
048addec 19187 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 19188
048addec 191892002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 19190
048addec
JD
19191 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
19192 is invisible. This can happen if cursor is on top line of a
19193 window, and we switch to a buffer with a header line.
d77fbc16 19194
048addec 19195 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 19196
048addec 191972002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 19198
048addec
JD
19199 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
19200 `dont_resize' only when used.
61e3b944 19201
048addec 19202 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 19203
048addec 192042002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 19205
048addec
JD
19206 * xdisp.c (display_mode_element): When computing charpos, depend
19207 on multibyteness of elt, not the text in field.
8af01033 19208
048addec 192092002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 19210
048addec
JD
19211 * buffer.c (Fkill_all_local_variables):
19212 Increment `update_mode_lines' only once.
7363986a 19213
048addec 192142002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 19215
048addec
JD
19216 * lisp.h (adjust_after_replace_noundo)
19217 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 19218
048addec 19219 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 19220
048addec 192212002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 19222
048addec
JD
19223 Support for the --color command-line argument and tty-color-mode
19224 frame parameter:
f1a85b89 19225
048addec
JD
19226 * term.c (tty_default_color_capabilities, tty_setup_colors)
19227 (set_tty_color_mode): New functions.
19228 (term_init): Call tty_default_color_capabilities.
19229 (Qtty_color_mode_alist): New variable.
19230 (syms_of_term): Intern and staticpro it.
f1a85b89 19231
048addec
JD
19232 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
19233 frames.
19234 (do_switch_frame): For termcap frames, switch the tty
19235 color mode as specified by the frame's parameters.
19236 (Qtty_color_mode): New variable.
19237 (syms_of_frame): Intern and staticpro it.
3a62677f 19238
048addec
JD
19239 * emacs.c (USAGE2): Add the --color option.
19240 (standard_args): Ditto.
72244db2 19241
048addec
JD
192422002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19243
19244 * xterm.h (struct x_output): New members want_fullscreen,
19245 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
19246 y_pixels_outer_diff.
19247 New enum for FULLSCREEN_* constants.
19248 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
19249 is NULL.
19250 (x_fullscreen_adjust): Add prototype.
3a62677f 19251
048addec
JD
19252 * emacs.c (USAGE2): Add the new full-screen arguments.
19253 (standard_args): Ditto.
3a62677f 19254
048addec
JD
19255 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19256 New variables.
19257 (syms_of_xfns): Intern and staticpro them.
19258 (x_frame_parms) <"fullscreen">: New parameter.
19259 (x_fullscreen_move, x_set_fullscreen): New functions.
19260 (x_set_frame_parameters): Support for Qfullscreen.
19261 (x_real_positions): More accurate computation of the frame position.
19262 (x_figure_window_size): Support full-screen frames.
19263 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 19264
048addec
JD
19265 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
19266 (XTread_socket) <Expose>: Call x_check_fullscreen.
19267 <ConfigureNotify>: Don't resize to fullscreen.
19268 Call x_check_fullscreen_move, and set the want_fullscreen member of
19269 output_data.x.
3a62677f 19270
048addec 192712002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 19272
048addec
JD
19273 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
19274 for mice with more than 3 buttons.
b8523839 19275
048addec
JD
19276 * w32term.c (parse_button): New parameter xbutton. Callers changed.
19277 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 19278
048addec
JD
19279 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
19280 (syms_of_w32fns): DEFVAR_BOOL it.
19281 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 19282
048addec 192832002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 19284
048addec 19285 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 19286
048addec 192872002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 19288
048addec 19289 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 19290
048addec 192912002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 19292
048addec
JD
19293 * .gdbinit (xbuffer): Remove address operator since data is now a
19294 pointer.
c93674bb 19295
048addec 192962002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 19297
048addec 19298 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 19299
048addec 19300 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 19301
048addec 193022002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 19303
048addec
JD
19304 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
19305 when checking for multiple frames.
91175673 19306
048addec 193072002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 19308
048addec
JD
19309 * window.c (delete_window): Rewrite the code for changing the
19310 selected window to handle the case where WINDOW is not a leaf.
91175673 19311
048addec 193122002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 19313
048addec
JD
19314 * process.c (send_process): Set src_multibyte to 1 after the call
19315 top setup_coding_system, not before the call.
e0fead5d 19316
048addec 193172002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 19318
048addec
JD
19319 * xmenu.c (set_frame_menubar, xmenu_show):
19320 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 19321
048addec
JD
19322 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
19323 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 19324
048addec 193252002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 19326
048addec 19327 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 19328
048addec 19329 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 19330
048addec 19331 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 19332
048addec 193332002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 19334
048addec
JD
19335 * insdel.c (make_gap_larger): Make sure buffer size does not
19336 overflow range of int.
62854fe2 19337
048addec 193382002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 19339
048addec
JD
19340 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19341 OVERLAPS_P.
656f46bb 19342
048addec 19343 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 19344
048addec
JD
19345 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
19346 to the left or to the right of the pointer, put it against
19347 the left screen edge.
19348 (x_frame_parms): Add missing braces around initializer.
036e218d 19349
048addec
JD
19350 * w32term.c (x_setup_relief_colors): Don't compute an image's
19351 background color if it doesn't have a Pixmap.
19352 (notice_overwritten_cursor): Don't depend on
19353 output_cursor and updated_area. Compare pixel coordinates with
19354 window's cursor pixel coordinates.
19355 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19356 Call notice_overwritten_cursor with new arg list.
19357 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19358 unconditionally.
19359 (x_draw_image_relief): Use predefined macro instead of
19360 constant when the value of `tool_bar_button_relief' is negative.
036e218d 19361
048addec 19362 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 19363
048addec 193642002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 19365
048addec 19366 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 19367
048addec 193682002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 19369
048addec
JD
19370 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
19371 (Fkey_binding): Try the `keymap' property map first.
19372 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
19373 minor mode bindings.
90647b07 19374
048addec 193752002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 19376
3419757d 19377 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 19378
048addec 193792002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 19380
048addec
JD
19381 * keyboard.c (read_key_sequence): Handle the keymap property
19382 before minor mode maps.
9fbc32aa 19383
048addec
JD
19384 * editfns.c (Fformat): Update thissize from field_width
19385 based on the actual width, in the string case.
036e218d 19386
048addec 193872002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 19388
048addec
JD
19389 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
19390 when used as truth value to prevent gcc warnings.
9fbc32aa 19391
048addec
JD
19392 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
19393 * w32proc.c: Include <config.h>.
9fbc32aa 19394
048addec 193952002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 19396
048addec
JD
19397 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
19398 not EMACS_INT, to make them compatible with DEFVAR_INT.
19399 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 19400
048addec 194012002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19402
048addec
JD
19403 * print.c (print_object): Test print_escape_nonascii only for
19404 unibyte strings.
19405 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
19406 when outputting to a multibyte buffer.
9fbc32aa 19407
048addec 194082001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 19409
048addec
JD
19410 * print.c (print_object): In multibyte string, use hex escapes.
19411 Use octal only for unibyte strings.
19412 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 19413
048addec
JD
19414 * lread.c (read_escape): New arg BYTEREP for reporting whether
19415 escape forces unibyte or multibyte.
19416 (read1): When reading a string, take note of that info.
0142178a 19417
048addec 194182001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 19419
048addec
JD
19420 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
19421 comparison to test lisp value returned by Fget.
d4824a5d 19422
048addec 194232001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 19424
048addec 19425 * lisp.h (max_specpdl_size): Add declaration.
b1356234 19426
048addec 19427 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 19428
048addec
JD
19429 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
19430 Handle modifier bits. Correct typo in error message.
99e380ee 19431
048addec 194322001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 19433
048addec
JD
19434 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
19435 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
19436 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19437 Update calls to Fdefine_abbrev.
19438 (write_abbrev): Update for changed data format.
19439 Don't list "system" abbrevs.
19440 (Fexpand_abbrev): Update use count with new data format.
19441 (describe_abbrev): Update for changed data format.
19442 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 19443
048addec 19444 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 19445
048addec 19446 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 19447
048addec
JD
19448 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
19449 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 19450
048addec
JD
19451 * keymap.c (Flookup_key): Error message if key has wrong data type.
19452 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
19453 (exclude_key): New variable.
59a86c99 19454
048addec 194552001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 19456
048addec
JD
19457 * xterm.c (x_setup_relief_colors): Don't compute an image's
19458 background color if it doesn't have a Pixmap.
eb77a5f4 19459
048addec
JD
19460 * xterm.c (notice_overwritten_cursor): Don't depend on
19461 output_cursor and updated_area. Compare pixel coordinates with
19462 window's cursor pixel coordinates.
19463 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
19464 Call notice_overwritten_cursor with new arg list.
19465 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
19466 unconditionally.
eb77a5f4 19467
048addec
JD
19468 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
19469 height of the cursor line to the amount to scroll.
eb77a5f4 19470
048addec 194712001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 19472
048addec
JD
19473 * intervals.c (set_point_both): The position after an invisible,
19474 intangible character is not an acceptable stopping point.
bb313871 19475
048addec 194762001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 19477
048addec
JD
19478 * window.c (enlarge_window): In new preserve_before code, convert
19479 CURBEG from lisp object to integer before doing arithmetic.
6052529b 19480
048addec 194812001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 19482
048addec 19483 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 19484
048addec 194852001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 19486
048addec
JD
19487 * keyboard.c (record_char): Ignore duplicate help-echo events only
19488 separated by mouse-movement. When tracking mouse, only record
19489 first and last mouse-movement event in same window.
19490 Don't record mouse-movement events in keyboard macros.
3ce081f5 19491
048addec 194922001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 19493
048addec
JD
19494 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
19495 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 19496
048addec
JD
19497 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
19498 instead of Fstring_as_unibyte.
9fabb2f5 19499
048addec 195002001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 19501
048addec 19502 The following changes remove mocklisp support:
9fabb2f5 19503
048addec 19504 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 19505
048addec
JD
19506 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
19507 `Qmocklisp' and `Qmocklisp_arguments'.
19508 Remove prototype of syms_of_mocklisp.
2fa0eedf 19509
048addec 19510 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 19511
048addec
JD
19512 * callint.c: Do not include mocklisp.h.
19513 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 19514
048addec
JD
19515 * eval.c: Remove variables `Qmocklisp_arguments',
19516 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
19517 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
19518 Do not test for mocklisp case.
19519 (Fwhile): Remove unused variable `tem'.
19520 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 19521
048addec 19522 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 19523
048addec 19524 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 19525
048addec 19526 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 19527
048addec 195282001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 19529
048addec
JD
19530 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
19531 to the left or to the right of the pointer, put it against
19532 the left screen edge.
6108b49c 19533
048addec 195342001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 19535
048addec
JD
19536 * Makefile.in (distclean): Remove .gdbinit if we are building
19537 outside the source tree.
5eea19a4 19538
048addec 195392001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 19540
048addec 19541 * w32.c (emacs_root_dir): New function.
5eea19a4 19542
048addec 19543 * msdos.c (emacs_root_dir): New function.
5eea19a4 19544
048addec
JD
19545 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
19546 of the current drive as the fallback for default_directory.
438e57dd 19547
048addec
JD
19548 * dired.c (file_name_completion): Run the elements of
19549 completion-ignored-extensions through ENCODE_FILE.
438e57dd 19550
048addec
JD
19551 * lisp.h (scmp): Remove prototype, since it's now a static
19552 function private to dired.c.
c88e5347 19553
048addec 195542001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 19555
048addec
JD
19556 * dired.c (scmp): Function moved from minibuf.c.
19557 Delete multibyte handling--used only on encoded strings.
59ce1461 19558
048addec 19559 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 19560
048addec 19561 * fns.c (merge): Add QUIT call.
59ce1461 19562
048addec 195632001-12-18 Dave Love <fx@gnu.org>
8727d588 19564
048addec
JD
19565 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
19566 language/georgian.el.
8727d588 19567
048addec 195682001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 19569
048addec
JD
19570 * Makefile.in (lisp, shortlisp): Synchronize with changes to
19571 lisp/Makefile.in:DONTCOMPILE.
cc63037e 19572
048addec 195732001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 19574
048addec
JD
19575 * xdisp.c (window_box_height): Do not return negative values.
19576 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 19577
048addec 19578 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 19579
048addec 19580 * term.c (keys): Likewise.
deece6f5 19581
048addec 19582 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 19583
048addec 195842001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 19585
048addec
JD
19586 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
19587 patch (COMPOSING_P, not COMPOSING).
28ff4293 19588
048addec 195892001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 19590
048addec 19591 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 19592
048addec
JD
19593 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
19594 before calling decode_coding.
9b46de40 19595
048addec 19596 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 19597
048addec
JD
19598 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
19599 instead of only for COMPOSITION_DISABLED.
9b46de40 19600
048addec 196012001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 19602
048addec 19603 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 19604
048addec 19605 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 19606
048addec
JD
19607 * buffer.h (struct buffer): New field `display_error_modiff'.
19608 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 19609
048addec 19610 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 19611
048addec
JD
19612 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
19613 Call redisplay_window, but not if display_error_modiff field says no.
19614 (redisplay_window_error): New function.
19615 (displayed_buffer): New variable.
19616 (redisplay_internal, redisplay_windows): Call the new functions
19617 instead of redisplay_window directly.
2cd23960 19618
048addec 196192001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 19620
048addec 19621 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 19622
048addec 196232001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 19624
048addec 19625 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 19626 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 19627 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 19628
048addec 196292001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 19630
048addec
JD
19631 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
19632 parameter have a numeric value all the time.
f6fa0866 19633
048addec 19634 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 19635
048addec 196362001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 19637
048addec 19638 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 19639
048addec
JD
19640 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
19641 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 19642
048addec 196432001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 19644
048addec
JD
19645 * xdisp.c (move_it_vertically_backward): Change heuristic
19646 for the case that we didn't move far enough initially.
91c153e2 19647
048addec
JD
19648 * window.c (Frecenter): Simplify computation in the case of window
19649 system frames and ARG < 0; use window_box_height.
65b7d3e7 19650
048addec 196512001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 19652
048addec
JD
19653 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
19654 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 19655
048addec 196562001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 19657
048addec
JD
19658 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
19659 arg is negative.
be676094 19660
048addec 196612001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 19662
048addec
JD
19663 * m/hp800.h: Split the __hpux conditional into the parts
19664 that are right for GNU/Linux too and the parts that are not.
19665 Use the former if GNU_LINUX.
19666 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 19667
048addec 19668 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 19669
048addec 196702001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 19671
048addec
JD
19672 * macros.c, msdos.c, w16select.c: Change doc-string comments to
19673 `new style' [w/`doc:' keyword].
032a857d 19674
048addec 196752001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 19676
048addec
JD
19677 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
19678 before using.
b6270150 19679
048addec 196802001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 19681
048addec
JD
19682 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
19683 keyword].
98cbb9fa 19684
048addec 196852001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 19686
048addec 19687 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 19688
048addec 19689 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 19690
048addec 196912001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 19692
048addec 19693 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 19694 Add comment to explain where the struct came from.
048addec
JD
19695 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
19696 (add_menu_item): Process pop-up menus first to avoid memory leak.
19697 (add_menu_item, w32_menu_display_help): Use `help' field as
19698 Lisp_Object.
19699 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 19700
048addec 197012001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 19702
048addec 19703 * COPYING: Moved back.
fa336b91 19704
048addec
JD
19705 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
19706 Add parentheses around && within ||.
077907d4 19707
048addec 19708 * indent.c (compute_motion): Likewise.
aa2af83a 19709
048addec 19710 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 19711
048addec
JD
19712 * coding.c (setup_coding_system, shrink_encoding_region)
19713 (Fdecode_sjis_char): Likewise.
60a653f1 19714
048addec 197152001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 19716
048addec
JD
19717 * xdisp.c (display_mode_element): Don't read past end of string if
19718 it ends with '%'.
60a653f1 19719
048addec
JD
19720 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
19721 can hold.
60a653f1 19722
048addec
JD
19723 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
19724 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
19725 type changed to Lisp_Object.
19726 (syms_of_data): DEFVAR_LISP them.
60a653f1 19727
048addec 197282001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 19729
048addec
JD
19730 * callproc.c (init_callproc): Set Vdata_directory based on the source
19731 location whenever Emacs was run uninstalled.
60a653f1 19732
048addec 197332001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 19734
048addec
JD
19735 * config.in (HAVE_WORKING_VFORK): New #undefs.
19736 * process.c (create_process):
19737 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
19738 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
19739 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
19740 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
19741 * m/intel386.h (HAVE_VFORK): Likewise.
19742 * m/mips-siemens.h (HAVE_VFORK): Likewise.
19743 * m/mips.h (HAVE_VFORK): Likewise.
19744 * s/freebsd.h (vfork): Remove #define.
19745 * s/lynxos.h (HAVE_VFORK): Remove #undef.
19746 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 19747
048addec 197482001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 19749
048addec
JD
19750 * s/hpux10.h (random): Add undef.
19751 (HAVE_RANDOM): Define it just once.
60a653f1 19752
048addec 197532001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19754
048addec 19755 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 19756
048addec 197572001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19758
048addec
JD
19759 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
19760 scroll bars of the frame before deleting the frame itself. If the
19761 frame has a widget, delete the frame with XtDestroyWidget, and do
19762 not call XDestroyWindow before that.
60a653f1 19763
048addec 197642001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 19765
048addec 19766 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19767
048addec 19768 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 19769
048addec 197702001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 19771
048addec
JD
19772 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
19773 excessively large.
60a653f1 19774
048addec
JD
19775 * insdel.c (make_gap_larger): New function.
19776 (make_gap_smaller): New function.
19777 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
19778 Call make_gap_smaller if arg is negative.
60a653f1 19779
048addec 197802001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19781
048addec
JD
19782 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
19783 Pass a dummy argument when calling interrupt_signal.
19784 (parse_menu_item): Mark disabled items before checking for empty def.
19785 (read_char_minibuf_menu_prompt): Make safety more visible.
19786 (read_key_sequence): Add a `first_unbound' variable.
19787 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
19788 unbound prefix as soon as we can detect it.
60a653f1 19789
048addec
JD
19790 * doc.c (Fsnarf_documentation): Add prototype.
19791 (get_doc_string): Handle negative arguments.
19792 (Fdocumentation): Use AREF and ASIZE.
19793 Move the calls to get_doc_string to a single place.
19794 Don't confuse an interactive-spec for a docstring reference.
19795 (Fdocumentation_property): Take advantage of the fact that
19796 get_doc_string now ignores the sign of the docstring position.
60a653f1 19797
048addec 19798 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 19799
048addec 198002001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19801
a64387ee 19802 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 19803
048addec 198042001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19805
048addec
JD
19806 * xterm.c (x_draw_image_relief): Use predefined macro instead of
19807 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 19808
048addec 198092001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 19810
048addec
JD
19811 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
19812 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 19813
048addec 19814 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 19815
048addec 198162001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19817
048addec 19818 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 19819
048addec 198202001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 19821
048addec 19822 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 19823
048addec 198242001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 19825
f63fd14e 19826 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 19827
048addec
JD
19828 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
19829 [!WM_MOUSELEAVE]: Define.
60a653f1 19830
048addec
JD
19831 * w32menu.c (current_popup_menu, get_menu_item_info):
19832 (set_menu_item_info): New vars.
19833 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
19834 (w32_menu_show): Set current_popup_menu.
19835 (add_menu_item): Allocate new strings for owner-drawn menu items
19836 and help strings.
19837 Use owner-draw for disabled menu items again.
19838 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
19839 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 19840
048addec
JD
19841 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
19842 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
19843 <WM_EXITMENULOOP>: Free menu strings.
19844 <WM_MOUSELEAVE>: Stop tracking mouse.
19845 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 19846
048addec
JD
19847 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
19848 and mouse face.
60a653f1 19849
048addec 198502001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 19851
048addec
JD
19852 The following changes add left-fringe and right-fringe
19853 frame parameters to adjust fringe widths, or remove one or
19854 both fringes.
60a653f1 19855
048addec
JD
19856 * frame.h (struct frame): Remove trunc_area_pixel_width and
19857 trunc_area_cols fields.
19858 (Qleft_fringe, Qright_fringe): Declare.
19859 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 19860
048addec
JD
19861 * frame.c (Qleft_fringe, Qright_fringe): New vars.
19862 (syms_of_frame): Initialize them.
60a653f1 19863
048addec
JD
19864 * window.c (coordinates_in_window): Handle separate left and right
19865 fringe widths.
60a653f1 19866
048addec
JD
19867 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
19868 and fringe_cols fields.
19869 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
19870 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
19871 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
19872 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
19873 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
19874 (x_compute_fringe_widths): Add prototype.
60a653f1 19875
048addec
JD
19876 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
19877 fill fringe evenly with small dashes.
f63fd14e 19878 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
19879 clip the new ZV bitmap to avoid jitter between rows.
19880 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
19881 background. Don't draw fringe bitmaps if fringe width is zero.
19882 (x_compute_fringe_widths): New function.
19883 (x_new_font, x_set_window_size_1): Use it.
60a653f1 19884
048addec
JD
19885 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
19886 (x_set_frame_parameters): Process `font' parameter before other
19887 parameters as fringe widths depend on it.
19888 (x_set_fringe_width): New function.
19889 (x_figure_window_size): Use x_compute_fringe_widths.
19890 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
19891 parameters.
60a653f1 19892
048addec
JD
19893 * widget.c (set_frame_size): Use x_compute_fringe_widths.
19894 (EmacsFrameSetCharSize): Ditto.
60a653f1 19895
048addec
JD
19896 * w32term.h: Merged changes from xterm.h.
19897 * w32term.c: Merged changes from xterm.c.
19898 * w32fns.c: Merged changes from xfns.c.
60a653f1 19899
048addec 199002001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19901
048addec 19902 * COPYING: Removed.
60a653f1 19903
048addec 199042001-11-29 Dave Love <fx@gnu.org>
60a653f1 19905
048addec
JD
19906 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
19907 extra extra slot.
19908 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 19909
048addec 199102001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19911
048addec
JD
19912 * fileio.c (file-name-coding-system)
19913 (default-file-name-coding-system): Doc fix (links to referenced
19914 variables added).
60a653f1 19915
048addec 199162001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19917
048addec
JD
19918 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
19919 Add dummy uses of gcproN variables.
60a653f1 19920
048addec
JD
19921 * category.c (describe_category, describe_category_1)
19922 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
19923 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 19924
048addec 199252001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 19926
048addec 19927 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 19928
048addec
JD
19929 * Makefile.in (lispdir): New variable, referring to build dir.
19930 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 19931
048addec 199322001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 19933
048addec
JD
19934 * w32menu.c (w32_menu_display_help): Actually add the new argument
19935 OWNER.
60a653f1 19936
048addec 199372001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 19938
048addec
JD
19939 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
19940 menu items. From David Ponce <dponce@wanadoo.fr>.
19941 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
19942 conditionally.
f63fd14e 19943 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 19944 help event in the owner frame's keyboard buffer.
60a653f1 19945
048addec
JD
19946 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
19947 (Fx_show_tip): Don't subtract last width from row width.
19948
19949 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
19950 (w32_read_socket): Use EQ to compare frames.
60a653f1 19951
048addec 199522001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 19953
048addec
JD
19954 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19955 OVERLAPS_P.
60a653f1 19956
048addec 199572001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19958
048addec
JD
19959 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
19960 `gcpro3' and `gcpro4'.
60a653f1 19961
048addec 19962 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 19963
048addec 199642001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19965
048addec 19966 * ccl.c: Use AREF and ASIZE.
60a653f1 19967
048addec 199682001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19969
048addec
JD
19970 * lisp.h (run_hook_list_with_args): Remove.
19971 (LIST_END_P): Fix call to wrong_type_argument.
19972 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 19973
048addec 199742001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19975
048addec
JD
19976 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
19977 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 19978
048addec
JD
19979 * eval.c: Use AREF and ASIZE.
19980 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 19981
048addec
JD
19982 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
19983 which match the end of the file-name.
19984 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
19985 is not a valid env var, but leave it as is instead.
60a653f1 19986
048addec
JD
19987 * keymap.c (access_keymap): Handle t bindings like nil bindings.
19988 Make nil bindings in char-tables transparent.
19989 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 19990
048addec 199912001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 19992
048addec
JD
19993 * textprop.c (set_text_properties_1): Allow START, END in either order.
19994 Do nothing if range is empty.
60a653f1 19995
048addec 19996 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 19997
048addec
JD
19998 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
19999 (clean): Not here.
60a653f1 20000
048addec 200012001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20002
048addec
JD
20003 * textprop.c (set_text_properties_1): Clearly mark that the
20004 interval should not be empty.
60a653f1 20005
048addec
JD
20006 * intervals.c (graft_intervals_into_buffer):
20007 Don't call set_text_properties_1 on an empty interval.
60a653f1 20008
048addec 200092001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 20010
048addec 20011 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 20012
048addec
JD
20013 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
20014 don't lose the data in it.
60a653f1 20015
048addec 200162001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 20017
048addec 20018 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 20019
c62aec78 20020 * buffer.c (Fkill_buffer): Likewise.
60a653f1 20021
c62aec78 20022 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 20023
048addec 200242001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20025
048addec 20026 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 20027
048addec 200282001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20029
048addec
JD
20030 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
20031 Niemitalo <kon@iki.fi>.
60a653f1 20032
048addec 200332001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 20034
048addec 20035 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 20036
048addec
JD
20037 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
20038 (Fx_show_tip): Block input during frame creation.
20039 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 20040
048addec 200412001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 20042
048addec
JD
20043 * lread.c (Fload): Detect recursive load error for more than 3
20044 nestings of the same file.
20045 (Vrecursive_load_depth_limit): Variable deleted.
20046 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 20047
048addec 200482001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 20049
048addec
JD
20050 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
20051 mouse position if either left or top is not specified.
60a653f1 20052
048addec
JD
20053 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
20054 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
20055 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
20056 (my_create_tip_window): Assign tip_window.
20057 (x_create_tip_frame): Use same defaults as X.
20058 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 20059 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 20060
048addec
JD
20061 * w32term.c (x_after_update_window_line): Doc fix.
20062 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
20063 frames.
20064 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 20065
048addec
JD
20066 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
20067 for all Windowed systems.
60a653f1 20068
048addec 200692001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 20070
048addec
JD
20071 * msdos.c (IT_clear_screen): If the frame's faces are not yet
20072 realized, use the initial screen colors to clear the screen.
60a653f1 20073
048addec 200742001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20075
048addec
JD
20076 * textprop.c (Fset_text_properties): Remove unused variables
20077 `unchanged', `prev_changed', `s' and `len'.
60a653f1 20078
048addec
JD
20079 * search.c (Freplace_match): Remove unused variable `inslen'.
20080
20081 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
20082
200832001-11-22 Jason Rumney <jasonr@gnu.org>
20084
20085 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
20086 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
20087 (my_create_tip_window): New function.
20088 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
20089 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
20090
200912001-11-20 Jason Rumney <jasonr@gnu.org>
20092
20093 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
20094 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
20095
20096 * w32fns.c (Vw32_system_coding_system): Remove.
20097 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
20098
200992001-11-19 Stefan Monnier <monnier@cs.yale.edu>
20100
20101 * fileio.c (Fwrite_region): Move choose_write_coding_system to
20102 after build_annotations.
20103
20104 * syntax.c (describe_syntax): Add dummy arg.
20105 (describe_syntax_1): Update call to describe_vector.
20106
20107 * category.c (describe_category): Add dummy arg.
20108 (describe_category_1): Update call to describe_vector.
20109
20110 * keymap.c (Fdescribe_vector): Add `describer' parameter.
20111 (describe_command, describe_translation): Add dummy second param.
20112 (describe_map): Call elt_describer with two arguments.
20113 (describe_vector_princ): Add `fun' parameter.
20114 Call it instead of the hardcoded `princ'.
20115 (describe_vector): Add arg `args'.
20116 Pass it as a new second argument to elt_describer.
60a653f1 20117
048addec 20118 * keymap.h (describe_vector): Update prototype.
60a653f1 20119
048addec
JD
20120 * frame.c: Don't include keymap.h any more.
20121 (keys_of_frame): Remove.
60a653f1 20122
048addec 20123 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 20124
048addec 20125 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 20126
048addec 201272001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 20128
048addec
JD
20129 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
20130 if defined, 0 otherwise.
20131 (MAP_FAILED): Define if not defined and use it to test mmap failure.
20132 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 20133
048addec 201342001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 20135
048addec 20136 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 20137
048addec 201382001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 20139
048addec
JD
20140 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
20141 (x_draw_bar_cursor): If the background color of the glyph under
20142 the cursor equals the frame's cursor color, use the glyph's
20143 foreground color for drawing the bar cursor.
20144 (x_after_update_window_line): Clear internal border in different
20145 circumstances.
20146 (w32_set_vertical_scroll_bar): Check for width and height > 0.
20147 (w32_draw_relief_rect): Correct relief by 1 pixel.
20148 (x_set_glyph_string_background_width):
20149 Set extends_to_end_of_line_p if the row's fill_line_p is set and
20150 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
20151 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
20152 if cursor_in_non_selected_windows is false.
20153 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
20154 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
20155 Notice if cursor gets overwritten.
20156 (notice_overwritten_cursor): Renamed from
20157 note_overwritten_text_cursor. Rewritten to take glyph widths
20158 into account, and to take X positions as parameters.
20159 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20160 around call to x_draw_glyphs.
20161 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20162 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20163 color to use for image glyph reliefs.
20164 (x_draw_image_relief): Accept zero tool_bar_button_relief.
20165 (glyph_rect): Remove unused variable `area'.
60a653f1 20166
048addec
JD
20167 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
20168 some items.
20169 (x_set_internal_border_width): Set frame garbaged when window
20170 doesn't exist yet.
20171 (Fx_create_frame): Accept zero tool_bar_button_relief.
20172 (x_clear_image_1, four_corners_best, image_background)
20173 (image_background_transparent): New functions.
20174 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
20175 (gs_format): Add `:background' entry.
20176 (lookup_image): Set IMG's background color if specified.
20177 (pbm_load, xbm_load_image, png_load): Set IMG's background field
20178 when appropriate.
20179 (x_clear_image_1): Reset `background_valid' and
20180 `background_transparent_valid' fields.
20181 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20182 calculating it here. Set IMG's background_transparent field.
20183 (enum xpm_keyword_index): Add XPM_BACKGROUND.
20184 (enum png_keyword_index): Add PNG_BACKGROUND.
20185 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20186 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20187 (enum gif_keyword_index): Add GIF_BACKGROUND.
20188 (enum gs_keyword_index): Add GS_BACKGROUND.
20189 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
20190 Pre-calculate image background color where necessary.
20191 (x_create_x_image_and_pixmap, xbm_load, gs_load):
20192 Use display info's n_cbits entry for screen depth.
20193 (Fx_show_tip): Remove unused variables `buffer', `top',
20194 `left', `max_width' and `max_height'.
60a653f1 20195
048addec 20196 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 20197
048addec 201982001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 20199
048addec 20200 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 20201
048addec 202022001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 20203
048addec 20204 * frame.c (Fframe_live_p): Doc fix.
60a653f1 20205
048addec 202062001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 20207
048addec
JD
20208 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
20209 (message_dolog_marker3): New static variables hold three markers.
20210 (syms_of_xdisp): Initialize and staticpro them.
20211 (message_dolog): Use message_dolog_marker1..3 instead of
20212 allocating markers each time. Unchain them when done.
60a653f1 20213
048addec 202142001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20215
048addec 20216 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 20217
048addec 202182001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 20219
048addec 20220 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 20221
048addec 202222001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 20223
048addec 20224 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 20225
048addec 202262001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 20227
048addec 20228 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 20229
048addec 202302001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 20231
048addec
JD
20232 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
20233 with invalid position.
60a653f1 20234
048addec 202352001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 20236
048addec 20237 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 20238
048addec
JD
20239 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
20240 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
20241 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 20242
048addec 20243 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 20244
048addec 202452001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 20246
048addec
JD
20247 * fileio.c (build_annotations): Split off the tail.
20248 (build_annotations_2): New fun. Extracted from build_annotations.
20249 (Fwrite_region): Split the call to build_annotations into two
20250 calls to build_annotations and build_annotations_2.
077907d4 20251
048addec 202522001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 20253
048addec
JD
20254 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
20255 clear_waiting_for_input with argument.
1756e2fb 20256
048addec 20257 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 20258
048addec 20259 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 20260
048addec 20261 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 20262
048addec 20263 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 20264
048addec 202652001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 20266
048addec
JD
20267 * fileio.c (choose_write_coding_system): New fun, extracted
20268 from Fwrite_region.
20269 (Fwrite_region): Use it.
fa336b91 20270
048addec
JD
20271 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
20272 (funcall_lambda, run_hook_with_args): Make static and add prototype.
20273 (ml_apply, find_handler_clause): Add prototype.
fa336b91 20274
048addec 202752001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 20276
048addec 20277 * config.in: Add #undef HAVE_COFF_H.
fa336b91 20278
048addec
JD
20279 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
20280 Required for ISC 4.1.
fa336b91 20281
048addec 202822001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 20283
52eb0373 20284 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 20285 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 20286
048addec 202872001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 20288
048addec
JD
20289 The following changes are made to clean up the various internal
20290 references to the fringes to actually use the term `fringe' for
20291 them. Previously, they were called `flags areas', `bitmap areas',
20292 `left/right side of windows', or implicitly as `flags' or
20293 `bitmaps':
fa336b91 20294
048addec 20295 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 20296 Comments fixed. Use renamed symbols.
06e8f738 20297
f63fd14e 20298 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 20299
048addec
JD
20300 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
20301 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
20302 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 20303
048addec 20304 * msdos.c: Comment fix.
9ce647f4 20305
048addec 20306 * w32fns.c: Use renamed symbols.
9b784ab8 20307
f63fd14e 20308 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
20309 (fringe_bitmap_type): Renamed from bitmap_type.
20310 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20311 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
20312 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 20313
f63fd14e 20314 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
20315 (fringes_extra): Renamed from flags_areas_extra.
20316 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20317 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20318 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20319 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20320 (FRAME_X_LEFT_FRINGE_WIDTH):
20321 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20322 (FRAME_X_RIGHT_FRINGE_WIDTH):
20323 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 20324
048addec 20325 * widget.c: Use renamed symbols.
9f7e52b4 20326
f63fd14e 20327 * window.c: Comment fixes. Use renamed symbols.
048addec 20328 (coordinates-in-window-p): Doc fix.
fa336b91 20329
f63fd14e 20330 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 20331
048addec 20332 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 20333
048addec 20334 * xfns.c: Use renamed symbols.
89512fcd 20335
f63fd14e 20336 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
20337 (fringe_bitmap_type): Renamed from bitmap_type.
20338 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
20339 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
20340 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 20341
f63fd14e 20342 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
20343 (fringes_extra): Renamed from flags_areas_extra.
20344 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
20345 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
20346 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
20347 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
20348 (FRAME_X_LEFT_FRINGE_WIDTH):
20349 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
20350 (FRAME_X_RIGHT_FRINGE_WIDTH):
20351 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
20352
203532001-11-15 Jason Rumney <jasonr@gnu.org>
20354
20355 * w32menu.c (add-menu-item): Make help_echo and radio buttons
20356 work for most menu items. From David Ponce
20357 <david.ponce@wanadoo.fr>.
20358
203592001-11-15 Gerd Moellmann <gerd@gnu.org>
20360
20361 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
20362 Some x_set_* function expect to be called even if old and new
20363 value are equal.
20364
20365 * xdisp.c (build_desired_tool_bar_string): Accept zero
20366 tool_bar_button_relief.
20367
20368 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
20369
20370 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
20371
20372 * xterm.c (x_draw_bar_cursor): If the background color of the
20373 glyph under the cursor equals the frame's cursor color, use
20374 the glyph's foreground color for drawing the bar cursor.
20375
20376 * dispnew.c (direct_output_forward_char): Fix character/byte
20377 position comparison.
7d18891d 20378
048addec 203792001-11-15 Miles Bader <miles@gnu.org>
d2936d21 20380
048addec
JD
20381 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
20382 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
20383 Update arguments to find_field.
20384 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
20385 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
20386 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
20387 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 20388
048addec 203892001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 20390
048addec 20391 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 20392
048addec
JD
20393 * dispextern.h (image_background, image_background_transparent):
20394 Conditionalize on HAVE_X_WINDOWS.
7d18891d 20395
048addec 203962001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 20397
048addec 20398 * print.c (Fprin1_to_string): Doc fix.
7d18891d 20399
048addec 20400 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 20401
048addec 20402 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 20403
048addec 20404 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 20405
048addec 20406 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 20407
048addec 20408 * eval.c (syms_of_eval): Doc fix.
7d18891d 20409
048addec 20410 * coding.c (syms_of_coding): Doc fix.
7d18891d 20411
048addec 20412 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 20413
048addec 20414 * dispnew.c (syms_of_display): Doc fix.
9474c847 20415
048addec 20416 * category.c (Fget_unused_category): Doc fix.
9474c847 20417
048addec 20418 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 20419
048addec 204202001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 20421
048addec 20422 * print.c (prin1, print): Doc fix.
e3059a5d 20423
048addec 204242001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 20425
048addec
JD
20426 * fontset.h: Remove declarations of variables
20427 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 20428
048addec
JD
20429 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
20430 `Vclip_large_size_font'.
eae936e2 20431
048addec 204322001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 20433
048addec 20434 * w32fns.c: Doc fix.
ddb67bdc 20435
048addec 204362001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 20437
048addec 20438 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 20439
048addec 20440 * fns.c: Doc fix.
6e1b91d7 20441
048addec 20442 * emacs.c: Doc fix.
1c1d3d69 20443
048addec 20444 * coding.c: Doc fix.
1c1d3d69 20445
048addec
JD
20446 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
20447 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
20448 `new style' [w/`doc:' keyword].
b6f4c7ba 20449
048addec 204502001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 20451
048addec
JD
20452 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
20453 LeaveNotify events. Only FocusIn and FocusOut do that now.
20454 (x_display_and_set_cursor): Do display hollow cursors in active
20455 minibuffer windows when they are not selected.
b6f4c7ba 20456
048addec 204572001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 20458
048addec 20459 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
20460 * w32term.c: Change doc-string comments to `new style'
20461 [w/`doc:' keyword]. Doc fixes.
a89f435d 20462
048addec
JD
20463 * w32fns.c: Don't define max.
20464 (Fx_open_connection): Only execute once.
a4cd0cd7 20465
048addec 204662001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 20467
048addec
JD
20468 * ccl.c: Change macros to use do-while block instead of if-else.
20469 Use braces to follow GNU Coding Standards.
eafb659a 20470
048addec 204712001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 20472
048addec 20473 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 20474
048addec 20475 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 20476
048addec
JD
20477 * insdel.c (replace_range): Use adjust_markers_for_replace
20478 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 20479
78819ebb 20480 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 20481
048addec
JD
20482 * textprop.c (set_text_properties_1): New subroutine
20483 broken out of set_text_properties.
20484 (set_text_properties): Use set_text_properties_1.
91823618 20485
048addec
JD
20486 * intervals.c (graft_intervals_into_buffer):
20487 Use set_text_properties_1 to clear out properties.
91823618 20488
048addec
JD
20489 * search.c (Freplace_match): Use replace_range to insert
20490 and delete. Don't request property inheritance from
20491 surrounding text.
86928dfb 20492
048addec 204932001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 20494
048addec 20495 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 20496 vertical fonts. Allow them if face name is explicitly specified.
048addec 20497 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 20498
048addec 204992001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 20500
048addec
JD
20501 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
20502 instead of malloc/free.
a78e0303 20503
048addec 205042001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 20505
048addec
JD
20506 * xfaces.c (merge_face_vectors): Use braces to follow GNU
20507 Coding Standards.
20508 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 20509
048addec 20510 * buffer.c (Fbury_buffer): Likewise.
0c99b139 20511
048addec 20512 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 20513
048addec
JD
20514 * coding.c (encode_coding): Use precomputed value of `src'.
20515 (encode_coding): Remove unused variable `src_end'.
20516 (code_convert_region): Remove unused variables `count'.
830ddd77 20517
048addec 205182001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 20519
048addec
JD
20520 * w32term.c (x_display_and_set_cursor): Do not move system caret
20521 if cursor_glyph is NULL.
55c6d645 20522
048addec 205232001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 20524
048addec 20525 * keymap.c (access_keymap): Fix compilation error.
5de38842 20526
048addec 205272001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 20528
048addec 20529 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 20530
048addec 205312001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 20532
048addec
JD
20533 * intervals.c (graft_intervals_into_buffer):
20534 Remove #ifdef'd-out code.
20535 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 20536
048addec
JD
20537 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
20538 code (eval-current-buffer).
20539 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 20540
048addec 205412001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 20542
048addec 20543 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 20544
048addec 205452001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 20546
048addec 20547 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 20548
048addec
JD
20549 * keyboard.c (make_lispy_event): Check integerness and fix
20550 Lisp_Object/int mixup.
17893c65 20551
048addec 205522001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 20553
048addec 20554 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 20555
048addec
JD
20556 * fontset.c (fontset_font_pattern): Remove unused variable
20557 `family_registry'.
d5360cc7 20558
048addec 20559 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 20560
048addec 205612001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 20562
048addec 20563 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 20564
048addec
JD
20565 * buffer.c (Fkill_buffer): Don't delete auto save file
20566 if buffer is modified.
d9d54213 20567
048addec 205682001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 20569
048addec
JD
20570 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
20571 CHECK_NUMBER_CDR.
b116830b 20572
048addec 205732001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 20574
048addec 20575 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 20576
048addec 205772001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 20578
048addec 20579 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 20580
048addec 205812001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 20582
048addec 20583 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 20584
048addec 205852001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 20586
048addec
JD
20587 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
20588 the program image directly.
982f6c7e 20589
048addec 205902001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 20591
048addec 20592 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 20593
048addec 205942001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 20595
048addec
JD
20596 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
20597 and CHECK_BUFFER.
d31053f9 20598
048addec
JD
20599 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
20600 (record_char): Likewise.
d31053f9 20601
048addec
JD
20602 * keyboard.c (make_lispy_event): Don't insist a drag event must
20603 move to a different buffer position. Instead, check for moving at
20604 least double_click_fuzz.
982f6c7e 20605
048addec 20606 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 20607
048addec 20608 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 20609
048addec
JD
20610 * indent.c (current_column_1, Fmove_to_column): Separate the code
20611 for display-table glyphs from the code for buffer text, to fix
20612 bugs in the former.
830047fd 20613
048addec 206142001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 20615
048addec
JD
20616 * buffer.c (Fbuffer_local_value): New function.
20617 (syms_of_buffer): Defsubr it.
2df5238c 20618
048addec
JD
20619 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
20620 value of `cursor-in-non-selected-windows'.
4e397688 20621
048addec
JD
20622 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
20623 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
20624 (syms_of_xdisp): Initialize it.
48b0f3ae 20625
048addec 206262001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 20627
048addec 20628 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 20629
048addec
JD
20630 * coding.c: Change doc-string comments to `new style' [w/`doc:'
20631 keyword].
3ecaf7e5 20632
048addec
JD
20633 * eval.c (top_level_value, top_level_set): Remove commented and
20634 #ifdef'd-out code.
20635 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 20636
048addec 206372001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 20638
048addec 20639 * xfns.c: Include unistd.h, if it exists.
8db2e33b 20640
048addec 20641 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 20642
048addec 20643 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 20644
048addec 206452001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 20646
048addec
JD
20647 * lisp.h (CHECK_STRING_CAR): New macro.
20648 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
20649 treating XCAR and XCDR as lvalues.
20650 (openp): Use CHECK_STRING_CAR.
20651 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 20652
048addec 206532001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 20654
048addec
JD
20655 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
20656 (SIGMASKTYPE): Define.
1b1acc13 20657
048addec 20658 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 20659
048addec 206602001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 20661
048addec
JD
20662 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
20663 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
20664 Fix typos in comments.
6cb16f95 20665
048addec
JD
20666 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
20667 and #ifdef'd-out code.
20668 Fix and reindent comments.
6cb16f95 20669
048addec 20670 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 20671
048addec
JD
20672 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
20673 argument `i' in macros.
6cb16f95 20674
048addec
JD
20675 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
20676 `i' in macros.
7e9d3c2f 20677
048addec
JD
20678 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
20679 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
20680 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
20681 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
20682 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
20683 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
20684 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
20685 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
20686 in macros.
7e9d3c2f 20687
048addec
JD
20688 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
20689 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
20690 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
20691 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
20692 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
20693 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
20694 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
20695 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
20696 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
20697 (remove unused second argument).
7e9d3c2f 20698
048addec 206992001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20700
048addec
JD
20701 * syntax.c (describe_syntax): New wrapper.
20702 (Finternal_describe_syntax_value): Rename from describe_syntax.
20703 Don't insert space at front and \n at the end.
20704 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 20705
048addec
JD
20706 * regex.c (re_wctype): Try to fix some warnings.
20707 (regcomp, regexec): Don't forget the __restrict.
9ba48103 20708
048addec 207092001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 20710
048addec 20711 * textprop.c (Fget_char_property): Doc fix.
9ba48103 20712
048addec 207132001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 20714
048addec 20715 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 20716
048addec 20717 * data.c (Fsetq_default): Ditto.
c22e59e1 20718
048addec 20719 * callint.c (Finteractive): Ditto.
9271ed2c 20720
048addec 207212001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 20722
048addec
JD
20723 * macros.c: Don't include keymap.h any more.
20724
207252001-11-01 Richard M. Stallman <rms@gnu.org>
20726
20727 * data.c (Fmake_local_variable): Doc fix.
20728
20729 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
20730 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 20731
048addec 20732 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
20733 bindings along with or instead of the buffer local map.
20734 Make the overriding maps override what they should.
20735
f00691a3 207362001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
20737
20738 * window.c (grow_mini_window): Fix typo in comment.
20739
27188d11
GM
207402001-11-01 Gerd Moellmann <gerd@gnu.org>
20741
7b49b9d2
GM
20742 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
20743 (XTset_vertical_scroll_bar): Likewise.
20744
43f7c3ea
GM
20745 * xfns.c (x_build_heuristic_mask): Use four_corners_best
20746 instead of IMAGE_BACKGROUND.
c22e59e1 20747
b350c2e5
GM
20748 * xfns.c (four_corners_best): Reindent.
20749
c22e59e1 20750 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
20751 Handle :box so that it is possible to specify sexprs.
20752
bf00d461
EZ
207532001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
20754
20755 * s/hpux11.h: New file.
20756
f00691a3 207572001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 20758
2b209b97
PJ
20759 * emacs.c (USAGE1): Show command line option --no-window-system
20760 instead of --no-windows in usage.
20761 (standard_args): Rename --no-windows to --no-window-system.
20762 (bug_reporting_address): Follow Emacs coding conventions.
20763
9dbc9081
PJ
20764 * eval.c (Fcommandp): Doc fix.
20765 Change doc-string comments to `new style' [w/`doc:' keyword].
20766
4e10df59
PJ
20767 * frame.c (Fframe_live_p): Doc fix.
20768
20769 * buffer.c (selective-display-ellipses): Doc fix.
20770
dd387b25
GM
207712001-10-31 Gerd Moellmann <gerd@gnu.org>
20772
fe957e65
GM
20773 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
20774
dd387b25
GM
20775 * xfaces.c (realize_x_face): If C is not a single-byte character,
20776 set the face's colors_copied_bitwise_p instead of the defaulted_p
20777 members which have a different meaning.
20778 (free_face_colors): Do nothing for a face whose colors have been
20779 copied bitwise.
20780
c22e59e1 20781 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 20782
f00691a3 207832001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 20784
687784e8
PJ
20785 * marker.c, mocklisp.c: Change doc-string comments to `new style'
20786 [w/`doc:' keyword].
2e1280f8 20787
b9d9a9b9
GM
207882001-10-31 Gerd Moellmann <gerd@gnu.org>
20789
20790 * fns.c (require_unwind): Return Lisp_Object.
20791
f00691a3 207922001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 20793
fa1361cb
PJ
20794 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
20795 (last-input-char): Revert doc-string to be the same as the
20796 doc-string of `last-input-event'.
20797
6c465a15 20798 * xdisp.c: Fix typos in comments.
48400103 20799
eafa3196
GM
208002001-10-31 Gerd Moellmann <gerd@gnu.org>
20801
20802 * window.c (grow_mini_window): Handle case that the root
20803 window is already smaller than the nominal mininum height.
20804
747d3f2a
SM
208052001-10-30 Stefan Monnier <monnier@cs.yale.edu>
20806
bf9bb76f
SM
20807 * emacs.c (main): Don't call keys_of_macros any more.
20808
20809 * lisp.h (keys_of_macros): Remove.
20810
20811 * macros.c (keys_of_macros): Remove.
20812
747d3f2a
SM
20813 * xfaces.c (Fface_attribute_relative_p): Declare args.
20814
5e905a57
JR
208152001-10-30 Jason Rumney <jasonr@gnu.org>
20816
20817 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
20818 (enum_font_cb2): Ignore fonts with vertical orientation.
20819
3a426197
RS
208202001-10-30 Richard M. Stallman <rms@gnu.org>
20821
20822 * keyboard.c (Finput_pending_p): Doc fix.
20823
a742d646
GM
208242001-10-30 Gerd Moellmann <gerd@gnu.org>
20825
259cf6bc
GM
20826 * xterm.c (x_after_update_window_line): Don't run the code
20827 clearing in borders for rows whose visible height is 0.
20828
3f99f948
GM
20829 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
20830 resized_p flag is set. If not set, use the much less flickering
20831 method previously used.
20832
20833 * dispnew.c (change_frame_size_1): Set frame's resized_p.
20834
20835 * frame.h (struct frame) <resized_p>: New member.
20836
b4a3be43
GM
20837 * lread.c (to_multibyte): Ensure read_buffer is at least twice
20838 as large as the number of bytes to convert.
747d3f2a 20839
a742d646
GM
20840 * lread.c (to_multibyte): New function.
20841 (read1): Use it.
20842
cacbb9e9
EZ
208432001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
20844
20845 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
20846
99cb6b2f
GM
208472001-10-30 Gerd Moellmann <gerd@gnu.org>
20848
327f42ee 20849 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
20850 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
20851 if the row's fill_line_p is set and drawing the last glyph with
20852 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 20853
99cb6b2f
GM
20854 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
20855
8e8223e2
SM
208562001-10-29 Stefan Monnier <monnier@cs.yale.edu>
20857
20858 * xmenu.c: Include coding.h and charset.h.
20859 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
20860 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
20861 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
20862 Explicitly set wv->help. Use `TRUE' rather than `True'.
20863 (menu_help_callback): Use empty_string.
20864
20865 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
20866 (Fx_popup_dialog): Explicitly init f.
20867 (w32_menu_display_help): Use empty_string.
20868
4d083a8f
RS
208692001-10-29 Richard M. Stallman <rms@gnu.org>
20870
b2304472
RS
20871 * fns.c (Frequire): Detect recursive try to require the same
20872 feature 3 or more levels deep, and get error.
20873 (require_unwind): New subroutine.
20874 (require_nesting_list): New variable.
20875 (syms_of_fns): Init and staticpro it.
20876
4d083a8f
RS
20877 * print.c (print_object): Clarify indication of insertion type.
20878
2fe41216
EZ
208792001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
20880
90480000
EZ
20881 * coding.c (syms_of_coding): Document that locale-coding-system is
20882 used for decoding input on X.
20883
2fe41216
EZ
20884 * window.c (Fscroll_left, Fscroll_right): Doc fix.
20885
f00691a3 208862001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
20887
20888 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
20889 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
20890
60ebcfe8
GM
208912001-10-29 Gerd Moellmann <gerd@gnu.org>
20892
9a7bdceb
GM
20893 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
20894 use NO_CURSOR if cursor_in_non_selected_windows is false.
20895
3f08fcd2
GM
20896 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
20897 the slant attribute if FRAME is t.
20898
0ccfdad2
GM
20899 * xfns.c (x_set_internal_border_width): Set frame garbaged
20900 when X window doesn't exist yet.
20901
ef253080
GM
20902 * xterm.c (x_after_update_window_line): Clear internal border
20903 in different circumstances.
b116830b 20904
60ebcfe8
GM
20905 * xterm.c (XTread_socket) <KeyPress>: Don't use
20906 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
20907 <handa@etl.go.jp>.
20908
73d25f9c
EZ
209092001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
20910
20911 * m/ibms390.h: New file. From Adam Thornton
20912 <athornton@sinenomine.net>.
20913
cac1daf0
GM
209142001-10-28 Gerd Moellmann <gerd@gnu.org>
20915
053b3256 20916 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 20917
cac1daf0
GM
20918 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
20919 a loop counter.
20920
f00691a3 209212001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 20922
f9711de4 20923 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 20924
4707d2d0
PJ
20925 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
20926 keyword].
20927 Fix typos in comments.
b116830b 20928
d883731c
PJ
20929 * emacs.c (bug_reporting_address): New function.
20930 Use it when displaying usage message.
20931
04012254
PJ
20932 * minibuf.c (read_minibuf): Remove unused external declaration of
20933 variable `Qread_only'.
20934
13b1a09c
PJ
20935 * keymap.c (access_keymap): Remove unused variable `charset'.
20936
5bbf4378
MB
209372001-10-28 Miles Bader <miles@gnu.org>
20938
20939 * xfaces.c (merge_face_heights): Handle TO being relative as well.
20940 Remove #ifdef'd-out code.
20941 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
20942 (syms_of_xfaces): Initialize them.
20943
1ce1e4ee
JR
209442001-10-27 Jason Rumney <jasonr@gnu.org>
20945
20946 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
20947 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
20948 position using the system caret.
20949
20950 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
20951 (w32_system_caret_height, w32_system_caret_x)
20952 (w32_system_caret_y): New variables for tracking system caret.
20953 (w32_initialize): Initialize them.
c2d53558 20954 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 20955
c2d53558
SM
20956 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
20957 New messages types.
1ce1e4ee
JR
20958
20959 * w32term.c (note_mouse_highlight): Clear old help_echo.
20960
f00691a3 209612001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 20962
bb4600a4
PJ
20963 * xterm.c: Fix typo in a comment.
20964
7db35a48
PJ
20965 * emacs.c: Fix typos in comments.
20966 Remove unnecessary spaces.
20967 Change doc-string comments to `new style' [w/`doc:' keyword].
20968 (USAGE2): Fix typos in usage string.
20969
a7248e4f
PJ
20970 * xterm.c: Fix typo in a comment.
20971
52eb0373 20972 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
20973 emacs.c.
20974
62725a92
GM
209752001-10-27 Gerd Moellmann <gerd@gnu.org>
20976
798dbe1f 20977 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 20978 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
20979 farther backward when target_y was not reached.
20980
62725a92
GM
20981 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
20982 Display errno only if non-zero.
20983 (sound_warning): New function.
20984 (vox_configure): Don't treat failing to set sample rate as error.
20985 (various places): Improve error messages.
20986
d4e34d24
EZ
209872001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
20988
944e6f60
EZ
20989 * fileio.c (Faccess_file): Run the argument filename through
20990 Fexpand_file_name, before using it.
20991
d4e34d24
EZ
20992 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
20993 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
20994
38d2af0c
GM
209952001-10-26 Gerd Moellmann <gerd@gnu.org>
20996
da80a8d5
GM
20997 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
20998
38d2af0c
GM
20999 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21000 Fix clearing in the case of scroll bars on the right.
c2d53558 21001
45de4a6f 210022001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
21003
21004 * w32gui.h (XImage): Add a dummy typedef.
21005
fbd5ceb2
GM
210062001-10-26 Gerd Moellmann <gerd@gnu.org>
21007
c2d53558 21008 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 21009
b23236fb
EZ
210102001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
21011
21012 * frame.c (Fframe_parameter): Fix last change.
21013
5d991fc4
EZ
21014 * fileio.c: Revert last change (which removed old commented-out
21015 version of expand-file-name). Add a comment that explains why
21016 this old version should not be removed.
21017
879eadc3
GM
210182001-10-25 Gerd Moellmann <gerd@gnu.org>
21019
75700ff2
GM
21020 * frame.c (Fframe_parameter): Fix a bug whereby some
21021 ``artificial'' frame parameters, like `minibuffer' were not
21022 obtained by calling Fframe_parameters.
21023
dfe92a6a
GM
21024 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
21025 cursor differently.
21026
879eadc3
GM
21027 * xdisp.c (move_it_vertically_backward): Compute line height
21028 differently. Add heuristic to try to be more compatible to 20.x.
21029
e1010ebe
SM
210302001-10-25 Stefan Monnier <monnier@cs.yale.edu>
21031
d73a471b
SM
21032 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
21033
d6da5a06
GM
21034 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
21035 boolean.
e1010ebe 21036
f66bd220
MB
210372001-10-25 Miles Bader <miles@gnu.org>
21038
21039 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
21040 BG is a pointer to a structure, not a structure.
21041 (gif_format, png_format): Add missing commas.
21042
d436d538
RS
210432001-10-24 Richard M. Stallman <rms@gnu.org>
21044
21045 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 21046 (syms_of_xfaces): Defsubr it.
d436d538 21047
f00691a3 210482001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
21049
21050 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
21051 variable `area'.
21052
f00691a3 210532001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 21054
c2d53558 21055 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 21056
e2a57b34
MB
210572001-10-25 Miles Bader <miles@gnu.org>
21058
21059 * dispextern.h (struct image): Add `background',
21060 `background_valid', and `background_transparent' fields.
21061 (image_background, image_background_transparent): New declarations.
21062 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
21063 * xfns.c (image_background, image_background_transparent)
21064 (four_corners_best): New functions.
c2d53558 21065 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
21066 (gs_format): Add `:background' entry.
21067 (lookup_image): Set IMG's background color if specified.
21068 (pbm_load, xbm_load_image, png_load): Set IMG's background field
21069 when appropriate.
21070 (x_clear_image_1): Reset `background_valid' and
21071 `background_transparent_valid' fields.
21072 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21073 calculating it here. Set IMG's background_transparent field.
21074 (enum xpm_keyword_index): Add XPM_BACKGROUND.
21075 (enum png_keyword_index): Add PNG_BACKGROUND.
21076 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21077 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21078 (enum gif_keyword_index): Add GIF_BACKGROUND.
21079 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 21080 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
21081 Pre-calculate image background color where necessary.
21082 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21083 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21084 color to use for image glyph reliefs.
21085
b547b6e8
GM
210862001-10-24 Gerd Moellmann <gerd@gnu.org>
21087
d9e3b8c6
GM
21088 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
21089 in full-width rows.
c2d53558 21090
b547b6e8
GM
21091 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21092 Fix clearing of area not covered by scroll bar.
21093
f00691a3 210942001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 21095
52eb0373 21096 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 21097 and `real_start'.
c2d53558 21098 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
21099 (glyph_rect): Remove unused variable `area'.
21100
76cb5e06
GM
211012001-10-24 Gerd Moellmann <gerd@gnu.org>
21102
bdbdebff 21103 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
21104
21105 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
21106 (row_containing_pos): Take additional argument DY.
21107 Treat rows ending in middle of char differently.
62e33982
GM
21108 (display_line): Handle tabs on window systems differently.
21109
21110 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
21111 with additional argument.
21112
21113 * dispextern.h (row_containing_pos): Adjust prototype.
21114
76cb5e06
GM
21115 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
21116 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
21117 (try_window_id, try_window_reusing_current_matrix)
21118 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 21119 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 21120
f00691a3 211212001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 21122
c9e60620
PJ
21123 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
21124 gnuemacs).
21125 (HAVE_BOXES): Fix typo in comment.
21126 (push_menu_pane): Fix typo in comment.
21127
52eb0373 21128 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
21129 of `Qwhen'.
21130 (single_display_prop_string_p): Remove unused local declarations
21131 of `Qwhen' and `Qmargin'.
21132 (string_buffer_position): Remove unused variable `around'.
21133 (store_frame_title): Remove unused variable `width'.
21134
15c565ac
PJ
21135 * window.c: Don't define max.
21136 (coordinates_in_window): Remove unused variable `uy'.
21137
a8818eb9
PJ
21138 * widget.c: Don't define max.
21139
996fee11
PJ
21140 * process.c: Don't define max.
21141 (create_process): Remove unused variable `buffer'.
21142
496e1a5b
GM
211432001-10-23 Gerd Moellmann <gerd@gnu.org>
21144
c2d53558 21145 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 21146
5905ae8b
EZ
211472001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
21148
21149 * xfaces.c (Finternal_set_lisp_face_attribute)
21150 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
21151 frame is on a windowed display.
21152
24db49fb
GM
211532001-10-23 Gerd Moellmann <gerd@gnu.org>
21154
c2d53558
SM
21155 * dispnew.c (sync_window_with_frame_matrix_rows):
21156 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
21157 of marginal areas.
21158
c2d53558 21159 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 21160
f0487f05
EZ
211612001-10-23 Andreas Schwab <schwab@suse.de>
21162
21163 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
21164 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
21165
f0a48a01
GM
211662001-10-23 Gerd Moellmann <gerd@gnu.org>
21167
c2d53558 21168 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
21169 REAL_END. Notice if cursor gets overwritten.
21170 (notice_overwritten_cursor): Take X positions as parameters.
21171 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21172 around call to x_draw_glyphs.
21173
f00691a3 211742001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 21175
fc11dff0
PJ
21176 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
21177 instead of C) and usage.
a50a10a0 21178
fc11dff0
PJ
21179 * editfns.c (char-to-string): Fix argument names (use CHAR instead
21180 of C) and usage.
a50a10a0
PJ
21181
21182 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
21183 `left', `max_width' and `max_height'.
21184
8738febd
GM
211852001-10-23 Gerd Moellmann <gerd@gnu.org>
21186
21187 * xdisp.c (display_line): For a tab continued to the next line,
21188 set row's ends_in_middle_of_char_p.
21189
653c329b
GM
211902001-10-22 Gerd Moellmann <gerd@gnu.org>
21191
21192 * xdisp.c (display_line): Fix computation of continuation lines
21193 width for TABs.
21194
f00691a3 211952001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 21196
7ba51063
PJ
21197 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
21198 `Qlaplace'.
21199
f958c5ac
PJ
21200 * fileio.c: Remove unused code.
21201
eb360291
MB
212022001-10-22 Miles Bader <miles@gnu.org>
21203
21204 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
21205 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
21206 Remove `DOC_STRINGS_IN_COMMENTS' cases.
21207
98515cf0
JR
212082001-10-21 Jason Rumney <jasonr@gnu.org>
21209
21210 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
21211
93026d88
EZ
212122001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
21213
21214 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
21215 (Finsert_string): Avoid the multi-line string literals warning.
21216
c9a95b79
MB
212172001-10-22 Miles Bader <miles@gnu.org>
21218
21219 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
21220 (Fdocumentation): Don't use it.
21221 (syms_of_doc): Don't initialize it.
21222
21223 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
21224 * print.c (Fwith_output_to_temp_buffer): Likewise.
21225 * window.c (Fsave_window_excursion): Likewise.
c2d53558 21226 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 21227 (Fsave_restriction): Likewise.
c2d53558
SM
21228 * eval.c (Frun_hooks, Frun_hook_with_args)
21229 (Frun_hook_with_args_until_failure)
21230 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
21231 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
21232 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
21233 (Funwind_protect, Fcondition_case): Likewise.
21234 * coding.c (Ffind_operation_coding_system): Likewise.
21235 * keyboard.c (Ftrack_mouse): Likewise.
21236
a3b10252
MB
212372001-10-21 Miles Bader <miles@gnu.org>
21238
c2d53558 21239 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
21240 (Fmake_hash_table): Add usage: string to doc string.
21241 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 21242 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
21243 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
21244 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
21245 (Fml_prefix_argument_loop): Likewise.
21246
f00691a3 212472001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 21248
c2d53558 21249 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 21250
c6f73eec
PJ
21251 * sysdep.c (init_sys_modes): Change doc-string comments to `new
21252 style' [w/`doc:' keyword].
21253
21254 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
21255 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
21256 comments to `new style' [w/`doc:' keyword].
21257
3cf3436e
JR
212582001-10-21 Jason Rumney <jasonr@gnu.org>
21259
21260 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
21261
c169b8f1
JR
21262 * w32term.c (remember_mouse_glyph): New function.
21263 (w32_mouse_position): Use it.
21264 (note_mouse_movement): If the mouse moved off the glyph, remember
21265 its new position.
c2d53558 21266
4fdd691b
JR
21267 * w32term.h (struct w32_output): Correct spelling of x_compatible.
21268 (w32_display_info): Add mouse_face_overlay.
21269
c169b8f1
JR
21270 * w32term.c (notice_overwritten_cursor): Renamed from
21271 note_overwritten_text_cursor. Rewritten to take glyph widths into
21272 account.
21273 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
21274 (fast_find_string_pos): New function.
21275 (fast_find_position): Return the correct vpos. Add parameter
21276 STOP. In the final row, stop before glyphs having STOP as object.
21277 Don't consider glyphs that are not from a buffer.
21278 (fast_find_position) [0]: Add a presumably more correct version
21279 for after 21.1.
21280 (expose_window_tree, expose_frame): Don't compute intersections here.
21281 (expose_window): Do it here instead.
21282 (expose_window_tree, expose_window, expose_line): Return 1 when
21283 overwriting mouse-face.
21284 (expose_window): If W is the window currently being updated, mark
21285 the frame garbaged.
21286 (expose_frame): If mouse-face was overwritten, redo it.
21287 (x_use_underline_position_properties): New variable.
21288 (syms_of_xterm): DEFVAR_BOOL it.
21289 (x_draw_glyph_string): Add comment to use it in future.
21290 (x_draw_glyph_string): Restore clipping after drawing box.
21291 Fix a computation of the underline position.
21292 (w32_get_glyph_string_clip_rect): Minor cleanup.
21293 (x_fill_stretch_glyph_string): Remove an assertion.
21294 (x_produce_glyphs): Don't convert multibyte characters
21295 to unibyte characters in unibyte buffers.
21296 (cursor_in_mouse_face_p): New function.
21297 (x_draw_stretch_glyph_string): Use it to choose a different GC
21298 when drawing a cursor within highlighted text. Don't draw
21299 background again if it has already been drawn.
21300 (x_draw_glyph_string_box): Don't draw a full-width
21301 box just because the glyph row's full_width_p flag is set.
21302 (x_draw_glyphs): Fix computation of rightmost x for
21303 full-width rows.
21304 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
21305 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 21306 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
21307 (x_update_window_end): Handle overwritten mouse face
21308 also for tool bar windows.
21309 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
21310 DRAW is DRAW_IMAGE_RAISED.
21311 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
21312 actually redrawn. Make the function static.
21313 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
21314 optimize away highlighting if we pass over that same overlay again.
21315 (note_mouse_highlight): Call mouse_face_overlay_overlaps
21316 to detect a case where we have to highlight a different region
21317 despite not having left the currently highlighted region.
21318 Set mouse_face_overlay in the x_display_info. Avoid changing the
21319 mouse pointer shape when show_mouse_face has already done it, or
21320 there is no need. Handle mouse-face and help-echo in strings.
21321 (glyph_rect): New function.
21322 (w32_mouse_position): Use it to raise the threshold for mouse
21323 movement event generation.
21324 (w32_initialize_display_info): Initialize the x_display_info's
21325 mouse_face_overlay.
21326 (w32_set_vertical_scroll_bar): Don't clear a zero height
21327 or width area.
21328 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
21329 a widget to zero height.
21330
3cf3436e 21331 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 21332 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
21333 equivalents in menu_items.
21334 (w32_menu_show): Don't overwrite an item's name with its key
21335 description in case the description is a multibyte string.
21336 (single_submenu): Some cleanup.
21337
21338 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
21339 (postprocess_image): New function.
21340 (lookup_image): Call it for all image types except PostScript.
21341 (x_kill_gs_process): Call postprocess_image.
21342 (tiff_error_handler, tiff_warning_handler): New functions.
21343 (tiff_load): Install them as handlers.
21344 (x_kill_gs_process): Recognize if someone has cleared the image
21345 cache under us.
21346 (valid_image_p): Protect better against invalid image
21347 specifications. Previous code could signal an error.
21348 (Fx_hide_tip, Fshow_tip): Doc fix.
21349 (Fv_max_tooltip_size): New variable.
21350 (syns_of_xfns): DEFVAR_LISP it.
21351 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 21352 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
21353 window_width. Use a maximum tooltip size specified by
21354 Vx_max_tooltip_size, if that has valid contents.
21355 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
21356 Make sure the tooltip is completely visible.
21357 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
21358 (Fx_create_frame): Adjust the frame's height for presence
21359 of the tool bar before calling x_figure_window_size.
21360 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
21361 when the window gets smaller.
21362 (x_set_foreground_color): Set frame's cursor_pixel.
21363 (x_set_foreground_color, x_set_background_color): Cleaned up.
21364 (x_set_font): Handle case of x_new_fontset returning the same name
21365 as before, although there was a change in fontsets.
21366
386ca361
MB
213672001-10-21 Miles Bader <miles@gnu.org>
21368
c2d53558 21369 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
21370 (Flogxor): Add usage: string to doc string.
21371 * charset.c (Fstring): Likewise.
21372 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
21373 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
21374
f00691a3 213752001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 21376
03be2694
PJ
21377 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
21378
21379 * alloc.c: Reindent DEFUNs with doc: keywords.
21380
21381 * abbrev.c (Finsert_abbrev_table_description): Reindent.
21382
14ff1ee0
PJ
21383 * frame.c: Change doc-string comments to `new style' [w/`doc:'
21384 keyword].
21385
2f147815 21386See ChangeLog.9 for earlier changes.
6922b018
KH
21387
21388;; Local Variables:
49b3bd82 21389;; coding: iso-2022-7bit
6922b018 21390;; End:
2a34a036 21391
2f147815 21392 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
21393 Copying and distribution of this file, with or without modification,
21394 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
21395
21396;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4