]> code.delx.au - gnu-emacs/blob - src/ChangeLog
*** empty log message ***
[gnu-emacs] / src / ChangeLog
1 2005-04-09 Kim F. Storm <storm@cua.dk>
2
3 * lread.c (readevalloop): Add args START and END as region in
4 current buffer to read. Callers changed.
5 When specified, narrow to this region only when reading,
6 not during eval. Track next point to read from during eval.
7 Also restore point to "real" buffer position before eval.
8 (Feval_region): Don't save excursion and restriction here, and
9 don't narrow to region. Just pass region to readevalloop.
10 Note: Point is now preserved even when PRINTFLAG is nil.
11
12 2005-04-08 Kim F. Storm <storm@cua.dk>
13
14 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
15
16 2005-04-06 Kim F. Storm <storm@cua.dk>
17
18 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
19
20 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21
22 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
23 (Fmac_get_preference): Doc fix.
24
25 * macfns.c (Fx_create_frame, x_create_tip_frame): Add
26 "fontset-mac" to fallback font/fontsets.
27
28 2005-04-04 Kim F. Storm <storm@cua.dk>
29
30 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
31
32 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
33 Call it again after autoload.
34
35 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
36
37 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
38 mallopt.
39
40 * ralloc.c (r_alloc_init): Ditto.
41
42 2005-04-01 Kenichi Handa <handa@m17n.org>
43
44 * lisp.h (Vascii_upcase_table, Vascii_canon_table,
45 Vascii_eqv_table): Extern them.
46
47 * casetab.c (set_case_table): If standard is nonzero, setup
48 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
49
50 * search.c (looking_at_1): Use current_buffer->case_canon_table,
51 not DOWNCASE_TABLE.
52 (string_match_1): Likewise.
53 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
54 Vascii_downcase_table.
55 (fast_string_match_ignore_case): Likewise.
56 (search_buffer): Fix checking of boyer-moore usability.
57 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance. No
58 need of tranlating characters in PAT. Fix calculation of
59 simple_translate.
60
61 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
62
63 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
64 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
65 Use XtNtopShadowPixel and XtNbottomShadowPixel.
66 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
67 really work and that breaks with some versions of Xaw3d.
68
69 2005-03-31 Kenichi Handa <handa@m17n.org>
70
71 * coding.c (syms_of_coding): Fix previous change.
72
73 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
74
75 * fileio.c (search_embedded_absfilename): Fix last change.
76
77 2005-03-25 Kenichi Handa <handa@m17n.org>
78
79 * coding.c (syms_of_coding): Suggest to use set-coding-category in
80 the docstring of coding-category-list.
81
82 2005-03-31 Kim F. Storm <storm@cua.dk>
83
84 * keyboard.c (Qmouse_fixup_help_message): New var.
85 (syms_of_keyboard): Intern and staticpro it.
86 (show_help_echo): Apply mouse-fixup-help-message to help string.
87
88 2005-03-30 Kim F. Storm <storm@cua.dk>
89
90 * xdisp.c (display_line): Allow multiple overlay arrows in window.
91
92 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
93
94 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
95 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
96 (Ffile_name_absolute_p): Use it.
97 (search_embedded_absfilename): New fun, extracted from
98 Fsubstitute_in_file_name. Use file_name_absolute_p.
99 Free the pw data after use.
100 (Fsubstitute_in_file_name): Use it.
101 After cutting a prefix, re-check file-name-handler.
102
103 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
104
105 * w32term.h (x_output): Add focus_state.
106
107 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
108 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
109
110 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
111
112 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
113 Use Fexit_minibuffer.
114 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
115
116 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
117
118 * dired.c (Ffile_attributes): Add a missing gcpro.
119
120 * alloc.c (make_number): The arg can be bigger than `int'.
121 * lisp.h (make_number): Make prototype more precise.
122
123 * process.c, dired.c (Vfile_name_coding_system)
124 (Vdefault_file_name_coding_system):
125 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
126 (Vdefault_file_name_coding_system): Remove unused declarations.
127
128 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
129
130 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
131 if it failed to pop up (Gnome "show pointer on ctrl" option makes
132 menus fail to pop up).
133
134 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
135
136 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
137 Just prepend a backslash without replacing the NBSP by an SPC.
138
139 2005-03-22 Kim F. Storm <storm@cua.dk>
140
141 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
142 * dispextern.h (lookup_derived_face): Fix prototype.
143 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
144
145 * xdisp.c (handle_single_display_spec): Derive left-fringe and
146 right-fringe face from fringe face.
147
148 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
149 Derive face from fringe face.
150
151 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
152
153 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
154
155 2005-03-22 David Kastrup <dak@gnu.org>
156
157 * textprop.c (Fnext_char_property_change)
158 (Fprevious_char_property_change): Allow marker as limit.
159 (Fnext_single_char_property_change)
160 (Fprevious_single_char_property_change): Check that limit is a
161 number in strings.
162 (Fnext_single_char_property_change): Coerce position to integer.
163 (Fprevious_single_char_property_change): Same here.
164
165 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
166
167 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
168
169 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
170
171 * frame.c (Fignore_event): Remove.
172 (syms_of_frame): Don't defsubr it.
173
174 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
175 redundant `ignore-event'.
176
177 2005-03-19 Eli Zaretskii <eliz@gnu.org>
178
179 * unexec.c (write_segment, unexec): Move these functions to avoid
180 forward references (which cause errors with "gcc -gcoff").
181
182 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
183
184 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
185 that it doesn't become "tooltip". The specbind is enough.
186
187 * xrdb.c (x_load_resources): Use different char *helv when I18N
188 is present.
189
190 2005-03-17 Kenichi Handa <handa@m17n.org>
191
192 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
193
194 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
195
196 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
197 Use xic_create_fontsetname even for non-Motif menus.
198 Don't forget to free the fontsetname.
199
200 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
201
202 2005-03-17 Richard M. Stallman <rms@gnu.org>
203
204 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
205
206 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
207 (Fmake_symbolic_link): Use G to read the new file name.
208
209 * callint.c (Finteractive): Document G option.
210 (Fcall_interactively): Implement G option.
211
212 * buffer.c (buffer_lisp_local_variables): New function,
213 broken out from Fbuffer_local_variables.
214 (clone_per_buffer_values): Use buffer_lisp_local_variables.
215
216 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
217
218 * xfns.c (xic_create_fontsetname): Add `motif' argument.
219 Always return a freshly allocated string.
220 (xic_create_xfontset): Adjust call.
221
222 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
223 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
224 (dump_realized_face): Fix warning.
225
226 * emacs.c (Fkill_emacs): YAILOM.
227
228 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
229
230 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
231
232 * mac.c (HASHKEY_TERMINAL): Remove.
233 (HASHKEY_MAX_NID): New macro.
234 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
235 argument.
236 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
237 (xrm_create_database, xrm_q_put_resource)
238 (xrm_merge_string_database, xrm_q_get_resource_1)
239 (xrm_q_get_resource): Change resource database representation so
240 that it may not use multiple hash tables for a single database.
241 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
242
243 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
244
245 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
246
247 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
248 locale-coding-system, as was already done for WINDOWSNT.
249
250 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
251 translation for chars in the 0-255 range.
252
253 2005-03-16 Lute Kamstra <lute@gnu.org>
254
255 * floatfns.c (Ffloor): Doc fix.
256
257 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
258
259 * mac.c: Include macterm.h instead of directly including Carbon.h.
260 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
261 (Qarray, Qdictionary): New variables.
262 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
263 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
264 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
265 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
266 in callback for CFDictionaryApplyFunction.
267 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
268 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
269 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
270 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
271 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
272 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
273 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
274 (skip_white_space, parse_comment, parse_include_file)
275 (parse_binding, parse_component, parse_resource_name, parse_value)
276 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
277 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
278 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
279 New functions.
280
281 * macfns.c (mac_get_rdb_resource): Remove function.
282 (x_get_string_resource): Use xrm_get_resource.
283
284 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
285
286 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
287 name_list_element.
288 (mac_make_rdb): Create resource database from preferences and
289 argument string.
290 (mac_term_init): Save resource database to cddr part of
291 name_list_element.
292
293 * macterm.h (xrm_merge_string_database, xrm_get_resource)
294 (xrm_get_preference_database): Add externs.
295 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
296 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
297 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
298
299 * process.c (init_process): Change `#ifdef DARWIN' to `#if
300 defined (DARWIN) || defined (MAC_OSX)'
301
302 * s/darwin.h (DARWIN): Don't define.
303
304 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
305
306 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
307 Remove unused variables.
308 (syms_of_macfns): Don't initialize them. Likewise for
309 Qface_set_after_frame_default. Defvar and initialize
310 Vx_window_horizontal_drag_shape.
311 (x_set_mouse_color): Change mouse pointer shape.
312 (mac_window) [!MAC_OSX]: Create root control.
313 (Fx_create_frame): Remove initializations of mouse pointer shapes.
314 (hourglass_started): New function (from xfns.c).
315 (start_hourglass, cancel_hourglass): Put function body in #ifdef
316 MAC_OSX.
317 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
318 indicator for each non-tooltip frame if needed, and show it.
319 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
320
321 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
322 Controls.h. Use ThemeCursor instead of CursHandle.
323
324 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
325 Remove functions and declarations.
326 (mac_set_colors): Take argument for saving background color.
327 All callers changed.
328 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
329 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
330 background color.
331 (x_update_end, mac_do_track_drag): Don't reset background color.
332 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
333 Use SetThemeCursor.
334 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
335 indicator control to the upper-right corner of the window.
336 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
337 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
338 (do_window_update): Update controls after updating content area.
339 (mac_handle_window_event): Remove unused extern.
340 (XTread_socket): Check both control handle and control part code
341 to determine whether a scroll bar is clicked. Activate/deactivate
342 root control instead of contained scroll bar controls.
343 (make_mac_terminal_frame): Use ThemeCursor constants.
344
345 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
346 New member hourglass_control.
347 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
348 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
349
350 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
351
352 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
353 coincides with that in Apple X11 except `clear', `enter' on
354 laptops, and fn + `enter' on laptops.
355
356 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
357
358 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
359 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
360 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
361
362 * xfns.c (xic_defaut_fontset): New constant.
363 (xic_create_fontsetname): New function.
364 Extracted from create_frame_xic. Try to generate a slightly
365 better fontset.
366 (xic_create_xfontset): Use it.
367 (create_frame_xic): Simplify.
368
369 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
370
371 * fileio.c (Fmake_symbolic_link): Fix last change.
372
373 2005-03-11 Richard M. Stallman <rms@gnu.org>
374
375 * fileio.c (Frename_file, Fadd_name_to_file)
376 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
377 expand the basename of FILE relative to it.
378
379 2005-03-11 Kenichi Handa <handa@m17n.org>
380
381 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
382 before calling setup_coding_system so that autoloading of a coding
383 system work.
384
385 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
386
387 * xfns.c (hourglass_started): New function.
388
389 * dispextern.h: Declare hourglass_started.
390
391 * keyboard.c (Fexecute_extended_command): Restart hourglass
392 after call to Fcompleting_read if already started.
393
394 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
395 GTK main loop is entered in xterm.c, thus doing the redraw.
396
397 2005-03-10 Kim F. Storm <storm@cua.dk>
398
399 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
400
401 2005-03-08 Kenichi Handa <handa@m17n.org>
402
403 * frame.c (x_set_font): Call set_default_ascii_font if an
404 available font is found.
405
406 * fontset.c (set_default_ascii_font): New function.
407 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
408
409 * fontset.h (set_default_ascii_font): Extern it.
410
411 2005-03-07 Kim F. Storm <storm@cua.dk>
412
413 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
414 (clear_image_cache_count): New var.
415 (redisplay_internal): Don't clear face and image caches in the
416 middle of redisplay; do it afterwards.
417
418 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
419
420 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
421 is valid. If not, clear phys_cursor_on_p and return.
422
423 2005-03-07 Andreas Schwab <schwab@suse.de>
424
425 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
426
427 2005-03-06 Richard M. Stallman <rms@gnu.org>
428
429 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
430
431 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
432 (Feval, Ffuncall): Use CHECK_CONS_LIST.
433
434 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
435
436 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
437 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
438
439 2005-03-05 Juri Linkov <juri@jurta.org>
440
441 * emacs.c (USAGE1): Replace Info node name "command arguments"
442 with "emacs invocation".
443 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
444 allow arguments `--color' and `MODE' to be separated by space.
445 Add --no-blinking-cursor, -nbc.
446 (standard_args): Add -nbc, --no-blinking-cursor.
447
448 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
449
450 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
451 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
452 * fileio.c (Fexpand_file_name) [VMS]:
453 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
454 * doc.c (munge_doc_file_name) [VMS]: Likewise.
455 (Fsnarf_documentation): Call munge_doc_file_name.
456
457 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
458
459 * s/vms.h (FILE_SYSTEM_CASE): New macro.
460 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
461 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
462
463 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
464
465 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
466 defined (MAC_OSX) && defined (HAVE_CARBON)'.
467
468 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
469
470 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
471 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
472 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
473 (mac_clear_font_name_table): Move extern to macterm.h.
474
475 * macfns.c (install_window_handler): Move extern to macterm.h.
476 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
477 valid. Don't check !NILP (dir) because it is already checked with
478 CHECK_STRING.
479 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
480 specifying the default location and obtaining the selected filename.
481
482 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
483
484 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
485 are included via Carbon.h.
486
487 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
488 Define USE_CARBON_EVENTS to 1.
489 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
490 (x_free_frame_resources): Call remove_window_handler for
491 non-tooltip windows.
492 [TARGET_API_MAC_CARBON]: Don't include headers that are included
493 via Carbon.h.
494 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
495 (mac_do_receive_dragUPP): New variables.
496 (mac_handle_service_event, init_service_handler): Put declarations
497 and definitions in #ifdef MAC_OSX.
498 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
499 drag-and-drop handler functions and register them.
500 (remove_window_handler): New function.
501 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
502 Use fsspec_to_posix_pathname.
503 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
504 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
505 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
506 Set default cursors.
507 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
508 init_service_handler or init_quit_char_handler.
509 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
510
511 * macterm.h (install_window_handler, remove_window_handler)
512 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
513 (mac_clear_font_name_table): New externs.
514
515 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
516
517 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
518 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
519 (Fexpand_file_name): Likewise.
520
521 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
522
523 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
524 no longer special-case VMS. Add bogus return value.
525
526 2005-03-02 Kim F. Storm <storm@cua.dk>
527
528 * dispextern.h (XASSERTS): Define to 0 if not already defined.
529 (xassert) [!XASSERTS]: Define dummy version.
530
531 2005-03-02 Kim F. Storm <storm@cua.dk>
532
533 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
534 Reported by David Kastrup.
535
536 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
537
538 * xdisp.c (get_next_display_element): Fix control and escape
539 glyph from display vector.
540
541 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
542
543 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
544
545 2005-02-27 Richard M. Stallman <rms@gnu.org>
546
547 * xdisp.c (fast_find_position): Rename END to BEG.
548 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
549
550 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
551
552 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
553 gtk_window_resize and x_wm_set_size_hint.
554
555 2005-02-25 Kim F. Storm <storm@cua.dk>
556
557 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
558
559 * xdisp.c (init_from_display_pos): Don't read past end of
560 it->overlay_strings array.
561
562 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
563
564 * buffer.c (syms_of_buffer): Fix typo.
565
566 2005-02-23 Lute Kamstra <lute@gnu.org>
567
568 * buffer.c (Foverlay_buffer): Doc fix.
569
570 2005-02-22 Kim F. Storm <storm@cua.dk>
571
572 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
573 and symbol keys in alists and hash tables.
574
575 * xdisp.c (fast_find_position): Fix search for start of overlay.
576
577 2005-02-21 Kim F. Storm <storm@cua.dk>
578
579 * window.c (window_scroll_pixel_based): When scrolling backwards,
580 handle partial visible line at end of window even when we hit PT.
581
582 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
583
584 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
585
586 2005-02-21 Kim F. Storm <storm@cua.dk>
587
588 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
589 I think those asserts are bogus if buffer contains invisible text
590 or images.
591
592 2005-02-21 David Kastrup <dak@gnu.org>
593
594 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
595
596 2005-02-20 Kim F. Storm <storm@cua.dk>
597
598 * xdisp.c (pos_visible_p): Be sure to move to the specified
599 position. Always get the full ascent / descent of the
600 corresponding row, to return reliable rtop and rbot values.
601 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
602 Must look one character back, as back_to_previous_line_start
603 returns position after the newline.
604 (move_it_vertically_backward): Fix heuristic for when to move further
605 back in case line_height * 2/3 is larger than window height.
606 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
607 as it does not do anything anymore. Add arg current_matrix_p to
608 use current matrix rather than desired matrix when set.
609 (try_cursor_movement): Don't scroll to make cursor row fully
610 visible if cursor didn't move. This avoids unexpected recentering
611 in case of blinking cursor or accepting process output.
612 Use current matrix to check cursor row visibility.
613 (redisplay_window): Fix whether to recenter or move to top in case
614 cursor line is taller than window height.
615 (find_first_unchanged_at_end_row): Stop search if we reach a row
616 which not enabled (instead of abort).
617
618 2005-02-18 Kim F. Storm <storm@cua.dk>
619
620 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
621 to be nil in a :box attribute value list; customize prints that
622 as lisp value when no box color is specified.
623
624 * .gdbinit (pitx, pit): Pretty print display iterator.
625 (prowx, prow): Pretty print glyph row.
626 (pcursorx, pcursor): Pretty print a window cursor.
627 (pwinx, pwin): Pretty print struct window.
628
629 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
630
631 * alloc.c (BLOCK_BYTES): Harmless typo.
632
633 2005-02-17 Andreas Schwab <schwab@suse.de>
634
635 * xfns.c (hack_wm_protocols): Use correct type for last parameter
636 of XGetWindowProperty to avoid aliasing issues.
637 (Fx_window_property): Likewise.
638
639 * xselect.c (Fx_disown_selection_internal): Use union of struct
640 input_event and struct selection_input_event to avoid aliasing issues.
641
642 * xterm.c (handle_one_xevent): Use union of struct input_event and
643 struct selection_input_event to avoid aliasing issues.
644 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
645
646 2005-02-17 Kim F. Storm <storm@cua.dk>
647
648 * dispextern.h (enum it_method): New enum.
649 (GET_FROM_*): Its members.
650 (struct it): Change member method from function pointer to enum.
651
652 * xdisp.c (check_it, init_from_display_pos, handle_stop)
653 (setup_for_ellipsis, handle_single_display_spec)
654 (handle_composition_prop, next_overlay_string)
655 (get_overlay_strings, reseat_1, reseat_to_string)
656 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
657 (in_display_vector_p, display_line, get_next_display_element):
658 Change it->method from function pointer to enum.
659 (get_next_element): New array to map it->method to function.
660 (get_next_display_element): Use it.
661 (set_iterator_to_next): Use switch instead of if/else chain.
662
663 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
664
665 * w32select.c: Summary: Thorough rework to implement Unicode
666 clipboard operations and delayed rendering.
667
668 Drop last_clipboard_text and related code, keep track of
669 ownership via clipboard_owner instead. Drop old #if0 sections.
670
671 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
672 (clipboard_owner, modifying_clipboard, cfg_coding_system)
673 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
674 (current_coding_system, current_requires_encoding)
675 (current_num_nls, current_clipboard_type, current_lcid):
676 New static variables.
677
678 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
679 (render, render_all, run_protected, lisp_error_handler)
680 (owner_callback, create_owner, setup_config)
681 (enum_locale_callback, cp_from_locale, coding_from_cp):
682 New local functions.
683
684 (term_w32select, globals_of_w32select): New global functions.
685
686 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
687 clipboard_owner instead. Use delayed rendering and provide
688 all text formats. Provide CF_LOCALE if necessary.
689
690 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
691 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
692 available. Force DOS line-ends for decoding.
693
694 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
695
696 (syms_of_w32select): Init and register new variables.
697
698 * w32.h: Add prototypes for globals_of_w32select and
699 term_w32select. Make the neighboring K&R declarations into
700 prototypes, too.
701
702 * emacs.c: Include w32.h to get function prototypes.
703 (main): Call globals_of_w32select.
704
705 * w32.c (term_ntproc): Call term_w32select.
706
707 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
708
709 2005-02-16 Kim F. Storm <storm@cua.dk>
710
711 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
712 at end of display vector.
713
714 2005-02-15 Richard M. Stallman <rms@gnu.org>
715
716 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
717 for mode and header lines.
718
719 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
720
721 * keymap.h (describe_map_tree): Change decl.
722
723 * keyboard.c (command_loop_1): Always use safe_run_hooks
724 to run Qdeferred_action_function.
725
726 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
727 (describe_map, describe_vector): Likewise. When it's 1,
728 don't omit shadowed bindings, instead mark them as shadowed.
729
730 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
731 for describe_map_tree. Pass 1 for MENTION_SHADOW.
732
733 * data.c (Fsetq_default): Allow no arg case.
734
735 2005-02-14 Kenichi Handa <handa@m17n.org>
736
737 * coding.c (encode_coding_string): Always return a unibyte string.
738 If NOCOPY is nonzero and there's no need of encoding, make STR
739 unibyte directly.
740
741 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
742 multibyte string, signal an error instead of aborting.
743
744 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
745
746 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
747
748 2005-02-12 Kim F. Storm <storm@cua.dk>
749
750 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
751
752 2005-02-10 Kim F. Storm <storm@cua.dk>
753
754 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
755 if it moves outside window or it doesn't display text.
756
757 2005-02-09 Kim F. Storm <storm@cua.dk>
758
759 * undo.c (Fprimitive_undo): Check that undo function does not
760 switch buffer.
761
762 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
763
764 * xselect.c (selection_data_to_lisp_data): For the special case
765 type == XA_ATOM, data contains array of int, not array of Atom.
766 (x_property_data_to_lisp, selection_data_to_lisp_data):
767 Comment update: data must be array of int for format == 32.
768
769 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
770
771 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
772
773 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
774
775 * xfns.c (Fx_change_window_property): Use long array when format is 32.
776 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
777 convert long array returned from XGetWindowProperty to an int array.
778 (x_set_tool_bar_lines): Check that width and height is greater than
779 zero before clearing area.
780
781 * xselect.c (x_reply_selection_request): Pass long array to
782 XChangeProperty so that 64 bit longs are handeled correctly.
783 (x_get_window_property): If format is 32 and long is bigger than 32
784 bits convert data from XGetWindowProperty from long array to int array.
785 (lisp_data_to_selection_data): When the input is a vector and the
786 format is 32, allocate a long array even if long is bigger than 32 bits.
787 (x_fill_property_data): Use char, short and long as the man page
788 for XChangeProperty specifies. This way the data returned is OK for
789 both 32 and 64 bit machines.
790 (x_handle_dnd_message): Calculate size correctly even for 64 bit
791 machines.
792 (Fx_send_client_event): Undo change from 2005-02-05,
793 x_fill_property_data now handles that case.
794
795 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
796 reason for the approach in the code.
797
798 2005-02-07 Kim F. Storm <storm@cua.dk>
799
800 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
801
802 2005-02-06 Richard M. Stallman <rms@gnu.org>
803
804 * eval.c (Frun_hook_with_args)
805 (Frun_hook_with_args_until_success)
806 (Frun_hook_with_args_until_failure): Doc fixes.
807
808 2005-02-05 Andreas Schwab <schwab@suse.de>
809
810 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
811
812 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
813
814 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
815 the longs in a XClientMessageEvent correctly when long is 64 bits.
816
817 2005-02-05 Eli Zaretskii <eliz@gnu.org>
818
819 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
820 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
821
822 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
823
824 * xmenu.c (menubar_selection_callback): Force out GTK buffered
825 events so the menu event comes after them. This is to prevent sit-for
826 from exiting on buffered events directly after a menu selection,
827 lisp code for Help => About Emacs uses sit-for.
828
829 * gtkutil.c (create_menus): Connect selection-done event instead of
830 the deactivate event to deactivate_cb. This will make the last
831 leave event come before the call to deactivate_cb, so the leave
832 event does not make sit-for exit after a menu selection.
833
834 2005-02-03 Kim F. Storm <storm@cua.dk>
835
836 * dispnew.c (build_frame_matrix_from_leaf_window)
837 [!GLYPH_DEBUG]: Fix xassert.
838
839 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
840
841 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
842
843 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
844
845 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
846 the compiling OS version.
847
848 * macfns.c (x_create_tip_frame): Likewise.
849
850 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
851
852 2005-02-03 Richard M. Stallman <rms@gnu.org>
853
854 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
855
856 * xdisp.c (echo_area_display): Clear echo_message_buffer.
857
858 * buffer.c (Fbury_buffer): Doc fix.
859
860 2005-02-02 Steven Tamm <steventamm@mac.com>
861
862 * macfns.c (unwind_create_frame): Fixing compile error due to
863 xassert being uncondition, but predicate is.
864 * dispnew.c (update_window): Fixing compile error due to
865 xassert being uncondition, but predicate is.
866
867 2005-02-02 Miles Bader <miles@gnu.org>
868
869 * dispextern.h (xassert): Enable unconditionally.
870
871 2005-02-02 Kim F. Storm <storm@cua.dk>
872
873 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
874
875 2005-02-02 Kenichi Handa <handa@m17n.org>
876
877 * casefiddle.c (casify_object): Enable changing characters of
878 different byte length.
879 (casify_region): Fix loop condition, args to replace_range_2, and
880 update opoint_byte.
881
882 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
883
884 2005-02-01 Kim F. Storm <storm@cua.dk>
885
886 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
887 stack before calling handle_display_prop.
888
889 2005-01-31 Kim F. Storm <storm@cua.dk>
890
891 * undo.c (Qapply): New lisp var.
892 (syms_of_undo): Intern and staticpro it.
893 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
894 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
895
896 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
897
898 2005-01-30 Jesper Harder <harder@phys.au.dk>
899
900 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
901 <mac-emulate-three-button-mouse>: Fix docstring indentation.
902
903 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
904
905 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
906 Increase value to 3 Meg.
907
908 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
909
910 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
911 button events are not received otherwise.
912
913 2005-01-29 Richard M. Stallman <rms@gnu.org>
914
915 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
916
917 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
918
919 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
920
921 * keymap.c (access_keymap): YAILOM.
922
923 2005-01-27 Kim F. Storm <storm@cua.dk>
924
925 * xdisp.c (get_phys_cursor_geometry): New function to calculate
926 phys cursor position and size for hollow cursor. Position is
927 aligned with get_glyph_string_clip_rect and ensures that a hollow
928 cursor is shown, even when the actual glyph is not visible.
929
930 * dispextern.h (get_phys_cursor_geometry): Add prototype.
931
932 * xterm.c (x_clip_to_row): Ensure y >= 0.
933 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
934
935 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
936
937 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
938
939 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
940
941 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
942
943 2005-01-27 Kim F. Storm <storm@cua.dk>
944
945 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
946 glyph, even when row is only partially visible and actual cursor
947 position is not visible.
948
949 2005-01-24 Richard M. Stallman <rms@gnu.org>
950
951 * xterm.c (x_error_quitter): No longer static, and moved after
952 x_error_handler.
953
954 2005-01-24 Kim F. Storm <storm@cua.dk>
955
956 * xdisp.c (move_it_by_lines): If we move forward after going too
957 far back, cancel move if end position is same as start position.
958
959 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
960
961 * dispextern.h (struct glyph_string): New members clip_head and
962 clip_tail.
963
964 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
965 region to the area between clip_head and clip_tail.
966 (draw_glyphs): Record the area that need to be actually redrawn to
967 the new variables clip_head and clip_tail when there are
968 overhangs. Set values of these variables to the corresponding
969 members in struct glyph_string. Refine x coordinates for
970 notice_overwritten_cursor using clip_head and clip_tail.
971
972 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
973
974 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
975 QDTextBounds.
976 (x_draw_glyph_string): Don't fill the background of the successor
977 of a glyph with a right overhang if the successor will draw a cursor.
978 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
979 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
980
981 2005-01-24 Kim F. Storm <storm@cua.dk>
982
983 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
984 direction if window height was smaller than next-screen-context-lines.
985 Now always scroll at least one line in the requested direction.
986 Ensure that we actually do scroll backwards when requested to do so.
987
988 * xdisp.c (redisplay_window): Only try to make cursor line fully
989 visible once (to avoid redisplay loop).
990
991 2005-01-23 Kim F. Storm <storm@cua.dk>
992
993 * window.c (Fpos_visible_in_window_p): Simplify return value for
994 partially visible rows.
995 (window_scroll_pixel_based): Adapt to that change.
996
997 * window.c (window_scroll_pixel_based): Force moving to next line
998 if scrolling doesn't move start point, e.g. if looking at tall image.
999
1000 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
1001 Clear last_height before calling line_bottom_y to get real height.
1002 Fix calculation of y.
1003
1004 2005-01-22 Steven Tamm <steventamm@mac.com>
1005
1006 * s/darwin.h: Removed PTY_ITERATION from here.
1007 (DARWIN): Define.
1008 * process.c (init_process): Default process-connection-type to
1009 nil on darwin 6 or less, t if it is 7 or higher. This way the
1010 broken pty behavior is still allowed on darwin 6 for interactive
1011 processes for people that know what they are doing.
1012
1013 2005-01-22 Kim F. Storm <storm@cua.dk>
1014
1015 * window.c (auto_window_vscroll_p): New boolean.
1016 (syms_of_window): DEFVAR_BOOL it.
1017 (Fpos_visible_in_window_p): Extend return value to include RTOP
1018 and RBOT values if FULLY is nil.
1019 (window_scroll_pixel_based): Adjust vscroll for partially visible
1020 rows if auto_window_vscroll_p is set.
1021 (Fset_window_vscroll): Do nothing if vscroll is not modified.
1022
1023 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
1024 to return number of partially invisible pixels at top and bottom
1025 of the dislay row at POS.
1026
1027 * lisp.h (pos_visible_p): Fix prototype.
1028
1029 2005-01-21 Richard M. Stallman <rms@gnu.org>
1030
1031 * fileio.c (Fcopy_file): Doc fix.
1032
1033 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1034
1035 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
1036 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
1037 start of function for older compilers.
1038
1039 2005-01-20 Richard M. Stallman <rms@gnu.org>
1040
1041 * editfns.c (Fmessage): If arg is "", return "" (as before).
1042
1043 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
1044
1045 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
1046 variable.
1047
1048 2005-01-20 Steven Tamm <steventamm@mac.com>
1049
1050 * editfns.c (Voperating_system_release): Add.
1051 (init_editfns): Assign new variable operating-system-release
1052 based on call to uname if available.
1053 (get_operating_system_release): Add function to
1054 allow c-level access to operating system release.
1055
1056 * config.h: Regenerated.
1057
1058 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
1059 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
1060 using ptys as '7'.
1061
1062 2005-01-20 Kim F. Storm <storm@cua.dk>
1063
1064 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
1065
1066 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
1067 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
1068
1069 * macterm.c (x_draw_glyph_string_box): Likewise.
1070
1071 * w32term.c (x_draw_glyph_string_box): Likewise.
1072
1073 * indent.c (Fvertical_motion): Temporarily disable selective display.
1074
1075 2005-01-19 Kim F. Storm <storm@cua.dk>
1076
1077 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
1078 image property.
1079
1080 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
1081
1082 2005-01-18 Kim F. Storm <storm@cua.dk>
1083
1084 * xdisp.c (fast_find_position): Backtrack to find first row if
1085 charpos is inside a display overlay that spans multiple lines.
1086
1087 2005-01-18 Kenichi Handa <handa@m17n.org>
1088
1089 * coding.c (decode_coding_iso2022): Translate invalid codes if
1090 translation-table is specified.
1091
1092 2005-01-18 Kim F. Storm <storm@cua.dk>
1093
1094 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
1095 change. If handle_display_prop indicates newline is replaced by
1096 image or text, move back to start of relevant overlay or interval
1097 and continue scan from there. Simplify.
1098
1099 2005-01-17 Kim F. Storm <storm@cua.dk>
1100
1101 * dispnew.c (mode_line_string, marginal_area_string):
1102 Fix off-by-one error in search for glyph.
1103
1104 2005-01-16 Kim F. Storm <storm@cua.dk>
1105
1106 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
1107
1108 2005-01-16 Steven Tamm <steventamm@mac.com>
1109
1110 * macterm.c (mac_to_x_fontname): Remove spurious argument.
1111
1112 2005-01-16 Andreas Schwab <schwab@suse.de>
1113
1114 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
1115
1116 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1117
1118 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
1119 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
1120
1121 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1122
1123 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
1124 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
1125 New flags for readable_events.
1126 (get_filtered_input_pending, readable_filtered_events): Remove.
1127 (tracking_off): Call readable_events and get_input_pending with
1128 flag READABLE_EVENTS_DO_TIMERS_NOW.
1129 (readable_events): Move code from old readable_filtered_events here,
1130 but check new READABLE_EVENTS_* in argument flags instead of previous
1131 two boolean arguments do_timers_now and filter_events.
1132 If we are doing mouse tracking and the mouse moved, return only if
1133 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
1134 (swallow_events): Call get_input_pending with flag
1135 READABLE_EVENTS_DO_TIMERS_NOW.
1136 (get_input_pending): Move code from old get_filtered_input_pending
1137 here. Replace boolean arguments do_timers_now, filter_events with
1138 flags, and pass flags to readable_events. Document new
1139 READABLE_EVENTS_* flags.
1140 (detect_input_pending_ignore_squeezables): New function.
1141 (detect_input_pending_run_timers): Call get_input_pending with flag
1142 READABLE_EVENTS_DO_TIMERS_NOW.
1143 (Finput_pending_p): Call get_input_pending with flags
1144 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
1145
1146 * dispnew.c (update_window, update_frame_1): Replace calls to
1147 detect_input_pending with detect_input_pending_ignore_squeezables
1148 so that redisplay is not paused if the event queue contains only
1149 mouse movements.
1150
1151 * lisp.h: Declare detect_input_pending_ignore_squeezables.
1152
1153 2005-01-15 Steven Tamm <steventamm@mac.com>
1154
1155 * macterm.c (Vmac_use_core_graphics): Declare variable for
1156 mac-allow-anti-aliasing.
1157 (syms_of_macterm): DEFVAR_LISP and initialize it.
1158 (mac_draw_string_common): Use core graphics text rendering if
1159 mac-allow-anti-aliasing is enabled.
1160
1161 * macfns.c (Fx_file_dialog): Save As dialog includes only the
1162 file name in the text box.
1163
1164 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1165
1166 * macfns.c (x_set_foreground_color, x_set_background_color):
1167 Sync with xfns.c.
1168 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
1169 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
1170 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
1171
1172 2005-01-14 Kim F. Storm <storm@cua.dk>
1173
1174 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
1175
1176 2005-01-13 Richard M. Stallman <rms@gnu.org>
1177
1178 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
1179 if Voverriding_terminal_local_map is non-nil.
1180
1181 * keyboard.c (syms_of_keyboard): Doc fix.
1182
1183 2005-01-13 Kim F. Storm <storm@cua.dk>
1184
1185 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
1186 (specify 0 for FACE instead). Reorder arg list. Doc fix.
1187
1188 2005-01-12 Richard M. Stallman <rms@gnu.org>
1189
1190 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
1191 face property for characters that don't specify one.
1192
1193 * fns.c (Frequire): Record in load-history unconditionally.
1194
1195 2005-01-10 Kim F. Storm <storm@cua.dk>
1196
1197 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
1198
1199 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
1200 Callers changed.
1201 Add support to merge with lisp face id too (if face_name is t).
1202
1203 * xdisp.c (get_next_display_element, next_element_from_display_vector):
1204 Don't lookup lface_id from display table glyphs here; instead use
1205 merge_faces to merge the lisp face id into current face.
1206
1207 2005-01-09 Kim F. Storm <storm@cua.dk>
1208
1209 * dispextern.h (struct it): New member dpvec_face_id.
1210 (merge_into_realized_face): Add prototype.
1211
1212 * xfaces.c (merge_into_realized_face): New function. Used to
1213 merge escape-glyph face or face from display table into current face.
1214
1215 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
1216 (syms_of_xdisp): DEFVAR_LISP it.
1217 (escape_glyph_face): Remove var.
1218 (redisplay_window): Don't initialize it.
1219 (setup_for_ellipsis, get_next_display_element):
1220 Set it->dpvec_face_id to -1.
1221 (get_next_display_element): Test Vshow_nonbreak_escape.
1222 Do not setup escape_glyph_face.
1223 Properly merge escape-glyph face or face from display table with
1224 current face for escape and control characters.
1225 Set it->dpvec_face_id to relevant face id instead of adding it to each
1226 element of display vector.
1227 (next_element_from_display_vector): If it->dpvec_face_id is set,
1228 use that instead of lface_id from glyph itself.
1229
1230 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1231
1232 * xterm.h (struct x_output): New member, toolbar_detached.
1233
1234 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
1235 38.
1236 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
1237 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
1238 (xg_create_tool_bar): Initialize toolbar_detached.
1239 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
1240 toolbar_detached is zero.
1241
1242 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1243
1244 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
1245 gtk_menu_popup if not for_click, so callbacks for the menu are called.
1246
1247 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
1248 (xg_tool_bar_callback, xg_tool_bar_help_callback)
1249 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
1250
1251 * xselect.c (x_get_foreign_selection, x_fill_property_data)
1252 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
1253 XFLOAT_DATA to get extract number from Lisp object.
1254
1255 2005-01-07 Kim F. Storm <storm@cua.dk>
1256
1257 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
1258 Set stop_charpos to current charpos instead of 0.
1259
1260 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
1261
1262 * xdisp.c (Fformat_mode_line): First arg now required.
1263
1264 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1265
1266 * macterm.c (XLoadQueryFont): Correctly handle 0 size
1267 font widths that are returned from some Japanese fonts.
1268
1269 2005-01-06 Kim F. Storm <storm@cua.dk>
1270
1271 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
1272 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
1273 (destroy_fringe_bitmap): Set fringe_faces element to nil.
1274 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
1275 fringe_faces array and init elements to nil.
1276 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
1277 non-persistent face id.
1278 (mark_fringe_data): New function for GC.
1279
1280 * alloc.c (mark_fringe_data): Declare extern.
1281 (Fgarbage_collect): Call mark_fringe_data.
1282
1283 * alloc.c (overrun_check_free): Invalidate freed memory if
1284 XMALLOC_CLEAR_FREE_MEMORY is defined.
1285
1286 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1287
1288 * macfns.c: Include sys/param.h.
1289 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
1290 and function.
1291 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
1292 of filename string. Set event callback function when creating
1293 dialog boxes. Add code conversions for filenames. Don't dispose
1294 apple event descriptor record if failed to create it.
1295
1296 * macterm.c: Include sys/param.h.
1297 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
1298 kEventWindowUpdate.
1299 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
1300 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
1301 of FSSpec from apple event descriptor record.
1302 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
1303 size of filename string.
1304 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
1305 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
1306 file dialog is in action.
1307 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
1308 Reject only when there are no filename items. Set background color
1309 before (un)highlighting the window below the dragged items.
1310 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
1311
1312 2005-01-05 Romain Francoise <romain@orebokech.com>
1313
1314 * term.c (encode_terminal_code): Fix buffer size computation.
1315
1316 2005-01-04 Richard M. Stallman <rms@gnu.org>
1317
1318 * xdisp.c (Fformat_mode_line): Doc fix.
1319
1320 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1321
1322 * alloc.c (refill_memory_reserve): Move.
1323 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
1324 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
1325
1326 2005-01-03 Richard M. Stallman <rms@gnu.org>
1327
1328 * window.c (window_scroll_pixel_based): Don't correct preserve_y
1329 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
1330
1331 2005-01-03 Jason Rumney <jasonr@gnu.org>
1332
1333 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
1334 fontp->space_width to FONT_WIDTH so they are valid.
1335
1336 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
1337 average width. Set fontp->average_width and fontp->space_width to
1338 their appropriate values.
1339
1340 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1341 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1342 fontp->space_width.
1343
1344 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1345
1346 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
1347 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
1348 metrics for max and min bounds.
1349 (x_load_font): Correctly calculate average font width metrics.
1350
1351 2005-01-02 Richard M. Stallman <rms@gnu.org>
1352
1353 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
1354
1355 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1356
1357 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
1358
1359 2004-12-31 Richard M. Stallman <rms@gnu.org>
1360
1361 * xdisp.c (setup_for_ellipsis, get_next_display_element):
1362 Set it->ellipsis_p to 1 or 0.
1363 (display_line): Record whether row ends in mid-ellipsis.
1364 (set_cursor_from_row): If ends in ellipsis. find start of it.
1365 (cursor_row_p): If PT's at the end of the ellipsis the row
1366 ends within, don't display cursor on this row.
1367
1368 * dispextern.h (struct it): New element ellipsis_p.
1369 (struct glyph_row): New element ends_in_ellipsis_p.
1370
1371 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
1372 position if we're reading from something other than the buffer.
1373
1374 * window.c (window_scroll_pixel_based): Only look at
1375 Vscroll_preserve_screen_position if the old PT can't be kept.
1376 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
1377
1378 2004-12-30 Kim F. Storm <storm@cua.dk>
1379
1380 * xdisp.c (get_line_height_property): New function extracted from
1381 original calc_line_height_property.
1382 (calc_line_height_property): Rework. Handle t and (nil . ratio).
1383 (x_produce_glyphs): Use them to handle line-height and
1384 line-spacing according to new height spec.
1385 (Qtotal): Remove.
1386 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1387
1388 2004-12-30 Kenichi Handa <handa@m17n.org>
1389
1390 * fileio.c (Finsert_file_contents): Don't use
1391 current_buffer->buffer_file_coding_system even if REPLACE is
1392 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
1393
1394 * fontset.h (struct font_info): New members space_width and
1395 average_width.
1396
1397 * frame.h (struct frame): New member space_width.
1398 (FRAME_SPACE_WIDTH): New macro.
1399
1400 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
1401
1402 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1403 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1404 fontp->space_width.
1405 (x_load_font): Calculate fontp->space_width and fontp->average_width.
1406 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
1407
1408 * xdisp.c (x_produce_glyphs): Calculate tab width by
1409 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
1410
1411 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
1412
1413 * macterm.c (SelectionRange): Add Xcode position apple event struct.
1414 (do_ae_open_documents): Handle Xcode-style file position open events.
1415
1416 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
1417
1418 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
1419
1420 2004-12-29 Richard M. Stallman <rms@gnu.org>
1421
1422 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
1423
1424 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1425
1426 * macfns.c (install_window_handler): Modify extern to return OSErr
1427 value.
1428 (mac_window): Handle return value of install_window_handler.
1429
1430 * macterm.c (reflect_byte): Remove function.
1431 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
1432 Lookup table instead.
1433 (mac_do_font_lists): Simplify calculation of the longest
1434 nonspecial string.
1435 (init_mac_drag_n_drop): Remove function and declaration.
1436 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1437 init_mac_drag_n_drop.
1438 (mac_do_track_drag): New function and declaration.
1439 (install_window_handler): Return OSErr value.
1440 (install_window_handler) [TARGET_API_MAC_CARBON]:
1441 Register handlers for tracking/receiving drag-and-drop items.
1442 (do_ae_open_documents): Generate unibyte strings for filenames.
1443 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
1444 Reject only non-filename items. Set event modifiers, and return value.
1445
1446 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1447
1448 * coding.c (decode_coding): Fix previous change.
1449
1450 2004-12-28 Richard M. Stallman <rms@gnu.org>
1451
1452 * xdisp.c (back_to_previous_visible_line_start):
1453 Don't call handle_display_prop.
1454
1455 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1456
1457 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
1458 (decode_coding_emacs_mule, encode_coding_emacs_mule)
1459 (decode_coding_iso2022, encode_designation_at_bol)
1460 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
1461 (decode_coding): Constify arguments and local vars.
1462
1463 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1464
1465 * xmenu.c (popup_get_selection): Only pop down dialogs
1466 on C-g and Escape.
1467 (popup_get_selection): Remove parameter down_on_keypress.
1468 (create_and_show_popup_menu, create_and_show_dialog):
1469 Remove parameter down_on_keypress to popup_get_selection.
1470
1471 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1472
1473 * dispextern.h: Change HAVE_CARBON to MAC_OS.
1474 (struct glyph_string): Likewise.
1475
1476 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
1477 mac_initialize.
1478
1479 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
1480 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
1481
1482 * fns.c (vector): Change MAC_OSX to MAC_OS.
1483
1484 * frame.c (x_set_frame_parameters, x_report_frame_params)
1485 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
1486 (x_set_border_width, Vdefault_frame_scroll_bars):
1487 Change HAVE_CARBON to MAC_OS.
1488
1489 * image.c [MAC_OS]: Include sys/stat.h.
1490 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
1491 QuickTimeComponents.h.
1492
1493 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
1494 [!MAC_OSX] (select): Use mac_wait_next_event.
1495 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
1496 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
1497 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1498 (mac_clear_font_name_table): Add extern.
1499 (Fmac_clear_font_name_table): New defun.
1500 (syms_of_mac): Defsubr it.
1501 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
1502 [MAC_OSX] (select_and_poll_event): New function.
1503 [MAC_OSX] (sys_select): Use it.
1504 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
1505 [MAC_OSX && SELECT_USE_CFSOCKET]
1506 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
1507 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
1508 RunLoop for simultaneously monitoring two kinds of inputs, window
1509 events and process outputs, without periodically polling.
1510
1511 * macfns.c (mac_initialized): Remove extern.
1512 (stricmp): Put in #if 0. All callers changed to use xstricmp in
1513 xfaces.c.
1514 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
1515 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
1516 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
1517 (mac_get_rdb_resource): New function (from w32reg.c).
1518 (x_get_string_resource): Use it.
1519 (install_window_handler): Add extern.
1520 (mac_window): New function.
1521 (Fx_create_frame): Use it instead of make_mac_frame.
1522 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
1523 (Fx_open_connection, Fx_close_connection): New defuns.
1524 (syms_of_macfns): Defsubr them.
1525 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
1526 Add kWindowNoUpdatesAttribute to the window attribute.
1527 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
1528 (x_create_tip_frame): Don't call ShowWindow.
1529 (Fx_show_tip): Call ShowWindow.
1530 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
1531 TARGET_API_MAC_CARBON'.
1532 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
1533 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
1534
1535 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
1536 (Window): Typedef to WindowPtr and move outside `#if
1537 TARGET_API_MAC_CARBON'.
1538 (XSizeHints): New struct.
1539
1540 * macterm.c (x_update_begin, x_update_end)
1541 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
1542 frame.
1543 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1544 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
1545 (construct_mouse_click): Put in #if 0.
1546 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
1547 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
1548 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1549 (activate_scroll_bars, deactivate_scroll_bars)
1550 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
1551 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
1552 if the position is neither user-specified nor program-specified.
1553 (x_free_frame_resources): Free size_hints.
1554 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
1555 (mac_clear_font_name_table): New function.
1556 (mac_do_list_fonts): Initialize font_name_table if needed.
1557 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
1558 around mac_do_list_fonts.
1559 (mac_unload_font): New function.
1560 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
1561 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
1562 and definitions with #if TARGET_API_MAC_CARBON.
1563 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
1564 (install_window_handler): Add decl.
1565 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
1566 window. Use UpdateControls. Get the rectangle that should be
1567 updated and restrict the target of expose_frame to it.
1568 (do_grow_window): Set minimum height/width according to size_hints.
1569 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
1570 (do_zoom_window): Don't use x_set_window_size.
1571 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
1572 (install_window_handler): New function.
1573 [!USE_CARBON_EVENTS] (mouse_region): New variable.
1574 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
1575 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
1576 GetEventDispatcherTarget inside BLOCK_INPUT.
1577 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
1578 Update mouse_region when mouse is moved.
1579 (make_mac_frame): Remove.
1580 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
1581 Initialize mouse pointer shapes. Change values of f->left_pos and
1582 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
1583 Don't call ShowWindow.
1584 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
1585 Vinvocation_name and Vsystem_name.
1586 (mac_make_rdb): New function (from w32term.c).
1587 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
1588 already been opened. Don't pass argument to
1589 mac_initialize_display_info. Don't set dpyinfo->height/width.
1590 Add entries to x_display_list and x_display_name_list.
1591 (x_delete_display): New function.
1592 (mac_initialize): Don't call mac_initialize_display_info.
1593 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
1594
1595 * macterm.h (check_mac): Add extern.
1596 (struct mac_output): New member size_hints.
1597 (FRAME_SIZE_HINTS): New macro.
1598 (mac_unload_font): Add extern.
1599
1600 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
1601
1602 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
1603
1604 2004-12-27 Richard M. Stallman <rms@gnu.org>
1605
1606 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
1607 (syms_of_buffer): Don't defsubr it.
1608
1609 * process.c (list_processes_1): Set undo_list instead
1610 of calling Fbuffer_disable_undo.
1611
1612 * xdisp.c (single_display_spec_string_p): Rename from
1613 single_display_prop_string_p.
1614 (single_display_spec_intangible_p): Rename from
1615 single_display_prop_intangible_p.
1616 (handle_single_display_spec): Rename from handle_single_display_prop.
1617 Rewritten to be easier to understand.
1618
1619 Change in load-history format. Functions now get (defun . NAME),
1620 and variables get just NAME.
1621
1622 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1623
1624 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1625 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
1626 (Qdefvar): Var deleted.
1627 (syms_of_eval): Don't initialze it.
1628
1629 * lread.c (syms_of_lread) <load-history>: Doc fix.
1630
1631 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1632
1633 * xmenu.c (popup_get_selection): Pop down on C-g.
1634 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
1635 pops down menu on C-g.
1636 (xdialog_show): If dialog popped down and no button in the dialog was
1637 pushed, call Fsignal to quit.
1638 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
1639 Fsignal to quit.
1640
1641 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
1642
1643 * gtkutil.c (xg_initialize): Install bindings for C-g so that
1644 dialogs and menus pop down.
1645
1646 2004-12-27 Kenichi Handa <handa@m17n.org>
1647
1648 * coding.c (code_convert_region): Fix calculation of `ratio'.
1649
1650 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1651
1652 * gtkutil.c (update_frame_tool_bar): Make the value of
1653 tool-bar-button-margin control margins of images in tool bar.
1654
1655 * alloc.c (check_depth): New variable.
1656 (overrun_check_malloc, overrun_check_realloc): Only add
1657 overhead and write check pattern if check_depth is 1 (to handle
1658 recursive calls). Increase/decrease check_depth in entry/exit.
1659 (overrun_check_free): Only check for overhead if check_depth is 1.
1660 Increase/decrease check_depth in entry/exit.
1661
1662 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1663
1664 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
1665 before touching input_available_clear_time, to avoid accessing it
1666 from multiple threads.
1667
1668 2004-12-23 Jason Rumney <jasonr@gnu.org>
1669
1670 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
1671 of JPEG library.
1672
1673 2004-12-22 Richard M. Stallman <rms@gnu.org>
1674
1675 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
1676
1677 * lisp.h (Vundo_outer_limit): Fix decl.
1678
1679 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
1680 Uses changed.
1681 (syms_of_undo): Initialize appropriately.
1682 (truncate_undo_list): If it's nil, there's no limit.
1683
1684 2004-12-22 Kenichi Handa <handa@m17n.org>
1685
1686 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
1687
1688 2004-12-21 Richard M. Stallman <rms@gnu.org>
1689
1690 * eval.c (unwind_to_catch): Clear immediate_quit.
1691
1692 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
1693 specially as `\ ' and `\-'.
1694
1695 * keyboard.c (kbd_buffer_store_event_hold):
1696 In the code for while-no-input, handle immediate_quit.
1697
1698 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
1699 Call that at the very start.
1700 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
1701 (syms_of_alloc): Don't define undo-limit,
1702 undo-strong-limit and undo-outer-limit here.
1703
1704 * undo.c (truncate_undo_list): Return void.
1705 Take just one argument, the buffer.
1706 Make it current, and inhibit recursive GC.
1707 Access and update the undo list directly; return void.
1708 Refer to the undo...limit variables directly.
1709 Test undo_outer_limit only after counting the whole current command.
1710 When it's exceeded, call the function in undo-outer-limit-function.
1711 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
1712 (Vundo_outer_limit_function): New variable.
1713 (syms_of_undo): Define undo-limit, undo-strong-limit
1714 and undo-outer-limit here, and undo-outer-limit-function.
1715 Doc fixes.
1716
1717 * lisp.h (truncate_undo_list): Update decl.
1718
1719 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
1720
1721 * fileio.c (Fread_file_name): Delete duplicates in
1722 file-name-history when history_delete_duplicates is true.
1723
1724 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1725
1726 * macterm.c (mac_do_list_fonts): Fix memory leak
1727
1728 2004-12-20 Richard M. Stallman <rms@gnu.org>
1729
1730 * regex.c (re_match_2_internal) <symend, wordend>:
1731 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
1732
1733 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1734
1735 * macterm.c (endif, x_font_name_to_mac_font_name):
1736 Use maccentraleurroman instead of maccentraleuropean
1737 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
1738 quickly finding a specific font without needing regexps.
1739
1740 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1741
1742 * syssignal.h: Declare main_thread.
1743 (SIGNAL_THREAD_CHECK): New macro.
1744
1745 * keyboard.c (input_available_signal): Move thread checking code
1746 to macro SIGNAL_THREAD_CHECK and call that macro.
1747 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
1748
1749 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
1750
1751 * emacs.c: Define main_thread.
1752 (main): Initialize main_thread.
1753 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
1754 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
1755
1756 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
1757
1758 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
1759
1760 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
1761
1762 * process.c (send_process_trap, sigchld_handler):
1763 Call SIGNAL_THREAD_CHECK.
1764
1765 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
1766
1767 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
1768
1769 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
1770 returning when xg_ignore_gtk_scrollbar is true.
1771
1772 2004-12-14 Kim F. Storm <storm@cua.dk>
1773
1774 * keyboard.c (read_char): Save and restore echo_string when
1775 handling input method.
1776
1777 2004-12-13 Richard M. Stallman <rms@gnu.org>
1778
1779 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
1780
1781 * keyboard.c (Vthrow_on_input): New variable.
1782 (syms_of_keyboard): Defvar and initialize it.
1783 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
1784
1785 * lisp.h (QUIT): Check for Vthrow_on_input.
1786 (Vthrow_on_input): Declare it.
1787
1788 2004-12-13 Kim F. Storm <storm@cua.dk>
1789
1790 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
1791 vector.
1792
1793 2004-12-12 Richard M. Stallman <rms@gnu.org>
1794
1795 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
1796
1797 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
1798 (Ftry_completion): Really use outer `zero'; eliminate inner one.
1799
1800 2004-12-12 Kenichi Handa <handa@m17n.org>
1801
1802 * term.c (encode_terminal_code): Fix previous change.
1803
1804 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
1805
1806 * keyboard.c (handle_async_input): Remove pthread mutex handling.
1807 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
1808
1809 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
1810 in macro arguments.
1811
1812 * minibuf.c (Ftry_completion, Fall_completions): Don't use
1813 XFASTINT blindly.
1814
1815 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
1816
1817 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1818
1819 * w32term.c (x_calc_absolute_position): Remove calculation of
1820 difference between inner and outer window. Don't subtract difference
1821 for left and top calculations.
1822
1823 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
1824 for left and top calculations. Remove call to x_real_positions.
1825 [Bug report by Drew Adams in November]
1826 (x_check_expected_move): Do not set change_gravity to 1 when calling
1827 x_set_offset.
1828
1829 2004-12-08 Richard M. Stallman <rms@gnu.org>
1830
1831 * xdisp.c (get_next_display_element): Use `escape-glyph' for
1832 control chars and escaped octal codes.
1833 (Qescape_glyph): New variable.
1834 (syms_of_xdisp): Initialize it.
1835 (escape_glyph_face): New variable.
1836 (redisplay_window): Initialize it.
1837
1838 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
1839
1840 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
1841 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
1842
1843 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1844
1845 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1846 reset_malloc_hooks.
1847
1848 * keyboard.c (handle_async_input, input_available_signal):
1849 Add ! defined (SYSTEM_MALLOC) around thread code.
1850
1851 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1852
1853 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
1854
1855 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1856
1857 * config.in: Regenerate.
1858
1859 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1860
1861 * xmenu.c (Fx_popup_menu): Correct documentation about position.
1862 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
1863 if not given by a mouse click to correspond with x-popup-menu
1864 documentation.
1865
1866 * config.in: Regenerate.
1867
1868 * gtkutil.c: Include signal.h and syssignal.h.
1869 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1870
1871 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1872 new variables main_thread and alloc_mutex,
1873 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1874 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1875 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1876 (UN)BLOCK_INPUT.
1877 (emacs_blocked_free, emacs_blocked_malloc)
1878 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1879 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1880 (reset_malloc_hooks): New function.
1881
1882 * lisp.h: Declare reset_malloc_hooks.
1883
1884 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1885
1886 * keyboard.c: Conditionally include pthread.h
1887 (handle_async_input, input_available_signalt): If not in the main
1888 thread, block signal, send signal to main thread and return.
1889
1890 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
1891 Set current folder in file chooser if default_filename is a directory.
1892
1893 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
1894
1895 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1896 Remove redundant correctness checks.
1897 (regex_compile): Fix up error codes for \{..\} expressions.
1898
1899 2004-12-05 Richard M. Stallman <rms@gnu.org>
1900
1901 * regex.c (regex_compile): Fix end-of-pattern case for space.
1902
1903 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1904
1905 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1906 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
1907 crashes with invalid characters.
1908 * macmenu.c (add_menu_item): Use it.
1909 * image.c (image_load_quartz2d): Likewise.
1910 * macfns.c (x_set_name, x_set_title): Likewise.
1911 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
1912 creating them each time for labels.
1913
1914 2004-12-02 Richard M. Stallman <rms@gnu.org>
1915
1916 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1917 don't use it here.
1918
1919 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1920 (interactive_p): Skip Scalled_interactively_p frames
1921 like Sinteractive_p frames.
1922 (unwind_to_catch): Clear handling_signal.
1923
1924 * data.c (Fmake_variable_buffer_local): Doc fix.
1925 (Fmake_local_variable): Doc fix.
1926
1927 * insdel.c (insert_from_string_before_markers)
1928 (insert_from_string): Don't modify buffer on empty insertion.
1929
1930 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1931
1932 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1933
1934 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1935 menu text as UTF8 fails.
1936
1937 2004-12-01 Kim F. Storm <storm@cua.dk>
1938
1939 * alloc.c: Add commentary for last change.
1940 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1941 sizeof(size_t) != 4.
1942 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1943 Use them. Also clear header and trailer of freed memory.
1944 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1945 (string_overrun_cookie): Rename from string_overrun_pattern.
1946 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1947
1948 2004-12-01 Andreas Schwab <schwab@suse.de>
1949
1950 * lisp.h: Declare string_to_multibyte.
1951
1952 2004-12-01 Kenichi Handa <handa@m17n.org>
1953
1954 * w32console.c (w32con_write_glyphs): Decide coding here.
1955 Adjusted for the change of encode_terminal_code.
1956
1957 * term.c (encode_terminal_code): Don't make it "static".
1958
1959 2004-11-30 Kenichi Handa <handa@m17n.org>
1960
1961 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
1962 (encode_terminal_code): Argument changed. Encode all
1963 characters at once, and return a pointer to the result of encoding.
1964 (write_glyphs): Decide coding here. Adjusted for the above change.
1965 (insert_glyphs): Likewise.
1966 (term_init): Initialize encode_terminal_bufsize to 0.
1967
1968 * coding.c (Vcode_conversion_workbuf_name): New variable.
1969 (syms_of_coding): Initialize and staticpro it.
1970 (set_conversion_work_buffer): New function.
1971 (run_pre_post_conversion_on_str): Use it.
1972 (run_pre_write_conversin_on_c_str): New function.
1973
1974 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1975
1976 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1977
1978 * keyboard.c: Don't undef SIGIO
1979 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1980 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1981 (macfns.o): Don't depend on ccl.h.
1982 * macfns.c (mac_frame_parm_handlers): Set handlers for
1983 Qleft_fringe and Qright_fringe.
1984 * macterm.c (mac_fill_rectangle_to_pixmap)
1985 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1986 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1987 Put in #if 0.
1988 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1989 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1990 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1991 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1992 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1993 XDrawImageString. Always draw background and foreground separately.
1994 (x_draw_image_foreground): Use clipping instead of computing the
1995 intersection rectangle.
1996 (x_draw_image_glyph_string): Don't draw an image with mask to a
1997 pixmap.
1998 (x_redisplay_interface): Set flush_display_optional member to 0.
1999 (XTread_socket): Correctly reset the TEConverter
2000 object.
2001
2002 2004-11-30 Kim F. Storm <storm@cua.dk>
2003
2004 * lisp.h: New defines to enable buffer overrun checking.
2005 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
2006 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
2007
2008 * alloc.c: Add more checks for buffer overruns.
2009 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
2010 xmalloc_overrun_check_trailer, overrun_check_malloc)
2011 overrun_check_realloc, overrun_check_free): Add.
2012 (GC_STRING_EXTRA, string_overrun_pattern): Add.
2013 (check_sblock, allocate_string_data, compact_small_strings):
2014 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
2015 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
2016 (check_string_free_list): Add.
2017 (allocate_string, sweep_strings): Call check_string_free_list.
2018
2019 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
2020 XMALLOC_OVERRUN_CHECK to avoid crash during load.
2021
2022 2004-11-29 Kim F. Storm <storm@cua.dk>
2023
2024 * fns.c (concat): Use SAFE_ALLOCA.
2025
2026 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
2027
2028 * sysdep.c (emacs_write): Don't use QUIT.
2029
2030 2004-11-29 Kenichi Handa <handa@m17n.org>
2031
2032 * buffer.c (init_buffer): Set current_buffer->directory to a
2033 multibyte string made by string_to_multibyte.
2034
2035 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
2036
2037 2004-11-27 Andreas Schwab <schwab@suse.de>
2038
2039 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
2040
2041 * s/gnu-linux.h: Enable no-op gcpros on ia64.
2042 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
2043
2044 * filelock.c (lock_file_1): Call get_boot_time early.
2045 Increase buffer size.
2046
2047 2004-11-27 Eli Zaretskii <eliz@gnu.org>
2048
2049 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
2050 is not defined.
2051
2052 2004-11-27 Kim F. Storm <storm@cua.dk>
2053
2054 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
2055 marker out of doc string.
2056
2057 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
2058
2059 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
2060 which was not mentioned in the log.
2061
2062 2004-11-26 Kim F. Storm <storm@cua.dk>
2063
2064 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
2065 angle bitmaps at top/bottom line.
2066
2067 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
2068 set it when it->method is set to next_element_from_display_vector.
2069 (setup_for_ellipsis): Add LEN argument. Callers changed.
2070 Set it->saved_face_id.
2071 (get_next_display_element): Use loop instead of recursion.
2072 Set it->saved_face_id. Combine duplicate code for ctr chars.
2073 (next_element_from_display_vector): Do not set it->saved_face_id.
2074 (next_element_from_ellipsis): Use setup_for_ellipsis.
2075
2076 2004-11-26 Eli Zaretskii <eliz@gnu.org>
2077
2078 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
2079 prevent compiler warnings.
2080
2081 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
2082
2083 * keyboard.c (command_loop_1): Print a message describing the key
2084 the user just pressed when this key has no binding.
2085
2086 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
2087 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
2088
2089 * lread.c (readchar): Check QUIT when `getc' is interrupted.
2090
2091 2004-11-24 Richard M. Stallman <rms@gnu.org>
2092
2093 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
2094
2095 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
2096
2097 2004-11-24 Kim F. Storm <storm@cua.dk>
2098
2099 * xdisp.c (move_it_in_display_line_to, display_line):
2100 Restore saved_face_id also when truncate-lines or hscrolled.
2101
2102 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2103
2104 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
2105 x-use-old-gtk-file-dialog.
2106
2107 * xfns.c: Define x_use_old_gtk_file_dialog.
2108 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
2109 outside ifdef USE_GTK.
2110
2111 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
2112
2113 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
2114 Don't use XFASTINT blindly.
2115
2116 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
2117
2118 * indent.c (skip_invisible): Avoid non-idempotent side-effects
2119 in macro arguments.
2120
2121 * keymap.c (Flookup_key): Check INTEGERP before XINT.
2122
2123 * lread.c (oblookup): Don't use XFASTINT blindly.
2124
2125 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
2126 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
2127
2128 2004-11-23 Kim F. Storm <storm@cua.dk>
2129
2130 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
2131 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
2132
2133 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
2134 signal_p is zero and face name is unknown.
2135 (Fx_list_fonts): Don't signal error in lookup_named_face.
2136 (Fface_font): Signal error in lookup_named_face.
2137 (ascii_face_of_lisp_face): Likewise.
2138
2139 * dispextern.h (lookup_named_face): Fix prototype.
2140
2141 * xdisp.c (handle_single_display_prop): Don't signal error in
2142 lookup_named_face for unknown fringe face name.
2143 (highlight_trailing_whitespace): Don't signal error in
2144 lookup_named_face if trailing-whitespace face unknown.
2145 (calc_line_height_property): Don't signal error in
2146 lookup_named_face if specified face name is unknown.
2147
2148 * fringe.c (update_window_fringes): Show top row indicator if
2149 window has header-line. Don't show arrow at bob and eob
2150 if the boundary indicators are not used.
2151 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
2152
2153 * window.c (set_window_buffer): Clear display_error_modiff.
2154
2155 2004-11-22 Kim F. Storm <storm@cua.dk>
2156
2157 * fringe.c (update_window_fringes): Provide sensible fall-back
2158 value for non-nil indicate-buffer-boundaries setting.
2159
2160 2004-11-22 Markus Rost <rost@ias.edu>
2161
2162 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
2163
2164 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
2165
2166 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
2167
2168 2004-11-21 Kim F. Storm <storm@cua.dk>
2169
2170 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
2171
2172 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
2173 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2174
2175 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
2176 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2177
2178 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
2179 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2180
2181 * xdisp.c (move_it_in_display_line_to, display_line):
2182 Restore saved_face_id if overflow-newline-into-fringe is enabled and
2183 line is continued before or in middle of element from display vector.
2184
2185 * indent.c (Fvertical_motion): Fix last change. Use another
2186 method to detect if iterator moved too far ahead after reseat.
2187
2188 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
2189 expand matrix width for overflow in zero-width area.
2190 (append_glyph, append_composite_glyph, produce_image_glyph)
2191 (append_stretch_glyph): Use it to avoid loop in redisplay.
2192 (note_mode_line_or_margin_highlight): Don't let help-echo from
2193 string override help-echo from image map.
2194
2195 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
2196
2197 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2198 * callint.c (Fcall_interactively): Ditto.
2199
2200 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
2201
2202 * minibuf.c (Fminibuffer_complete_and_exit):
2203 Fixup the case of the completed value, for case-indep completion.
2204
2205 2004-11-20 Richard M. Stallman <rms@gnu.org>
2206
2207 * lisp.h (Fread_from_minibuffer): Add arg in decl.
2208
2209 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
2210 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
2211
2212 * search.c (Vsearch_spaces_regexp):
2213 Rename from Vsearch_whitespace_regexp. All uses changed.
2214
2215 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
2216
2217 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
2218
2219 2004-11-19 Richard M. Stallman <rms@gnu.org>
2220
2221 * search.c (Vsearch_whitespace_regexp): New variable.
2222 (syms_of_search): Defvar it.
2223 (compile_pattern_1): Call re_set_whitespace_regexp with it.
2224 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
2225 is non-nil.
2226 (struct regexp_cache): New element whitespace_regexp.
2227 (syms_of_search): Initialize whitespace_regexp elements.
2228 (compile_pattern): Compare whitespace_regexp elements.
2229 (compile_pattern_1): Set whitespace_regexp elements.
2230
2231 * regex.c (regex_compile): Substitute whitespace_regexp
2232 for spaces, if it is nonzero.
2233 (whitespace_regexp): New variable.
2234 (re_set_whitespace_regexp): New function.
2235
2236 2004-11-19 Kim F. Storm <storm@cua.dk>
2237
2238 * indent.c (Fvertical_motion): Fix last change.
2239
2240 2004-11-18 Kim F. Storm <storm@cua.dk>
2241
2242 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
2243 Instead, move back again if reseating moves too far ahead.
2244
2245 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
2246
2247 * xdisp.c (message3): Call clear_message.
2248
2249 2004-11-17 Kim F. Storm <storm@cua.dk>
2250
2251 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
2252
2253 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2254
2255 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
2256
2257 * xmenu.c (x_menu_in_use): Remove.
2258 (x_menu_set_in_use): Also set popup_activated_flag.
2259
2260 * xfns.c (Fx_file_dialog): Call popup_activated instead of
2261 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
2262
2263 * xterm.h: (x_menu_in_use): Remove.
2264
2265 2004-11-16 Richard M. Stallman <rms@gnu.org>
2266
2267 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
2268 Use map-keymap-internal to implement that.
2269
2270 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
2271
2272 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2273
2274 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
2275 a window before using XWINDOW.
2276
2277 * window.c (make_window, Fselect_window, make_dummy_parent)
2278 (save_window_save):
2279 * frame.c (make_frame):
2280 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
2281
2282 * lisp.h (NILP): Use EQ rather than XFASTINT.
2283
2284 2004-11-16 Kim F. Storm <storm@cua.dk>
2285
2286 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
2287
2288 * indent.c (Fvertical_motion): Fix last change. Only reseat when
2289 moving backwards.
2290
2291 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
2292
2293 * dispextern.h: Extern reseat_at_previous_visible_line_start.
2294
2295 2004-11-16 Kenichi Handa <handa@m17n.org>
2296
2297 * xdisp.c (display_mode_element): Fix previous change (calculate
2298 end position of substring to display correctly).
2299
2300 2004-11-16 Kim F. Storm <storm@cua.dk>
2301
2302 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
2303 Reported by Andrew M. Scott.
2304
2305 2004-11-15 Kim F. Storm <storm@cua.dk>
2306
2307 * fns.c (Fsafe_plist_get): New defun.
2308 (syms_of_fns): Defsubr it.
2309
2310 * lisp.h (Fsafe_plist_get): Add EXFUN.
2311
2312 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
2313 Use Fsafe_plist_get.
2314 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2315 Fix image map element parsing. Use Fsafe_plist_get.
2316
2317 2004-11-15 Richard M. Stallman <rms@gnu.org>
2318
2319 * xdisp.c (get_next_display_element): Fix previous change.
2320
2321 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2322
2323 * window.c (shrink_windows): Handle special case of one window left
2324 when trying to shrink the final reminder. Grow windows if
2325 total_removed is less than total_shrink.
2326
2327 * xmenu.c (pop_down_menu): Remove global variable current_menu,
2328 extract pointer from arg with XSAVE_VALUE.
2329 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
2330 Construct arg to record_unwind_protect with make_save_value.
2331
2332 2004-11-13 Richard M. Stallman <rms@gnu.org>
2333
2334 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
2335 (get_next_display_element): Fix previous change to apply only to \n.
2336
2337 * indent.c (Fvertical_motion): Scan to PT from start of line to
2338 make iterator consistent.
2339
2340 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2341
2342 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2343
2344 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
2345
2346 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
2347 Record unwind with clean_up_file_dialog.
2348
2349 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
2350 Declare.
2351
2352 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
2353
2354 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2355
2356 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
2357 (xg_file_sel_destroy): Remove.
2358 (xg_file_response_cb, pop_down_file_dialog)
2359 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
2360 New functions.
2361 (xg_get_file_with_chooser, xg_get_file_with_selection):
2362 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
2363 Move common code to xg_get_file_name. Return widget created.
2364 (xg_get_file_name): Set name, transient for, modal and destroy
2365 with parent here. Connect response signal to xg_file_response_cb,
2366 connect delete-event to gtk_true. Record pop_down_file_dialog
2367 for unwind. Do event loop and call x_menu_wait_for_event in loop.
2368 (xg_create_widget): Make dialogs modal.
2369
2370 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
2371 Lisp_Object.
2372 (popup_get_selection): Move unwind protect ...
2373 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2374 Move destroy of widget to pop_down_menu.
2375 (popup_widget_loop): Move unwind protect ...
2376 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2377 Move destroy of widget to pop_down_menu.
2378 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
2379 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
2380 x_mouse_leave and grabbed = 0 to pop_down_menu.
2381
2382 2004-11-13 Kim F. Storm <storm@cua.dk>
2383
2384 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
2385 (syms_of_xdisp): DEFVAR_BOOL it.
2386 (make_cursor_line_fully_visible, try_cursor_movement)
2387 (try_window_id): Use it.
2388
2389 2004-11-12 Kim F. Storm <storm@cua.dk>
2390
2391 * dispextern.h (struct glyph_row): New member extra_line_spacing.
2392 (struct it): New member max_extra_line_spacing.
2393 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
2394 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
2395 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
2396 part of last line is only extra line spacing (so the text on the
2397 line is fully visible). Use helper macros.
2398 Add W arg (to use them). All callers changed.
2399 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
2400 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2401
2402 * window.c (window_scroll_pixel_based, Frecenter):
2403 Use move_it_vertically_backward directly.
2404 (Frecenter): Fix calculation of new start pos for negative arg.
2405 Before, the new start pos was sometimes chosen too far back, so
2406 the last line became only partially visible, and thus would be
2407 either only semi-visible or automatically scrolled to the middle
2408 of the window by redisplay.
2409
2410 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
2411 (move_it_vertically_backward): Don't recure to move further back.
2412 (move_it_vertically): Remove superfluous condition.
2413 (move_it_by_lines): Clear last_height when moved 0 lines.
2414 (resize_mini_window): Use it.max_extra_line_spacing.
2415 (display_tool_bar_line): Clear row->extra_line_spacing.
2416 (try_scrolling): Use move_it_vertically_backward directly.
2417 (redisplay_window): Likewise.
2418 (compute_line_metrics): Set row->extra_line_spacing.
2419 (display_line, display_string): Likewise.
2420 (x_produce_glyphs): Update it->max_extra_line_spacing.
2421
2422 * xmenu.c (pop_down_menu): Return nil.
2423
2424 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2425
2426 * xmenu.c (x_menu_wait_for_event): New function.
2427 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
2428 to handle timers.
2429 (popup_widget_loop): Add argument do_timers.
2430 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
2431 do_timers to popup_widget_loop.
2432 (xmenu_show): Call XMenuActivateSetWaitFunction so that
2433 x_menu_wait_for_event is called by XMenuActivate.
2434 (create_and_show_popup_menu): Pass 1 for do_timers to
2435 popup_get_selection.
2436 (pop_down_menu): New function.
2437 (popup_get_selection, popup_widget_loop): Unwind protect to
2438 pop_down_menu.
2439 (popup_widget_loop): Add argument widget.
2440 (create_and_show_popup_menu, create_and_show_dialog): Pass new
2441 argument widget to popup_widget_loop.
2442
2443 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2444
2445 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
2446
2447 2004-11-09 Kim F. Storm <storm@cua.dk>
2448
2449 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
2450 Fix various comments referring to XEvents instead of input events.
2451 (x_queue_event): Fix format strings.
2452 (x_stop_queuing_selection_requests): Likewise.
2453
2454 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
2455 (pint2hrstr): Add extra braces to silence compiler.
2456
2457 * print.c (print_object): Fix format string.
2458
2459 * lread.c (read1): Fix next_char matching.
2460
2461 * lisp.h (Fdelete): Add EXFUN.
2462 (replace_range_2): Add prototype.
2463
2464 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
2465
2466 * intervals.h (NULL_INTERVAL_P): Add separate version when
2467 ENABLE_CHECKING is not defined to silence compiler.
2468 (compare_string_intervals): Add prototype.
2469
2470 * fringe.c (destroy_fringe_bitmap): Fix return type.
2471 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2472
2473 * emacs.c (Fdump_emacs): Fix format string.
2474
2475 * doc.c: Include <ctype.h>.
2476 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
2477
2478 * data.c (store_symval_forwarding): Remove unused variables.
2479
2480 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
2481
2482 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2483
2484 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
2485 to ${OLDXMENU}.
2486
2487 2004-11-09 Kim F. Storm <storm@cua.dk>
2488
2489 * process.c (Fmake_network_process): Remove kludge for interrupted
2490 connects on BSD. If connect is interrupted, just close socket and
2491 start over rather than sleeping and retry with same socket.
2492
2493 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2494
2495 * .cvsignore: Add buildobj.lst.
2496
2497 * doc.c: New variable Vbuild_files.
2498 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
2499 file names from buildobh.lst. Only attach docstrings from files
2500 that are in Vbuild_files.
2501 (syms_of_doc): Defvar Vbuild_files.
2502
2503 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
2504 and w32*.o.
2505 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
2506 (mostlyclean): Rm buildobj.lst
2507
2508 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
2509 is linked.
2510
2511 2004-11-09 Kim F. Storm <storm@cua.dk>
2512
2513 * fringe.c (update_window_fringes): Update fringe bitmaps if
2514 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
2515 also update previous row to get rid of misc. artifacts.
2516
2517 2004-11-08 Kim F. Storm <storm@cua.dk>
2518
2519 * xdisp.c (fast_find_position): Fix start pos if header line present.
2520 (note_mouse_highlight): Clear mouse face if we move out of text area.
2521
2522 2004-11-08 Eli Zaretskii <eliz@gnu.org>
2523
2524 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
2525 Don't include <sys/time.h> explicitly.
2526 Include <stdio.h> unconditionally, not just on MacOS.
2527
2528 2004-11-08 Kenichi Handa <handa@m17n.org>
2529
2530 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
2531 don't pay attention to '\' before '*'.
2532 (fontset_pattern_regexp): Change the meaning of the second arg.
2533 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
2534 (check_fontset_name): Try NAME as literal at first, and if it
2535 failes, try NAME as pattern.
2536
2537 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2538
2539 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
2540
2541 2004-11-07 Andreas Schwab <schwab@suse.de>
2542
2543 * lisp.h (Fmsdos_downcase_filename): Declare.
2544 * dired.c (Fmsdos_downcase_filename): Don't declare here.
2545 * fileio.c: Likewise.
2546
2547 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2548
2549 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
2550 comparisons with integers instead of Lisp_Object address.
2551 (Fmsdos_set_keyboard): Declare argument allkeys.
2552
2553 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
2554
2555 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
2556 int/Lisp_Object mixup.
2557
2558 * fileio.c: Ditto.
2559
2560 2004-11-06 Steven Tamm <steventamm@mac.com>
2561
2562 * editfns.c: Need to include sys/time.h before resource.h on darwin.
2563
2564 2004-11-06 Richard M. Stallman <rms@gnu.org>
2565
2566 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
2567
2568 * xfaces.c (merge_named_face): GCPRO the face_name in the
2569 named_merge_point struct that we make.
2570 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
2571
2572 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
2573 before deciding whether to inactivate mark.
2574
2575 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
2576
2577 * config.in: Regenerate (add HAVE_GETRUSAGE).
2578 * editfns.c (Fget_internal_run_time): New function.
2579 (syms_of_data): Defsubr it.
2580 * fns.c (sxhash): As far as possible, merge calculation of
2581 hash code for symbols and strings.
2582
2583 2004-11-06 Eli Zaretskii <eliz@gnu.org>
2584
2585 * frame.c (syms_of_frame): Fix the example in the doc string.
2586
2587 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2588
2589 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
2590
2591 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
2592 (create_and_show_dialog): Revert change from 2004-10-31.
2593
2594 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
2595
2596 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
2597
2598 2004-11-05 Kim F. Storm <storm@cua.dk>
2599
2600 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
2601
2602 * fileio.c (Ffile_modes): Doc fix.
2603 (auto_save_1): Check for Ffile_modes nil value.
2604
2605 2004-11-05 Kim F. Storm <storm@cua.dk>
2606
2607 * xselect.c (struct selection_event_queue, selection_queue)
2608 (x_queue_selection_requests, x_queue_event)
2609 (x_start_queuing_selection_requests)
2610 (x_stop_queuing_selection_requests): Add new queue for selection
2611 input events to replace previous XEvent queue in xterm.c.
2612 (queue_selection_requests_unwind): Adapt to new queue.
2613 (x_reply_selection_request): Adapt to new queue.
2614 Unexpect wait_object in case of x errors (memory leak).
2615 (x_handle_selection_request, x_handle_selection_clear): Make static.
2616 (x_handle_selection_event): New function. May queue selection events.
2617 (wait_for_property_change_unwind): Use save_value instead of cons.
2618 Clear property_change_reply_object.
2619 (wait_for_property_change): Abort if already waiting.
2620 Use save_value instead of cons for unwind data.
2621 (x_handle_property_notify): Skip events already arrived, but don't
2622 free them, as "arrived" field is checked by wait_for_property_change,
2623 and it will be freed by unwind or explicit unexpect_property_change.
2624 (x_get_foreign_selection): Add to new queue.
2625 (receive_incremental_selection): Don't unexpect wait_object when done
2626 as it has already been freed by previous wait_for_property_change.
2627
2628 * xterm.h (x_start_queuing_selection_requests)
2629 (x_stop_queuing_selection_requests, x_handle_selection_request)
2630 (x_handle_selection_clear): Remove prototypes.
2631 (x_handle_selection_event): Add prototype.
2632
2633 * xterm.c (handle_one_xevent): Don't queue X selection events
2634 here, it may be too late if we start queuing after we have already
2635 stored some selection events into the kbd buffer.
2636 (struct selection_event_queue, queue, x_queue_selection_requests)
2637 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
2638 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
2639 (x_catch_errors_unwind): Block input around final XSync.
2640
2641 * keyboard.h (kbd_buffer_unget_event): Add prototype.
2642
2643 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
2644 (kbd_buffer_unget_event): New function.
2645 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
2646 and use x_handle_selection_event.
2647 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
2648
2649 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2650
2651 * xselect.c (TRACE3): New debug macro.
2652 (x_reply_selection_request): Use it.
2653 (receive_incremental_selection): In call to TRACE0, the name of
2654 a symbol is in xname.
2655
2656 2004-11-05 Kim F. Storm <storm@cua.dk>
2657
2658 * fontset.c (fontset_pattern_regexp): Use unsigned char.
2659
2660 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2661
2662 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
2663
2664 * gtkutil.h (use_old_gtk_file_dialog): Declare.
2665
2666 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
2667 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
2668 * xfns.c (syms_of_xfns): ... to here.
2669
2670 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
2671 it doesn't start with /.
2672
2673 2004-11-04 Kenichi Handa <handa@m17n.org>
2674
2675 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
2676 treat it as a literal character.
2677
2678 2004-11-03 Kim F. Storm <storm@cua.dk>
2679
2680 * .gdbinit (ppt): New function.
2681
2682 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2683
2684 * xterm.c (x_window_to_scroll_bar): Only call
2685 xg_get_scroll_id_for_window if toolkit scroll bars are used.
2686
2687 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
2688 of save.
2689
2690 2004-11-02 Andreas Schwab <schwab@suse.de>
2691
2692 * window.c (Fscroll_right): Fix last change.
2693
2694 2004-11-02 Kim F. Storm <storm@cua.dk>
2695
2696 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
2697
2698 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2699
2700 * callproc.c (Fcall_process): Block input around vfork.
2701
2702 2004-11-02 Kim F. Storm <storm@cua.dk>
2703
2704 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
2705 (syms_of_eval): Defsubr it.
2706
2707 2004-11-02 Richard M. Stallman <rms@gnu.org>
2708
2709 * insdel.c (replace_range_2): New function.
2710
2711 * casefiddle.c (casify_region): Handle changes in byte-length
2712 using replace_range_2.
2713
2714 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
2715
2716 * xdisp.c (back_to_previous_visible_line_start):
2717 Subtract 1 from pos when checking previous newline for invisibility.
2718
2719 * window.c (window_scroll_pixel_based): Update preserve_y
2720 for header line if any.
2721 (Fscroll_left, Fscroll_right): Don't call interactive_p;
2722 use a new second argument instead.
2723
2724 * eval.c (Fcall_interactive_p): New function.
2725 (interactive_p): Don't test INTERACTIVE here.
2726 (Finteractive_p): Doc fix.
2727
2728 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
2729
2730 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2731
2732 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
2733 comparing font names.
2734
2735 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2736
2737 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
2738 Fx_file_dialog if only directories should be read.
2739
2740 * lisp.h: Fx_file_dialog takes 5 parameters.
2741
2742 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
2743 Add parameter only_dir_p.
2744 In Motif version, don't put DEFAULT_FILENAME in filter part of the
2745 dialog, just text field part. Do not add DEFAULT_FILENAME
2746 to list of files if it isn't there.
2747 In GTK version, pass only_dir_p parameter to xg_get_file_name.
2748
2749 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
2750 Check only_dir_p instead of comparing prompt to "Dired". When using
2751 a save dialog, add option kNavDontConfirmReplacement, change title
2752 to "Enter name", change text for save button to "Ok".
2753
2754 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
2755 Check only_dir_p instead of comparing prompt to "Dired".
2756
2757 * gtkutil.c (xg_get_file_with_chooser)
2758 (xg_get_file_with_selection): New functions, only defined ifdef
2759 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
2760 respectively.
2761 (xg_get_file_name): Add parameter only_dir_p.
2762 Call xg_get_file_with_chooser or xg_get_file_with_selection
2763 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
2764 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
2765
2766 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2767
2768 * config.in: Rebuild (added HAVE_GTK_FILE_*).
2769
2770 2004-11-01 Kim F. Storm <storm@cua.dk>
2771
2772 * process.c (connect_wait_mask, num_pending_connects):
2773 Only declare and use them if NON_BLOCKING_CONNECT is defined.
2774 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
2775 (IF_NON_BLOCKING_CONNECT): New helper macro.
2776 (wait_reading_process_output): Only declare and use local vars
2777 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
2778
2779 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
2780
2781 * w32term.c (x_scroll_run): Delete region objects after use.
2782
2783 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2784
2785 * xmenu.c: Add prototypes for forward function declarations.
2786 (popup_get_selection): Remove parameter do_timers, remove call to
2787 timer_check.
2788 (create_and_show_popup_menu, create_and_show_dialog):
2789 Remove parameter do_timers from call to popup_get_selection.
2790
2791 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
2792 tool_bar_items and assign the result to f->tool_bar_items if
2793 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
2794 tool_bar_items to assignment of result.
2795
2796 * atimer.c (alarm_signal_handler): Do not call set_alarm if
2797 pending_atmers is non-zero.
2798
2799 2004-10-31 Kim F. Storm <storm@cua.dk>
2800
2801 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
2802
2803 2004-10-28 Will <will@glozer.net>
2804
2805 * macterm.c: allow user to assign key modifiers to the Mac Option
2806 key via a 'mac-option-modifier' variable.
2807
2808 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2809
2810 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
2811 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
2812 (x_handle_selection_request, x_handle_selection_clear)
2813 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2814
2815 2004-10-28 Richard M. Stallman <rms@gnu.org>
2816
2817 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2818
2819 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2820
2821 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
2822
2823 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
2824 comment-starter over a 1-char one.
2825
2826 2004-10-27 Richard M. Stallman <rms@gnu.org>
2827
2828 * xdisp.c (get_next_display_element): In mode lines,
2829 treat newline and tab like other control characters.
2830
2831 * editfns.c (Fmessage): Doc fix.
2832
2833 * indent.c (vmotion): When moving up, check the newline before.
2834 Make prevline an int, not a Lisp_Object.
2835
2836 2004-10-27 Kim F. Storm <storm@cua.dk>
2837
2838 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
2839 Only allocate info and discarded tables once.
2840
2841 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
2842 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
2843 (SAFE_FREE): Test it to determine if we need to unwind to free.
2844 Remove size arg. All users changed.
2845 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
2846
2847 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2848
2849 * gtkutil.c: Put empty line between comment and function body.
2850 (xg_destroy_widgets): Rename from remove_from_container.
2851 Just destroy all widgets in list. Argument wcont removed.
2852 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2853 instead of remove_from_container.
2854 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2855 (free_frame_tool_bar): Add comment.
2856
2857 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2858 is not NULL before strcmp.
2859
2860 2004-10-26 Kim F. Storm <storm@cua.dk>
2861
2862 * callint.c (Fcall_interactively): Add 'U' code to get the
2863 up-event discarded by a previous 'k' or 'K' argument.
2864
2865 2004-10-26 David Kastrup <dak@gnu.org>
2866
2867 * buffer.c (syms_of_buffer): Fix a few typos.
2868
2869 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2870
2871 * xsmfns.c: Put empty line between comment and function body.
2872 Use two spaces before comment end.
2873
2874 2004-10-25 Kenichi Handa <handa@m17n.org>
2875
2876 * fontset.c (fontset_pattern_regexp): Optimize for the case that
2877 PATTERN is full XLFD.
2878
2879 2004-10-24 Kenichi Handa <handa@m17n.org>
2880
2881 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2882
2883 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2884 (regex_compile): Return REG_ERANGEX if appropriate.
2885
2886 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2887
2888 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2889
2890 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2891
2892 * xterm.h (x_output): New member `xic_base_fontname'.
2893 (FRAME_XIC_BASE_FONTNAME): New macro.
2894 (xic_free_xfontset): Declare.
2895
2896 * xfns.c (xic_create_xfontset): Share fontsets between frames
2897 based on base_fontname.
2898 (xic_free_xfontset): New function.
2899 (free_frame_xic): Use it.
2900 (xic_set_xfontset): Ditto.
2901
2902 * xterm.c (xim_destroy_callback): Ditto.
2903
2904
2905 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
2906
2907 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2908
2909 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2910
2911 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2912 XSync.
2913
2914 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2915 New variables and constant.
2916 (main): Calculate heap_bss_diff. If we are dumping and the
2917 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2918 and exec ourself again.
2919 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2920 print a warning.
2921
2922 * lastfile.c: Make my_endbss and my_endbss_static available on all
2923 platforms.
2924
2925 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2926 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2927
2928 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
2929
2930 * data.c (Flocal_variable_if_set_p): Doc fix.
2931
2932 2004-10-19 Jason Rumney <jasonr@gnu.org>
2933
2934 * w32.c (init_environment): Set emacs_dir correctly when running
2935 emacs from the build directory.
2936
2937 2004-10-19 Richard M. Stallman <rms@gnu.org>
2938
2939 * editfns.c (Fdelete_and_extract_region):
2940 If region is empty, return null string.
2941
2942 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2943
2944 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
2945 and canon_width.
2946 (xg_frame_cleared): Remove.
2947
2948 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2949 (xg_find_top_left_in_fixed): Remove.
2950 (xg_create_scroll_bar): Put an event box widget between
2951 the scroll bar widget and the edit widget.
2952 (xg_show_scroll_bar): Show the parent widget (the event box).
2953 (xg_remove_scroll_bar): Destroy parent (the event box) also.
2954 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2955 Move the parent (the event box) widget inside the fixed widget.
2956 Move window clear to xterm.c.
2957
2958 * gtkutil.h (xg_frame_cleared): Remove.
2959
2960 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
2961 (x_scroll_bar_create, XTset_vertical_scroll_bar):
2962 Remove arguments left and width to xg_update_scrollbar_pos.
2963 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2964
2965 2004-10-19 Kenichi Handa <handa@m17n.org>
2966
2967 * xdisp.c (display_mode_element): Fix display of wide chars.
2968
2969 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2970
2971 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2972 gdk_window_clear and move gdk_window_process_all_updates after
2973 clear so events are sent to the X server in correct order.
2974
2975 2004-10-18 Kenichi Handa <handa@m17n.org>
2976
2977 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2978 comparing font names.
2979 (fs_query_fontset): Use fast_string_match for comparing fontset names.
2980 (list_fontsets): Likewise.
2981
2982 * search.c (fast_string_match_ignore_case): New function.
2983
2984 * lisp.h (fast_string_match_ignore_case): Extern it.
2985
2986 2004-10-17 Kim F. Storm <storm@cua.dk>
2987
2988 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2989 than bitmap if there is not left fringe.
2990 (get_overlay_arrow_glyph_row): Also used on windows system.
2991 (display_line): Display overlay string if no left fringe.
2992
2993 2004-10-16 Jason Rumney <jasonr@gnu.org>
2994
2995 * w32fns.c (w32_font_match): Encode font name being matched.
2996
2997 2004-10-16 Richard M. Stallman <rms@gnu.org>
2998
2999 * window.c (Fspecial_display_p): Doc fix.
3000
3001 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3002
3003 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
3004 Don't ignore menus, because where-is-internal already does it for us.
3005
3006 2004-10-15 Kim F. Storm <storm@cua.dk>
3007
3008 * xdisp.c (redisplay_window): Only update fringes and vertical
3009 border on window frames.
3010
3011 2004-10-14 Andreas Schwab <schwab@suse.de>
3012
3013 * m/ia64.h (DATA_SEG_BITS): Don't define.
3014
3015 2004-10-14 Kim F. Storm <storm@cua.dk>
3016
3017 * xterm.h: Include Xutil.h after keysym.h to work around bug
3018 in some X versions.
3019
3020 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
3021
3022 * fns.c (map_char_table): Add missing gcpros.
3023
3024 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
3025
3026 * keymap.c (get_keymap): An autoload form is not a keymap.
3027
3028 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
3029
3030 2004-10-13 Kim F. Storm <storm@cua.dk>
3031
3032 * callproc.c (Fcall_process): Simplify handling of display arg.
3033 Resume `display_on_the_fly' once a coding system is determined.
3034
3035 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
3036
3037 2004-10-12 Kim F. Storm <storm@cua.dk>
3038
3039 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
3040 caller, such as call-process, is not going to poll for input.
3041 (calc_line_height_property): Handle case where it->object is nil.
3042
3043 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
3044
3045 2004-10-12 Kenichi Handa <handa@m17n.org>
3046
3047 * xdisp.c (get_next_display_element):
3048 If unibyte_display_via_language_environment is zero, display 8-bit
3049 chars in octal in unibyte buffer.
3050
3051 2004-10-12 Kim F. Storm <storm@cua.dk>
3052
3053 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
3054 are no ordinary bindings.
3055
3056 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3057
3058 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
3059
3060 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3061
3062 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
3063 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
3064 (make_mac_frame): Add BLOCK_INPUT around the making of a
3065 terminal frame.
3066 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
3067 * macgui.h (mktime): Use emacs_mktime.
3068 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
3069 Make a cancel file-open dialog be like C-g.
3070 * mac.c (mktime): Use emacs_mktime.
3071 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
3072 (Fmac_paste_function): Add better error handling for carbon cut/paste.
3073
3074 2004-10-10 Kim F. Storm <storm@cua.dk>
3075
3076 * keyboard.c (timer_resume_idle): New function to resume idle
3077 timer without resetting timers on the idle list.
3078 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
3079 (timer_start_idle, timer_stop_idle): Declare static.
3080 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
3081
3082 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
3083
3084 2004-10-08 Steven Tamm <steventamm@mac.com>
3085
3086 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
3087 * macterm.c (mac_check_for_quit_char): Remove warning for using
3088 NULL where 0 should be used.
3089 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
3090 objc/malloc.h
3091 * mac.c: Include time.h for Tiger compatibility.
3092
3093 2004-10-07 Kim F. Storm <storm@cua.dk>
3094
3095 * xdisp.c (redisplay_window): Fix flicker on vertical line between
3096 windows. Update vertical line after drawing window fringes, but
3097 only if actually drawing any bitmaps--or there is no fringe.
3098
3099 * xterm.c (x_update_window_end): Likewise.
3100 * macterm.c (x_update_window_end): Likewise.
3101 * w32term.c (x_update_window_end): Likewise.
3102
3103 * fringe.c (draw_window_fringes): Return value now indicates if
3104 any fringe bitmaps were redrawn (or there are no fringes).
3105
3106 * dispextern.h (draw_window_fringes): Update prototype.
3107
3108 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3109
3110 * macfns.c (mac_get_window_bounds): Add extern.
3111 (x_real_positions): Use mac_get_window_bounds.
3112
3113 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
3114 xmenu.c (YAILOM).
3115
3116 * macterm.c [!MAC_OSX]: Include Windows.h.
3117 (front_emacs_window): Rename from mac_front_window. All uses
3118 changed. Return the frontmost non-tooltip emacs window.
3119 (mac_get_window_bounds): New function.
3120 (x_calc_absolute_position): Use the difference of width and height
3121 between the inner and outer window.
3122 (x_set_offset): Specify window position by the coordinae of the
3123 outer window. Adjust the position if the title bar is completely
3124 outside the screen.
3125 (app_is_suspended, app_sleep_time): Remove unused variables.
3126 (do_app_resume, do_app_suspend): Remove their contents because
3127 window-activate/deactivate events will do the job.
3128 (do_zoom_window): Remove unused variables. Make compliant to the
3129 standard way of zooming. Set f->left_pos and f->top_pos.
3130 (XTread_socket): Don't use argument `expected'. Don't use
3131 FrontWindow to determine the clicked window. Exclude unprocessed
3132 mouseUp cases in the early stage. Add parentheses to fix operator
3133 precedence.
3134 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
3135
3136 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
3137
3138 * config.in: Regenerate.
3139
3140 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
3141 HAVE_EXECSHIELD.
3142
3143 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3144
3145 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
3146 a row if Alt or Meta has been found for that row. Also stop scanning
3147 for Keysyms for that row.
3148
3149 2004-10-04 Kim F. Storm <storm@cua.dk>
3150
3151 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
3152 to list. Include overlay arrow bitmap in return value.
3153
3154 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
3155 bars with fractional column width. If scroll bar separates two
3156 windows, move it towards the window it belongs to. Only update
3157 the padding area below the scroll bar widget when necessary,
3158 i.e. when scroll bar widget is created, moved, or resized.
3159
3160 * xdisp.c (define_frame_cursor1): Do not change frame cursor
3161 while tracking/dragging mouse.
3162 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
3163
3164 * window.c (coordinates_in_window): Relax check for cursor
3165 on vertial border between mode lines.
3166 (Fset_window_fringes): Do not allow negative widths.
3167 (Fset_window_scroll_bars): Likewise.
3168
3169 * .gdbinit (pp): Shorthand for p ARG + pr.
3170 (ff): New command: flush frame updates (X only).
3171
3172 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
3173
3174 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
3175
3176 2004-09-30 Kenichi Handa <handa@m17n.org>
3177
3178 * process.c (send_process): Free composition data.
3179
3180 * fileio.c (Finsert_file_contents): Free composition data.
3181
3182 * coding.c (code_convert_region): Don't skip ASCIIs if there are
3183 compositions to encode.
3184 (encode_coding_string): Likewise. Free composition data.
3185
3186 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
3187
3188 * coding.c (code_convert_region): Free composition data.
3189
3190 2004-09-29 Kim F. Storm <storm@cua.dk>
3191
3192 * fringe.c: Remove limit on number of bitmaps.
3193 (fringe_bitmaps, fringe_faces): Change to pointers.
3194 (max_fringe_bitmaps): New var.
3195 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
3196 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
3197
3198 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
3199 (struct glyph_row): Reorder fringe_bitmap related fields.
3200 (struct it): Likewise.
3201
3202 * w32term.c (fringe_bmp): Change to pointer.
3203 (max_fringe_bmp): New var.
3204 (w32_define_fringe_bitmap): Expand fringe_bmp.
3205 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
3206 (w32_destroy_fringe_bitmap): Likewise.
3207
3208 2004-09-29 Kim F. Storm <storm@cua.dk>
3209
3210 * fringe.c: Simplify last change.
3211 (lookup_fringe_bitmap): New function.
3212 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
3213 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
3214 Keep standard bitmaps in Vfringe_bitmaps.
3215 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
3216 (Fset_fringe_bitmap_face): Likewise.
3217
3218 * dispextern.h (lookup_fringe_bitmap): Add prototype.
3219 (valid_fringe_bitmap_p): Remove prototype.
3220
3221 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
3222
3223 2004-09-29 Kim F. Storm <storm@cua.dk>
3224
3225 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
3226 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
3227
3228 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
3229
3230 * fringe.c (Vfringe_bitmaps): New variable.
3231 (syms_of_fringe): DEFVAR_LISP it.
3232 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
3233 Change arg to Lisp_Object and fail if not an integer.
3234 (get_fringe_bitmap_name, resolve_fringe_bitmap)
3235 (destroy_fringe_bitmap): New functions.
3236 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
3237 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
3238 clear its fringe property.
3239 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
3240 Fdestroy_fringe_bitmap.
3241 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
3242 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
3243 and set fringe property. Signal error if no free slots.
3244 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
3245 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
3246
3247 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
3248 symbols with a fringe property.
3249
3250 2004-09-27 Kim F. Storm <storm@cua.dk>
3251
3252 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
3253 Doc fix. Format may now be a symbol or alist, not a cons.
3254
3255 * fringe.c (update_window_fringes): Handle new formats of
3256 indicate-buffer-boundaries (symbol or alist). No longer
3257 allow a simple cons.
3258 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
3259
3260 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3261
3262 * config.in: Rebuild.
3263
3264 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3265
3266 * config.in: Rebuild.
3267
3268 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
3269
3270 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
3271
3272 * xterm.c (x_term_init): Work around a bug in some X servers.
3273
3274 2004-09-18 Richard M. Stallman <rms@gnu.org>
3275
3276 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
3277
3278 * xdisp.c (try_window_reusing_current_matrix):
3279 Handle the case where we reach the old displayed text,
3280 out of sync with the old line boundary.
3281
3282 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
3283
3284 * fileio.c (Finsert_file_contents): Fix case of replacement in a
3285 narrowed buffer.
3286
3287 2004-09-14 Kim F. Storm <storm@cua.dk>
3288
3289 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
3290
3291 * xfaces.c (Qface_no_inherit): New var.
3292 (syms_of_xfaces): Intern and staticpro it.
3293 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
3294 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
3295 Don't increment face_change_count when face has non-nil
3296 face-no-inherit property.
3297
3298 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
3299
3300 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
3301 (Fbyte_code): Remove dead code after `wrong_type_argument'.
3302
3303 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
3304 before doing the mark_stack_check_gcpros since they're not on the stack.
3305
3306 2004-09-12 Kim F. Storm <storm@cua.dk>
3307
3308 * editfns.c (Fformat): Handle format strings with multiple text
3309 properties. Reverse text property list from the format string,
3310 so the positions are in increasing order.
3311
3312 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3313
3314 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
3315 x_uncatch_errors so that possible protocol errors are delivered.
3316
3317 2004-09-10 Eli Zaretskii <eliz@gnu.org>
3318
3319 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
3320 blockinput.h.
3321 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
3322 charset.h, and coding.h
3323 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
3324 (term.o): Depend on window.h and keymap.h.
3325 (abbrev.o): Depend on syntax.h.
3326 (callint.o): Depend on keymap.h.
3327 (casefiddle.o): Depend on charset.h and keymap.h.
3328 (category.o): Depend on keymap.h.
3329 (coding.o): Depend on dispextern.h.
3330 (cmds.o): Depend on keyboard.h and keymap.h.
3331 (dispnew.o): Depend on indent.h and intervals.h.
3332 (doc.o): Depend on keymap.h.
3333 (editfns.o): Depend on frame.h.
3334 (emacs.o): Depend on dispextern.h.
3335 (fileio.o): Don't depend on ccl.h.
3336 (filelock.o): Depend on charset.h and coding.h.
3337 (frame.o): Depend on w32term.h and macterm.h.
3338 (insdel.o): Depend on region-cache.h.
3339 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
3340 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
3341 (search.o): Depend on $(INTERVALS_SRC).
3342 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
3343 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
3344 xterm.h, w32term.h, and macterm.h.
3345 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
3346 w32term.h, and macterm.h.
3347 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
3348 region-cache.h, xterm.h, w32term.h, and macterm.h.
3349 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
3350 (data.o): Depend on frame.h.
3351 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
3352 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
3353 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
3354 (intervals.o): Depend on keymap.h.
3355
3356 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
3357 Add debugging print-out to termscript.
3358
3359 2004-09-09 Richard M. Stallman <rms@gnu.org>
3360
3361 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
3362
3363 2004-09-08 Richard M. Stallman <rms@gnu.org>
3364
3365 * window.c (Fset_window_buffer): Doc fix.
3366
3367 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
3368
3369 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
3370
3371 * minibuf.c (history_delete_duplicates): New variable.
3372 (read_minibuf): Use it.
3373 (syms_of_minibuf): Create the corresponding lisp variable.
3374
3375 2004-09-08 Kim F. Storm <storm@cua.dk>
3376
3377 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
3378 overlay just before point.
3379
3380 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
3381
3382 * buffer.h (struct buffer): Add auto_save_file_format field.
3383 * buffer.c (reset_buffer, init_buffer_once):
3384 Handle auto_save_file_format field.
3385 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
3386 `buffer-auto-save-file-format'.
3387 * fileio.c: Delete declaration for removed Vauto_save_file_format.
3388 (build_annotations): Adapt to replacement of
3389 `auto-save-file-format' with the new buffer-local variable
3390 `buffer-auto-save-file-format'.
3391 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
3392
3393 2004-09-07 Jason Rumney <jasonr@gnu.org>
3394
3395 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
3396
3397 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
3398 Handle Unicode menu titles.
3399
3400 2004-09-07 Kim F. Storm <storm@cua.dk>
3401
3402 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
3403 property from text property or overlay strings at point.
3404
3405 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3406
3407 * xmenu.c (update_submenu_strings): YAILOM.
3408 (set_frame_menubar): Make sure last_i is initialized.
3409
3410 2004-09-03 Jason Rumney <jasonr@gnu.org>
3411
3412 * w32menu.c (_widget_value): Add lname and lkey.
3413 (digest_single_submenu): Set lname and lkey in widget_value
3414 instead of name and key.
3415 (update_submenu_strings): New function.
3416 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3417 call update_submenu_strings.
3418
3419 * w32menu.c (globals_of_w32menu): Check for Unicode API.
3420 (digest_single_submenu, w32_menu_show): Encode menu strings as
3421 UTF-8 if Unicode API is available.
3422 (utf8to16): New function.
3423 (add_menu_item): Use it when calling Unicode API.
3424
3425 2004-09-03 Kim F. Storm <storm@cua.dk>
3426
3427 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
3428 in overlay or text-property strings; set cursor on corresponding
3429 glyph rather than at end of the string.
3430
3431 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3432
3433 * macfns.c (x_real_positions): Save the current window port and
3434 set a new one before obtaining the global coordinate.
3435 Use FRAME_MAC_WINDOW.
3436 (x_set_name, x_set_title): Encode title to UTF8.
3437 Use SetWindowTitleWithCFString.
3438 (Fx_server_version): Get correct OS version.
3439
3440 * macmenu.c (add_menu_item): Remove unused variable `i'.
3441 Don't let separator items destroy refence constants of other menu items.
3442
3443 * macterm.c (x_update_end): Move SetPortWindowPort to inside
3444 BLOCK_INPUT.
3445 (x_set_offset): Use FRAME_MAC_WINDOW.
3446
3447 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
3448 nontext_cursor if it is on a scroll bar.
3449
3450 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
3451 Carbon support.
3452 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
3453 Use LIBS_CARBON.
3454
3455 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3456
3457 * xfns.c (x_set_name_internal): New function. Check if we shall call
3458 xfree before ENCODE_UTF_8.
3459 (x_set_name, x_set_title): Call x_set_name_internal.
3460
3461 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
3462
3463 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
3464 reload it.
3465
3466 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3467
3468 * macmenu.c (_widget_value): Add lname and lkey.
3469 (single_submenu): Set lname and lkey in widget_value
3470 instead of name and key.
3471 (update_submenu_strings): New function.
3472 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3473 call update_submenu_strings.
3474
3475 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
3476 instead of name and key.
3477 (update_submenu_strings): New function.
3478 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3479 call update_submenu_strings.
3480
3481 * gtkutil.h (_widget_value): Added lname and lkey.
3482
3483 2004-08-30 Steven Tamm <steventamm@mac.com>
3484
3485 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
3486 by using different names for inner loop variables.
3487
3488 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3489
3490 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
3491 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
3492
3493 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
3494 tool bar items is 0.
3495
3496 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3497
3498 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
3499 strings in menu items.
3500 (single_submenu): Use ENCODE_MENU_STRING
3501 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
3502 button release isn't passed to event loop
3503 (add_menu_item): Use SetMenuItemWithCFString
3504
3505 2004-08-26 Steven Tamm <steventamm@mac.com>
3506
3507 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
3508 tool-bar/menu click
3509 * macfns.c (Fx_file_dialog): Implemented using NavServices
3510
3511 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3512
3513 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
3514
3515 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3516 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3517 (x_top_window_to_frame): Return 0 if wdesc is None.
3518
3519 2004-08-22 Richard M. Stallman <rms@gnu.org>
3520
3521 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
3522 HAVE_TERMIOS]: If there's no char for this signal, drop through
3523 and use system calls.
3524
3525 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
3526
3527 2004-08-20 Kim F. Storm <storm@cua.dk>
3528
3529 * process.c (wait_reading_process_output): Rename from
3530 wait_reading_process_input. All uses changed.
3531 (wait_reading_process_output_1): Rename from
3532 wait_reading_process_input_1. All uses changed.
3533
3534 * dispnew.c (Fsleep_for): Remove obsolete code.
3535
3536 2004-08-20 Kenichi Handa <handa@m17n.org>
3537
3538 * syntax.c (skip_chars): Fix for unibyte case.
3539
3540 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3541
3542 * syntax.c (char_quoted): Mixup byte/char pos.
3543 (back_comment): Fixup globals in all cases.
3544
3545 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3546
3547 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
3548 passing it to gtk_window_set_title.
3549
3550 2004-08-19 Kim F. Storm <storm@cua.dk>
3551
3552 * process.c (wait_reading_process_input): Clean up.
3553 Add wait_for_cell, wait_proc, and just_wait_proc args
3554 to avoid overloading `read_kbd' and `do_display' args.
3555 Change read_kbd arg to int. All callers changed.
3556
3557 * process.c (process_send_signal): Use CDISABLE.
3558
3559 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
3560
3561 2004-08-18 Kim F. Storm <storm@cua.dk>
3562
3563 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
3564 forward to wait_reading_process_input via DO_DISPLAY arg.
3565 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
3566 object, only process output from that process; also inhibit
3567 running timers if DO_DISPLAY==-2.
3568
3569 2004-08-17 Kim F. Storm <storm@cua.dk>
3570
3571 * process.c (process_send_signal): Fix last change--use
3572 _POSIX_VDISABLE instead of CVDISABLE when available.
3573
3574 2004-08-16 Richard M. Stallman <rms@gnu.org>
3575
3576 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
3577 Set VQUIT and VINTR chars to the standard ones if they are unset.
3578 [AIX]: Don't do that here. And don't force VINTR to standard
3579 when SIGNALS_VIA_CHARACTERS.
3580
3581 * process.c (process_send_signal)
3582 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
3583 Do nothing if the character is CVDISABLE.
3584
3585 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
3586
3587 * intervals.c (move_if_not_intangible):
3588 Force POSITION to be between BEGV and ZV.
3589
3590 2004-08-14 John Paul Wallington <jpw@gnu.org>
3591
3592 * buffer.c (Frestore_buffer_modified_p): Doc fix.
3593
3594 * fileio.c (Fread_file_name): Doc fix.
3595
3596 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3597
3598 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
3599
3600 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
3601
3602 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
3603
3604 * keyboard.c: Declare Qdisabled_command_function instead of
3605 Qdisabled_command_hook.
3606 (Fcommand_execute): Use Qdisabled_command_function instead of
3607 Qdisabled_command_hook.
3608 (syms_of_keyboard): Ditto.
3609
3610 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
3611
3612 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
3613 (syms_of_keymap) <key-translation-map>: Doc fixes.
3614
3615 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
3616
3617 * window.c (window_list_1): YAILOM.
3618
3619 * fileio.c (make_temp_name): Handle multibyte prefixes.
3620
3621 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
3622
3623 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3624 Doc fix.
3625
3626 2004-08-03 Kenichi Handa <handa@m17n.org>
3627
3628 * coding.c (decode_coding_string): Adjust coding->consumed, and
3629 etc. with shrinked_bytes.
3630
3631 2004-08-03 Kim F. Storm <storm@cua.dk>
3632
3633 * indent.c (compute_motion): Fix check for full width window
3634 in non-window case. Do not count left truncation glyph on
3635 window systems.
3636
3637 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
3638
3639 * data.c (Finteractive_form): Doc fix.
3640
3641 2004-08-02 Kim F. Storm <storm@cua.dk>
3642
3643 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
3644 properly accounting for continuation glyph on non-window systems.
3645 (Fcompute_motion): Use actual window width if WIDTH is nil, and
3646 actual window width/height if TOPOS is nil, properly accounting for
3647 continuation glyphs on non-window systems, and optional header lines.
3648 (vmotion): Let compute_motion calculate actual window width.
3649
3650 * window.c (window_scroll_line_based): Let compute_motion
3651 calculate actual window width.
3652
3653 2004-08-02 Kim F. Storm <storm@cua.dk>
3654
3655 * process.c (read_process_output): Use whole read buffer.
3656 Don't trigger adaptive read buffering on errors.
3657
3658 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
3659
3660 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
3661
3662 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
3663
3664 * callint.c (Fcall_interactively): Doc fix.
3665
3666 2004-07-30 Richard M. Stallman <rms@gnu.org>
3667
3668 * abbrev.c (Fexpand_abbrev): Undo previous change.
3669
3670 2004-07-30 Kim F. Storm <storm@cua.dk>
3671
3672 * editfns.c (Fformat): Allocate extra (dummy) element in info.
3673
3674 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
3675
3676 * eval.c (Fdefvar, Fdefconst): Doc fixes.
3677
3678 2004-07-27 Kim F. Storm <storm@cua.dk>
3679
3680 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
3681 we have ensured that the glyph fits on the current line (or returned
3682 MOVE_LINE_CONTINUED otherwise).
3683
3684 2004-07-26 Kim F. Storm <storm@cua.dk>
3685
3686 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
3687 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
3688 if target position is at end of display line but char is not a newline.
3689
3690 2004-07-25 Richard M. Stallman <rms@gnu.org>
3691
3692 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
3693 instead of ON_VERTICAL_BORDER, when on scroll bar.
3694 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
3695
3696 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
3697
3698 * window.c (Fcoordinates_in_window_p):
3699 Take account of FRAME_INTERNAL_BORDER_WIDTH.
3700
3701 * alloc.c (check_cons_list): New function (contents commented out).
3702
3703 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
3704
3705 * xfaces.c (Fcolor_supported_p): Doc fix.
3706
3707 * frame.c (Fselect_frame, Fset_frame_selected_window)
3708 (Fframe_visible_p, Fraise_frame): Doc fixes.
3709
3710 2004-07-24 Richard M. Stallman <rms@gnu.org>
3711
3712 * keyboard.h (not_single_kboard_state): Declare.
3713
3714 * fileio.c (Fwrite_region): Doc fix.
3715
3716 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
3717
3718 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
3719 only when a real abbrev is present.
3720
3721 * xfns.c (x_icon_verify): New function.
3722 (Fx_create_frame): Use it.
3723
3724 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
3725
3726 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
3727
3728 2004-07-21 Kim F. Storm <storm@cua.dk>
3729
3730 * window.h (struct glyph_matrix): New members nrows_scale_factor
3731 and ncols_scale_factor.
3732
3733 * window.c (make_window): Initialize nrows_scale_factor and
3734 ncols_scale_factor members.
3735
3736 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
3737 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
3738 (required_matrix_height): Apply nrows_scale_factor.
3739 (required_matrix_width): Apply ncols_scale_factor.
3740
3741 * xdisp.c (display_line): Increment nrows_scale_factor and set
3742 fonts_changed_p if past last allocated row.
3743 (append_glyph, append_composite_glyph, produce_image_glyph)
3744 (append_stretch_glyph): Increment ncols_scale_factor and set
3745 fonts_changed_p if current area is full.
3746
3747 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3748
3749 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
3750
3751 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
3752
3753 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
3754 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
3755 (Fset_window_start, Fscroll_up, Fscroll_down)
3756 (Fother_window_for_scrolling, Fscroll_other_window)
3757 (Fsave_window_excursion, Fset_window_vscroll)
3758 (syms_of_window) <window-size-fixed>: Doc fixes.
3759
3760 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3761
3762 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
3763 ENCODE_SYSTEM for filenames.
3764
3765 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3766
3767 * mac.c (sys_select): Block input around call to
3768 ReceiveNextEvent to prevent breakage. Correctly handle
3769 blocking on event queue only by calling ReceiveNextEvent
3770 instead of select (since GUI events aren't on an fd).
3771 (sys_read): Remove function
3772 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
3773
3774 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3775
3776 * mac.c (sys_select): Redo sys_select to use alarm-based
3777 polling instead of 1 sec timeouts (like solaris).
3778
3779 * macterm.c (x_make_frame_visible): Comment in polling on
3780 frame creation.
3781
3782 * keyboard.c: Undef SIGIO on Carbon
3783
3784 * atimer.c (alarm_signal_handler): Call alarm handlers after
3785 scheduling.
3786
3787 * eval.c (Feval): Remove quit_char test
3788
3789 * process.c (wait_reading_process_input): Remove clearing
3790 stdin for select call on process input.
3791
3792 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
3793
3794 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
3795 capitalization error in docstring.
3796
3797 2004-07-17 Juanma Barranquero <lektu@terra.es>
3798
3799 * keyboard.c (not_single_kboard_state): Do nothing unless
3800 MULTI_KBOARD is defined.
3801
3802 2004-07-17 Richard M. Stallman <rms@gnu.org>
3803
3804 * window.c (coordinates_in_window): Inside the window but outside
3805 its box to the L or R, return ON_VERTICAL_BORDER.
3806 (window_list_1): Rotate the list to start with WINDOW.
3807
3808 * print.c (print_preprocess): Test for print_depth at limit
3809 before entering in being_printed.
3810
3811 * keyboard.c (not_single_kboard_state): New function.
3812 (stuff_buffered_input): Now no-op only if no SIGTSTP.
3813
3814 * frame.c (Fdelete_frame): If we're in single_bboard_state on
3815 this kboard, and we delete its last frame, go to any_kboard_state.
3816
3817 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
3818
3819 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3820
3821 * w32fns.c (Fx_file_dialog): Encode strings in system coding
3822 system before passing them to OS functions for display.
3823
3824 2004-07-15 David Kastrup <dak@gnu.org>
3825
3826 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
3827 Apparently fixes an abort condition.
3828
3829 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
3830
3831 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
3832 instead of a cons.
3833
3834 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3835
3836 * keyboard.c (echo_dash): Do nothing if there already is a dash
3837 at the end of the echo string.
3838
3839 2004-07-12 Kim F. Storm <storm@cua.dk>
3840
3841 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3842 if GC_MARK_STACK.
3843
3844 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
3845
3846 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3847
3848 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
3849 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3850 (Freplace_buffer_in_windows, Fset_window_buffer)
3851 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3852 (syms_of_window): Expand docstring of `display-buffer-function'.
3853
3854 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
3855
3856 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3857 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3858 that time values of the type (HIGH . LOW) are considered obsolete.
3859
3860 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
3861
3862 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3863 docstring.
3864
3865 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
3866
3867 2004-07-06 John Paul Wallington <jpw@gnu.org>
3868
3869 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3870
3871 * fns.c (Fclear_string): Signal an error if STRING is not a string.
3872
3873 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3874
3875 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3876 instead of CGMainDisplayID (only in OSX 10.2 and later).
3877
3878 2004-07-04 John Paul Wallington <jpw@gnu.org>
3879
3880 * fileio.c (read_file_name_completion_ignore_case): New variable.
3881 (syms_of_fileio): Declare and initialise it.
3882 (Fread_file_name): Bind `completion-ignore-case' to respect it.
3883
3884 2004-07-03 Eli Zaretskii <eliz@gnu.org>
3885
3886 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3887 for event.x and event.y.
3888
3889 2004-07-01 Kenichi Handa <handa@m17n.org>
3890
3891 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3892 after getting a new string by pre-write-conversion.
3893
3894 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
3895
3896 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3897 (x_calc_absolute_position): Remove unused var `child'.
3898
3899 * xfaces.c (x_supports_face_attributes_p)
3900 (Fdisplay_supports_face_attributes_p): YAILOM.
3901 (tty_supports_face_attributes_p): Remove unused var `i'.
3902
3903 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3904 back_unibyte_ok.
3905
3906 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3907
3908 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3909
3910 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3911
3912 2004-06-30 Andreas Schwab <schwab@suse.de>
3913
3914 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3915 (Finit_image_library): Pass LIBRARIES through to
3916 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
3917 (lookup_image_type): Pass Qnil as second argument to
3918 Finit_image_library.
3919
3920 * lisp.h (Finit_image_library): Declare.
3921
3922 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3923
3924 * macterm.c (do_window_activate, do_window_deactivate): Remove.
3925 (XTread_socket): Send mouse button events to the toolbox
3926 dispatcher even when the mouse is grabbed. Don't process window
3927 activate events for non-Emacs windows. Replace function calls to
3928 do_window_activate and do_window_deactivate with their contents.
3929 Reset mouse grabbing status when a window is deactivated.
3930
3931 2004-06-29 Steven Tamm <steventamm@mac.com>
3932
3933 * macterm.c (mac_get_emulated_btn)
3934 (mac_event_to_emacs_modifiers): Fix emulated mouse button
3935 support to correctly mask out modifiers.
3936
3937 2004-06-29 David Kastrup <dak@gnu.org>
3938
3939 * search.c (Fset_match_data): Allow buffer before end of list
3940 which can happen if set-match-data is using a pre-consed list.
3941
3942 2004-06-28 Steven Tamm <steventamm@mac.com>
3943
3944 * macterm.c (XTread_socket): Correctly set the frame position
3945 after the window is moved.
3946
3947 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3948
3949 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3950 gpix and gmask just before return to avoid memory leak.
3951 (xg_get_image_for_pixmap): Add workaround for monochrome displays
3952 so insensitive and activated icons look ok.
3953
3954 2004-06-27 Jason Rumney <jasonr@gnu.org>
3955
3956 * w32fns.c (file_dialog_callback): Disable edit control if set
3957 to directories only on CDN_INITDONE message.
3958 (Fx_file_dialog): Default to directories only when prompt starts
3959 with "Dired".
3960
3961 2004-06-25 Kim F. Storm <storm@cua.dk>
3962
3963 * alloc.c (allocate_misc): Update total_free_markers.
3964 (free_misc): New function.
3965 (safe_alloca_unwind, free_marker): Use it.
3966
3967 * lisp.h (free_misc): Add prototype.
3968
3969 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3970
3971 2004-06-24 Richard M. Stallman <rms@gnu.org>
3972
3973 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3974 (syms_of_emacs): Lisp variables deleted.
3975
3976 2004-06-23 David Kastrup <dak@gnu.org>
3977
3978 * search.c (Freplace_match): Adjust the match-data more thoroughly
3979 when replacing strings in the buffer.
3980 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3981 a buffer, add the buffer as last element to the match data.
3982 (Fset_match_data): If an additional element of the match-data is a
3983 buffer, restore it to last_thing_searched.
3984 (save_search_regs): Save last_thing_searched as part of the match data.
3985 (restore_match_data): Restore it again.
3986
3987 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3988
3989 * keymap.c (Ftext_char_description): Doc fix.
3990 * doc.c (Fsnarf_documentation): Doc fix.
3991
3992 2004-06-22 Kim F. Storm <storm@cua.dk>
3993
3994 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3995
3996 * lisp.h (struct Lisp_Save_Value): New member dogc.
3997 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3998 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3999 (SAFE_FREE_LISP): New macro.
4000
4001 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
4002 (make_save_value): Init new dogc member.
4003 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
4004
4005 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
4006 SAFE_FREE_LISP macros.
4007
4008 2004-06-22 Kim F. Storm <storm@cua.dk>
4009
4010 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
4011 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
4012 in that memory area are unknown to GC. Add comments.
4013
4014 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
4015
4016 2004-06-21 Kim F. Storm <storm@cua.dk>
4017
4018 * lisp.h (MAX_ALLOCA): Define here.
4019 (safe_alloca_unwind): Add prototype.
4020 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
4021
4022 * alloc.c (safe_alloca_unwind): New function.
4023
4024 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
4025
4026 * charset.c (Fstring): Use SAFE_ALLOCA.
4027
4028 * coding.c (MAX_ALLOCA): Remove define.
4029
4030 * data.c (MAX_ALLOCA): Remove define.
4031 (Faset): Use SAFE_ALLOCA.
4032
4033 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
4034
4035 * fns.c (string_make_multibyte, string_to_multibyte)
4036 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
4037 (MAX_ALLOCA): Remove define.
4038 (Fbase64_encode_region, Fbase64_encode_string)
4039 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
4040 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
4041 memory leak if encoding fails.
4042
4043 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
4044
4045 2004-06-21 Eli Zaretskii <eliz@gnu.org>
4046
4047 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4048
4049 2004-06-20 Richard M. Stallman <rms@gnu.org>
4050
4051 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
4052
4053 * search.c (match_limit): Cleaner err msg when no match data available.
4054
4055 * window.c (syms_of_window): Doc fix.
4056
4057 * keyboard.c (command_loop_1): Handle values `only' and `identity'
4058 for Vtransient_mark_mode.
4059
4060 * buffer.c (syms_of_buffer): Doc fix.
4061
4062 2004-06-21 David Kastrup <dak@gnu.org>
4063
4064 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
4065 and unbinding of `case-fold-search' according to
4066 `completion-ignore-case' around calls of string-match and
4067 predicates, respectively. Should give satisfactory performance
4068 in all relevant cases.
4069
4070 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4071
4072 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
4073 clip_x/y_origin.
4074
4075 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
4076
4077 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
4078
4079 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
4080 on Mac OSX.
4081
4082 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
4083
4084 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
4085
4086 2004-06-16 Kim F. Storm <storm@cua.dk>
4087
4088 * dispextern.h (Vimage_types): Remove extern.
4089
4090 2004-06-16 Miles Bader <miles@gnu.org>
4091
4092 * image.c (lookup_image_type): Initialize image type if necessary.
4093
4094 2004-06-15 Kim F. Storm <storm@cua.dk>
4095
4096 * xdisp.c (try_cursor_movement): Exclude header line from scroll
4097 margin at top of window.
4098 (try_window_reusing_current_matrix): Calculate proper cursor position
4099 after scrolling up with non-zero scroll margin, as the old cursor
4100 position corresponds to value of PT before executing this command.
4101 (try_window_id): Consider scroll margin at bottom of window too;
4102 otherwise we fail to scroll when hl-line-mode is enabled.
4103
4104 * syntax.c (skip_chars): Only recognize [:class:] when it has the
4105 proper format and class is a lower-case word.
4106
4107 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4108
4109 * gtkutil.c (xg_get_image_for_pixmap): New function.
4110 (xg_get_gdk_pixmap_and_mask): Remove.
4111 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
4112 xg_get_gdk_pixmap_and_mask.
4113
4114 * xterm.h (struct x_display_info): Typo in comment fixed.
4115
4116 2004-06-14 Juanma Barranquero <lektu@terra.es>
4117
4118 * dispextern.h (Vimage_types): Make it conditional on
4119 HAVE_WINDOW_SYSTEM.
4120
4121 * image.c (Vimage_types): Move from xdisp.c.
4122 (Vimage_type_cache): New variable.
4123 (define_image_type): New argument indicating whether an image
4124 library was loaded; cache loaded status and return t on success,
4125 nil otherwise.
4126 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
4127 (w32_delayed_load): New function to load an image library from a
4128 list of possible filenames.
4129 (init_xpm_functions, init_png_functions, init_jpeg_functions)
4130 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
4131 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
4132 (Finit_image_library): New function, extracted from `init_image'.
4133 Try to initialize an image library on demand and cache whether we
4134 were successful or not.
4135 (syms_of_image): Initialize `Vimage_types' and
4136 `Vimage_type_cache'. Add recognized image types to Vimage_types.
4137 Export `init-image-library'.
4138 (init_image): Remove initialization of all image types, except xbm
4139 and pbm.
4140
4141 * xdisp.c (Vimage_types): Delete (moved to image.c).
4142
4143 2004-06-14 Andreas Schwab <schwab@suse.de>
4144
4145 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
4146 Avoid calling specbind when completion-regexp-list is empty.
4147
4148 2004-06-13 Richard M. Stallman <rms@gnu.org>
4149
4150 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4151 (re_wctype, re_iswctype, re_wctype_to_bit):
4152 Non-function definitions moved here from regex.c.
4153
4154 * regex.c (re_wctype, re_iswctype): Function defs longer static.
4155 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4156 (re_wctype, re_iswctype, re_wctype_to_bit):
4157 Non-function definitions moved to regex.h.
4158
4159 * window.c (Fselect_window): Doc fix.
4160
4161 * syntax.c: Include regex.h.
4162 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
4163 If requested, make a list of classes, then check the scanned
4164 chars for membership in them.
4165 (in_classes): New function.
4166 Doc fix.
4167
4168 * keyboard.c (cmd_error): Don't call any_kboard_state
4169 if inside a recursive edit level.
4170
4171 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4172
4173 * keyboard.c (command_loop): Call any_kboard_state before
4174 command_loop_2 when at top level.
4175
4176 2004-06-13 Andreas Schwab <schwab@suse.de>
4177
4178 * print.c (print_object): Always use %ld for printing EMACS_INT.
4179
4180 * keyboard.c (cancel_hourglass_unwind): Return a value.
4181 (modify_event_symbol): Always use %ld for printing EMACS_INT.
4182 (Fexecute_extended_command): Likewise.
4183
4184 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
4185 avoid clashes.
4186 (SYNTAX): Likewise.
4187 (SYNTAX_WITH_FLAGS): Likewise.
4188 (SYNTAX_MATCH): Likewise.
4189
4190 * syntax.c (char_quoted): Avoid warning about undefined operation.
4191 (find_defun_start): Likewise.
4192 (scan_lists): Likewise.
4193 (INC_FROM): Likewise.
4194 (scan_sexps_forward): Likewise.
4195
4196 * image.c: Include <ctype.h>.
4197
4198 * xfaces.c (face_attr_equal_p): Declare parameters.
4199
4200 2004-06-13 Kenichi Handa <handa@m17n.org>
4201
4202 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
4203
4204 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
4205
4206 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
4207
4208 2004-06-12 Kenichi Handa <handa@m17n.org>
4209
4210 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
4211 ccl_prog_stack_struct and update it.
4212 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
4213 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
4214 ccl->eof_ic on EOF.
4215 (ccl_debug_hook): New function.
4216 (struct ccl_prog_stack): New member eof_ic.
4217 (ccl_driver): Handle EOF in subrountine call correctly.
4218
4219 2004-06-11 Kenichi Handa <handa@m17n.org>
4220
4221 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
4222
4223 2004-06-11 Kim F. Storm <storm@cua.dk>
4224
4225 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
4226
4227 2004-06-11 Juanma Barranquero <lektu@terra.es>
4228
4229 * keyboard.c (Fposn_at_point): Doc fix.
4230
4231 2004-06-11 David Kastrup <dak@gnu.org>
4232
4233 * search.c (match_limit): Don't flag an error if match-data
4234 exceeding the allocated search_regs.num_regs gets requested, just
4235 return Qnil.
4236
4237 2004-06-08 Miles Bader <miles@gnu.org>
4238
4239 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
4240
4241 2004-06-07 Juanma Barranquero <lektu@terra.es>
4242
4243 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
4244 (Fcurrent_time_string, Fcurrent_time_zone)
4245 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
4246
4247 2004-06-07 Miles Bader <miles@gnu.org>
4248
4249 * xfaces.c (struct named_merge_point): New type.
4250 (push_named_merge_point): New function.
4251 (merge_named_face): New function.
4252 (merge_face_ref, face_at_buffer_position, face_at_string_position):
4253 Use `merge_named_face'.
4254 (merge_face_inheritance): Function removed.
4255 (merge_face_ref): Rename from `merge_face_vector_with_property'.
4256 Add new `err_msgs' and `named_merge_points' args. Return error
4257 status. Only print error messages if ERR_MSGS is true. Don't try to
4258 do :inherit attribute validation.
4259 (merge_face_heights): Handle `unspecified' in both directions.
4260 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
4261 Call `merge_face_ref' instead of `merge_face_inheritance'.
4262 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
4263 (compute_char_face, face_at_buffer_position)
4264 (face_at_string_position): Call `merge_face_ref' instead of
4265 `merge_face_vector_with_property'.
4266
4267 2004-06-07 Kenichi Handa <handa@m17n.org>
4268
4269 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
4270 the necessary places.
4271
4272 2004-06-07 Kim F. Storm <storm@cua.dk>
4273
4274 * process.c (Fdelete_process): Undo 2004-05-28 change.
4275 Instead, call status_notify also for network process.
4276 (status_message): Use process instead of status as arg.
4277 Give messages "deleted" or "connection broken by remote peer" for
4278 an exited network process.
4279 (status_notify): Change call to status_message.
4280 (read_process_output): Increase readmax to 4096. Do not increase
4281 buffer size for datagram channels (default is now large enough).
4282
4283 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4284
4285 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
4286 problem due to newly defined variable.
4287
4288 2004-06-06 Miles Bader <miles@gnu.org>
4289
4290 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
4291 immediately if non-interactive or not initialized.
4292
4293 2004-06-05 Richard M. Stallman <rms@gnu.org>
4294
4295 * minibuf.c (Fcompleting_read): Doc fix.
4296
4297 2004-06-05 Andreas Schwab <schwab@suse.de>
4298
4299 * macfns.c (x_create_tip_frame): Fix declaration after statement.
4300
4301 2004-06-05 Juanma Barranquero <lektu@terra.es>
4302
4303 * keymap.c (Fdescribe_vector): Fix docstring.
4304 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
4305
4306 2004-06-05 Miles Bader <miles@gnu.org>
4307
4308 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
4309 attributes have different values than the default face.
4310
4311 2004-06-04 Eli Zaretskii <eliz@gnu.org>
4312
4313 * xfaces.c (x_supports_face_attributes_p): Make this function
4314 conditional on HAVE_WINDOW_SYSTEM.
4315 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
4316 Don't call x_supports_face_attributes_p if it was not compiled in.
4317
4318 2004-06-04 Miles Bader <miles@gnu.org>
4319
4320 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
4321 from Ftty_supports_face_attributes_p.
4322 (x_supports_face_attributes_p): New function.
4323 (Ftty_supports_face_attributes_p): Function deleted.
4324 (Fdisplay_supports_face_attributes_p): New function.
4325 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
4326 (face_attr_equal_p): New function.
4327 (lface_equal_p): Use it.
4328
4329 2004-06-03 Juanma Barranquero <lektu@terra.es>
4330
4331 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
4332 (Vw32_color_map): Fix typo in docstring.
4333 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
4334 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
4335 Make argument names match their use in docstring.
4336
4337 2004-06-02 Juanma Barranquero <lektu@terra.es>
4338
4339 Work around bugs/problems with MinGW builds of graphics libraries
4340 called from MSVC builds of Emacs.
4341
4342 * image.c (lookup_image): Make pointer to img static.
4343 (png_read_from_memory): Disable "global" optimization.
4344
4345 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4346
4347 * eval.c (Fcondition_case): Fix usage. Simplify.
4348
4349 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
4350
4351 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4352
4353 * macfns.c: Don't include ccl.h.
4354 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
4355 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
4356 TextUtils.h.
4357 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
4358 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
4359 display height/width.
4360 (compute_tip_xy, Vx_max_tooltip_size): Declare.
4361 (unwind_create_tip_frame, compute_tip_xy): New functions.
4362 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
4363 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
4364 and last_show_tip_args.
4365
4366 * macgui.h [!MAC_OSX]: Include Gestalt.h.
4367 (Cursor, No_Cursor): New defines.
4368 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
4369 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
4370
4371 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
4372
4373 * macterm.c: Don't include Gestalt.h.
4374 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
4375 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
4376 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
4377 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
4378 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
4379 (construct_mouse_click, XTmouse_position)
4380 (x_scroll_bar_report_motion, x_calc_absolute_position)
4381 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
4382 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
4383 (note_mouse_movement): Clear the mouse face and reset the pointer
4384 shape when the pointer goes outside the frame without grabbing.
4385 (mac_front_window): New function.
4386 (mac_window_to_frame): New macro.
4387 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
4388 (do_window_activate, do_window_deactivate, do_app_resume)
4389 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
4390 (do_zoom_window, mac_do_receive_drag, XTread_socket)
4391 (mac_check_for_quit_char): Use mac_front_window and/or
4392 mac_window_to_frame.
4393 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
4394 scroll-bar click event.
4395 (mac_define_frame_cursor): Change the pointer shape.
4396 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
4397 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
4398 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
4399 (do_window_update): Don't do anything if the updated window is the
4400 tooltip window.
4401 (do_mouse_moved): Handle mouse movement events here (previously in
4402 XTread_socket). Clear the mouse face if
4403 dpyinfo->mouse_face_hidden is set.
4404 (do_os_event, do_events): Remove (now in XTread_socket).
4405 (XTread_socket): Immediately return if interrupt_input_blocked.
4406 Loop until all the events in the queue are processed.
4407 Rearrange codes for mouse grabbing. Add tooltip support. Include the
4408 contents of do_os_event and do_events. Remove mouse movement
4409 handling (now in do_mouse_moved). Add the case where
4410 Vmouse_highlight has an integer value.
4411 (NewMacWindow): Remove.
4412 (make_mac_frame): Do what NewMacWindow previously did. Don't do
4413 excess initializations.
4414 (make_mac_terminal_frame): Previous initializations in
4415 make_mac_frame are moved here.
4416 (mac_initialize_display_info):
4417 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
4418
4419 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
4420 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
4421
4422 2004-05-29 Richard M. Stallman <rms@gnu.org>
4423
4424 * lisp.h (truncate_undo_list): Update decl.
4425
4426 * alloc.c (undo_outer_limit): New variable.
4427 (syms_of_alloc): Defvar it.
4428 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
4429
4430 * undo.c (truncate_undo_list): New arg LIMITSIZE.
4431
4432 * alloc.c (lisp_align_malloc): Check for base == 0
4433 regardless of HAVE_POSIX_MEMALIGN.
4434 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
4435
4436 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4437
4438 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
4439 (marker_blocks_pending_free): Remove.
4440 (Fgarbage_collect): Sweep after cleaning up undo-lists.
4441 Mark the undo lists after claning them up.
4442 Don't free block in marker_blocks_pending_free.
4443 (mark_buffer): Don't mark undo_list.
4444 (gc_sweep): Sweep hash-tables and strings first.
4445 Do free marker blocks that are empty.
4446
4447 2004-05-28 Jim Blandy <jimb@redhat.com>
4448
4449 * regex.c (print_partial_compiled_pattern): Add missing 'break'
4450 after 'case wordend'. For symbeg and symend, print to stderr,
4451 like the other cases.
4452
4453 2004-05-28 Noah Friedman <friedman@splode.com>
4454
4455 * process.c (Fdelete_process): Do not call remove_process.
4456
4457 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4458
4459 * alloc.c (struct backtrace): Remove.
4460 (Fgarbage_collect): Use the new mark_backtrace.
4461
4462 * eval.c (mark_backtrace): New function.
4463
4464 * minibuf.c (run_exit_minibuf_hook): New function.
4465 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
4466 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
4467
4468 2004-05-27 Kim F. Storm <storm@cua.dk>
4469
4470 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
4471 over display properties, e.g. images, that replace buffer text.
4472
4473 2004-05-25 Kim F. Storm <storm@cua.dk>
4474
4475 * alloc.c (marker_blocks_pending_free): New var.
4476 (gc_sweep): Store free marker blocks on that list.
4477 (Fgarbage_collect): Free them after undo-list cleanup.
4478
4479 * process.c (wait_reading_process_input): Check connect_wait_mask
4480 before actually accepting connection in case it has already been
4481 accepted due to recursion.
4482
4483 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4484
4485 * coding.c (Fset_safe_terminal_coding_system_internal):
4486 Set suppress_error in safe_terminal_coding, not terminal_coding.
4487
4488 2004-05-22 Richard M. Stallman <rms@gnu.org>
4489
4490 * alloc.c (Fmake_string): Doc fix.
4491
4492 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
4493 and the alist pairs too.
4494
4495 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
4496
4497 * emacs.c (main): Update copyright year.
4498
4499 * fileio.c (Fread_file_name): Expand DIR if not absolute.
4500
4501 * insdel.c (del_range_2, replace_range): Don't write an anchor
4502 if the gap is empty.
4503
4504 * xdisp.c (try_scrolling): If scroll-up-aggressively or
4505 scroll-down-aggressively is small but positive, put point
4506 near the screen edge.
4507
4508 2004-05-22 Juanma Barranquero <lektu@terra.es>
4509
4510 * keymap.c (Fdefine_key): Doc fix.
4511
4512 2004-05-22 Kim F. Storm <storm@cua.dk>
4513
4514 * alloc.c (struct backtrace): Add debug_on_exit member.
4515 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
4516 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
4517 the removed cons cells.
4518 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
4519 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
4520 any cons cells pointing to unallocated stings.
4521 Do not lisp_free any marker blocks, as there may still be pointers
4522 to them from buffer undo lists at this stage of GC.
4523
4524 * keyboard.c (struct backtrace): Add debug_on_exit member.
4525 (Fcommand_execute): Clear it.
4526
4527 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
4528
4529 * intervals.c (lookup_char_property): Do not prematurely return nil.
4530
4531 2004-05-19 Jim Blandy <jimb@redhat.com>
4532
4533 Add support for new '\_<' and '\_>' regexp operators, matching the
4534 beginning and end of symbols.
4535
4536 * regex.c (enum syntaxcode): Add Ssymbol.
4537 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
4538 (re_opcode_t): New opcodes `symbeg' and `symend'.
4539 (print_partial_compiled_pattern): Print the new opcodes properly.
4540 (regex_compile): Parse the new operators.
4541 (analyse_first): Skip sym(beg|end) (they match only the empty string).
4542 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
4543 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
4544 (re_match_2_internal): Match symbeg and symend.
4545
4546 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
4547
4548 2004-05-19 Kim F. Storm <storm@cua.dk>
4549
4550 * .gdbinit (xsymbol): Fix last change.
4551
4552 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
4553
4554 * .gdbinit (xprintstr): New fun.
4555 (xstring, xprintsym): Use it.
4556
4557 * w32proc.c (create_child): Use INTMASK.
4558
4559 * alloc.c (Fgarbage_collect): Do all the marking before flushing
4560 unmarked elements of the undo list.
4561
4562 2004-05-18 David Ponce <david@dponce.com>
4563
4564 * print.c (print): Reset print_depth before to call print_object.
4565
4566 2004-05-18 Jason Rumney <jasonr@gnu.org>
4567
4568 * w32console.c: Prefix RIF functions with w32con_ to avoid
4569 namespace clash with functions in term.c and w32term.c.
4570
4571 * w32menu.c (add_menu_item, w32_menu_display_help)
4572 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
4573
4574 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
4575
4576 2004-05-18 Eli Zaretskii <eliz@gnu.org>
4577
4578 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
4579
4580 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
4581 with make_number.
4582 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
4583 with XINT.
4584
4585 2004-05-18 Kim F. Storm <storm@cua.dk>
4586
4587 * blockinput.h (INPUT_BLOCKED_P): New macros.
4588
4589 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
4590 (Ftop_level): Unblock input if blocked.
4591
4592 * buffer.h (GET_OVERLAYS_AT): New macro.
4593 * msdos.c (IT_note_mouse_highlight): Use it.
4594 * textprop.c (get_char_property_and_overlay): Use it.
4595 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
4596 * xfaces.c (face_at_buffer_position): Use it.
4597
4598 * print.c (print_object): Increase buf size.
4599
4600 2004-05-17 Jason Rumney <jasonr@gnu.org>
4601
4602 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
4603 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
4604 Lisp_Object using i member.
4605 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
4606 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
4607 consistently.
4608
4609 * w32proc.c (create_child): Use make_number instead of masking pid.
4610
4611 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
4612 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
4613 Use EQ to compare Lisp_Objects.
4614 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
4615
4616 * w32term.c (w32_num_mouse_buttons): Rename from
4617 Vw32_num_mouse_buttons and make it an int.
4618
4619 * w32.c (init_environment): Use it.
4620
4621 * w32fns.c (w32_wnd_proc): Likewise.
4622
4623 * w32proc.c (w32_pipe_read_delay): Rename from
4624 Vw32_pipe_read_delay and make it an int.
4625
4626 * w32.c (_sys_read_ahead): Use it.
4627
4628 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
4629
4630 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
4631
4632 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
4633 (key_event): Don't mix Lisp_Object and int.
4634
4635 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
4636
4637 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
4638 modifiers in language change event.
4639
4640 2004-05-17 Kim F. Storm <storm@cua.dk>
4641
4642 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
4643 Such objects may be freed markers which still exist on an undo list.
4644
4645 2004-05-16 Juanma Barranquero <lektu@terra.es>
4646
4647 * data.c (Fset_default): Make argument names match their use in
4648 docstring.
4649
4650 2004-05-15 Andreas Schwab <schwab@suse.de>
4651
4652 * emacs.c (gdb_array_mark_flag): Define.
4653 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
4654
4655 2004-05-15 Eli Zaretskii <eliz@gnu.org>
4656
4657 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
4658 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
4659 defined for the MS-DOS build.
4660
4661 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4662
4663 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
4664
4665 2004-05-14 Kenichi Handa <handa@m17n.org>
4666
4667 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
4668
4669 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4670
4671 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
4672 section to frame.c section.
4673 (Fxw_display_color_p, Fx_file_dialog): Declare if
4674 HAVE_WINDOW_SYSTEM defined.
4675
4676 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
4677
4678 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
4679
4680 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
4681 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
4682 (XTread_socket): Fix int/Lisp_Object mixup.
4683 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
4684
4685 * macterm.h (struct frame, struct face, struct image)
4686 (display_x_get_resource, Fx_display_color_p)
4687 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
4688 Add prototypes.
4689
4690 2004-05-14 Kim F. Storm <storm@cua.dk>
4691
4692 * process.c (wait_reading_process_input): Make reentrant.
4693 Make Available and Connecting non-static. Save and restore value
4694 of waiting_for_user_input_p.
4695
4696 2004-05-13 Kim F. Storm <storm@cua.dk>
4697
4698 * keyboard.c (mark_kboards): Don't mark x and y members
4699 that are overloaded in selection request events.
4700
4701 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4702
4703 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
4704
4705 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
4706
4707 * window.c (Fdisplay_buffer, Fsplit_window)
4708 (split-height-threshold): Doc fix.
4709
4710 2004-05-13 Juanma Barranquero <lektu@terra.es>
4711
4712 * xfaces.c (Ftty_supports_face_attributes_p)
4713 (Finternal_copy_lisp_face): Fix typo in docstring.
4714 (Finternal_get_lisp_face_attribute): Fix docstring.
4715
4716 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4717
4718 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
4719
4720 2004-05-11 Steven Tamm <steventamm@mac.com>
4721
4722 * macfns.c (Fx_create_frame): Default to using tool-bar by
4723 setting tool-bar-lines to 1 in default-frame-alist.
4724
4725 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4726
4727 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
4728 (xpm_get_color_table_v, xpm_make_color_table_h)
4729 (xpm_put_color_table_h, xpm_get_color_table_h)
4730 (xpm_str_to_color_key, xpm_load_image, xpm_load)
4731 (syms_of_image): Support XPM on Carbon Emacs. Does not
4732 depend on libXpm, but only supports XPM version 3 without extensions.
4733
4734 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4735
4736 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
4737 instead of FRAME_X_P
4738
4739 2004-05-11 Kim F. Storm <storm@cua.dk>
4740
4741 * process.c (read_process_output): Grow decoding_buf when needed;
4742 this could cause a crash in allocate_string and compact_small_strings.
4743
4744 2004-04-29 Jim Blandy <jimb@redhat.com>
4745
4746 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
4747 against proper opcode.
4748
4749 2004-05-10 Juanma Barranquero <lektu@terra.es>
4750
4751 * process.c (Fstart_process): Fix docstring.
4752
4753 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
4754 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
4755 (Fsplit_char, Fchar_charset): Make argument names match their use
4756 in docstring.
4757
4758 2004-05-10 Richard M. Stallman <rms@gnu.org>
4759
4760 * print.c (print_preprocess): Use being_printed, loop_count and
4761 halftail to detect overdeep nesting and cyclic cdr chains.
4762
4763 2004-05-10 Andreas Schwab <schwab@suse.de>
4764
4765 * lisp.h (Fmake_symbolic_link): Declare.
4766
4767 * fileio.c (Frename_file): Remove extra argument in call to
4768 Fmake_symbolic_link.
4769
4770 2004-05-10 Kim F. Storm <storm@cua.dk>
4771
4772 * xdisp.c (calc_line_height_property): Use string position when
4773 object is a string.
4774
4775 2004-05-10 Kenichi Handa <handa@m17n.org>
4776
4777 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
4778 inhibit-modification-hooks to t temporarily before calling
4779 Ferase_buffer.
4780
4781 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
4782 inhibit-modification-hooks to t temporarily before calling
4783 Ferase_buffer.
4784
4785 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
4786 inhibit-modification-hooks to t temporarily before calling
4787 Ferase_buffer.
4788
4789 * fns.c (count_combining): Delete it.
4790 (concat): Don't check combining bytes.
4791
4792 2004-05-09 Jason Rumney <jasonr@gnu.org>
4793
4794 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
4795 (globals_of_w32fns): Set it.
4796
4797 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
4798
4799 * data.c (Fquo): Simplify.
4800
4801 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
4802
4803 * data.c (Fquo): If any argument is float, do the computation in
4804 floating point.
4805
4806 2004-05-08 Juanma Barranquero <lektu@terra.es>
4807
4808 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
4809 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
4810 Fix spelling of Emacs on docstring.
4811 (Fset_process_coding_system, Fprocess_coding_system)
4812 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
4813 Make argument names match their use in docstring.
4814 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
4815 Fix docstring.
4816
4817 * editfns.c (Finsert_buffer_substring): Make argument names match their
4818 use in docstring.
4819
4820 * syntax.c (Fmodify_syntax_entry): Fix docstring.
4821
4822 2004-05-07 Steven Tamm <steventamm@mac.com>
4823
4824 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
4825 around call to ReceiveEvent to avoid certain crashes.
4826
4827 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4828
4829 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
4830 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
4831 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
4832 Save/restore the current graphics port and device handle when
4833 drawing into an offscreen graphics world.
4834
4835 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
4836 (gif_load): Likewise.
4837
4838 2004-05-07 Juanma Barranquero <lektu@terra.es>
4839
4840 * window.c (Fset_window_buffer): Fix docstring.
4841
4842 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
4843
4844 * emacs.c (main) [VMS]: Fix var ref.
4845
4846 2004-05-06 Romain Francoise <romain@orebokech.com>
4847
4848 * data.c (Fsetq_default): Fix docstring.
4849
4850 2004-05-06 Jason Rumney <jasonr@gnu.org>
4851
4852 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4853 to avoid name clash.
4854
4855 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4856
4857 * fileio.c (barf_or_query_if_file_exists): Use lstat.
4858 (Frename_file): Handle renaming of symlinks across file systems.
4859 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
4860
4861 2004-05-04 Kim F. Storm <storm@cua.dk>
4862
4863 * xdisp.c (Qtotal): New var.
4864 (syms_of_xdisp): Intern and staticpro it.
4865 (calc_line_height_property): New arg total. Set it if
4866 line-spacing property has format (total . VALUE).
4867 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4868 Handle total line-spacing property.
4869
4870 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4871
4872 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4873 "under" scroll bar when size/position changes.
4874
4875 2004-05-03 Jason Rumney <jasonr@gnu.org>
4876
4877 * makefile.nt: Remove.
4878
4879 2004-05-02 Eli Zaretskii <eliz@gnu.org>
4880
4881 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4882 Avoid compiler warnings.
4883
4884 * Makefile.in (region-cache.o): Depend on config.h.
4885
4886 2004-05-02 Romain Francoise <romain@orebokech.com>
4887
4888 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4889 with continuation lines, too.
4890
4891 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
4892
4893 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4894
4895 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
4896
4897 * xdisp.c (calc_line_height_property): YAILOM (yet another
4898 int/Lisp_Object mixup).
4899
4900 2004-05-01 Eli Zaretskii <eliz@gnu.org>
4901
4902 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4903 undo bad effect of pack(4) in some versions of system headers.
4904
4905 2004-05-01 Jason Rumney <jasonr@gnu.org>
4906
4907 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4908
4909 2004-04-30 Kim F. Storm <storm@cua.dk>
4910
4911 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
4912 (syms_of_buffer) <cursor-type>: Doc fix.
4913
4914 * dispextern.h (struct it): Remove member use_default_face.
4915 Add members override_ascent, override_descent, override_boff.
4916
4917 * xdisp.c (init_iterator): Handle line-spacing float value.
4918 Initialize override_ascent member.
4919 (append_space_for_newline): Reset override_ascent.
4920 Remove use_default_face.
4921 (calc_line_height_property): New function to calculate value of
4922 line-height and line-spacing properties. Look at overlays, too.
4923 Set override_ascent, override_descent, override_boff members when
4924 using another face than the current face. Float values are now
4925 relative to the frame default font, by default; accept a cons
4926 of ratio and face name to specify value relative to a specific face.
4927 (x_produce_glyphs): Use calc_line_height_property.
4928 Use override_ascent etc. when set to handle different face heights.
4929 A negative line-spacing property value is interpreted as a total
4930 line height, rather than inter-line spacing.
4931 (note_mouse_highlight): Allocate room for 40 overlays initially.
4932
4933 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4934
4935 * data.c (Fsubr_name): New fun.
4936 (syms_of_data): Defsubr it.
4937
4938 2004-04-29 Kim F. Storm <storm@cua.dk>
4939
4940 * xdisp.c (null_glyph_slice): New var.
4941 (append_glyph, append_composite_glyph, append_stretch_glyph):
4942 Use it to initialize glyph slice.
4943
4944 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
4945
4946 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4947 (on_hot_spot_p): Make sure we always return a value.
4948 (Flookup_image_map): Remove unused var ix and iy.
4949 (note_mode_line_or_margin_highlight): Remove unused var `image'.
4950
4951 2004-04-27 Eli Zaretskii <eliz@gnu.org>
4952
4953 * msdos.c (init_environment): If one of the TMP... environment
4954 variables is set to a drive letter without a trailing slash,
4955 append a slash.
4956
4957 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
4958
4959 * editfns.c (lisp_time_argument): Provide externally.
4960
4961 * fileio.c (Fset_file_times): New function.
4962 (syms_of_fileio): Intern and staticpro it.
4963
4964 2004-04-27 Kim F. Storm <storm@cua.dk>
4965
4966 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4967 header line strings.
4968
4969 * dispextern.h (struct it): New member use_default_face.
4970
4971 * xdisp.c (Qline_height): New variable.
4972 (syms_of_xdisp): Intern and staticpro it.
4973 (append_space_for_newline): Partially undo 2004-04-25 change;
4974 add default_face_p arg, and restore callers.
4975 Clear it->use_default_face after use.
4976 (x_produce_glyphs): Set default font for ascii char if
4977 it->use_default_font is set. Change line-spacing property to set
4978 just extra line spacing. Handle new line-height property.
4979
4980 2004-04-26 Andreas Schwab <schwab@suse.de>
4981
4982 * print.c (print_object): Print non-ascii characters in bool
4983 vector representation as octal escapes.
4984
4985 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4986 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4987 bool vectors.
4988 * lread.c (read1): Likewise.
4989 * alloc.c (Fmake_bool_vector): Likewise.
4990 * data.c (Faref, Faset): Likewise.
4991 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4992 (mapcar1): Likewise.
4993
4994 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4995
4996 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4997
4998 2004-04-26 Miles Bader <miles@gnu.org>
4999
5000 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
5001
5002 2004-04-26 Juanma Barranquero <lektu@terra.es>
5003
5004 * buffer.c (Fpop_to_buffer): Fix docstring.
5005
5006 2004-04-26 Steven Tamm <steventamm@mac.com>
5007
5008 * lread.c (init_lread): Don't display missing lisp directory
5009 warnings with Carbon Emacs because self-contained bundled Emacs
5010 may be built without correct installation path.
5011
5012 2004-04-25 Kim F. Storm <storm@cua.dk>
5013
5014 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
5015
5016 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
5017
5018 * xdisp.c (append_space_for_newline): Rename from append_space.
5019 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
5020 (x_produce_glyphs): Handle line-spacing property on newline char.
5021 If value is t, adjust ascent and descent to fit current row height.
5022 If value is an integer or float, set extra_line_spacing to integer
5023 value, or to float value x current line height.
5024
5025 2004-04-23 Kenichi Handa <handa@m17n.org>
5026
5027 * fontset.c (Finternal_char_font): If POSITION is nil, return
5028 font for displaying CH with the default face.
5029
5030 2004-04-23 Juanma Barranquero <lektu@terra.es>
5031
5032 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
5033
5034 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
5035
5036 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
5037 Don't make assumptions about the relative place of i and val.
5038 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
5039
5040 2004-04-21 Kim F. Storm <storm@cua.dk>
5041
5042 * dispextern.h (struct glyph_slice): New struct.
5043 (struct glyph): New member slice.
5044 (GLYPH_SLICE_EQUAL_P): New macro.
5045 (GLYPH_EQUAL_P): Use it.
5046 (struct glyph_string): New member slice.
5047 (struct it_slice): New struct.
5048 (struct it): New member slice, add member to stack too.
5049 New member constrain_row_ascent_descent_p.
5050 (image_ascent): Add prototype.
5051
5052 * dispnew.c (buffer_posn_from_coords): Return full image width
5053 and height even for image slices (posn is relative to full image).
5054 (marginal_area_string): Adjust x0,y0 for image slice.
5055
5056 * image.c (image_ascent): Add slice arg; calculate ascent for
5057 image slice (or full image).
5058
5059 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
5060 (syms_of_keyboard): Defsubr them.
5061
5062 * lisp.h (pos_visible_p): Fix prototype.
5063
5064 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5065 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5066 (x_draw_image_foreground, x_draw_image_relief)
5067 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5068 Draw sliced images.
5069
5070 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
5071 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5072 (x_draw_image_foreground, x_draw_image_relief)
5073 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
5074 Draw sliced images.
5075
5076 * w32term.h (image_ascent): Remove prototype.
5077
5078 * window.c (Fpos_visible_in_window_p): Return pixel position if
5079 PARTIALLY arg is non-nil. Simplify. Doc fix.
5080 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
5081 to return/set vscroll in pixels.
5082
5083 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
5084
5085 * xdisp.c (Qslice): New variable.
5086 (syms_of_xdisp): Intern and staticpro it.
5087 (pos_visible_p): Return pixel position in new x and y args.
5088 (init_iterator): Reset it->slice info.
5089 (handle_display_prop): Parse (slice ...) property.
5090 (push_it, pop_it): Save/restore slice info.
5091 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
5092 force repositioning of tall row if window is vscrolled, as that
5093 would reset vscroll.
5094 (append_space): Set it->constrain_row_ascent_descent_p to avoid
5095 increasing row height if row is non-empty.
5096 (fill_image_glyph_string): Copy slice info.
5097 (take_vertical_position_into_account): Simplify.
5098 (produce_image_glyph): Handle iterator slice info, setup glyph
5099 slice info. Do not force minimum line height.
5100 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
5101 do not increase height (ascent/descent) of non-empty row when
5102 adding normal character glyph; instead reduce glyph ascent/descent
5103 appropriately; if row is higher than current glyph, adjust glyph
5104 descent/ascent to reposition glyph within the existing row.
5105 Likewise, when char is newline, only set ascent/descent if row is
5106 currently empty.
5107 (note_mouse_highlight): Handle hotspots with sliced image.
5108
5109 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5110 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5111 (x_draw_image_foreground, x_draw_image_relief)
5112 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5113 Draw sliced images.
5114
5115 * xterm.h (image_ascent): Remove prototype.
5116
5117 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5118
5119 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
5120
5121 2004-04-20 John Paul Wallington <jpw@gnu.org>
5122
5123 * fns.c (Fassoc, Feql): Fix indentation.
5124
5125 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
5126
5127 2004-04-19 John Paul Wallington <jpw@gnu.org>
5128
5129 * fns.c (Feql): New function.
5130 (syms_of_fns): Defsubr it.
5131
5132 2004-04-18 Jason Rumney <jasonr@gnu.org>
5133
5134 * w32select.c (Fw32_set_clipboard_data): Get sequence number
5135 after closing the clipboard.
5136
5137 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
5138
5139 * buffer.c (Fbuffer_base_buffer): Doc fix.
5140
5141 2004-04-17 Kim F. Storm <storm@cua.dk>
5142
5143 * keymap.c (Fkey_description): Add optional PREFIX arg.
5144 Combine prefix with KEYS to make up the full key sequence to describe.
5145 Correlate meta_prefix_char and following (simple) key to describe
5146 as meta modifier. All callers changed.
5147 (describe_map): Rename arg `keys' to `prefix'. Remove local
5148 `elt_prefix' var. Use Fkey_description with prefix instead of
5149 elt_prefix combined with Fsingle_key_description.
5150 (describe_vector): Declare static. Replace arg `elt_prefix' with
5151 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
5152 if !KEYMAP_P. Use Fkey_description with prefix instead of
5153 Fsingle_key_description.
5154
5155 * keymap.h (Fkey_description): Fix prototype.
5156 (describe_vector): Remove prototype.
5157
5158 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
5159
5160 * image.c (PNG_BG_COLOR_SHIFT): Remove.
5161 (png_load): Fix calculation of transparent background color on X
5162 and W32 platforms.
5163
5164 2004-04-16 Juanma Barranquero <lektu@terra.es>
5165
5166 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
5167 not too large before computing how much to scroll.
5168
5169 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
5170
5171 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
5172
5173 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
5174
5175 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
5176 Add hyperlink to Elisp manual to the docstring.
5177
5178 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
5179
5180 * callint.c (fix_command): Use XDCR.
5181
5182 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
5183
5184 * window.c (Fget_lru_window): Doc fix.
5185
5186 2004-04-14 Kim F. Storm <storm@cua.dk>
5187
5188 * editfns.c (Fformat): Fix allocation size of precision array.
5189
5190 * dispnew.c (update_window): Only set changed_p if
5191 scrolling_window actually did scroll.
5192 (scrolling_window): Only return 1 if we actually did scroll.
5193
5194 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
5195 height to glyph height when cursor row is not fully visible.
5196 (make_cursor_line_fully_visible): Add FORCE_P arg to return
5197 failure in case row is higher than window. Callers changed.
5198 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
5199 Try to scroll partially visible, higher-than-window cursor row.
5200 (redisplay_window): Always try to scroll partially visible,
5201 higher-than-window cursor row - both initially and again with
5202 centering_position = 0.
5203 Clear desired matrix before retrying with centering_position = 0.
5204
5205 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5206
5207 * syntax.c (scan_lists): Simplify backward string scan.
5208 Fix off-by-one boundary check for string and comment fences.
5209
5210 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
5211
5212 * sheap.c, unexcw.c: New files.
5213
5214 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
5215
5216 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
5217 base buffer has been killed. Correct the error message if the
5218 base buffer does not exist.
5219
5220 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
5221
5222 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
5223 Cygwin itself. Add support for Xaw3d scrollbars.
5224
5225 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
5226
5227 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
5228
5229 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
5230 before Cygwin unexec.
5231
5232 * Makefile.in: Link changes for Cygwin unexec() support.
5233
5234 2004-04-12 Andreas Schwab <schwab@suse.de>
5235
5236 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
5237
5238 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
5239
5240 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
5241 IGNORE argument equals NAME. Doc fix.
5242
5243 2004-04-11 Masatake YAMATO <jet@gyve.org>
5244
5245 * buffer.c (fix_start_end_in_overlays): Make overlays
5246 empty if they are backwards.
5247
5248 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5249
5250 * xfaces.c (face_color_supported_p): Fix compilation without X11.
5251
5252 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
5253
5254 * doc.c (Fsnarf_documentation): Ignore new file name entries.
5255
5256 2004-04-06 Kim F. Storm <storm@cua.dk>
5257
5258 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5259 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
5260
5261 * w32term.c (w32_read_socket): Set mouse_face_hidden after
5262 clearing highlight.
5263
5264 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5265
5266 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
5267 clearing highlight.
5268
5269 * indent.c (vmotion): Do not reserve one column for continuation
5270 marks on window frames.
5271
5272 2004-04-04 Eli Zaretskii <eliz@gnu.org>
5273
5274 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
5275 from GCC.
5276
5277 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5278
5279 * .gdbinit-union: Remove.
5280
5281 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
5282 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
5283 ($nonvalbits): Remove.
5284 ($valmask): Set it by calling xreload to avoid redundancy.
5285
5286 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
5287 (gdb_emacs_intbits): Remove.
5288
5289 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5290
5291 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
5292
5293 2004-03-30 Kenichi Handa <handa@m17n.org>
5294
5295 * editfns.c (Fformat): Fix initialization of the array info.
5296
5297 2004-03-30 Kim F. Storm <storm@cua.dk>
5298
5299 * xterm.c (x_mouse_click_focus_ignore_position): New var.
5300 (syms_of_xterm): DEFVAR_BOOL it.
5301 (ignore_next_mouse_click_timeout): New var.
5302 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
5303 Use it to filter mouse clicks following focus event.
5304
5305 2004-03-29 David Ponce <david@dponce.com>
5306
5307 * callint.c (Fcall_interactively): Fix last change.
5308
5309 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5310
5311 * eval.c (Fcommandp): Simplify.
5312
5313 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
5314 Extend to handle all kinds of functions.
5315
5316 * lisp.h (Finteractive_form): Declare.
5317
5318 * callint.c (Fcall_interactively): Use it.
5319
5320 2004-03-26 Kim F. Storm <storm@cua.dk>
5321
5322 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
5323 to catch errors in calc_pixel_width_or_height during redisplay.
5324
5325 2004-03-26 Masatake YAMATO <jet@gyve.org>
5326
5327 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
5328
5329 * lisp.h (fix_start_end_in_overlays): Likewise.
5330
5331 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
5332
5333 * editfns.c (Ftranspose_regions): Likewise.
5334
5335 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5336
5337 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
5338
5339 2004-03-19 Richard M. Stallman <rms@gnu.org>
5340
5341 * s/sol2-6.h: Delete previous change.
5342
5343 2004-03-19 Kim F. Storm <storm@cua.dk>
5344
5345 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
5346 to_charpos corresponds to newline in right fringe. Use local
5347 BUFFER_POS_REACHED_P macro.
5348
5349 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5350
5351 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
5352 to compile on non-window system.
5353
5354 2004-03-19 Kim F. Storm <storm@cua.dk>
5355
5356 * dispextern.h (calc_pixel_width_or_height): Add prototype.
5357
5358 * image.c (Qcenter): Move to xdisp.c.
5359
5360 * xdisp.c (Qcenter): Declare here.
5361 (syms_of_xdisp): Intern and staticpro it.
5362 (handle_single_display_prop): Allow space display property on all
5363 platforms.
5364 (display_mode_line): Set mode_line_p before displaying line.
5365 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
5366 handling. Remove complex cases for fringes and scroll-bars.
5367 Add left, right, and center alignment positions. Add text (area)
5368 width/height. Return width or height for image specs.
5369 (produce_stretch_glyph): Improve handling of :align-to. Is now
5370 relative to left of text area by default, but other base offsets
5371 can be specified -- also for text lines.
5372
5373 * term.c (produce_glyphs): Handle IT_STRETCH.
5374 (produce_stretch_glyph): New function to handle space width and
5375 align-to display properties on non-window systems.
5376
5377 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5378
5379 * fileio.c (Fread_file_name): Set completion-ignore-case for
5380 case-insensitive systems.
5381
5382 2004-03-14 Masatake YAMATO <jet@gyve.org>
5383
5384 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
5385 when keymap and cursor are setup.
5386
5387 2004-03-14 Steven Tamm <steventamm@mac.com>
5388
5389 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
5390
5391 2004-03-14 Kim F. Storm <storm@cua.dk>
5392
5393 * dispextern.h (x_find_image_file): Add prototype.
5394
5395 * image.c (x_find_image_file): Make extern.
5396
5397 * xfns.c (x_find_image_file): Remove prototype.
5398
5399 2004-03-13 Eli Zaretskii <eliz@gnu.org>
5400
5401 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5402
5403 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5404
5405 2004-03-12 Richard M. Stallman <rms@gnu.org>
5406
5407 * fns.c (internal_equal): New arg PROPS controls comparing
5408 text properties. All callers changed.
5409 (Fequal_including_properties): New function.
5410 (syms_of_fns): defsubr it.
5411
5412 2004-03-12 Kim F. Storm <storm@cua.dk>
5413
5414 Fix image support on MAC. From YAMAMOTO Mitsuharu.
5415
5416 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
5417 (image_background, image_background_transparent): Fix prototypes.
5418
5419 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
5420
5421 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
5422 (x_query_font, x_find_ccl_program, x_set_window_size)
5423 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5424 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5425 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
5426
5427 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
5428 (x_query_font, x_find_ccl_program, x_set_window_size)
5429 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5430 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5431 (mac_draw_line_to_pixmap): Add prototypes.
5432
5433 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5434
5435 * macterm.c (XTread_socket): Fix mouse click on tool bar.
5436
5437 2004-03-11 Kim F. Storm <storm@cua.dk>
5438
5439 * dispextern.h: Move image related prototypes from xfns.c section
5440 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
5441 HAVE_X_WINDOWS.
5442
5443 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
5444 Move gtkutil.o to new GTK_OBJ list.
5445 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
5446 (GTK_OBJ) [USE_GTK]: New declaration.
5447 (obj): Add $(GTK_OBJ) to list.
5448
5449 2004-03-11 Steven Tamm <steventamm@mac.com>
5450
5451 * image.c [MAC_OSX]: Include sys/stat.h
5452
5453 * macfns.c (syms_of_macfns): Remove definitions of things now
5454 defined in image.c
5455
5456 2004-03-11 Kim F. Storm <storm@cua.dk>
5457
5458 The following changes consolidates the identical/similar image
5459 support code previously found in xfns.c, w32fns.c, and macfns.c
5460 into a new file image.c.
5461
5462 * makefile.w32-in (OBJ1): Add image.o.
5463 ($(BLD)/image.$(O)): Add dependencies.
5464
5465 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
5466 (image.o): Add dependencies.
5467
5468 * image.c: New file with consolidated image support code.
5469 (COLOR_TABLE_SUPPORT): New define to control whether
5470 color table support is available (X only).
5471 (Bitmap_Record): Common name for x_bitmap_record,
5472 w32_bitmap_record, and mac_bitmap_record.
5473 (XImagePtr): Common name for pointer to XImage or equivalent.
5474 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
5475 to XImagePtr on X+MAC, and to HDC on W32.
5476 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
5477 (NO_PIXMAP): Common name for "None" or equivalent.
5478 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
5479 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
5480 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
5481 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
5482 Define with suitable equivalents on W32 and MAC for code sharing.
5483 (XDrawLine): Define on MAC for code sharing.
5484 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
5485 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
5486 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5487 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5488 (x_reference_bitmap, x_create_bitmap_from_data)
5489 (x_create_bitmap_from_file, x_destroy_bitmap)
5490 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5491 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5492 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5493 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5494 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5495 (define_image_type, lookup_image_type, valid_image_p)
5496 (image_error, enum image_value_type, struct image_keyword)
5497 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5498 (make_image, free_image, prepare_image_for_display, image_ascent)
5499 (four_corners_best, image_background, image_background_transparent)
5500 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5501 (make_image_cache, free_image_cache, clear_image_cache)
5502 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5503 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5504 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5505 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5506 (init_image_func_pointer, image_load_quartz2d)
5507 (struct ct_color, init_color_table, free_color_table)
5508 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5509 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5510 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5511 (x_disable_image, x_build_heuristic_mask)
5512 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5513 (TIFF support, GIF support, Ghostscript support): Consolidate image
5514 code from xfns.c, w32fns.c, and macfns.c.
5515 (syms_of_image): Consolidate image related symbol setup here.
5516 (init_image): Consolidate image related initializations here.
5517
5518 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
5519 and init_image. Remove call to init_xfns.
5520
5521 * macterm.h (struct mac_bitmap_record): Add file member.
5522 Not currently used, but simplifies code sharing.
5523
5524 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5525 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5526 (x_reference_bitmap, x_create_bitmap_from_data)
5527 (x_create_bitmap_from_file, x_destroy_bitmap)
5528 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5529 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5530 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5531 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5532 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5533 (define_image_type, lookup_image_type, valid_image_p)
5534 (image_error, enum image_value_type, struct image_keyword)
5535 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5536 (make_image, free_image, prepare_image_for_display, image_ascent)
5537 (four_corners_best, image_background, image_background_transparent)
5538 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5539 (make_image_cache, free_image_cache, clear_image_cache)
5540 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5541 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5542 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5543 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5544 (init_image_func_pointer, image_load_quartz2d)
5545 (struct ct_color, init_color_table, free_color_table)
5546 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5547 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5548 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5549 (x_disable_image, x_build_heuristic_mask)
5550 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5551 (TIFF support, GIF support, Ghostscript support): Merge with image
5552 code from xfns.c and macfns.c into image.c.
5553 (syms_of_xfns): Move image related symbols to image.c.
5554 (init_external_image_libraries, init_xfns): Remove; initialization
5555 moved to init_image in image.c.
5556
5557 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5558 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5559 (x_reference_bitmap, x_create_bitmap_from_data)
5560 (x_create_bitmap_from_file, x_destroy_bitmap)
5561 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5562 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5563 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5564 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5565 (define_image_type, lookup_image_type, valid_image_p)
5566 (image_error, enum image_value_type, struct image_keyword)
5567 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5568 (make_image, free_image, prepare_image_for_display, image_ascent)
5569 (four_corners_best, image_background, image_background_transparent)
5570 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5571 (make_image_cache, free_image_cache, clear_image_cache)
5572 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5573 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5574 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5575 (struct ct_color, init_color_table, free_color_table)
5576 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5577 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5578 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5579 (x_disable_image, x_build_heuristic_mask)
5580 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5581 (TIFF support, GIF support, Ghostscript support): Merge with image
5582 code from xfns.c and macfns.c into image.c.
5583 (syms_of_xfns): Move image related symbols to image.c.
5584 (init_external_image_libraries, init_xfns): Remove; initialization
5585 moved to init_image in image.c.
5586
5587 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5588 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5589 (x_reference_bitmap, x_create_bitmap_from_data)
5590 (x_create_bitmap_from_file, x_destroy_bitmap)
5591 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5592 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5593 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5594 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5595 (define_image_type, lookup_image_type, valid_image_p)
5596 (image_error, enum image_value_type, struct image_keyword)
5597 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5598 (make_image, free_image, prepare_image_for_display, image_ascent)
5599 (four_corners_best, image_background, image_background_transparent)
5600 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5601 (make_image_cache, free_image_cache, clear_image_cache)
5602 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5603 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5604 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5605 (struct ct_color, init_color_table, free_color_table)
5606 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5607 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5608 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5609 (x_disable_image, x_build_heuristic_mask)
5610 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5611 (TIFF support, GIF support, Ghostscript support): Merge with
5612 w32fns.c and macfns.c image code into image.c.
5613 (syms_of_xfns): Move image related symbols to image.c.
5614 (init_xfns): Remove; initialization moved to init_image in image.c.
5615
5616 * lisp.h (syms_of_image, init_image): Add protoypes.
5617 (init_xfns): Remove prototype.
5618
5619 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5620 (x_reference_bitmap, x_create_bitmap_from_data)
5621 (x_create_bitmap_from_file, x_destroy_bitmap)
5622 (x_create_bitmap_mask): Move prototypes from dispextern.h.
5623 (gamma_correct) [MAC_OS]: Add prototype.
5624
5625 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5626 (x_reference_bitmap, x_create_bitmap_from_data)
5627 (x_create_bitmap_from_file, x_destroy_bitmap)
5628 (x_create_bitmap_mask): Move prototypes to dispextern.h.
5629
5630 2004-03-09 Kenichi Handa <handa@etlken2>
5631
5632 * coding.c (decode_coding_emacs_mule): Handle insufficent source
5633 correctly.
5634
5635 2004-03-04 Richard M. Stallman <rms@gnu.org>
5636
5637 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
5638
5639 * window.c (Fdisplay_buffer): Doc fix.
5640
5641 * buffer.c (Fpop_to_buffer): Doc fix.
5642
5643 2004-03-03 Kim F. Storm <storm@cua.dk>
5644
5645 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
5646
5647 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
5648
5649 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
5650
5651 2004-03-02 Richard M. Stallman <rms@gnu.org>
5652
5653 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
5654
5655 2004-03-02 Kenichi Handa <handa@m17n.org>
5656
5657 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
5658
5659 2004-03-02 Kim F. Storm <storm@cua.dk>
5660
5661 * window.h (struct window): New member overlay_arrow_bitmap.
5662
5663 * window.c (make_window): Initialize overlay_arrow_bitmap.
5664
5665 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
5666 implement and integrate multiple overlay arrows with redisplay.
5667 (syms_of_xdisp): DEFVAR_LISP and initialize it.
5668 (last_arrow_position, last_arrow_string): Replace by properties.
5669 (Qlast_arrow_position, Qlast_arrow_string)
5670 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
5671 (syms_of_xdisp): Intern and staticpro them.
5672 (overlay_arrow_string_or_property, update_overlay_arrows)
5673 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
5674 (overlay_arrow_at_row): New functions for multiple overlay arrows.
5675 (redisplay_internal): Use them instead of directly accessing
5676 Voverlay_arrow_position etc. for multiple overlay arrows.
5677 (mark_window_display_accurate): Use update_overlay_arrows.
5678 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
5679 (try_window_id): Use overlay_arrows_changed_p.
5680 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
5681 (display_line): Use overlay_arrow_at_row to check multiple
5682 overlay arrows, and get relevant overlay-arrow-string and
5683 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
5684 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
5685 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
5686
5687 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
5688 (update_window_fringes): Remove unused code.
5689
5690 2004-03-01 Jason Rumney <jasonr@gnu.org>
5691
5692 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
5693
5694 2004-03-01 Juanma Barranquero <lektu@terra.es>
5695
5696 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
5697
5698 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
5699
5700 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5701
5702 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
5703 how many colors can be displayed.
5704
5705 2004-03-01 Kenichi Handa <handa@m17n.org>
5706
5707 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
5708 correctly.
5709
5710 2004-02-28 Kim F. Storm <storm@cua.dk>
5711
5712 * dispnew.c (update_window): Update header line also if there are
5713 no other changes in window (move code after set_cursor label).
5714
5715 * lisp.h (mark_window_display_accurate): Remove prototype.
5716
5717 * window.c (window_loop, Fforce_window_update): Force mode line
5718 updates by setting prevent_redisplay_optimizations_p and
5719 update_mode_lines.
5720
5721 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5722
5723 * xfns.c (x_window): Fix indentation.
5724
5725 * xterm.c (x_calc_absolute_position): Call x_real_positions
5726 to get WM window sizes and use those to calculate position.
5727 (x_set_offset): Remove code commented out.
5728
5729 2004-02-28 Miles Bader <miles@gnu.org>
5730
5731 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
5732
5733 2004-02-28 Kim F. Storm <storm@cua.dk>
5734
5735 * keyboard.c (kbd_buffer_store_event_hold): New function to store
5736 an event into kbd fifo, but with special handling of quit event;
5737 a quit event is saved for later, and further events are discarded
5738 until the saved quit event has been processed.
5739 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
5740 (gen_help_event): Store help event in kbd fifo.
5741 (NREAD_INPUT_EVENTS): Remove.
5742 (read_avail_input): Adapt to new read_socket_hook interface.
5743 Remove allocation and initialization of local input_event buffer,
5744 as read_socket_hook stores events directly in fifo. Allocate and
5745 initialize local hold_quit event to handle postponed quit event
5746 (and store it if set by kbd_buffer_store_event_hold).
5747
5748 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
5749 (gen_help_event): Fix prototype.
5750
5751 * macterm.c (XTread_socket): Remove bufp_r and
5752 numcharsp args. Add hold_quit arg.
5753 Rework to use just one, local, inev input_event. Store inev
5754 directly in fifo using kbd_buffer_store_event_hold.
5755
5756 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
5757 (read_input_waiting): Adapt to new read_socket_hook interface.
5758 Remove allocation and initialization of local input_event buffer,
5759 as read_socket_hook stores events directly in fifo. Allocate and
5760 initialize local hold_quit event to handle postponed quit event
5761 (and store it if set by kbd_buffer_store_event_hold).
5762
5763 * term.c (read_socket_hook): Fix arg list.
5764
5765 * termhooks.h (read_socket_hook): Fix prototype.
5766
5767 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
5768 numcharsp args. Add hold_quit arg.
5769 Rework to use just one, local, inev input_event. Store inev
5770 directly in fifo using kbd_buffer_store_event_hold.
5771
5772 * w32inevt.h (w32_console_mouse_position): Fix prototype.
5773
5774 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
5775 Add hold_quit arg. Rework to use just one, local, inev
5776 input_event. Store inev directly in fifo using
5777 kbd_buffer_store_event_hold. Update count in one place.
5778 Postpone call to gen_help_event until inev is stored; use new
5779 local do_help for this.
5780 Remove local emacs_event in handing of ButtonPress event; just use
5781 inev instead (so no reason to copy it later).
5782
5783 * xsmfns.c (x_session_check_input): Remove numchars arg.
5784
5785 * xterm.c (x_focus_changed, x_detect_focus_change):
5786 Remove numchars arg. Always store event into bufp arg.
5787 Return nothing. Callers changed accordingly.
5788 (glyph_rect): Simplify.
5789 (STORE_KEYSYM_FOR_DEBUG): New macro.
5790 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
5791 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
5792 (current_hold_quit) [USE_GTK]: Add.
5793 (event_handler_gdk): Adapt to new handle_one_xevent.
5794 (handle_one_xevent): Remove bufp_r and numcharsp args.
5795 Add hold_quit arg. Rework to use just one, local, inev
5796 input_event. Store inev directly in fifo using
5797 kbd_buffer_store_event_hold. Update count in one place.
5798 Postpone call to gen_help_event until inev is stored; use new
5799 local do_help for this.
5800 Simplify handling of keysyms (consolidate common code). Fix bug
5801 where count was updated with nchars instead of nbytes.
5802 Remove local emacs_event in handing of ButtonPress event; just use
5803 inev instead (so no reason to copy it later).
5804 Remove `out' label. Rename label `ret' to `done'; add various
5805 `goto done' to clarify code flow in deeply nested blocks.
5806 (x_dispatch_event): Simplify as handle_one_xevent now calls
5807 kbd_buffer_store_event itself.
5808 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
5809 arg. Call handle_one_xevent with new arglist. Store event from
5810 x_session_check_input in fifo.
5811 [USE_GTK]: Setup current_hold_quit.
5812 Decrement handling_signal before unblocking input.
5813 (x_initialize) [USE_GTK]: Initialize current_count.
5814
5815 * xterm.h (x_session_check_input): Fix prototype.
5816
5817 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5818
5819 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
5820
5821 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
5822 macgui.h).
5823
5824 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
5825
5826 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
5827 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
5828 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
5829 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
5830 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
5831 (Bitmap): Remove typedef.
5832 (Pixmap): Change int to GWorldPtr.
5833
5834 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5835
5836 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5837 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
5838 New #define to extract 16-bit depth color components from unsigned
5839 long representation.
5840 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5841 colors used for masks.
5842 (struct mac_display_info): Add color_p. Remove n_cbits.
5843
5844 * macfns.c: Include sys/types.h and sys/stat.h.
5845 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5846 Include QuickTime/QuickTime.h.
5847 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5848 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5849 functions defined in macterm.c.
5850 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
5851 (ZPixmap): New #define for compatibility with xfns.c.
5852 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5853 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5854 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5855 New functions.
5856 (four_corners_best, x_create_x_image_and_pixmap)
5857 (x_destroy_x_image, unwind_create_frame, x_disable_image)
5858 (x_edge_detection, init_color_table, colors_in_color_table)
5859 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5860 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5861 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5862 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5863 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5864 long mixup.
5865 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5866 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5867 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5868 (x_set_cursor_type, Fxw_color_values, valid_image_p)
5869 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5870 (x_alloc_image_color, clear_image_cache, lookup_image)
5871 (x_find_image_file, xbm_read_bitmap_file_data)
5872 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5873 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5874 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5875 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5876 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
5877 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
5878 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
5879 #if 0.
5880 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
5881 #if 0. Free white_relief.gc and black_relief.gc.
5882 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5883 New functions (from xfns.c).
5884 (Fx_create_frame): Record unwind_create_frame.
5885 (Fxw_display_color_p): Use dpyinfo->color_p.
5886 (Fx_display_grayscale_p, Fx_display_planes): Don't use
5887 dpyinfo->n_cbits.
5888 (Fx_display_color_cells): Use dpyinfo->n_planes;
5889 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5890 (Qheuristic, cross_disabled_images, emboss_matrix)
5891 (laplace_matrix): New variables (from xfns.c).
5892 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5893 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5894 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
5895 (image_background_transparent): New function (from xfns.c).
5896 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5897 (image_load_quicktime): Add declaration.
5898 [MAC_OSX] (image_load_quartz2d): Likewise.
5899 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5900 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
5901 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
5902 (xbm_load_image_from_file, x_laplace_read_row)
5903 (x_laplace_write_row, pbm_read_file): Remove functions.
5904 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5905 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5906 (colors_in_color_table): Sync with xfns.c (although not used).
5907 (lookup_rgb_color): Don't lookup color table. Just do gamma
5908 correction.
5909 (COLOR_INTENSITY): New #define (from xfns.c).
5910 (x_disable_image): New function (from xfns.c).
5911 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5912 (x_build_heuristic_mask): Sync with xfns.c.
5913 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5914 (HAVE_PBM): Remove #ifdef.
5915 (pbm_load): Sync with xfns.c. Set img->width and img->height
5916 before IMAGE_BACKGROUND.
5917 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
5918 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5919 Don't enclose with #if HAVE_PNG.
5920 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
5921 symbol _CGImageCreateWithPNGDataProvider is defined.
5922 Otherwise use image_load_quicktime.
5923 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
5924 [HAVE_PNG] (png_load): Sync with xfns.c.
5925 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5926 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5927 HAVE_JPEG.
5928 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5929 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5930 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5931 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5932 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5933 (tiff_image_p, tiff_load): Don't enclose declarations with #if
5934 HAVE_TIFF.
5935 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5936 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5937 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
5938 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5939 New functions (from xfns.c).
5940 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
5941 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
5942 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5943 Don't enclose with #if HAVE_GIF.
5944 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5945 animated gif. Otherwise use image_load_quicktime.
5946 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5947 gif_DrawText to avoid conflict with QuickdrawText.h.
5948 [HAVE_GIF] (gif_load): Sync with xfns.c.
5949 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5950 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5951 Ghostscript is not supported yet).
5952 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5953 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
5954 cross_disabled_images (from xfns.c). Remove #if 0 for supported
5955 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5956 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
5957 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5958 HAVE_PNG. Call EnterMovies to support animated gifs.
5959 Call init_image_func_pointer to bind a symbol
5960 _CGImageCreateWithPNGDataProvider if it is defined.
5961
5962 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5963 (x_draw_bar_cursor): Sync declaration with xterm.c.
5964 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5965 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5966 graphics).
5967 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5968 (mac_draw_line_to_pixmap, XCreatePixmap)
5969 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
5970 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5971 New functions.
5972 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5973 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5974 Cast bits to char *.
5975 (reflect_byte): New function (from w32fns.c).
5976 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5977 due to byte alignment.
5978 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5979 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5980 (XSetForeground): Remove static (now used in macfns.c).
5981 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5982 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5983 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5984 (x_draw_glyph_string_box, x_draw_image_foreground)
5985 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5986 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5987 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5988 Sync with xterm.c.
5989 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5990 than the xterm.c version when a strictly horizontal or vertical
5991 line is drawn.
5992 (XTset_terminal_window): Add static.
5993 (x_make_frame_visible): Add UNBLOCK_INPUT.
5994 (x_free_frame_resources): New funcion (from xterm.c).
5995 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5996 occurs in tool bar area.
5997 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5998 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
5999 Initialize image cache.
6000 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
6001 Enclose unused functions with #if 0.
6002 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
6003 (decode_mac_font_name): New function to apply code conversions
6004 from a mac font name to an XLFD font name according to its script code.
6005 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
6006 font name to a mac font name according to REGISTRY and ENCODING fields.
6007 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
6008 whose name starts with `.'.
6009 (init_font_name_table): Use decode_mac_font_name. Add both
6010 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
6011 of a font is smJapanese.
6012 (mac_do_list_fonts): New function to list fonts that match a given
6013 pattern.
6014 (x_list_fonts, XLoadQueryFont): Use it.
6015 (XLoadQueryFont): Set rbearing field for each variable width
6016 character to avoid needless redraw.
6017 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
6018
6019 2004-02-26 Kim F. Storm <storm@cua.dk>
6020
6021 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
6022 as read_socket_hook handler on X aborts if buffer is too small
6023 and W32 handler doesn't always check buffer limit.
6024
6025 * xdisp.c (handle_single_display_prop): Handle left-fringe and
6026 right-fringe similar to a display margin image. Specifically,
6027 the characters having the fringe prop are no longer shown, and
6028 we use IT_IMAGE/next_element_from_image with image_id = -1 to
6029 do this. Set fringe bitmap face_id in it->face_id.
6030 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
6031 still realize it->face (i.e. the fringe bitmap face).
6032
6033 2004-02-25 Miles Bader <miles@gnu.org>
6034
6035 * xdisp.c (check_it): Check string/string_pos consistency.
6036 (init_iterator): Initialize string-related fields properly.
6037
6038 2004-02-11 Miles Bader <miles@gnu.org>
6039
6040 * xdisp.c (produce_image_glyph): Force negative descents to zero.
6041
6042 2004-02-10 Miles Bader <miles@gnu.org>
6043
6044 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
6045 BLOCK_INPUT can be nested, so it doesn't make much sense.
6046
6047 2004-02-24 Michael Mauger <mmaug@yahoo.com>
6048
6049 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
6050 (xbm_read_bitmap_data): Use unsigned char for image data.
6051
6052 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
6053
6054 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
6055
6056 2004-02-22 Jason Rumney <jasonr@gnu.org>
6057
6058 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
6059 correctly over other bitmaps.
6060
6061 2004-02-21 Eli Zaretskii <eliz@gnu.org>
6062
6063 * emacs.c (USAGE1): Split into two halves.
6064 (USAGE2): Second half of the old USAGE1.
6065 (USAGE3): Rename from USAGE2.
6066 (USAGE4): Rename from USAGE3.
6067
6068 2004-02-21 Juri Linkov <juri@jurta.org>
6069
6070 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
6071 Fix --multibyte. Move --help, --version to USAGE2. Add alias
6072 --file. Fix -f, -l. Sort options. Untabify.
6073 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
6074
6075 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
6076
6077 * category.c (Fdefine_category, Fcategory_docstring)
6078 (Fget_unused_category, Fset_category_table)
6079 (Fcategory_set_mnemonics): Doc fixes.
6080
6081 2004-02-20 Kim F. Storm <storm@cua.dk>
6082
6083 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
6084 The following changes are relative to the 2004-01-21 revision.
6085 (NREAD_INPUT_EVENTS): Define as max number of input events to read
6086 in one call to read_socket_hook. Value is 8.
6087 (read_avail_input): Separate and rework handling of read_socket_hook
6088 and non-read_socket_hook cases. Use smaller input_event buffer
6089 in read_socket_hook case, and repeat if full buffer is read.
6090 Use new local variable 'discard' to skip input after C-g.
6091 In non-read_socket_hook case, just use a single input_event, and
6092 call kbd_buffer_store_event on the fly for each character.
6093
6094 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6095
6096 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
6097 Remove unused `gu' alternative.
6098
6099 2004-02-19 Andreas Schwab <schwab@suse.de>
6100
6101 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
6102 warning.
6103
6104 2004-02-18 Kim F. Storm <storm@cua.dk>
6105
6106 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
6107 Fix last change.
6108
6109 2004-02-17 Kim F. Storm <storm@cua.dk>
6110
6111 * xdisp.c (fast_find_position): Fix return value of new version;
6112 it was inverted compared to the 21.1 version.
6113 (get_window_cursor_type): Don't look at glyph if NULL.
6114 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
6115
6116 * keyboard.c: Rework previous change; it didn't consider that the
6117 buf array was allocated on the stack.
6118 (prev_read): Remove variable.
6119 (read_avail_input_buf): New static event buffer array.
6120 (in_read_avail_input): New static variable to handle re-entrancy.
6121 (read_avail_input): Change buf to pinter to read_avail_input_buf.
6122 Use in_read_avail_input to handle re-entrance; when re-entered,
6123 fully initialize and use tmp_buf array instead of read_avail_input_buf.
6124 Do not initialize read_avail_input_buf in full here; instead assume it
6125 is always cleared on entry. To ensure that, we clear (just) the
6126 entries that were used before we return.
6127 (init_keyboard): Initialize read_avail_input_buf here.
6128
6129 2004-02-16 Jesper Harder <harder@ifa.au.dk>
6130
6131 * cmds.c (Fend_of_line): Doc fix.
6132
6133 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
6134
6135 * keyboard.c (prev_read): New static variable.
6136 (read_avail_input): Use it to zero out only those slots in buf[]
6137 that were used last time we were called.
6138
6139 2004-02-16 Eli Zaretskii <eliz@gnu.org>
6140
6141 * Makefile.in (obj): Move fringe.o from here...
6142 (XOBJ, MAC_OBJ): ...to here.
6143
6144 2004-02-16 Stephen Eglen <stephen@gnu.org>
6145
6146 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
6147
6148 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
6149
6150 * data.c (Fbyteorder):
6151 * fringe.c (Fdefine_fringe_bitmap):
6152 * xdisp.c (handle_single_display_prop):
6153 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
6154
6155 2004-02-16 Jason Rumney <jasonr@gnu.org>
6156
6157 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
6158
6159 2004-02-15 Steven Tamm <steventamm@mac.com>
6160
6161 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
6162 controlling emulation of a three button mouse with option and
6163 command keys.
6164 (Qreverse, mac_get_enumlated_btn): Handle the emulation
6165 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
6166
6167 2004-02-15 Kim F. Storm <storm@cua.dk>
6168
6169 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
6170
6171 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
6172 Perform byte-swapping.
6173
6174 2004-02-14 Kim F. Storm <storm@cua.dk>
6175
6176 * dispextern.h (struct draw_fringe_bitmap_params): Change member
6177 bits from char to short to facilitate wider bitmaps.
6178 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
6179 member.
6180
6181 * fringe.c (struct fringe_bitmap): Change member bits from char to
6182 short to facilitate 16 bits wide bitmaps. Modify all standard
6183 bitmaps accordingly.
6184 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
6185 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
6186 (draw_fringe_bitmap): Ditto.
6187 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
6188 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
6189 handle up to 16 bits wide bitmaps.
6190 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
6191 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
6192
6193 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
6194 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
6195 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
6196
6197 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
6198 so it is no longer necessary to expand them here.
6199
6200 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
6201
6202 2004-02-12 Kim F. Storm <storm@cua.dk>
6203
6204 * window.c (Fwindow_fringes): Doc fix.
6205
6206 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6207
6208 * xselect.c (x_get_foreign_selection): Add new optional parameter
6209 time_stamp.
6210 (Fx_get_selection_internal): Ditto, pass time_stamp to
6211 x_get_foreign_selection.
6212
6213 * data.c (Fbyteorder): New function.
6214
6215 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6216
6217 * atimer.c: Move include stdio.h to same place as in other files.
6218
6219 * region-cache.c: Ditto.
6220
6221 * sysdep.c: Ditto.
6222
6223 * xfaces.c: Ditto.
6224
6225 2004-02-09 Sam Steingold <sds@gnu.org>
6226
6227 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
6228
6229 2004-02-09 Kim F. Storm <storm@cua.dk>
6230
6231 * fringe.c: New file. Move original fringe related declarations
6232 and code from dispextern.h and xdisp.c here.
6233 Rework code to support user defined fringe bitmaps, redefining
6234 standard bitmaps, ability to overlay user defined bitmap with
6235 overlay arrow bitmap, and add faces to bitmaps.
6236 (Voverflow_newline_into_fringe): Declare here.
6237 (enum fringe_bitmap_align): New enum.
6238 (..._bits): All bitmaps are now defined without bitswapping; that
6239 is now done in init_fringe_once (if necessary).
6240 (standard_bitmaps): New array with specifications for the
6241 standard fringe bitmaps.
6242 (fringe_faces): New array.
6243 (valid_fringe_bitmap_id_p): New function.
6244 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
6245 (draw_fringe_bitmap): New function which draws fringe bitmap,
6246 possibly overlaying bitmap with cursor in right fringe or the
6247 overlay arrow in the left fringe.
6248 (update_window_fringes): Do not handle overlay arrow here.
6249 Compare and copy fringe bitmap faces.
6250 (init_fringe_bitmap): New function.
6251 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
6252 define and destroy user defined fringe bitmaps.
6253 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
6254 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
6255 (syms_of_fringe): New function. Defsubr new DEFUNs.
6256 DEFVAR_LISP Voverflow_newline_into_fringe.
6257 (init_fringe_once, init_fringe): New functions.
6258 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
6259
6260 * Makefile.in (obj): Add fringe.o.
6261 (fringe.o): New dependencies.
6262
6263 * dispextern.h (FRINGE_ID_BITS): New definition for number of
6264 bits allocated to hold a fringe number. Increase number of bits
6265 from 4 to 8 to allow user defined fringe bitmaps.
6266 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
6267 left_user_fringe_face_id, right_user_fringe_bitmap,
6268 right_user_fringe_face_id.
6269 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
6270 Move to new file fringe.c.
6271 (MAX_FRINGE_BITMAPS): Define here.
6272 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
6273 and overlay_p. Change member which to int.
6274 (struct redisplay_interface): New members define_fringe_bitmap
6275 and destroy_fringe_bitmap.
6276 (valid_fringe_bitmap_id_p): Add prototype.
6277 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
6278
6279 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
6280 arrows.
6281 (update_frame): Do flush_display if force_flush_display_p to
6282 ensure display (specifically fringes) are updated in a timely
6283 manner when resizing the frame by dragging the mouse.
6284 (update_window_line): Update row if overlay arrow changed.
6285 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
6286 or overlay arrow changed.
6287
6288 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
6289 syms_of_fringe, and init_fringe.
6290
6291 * frame.h (struct frame): New member force_flush_display_p.
6292
6293 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
6294 Add prototypes.
6295
6296 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
6297 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
6298 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
6299 Use cursor color for displaying cursor in fringe.
6300 (x_redisplay_interface): Add null handlers for
6301 define_fringe_bitmap and destroy_fringe_bitmap functions.
6302
6303 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
6304 xterm.c to handle overlayed fringe bitmaps and to use cursor color
6305 for displaying cursor in fringe.
6306 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
6307 specific functions to define and destroy fringe bitmaps in fringe_bmp.
6308 (w32_redisplay_interface): Add them to redisplay_interface.
6309 (w32_term_init): Call w32_init_fringe instead of explicitly
6310 defining fringe bitmaps in fringe_bmp array.
6311 (x_delete_display): Call w32_reset_fringes instead of explicitly
6312 destroying fringe bitmaps in fringe_bmp array.
6313
6314 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
6315 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
6316 (continued_bits, continuation_bits, ov_bits, first_line_bits)
6317 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
6318 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
6319 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
6320 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
6321 Move fringe handling vars and code to new file fringe.c.
6322 (handle_display_prop): Handle left-fringe and right-fringe
6323 display properties; store user fringe bitmaps in iterator.
6324 (move_it_in_display_line_to): Handle cursor in fringe at eob.
6325 (clear_garbaged_frames): Set force_flush_display_p if resized.
6326 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
6327 (display_line): Handle cursor in fringe at eob.
6328 (display_line): Set row user fringe bitmaps from iterator.
6329
6330 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
6331 Use cursor color for displaying cursor in fringe.
6332 (x_redisplay_interface): Add null handlers for
6333 define_fringe_bitmap and destroy_fringe_bitmap functions.
6334
6335 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6336
6337 * macfns.c (Fx_change_window_property): Make doc string and
6338 parameters same as for X version.
6339
6340 * w32fns.c (Fx_change_window_property): Ditto.
6341
6342 2004-02-07 Kim F. Storm <storm@cua.dk>
6343
6344 * xdisp.c (hscroll_window_tree): Position cursor near to right
6345 margin in hscrolled window when jumping to end of line (rather
6346 than centering cursor).
6347
6348 * process.c (wait_reading_process_input): Don't do adaptive read
6349 buffering if waiting for a specific process.
6350
6351 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
6352
6353 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
6354 (Fread_minibuffer, Feval_minibuffer)
6355 (Fread_string, Fread_no_blanks_input)
6356 (Fcompleting_read): Doc fixes.
6357 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
6358 completion-regexp-list. Define Qcase_fold_search and staticpro it.
6359 (read_minibuf): Fix initial comment.
6360 (Ftry_completion, Fall_completions, Ftest_completion): Bind
6361 case-fold-search to the value of completion-ignore-case when
6362 checking completion-regexp-list.
6363 (Fdisplay_completion_list): Make it handle arguments that are
6364 symbols. Doc fix.
6365
6366 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6367
6368 * xterm.h: Add declaration of free_frame_menubar.
6369
6370 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
6371 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
6372 (Fx_change_window_property): Add declaration of parameters type and
6373 format. Remove unused variable cons.
6374
6375 * xselect.c: Include stdio,h.
6376
6377 2004-02-05 Kenichi Handa <handa@m17n.org>
6378
6379 * fns.c (Fset_char_table_range): Fix previous change.
6380
6381 * buffer.c (Fset_buffer_multibyte): Fix docstring.
6382
6383 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
6384
6385 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
6386
6387 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
6388
6389 * keymap.c (Vmouse_events): Rename from Vmenu_events.
6390 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
6391
6392 2004-02-04 Kenichi Handa <handa@m17n.org>
6393
6394 * fns.c (Fset_char_table_range): Handle charsets ascii,
6395 eight-bit-control, and eight-bit-graphic correctly.
6396
6397 2004-02-03 Jason Rumney <jasonr@gnu.org>
6398
6399 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
6400
6401 * w32fns.c (x_to_w32_font): Likewise.
6402
6403 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6404
6405 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
6406 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
6407
6408 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
6409 ClientMessages.
6410
6411 * xselect.c: Include termhooks.h and X11/Xproto.h
6412 (x_check_property_data, x_fill_property_data)
6413 (x_property_data_to_lisp, mouse_position_for_drop)
6414 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
6415 (Fx_send_client_event): Move here from xfns.c.
6416 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
6417
6418 * xfns.c (x-send-client-message): Move to xselect.c
6419 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
6420 OUTER_P.
6421 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
6422 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
6423 if vector_ret_p is true.
6424 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
6425
6426 2004-02-02 Eli Zaretskii <eliz@gnu.org>
6427
6428 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
6429 basename of FILE relative to it, not FILE itself.
6430
6431 2004-02-02 Kenichi Handa <handa@m17n.org>
6432
6433 * coding.c (coding_restore_composition): Check invalid
6434 composition data more rigidly.
6435
6436 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
6437
6438 * fileio.c (Fread_file_name_internal): Correctly handle the case
6439 where insert-default-directory is nil.
6440 (Fread_file_name): Always return an empty string if the user exits
6441 with an empty minibuffer. Adapt the docstring accordingly.
6442 (syms_of_fileio): Adapt the docstring of insert-default-directory
6443 to the change in Fread_file_name.
6444
6445 2004-01-29 Eli Zaretskii <eliz@gnu.org>
6446
6447 * alloca.c [!alloca]: Fix the prototype for xfree.
6448
6449 2004-01-29 Kenichi Handa <handa@m17n.org>
6450
6451 * fns.c (string_char_to_byte): Optimize for ASCII only string.
6452 (string_byte_to_char): Likewise.
6453
6454 2004-01-28 Peter Runestig <peter@runestig.com>
6455
6456 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
6457
6458 2004-01-27 Steven Tamm <steventamm@mac.com>
6459
6460 * unexmacosx.c (unexec_copy): Do not copy more than was
6461 requested to prevent overwriting during unexec.
6462
6463 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6464
6465 * process.c (sigchld_handler): Add comment about not calling malloc.
6466
6467 * process.h: Add extern to synch_process_termsig.
6468
6469 2004-01-27 Steven Tamm <steventamm@mac.com>
6470
6471 * macterm.c (make_mac_frame, make_mac_terminal_frame):
6472 Move setting of scroll bars from make_mac_frame to
6473 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
6474
6475 2004-01-26 Richard M. Stallman <rms@gnu.org>
6476
6477 * search.c (Freplace_match): Handle nonexistent
6478 back-references properly.
6479
6480 2004-01-03 Richard M. Stallman <rms@gnu.org>
6481
6482 * window.c (decode_any_window): New function.
6483 (Fwindow_height, Fwindow_width, Fwindow_edges)
6484 (Fwindow_pixel_edges, Fwindow_inside_edges)
6485 (Fwindow_inside_pixel_edges): Use decode_any_window.
6486
6487 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6488
6489 * process.h: synch_process_termsig new variable.
6490
6491 * callproc.c: Define synch_process_termsig.
6492 (Fcall_process): Initiate synch_process_termsig to zero and
6493 check if non-zero and get signal name after subprocess has ended.
6494
6495 * process.c (sigchld_handler): Set synch_process_termsig
6496 if terminated by a signal. synch_process_death setting removed.
6497
6498 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
6499
6500 2004-01-26 Andreas Schwab <schwab@suse.de>
6501
6502 * print.c (print_preprocess): Declare size as EMACS_INT to not
6503 lose bits.
6504 (print_object): Likewise.
6505 * alloc.c (Fpurecopy): Likewise.
6506
6507 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
6508
6509 * window.c (Fwindow_minibuffer_p): Doc fix.
6510
6511 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
6512
6513 * editfns.c (Fformat): Make both passes accept the same set of flags.
6514
6515 2004-01-23 Kenichi Handa <handa@m17n.org>
6516
6517 * fns.c (Fmd5): If OBJECT is a buffer different from the current
6518 one, set buffer to OBJECT temporarily.
6519
6520 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6521
6522 * keyboard.c (kbd_buffer_gcpro): Remove.
6523 (kbd_buffer_store_event, clear_event, Fdiscard_input)
6524 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
6525 Don't initialize and/or maintain the variable any more. It was made
6526 redundant by my commit of 2003-06-15.
6527
6528 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
6529
6530 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6531
6532 * lisp.h: Add undef DECL_ALIGN.
6533
6534 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6535
6536 * process.c (wait_reading_process_input) [SYNC_INPUT]:
6537 Check interrupt_input_pending explicitly.
6538
6539 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
6540
6541 * keyboard.c (handle_async_input): New fun,
6542 extracted from input_available_signal.
6543 (input_available_signal, reinvoke_input_signal): Use it.
6544
6545 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
6546
6547 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
6548
6549 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
6550 manipulation macros for when tags are in the lower bits.
6551 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
6552 (DECL_ALIGN): New macro.
6553 (DEFUN): Use it.
6554
6555 * lisp.h [ENABLE_CHECKING]: Don't force union type.
6556
6557 * s/darwin.h (__attribute__): Remove outdated workaround.
6558
6559 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
6560
6561 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
6562 Don't check range of malloc address.
6563 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
6564
6565 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
6566
6567 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
6568
6569 2004-01-19 Kenichi Handa <handa@m17n.org>
6570
6571 * fontset.c (fontset_font_pattern): Fix previous change.
6572
6573 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
6574
6575 * xdisp.c (Voverflow_newline_into_fringe)
6576 (move_it_in_display_line_to, redisplay_internal)
6577 (update_window_fringes, redisplay_window, display_line, window):
6578 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
6579 that it compiles without a window-system.
6580 * dispnew.c (direct_output_for_insert, update_window): Likewise.
6581
6582 2004-01-16 Kim F. Storm <storm@cua.dk>
6583
6584 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
6585
6586 * buffer.c (init_buffer_once): Set buffer_defaults and
6587 buffer_local_flags for indicate_buffer_boundaries.
6588 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
6589 default- variable for it.
6590
6591 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
6592 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
6593 New members exact_window_width_line_p and cursor_in_fringe_p for
6594 overflowing newlines into right fringe.
6595 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
6596 and indicate_bottom_line_p for buffer boundaries and scrolling.
6597 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
6598 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
6599 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
6600 and HOLLOW_SQUARE_BITMAP.
6601 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
6602 Add prototypes.
6603
6604 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
6605 instead of related indicator fields.
6606 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
6607 (direct_output_for_insert): Handle exact width lines like
6608 contined lines. Call update_window_fringes.
6609 (update_window): Call update_window_fringes.
6610 (scrolling_window): Don't skip desired rows with changed bitmaps.
6611 Check if fringe bitmaps changes when assigning scrolled rows.
6612
6613 * xdisp.c (Voverflow_newline_into_fringe): New variable.
6614 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
6615 (move_it_in_display_line_to): Overflow newline into fringe for
6616 rows that are exactly as wide as the window.
6617 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
6618 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
6619 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
6620 (fringe_bitmaps): Add new bitmaps.
6621 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
6622 Select proper bitmap for cursor in fringe when appropriate.
6623 Handle alignment of bitmap to top or bottom of row.
6624 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
6625 done by update_window_fringes.
6626 (update_window_fringes, draw_window_fringes): New functions.
6627 (redisplay_internal): Call update_window_fringes in case only
6628 cursor row is updated.
6629 (redisplay_window): Call update_window_fringes.
6630 Explicitly call draw_window_fringes if redisplay was done using
6631 the current matrix or the overlay arrow is in the window.
6632 (try_window_reusing_current_matrix): Mark scrolled rows for
6633 fringe update (to update buffer-boundaries / scrolling icons).
6634 (find_last_unchanged_at_beg_row): Handle exact width lines line
6635 continued lines.
6636 (display_line): Overflow newline into fringe for rows that are
6637 exactly as wide as the window. Don't append space for newline
6638 in this case.
6639 (notice_overwritten_cursor): Explicitly clear cursor bitmap
6640 in fringe as if it had been overwritten.
6641 (erase_phys_cursor): Erase cursor bitmap in fringe.
6642 (syms_of_xdisp): Mark show-trailing-whitespace and
6643 void-text-area-pointer as user options.
6644 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
6645
6646 * xterm.c (x_update_window_end): Call draw_window_fringes.
6647 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6648 in row instead of actually drawing fringe bitmaps.
6649 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6650 (x_draw_window_cursor): Draw cursor in fringe.
6651
6652 * w32term.c (x_update_window_end): Call draw_window_fringes.
6653 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6654 in row instead of actually drawing fringe bitmaps.
6655 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6656 (w32_draw_window_cursor): Draw cursor in fringe.
6657
6658 * macterm.c (x_update_window_end): Call draw_window_fringes.
6659 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6660 in row instead of actually drawing fringe bitmaps.
6661 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6662 (mac_draw_window_cursor): Draw cursor in fringe.
6663
6664 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6665
6666 * xterm.c (handle_one_xevent): Don't handle characters that are part
6667 of an old style (XLookupString) compose sequence.
6668
6669 2004-01-15 Kenichi Handa <handa@m17n.org>
6670
6671 * search.c (Freplace_match): Use make_multibyte_string or
6672 make_unibyte_string according to the buffer multibyteness.
6673
6674 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
6675
6676 * alloc.c (struct interval_block, struct string_block)
6677 (struct symbol_block, struct marker_block, live_string_p)
6678 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
6679 Better preserve alignment for objects in blocks.
6680 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
6681
6682 * lread.c (defvar_per_buffer): Remove dead declaration.
6683
6684 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
6685 space size.
6686
6687 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6688
6689 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
6690 if a key press should pop down. Only pop down if a key is pressed
6691 outside the menu/dialog.
6692 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
6693 popup_get_selection.
6694 (create_and_show_dialog): Pass 1 for down_on_keypress to
6695 popup_get_selection.
6696
6697 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6698
6699 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
6700 BLOCK/UNBLOCK_INPUT.
6701
6702 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6703
6704 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
6705 specified.
6706
6707 2004-01-08 Kenichi Handa <handa@m17n.org>
6708
6709 * editfns.c (Fformat): Fix '&' to '&&'.
6710
6711 2004-01-08 Andreas Schwab <schwab@suse.de>
6712
6713 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
6714 size if PSEUDOVECTOR_FLAG is set.
6715
6716 2004-01-07 Kenichi Handa <handa@m17n.org>
6717
6718 * charset.c (Fdeclare_equiv_charset): Fix docstring.
6719
6720 * fontset.c (fontset_ref_via_base): Fix previous change.
6721
6722 2004-01-07 Kim F. Storm <storm@cua.dk>
6723
6724 * process.c (read_process_output): Only activate adaptive
6725 buffering if we read less than 256 bytes at a time.
6726
6727 2004-01-06 Kim F. Storm <storm@cua.dk>
6728
6729 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
6730 object and image object. Return glyph width and height.
6731 (mode_line_string, marginal_area_string): Ditto.
6732
6733 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6734 (marginal_area_string): Fix prototypes.
6735
6736 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
6737 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
6738 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
6739
6740 * keyboard.c (make_lispy_position): Use modified mode_line_string,
6741 buffer_posn_from_coords, and marginal_area_string functions to
6742 include both string object and image object in the lispy position.
6743 Also add actual glyph width and height to position.
6744 (read_key_sequence): Use real buffer position from mouse
6745 event to find keymap property even when click is in marginal area.
6746
6747 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
6748 mode_line_string and marginal_area_string functions to handle
6749 both string object and image object properties.
6750
6751 2004-01-06 Andreas Schwab <schwab@suse.de>
6752
6753 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
6754 character.
6755
6756 2004-01-02 Andreas Schwab <schwab@suse.de>
6757
6758 * macterm.c (emacs_options, x_initialized, same_x_server):
6759 Remove unused (and duplicated) definitions.
6760
6761 2004-01-02 Kim F. Storm <storm@cua.dk>
6762
6763 * process.h (struct Lisp_Process): New members for adaptive read
6764 buffering: adaptive_read_buffering, read_output_delay, and
6765 read_output_skip.
6766
6767 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
6768 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
6769 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
6770 (process_output_delay_count, process_output_skip): New vars.
6771 (Vprocess_adaptive_read_buffering): New variable.
6772 (make_process): Initialize adaptive read buffering members.
6773 (Fstart_process): Set adaptive_read_buffering member.
6774 (deactivate_process): Cleanup adaptive read buffering.
6775 (wait_reading_process_input): Temporarily omit delayed
6776 subprocesses from the set of file descriptors to read from;
6777 adjust the select timeout if we skipped any subprocesses.
6778 (read_process_output): Increase adaptive read buffering delay if
6779 we read less than a full buffer; reduce delay when we read a
6780 full buffer.
6781 (send_process): Simplify using local Lisp_Process var.
6782 Reset adaptive read buffering delay after write.
6783 (init_process): Initialize process_output_delay_count and
6784 process_output_skip.
6785 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
6786
6787 2004-01-01 Jason Rumney <jasonr@gnu.org>
6788
6789 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
6790
6791 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
6792
6793 * print.c (Ferror_message_string): Add hyperlink in the docstring
6794 to the definition of `signal' in the Elisp manual.
6795 * eval.c (Fsignal): Ditto.
6796
6797 2003-12-29 James Clark <jjc@jclark.com>
6798
6799 * fns.c (internal_equal): Return t for two NaN arguments.
6800
6801 2003-12-29 Richard M. Stallman <rms@gnu.org>
6802
6803 * data.c (store_symval_forwarding): Handle setting
6804 default-fill-column, etc., by changing the value in
6805 buffers that use the default.
6806
6807 * minibuf.c (Fset_minibuffer_window): Doc fix.
6808
6809 * fileio.c (choose_write_coding_system): Ignore auto_saving
6810 if using the visited file for auto saves.
6811 (Fwrite_region): Don't update SAVE_MODIFF
6812 if auto-saving in visited file.
6813
6814 2003-12-29 Kenichi Handa <handa@m17n.org>
6815
6816 * dispextern.h (face_font_available_p): Extern it.
6817
6818 * fontset.c (Voverriding_fontspec_alist): New variable.
6819 (lookup_overriding_fontspec): New function.
6820 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
6821 (fontset_font_pattern): Likewise.
6822 (regulalize_fontname): New function.
6823 (Fset_fontset_font): Call regulalize_fontname.
6824 (Fset_overriding_fontspec_internal): New function.
6825 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
6826 Defsubr Sset_overriding_fontspec_internal.
6827
6828 * xfaces.c (face_font_available_p): New function.
6829
6830 2003-12-28 Richard M. Stallman <rms@gnu.org>
6831
6832 * buffer.c (Fother_buffer): Don't crash if BUF is nil
6833 or if its name is nil.
6834
6835 * buffer.c (Fkill_buffer): Don't delete auto-save file
6836 if it's the same as the visited file.
6837
6838 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
6839
6840 * coding.c (Fcheck_coding_system): Doc fix.
6841
6842 2003-12-28 Kim F. Storm <storm@cua.dk>
6843
6844 * Makefile.in (eval.o): Depend on dispextern.h.
6845
6846 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6847 image glyph using image's ascent.
6848 (mode_line_string): Return image glyph as object clicked on.
6849 Adjust y0 for image glyph using image's ascent.
6850
6851 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6852 (struct glyph): New members, ascent and descent. Used to save
6853 this glyph's ascent and descent, instead of having.
6854 (struct glyph): Declare member face_id using FACE_ID_BITS.
6855 (find_hot_spot): Add prototype.
6856
6857 * keyboard.c (Qimage): Remove extern (now in lisp.h).
6858 (QCmap): Declare extern.
6859 (make_lispy_position): When position is inside image hot-spot,
6860 use hot-spot element's id as posn element.
6861
6862 * lisp.h (IMAGEP): New macro to test for image object type.
6863 (Qimage): Declare extern.
6864
6865 * macfns.c (Qimage): Remove extern (now in lisp.h).
6866 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6867
6868 * macterm.c (Qface, Qmouse_face): Remove unused externs.
6869
6870 * w32fns.c (Qimage): Remove extern (now in lisp.h).
6871 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6872
6873 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6874
6875 * w32term.c (Qface, Qmouse_face): Remove unused externs.
6876
6877 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6878 pointer types.
6879 (Qrelative_width, Qalign_to): Remove unused variables.
6880 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6881 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6882 image maps.
6883 (x_y_to_hpos_vpos): Return glyph relative coordinates through
6884 new dx and dy args.
6885 Remove buffer_only_p arg (always 0). Simplify code accordingly.
6886 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6887 than row's ascent and height, to get sensible height on tall rows.
6888 (build_desired_tool_bar_string): Remove Qimage extern.
6889 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6890 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6891 image glyph is alone on the last line.
6892 (append_glyph, append_composite_glyph, produce_image_glyph)
6893 (append_stretch_glyph): Set glyph's ascent and descent.
6894 (on_hot_spot_p): New function to check if position is inside an
6895 rectangular, circular, or polygon-shaped image hot-spot,
6896 (find_hot_spot): New function to search for image hot-spot.
6897 (Flookup_image_map): New defun to search for image hot-spot.
6898 (define_frame_cursor1): New aux function to determine frame pointer.
6899 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6900 Handle `pointer' text property and :pointer image property to
6901 control frame pointer shape. Detect image hot-spots for pointer
6902 and help_echo properties. Use define_frame_cursor1.
6903 (note_mouse_highlight): Use Vvoid_text_area_pointer.
6904 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
6905 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6906
6907 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6908
6909 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6910 (Qimage): Remove extern (now in lisp.h).
6911 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6912
6913 * xmenu.c (show_help_event): Remove unused code.
6914
6915 * xterm.c (Qface, Qmouse_face): Remove unused externs.
6916 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6917 row's ascent and descent, to get a sensible height on tall rows.
6918
6919 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
6920
6921 * minibuf.c (Fcompleting_read): Undo previous change.
6922
6923 2003-12-25 Lars Hansen <larsh@math.ku.dk>
6924
6925 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6926 Arguments GCPRO'ed in call to file name handler.
6927
6928 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
6929
6930 * termcap.c (tgetst1): Scan for "%pN"; if all
6931 N are continuous in [1,9], remove all "%pN".
6932
6933 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6934
6935 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6936
6937 * xfaces.c (lface_fully_specified_p): Take into account that
6938 MAC OS always have unspecified stipple.
6939
6940 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6941
6942 * tparam.c (tparam1): Add handling for `%pN', which
6943 means use param N for the next substitution.
6944
6945 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6946
6947 * xfaces.c (Fcolor_gray_p): Fix omission bug:
6948 In case `frame' is nil, consult the selected frame.
6949 (Fcolor_supported_p): Likewise.
6950
6951 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
6952
6953 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6954 Doc fixes.
6955
6956 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6957 and an integer. Adapt the introductory comment accordingly.
6958 (Fread_from_minibuffer): Delete code moved into read_minibuf.
6959 Doc fix.
6960 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6961 read_minibuf.
6962 (Fcompleting_read): Delete code moved into read_minibuf.
6963 (Ftest_completion): Make it handle obarrays and hash tables correctly.
6964
6965 2003-12-03 Kenichi Handa <handa@m17n.org>
6966
6967 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6968 encoding sequence.
6969
6970 2003-12-01 Kenichi Handa <handa@m17n.org>
6971
6972 * composite.c (syms_of_composite): Don't make the compostion hash
6973 table week.
6974
6975 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6976
6977 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6978 * textprop.c (Fget_char_property_and_overlay): New function.
6979 (syms_of_textprop): Defsubr it.
6980
6981 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6982
6983 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6984 to compile on terminal configuration.
6985
6986 * fileio.c (Fread_file_name): Check use_file_dialog also before
6987 calling Fx_file_dialog.
6988
6989 * fns.c: use_file_dialog: New variable.
6990 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6991
6992 2003-11-29 Kim F. Storm <storm@cua.dk>
6993
6994 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6995 (syms_of_msdos): Don't intern and staticpro them.
6996
6997 2003-11-27 Kim F. Storm <storm@cua.dk>
6998
6999 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
7000 coordinates relative to glyph at posn. If glyph is an image,
7001 return that as object at posn. Callers changed.
7002 (mode_line_string, marginal_area_string): Calculate and return
7003 pixel coordinates relative to glyph. Callers changed.
7004
7005 * dispextern.h (buffer_posn_from_coords, mode_line_string)
7006 (marginal_area_string): Fix prototypes.
7007 (window_box_left_offset, window_box_right_offset): Add prototypes.
7008
7009 * frame.h (get_specified_cursor_type, get_window_cursor_type):
7010 Remove prototypes.
7011
7012 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
7013
7014 * keyboard.c (make_lispy_position): Add x and y coordinates
7015 relative to the current glyph as 7th element of position.
7016 If glyph is an image, return it in the object element.
7017 (read_key_sequence): Skip checks for keymap property in cases
7018 where POSN_STRING is not a string (e.g. an image).
7019
7020 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
7021 (Vshow_text_cursor_in_void): New variable.
7022 (glyph_to_pixel_coords): Don't use negative hpos.
7023 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
7024 (append_stretch_glyph): Change ascent arg to be actual value
7025 in pixels rather than ratio to height. Callers changed.
7026 (calc_pixel_width_or_height): New aux function, implementing
7027 pixel based artihmetic for glyph widths and heights.
7028 (produce_stretch_glyph): Use calc_pixel_width_or_height for
7029 :width, :height, :align-to, and :ascent, thus allowing these to
7030 be specified in pixels as well as multiples of characters.
7031 Don't produce stretch glyphs with zero width or height.
7032 (get_specified_cursor_type): Declare static.
7033 (get_window_cursor_type): Declare static. Add glyph arg to be
7034 able to know when cursor is on an image; always substitute
7035 hollow-box cursor for filled-box cursor on images, to avoid
7036 negative images and flicker when blinking the cursor.
7037 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
7038 (note_mode_line_or_margin_highlight): Use non-text cursor rather
7039 than vertical scroll-bar cursor in display margins.
7040 (note_mouse_highlight): Use non-text cursor rather than text
7041 cursor in fringes and over images in the text area.
7042 Use non-text cursor when mouse pointer is outside editable text,
7043 i.e. in the void after end-of-line or end-of-buffer; this was
7044 already done for W32, but is now standard for all systems --
7045 user can toggle show-text-cursor-in-void to get old behaviour.
7046 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
7047 Vdisplay_pixels_per_inch.
7048
7049 2003-11-25 Andreas Schwab <schwab@suse.de>
7050
7051 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
7052 EMACS_INT to not lose bits.
7053 (Ffillarray): Don't set bits beyond the size of a bool vector.
7054
7055 2003-11-25 Kim F. Storm <storm@cua.dk>
7056
7057 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
7058 define this defun on systems that cannot use stderr as lvalue.
7059
7060 2003-11-24 Gerd Moellmann <gerd@gnu.org>
7061
7062 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
7063 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
7064 ld's default is incompatible with unexec.
7065
7066 2003-11-23 Kim F. Storm <storm@cua.dk>
7067
7068 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
7069 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
7070 (Fforce_window_update): New defun.
7071 (syms_of_window): Defsubr it.
7072 (Fset_window_margins, Fset_window_fringes): Doc fix.
7073
7074 * print.c (Fredirect_debugging_output): New defun.
7075 (syms_of_print): Defsubr it.
7076
7077 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
7078
7079 * fns.c (Fset_char_table_parent): Doc fix.
7080
7081 2003-11-22 Kim F. Storm <storm@cua.dk>
7082
7083 * dispnew.c (buffer_posn_from_coords): Return actual row/column
7084 for glyph clicked on, rather than (unused) pixel positions.
7085 (mode_line_string, marginal_area_string): Change X and Y args to
7086 pointers for returning actual row/column for glyph clicked on.
7087 Simplify and optimize loops.
7088
7089 * dispextern.h (mode_line_string, marginal_area_string):
7090 Update prototypes.
7091
7092 * keyboard.c (make_lispy_position): New function for generating
7093 mouse click positions from frame and pixel coordinates.
7094 Enhanced to return buffer position and actual row/column for
7095 events outside the text area using updated mode_line_string and
7096 marginal_area_string functions.
7097 Return left-fringe and right-fringe clicks as such, rather than
7098 clicks in text area.
7099 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
7100 pixel_to_glyph_coords, as we never use the results.
7101 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
7102 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
7103 Eliminate unused code in WHEEL_EVENT handling.
7104 (make_lispy_movement): Use make_lispy_position.
7105
7106 * window.c (coordinates_in_window): Remove redundant tests.
7107 Fix returned X pixel value for left-margin.
7108
7109 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
7110 mode_line_string and marginal_area_string parameters.
7111
7112 2003-11-22 Lars Hansen <larsh@math.ku.dk>
7113
7114 * w32.c (struct the_group, getgrgid): Add.
7115 * mac.c (struct my_group, getgrgid): Add.
7116
7117 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7118
7119 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
7120
7121 2003-11-21 Lars Hansen <larsh@math.ku.dk>
7122
7123 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
7124 include in call to file name handler. Optionally translate numeric
7125 UID and GID to strings. Update docstring.
7126 (directory_files_internal): Add parameter ID-FORMAT.
7127 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
7128 include in call to file name handler and call to
7129 directory_files_internal. Update Docstring.
7130 (Fdirectory_files): Add dummy parameter in call to
7131 directory_files_internal.
7132 * lisp.h (Qinteger): Add.
7133 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
7134 (Ffile_attributes): Add parameter.
7135 * data.c (Qinteger): Export.
7136
7137 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7138
7139 * fns.c (Freverse, Fnreverse): Doc fixes.
7140
7141 2003-11-19 Kim F. Storm <storm@cua.dk>
7142
7143 * xdisp.c (init_iterator): Initialize it->start to position
7144 before reseating (in case start position is invisible).
7145 (init_to_row_start): Set it->start to row-start.
7146 (redisplay_window): Accept optional_new_start if start position
7147 is invisible (in which case IT_CHARPOS overshoots PT).
7148 (display_line): Setup row->start from it->start (rather than
7149 it->current which is wrong if first char on line is invisible).
7150 When done, reseat it->start to it->current (= start of next row).
7151 (expose_area): Fix exposure of text area when first char (e.g. TAB)
7152 is only partially visible.
7153
7154 * dispextern.h (struct it): New member start.
7155
7156 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7157
7158 * alloc.c (make_float, Fcons): Clear the markbit at init time.
7159 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
7160 of block_index outside of the macro call.
7161 (Fgarbage_collect): Remove null code.
7162
7163 * m/amdx86-64.h: Don't redefine XPNTR.
7164
7165 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
7166 of VALMASK.
7167
7168 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
7169 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
7170 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
7171
7172 * lisp.h (VALMASK): Only define for non-union type.
7173 (MARKBIT): Remove.
7174 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
7175 (XTYPE): Define unconditionally.
7176 (XSETTYPE): Remove one more remnant.
7177 (EQ): Define differently for the union and non-union cases.
7178 (INTMASK): New bit mask.
7179 (struct Lisp_Marker): Move down to prepare for upcoming patch.
7180 (GC_EQ): Delegate to EQ.
7181
7182 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
7183
7184 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7185
7186 * xterm.c (x_window_to_scroll_bar): Move check of display to
7187 where window_id is compared.
7188
7189 2003-11-17 Kim F. Storm <storm@cua.dk>
7190
7191 * dispextern.h (struct it): New member first_vpos.
7192
7193 * xdisp.c (start_display): Set it->first_vpos.
7194 (try_window_id): Use first_vpos to start display in first _text_
7195 line if no reusable lines at start of window with header line.
7196
7197 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7198
7199 * w32fns.c (XPutPixel):
7200 * w32bdf.c (w32_init_bdf_font):
7201 * sunfns.c (sel_read):
7202 * process.c (Fmake_network_process):
7203 * frame.c (store_frame_param):
7204 * fontset.c (Fset_fontset_font):
7205 * emacs.c (shut_down_emacs):
7206 * ccl.c (ccl_driver): Remove period at end of error message.
7207
7208 * config.in: Regenerate.
7209
7210 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7211 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7212 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
7213 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
7214 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
7215
7216 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
7217
7218 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
7219 (XTmouse_position, handle_one_xevent): Pass Display* to
7220 x_window_to_scroll_bar.
7221 (x_window_to_scroll_bar): Take a Display* argument.
7222 Check that display for frame is equal to Display* argument.
7223 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
7224 x_display_info_for_display instead. Use Display in xev instead
7225 of GDK_DISPLAY.
7226 (x_dispatch_event): Call x_display_info_for_display.
7227 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
7228 (x_connection_closed): Call xg_display_close for GTK.
7229 (x_term_init): Call xg_display_open for additional displays.
7230 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
7231 for GTK.
7232
7233 * xmenu.c (single_menu_item, mouse_position_for_popup)
7234 (x_activate_menubar): Formatting adjustments.
7235
7236 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
7237 adjustments.
7238
7239 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
7240 (xg_display_close, xg_create_default_cursor)
7241 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
7242 handling.
7243 (xg_left_ptr_cursor): Remove.
7244 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
7245 cursor here.
7246 (xg_win_to_widget): Take Display* argument, call
7247 gdk_xid_table_lookup_for_display.
7248 (xg_create_frame_widgets, xg_get_file_name, create_menus)
7249 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
7250 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
7251 in FRAME_X_DISPLAY_INFO.
7252 (xg_get_scroll_id_for_window): Take Display* argument.
7253 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
7254 (xg_initialize): Remove xg_left_ptr_cursor.
7255
7256 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
7257 Display* argument.
7258 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
7259
7260 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7261
7262 * xterm.c (x_detect_focus_change): Do not change focus frame for
7263 Enter/LeaveNotify if the current focus frame has explicit focus.
7264
7265 2003-11-14 Kim F. Storm <storm@cua.dk>
7266
7267 * dispnew.c (update_text_area): Fix redisplay error when hscroll
7268 is active and first glyph is only partially visible.
7269
7270 2003-11-13 Kenichi Handa <handa@m17n.org>
7271
7272 * xdisp.c (select_frame_for_redisplay): New function.
7273 (redisplay_internal): Record also selected_frame for
7274 unwind_redisplay. Call select_frame_for_redisplay before
7275 redrawing each frame.
7276 (unwind_redisplay): Argument changed to a cons.
7277
7278 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
7279
7280 * fns.c (Fstring_to_multibyte): Doc fix.
7281
7282 2003-11-11 Kenichi Handa <handa@m17n.org>
7283
7284 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7285
7286 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7287
7288 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
7289 program specified positions.
7290
7291 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7292
7293 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
7294
7295 2003-11-08 Kenichi Handa <handa@m17n.org>
7296
7297 * Makefile.in (lisp): Add kannada.el.
7298 (shortlisp): Likewise.
7299
7300 2003-11-07 Kenichi Handa <handa@m17n.org>
7301
7302 * coding.c (coding_allocate_composition_data):
7303 Reset coding->composing to COMPOSITION_NO.
7304 (coding_restore_composition): Detect invalid composition data.
7305 Give Fstring and Fvector a Lispy integer, not C int.
7306
7307 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
7308
7309 * floatfns.c (Flogb): Don't use VALMASK.
7310
7311 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
7312 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
7313
7314 * lisp.h (XINT): Move the cast to clarify what is going on.
7315 (GCTYPEMASK, XSETTYPE): Remove.
7316 (XGCTYPE): Make it an alias of XTYPE.
7317
7318 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7319
7320 * xterm.c (x_term_init): Fix formatting.
7321
7322 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7323
7324 * gtkutil.h (xg_have_tear_offs): Declare.
7325 (xg_keep_popup, xg_did_tearoff): Remove.
7326
7327 * gtkutil.c: Remove variable xg_did_tearoff.
7328 (xg_have_tear_offs): New function.
7329 (tearoff_remove): Just decrease xg_detached_menus.
7330 (tearoff_activate): Increase xg_detached_menus and call
7331 tearoff_remove when tearoff is removed.
7332 (xg_keep_popup): Remove function.
7333 (create_menus): Give add_tearoff_p as argument to recursive
7334 call to create_menus.
7335 (xg_create_widget): Use variables instead of multiple
7336 strcmp. Tell create_menus to create tear off only for
7337 menu bar menus.
7338 (xg_update_menubar): Change title for a detached menu also.
7339 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
7340 of deep_p.
7341 (xg_initialize): Initialize xg_detached_menus, remove
7342 initialization of xg_did_tearoff.
7343
7344 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
7345 xg_have_tear_offs returns non-zero.
7346 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
7347 call to xg_keep_popup.
7348
7349 2003-11-01 Andrew Choi <akochoi@shaw.ca>
7350
7351 * macterm.c (XTread_socket): Handle menubar selection and grow
7352 window only for mouseDown events.
7353
7354 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7355
7356 * xterm.c (x_term_init): For GTK part, increase x_initialized
7357 to check for more than one display. Use error instead of return 0.
7358
7359 2003-10-31 Andrew Choi <akochoi@shaw.ca>
7360
7361 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
7362 (copy_dysymtab): Call it.
7363
7364 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
7365
7366 * eval.c (Fdefvaralias): Doc fix.
7367
7368 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
7369
7370 * data.c (Fsetplist): Doc fix.
7371
7372 2003-10-14 Lute Kamstra <lute@gnu.org>
7373
7374 * window.c (Fset_window_fringes): Clarify docstring.
7375
7376 2003-10-14 Kim F. Storm <storm@cua.dk>
7377
7378 * window.c (Fset_window_margins): Simplify arg checking.
7379
7380 2003-10-13 Richard M. Stallman <rms@gnu.org>
7381
7382 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
7383 (print_partial_compiled_pattern): Replace assert with a printout.
7384 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
7385
7386 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
7387
7388 * window.c (Fset_window_margins): Allow only integers as args.
7389 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
7390 Doc fixes.
7391
7392 2003-10-13 Lute Kamstra <lute@gnu.org>
7393
7394 * window.c (Fset_window_fringes): Elaborate docstring.
7395
7396 2003-10-12 Andrew Choi <akochoi@shaw.ca>
7397
7398 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
7399
7400 * s/darwin.h (GC_MARK_STACK): Define.
7401
7402 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7403
7404 * window.c (shrink_windows): New function.
7405 (size_window): Call shrink_windows to calculate window sizes when
7406 shrinking frame with more than one window.
7407
7408 2003-10-12 Kim F. Storm <storm@cua.dk>
7409
7410 * xdisp.c (compute_fringe_widths): Doc fix.
7411
7412 2003-10-08 Kenichi Handa <handa@m17n.org>
7413
7414 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
7415
7416 2003-10-07 Kenichi Handa <handa@m17n.org>
7417
7418 * coding.c (Qcoding_system_define_form): New variable.
7419 (syms_of_coding): Intern and staticpro it.
7420 (Fcheck_coding_system): Try to autoload the definition of
7421 CODING-SYSTEM.
7422
7423 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
7424
7425 * fns.c (Frequire): Doc fix.
7426
7427 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7428
7429 * xfns.c (Fx_send_client_event): New function as a base for
7430 manipulating extended window manager hints.
7431 (Fx_send_client_event): Remove unused variable s.
7432
7433 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
7434 that function is removed.
7435
7436 * xterm.c (x_set_offset): Use move_offset_left/top instead of
7437 x/y_pixels_outer_diff.
7438 (x_check_expected_move): Calculate move_offset_left/top.
7439
7440 * xterm.h (struct x_output): New members: move_offset_top/left.
7441
7442 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
7443 call x_set_offset directly.
7444
7445 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
7446
7447 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
7448
7449 * xterm.c (x_delete_display): Free font names and font_encoder
7450 in dpyinfo->font_table.
7451
7452 * xfns.c (Fx_close_connection): Only call XFreeFont here.
7453 Move xfree of font names to x_delete_display.
7454
7455 * xterm.h (struct x_display_info): New member, wm_type.
7456 (struct x_output): New members, expected_top/left and
7457 check_expected_move.
7458
7459 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
7460 is received.
7461 (handle_one_xevent): Rename x_check_expected_move from
7462 x_check_fullscreen_move.
7463 (x_set_offset): Only add WM decoration sizes to modified_top/left
7464 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
7465 (x_check_expected_move): Rename from x_check_fullscreen_move.
7466 Removed fullscreen specific code. Use check_expected_move,
7467 expected_left/top instead. Also, set wm_type.
7468 (x_term_init): Initialize wm_type to unknown.
7469
7470 * frame.c (x_fullscreen_move): Remove addition of WM decoration
7471 sizes to move_x/y.
7472
7473 2003-10-03 Kenichi Handa <handa@m17n.org>
7474
7475 * macterm.c (x_load_font): Clear all members of FONTP before start
7476 filling them.
7477
7478 2003-10-02 Kenichi Handa <handa@m17n.org>
7479
7480 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
7481 before calling find_ccl_program_func. Call find_ccl_program_func
7482 only when fontp->font_encoder is not NULL.
7483
7484 * xterm.c (x_load_font): Clear all members of FONTP before start
7485 filling them.
7486
7487 2003-10-03 John Paul Wallington <jpw@gnu.org>
7488
7489 * keymap.c (map_keymap): Don't abort when binding is a vector.
7490
7491 2003-10-02 Jason Rumney <jasonr@gnu.org>
7492
7493 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
7494 Sync dependencies with Makefile.in.
7495 (alloca.o): Remove.
7496
7497 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
7498 filling them.
7499
7500 * w32bdf.c (w32_load_bdf_font): Likewise.
7501
7502 2003-09-30 Richard M. Stallman <rms@gnu.org>
7503
7504 * term.c (set_tty_color_mode): Calculate current_mode_spec
7505 regardless of value of VAL.
7506
7507 * intervals.c (graft_intervals_into_buffer):
7508 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
7509 Handle over_used when splitting UNDER.
7510
7511 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7512
7513 * regex.c (regex_compile): Free the stack when returning from function.
7514
7515 2003-09-28 Kenichi Handa <handa@m17n.org>
7516
7517 * fontset.c (Finternal_char_font): Change return value to
7518 cons (FONT-NAME . GLYPH-CODE).
7519
7520 2003-09-28 Eli Zaretskii <eliz@gnu.org>
7521
7522 * term.c (tty_setup_colors): Treat any negative argument as -1.
7523
7524 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
7525
7526 * process.c (send_process): Delete unused temp_buf.
7527
7528 2003-09-26 Dave Love <fx@gnu.org>
7529
7530 * xterm.c (x_bitmap_mask): Declare.
7531
7532 2003-09-25 Dave Love <fx@gnu.org>
7533
7534 * Makefile.in (fns.o): Depend on md5.h.
7535
7536 2003-09-25 Kim F. Storm <storm@cua.dk>
7537
7538 * window.c (set_window_buffer): Fix redisplay problems when
7539 switching between buffers with different display margin widths.
7540
7541 2003-09-23 Kim F. Storm <storm@cua.dk>
7542
7543 * process.c (set_socket_option): Fix :bindtodevice option.
7544 (Fset_network_process_option): Update process contact list when
7545 setting option succeeds.
7546 (Fmake_network_process): Doc fix.
7547
7548 2003-09-23 Dave Love <fx@gnu.org>
7549
7550 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
7551
7552 2003-09-22 Eli Zaretskii <eliz@gnu.org>
7553
7554 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
7555 color mode is an integer number (it could be -1).
7556
7557 2003-09-22 Richard M. Stallman <rms@gnu.org>
7558
7559 * intervals.c (graft_intervals_into_buffer): Correct the main loop
7560 in the case where OVER is longer than UNDER.
7561
7562 2003-09-22 Masatake YAMATO <jet@gyve.org>
7563
7564 * window.c (Fset_window_scroll_bars): Validate the value of
7565 `vertical_type'.
7566
7567 2003-09-21 Kim F. Storm <storm@cua.dk>
7568
7569 * frame.c (Vdefault_frame_scroll_bars): New variable.
7570 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
7571 (syms_of_frame): DEFVAR_LISP it, and initialize according to
7572 window-system default scroll bar position.
7573
7574 * window.c (Fwindow_scroll_bars): Doc fix.
7575
7576 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7577
7578 * xterm.c (x_set_offset): Take window manager decorations into account.
7579
7580 2003-09-19 Richard M. Stallman <rms@gnu.org>
7581
7582 * atimer.h: Don't include lisp.h.
7583 (P_): Define it here (as well as elsewhere).
7584
7585 * print.c (Fprin1_to_string): Move the PRINTPREPARE
7586 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
7587
7588 * data.c (Fvariable_binding_locus): New function.
7589 (syms_of_data): defsubr it.
7590 (Flocal_variable_p): Delete duplicate call to indirect_variable.
7591
7592 2003-09-18 Dave Love <fx@gnu.org>
7593
7594 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
7595
7596 * process.c (Fnetwork_interface_info): Fix type error.
7597 (Fnetwork_interface_list): Doc fix.
7598 (read_process_output, read_process_output): Delete unused var.
7599
7600 2003-09-17 Kim F. Storm <storm@cua.dk>
7601
7602 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
7603 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
7604 (Fnetwork_interface_info): Check that ifreq struct has required
7605 fields before accessing them; this requires that those fields are
7606 defined as macros, which may be too restrictive on some platforms,
7607 but it is better than failing on other platforms.
7608 (syms_of_process): Only defsubr above fns when included.
7609
7610 2003-09-17 Dave Love <fx@gnu.org>
7611
7612 * unexalpha.c: Don't include varargs.h.
7613
7614 2003-09-17 Kim F. Storm <storm@cua.dk>
7615
7616 * process.c (Fset_process_sentinel): Add sentinel to childp plist
7617 for network process.
7618 (socket_options): Add `:' prefix to option names. Add optbit field.
7619 (set_socket_option): Remove no_error arg and special handling of s < 0.
7620 Return 1<<optbit for known option, 0 for unknown.
7621 Do not interpret 0 as false for boolean option (only nil).
7622 Pass failed option and value to report_file_error.
7623 (Fset_network_process_options): Replace by Fset_network_process_option.
7624 (Fset_network_process_option): New function to set just one option.
7625 (Fmake_network_process): Allow :coding arg to be a cons.
7626 Allow :server arg to be an integer specifying backlog size.
7627 Remove :options arg, and allow options to be specified directly
7628 as :KEY, VALUE pairs. Parse these options before binding socket.
7629 As before, :reuseaddr t is default for a server process, but this
7630 can now be disabled by specifying :reuseaddr nil.
7631 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
7632 (init_process): Availability of network options is now checked with
7633 simpler syntax (featurep 'make-network-process :OPTION); use loop to
7634 setup features.
7635 (syms_of_process): Fix defsubr's for the replaced functions.
7636
7637 2003-09-16 Dave Love <fx@gnu.org>
7638
7639 * Makefile.in: Depend on coding.h.
7640
7641 2003-09-14 Kim F. Storm <storm@cua.dk>
7642
7643 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
7644 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
7645 (syms_of_process): Defsubr them.
7646
7647 * config.in: Regenerate.
7648
7649 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7650
7651 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
7652 * m/news-r6.h (XUNMARK): Remove.
7653 * m/mips.h (XUNMARK): Remove.
7654 * m/mips-siemens.h (XUNMARK): Remove.
7655 * m/iris4d.h (XUNMARK): Remove.
7656 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
7657
7658 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7659
7660 * lisp.h (VALBITS): Don't remove 1 for the markbit.
7661 (union Lisp_Object): Use unsigned int for types. Remove markbit.
7662 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
7663 (XTYPE): Use unsigned right-shift.
7664 (XMARKBIT, XMARK, XUNMARK): Remove.
7665
7666 * alloc.c (init_intervals, init_symbol, init_marker):
7667 Don't preallocate anything.
7668 (Fgarbage_collect, mark_object): Ignore the markbit.
7669
7670 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
7671
7672 2003-09-08 Lute Kamstra <lute@gnu.org>
7673
7674 * xdisp.c (pint2hrstr): New function.
7675 (decode_mode_spec): Add `%i' and `%I' specs.
7676 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
7677 for `mode-line-format'.
7678
7679 2003-09-07 Andreas Schwab <schwab@suse.de>
7680
7681 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
7682 avoid warning.
7683
7684 2003-09-07 Eli Zaretskii <eliz@gnu.org>
7685
7686 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
7687
7688 2003-09-03 Kim F. Storm <storm@cua.dk>
7689
7690 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
7691 change (superseded by 2002-08-30 change); the default blink-off
7692 cursor is now again "no cursor".
7693
7694 2003-09-01 Jason Rumney <jasonr@gnu.org>
7695
7696 * makefile.w32-in (alloca.o): Remove.
7697 (coding.o): Depend on intervals.h
7698 (emacs.o, bytecode.o): Depend on window.h
7699
7700 2003-09-01 Dave Love <fx@gnu.org>
7701
7702 * Makefile.in (alloca.o): Remove commands.
7703 (coding.o): Depend on intervals.h composite.h window.h.
7704 (emacs.o): Depend on window.h keyboard.h keymap.h.
7705 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
7706 (bytecode.o): Depend on window.h.
7707
7708 2003-08-31 Jason Rumney <jasonr@gnu.org>
7709
7710 * w32term.c (w32_per_char_metric): Allow cached metrics to be
7711 returned even when font_type is unknown.
7712
7713 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
7714
7715 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7716
7717 * xterm.c (x_term_init): Initialize new fields in x_display_info.
7718
7719 * xterm.h (struct x_display_info): Add red/green/blue_bits and
7720 *_offset.
7721
7722 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
7723 calculate pixel value.
7724
7725 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
7726
7727 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
7728 Don't tell redisplay display is accurate when it's actually been
7729 paused for pending input.
7730
7731 2003-08-29 Richard M. Stallman <rms@gnu.org>
7732
7733 * dispnew.c (adjust_glyph_matrix): Call window_box
7734 whenever W is nonzero.
7735
7736 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7737 (Fkill_local_variable, Fmake_variable_frame_local)
7738 (Flocal_variable_p, Flocal_variable_if_set_p):
7739 Use indirect_variable to trace thru variable aliases.
7740
7741 * config.in: Updated.
7742
7743 * callint.c (Fcall_interactively): Save and restore
7744 Vthis_command, Vthis_original_command, real_this_command,
7745 and current_kboard->Vlast_command.
7746
7747 * abbrev.c (Fexpand_abbrev): Insert before deleting.
7748
7749 2003-08-29 Gerd Moellmann <gerd@gnu.org>
7750
7751 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
7752
7753 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
7754
7755 * coding.c (decode_coding_iso2022): Initialize local variable c2.
7756 (decode_coding_sjis_big5): Likewise.
7757
7758 2003-08-27 Jason Rumney <jasonr@gnu.org>
7759
7760 * w32.c (sys_pipe): Protect against file descriptor overflow.
7761
7762 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
7763
7764 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
7765
7766 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
7767
7768 * xfns.c (Vgtk_version_string): New variable.
7769 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
7770
7771 2003-08-24 Eli Zaretskii <eliz@gnu.org>
7772
7773 * term.c (term_init): Remove `const' from buffer_size's declaration.
7774
7775 * Makefile.in (msdos.o): Depend on intervals.h.
7776
7777 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
7778
7779 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7780
7781 * xterm.h (struct x_display_info): New fields: client_leader_window
7782 and Xatom_wm_client_leader.
7783
7784 * xterm.c (x_initialize): Move call to x_session_initialize to ...
7785 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
7786
7787 * xsmfns.c (create_client_leader_window): New function.
7788 (x_session_initialize): Call create_client_leader_window, take
7789 dpyinfo as argument.
7790
7791 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
7792
7793 * Makefile.in (xsmfns.o): Add more depenedencies.
7794
7795 2003-08-21 Dave Love <fx@gnu.org>
7796
7797 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
7798
7799 2003-08-21 Kenichi Handa <handa@m17n.org>
7800
7801 * term.c (term_init): Fix previous change; don't rely on the
7802 length of `buffer' if TERMINFO is defined.
7803
7804 2003-08-20 Dave Love <fx@gnu.org>
7805
7806 * atimer.h: Include lisp.h.
7807
7808 * lisp.h (EMACS_LISP_H): New.
7809 (popup_activated_flag): Don't declare.
7810
7811 * alloca.c: Some merging with gnulib. Change logic and doc
7812 concerning (x)malloc/(x)free -- no longer Emacs-specific.
7813 [DO_BLOCK_INPUT]: Don't include lisp.h.
7814 (xmalloc, xfree): Declare.
7815 (malloc): Don't declare.
7816
7817 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
7818 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
7819 atimer.h, blockinput.h.
7820
7821 * alloc.c (lisp_align_malloc): Change type of `aligned'.
7822
7823 * alloca.s: Remove.
7824
7825 2003-08-19 Gerd Moellmann <gerd@gnu.org>
7826
7827 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
7828 use -lncurses.
7829
7830 * term.c (term_init): Use a buffer of size 4096 for tgetent since
7831 FreeBSD returns something longer than 2044. Abort if the end of
7832 the buffer is overwritten.
7833
7834 2003-08-19 Miles Bader <miles@gnu.org>
7835
7836 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
7837
7838 2003-08-19 Gerd Moellmann <gerd@gnu.org>
7839
7840 * alloc.c (lisp_align_malloc): Check for memory full when
7841 allocating ablocks, which also avoids freeing a pointer into an
7842 ablocks structure.
7843
7844 * puresize.h (BASE_PURESIZE): Increase to 1100000.
7845
7846 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
7847
7848 2003-08-16 Richard M. Stallman <rms@gnu.org>
7849
7850 * editfns.c (Fencode_time): Doc fix.
7851
7852 2003-08-16 David Ponce <david@dponce.com>
7853
7854 * fileio.c (Fwrite_region): Fix conditional expression to issue
7855 the right message.
7856
7857 2003-08-16 Juri Linkov <juri@jurta.org>
7858
7859 * syntax.c (Fforward_word): Argument changed to optional.
7860 Set default value to 1.
7861
7862 2003-08-15 Kenichi Handa <handa@m17n.org>
7863
7864 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7865 what autoscaled.
7866 (best_matching_font): Once we find a better scalable font, set
7867 non_scalable_has_exact_height_p to 1.
7868 (try_font_list): Call try_alternative_families to try any family
7869 with the given registry.
7870
7871 2003-08-09 Andreas Schwab <schwab@suse.de>
7872
7873 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7874
7875 * print.c (print_string): Fix printing of multibyte string with
7876 nontrivial printcharfun.
7877
7878 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7879
7880 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7881
7882 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7883
7884 2003-07-31 Kenichi Handa <handa@m17n.org>
7885
7886 * process.c (read_process_output): Return the actually read bytes
7887 instead of the result of decoding.
7888
7889 2003-07-31 Kenichi Handa <handa@m17n.org>
7890
7891 * xterm.h (struct x_bitmap_record): New member have_mask.
7892
7893 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7894 to 0.
7895 (x_create_bitmap_from_file): Likewise.
7896 (x_destroy_bitmap): Check have_mask member before freeing a mask.
7897 (x_destroy_all_bitmaps): Likewise.
7898 (x_create_bitmap_mask): Set have_mask member to 1.
7899
7900 2003-07-30 Richard M. Stallman <rms@gnu.org>
7901
7902 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7903
7904 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7905
7906 * gtkutil.c (xg_mark_data): Update calls to mark_object.
7907
7908 2003-07-29 Richard M. Stallman <rms@gnu.org>
7909
7910 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7911 Conditionalize XIM code on HAVE_XIM.
7912
7913 * fns.c (Fclear_string): New function.
7914 (syms_of_fns): defsubr it.
7915
7916 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7917
7918 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
7919
7920 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
7921
7922 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7923
7924 * buffer.c (delete_all_overlays): New function.
7925 * buffer.h (delete_all_overlays): Declare.
7926 * coding.c (run_pre_post_conversion_on_str):
7927 * print.c (temp_output_buffer_setup):
7928 * fileio.c (Finsert_file_contents):
7929 * minibuf.c (get_minibuffer): Use it.
7930
7931 2003-07-22 Andrew Choi <akochoi@shaw.ca>
7932
7933 * unexmacosx.c (unexec_regions_sort_compare):
7934 (unexec_regions_merge): New functions. Sort and merge unexec
7935 regions before dumping them.
7936
7937 2003-07-22 Dave Love <fx@gnu.org>
7938
7939 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7940
7941 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
7942
7943 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7944 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7945 MARKBIT as the gcmarkbit for strings.
7946
7947 2003-07-21 Richard M. Stallman <rms@gnu.org>
7948
7949 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7950
7951 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
7952 (syms_of_fns): Corresponding change.
7953
7954 * alloc.c (syms_of_alloc): Doc fixes.
7955
7956 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
7957
7958 * s/netbsd.h: Use -Wl syntax.
7959
7960 2003-07-17 Richard M. Stallman <rms@gnu.org>
7961
7962 * xterm.c (xim_initialize): Redo 6/24 change.
7963
7964 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
7965
7966 * buffer.c (copy_overlays): Use EMACS_INT for positions.
7967 (Fswitch_to_buffer): Don't signal an error when switching to the same
7968 buffer in a dedicated window.
7969
7970 * alloc.c: Use bitmaps for cons, as was done for floats.
7971 (init_float, init_cons): Let the normal code allocate the first block.
7972 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7973 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7974 New macros.
7975 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7976 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7977 (live_cons_p): Check the pointer is not past the `conses' array.
7978 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7979 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7980 (survives_gc_p): Use CONS_MARKED_P and simplify.
7981 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7982
7983 2003-07-13 Paul Eggert <eggert@twinsun.com>
7984
7985 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7986 puts it into BSS instead, at least on Solaris 8 and 9.
7987 This is a valid optimization, and it may occur on other platforms,
7988 so Emacs should not assume that initializing a static variable to
7989 zero puts it into data.
7990 * alloc.c (pure, staticvec):
7991 Initialize these arrays to nonzero, so that they're not
7992 put into BSS by that optimization.
7993
7994 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7995
7996 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7997 (lisp_align_malloc): Use posix_memalign is available.
7998 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7999 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
8000 for consistency. Update users.
8001
8002 2003-07-13 Richard M. Stallman <rms@gnu.org>
8003
8004 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
8005
8006 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
8007
8008 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
8009 and use the Gtk+ function gtk_window_icon_from_file if available.
8010
8011 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
8012 handle mask of bitmaps.
8013 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
8014 mask property.
8015 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
8016
8017 * xterm.h (xg_set_icon): New function.
8018
8019 2003-07-12 Paul Eggert <eggert@twinsun.com>
8020
8021 * unexelf.c (unexec): Consider a section to precede the .bss
8022 section if its addresses overlap that of .bss.
8023
8024 2003-07-12 Richard M. Stallman <rms@gnu.org>
8025
8026 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
8027
8028 * config.in (HAVE_CRTIN): Add #undef.
8029 (INLINE): Really inline only if OPTIMIZE is defined.
8030
8031 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
8032 END_FILES_1.
8033 (START_FILES_1, END_FILES_1): New macros (conditional).
8034 (LD_SWITCH_SYSTEM_TEMACS): Define.
8035
8036 * s/openbsd.h: Don't include bsd4-3.h.
8037 (TERMINFO): Define.
8038 (LIBS_TERMCAP): Define.
8039 (LD_SWITCH_SYSTEM): Define (two definitions).
8040
8041 * xfns.c: Include libpng/png.h instead of png.h.
8042
8043 2003-07-11 Andreas Schwab <schwab@suse.de>
8044
8045 * buffer.c (modify_overlay): Update prototype.
8046 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
8047 Likewise.
8048
8049 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8050
8051 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
8052 (struct interval): Move to intervals.h.
8053 (struct Lisp_Marker): Use EMACS_INT for position info.
8054 (forward_point): Remove prototype of defunct function.
8055 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
8056 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
8057 (syms_of_textprop, set_text_properties): Remove prototypes that are
8058 already in intervals.h.
8059
8060 * intervals.h (struct interval): Move from lisp.h.
8061 Use EMACS_INT for position and size info.
8062
8063 * coding.c: Include intervals.h for Fset_text_properties.
8064
8065 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8066 position and length information.
8067
8068 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8069
8070 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8071 position and length information.
8072
8073 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8074
8075 Change overlays_after and overlays_before so the overlays themselves
8076 are linked into lists, rather than using cons cells. After all each
8077 Lisp_Misc already occupies 5 words, so we can add a `next' field to
8078 Lisp_Overlay for free and save up one cons cell per overlay (not
8079 to mention one indirection when traversing the list of overlay).
8080
8081 * lisp.h (struct Lisp_Overlay): New field `next'.
8082
8083 * buffer.h (struct buffer): Change overlays_before and overlays_after
8084 from Lisp lists of overlays to pointers to overlays.
8085
8086 * buffer.c (overlay_strings, recenter_overlay_lists):
8087 Fix typo in eassert in last commit.
8088 (unchain_overlay): New function.
8089 (add_overlay_mod_hooklist): Use AREF.
8090 (copy_overlays, reset_buffer, overlays_at, overlays_in)
8091 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
8092 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
8093 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
8094 (report_overlay_modification, evaporate_overlays, init_buffer_once):
8095 Adjust to new type of overlays_(before|after).
8096
8097 * alloc.c (mark_object): Mark the new `next' field of overlays.
8098 (mark_buffer): Manually mark the overlays_(after|before) fields.
8099
8100 * coding.c (run_pre_post_conversion_on_str):
8101 * editfns.c (overlays_around):
8102 * xdisp.c (load_overlay_strings):
8103 * fileio.c (Finsert_file_contents):
8104 * indent.c (current_column):
8105 * insdel.c (signal_before_change, signal_after_change):
8106 * intervals.c (set_point_both):
8107 * print.c (temp_output_buffer_setup): Use new type for
8108 overlays_(before|after).
8109
8110 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
8111
8112 * buffer.c (report_overlay_modification): Don't run hooks while
8113 traversing the list of overlays.
8114
8115 * buffer.h (struct buffer): Use an int for overlay_center.
8116 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8117 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8118
8119 * buffer.c (reset_buffer, recenter_overlay_lists)
8120 (adjust_overlays_for_insert, adjust_overlays_for_delete)
8121 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
8122 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
8123 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8124 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8125
8126 * xdisp.c (fast_find_position): Remove unused var.
8127
8128 * cmds.c (Qexpand_abbrev): New sym.
8129 (syms_of_cmds): Initialize it.
8130 (internal_self_insert): Use it to call expand-abbrev.
8131
8132 2003-07-09 Kim F. Storm <storm@cua.dk>
8133
8134 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
8135 was configured with --without-xim.
8136 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
8137
8138 2003-07-07 Richard M. Stallman <rms@gnu.org>
8139
8140 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
8141
8142 * alloc.c (Fgarbage_collect): Doc fix.
8143
8144 2003-07-07 Nozomu Ando <nand@mac.com>
8145
8146 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
8147
8148 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8149
8150 * minibuf.c (read_minibuf): UNGCPRO before returning.
8151 (Ftry_completion, Fall_completions): Doc fix.
8152
8153 * alloc.c (live_float_p): Check that p is not past the `floats' array,
8154 now that `floats' is not the last element of the struct any more.
8155
8156 2003-07-06 Jason Rumney <jasonr@gnu.org>
8157
8158 * w32term.h (ClipboardSequence_Proc): New type.
8159
8160 * w32fns.c (clipboard_sequence_fn): New variable.
8161 (globals_of_w32fns): Initialize it.
8162
8163 * w32select.c (last_clipboard_sequence_number): New variable.
8164 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
8165 number if possible.
8166
8167 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8168
8169 * m/amdx86-64.h (MARKBIT):
8170 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
8171 MARKBIT and ARRAY_MARK_FLAG any more.
8172
8173 * m/hp800.h (XSETMARKBIT):
8174 * m/sr2k.h (XSETMARKBIT):
8175 * lisp.h (XSETMARKBIT): Remove unused macro.
8176
8177 * lisp.h (mark_object): Change prototype.
8178
8179 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
8180 (last_marked): Change accordingly.
8181 (mark_interval, mark_maybe_object, mark_maybe_pointer)
8182 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
8183 (mark_buffer): Update calls to mark_object.
8184
8185 * bytecode.c (mark_byte_stack):
8186 * fns.c (sweep_weak_table):
8187 * keyboard.c (mark_kboards): Update calls to mark_object.
8188
8189 2003-07-06 Jason Rumney <jasonr@gnu.org>
8190
8191 * alloc.c (struct ablock): Only include padding when there is some.
8192
8193 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
8194
8195 * alloc.c (ALIGN): Add casts to simplify usage.
8196 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
8197 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
8198 (struct ablock, struct ablocks): New types.
8199 (free_ablock): New global var.
8200 (lisp_align_malloc, lisp_align_free): New functions.
8201 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
8202 (struct float_block): Reorder and add gcmarkbits.
8203 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
8204 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
8205 (init_float, make_float): Use lisp_align_malloc.
8206 (free_float, live_float_p): Don't use `type' any more.
8207 (make_float): Use FLOAT_UNMARK to access to mark bit.
8208 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
8209 Use FLOAT_MARKED_P to access the mark bit.
8210 (pure_alloc): Simplify use of ALIGN.
8211 (mark_object): Use FLOAT_MARK to access the mark bit.
8212 (gc_sweep): Use new macros to access the float's mark bit.
8213 (init_alloc_once): Init free_ablock.
8214
8215 * lisp.h (struct Lisp_Float): Remove unused field `type'.
8216
8217 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
8218
8219 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
8220 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
8221 (allocate_buffer): Move.
8222 (string_bytes): Don't mask markbit of `size_byte'.
8223 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8224 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
8225 Use the `size' field of buffers (rather than the `name' field) for
8226 the mark bit, as is done for all other vectorlike objects.
8227 Use the new macros to access the mark bit of vectorlike objects.
8228
8229 2003-06-26 Richard M. Stallman <rms@gnu.org>
8230
8231 * puresize.h (BASE_PURESIZE): Increment base size.
8232
8233 * xdisp.c (fast_find_position): Enable Gerd's new definition.
8234
8235 * xterm.c (xim_initialize): Undo previous change.
8236
8237 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
8238
8239 * alloc.c (survives_gc_p): Simplify.
8240
8241 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
8242
8243 * window.c (Fset_window_dedicated_p): Simplify.
8244 (display_buffer_1): Don't raise the win from which minibuf was entered.
8245 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
8246 (Fminibuffer_selected_window): Simplify.
8247
8248 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
8249
8250 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
8251 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
8252
8253 * insdel.c (check_markers, adjust_markers_for_delete)
8254 (adjust_markers_for_insert, adjust_markers_for_replace)
8255 (prepare_to_modify_buffer, RESTORE_VALUE):
8256 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
8257 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
8258 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
8259 * alloc.c (Fmake_marker, free_marker, gc_sweep):
8260 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
8261 * editfns.c (save_excursion_restore, transpose_markers):
8262 * window.c (delete_window):
8263 * xdisp.c (message_dolog): Update for new types.
8264
8265 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8266
8267 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
8268 (realize_default_face): Use default_face_done_p for the force_p
8269 argument to set_lface_from_font_name. Set default_face_done_p to one.
8270
8271 * frame.c (make_frame): Initialize default_face_done_p.
8272
8273 * frame.h (struct frame): Add default_face_done_p.
8274
8275 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
8276 will be defined.
8277
8278 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
8279
8280 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
8281 Initialize the new field `gcmarkbit'.
8282 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
8283 (mark_interval_tree): Don't mark the tree separately from the nodes.
8284 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
8285 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8286 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
8287
8288 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
8289 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
8290 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
8291 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
8292 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
8293
8294 2003-06-24 Dave Love <fx@gnu.org>
8295
8296 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
8297
8298 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
8299 from gnulib.
8300
8301 2003-06-21 Richard M. Stallman <rms@gnu.org>
8302
8303 * fileio.c (Fwrite_region): Alternate messages
8304 for append and partial write.
8305
8306 * keyboard.c (read_key_sequence): When converting upcase fn key to
8307 downcase, update fkey and keytran so `backspace' gets translated.
8308
8309 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
8310
8311 * process.c (wait_reading_process_input): Don't signal SIGIO
8312 in batch mode.
8313
8314 2003-06-17 Kenichi Handa <handa@m17n.org>
8315
8316 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
8317 composite.h.
8318
8319 * xselect.c: Don't include charset.h, coding.h, composite.h.
8320 (Qforeign_selection): New variable.
8321 (syms_of_xselect): Intern and static it.
8322 (selection_data_to_lisp_data): Return a unibyte string made from
8323 data with `foreign-selection' text property.
8324
8325 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
8326
8327 * termhooks.h (EVENT_INIT): New macro.
8328
8329 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
8330
8331 * alloc.c (mark_kboards): Move to keyboard.c.
8332
8333 * keyboard.c (record_asynch_buffer_change, read_avail_input):
8334 * xterm.c (x_dispatch_event):
8335 * xmenu.c (find_and_call_menu_selection):
8336 * xdisp.c (handle_tool_bar_click):
8337 * w32menu.c (menubar_selection_callback):
8338 * sysdep.c (kbd_input_ast, read_input_waiting):
8339 * msdos.c (dos_rawgetc):
8340 * macterm.c (mac_check_for_quit_char):
8341 * macmenu.c (menubar_selection_callback):
8342 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
8343 data to kbd_buffer_store_event.
8344
8345 2003-06-15 Kim F. Storm <storm@cua.dk>
8346
8347 * xdisp.c (x_fix_overlapping_area): Always use area relative X
8348 to fix redisplay problem with tall characters (such as \e,AC\e(B).
8349
8350 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8351
8352 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
8353
8354 2003-06-12 Kenichi Handa <handa@m17n.org>
8355
8356 * fileio.c (Fwrite_region): Save and restore restriction.
8357
8358 2003-06-12 Dave Love <fx@gnu.org>
8359
8360 * alloca.c (alloca): Declare arg as size_t.
8361
8362 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
8363 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
8364
8365 2003-06-11 Dave Love <fx@gnu.org>
8366
8367 * search.c (shrink_regexp_cache): Use xrealloc.
8368 (syms_of_search): Use xmalloc.
8369
8370 2003-06-10 Kim F. Storm <storm@cua.dk>
8371
8372 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
8373 Adjust phys_cursor.x to be relative to window box, rather than
8374 text area before checking -- to ensure cursor is redrawn when
8375 exposing window.
8376 Note: This also fixes a similar (older) bug if display margins
8377 are present.
8378
8379 2003-06-06 Kenichi Handa <handa@m17n.org>
8380
8381 * coding.c (encoding_buffer_size): If coding->type is
8382 coding_type_ccl, double magnification on CRLF encoding.
8383
8384 2003-06-06 Jason Rumney <jasonr@gnu.org>
8385
8386 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
8387 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
8388
8389 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
8390 Mac too.
8391
8392 2003-06-05 Dave Love <fx@gnu.org>
8393
8394 * strftime.c: Merge changes from gnulib.
8395
8396 * mktime.c (__mktime_internal): Merge changes from gnulib
8397 involving year 69 and dst2.
8398
8399 Changes to merge with gnulib version and be consistent with the
8400 autoconf test:
8401
8402 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
8403 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
8404 [HAVE_LOCALE_H]: Include locale.h.
8405 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
8406
8407 2003-06-05 Kim F. Storm <storm@cua.dk>
8408
8409 * window.c (coordinates_in_window): Convert X and Y to window
8410 relative coordinates inside mode-line and header-line parts.
8411 Convert X and Y to margin area relative coordinates inside left
8412 and right display margin parts.
8413
8414 2003-06-05 Jason Rumney <jasonr@gnu.org>
8415
8416 * w32fns.c (add_system_logical_colors_to_map): New function.
8417 (Fx_open_connection): Use it.
8418
8419 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
8420
8421 * process.c (allocate_pty): Revert part of the previous patch.
8422 (Faccept_process_output): Simplify.
8423
8424 2003-06-04 Jason Rumney <jasonr@gnu.org>
8425
8426 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
8427
8428 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
8429 (lispy_mouse_wheel_names): Remove.
8430 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
8431 Always define drag_and_drop_syms.
8432
8433 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
8434 WHEEL_EVENT events.
8435
8436 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
8437
8438 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
8439
8440 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
8441
8442 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8443
8444 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
8445 menu item label.
8446
8447 2003-06-03 Richard M. Stallman <rms@gnu.org>
8448
8449 * window.c (Fwindow_edges): Doc fix.
8450 (Fwindow_pixel_edges, Fwindow_inside_edges)
8451 (Fwindow_inside_pixel_edges): New functions.
8452 (syms_of_window): defsubr them.
8453
8454 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
8455 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
8456
8457 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
8458
8459 * dispnew.c (Fsit_for): Don't lie about the number of args.
8460
8461 2003-06-02 Dave Love <fx@gnu.org>
8462
8463 * callproc.c: Use HAVE_FCNTL_H, not USG5.
8464 (syms_of_callproc) <process-environment>: Doc fix.
8465
8466 * doc.c: Use HAVE_FCNTL_H, not USG5.
8467
8468 * xfaces.c (font_rescale_ratio): Fix for K&R.
8469
8470 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
8471
8472 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
8473
8474 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
8475
8476 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
8477 (xg_create_frame_widgets): Use ENCODE_UTF_8.
8478
8479 * xterm.c (Qutf_8): Move to coding.c
8480
8481 * xmenu.c (ENCODE_MENU_STRING): New.
8482 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
8483 Use it.
8484
8485 * coding.h (ENCODE_UTF_8): New.
8486 (Qutf_8): Declare.
8487
8488 * coding.c (Qutf_8): New.
8489 (syms_of_coding): Intern it.
8490
8491 * fns.c: Doc fixes.
8492
8493 2003-06-02 Kenichi Handa <handa@m17n.org>
8494
8495 * buffer.c (Fset_buffer_multibyte): Fix previous change.
8496
8497 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
8498
8499 * lread.c (openp): Make sure STR is a string.
8500
8501 2003-06-01 David Ponce <david@dponce.com>
8502
8503 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
8504 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
8505
8506 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
8507 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
8508 (discard_mouse_events): Discard WHEEL_EVENT events too.
8509 (lispy_wheel_names, wheel_syms): New.
8510 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
8511 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
8512 (make_lispy_event): Add WHEEL_EVENT handler.
8513
8514 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
8515 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8516 WHEEL_EVENT events.
8517
8518 2003-05-31 John Paul Wallington <jpw@gnu.org>
8519
8520 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
8521 timer are in lisp/emacs-lisp.
8522
8523 2003-05-31 Kenichi Handa <handa@m17n.org>
8524
8525 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
8526 region when a buffer is changed to unibyte.
8527
8528 * charset.h (VALID_LEADING_CODE_P): New macro.
8529 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
8530
8531 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
8532 is nonzero, accept multibyte form of eight-bit-control chars.
8533 (decode_composition_emacs_mule): Likewise.
8534 (decode_coding_emacs_mule): Likewise.
8535 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
8536 multibyte form of eight-bit-control chars.
8537
8538 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
8539 (Finsert_file_contents): If coding-system-for-read is bound to
8540 Qauto_save_coding, use the coding system emacs-mule with special
8541 setting for recovering a file.
8542 (choose_write_coding_system): On auto saving, use the coding
8543 system emacs-mule with special setting for auto saving.
8544 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
8545
8546 2003-05-30 Kenichi Handa <handa@m17n.org>
8547
8548 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
8549 properly before calling ccl_driver.
8550
8551 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
8552
8553 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
8554 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
8555 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
8556
8557 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
8558
8559 * xfaces.c (realize_default_face): Do not abort if lface is
8560 non-existent - reverts change from 2003-05-19.
8561
8562 2003-05-29 Kenichi Handa <handa@m17n.org>
8563
8564 * coding.c (decode_coding_iso2022): Pay attention to the byte
8565 sequence of CTEXT extended segment, and retain those bytes as is.
8566
8567 2003-05-28 Kenichi Handa <handa@m17n.org>
8568
8569 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
8570 of CODING_REPLACEMENT_CHARACTER.
8571 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
8572 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
8573 check this flag on encoding.
8574 (encode_coding_sjis_big5):
8575 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
8576 (Fset_terminal_coding_system_internal):
8577 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
8578 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
8579
8580 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
8581 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8582 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
8583
8584 2003-05-28 Richard M. Stallman <rms@gnu.org>
8585
8586 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
8587
8588 * eval.c (unbind_to): Move init of this_binding to separate statement.
8589
8590 2003-05-28 Kim F. Storm <storm@cua.dk>
8591
8592 * xdisp.c (expose_window): Fix error in calculation of
8593 window relative coordinates of area to redisplay.
8594
8595 2003-05-27 Jason Rumney <jasonr@gnu.org>
8596
8597 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
8598
8599 2003-05-27 David Ponce <david@dponce.com>
8600
8601 Handle W32 mouse wheel events as mouse click events, like in X.
8602
8603 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
8604 MOUSE_WHEEL_EVENT anymore.
8605
8606 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
8607 Scrolling down/up the mouse wheel is respectively mapped to mouse
8608 button 4 and 5.
8609 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8610 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
8611 WM_MOUSEWHEEL events.
8612
8613 2003-05-27 Andreas Schwab <schwab@suse.de>
8614
8615 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
8616
8617 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
8618 partially visible line.
8619
8620 * alloc.c (Fgarbage_collect): Fix last change.
8621
8622 2003-05-26 John Paul Wallington <jpw@gnu.org>
8623
8624 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
8625
8626 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
8627
8628 * window.c (Fset_window_buffer): Add type of `keep_margins'.
8629 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
8630
8631 * window.h (window_box_text_cols): Declare.
8632
8633 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
8634 (x_draw_vertical_border): Remove unused var `f'.
8635
8636 * xfaces.c (build_scalable_font_name): Remove `unused var
8637 pixel_size' warning.
8638
8639 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
8640
8641 * unexelf.c (unexec): Remove `unused var n' warning.
8642
8643 * strftime.c (my_strftime_localtime_r): Remove `defined but
8644 unused' warning.
8645
8646 * process.c (allocate_pty): Remove `unused var stb' and
8647 `cp might be used uninitialized' warnings.
8648
8649 * dispnew.c (mode_line_string): Remove unused var `f'.
8650
8651 * coding.c (find_safe_codings): Remove unused var `i'.
8652
8653 * bytecode.c (Fbyte_code): Remove `unused val' warning.
8654
8655 * buffer.c (Fkill_buffer): Remove unused var `list'.
8656
8657 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
8658
8659 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8660
8661 * frame.c (make_frame): Condition want_fullscreen with
8662 HAVE_WINDOW_SYSTEM.
8663
8664 2003-05-25 Juanma Barranquero <lektu@terra.es>
8665
8666 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
8667 (Fwindow_scroll_bars): Fix typo in docstring.
8668
8669 2003-05-24 Kim F. Storm <storm@cua.dk>
8670
8671 The following changes serve several purposes:
8672
8673 1) Swap the position of fringes and display margins in windows, i.e.
8674 the fringes are now displayed between the margins and the text area
8675 (by default).
8676
8677 2) Allow fringe and scroll bar parameters to be set per-buffer and
8678 per-window (like display margins). Such settings are now stored
8679 in window configurations, preserved when frames are resized, and
8680 copied when windows are split vertically or horizontally.
8681 Several bugs related to display margins have been fixed.
8682
8683 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
8684
8685 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
8686 rather than FRAME_WIDTH (FRAME_FONT (f)).
8687
8688 5) Introduce a consistent naming of variables, members and macros
8689 depending on whether their value is measured in pixels or in
8690 canonical columns/lines. Pixel dimensions are named *_width and
8691 *_height, while canonical columns/lines are named *_cols and
8692 *_lines. Pixel positions are named *_x and *_y, while column/line
8693 positions are named *_col and *_line.
8694
8695 6) Consolidate more of the X, W32, and MAC gui code by moving
8696 common data into struct frame, and generalize it for the non-gui
8697 case by using suitable defaults.
8698
8699 7) Cleanup and consolidate the macros controlling frame and window
8700 layout into frame.h and window.h, and generalize the use of the
8701 various window_box_* functions (enhanced to handle the new fringe
8702 position and the per-window fringe and scroll bar settings).
8703
8704 * frame.h (struct frame): Rename members height to text_lines,
8705 width to text_cols, window_height to total_lines, window_width to
8706 total_cols, new_height to new_text_lines, new_width to
8707 new_text_cols. All uses changed.
8708 (struct frame): New members which consolidate common members of
8709 x_output, w32_output, and mac_output structures: left_pos,
8710 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
8711 win_gravity, size_hint_flags, border_width, internal_border_width,
8712 line_height, fringe_cols, left_fringe_width, right_fringe_width,
8713 want_fullscreen. All uses changed.
8714 (struct frame): New member column_width contaning the canonical
8715 column width, analogue to line_height. All uses changed.
8716 (struct frame): Rename members scroll_bar_pixel_width to
8717 config_scroll_bar_width, and scroll_bar_cols to
8718 config_scroll_bar_cols. All uses changed.
8719 (struct frame): New member scroll_bar_actual_width which
8720 consolidates and renames the vertical_scroll_bar_extra member of
8721 x_output, w32_output, and mac_output structures. All uses changed.
8722 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
8723 from x/w32/macterm.h files. All uses changed. Also change code
8724 which referred to f->output_data...->pixel_height.
8725 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
8726 from x/w32/macterm.h files. All uses changed. Also change code
8727 which referred to f->output_data...->pixel_width.
8728 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
8729 Also change code which referred to f->height.
8730 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
8731 Also change code which referred to f->width.
8732 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
8733 to update new_text_lines and new_text_cols members directly.
8734 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
8735 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
8736 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
8737 FRAME_SCROLL_BAR_COLS. All uses changed.
8738 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
8739 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
8740 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
8741 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
8742 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
8743 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
8744 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
8745 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
8746 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
8747 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
8748 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
8749 Unconditionally return line_height member (it now has proper value
8750 also for non-window frames).
8751 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
8752 return new column_width member (rather than the default font width).
8753 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
8754 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
8755 from x/w32/macterm.h files. Unconditionally return corresponding
8756 member of frame structure (they now have proper values also for
8757 non-window frames).
8758 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
8759 Calculate return value from left and right widths.
8760 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
8761 internal_border_width member (has proper value for non-window frame).
8762 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
8763 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
8764 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
8765 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
8766 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
8767 consolidated from xterm.h, macterm.h, and w32term.h.
8768 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
8769 consolidated from xterm.h, macterm.h, and w32term.h.
8770 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
8771 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
8772 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
8773 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
8774 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
8775 consolidated from x/mac/w32term.h.
8776 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
8777 consolidated from x/mac/w32term.h.
8778 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
8779 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
8780 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
8781 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
8782
8783 * window.h (struct window): Rename members left to left_col,
8784 top to top_line, height to total_lines, width to total_cols,
8785 left_margin_width to left_margin_cols, right_margin_width to
8786 right_margin_cols, orig_height to orig_total_lines, orig_top to
8787 orig_top_line. All uses changed.
8788 (struct window): New members left_fringe_width, right_fringe_width,
8789 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
8790 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
8791 New macros primarily used to simplify other macros.
8792 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
8793 referred to XINT (w->width).
8794 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
8795 referred to XINT (w->height).
8796 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
8797 referred to XINT (w->width) * canon_x_unit.
8798 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
8799 referred to XINT (w->height) * canon_y_unit.
8800 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
8801 referred to XINT (w->left).
8802 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
8803 all uses and code that referred to XINT (w->left) + XINT (w->width).
8804 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
8805 referred to XINT (w->top).
8806 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
8807 referred to XINT (w->top) + XINT (w->height).
8808 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
8809 referred to XINT (w->left) * canon_x_unit.
8810 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
8811 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
8812 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
8813 referred to XINT (w->top) * canon_y_unit.
8814 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
8815 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
8816 (WINDOW_LEFTMOST_P): New macro.
8817 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
8818 All uses changed.
8819 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
8820 All uses changed.
8821 (WINDOW_BOX_LEFT_EDGE_X): Rename from
8822 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
8823 Do not exclude left fringe width.
8824 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
8825 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
8826 Do not exclude fringe widths.
8827 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
8828 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
8829 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
8830 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
8831 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
8832 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
8833 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
8834 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
8835 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
8836 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
8837 New macros. Change code which referenced corresponding
8838 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8839 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8840 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8841 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8842 allow per-window scroll-bar settings.
8843 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8844 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
8845 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8846 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
8847 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8848 FRAME_SCROLL_BAR_WIDTH.
8849 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
8850 (WINDOW_SCROLL_BAR_AREA_X): New macros.
8851 (WINDOW_HEADER_LINE_HEIGHT): Rename from
8852 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
8853 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
8854 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
8855 (WINDOW_BOX_TEXT_HEIGHT): Rename from
8856 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8857 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8858 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8859 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8860 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
8861 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8862 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
8863 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8864 (window_from_coordinates): Update prototype.
8865 (Fset_window_buffer): Update EXFUN.
8866 (set_window_buffer): Update prototype.
8867
8868 * dispextern.h (struct glyph_matrix): Rename members window_left_x
8869 to window_left_col, window_top_y to window_top_line. All uses
8870 changed.
8871 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8872 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8873 internal_border_width is now set to 0 for non-window frames.
8874 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8875 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8876 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8877 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8878 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8879 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8880 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8881 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8882 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
8883 Move to window.h and renamed [see window.h changes].
8884 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8885 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
8886 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8887 Use WINDOW_TOTAL_LINES.
8888 (frame_update_line_height): Remove prototype.
8889
8890 * buffer.h (struct buffer): Rename members measured in columns:
8891 left_margin_width to left_margin_cols, right_margin_width to
8892 right_margin_cols. All uses changed.
8893 New members left_fringe_width, right_fringe_width,
8894 fringes_outside_margins for per-buffer fringe settings.
8895 New members scroll_bar_width and vertical_scroll_bar_type for
8896 per-buffer scroll bar settings.
8897
8898 * buffer.c (init_buffer_once): Set buffer_defaults and
8899 buffer_local_flags for new buffer-local variables
8900 left_fringe_width, right_fringe_width, fringes_outside_margins,
8901 scroll_bar_width, and vertical_scroll_bar_type.
8902 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8903 default-* variables for them.
8904
8905 * dispnew.c: Make (many) trivial substitutions for renamed and
8906 new macros in dispextern.h, frame.h and window.h.
8907 (mode_line_string): No need to adjust width for mode lines, as it
8908 is already adjusted by the caller.
8909 (marginal_area_string): Handle fringes inside/outside margins.
8910
8911 * frame.c: Make (many) trivial substitutions for renamed and
8912 new macros in dispextern.h, frame.h and window.h.
8913 (make_frame): Initialize left_fringe_width, right_fringe_width,
8914 fringe_cols, scroll_bar_actual_width, border_width,
8915 internal_border_width, column_width, line_height, x_pixels_diff,
8916 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8917 members with values suitable for a non-window frames.
8918
8919 * gtkutil.c: Make (many) trivial substitutions for renamed and
8920 new macros in dispextern.h, frame.h and window.h.
8921
8922 * indent.c: Make (few) trivial substitutions for renamed and
8923 new macros in dispextern.h, frame.h and window.h.
8924
8925 * keyboard.c: Make (many) trivial substitutions for renamed and
8926 new macros in dispextern.h, frame.h and window.h.
8927 (make_lispy_event): Use window positions returned from
8928 window_from_coordinates when constructing the lisp event for
8929 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8930 (incorrect) values locally.
8931 (make_lispy_movement): Use window positions returned from
8932 window_from_coordinates when constructing the lisp event, rather
8933 than calculating (incorrect) values locally.
8934
8935 * scroll.c: Make (some) trivial substitutions for renamed and
8936 new macros in dispextern.h, frame.h and window.h.
8937
8938 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8939 scroll-bars.
8940
8941 * sysdep.c: Make (few) trivial substitutions for renamed and
8942 new macros in dispextern.h, frame.h and window.h.
8943
8944 * term.c: Make (some) trivial substitutions for renamed and
8945 new macros in dispextern.h, frame.h and window.h.
8946
8947 * widget.c: Make (few) trivial substitutions for renamed and
8948 new macros in dispextern.h, frame.h and window.h.
8949
8950 * window.c: Make (many) trivial substitutions for renamed and
8951 new macros in dispextern.h, frame.h and window.h.
8952 (make_window): Initialize new members
8953 left_margin_cols, right_margin_cols, left_fringe_width,
8954 right_fringe_width, fringes_outside_margins, scroll_bar_width,
8955 and vertical_scroll_bar_type.
8956 (coordinates_in_window): Adapt to new fringe/margin positions
8957 and per-window fringes and scroll-bars.
8958 Fix bug related to incorrectly adjusting coordinates by
8959 frame's internal_border_width (the effect normally negible since
8960 the internal_border_width is typically 0 or 1 pixel, but very
8961 noticeable for an internal_border_width of e.g. 25 pixels).
8962 Upon successful return (other than ON_NOTHING), the coordinates
8963 are now always properly converted to window relative for the
8964 given display element.
8965 (window_from_coordinates): Add new parameters wx and wy to
8966 return the window relative x and y position in the returned
8967 window and part. A null arg means, don't return the position.
8968 All callers changed.
8969 (adjust_window_margins): New function which may reduce the width
8970 of the display margins if a window's text area is too small after
8971 resizing or splitting windows.
8972 (size_window): Fix bug that did not account for display margin
8973 widths when checking the minimum width of a window; use
8974 adjust_window_margins.
8975 (set_window_buffer): Call Fset_window_fringes and
8976 Fset_window_scroll_bars to setup per-window elements.
8977 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8978 existing display margin, fringe widths, and scroll bar settings
8979 (e.g. after splitting a window or resizing the frame).
8980 All callers changed.
8981 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8982 (Fsplit_window): Duplicate original window's display margin,
8983 fringe, and scroll-bar settings; then call Fset_window_buffer with
8984 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8985 window to only preserve the display margins in one of the windows.
8986 When splitting horizontally, call adjust_window_margins on both
8987 windows to ensure that the text area of the new windows is non too
8988 narrow. This fixes a bug which could cause Emacs to trap if the
8989 width of the split window was less than the width of the display
8990 margins.
8991 (window_box_text_cols): Rename from window_internal_width.
8992 All uses changed. Adapt to per-window fringes and scroll bars.
8993 Fix bug that caused vertical separator to be subtracted also on
8994 window frames. Fix another bug that did not reduce the returned
8995 value by the columns used for display margins.
8996 (window_scroll_line_based): Fix bug related to scrolling too much
8997 when display margins are present (implicitly fixed by the fix to
8998 window_box_text_cols).
8999 (scroll_left, scroll_right): Fix bug related to scrolling too far
9000 by default when display margins are present (implicitly fixed by
9001 the fix to window_box_text_cols).
9002 (struct saved_window): Rename members left to left_col, top to
9003 top_line, width to total_cols, height to total_lines, orig_top to
9004 orig_top_line, orig_height to orig_total_lines. All uses changed.
9005 New members left_margin_cols, right_margin_cols,
9006 left_fringe_width, right_fringe_width, fringes_outside_margins,
9007 scroll_bar_width, and vertical_scroll_bar_type for saving
9008 per-window display elements.
9009 (Fset_window_configuration): Restore display margins, fringes,
9010 and scroll bar settings. This fixes a bug which caused display
9011 margins to be discarded when saving and restoring a window
9012 configuration.
9013 (save_window_save): Save display margins, fringes, and scroll bar
9014 settings. This fixes a bug which caused display margins to be
9015 discarded when saving and restoring a window configuration.
9016 (Fset_window_margins): Do nothing if display margins are not
9017 really changed. Otherwise, call adjust_window_margins to ensure
9018 the text area doesn't get too narrow. This fixes a bug which
9019 could cause Emacs to trap if setting display margins wider than
9020 the width of the window.
9021 (Fset_window_fringes): New defun to allow user to specifically set
9022 this window's fringe widths and position vs. display margins.
9023 (Fwindow_fringes): New defun to return window's actual fringe settings.
9024 (Fset_window_scroll_bars): New defun to allow user to specifically
9025 set this window's scroll bar width and position.
9026 (Fwindow_scroll_bars): New defun to return window's actual scroll
9027 bar settings.
9028 (compare_window_configurations): Also compare display margins,
9029 fringes, and scroll bar settings.
9030 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
9031
9032 * xdisp.c: Make (many) trivial substitutions for renamed and
9033 new macros in dispextern.h, frame.h and window.h.
9034 (window_box_width): Adapt to per-window fringes and scroll bars,
9035 and new fringe vs. display margin position. Note that returned
9036 value is no longer guaranteed to be a whole multiple of the frame
9037 column width, since per-window fringes may now be any width.
9038 (window_box_left_offset): New function like window_box_left, but
9039 value is relative to left border of window (rather than frame).
9040 (window_box_right_offset): New function like window_box_right,
9041 but value is relative to left border of window.
9042 (window_box_left): Adapt to per-window fringes and scroll bars,
9043 and new fringe vs. display margin position. Simplify by using
9044 WINDOW_LEFT_EDGE_X and window_box_left_offset.
9045 (window_box): Allow null args for unnecessary return values;
9046 change/simplify relevant callers.
9047 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9048 and new fringe vs. display margin position.
9049 Use window_box_left_offset and window_box_right_offset
9050 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9051 scroll bars, and new fringe vs. display margin position.
9052 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
9053 (draw_fringe_bitmap): Rework to handle per-window fringes and new
9054 fringe vs. display margin position.
9055 (hscroll_window_tree): Use window_box_width instead of window_box.
9056 (redisplay_window): Adapt to per-window scroll bars.
9057 (draw_glyphs): Rework to handle per-window fringes and scroll
9058 bars, and new fringe vs. display margin position.
9059 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
9060 (x_clear_end_of_line): Adapt to per-window fringes and scroll
9061 bars, and new fringe vs. display margin position. Fix bug which
9062 increased total width of full_width rows by width of scroll bars
9063 although window's total width already includes that.
9064 (x_fix_overlapping_area): Simplify using window_box_left_offset.
9065 (expose_area): Simplify using window_box_left_offset.
9066 (x_draw_vertical_border): Handle per-window scroll bar settings,
9067 mixing windows with left, right and no scroll bars.
9068
9069 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
9070 where it's used in x_list_fonts (for clarity).
9071 (frame_update_line_height): Remove unused function; functionality
9072 is now done directly when setting the default font in x_set_font.
9073
9074 * xfns.c: Make (many) trivial substitutions for renamed and
9075 new macros in dispextern.h, frame.h and window.h.
9076
9077 * xmenu.c: Make (some) trivial substitutions for renamed and
9078 new macros in dispextern.h, frame.h and window.h.
9079
9080 * xterm.h (struct x_output): Move members left_pos, top_pos,
9081 border_width, pixel_height, pixel_width, line_height,
9082 internal_border_width, vertical_scroll_bar_extra,
9083 left_fringe_width, right_fringe_width, fringe_cols,
9084 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9085 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9086 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9087 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9088 (PIXEL_WIDTH, PIXEL_HEIGHT)
9089 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9090 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9091 frame.h and renamed [see frame.h changes].
9092 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9093 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9094 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9095 and renamed [see frame.h changes].
9096
9097 * xterm.c: Make (several) trivial substitutions for renamed and
9098 new macros in dispextern.h, frame.h and window.h.
9099 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9100 (scroll_run): Adapt to new fringe position.
9101 (glyph_rect): Use window coordinates returned from
9102 window_from_coordinates rather than frame_to_window_pixel_xy.
9103 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9104 scroll-bars.
9105 (handle_one_xevent): Simplify a USE_GTK conditional.
9106 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9107 (fringes are now inside margins, i.e. always in the clipping area).
9108 All callers changed.
9109 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9110 directly, then call compute_fringe_widths. Don't call
9111 frame_update_line_height.
9112
9113 * w32term.h (struct w32_output): Move members left_pos, top_pos,
9114 border_width, pixel_height, pixel_width, line_height,
9115 internal_border_width, vertical_scroll_bar_extra,
9116 left_fringe_width, right_fringe_width, fringe_cols,
9117 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9118 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9119 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9120 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9121 (PIXEL_WIDTH, PIXEL_HEIGHT)
9122 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9123 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9124 frame.h and renamed [see frame.h changes].
9125 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9126 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9127 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9128 and renamed [see frame.h changes].
9129
9130 * w32term.c: Make (several) trivial substitutions for renamed and
9131 new macros in dispextern.h, frame.h and window.h.
9132 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9133 (glyph_rect): Use window coordinates returned from
9134 window_from_coordinates rather than frame_to_window_pixel_xy.
9135 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9136 scroll-bars.
9137 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
9138 (fringes are now inside margins, i.e. always in the clipping area).
9139 All callers changed.
9140 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9141 directly, then call compute_fringe_widths. Don't call
9142 frame_update_line_height.
9143
9144 * w32console.c: Make (few) trivial substitutions for renamed and
9145 new macros in dispextern.h, frame.h and window.h.
9146
9147 * w32fns.c: Make (many) trivial substitutions for renamed and
9148 new macros in dispextern.h, frame.h and window.h.
9149
9150 * w32menu.c: Make (few) trivial substitutions for renamed and
9151 new macros in dispextern.h, frame.h and window.h.
9152
9153 * macterm.h (struct mac_output): Move members left_pos, top_pos,
9154 border_width, pixel_height, pixel_width, line_height,
9155 internal_border_width, vertical_scroll_bar_extra,
9156 left_fringe_width, right_fringe_width, fringe_cols,
9157 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9158 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
9159 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9160 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9161 (PIXEL_WIDTH, PIXEL_HEIGHT)
9162 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9163 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9164 frame.h and renamed [see frame.h changes].
9165 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9166 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9167 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9168 and renamed [see frame.h changes].
9169
9170 * macterm.c: Make (several) trivial substitutions for renamed and
9171 new macros in dispextern.h, frame.h and window.h.
9172 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9173 (glyph_rect): Use window coordinates returned from
9174 window_from_coordinates rather than frame_to_window_pixel_xy.
9175 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9176 scroll-bars.
9177 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9178 (fringes are now inside margins, i.e. always in the clipping area).
9179 All callers changed.
9180 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9181 directly, then call compute_fringe_widths. Don't call
9182 frame_update_line_height.
9183
9184 * macfns.c: Make (several) trivial substitutions for renamed and
9185 new macros in dispextern.h, frame.h and window.h.
9186 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
9187
9188 * macmenu.c: Make (few) trivial substitutions for renamed and
9189 new macros in dispextern.h, frame.h and window.h.
9190
9191 * msdos.h (struct x_output): Remove members left_pos, top_pos,
9192 and line_height, and use corresponding new members in struct
9193 frame. All uses changed.
9194 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
9195 superseeded by corresponding macros in frame.h.
9196
9197 * msdos.c: Make (several) trivial substitutions for renamed and
9198 new macros in dispextern.h, frame.h and window.h.
9199 (IT_note_mouse_highlight): Use updated window coordinates returned
9200 by window_from_coordinates, rather than adjusting them locally.
9201 (internal_terminal_init): No need to initialize line_height here;
9202 it now defaults to 1.
9203
9204 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
9205
9206 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
9207 dropping `down' events.
9208
9209 2003-05-24 Andreas Schwab <schwab@suse.de>
9210
9211 * coding.c (find_safe_codings): Fix last change.
9212
9213 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
9214
9215 * xfns.c (x_window): Fix typo from 2003-05-21 change.
9216
9217 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
9218
9219 * xdisp.c (display_mode_element): Increase max depth.
9220 Simplify the error handling code. Use a different error string
9221 for the case where we hit the depth limit.
9222
9223 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
9224
9225 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
9226
9227 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
9228
9229 * intervals.c (get_local_map): Don't get char-property of previous
9230 point any more: get_pos_property already does it and better.
9231
9232 2003-05-21 Dave Love <fx@gnu.org>
9233
9234 [Merged from unicode branch.]
9235
9236 * xfns.c (x_window, x_window): Use use_xim.
9237
9238 * xterm.c (use_xim): Initialize.
9239 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9240 (x_term_init): Maybe set use_xim.
9241
9242 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9243
9244 2003-05-21 Jason Rumney <jasonr@gnu.org>
9245
9246 * unexw32.c (_start): Remove _fmode initialization.
9247
9248 * emacs.c (main) [WINDOWSNT]: Move it here.
9249
9250 2003-05-20 Dave Love <fx@gnu.org>
9251
9252 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
9253
9254 2003-05-19 Richard M. Stallman <rms@gnu.org>
9255
9256 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
9257 as value for QCfont attribute.
9258 (realize_default_face): lface should already exist; crash if not.
9259 Specify 0 for FORCE_P when calling set_lface_from_font_name.
9260
9261 * frame.c (Fignore_event): Doc fix.
9262
9263 2003-05-19 Kenichi Handa <handa@m17n.org>
9264
9265 * coding.c (decode_coding_string): Handle post-read-conversion
9266 even if the coding doesn't require decoding.
9267
9268 2003-05-18 Richard M. Stallman <rms@gnu.org>
9269
9270 * callproc.c (Fcall_process_region): Doc fix.
9271
9272 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9273
9274 * lread.c (Fload): Print a message if package is obsolete.
9275
9276 * window.c (Fselect_window): Add optional `norecord' arg.
9277 (select_window_1): Fold into Fselect_window.
9278 (select_window_norecord): New function.
9279 (temp_output_buffer_show): Use it. Preserve current buffer.
9280
9281 * window.h (Fselect_window): Update declaration.
9282
9283 * window.c (delete_window, Fother_window, Fset_window_configuration):
9284 * minibuf.c (read_minibuf):
9285 * macterm.c (x_new_focus_frame):
9286 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
9287 * callint.c (Fcall_interactively):
9288 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
9289
9290 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
9291
9292 2003-05-17 David Kastrup <dak@gnu.org>
9293
9294 * process.c (read_process_output): Back out change from 2003-03-09.
9295
9296 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9297
9298 * editfns.c (get_pos_property): Don't assume that `object' = nil.
9299
9300 * textprop.c (text_property_stickiness): New arg `buffer'.
9301
9302 * intervals.h (text_property_stickiness): New arg `buffer'.
9303 (get_pos_property): Declare.
9304
9305 * intervals.c (get_local_map): Use get_pos_property, to obey
9306 stickiness and empty overlays.
9307 (create_root_interval, graft_intervals_into_buffer): Use BEG.
9308 (merge_properties, intervals_equal, merge_properties_sticky):
9309 Use XCAR, XCDR.
9310 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
9311
9312 2003-05-17 Richard M. Stallman <rms@gnu.org>
9313
9314 * minibuf.c (read_minibuf): If buffer is empty, record the default
9315 in the history.
9316 (Fminibuffer_complete_word): When deleting the overlap, take account
9317 of its real position.
9318
9319 * fns.c (map_char_table): Fix previous change.
9320
9321 * syntax.c (find_defun_start):
9322 When open_paren_in_column_0_is_defun_start,
9323 return beginning of buffer.
9324
9325 * lisp.h (map_char_table): Declare added arg.
9326
9327 * fns.c (map_char_table): New arg TABLE gets the master table.
9328 All calls changed.
9329 Process default and inheritance, resorting to Faref if necessary.
9330
9331 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9332 (Faccessible_keymaps): Pass new arg to map_char_table.
9333
9334 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
9335
9336 * casetab.c (set_case_table): Pass new arg to map_char_table.
9337
9338 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
9339
9340 * lisp.h (specbinding_func): New typedef.
9341 (struct specbinding): Use specbinding_func, to put the `volatile'
9342 in the right place.
9343
9344 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
9345 to avoid GCC warning.
9346
9347 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
9348
9349 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
9350
9351 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
9352
9353 * keyboard.c (apply_modifiers): Don't fill the other cache.
9354
9355 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
9356
9357 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
9358
9359 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
9360 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
9361 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
9362 (Fset_window_configuration, Fcurrent_window_configuration)
9363 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
9364 (Fpos_visible_in_window_p, mark_window_cursors_off)
9365 (window_internal_height, window_internal_width, Frecenter)
9366 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
9367 (replace_buffer_in_all_windows, init_window_once, init_window)
9368 (syms_of_window, keys_of_window): Move from lisp.h.
9369 * lisp.h: Move window.c declarations to window.h.
9370
9371 * bytecode.c: Include window.h.
9372 * emacs.c: Include window.h.
9373
9374 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9375 (keyremap): Add `parent' field.
9376 (keyremap_step): Use it. Remove `parent' argument.
9377 (read_key_sequence): Setup and use the new `parent' field.
9378
9379 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
9380
9381 * keyboard.c (adjust_point_for_property): Ensure termination.
9382
9383 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
9384
9385 * keyboard.c (follow_key): Remove dead variable `did_meta'.
9386 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
9387 duplicated handling of function-key-map and key-translation-map
9388 in read_key_sequence.
9389 (read_key_sequence): Use them.
9390
9391 * keyboard.c (adjust_point_for_property): Try harder to move point
9392 to the non-sticky end of an invisible property.
9393
9394 * xdisp.c (single_display_prop_intangible_p): Make `space' display
9395 property intangible as well.
9396
9397 2003-05-10 Andreas Schwab <schwab@suse.de>
9398
9399 * xmenu.c (single_menu_item): Change last parameter to void* to
9400 avoid warning.
9401
9402 2003-05-09 Richard M. Stallman <rms@gnu.org>
9403
9404 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
9405 Bind Qinhibit_modification_hooks to t so there will be no GC.
9406 Rename local `tem' to `save_deactivate_mark'.
9407
9408 * eval.c (specpdl_ptr): Declare volatile.
9409 (unbind_to): Copy the whole binding and decrement specpdl_ptr
9410 before doing the work of unbinding it.
9411
9412 * lisp.h (struct specbinding): Declare elements volatile.
9413 (specpdl_ptr): Declare volatile.
9414
9415 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
9416
9417 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
9418 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
9419
9420 2003-05-08 Dave Love <fx@gnu.org>
9421
9422 * coding.c (Vlast_coding_system_used): Doc fix.
9423
9424 2003-05-07 Jason Rumney <jasonr@gnu.org>
9425
9426 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
9427 when system does not support them.
9428
9429 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
9430
9431 * fileio.c (Qwrite_region_annotate_functions): New var.
9432 (build_annotations): Use it to process the global part of the hook.
9433 (syms_of_fileio): Init and staticpro it.
9434
9435 * keyboard.c (safe_run_hooks_error): Display a message instead of
9436 silently ignoring the error.
9437
9438 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
9439
9440 * keyboard.c (input_available_signal): Mark static.
9441 (menu_bar_items): Use map_keymap.
9442 (menu_bar_one_keymap): Remove.
9443 (menu_bar_item): Adjust arglist (for use in map_keymap).
9444 Properly hide a second binding when not both are keymaps.
9445
9446 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
9447 (single_keymap_panes): Use it and map_keymap.
9448 (single_menu_item): Use skp as well.
9449
9450 * keymap.h (map_keymap_function_t): New type.
9451 (map_keymap): Declare.
9452
9453 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
9454 (map_keymap_call, Fmap_keymap): New functions.
9455 (syms_of_keymap): Defsubr map-keymap.
9456
9457 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9458
9459 * gtkutil.c (create_dialog, make_widget_for_menu_item)
9460 (make_menu_item, create_menus, xg_update_menu_item): Don't call
9461 ..._with_mnemonic functions for menu items.
9462
9463 2003-05-01 Kenichi Handa <handa@m17n.org>
9464
9465 * coding.c (coding_system_accept_latin_extra_p): Delete this
9466 function.
9467 (find_safe_codings): Pay attention to
9468 the property tranlsation-table-for-encode of each codings.
9469 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
9470
9471 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
9472
9473 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
9474
9475 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
9476
9477 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
9478
9479 * lisp.h (CHECK): Wrap args in parenthesis.
9480 (specbind): Fix doc: symbol = Qnil is not supported any more.
9481
9482 * bytecode.c (Fbyte_code) <unwind-protect>:
9483 Use Fprogn rather than 0 and Qnil.
9484
9485 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
9486 `double', and `triple' modifiers as well.
9487
9488 2003-04-30 Richard M. Stallman <rms@gnu.org>
9489
9490 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
9491
9492 * alloc.c (abort_on_gc): New variable.
9493 (Fgarbage_collect): Abort if abort_on_gc is set.
9494
9495 * lisp.h (abort_on_gc): Add decl.
9496
9497 * eval.c (Fsignal): Clear abort_on_gc.
9498
9499 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
9500 Reinit FORMAT_START and END before second scan.
9501
9502 * xdisp.c (move_it_vertically_backward): Do the final big else
9503 even if nlines is 0.
9504
9505 * xdisp.c (redisplay_internal): Finish the per-frame loop
9506 even if redisplay is suspended by input.
9507
9508 2003-04-24 Andrew Choi <akochoi@shaw.ca>
9509
9510 * macterm.c (x_list_fonts): Return all fonts that match if
9511 maxnames = -1.
9512
9513 2003-04-25 Kenichi Handa <handa@m17n.org>
9514
9515 * syntax.c (skip_chars): Fix previous change.
9516
9517 2003-04-24 Kenichi Handa <handa@m17n.org>
9518
9519 * syntax.c (skip_chars): Make the code faster by using the common
9520 technique of *p, *stop, and *endp.
9521
9522 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9523
9524 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
9525 tool_bar_items so GTK tool bar expose callback does not access items
9526 being updated.
9527
9528 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
9529
9530 * eval.c (Fapply): Undo last change and add a comment about why.
9531
9532 2003-04-18 Miles Bader <miles@gnu.org>
9533
9534 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
9535 pickier PARSE_MULTIBYTE_SEQ.
9536
9537 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
9538
9539 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
9540 Use XCDR, XCAR, CONSP.
9541 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
9542 (Fapply): Remove unnecessary GCPRO.
9543
9544 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
9545
9546 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
9547
9548 * buffer.h: Don't hardcode BEG==1.
9549
9550 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
9551
9552 2003-04-16 Richard M. Stallman <rms@gnu.org>
9553
9554 * xdisp.c (try_window, try_window_reusing_current_matrix):
9555 When at end of window, set window_end_pos to Z-ZV.
9556
9557 * buffer.c (Foverlay_recenter): Doc fix.
9558
9559 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
9560
9561 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
9562
9563 2003-04-14 Andrew Choi <akochoi@shaw.ca>
9564
9565 * macterm.c (mac_check_for_quit_char): Don't check more often than
9566 once a second.
9567
9568 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
9569
9570 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
9571 specially, so that they can't hide an implicit switch-frame event.
9572 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
9573 (head_table): Use switch-frame as event_kind for select-window.
9574 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
9575
9576 * editfns.c (Fformat): Lisp_Object/int mixup.
9577 (format2): Remove unused var numargs.
9578
9579 2003-04-11 Kenichi Handa <handa@m17n.org>
9580
9581 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
9582 (Qafter_insert_file_set_coding): New variable.
9583 (syms_of_fileio): Initialize and staticpro it. Delete declaration
9584 for after-insert-file-adjust-coding-function.
9585 (Finsert_file_contents): Call Qafter_insert_file_set_coding
9586 instead of Vafter_insert_file_adjust_coding_function.
9587
9588 2003-04-11 Kenichi Handa <handa@m17n.org>
9589
9590 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
9591
9592 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
9593 string. Callers changed.
9594
9595 2003-04-10 Kenichi Handa <handa@m17n.org>
9596
9597 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
9598 (syms_of_fileio): Declare it as a lisp variable.
9599 (Finsert_file_contents):
9600 Call Vafter_insert_file_adjust_coding_function before calling
9601 decode-format.
9602
9603 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9604
9605 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
9606 get GtkAdjustment as widget now is a GtkRange.
9607
9608 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
9609 GtkRange to avoid memory leak.
9610
9611 2003-04-09 Kenichi Handa <handa@m17n.org>
9612
9613 * xfaces.c (Vface_font_rescale_alist): New variable.
9614 (struct font_name): New member rescale_ratio.
9615 (font_rescale_ratio): New function.
9616 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
9617 (better_font_p): On comparing point sized, pay attention to
9618 recale_ratio member of fonts.
9619 (build_scalable_font_name): Reflect font->rescale_ratio in the
9620 font name.
9621 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
9622
9623 * lread.c (read1): Before calling index, check if the 2nd
9624 arguemnt is in ASCII range.
9625
9626 2003-04-08 Richard M. Stallman <rms@gnu.org>
9627
9628 * fileio.c (Ffile_symlink_p): Doc fix.
9629
9630 * editfns.c (Fformat): Translate positions of text properties
9631 in the format string to apply them to the result.
9632
9633 * fileio.c (Finsert_file_contents): Doc fix.
9634 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
9635
9636 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
9637
9638 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
9639
9640 2003-04-08 Steven Tamm <steventamm@mac.com>
9641
9642 * mac.c (init_mac_osx_environment): Switch libexec and bin so
9643 that self-contained application finds libexec files.
9644
9645 2003-04-08 Kenichi Handa <handa@m17n.org>
9646
9647 * coding.c (code_convert_region_unwind):
9648 Set Vlast_coding_system_used to the argument.
9649 (code_convert_region): If post-read-conversion function changed
9650 the value of last-coding-sytem, keep the new value in
9651 coding->symbol so that it won't be overridden.
9652 (run_pre_post_conversion_on_str): Likewise.
9653 (coding_system_accept_latin_extra_p): New function.
9654 (find_safe_codings): Pay attention to characters registered in
9655 latin-extra-code-table.
9656
9657 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
9658
9659 * Makefile.in (md5.o): Add missing dependency info.
9660
9661 2003-04-06 Richard M. Stallman <rms@gnu.org>
9662
9663 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
9664
9665 * marker.c (verify_bytepos): New function.
9666
9667 * intervals.c (set_intervals_multibyte_1): When becoming
9668 multibyte, adjust right and left child sizes to a whole set of
9669 characters. If an interval gets zero total-length, delete it.
9670 If an interval consists of just its children, delete one of them.
9671
9672 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
9673 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
9674
9675 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
9676 All calls deleted.
9677 (lisp_malloc): Do the work here directly.
9678
9679 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
9680
9681 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
9682 char tables.
9683
9684 2003-04-04 Kenichi Handa <handa@m17n.org>
9685
9686 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
9687 destructively change "%S" to "%s".
9688
9689 2003-04-03 Miles Bader <miles@gnu.org>
9690
9691 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
9692 always set.
9693
9694 2003-04-01 Dave Love <fx@gnu.org>
9695
9696 * xfns.c (xpm_lookup_color): Grok "opaque".
9697
9698 2003-03-31 Andrew Choi <akochoi@shaw.ca>
9699
9700 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
9701 parent window ID.
9702
9703 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
9704
9705 * macterm.h (struct mac_output): Define x_pixels_diff and
9706 y_pixels_diff.
9707
9708 2003-03-31 Juanma Barranquero <lektu@terra.es>
9709
9710 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
9711 blockinput.h and files included from it.
9712
9713 2003-03-31 Kim F. Storm <storm@cua.dk>
9714
9715 The following changes consolidates the common code related to
9716 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
9717 files into frame.c.
9718
9719 * frame.c: Include blockinput.h.
9720 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9721 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
9722 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
9723 related vars here.
9724 (struct frame_parm_table, frame_parms): New table for describing
9725 frame parameters and their associated Q-variable.
9726 The order of the parameters corresponds to the sequence of the
9727 frame_parm_handlers table in redisplay_interface.
9728 (x_fullscreen_move, x_set_frame_parameters)
9729 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
9730 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
9731 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9732 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
9733 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
9734 Generic functions for processing of frame parameters.
9735 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
9736 (display_x_get_resource, x_get_resource_string): Functions for
9737 generic access to X resources.
9738 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9739 (x_default_parameter, Fx_parse_geometry): Functions for generic
9740 access to frame parameters.
9741 (x_figure_window_size): Generic calculation of frame size.
9742 Fixed to add space needed for tool bar. Also setup size_hint_flags.
9743 (syms_of_frame): Intern and staticpro frame parameter variables.
9744 Defvar_lisp Vx_resource_class and Vx_resource_name here.
9745 Defsubr Sx_get_resource and Sx_parse_geometry.
9746
9747 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
9748 parameter related vars defined in frame.c.
9749 (EMACS_CLASS): Define here.
9750 (enum FULLSCREEN_*): Define here.
9751 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
9752 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
9753 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
9754 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
9755 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
9756 (x_set_visibility, x_set_autoraise, x_set_autolower)
9757 (x_set_unsplittable, x_set_vertical_scroll_bars)
9758 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
9759 (x_figure_window_size): Add prototypes.
9760
9761 * dispextern.h (frame_parm_handler): New typedef.
9762 (struct redisplay_interface): New member frame_parm_handlers.
9763 (enum resource_types): Move declaration here.
9764 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9765 (x_default_parameter): Add prototypes.
9766
9767 * window.c: Remove extern decl for frame parameter vars.
9768 (change_window_heights): New generic function;
9769 replaces x_change_window_heights. All users changed.
9770
9771 * window.h (change_window_heights): Add prototype.
9772
9773 * xfaces.c: Remove extern decl for frame parameter vars.
9774
9775 * xterm.h (EMACS_CLASS): Remove. Use generic define.
9776 (struct w32_display_info): Fix type of xrdb member.
9777 (enum FULLSCREEN_*): Remove.
9778 Remove prototypes for generic functions (in frame.h).
9779
9780 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9781 parameters now defined in frame.h and frame.c.
9782 (Vx_resource_name): Remove. Use generic var.
9783 (enum x_frame_parms): Remove (bogus, unused enum).
9784 (check_x_display_info): Make non-static (for frame.c).
9785 (struct x_frame_parm_table, x_frame_parms): Remove.
9786 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9787 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9788 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9789 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9790 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9791 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9792 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9793 Remove. Use generic functions instead.
9794 (enum resource_types): Remove.
9795 (x_set_scroll_bar_default_width): New global function (for frame.c).
9796 (Fx_create_frame): Depend on x_figure_window_size to add space for
9797 toolbar and setup size_hint_flags.
9798 (x_frame_parm_handlers): New table for redisplay_interface.
9799 (syms_of_xfns): Don't intern/staticpro removed vars.
9800
9801 * xterm.c: Remove unnecessary extern declarations.
9802 (x_fullscreen_adjust): Remove. Use generic instead.
9803 (x_redisplay_interface): Add x_frame_parm_handlers member.
9804
9805 * w32gui.h (XrmDatabase): New (dummy) typedef.
9806
9807 * w32term.h (EMACS_CLASS): Remove. Use generic define.
9808 (struct w32_display_info): Fix type of xrdb member.
9809 (enum FULLSCREEN_*): Remove.
9810 (x_fullscreen_adjust): Remove prototype.
9811
9812 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9813 parameters now defined in frame.h and frame.c.
9814 (Vx_resource_name): Remove. Use generic var.
9815 (enum x_frame_parms): Remove (bogus, unused enum).
9816 (check_x_display_info): Make non-static (for frame.c).
9817 (struct x_frame_parm_table, x_frame_parms): Remove.
9818 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9819 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9820 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9821 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9822 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9823 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9824 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9825 Remove. Use generic functions instead.
9826 (enum resource_types): Remove.
9827 (x_set_scroll_bar_default_width): New global function (for frame.c).
9828 (Fx_create_frame): Depend on x_figure_window_size to add space for
9829 toolbar and setup size_hint_flags.
9830 (w32_frame_parm_handlers): New table for redisplay_interface.
9831 (syms_of_w32fns): Don't intern/staticpro removed vars.
9832
9833 * w32term.c: Remove unnecessary extern declarations.
9834 (x_fullscreen_adjust): Remove. Use generic instead.
9835 (x_redisplay_interface): Add w32_frame_parm_handlers member.
9836
9837 * w32reg.c (x_get_string_resource): Use XrmDatabase.
9838
9839 * macgui.h (XrmDatabase): New (dummy) typedef.
9840
9841 * macterm.h (EMACS_CLASS): Remove.
9842 (struct mac_display_info): Add xrdb member.
9843 (struct mac_output): Add want_fullscreen member.
9844
9845 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9846 parameters now defined in frame.h and frame.c.
9847 (Vx_resource_name): Remove. Use generic var.
9848 (check_x_display_info): Make non-static (for frame.c).
9849 (struct x_frame_parm_table, x_frame_parms): Remove.
9850 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9851 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9852 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9853 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9854 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9855 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9856 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9857 Remove. Use generic functions instead.
9858 (enum resource_types): Remove.
9859 (x_set_scroll_bar_default_width): New global function (for frame.c).
9860 (mac_frame_parm_handlers): New table for redisplay_interface.
9861 (syms_of_macfns): Don't intern/staticpro removed vars.
9862
9863 * macterm.c: Remove unnecessary extern declarations.
9864 (x_redisplay_interface): Add mac_frame_parm_handlers member.
9865
9866 * Makefile.in (frame.o): Add dependency on blockinput.h and files
9867 included from it (atimer.h and systime.h).
9868
9869 2003-03-30 Andreas Schwab <schwab@suse.de>
9870
9871 * xdisp.c (x_insert_glyphs): Fix swapped width and height
9872 parameters for shift_glyphs_for_insert.
9873
9874 * macterm.c (x_redisplay_interface): Add missing entry for
9875 draw_vertical_window_border.
9876
9877 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9878
9879 * fileio.c (Fexpand_file_name): In the no-handler case, after
9880 expanding, look again for a handler and invoke it. This is needed
9881 for filenames like "/foo/../user@host:/bar/../baz" -- the first
9882 expansion produces "/user@host:/bar/../baz" which needs to be
9883 expanded again for the finame result "/user@host:/baz".
9884
9885 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9886
9887 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9888 of area to be redrawn for better performance.
9889
9890 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
9891
9892 * xterm.c (take_vertical_position_into_account): Remove.
9893 (xt_action_hook): Call set_vertical_scroll_bar if needed.
9894 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9895 (xm_scroll_callback, x_create_toolkit_scroll_bar)
9896 (x_set_toolkit_scroll_bar_thumb): Simplify.
9897 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9898 (XTread_socket): Remove unused var.
9899 (x_make_frame_invisible): Replace goto with else.
9900
9901 * xdisp.c (set_vertical_scroll_bar): New fun.
9902 (redisplay_window): Use it.
9903
9904 2003-03-26 Richard M. Stallman <rms@gnu.org>
9905
9906 * xdisp.c (update_tool_bar): Recompute tool bar if
9907 update_mode_lines is set. Set w->update_mode_line
9908 only if the tool bar contents actually change.
9909 (update_menu_bar): Undo previous change.
9910
9911 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9912
9913 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9914 (xg_frame_set_char_size): Calculate scroll bar width before frame
9915 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
9916 (xg_separator_p): Check for all documented separator types.
9917 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9918 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9919
9920 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9921 so tool bar gets updated.
9922
9923 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
9924
9925 * data.c (store_symval_forwarding): Re-instate part of the code
9926 that was deleted with too much enthusiasm.
9927
9928 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
9929
9930 * data.c (store_symval_forwarding): Delete special read-only
9931 hack for type == -1, since we now use ->constant instead.
9932 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9933
9934 * buffer.c (overlays_in): Declare static.
9935 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9936 `constant' field rather than the variable's `type' field.
9937
9938 2003-03-24 Andrew Choi <akochoi@shaw.ca>
9939
9940 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9941
9942 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9943
9944 * fns.c [MAC_OSX]: Do not redefine vector.
9945
9946 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9947
9948 * macgui.h: Remove definition of No_Cursor.
9949
9950 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
9951
9952 * xdisp.c: Define No_Cursor.
9953 (x_write_glyphs, notice_overwritten_cursor)
9954 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9955 (note_mouse_highlight): Remove Mac-specific code.
9956 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
9957
9958 2003-03-24 John Paul Wallington <jpw@gnu.org>
9959
9960 * xdisp.c (redisplay_window): If mini window's buffer is not
9961 empty, then redisplay it like other windows.
9962
9963 2003-03-23 Kim F. Storm <storm@cua.dk>
9964
9965 * w32term.c (w32_draw_window_cursor): Fix last change.
9966
9967 2003-03-23 Kenichi Handa <handa@m17n.org>
9968
9969 * alloc.c (make_string_from_bytes, make_specified_string):
9970 Add `const' for the arg CONTENTS.
9971
9972 * lisp.h (make_string_from_bytes, make_specified_string):
9973 Prototypes adjusted.
9974
9975 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9976
9977 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
9978
9979 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9980 (XG_SB_RANGE): New define.
9981
9982 * gtkutil.c (xg_fixed_handle_expose): New function.
9983 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9984 expose events.
9985 (xg_update_scrollbar_pos): Take two more arguments, left and width
9986 of scroll bar including borders.
9987 Clear left and right part outside scroll bar separately as some
9988 themes have bars that are not an even number of pixels.
9989 Don't set reallocate_redraws, don't call
9990 gdk_window_process_all_updates.
9991 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9992 so no need to change it. Calculate size and value with XG_SB_RANGE.
9993
9994 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9995 Pass left and width of scroll bar including borders to
9996 xg_update_scrollbar_pos.
9997
9998 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9999
10000 * Makefile.in: Make sure space precedes end-of-line backslashes.
10001
10002 2003-03-22 Kim F. Storm <storm@cua.dk>
10003
10004 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
10005 Add generic versions here. Remove system specific versions
10006 defined elsewhere.
10007
10008 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
10009 Add prototypes.
10010
10011 * xterm.h (STORE_NATIVE_RECT): New macro.
10012
10013 2003-03-21 Kim F. Storm <storm@cua.dk>
10014
10015 * xdisp.c (get_glyph_string_clip_rect):
10016 Use FRAME_INTERNAL_BORDER_WIDTH.
10017
10018 * dispextern.h (struct redisplay_interface): Add active_p
10019 argument to draw_window_cursor member. All uses changed.
10020
10021 2003-03-21 Kim F. Storm <storm@cua.dk>
10022
10023 The following changes consolidate code related to writing and
10024 inserting glyphs, exposing frame, the tool bar, the mouse face,
10025 the output cursor, and help echo from xterm.c, w32term.c and
10026 macterm.c into xdisp.c. It also generalizes the use of the
10027 window_part enum instead of using numeric values throughout.
10028
10029 * xdisp.c: Consolidate gui-independent code here.
10030 Include keymap.h.
10031 (Qhelp_echo): Import.
10032 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
10033 (help_echo_string, help_echo_window, help_echo_object)
10034 (previous_help_echo_string, help_echo_pos): Declare here.
10035 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
10036 (estimate_mode_line_height): Define here. Handle windowing
10037 systems directly (without using estimate_mode_line_height_hook).
10038 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
10039 (update_window_cursor, update_cursor_in_window_tree)
10040 (fast_find_position, fast_find_string_pos)
10041 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
10042 (expose_area, expose_line, expose_overlaps, expose_window)
10043 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
10044 declared static as they are only used locally in xdisp.c.
10045 (draw_glyphs): Rename from x_draw_glyphs and make static.
10046 (tool_bar_item_info, notice_overwritten_cursor): Make static.
10047 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10048 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
10049 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
10050 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10051 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
10052 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
10053 (note_mouse_highlight, x_clear_window_mouse_face)
10054 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
10055 (x_intersect_rectangles): New generic functions for use by xdisp.c
10056 and GUI front-ends.
10057 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
10058 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
10059
10060 * dispextern.h (Display_Info): Generic typedef for *_display_info.
10061 (NativeRectangle): Generic typedef for rectangle type.
10062 (enum window_part): Move here from window.c.
10063 (struct redisplay_interface): New members flush_display_optional,
10064 define_frame_cursor, clear_frame_area, draw_window_cursor,
10065 draw_vertical_window_border, shift_glyphs_for_insert.
10066 Rename member clear_mouse_face to clear_window_mouse_face.
10067 (estimate_mode_line_height_hook): Remove hook.
10068 (auto_raise_tool_bar_buttons_p): Don't declare extern.
10069 (tool_bar_item_info): Remove prototype.
10070 (help_echo_string, help_echo_window, help_echo_object)
10071 (previous_help_echo_string, help_echo_pos)
10072 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
10073 (x_stretch_cursor_p, output_cursor): Declare extern.
10074 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
10075 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
10076 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10077 (display_and_set_cursor, set_output_cursor, x_cursor_to)
10078 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
10079 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10080 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
10081 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
10082 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
10083 Add prototypes.
10084 (mode_line_string, marginal_area_string): Fix prototypes.
10085
10086 * window.c (enum window_part): Move to dispextern.h.
10087 (coordinates_in_window): Use enum window_part member names
10088 instead of numbers to describe return value.
10089 (struct check_window_data): Change part member to window_part.
10090 (check_window_containing): Return window_part unaltered.
10091 (window_from_coordinates): Change part arg from int to enum
10092 window_part. Allow part arg to be null. All users changed.
10093
10094 * window.h (window_from_coordinates): Fix prototype.
10095
10096 * term.c (estimate_mode_line_height): Move to xdisp.c.
10097
10098 * keyboard.c (make_lispy_event): Use enum window_part.
10099
10100 * dispnew.c (mode_line_string, marginal_area_string): Use enum
10101 window_part instead of int in arg list. Users changed.
10102
10103 * xterm.h (No_Cursor): Declare as None for X.
10104 (struct mac_output): Replace member cross_cursor by hand_cursor.
10105
10106 * xterm.c: Remove consolidated defines and code.
10107 (BETWEEN): Remove unused macro.
10108 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
10109 (x_define_frame_cursor, x_clear_frame_area)
10110 (x_draw_window_cursor): New X-specific functions for RIF.
10111 (x_redisplay_interface): Add new members.
10112
10113 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
10114
10115 * w32term.h (struct w32_output): Remove cross_cursor member.
10116
10117 * w32term.c: Remove consolidated defines and code.
10118 (BETWEEN): Remove unused macro.
10119 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
10120 (w32_define_frame_cursor, w32_clear_frame_area)
10121 (w32_draw_window_cursor): New W32-specific functions for RIF.
10122 (w32_redisplay_interface): Add new members.
10123
10124 * w32gui.h (No_Cursor): Define as 0 for W32.
10125 (XRectangle): Add X compatible rectangle type.
10126 (NativeRectangle): Declare as RECT for W32.
10127 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10128
10129 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
10130
10131 * w32console.c: Remove consolidated defines and code.
10132
10133 * msdos.h (Display_Info): Add generic typedef.
10134
10135 * msdos.c: Remove consolidated defines and code.
10136 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
10137
10138 * macterm.h (struct mac_output): Replace member cross_cursor by
10139 hand_cursor.
10140 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
10141
10142 * macterm.c: Remove consolidated defines and code.
10143 (BETWEEN): Remove unused macro.
10144 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
10145 (mac_define_frame_cursor, mac_clear_frame_area)
10146 (mac_draw_window_cursor): New Mac-specific functions for RIF.
10147 (x_redisplay_interface): Add new members.
10148
10149 * macgui.h (No_Cursor): Define as 0 for Mac.
10150 (XRectangle): Add X compatible rectangle type.
10151 (NativeRectangle): Declare as Rect for Mac.
10152 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10153
10154 * macfns.c (x_set_mouse_color): Setup hand_cursor.
10155 (x_set_cursor_color): Use x_display_and_set_cursor.
10156
10157 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
10158 included from it. Add dependency on keymap.h.
10159
10160 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
10161
10162 2003-03-21 Kenichi Handa <handa@m17n.org>
10163
10164 * fileio.c (Fexpand_file_name): Fix previous change.
10165
10166 2003-03-19 Kenichi Handa <handa@m17n.org>
10167
10168 * fileio.c (Ffile_name_directory): Reconstruct file name by
10169 make_specified_string.
10170 (Ffile_name_nondirectory, Ffile_name_as_directory)
10171 (Fdirectory_file_name, Fexpand_file_name)
10172 (Fsubstitute_in_file_name): Likewise.
10173 (Fread_file_name): Compare decoded homedir with DIR and
10174 DEFAULT_FILENAME.
10175
10176 * alloc.c (make_specified_string): If NCHARS is negative, count
10177 the number of characters.
10178
10179 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10180
10181 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
10182 all widgets.
10183
10184 * gtkutil.h: Removed xg_ignore_next_thumb.
10185
10186 2003-03-18 Kenichi Handa <handa@m17n.org>
10187
10188 * coding.c (Vchar_coding_system_table): Remove this variable.
10189 (Vcoding_system_safe_chars): New variable.
10190 (intersection): Remove this function.
10191 (find_safe_codings): Don't use Vchar_coding_system_table, but try
10192 all codings in SAFE_CODINGS.
10193 (Ffind_coding_systems_region_internal): Adjust for the change of
10194 find_safe_codings. Get generic coding systems from
10195 Vcoding_system_safe_chars.
10196 (Fdefine_coding_system_internal): New function.
10197 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
10198 Initialize and staticpro Vcoding_system_safe_chars.
10199
10200 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10201
10202 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
10203 equal old values before updating.
10204
10205 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
10206
10207 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
10208
10209 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10210
10211 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
10212 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
10213 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
10214 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
10215 (xg_create_scroll_bar): Pass bar to button event callback.
10216 (xg_find_top_left_in_fixed): New function.
10217 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
10218 whole scroll bar area. Get old position with
10219 xg_find_top_left_in_fixed, calculate and only clear needed areas.
10220 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
10221 dragging is in progress. Calculate whole as for Motif.
10222 Remove code that saved last values. Call gtk_range functions to
10223 set scroll bar sizes.
10224
10225 * gtkutil.h: Removed xg_ignore_next_thumb.
10226
10227 2003-03-17 Juanma Barranquero <lektu@terra.es>
10228
10229 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
10230 and files included from it.
10231
10232 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
10233
10234 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
10235 multiple occurrences of the same keymap under different prefixes.
10236 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
10237
10238 2003-03-16 Jason Rumney <jasonr@gnu.org>
10239
10240 * w32gui.h: Use HDC for Display.
10241
10242 * w32term.c (w32_encode_char): Prevent double-byte chars from
10243 crashing Emacs.
10244
10245 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
10246 as binary.
10247
10248 2003-03-16 Juanma Barranquero <lektu@terra.es>
10249
10250 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
10251
10252 2003-03-16 Kim F. Storm <storm@cua.dk>
10253
10254 The following changes consolidate some of the gui-independent
10255 parts of the processing and drawing of "glyph strings" from
10256 xterm.c, w32term.c, and macterm.c into xdisp.c.
10257
10258 * dispextern.h (struct glyph): Reduce face_id member from 22 to
10259 21 bits (this reduces number of faces from 4M to 2M).
10260 Replace W32 specific w32_font_type member (2 bits) by generic
10261 font_type member (3 bits) for portability.
10262 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
10263 (enum draw_glyphs_face): Define here.
10264 (struct glyph_string): Define here. Merge W32 and X versions.
10265 (struct redisplay_interface): New members per_char_metric,
10266 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
10267 (VCENTER_BASELINE_OFFSET): Define here.
10268 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
10269 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
10270
10271 * xdisp.c: Consolidate gui-independent "glyph string" code here.
10272 (dump_glyph_string): Moved here.
10273 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
10274 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
10275 (fill_composite_glyph_string, fill_glyph_string)
10276 (fill_image_glyph_string, fill_stretch_glyph_string)
10277 (left_overwritten, left_overwriting, right_overwritten)
10278 (right_overwriting, get_char_face_and_encoding)
10279 (set_glyph_string_background_width, compute_overhangs_and_x)
10280 (append_glyph, append_composite_glyph, produce_image_glyph)
10281 (take_vertical_position_into_account, append_stretch_glyph)
10282 (produce_stretch_glyph): New generic functions (based on X version).
10283 Call platform specific functions through rif.
10284 (INIT_GLYPH_STRING): New macro, hides W32 details.
10285 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
10286 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
10287 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
10288 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
10289 (notice_overwritten_cursor):
10290 Generic functions exported to platform modules. Users changed.
10291
10292 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
10293 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
10294 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
10295 New macros for consolidated code.
10296
10297 * xterm.c: Remove consolidated defines and code.
10298 (x_per_char_metric, x_encode_char)
10299 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
10300 (x_redisplay_interface): Add new members.
10301
10302 * w32gui.h (Display): Add dummy typedef for consolidation.
10303 (XChar2b): Define alias for wchar_t for consolidation.
10304 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10305
10306 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
10307 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
10308 New macros for consolidation.
10309
10310 * w32term.c: Remove consolidated defines and code.
10311 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
10312 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
10313 (w32_per_char_metric): Change font_type arg to int for RIF.
10314 (w32_encode_char): Return int according to RIF requirements.
10315 (w32_compute_glyph_string_overhangs): Adapt to RIF.
10316 (w32_get_glyph_overhangs): New function for RIF. Uses generic
10317 x_get_glyph_overhangs.
10318 (w32_redisplay_interface): Add new members.
10319
10320 * macgui.h (XChar2b): Move typedef here for consolidation.
10321 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10322
10323 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
10324 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
10325 consolidation.
10326
10327 * macterm.c: Remove consolidated defines and code.
10328 (mac_per_char_metric): New function for RIF.
10329 (mac_encode_char): Adapt to new RIF requirements.
10330 (mac_compute_glyph_string_overhangs): Adapt for RIF.
10331 (x_redisplay_interface): Add new members.
10332
10333 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
10334
10335 * keymap.c (Vmenu_events): New var.
10336 (syms_of_keymap): Initialize it.
10337 (where_is_internal): Check more carefully what is a menu event.
10338
10339 2003-03-14 Richard M. Stallman <rms@gnu.org>
10340
10341 * lread.c (read1): After #!, exit loop on eof.
10342
10343 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10344
10345 * gtkutil.h: Add declaration for xg_frame_cleared.
10346
10347 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
10348
10349 * gtkutil.c (struct xg_last_sb_pos): New structure.
10350 (handle_fixed_child): New function.
10351 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
10352 and force a redraw on them.
10353 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
10354 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
10355 so we can avoid unneeded redraws.
10356 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
10357 and force a redraw on the scroll bar.
10358 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
10359 if xg_last_sb_pos shows the positions are up to date.
10360 (xg_frame_cleared): New function.
10361
10362 2003-03-13 Kenichi Handa <handa@m17n.org>
10363
10364 * coding.c (Fdetect_coding_region): Fix docstring.
10365 (Fdetect_coding_string): Fix docstring.
10366
10367 2003-03-13 Andreas Schwab <schwab@suse.de>
10368
10369 * gtkutil.c: Add prototype for create_menus.
10370
10371 * data.c (long_to_cons): Fix type of top.
10372
10373 * xselect.c (selection_data_to_lisp_data): Use int instead of
10374 long for an integer of size 4.
10375
10376 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
10377 (xg_tool_bar_help_callback): Likewise.
10378
10379 2003-03-12 Andreas Schwab <schwab@suse.de>
10380
10381 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
10382
10383 2003-03-12 Kim F. Storm <storm@cua.dk>
10384
10385 The following changes consolidate the fringe handling from
10386 xterm.c, w32term.c, and macterm.c into xdisp.c.
10387
10388 * xdisp.c: Consolidate fringe handling code here.
10389 (left_bits, right_bits, continued_bits, continuation_bits)
10390 (ov_bits, zv_bits): Define fringe bitmaps.
10391 (fringe_bitmaps): New array holding fringe bitmaps.
10392 (draw_fringe_bitmap): Draw a specific bitmap; call display
10393 specific drawing routine via rif->draw_fringe_bitmap.
10394 (draw_row_fringe_bitmaps): Generic replacement for
10395 x_draw_row_fringe_bitmaps; all callers changed.
10396 (compute_fringe_widths): Generic replacement for
10397 x_compute_fringe_widths; all callers changed.
10398
10399 * dispextern.h (enum fringe_bitmap_type): Define here.
10400 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
10401 (fringe_bitmaps): Declare extern.
10402 (struct redisplay_interface): New member draw_fringe_bitmap.
10403 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
10404
10405 * xterm.c: Remove generic fringe code.
10406 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10407 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10408
10409 * w32term.c: Remove generic fringe code.
10410 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
10411 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
10412
10413 * macterm.c: Remove generic fringe code.
10414 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10415 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10416
10417 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
10418
10419 * print.c (Fprin1_to_string): Return unibyte string if possible.
10420
10421 2003-03-09 David Kastrup <dak@gnu.org>
10422
10423 * process.c (read_process_output): We have allocated enough space
10424 for readmax and carryover, so actually use the alloted space.
10425
10426 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10427
10428 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
10429 toolkit scrollbar click.
10430
10431 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
10432 for USE_GTK.
10433 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
10434 also.
10435 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
10436 scrollbar and control is pressed, call x_scroll_bar_handle_click.
10437
10438 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
10439
10440 * gtkutil.c (xg_get_scroll_id_for_window): New function.
10441 (xg_tool_bar_item_expose_callback): New function.
10442 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
10443 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
10444 on the tool bar widget.
10445 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
10446 to expose on the tool bar item widgets.
10447
10448 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10449
10450 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
10451 struct image* when deciding to update (struct image* may have been
10452 deleted from the image cache).
10453
10454 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
10455 the event isn't for a frame (i.e. for dialogs).
10456
10457 2003-03-07 Kenichi Handa <handa@m17n.org>
10458
10459 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
10460 composition components reaches the limit, terminate composing.
10461 (COMPOSITION_OK): New macro.
10462 (detect_coding_iso2022): Use it if an escape sequence for
10463 composition is found.
10464 (coding_restore_composition): Adjust the number of composition
10465 components if it is not sane.
10466
10467 2003-03-06 Juanma Barranquero <lektu@terra.es>
10468
10469 * w32term.h (struct w32_display_info): Add xrdb member to support
10470 passing resources via -xrm on Windows.
10471
10472 * w32term.c (w32_make_rdb): New function.
10473 (w32_term_init): Use it to initialize xrdb member of w32_display_info
10474 struct. Delete leftover code.
10475
10476 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
10477 for resources passed on the command line.
10478
10479 * w32reg.c (w32_get_rdb_resource): New function.
10480 (x_get_string_resource): Use it, so resources passed with -xrm
10481 supercede the ones in the registry.
10482
10483 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10484
10485 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
10486 instead of x_top_window_to_frame.
10487
10488 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10489
10490 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
10491 when restarting Emacs.
10492
10493 2003-03-03 Richard M. Stallman <rms@gnu.org>
10494
10495 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
10496 to run kill-buffer-query-functions.
10497 (Qkill_buffer_query_functions): New var.
10498 (syms_of_buffer): Init and staticpro it.
10499
10500 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10501
10502 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
10503
10504 2003-02-25 Kim F. Storm <storm@cua.dk>
10505
10506 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
10507 If centering point failed to make whole line visible and vscroll
10508 is non-zero, disable vscroll and try centering point again.
10509
10510 * lread.c (read1): Accept `single space' syntax like (? x).
10511
10512 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10513
10514 * keyboard.c (cancel_hourglass_unwind): Surround with
10515 #ifdef HAVE_X_WINDOWS
10516
10517 2003-02-25 Kenichi Handa <handa@m17n.org>
10518
10519 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
10520 process only when "subprocesses" is defined.
10521
10522 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
10523
10524 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
10525
10526 2003-02-24 Juanma Barranquero <lektu@terra.es>
10527
10528 * callint.c (fix_command): Declare as static void and move before
10529 Fcall_interactively.
10530
10531 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
10532 (syms_of_xdisp): Don't initialize Qwhen.
10533
10534 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10535
10536 * keyboard.c (cancel_hourglass_unwind): New function.
10537 (command_loop_1): Cancel hourglass with unwind-protect.
10538
10539 2003-02-23 Richard M. Stallman <rms@gnu.org>
10540
10541 * callint.c (fix_command): New subroutine, from Fcall_interactively.
10542 Detect (when ... (region-beginning)) etc.
10543 (Fcall_interactively): Call fix_command.
10544 (Qif, Qwhen): New variables.
10545 (syms_of_callint): Init and staticpro them.
10546
10547 * regex.c (print_partial_compiled_pattern): Output to stderr.
10548
10549 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10550
10551 * dired.c (directory_files_internal): Don't expand directory.
10552 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
10553 instead. From Lars Hansen <larsh@math.ku.dk>.
10554
10555 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
10556
10557 * fns.c (string_to_multibyte): Remove unused var i.
10558 (Flanginfo): Fix int/Lisp_Object mixup.
10559 (void_call2): New fun.
10560 (Fmap_char_table): Use it in place of call2.
10561
10562 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
10563
10564 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
10565
10566 * keymap.c (copy_keymap_1): Make it static.
10567
10568 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
10569
10570 2003-02-22 David Ponce <david@dponce.com>
10571
10572 * lread.c (Fload): Don't check STRING_MULTIBYTE.
10573
10574 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10575
10576 * process.h: Removed subtty field from struct Lisp_Process.
10577
10578 * process.c (create_process): Remove setting of subtty.
10579 (emacs_get_tty_pgrp): New function.
10580 (Fprocess_running_child_p, process_send_signal):
10581 Call emacs_get_tty_pgrp instead of ioctl.
10582 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
10583
10584 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10585
10586 * keymap.c (Fdefine_key): Doc fix.
10587
10588 2003-02-21 Juanma Barranquero <lektu@terra.es>
10589
10590 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
10591
10592 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
10593 POLLING_PROBLEM_IN_SELECT.
10594
10595 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
10596 Delete #undef of POLLING_PROBLEM_IN_SELECT.
10597
10598 * s/hpux10-20.h: New file.
10599
10600 * process.c (wait_reading_process_input):
10601 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
10602
10603 2003-02-20 Kenichi Handa <handa@m17n.org>
10604
10605 * fontset.c (check_fontset_name): If NAME is nil, return the
10606 default fontset.
10607 (override_font_info): New function.
10608 (Fset_fontset_font): Document that NAME nil means the default fontset.
10609 (Ffontset_info): If FONTSET is not the default fontset, merge
10610 FONTSET onto the copy of the default fontset, and work on that
10611 copy. Document that NAME nil means the default fontset.
10612 (Ffontset_font): Document that NAME nil means the default fontset.
10613
10614 * process.c (setup_process_coding_systems): If the process's
10615 in/out descriptor is -1, do nothing.
10616
10617 2003-02-19 Andreas Schwab <schwab@suse.de>
10618
10619 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
10620 Add prototypes.
10621
10622 2003-02-19 Kenichi Handa <handa@m17n.org>
10623
10624 * xfaces.c (try_alternative_families): Try all scalable fonts if
10625 Vscalable_fonts_allowed is not Qt.
10626
10627 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10628
10629 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
10630
10631 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10632
10633 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
10634 names.
10635
10636 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
10637 (sorted_font_list): Move allocation of struct font_name to
10638 x_face_list_fonts.
10639 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
10640 (Fx_list_fonts): Set maxnames to -1 to get all font names.
10641
10642 2003-02-18 Kim F. Storm <storm@cua.dk>
10643
10644 * lread.c (read1): Fix last change.
10645 "`" is not always special. Allow "?" after a character constant.
10646
10647 2003-02-18 Andrew Choi <akochoi@shaw.ca>
10648
10649 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
10650
10651 2003-02-18 Andreas Schwab <schwab@suse.de>
10652
10653 * window.c (window_scroll_pixel_based): Move outside a
10654 multi-glyph character before setting new window start.
10655
10656 * xdisp.c (in_display_vector_p): New function.
10657 * dispextern.h (in_display_vector_p): Declare.
10658
10659 2003-02-18 Kim F. Storm <storm@cua.dk>
10660
10661 * lread.c (read1): Fix and relax read syntax.
10662 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
10663 Only recognize "," after dotted-pair dot if inside backquote.
10664 Never include "`" or "," (inside backquote) in a symbol.
10665 Allow dotted-pair dot after a character constant.
10666 Allow "`" and "," (inside backquote) after a character constant.
10667
10668 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10669
10670 * gtkutil.c (xg_tool_bar_expose_callback): New function.
10671 (xg_create_tool_bar): Force style of tool bar to be horizontal with
10672 icons. Set name of tool bar to emacs-toolbar.
10673 (update_frame_tool_bar): Connect expose event to
10674 xg_tool_bar_expose_callback.
10675
10676 2003-02-17 Richard M. Stallman <rms@gnu.org>
10677
10678 * keyboard.c (this_command_key_count_reset): New variable.
10679 Initiatize to 0 where this_command_key_count is set.
10680 (read_char): Save and restore this_command_key_count_reset
10681 around input method code.
10682 (read_char): If this_command_key_count_reset, echo reread commands.
10683 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
10684
10685 2003-02-17 Kenichi Handa <handa@m17n.org>
10686
10687 * fns.c (string_to_multibyte): Always return a multibyte string.
10688
10689 2003-02-16 Jason Rumney <jasonr@gnu.org>
10690
10691 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
10692 Negative max_fonts parameter means list all.
10693
10694 2003-02-14 Dave Love <fx@gnu.org>
10695
10696 * fns.c (Flanginfo): Doc fix.
10697
10698 2003-02-13 Kim F. Storm <storm@cua.dk>
10699
10700 * lread.c (read_escape): Interpret \s as a SPACE character, except
10701 for \s-X in a character constant which still is the super modifier.
10702 (read1): Signal an `invalid read syntax' error if a character
10703 constant is immediately followed by a digit or symbol character.
10704
10705 * search.c (Fmatch_data): Doc fix. Explicitly state that
10706 match-data is undefined if last search failed.
10707
10708 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
10709 All uses changed.
10710
10711 2003-02-12 Juanma Barranquero <lektu@terra.es>
10712
10713 * eval.c (Fdefmacro): Fix typo.
10714
10715 2003-02-12 Kim F. Storm <storm@cua.dk>
10716
10717 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
10718 macro is a string, convert meta modifiers in string when copying
10719 the string into a vector.
10720
10721 2003-02-11 Kim F. Storm <storm@cua.dk>
10722
10723 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
10724
10725 2003-02-11 Kenichi Handa <handa@m17n.org>
10726
10727 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
10728
10729 2003-02-10 Kim F. Storm <storm@cua.dk>
10730
10731 * process.c: Doc fixes.
10732 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
10733
10734 2003-02-10 Kenichi Handa <handa@m17n.org>
10735
10736 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
10737
10738 * process.c (QCfilter_multibyte): New variable.
10739 (setup_process_coding_systems): New function.
10740 (Fset_process_buffer, Fset_process_filter):
10741 Call setup_process_coding_systems.
10742 (Fstart_process): Initialize the member `filter_multibyte' of
10743 struct Lisp_Process.
10744 (create_process): Call setup_process_coding_systems.
10745 (Fmake_network_process): New keyward `:filter-multibyte'.
10746 Initialize the member `filter_multibyte' of struct Lisp_Process.
10747 Call setup_process_coding_systems.
10748 (server_accept_connection): Call setup_process_coding_systems.
10749 (read_process_output): If the process has a filter, decide the
10750 multibyteness of a string to given to the filter by
10751 `filter_multibyte' member of the process. If the process doesn't
10752 have a filter and the result of conversion is unibyte, use
10753 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
10754 multibyte form.
10755 (Fset_process_coding_system): Call setup_process_coding_systems.
10756 (Fset_process_filter_multibyte): New function.
10757 (Fprocess_filter_multibyte_p): New function.
10758 (syms_of_process): Intern and staticpro QCfilter_multibyte.
10759 Defsubr Sset_process_filter_multibyte and
10760 Sprocess_filter_multibyte_p.
10761
10762 * process.h (struct Lisp_Process): New member filter_multibyte.
10763
10764 * lisp.h (setup_process_coding_systems): Add prototype.
10765
10766 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
10767 process, update coding systems for the process.
10768
10769 2003-02-09 Kenichi Handa <handa@m17n.org>
10770
10771 * fns.c (string_to_multibyte): New function.
10772 (Fstring_to_multibyte): New function.
10773 (syms_of_fns): Defsubr it.
10774
10775 2003-02-08 Andreas Schwab <schwab@suse.de>
10776
10777 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
10778 instead of the substitution.
10779
10780 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10781
10782 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
10783
10784 * xmenu.c (menu_position_func): Adjust menu popup position so that
10785 the menu is fully visible.
10786
10787 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10788
10789 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
10790 (x_make_frame_invisible, x_wm_set_icon_position):
10791 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
10792
10793 * xfns.c (x_set_name, x_set_title): Ditto.
10794
10795 2003-02-04 Richard M. Stallman <rms@gnu.org>
10796
10797 * keyboard.c (echo_now): Update before_command_echo_length.
10798 (Freset_this_command_lengths): Reset this_command_key_count etc.
10799 immediately rather than arranging to do it later.
10800 (before_command_key_count_1, before_command_echo_length_1)
10801 (before_command_restore_flag): Vars deleted.
10802 (add_command_key): Don't handle before_command_restore_flag.
10803 (read_char, record_menu_key): Don't update before_command_key_count or
10804 before_command_echo_length.
10805 (read_char): Don't handle before_command_restore_flag.
10806
10807 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
10808 in direct-output clauses if it wouldn't be called in the ordinary case.
10809
10810 2003-02-04 Kim F. Storm <storm@cua.dk>
10811
10812 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
10813
10814 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10815
10816 * gtkutil.c (remove_from_container): Copying list is not needed.
10817 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
10818 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
10819 on list returned from gtk_container_get_children to avoid memory leak.
10820
10821 2003-02-01 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
10824 local malloc.
10825 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
10826 definitions in xpm.h.
10827 (init_xpm_functions): New function.
10828 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
10829 (init_external_image_libraries): Try to load libXpm.dll.
10830
10831 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
10832 timestamp.
10833
10834 2003-01-31 Dave Love <fx@gnu.org>
10835
10836 * syntax.c (Fskip_chars_forward)
10837 (open-paren-in-column-0-is-defun-start): Doc fix.
10838
10839 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
10840
10841 * fileio.c: Support // at start of name for Cygwin (just added proper
10842 preprocessor tests).
10843
10844 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10845
10846 * Makefile.in: Use @EXEEXT@ for Cygwin.
10847
10848 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10849
10850 * s/cygwin.h: Added for Cygwin port.
10851
10852 2003-01-31 Juanma Barranquero <lektu@terra.es>
10853
10854 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10855 when including gif_lib.h.
10856 (init_gif_functions, init_tiff_functions): New functions.
10857 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
10858 Windows. Disable color table lookups. Call library functions
10859 through pointers determined at runtime.
10860 (init_external_image_libraries): Try to load libungif.dll and
10861 libtiff.dll.
10862
10863 2003-01-31 Kenichi Handa <handa@m17n.org>
10864
10865 * xdisp.c (SKIP_GLYPHS): New macro.
10866 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
10867
10868 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10869
10870 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
10871
10872 2003-01-30 Dave Love <fx@gnu.org>
10873
10874 * alloc.c (Vgc_elapsed, gcs_done): New variables.
10875 (Fgarbage_collect): Use them.
10876 (init_alloc, syms_of_alloc): Set them up.
10877
10878 2003-01-30 Juanma Barranquero <lektu@terra.es>
10879
10880 * w32fns.c (init_external_image_libraries): Add missing operator.
10881
10882 2003-01-29 Jason Rumney <jasonr@gnu.org>
10883
10884 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10885 an alternative name for jpeg.dll.
10886
10887 2003-01-29 Kenichi Handa <handa@m17n.org>
10888
10889 * xdisp.c (set_cursor_from_row): Pay attention to string display
10890 properties.
10891
10892 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10893
10894 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10895 <escape>.
10896 (keycode_to_xkeysym_table): Reformat and add more comments.
10897 (XTread_socket): Drop special case for backspace.
10898
10899 2003-01-28 Andrew Choi <akochoi@shaw.ca>
10900
10901 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10902 values in old-style RGB specs.
10903
10904 2003-01-27 Juanma Barranquero <lektu@terra.es>
10905
10906 * w32fns.c (init_external_image_libraries): Try alternate names for the
10907 jpeg dll.
10908
10909 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10910
10911 * gtkutil.c (create_dialog, xg_separator_p)
10912 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10913 before calling strcmp or strlen.
10914
10915 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10916
10917 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10918 and handle image load failure.
10919
10920 2003-01-26 Jason Rumney <jasonr@gnu.org>
10921
10922 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10923 New functions.
10924 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
10925 Disable color table lookups. Call jpeg library functions
10926 through pointers determined at runtime.
10927 (init_external_image_libraries): Try to load jpeg.dll.
10928
10929 2003-01-25 Richard M. Stallman <rms@gnu.org>
10930
10931 * lisp.h: Declare format2 instead of format1.
10932
10933 * fileio.c (barf_or_query_if_file_exists):
10934 Call format2 instead of format1.
10935
10936 * editfns.c (format2): New function, replaces format1
10937 but takes exactly two Lisp Objects as format args.
10938
10939 * buffer.c (Fkill_buffer): Call format2 instead of format1.
10940
10941 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10942
10943 * xterm.h: Change to return value of x_dispatch_event to int.
10944
10945 * xterm.c (x_filter_event): New function.
10946 (event_handler_gdk, XTread_socket): Call x_filter_event.
10947 (x_dispatch_event): Change to return value of finish.
10948 (event_handler_gdk): Use return value from x_dispatch_event.
10949
10950 * xfns.c (x_window): Call create_frame_xic for GTK version to
10951 initialize input methods.
10952
10953 * gtkutil.h: Add (void) prototypes.
10954
10955 * gtkutil.c (create_menus): Remove code that puts the help menu to
10956 the right.
10957
10958 2003-01-25 Jason Rumney <jasonr@gnu.org>
10959
10960 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10961 [HAVE_PNG]: Sync with xfns.c version.
10962 (png_load): Adjust colors for Windows. Use Windows
10963 bitmaps. Disable color table lookups.
10964 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10965 (init_png_functions): New function.
10966 (png_read_from_memory, png_load): Call png library functions
10967 through pointers determined at runtime.
10968 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10969 (init_external_image_libraries): New function.
10970 (init_xfns): Call it.
10971
10972 2003-01-24 Andreas Schwab <schwab@suse.de>
10973
10974 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10975
10976 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10977
10978 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10979 of static initializer.
10980
10981 2003-01-24 Dave Love <fx@gnu.org>
10982
10983 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10984 architectures.
10985
10986 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10987 Use __alignof__.
10988
10989 2003-01-24 Kenichi Handa <handa@m17n.org>
10990
10991 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
10992 It it is nonzero, don't pretend that an invisible area doesn't exist.
10993 (command_loop_1): Call adjust_point_for_property with proper
10994 second arg.
10995
10996 2003-01-22 Jason Rumney <jasonr@gnu.org>
10997
10998 Sync changes with xterm.c and xfns.c.
10999
11000 * w32term.c (x_draw_glyph_string_foreground)
11001 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11002
11003 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
11004 phys_cursor's hpos is overwritten. This is still not completely
11005 correct, as it doesn't really make sense to use hpos at all to
11006 get the cursor glyph (as that is relative to the width of the
11007 characters on the line, which may have changed during the update).
11008
11009 * w32term.c (notice_overwritten_cursor): Handle the special case
11010 of the cursor being in the first blank non-text line at the
11011 end of a window.
11012
11013 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11014 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11015 Compute from the x position returned by x_draw_glyphs.
11016
11017 (x_display_and_set_cursor): Don't set phys_cursor_width here,
11018 except for NO_CURSOR and system caret, to make phys_cursor_width
11019 contain what its name suggests.
11020 (notice_overwritten_cursor): Consider the cursor image erased if
11021 the output area intersects the cursor image in y-direction.
11022
11023 * w32term.c (note_mode_line_or_margin_highlight): Rename from
11024 note_mode_line_highlight and extend.
11025
11026 * w32term.c (last_window): New variable.
11027 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
11028 (note_mouse_movement): Remove reimplemented code in #if 0.
11029
11030 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
11031 not update_mode_lines, and always set it to 1.
11032
11033 2003-01-21 Jason Rumney <jasonr@gnu.org>
11034
11035 * w32fns.c (IDC_HAND): Define it if system headers don't.
11036
11037 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11038
11039 * w32term.h (struct w32_output): New member hand_cursor.
11040 (WM_EMACS_SETCURSOR): New message definition.
11041
11042 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
11043 function w32_define_cursor.
11044 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
11045 position, change member name output_data.x to output_data.w32 and
11046 add function w32_define_cursor.
11047 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
11048 and change member name output_data.x to output_data.w32.
11049 (w32_initialize_display_info):
11050 Setup dpyinfo->vertical_scroll_bar_cursor.
11051
11052 * w32fns.c (Vx_hand_shape): New variable.
11053 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
11054 WM_EMACS_SETCURSOR.
11055 (x-create-frame): Setup Cursor types.
11056
11057 2003-01-21 David Ponce <david@dponce.com>
11058
11059 * w32term.c (w32_encode_char): For DIM=1 charset, set
11060 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
11061 x_encode_char change by Kenichi Handa <handa@m17n.org> on
11062 2002-09-30.)
11063 (w32_draw_relief_rect): Declare all args.
11064 (w32_define_cursor): New.
11065
11066 * w32fns.c (w32_load_cursor): New function.
11067 (w32_init_class): Use it.
11068 (x_put_x_image): Declare all args.
11069
11070 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
11071
11072 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
11073
11074 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11075
11076 * gtkutil.c: Must include stdio.h before termhooks.h
11077
11078 2003-01-21 Dave Love <fx@gnu.org>
11079
11080 * alloc.c (Fgc_status): Print zombie list.
11081 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11082 Fix assignment of zombies.
11083 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11084 Don't take car of non-cons.
11085
11086 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11087
11088 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11089
11090 2003-01-20 David Ponce <david@dponce.com>
11091
11092 * w32menu.c (digest_single_submenu): Declare all args.
11093
11094 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
11095 changes in xmenu.c:
11096
11097 (parse_single_submenu): Use individual keymap's prompt
11098 string as pane name, if there is one.
11099 (set_frame_menubar): Save menu_items_n_panes from each call to
11100 parse_single_submenu and use it when calling digest_single_submenu.
11101
11102 2003-01-20 Steven Tamm <steventamm@mac.com>
11103
11104 * macterm.c (XTread_socket): Checks for valid, visible window
11105 before sending a scroll-wheel event.
11106
11107 2003-01-20 Richard M. Stallman <rms@gnu.org>
11108
11109 * xdisp.c (redisplay_window): If mini window's buffer is not
11110 a minibuffer, then redisplay it like other windows.
11111
11112 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11113
11114 * gtkutil.c (xg_create_frame_widgets): Check if there is an
11115 external tool bar before setting tool bar height.
11116
11117 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11118
11119 * xterm.c (handle_one_xevent): Surround popup_activated
11120 with #ifdef:s for non-toolkit version.
11121
11122 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
11123 (gtkutil.o): New file.
11124 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
11125 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
11126
11127 * gtkutil.c: New file for GTK version.
11128
11129 * gtkutil.h: New file for GTK version.
11130
11131 * xterm.h: Add xt_or_gtk_widget.
11132 Include gtk files for USE_GTK.
11133 (struct x_output): Add toolbar_height.
11134 (struct x_output): Add GTK widgets and Gdk size_hints.
11135 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
11136 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
11137 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
11138
11139 * xterm.c: Include gtkutil.h for USE_GTK.
11140 (free_frame_menubar): Declare extern void for USE_GTK.
11141 (note_mouse_highlight): Check popup_activated for USE_GTK.
11142 (xt_action_hook): Don't compile if USE_GTK.
11143 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
11144 (xg_scroll_callback): New function.
11145 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
11146 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
11147 for USE_GTK.
11148 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
11149 xg_show_scroll_bar for USE_GTK.
11150 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
11151 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
11152 (event_handler_gdk): New function for USE_GTK.
11153 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
11154 (handle_one_xevent): Make sure widget is mapped before
11155 calling x_real_positions for USE_GTK.
11156 (XTread_socket): Add GTK event loop for USE_GTK.
11157 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
11158 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
11159 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
11160 (x_iconify_frame): Add code for USE_GTK.
11161 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
11162 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
11163 is in gtkutil.c.
11164 (x_term_init): Add initialization for GTK.
11165 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
11166
11167 * xmenu.c: Include gtkutil.h for USE_GTK.
11168 (Fx_popup_menu): Use current position if x and y is NIL.
11169 (single_menu_item, single_menu_item, Fx_popup_dialog):
11170 Check for USE_GTK.
11171 (popup_widget_loop): New function for USE_GTK.
11172 (x_activate_menubar): Add code for USE_GTK.
11173 (popup_activate_callback, popup_deactivate_callback)
11174 (menu_highlight_callback, menubar_selection_callback):
11175 Add USE_GTK versions.
11176 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
11177 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
11178 (free_frame_menubar): Only compile if not USE_GTK. GTK version
11179 is in gtkutil.c.
11180 (popup_selection_callback): New version for USE_GTK.
11181 (create_and_show_popup_menu): New fuction, one USE_GTK version and
11182 one USE_X_TOOLKIT version.
11183 (xmenu_show): Call create_and_show_popup_menu.
11184 (dialog_selection_callback): New version for USE_GTK.
11185 (create_and_show_dialog): New fuction, one USE_GTK version and
11186 one USE_X_TOOLKIT version.
11187 (xdialog_show): Call create_and_show_dialog.
11188
11189 * xfns.c: Include gtkutil for USE_GTK.
11190 (x_window_to_frame, x_any_window_to_frame)
11191 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11192 (x_top_window_to_frame): Add code for USE_GTK.
11193 (x_set_background_color): Call xg_set_background_color for GTK.
11194 (x_set_menu_bar_lines): Check for USE_GTK.
11195 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
11196 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
11197 (x_window): Call xg_create_frame_widgets for USE_GTK.
11198 (Fx_create_frame): Check for USE_GTK
11199 (Fx_file_dialog): New implementation for USE_GTK.
11200
11201 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
11202 (update_menu_bar): Add check for USE_GTK.
11203 (update_tool_bar): Add check for USE_GTK and external tool bar.
11204 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
11205 (redisplay_internal): Add check for USE_GTK and popup_activated.
11206 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
11207 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
11208 (display_menu_bar): Add check for USE_GTK
11209
11210 * lisp.h (Vx_resource_name): Declare extern.
11211
11212 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
11213 for USE_GTK.
11214 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
11215
11216 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
11217 (FRAME_EXTERNAL_TOOL_BAR): New macro.
11218 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
11219
11220 * fileio.c (Fread_file_name): Add check for USE_GTK.
11221
11222 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
11223 Add check for USE_GTK.
11224
11225 * config.in: Added HAVE_GTK
11226
11227 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
11228
11229 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
11230
11231 * charset.h (Funibyte_char_to_multibyte): Export.
11232
11233 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11234
11235 * xmenu.c (mouse_position_for_popup): New function.
11236 (Fx_popup_menu): Call mouse_position_for_popup for X and
11237 mouse_position_hook for others.
11238
11239 2003-01-17 Kim F. Storm <storm@cua.dk>
11240
11241 * editfns.c (Finsert): Mention `string-make-multibyte' and
11242 `string-as-multibyte' in doc string.
11243
11244 2003-01-17 Kenichi Handa <handa@m17n.org>
11245
11246 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
11247
11248 * editfns.c (Fformat): Convert an unibyte char argument that is
11249 formatted by "%c" to multibyte if the total result must be a
11250 multibyte string.
11251
11252 2003-01-16 Kim F. Storm <storm@cua.dk>
11253
11254 * process.c (set-process-filter): Document unibyte/multibyte-ness
11255 of string argument.
11256
11257 2003-01-16 Kenichi Handa <handa@m17n.org>
11258
11259 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
11260
11261 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
11262 (re_search_2): Likewise.
11263
11264 2003-01-15 Kenichi Handa <handa@m17n.org>
11265
11266 * xdisp.c (message_dolog): Fix bug of the case that *Message*
11267 buffer is unibyte.
11268
11269 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
11270
11271 * fns.c (Fsubstring): Clarify doc string.
11272
11273 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
11274 (Fprevious_char_property_change)
11275 (Fnext_single_char_property_change)
11276 (Fprevious_single_char_property_change, Fnext_property_change)
11277 (Fnext_single_property_change, Fprevious_property_change)
11278 (Fprevious_single_property_change, Fadd_text_properties)
11279 (Fput_text_property, Fset_text_properties)
11280 (Fremove_text_properties, Fremove_list_of_text_properties)
11281 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
11282
11283 2003-01-14 Kim F. Storm <storm@cua.dk>
11284
11285 * process.h (struct Lisp_Process): New member plist replaces old
11286 member private_vars. All uses changed.
11287
11288 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
11289 (QCplist): Rename from QCvars. Change all uses.
11290 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
11291 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
11292 (syms_of_process): Intern, staticpro, defsubr these.
11293 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
11294
11295 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
11296
11297 * m/delta.h: Remove (obsolete).
11298
11299 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
11300
11301 * fileio.c (Fdelete_directory, Fdelete_file): Document the
11302 behaviour in front of symlinks.
11303 (Fdelete_file): Raise an error on directories.
11304
11305 2003-01-13 Dave Love <fx@gnu.org>
11306
11307 * fns.c (Freverse): Use QUIT.
11308
11309 2003-01-13 Richard M. Stallman <rms@gnu.org>
11310
11311 * minibuf.c (minibuffer_completion_contents):
11312 Error if point is inside prompt.
11313
11314 * keyboard.c (command_loop_1): Don't redisplay directly
11315 if there's a post-command-hook.
11316
11317 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
11318 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
11319
11320 2003-01-12 Kim F. Storm <storm@cua.dk>
11321
11322 * process.h (struct Lisp_Process): New member private_vars.
11323
11324 * process.c (QCvars): New variable.
11325 (syms_of_process): Intern and staticpro it.
11326 (Fset_process_contact): Removed function.
11327 (Fprocess_variable, Fset_process_variable): New functions.
11328 (syms_of_process): Defsubr them.
11329 (Fstart_process): Initialize private_vars plist to nil.
11330 (Fmake_network_process): New arg :vars to setup the private
11331 variables for new network process.
11332 (server_accept_connection): Copy server's private variables to
11333 client process.
11334
11335 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
11336 crashes). Code rewritten and simplified. Now directly aligns the
11337 pointer and recalculates pure_bytes_used, rather than aligning the
11338 size and adjusting the pointer.
11339
11340 2003-01-11 Kim F. Storm <storm@cua.dk>
11341
11342 * process.c (Fset_process_contact): New function.
11343 (syms_of_process): defsubr it.
11344 (make-network-process): Update doc.
11345
11346 2003-01-10 Andreas Schwab <schwab@suse.de>
11347
11348 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
11349 Reported by Berthold Gunreben <b.gunreben@web.de>.
11350
11351 2003-01-10 Dave Love <fx@gnu.org>
11352
11353 * composite.c (syms_of_composite): Make composition_hash_table weak.
11354
11355 2003-01-09 Kim F. Storm <storm@cua.dk>
11356
11357 * process.c (Fmake_network_process): Convert new port number
11358 to host byte order for `:service t' case. From Mario Lang.
11359
11360 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11361
11362 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
11363 instead of XtAppProcessEvent.
11364
11365 * xterm.c (handle_one_xevent): New function.
11366 (x_dispatch_event): New function.
11367 (XTread_socket): Call handle_one_xevent.
11368
11369 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
11370
11371 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
11372 call XQueryPointer to get coordinates.
11373 (popup_get_selection): Do not set popup_activated_flag to zero,
11374 let popup_deactivate_callback do that. Needed for Motif.
11375 Call x_dispatch_event instead of XtDispatchEvent.
11376 (xmenu_show): Calculate root coordinate from frame top/left position.
11377
11378 2003-01-08 Kim F. Storm <storm@cua.dk>
11379
11380 * process.c (server_accept_connection): Fix recording of new
11381 connection's local address in :local property of contact info.
11382 (Fmake_network_process): Record local network address for new
11383 client processes in :local property of contact info.
11384 (format-network-address): Add arg OMIT-PORT. Change callers.
11385
11386 2003-01-07 Dave Love <fx@gnu.org>
11387
11388 * Makefile.in (fns.o): Depend on coding.h.
11389
11390 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
11391
11392 * minibuf.c (Fread_variable): Doc fix.
11393
11394 * eval.c (Fuser_variable_p): Doc change. For custom variables,
11395 use the same test as for custom-variable-p.
11396
11397 2003-01-05 Richard M. Stallman <rms@gnu.org>
11398
11399 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
11400 Count LAST_LINE_MISFIT in scroll margin for end of window.
11401 Move label too_near_end before setting SCROLL_MARGIN_POS.
11402 Set LAST_LINE_MISFIT before jumping there.
11403
11404 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
11405 scroll_conservatively case. If scrolling that much doesn't change
11406 STARTP, move it down one line.
11407
11408 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
11409 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
11410
11411 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
11412 selected frame.
11413
11414 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
11415 (syms_of_keymap): Staticpro them.
11416 (Fapropos_internal): Initialize them and clear them out.
11417 Don't GCPRO them.
11418
11419 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
11420 Doc fixes.
11421
11422 * lisp.h: New misc type Lisp_Save_Value.
11423 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
11424 (XSAVE_VALUE): New macro.
11425 (struct Lisp_Save_Value): New data type.
11426 (union Lisp_Misc): Add u_save_value alternative.
11427 (make_save_value): Declare.
11428
11429 * alloc.c (make_save_value): New function.
11430
11431 * xterm.c (x_catch_errors): Save dpy using make_save_value.
11432 (x_catch_errors_unwind): Call XSync.
11433
11434 2003-01-01 Richard M. Stallman <rms@gnu.org>
11435
11436 * window.c (window_scroll_pixel_based): Partially undo last change.
11437
11438 * keyboard.c (command_loop_1): Call adjust_point_for_property
11439 in direct action cases for Qforward_char and Qbackward_char.
11440 Set already_adjusted so it won't be done twice.
11441
11442 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
11443
11444 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
11445 type definition of size_t.
11446
11447 2003-01-02 Steven Tamm <steventamm@mac.com>
11448
11449 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
11450 distinguish Carbon GUI builds from X11 builds on darwin.
11451
11452 2002-12-30 Steven Tamm <steventamm@mac.com>
11453
11454 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
11455 to default to t.
11456
11457 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
11458
11459 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
11460
11461 2002-12-28 Steven Tamm <steventamm@mac.com>
11462
11463 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
11464 allow building in a different directory than source. Uses some
11465 GNU Make extensions, but there is no other make on Mac OS X.
11466
11467 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
11468
11469 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
11470 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
11471 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
11472 (Fstring_to_number): Mention the returned value in the doc strings.
11473
11474 2002-12-23 Richard M. Stallman <rms@gnu.org>
11475
11476 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
11477 <scroll-down-aggressively>: Doc fix.
11478
11479 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
11480 string as pane name, if there is one.
11481 (set_frame_menubar): Save menu_items_n_panes from each call to
11482 parse_single_submenu and use it when calling digest_single_submenu.
11483
11484 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
11485 Don't try to make last line fully visible if it is past end of window.
11486
11487 2002-12-22 Steven Tamm <steventamm@mac.com>
11488
11489 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
11490 (mac_menu_show): Add support for hierarchical popup menus.
11491 (add_menu_item): Remove indentation support.
11492 (fill_submenu, fill_menu): Create hierarchical menus
11493 instead of using indentation.
11494
11495 2002-12-22 Richard M. Stallman <rms@gnu.org>
11496
11497 * xdisp.c (try_cursor_movement): Don't call try_window here.
11498 (redisplay_window): Never redisplay minibuffer when inactive.
11499
11500 * window.c (select_window_1): Undo 9/21 change.
11501
11502 2002-12-22 Steven Tamm <steventamm@mac.com>
11503
11504 * macterm.c (XTread_socket): Call KeyTranslate for control and
11505 meta to deal correctly shifted non-alpha characters, like C-S-5
11506 being treated like C-%. Does not look for shift key to deal
11507 with masking off control-key with mac-reverse-ctrl-meta.
11508
11509 2002-12-21 Richard M. Stallman <rms@gnu.org>
11510
11511 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
11512 If it is non-nil, run timers. Use an unwind-protect to requeue
11513 the events that were read ahead.
11514 (popup_get_selection_unwind): New subroutine.
11515 (popup_get_selection_queue): File-scope variable now holds that queue.
11516 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
11517 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
11518 Use an unwind-protect to pop down the dialog box.
11519 (xdialog_show_unwind): New subroutine implements that.
11520
11521 * xdisp.c (row_containing_pos): Change exit test using last_y.
11522 (try_window_id): Abort if row_containing_pos returns null.
11523
11524 * lread.c (load_error_handler): New function.
11525 (Fload): Handle errors in Fsubstitute_in_file_name.
11526 Don't expect Fsignal to return.
11527
11528 * eval.c: Errors and throws work right with interrupt blocking.
11529 (struct catchtag): New elt interrupt_input_blocked.
11530 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
11531 (internal_catch, Fcondition_case, internal_condition_case)
11532 (internal_condition_case_1, internal_condition_case_2): Save it.
11533 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
11534
11535 * editfns.c (Fformat): Add parens.
11536
11537 * dired.c (file_name_completion): Fix that change.
11538 Delete special quit-handling code; just use QUIT.
11539
11540 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
11541
11542 * dired.c (file_name_completion): Close directory on error
11543 just as in directory_files_internal.
11544
11545 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
11546
11547 * window.c (Fset_window_configuration): Set old_point to correct
11548 value when new_current_buffer == current_buffer.
11549
11550 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
11551
11552 Revisited my earlier fix for the following entry in etc/PROBLEMS:
11553 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11554 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11555
11556 These changes were in part based upon suggestions made by Peter
11557 'Luna' Runestig [peter@runestig.com].
11558
11559 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
11560 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
11561 (g_b_init_get_sid_identifier_authority ): Add several static
11562 global variables.
11563
11564 * w32.c (globals_of_w32): New function. Used to initialize those
11565 global variables that must always be initialized on startup even
11566 when the global variable initialized is non zero. Its primary
11567 purpose at this time is to set the global variables
11568 g_b_init_is_windows_9x, g_b_init_open_process_token,
11569 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
11570 g_b_init_get_sid_identifier_authority to 0 on startup.
11571 Called from main.
11572
11573 * w32.c (is_windows_9x): Perform initialization only if
11574 g_b_init_is_windows_9x is equal to 0. On initialization set
11575 g_b_init_is_windows_9x equal to 1.
11576
11577 * w32.c (open_process_token): Perform initialization only if
11578 g_b_init_open_process_token is equal to 0. On initialization set
11579 g_b_init_open_process_token equal to 1.
11580
11581 * w32.c (get_token_information): Perform initialization only if
11582 g_b_init_get_token_information is equal to 0. On initialization
11583 set g_b_init_get_token_information equal to 1.
11584
11585 * w32.c (lookup_account_sid): Perform initialization only if
11586 g_b_init_lookup_account_sid is equal to 0. On initialization
11587 set g_b_init_lookup_account_sid equal to 1.
11588
11589 * w32.c (get_sid_identifier_authority): Perform initialization
11590 only if g_b_init_get_sid_identifier_authority is equal to 0.
11591 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
11592
11593 * w32fns.c (globals_of_w32fns): New function. Used to initialize
11594 those global variables that must always be initialized on startup
11595 even when the global variable initialized is non zero.
11596 Its primary purpose at this time is to initialize the global variable
11597 track_mouse_event_fn.
11598
11599 * w32fns.c (w32_wnd_proc): Remove initialization of
11600 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
11601
11602 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
11603
11604 * w32menu.c (globals_of_w32menu): New function. Used to
11605 initialize those global variables that must always be initialized
11606 on startup even when the global variable initialized is non zero.
11607 Its primary purpose at this time is to initialize the global
11608 variables get_menu_item_info and set_menu_item_info.
11609
11610 * w32menu.c (initialize_frame_menubar): Remove initialization of
11611 get_menu_item_info and set_menu_item_info.
11612
11613 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
11614
11615 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
11616 Declare them.
11617
11618 * emacs.c (main): Call globals_of_w32 prior to calling
11619 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
11620 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
11621 is defined.
11622
11623 * w32term.c (x_update_window_begin): Fix Windows API error
11624 detected by BoundsChecker. Test to determine if
11625 w32_system_caret_hwnd is NULL prior to attempting to use
11626 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
11627
11628 * w32term.c (x_update_window_end): Fix Windows API error
11629 detected by BoundsChecker. Test to determine if
11630 w32_system_caret_hwnd is NULL prior to attempting to use
11631 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
11632
11633 2002-12-17 Kenichi Handa <handa@m17n.org>
11634
11635 * coding.c (coding_system_require_warning): New variable.
11636 (syms_of_coding): DEFVAR it.
11637
11638 * coding.h (coding_system_require_warning): Extern it.
11639
11640 * fileio.c (choose_write_coding_system): Even if
11641 Vcoding_system_for_write is non-nil, if
11642 coding_system_require_warning is nonzero, call
11643 Vselect_safe_coding_system_function.
11644
11645 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
11646
11647 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
11648 (lisp): Add font-core.
11649
11650 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
11651
11652 * textprop.c (text_read_only): New arg `propval'.
11653 (get_char_property_and_overlay): Remove unused var `next_overlay'.
11654 (verify_interval_modification): Use text_read_only's new arg.
11655
11656 2002-12-13 Kenichi Handa <handa@m17n.org>
11657
11658 * coding.c (Funencodable_char_position): Set pend correctly.
11659
11660 2002-12-12 Jason Rumney <jasonr@gnu.org>
11661
11662 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
11663 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
11664 Be more careful about when help_events are generated.
11665
11666 2002-12-12 Steven Tamm <steventamm@mac.com>
11667
11668 * macterm.c (mac_check_for_quit_char): Correctly set the
11669 modifiers of the event to 0.
11670 * mac.c (sys_select): Duplicate rfds before calling select to
11671 ensure that rfds survive the while loop.
11672
11673 2002-12-11 Kim F. Storm <storm@cua.dk>
11674
11675 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
11676 row_containing_pos returned NULL.
11677
11678 2002-12-10 Steven Tamm <steventamm@mac.com>
11679
11680 * mac.c (sys_read): Fix sys_read to not call select if IO is
11681 non-blocking.
11682 (sys_select): Fix sys_select to not use a timeout larger than
11683 the one given.
11684
11685 2002-12-10 Juanma Barranquero <lektu@terra.es>
11686
11687 * editfns.c (Fformat): Use alloca, not _alloca.
11688
11689 2002-12-09 Richard M. Stallman <rms@gnu.org>
11690
11691 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
11692 as the last thing.
11693
11694 2002-12-09 Dave Love <fx@gnu.org>
11695
11696 * s/sol2-8.h: Removed. (Not necessary.)
11697
11698 2002-12-09 Matthew Swift <swift@alum.mit.edu>
11699
11700 * editfns.c (Fformat): Handle precision in string conversion
11701 specifiers like libc functions do (ie, print at most that many
11702 characters).
11703
11704 2002-12-08 Richard M. Stallman <rms@gnu.org>
11705
11706 * xdisp.c (row_containing_pos): Check more carefully
11707 whether charpos is really in the row before returning it.
11708
11709 2002-12-07 Steven Tamm <steventamm@mac.com>
11710
11711 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
11712
11713 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
11714 each stack frame. This may change as it could be time consuming.
11715
11716 * macterm.c (mac_check_for_quit_char, quit_char_comp)
11717 (init_quit_char_handler, mac_determine_quit_char_modifiers)
11718 (mac_initialize): Add code to check for pressing of quit_char
11719 in the OS event queue.
11720
11721 * mac.c (sys_select): Call mac_check_for_quit_char every second
11722 while blocking on select.
11723
11724 * mac.c (sys_read): Use sys_select to test for input first
11725 before calling read, to allow C-g to break.
11726
11727 2002-12-07 Richard M. Stallman <rms@gnu.org>
11728
11729 * minibuf.c (Fcompleting_read): Doc fix.
11730
11731 * lread.c (syms_of_lread) <load-history>: Doc fix.
11732
11733 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
11734
11735 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
11736 autoload.
11737
11738 * data.c (Fdefalias): Record in load-history redefining an autoload.
11739
11740 * alloca.c: Undo ifdef change accidentally made on 12-04.
11741
11742 2002-12-06 Francesco Potorti` <pot@gnu.org>
11743
11744 * xfns.c (png_load): Avoid double gamma correction for PNG images.
11745
11746 2002-12-04 Richard M. Stallman <rms@gnu.org>
11747
11748 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
11749
11750 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
11751
11752 * alloca.c: Don't use #error.
11753
11754 2002-12-03 Dave Love <fx@gnu.org>
11755
11756 * buffer.c (Qucs_set_table_for_input): New.
11757 (Fget_buffer_create): Use it.
11758 (Qset_buffer_major_mode_hook): Deleted.
11759 (Fset_buffer_major_mode): Revert previous change.
11760 (init_buffer_once): Intern ucs-set-table-for-input.
11761 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
11762 Add &Qucs_set_table_for_input.
11763
11764 2002-12-03 Andreas Schwab <schwab@suse.de>
11765
11766 * callint.c (Fcall_interactively): Use next_event only if less
11767 than key_count.
11768
11769 2002-12-02 Andrew Choi <akochoi@shaw.ca>
11770
11771 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
11772 names to 255 characters.
11773
11774 * macterm.c (XTread_socket): If all frames have been collapsed,
11775 expand the first one before handling drag-and-drop events.
11776
11777 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
11778 which is detected by autoconf.
11779
11780 2002-12-01 Steven Tamm <steventamm@mac.com>
11781
11782 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
11783 offset in two hints table to allow prebinding to be redone and
11784 allow the executable to be stripped.
11785
11786 2002-11-29 Dave Love <fx@gnu.org>
11787
11788 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
11789 already provided.
11790
11791 2002-11-29 Richard M. Stallman <rms@gnu.org>
11792
11793 * xdisp.c (start_display): Check more intelligently for
11794 whether the line is continued.
11795 (move_it_vertically_backward): Clear it->continuation_lines_width.
11796
11797 2002-11-28 Dave Love <fx@gnu.org>
11798
11799 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
11800 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
11801
11802 2002-11-27 Steven Tamm <steventamm@mac.com>
11803
11804 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
11805 more descriptive error output from lread.c:Fload upon most require
11806 cycles during boostrapping.
11807
11808 2002-11-27 Jason Rumney <jasonr@gnu.org>
11809
11810 * fileio.c (Finsert_file_contents): Give a more appropriate error
11811 for files bigger than 2Gb when off_t is 32 bit.
11812
11813 * dired.c (Ffile_attributes): Don't return negative file sizes for
11814 files bigger than 2Gb when off_t is 32 bit.
11815
11816 2002-11-27 Dave Love <fx@gnu.org>
11817
11818 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11819
11820 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
11821 Test GETPGRP_VOID instead.
11822 [BSD_TERMIOS]: Remove definitions (never used).
11823
11824 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
11825 Don't define.
11826 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11827
11828 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
11829
11830 2002-11-25 Jason Rumney <jasonr@gnu.org>
11831
11832 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
11833 supported.
11834
11835 2002-11-25 Dave Love <fx@gnu.org>
11836
11837 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
11838
11839 * Makefile.in (TEMACS_LDFLAGS): Update last change.
11840
11841 2002-11-25 Andreas Schwab <schwab@suse.de>
11842
11843 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
11844
11845 2002-11-24 Steven Tamm <steventamm@mac.com>
11846
11847 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11848 determine the size of pointers alloced in unexed space instead
11849 of using possibly invalid emacs_zone pointers. This fixes the
11850 binary incompatibility problems caused by updates to libSystem.B.
11851
11852 2002-11-24 Richard M. Stallman <rms@gnu.org>
11853
11854 * search.c (Fstring_match): Doc fix.
11855
11856 * callint.c (Fcall_interactively): If a command fails because
11857 `*' detects a read-only buffer, but RECORD_FLAG is set,
11858 record it anyway if the args don't actually do tty input.
11859
11860 2002-11-22 Dave Love <fx@gnu.org>
11861
11862 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
11863
11864 * keyboard.c (interrupt_signal): Provide forward declaration.
11865 (kbd_buffer_store_event): Don't declare interrupt_signal.
11866
11867 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
11868
11869 2002-11-21 Richard M. Stallman <rms@gnu.org>
11870
11871 * eval.c (interactive_p): Skip any number of bytecode
11872 and special form frames, in any order.
11873
11874 2002-11-20 Jason Rumney <jasonr@gnu.org>
11875
11876 * w32fns.c (convert_mono_to_color_image): New function.
11877 (xbm_load, xbm_load_image): Use it when foreground or background
11878 is explicitly set.
11879
11880 2002-11-19 Dave Love <fx@gnu.org>
11881
11882 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
11883
11884 2002-11-18 Jason Rumney <jasonr@gnu.org>
11885
11886 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11887 (XPutPixel): Swap blue and red.
11888 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11889 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11890 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11891 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
11892
11893 2002-11-18 Dave Love <fx@gnu.org>
11894
11895 * m/orion105.h (HAVE_ALLOCA): Don't define.
11896
11897 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
11898
11899 * m/intel386.h: Don't include alloca.h or define alloca.
11900
11901 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
11902 malloc, realloc, calloc.
11903
11904 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11905 (bcmp): Don't define.
11906
11907 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
11908
11909 * m/amdahl.h: Don't define LIB_STANDARD.
11910
11911 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
11912
11913 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
11914
11915 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11916 Don't include alloca.h.
11917
11918 * s/aix3-2.h (HAVE_FSYNC): Don't define.
11919
11920 * regex.c (_GNU_SOURCE): Don't define.
11921
11922 * process.c (_GNU_SOURCE): Don't define.
11923
11924 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
11925
11926 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
11927
11928 * s/sol2-8.h: Include sol2-6.h.
11929
11930 2002-11-18 Miles Bader <miles@gnu.org>
11931
11932 * dispextern.h (struct face): Add `overstrike' field.
11933 * xterm.c (x_draw_glyph_string_foreground)
11934 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11935 * xfaces.c (load_face_font): Set `face->overstrike' based on
11936 result from choose_face_font.
11937 (best_matching_font, choose_face_font): Add `needs_overstrike'
11938 argument, and use it to return whether overstriking is desirable
11939 for this face/font combo.
11940 (set_font_frame_param: Pass new argument to choose_face_font.
11941
11942 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11943
11944 This change is my fix for the following entry in etc/PROBLEMS:
11945 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11946 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11947
11948 * w32.c: Added wrapper functions around the win32 API functions
11949 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11950 GetSidIdentifierAuthority. These wrapper functions serve two
11951 purposes:
11952 1. They ensure that the wrapped function can never be called
11953 when Emacs is running on an operating system on which they are
11954 not supported (Microsoft Windows 95 / 98 / ME).
11955 2. They call the wrapped functions via function pointers rather
11956 than calling them directly. This avoids taking advantage of the
11957 undocumented fact that although these functions are not supported
11958 in the 9x branch of Microsoft Windows, the functions do exist in
11959 the version of advapi32.dll that is found in the 9x branch of
11960 Microsoft Windows.
11961
11962 * w32.c (init_user_info): Replace the calls to the win32 API
11963 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11964 and GetSidIdentifierAuthority with calls to the newly added
11965 wrapper functions.
11966
11967 * w32.h: Added extern declarations for the following functions:
11968 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11969 syms_of_w32menu, and void syms_of_fontset.
11970
11971 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
11972 function pointer track_mouse_event_fn in the handler for the
11973 WM_SETFOCUS message.
11974
11975 * w32menu.c (initialize_frame_menubar): Add code to
11976 reinitialize the function pointers set_menu_item_info and
11977 get_menu_item_info.
11978
11979 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11980
11981 * sound.c: Added a partial implementation of play-sound-internal
11982 for Microsoft Windows. Added various #ifdef / #else / #endif
11983 code blocks to separate the code that will compile under
11984 Microsoft Windows from the code that is specific to Gnu/Linux.
11985 Moved several blocks of code around to make this separation of code
11986 into Windows compatible and Gnu/Linux compatible code blocks easier.
11987
11988 * makefile.w32-in: Include sound.c and link with WinMM.lib.
11989
11990 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11991 added support for play-sound-internal under Windows would be
11992 included in the build of Emacs.
11993
11994 2002-11-16 Jason Rumney <jasonr@gnu.org>
11995
11996 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
11997
11998 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
11999
12000 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
12001
12002 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
12003 (adjust_point_for_property): Move out of display and invisible even if
12004 we were already inside before (in case a property was added while
12005 we weren't looking). Be more careful when handling invisible props.
12006 Skip invisible text as if it really wasn't there at all.
12007
12008 2002-11-15 Jason Rumney <jasonr@gnu.org>
12009
12010 * w32term.c (x_draw_image_foreground)
12011 (w32_draw_image_foreground_1): Use standard copy and invert
12012 operations to draw images.
12013
12014 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
12015 depth of 1.
12016 (xbm_read_bitmap_data): Invert bits as xbm is read in.
12017 (XPutPixel): Don't invert bits here.
12018
12019 2002-11-15 Jason Rumney <jasonr@gnu.org>
12020
12021 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
12022 (w32_draw_image_foreground_1): Handle image masks.
12023 (x_draw_image_glyph_string): Don't BitBlt transparently.
12024
12025 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
12026 (x_from_xcolors): Adjust RGB values for W32.
12027 (image_background, image_background_transparent)
12028 (postprocess_image, x_to_xcolors, x_disable_image)
12029 (x_build_heuristic_mask): Adapt for W32 and enable.
12030 (x_create_x_image_and_pixmap): Mark images with palettes as such.
12031 (xbm_load): Remove unused variable.
12032
12033 2002-11-14 Richard M. Stallman <rms@gnu.org>
12034
12035 * buffer.c (syms_of_buffer): Doc fix.
12036
12037 2002-11-14 Dave Love <fx@gnu.org>
12038
12039 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
12040
12041 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
12042 * xmenu.c (unuse_menu_items, digest_single_submenu):
12043 * xfns.c (x_put_x_image):
12044 * xdisp.c (message2_nolog, set_message):
12045 * undo.c (record_point):
12046 * terminfo.c (tparam):
12047 * syntax.c (scan_sexps_forward):
12048 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12049 * composite.c (update_compositions):
12050 * cm.c (calccost, cmgoto):
12051 * charset.c (c_string_width): Declare all args (per C99).
12052
12053 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
12054
12055 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
12056 Don't declare.
12057
12058 * emacs.c (main) [!VMS]: Avoid third arg.
12059
12060 * fns.c (Fcopy_sequence): Doc fix.
12061 (Fmap_char_table): Cast `call2'.
12062
12063 2002-11-14 Francesco Potorti` <pot@gnu.org>
12064
12065 * s/sol2-8.h: New file.
12066
12067 2002-11-14 Kim F. Storm <storm@cua.dk>
12068
12069 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
12070 dependency on `risky-local-variable' and the :propertize form.
12071
12072 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
12073
12074 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
12075
12076 * syntax.c (scan_sexps_forward): Undo last patch.
12077 Use a more obvious fix: check eob before updating the syntax table.
12078
12079 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
12080
12081 * syntax.c (scan_sexps_forward): Update syntax table before reading
12082 a char rather than after so we don't update the table past eob.
12083
12084 2002-11-09 Dave Love <fx@gnu.org>
12085
12086 * buffer.c (Fset_buffer_major_mode): Fix last change.
12087
12088 * regex.c (regexec): Fix pmatch declaration.
12089
12090 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
12091
12092 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
12093 to self-inserting characters.
12094 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
12095
12096 * coding.c (Vtranslation_table_for_input): New.
12097 (syms_of_coding): DEFVAR it.
12098
12099 2002-11-08 Juanma Barranquero <lektu@terra.es>
12100
12101 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
12102 window.
12103
12104 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12105
12106 * process.c (Fformat_network_address): Remove unused locals p,
12107 cp, and i.
12108
12109 2002-11-06 Dave Love <fx@gnu.org>
12110
12111 * buffer.c (Qset_buffer_major_mode_hook): New.
12112 (Fset_buffer_major_mode): Use it.
12113
12114 2002-11-06 Richard M. Stallman <rms@gnu.org>
12115
12116 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
12117 and stop_polling.
12118
12119 * process.c (wait_reading_process_input):
12120 Test POLLING_PROBLEM_IN_SELECT, not hpux.
12121 Avoid initialization for auto Lisp_Object var.
12122
12123 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
12124
12125 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
12126
12127 2002-11-05 Richard M. Stallman <rms@gnu.org>
12128
12129 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
12130
12131 * callint.c (Fcall_interactively): New local filter_specs.
12132 (Fcall_interactively): Check for progn as well as let.
12133 Add a gcpro.
12134 (Qprogn): New variable.
12135 (syms_of_callint): Staticpro and init Qprogn.
12136
12137 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
12138
12139 * lread.c (Feval_buffer): Doc fix.
12140
12141 2002-11-04 Dave Love <fx@gnu.org>
12142
12143 * keyboard.c (read_char): Always translate iff
12144 Vkeyboard_translate_table is a char table and c is valid.
12145
12146 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12147 and fix C types.
12148
12149 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
12150
12151 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
12152
12153 * editfns.c (get_pos_property): Don't hardcode Qfield.
12154
12155 * keyboard.c (adjust_point_for_property): Handle `display' prop on
12156 overlays. Also handle `invisible' prop.
12157
12158 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
12159
12160 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
12161 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
12162
12163 2002-11-01 Andreas Schwab <schwab@suse.de>
12164
12165 * editfns.c (Fmessage): Revert last change to properly handle %%.
12166
12167 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
12168
12169 * xmenu.c (unuse_menu_items): New fun.
12170 (menu_items_inuse): New var.
12171 (syms_of_xmenu): Initialize it.
12172 (init_menu_items): Use it to detect re-entrance.
12173 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
12174 (Fx_popup_menu): Remove spurious XSETFRAME.
12175
12176 * editfns.c (find_field): Make an exception for nil fields.
12177
12178 2002-11-01 Dave Love <fx@gnu.org>
12179
12180 * m/gec63.h: Deleted.
12181
12182 2002-10-31 Dave Love <fx@gnu.org>
12183
12184 * xterm.c (XTread_socket): Fix last change.
12185 (xaw_scroll_callback): Cast call_data to long to avoid warning.
12186
12187 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
12188
12189 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
12190
12191 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
12192
12193 * editfns.c (overlays_around, get_pos_property): New funs.
12194 (find_field): Use them.
12195 Also be careful not to modify POS before its last use.
12196 (Fmessage): Don't Fformat if there's nothing to format.
12197
12198 2002-10-30 Dave Love <fx@gnu.org>
12199
12200 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
12201 [HAVE_PTY_H]; Include pty.h.
12202
12203 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
12204
12205 * xterm.c (Qeql): Declare.
12206 (Vx_keysym_table): New.
12207 (syms_of_xterm): Initialize it.
12208 (XTread_socket): Use it. Deal with ASCII keysyms.
12209 (XSetIMValues) [HAVE_X11R6]: Prototype.
12210
12211 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
12212 (lispy_kana_keys): Comment out.
12213 (make_lispy_event) [XK_kana_A]: Comment out.
12214 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
12215 Fix sprintf call.
12216
12217 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
12218 regexp.h change).
12219 (TERMINFO, LIBS_TERMCAP): Define.
12220
12221 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
12222 (bcmp): Define conditional on HAVE_BCMP.
12223 (NO_SIOCTL_H): Don't define.
12224 (TIOCSIGSEND): Don't make conditional on IRIX6.
12225
12226 * s/sol2-5.h: Don't include strings.h.
12227 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
12228
12229 * s/irix6-0.h (IRIX6): Don't define.
12230 (bcopy, bcmp, bzero): Don't undef.
12231
12232 * s/irix6-5.h: Don't include strings.h.
12233 (IRIX6): Don't define.
12234 (bcopy, bcmp, bzero): Don't undef.
12235
12236 * syntax.c (Fforward_comment): Doc fix.
12237
12238 2002-10-29 Kim F. Storm <storm@cua.dk>
12239
12240 * process.c (Fsignal_process): Allow PROCESS to be specified by
12241 name in addition to pid (as integer or string).
12242
12243 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
12244
12245 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
12246 environments.
12247
12248 2002-10-27 Kim F. Storm <storm@cua.dk>
12249
12250 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12251
12252 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
12253
12254 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
12255
12256 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12257
12258 2002-10-26 Richard M. Stallman <rms@gnu.org>
12259
12260 * editfns.c (Fformat): Detect invalid format letters for floats.
12261
12262 2002-10-25 Kenichi Handa <handa@m17n.org>
12263
12264 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
12265 (x_set_title): Likewise.
12266
12267 2002-10-25 Juanma Barranquero <lektu@terra.es>
12268
12269 * macgui.h:
12270 * w32gui.h: Remove definition of XColor.
12271
12272 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
12273
12274 2002-10-24 Kim F. Storm <storm@cua.dk>
12275
12276 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
12277 Callers changed (supply dummy arg).
12278
12279 * lisp.h (get_window_cursor_type): Update prototype.
12280
12281 * w32term.c (x_display_and_set_cursor): Get active_cursor from
12282 get_window_cursor_type to track system caret.
12283
12284 2002-10-24 Kim F. Storm <storm@cua.dk>
12285
12286 * process.c (Fformat_network_address): New function.
12287 (syms_of_process): Defsubr it.
12288 (list_processes_1): Use it to format :local/:remote address if
12289 service/host is not set; before Emacs would crash in that case.
12290 (Fmake_network_process): Don't use Ffind_operation_coding_system
12291 to setup coding system if host or service is not set.
12292
12293 2002-10-23 Juanma Barranquero <lektu@terra.es>
12294
12295 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
12296
12297 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
12298 COLORREF.
12299
12300 * macgui.h:
12301 * w32gui.h: Add definition of XColor.
12302
12303 * macfns.c:
12304 * w32fns.c:
12305 * xfaces.c: Remove definition of XColor.
12306
12307 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
12308
12309 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
12310
12311 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
12312 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
12313 window if it is dedicated.
12314 (Fshrink_window): Add preserve_before as was done for enlarge_window.
12315 (Vspecial_display_function): Update docstring.
12316
12317 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
12318 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
12319 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
12320
12321 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
12322
12323 * casefiddle.c (casify_region): Don't treat a prefix char as part
12324 of a word when at the beginning.
12325
12326 2002-10-17 Juanma Barranquero <lektu@terra.es>
12327
12328 * lread.c (syms_of_lread): Fix typos.
12329
12330 2002-10-17 Dave Love <fx@gnu.org>
12331
12332 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
12333
12334 2002-10-16 Richard M. Stallman <rms@gnu.org>
12335
12336 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
12337
12338 2002-10-14 Juanma Barranquero <lektu@terra.es>
12339
12340 * w16select.c (syms_of_win16select): Fix docstring for
12341 `selection-coding-system'.
12342
12343 * w32select.c (syms_of_w32select): Likewise.
12344
12345 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
12346
12347 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
12348 a backslash-quoted char.
12349 (scan_lists, scan_sexps_forward): Pacify the compiler.
12350
12351 2002-10-13 Richard M. Stallman <rms@gnu.org>
12352
12353 * window.c (window_scroll): Set immediate_quit.
12354
12355 * print.c (print): When backquote form is the car of a list,
12356 output in old style. Use old_backquote_output to output all
12357 comma forms inside it in old style too.
12358
12359 * buffer.h (struct buffer): Move `undo_list' down below `name'.
12360
12361 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
12362
12363 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
12364 batch mode).
12365
12366 * lread.c (Fload): Doc fix (load-suffixes).
12367
12368 2002-10-10 Steven Tamm <steventamm@mac.com>
12369
12370 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
12371 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
12372 Also switch the default to Qnil from Qt.
12373
12374 2002-10-08 Kenichi Handa <handa@m17n.org>
12375
12376 * coding.c (code_convert_region): When we need more GAP for
12377 conversion, pay attention to the case that coding->produced is not
12378 greater than coding->consumed.
12379
12380 2002-10-07 Richard M. Stallman <rms@gnu.org>
12381
12382 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
12383
12384 2002-10-06 Andrew Choi <akochoi@shaw.ca>
12385
12386 * macmenu.c (mac_menu_show): Add j to count menu items; match
12387 menu_item_selection to it to find selected item.
12388
12389 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12390
12391 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
12392 cases. The correct fix is to pass ReparentNotify to Xt.
12393 The shell widget interprets ConfigureNotify differently depending
12394 on if it has been reparented or not.
12395
12396 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
12397
12398 * editfns.c (Fformat_time_string): Doc fix.
12399
12400 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
12401
12402 * fns.c (Flength): Doc fix.
12403
12404 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
12405
12406 * keyboard.c (keyremap): New struct.
12407 (read_key_sequence): Use it: globally replace keytran_foo with
12408 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
12409 keytran_next and fkey_next to just `next'.
12410
12411 2002-10-04 Steven Tamm <steventamm@mac.com>
12412
12413 * macterm.c (keycode_to_xkeysym_table): Change return to be
12414 treated like an X keysym.
12415
12416 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12417
12418 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
12419 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
12420 This is to also handle x/y changes that occur because of a resize.
12421
12422 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
12423
12424 * frame.c (Vdelete_frame_functions): New variable.
12425 (syms_of_frame): Initialize and defvar it.
12426 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
12427 it when frame's `tooltip' parameter is non-nil.
12428
12429 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
12430
12431 * w32fns.c (x_create_tip_frame): Likewise.
12432
12433 * macfns.c (x_create_tip_frame): Likewise.
12434
12435 2002-09-30 Kenichi Handa <handa@m17n.org>
12436
12437 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
12438 -1 before calling ccl_driver.
12439
12440 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
12441 Only when it is non-nil, handle composition sequence.
12442 (setup_coding_system) <0>: Don't force composition handling.
12443
12444 * Makefile.in (lisp, shortlisp): Add utf-16.elc
12445
12446 2002-09-29 Richard M. Stallman <rms@gnu.org>
12447
12448 * search.c (Freplace_match): Adjust match data for the substitution
12449 just made in the buffer.
12450
12451 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
12452 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
12453
12454 2002-09-27 Richard M. Stallman <rms@gnu.org>
12455
12456 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
12457 (read_char): Use them. Do all exits thru the end of the function.
12458
12459 2002-09-27 Kenichi Handa <handa@etl.go.jp>
12460
12461 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
12462 is nil.
12463
12464 2002-09-26 Richard M. Stallman <rms@gnu.org>
12465
12466 * regex.h (__restrict_arr): Don't define if already defined.
12467
12468 * coding.c (run_pre_post_conversion_on_str):
12469 Save and restore Vdeactivate_mark.
12470
12471 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
12472
12473 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
12474
12475 2002-09-26 Kenichi Handa <handa@etl.go.jp>
12476
12477 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
12478 nonzero, try face's family at first. Otherwise try FAMILY at first.
12479 (choose_face_font): If C is a single byte char or latin-1, call
12480 try_font_list with PREFER_FACE_FAMILY 1.
12481
12482 2002-09-21 Richard M. Stallman <rms@gnu.org>
12483
12484 * window.c (select_window_1): Don't select frame.
12485 Set frame's selected window only when frame itself is selected.
12486 (Fselect_window): Doc fix.
12487
12488 2002-09-18 Kim F. Storm <storm@cua.dk>
12489
12490 * process.c (make-network-process): Doc fix (there is no
12491 network-server-log-function hook).
12492
12493 2002-09-18 Richard M. Stallman <rms@gnu.org>
12494
12495 * print.c (print): Clear out the unused parts of Vprint_number_table.
12496 (syms_of_print): Doc fix for `print-number-table'.
12497
12498 * unexelf.c (unexec): Undo previous change.
12499
12500 2002-09-17 Andreas Schwab <schwab@suse.de>
12501
12502 * m/alpha.h [LINUX]: Don't define DATA_START.
12503
12504 2002-09-16 Dave Love <fx@gnu.org>
12505
12506 * unexelf.c (unexec): Deal with .got, reinstating change from
12507 25-08-1999.
12508
12509 2002-09-13 Richard M. Stallman <rms@gnu.org>
12510
12511 * s/sol2-6.h (UNEXEC): Comment out definition.
12512
12513 * unexsol.c (unexec): Don't downcase first letter of error msg.
12514
12515 * xfaces.c (Fcolor_supported_p): Just one arg is required.
12516
12517 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
12518
12519 * unexsol.c: Include buffer.h, charset.h, coding.h.
12520
12521 2002-09-11 Richard M. Stallman <rms@gnu.org>
12522
12523 * unexsol.c: Don't use report_file_error; do it by hand
12524 using dlerror.
12525
12526 * process.c (wait_reading_process_input, both versions):
12527 Before calling turn_on_atimers, call stop_polling.
12528
12529 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
12530
12531 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
12532 we go to too_near_end, call clear_glyph_matrix.
12533 (redisplay_window): After make_cursor_line_fully_visible,
12534 call clear_glyph_matrix and bypass `goto done'.
12535
12536 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
12537 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
12538
12539 2002-09-10 Richard M. Stallman <rms@gnu.org>
12540
12541 * fileio.c (Fdo_auto_save): Catch error making directory.
12542 Only call push_message if we need to.
12543 At the same time, make an unwind-protect to pop it.
12544 Rename local message_p to old_message_p.
12545 (do_auto_save_make_dir, do_auto_save_eh): New functions.
12546 (do_auto_save_unwind): Don't call pop_message.
12547
12548 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
12549
12550 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
12551
12552 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
12553
12554 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
12555
12556 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
12557
12558 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
12559 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
12560 (re_match_2_internal): Be more careful with infinite loops.
12561
12562 2002-09-10 Kim F. Storm <storm@cua.dk>
12563
12564 * macros.c (end_kbd_macro): New function.
12565 (Fend_kbd_macro): Use it.
12566
12567 * macros.h (end_kbd_macro): Declare extern.
12568
12569 * keyboard.c (Fdiscard_input): If defining keyboard macro,
12570 end and save it instead of discarding it.
12571
12572 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
12573
12574 * s/sol2-6.h: Fix typo. Add comment.
12575
12576 2002-09-09 Richard M. Stallman <rms@gnu.org>
12577
12578 * regex.c (regnum_t): Use signed int, not unsigned int.
12579
12580 * s/sol2-6.h: New file.
12581
12582 * s/sol2-5.h (UNEXEC): Definition deleted.
12583
12584 2002-09-08 Kim F. Storm <storm@cua.dk>
12585
12586 * macros.c (executing_macro_index): Change type to EMACS_INT.
12587 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
12588
12589 * macros.h (executing_macro_index): Change type to EMACS_INT.
12590
12591 2002-09-06 Richard M. Stallman <rms@gnu.org>
12592
12593 * casetab.c (set_case_table): Make canon table point to eqv table.
12594
12595 2002-09-06 Juanma Barranquero <lektu@terra.es>
12596
12597 * coding.c (syms_of_coding): Fix spacing.
12598
12599 * composite.c (Fcompose_region_internal)
12600 (Fcompose_string_internal): Likewise.
12601
12602 * data.c (Flsh): Likewise.
12603
12604 * fontset.c (Fset_fontset_font): Likewise.
12605
12606 * macfns.c (Fx_server_max_request_size): Likewise.
12607
12608 * w16select.c (syms_of_win16select): Likewise.
12609
12610 * w32select.c (syms_of_w32select): Likewise.
12611
12612 * xselect.c (syms_of_xselect): Likewise.
12613
12614 2002-09-05 Richard M. Stallman <rms@gnu.org>
12615
12616 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
12617 call EXTEND_RANGE_TABLE and return a proper value.
12618 (set_image_of_range): Don't call set_image_of_range_1
12619 if no TRANSLATE or if range includes all of Latin-1.
12620 Only call it for the Latin-1 part of the range.
12621 For other cases, make two separate ranges,
12622 one for the original specified characters and one for
12623 their case-conversions.
12624
12625 2002-09-04 Richard M. Stallman <rms@gnu.org>
12626
12627 * s/sol2-5.h (UNEXEC): Use unexsol.o.
12628
12629 * window.c (displayed_window_lines): Correct for one-off bug
12630 in HEIGHT on non-window displays.
12631
12632 * regex.c (set_image_of_range_1): New function.
12633 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
12634 Return a value to indicate running out of memory.
12635 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
12636 (extend_range_table_work_area): New subroutine.
12637 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
12638 Different calling conventions, and used from set_image_of_range{,_1}.
12639 (IMMEDIATE_QUIT_CHECK): Definitions moved.
12640
12641 2002-09-04 Juanma Barranquero <lektu@terra.es>
12642
12643 * makefile.w32-in: All dependencies updated.
12644
12645 2002-09-01 Richard M. Stallman <rms@gnu.org>
12646
12647 * unexsol.c: New file.
12648
12649 * xfns.c (Qbox): Declare external, don't define.
12650
12651 * xdisp.c (redisplay_window) <force-start case>:
12652 If point is on semi-visible last line, reposition
12653 it at previous line.
12654
12655 * alloc.c (display_malloc_warning): Use display-warning.
12656 (malloc_warning_1): Function deleted.
12657
12658 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
12659
12660 * lread.c (read1): Handle #! by skipping the line.
12661
12662 2002-08-31 Richard M. Stallman <rms@gnu.org>
12663
12664 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
12665 Don't include LDFLAGS.
12666 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
12667
12668 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
12669
12670 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
12671 member of x_display_info unless we compile for some window system.
12672
12673 2002-08-31 Kim F. Storm <storm@cua.dk>
12674
12675 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
12676 (get_window_cursor_type): Don't use them.
12677 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
12678
12679 2002-08-30 Kenichi Handa <handa@etl.go.jp>
12680
12681 * xdisp.c (get_next_display_element): Fix previous change.
12682
12683 2002-08-30 Andrew Choi <akochoi@shaw.ca>
12684
12685 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
12686 (expose_window): Use it to fix the display of overlapping
12687 rows (merge code from xterm.c).
12688
12689 * macfns.c (Qbox): Add extern declaration.
12690
12691 2002-08-30 Juanma Barranquero <lektu@terra.es>
12692
12693 * w32fns.c (Qbox): Make extern.
12694 (syms_of_w32fns): Remove initialization of Qbox.
12695
12696 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
12697
12698 * xfns.c (Fx_open_connection): Fix error message.
12699
12700 2002-08-30 Kim F. Storm <storm@cua.dk>
12701
12702 The following changes consolidates the handling of the cursor
12703 type in xdisp.c, moving duplicate code and functionality from
12704 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
12705
12706 * frame.h (enum text_cursor_kinds): Consolidated here.
12707 Added DEFAULT_CURSOR value.
12708 (struct frame) <desired_cursor, cursor_width>
12709 <blink_off_cursor, blink_off_cursor_width>: New fields.
12710 Consolidated from output_x, output_w32 and output_mac structs.
12711 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12712 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
12713
12714 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
12715 Variables consolidated here.
12716 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
12717 (Vcursor_in_non_selected_windows): Renamed from
12718 cursor_in_non_selected_windows and changed to Lisp_Object.
12719 (syms_of_xdisp): Define and staticpro new and moved variables.
12720 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
12721 consolidated here. Recognize Qhollow setting.
12722 (set_frame_cursor_types): New function to set frame cursor types
12723 based on the frame parameters.
12724 (get_window_cursor_type): New function to calculate new cursor
12725 type and width for the specified window. Based on duplicated
12726 code consolidated here.
12727 Enhancements: cursor-in-non-selected-windows may be a cursor type,
12728 check buffer-local alternate-cursor-type and blink-cursor-alist
12729 before using built-in blink off methods.
12730
12731 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
12732
12733 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
12734 (get_specified_cursor_type, get_window_cursor_type)
12735 (set_frame_cursor_types): Added prototypes.
12736
12737 * macfns.c (x_specified_cursor_type): Removed.
12738 (x_set_cursor_type): Use set_frame_cursor_types.
12739 (Qbar, Qbox): Removed.
12740 (syms_of_macfns): Don't intern or staticpro them.
12741
12742 * macterm.c (x_specified_cursor_type): Remove prototype.
12743 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12744 (x_display_and_set_cursor): Use get_window_cursor_type.
12745 Remove unused local variables cursor_non_selected, active_cursor.
12746 Redraw cursor if hbar cursor width changes.
12747 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
12748
12749 * macterm.h (enum text_cursor_kinds): Removed.
12750 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
12751 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12752 (FRAME_DESIRED_CURSOR): Macro removed.
12753
12754 * w32fns.c (Vblink_cursor_alist): Removed.
12755 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12756 (syms_of_w32fns): Don't intern, staticpro, or define them.
12757 (x_specified_cursor_type): Removed.
12758 (x_set_cursor_type): Use set_frame_cursor_types.
12759
12760 * w32term.c (x_specified_cursor_type): Remove prototype.
12761 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12762 (x_display_and_set_cursor): Use get_window_cursor_type.
12763 Remove unused local variables cursor_off_state.
12764 Redraw cursor if hbar cursor width changes.
12765 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
12766
12767 * w32term.h (enum text_cursor_kinds): Removed.
12768 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
12769 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12770 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12771 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12772 (struct w32_display_info) <x_highlight_frame>: Renamed member from
12773 w32_highlight_frame.
12774
12775 * xfns.c (Vblink_cursor_alist): Removed.
12776 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12777 (syms_of_xfns): Don't intern, staticpro, or define them.
12778 (x_specified_cursor_type): Removed.
12779 (x_set_cursor_type): Use set_frame_cursor_types.
12780
12781 * xterm.c (x_specified_cursor_type): Remove prototype.
12782 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12783 (x_display_and_set_cursor): Use get_window_cursor_type.
12784 Remove unused local variables cursor_off_state.
12785 Redraw cursor if hbar cursor width changes.
12786
12787 * xterm.h (enum text_cursor_kinds): Removed.
12788 (struct output_x) <current_cursor, desired_cursor, cursor_width>
12789 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12790 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12791 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12792 (x_specified_cursor_type): Remove prototype.
12793
12794 2002-08-28 Richard M. Stallman <rms@gnu.org>
12795
12796 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12797 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12798 (Vblink_cursor_alist): New variable.
12799 (syms_of_w32fns): Initialize and defvar it.
12800 (x_specified_cursor_type): Recognize Qbox for filled box.
12801 Exceptions are hollow boxes.
12802 (Qbox, Qhollow): New variables.
12803 (syms_of_w32fns): Initialize and staticpro them.
12804
12805 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12806 New macros.
12807 (struct w32_output): New fields blink_off_cursor,
12808 blink_off_cursor_width.
12809 (FRAME_CURSOR_WIDTH): New macro.
12810
12811 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12812 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12813
12814 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12815 for bar cursor.
12816
12817 * w32term.c (expose_overlaps): New function.
12818 (expose_window): Use it to fix the display of overlapping rows.
12819
12820 2002-08-28 Simon Josefsson <jas@extundo.com>
12821
12822 * xfns.c (Fx_open_connection): Improve help when X connection
12823 fails, xhost is insecure and xauth is better.
12824
12825 2002-08-28 Juanma Barranquero <lektu@terra.es>
12826
12827 * makefile.w32-in: Add missing dependencies on w32term.h and
12828 composite.h.
12829
12830 * emacs.c (USAGE1): Add missing newline.
12831
12832 2002-08-27 Andrew Choi <akochoi@shaw.ca>
12833
12834 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
12835
12836 2002-08-27 Richard M. Stallman <rms@gnu.org>
12837
12838 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12839 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12840 (Vblink_cursor_alist): New variable.
12841 (syms_of_xfns): Initialize and defvar it.
12842 (x_specified_cursor_type): Recognize Qbox for filled box.
12843 Exceptions are hollow boxes.
12844 (Qbox, Qhollow): New variables.
12845 (syms_of_xfns): Initialize and staticpro them.
12846
12847 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12848 New macros.
12849 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12850
12851 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12852 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12853
12854 * emacs.c (main): Handle --script.
12855 (USAGE1): Mention --script.
12856 (standard_args): Define sort order for --script.
12857
12858 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
12859
12860 * xdisp.c (redisplay_updating_p): Variable removed.
12861 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12862 New variables.
12863 (init_iterator): Don't free realized faces if
12864 inhibit_free_realized_faces is set.
12865 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12866 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12867 initialize Qinhibit_free_realized_faces.
12868
12869 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12870 when iterator is adding glyphs to a glyph matrix.
12871
12872 2002-08-27 Kenichi Handa <handa@etl.go.jp>
12873
12874 * xdisp.c (get_next_display_element): In unibyte case, don't use
12875 octal form for such eight-bit characters that can be converted to
12876 multibyte char.
12877
12878 2002-08-26 Kim F. Storm <storm@cua.dk>
12879
12880 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12881 foreground and background colors. From Joe Buehler.
12882
12883 2002-08-26 Miles Bader <miles@gnu.org>
12884
12885 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12886
12887 2002-08-25 Andrew Choi <akochoi@shaw.ca>
12888
12889 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12890 defined instead of MAC_OSX.
12891
12892 * s/darwin.h (select): Define select to sys_select only if
12893 HAVE_CARBON is defined.
12894 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
12895 (DONT_REOPEN_PTY): #def it.
12896
12897 * macterm.c (XTread_socket): Remove code to call
12898 SendEventToEventTarget for keys with command modifiers when
12899 mac_command_key_is_meta is nil.
12900
12901 2002-08-24 Andreas Schwab <schwab@suse.de>
12902
12903 * eval.c (Fdefvar): Fix last change.
12904
12905 2002-08-23 Richard M. Stallman <rms@gnu.org>
12906
12907 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12908 Record variables in load history as (defvar . VAR).
12909 (Fdefvar): Don't record in load history if no initial value.
12910 (Qdefvar): New variable.
12911 (syms_of_eval): Init and staticpro it.
12912
12913 * lread.c (syms_of_lread): Doc fix.
12914 (build_load_history): Use Fmember to see if a definition
12915 is already in the Vload_history element.
12916
12917 * process.c (Fstart_process): Remove /: from program name.
12918
12919 * emacs.c (decode_env_path): Don't add /: if file name handler
12920 has a `safe-magic' property.
12921
12922 * callproc.c (Fcall_process): Remove /: from program name.
12923
12924 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
12925
12926 * regex.c (PATFETCH): Remove the translating fetch.
12927 (PATFETCH_RAW): Rename to PATFETCH.
12928 (set_image_of_range): New fun.
12929 (SET_RANGE_TABLE_WORK_AREA): Use it.
12930 (regex_compile): Don't translate the pattern chars so eagerly.
12931 Only do it when inserting an `exactn' bytecode or when handling
12932 a char-range.
12933 (mutually_exclusive_p): Avoid empty statement.
12934
12935 2002-08-22 Kim F. Storm <storm@cua.dk>
12936
12937 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12938 end up on a partially visible line; this reverts a specific part
12939 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12940 display error which has been reported several times now.
12941 However it introduces the problem that changes was supposed to fix.
12942 See my comments in the source if you want to debug this further.
12943
12944 2002-08-20 Kenichi Handa <handa@etl.go.jp>
12945
12946 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12947
12948 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
12949
12950 * msdos.c (croak): Add `void' to definition.
12951
12952 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
12953 Don't define them, they are defined in msdos.c.
12954
12955 * mem-limits.h [MSDOS]: Declare etext.
12956
12957 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12958 `const' since CORRECT_DIR_SEPS modifies its target.
12959
12960 2002-08-19 Kim F. Storm <storm@cua.dk>
12961
12962 * keyboard.c (Fclear_this_command_keys): Add optional arg
12963 KEEP-RECORD to avoid clearing lossage when we just want to clear
12964 the current key sequence (kmacro needs this).
12965
12966 2002-08-19 Kenichi Handa <handa@localhost>
12967
12968 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12969
12970 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12971 cons, return Qnil.
12972
12973 2002-08-17 Richard M. Stallman <rms@gnu.org>
12974
12975 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12976
12977 * sysdep.c [!VMS]: Include sys/files.h.
12978
12979 * editfns.c (save_restriction_restore): Defend from unchained marker.
12980
12981 * buffer.c (overlays_at): Handle extending vec uniformly.
12982 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12983
12984 2002-08-15 Andrew Choi <akochoi@shaw.ca>
12985
12986 * mac.c (init_mac_osx_environment): New function.
12987
12988 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12989
12990 2002-08-14 Kim F. Storm <storm@cua.dk>
12991
12992 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12993 executing macro before appending to it (when used from Lisp).
12994 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12995 which is called prior to each iteration of macro (for kmacro.el).
12996 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12997
12998 * lisp.h (Fexecute_kbd_macro): Update prototype.
12999
13000 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
13001
13002 2002-08-14 Kenichi Handa <handa@etl.go.jp>
13003
13004 * xselect.c (QUTF8_STRING): New variable.
13005 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
13006 (x_atom_to_symbol): Likewise.
13007 (x_get_local_selection): New argument local_request. If it is
13008 nonzero, call handler_fn with the second arg nil.
13009 (x_handle_selection_request): Call x_get_local_selection with
13010 local_request 0.
13011 (lisp_data_to_selection_data): Don't encode the string here.
13012 (Fx_get_selection_internal): Call x_get_local_selection with
13013 local_request 1.
13014 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
13015
13016 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
13017
13018 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
13019
13020 2002-08-13 Richard M. Stallman <rms@gnu.org>
13021
13022 * minibuf.c (Fminibufferp): New function.
13023 (syms_of_minibuf): Defsubr it.
13024 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
13025
13026 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
13027
13028 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
13029
13030 2002-08-12 Richard M. Stallman <rms@gnu.org>
13031
13032 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
13033 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
13034 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
13035 already.
13036
13037 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
13038
13039 2002-08-11 Andrew Choi <akochoi@shaw.ca>
13040
13041 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
13042 (Vmac_pass_command_to_system): New variable.
13043 (Vmac_pass_control_to_system): New variable.
13044 (do_mouse_moved): Check wp with is_emacs_window.
13045 (XTread_socket): Check window_ptr with is_emacs_window.
13046 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
13047 events back to Mac Toolbox for processing, depending on values of
13048 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
13049 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
13050 Vmac_pass_control_to_system.
13051
13052 2002-08-10 Kenichi Handa <handa@etl.go.jp>
13053
13054 * coding.c (unencodable_char_position): New function.
13055 (Funencodable_char_position): New function.
13056 (syms_of_coding): Defsubr Funencodable_char_position.
13057
13058 2002-08-10 Andrew Choi <akochoi@shaw.ca>
13059
13060 * mac.c (sys_select) [MAC_OSX]: New function.
13061
13062 * macterm.c (MakeMeTheFrontProcess): New function.
13063 (mac_initialize): Call MakeMeTheFrontProcess.
13064
13065 * s/darwin.h: Define select to sys_select.
13066
13067 2002-08-09 Richard M. Stallman <rms@gnu.org>
13068
13069 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
13070
13071 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
13072
13073 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
13074 end of the buffer.
13075
13076 2002-08-08 Ken Raeburn <raeburn@mit.edu>
13077
13078 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
13079
13080 * puresize.h (BASE_PURESIZE): Increase to 910000.
13081
13082 2002-08-08 Kenichi Handa <handa@etl.go.jp>
13083
13084 * coding.c (Ffind_operation_coding_system): For write-region, if
13085 VISIT is a filename, make it the target.
13086
13087 2002-08-07 Richard M. Stallman <rms@gnu.org>
13088
13089 * alloc.c (mark_object): Detect long lists for debugging.
13090 (mark_object_loop_halt): New variable.
13091
13092 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
13093
13094 * data.c (Fmake_variable_frame_local): Doc fix.
13095
13096 2002-08-01 David Ponce <david@dponce.com>
13097
13098 * w32menu.c (local_heap, local_alloc, local_free): New macros.
13099 (malloc_widget_value, free_widget_value)
13100 (w32_free_submenu_strings): Use them.
13101
13102 (push_submenu_start, push_submenu_end, push_left_right_boundary)
13103 (push_menu_pane, push_menu_item, single_keymap_panes)
13104 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
13105 (single_submenu, set_frame_menubar)
13106 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
13107
13108 (Fx_popup_menu): Don't show pop up menu until preceding one is
13109 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
13110
13111 * w32menu.c: Changes adapted from xmenu.c
13112 (set_frame_menubar): First parse all submenus,
13113 then make widget_value trees from them.
13114 Don't allocate any widget_value objects
13115 until we are done with the parsing.
13116 (parse_single_submenu): New function.
13117 (digest_single_submenu): New function.
13118 (single_submenu): Function deleted, replaced by those two.
13119
13120 2002-08-04 Andrew Choi <akochoi@shaw.ca>
13121
13122 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
13123 returns a valid window pointer before proceeding for keyDown and
13124 autoKey events.
13125
13126 2002-08-03 Andrew Choi <akochoi@shaw.ca>
13127
13128 * macterm.c (USE_CARBON_EVENTS): New macro.
13129 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
13130 (x_iconify_frame): Call CollapseWindow.
13131 (Vmac_reverse_ctrl_meta): New variable.
13132 (Vmac_wheel_button_is_mouse_2): New variable.
13133 (init_mac_drag_n_drop): New function.
13134 (mac_do_receive_drag): New function.
13135 (mac_handle_service_event): New function.
13136 (init_service_handler): New function.
13137 (mac_to_emacs_modifiers): New function.
13138 (mac_event_to_emacs_modifiers): New function.
13139 (mac_get_mouse_btn): New function.
13140 (mac_convert_event_ref): New function.
13141 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
13142 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
13143 mac_get_mouse_btn.
13144 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
13145
13146 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
13147 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
13148 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
13149 TOOL_BAR_EVENT for MAC_OS as well.
13150 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
13151 as for WINDOWS_NT.
13152 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
13153
13154 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
13155
13156 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
13157
13158 * xdisp.c (forward_to_next_line_start): Fix a condition that
13159 lead to a newline being skipped.
13160
13161 2002-08-02 Andrew Choi <akochoi@shaw.ca>
13162
13163 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
13164
13165 2002-08-01 Richard M. Stallman <rms@gnu.org>
13166
13167 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
13168
13169 2002-07-31 Andrew Choi <akochoi@shaw.ca>
13170
13171 * macfns.c: #undef init_process before #define-ing it.
13172
13173 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
13174 HAVE_CARBON is defined.
13175
13176 2002-07-31 Richard M. Stallman <rms@gnu.org>
13177
13178 * xmenu.c (set_frame_menubar): First parse all submenus,
13179 then make widget_value trees from them.
13180 Don't allocate any widget_value objects
13181 until we are done with the parsing.
13182 (parse_single_submenu): New function.
13183 (digest_single_submenu): New function.
13184 (single_submenu): Function deleted, replaced by those two.
13185
13186 2002-07-30 Juanma Barranquero <lektu@terra.es>
13187
13188 * w32proc.c (syms_of_ntproc): Fix docstring of
13189 `w32-get-true-file-attributes'.
13190
13191 2002-07-28 Richard M. Stallman <rms@gnu.org>
13192
13193 * s/hpux8.h (HPUX8): Define this before including hpux.h.
13194 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
13195
13196 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
13197
13198 * keyboard.c (make_lispy_event):
13199 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
13200 Explicitly clear up_modifier in event->modifiers.
13201
13202 2002-07-27 Richard M. Stallman <rms@gnu.org>
13203
13204 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
13205
13206 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13207 for bar cursor.
13208
13209 2002-07-26 Kenichi Handa <handa@etl.go.jp>
13210
13211 * coding.c (detect_coding_iso2022): While checking a byte sequence
13212 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
13213 it in the normal loop.
13214
13215 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
13216
13217 * xterm.c (expose_overlaps): New function.
13218 (expose_window): Use it to fix the display of overlapping rows.
13219
13220 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
13221
13222 2002-07-23 Ken Raeburn <raeburn@gnu.org>
13223
13224 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
13225 since it only depends on XUINT.
13226
13227 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
13228 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
13229 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
13230 Macros deleted.
13231
13232 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
13233 its value over other approaches.
13234 * sysdep.c (start_of_data): Don't define the function if a macro
13235 form has been defined.
13236
13237 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
13238
13239 * xdisp.c (redisplay_updating_p): New variable.
13240 (init_iterator): Don't free realized faces when
13241 redisplay_updating_p is set.
13242 (redisplay_internal): Set redisplay_updating_p while updating
13243 the display.
13244
13245 2002-07-23 Richard M. Stallman <rms@gnu.org>
13246
13247 * editfns.c (Fmessage): Treat "" like nil.
13248
13249 2002-07-23 Kenichi Handa <handa@etl.go.jp>
13250
13251 * xdisp.c (face_before_or_after_it_pos):
13252 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13253
13254 2002-07-22 Juanma Barranquero <lektu@terra.es>
13255
13256 * callproc.c (init_callproc) [DOS_NT]:
13257 Initialize Vshared_game_score_directory to nil.
13258 (syms_of_callproc) [DOS_NT]: Likewise.
13259
13260 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
13261
13262 * xdisp.c (display_line): Replace an abort with xassert.
13263
13264 2002-07-21 Richard M. Stallman <rms@gnu.org>
13265
13266 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
13267 and END_UNCHANGED when setting buffer_unchanged_p.
13268 Use current_matrix_up_to_date_p to decide whether to use
13269 try_cursor_movement.
13270
13271 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
13272
13273 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
13274
13275 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
13276 Set to nil if dir does not exist.
13277 (syms_of_callproc): Init unconditionally and simply.
13278
13279 * buffer.c (Fbuffer_list): Doc fix.
13280
13281 2002-07-21 Ken Raeburn <raeburn@gnu.org>
13282
13283 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
13284
13285 * buffer.c (mmap_realloc): When shrinking, make sure number of
13286 pages to unmap is rounded towards zero.
13287
13288 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
13289 (XSETINT): Deleted.
13290
13291 * m/att3b.h (XINT): Don't define.
13292 (VALBITS, VALMASK, XTYPE): Deleted.
13293 (DATA_SEG_BITS): Define.
13294 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
13295 ARRAY_MARK_FLAG): Deleted.
13296 (DATA_SEG_BITS): Define.
13297 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
13298 (DATA_SEG_BITS): Define.
13299
13300 2002-07-20 Richard M. Stallman <rms@gnu.org>
13301
13302 * print.c (print_error_message): New args CONTEXT and CALLER.
13303 Calls changed.
13304
13305 * lisp.h (print_error_message): Declare new args.
13306
13307 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
13308 and CONTEXT to print_error_message, don't print them here.
13309 For a Quit, don't use Vsignaling_function.
13310 Call message_log_maybe_newline.
13311
13312 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
13313
13314 2002-07-20 Kim F. Storm <storm@cua.dk>
13315
13316 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
13317
13318 2002-07-19 Ken Raeburn <raeburn@gnu.org>
13319
13320 * bytecode.c (struct byte_stack): Pointers into byte string now
13321 point to const.
13322 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
13323 const.
13324 * charset.h (BCOPY_SHORT): Source pointer now points to const.
13325 * coding.c (encode_eol, detect_coding, detect_eol):
13326 (decode_coding, encode_coding, detect_coding_system):
13327 Source strings now treated as const.
13328 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
13329 modify Lisp string contents.
13330 * coding.h (decode_coding, encode_coding, detect_coding,
13331 detect_eol): Declarations updated.
13332 * composite.c (compose_chars_in_text): Treat Lisp string contents
13333 as const.
13334 * dispnew.c (safe_bcopy): Source pointer now points to const.
13335 * lisp.h (STRING_COPYIN): New macro.
13336 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
13337 (internal_with_output_to_temp_buffer): Declarations updated.
13338 * print.c (temp_output_buffer_setup):
13339 (internal_with_output_to_temp_buffer): Buffer name argument is now
13340 pointer to const.
13341 * sound.c (struct sound_device): Function pointer field "write"
13342 buffer argument now points to const.
13343 (vox_write): Buffer argument points to const.
13344 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
13345 contents as const.
13346 * sysdep.c (emacs_write): Buffer pointer now const.
13347 * term.c (encode_terminal_code): Buffer pointer now const.
13348 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
13349 (x_face_list_fonts, x_update_menu_appearance):
13350 (hash_string_case_insensitive): Treat Lisp string contents as const.
13351
13352 2002-07-19 Juanma Barranquero <lektu@terra.es>
13353
13354 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
13355
13356 * fileio.c (syms_of_fileio): Likewise.
13357 (Ffile_name_as_directory): Fix argument name in docstring.
13358 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
13359
13360 2002-07-18 Richard M. Stallman <rms@gnu.org>
13361
13362 * data.c (Fdefalias): Doc fix.
13363
13364 2002-07-17 Dave Love <fx@gnu.org>
13365
13366 * intervals.h (text_property_stickiness): Use P_.
13367
13368 * ccl.c: Remove `emacs' conditionals.
13369 (ccl_backtrace_table): Fix size spec.
13370 (ccl_driver): Fix type errors.
13371
13372 2002-07-16 Ken Raeburn <raeburn@gnu.org>
13373
13374 * alloc.c (xstrdup, make_string, make_unibyte_string)
13375 (make_multibyte_string, build_string): String pointer args now
13376 point to const.
13377 * charset.c (find_charset_in_text, c_string_width):
13378 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
13379 * fileio.c (report_file_error):
13380 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
13381 (count_combining_before, count_combining_after, insert_1_both):
13382 (insert, insert_and_inherit, insert_string):
13383 (insert_before_markers, insert_before_markers_and_inherit):
13384 * lread.c (intern, oblookup, hash_string):
13385 * minibuf.c (temp_echo_area_glyphs):
13386 * search.c (fast_c_string_match_ignore_case):
13387 * sysdep.c (emacs_open, set_file_times):
13388 * xfaces.c (xstricmp):
13389 * xdisp.c (store_frame_title, string_char_and_length):
13390 (message_dolog, message2, message2_nolog, set_message): Likewise.
13391 (set_message_1): Cast message string argument to const pointer.
13392 * editfns.c (general_insert_function): Insertion function now
13393 takes pointer to const for input data.
13394 * charset.h (find_charset_in_text, c_string_width):
13395 (parse_str_as_multibyte): Declarations updated.
13396 * dispextern.h (xstricmp): Declaration updated.
13397 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
13398 (count_size_as_multibyte, count_combining_before):
13399 (count_combining_after, insert_1, insert_1_both, message_dolog):
13400 (insert, insert_and_inherit, insert_before_markers)
13401 (insert_before_markers_and_inherit, set_message, message2):
13402 (message2_dolog, build_string, make_string, make_unibyte_string):
13403 (make_multibyte_string, intern, oblookup, report_file_error):
13404 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
13405 (emacs_open, xstrdup): Declarations updated.
13406 * systime.h (set_file_times): Declaration updated.
13407
13408 * charset.c (find_charset_in_text, lisp_string_width): Use const
13409 for pointer to lisp string data.
13410 * charset.h (FETCH_STRING_CHAR_ADVANCE):
13411 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
13412 * coding.c (Ffind_coding_systems_region_interval):
13413 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
13414 (Fmake_directory_internal, Fdelete_directory):
13415 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
13416 * fontset.c (font_family_registry, fs_query_fontset):
13417 (list_fontsets):
13418 * frame.c (Fframe_parameter):
13419 * keyboard.c (cmd_error_internal):
13420 * keymap.c (Fdescribe_buffer_bindings):
13421 * lread.c (complete_filename_p, openp):
13422 * minibuf.c (Fminibuffer_complete_word):
13423 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
13424 (face_before_or_after_it_pos, next_element_from_string):
13425 (get_overlay_arrow_glyph_row, display_mode_element):
13426 (decode_mode_spec_coding):
13427 * xterm.c (same_x_server): Likewise.
13428
13429 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
13430 settings of non-existent fields.
13431
13432 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
13433 copy a lisp value.
13434
13435 * lread.c (Fintern_soft): Use string macros instead of
13436 Lisp_String fields.
13437 * keyboard.c (echo_char, parse_modifiers_uncached):
13438 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
13439 * textprop.c (validate_interval_range, interval_of): Likewise.
13440
13441 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
13442
13443 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13444 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
13445 XSTRING()->size_byte.
13446
13447 * lisp.h (SDATA, SREF): Produce rvalue.
13448 (SSET): New macro.
13449 * alloc.c (make_event_array): Use SSET for storing into a string.
13450 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
13451 a string.
13452 * casefiddle.c (casify_object): Use SSET.
13453 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13454 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
13455 address of string contents.
13456 * data.c (Faref): Use SDATA.
13457 (Faset): Use SDATA, SSET.
13458 * dired.c (directory_files_internal): Use SSET.
13459 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
13460 (Fread_file_name): Use SREF, SSET.
13461 * fns.c (concat): Use SSET.
13462 (concat, Fdelete): Use SDATA.
13463 * insdel.c (insert_from_string_1): Use SDATA.
13464 * keyboard.c (Fevent_convert_list): Use SREF.
13465 * lread.c (Fload): Use SDATA, SSET.
13466 * macfns.c (validate_x_resource_name): Use SSET.
13467 * process.c (status_message): Use SSET.
13468 * search.c (wordify): Use SDATA.
13469 (Freplace_match): Use SREF.
13470 * w32fns.c (validate_x_resource_name): Use SSET.
13471 * xfns.c (validate_x_resource_name): Use SSET.
13472 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
13473
13474 2002-07-16 Richard M. Stallman <rms@gnu.org>
13475
13476 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
13477
13478 * xdisp.c (reconsider_clip_changes):
13479 Don't test prevent_redisplay_optimizations_p.
13480 (redisplay_internal): Test prevent_redisplay_optimizations_p
13481 along with clip_changed in some cases.
13482 (try_window_id): Likewise.
13483 (redisplay_window): New local var buffer_unchanged_p.
13484
13485 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
13486
13487 * process.c (create_process): Test USG_SUBTTY_WORKS.
13488 (process_send_signal): Clean up handling of GID.
13489 Detect errors in ioctls meant to set GID.
13490
13491 * window.c (temp_output_buffer_show):
13492 Don't set prevent_redisplay_optimizations_p.
13493
13494 2002-07-15 Juanma Barranquero <lektu@terra.es>
13495
13496 * eval.c (Fdefvaralias): Add docstring argument.
13497
13498 2002-07-15 Ken Raeburn <raeburn@gnu.org>
13499
13500 * lisp.h (STRING_INTERVALS): Produce rvalue.
13501 (STRING_SET_INTERVALS): New macro.
13502 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
13503 * fns.c (Fstring_as_multibyte): Likewise.
13504 * intervals.c (balance_possible_root_interval, delete_interval)
13505 (create_root_interval, copy_intervals_to_string): Likewise.
13506 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
13507 instead of 0.
13508
13509 2002-07-14 Ken Raeburn <raeburn@gnu.org>
13510
13511 * lisp.h (STRING_SET_CHARS): New macro.
13512 (SCHARS, SBYTES): Produce rvalues.
13513 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
13514 * fns.c (concat): Likewise.
13515 * lread.c (read_vector): Likewise.
13516
13517 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
13518 (STRING_SET_UNIBYTE): New macro.
13519 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
13520 length of -1) changed to use STRING_SET_UNIBYTE.
13521 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13522 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
13523 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
13524 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
13525 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
13526 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
13527 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
13528 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
13529 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
13530 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
13531 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
13532 STRING_BYTES or indirection changed to SCHARS, SBYTES,
13533 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
13534 unchanged for now.
13535
13536 2002-07-13 Kim F. Storm <storm@cua.dk>
13537
13538 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
13539
13540 2002-07-12 Richard M. Stallman <rms@gnu.org>
13541
13542 * fileio.c (Fwrite_region): Doc fix.
13543
13544 * print.c (print_error_message): Don't handle Vsignaling_function here.
13545
13546 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
13547 (command_loop_1): Avoid certain actions after memory-full error.
13548
13549 * eval.c (Fsignal): Don't call cancel_hourglass.
13550 For a memory-full error, don't call Vsignal_hook_function
13551 and don't set Vsignaling_function.
13552
13553 * process.c (process_send_signal): Add abort call.
13554
13555 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
13556
13557 * keymap.c (Fkey_binding): Fix typo.
13558
13559 2002-07-11 Richard M. Stallman <rms@gnu.org>
13560
13561 * alloc.c (Vmemory_full): New variable.
13562 (Vmemory_signal_data): Rename from memory_signal_data.
13563 Uses changed.
13564 (syms_of_alloc): Defvar them.
13565 (memory_full, buffer_memory_full): Set Vmemory_full.
13566
13567 * lisp.h (Vmemory_full): Add declaration.
13568 (current_column, indented_beyond_p): Change declaration.
13569
13570 * indent.c (last_known_column): Declare as double, not float.
13571 (current_column, current_column_1, string_display_width)
13572 (position_indentation): Return `double'.
13573 (indented_beyond_p): Arg `column' is `double'. Callers changed.
13574
13575 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
13576 (back_to_previous_visible_line_start)
13577 (reseat_at_next_visible_line_start, next_element_from_buffer):
13578 Use `double', not `float', when calling indented_beyond_p.
13579
13580 * s/hpux11.h (BROKEN_SA_RESTART): Define.
13581
13582 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
13583
13584 2002-07-11 Juanma Barranquero <lektu@terra.es>
13585
13586 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
13587 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
13588 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
13589 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
13590 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
13591 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
13592
13593 2002-07-10 Juanma Barranquero <lektu@terra.es>
13594
13595 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
13596 All callers changed.
13597
13598 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
13599
13600 * data.c (Fdefalias): Add an optional `docstring' argument.
13601 (set_internal, Fsetq_default): Use XCAR/XCDR.
13602
13603 * composite.c (HASH_VALUE, HASH_KEY):
13604 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
13605
13606 2002-07-09 Kenichi Handa <handa@etl.go.jp>
13607
13608 * callproc.c (Fcall_process): Fix previous change.
13609
13610 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
13611
13612 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13613 Add support for hash-tables.
13614 (Ftry_completion): Return t even if the string appears multiple times.
13615
13616 * fns.c (Fnconc): Use XCDR.
13617 (Fprovide): Use CONSP and XCDR.
13618 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13619 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
13620 (Fmake_hash_table): Accept `:size nil'.
13621 (Fmakehash): Delete: moved to subr.el.
13622 (syms_of_fns): Don't defsubr makehash.
13623
13624 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13625 (HASH_TABLE_SIZE): Move from fns.c.
13626
13627 2002-07-07 Richard M. Stallman <rms@gnu.org>
13628
13629 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
13630 Instead just return 0 when there is something to be done.
13631 (try_scrolling): If make_cursor_line_fully_visible returns 0,
13632 retry scrolling as if cursor were off the bottom.
13633 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
13634 return CURSOR_MOVEMENT_MUST_SCROLL.
13635 (redisplay_window): If make_cursor_line_fully_visible returns 0,
13636 go to try_to_scroll.
13637
13638 * buffer.c (Fbuffer_local_value): Store current value into its binding
13639 so we get the up-to-date value for the binding that is loaded.
13640
13641 * eval.c (Fdefmacro): Doc fix.
13642
13643 2002-07-05 Dave Love <fx@gnu.org>
13644
13645 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
13646 correctly.
13647
13648 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
13649 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
13650 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
13651 CCL_LookupCharConstTbl.
13652 (syms_of_ccl): Defvar translation-hash-table-vector.
13653
13654 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13655
13656 * xdisp.c: Remove unused variable `face'.
13657
13658 2002-07-04 Juanma Barranquero <lektu@terra.es>
13659
13660 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
13661 obsolescence information.
13662
13663 2002-07-03 Andrew Choi <akochoi@shaw.ca>
13664
13665 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
13666 pattern. Search cache first.
13667 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
13668 for Japanese font.
13669 (XLoadQueryFont): Use it.
13670
13671 2002-07-02 Richard M. Stallman <rms@gnu.org>
13672
13673 * keymap.c (Fdefine_key): Doc fix.
13674
13675 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
13676
13677 2002-07-02 Juanma Barranquero <lektu@terra.es>
13678
13679 * keymap.c (syms_of_keymap): Fix typo.
13680
13681 2002-07-01 Andrew Choi <akochoi@shaw.ca>
13682
13683 * s/darwin.h: Define POSIX_SIGNALS.
13684
13685 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
13686 and FSRefMakePath to convert FSSpec returned with Apple Event to
13687 Posix pathname.
13688 (mac_initialize) [TARGET_API_MAC_CARBON]:
13689 Call init_required_apple_events and disable the `Quit' menu item
13690 provided automatically by the Carbon Toolbox.
13691
13692 2002-07-01 Dave Love <fx@gnu.org>
13693
13694 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13695 for K&R.
13696
13697 * xterm.c: Fix prototype for K&R.
13698
13699 * term.c (costs_set): Declare static, non-initialized for pcc.
13700
13701 2002-07-01 Richard M. Stallman <rms@gnu.org>
13702
13703 * keyboard.c (timer_last_idleness_start_time): New variable.
13704 (timer_start_idle): Set that.
13705 (read_key_sequence): Use that to reset timer_idleness_start_time
13706 to previous value.
13707
13708 * window.c (Frecenter): With arg, set optional_new_start.
13709
13710 * xdisp.c (redisplay_internal): Make optional_new_start really work.
13711
13712 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
13713 buffer for completion.
13714
13715 2002-06-29 Ken Raeburn <raeburn@gnu.org>
13716
13717 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
13718
13719 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13720
13721 * keyboard.c (readable_filtered_events): New function that filters
13722 FOCUS_IN_EVENT depending on parameter.
13723 (readable_events): Calls readable_filtered_events, not filtering
13724 FOCUS_IN_EVENT.
13725 (get_filtered_input_pending): New function, filtering parameter passed
13726 to readable_filtered_events.
13727 (get_input_pending): Calls get_filtered_input_pending, not filtering
13728 FOCUS_IN_EVENT.
13729 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
13730 FOCUS_IN_EVENT.
13731
13732 * xterm.h (struct x_output): Add focus_state.
13733
13734 * xterm.c (x_focus_changed): New function.
13735 (x_detect_focus_change): New function.
13736 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
13737 EnterNotify and LeaveNotify to track X focus changes.
13738
13739 2002-06-28 Andreas Schwab <schwab@suse.de>
13740
13741 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
13742
13743 2002-06-27 Kim F. Storm <storm@cua.dk>
13744
13745 * xdisp.c: (mode_line_string_list, mode_line_string_face)
13746 (mode_line_string_face_prop): New variables.
13747 (store_mode_line_string): New function.
13748 (display_mode_element): Use store_mode_line_string to
13749 add mode-line string elements to mode_line_string_list
13750 when mode_line_string_list is non-nil.
13751 (Fformat_mode_line): Now returns propertized string by
13752 default. New arg NO-PROPS to ignore properties.
13753 (decode_mode_spec): Only add two dashes for %- in propertized
13754 mode-line string.
13755 (syms_of_xdisp): Init and staticpro mode_line_string_list.
13756
13757 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
13758
13759 * minibuf.c (minibuffer_completion_contents): Add return type.
13760
13761 2002-06-27 Juanma Barranquero <lektu@terra.es>
13762
13763 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
13764
13765 2002-06-26 Juanma Barranquero <lektu@terra.es>
13766
13767 * fileio.c (read_file_name_cleanup): Add missing return.
13768
13769 2002-06-26 Richard M. Stallman <rms@gnu.org>
13770
13771 * window.c (Frecenter): Don't set force_start flag.
13772
13773 * minibuf.c (do_completion, Fminibuffer_complete_word)
13774 (Fminibuffer_completion_help): Complete just the text before point.
13775 (minibuffer_completion_contents): New function.
13776
13777 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
13778
13779 * frame.c (frames_bury_buffer): Function deleted.
13780
13781 2002-06-25 Miles Bader <miles@gnu.org>
13782
13783 * callint.c (Fcall_interactively): When checking to see if doprnt hit
13784 the end of callint_message, allow for a terminating '\0'.
13785
13786 2002-06-24 Juanma Barranquero <lektu@terra.es>
13787
13788 * w32select.c: Include composite.h
13789
13790 * w16select.c: Likewise.
13791
13792 2002-06-24 Kenichi Handa <handa@etl.go.jp>
13793
13794 * callproc.c (Fcall_process): If code detection is necessary,
13795 call detect_coding directly here.
13796
13797 * coding.c (detect_eol): Preserve coding->cmp_data.
13798
13799 * w16select.c (Fw16_get_clipboard_data):
13800 * w32fns.c (w32_to_x_font):
13801 * w32select.c (Fw32_get_clipboard_data):
13802 * xselect.c (selection_data_to_lisp_data):
13803 * xterm.c (XTread_socket): Disable composition handling.
13804
13805 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
13806
13807 * print.c (temp_output_buffer_setup): Kill all local variables.
13808
13809 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
13810
13811 * lread.c (Fread): Remove redundant and imprecise declaration.
13812
13813 * xfns.c (check_x_display_info): Use check_x_frame.
13814
13815 * .gdbinit (xprintsym): Use the new `xname' field.
13816 (xsymbol): Use it.
13817
13818 2002-06-22 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32fns.c (file_dialog_callback): New function.
13821 (Fx_file_dialog): Allow selecting directories as well as files.
13822
13823 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13824
13825 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
13826 OpenBSD. Add support for mipseb-*-netbsd* machines.
13827
13828 2002-06-17 Andrew Choi <akochoi@shaw.ca>
13829
13830 * macterm.c (mac_scroll_area): Set foreground and backcolor to
13831 black and white before scrolling. Restore frame background and
13832 foreground color after scrolling.
13833 (do_window_update): Call XClearWindow before calling expose_frame.
13834 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
13835 FRAME_FOREGROUND_PIXEL of frame.
13836
13837 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13838 test Mac command key as <ALT> key.
13839
13840 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
13841
13842 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13843
13844 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13845 Lookup keys in function-key-map immediately so that key-translation-map
13846 can be applied earlier.
13847 Remove function_key_possible and key_translation_possible, replaced
13848 by checking `keytran_start < t'.
13849
13850 * .gdbinit (xsymbol): Use the new `xname' field.
13851
13852 2002-06-17 Andrew Choi <akochoi@shaw.ca>
13853
13854 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13855 test Mac command key as <ALT> key.
13856
13857 * mac.c (do_applescript): Call initialize_applescript if necessary
13858 when first called. Dispose of result_desc only when there is no error.
13859 (Fdo_applescript): Use %d format specifier instead of %ld.
13860
13861 2002-06-16 Andrew Choi <akochoi@shaw.ca>
13862
13863 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13864 of FrontWindow for cases keyDown and autoKey.
13865
13866 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13867 Vdefault_fontset to Monaco with mac-roman coding.
13868
13869 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13870 init_process before and after inclusion of Carbon/Carbon.h, resp.
13871
13872 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13873 cursor_gc.
13874 (add_font_name_table_entry): New function.
13875 (init_font_name_table): Use add_font_name_table_entry; add italic,
13876 bold, and bold-italic entries for truetype fonts.
13877
13878 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13879 for Mac too.
13880 (try_font_list) [MAC_OS]: If no font matches given registry, try
13881 fonts with any registry matching face_family.
13882 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13883
13884 * s/darwin.h: If autoconf detects the Ncurses library, define
13885 LIBS_TERMCAP to -lncurses to use it.
13886
13887 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
13888
13889 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13890
13891 2002-06-15 Richard M. Stallman <rms@gnu.org>
13892
13893 * window.c (Fset_window_configuration): Explicitly preserve
13894 the point value that new_current_buffer had at the start.
13895
13896 2002-06-14 Juanma Barranquero <lektu@terra.es>
13897
13898 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13899 Fix typos.
13900
13901 2002-06-14 Kim F. Storm <storm@cua.dk>
13902
13903 * insdel.c (insert_1_both, insert_from_string_1)
13904 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13905 insert happened in the end_unchanged region. Otherwise, the
13906 redisplay may be confused and duplicate the last line in the
13907 buffer [seen after save-buffer when require-final-newline==t].
13908
13909 2002-06-13 Jason Rumney <jasonr@gnu.org>
13910
13911 * w32.c (init_environment): Remove EMACSLOCKDIR.
13912 (stat): Swap _S_IFDIR and _S_IFREG.
13913
13914 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13915
13916 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13917 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13918 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13919 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13920 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13921 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13922 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13923 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13924 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13925 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13926 SELECTION_REQUEST_EVENT, selection_clear_event to
13927 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13928 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13929 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13930 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13931 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13932 no_event to NO_EVENT.
13933
13934 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13935
13936 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13937
13938 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
13939
13940 * intervals.c (textget): Don't forget to `return'.
13941 (lookup_char_property): Use XCAR/XCDR.
13942
13943 2002-06-12 Juanma Barranquero <lektu@terra.es>
13944
13945 * xdisp.c (Fformat_mode_line): Fix typo.
13946
13947 2002-06-12 Kim F. Storm <storm@cua.dk>
13948
13949 * xdisp.c (Fformat_mode_line): New function.
13950 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13951 (store_frame_title_char, store_frame_title): Use unconditionally.
13952 (init_xdisp): Defsubr Fformat_mode_line.
13953 Initialize frame_title_buf etc. unconditionally.
13954
13955 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
13956
13957 * keyboard.c (read_key_sequence):
13958 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13959 things through those maps after downcasing events.
13960 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13961 applies after function-key-map.
13962 Make sure that keytran can be done in the middle in the sequence.
13963 Be careful not to throw away events past the one we downcase.
13964
13965 * lread.c (read_integer): Remove unused var `tem'.
13966 (read1): Fix int/Lisp_Object mixup.
13967
13968 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13969
13970 2002-06-11 Richard M. Stallman <rms@gnu.org>
13971
13972 * keyboard.c (readable_events): Ignore any number of
13973 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13974
13975 2002-06-09 Miles Bader <miles@gnu.org>
13976
13977 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13978 (parse_rgb_list, tty_lookup_color): New functions.
13979 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13980 (color_distance, Fcolor_distance): New functions.
13981 (TTY_SAME_COLOR_THRESHOLD): New macro.
13982 (Qtty_color_standard_values): New variable.
13983 (syms_of_xfaces): Initialize new vars & functions.
13984
13985 2002-06-08 Colin Walters <walters@verbum.org>
13986
13987 * textprop.c (Vchar_property_alias_alist): New variable.
13988 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13989
13990 * intervals.c (lookup_char_property): New function for looking up
13991 overlay and text properties, created from textget.
13992 (textget): Use it.
13993
13994 * intervals.h (lookup_char_property): Declare.
13995 (Vchar_property_alias_alist): Declare.
13996
13997 * buffer.c (Foverlay_get): Use lookup_char_property.
13998
13999 2002-06-07 Sam Steingold <sds@gnu.org>
14000
14001 * xselect.c (lisp_data_to_selection_data): Fix last change:
14002 *data_ret is not a Lisp string, while unibyte_string is.
14003
14004 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
14005
14006 * xselect.c (lisp_data_to_selection_data): Fix last change:
14007 set size_ret.
14008
14009 2002-06-07 Andreas Schwab <schwab@suse.de>
14010
14011 * m/amdx86-64.h: New file.
14012
14013 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
14014
14015 * fns.c (Fstring_make_unibyte): Doc fix.
14016
14017 * xselect.c (lisp_data_to_selection_data): If the requested type
14018 is STRING, call string_make_unibyte to encode the selected text
14019 as a string.
14020
14021 * window.c (Fset_window_hscroll): Doc fix.
14022
14023 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14024
14025 * fileio.c (choose_write_coding_system):
14026 Call select-safe-coding-system properly.
14027
14028 2002-06-03 Richard M. Stallman <rms@gnu.org>
14029
14030 * xdisp.c (message_with_string): Error if STRING is not a string.
14031
14032 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
14033
14034 * fileio.c (choose_write_coding_system): Pass FILE arg to
14035 Vselect_safe_coding_system_function.
14036
14037 2002-06-03 Ken Raeburn <raeburn@gnu.org>
14038
14039 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
14040
14041 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
14042
14043 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
14044 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
14045 * keymap.c (describe_command): Likewise.
14046 * minibuf.c (read_minibuf): Likewise.
14047
14048 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
14049 Cast `current_column' return value to int.
14050 (back_to_previous_visible_line_start)
14051 (reseat_at_next_visible_line_start, next_element_from_buffer):
14052 Cast `indented_beyond_p' 3rd arg to float.
14053
14054 * indent.c (last_known_column): Now a float.
14055 (current_column_1, position_indentation, current_column)
14056 (string_display_width): Return float.
14057 (Fcurrent_column): Cast `current_column' return value to int.
14058 (Fcurrent_indentation): Cast `position_indentation' retval to int.
14059 (indented_beyond_p): Third arg now a float.
14060 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
14061
14062 * lisp.h (current_column): Now returns float.
14063 (indented_beyond_p): 3rd arg now a float.
14064
14065 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
14066
14067 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
14068 is Qcompound_text_with_extensions.
14069
14070 * xselect.c (lisp_data_to_selection_data): Always set selection
14071 type as string if x_encode_text returns streingp non-NULL.
14072
14073 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
14074
14075 2002-05-30 Richard M. Stallman <rms@gnu.org>
14076
14077 * window.c (Fset_window_configuration): Correct the handling
14078 of point in current buffer, to work with multiple windows.
14079
14080 2002-05-29 Colin Walters <walters@verbum.org>
14081
14082 * lread.c (Fread_from_string): Don't depend on order of evaluation
14083 for C function parameters.
14084
14085 2002-05-28 Richard M. Stallman <rms@gnu.org>
14086
14087 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
14088 way for blinked-off state and for a nonselected window.
14089
14090 * window.c (window_scroll_pixel_based): Don't call Fbolp;
14091 instead, see if the new start pos is at beginning of line.
14092
14093 * fileio.c (Fwrite_region): If START is a string, don't
14094 make any annotations.
14095
14096 * eval.c (syms_of_eval): Doc fix.
14097
14098 2002-05-28 Colin Walters <walters@debian.org>
14099
14100 * emacs.c (USAGE1): Add --no-splash.
14101 (standard_args): Ditto.
14102
14103 2002-05-28 Colin Walters <walters@gnu.org>
14104
14105 * lread.c (readchar_count): New variable.
14106 (readchar): Increment it.
14107 (unreadchar): Decrement it.
14108 (read_multibyte): Decrement it.
14109 (Vread_with_symbol_positions): New variable.
14110 (Vread_symbol_positions_list): New variable.
14111 (read_internal_start): New function, created from Fread and
14112 Fread_from_string. Handle Vread_symbol_positions_list and
14113 Vread_with_symbol_positions.
14114 (readevalloop, Fread, Fread_from_string): Use it.
14115 (read1): Use readchar_count to add symbol positions to
14116 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
14117 (syms_of_lread): DEFVAR_LISP and initialize them.
14118
14119 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
14120 (substitute_object_recurse, substitute_object_in_subtree)
14121 (substitute_in_interval): Prototype.
14122 (read_multibyte): Return c if it's less than zero.
14123
14124 2002-05-28 Kim F. Storm <storm@cua.dk>
14125
14126 * fileio.c (Fread_file_name_internal): Added brute-force
14127 speed up for using predicate file-directory-p.
14128
14129 2002-05-28 Kim F. Storm <storm@cua.dk>
14130
14131 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
14132 New variables.
14133 (syms_of_fileio): DEFVAR_LISP them.
14134 (read_file_name_cleanup): New unwind function.
14135 (Fread_file_name_internal): Only return completions satifying
14136 Vread_file_name_predicate. Temporarily unwind protect and rebind
14137 default-directory while checking completions against the predicate.
14138 (Fread_file_name): Added PREDICATE argument. Specbind it to
14139 Vread_file_name_predicate during completion.
14140 Call Vread_file_name_function to read the file name if non-nil.
14141
14142 * lisp.h (Fread_file_name): Now has 6 args.
14143
14144 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
14145 predicate for Fread_file_name when reading directory name.
14146 Supply Qnil for predicate in other calls to Fread_file_name.
14147
14148 2002-05-26 Miles Bader <miles@gnu.org>
14149
14150 * term.c (tty_capable_p): New function.
14151 * dispextern.h (tty_capable_p): New function declaration.
14152 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
14153 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
14154
14155 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
14156
14157 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
14158 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
14159 (Vwrite_region_annotate_functions): Docstring fix.
14160
14161 2002-05-23 Kim F. Storm <storm@cua.dk>
14162
14163 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
14164 phys_cursor's hpos is overwritten. This is still not completely
14165 correct, as it doesn't really make sense to use hpos at all to
14166 get the cursor glyph (as that is relative to the width of the
14167 characters on the line, which may have changed during the update).
14168
14169 2002-05-22 Jason Rumney <jasonr@gnu.org>
14170
14171 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
14172 Lisp_Object.
14173 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
14174 Use modified enumfont_t struct.
14175
14176 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14177
14178 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
14179 Handle the `hbar' cursor type.
14180 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14181
14182 * w32fns.c (Qhbar): New variable.
14183 (x_specified_cursor_type): Use it.
14184
14185 2002-05-21 Ken Raeburn <raeburn@gnu.org>
14186
14187 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
14188 now, when the address is needed.
14189
14190 2002-05-21 Colin Walters <walters@gnu.org>
14191
14192 * Makefile.in (shortlisp): Add font-core.el.
14193
14194 2002-05-20 Richard M. Stallman <rms@gnu.org>
14195
14196 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
14197
14198 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
14199 equivalent key bindings here.
14200
14201 2002-05-20 Ken Raeburn <raeburn@gnu.org>
14202
14203 Change symbol structure to contain a lisp object for the symbol
14204 name:
14205 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
14206 object field named "xname".
14207 (SYMBOL_NAME): New macro.
14208 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
14209 name field.
14210 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
14211 (mark_object, gc_sweep): Use symbol xname field and XSTRING
14212 instead of name field.
14213 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
14214 SYMBOL_NAME instead of XSYMBOL and name field.
14215 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
14216 instead of XSYMBOL and name field.
14217 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
14218 and SYMBOL_NAME instead of XSYMBOL and name field.
14219 * coding.c (Fread_coding_system, code_convert_region1)
14220 (code_convert_string1, code_convert_string_norecord)
14221 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
14222 XSYMBOL and name field.
14223 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
14224 (Fmake_variable_buffer_local, Fmake_local_variable)
14225 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
14226 of XSYMBOL and name field.
14227 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
14228 XSYMBOL and name field.
14229 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
14230 instead of XSYMBOL and name field.
14231 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
14232 XSYMBOL and name field.
14233 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
14234 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14235 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
14236 instead of XSYMBOL and name field.
14237 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
14238 (parse_modifiers, apply_modifiers, Fevent_convert_list)
14239 (parse_solitary_modifier, Fexecute_extended_command):
14240 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14241 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
14242 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
14243 of XSYMBOL and name field.
14244 (describe_command, describe_translation): Use SYMBOL_NAME and
14245 assignment instead of XSYMBOL and name field and XSETSTRING.
14246 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
14247 instead of XSYMBOL and name field.
14248 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
14249 name field and XSETSTRING.
14250 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14251 of XSYMBOL and name field.
14252 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
14253 assignment instead of XSYMBOL and name field and XSETSTRING.
14254 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
14255 XSTRING instead of XSYMBOL and name field.
14256 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
14257 and XSTRING instead of XSYMBOL and name field.
14258 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
14259 and XSTRING instead of XSYMBOL and name field.
14260 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
14261 XSTRING instead of XSYMBOL and name field.
14262 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14263 of XSYMBOL and name field.
14264 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
14265 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14266
14267 2002-05-19 Ken Raeburn <raeburn@gnu.org>
14268
14269 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
14270 and XCDR real rvalues in most configurations.
14271
14272 * buffer.c (fix_overlays_in_range, fix_overlays_before):
14273 Don't take the address of the cdr part of a cons cell; instead, track
14274 the parent cell and call XSETCDR, or set the variable for the head
14275 of the list if we haven't started down the list yet.
14276
14277 2002-05-19 Richard M. Stallman <rms@gnu.org>
14278
14279 * doc.c (reread_doc_file): Don't ask for confirmation.
14280
14281 2002-05-18 Jason Rumney <jasonr@gnu.org>
14282
14283 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
14284 (xbm_load_image): Use it.
14285 (xbm_load): Ditto.
14286 (xbm_read_bitmap_data): Reverted to xfns.c version.
14287 From David Ponce <david@dponce.com>.
14288
14289 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
14290
14291 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
14292 2.02 and later.
14293
14294 2002-05-16 Juanma Barranquero <lektu@terra.es>
14295
14296 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
14297
14298 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
14299
14300 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
14301 meaningful test.
14302 (read_char_minibuf_menu_prompt): Fix typo.
14303
14304 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14305
14306 * eval.c (Fcommandp): Doc fix.
14307
14308 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
14309
14310 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
14311 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
14312 (Fset_keymap_parent): Gcpro a bit more.
14313 (access_keymap): Gcpro around meta_map call and around the main loop.
14314 (get_keyelt): Gcpro when following indirect references.
14315 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
14316 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
14317 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
14318 Remove useless ad-hoc remap code.
14319
14320 2002-05-13 Richard M. Stallman <rms@gnu.org>
14321
14322 * search.c (search_buffer): Give up boyer moore search if inverse
14323 translation change charset_base.
14324
14325 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
14326
14327 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
14328 characters is carried over from the previous block of text, adjust
14329 coding->produced to account for the extra character.
14330
14331 2002-05-11 Andreas Schwab <schwab@suse.de>
14332
14333 * coding.c (intersection): Keep the elements of the returned list
14334 in the same order as in the first list.
14335
14336 2002-05-11 Kim F. Storm <storm@cua.dk>
14337
14338 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
14339 only update cmm_size if realloc actually succeeds.
14340 Testing with initial size of 2 elements revealed that using
14341 realloc on GNU/Linux would cause a random trap in xmalloc
14342 later on, so I rewrote the code to use malloc/bcopy/free instead
14343 of realloc.
14344
14345 2002-05-10 Jason Rumney <jasonr@gnu.org>
14346
14347 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
14348
14349 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
14350
14351 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
14352 parens, to ensure correct evaluation order.
14353
14354 2002-05-10 Kim F. Storm <storm@cua.dk>
14355
14356 * keymap.c (Vemulation_mode_map_alists): New variable.
14357 (syms_of_keymap): DEFVAR_LISP it.
14358 (current_minor_maps): Process keymap alists in that list before
14359 minor-mode-overriding-map-alist and minor-mode-map-alist.
14360
14361 2002-05-09 Richard M. Stallman <rms@gnu.org>
14362
14363 * search.c (Freplace_match): Doc fix.
14364
14365 2002-05-09 Kim F. Storm <storm@cua.dk>
14366
14367 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14368 Enlarge cursor rectangle drawn around image with non-zero relief.
14369
14370 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
14371 Enlarge cursor rectangle drawn around image with non-zero relief.
14372
14373 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14374 Enlarge cursor rectangle drawn around image with non-zero relief.
14375
14376 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
14377
14378 * xselect.c (lisp_data_to_selection_data): Don't set selection
14379 type if comes from the Lisp object's car. If the selection
14380 contains a pure ASCII text, always return QSTRING as its type.
14381
14382 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14383
14384 * mac.c (mac-cut-function): Doc fix.
14385
14386 2002-05-05 Richard M. Stallman <rms@gnu.org>
14387
14388 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
14389
14390 2002-05-04 Jason Rumney <jasonr@gnu.org>
14391
14392 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
14393 for event-click-count.
14394
14395 * process.c (init_process): Only add server subfeature if we can
14396 use non-blocking I/O.
14397
14398 2002-05-04 Andrew Choi <akochoi@shaw.ca>
14399
14400 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
14401 repeatedly.
14402
14403 2002-05-03 Jason Rumney <jasonr@gnu.org>
14404
14405 * process.c (Fmake_network_process): Only support server sockets
14406 when we can make them non-blocking.
14407
14408 * s/ms-w32.h (HAVE_SELECT): Define.
14409
14410 * w32.h (FILE_NDELAY): New flag.
14411
14412 * w32.c (sys_getpeername, fcntl): New functions.
14413 (_sys_read_ahead): Temporarily block on non-blocking sockets.
14414
14415 * w32proc.c: include sys/file.h.
14416
14417 2002-05-03 Colin Walters <walters@verbum.org>
14418
14419 * callproc.c (Vgame_score_directory): Renamed to
14420 Vshared_game_score_directory.
14421
14422 2002-04-30 Richard M. Stallman <rms@gnu.org>
14423
14424 * s/gnu.h [emacs]: Include stdio.h.
14425 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
14426
14427 * eval.c (do_autoload): Error if called while preparing to dump.
14428
14429 * fns.c (Frequire): Error if need to load while preparing to dump.
14430
14431 2002-04-28 Colin Walters <walters@verbum.org>
14432
14433 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
14434 Default to "~/.emacs.d/games".
14435
14436 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
14437
14438 * lread.c (openp): Change arg exec_only to predicate.
14439 (build_load_history): Use XCAR/XCDR.
14440 (Flocate_file_internal): New fun.
14441 (syms_of_lread): Defsubr it.
14442 (Fload): Update call to openp.
14443
14444 * lisp.h (openp): Update prototype.
14445
14446 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
14447 * w32proc.c (sys_spawnve):
14448 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
14449 * w32.c (check_windows_init_file):
14450 * sound.c (Fplay_sound_internal):
14451 * process.c (Fstart_process):
14452 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
14453 * mac.c (run_mac_command):
14454 * emacs.c (init_cmdargs):
14455 * callproc.c (Fcall_process): Update call to openp.
14456
14457 * textprop.c (remove_properties): Don't use XCAR without CONSP.
14458
14459 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
14460
14461 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14462
14463 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
14464 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
14465
14466 2002-04-28 Richard M. Stallman <rms@gnu.org>
14467
14468 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
14469
14470 * eval.c (Fcommandp): New arg for_call_interactively.
14471 * lisp.h (Fcommandp): Declare new arg.
14472
14473 2002-04-28 Jason Rumney <jasonr@gnu.org>
14474
14475 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
14476
14477 * w32.c (stat, fstat): Use file index information to generate
14478 inodes for directories where available.
14479
14480 2002-04-26 Andrew Choi <akochoi@shaw.ca>
14481
14482 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
14483 [HAVE_CARBON]: Include Mac object files.
14484
14485 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
14486 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
14487 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
14488 MAC_OSX, and MAC_OS instead of macintosh.
14489
14490 * editfns.c [MAC_OS8]: Include stdio.h.
14491
14492 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
14493
14494 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
14495 Apple Monaco.
14496
14497 * process.c (QCfamily, QCfilte): Declare extern.
14498 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
14499 calling select.
14500
14501 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
14502
14503 * tparam.c [MAC_OSX]: Don't define BC and UP.
14504
14505 * config.in [HAVE_CARBON]: Add.
14506
14507 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
14508 Move here from mac/src and mac/inc.
14509
14510 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
14511
14512 2002-04-26 Gerd Moellmann <gerd@gnu.org>
14513
14514 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
14515 Compute phys_cursor_width from the x position returned
14516 by x_draw_glyhs, which is cheaper.
14517 (x_display_and_set_cursor): Compute the buffer-local value
14518 of `cursor-in-non-selected-windows' only when needed.
14519
14520 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14521
14522 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
14523 cursor on a stretch glyph has a width that depends on
14524 x_stretch_cursor_p.
14525
14526 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14527
14528 * abbrev.c (abbrev-start-location): Doc fix.
14529
14530 * indent.c (Fvertical_motion): Fix last change.
14531
14532 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14533
14534 * indent.c (Fvertical_motion): Move to the start of the line
14535 containing PT before moving up or down.
14536
14537 2002-04-24 Gerd Moellmann <gerd@gnu.org>
14538
14539 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
14540 case of writing a whole row, more or less analogous to the case of
14541 writing only parts of a row.
14542
14543 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
14544 0 for NO_CURSOR.
14545
14546 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
14547
14548 2002-04-23 Colin Walters <walters@verbum.org>
14549
14550 * buffer.c (syms_of_buffer): Doc fix.
14551
14552 2002-04-23 Gerd Moellmann <gerd@gnu.org>
14553
14554 * xterm.c (notice_overwritten_cursor): Handle the special case
14555 of the cursor being in the first blank non-text line at the
14556 end of a window.
14557
14558 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14559 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14560 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
14561 bar cursors only, to make phys_cursor_width contain what its name
14562 suggests.
14563 (notice_overwritten_cursor): Consider the cursor image erased if
14564 the output area intersects the cursor image in y-direction.
14565
14566 2002-04-23 Simon Marshall <simon@gnu.org>
14567
14568 * xfns.c (x_set_mouse_color): Change default for cross_cursor
14569 to XC_hand2.
14570
14571 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14572
14573 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
14574
14575 2002-04-22 Kim F. Storm <storm@cua.dk>
14576
14577 * textprop.c (remove_properties): Fixed trap for malformed plist.
14578
14579 2002-04-22 Richard M. Stallman <rms@gnu.org>
14580
14581 * cmds.c (Fend_of_line): Handle intangible text in mid line.
14582
14583 * window.c (make_window): Initialize height_fixed_p,
14584 last_cursor_off_p, and p->cursor_off_p slots.
14585
14586 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14587
14588 * fns.c (use-dialog-box): Doc fix.
14589
14590 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14591
14592 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
14593 variables `row', `i' and `area'.
14594 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
14595 toolkit library.
14596
14597 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
14598
14599 * xfaces.c (clear_font_table): Don't free the default font of
14600 a frame even if it's on another display.
14601 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
14602 that could be Qt.
14603
14604 2002-04-19 Juanma Barranquero <lektu@terra.es>
14605
14606 * indent.c (Fmove_to_column): Remove unused local variable
14607 `next_boundary_byte'.
14608 (current_column_1): Likewise.
14609
14610 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
14611
14612 * msdos.c (Qhbar): New variable.
14613 (syms_of_msdos): Intern and staticpro it.
14614 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
14615 cursor type.
14616
14617 2002-04-19 Dave Lambert <dlambert@acm.org>
14618
14619 Theses change implement an underscore-like (`hbar') cursor.
14620
14621 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14622
14623 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
14624 Handle the `hbar' cursor type.
14625 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14626
14627 * xfns.c (Qhbar): New variable.
14628 (syms_of_xfns): Intern and staticpro it.
14629 (x_specified_cursor_type): Handle `hbar' cursor.
14630
14631 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
14632 not defined.
14633
14634 2002-04-18 Richard M. Stallman <rms@gnu.org>
14635
14636 * textprop.c (remove_properties): New arg LIST allows scanning
14637 either a list or a plist.
14638 (interval_has_some_properties_list): New function, like
14639 interval_has_some_properties using list instead of plist.
14640 All callers changed.
14641 (Fremove_list_of_text_properties): New function.
14642 (syms_of_textprop): Defsubr it.
14643
14644 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14645
14646 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
14647
14648 2002-04-17 Juanma Barranquero <lektu@terra.es>
14649
14650 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
14651
14652 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14653
14654 * window.c (coordinates_in_window): Don't report on margin area
14655 if its width is zero.
14656
14657 2002-04-16 Jason Rumney <jasonr@gnu.org>
14658
14659 * w32fns.c (Fx_file_dialog): Decode file name before using.
14660
14661 * w32term.c (construct_drag_n_drop): Likewise.
14662
14663 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
14664
14665 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
14666 store load-history in pure space.
14667
14668 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
14669
14670 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
14671
14672 * xterm.c (Qlatin_1, Qutf_8): New vars.
14673 (syms_of_xterm): Initialize them.
14674 (XTread_socket): Eliminate incorrect optimization that tried to avoid
14675 decoding the output of X*LookupString.
14676 Always use latin-1 to decode the output of XLookupString.
14677 Try Xutf8LookupString if XmbLookupString failed.
14678
14679 * region-cache.c (new_region_cache): Use BEG.
14680
14681 2002-04-16 Gerd Moellmann <gerd@gnu.org>
14682
14683 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
14684 configuration files.
14685 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
14686 returns 0.
14687
14688 2002-04-15 Andreas Schwab <schwab@suse.de>
14689
14690 * config.in: Regenerated using autoheader.
14691
14692 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
14693 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
14694 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
14695 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
14696 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
14697 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
14698 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
14699 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
14700 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
14701 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
14702 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
14703 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
14704 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
14705 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
14706 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
14707 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
14708 STACK_DIRECTION, now set by autoconf.
14709
14710 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14711
14712 * dispnew.c (marginal_area_string): Sort arguments.
14713
14714 * dispextern.h (marginal_area_string): Add prototype.
14715
14716 2002-04-13 Richard M. Stallman <rms@gnu.org>
14717
14718 * fileio.c (Finsert_file_contents):
14719 Don't call temp_output_buffer_setup--do just part, by hand.
14720
14721 * coding.c (run_pre_post_conversion_on_str):
14722 Don't call temp_output_buffer_setup--do just part, by hand.
14723
14724 * keyboard.c (command_loop_1): Don't call start_hourglass
14725 or cancel_hourglass when executing a macro.
14726
14727 * marker.c (count_markers): New function.
14728
14729 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
14730 grow without limit. Move recently used elements to the front.
14731
14732 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14733
14734 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
14735
14736 2002-04-12 Gerd Moellmann <gerd@gnu.org>
14737
14738 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
14739 rows marginal areas.
14740 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
14741 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14742
14743 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
14744
14745 2002-04-12 Dave Love <fx@gnu.org>
14746
14747 * dispnew.c (marginal_area_string): New.
14748
14749 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
14750 (Qleft_margin, Qright_margin): Declare.
14751 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
14752
14753 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
14754 note_mode_line_highlight and extended.
14755
14756 * keyboard.c (Qleft_margin, Qright_margin): Declare.
14757 (make_lispy_event): Deal with mouse events in margins.
14758
14759 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
14760
14761 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
14762
14763 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
14764 than deactivating the mark if tmm is set to `lambda'.
14765 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
14766 Use a single event for HELP_EVENT.
14767 (Fexecute_extended_command): Save last_point_position.
14768
14769 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14770
14771 * lisp.h (Fpropertize): Add prototype.
14772
14773 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
14774
14775 2002-04-10 Colin Walters <walters@verbum.org>
14776
14777 * config.in: Add HAVE_SHARED_GAME_DIR.
14778
14779 * callproc.c: (Vgame_score_directory): New variable.
14780 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
14781
14782 2002-04-10 Richard M. Stallman <rms@gnu.org>
14783
14784 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
14785
14786 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
14787
14788 * minibuf.c (read_minibuf): Use empty_string.
14789 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
14790 Short-circuit the search as soon as it "failed".
14791 (Fall_completions): Allow lambda forms and lists of strings for alist.
14792 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
14793 when require_match is nil.
14794 (Ftest_completion): Rename from `test_completion' and export to elisp.
14795 Call the predicate also when alist is a list.
14796 Obey Vcompletion_regexp_list.
14797 (do_completion, Fminibuffer_complete_and_exit): Use it.
14798 (Fassoc_string): Rename from `assoc_for_completion'.
14799 Allow list of strings as well and export to elisp.
14800
14801 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
14802
14803 * puresize.h (BASE_PURESIZE): Increase to 900KB.
14804
14805 2002-04-08 Juanma Barranquero <lektu@terra.es>
14806
14807 * w32.c (sys_accept): Don't hide variable `s'.
14808
14809 2002-04-05 Gerd Moellmann <gerd@gnu.org>
14810
14811 * callint.c (Fcall_interactively): Use INTEGERP instead of
14812 NUMBERP for checking Vhistory_length.
14813
14814 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14815
14816 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
14817 Doc fix to reflect it.
14818
14819 2002-04-04 Richard M. Stallman <rms@gnu.org>
14820
14821 * xdisp.c (display_mode_element): New arg RISKY.
14822 Disregard text props found or specified within a variable
14823 that isn't marked risky-local-variable.
14824 (Qrisky_local_variable): New variable.
14825 (syms_of_xdisp): Init and staticpro it.
14826
14827 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
14828
14829 * undo.c (record_point): New fun.
14830 (record_delete, record_insert): Use it.
14831
14832 2002-04-03 Juanma Barranquero <lektu@terra.es>
14833
14834 * doc.c (Fdocumentation): Add missing parentheses.
14835 (Fdocumentation_property): Likewise.
14836
14837 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
14838
14839 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14840 data is 0, just return nil.
14841
14842 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
14843
14844 * msdos.c (syms_of_msdos): Fix last change with
14845 mouse_autoselect_window.
14846
14847 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14848
14849 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14850 mouse_autoselect_window.
14851
14852 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
14853
14854 * keyboard.c (make_lispy_event): Handle unknown keysyms together
14855 with system-specific keysyms. Use it also for unknown function keys.
14856
14857 * doc.c (reread_doc_file): Return whether reload was attempted.
14858 (Fdocumentation, Fdocumentation_property): Don't try to reload
14859 if the doc is 0 and only ask once.
14860
14861 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14862
14863 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
14864
14865 * keyboard.c (read_char): If the event was Qselect_window,
14866 restore timer_idleness_start_time to its previous value.
14867
14868 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14869
14870 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
14871
14872 * region-cache.c (new_region_cache): Use BEG.
14873
14874 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14875 Use BEG and BEG_BYTE.
14876
14877 * doc.c (get_doc_string): Return nil if the location is wrong.
14878 (reread_doc_file): New fun.
14879 (Fdocumentation, Fdocumentation_property):
14880 Call it if get_doc_string fails.
14881 (Fsnarf_documentation): Make it work for a dumped Emacs.
14882
14883 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14884 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14885
14886 * charset.c (Fstring): Allow 0 arguments.
14887
14888 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14889
14890 * process.c (DATAGRAM_CONN_P, list_processes_1)
14891 (Fprocess_datagram_address, Fset_process_datagram_address)
14892 (Fset_network_process_options, server_accept_connection):
14893 Fix some int/Lisp_Object confusions (thank you union types).
14894
14895 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14896
14897 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14898
14899 * w32term.c: Likewise.
14900 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14901
14902 * keyboard.c (Qselect_window): New symbol.
14903 (head_table): Use it.
14904 (keys_of_keyboard): Bound select-window event to handle-select-window.
14905 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14906
14907 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14908 (last_window): New variable.
14909 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14910 (note_mouse_movement): Remove reimplemented code in #if 0.
14911 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14912 Emacs windows.
14913
14914 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14915
14916 2002-03-31 Gerd Moellmann <gerd@gnu.org>
14917
14918 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14919 Callers changed.
14920
14921 2002-03-30 Richard M. Stallman <rms@gnu.org>
14922
14923 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14924 loop whenever it stops making progress.
14925
14926 * widget.c (set_frame_size): Don't call change_frame_size.
14927
14928 2002-03-30 Gerd Moellmann <gerd@gnu.org>
14929
14930 * dispnew.c (direct_output_for_insert):
14931 Call mark_window_display_accurate.
14932
14933 2002-03-29 Jason Rumney <jasonr@gnu.org>
14934
14935 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14936
14937 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
14938
14939 * Makefile.in (lread.o): Depend on coding.h.
14940
14941 * lread.c (openp, Fload): Encode the file name before passing it
14942 to `stat', `access', and `emacs_open'.
14943 (openp): GCPRO the encoded file name. Don't recompute Lisp
14944 strings unnecessarily.
14945
14946 2002-03-29 Kim F. Storm <storm@cua.dk>
14947
14948 * fns.c (Flax_plist_put): Doc fix.
14949
14950 2002-03-28 Miles Bader <miles@gnu.org>
14951
14952 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14953
14954 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14955
14956 * process.c (set-network-process-options): Add usage.
14957 (make-network-process): Doc fix.
14958
14959 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
14960
14961 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14962
14963 2002-03-26 Richard M. Stallman <rms@gnu.org>
14964
14965 * fns.c (Fsubstring_no_properties): New function.
14966 (Flax_plist_get, Flax_plist_put): New functions.
14967 (syms_of_fns): defsubr them.
14968
14969 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14970 don't test or alter w->update_mode_line.
14971
14972 * window.c (Fdisplay_buffer): Doc fix.
14973
14974 2002-03-24 Richard M. Stallman <rms@gnu.org>
14975
14976 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14977
14978 2002-03-24 Gerd Moellmann <gerd@gnu.org>
14979
14980 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14981 (Fdefmacro): Handle `(declare ...)'.
14982 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14983 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14984
14985 2002-03-24 Jason Rumney <jasonr@gnu.org>
14986
14987 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14988 (xbm_file_p): Add prototypes.
14989 (xbm_format, xbm_image_p): Sync with xfns.c.
14990 (reflect_byte): New function.
14991 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14992 (xbm_load_image): Create bitmaps with a depth of 1.
14993 (init_xfns): Enable XBM images.
14994
14995 2002-03-23 Jason Rumney <jasonr@gnu.org>
14996
14997 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14998 correctly. Do not pass up_modifier to keyboard buffer.
14999
15000 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
15001
15002 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
15003
15004 * Makefile.in (bootstrapclean): New target.
15005 (bootstrap-temacs, bootstrap-doc): Remove.
15006 (bootstrap-emacs): Use a bog-standard `temacs'.
15007 Don't bother to build a DOC file.
15008
15009 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
15010
15011 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
15012 in temacs even if !CANNOT_DUMP.
15013 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
15014
15015 * alloc.c (check_pure_size): Only output a warning.
15016
15017 2002-03-22 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
15020 supported.
15021
15022 * w32term.c (zv_bits): Declare as short, for word alignment.
15023 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
15024 (syms_of_w32term): Define x-use-underline-position-properties.
15025
15026 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
15027 (clear_image_cache): Block input, fix logic, clear matrices in
15028 all frames that share this cache.
15029
15030 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
15031
15032 * emacs.c (main): Update the Copyright year in the blurb printed
15033 by "emacs --version".
15034
15035 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
15036
15037 * xterm.c (XTread_socket): If XK_ISO_Lock and
15038 XK_ISO_Last_Group_Lock are defined, handle keysyms between
15039 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
15040
15041 2002-03-21 Kim F. Storm <storm@cua.dk>
15042
15043 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
15044 menu-bar bindings in keymap and local-map properties _are_ used.
15045 But try keymap property first in accordance with 2002-01-03 patch.
15046 Added comment describing why this is not always reliable.
15047 (tool_bar_items): Ditto for tool-bar.
15048
15049 2002-03-21 Jason Rumney <jasonr@gnu.org>
15050
15051 * w32fns.c (x_clear_image_1): Disable color table code.
15052
15053 2002-03-21 Kim F. Storm <storm@cua.dk>
15054
15055 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
15056 removed the wrong version of the DEFUN macro; fixed it.
15057
15058 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
15059 Fmember rather than Fmemq).
15060 (Fprovide): Check that subfeatures is a list.
15061
15062 * process.c (QCfeature, QCdatagram): Removed variables.
15063 (QCtype, Qdatagram): New variables.
15064 (network_process_featurep): Removed function.
15065 (Fmake_network_process): Removed :feature check.
15066 Use :type 'datagram instead of :datagram t to create a datagram
15067 socket. This allows us to add other connection types (e.g. raw
15068 sockets) later in a consistent manner.
15069 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
15070 supported subfeatures for feature make-network-process.
15071 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
15072 Intern and staticpro QCtype and Qdatagram.
15073 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
15074
15075 * xfns.c: (QCtype): Remove duplicate declaration and
15076 initialization (is now declared in process.c).
15077
15078 * w32fns.c: (QCtype): Remove duplicate declaration and
15079 initialization (is now declared in process.c).
15080
15081 2002-03-21 Richard M. Stallman <rms@gnu.org>
15082
15083 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
15084 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
15085 when jumping to `fail' to avoid undoing reg changes in the
15086 last iteration of the loop.
15087 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
15088
15089 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
15090 Depend on process.h.
15091
15092 2002-03-20 Jason Rumney <jasonr@gnu.org>
15093
15094 Most of the following changes are still conditional on HAVE_IMAGES
15095 which is not set by default on Windows.
15096
15097 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
15098
15099 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
15100 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
15101 (four_corners_best, x_clear_image_1, x_clear_image)
15102 (x_alloc_image_color, postprocess_image)
15103 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
15104 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
15105 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
15106
15107 * w32gui.h (struct XImage): Define.
15108
15109 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
15110 extract mouse co-ordinates.
15111
15112 2002-03-20 Jason Rumney <jasonr@gnu.org>
15113
15114 * w32.c (init_winsock): Dynamically load new server and UDP
15115 socket functions.
15116 (socket_to_fd): New function.
15117 (sys_socket): Use it.
15118 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
15119 (sys_recvfrom, sys_sendto): New wrapper functions.
15120
15121 * process.c (QCfamily, QCfilter): Remove duplicate declaration
15122 and initialization.
15123
15124 * makefile.w32-in (LIBS): Remove $(WSOCK32).
15125
15126 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
15127
15128 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
15129 Don't use "sun" as a variable, it's a predefined constant on Sun
15130 machines.
15131
15132 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15133
15134 * bytecode.c (Fbyte_code): Revert last change.
15135
15136 2002-03-19 Kim F. Storm <storm@cua.dk>
15137
15138 * makefile.w32-in (LIBS): Add $(WSOCK32).
15139 From David Ponce <dponce@voila.fr>.
15140
15141 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15142
15143 * process.c (wait_reading_process_input): Move variables `pname'
15144 and `pnamelen' down where they are used.
15145
15146 * bytecode.c (Fbyte_code): Discard unused computed value to
15147 prevent gcc warning.
15148
15149 * lisp.h (Fplist_member): Add prototype.
15150
15151 2002-03-18 Kim F. Storm <storm@cua.dk>
15152
15153 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
15154 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
15155
15156 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
15157 Remove explicit GNU_LINUX settings for datagram support.
15158
15159 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15160
15161 * process.c (Fmake_network_process): Remove unused variable `sa'.
15162 Doc fix. Add usage:.
15163 (set_socket_options): Remove unused variables `optnum' and `opttype'.
15164
15165 2002-03-17 Richard M. Stallman <rms@gnu.org>
15166
15167 * xdisp.c (cursor_type_changed): New variable.
15168 (redisplay_internal): Redisplay all windows if cursor_type_changed.
15169 Clear it when clearing windows_or_buffers_changed.
15170 (try_cursor_movement, redisplay_window, try_window_id)
15171 (try_window_reusing_current_matrix): Test cursor_type_changed
15172 along with windows_or_buffers_changed.
15173
15174 * window.h (cursor_type_changed): New variable.
15175
15176 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
15177 not update_mode_lines, and always set it to 1.
15178
15179 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
15180 if no frames needed redrawing.
15181
15182 2002-03-17 Kim F. Storm <storm@cua.dk>
15183
15184 The following changes add support for network server processes,
15185 datagram connections, and local (unix) sockets.
15186
15187 * process.h (struct Lisp_Process): New member log.
15188 Doc fix: Member command used to indicate stopped network process.
15189 Doc fix: Member childp contains plist for network process.
15190 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
15191
15192 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
15193 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
15194 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
15195 New variables.
15196 (NETCONN1_P): New macro.
15197 (DATAGRAM_SOCKETS): New conditional symbol.
15198 (datagram_address): New array.
15199 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
15200 (status_message): Use concat3.
15201 (Fprocess_status): Add `listen' status to doc string. Return `stop'
15202 for a stopped network process.
15203 (Fset_process_buffer): Update contact plist for network process.
15204 (Fset_process_filter): Ditto. Don't enable input for stopped
15205 network processes. Server must listen, even if filter is t.
15206 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
15207 New functions.
15208 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
15209 (Fprocess_contact): Added KEY argument. Handle datagrams.
15210 (list_processes_1): Optionally show only processes with the query
15211 on exit flag set. Dynamically adjust column widths. Omit tty
15212 column if not needed. Report stopped network processes.
15213 Identify server and datagram network processes.
15214 (Flist_processes): New optional arg `query-only'.
15215 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
15216 (conv_lisp_to_sockaddr, set_socket_options)
15217 (network_process_featurep, unwind_request_sigio): New helper functions.
15218 (Fprocess_datagram_address, Fset_process_datagram_address):
15219 (Fset_network_process_options): New lisp functions.
15220 (Fopen_network_stream): Removed. Now defined in simple.el.
15221 (Fmake_network_process): New lisp function. Code is based on previous
15222 Fopen_network_stream, but heavily reworked with new property list based
15223 argument list, support for datagrams, server processes, and local
15224 sockets in addition to old client-only functionality.
15225 (server_accept_connection): New function.
15226 (wait_reading_process_input): Use it to handle incoming connects.
15227 Do not enable input on a new connection if process is stopped.
15228 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
15229 (send_process): Handle datagram sockets.
15230 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
15231 network process is indicated by setting command field to t .
15232 (Fprocess_send_eof): No-op if datagram connection.
15233 (Fstatus_notify): Don't read input for a stream server socket or a
15234 stopped network process.
15235 (init_process): Initialize datagram_address array.
15236 (syms_of_process): Intern and staticpro new variables, defsubr new
15237 functions.
15238
15239 2002-03-16 Jason Rumney <jasonr@gnu.org>
15240
15241 * w32fns.c (w32_to_all_x_charsets): Return correct type in
15242 startup case.
15243
15244 2002-03-16 Richard M. Stallman <rms@gnu.org>
15245
15246 * xdisp.c (redisplay_internal, redisplay_windows):
15247 Use list_of_error to call internal_condition_case_1.
15248 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
15249 so as to catch all errors with no possibility of debugger redisplay.
15250 (list_of_error): New variable.
15251 (syms_of_xdisp): Init and staticpro it.
15252
15253 * print.c (print_object): Delete `\ ' from printed rep of frame.
15254
15255 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
15256
15257 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
15258 until its implementation is fixed.
15259
15260 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15261
15262 * xfns.c (png_load): Remove unused variable `gamma_str'.
15263
15264 2002-03-14 Richard M. Stallman <rms@gnu.org>
15265
15266 * xfns.c (x_real_positions): Handle failure in XQueryTree.
15267
15268 2002-03-14 Miles Bader <miles@gnu.org>
15269
15270 * intervals.c (adjust_for_invis_intang): New function.
15271 (set_point_both): Use `adjust_for_invis_intang' to do most of the
15272 work for dealing with invisible+intangible regions. Do so before
15273 and after both forward and backward movements, to handle both
15274 front-sticky and rear-sticky cases.
15275 * textprop.c (text_property_stickiness): Function moved here from
15276 `editfns.c'.
15277 * intervals.h (text_property_stickiness): New declaration.
15278 * editfns.c (char_property_eq): Function removed.
15279 (text_property_stickiness): Function moved to `textprop.c'.
15280
15281 2002-03-13 Jason Rumney <jasonr@gnu.org>
15282
15283 * config.in: Add STRFTIME_NO_POSIX2.
15284
15285 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
15286 and %OX when underlying strftime does not.
15287
15288 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
15289
15290 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
15291 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
15292 line) to avoid annoying flicker.
15293 (xm_scroll_callback): Get rid of the now unnecessary kludge.
15294 (XTread_socket): Mark it static.
15295
15296 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
15297
15298 2002-03-13 Kim F. Storm <storm@cua.dk>
15299
15300 * puresize.h (BASE_PURESIZE): Increase to 775000.
15301
15302 2002-03-12 Juanma Barranquero <lektu@terra.es>
15303
15304 * editfns.c (syms_of_editfns): Fix typo.
15305
15306 2002-03-12 Gerd Moellmann <gerd@gnu.org>
15307
15308 * xsmfns.c: Include stdio.h because termhooks.h needs it.
15309 Include termopt.h for interrupt_input.
15310
15311 2002-03-11 Andreas Schwab <schwab@suse.de>
15312
15313 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
15314
15315 2002-03-11 Gerd Moellmann <gerd@gnu.org>
15316
15317 * xterm.c (note_mouse_movement): Put code for
15318 x_autoselect_window_p in #if 0.
15319
15320 * lread.c (Fload): Don't assume that message_with_string uses the
15321 string it is given like a C string.
15322
15323 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15324
15325 * xterm.h (x_session_check_input, x_session_initialize): Declare.
15326
15327 * xterm.c: (XTread_socket): Add call to x_session_check_input and
15328 x_session_have_connection.
15329 (x_initialize): Add call to x_session_initialize.
15330
15331 * termhooks.h (enum event_kind): Add save_session_event.
15332
15333 * keyboard.c: Add Emacs event save_session_event.
15334
15335 * emacs.c (main): Add call to syms_of_xsmfns.
15336
15337 * lisp.h (syms_of_xsmfns): Declare extern.
15338
15339 * config.in: Add HAVE_X_SM.
15340
15341 * Makefile.in (LIBXT): Add -lSM -lICE
15342 if HAVE_X_SM and not USE_X_TOOLKIT.
15343 (XOBJ): New file xsmfns.c added.
15344
15345 * xsmfns.c: New file for X session management.
15346
15347 2002-03-09 Jason Rumney <jasonr@gnu.org>
15348
15349 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
15350 read-only when setting modified time.
15351
15352 2002-03-08 Gerd Moellmann <gerd@gnu.org>
15353
15354 * xdisp.c (move_it_vertically_backward): At the end of the function,
15355 when moving forward by lines, treat terminal frames specially.
15356
15357 * keyboard.c (echo_char): Make sure to add a separator between
15358 keys even if echo_dash hasn't been called.
15359
15360 * xdisp.c: Use new string macros.
15361 (update_echo_area): Pass number of bytes to message3 instead of
15362 number of chars.
15363 (set_message_1): Don't access a string's size_byte directly.
15364 (decode_mode_spec_coding): Use number of bytes of eoltype string
15365 instead number of chars.
15366
15367 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
15368
15369 2002-03-08 Juanma Barranquero <lektu@terra.es>
15370
15371 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
15372 24-bit.
15373
15374 2002-03-06 Jason Rumney <jasonr@gnu.org>
15375
15376 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
15377
15378 2002-03-06 Gerd Moellmann <gerd@gnu.org>
15379
15380 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
15381 (cancel_echoing, echo_length, echo_truncate): Changed to
15382 work with new kboard definition.
15383 (echo_now): Use message3_nolog instead of message2_nolog.
15384
15385 * alloc.c (mark_kboards): Mark echo_string.
15386
15387 * keyboard.h (ECHOBUFSIZE): Removed.
15388 (struct kboard): Member echoptr removed, member echobuf renamed
15389 to echo_string.
15390
15391 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
15392 message3 instead of message2 to display the message using STRING's
15393 text properties.
15394
15395 2002-03-05 Andreas Schwab <schwab@suse.de>
15396
15397 * xdisp.c (hscroll_margin): Change to EMACS_INT.
15398
15399 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
15400
15401 * frame.c (default-frame-alist): Explain that setting it doesn't
15402 affect existing frames.
15403
15404 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
15405
15406 * indent.c (skip_invisible): Fix my brain fart.
15407
15408 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
15409
15410 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
15411
15412 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
15413 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
15414 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
15415 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
15416 and variables to use EMACS_INT instead of just int.
15417
15418 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
15419
15420 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
15421
15422 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
15423 environment, pass it down with corrected value.
15424
15425 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15426
15427 * lread.c (read_filtered_event): Do not call start_hourglass
15428 before returning.
15429
15430 2002-03-04 Juanma Barranquero <lektu@terra.es>
15431
15432 * w32term.c (x_display_and_set_cursor): Fix typo.
15433
15434 2002-03-03 Richard M. Stallman <rms@gnu.org>
15435
15436 * fileio.c (Fmake_temp_name): Doc fix.
15437
15438 2002-03-03 Gary Wong <gtw@gnu.org>
15439
15440 * termcap.c [!emacs]: Replace ospeed for building standalone
15441 libtermcap, for binary compatibility.
15442
15443 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
15444
15445 2002-03-03 Richard M. Stallman <rms@gnu.org>
15446
15447 * xrdb.c (file_p): Rename arg `path' to `filename'.
15448
15449 * abbrev.c (Fexpand_abbrev): Increment plist as use count
15450 only if it is an integer.
15451
15452 * xfns.c (png_load): Set screen_gamma based on f->gamma.
15453 If png_get_sRGB gives an answer, call png_set_gamma
15454 using the default image gamma value.
15455
15456 * lread.c (read1): When reading from a file, default string to
15457 multibyte only if it has some multibyte characters.
15458
15459 * print.c (print_object): Output multibyte chars 128...255
15460 using \x even if ! print_escape_multibyte.
15461
15462 * xdisp.c (display_mode_element): Move the places where
15463 bytepos, charpos, this, and lisp_string are set.
15464 Use lisp_string to set bytepos.
15465
15466 * xdisp.c (redisplay_internal):
15467 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
15468
15469 * xdisp.c (display_mode_element): Merge properties specified with
15470 :propertize onto those that come with the string.
15471
15472 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
15473
15474 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
15475 automatic-hscrolling. Users changed.
15476 <hscroll-margin>: Renamed from automatic-hscroll-margin.
15477 Users changed.
15478 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
15479
15480 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15481
15482 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
15483
15484 2002-03-02 Kim F. Storm <storm@cua.dk>
15485
15486 * window.c (Fminibuffer_selected_window): New function.
15487 (syms_of_window): Defsubr it.
15488
15489 2002-03-01 Kim F. Storm <storm@cua.dk>
15490
15491 * window.h (struct window): New member phys_cursor_width.
15492
15493 * window.c (make_window, replace_window): Init phys_cursor_width.
15494
15495 * xterm.c (x_display_and_set_cursor): Blink box cursor using
15496 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15497
15498 * w32term.c (x_display_and_set_cursor): Blink box cursor using
15499 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15500
15501 * lisp.h (GCPRO6): New macro.
15502
15503 * process.c (Fopen_network_stream): Use GCPRO6.
15504
15505 2002-03-01 Kim F. Storm <storm@cua.dk>
15506
15507 * process.c (Qconnect, Qfailed): New variables.
15508 (syms_of_process): Intern and staticpro them.
15509 (Fprocess_status): Document connect and failed return values.
15510 [NON_BLOCKING_CONNECT]: New conditional.
15511 (connect_wait_mask, num_pending_connects): New variables.
15512 (status_message): Convert Qfailed status.
15513 (Fopen_network_stream): Added support for non-blocking connect.
15514 New optional args: filter, sentinel, non_blocking. Doc updated.
15515 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
15516 (deactivate_process): Handle pending non-blocking connect.
15517 (wait_reading_process_input): Poll for status of non-blocking
15518 connects. Exec sentinel directly when connect succeeds.
15519 (status_notify): Don't read process output if not yet connected.
15520
15521 2002-02-28 Kim F. Storm <storm@cua.dk>
15522
15523 * window.c: (minibuf_selected_window): Renamed from
15524 Vminibuf_selected_window. Users changed.
15525 (syms_of_window): Staticpro it.
15526
15527 2002-02-26 Kim F. Storm <storm@cua.dk>
15528
15529 The following changes add a new Vminibuf_selected_window variable
15530 which is similar to Vminibuf_scroll_window, but which is only set
15531 on entry to the minibuffer (from a non-minibuffer window):
15532
15533 * window.c: (Vminibuf_selected_window): New variable.
15534 (struct save_window_data): New member minibuf_selected_window.
15535 (Fset_window_configuration): Restore Vminibuf_selected_window.
15536 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
15537 Set minibuf_scroll_window member to nil if minibuf_level is 0.
15538 (compare_window_configurations): Compare minibuf_selected_window.
15539
15540 * window.h: (Vminibuf_selected_window): Declare extern.
15541
15542 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
15543 entry to minibuffer or on entry from a non-minibuffer window.
15544
15545 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
15546 Vminibuf_selected_window instead of Vminibuf_scroll_window.
15547
15548 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
15549 instead of Vminibuf_scroll_window when deciding in which window
15550 the region should be highlighted. Consequently, the region remains
15551 highlighteded even when a completion buffer is also displayed.
15552
15553 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
15554
15555 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
15556
15557 * xselect.c (Qcompound_text_with_extensions): Renamed from
15558 Qcompound_text_no_extensions.
15559 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
15560
15561 2002-02-26 Juanma Barranquero <lektu@terra.es>
15562
15563 * w32proc.c (syms_of_ntproc): Doc fix.
15564
15565 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15566
15567 * intervals.h: Include "dispextern.h" unconditionally.
15568
15569 2002-02-24 Jason Rumney <jasonr@gnu.org>
15570
15571 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
15572 and disp-table.elc.
15573 (lisp): Add emacs-lisp/backquote.elc.
15574
15575 2002-02-24 Kim F. Storm <storm@cua.dk>
15576
15577 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
15578 The validation of the event type was too strict as it didn't
15579 allow string events; buffer names are used in bindings for
15580 menu-bar-select-buffer (see `menu-bar-update-buffers').
15581
15582 2002-02-23 Kim F. Storm <storm@cua.dk>
15583
15584 The following changes rework my patch of 2002-02-06 which
15585 added command remapping by entering the commands directly into
15586 the keymaps. Now, command remapping uses an explicit `remap'
15587 prefix in the keymaps, i.e. [remap COMMAND].
15588
15589 * keymap.c (Qremap, remap_command_vector): New variables.
15590 (is_command_symbol): Remove function.
15591 (Fdefine_key): No longer accept a symbol for KEY.
15592 Added validation of [remap COMMAND] argument for KEY.
15593 The DEF is no longer required to be a symbol when remapping a command.
15594 (Fremap_command): New function to remap command through keymaps.
15595 (Flookup_key): Perform command remapping initiated by
15596 Fremap_command directly for speed.
15597 (Fkey_binding): Use Fremap_command for command remapping.
15598 (where_is_internal): Handle new command remapping representation.
15599 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
15600 staticpro them. Defsubr Fremap_command.
15601
15602 * keymap.h (Fremap_command): Declare extern.
15603 (is_command_symbol): Remove extern.
15604
15605 * keyboard.c (command_loop_1): Use Fremap_command for command
15606 remapping; now try command remapping for all symbols.
15607
15608 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15609
15610 * coding.h (run_pre_post_conversion_on_str): Add prototype.
15611
15612 2002-02-23 Jason Rumney <jasonr@gnu.org>
15613
15614 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
15615 on the string before encoding it.
15616 (Fw32_get_clipboard_data): Run post-read-conversion on the string
15617 after decoding it.
15618
15619 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
15620
15621 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15622
15623 * w32term.c (enter_timestamp): Remove unused static variable to
15624 prevent warning.
15625
15626 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
15627
15628 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15629
15630 * w16select.c (Fw16_get_clipboard_data): Fix last change.
15631
15632 * xselect.c (selection_data_to_lisp_data): Fix last change.
15633
15634 2002-02-22 Jason Rumney <jasonr@gnu.org>
15635
15636 * w32term.h (struct w32_output): New member menu_command_in_progress.
15637
15638 * w32menu.c (menubar_selection_callback): Free the menu and
15639 clear the menu_command_in_progress flag.
15640
15641 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
15642 (menu_free_timer): New variable.
15643 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
15644 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
15645 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
15646 menu command is in progress.
15647 <WM_COMMAND>: Set the menu_command_in_progress flag.
15648 Kill any menu_free_timer that is running.
15649
15650 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
15651 Call ExtTextOutA rather than ExtTextOut.
15652
15653 2002-02-22 Eli Zaretskii <eliz@gnu.org>
15654
15655 * puresize.h (BASE_PURESIZE): Increase to 755000.
15656
15657 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15658
15659 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
15660 on the string before encoding it.
15661 (Fw16_get_clipboard_data): Run post-read-conversion on the string
15662 after decoding it.
15663
15664 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15665
15666 Support for ICCCM Extended Segments in X selections:
15667
15668 * xselect.c <Qcompound_text_no_extensions>: New variable.
15669 (syms_of_xselect): Intern and staticpro it.
15670 (selection_data_to_lisp_data): Run post-read-conversion on decoded
15671 selection text.
15672 (lisp_data_to_selection_data): If next-selection-coding-system is
15673 compound-text-no-extensions, set the type of selection to be
15674 compound-text.
15675
15676 * xterm.h (x_encode_text): Update prototype.
15677
15678 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
15679 callers changed. If SELECTIONP is non-zero, run the
15680 pre-write-conversion function before encoding the selection text.
15681
15682 2002-02-21 Kim F. Storm <storm@cua.dk>
15683
15684 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15685
15686 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
15687 Correct composing of language-change event.
15688
15689 2002-02-20 Kim F. Storm <storm@cua.dk>
15690
15691 * keyboard.c (menu_bar_items): Don't include keymap or local-map
15692 bindings at PT when building menu (the menu is not updated often
15693 enough for this to work reliable).
15694 (tool_bar_items): Likewise.
15695 (current_active_maps): Removed unused (and buggy) function.
15696
15697 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15698
15699 * xfns.c (gif_load): Use correct width and height for GIF images.
15700
15701 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
15702
15703 * floatfns.c (Fatan): Accept an optional second arg and call
15704 atan2 if passed 2 args.
15705
15706 2002-02-18 Jason Rumney <jasonr@gnu.org>
15707
15708 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
15709
15710 2002-02-17 Jason Rumney <jasonr@gnu.org>
15711
15712 * w32term.c (x_autoselect_window_p): New variable.
15713 (syms_of_w32term): DEFVAR_BOOL and initialize it.
15714 (note_mouse_movement): Use it.
15715
15716 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
15717
15718 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
15719
15720 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15721 New variables.
15722 (syms_of_w32fns): Intern and staticpro them.
15723 (x_frame_parms) <"fullscreen">: New parameter.
15724 (x_fullscreen_move, x_set_fullscreen): New functions.
15725 (x_set_frame_parameters): Support Qfullscreen.
15726 (x_real_positions): Save x/y_pixels_diff frame params.
15727 (x_figure_window_size): Support full-screen frames.
15728 (Fx_create_frame): Default the fullscreen parameter.
15729
15730 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
15731 (x_fullscreen_adjust): New functions.
15732 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
15733 fullscreen. Call x_check_fullscreen_move, and set the
15734 want_fullscreen member of output_data.w32
15735 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
15736
15737 * w32term.h: New enum for FULLSCREEN_* constants.
15738 (struct w32_output): New members want_fullscreen, x_pixels_diff,
15739 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
15740 (x-fullscreen-adjust): New prototype.
15741
15742 2002-02-17 Kim F. Storm <storm@cua.dk>
15743
15744 * frame.c: (Vmouse_highlight): New variable.
15745 (syms_of_frame): DEFVAR_LISP it.
15746
15747 * frame.h: (Vmouse_highlight): Declare extern.
15748
15749 * xterm.h (struct x_display_info): Add mouse_face_hidden.
15750
15751 * xterm.c (disable_mouse_highlight): Removed variable.
15752 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15753 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15754 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
15755 and on after keyboard input.
15756 (x_term_init): Initialize mouse_face_hidden.
15757
15758 * msdos.h (struct display_info): Add mouse_face_hidden.
15759
15760 * msdos.c (disable_mouse_highlight): Removed variable.
15761 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15762 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15763 (internal_terminal_init): Initialize mouse_face_hidden.
15764 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
15765 and on after keyboard input.
15766
15767 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
15768
15769 * w32term.c (disable_mouse_highlight): Removed variable.
15770 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
15771 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15772 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
15773 and on after keyboard input.
15774 (w32_initialize_display_info): Initialize mouse_face_hidden.
15775
15776 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
15777
15778 * msdos.c (last_mouse_window): New variable.
15779 (dos_rawgetc): Fix last change--if the mouse is in the same window
15780 as recorded in last_mouse_window, don't select this window.
15781
15782 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
15783
15784 * msdos.c (x_autoselect_window_p): New variable.
15785 (syms_of_msdos): Defvar it.
15786 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
15787 which the last mouse movement occured, unless it is already selected.
15788
15789 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
15790 New variables.
15791 (syms_of_xdisp): DEVFAR them.
15792 (hscroll_window_tree): Use automatic_hscroll_margin and
15793 Vautomatic_hscroll_step to compute the amount of window scrolling.
15794
15795 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15796
15797 * xterm.c (x-autoselect-window): New variable.
15798 (note_mouse_movement): Use it.
15799
15800 * keyboard.c: Do not include "systime.h" twice.
15801
15802 2002-02-15 Andreas Schwab <schwab@suse.de>
15803
15804 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
15805
15806 * alloc.c (NSTATICS): Increase to 1280.
15807
15808 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
15809
15810 * alloc.c (NSTATICS): Bump to 1026.
15811
15812 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
15813 (Vx_super_keysym): New variables.
15814 (syms_of_xterm): DEFVAR_LISP them.
15815 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
15816 variables to determine which keys to use for the various modifiers.
15817
15818 2002-02-13 Kim F. Storm <storm@cua.dk>
15819
15820 * window.c: (Vmode_line_in_non_selected_windows): Removed.
15821 (mode_line_in_non_selected_windows): New variable.
15822 (syms_of_window): DEFVAR_BOOL it.
15823
15824 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
15825 Use mode_line_in_non_selected_windows.
15826 (mode_line_in_non_selected_windows): Declare extern.
15827 (Vmode_line_in_non_selected_windows): Removed extern.
15828
15829 2002-02-13 Richard M. Stallman <rms@gnu.org>
15830
15831 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
15832 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
15833 (Fclear_this_command_keys): Doc fixes.
15834
15835 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
15836 (update_face_from_frame_parameter): Increment face_change_count
15837 and windows_or_buffers_changed to force redisplay using changed faces.
15838
15839 * xdisp.c (QCpropertize): New variable.
15840 (mode_line_proptrans_alist): New variable.
15841 (display_mode_element): New arg PROPS; all calls changed.
15842 Implement this, for strings.
15843 Handle literal output of strings by sharing the
15844 main-line code for strings, using local var `literal'.
15845 Handle :propertize feature.
15846 (syms_of_xdisp): Initialze and staticpro QCpropertize and
15847 mode_line_proptrans_alist.
15848
15849 2002-02-11 Kim F. Storm <storm@cua.dk>
15850
15851 * window.c: (Vmode_line_in_non_selected_windows): New variable.
15852 (syms_of_window): DEFVAR_LISP it.
15853
15854 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15855 (CURRENT_MODE_LINE_FACE_ID): Use it.
15856 (Vmode_line_in_non_selected_windows): Declare extern.
15857
15858 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15859 to get mode line face.
15860
15861 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
15862
15863 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15864 variables; cus-start.el doesn't need them anymore.
15865
15866 2002-02-09 Kim F. Storm <storm@cua.dk>
15867
15868 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15869 reduction. This fixes a display problem where stray newlines were
15870 inserted in the window (corrected by C-l). Clarified code (IMHO).
15871
15872 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
15873
15874 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
15875
15876 * xdisp.c (display_mode_lines): Fix last change.
15877
15878 2002-02-09 Jason Rumney <jasonr@gnu.org>
15879
15880 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15881 match each other.
15882 (w32_load_system_font): Prevent Cleartype fonts from loading.
15883 (Fx_show_tip): Ensure tip frames are above other topmost windows.
15884
15885 2002-02-09 Kim F. Storm <storm@cua.dk>
15886
15887 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15888 (CURRENT_MODE_LINE_HEIGHT): Use it.
15889 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
15890
15891 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15892 (pos_visible_p, handle_face_prop): Likewise.
15893 (display_mode_lines): Likewise, but for the real selected window.
15894 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
15895
15896 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15897 in non-selected windows.
15898 (realize_basic_faces): Realize it.
15899 (syms_of_term): Intern and staticpro it.
15900
15901 2002-02-08 Kim F. Storm <storm@cua.dk>
15902
15903 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15904 Changed mail addresses to emacs-devel@gnu.org.
15905
15906 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
15907
15908 * fileio.c (Fsubstitute_in_file_name): If the file name includes
15909 ~user, and there's no such user, don't discard everything before ~user.
15910
15911 * floatfns.c (Fround): Doc fix.
15912
15913 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15914
15915 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
15916
15917 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
15918
15919 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
15920
15921 2002-02-07 Kim F. Storm <storm@cua.dk>
15922
15923 * keymap.c (where_is_internal): Only check whether definition is
15924 remapped if it fulfills is_command_symbol.
15925
15926 2002-02-07 Andreas Schwab <schwab@suse.de>
15927
15928 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
15929
15930 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
15931
15932 2002-02-06 Kim F. Storm <storm@cua.dk>
15933
15934 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15935 defining command remapping. Doc updated.
15936 (Flookup_key): Remap command through keymap if KEY is a symbol.
15937 (is_command_symbol): New function.
15938 (Fkey_binding): Use it. New optional argument NO-REMAP.
15939 Doc updated. Callers changed. Perform command remapping via
15940 recursive call unless that arg is non-nil.
15941 (where_is_internal): New argument no_remap. Callers changed.
15942 Call recursively to find original key bindings for a remapped
15943 comand unless that arg is non-nil.
15944 (Fwhere_is_internal): New optional argument NO-REMAP.
15945 Doc updated. Callers changed. Pass arg to where_is_internal.
15946
15947 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
15948 (is_command_symbol): Add prototype.
15949
15950 * keyboard.c (Vthis_original_command): New variable.
15951 (syms_of_keyboard): DEFVAR_LISP it.
15952 (command_loop_1): Set it, and perform command remapping.
15953
15954 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15955
15956 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
15957
15958 2002-02-06 Jason Rumney <jasonr@gnu.org>
15959
15960 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
15961
15962 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
15963
15964 * charset.c (get_charset_id): Use if-else instead of ?:.
15965
15966 2002-02-06 Richard M. Stallman <rms@gnu.org>
15967
15968 * filelock.c (S_ISLNK): Define if not defined.
15969
15970 2002-02-03 Richard M. Stallman <rms@gnu.org>
15971
15972 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
15973
15974 * lread.c (read1): Redesign strategy for force_multibyte and
15975 force_singlebyte. Now is_multibyte records whether read_buffer
15976 is multibyte. Encountering any multibyte character makes it so.
15977
15978 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
15979
15980 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15981 with the same sequence, map that sequence to f10 rather than f0.
15982
15983 2002-02-03 Andreas Schwab <schwab@suse.de>
15984
15985 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15986 latter never being defined on GNU/Linux.
15987
15988 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
15989
15990 * xfaces.c (realize_default_face): Don't set the weight and slant of
15991 the default face to Qnormal, unless these attributes are unspecified.
15992
15993 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15994
15995 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15996 Call cancel_hourglass unconditionally.
15997
15998 * eval.c (Fsignal): Remove duplicated declaration of
15999 the variable `display_hourglass_p'.
16000
16001 2002-01-31 Richard M. Stallman <rms@gnu.org>
16002
16003 * editfns.c (region_limit): Nicer error message.
16004
16005 * coding.c (decode_composition_emacs_mule):
16006 Give up if NCOMPONENT gets too large to index `component'.
16007
16008 * callint.c (check_mark): New arg to specify clearer error message.
16009 Callers changed.
16010
16011 2002-01-27 Richard M. Stallman <rms@gnu.org>
16012
16013 * minibuf.c (Fcompleting_read): Doc fix.
16014
16015 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16016
16017 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
16018 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
16019 Fix doc-strings.
16020
16021 2002-01-26 Richard M. Stallman <rms@gnu.org>
16022
16023 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
16024
16025 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
16026 and scroll_up_aggressively.
16027
16028 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16029
16030 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
16031
16032 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
16033
16034 * textprop.c (Fnext_property_change, Fnext_single_property_change)
16035 (Fprevious_property_change, Fprevious_single_property_change):
16036 Stay within the narrowed-buffer boundaries.
16037
16038 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
16039
16040 * term.c (Ftty_display_color_cells): New function.
16041 (syms_of_term): Defsubr it.
16042 (Ftty_display_color_cells, Ftty_display_color_p): Change the
16043 argument name to DISPLAY. Doc fix.
16044
16045 * dispextern.h: Add prototype for set_tty_color_mode and
16046 tty_setup_colors.
16047
16048 2002-01-24 Jason Rumney <jasonr@gnu.org>
16049
16050 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
16051 If region left to draw is not what was expected, mark the frame as
16052 garbaged.
16053
16054 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
16055 Combine the regions returned by BeginPaint and GetUpdateRect.
16056
16057 2002-01-23 Jason Rumney <jasonr@gnu.org>
16058
16059 * w32term.c (x_update_window_begin): Only hide caret if
16060 w32_use_visible_system_caret is set.
16061 (x_update_window_end): Only show caret if
16062 w32_use_visible_system_caret is set.
16063 (syms_of_w32term): Handle SystemParametersInfo call failing.
16064
16065 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
16066
16067 2002-01-22 Richard M. Stallman <rms@gnu.org>
16068
16069 * unexelf.c (unexec): Define n so as to cause compilation error
16070 for the code where people have often written n instead of nn.
16071
16072 * .gdbinit (hookpost-run): Defined.
16073
16074 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16075
16076 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
16077
16078 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16079
16080 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
16081 if fullscreen is being set.
16082
16083 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16084
16085 * minibuf.c (Fminibuffer_contents)
16086 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
16087 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
16088
16089 2002-01-21 Richard M. Stallman <rms@gnu.org>
16090
16091 * window.c (check_frame_size): Fix minimum height calculation.
16092
16093 2002-01-20 Ken Raeburn <raeburn@gnu.org>
16094
16095 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
16096 height before comparison.
16097 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
16098
16099 2002-01-20 Jason Rumney <jasonr@gnu.org>
16100
16101 * w32term.c (w32_system_caret_width): Remove.
16102 (w32_use_visible_system_caret): New user flag.
16103 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
16104 Windows reports a screen reader running.
16105 (x_update_window_begin): Hide the system caret.
16106 (x_update_window_end): Show the system caret.
16107 (x_display_and_set_cursor): Don't draw a cursor when
16108 w32_use_visible_system_caret is set. Do not adjust width.
16109
16110 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
16111 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
16112 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
16113 the user requests it. Use system default width when creating.
16114 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
16115
16116 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
16117 New window messages.
16118
16119 2002-01-20 Richard M. Stallman <rms@gnu.org>
16120
16121 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
16122
16123 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16124
16125 * doprnt.c (doprnt1): Fix typos in error call.
16126
16127 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
16128
16129 * unexelf.c (unexec) [__sgi]: Support the .got sections.
16130
16131 2002-01-20 Jason Rumney <jasonr@gnu.org>
16132
16133 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
16134 that Windows returns. If a double check fails, try to guess how
16135 ExtTextOut is going to act.
16136
16137 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
16138 in place of stricmp.
16139 (w32_list_synthesized_fonts): Removed.
16140 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
16141 (struct enumfont_t): New element; list.
16142 (enum_font_cb2): List all style and charset variations of a font.
16143 (Fw32_select_font): New optional argument; include_proportional.
16144 Exclude vertical fonts. Exclude proportional fonts unless
16145 include_proportional is non-nil.
16146 (w32_enable_synthesized_fonts): Change to a boolean.
16147 (Fw32_send_sys_command): Doc fix.
16148
16149 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16150
16151 * dispnew.c (update_frame): Move the variable `tem' to the block
16152 where it is used.
16153
16154 2002-01-19 Jason Rumney <jasonr@gnu.org>
16155
16156 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
16157 call to face-set-after-frame-default.
16158
16159 2002-01-18 Richard M. Stallman <rms@gnu.org>
16160
16161 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
16162 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
16163
16164 2002-01-17 Richard M. Stallman <rms@gnu.org>
16165
16166 * window.c (enlarge_window): When exceeding size of parent,
16167 directly delete all the siblings instead of trying to resize it.
16168
16169 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16170
16171 * term.c (set_tty_color_mode): Remove unused variable `tem'.
16172
16173 2002-01-16 Henrik Enberg <henrik@enberg.org>
16174
16175 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
16176
16177 2002-01-16 Kim F. Storm <storm@cua.dk>
16178
16179 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
16180 is invisible. This can happen if cursor is on top line of a
16181 window, and we switch to a buffer with a header line.
16182
16183 * w32term.c (x_erase_phys_cursor): Ditto.
16184
16185 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16186
16187 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
16188 `dont_resize' only when used.
16189
16190 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
16191
16192 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
16193
16194 * xdisp.c (display_mode_element): When computing charpos, depend
16195 on multibyteness of elt, not the text in field.
16196
16197 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16198
16199 * buffer.c (Fkill_all_local_variables):
16200 Increment `update_mode_lines' only once.
16201
16202 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16203
16204 * lisp.h (adjust_after_replace_noundo)
16205 (Fupdate_coding_systems_internal): Add prototypes.
16206
16207 * sound.c (Fplay_sound): Initialize header_size also for :data case.
16208
16209 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
16210
16211 Support for the --color command-line argument and tty-color-mode
16212 frame parameter:
16213
16214 * term.c (tty_default_color_capabilities, tty_setup_colors)
16215 (set_tty_color_mode): New functions.
16216 (term_init): Call tty_default_color_capabilities.
16217 (Qtty_color_mode_alist): New variable.
16218 (syms_of_term): Intern and staticpro it.
16219
16220 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
16221 frames.
16222 (do_switch_frame): For termcap frames, switch the tty
16223 color mode as specified by the frame's parameters.
16224 (Qtty_color_mode): New variable.
16225 (syms_of_frame): Intern and staticpro it.
16226
16227 * emacs.c (USAGE2): Add the --color option.
16228 (standard_args): Ditto.
16229
16230 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16231
16232 * xterm.h (struct x_output): New members want_fullscreen,
16233 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
16234 y_pixels_outer_diff.
16235 New enum for FULLSCREEN_* constants.
16236 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
16237 is NULL.
16238 (x_fullscreen_adjust): Add prototype.
16239
16240 * emacs.c (USAGE2): Add the new full-screen arguments.
16241 (standard_args): Ditto.
16242
16243 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16244 New variables.
16245 (syms_of_xfns): Intern and staticpro them.
16246 (x_frame_parms) <"fullscreen">: New parameter.
16247 (x_fullscreen_move, x_set_fullscreen): New functions.
16248 (x_set_frame_parameters): Support for Qfullscreen.
16249 (x_real_positions): More accurate computation of the frame position.
16250 (x_figure_window_size): Support full-screen frames.
16251 (Fx_create_frame): Default the fullscreen parameter.
16252
16253 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
16254 (XTread_socket) <Expose>: Call x_check_fullscreen.
16255 <ConfigureNotify>: Don't resize to fullscreen.
16256 Call x_check_fullscreen_move, and set the want_fullscreen member of
16257 output_data.x.
16258
16259 2002-01-13 Jason Rumney <jasonr@gnu.org>
16260
16261 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
16262 for mice with more than 3 buttons.
16263
16264 * w32term.c (parse_button): New parameter xbutton. Callers changed.
16265 (w32_read_socket): Handle new "XBUTTON" messages.
16266
16267 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
16268 (syms_of_w32fns): DEFVAR_BOOL it.
16269 (w32_wnd_proc): Handle new "XBUTTON" messages.
16270
16271 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16272
16273 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
16274
16275 2002-01-13 Andreas Schwab <schwab@suse.de>
16276
16277 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
16278
16279 2002-01-12 Andreas Schwab <schwab@suse.de>
16280
16281 * .gdbinit (xbuffer): Remove address operator since data is now a
16282 pointer.
16283
16284 2002-01-11 Richard M. Stallman <rms@gnu.org>
16285
16286 * insdel.c (adjust_after_replace_noundo): New function.
16287
16288 * coding.c (code_convert_region): Don't copy old text if undo disabled.
16289
16290 2002-01-09 Jason Rumney <jasonr@gnu.org>
16291
16292 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
16293 when checking for multiple frames.
16294
16295 2002-01-08 Richard M. Stallman <rms@gnu.org>
16296
16297 * window.c (delete_window): Rewrite the code for changing the
16298 selected window to handle the case where WINDOW is not a leaf.
16299
16300 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
16301
16302 * process.c (send_process): Set src_multibyte to 1 after the call
16303 top setup_coding_system, not before the call.
16304
16305 2002-01-07 Jason Rumney <jasonr@gnu.org>
16306
16307 * xmenu.c (set_frame_menubar, xmenu_show):
16308 (xdialog_show): Initialize wv->help to Qnil.
16309
16310 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
16311 (w32_dialog_show): Initialize wv->help to Qnil.
16312
16313 2002-01-06 Jason Rumney <jasonr@gnu.org>
16314
16315 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
16316
16317 * w32menu.c (w32_menu_display_help): Revert last change.
16318
16319 * xmenu.c (menu_highlight_callback): Revert last change.
16320
16321 2002-01-06 Andreas Schwab <schwab@suse.de>
16322
16323 * insdel.c (make_gap_larger): Make sure buffer size does not
16324 overflow range of int.
16325
16326 2002-01-05 Jason Rumney <jasonr@gnu.org>
16327
16328 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16329 OVERLAPS_P.
16330
16331 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
16332
16333 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
16334 to the left or to the right of the pointer, put it against
16335 the left screen edge.
16336 (x_frame_parms): Add missing braces around initializer.
16337
16338 * w32term.c (x_setup_relief_colors): Don't compute an image's
16339 background color if it doesn't have a Pixmap.
16340 (notice_overwritten_cursor): Don't depend on
16341 output_cursor and updated_area. Compare pixel coordinates with
16342 window's cursor pixel coordinates.
16343 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16344 Call notice_overwritten_cursor with new arg list.
16345 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16346 unconditionally.
16347 (x_draw_image_relief): Use predefined macro instead of
16348 constant when the value of `tool_bar_button_relief' is negative.
16349
16350 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
16351
16352 2002-01-04 Richard M. Stallman <rms@gnu.org>
16353
16354 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
16355
16356 2002-01-03 Richard M. Stallman <rms@gnu.org>
16357
16358 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
16359 (Fkey_binding): Try the `keymap' property map first.
16360 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
16361 minor mode bindings.
16362
16363 2002-01-03 Kim F. Storm <storm@cua.dk>
16364
16365 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
16366
16367 2002-01-02 Richard M. Stallman <rms@gnu.org>
16368
16369 * keyboard.c (read_key_sequence): Handle the keymap property
16370 before minor mode maps.
16371
16372 * editfns.c (Fformat): Update thissize from field_width
16373 based on the actual width, in the string case.
16374
16375 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16376
16377 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
16378 when used as truth value to prevent gcc warnings.
16379
16380 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
16381 * w32proc.c: Include <config.h>.
16382
16383 2002-01-01 Andreas Schwab <schwab@suse.de>
16384
16385 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
16386 not EMACS_INT, to make them compatible with DEFVAR_INT.
16387 * lisp.h (max_specpdl_size): Adjust declaration.
16388
16389 2002-01-01 Richard M. Stallman <rms@gnu.org>
16390
16391 * print.c (print_object): Test print_escape_nonascii only for
16392 unibyte strings.
16393 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
16394 when outputting to a multibyte buffer.
16395
16396 2001-12-29 Richard M. Stallman <rms@gnu.org>
16397
16398 * print.c (print_object): In multibyte string, use hex escapes.
16399 Use octal only for unibyte strings.
16400 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
16401
16402 * lread.c (read_escape): New arg BYTEREP for reporting whether
16403 escape forces unibyte or multibyte.
16404 (read1): When reading a string, take note of that info.
16405
16406 2001-12-29 Ken Raeburn <raeburn@gnu.org>
16407
16408 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
16409 comparison to test lisp value returned by Fget.
16410
16411 2001-12-29 Richard M. Stallman <rms@gnu.org>
16412
16413 * lisp.h (max_specpdl_size): Add declaration.
16414
16415 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
16416
16417 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
16418 Handle modifier bits. Correct typo in error message.
16419
16420 2001-12-28 Richard M. Stallman <rms@gnu.org>
16421
16422 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
16423 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
16424 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16425 Update calls to Fdefine_abbrev.
16426 (write_abbrev): Update for changed data format.
16427 Don't list "system" abbrevs.
16428 (Fexpand_abbrev): Update use count with new data format.
16429 (describe_abbrev): Update for changed data format.
16430 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
16431
16432 * config.in (HAVE_MBSINIT): Add #undef.
16433
16434 * strftime.c (mbsinit): Define as no-op if not available.
16435
16436 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
16437 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
16438
16439 * keymap.c (Flookup_key): Error message if key has wrong data type.
16440 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
16441 (exclude_key): New variable.
16442
16443 2001-12-28 Gerd Moellmann <gerd@gnu.org>
16444
16445 * xterm.c (x_setup_relief_colors): Don't compute an image's
16446 background color if it doesn't have a Pixmap.
16447
16448 * xterm.c (notice_overwritten_cursor): Don't depend on
16449 output_cursor and updated_area. Compare pixel coordinates with
16450 window's cursor pixel coordinates.
16451 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16452 Call notice_overwritten_cursor with new arg list.
16453 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16454 unconditionally.
16455
16456 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
16457 height of the cursor line to the amount to scroll.
16458
16459 2001-12-27 Richard M. Stallman <rms@gnu.org>
16460
16461 * intervals.c (set_point_both): The position after an invisible,
16462 intangible character is not an acceptable stopping point.
16463
16464 2001-12-27 Ken Raeburn <raeburn@gnu.org>
16465
16466 * window.c (enlarge_window): In new preserve_before code, convert
16467 CURBEG from lisp object to integer before doing arithmetic.
16468
16469 2001-12-27 Richard M. Stallman <rms@gnu.org>
16470
16471 * bytecode.c (Fbyte_code): Undo previous change.
16472
16473 2001-12-26 Kim F. Storm <storm@cua.dk>
16474
16475 * keyboard.c (record_char): Ignore duplicate help-echo events only
16476 separated by mouse-movement. When tracking mouse, only record
16477 first and last mouse-movement event in same window.
16478 Don't record mouse-movement events in keyboard macros.
16479
16480 2001-12-25 Richard M. Stallman <rms@gnu.org>
16481
16482 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
16483 (Fenlarge_window): New arg PRESERVE_BEFORE.
16484
16485 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
16486 instead of Fstring_as_unibyte.
16487
16488 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16489
16490 The following changes remove mocklisp support:
16491
16492 * mocklisp.h, mocklisp.c: Files removed.
16493
16494 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
16495 `Qmocklisp' and `Qmocklisp_arguments'.
16496 Remove prototype of syms_of_mocklisp.
16497
16498 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
16499
16500 * callint.c: Do not include mocklisp.h.
16501 (Fcall_interactively): Do not test for mocklisp case.
16502
16503 * eval.c: Remove variables `Qmocklisp_arguments',
16504 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
16505 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
16506 Do not test for mocklisp case.
16507 (Fwhile): Remove unused variable `tem'.
16508 (syms_of_eval): Remove variable `moclisp-arguments'.
16509
16510 * data.c (wrong_type_argument): Remove mocklisp case.
16511
16512 * doc.c (Fdocumentation): Remove mocklisp case.
16513
16514 * emacs.c (main): Do not call syms_of_mocklisp.
16515
16516 2001-12-21 Richard M. Stallman <rms@gnu.org>
16517
16518 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
16519 to the left or to the right of the pointer, put it against
16520 the left screen edge.
16521
16522 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
16523
16524 * Makefile.in (distclean): Remove .gdbinit if we are building
16525 outside the source tree.
16526
16527 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
16528
16529 * w32.c (emacs_root_dir): New function.
16530
16531 * msdos.c (emacs_root_dir): New function.
16532
16533 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
16534 of the current drive as the fallback for default_directory.
16535
16536 * dired.c (file_name_completion): Run the elements of
16537 completion-ignored-extensions through ENCODE_FILE.
16538
16539 * lisp.h (scmp): Remove prototype, since it's now a static
16540 function private to dired.c.
16541
16542 2001-12-18 Richard M. Stallman <rms@gnu.org>
16543
16544 * dired.c (scmp): Function moved from minibuf.c.
16545 Delete multibyte handling--used only on encoded strings.
16546
16547 * minibuf.c (scmp): Function moved to dired.c.
16548
16549 * fns.c (merge): Add QUIT call.
16550
16551 2001-12-18 Dave Love <fx@gnu.org>
16552
16553 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
16554 language/georgian.el.
16555
16556 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
16557
16558 * Makefile.in (lisp, shortlisp): Synchronize with changes to
16559 lisp/Makefile.in:DONTCOMPILE.
16560
16561 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16562
16563 * xdisp.c (window_box_height): Do not return negative values.
16564 From Gerd Moellmann <gerd@gnu.org>.
16565
16566 * keyboard.c (head_table): Add missing braces around initializer.
16567
16568 * term.c (keys): Likewise.
16569
16570 * xfns.c (x_frame_parms, visual_classes): Likewise.
16571
16572 2001-12-17 Sam Steingold <sds@gnu.org>
16573
16574 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
16575 patch (COMPOSING_P, not COMPOSING).
16576
16577 2001-12-17 Richard M. Stallman <rms@gnu.org>
16578
16579 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
16580
16581 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
16582 before calling decode_coding.
16583
16584 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
16585
16586 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
16587 instead of only for COMPOSITION_DISABLED.
16588
16589 2001-12-16 Richard M. Stallman <rms@gnu.org>
16590
16591 * alloc.c (pure_alloc): After overflow, allocate just a small block.
16592
16593 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
16594
16595 * buffer.h (struct buffer): New field `display_error_modiff'.
16596 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
16597
16598 * window.c (Frecenter): Clear display_error_modiff field.
16599
16600 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
16601 Call redisplay_window, but not if display_error_modiff field says no.
16602 (redisplay_window_error): New function.
16603 (displayed_buffer): New variable.
16604 (redisplay_internal, redisplay_windows): Call the new functions
16605 instead of redisplay_window directly.
16606
16607 2001-12-15 Richard M. Stallman <rms@gnu.org>
16608
16609 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
16610
16611 2001-12-14 Andrew Innes <andrewi@gnu.org>
16612
16613 * makefile.w32-in (EMACSLOADPATH): Define.
16614 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
16615 (bootstrap-temacs): Remove dependency on bootstrap-clean.
16616
16617 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
16618
16619 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
16620 parameter have a numeric value all the time.
16621
16622 * w32fns.c (x_report_frame_params): Likewise.
16623
16624 2001-12-12 Richard M. Stallman <rms@gnu.org>
16625
16626 * fileio.c (Fwrite_region): Doc fix.
16627
16628 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
16629 (redisplay_internal): Call clear_image_cache only for window terminals.
16630
16631 2001-12-12 Gerd Moellmann <gerd@gnu.org>
16632
16633 * xdisp.c (move_it_vertically_backward): Change heuristic
16634 for the case that we didn't move far enough initially.
16635
16636 * window.c (Frecenter): Simplify computation in the case of window
16637 system frames and ARG < 0; use window_box_height.
16638
16639 2001-12-11 Richard M. Stallman <rms@gnu.org>
16640
16641 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
16642 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
16643
16644 2001-12-11 Andrew Innes <andrewi@gnu.org>
16645
16646 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
16647 arg is negative.
16648
16649 2001-12-11 Richard M. Stallman <rms@gnu.org>
16650
16651 * m/hp800.h: Split the __hpux conditional into the parts
16652 that are right for GNU/Linux too and the parts that are not.
16653 Use the former if GNU_LINUX.
16654 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
16655
16656 * s/gnu-linux.h (GNU_LINUX): Defined.
16657
16658 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16659
16660 * macros.c, msdos.c, w16select.c: Change doc-string comments to
16661 `new style' [w/`doc:' keyword].
16662
16663 2001-12-10 Jason Rumney <jasonr@gnu.org>
16664
16665 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
16666 before using.
16667
16668 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16669
16670 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
16671 keyword].
16672
16673 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
16674
16675 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
16676
16677 * s/hpux10.h (srand48): Don't undefine.
16678
16679 2001-12-09 Jason Rumney <jasonr@gnu.org>
16680
16681 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
16682 Add comment to explain where the struct came from.
16683 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
16684 (add_menu_item): Process pop-up menus first to avoid memory leak.
16685 (add_menu_item, w32_menu_display_help): Use `help' field as
16686 Lisp_Object.
16687 (w32_free_submenu_strings): Only free owner-drawn strings.
16688
16689 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16690
16691 * COPYING: Moved back.
16692
16693 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
16694 Add parentheses around && within ||.
16695
16696 * indent.c (compute_motion): Likewise.
16697
16698 * intervals.c (merge_properties_sticky): Likewise.
16699
16700 * coding.c (setup_coding_system, shrink_encoding_region)
16701 (Fdecode_sjis_char): Likewise.
16702
16703 2001-12-07 Andreas Schwab <schwab@suse.de>
16704
16705 * xdisp.c (display_mode_element): Don't read past end of string if
16706 it ends with '%'.
16707
16708 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
16709 can hold.
16710
16711 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
16712 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
16713 type changed to Lisp_Object.
16714 (syms_of_data): DEFVAR_LISP them.
16715
16716 2001-12-07 Richard M. Stallman <rms@gnu.org>
16717
16718 * callproc.c (init_callproc): Set Vdata_directory based on the source
16719 location whenever Emacs was run uninstalled.
16720
16721 2001-12-06 Paul Eggert <eggert@twinsun.com>
16722
16723 * config.in (HAVE_WORKING_VFORK): New #undefs.
16724 * process.c (create_process):
16725 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
16726 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
16727 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
16728 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
16729 * m/intel386.h (HAVE_VFORK): Likewise.
16730 * m/mips-siemens.h (HAVE_VFORK): Likewise.
16731 * m/mips.h (HAVE_VFORK): Likewise.
16732 * s/freebsd.h (vfork): Remove #define.
16733 * s/lynxos.h (HAVE_VFORK): Remove #undef.
16734 * s/usg5-4-2.h: Fix comment about vfork.
16735
16736 2001-12-06 Richard M. Stallman <rms@gnu.org>
16737
16738 * s/hpux10.h (random): Add undef.
16739 (HAVE_RANDOM): Define it just once.
16740
16741 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
16742
16743 * eval.c: Undo last change: the standard syntax is not wanted.
16744
16745 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
16746
16747 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
16748 scroll bars of the frame before deleting the frame itself. If the
16749 frame has a widget, delete the frame with XtDestroyWidget, and do
16750 not call XDestroyWindow before that.
16751
16752 2001-12-06 Kim F. Storm <storm@cua.dk>
16753
16754 * xfns.c (x_report_frame_params): Return actual fringe widths.
16755
16756 * w32fns.c (x_report_frame_params): Return actual fringe widths.
16757
16758 2001-12-05 Andrew Innes <andrewi@gnu.org>
16759
16760 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
16761 excessively large.
16762
16763 * insdel.c (make_gap_larger): New function.
16764 (make_gap_smaller): New function.
16765 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
16766 Call make_gap_smaller if arg is negative.
16767
16768 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
16769
16770 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
16771 Pass a dummy argument when calling interrupt_signal.
16772 (parse_menu_item): Mark disabled items before checking for empty def.
16773 (read_char_minibuf_menu_prompt): Make safety more visible.
16774 (read_key_sequence): Add a `first_unbound' variable.
16775 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
16776 unbound prefix as soon as we can detect it.
16777
16778 * doc.c (Fsnarf_documentation): Add prototype.
16779 (get_doc_string): Handle negative arguments.
16780 (Fdocumentation): Use AREF and ASIZE.
16781 Move the calls to get_doc_string to a single place.
16782 Don't confuse an interactive-spec for a docstring reference.
16783 (Fdocumentation_property): Take advantage of the fact that
16784 get_doc_string now ignores the sign of the docstring position.
16785
16786 * eval.c: Use standard syntax for usage in docstrings.
16787
16788 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16789
16790 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
16791
16792 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16793
16794 * xterm.c (x_draw_image_relief): Use predefined macro instead of
16795 constant when the value of `tool_bar_button_relief' is negative.
16796
16797 2001-12-02 Richard M. Stallman <rms@gnu.org>
16798
16799 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
16800 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
16801
16802 * fileio.c (read_non_regular): Delete Fsignal call.
16803
16804 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
16805
16806 * lisp.h (run_hook_list_with_args): Undo last change.
16807
16808 2001-12-01 Gerd Moellmann <gerd@gnu.org>
16809
16810 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
16811
16812 2001-12-01 Jason Rumney <jasonr@gnu.org>
16813
16814 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
16815
16816 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
16817 [!WM_MOUSELEAVE]: Define.
16818
16819 * w32menu.c (current_popup_menu, get_menu_item_info):
16820 (set_menu_item_info): New vars.
16821 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
16822 (w32_menu_show): Set current_popup_menu.
16823 (add_menu_item): Allocate new strings for owner-drawn menu items
16824 and help strings.
16825 Use owner-draw for disabled menu items again.
16826 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
16827 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
16828
16829 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
16830 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
16831 <WM_EXITMENULOOP>: Free menu strings.
16832 <WM_MOUSELEAVE>: Stop tracking mouse.
16833 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
16834
16835 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
16836 and mouse face.
16837
16838 2001-12-01 Kim F. Storm <storm@cua.dk>
16839
16840 The following changes add left-fringe and right-fringe
16841 frame parameters to adjust fringe widths, or remove one or
16842 both fringes.
16843
16844 * frame.h (struct frame): Remove trunc_area_pixel_width and
16845 trunc_area_cols fields.
16846 (Qleft_fringe, Qright_fringe): Declare.
16847 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
16848
16849 * frame.c (Qleft_fringe, Qright_fringe): New vars.
16850 (syms_of_frame): Initialize them.
16851
16852 * window.c (coordinates_in_window): Handle separate left and right
16853 fringe widths.
16854
16855 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16856 and fringe_cols fields.
16857 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16858 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16859 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16860 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16861 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16862 (x_compute_fringe_widths): Add prototype.
16863
16864 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16865 fill fringe evenly with small dashes.
16866 (x_draw_fringe_bitmap): Clear background if necessary. Align and
16867 clip the new ZV bitmap to avoid jitter between rows.
16868 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16869 background. Don't draw fringe bitmaps if fringe width is zero.
16870 (x_compute_fringe_widths): New function.
16871 (x_new_font, x_set_window_size_1): Use it.
16872
16873 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16874 (x_set_frame_parameters): Process `font' parameter before other
16875 parameters as fringe widths depend on it.
16876 (x_set_fringe_width): New function.
16877 (x_figure_window_size): Use x_compute_fringe_widths.
16878 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16879 parameters.
16880
16881 * widget.c (set_frame_size): Use x_compute_fringe_widths.
16882 (EmacsFrameSetCharSize): Ditto.
16883
16884 * w32term.h: Merged changes from xterm.h.
16885 * w32term.c: Merged changes from xterm.c.
16886 * w32fns.c: Merged changes from xfns.c.
16887
16888 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16889
16890 * COPYING: Removed.
16891
16892 2001-11-29 Dave Love <fx@gnu.org>
16893
16894 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16895 extra extra slot.
16896 (detect_coding_mask): Fix call of detect_coding_iso2022.
16897
16898 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16899
16900 * fileio.c (file-name-coding-system)
16901 (default-file-name-coding-system): Doc fix (links to referenced
16902 variables added).
16903
16904 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16905
16906 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16907 Add dummy uses of gcproN variables.
16908
16909 * category.c (describe_category, describe_category_1)
16910 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
16911 (syms_of_category): Don't defsubr Sdescribe_categories.
16912
16913 2001-11-28 Richard M. Stallman <rms@gnu.org>
16914
16915 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
16916
16917 * Makefile.in (lispdir): New variable, referring to build dir.
16918 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
16919
16920 2001-11-28 Andrew Innes <andrewi@gnu.org>
16921
16922 * w32menu.c (w32_menu_display_help): Actually add the new argument
16923 OWNER.
16924
16925 2001-11-28 Jason Rumney <jasonr@gnu.org>
16926
16927 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16928 menu items. From David Ponce <dponce@wanadoo.fr>.
16929 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16930 conditionally.
16931 (w32_menu_display_help): New argument OWNER. Rewritten to store a
16932 help event in the owner frame's keyboard buffer.
16933
16934 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16935 (Fx_show_tip): Don't subtract last width from row width.
16936
16937 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16938 (w32_read_socket): Use EQ to compare frames.
16939
16940 2001-11-28 Gerd Moellmann <gerd@gnu.org>
16941
16942 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16943 OVERLAPS_P.
16944
16945 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16946
16947 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16948 `gcpro3' and `gcpro4'.
16949
16950 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
16951
16952 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16953
16954 * ccl.c: Use AREF and ASIZE.
16955
16956 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
16957
16958 * lisp.h (run_hook_list_with_args): Remove.
16959 (LIST_END_P): Fix call to wrong_type_argument.
16960 (make_fixnum_or_float): Use EMACS_INT rather than int.
16961
16962 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
16963
16964 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16965 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
16966
16967 * eval.c: Use AREF and ASIZE.
16968 (Ffetch_bytecode): Add the file name to the error message.
16969
16970 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16971 which match the end of the file-name.
16972 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16973 is not a valid env var, but leave it as is instead.
16974
16975 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16976 Make nil bindings in char-tables transparent.
16977 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
16978
16979 2001-11-26 Richard M. Stallman <rms@gnu.org>
16980
16981 * textprop.c (set_text_properties_1): Allow START, END in either order.
16982 Do nothing if range is empty.
16983
16984 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
16985
16986 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16987 (clean): Not here.
16988
16989 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16990
16991 * textprop.c (set_text_properties_1): Clearly mark that the
16992 interval should not be empty.
16993
16994 * intervals.c (graft_intervals_into_buffer):
16995 Don't call set_text_properties_1 on an empty interval.
16996
16997 2001-11-25 Richard M. Stallman <rms@gnu.org>
16998
16999 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
17000
17001 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
17002 don't lose the data in it.
17003
17004 2001-11-25 Juanma Barranquero <lektu@terra.es>
17005
17006 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
17007
17008 * buffer.c (Fkill_buffer): Likewise.
17009
17010 * print.c (temp_output_buffer_setup): Likewise.
17011
17012 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
17013
17014 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
17015
17016 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
17017
17018 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
17019 Niemitalo <kon@iki.fi>.
17020
17021 2001-11-25 Jason Rumney <jasonr@gnu.org>
17022
17023 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
17024
17025 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
17026 (Fx_show_tip): Block input during frame creation.
17027 (Fx_show_tip, Fx_hide_tip): Enable.
17028
17029 2001-11-24 Richard M. Stallman <rms@gnu.org>
17030
17031 * lread.c (Fload): Detect recursive load error for more than 3
17032 nestings of the same file.
17033 (Vrecursive_load_depth_limit): Variable deleted.
17034 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
17035
17036 2001-11-24 Jason Rumney <jasonr@gnu.org>
17037
17038 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
17039 mouse position if either left or top is not specified.
17040
17041 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
17042 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
17043 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
17044 (my_create_tip_window): Assign tip_window.
17045 (x_create_tip_frame): Use same defaults as X.
17046 (compute_tip_xy): Remove unused variable. Use full screen width.
17047 (Fx_show_tip): Do not double height. Call ShowWindow directly.
17048
17049 * w32term.c (x_after_update_window_line): Doc fix.
17050 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
17051 frames.
17052 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
17053
17054 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
17055 for all Windowed systems.
17056
17057 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
17058
17059 * msdos.c (IT_clear_screen): If the frame's faces are not yet
17060 realized, use the initial screen colors to clear the screen.
17061
17062 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17063
17064 * textprop.c (Fset_text_properties): Remove unused variables
17065 `unchanged', `prev_changed', `s' and `len'.
17066
17067 * search.c (Freplace_match): Remove unused variable `inslen'.
17068
17069 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
17070
17071 2001-11-22 Jason Rumney <jasonr@gnu.org>
17072
17073 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
17074 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
17075 (my_create_tip_window): New function.
17076 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
17077 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
17078
17079 2001-11-20 Jason Rumney <jasonr@gnu.org>
17080
17081 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
17082 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
17083
17084 * w32fns.c (Vw32_system_coding_system): Remove.
17085 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
17086
17087 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
17088
17089 * fileio.c (Fwrite_region): Move choose_write_coding_system to
17090 after build_annotations.
17091
17092 * syntax.c (describe_syntax): Add dummy arg.
17093 (describe_syntax_1): Update call to describe_vector.
17094
17095 * category.c (describe_category): Add dummy arg.
17096 (describe_category_1): Update call to describe_vector.
17097
17098 * keymap.c (Fdescribe_vector): Add `describer' parameter.
17099 (describe_command, describe_translation): Add dummy second param.
17100 (describe_map): Call elt_describer with two arguments.
17101 (describe_vector_princ): Add `fun' parameter.
17102 Call it instead of the hardcoded `princ'.
17103 (describe_vector): Add arg `args'.
17104 Pass it as a new second argument to elt_describer.
17105
17106 * keymap.h (describe_vector): Update prototype.
17107
17108 * frame.c: Don't include keymap.h any more.
17109 (keys_of_frame): Remove.
17110
17111 * lisp.h (keys_of_frame): Remove declaration.
17112
17113 * emacs.c (main): Don't call `keys_of_frame' any more.
17114
17115 2001-11-14 Andreas Schwab <schwab@suse.de>
17116
17117 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
17118 if defined, 0 otherwise.
17119 (MAP_FAILED): Define if not defined and use it to test mmap failure.
17120 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
17121
17122 2001-11-19 Richard M. Stallman <rms@gnu.org>
17123
17124 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
17125
17126 2001-11-18 Jason Rumney <jasonr@gnu.org>
17127
17128 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
17129 (x_draw_bar_cursor): If the background color of the glyph under
17130 the cursor equals the frame's cursor color, use the glyph's
17131 foreground color for drawing the bar cursor.
17132 (x_after_update_window_line): Clear internal border in different
17133 circumstances.
17134 (w32_set_vertical_scroll_bar): Check for width and height > 0.
17135 (w32_draw_relief_rect): Correct relief by 1 pixel.
17136 (x_set_glyph_string_background_width):
17137 Set extends_to_end_of_line_p if the row's fill_line_p is set and
17138 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
17139 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
17140 if cursor_in_non_selected_windows is false.
17141 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
17142 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
17143 Notice if cursor gets overwritten.
17144 (notice_overwritten_cursor): Renamed from
17145 note_overwritten_text_cursor. Rewritten to take glyph widths
17146 into account, and to take X positions as parameters.
17147 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17148 around call to x_draw_glyphs.
17149 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17150 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17151 color to use for image glyph reliefs.
17152 (x_draw_image_relief): Accept zero tool_bar_button_relief.
17153 (glyph_rect): Remove unused variable `area'.
17154
17155 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
17156 some items.
17157 (x_set_internal_border_width): Set frame garbaged when window
17158 doesn't exist yet.
17159 (Fx_create_frame): Accept zero tool_bar_button_relief.
17160 (x_clear_image_1, four_corners_best, image_background)
17161 (image_background_transparent): New functions.
17162 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17163 (gs_format): Add `:background' entry.
17164 (lookup_image): Set IMG's background color if specified.
17165 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17166 when appropriate.
17167 (x_clear_image_1): Reset `background_valid' and
17168 `background_transparent_valid' fields.
17169 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17170 calculating it here. Set IMG's background_transparent field.
17171 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17172 (enum png_keyword_index): Add PNG_BACKGROUND.
17173 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17174 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17175 (enum gif_keyword_index): Add GIF_BACKGROUND.
17176 (enum gs_keyword_index): Add GS_BACKGROUND.
17177 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17178 Pre-calculate image background color where necessary.
17179 (x_create_x_image_and_pixmap, xbm_load, gs_load):
17180 Use display info's n_cbits entry for screen depth.
17181 (Fx_show_tip): Remove unused variables `buffer', `top',
17182 `left', `max_width' and `max_height'.
17183
17184 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
17185
17186 2001-11-18 Gerd Moellmann <gerd@gnu.org>
17187
17188 * puresize.h (BASE_PURESIZE): Increase to 750000.
17189
17190 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17191
17192 * frame.c (Fframe_live_p): Doc fix.
17193
17194 2001-11-18 Richard M. Stallman <rms@gnu.org>
17195
17196 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
17197 (message_dolog_marker3): New static variables hold three markers.
17198 (syms_of_xdisp): Initialize and staticpro them.
17199 (message_dolog): Use message_dolog_marker1..3 instead of
17200 allocating markers each time. Unchain them when done.
17201
17202 2001-11-17 Richard M. Stallman <rms@gnu.org>
17203
17204 * doc.c (Fsnarf_documentation): Doc fix.
17205
17206 2001-11-17 Andreas Schwab <schwab@suse.de>
17207
17208 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
17209
17210 2001-11-17 Richard M. Stallman <rms@gnu.org>
17211
17212 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
17213
17214 2001-11-17 Jason Rumney <jasonr@gnu.org>
17215
17216 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
17217
17218 2001-11-17 Gerd Moellmann <gerd@gnu.org>
17219
17220 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
17221 with invalid position.
17222
17223 2001-11-16 Richard M. Stallman <rms@gnu.org>
17224
17225 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
17226
17227 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
17228 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
17229 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
17230
17231 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
17232
17233 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
17234
17235 * fileio.c (build_annotations): Split off the tail.
17236 (build_annotations_2): New fun. Extracted from build_annotations.
17237 (Fwrite_region): Split the call to build_annotations into two
17238 calls to build_annotations and build_annotations_2.
17239
17240 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17241
17242 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
17243 clear_waiting_for_input with argument.
17244
17245 * xterm.h (x_update_cursor): Remove duplicated prototype.
17246
17247 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
17248
17249 * xterm.c (waiting_for_input): Remove unnecessary declaration.
17250
17251 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
17252
17253 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
17254
17255 * fileio.c (choose_write_coding_system): New fun, extracted
17256 from Fwrite_region.
17257 (Fwrite_region): Use it.
17258
17259 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
17260 (funcall_lambda, run_hook_with_args): Make static and add prototype.
17261 (ml_apply, find_handler_clause): Add prototype.
17262
17263 2001-11-16 Eli Zaretskii <eliz@gnu.org>
17264
17265 * config.in: Add #undef HAVE_COFF_H.
17266
17267 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
17268 Required for ISC 4.1.
17269
17270 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
17271
17272 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
17273 Andrew Wiseman <a.wiseman@btclick.com>.
17274
17275 2001-11-16 Kim F. Storm <storm@cua.dk>
17276
17277 The following changes are made to clean up the various internal
17278 references to the fringes to actually use the term `fringe' for
17279 them. Previously, they were called `flags areas', `bitmap areas',
17280 `left/right side of windows', or implicitly as `flags' or
17281 `bitmaps':
17282
17283 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
17284 Comments fixed. Use renamed symbols.
17285
17286 * dispnew.c: Comment fix. Use renamed symbols.
17287
17288 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
17289 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
17290 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
17291
17292 * msdos.c: Comment fix.
17293
17294 * w32fns.c: Use renamed symbols.
17295
17296 * w32term.c: Comment fixes. Use renamed symbols.
17297 (fringe_bitmap_type): Renamed from bitmap_type.
17298 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17299 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
17300 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
17301
17302 * w32term.h: Comment fixes. Use renamed symbols.
17303 (fringes_extra): Renamed from flags_areas_extra.
17304 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17305 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17306 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17307 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17308 (FRAME_X_LEFT_FRINGE_WIDTH):
17309 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17310 (FRAME_X_RIGHT_FRINGE_WIDTH):
17311 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17312
17313 * widget.c: Use renamed symbols.
17314
17315 * window.c: Comment fixes. Use renamed symbols.
17316 (coordinates-in-window-p): Doc fix.
17317
17318 * xdisp.c: Comment fixes. Use renamed symbols.
17319
17320 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
17321
17322 * xfns.c: Use renamed symbols.
17323
17324 * xterm.c: Comment fixes. Use renamed symbols.
17325 (fringe_bitmap_type): Renamed from bitmap_type.
17326 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17327 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
17328 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
17329
17330 * xterm.h: Comment fixes. Use renamed symbols.
17331 (fringes_extra): Renamed from flags_areas_extra.
17332 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17333 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17334 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17335 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17336 (FRAME_X_LEFT_FRINGE_WIDTH):
17337 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17338 (FRAME_X_RIGHT_FRINGE_WIDTH):
17339 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17340
17341 2001-11-15 Jason Rumney <jasonr@gnu.org>
17342
17343 * w32menu.c (add-menu-item): Make help_echo and radio buttons
17344 work for most menu items. From David Ponce
17345 <david.ponce@wanadoo.fr>.
17346
17347 2001-11-15 Gerd Moellmann <gerd@gnu.org>
17348
17349 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
17350 Some x_set_* function expect to be called even if old and new
17351 value are equal.
17352
17353 * xdisp.c (build_desired_tool_bar_string): Accept zero
17354 tool_bar_button_relief.
17355
17356 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
17357
17358 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
17359
17360 * xterm.c (x_draw_bar_cursor): If the background color of the
17361 glyph under the cursor equals the frame's cursor color, use
17362 the glyph's foreground color for drawing the bar cursor.
17363
17364 * dispnew.c (direct_output_forward_char): Fix character/byte
17365 position comparison.
17366
17367 2001-11-15 Miles Bader <miles@gnu.org>
17368
17369 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
17370 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
17371 Update arguments to find_field.
17372 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
17373 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
17374 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
17375 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
17376
17377 2001-11-14 Richard M. Stallman <rms@gnu.org>
17378
17379 * editfns.c (Fpropertize): Allow call with 1 arg.
17380
17381 * dispextern.h (image_background, image_background_transparent):
17382 Conditionalize on HAVE_X_WINDOWS.
17383
17384 2001-11-13 Richard M. Stallman <rms@gnu.org>
17385
17386 * print.c (Fprin1_to_string): Doc fix.
17387
17388 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
17389
17390 * floatfns.c (Fceiling, Ffloor): Doc fixes.
17391
17392 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
17393
17394 * fileio.c (Ffile_accessible_directory_p): Doc fix.
17395
17396 * eval.c (syms_of_eval): Doc fix.
17397
17398 * coding.c (syms_of_coding): Doc fix.
17399
17400 * doc.c (Fsnarf_documentation): Doc fix.
17401
17402 * dispnew.c (syms_of_display): Doc fix.
17403
17404 * category.c (Fget_unused_category): Doc fix.
17405
17406 * buffer.c (syms_of_buffer): Doc fixes.
17407
17408 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
17409
17410 * print.c (prin1, print): Doc fix.
17411
17412 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17413
17414 * fontset.h: Remove declarations of variables
17415 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
17416
17417 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
17418 `Vclip_large_size_font'.
17419
17420 2001-11-13 Jason Rumney <jasonr@gnu.org>
17421
17422 * w32fns.c: Doc fix.
17423
17424 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17425
17426 * xfaces.c (Fface_attributes_as_vector): Doc fix.
17427
17428 * fns.c: Doc fix.
17429
17430 * emacs.c: Doc fix.
17431
17432 * coding.c: Doc fix.
17433
17434 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
17435 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
17436 `new style' [w/`doc:' keyword].
17437
17438 2001-11-12 Richard M. Stallman <rms@gnu.org>
17439
17440 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
17441 LeaveNotify events. Only FocusIn and FocusOut do that now.
17442 (x_display_and_set_cursor): Do display hollow cursors in active
17443 minibuffer windows when they are not selected.
17444
17445 2001-11-12 Jason Rumney <jasonr@gnu.org>
17446
17447 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17448 * w32term.c: Change doc-string comments to `new style'
17449 [w/`doc:' keyword]. Doc fixes.
17450
17451 * w32fns.c: Don't define max.
17452 (Fx_open_connection): Only execute once.
17453
17454 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17455
17456 * ccl.c: Change macros to use do-while block instead of if-else.
17457 Use braces to follow GNU Coding Standards.
17458
17459 2001-11-11 Richard M. Stallman <rms@gnu.org>
17460
17461 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
17462
17463 * lread.c (read_escape): Use end_of_file_error for reporting eof.
17464
17465 * insdel.c (replace_range): Use adjust_markers_for_replace
17466 instead of adjust_markers_for_delete and adjust_markers_for_insert.
17467
17468 * intervals.h (set_text_properties, set_text_properties_1): Declare.
17469
17470 * textprop.c (set_text_properties_1): New subroutine
17471 broken out of set_text_properties.
17472 (set_text_properties): Use set_text_properties_1.
17473
17474 * intervals.c (graft_intervals_into_buffer):
17475 Use set_text_properties_1 to clear out properties.
17476
17477 * search.c (Freplace_match): Use replace_range to insert
17478 and delete. Don't request property inheritance from
17479 surrounding text.
17480
17481 2001-11-10 Jason Rumney <jasonr@gnu.org>
17482
17483 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
17484 vertical fonts. Allow them if face name is explicitly specified.
17485 Do not give up if we find a font that cannot be converted to an xlfd.
17486
17487 2001-11-10 Gerd Moellmann <gerd@gnu.org>
17488
17489 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
17490 instead of malloc/free.
17491
17492 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17493
17494 * xfaces.c (merge_face_vectors): Use braces to follow GNU
17495 Coding Standards.
17496 (Finternal_set_lisp_face_attribute): Likewise.
17497
17498 * buffer.c (Fbury_buffer): Likewise.
17499
17500 * indent.c (current_column_1): Remove unused variable `prev_col'.
17501
17502 * coding.c (encode_coding): Use precomputed value of `src'.
17503 (encode_coding): Remove unused variable `src_end'.
17504 (code_convert_region): Remove unused variables `count'.
17505
17506 2001-11-07 Jason Rumney <jasonr@gnu.org>
17507
17508 * w32term.c (x_display_and_set_cursor): Do not move system caret
17509 if cursor_glyph is NULL.
17510
17511 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17512
17513 * keymap.c (access_keymap): Fix compilation error.
17514
17515 2001-11-07 Miles Bader <miles@gnu.org>
17516
17517 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
17518
17519 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17520
17521 * intervals.c (graft_intervals_into_buffer):
17522 Remove #ifdef'd-out code.
17523 (graft_intervals_into_buffer): Remove unused variable `middle'.
17524
17525 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
17526 code (eval-current-buffer).
17527 Change doc-string comments to `new style' [w/`doc:' keyword].
17528
17529 2001-11-06 Richard M. Stallman <rms@gnu.org>
17530
17531 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
17532
17533 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
17534
17535 * lread.c (read1): Fix behavior with nested backquoting.
17536
17537 * keyboard.c (make_lispy_event): Check integerness and fix
17538 Lisp_Object/int mixup.
17539
17540 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17541
17542 * fns.c (copy_hash_table): Remove unused variable `v'.
17543
17544 * fontset.c (fontset_font_pattern): Remove unused variable
17545 `family_registry'.
17546
17547 * indent.c (current_column_1): Remove unused variable `prev_col'.
17548
17549 2001-11-05 Richard M. Stallman <rms@gnu.org>
17550
17551 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
17552
17553 * buffer.c (Fkill_buffer): Don't delete auto save file
17554 if buffer is modified.
17555
17556 2001-11-05 Andrew Innes <andrewi@gnu.org>
17557
17558 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
17559 CHECK_NUMBER_CDR.
17560
17561 2001-11-05 Richard M. Stallman <rms@gnu.org>
17562
17563 * unexelf.c (unexec): Minor changes; clean up comments.
17564
17565 2001-11-05 Sam Steingold <sds@gnu.org>
17566
17567 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
17568
17569 2001-11-05 Andreas Schwab <schwab@suse.de>
17570
17571 * sound.c (sound_perror): Save errno from being clobbered.
17572
17573 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
17574
17575 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
17576 the program image directly.
17577
17578 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17579
17580 * buffer.h (Fbuffer_local_value): Add prototype.
17581
17582 2001-11-04 Richard M. Stallman <rms@gnu.org>
17583
17584 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
17585 and CHECK_BUFFER.
17586
17587 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
17588 (record_char): Likewise.
17589
17590 * keyboard.c (make_lispy_event): Don't insist a drag event must
17591 move to a different buffer position. Instead, check for moving at
17592 least double_click_fuzz.
17593
17594 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
17595
17596 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
17597
17598 * indent.c (current_column_1, Fmove_to_column): Separate the code
17599 for display-table glyphs from the code for buffer text, to fix
17600 bugs in the former.
17601
17602 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
17603
17604 * buffer.c (Fbuffer_local_value): New function.
17605 (syms_of_buffer): Defsubr it.
17606
17607 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
17608 value of `cursor-in-non-selected-windows'.
17609
17610 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
17611 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
17612 (syms_of_xdisp): Initialize it.
17613
17614 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17615
17616 * xfns.c (Fx_create_frame): Doc fix.
17617
17618 * coding.c: Change doc-string comments to `new style' [w/`doc:'
17619 keyword].
17620
17621 * eval.c (top_level_value, top_level_set): Remove commented and
17622 #ifdef'd-out code.
17623 (Fdefvar): Fix usage in doc-string.
17624
17625 2001-11-03 Richard M. Stallman <rms@gnu.org>
17626
17627 * xfns.c: Include unistd.h, if it exists.
17628
17629 * editfns.c: Move the include of ctype.h after unistd.h.
17630
17631 * gmalloc.c: Test BROKEN_PROTOTYPES.
17632
17633 2001-11-03 Ken Raeburn <raeburn@gnu.org>
17634
17635 * lisp.h (CHECK_STRING_CAR): New macro.
17636 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
17637 treating XCAR and XCDR as lvalues.
17638 (openp): Use CHECK_STRING_CAR.
17639 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
17640
17641 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
17642
17643 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
17644 (SIGMASKTYPE): Define.
17645
17646 * syssignal.h (sigunblock): Don't define if already defined.
17647
17648 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17649
17650 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
17651 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
17652 Fix typos in comments.
17653
17654 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
17655 and #ifdef'd-out code.
17656 Fix and reindent comments.
17657
17658 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
17659
17660 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
17661 argument `i' in macros.
17662
17663 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
17664 `i' in macros.
17665
17666 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
17667 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
17668 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
17669 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
17670 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
17671 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
17672 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
17673 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
17674 in macros.
17675
17676 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17677 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
17678 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
17679 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
17680 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
17681 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
17682 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
17683 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
17684 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
17685 (remove unused second argument).
17686
17687 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
17688
17689 * syntax.c (describe_syntax): New wrapper.
17690 (Finternal_describe_syntax_value): Rename from describe_syntax.
17691 Don't insert space at front and \n at the end.
17692 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
17693
17694 * regex.c (re_wctype): Try to fix some warnings.
17695 (regcomp, regexec): Don't forget the __restrict.
17696
17697 2001-11-02 Richard M. Stallman <rms@gnu.org>
17698
17699 * textprop.c (Fget_char_property): Doc fix.
17700
17701 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17702
17703 * process.c (Fstart_process): Add usage to doc-string.
17704
17705 * data.c (Fsetq_default): Ditto.
17706
17707 * callint.c (Finteractive): Ditto.
17708
17709 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
17710
17711 * macros.c: Don't include keymap.h any more.
17712
17713 2001-11-01 Richard M. Stallman <rms@gnu.org>
17714
17715 * data.c (Fmake_local_variable): Doc fix.
17716
17717 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
17718 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
17719
17720 * keymap.c (Fdescribe_buffer_bindings): Print character property
17721 bindings along with or instead of the buffer local map.
17722 Make the overriding maps override what they should.
17723
17724 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17725
17726 * window.c (grow_mini_window): Fix typo in comment.
17727
17728 2001-11-01 Gerd Moellmann <gerd@gnu.org>
17729
17730 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
17731 (XTset_vertical_scroll_bar): Likewise.
17732
17733 * xfns.c (x_build_heuristic_mask): Use four_corners_best
17734 instead of IMAGE_BACKGROUND.
17735
17736 * xfns.c (four_corners_best): Reindent.
17737
17738 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
17739 Handle :box so that it is possible to specify sexprs.
17740
17741 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
17742
17743 * s/hpux11.h: New file.
17744
17745 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17746
17747 * emacs.c (USAGE1): Show command line option --no-window-system
17748 instead of --no-windows in usage.
17749 (standard_args): Rename --no-windows to --no-window-system.
17750 (bug_reporting_address): Follow Emacs coding conventions.
17751
17752 * eval.c (Fcommandp): Doc fix.
17753 Change doc-string comments to `new style' [w/`doc:' keyword].
17754
17755 * frame.c (Fframe_live_p): Doc fix.
17756
17757 * buffer.c (selective-display-ellipses): Doc fix.
17758
17759 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17760
17761 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
17762
17763 * xfaces.c (realize_x_face): If C is not a single-byte character,
17764 set the face's colors_copied_bitwise_p instead of the defaulted_p
17765 members which have a different meaning.
17766 (free_face_colors): Do nothing for a face whose colors have been
17767 copied bitwise.
17768
17769 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
17770
17771 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17772
17773 * marker.c, mocklisp.c: Change doc-string comments to `new style'
17774 [w/`doc:' keyword].
17775
17776 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17777
17778 * fns.c (require_unwind): Return Lisp_Object.
17779
17780 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17781
17782 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
17783 (last-input-char): Revert doc-string to be the same as the
17784 doc-string of `last-input-event'.
17785
17786 * xdisp.c: Fix typos in comments.
17787
17788 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17789
17790 * window.c (grow_mini_window): Handle case that the root
17791 window is already smaller than the nominal mininum height.
17792
17793 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
17794
17795 * emacs.c (main): Don't call keys_of_macros any more.
17796
17797 * lisp.h (keys_of_macros): Remove.
17798
17799 * macros.c (keys_of_macros): Remove.
17800
17801 * xfaces.c (Fface_attribute_relative_p): Declare args.
17802
17803 2001-10-30 Jason Rumney <jasonr@gnu.org>
17804
17805 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
17806 (enum_font_cb2): Ignore fonts with vertical orientation.
17807
17808 2001-10-30 Richard M. Stallman <rms@gnu.org>
17809
17810 * keyboard.c (Finput_pending_p): Doc fix.
17811
17812 2001-10-30 Gerd Moellmann <gerd@gnu.org>
17813
17814 * xterm.c (x_after_update_window_line): Don't run the code
17815 clearing in borders for rows whose visible height is 0.
17816
17817 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
17818 resized_p flag is set. If not set, use the much less flickering
17819 method previously used.
17820
17821 * dispnew.c (change_frame_size_1): Set frame's resized_p.
17822
17823 * frame.h (struct frame) <resized_p>: New member.
17824
17825 * lread.c (to_multibyte): Ensure read_buffer is at least twice
17826 as large as the number of bytes to convert.
17827
17828 * lread.c (to_multibyte): New function.
17829 (read1): Use it.
17830
17831 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
17832
17833 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
17834
17835 2001-10-30 Gerd Moellmann <gerd@gnu.org>
17836
17837 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
17838 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17839 if the row's fill_line_p is set and drawing the last glyph with
17840 DRAW_IMAGE_{RAISED,SUNKEN}.
17841
17842 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17843
17844 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
17845
17846 * xmenu.c: Include coding.h and charset.h.
17847 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17848 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17849 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17850 Explicitly set wv->help. Use `TRUE' rather than `True'.
17851 (menu_help_callback): Use empty_string.
17852
17853 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17854 (Fx_popup_dialog): Explicitly init f.
17855 (w32_menu_display_help): Use empty_string.
17856
17857 2001-10-29 Richard M. Stallman <rms@gnu.org>
17858
17859 * fns.c (Frequire): Detect recursive try to require the same
17860 feature 3 or more levels deep, and get error.
17861 (require_unwind): New subroutine.
17862 (require_nesting_list): New variable.
17863 (syms_of_fns): Init and staticpro it.
17864
17865 * print.c (print_object): Clarify indication of insertion type.
17866
17867 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
17868
17869 * coding.c (syms_of_coding): Document that locale-coding-system is
17870 used for decoding input on X.
17871
17872 * window.c (Fscroll_left, Fscroll_right): Doc fix.
17873
17874 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17875
17876 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17877 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17878
17879 2001-10-29 Gerd Moellmann <gerd@gnu.org>
17880
17881 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17882 use NO_CURSOR if cursor_in_non_selected_windows is false.
17883
17884 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17885 the slant attribute if FRAME is t.
17886
17887 * xfns.c (x_set_internal_border_width): Set frame garbaged
17888 when X window doesn't exist yet.
17889
17890 * xterm.c (x_after_update_window_line): Clear internal border
17891 in different circumstances.
17892
17893 * xterm.c (XTread_socket) <KeyPress>: Don't use
17894 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
17895 <handa@etl.go.jp>.
17896
17897 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
17898
17899 * m/ibms390.h: New file. From Adam Thornton
17900 <athornton@sinenomine.net>.
17901
17902 2001-10-28 Gerd Moellmann <gerd@gnu.org>
17903
17904 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
17905
17906 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17907 a loop counter.
17908
17909 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17910
17911 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
17912
17913 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17914 keyword].
17915 Fix typos in comments.
17916
17917 * emacs.c (bug_reporting_address): New function.
17918 Use it when displaying usage message.
17919
17920 * minibuf.c (read_minibuf): Remove unused external declaration of
17921 variable `Qread_only'.
17922
17923 * keymap.c (access_keymap): Remove unused variable `charset'.
17924
17925 2001-10-28 Miles Bader <miles@gnu.org>
17926
17927 * xfaces.c (merge_face_heights): Handle TO being relative as well.
17928 Remove #ifdef'd-out code.
17929 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17930 (syms_of_xfaces): Initialize them.
17931
17932 2001-10-27 Jason Rumney <jasonr@gnu.org>
17933
17934 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17935 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17936 position using the system caret.
17937
17938 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17939 (w32_system_caret_height, w32_system_caret_x)
17940 (w32_system_caret_y): New variables for tracking system caret.
17941 (w32_initialize): Initialize them.
17942 (x_display_and_set_cursor): Make system caret follow the active cursor.
17943
17944 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17945 New messages types.
17946
17947 * w32term.c (note_mouse_highlight): Clear old help_echo.
17948
17949 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17950
17951 * xterm.c: Fix typo in a comment.
17952
17953 * emacs.c: Fix typos in comments.
17954 Remove unnecessary spaces.
17955 Change doc-string comments to `new style' [w/`doc:' keyword].
17956 (USAGE2): Fix typos in usage string.
17957
17958 * xterm.c: Fix typo in a comment.
17959
17960 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17961 emacs.c.
17962
17963 2001-10-27 Gerd Moellmann <gerd@gnu.org>
17964
17965 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
17966 instead of 1/2 line_height in the heuristic for skipping
17967 farther backward when target_y was not reached.
17968
17969 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17970 Display errno only if non-zero.
17971 (sound_warning): New function.
17972 (vox_configure): Don't treat failing to set sample rate as error.
17973 (various places): Improve error messages.
17974
17975 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17976
17977 * fileio.c (Faccess_file): Run the argument filename through
17978 Fexpand_file_name, before using it.
17979
17980 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17981 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17982
17983 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17984
17985 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17986
17987 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17988 Fix clearing in the case of scroll bars on the right.
17989
17990 2001-10-26 Juanma Barranquero <lektu@terra.es>
17991
17992 * w32gui.h (XImage): Add a dummy typedef.
17993
17994 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17995
17996 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
17997
17998 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17999
18000 * frame.c (Fframe_parameter): Fix last change.
18001
18002 * fileio.c: Revert last change (which removed old commented-out
18003 version of expand-file-name). Add a comment that explains why
18004 this old version should not be removed.
18005
18006 2001-10-25 Gerd Moellmann <gerd@gnu.org>
18007
18008 * frame.c (Fframe_parameter): Fix a bug whereby some
18009 ``artificial'' frame parameters, like `minibuffer' were not
18010 obtained by calling Fframe_parameters.
18011
18012 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
18013 cursor differently.
18014
18015 * xdisp.c (move_it_vertically_backward): Compute line height
18016 differently. Add heuristic to try to be more compatible to 20.x.
18017
18018 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
18019
18020 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
18021
18022 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
18023 boolean.
18024
18025 2001-10-25 Miles Bader <miles@gnu.org>
18026
18027 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
18028 BG is a pointer to a structure, not a structure.
18029 (gif_format, png_format): Add missing commas.
18030
18031 2001-10-24 Richard M. Stallman <rms@gnu.org>
18032
18033 * xfaces.c (Fface_attributes_as_vector): New function.
18034 (syms_of_xfaces): Defsubr it.
18035
18036 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18037
18038 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
18039 variable `area'.
18040
18041 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18042
18043 * search.c (scan_newline): Remove unused variable `selective_display'.
18044
18045 2001-10-25 Miles Bader <miles@gnu.org>
18046
18047 * dispextern.h (struct image): Add `background',
18048 `background_valid', and `background_transparent' fields.
18049 (image_background, image_background_transparent): New declarations.
18050 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
18051 * xfns.c (image_background, image_background_transparent)
18052 (four_corners_best): New functions.
18053 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
18054 (gs_format): Add `:background' entry.
18055 (lookup_image): Set IMG's background color if specified.
18056 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18057 when appropriate.
18058 (x_clear_image_1): Reset `background_valid' and
18059 `background_transparent_valid' fields.
18060 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18061 calculating it here. Set IMG's background_transparent field.
18062 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18063 (enum png_keyword_index): Add PNG_BACKGROUND.
18064 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18065 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18066 (enum gif_keyword_index): Add GIF_BACKGROUND.
18067 (enum gs_keyword_index): Add GS_BACKGROUND.
18068 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
18069 Pre-calculate image background color where necessary.
18070 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18071 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18072 color to use for image glyph reliefs.
18073
18074 2001-10-24 Gerd Moellmann <gerd@gnu.org>
18075
18076 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
18077 in full-width rows.
18078
18079 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
18080 Fix clearing of area not covered by scroll bar.
18081
18082 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18083
18084 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
18085 and `real_start'.
18086 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
18087 (glyph_rect): Remove unused variable `area'.
18088
18089 2001-10-24 Gerd Moellmann <gerd@gnu.org>
18090
18091 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
18092
18093 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
18094 (row_containing_pos): Take additional argument DY.
18095 Treat rows ending in middle of char differently.
18096 (display_line): Handle tabs on window systems differently.
18097
18098 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
18099 with additional argument.
18100
18101 * dispextern.h (row_containing_pos): Adjust prototype.
18102
18103 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
18104 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
18105 (try_window_id, try_window_reusing_current_matrix)
18106 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
18107 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
18108
18109 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18110
18111 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
18112 gnuemacs).
18113 (HAVE_BOXES): Fix typo in comment.
18114 (push_menu_pane): Fix typo in comment.
18115
18116 * xdisp.c: (display_prop_string_p): Remove unused local declaration
18117 of `Qwhen'.
18118 (single_display_prop_string_p): Remove unused local declarations
18119 of `Qwhen' and `Qmargin'.
18120 (string_buffer_position): Remove unused variable `around'.
18121 (store_frame_title): Remove unused variable `width'.
18122
18123 * window.c: Don't define max.
18124 (coordinates_in_window): Remove unused variable `uy'.
18125
18126 * widget.c: Don't define max.
18127
18128 * process.c: Don't define max.
18129 (create_process): Remove unused variable `buffer'.
18130
18131 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18132
18133 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
18134
18135 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
18136
18137 * xfaces.c (Finternal_set_lisp_face_attribute)
18138 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
18139 frame is on a windowed display.
18140
18141 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18142
18143 * dispnew.c (sync_window_with_frame_matrix_rows):
18144 Fix handling of windows which aren't full-width, fix handling
18145 of marginal areas.
18146
18147 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
18148
18149 2001-10-23 Andreas Schwab <schwab@suse.de>
18150
18151 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
18152 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
18153
18154 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18155
18156 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
18157 REAL_END. Notice if cursor gets overwritten.
18158 (notice_overwritten_cursor): Take X positions as parameters.
18159 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18160 around call to x_draw_glyphs.
18161
18162 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18163
18164 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
18165 instead of C) and usage.
18166
18167 * editfns.c (char-to-string): Fix argument names (use CHAR instead
18168 of C) and usage.
18169
18170 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
18171 `left', `max_width' and `max_height'.
18172
18173 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18174
18175 * xdisp.c (display_line): For a tab continued to the next line,
18176 set row's ends_in_middle_of_char_p.
18177
18178 2001-10-22 Gerd Moellmann <gerd@gnu.org>
18179
18180 * xdisp.c (display_line): Fix computation of continuation lines
18181 width for TABs.
18182
18183 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18184
18185 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
18186 `Qlaplace'.
18187
18188 * fileio.c: Remove unused code.
18189
18190 2001-10-22 Miles Bader <miles@gnu.org>
18191
18192 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
18193 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
18194 Remove `DOC_STRINGS_IN_COMMENTS' cases.
18195
18196 2001-10-21 Jason Rumney <jasonr@gnu.org>
18197
18198 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
18199
18200 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
18201
18202 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
18203 (Finsert_string): Avoid the multi-line string literals warning.
18204
18205 2001-10-22 Miles Bader <miles@gnu.org>
18206
18207 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
18208 (Fdocumentation): Don't use it.
18209 (syms_of_doc): Don't initialize it.
18210
18211 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
18212 * print.c (Fwith_output_to_temp_buffer): Likewise.
18213 * window.c (Fsave_window_excursion): Likewise.
18214 * editfns.c (Fsave_excursion, Fsave_current_buffer)
18215 (Fsave_restriction): Likewise.
18216 * eval.c (Frun_hooks, Frun_hook_with_args)
18217 (Frun_hook_with_args_until_failure)
18218 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
18219 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
18220 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
18221 (Funwind_protect, Fcondition_case): Likewise.
18222 * coding.c (Ffind_operation_coding_system): Likewise.
18223 * keyboard.c (Ftrack_mouse): Likewise.
18224
18225 2001-10-21 Miles Bader <miles@gnu.org>
18226
18227 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
18228 (Fmake_hash_table): Add usage: string to doc string.
18229 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
18230 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
18231 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
18232 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
18233 (Fml_prefix_argument_loop): Likewise.
18234
18235 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18236
18237 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
18238
18239 * sysdep.c (init_sys_modes): Change doc-string comments to `new
18240 style' [w/`doc:' keyword].
18241
18242 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
18243 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
18244 comments to `new style' [w/`doc:' keyword].
18245
18246 2001-10-21 Jason Rumney <jasonr@gnu.org>
18247
18248 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
18249
18250 * w32term.c (remember_mouse_glyph): New function.
18251 (w32_mouse_position): Use it.
18252 (note_mouse_movement): If the mouse moved off the glyph, remember
18253 its new position.
18254
18255 * w32term.h (struct w32_output): Correct spelling of x_compatible.
18256 (w32_display_info): Add mouse_face_overlay.
18257
18258 * w32term.c (notice_overwritten_cursor): Renamed from
18259 note_overwritten_text_cursor. Rewritten to take glyph widths into
18260 account.
18261 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
18262 (fast_find_string_pos): New function.
18263 (fast_find_position): Return the correct vpos. Add parameter
18264 STOP. In the final row, stop before glyphs having STOP as object.
18265 Don't consider glyphs that are not from a buffer.
18266 (fast_find_position) [0]: Add a presumably more correct version
18267 for after 21.1.
18268 (expose_window_tree, expose_frame): Don't compute intersections here.
18269 (expose_window): Do it here instead.
18270 (expose_window_tree, expose_window, expose_line): Return 1 when
18271 overwriting mouse-face.
18272 (expose_window): If W is the window currently being updated, mark
18273 the frame garbaged.
18274 (expose_frame): If mouse-face was overwritten, redo it.
18275 (x_use_underline_position_properties): New variable.
18276 (syms_of_xterm): DEFVAR_BOOL it.
18277 (x_draw_glyph_string): Add comment to use it in future.
18278 (x_draw_glyph_string): Restore clipping after drawing box.
18279 Fix a computation of the underline position.
18280 (w32_get_glyph_string_clip_rect): Minor cleanup.
18281 (x_fill_stretch_glyph_string): Remove an assertion.
18282 (x_produce_glyphs): Don't convert multibyte characters
18283 to unibyte characters in unibyte buffers.
18284 (cursor_in_mouse_face_p): New function.
18285 (x_draw_stretch_glyph_string): Use it to choose a different GC
18286 when drawing a cursor within highlighted text. Don't draw
18287 background again if it has already been drawn.
18288 (x_draw_glyph_string_box): Don't draw a full-width
18289 box just because the glyph row's full_width_p flag is set.
18290 (x_draw_glyphs): Fix computation of rightmost x for
18291 full-width rows.
18292 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
18293 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
18294 change bottom shadow accordingly. Some cleanup.
18295 (x_update_window_end): Handle overwritten mouse face
18296 also for tool bar windows.
18297 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
18298 DRAW is DRAW_IMAGE_RAISED.
18299 (clear_mouse_face): Return 1 if text with mouse face was
18300 actually redrawn. Make the function static.
18301 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
18302 optimize away highlighting if we pass over that same overlay again.
18303 (note_mouse_highlight): Call mouse_face_overlay_overlaps
18304 to detect a case where we have to highlight a different region
18305 despite not having left the currently highlighted region.
18306 Set mouse_face_overlay in the x_display_info. Avoid changing the
18307 mouse pointer shape when show_mouse_face has already done it, or
18308 there is no need. Handle mouse-face and help-echo in strings.
18309 (glyph_rect): New function.
18310 (w32_mouse_position): Use it to raise the threshold for mouse
18311 movement event generation.
18312 (w32_initialize_display_info): Initialize the x_display_info's
18313 mouse_face_overlay.
18314 (w32_set_vertical_scroll_bar): Don't clear a zero height
18315 or width area.
18316 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
18317 a widget to zero height.
18318
18319 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
18320 Protect unibyte strings created by replacing their multibyte
18321 equivalents in menu_items.
18322 (w32_menu_show): Don't overwrite an item's name with its key
18323 description in case the description is a multibyte string.
18324 (single_submenu): Some cleanup.
18325
18326 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
18327 (postprocess_image): New function.
18328 (lookup_image): Call it for all image types except PostScript.
18329 (x_kill_gs_process): Call postprocess_image.
18330 (tiff_error_handler, tiff_warning_handler): New functions.
18331 (tiff_load): Install them as handlers.
18332 (x_kill_gs_process): Recognize if someone has cleared the image
18333 cache under us.
18334 (valid_image_p): Protect better against invalid image
18335 specifications. Previous code could signal an error.
18336 (Fx_hide_tip, Fshow_tip): Doc fix.
18337 (Fv_max_tooltip_size): New variable.
18338 (syns_of_xfns): DEFVAR_LISP it.
18339 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
18340 window buffer to *tip* right after creating the frame. Set frame's
18341 window_width. Use a maximum tooltip size specified by
18342 Vx_max_tooltip_size, if that has valid contents.
18343 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
18344 Make sure the tooltip is completely visible.
18345 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
18346 (Fx_create_frame): Adjust the frame's height for presence
18347 of the tool bar before calling x_figure_window_size.
18348 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
18349 when the window gets smaller.
18350 (x_set_foreground_color): Set frame's cursor_pixel.
18351 (x_set_foreground_color, x_set_background_color): Cleaned up.
18352 (x_set_font): Handle case of x_new_fontset returning the same name
18353 as before, although there was a change in fontsets.
18354
18355 2001-10-21 Miles Bader <miles@gnu.org>
18356
18357 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
18358 (Flogxor): Add usage: string to doc string.
18359 * charset.c (Fstring): Likewise.
18360 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
18361 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
18362
18363 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18364
18365 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
18366
18367 * alloc.c: Reindent DEFUNs with doc: keywords.
18368
18369 * abbrev.c (Finsert_abbrev_table_description): Reindent.
18370
18371 * frame.c: Change doc-string comments to `new style' [w/`doc:'
18372 keyword].
18373
18374 See ChangeLog.9 for earlier changes.
18375
18376 ;; Local Variables:
18377 ;; coding: iso-2022-7bit
18378 ;; End:
18379
18380 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
18381 Copying and distribution of this file, with or without modification,
18382 are permitted provided the copyright notice and this notice are preserved.
18383
18384 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4