* xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8630721e
CY
12006-11-03 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2
3 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
4 avoid gcc 2.95 error.
5
ffbdf67b
CY
62006-11-03 Chong Yidong <cyd@stupidchicken.com>
7
8 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
9 wicon is null, insert an empty button.
10
45a26c42
JD
112006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12
13 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
14 window.
15
b224de9b
JB
162006-11-02 Juanma Barranquero <lekktu@gmail.com>
17
18 * emacs.c (Fkill_emacs): Fix typo in docstring.
19
73da71f9
YM
202006-11-02 Nozomu Ando <nand@mac.com>
21
22 * unexmacosx.c (mach_header, segment_command, vm_region, section)
23 [_LP64]: New defines.
24 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
25 (MH_MAGIC) [_LP64]: Redefine.
26 (delta): Remove variable.
27 (curr_file_offset, pagesize): New variables.
28 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
29 (data_segment_old_fileoff): Initialize explicitly.
30 (print_region, unexec_regions_recorder, print_load_command_name)
31 (copy_segment, copy_data_segment): Use long format in printf.
32 (MAX_UNEXEC_REGIONS): Increase to 400.
33 (unexec_regions_recorder): Don't warn too many regions here.
34 (find_emacs_zone_regions): Warn too many regions here.
35 (print_load_command_name) [_LP64]: Show correct load command name.
36 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
37 Show starting virtual memory address. Don't show ending file offset.
38 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
39 (dump_it): Use new local variable `linkedit_delta' and pass to them.
40 Error if trying to handle multiple DATA segments.
41 (unexec): Initialize variable `pagesize'.
42
ebc20ca0
JB
432006-11-01 Juanma Barranquero <lekktu@gmail.com>
44
45 * eval.c (Fcatch): Doc fix.
46
6ceb8058
YM
472006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
48
49 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
50 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
51 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
52 (xpm_load_image): Add const qualifier to arguments.
53 [MAC_OS] (xpm_color_key_strings): Make static const.
54
55 * mac.c (create_apple_event_from_event_ref)
56 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
57 (parse_include_file, parse_binding, parse_component)
58 (parse_resource_name, parse_value, parse_resource_line)
59 (xrm_merge_string_database, xrm_get_resource)
60 (xrm_get_preference_database): Add const qualifier to arguments.
61 [MAC_OSX] (sys_select): Make variable `context' static const.
62
63 * macfns.c (mac_color_map): Make static const.
64 (mac_color_map_lookup): Add const qualifier to arguments.
65
66 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
67 static const.
68 (name_is_separator): Add const qualifier to arguments.
69
70 * macselect.c (init_service_handler): Make variable `specs' static
71 const.
72
73 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
74 `swap_nibbles' static const.
75 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
76 `tags', `sizes', `values' static const.
77 (mac_draw_string_common): Make variables `context' static. Make
78 variables `tags', `sizes', and `values' static const.
79 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
80 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
81 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
82 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
83 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
84 qualifier to arguments.
85 (xlfd_scalable_fields, keycode_to_xkeysym_table)
86 (fn_keycode_to_keycode_table): Make static const.
87 (mac_load_query_font): Make variables `tags', `sizes', `values',
88 `types', and `selectors' static const.
89 (mac_handle_command_event, mac_handle_window_event): Make
90 variables `names' and `types' static const.
91 (init_command_handler, install_window_handler): Make variables
92 `specs*' static const.
93 (mac_handle_font_event, mac_handle_text_input_event)
94 (mac_store_service_event): Make variables `names' and `types'
95 const. Make variables `names_*' and `types_*' static const.
96
97 * macterm.h (create_apple_event_from_event_ref)
98 (create_apple_event_from_drag_ref, xrm_merge_string_database)
99 (xrm_get_resource, xrm_get_preference_database): Add const
100 qualifier to arguments in externs.
101
7147863a
KH
1022006-10-31 Kenichi Handa <handa@m17n.org>
103
104 * xfns.c (xic_create_xfontset): Fix previous change.
105
78667db7
CY
1062006-10-30 Chong Yidong <cyd@stupidchicken.com>
107
108 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
109 /usr/pkg/lib to library search path.
110
ebc20ca0 1112006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
8d31e373
CY
112
113 * ralloc.c (relinquish): Use a long for excess space counter to
114 handle 64-bit case correctly.
115
1dbfd8e3
CY
1162006-10-29 Jeramey Crawford <jeramey@jeramey.com>
117
118 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
119
856bb2b0
JB
1202006-10-29 Juanma Barranquero <lekktu@gmail.com>
121
122 * window.c (Fdisplay_buffer): Fix typo in docstring.
123
4975e695
JB
1242006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
125
126 * w32term.c (x_draw_glyph_string_foreground): Set background mode
127 to TRANSPARENT before using overstrike to simulate bold faces.
128
129 * xfaces.c (best_matching_font): Fix logic to decide whether to
130 use overstriking to simulate bold-face (it was reversed).
131
cbfe778a
KS
1322006-10-23 Kim F. Storm <storm@cua.dk>
133
4975e695
JB
134 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
135 initialized.
a4614668 136
cbfe778a
KS
137 * keyboard.c (read_char): Make an element (t . EVENT) in
138 unread-command-events add EVENT to the current command's key sequence.
139 (syms_of_keyboard) <unread-command-events>: Update doc.
140
627fb581
RS
1412006-10-21 Richard Stallman <rms@gnu.org>
142
143 * minibuf.c (Vread_expression_map): Define here.
144 (Qread_expression_history): New variable.
145 (syms_of_minibuf): Initialize them.
146 (Feval_minibuffer): Use Vread_expression_map and
147 Qread_expression_history.
148
cd987aaa
KH
1492006-10-21 Kenichi Handa <handa@m17n.org>
150
151 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
152 card, change it to "*".
153 (xic_create_xfontset): Call XCreateFontSet for each single
154 fontname in fontsetname.
155
55b41ef5
CY
1562006-10-19 Chong Yidong <cyd@stupidchicken.com>
157
158 * callint.c (callint_message): Convert to a Lisp string.
159 (syms_of_callint): Initialize it.
160 (callint_message_size): Var deleted.
161 (Fcall_interactively): Use Fformat instead of doprnt to construct
162 prompt string.
163
cc7aa8dc
KS
1642006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
165
166 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
167
045b1908
YM
1682006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
169
170 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
171 New variable.
172 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
173
866f8518
JD
1742006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
175
176 * xselect.c (x_handle_selection_request): If the converted_selection
177 is NIL or XCDR (converted_selection) is NIL, decline the request.
178
b43da352
JD
1792006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
180
181 * gtkutil.c (get_utf8_string): Remove warnings with casts.
182 (xg_tool_bar_button_cb): Ditto
183 (xg_tool_bar_callback): Ditto.
184
7c682cf1
YM
1852006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
186
187 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
188 variable ch_dim.
189 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
190 menu bar window matrices on non-X systems.
191
192 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
193
194 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
195 adjustment is needed.
196 (mac_load_query_font): Check if width and height are positive.
197
563964ae
RS
1982006-10-14 Richard Stallman <rms@gnu.org>
199
200 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
201
98721beb
CY
2022006-10-13 Chong Yidong <cyd@stupidchicken.com>
203
204 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
205 title.
206
eae637ec
CY
2072006-10-12 Chong Yidong <cyd@stupidchicken.com>
208
209 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
210 XCAR and XINT.
211
431feaf6
RF
2122006-10-12 Romain Francoise <romain@orebokech.com>
213
214 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
215
de9855d5
SM
2162006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
217
b70e1a2b
SM
218 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
219
220 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
221
222 * xterm.c (x_check_expected_move): Remove unused var `count'.
223
de9855d5
SM
224 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
225 Fdefalias is not declared in any *.h file.
226
394ccd7d
CY
2272006-10-09 Chong Yidong <cyd@stupidchicken.com>
228
2bcac766
CY
229 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
230
231 * keyboard.c (command_loop_1): Handle non-number values of
232 `minibuffer-message-timeout'.
233 (Fexecute_extended_command): Fix typo.
234
394ccd7d
CY
235 * minibuf.c (temp_echo_area_glyphs): Sit for
236 `minibuffer-message-timeout' seconds.
237
bb420759
YM
2382006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
239
de9855d5
SM
240 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
241 Add argument OVERSTRIKE_P.
bb420759
YM
242 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
243 Support overstrike.
244 (mac_draw_string, mac_draw_string_16): Remove functions.
245 (x_draw_glyph_string_foreground): Use overstrike when needed.
de9855d5
SM
246 (x_draw_composite_glyph_string_foreground): Likewise.
247 Use mac_draw_image_string_16 instead of mac_draw_string_16.
4975e695
JB
248 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
249 F instead of DPY. All uses changed. Don't save/restore font.
bb420759 250
2770d589
JR
2512006-10-07 Ralf Angeli <angeli@caeruleus.net>
252
253 * w32fns.c (w32_createwindow): Honour left and top positions if
254 supplied explicitly.
255
ee37d135
KS
2562006-10-06 Kim F. Storm <storm@cua.dk>
257
258 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
259
26c34ec2
CY
2602006-10-05 Chong Yidong <cyd@stupidchicken.com>
261
262 * frame.c (Qinhibit_face_set_after_frame_default): New var.
263 (syms_of_frame): Initialize it.
264 (x_set_frame_parameters): Avoid resetting :font attributes to the
265 new-frame defaults.
266
54dd3310
SM
2672006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
268
269 * lisp.h (clear_regexp_cache): Declare.
270
271 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
272 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
273 (clear_regexp_cache): Only flush those regexps which depend on
274 a syntax-table.
275
276 * regex.c (regex_compile): Set the new `used_syntax' bit.
277
278 * regex.h: Remove file local variables.
279 (struct re_pattern_buffer): New field `used_syntax'.
280
73812be6
KS
2812006-10-03 Kim F. Storm <storm@cua.dk>
282
283 * process.c (list_processes_1): Run sentinels before removing dead
284 processes. Also remove `closed' network connections.
285
2201c41c
SM
2862006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
287
288 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
289
79e01e93
EZ
2902006-09-30 Eli Zaretskii <eliz@gnu.org>
291
4975e695 292 * config.in: Regenerated.
79e01e93 293
f9df5f68
JL
2942006-09-29 Juri Linkov <juri@jurta.org>
295
296 * buffer.c (syms_of_buffer): Reorder coding systems in the
297 docstring of %z to the real order displayed in the modeline.
298
7ae8428d
SM
2992006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
300
301 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
302
14a7cabf
CY
3032006-09-26 Chong Yidong <cyd@stupidchicken.com>
304
305 * indent.c (Fvertical_motion): Do move back if the Lisp string
306 being displayed contains newlines.
307
444a42fd
YM
3082006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
309
310 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
311 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
312
4ccaff67
KH
3132006-09-26 Kenichi Handa <handa@m17n.org>
314
315 * keymap.c (Fsingle_key_description): For an invalid char, return
316 "Invalid char code NNNNN".
317
2a95a27c
CY
3182006-09-25 Chong Yidong <cyd@stupidchicken.com>
319
320 * callint.c (Fcall_interactively): Doc fix.
321
cf2c6835
YM
3222006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
323
324 * macterm.c (x_underline_at_descent_line): New variable.
325 (syms_of_macterm): DEFVAR_BOOL it.
326 (x_draw_glyph_string): Use it.
327 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
328
173517c6
KH
3292006-09-25 Kenichi Handa <handa@m17n.org>
330
331 * keymap.c (Fsingle_key_description): Return unique names for
332 generic characters.
333
45c912f2
RS
3342006-09-24 Richard Stallman <rms@gnu.org>
335
336 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
337
1133f8e7
EZ
3382006-09-24 Eli Zaretskii <eliz@gnu.org>
339
de9855d5
SM
340 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
341 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
8f59d602
EZ
342
343 * w32proc.c (nl_langinfo): New function.
344
1133f8e7
EZ
345 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
346 (w32-pass-lwindow-to-system, w32-enable-num-lock)
347 (w32-enable-caps-lock, w32-scroll-lock-modifier)
348 (w32-lwindow-modifier, w32-rwindow-modifier)
349 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
350
ba5524f4
JB
3512006-09-23 Juanma Barranquero <lekktu@gmail.com>
352
353 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
354 (Fdisplay_completion_list): Fix typos in docstrings.
355
47a0ee40
RF
3562006-09-23 Romain Francoise <romain@orebokech.com>
357
358 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
359
5dfe789c
KH
3602006-09-23 Kenichi Handa <handa@m17n.org>
361
ba5524f4 362 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
5dfe789c 363
4560a582
SM
3642006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
365
366 * regex.c (analyse_first): For eight-bit-control chars, mark both the
367 char's value and its leading byte in the fastmap.
368 (re_search_2): When fast-scanning without translation, be careful to
369 check that we only match the leading byte of a multibyte char.
370
371 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
372 byte sequence.
373 (AT_CHAR_BOUNDARY): New macro.
374
2e77924d
KH
3752006-09-22 Kenichi Handa <handa@m17n.org>
376
377 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
378 whose default value is non-nil.
379
66687b7c
JD
3802006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
381
db4fd914 382 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
782447bd
JD
383 Gtk+ versions < 2.10.
384
66687b7c
JD
385 * xfns.c (syms_of_xfns): Fix typo in help text for
386 x-gtk-file-dialog-help-text.
387
b521ddce
KS
3882006-09-21 Kim F. Storm <storm@cua.dk>
389
390 * fns.c (Fmemq): Refill doc string.
391 (Fmemql): New defun, like memq but using eql.
392 (syms_of_fns): Defsubr it.
393
d0e0bd5f
KS
3942006-09-20 Kim F. Storm <storm@cua.dk>
395
396 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
397 last visible glyph in window.
398
a4df1f8b 399 * window.c (Fset_window_hscroll, Fwindow_line_height):
d0e0bd5f
KS
400 Doc fix. Use "off-window" instead of "off-screen".
401 (Fpos_visible_in_window_p): Likewise.
402 If POS is t, return info for last visible glyph in window.
403
b69e3c18
CY
4042006-09-19 Chong Yidong <cyd@stupidchicken.com>
405
406 * search.c (struct regexp_cache): New entry syntax_table.
407 (compile_pattern_1): Set it.
408 (syms_of_search): Initialize it.
409 (compile_pattern): Require the syntax_table entry of the cache
410 element to match the current syntax table entry.
411
31790df3
SM
4122006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
413
414 * window.c (Fwindow_end): Fix recent change.
415
06e6b4be
KS
4162006-09-19 Kim F. Storm <storm@cua.dk>
417
418 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
419 Doc fix. Use "off-screen" instead of "invisible".
420 (Fwindow_line_height): Make line numbers 0-based. Make line arg
421 optional; if nil, use current cursor row. Handle text terminals
422 properly. Return nil if non-interactive or pseudo-window.
423
08e26e8b
SM
4242006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * keymap.c: Include alloca.h if available.
427 (Fkey_binding): Only use AREF after checking it's a vector.
428 Remove unused var `window'.
429
61973eb6
YM
4302006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
431
432 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
433 inhibit_sentinels.
434
435 * mac.c [!MAC_OSX] (select): Fix argument name.
436
437 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
438 menu ID for Apple menu.
439 (menubar_selection_callback): Remove function.
440 (find_and_call_menu_selection): New function from xmenu.c.
441 (x_activate_menubar): Use it.
442 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
443
444 * macterm.c (menubar_selection_callback): Remove extern.
445 (M_APPLE): Change to 234.
446 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
447 (do_menu_choice): Remove function.
448
449 * macterm.h (struct mac_output): Remove member menubar_active.
450 (do_menu_choice): Remove extern.
451 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
452
1dd3c9b6
JD
4532006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
454
1a2b3a9f
JD
455 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
456 x_gtk_file_dialog_help_text.
457
1dd3c9b6
JD
458 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
459 to x-gtk-use-old-file-dialog.
1a2b3a9f
JD
460 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
461 x_gtk_file_dialog_help_text.
1dd3c9b6
JD
462
463 * xfns.c (syms_of_xfns): Ditto.
464
661bdc06
KS
4652006-09-18 Kim F. Storm <storm@cua.dk>
466
467 * window.c (Fwindow_line_visibility): Remove.
468 (Fwindow_line_height): New defun replacing it.
469 (syms_of_window): Defsubr it.
470
37228c38
YM
4712006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
472
473 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
474 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
475
a688d8b5
JB
4762006-09-17 Jay Belanger <belanger@truman.edu>
477
478 * gmalloc.c:
479 * md5.c:
480 * md5.h:
481 * strftime.c: Replace "GNU Library General Public License" by "GNU
482 General Public License" throughout.
483
059fd1a1
KS
4842006-09-17 Kim F. Storm <storm@cua.dk>
485
486 * dispnew.c (update_text_area): Undo 2000-07-18 change.
487 Always redrawing whole row if line has mouse-face in it causes
488 excessive flickering of the mode line.
489
e5b94d44
CY
4902006-09-17 Chong Yidong <cyd@stupidchicken.com>
491
492 * search.c (clear_regexp_cache): New function.
493
494 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
495
241ad3ca
JD
4962006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
497
31790df3
SM
498 * gtkutil.c (xg_get_file_with_chooser):
499 Check x-gtk-show-chooser-help-text before adding the help text.
fbce5860
JD
500
501 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
502
241ad3ca
JD
503 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
504 will simply crash if we fail.
505
6875fe9a
RS
5062006-09-16 Richard Stallman <rms@gnu.org>
507
508 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
509
0c9337fb
KS
5102006-09-15 Kim F. Storm <storm@cua.dk>
511
512 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
513 (syms_of_window): Defsubr it.
514 (Fwindow_end): Use window's buffer rather than current buffer.
515
45a2056c
JB
5162006-09-15 Jay Belanger <belanger@truman.edu>
517
518 * COPYING: Replace "Library Public License" by "Lesser Public
519 License" throughout.
520
b74e16a3
DK
5212006-09-15 David Kastrup <dak@gnu.org>
522
de9855d5 523 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
b74e16a3
DK
524
525 * keymap.c: include "window.h".
526 (Fcommand_remapping): New optional POSITION argument.
527 (Fkey_binding): New optional POSITION argument. Completely rework
528 handling of mouse clicks to get the same order of keymaps as
529 `read-key-sequence' and heed POSITION. Also temporarily switch
530 buffers to location of mouse click and back.
531
532 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
533 for additional argument.
534 (parse_menu_item): Adjust call of `Fkey_binding' for additional
535 argument.
536 (read_key_sequence): If there are both `local-map' and `keymap'
537 text properties at some buffer position, heed both.
538
539 * keymap.h: Declare additional optional arguments of
540 `Fcommand_remapping' and `Fkey_binding'.
541
6cb66a31
JB
5422006-09-15 Juanma Barranquero <lekktu@gmail.com>
543
544 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
545
cd3587c1
AS
5462006-09-14 Andreas Schwab <schwab@suse.de>
547
548 * print.c: Whitespace fixup.
549
84be646f
KS
5502006-09-14 Kim F. Storm <storm@cua.dk>
551
552 * xdisp.c (produce_image_glyph): Automatically crop wide images at
553 right window edge so we can draw the cursor on the same row to
554 avoid confusing redisplay by placing the cursor outside the visible
555 window area.
556
856bb2b0 5572006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98a20c65
CY
558
559 * xterm.c (x_initialize): Don't install Xt event timer here.
560 (x_timeout_atimer_activated_flag): New var.
561 (x_activate_timeout_atimer): New function to install Xt timer.
562 (x_send_scroll_bar_event, x_process_timeouts): Use it.
563
564 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
565 (create_and_show_popup_menu, create_and_show_dialog): Use it.
566
2371cbe9 567 * xterm.h (x_activate_timeout_atimer): Add prototype.
98a20c65 568
efb15f96
RS
5692006-09-13 Richard Stallman <rms@gnu.org>
570
571 * print.c (print_string): When printcharfun is t,
572 copy string contents and call strout on the copy.
573
574 * keyboard.c (read_char): If end_time specified, don't put the
575 event into this_command_keys.
576 (read_key_sequence): If Voverriding_terminal_local_map is specified,
577 don't check Voverriding_local_map at all.
578
1baa749c 5792006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
52c0f270
CY
580
581 * textprop.c (Fnext_property_change, Fnext_single_property_change)
582 (Fprevious_property_change, Fprevious_single_property_change):
583 Avoid changing limit, so we can correctly catch the case where the
584 property is constant up to limit.
585
eee81f5d
YM
5862006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
587
588 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
589 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
590 Undo 2006-09-08 change.
591
91197db4
CY
5922006-09-11 Chong Yidong <cyd@stupidchicken.com>
593
594 * keymap.c (Fkey_binding): Use string position for string objects.
595
83279b3e
KS
5962006-09-11 Kim F. Storm <storm@cua.dk>
597
9a71d7de
KS
598 * keymap.c (Fkey_binding): Fix last change.
599
83279b3e
KS
600 * editfns.c (Fmessage): Recommend using (message "%s" ...).
601
b067ddb6
CY
6022006-09-10 Chong Yidong <cyd@stupidchicken.com>
603
604 * keymap.c (Fkey_binding): Check for local keymap for mouse click
605 events.
606
322dd254
KS
6072006-09-10 Kim F. Storm <storm@cua.dk>
608
606fd469
KS
609 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
610 and Vunread_post_input_method_events.
611
322dd254
KS
612 * dispnew.c (Fredisplay): Document return value.
613
437b2a15
JD
6142006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
615
616 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
617
618 * gtkutil.c (xg_display_close): Always change default display if needed,
619 check for < Gtk+ version 2.10 before calling gdk_display_close.
620
6eeee4d6
YM
6212006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
622
eee81f5d
YM
623 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
624 Make variable `ofds' static. Remove variable `maxfd'.
6eeee4d6 625
6cb66a31
JB
626 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
627 Call check_mac.
6eeee4d6 628
eee81f5d 629 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
6cb66a31
JB
630 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
631 Apply 2006-09-08 change for xmenu.c.
6eeee4d6 632
d7b1ea44 633 * xfns.c (Fx_file_dialog): Call check_x.
6eeee4d6 634
f90660aa
KS
6352006-09-10 Kim F. Storm <storm@cua.dk>
636
637 * xdisp.c (get_window_cursor_type): Use hollow cursor on
638 non-transparent images.
639
c048d606
EZ
6402006-09-09 Eli Zaretskii <eliz@gnu.org>
641
642 * editfns.c (Fsystem_name): Mention "host" in the doc string.
643 (syms_of_editfns) <system-name>: Likewise.
644
92b23323
CY
6452006-08-27 Martin Rudalics <rudalics@gmx.at>
646
4560a582 647 * xdisp.c (mouse_autoselect_window): Remove.
92b23323
CY
648 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
649
650 * dispextern.h (mouse_autoselect_window): Remove extern.
651 (Vmouse_autoselect_window): Add extern.
652
653 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
654 instead of mouse_autoselect_window.
655
656 * msdos.c (dos_rawgetc): Likewise.
657
658 * w32term.c (w32_read_socket): Likewise.
659
660 * xterm.c (handle_one_xevent): Likewise.
661
d799329b
RS
6622006-09-08 Richard Stallman <rms@gnu.org>
663
af09dd78
RS
664 * xdisp.c (Vmenu_updating_frame): Define here.
665 (syms_of_xdisp): DEFVAR it here.
666 (update_menu_bar): Always return hooks_run.
667 Set Vmenu_updating_frame.
c989bc87 668
af09dd78
RS
669 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
670 before calculating SELECTED_FRAME.
671
672 * xmenu.c (Vmenu_updating_frame): Don't define here.
673 (syms_of_xmenu): Don't DEFVAR it here.
674
675 * xterm.c (x_error_quitter): For BadName error, just return.
676
d799329b
RS
677 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
678
679 * casetab.c (init_casetab_once): Call set_case_table.
680
681 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
682
683 * process.c (inhibit_sentinels): New variable.
684 (exec_sentinel): Test inhibit_sentinels.
685 (init_process): Initialize it.
686
687 * process.h (inhibit_sentinels): Add decl.
688
689 * search.c (looking_at_1, string_match_1, search_command):
690 Make syntax table's canon table point to eqv table.
691
bcdbfd36
AS
6922006-09-08 Andreas Schwab <schwab@suse.de>
693
694 * print.c (strout): Fix whitespace.
695
70c6267a
KS
6962006-09-08 Kim F. Storm <storm@cua.dk>
697
698 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
699
9deaefb7
YM
7002006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
701
702 * mac.c [!MAC_OSX]: Don't include keyboard.h.
703 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
704 in the same BLOCK_INPUT block, in case that some input has already
705 been read asynchronously. Pretend to be interrupted by a signal
706 if some input is available.
707 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
708 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
709 Now used for ReceiveNextEvent timeout instead of select timeout.
710 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
711 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
712 support. Quit event loop.
713 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
714 connect support. Reuse previously allocated CFRunLoopSource.
715 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
716 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
717
718 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
719 Specify kWindowAsyncDragAttribute.
720
721 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
722 (mac_get_ideal_size): New functions.
723 (x_set_offset, x_set_window_size, x_make_frame_visible)
724 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
725 (install_window_handler, mac_handle_window_event)
726 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
727 kEventWindowBoundsChanged.
728 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
729 DragWindow.
70c6267a 730
d7695a63
AS
7312006-09-07 Andreas Schwab <schwab@suse.de>
732
733 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
734 use lib64 instead of lib.
735
be9b5a60
SM
7362006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
737
738 * Makefile.in: Avoid double quotes when possible.
739
04e28558
KH
7402006-09-06 Kenichi Handa <handa@m17n.org>
741
742 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
743 a Lisp string from the result of emacs_memftimeu call.
744
902f06ed
KS
7452006-09-06 Kim F. Storm <storm@cua.dk>
746
747 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
f90660aa
KS
748 so calculate heights even when pos-visible-in-window-p is called
749 with partially = t. Don't overshoot last_visible_y in move_it_to.
750 Return row height and row number in new rowh and vpos args.
751 (cursor_row_fully_visible_p): First line is always "fully visible".
902f06ed
KS
752 (try_window): Don't clear matrix if vscrolled.
753
754 * lisp.h (pos_visible_p): Update prototype.
755
756 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
757 Return row height and row number for partially visible rows.
647b07d1
AS
758 Modify return value to a 2 element list for fully visible rows and
759 6 for partially visible row.
902f06ed 760 (window_scroll_pixel_based): Use pos_visible_p directly instead of
647b07d1
AS
761 Fpos_visible_in_window_p. Fix auto vscrolling for partially
762 visible lines. Only vscroll backwards if already vscrolled
763 forwards. Unconditionally vscroll forwards if PT is first (and
764 only) line. Set new window start instead of scrolling at
765 start/end of tall line.
902f06ed 766
750a6cf4
YM
7672006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
768
769 * macterm.c (install_window_handler, mac_handle_window_event)
770 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
771 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
772 ASCII keystroke event.
773
ae6c1c19
JD
7742006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
775
776 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
777 the file chooser message. Only call gtk_file_chooser_set_current_name
778 when action is SAVE.
779
5aa17bb2
AS
7802006-09-04 Andreas Schwab <schwab@suse.de>
781
782 * Makefile.in: Double all single and back quotes in C-style
783 comments to help fontifier.
784
934db434
JR
7852006-09-03 Jason Rumney <jasonr@gnu.org>
786
787 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
788 (globals_of_w32): Register it as a signal handler.
789
6a8c7cfe
JL
7902006-09-02 Juri Linkov <juri@jurta.org>
791
792 * marker.c (Fmarker_position): Doc fix.
793
5c4aaa79
EZ
7942006-09-03 Eli Zaretskii <eliz@gnu.org>
795
796 * window.c (syms_of_window) <split-height-threshold>:
797 <window-min-height, window-min-width>: Doc fix.
798
655ea21c
JD
7992006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
800
4f3097d8
JD
801 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
802 for writing files. Call gtk_file_chooser_set_current_name to keep
803 default filename.
804
655ea21c
JD
805 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
806
79f6ba1f
EZ
8072006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
808
809 * fns.c (concat) [__GNUC__]: Declare with
810 `__attribute__((noinline))'.
811
812 * eval.c (apply1, call2) [__GNUC__]: Declare with
813 `__attribute__((noinline))'.
814
ebc80ddf
EZ
8152006-09-02 Stuart D. Herring <herring@lanl.gov>
816
817 * minibuf.c (Finternal_complete_buffer): New function.
818 (syms_of_minibuf): Defsubr it.
819 (Fread_buffer): Use it, instead of Vbuffer_alist.
820
5deb7a51 8212006-09-01 Martin Rudalics <rudalics@gmx.at>
3e145152 822
5deb7a51
RF
823 * buffer.h (struct buffer_text): New field chars_modiff.
824 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
825 * buffer.c (Fbuffer_chars_modified_tick): New function returning
826 value of BUF_CHARS_MODIFF.
827 (syms_of_buffer): Defsubr it.
828 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
829 * insdel.c (modify_region): New argument preserve_chars_modiff.
830 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
831 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
832 (adjust_after_replace, adjust_after_replace_noundo)
833 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
834 * lisp.h (modify_region): Add fourth argument in extern.
835 * casefiddle.c (casify_region): Call modify_region with fourth
836 argument zero to assert that CHARS_MODIFF is updated.
837 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
838 (Ftranspose_regions): Likewise.
839 * textprop.c (Fadd_text_properties, Fset_text_properties)
840 (Fremove_text_properties, Fremove_list_of_text_properties):
841 Call modify_region with fourth argument 1 to avoid that
842 CHARS_MODIFF is updated.
3e145152 843
80e0572b
RS
8442006-08-31 Richard Stallman <rms@gnu.org>
845
846 * editfns.c (Fformat): Don't sign-extend for %o or %x.
847
41d24b39
CY
8482006-08-29 Chong Yidong <cyd@stupidchicken.com>
849
850 * indent.c (Fvertical_motion): Don't move back if we were
851 displaying a Lisp string, either.
852
62d108d4
KS
8532006-08-28 Kim F. Storm <storm@cua.dk>
854
855 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
856 Don't attempt to replace cursor on image glyphs.
857
c6f8bb3a
KH
8582006-08-28 Kenichi Handa <handa@m17n.org>
859
860 * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
861 docstring about ISO-2022 control characters.
862
7b9c9125
KS
8632006-08-28 Kim F. Storm <storm@cua.dk>
864
865 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
866 with a hollow box cursor if image is larger than 32x32 (or the default
867 frame font if that is bigger). Replace any other cursor on images
868 with hollow box cursor, as redisplay doesn't support bar and hbar
869 cursors on images.
870
eb411049
YM
8712006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
872
873 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
874 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
875
876 * dired.c (directory_files_internal_unwind, directory_files_internal)
877 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
878
879 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
880 of OSErr.
881
882 * keyboard.c (in_sighandler): Remove variable.
883 (Fcurrent_idle_time): Add missing `doc:'.
884 (input_available_signal, init_keyboard): Undo previous change.
885
886 * keyboard.h (in_sighandler): Remove extern.
887
888 * mac.c (create_apple_event_from_event_ref, select)
889 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
890 (Fmac_set_file_type, cfstring_create_normalized)
6cb66a31
JB
891 (mac_get_system_locale, select_and_poll_event, sys_select):
892 Use OSStatus instead of OSErr.
eb411049 893
6cb66a31
JB
894 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
895 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
eb411049
YM
896 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
897
898 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
899 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
900 (get_scrap_private_timestamp, get_scrap_target_type_list)
901 (x_own_selection, x_get_foreign_selection)
902 (Fx_disown_selection_internal, Fx_selection_owner_p)
903 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
904
905 * macterm.c (mac_draw_string_common, mac_query_char_extents)
906 (x_iconify_frame, XLoadQueryFont, install_window_handler)
907 (mac_handle_command_event, init_command_handler, init_menu_bar):
908 Use OSStatus instead of OSErr.
909 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
910 FRAME_FILE_NAME.
911 (x_query_font): Apply 2006-08-04 change for xterm.c.
912 (Qhi_command): Rename from Qhicommand. All uses changed.
913
914 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
915 file_name.
916 (FRAME_FILE_NAME): Remove macro.
917 (install_window_handler, create_apple_event_from_event_ref):
918 Return OSStatus instead of OSErr.
919
d489b9c5
KS
9202006-08-26 Kim F. Storm <storm@cua.dk>
921
922 * buffer.c (Fset_buffer_multibyte):
923 * editfns.c (Fcurrent_time, Fget_internal_run_time):
924 * macfns.c (Fxw_color_values):
925 * w32fns.c (Fxw_color_values):
926 * xfns.c (Fxw_color_values): Simplify; use list3.
927
928 * fileio.c (Fmake_directory_internal, Fdelete_directory)
929 (Fdelete_file): Simplify; use list1.
930 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
931 Simplify; remove NO_ARG_ARRAY stuff, use list2.
932
24d8984e
RS
9332006-08-25 Richard Stallman <rms@gnu.org>
934
935 * buffer.c (Fswitch_to_buffer): Fix previous change.
936
16fb6ded
KS
9372006-08-25 Kim F. Storm <storm@cua.dk>
938
939 * keyboard.c (Fcurrent_idle_time): Simplify.
940
3e04a8fc
RS
9412006-08-25 Richard Stallman <rms@gnu.org>
942
943 * fns.c (sxhash_string): Rotate properly; don't lose bits.
944
8d8dafeb
KS
9452006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
946
947 * xdisp.c (overline_margin): New variable.
948 (x_produce_glyphs): Use it.
949 (syms_of_xdisp): DEFVAR_INT it.
950
951 * xterm.c (x_underline_at_descent_line): New variable.
952 (syms_of_xterm): DEFVAR_BOOL it.
953 (x_draw_glyph_string): Use it.
954 Draw underline and overline up to the end of line if the face
955 extends to the end of line.
956
957 * macterm.c: Likewise.
958
959 * w32term.c: Likewise.
960
9612006-08-24 Nick Roberts <nickrob@snap.net.nz>
6410aac9
NR
962
963 * buffer.c (Fswitch_to_buffer): Move buffer to front of
964 buffer-alist if necessary.
965
6b4d8762
KS
9662006-08-22 Kim F. Storm <storm@cua.dk>
967
968 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
969 number of items changes.
970
7e1de68d
KS
9712006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
972
973 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
974
f73858ce
JD
9752006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
976
977 * keyboard.c: Clarify difference between in_sighandler and
978 handling_signal.
979
c58790e6
KS
9802006-08-21 Kim F. Storm <storm@cua.dk>
981
982 * macterm.c (x_draw_stretch_glyph_string):
983 * w32term.c (x_draw_stretch_glyph_string):
984 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
985 stretch glyph in left marginal areas on header and mode lines.
986
748726f4
KH
9872006-08-21 Kenichi Handa <handa@m17n.org>
988
989 * keyboard.c (syms_of_keyboard): Docstring of
990 Vunread_post_input_method_events and Vunread_input_method_events
991 fixed.
992
c5b76d6c
CY
9932006-08-20 Chong Yidong <cyd@stupidchicken.com>
994
995 * keyboard.c (show_help_echo): Preserve mouse movement flag if
996 tracking mouse.
997
ce629713
RS
9982006-08-20 Richard Stallman <rms@gnu.org>
999
1000 * xfaces.c (load_pixmap): Add quotes in error message.
1001
1002 * keyboard.c (Fcurrent_idle_time): New function.
1003 (syms_of_keyboard): defsubr it.
1004
454e31b3
NR
10052006-08-18 Nick Roberts <nickrob@snap.net.nz>
1006
1007 * window.c (Fset_window_fringes): Do nothing on a tty.
1008 (Fwindow_fringes): Put ? operator after the line break.
1009
dae581bf
AS
10102006-08-16 Andreas Schwab <schwab@suse.de>
1011
1012 * print.c (debug_output_compilation_hack): Fix return type.
1013
3cb74cd1
RS
10142006-08-16 Richard Stallman <rms@gnu.org>
1015
1016 * print.c (debug_output_compilation_hack): New function.
1017
29cbc482
KH
10182006-08-16 Kenichi Handa <handa@m17n.org>
1019
1020 * fileio.c (choose_write_coding_system): Use LF for end-of-line
1021 in auto-saving.
1022
3236e6b8
CY
10232006-08-15 Chong Yidong <cyd@stupidchicken.com>
1024
1025 * keyboard.c (read_char): Don't change idle timer state at all if
1026 end_time is supplied.
1027
8db1f9fa
KH
10282006-08-15 Kenichi Handa <handa@m17n.org>
1029
1030 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
1031 is exhausted, return with RET.
1032 (detect_coding_emacs_mule, detect_coding_iso2022)
1033 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
1034 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
1035 change.
1036
70282fce
CY
10372006-08-14 Chong Yidong <cyd@stupidchicken.com>
1038
1039 * keyboard.c (read_char): Don't reset idle timers if a time limit
1040 is supplied.
1041
9bdc2a5d
KS
10422006-08-14 Kim F. Storm <storm@cua.dk>
1043
1044 * .gdbinit (pitx): Print iterator position.
1045 Limit stack dump in case iterator is not initialized.
1046
e6b8d662
EZ
10472006-08-12 Eli Zaretskii <eliz@gnu.org>
1048
1049 * frame.c (Fmouse_position, Fmouse_pixel_position)
1050 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
1051
0c584069
JD
10522006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1053
1054 * xselect.c (Fx_register_dnd_atom): New function.
1055 (syms_of_xselect): Defsubr it.
9bdc2a5d 1056 (x_handle_dnd_message): Check that message_type is in
0c584069
JD
1057 dpyinfo->x_dnd_atoms before generating lisp event.
1058
1059 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
1060 of drag and drop Atoms.
1061
1062 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
1063
abef1dd7
JD
10642006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1065
1066 * keyboard.c: Define in_sighandler.
1067 (input_available_signal): Set in_sighandler.
1068 (init_keyboard): Initialize in_sighandler.
1069
1070 * keyboard.h: Declare in_sighandler.
1071
1072 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
1073 to check if mutex should be locked or not.
1074
c2028ac6
RS
10752006-08-09 Richard Stallman <rms@gnu.org>
1076
1077 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
1078 (read_key_sequence): Always start fkey.start and fkey.end at 0,
1079 and likewise for keytran.
1080
bb0825cb
KH
10812006-08-09 Kenichi Handa <handa@m17n.org>
1082
1083 * coding.c (syms_of_coding): Improve the docstring
1084 file-coding-system-alist.
1085
61486999
AS
10862006-08-07 Andreas Schwab <schwab@suse.de>
1087
1088 * puresize.h (BASE_PURESIZE): Increase to 1120000.
1089
43ed3b8d
CY
10902006-08-06 Chong Yidong <cyd@stupidchicken.com>
1091
1092 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
1093 (Fkill_all_local_variables): Use it.
1094 (syms_of_buffer): Defvar it.
1095
6b657e42
EZ
10962006-08-05 Eli Zaretskii <eliz@gnu.org>
1097
0a3297f7
EZ
1098 * w32.c (w32_valid_pointer_p): New function.
1099
1100 * w32.h: Add prototype for w32_valid_pointer_p.
1101
1102 * alloc.c: Include w32.h.
1103 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
1104 the job.
1105
6b657e42
EZ
1106 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
1107 is exactly equal to end_time, not only when it is past that.
1108
092869b9
CY
11092006-08-04 Chong Yidong <cyd@stupidchicken.com>
1110
1111 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
1112
1113 * process.c: Reapply 2006-08-01 change.
1114
3046c3f9
EZ
11152006-08-04 Eli Zaretskii <eliz@gnu.org>
1116
1117 * w32fns.c (w32_query_font): Fix last change: use stricmp.
1118
0f2e2a3b
SM
11192006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1120
1121 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
1122 the before-change-functions since they may have altered the buffer.
1123
316a275a
EZ
11242006-08-04 Ralf Angeli <angeli@caeruleus.net>
1125
1126 * w32fns.c (w32_createwindow): Handle -geometry command line option
1127 and the geometry settings in the Registry.
1128
ef8f7cdd
KH
11292006-08-04 Kenichi Handa <handa@m17n.org>
1130
6f64cebf
KH
1131 * w32fns.c (w32_query_font): Compare names by ignoring case.
1132
ef8f7cdd
KH
1133 * xterm.c (x_query_font): Compare names by ignoring case.
1134
f3e0a6de
JR
11352006-08-03 Jason Rumney <jasonr@gnu.org>
1136
1137 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
1138 when no option selected.
1139
d634a670
CY
11402006-08-03 Chong Yidong <cyd@stupidchicken.com>
1141
1142 * process.c: Revert last change.
1143
0885202f
KS
11442006-08-01 Kim F. Storm <storm@cua.dk>
1145
1146 * process.c (wait_reading_process_output_unwind): New function.
1147 Restores waiting_for_user_input_p to saved value.
1148 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
1149 instead of save/restore old value on stack.
1150
0f42ea76
TTN
11512006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
1152
1153 * editfns.c: Undo 2006-06-27 change.
1154
69666f77
EZ
11552006-07-29 Eli Zaretskii <eliz@gnu.org>
1156
cfb37af8
EZ
1157 * coding.c (Ffind_operation_coding_system): Revert the change from
1158 2006-05-29.
1159
69666f77
EZ
1160 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
1161
0de8dcc9
RS
11622006-07-28 Richard Stallman <rms@gnu.org>
1163
0f42ea76 1164 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
0de8dcc9
RS
1165 Add conditional aborts for clarity.
1166
1167 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
1168 Used to avoid running the hooks over and over for each frame.
1169 (prepare_menu_bars): Pass value from update_menu_bar
1170 as HOOKS_RUN of next call.
1171
1172 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
1173
4dbdb9eb
KS
11742006-07-28 Kim F. Storm <storm@cua.dk>
1175
1176 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
1177 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
1178
2f1950bf
CY
11792006-07-26 Chong Yidong <cyd@stupidchicken.com>
1180
1181 * keyboard.c (read_char): New arg END_TIME specifying timeout.
1182 All callers changed. Turn off echoing if END_TIME is non-NULL.
1183 (kbd_buffer_get_event): New arg END_TIME.
1184
1185 * lread.c (read_filtered_event): New arg SECONDS to wait until.
1186 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
1187
1188 * lisp.h: Update read-char, read-event, and read_filtered_event
1189 prototypes.
1190
1191 * keyboard.h: Include systime.h. Update read_char prototype.
1192
55a90501
YM
11932006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1194
1195 * alloc.c (find_string_data_in_pure): New function.
1196 (make_pure_string): Use it to reuse existing string data if possible.
1197
1198 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
1199
2db8f173
SM
12002006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
1201
1202 * keymap.c (Fdefine_key): If the key binding definition looks like an
1203 XEmacs-style key sequence, convert it to Emacs's format.
1204
272f22eb
EZ
12052006-07-22 Ralf Angeli <angeli@caeruleus.net>
1206
1207 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
1208 parameters are bound to some values, use that instead of
1209 CW_USEDEFAULT.
1210
69b72317
EZ
12112006-07-21 Eli Zaretskii <eliz@gnu.org>
1212
1213 * w32.c (convert_time): Use explicit long double constants to
1214 ensure long double arithmetics is used throughout.
1215
14eee502
YM
12162006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1217
1218 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
1219 (init_alloc_once): Initialize them.
1220 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
1221 without alignment.
1222
1223 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
1224
eeeda6f1
KS
12252006-07-18 Francis Litterio <franl@world.std.com>
1226
1227 * w32term.c (x_calc_absolute_position): Fix frame positioning
1228 with negative X/Y coordinates.
1229
2381d38d
DN
12302006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
1231
1232 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
1233
1234 * textprop.c (text_read_only): Likewise.
1235
1236 * lread.c (end_of_file_error): Likewise.
1237
1238 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
1239 Likewise.
1240
1241 * eval.c (unwind_to_catch): Likewise.
1242
1243 * buffer.h (buffer_slot_type_mismatch): Likewise.
1244
5b5fca28
KS
12452006-07-18 Kim F. Storm <storm@cua.dk>
1246
1247 Cleanup Fsignal calls that never returns; now only use it for Qquit.
1248
1249 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
1250 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
1251 (signal_error): New no-return function (from xfaces.c).
1252 (Fthrow): Use xsignal2 instead of Fsignal + abort.
1253 (error): Use xsignal1 instead of Fsignal + abort.
1254 (FletX, Flet, grow_specpdl): Use signal_error.
1255 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
1256
6cb66a31 1257 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
5b5fca28
KS
1258 (list1): New function.
1259
1260 * lisp.h (list1): Add EXFUN.
1261 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
1262 Add prototypes. Mark them as no-return.
1263
1264 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
1265 Use xsignal1.
1266
1267 * callint.c (check_mark): Use xsignal0.
1268
1269 * casefiddle.c (casify_object): wrong_type_argument is no-return.
1270
1271 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
1272
1273 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
1274 (Fdefine_coding_system_internal): Use xsignal1.
1275
1276 * data.c (circular_list_error): Use xsignal.
1277 (wrong_type_argument): Use xsignal2. Don't care about return value.
1278 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
1279 Remove loop around Fsignal.
1280 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
1281 (indirect_function, Findirect_function, Fstring_to_number)
1282 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
1283 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
1284 Use xsignal0.
1285
1286 * doc.c (Fdocumentation): Use xsignal1.
1287
1288 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
1289
1290 * fileio.c (report_file_error): Use xsignal.
1291 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
1292 (Finsert_file_contents): Use xsignal2.
1293 (syms_of_fileio): Use list2, list3.
1294
1295 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
1296 (range_error2, domain_error2): Use xsignal3.
1297 (rounding_driver, fmod_float): Use xsignal0.
1298 (float_error): Use xsignal1.
1299 (matherr): Use xsignal.
1300
1301 * fns.c (Flength): wrong_type_argument is no-return.
1302 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
1303 (Fmd5): Use xsignal1.
1304
1305 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
1306
1307 * keyboard.c (recursive_edit_1): Use xsignal1.
1308
1309 * keymap.c (Fmap_keymap): Use xsignal1.
1310
1311 * lread.c (Fload): Use xsignal2, signal_error.
1312 (end_of_file_error): Use xsignal0, xsignal1.
1313 (read0): Use xsignal1.
1314 (invalid_syntax): New error function marked no-return.
1315 (read_integer, read1, read_list): Use it.
1316
1317 * macselect.c (x_get_local_selection): Use signal_error.
1318
1319 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
1320
1321 * search.c (compile_pattern_1): Use xsignal1.
1322 (signal_failure): Remove (was only called once).
1323 (search_command): Use xsignal1 instead of signal_failure.
1324
1325 * syntax.c (scan_lists): Use xsignal3.
1326
1327 * textprop.c (text_read_only): Use xsignal0, xsignal1.
1328
1329 * unexsol.c (unexec): Use xsignal.
1330
1331 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1332 Use xsignal0.
1333
1334 * xfaces.c (signal_error): Move to eval.c.
1335 (resolve_face_name): Use xsignal1.
1336
1337 * xfns.c (x_decode_color): Use signal_error.
1338
1339 * xselect.c (x_get_local_selection, copy_multiple_data)
1340 (x_get_window_property_as_lisp_data)
1341 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
1342 (Fx_get_cut_buffer_internal): Use signal_error.
1343
d3f31bc5
YM
13442006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1345
1346 * macterm.c (XTread_socket): Undo previous change.
1347
1e53bd0e
YM
13482006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1349
1350 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
1351 directly lookup keycode_to_xkeysym_table.
1352 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
1353 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
1354 (XTread_socket): Use character codes to construct keypad key events.
1355 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
1356 (x_delete_display): Apply 2006-07-04 change for xterm.c.
1357
0de8dcc9
RS
13582006-07-17 Richard Stallman <rms@gnu.org>
1359
1360 * keyboard.c (Vcommand_error_function): New variable.
1361 (syms_of_keyboard): Defvar it.
1362 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
1363
1364 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
1365
55dc982c
KS
13662006-07-17 Kim F. Storm <storm@cua.dk>
1367
1368 * xdisp.c (handle_single_display_spec): Ensure the right value of
1369 it->position is saved by push_it.
1370 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
1371 (reseat_1): Don't setup it->object twice.
1372 (set_iterator_to_next): No need to set it->object after pop_it.
1373 (move_it_to): Explicitly check to see if last move reached to_charpos.
1374
ce7d5efe
TTN
13752006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
1376
1377 * xdisp.c (display_mode_line): Preserve match data.
1378
d753d9b7
KS
13792006-07-14 Kim F. Storm <storm@cua.dk>
1380
1381 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
1382 (init_winsock): Load them. Use ws2_32.dll.
1383 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
1384 (sys_accept): Undo last change. Instead, set child status to
1385 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
1386 sys_select will wakeup the reader thread.
1387 (_sys_wait_accept): New function used by reader thread to wait for
1388 an incoming connection on a server socket.
1389
1390 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
1391
1392 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
1393 server socket (FILE_LISTEN flag).
1394
dcc88121
JD
13952006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1396
1397 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
1398
8a8476f9
KS
13992006-07-14 Kim F. Storm <storm@cua.dk>
1400
1401 * w32.c: Fix high cpu load for server sockets.
1402 (pfn_WSAEventSelect): New function ptr.
1403 (init_winsock): Load it.
1404 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
1405 char_avail event object to FD_ACCEPT.
1406 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
1407 socket's char_avail event object to FD_READ|FD_CLOSE.
1408
1409 * w32.h (FILE_LISTEN): New filedesc flag value.
1410
f3500bbe
KS
14112006-07-13 Kim F. Storm <storm@cua.dk>
1412
1413 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
1414 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
1415 Simplify loops and use CAR for Bnth and Belt.
1416
1417 * data.c (Findirect_function): Optimize for no indirection.
1418
1419 * eval.c (Fthrow): Remove loop around Fsignal.
1420 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
1421 Use original function name in all signaled errors.
1422 Simplify Fsignal calls (no return).
1423 (funcall_lambda): Simplify Fsignal calls (no return).
1424
60c86a83
AS
14252006-07-13 Andreas Schwab <schwab@suse.de>
1426
1427 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
1428 out_charpos.
1429
d40ec4a0
KH
14302006-07-13 Kenichi Handa <handa@m17n.org>
1431
1432 * editfns.c (Fformat): Fix calculation of text property positions
1433 of format string.
1434
b8a6aaa7
KS
14352006-07-12 Kim F. Storm <storm@cua.dk>
1436
1437 * lisp.h (CHECK_TYPE): New macro for generic type checking.
1438 (CAR_SAFE, CDR_SAFE): New macros.
1439 (ARRAYP, CHECK_ARRAY): New macros.
1440 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
1441 (CHECK_WINDOW_CONFIGURATION): New macro.
1442 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
1443 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1444 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
1445 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
1446 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
1447 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
1448 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1449 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
1450
1451 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
1452 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
1453
1454 * callint.c (Fcall_interactively):
1455 * casefiddle.c (casify_object):
1456 * editfns.c (general_insert_function):
1457 * fns.c (Flength, Felt, Ffillarray):
1458 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
1459
1460 * data.c (wrong_type_argument): Remove loop around Fsignal.
1461 (Farrayp, Fsequencep): Use ARRAYP.
1462 (Fcar): Use CAR.
1463 (Fcar_safe): Use CAR_SAFE.
1464 (Fcdr): Use CDR.
1465 (Fcdr_safe): Use CDR_SAFE.
1466 (Fsetcar, Fsetcdr): Use CHECK_CONS.
1467 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
1468 (Faset): Use CHECK_ARRAY.
1469
1470 * fns.c (Felt): Use CHECK_ARRAY.
1471 (concat): Use CHECK_NUMBER.
1472 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
1473 (Fmemq): Use CHECK_LIST.
1474 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
1475 (assq_no_quit): Use CAR_SAFE.
1476 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
1477 Use CHECK_LIST_CONS.
1478 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
1479
1480 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
1481
1482 * casetab.c (check_case_table):
1483 * category.c (check_category_table):
1484 * marker.c (Fcopy_marker):
1485 * syntax.c (check_syntax_table):
1486 * xfaces.c (load_pixmap): Use CHECK_TYPE.
1487
1488 * fns.c (Fcopy_sequence, concat):
1489 * fringe.c (Fdefine_fringe_bitmap):
1490 * lread.c (check_obarray): Cleanup wrong_type_argument use.
1491
e55deb0b
KS
1492 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
1493
b8a6aaa7
KS
1494 * keymap.c (Fdefine_key, Flookup_key):
1495 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
1496
1497 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
1498
1499 * search.c (Fset_match_data): Use CHECK_LIST.
1500
1501 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
1502
1503 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
1504 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
1505
099d4201
YM
15062006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1507
1508 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
1509
1510 * dired.c: Include blockinput.h.
1511 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
1512
1513 * editfns.c: Include blockinput.h.
1514 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
1515 getpwuid/getpwnam.
1516
1517 * fileio.c: Include blockinput.h.
1518 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
1519 around getpwnam.
1520 (search_embedded_absfilename): Remove spurious xfree.
1521
2e42ee7b
KS
15222006-07-11 Kim F. Storm <storm@cua.dk>
1523
1524 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
1525 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
1526 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
8e09f23f 1527 Signal error if TIMEOUT is not a number.
2e42ee7b
KS
1528 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
1529 The rework of sit_for args also fixes several incorrect Qt args
1530 which should have been 1.
1531 (Fredisplay): Pass 1 instead of Qt to swallow_events and
1532 detect_input_pending_run_timers.
1533
1534 * lisp.h (sit_for): Update prototype.
1535 (Fredisplay): Add EXFUN.
1536
1537 * dispextern.h (sit_for): Remove prototype.
1538
1539 * callint.c (Fcall_interactively):
1540 * minibuf.c (temp_echo_area_glyphs):
1541 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
1542 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
1543
a0aa7fcf
SM
15442006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1545
1546 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
1547
ff97f952
KS
15482006-07-11 Kim F. Storm <storm@cua.dk>
1549
68ade564 1550 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
ff97f952
KS
1551 input is available. Fix test for redisplay_dont_pause non-nil.
1552 Specbind redisplay-dont-pause to t if FORCE non-nil.
1553
7ba07a1a
CY
15542006-07-10 Chong Yidong <cyd@stupidchicken.com>
1555
1556 * puresize.h (BASE_PURESIZE): Increment to 1211000.
1557
1558 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
1559 (Fsit_for): Function deleted.
1560
a0aa7fcf
SM
1561 * keyboard.c (command_loop_1, Fexecute_extended_command):
1562 Call sit_for instead of Fsit_for.
7ba07a1a
CY
1563
1564 * minibuf.c (temp_echo_area_glyphs): Likewise.
1565
2312c580
SM
15662006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1567
1568 * syntax.c (Fforward_comment): Revert the reversion.
932e6895 1569 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
2312c580 1570
bf88ca63
JPW
15712006-07-09 John Paul Wallington <jpw@pobox.com>
1572
1573 * syntax.c (Fforward_comment): Revert previous change.
1574
08b17d37
KS
15752006-07-09 Kim F. Storm <storm@cua.dk>
1576
1577 * window.c (Fforce_window_update): Doc fix.
1578
26816cbf
SG
15792006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
1580
1581 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
1582 directory unreadable for better user privacy.
1583
4332cf50
SM
15842006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
1585
dd9f0dcd
SM
1586 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
1587
4332cf50
SM
1588 * lread.c (read_filtered_event): Remove `register' qualifier because it
1589 causes compilation problem with gcc-4.0.2-20051125 on amd64.
91fe9496
SM
1590 (readevalloop): Remove unused var `bpos'.
1591 Yet another int/Lisp_Object mixup (YAILOM).
4332cf50 1592
dfb4bff5
EZ
15932006-07-07 Eli Zaretskii <eliz@gnu.org>
1594
1595 * keyboard.c (Fexecute_extended_command): Mention the argument
1596 PREFIXARG in the doc string.
1597
efaed3b0
KS
15982006-07-07 Kim F. Storm <storm@cua.dk>
1599
1600 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1601
e2e6e4d2
CY
16022006-07-05 Chong Yidong <cyd@stupidchicken.com>
1603
234fb773
CY
1604 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
1605 clash detection using the base buffer.
1606
e2e6e4d2
CY
1607 * puresize.h (BASE_PURESIZE): Increment to 1210500.
1608
e128be55
KS
16092006-07-04 Kim F. Storm <storm@cua.dk>
1610
1611 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
1612
2462bc66
KH
16132006-07-04 Kenichi Handa <handa@m17n.org>
1614
1615 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
1616 to update Voverriding_fontspec_alist.
1617
9ca24617
RS
16182006-07-03 Richard Stallman <rms@gnu.org>
1619
1620 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
1621
1622 * xfaces.c (Fface_attribute_relative_p): Doc fix.
1623
1624 * textprop.c (Fget_char_property_and_overlay): Doc fix.
1625
1626 * eval.c (Fdefvaralias): Doc fix.
1627
d8ab3c6d
KS
16282006-07-03 Kim F. Storm <storm@cua.dk>
1629
1630 * dispnew.c (sit_for): Fix preempt condition.
1631
ca77ee45
SM
16322006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
1633
1634 * lread.c (read_filtered_event): Treat select-window just like
1635 switch-frame.
1636
8cb72de5
KS
16372006-07-02 Kim F. Storm <storm@cua.dk>
1638
1639 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
1640 to ever fit the tool-bar,
1641 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
1642 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
1643 (redisplay_tool_bar): Only clear desired matrix if we actually
1644 change the tool-bar window height. Only try to make the tool-bar
1645 window bigger if there is actually room for it.
1646
6407e67c
EZ
16472006-06-30 Ralf Angeli <angeli@caeruleus.net>
1648
1649 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
1650 SPI_GETWORKAREA to find the dimensions of the screen work area,
1651 and adjust vertical position of the frame in order to avoid being
1652 covered by the task bar.
1653
1654 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
1655 f->left_pos and SH_SHOW instead of f->top_pos in the call to
1656 CreateWindow. Record the actual position in f->left_pos and
1657 f->top_pos.
1658
639804b3
JPW
16592006-06-30 John Paul Wallington <jpw@pobox.com>
1660
1661 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
1662 Doc fix - default value has changed.
1663
3ff05183
YM
16642006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1665
1666 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
1667
1668 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
1669
1670 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
1671
1672 * macterm.c (Qeql): Add extern.
1673 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
1674 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
1675 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1676 Change keys of Vmac_atsu_font_table from strings to numbers.
1677 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
1678 (init_font_name_table) [USE_ATSUI]: Use it.
1679 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
1680 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
1681 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
1682 only when saved_ts_script_language_on_focus coincides with
1683 Vmac_ts_script_language_on_focus.
1684 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
1685 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
1686 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
1687 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
1688
df8ffa05
CY
16892006-06-27 Chong Yidong <cyd@stupidchicken.com>
1690
1691 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
1692 (Ffield_string_no_properties, Ffield_end): Mention
1693 args-out-of-range error condition in docstring.
1694
04405ad9
KS
16952006-06-27 Kim F. Storm <storm@cua.dk>
1696
1697 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
1698
f8e83735
KS
16992006-06-25 Kim F. Storm <storm@cua.dk>
1700
1701 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
1702 version 2.4 and later.
1703
86b2ba0d
CY
17042006-06-24 Chong Yidong <cyd@stupidchicken.com>
1705
1706 * xfns.c (Fx_create_frame): Set font parameter directly instead of
1707 using x_default_parameter, since x_get_args clears the parm alist.
1708
eff6bfea
EZ
17092006-06-24 Eli Zaretskii <eliz@gnu.org>
1710
1711 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
1712 case-insensitively.
1713
d9034473
EZ
17142006-06-24 Aidan Kehoe <kehoea@parhasard.net>
1715
1716 * lread.c (read_escape): When an unknown Unicode code point is
1717 encountered as a string or character escape, signal an error.
1718
8800bd5c
KS
17192006-06-23 Kim F. Storm <storm@cua.dk>
1720
31005921
KS
1721 * .gdbinit (pitx): Dump iterator stack.
1722
8800bd5c
KS
1723 * xdisp.c (handle_composition_prop): Push iterator on stack.
1724 (set_iterator_to_next): Pop iterator at end of composition.
1725
28fa06ea
EZ
17262006-06-23 Martin Rudalics <rudalics@gmx.at>
1727
1728 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
1729 itself on DOS_NT platforms, if the old and new names are identical
1730 but for the letter-case.
1731
43a37241
KS
17322006-06-21 Kim F. Storm <storm@cua.dk>
1733
1734 * dispextern.h (struct it): Add `position' member to iterator stack.
1735 Rename `pos' member to `current'. Rearrange and add comments.
1736
1737 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
1738 if we get any overlays.
1739 (set_cursor_from_row): Don't clobber `end' if we rescan from
1740 start_string.
1741 (push_it, pop_it): Save it->position.
1742
a5bd14d3
RS
17432006-06-19 Richard Stallman <rms@gnu.org>
1744
1745 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
1746 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
1747 for the case of a top-level window and the following minibuffer.
1748 Don't exit because of no `next' when there is a parent.
1749 Use the FIRST_ONLY feature when resizing following windows.
eb85ecac 1750
a5bd14d3
RS
1751 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
1752
a3efc408
KS
17532006-06-17 Kim F. Storm <storm@cua.dk>
1754
1755 * dispnew.c (update_frame): Check for input pending on entry.
1756 (update_window, update_frame_1): Break loop if input is detected.
1757
d692a3d5
JD
17582006-06-16 Francis Litterio <flitterio@gmail.com>
1759
1760 * xterm.c (x_check_expected_move, handle_one_xevent)
1761 (x_set_offset, x_check_fullscreen): Extensive changes to make
1762 frame positioning deterministic under X.
1763
b70e1a2b 1764 * xterm.h (x_output): Add members left_before_move and
d692a3d5
JD
1765 top_before_move. Removed members expected_left and expected_top.
1766
df05d913
KS
17672006-06-16 Kim F. Storm <storm@cua.dk>
1768
626c7c71
KS
1769 * dispextern.h (struct it): Add union to iterator stack to save
1770 image, composition, and stretch specific paramters.
1771
1772 * xdisp.c (next_overlay_string): Fix assert.
1773 (push_it, pop_it): Handle composition and stretch specific values.
1774 Only handle it->slice in image (for now).
1775 (back_to_previous_visible_line_start): Continue search if newline is
1776 part of a compisition. Simplify.
1777 (reseat_1): Set it->object to buffer.
1778 (set_iterator_to_next): Set it->object to string or buffer, when
1779 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
1780 (next_element_from_composition): Set it->object to buffer if not
1781 from string.
1782 (set_cursor_from_row): Only save start of string if not already
1783 done to handle multiple strings in a row.
1784
df05d913
KS
1785 * .gdbinit (pitx): Show composition parameters.
1786 (pgx, pg): New commands to print a glyph structure.
1787 (pgi, pgn): New commands to print specific/next glyph.
1788 (pgrowx, pgrow): New commands to print all glyphs in a row.
1789
aa2f234a
YM
17902006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1791
1792 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
1793 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
1794
1795 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
1796 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
1797 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
1798 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
1799 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1800 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
1801 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
1802 Services functions to get size of main display in pixels.
1803
633e63ca
CY
18042006-06-14 Chong Yidong <cyd@stupidchicken.com>
1805
d0f891a7
SM
1806 * xdisp.c (back_to_previous_visible_line_start):
1807 Reset it->continuation_lines_width.
633e63ca 1808
cac9d766
RS
18092006-06-14 Richard Stallman <rms@gnu.org>
1810
1811 * eval.c (Fdefconst): Mark variable as risky.
1812
1813 * callproc.c (Fcall_process): Doc fix.
1814
1815 * window.c (adjust_window_trailing_edge): Don't break out of the loop
1816 because there's no next window, if there are parallel windows.
1817 Do break out when WINDOW is nil.
df05d913 1818
bae1ed29
KS
18192006-06-14 Kim F. Storm <storm@cua.dk>
1820
1bb32610
KS
1821 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
1822 iterator stack (instead of hardcoded number). Increase from 2 to
1823 4 to make room for propertized overlay strings before and after a
1824 display string, image or composition.
1825 (struct it): Add image_id and method members to iterator stack.
1826
1827 * xdisp.c (init_from_display_pos): Don't set it->method and
1828 overlay_string_index after pop_it. Add asserts.
1829 (handle_stop): Look for overlay strings around a display string,
1830 image, or composition. Handle properties on those strings.
1831 (next_overlay_string): Don't set string, pos or method after pop_it.
1832 (get_overlay_strings_1): Split from get_overlay_strings; don't
1833 modify it if no overlay strings are found.
1834 (get_overlay_strings): Use get_overlay_strings_1. Always set
1835 it->string and it->method.
1836 (push_it): Push it->image_id and it->method. Push it->object
1837 instead of it->string if method is GET_FROM_IMAGE.
1838 (pop_it): Pop it->image_id and it->method. Ppo it->object
1839 instead of it->string if method is GET_FROM_IMAGE.
1840 Reset it->current.string_pos if popped it->string is nil.
1841 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
1842 whether a given change was correct; but the change is correct.
1843 Clear it->string_from_display_prop_p.
1844 (set_iterator_to_next): Rely on it->method and it->image_id from
1845 iterator stack, instead of setting them explicitly after pop_it.
1846
bae1ed29
KS
1847 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
1848 negative time forces redisplay even when input is available.
1849 (Fsit_for): Doc fix.
1850
8eb2b87f
KS
18512006-06-13 Kim F. Storm <storm@cua.dk>
1852
1853 * dispnew.c: Modify preemptive redisplay to be based on periodic
1854 checks for input.
1855 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
1856 (Vredisplay_preemption_period): New variable.
1857 (syms_of_display): DEFVAR_LISP and initialize it.
1858 (preemption_period, preemption_next_check): New variables.
1859 (update_frame, update_single_window): Initialize them based on
1860 Vredisplay_preemption_period if !force_p.
1861 (update_window, update_frame_1): Use them to determine when to
1862 check for input.
1863
7cb93181
EZ
18642006-06-03 Aidan Kehoe <kehoea@parhasard.net>
1865
1866 * lread.c (read_escape): Provide a Unicode character escape
1867 syntax; \u followed by exactly four or \U followed by exactly
1868 eight hex digits in a comment or string is read as a Unicode
1869 character with that code point.
1870
cf402f3f
EZ
18712006-06-09 Eli Zaretskii <eliz@gnu.org>
1872
1873 * window.c (window_scroll_pixel_based): Signal "Beginning of
1874 buffer" when scroll-down at the beginning of an empty buffer.
1875
67b5f809
YM
18762006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1877
d0f891a7
SM
1878 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1879 Exclude 0x7f from ASCII range.
67b5f809 1880
94856834
JR
18812006-06-05 Jason Rumney <jasonr@gnu.org>
1882
1883 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
1884 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
1885 (x_scroll_bar_report_motion): Remove workarounds for
1886 versions of Windows NT < 3.51.
1887 [!SIF_ALL]: Remove.
1888 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
1889 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
1890
d495ccfc
DK
18912006-06-04 David Kastrup <dak@gnu.org>
1892
1893 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
1894 `sit-for'.
1895
fabcf455
YM
18962006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1897
1898 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
1899
1900 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
1901
1902 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
1903 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
1904 [USE_MAC_TSM]: Likewise.
1905 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
1906 (Qbefore_string) [USE_MAC_TSM]: Add extern.
1907 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
1908 ActivateTSMDocument/DeactivateTSMDocument.
1909 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
1910 (mac_handle_window_event) [USE_MAC_TSM]: Handle
1911 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
1912 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
1913 (install_window_handler) [USE_MAC_TSM]: Install it. Register
1914 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
1915 (keycode_to_xkeysym_table): Add entry for f16.
1916 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
1917 before/after passing keystroke event to toolbox dispatcher.
1918 (init_tsm) [USE_MAC_TSM]: New function.
1919 (mac_initialize) [USE_MAC_TSM]: Call it.
1920 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
1921
1922 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
1923
4985dde2
JPW
19242006-06-02 John Paul Wallington <jpw@gnu.org>
1925
1926 * xfns.c (x_set_name_internal): Set icon to `text', derived from
1927 name, when frame's icon_name isn't a string rather than only when
1928 it is nil.
1929
3f65d6f5
EZ
19302006-06-03 Eli Zaretskii <eliz@gnu.org>
1931
1932 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
1933 and not nil.
1934
56f41f98
CY
19352006-06-02 Chong Yidong <cyd@stupidchicken.com>
1936
1937 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
1938 string.
1939
70a4cae4
YM
19402006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1941
1942 * xdisp.c (next_element_from_composition): Set it->object to
1943 it->string if composition is coming from string.
1944 (set_cursor_from_row): Don't return 0 unless row displays a
1945 continued line.
1946 (dump_glyph): Dump composite glyph.
06c7827a 1947
8b2b00f5
JD
19482006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1949
1950 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
1951
963128f3
RS
19522006-06-01 Richard Stallman <rms@gnu.org>
1953
1954 * window.c (Fsplit_window): Doc fix.
1955
24a71bb1
KS
19562006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1957
1958 * process.c (deleted_pid_list): New variable to store the pids
1959 of deleted processes. Declare it only if SIGCHLD is defined.
1960 (init_process): Initialize it.
1961 (syms_of_process): Staticpro it.
1962 (Fdelete_process): Add pid of the deleted process to it. Check after
1963 the addition and before the kill if the process is already stopped,
1964 in which case it is deleted from the list and not killed.
1965 (sigchld_handler): Define it only if SIGCHLD is. Search the process
1966 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
1967 Original idea by Stefan Monnier.
1968
a71a7704
KS
19692006-06-01 Kim F. Storm <storm@cua.dk>
1970
1971 * dispnew.c (sit_for): Perform redisplay even if input is pending
1972 when redisplay-dont-pause is non-nil.
1973
36f0107c
YM
19742006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1975
1976 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
1977 (XTread_socket): Remove obsolete comment.
1978
2e92a7cb
JD
19792006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1980
1981 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
1982 menu-bar-open.
1983
c9467aaa
JD
19842006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1985
1986 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
1987 menu-bar-open.
1988
1989 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
1990
82db8fa7
JL
19912006-05-31 Juri Linkov <juri@jurta.org>
1992
1993 * minibuf.c (Vhistory_add_new_input): New variable.
1994 (read_minibuf): Use it.
1995 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
1996 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
1997
360fecca
KS
19982006-05-31 Kim F. Storm <storm@cua.dk>
1999
2000 * process.c (select_wrapper): Add wrapper around select to work around
2001 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
2002 select called from wait_reading_process_output.
2003
303e108c
AS
20042006-05-30 Andreas Schwab <schwab@suse.de>
2005
2006 * xmenu.c (Fmenu_bar_start): Return a value.
2007
d9e8091d
RS
20082006-05-30 Richard Stallman <rms@gnu.org>
2009
2010 * coding.c (Ffind_operation_coding_system): Doc fix.
2011
7c42b3e0
EZ
20122006-05-30 Eli Zaretskii <eliz@gnu.org>
2013
2014 * w32term.c (x_draw_hollow_cursor): Fix last change.
2015
73af0716
KS
20162006-05-29 Kim F. Storm <storm@cua.dk>
2017
2018 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
2019
20202006-05-29 Eli Zaretskii <eliz@gnu.org>
a952cebe
EZ
2021
2022 * coding.c (Ffind_operation_coding_system): Doc fix.
2023
ffd71266
YM
20242006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2025
2026 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
2027 Call mac_set_font_info_for_selection if font panel is made visible.
2028
2029 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
2030 (mac_font_panel_visible_p, mac_show_hide_font_panel)
2031 [USE_MAC_FONT_PANEL]: New functions.
2032 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
2033 immediately if font panel is not visible.
2034
2035 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
2036 Add externs.
2037
01d09305
DN
20382006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
2039
2040 * search.c (matcher_overflow): Mark as NO_RETURN.
2041
2042 * xterm.c (x_connection_closed): Likewise.
2043
2044 * sysdep.c (croak): Likewise.
2045
2046 * sound.c (sound_perror, alsa_sound_perror): Likewise.
2047
2048 * lisp.h (die, nsberror): Likewise.
2049
c1c032a3
JD
20502006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2051
3fc7a865
JD
2052 * sound.c (alsa_open, alsa_configure, alsa_write): Move
2053 assignment to err out of if-statement.
2054
c1c032a3
JD
2055 * gtkutil.c (menu_nav_ended): New function.
2056 (create_menus): Connect menu_nav_ended to "selection-done" to fix
2057 grabs.
2058
2059 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
2060
345b3483
DN
20612006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
2062
2063 * charset.h (invalid_character): Mark as NO_RETURN.
2064
7311509e
KH
20652006-05-29 Kenichi Handa <handa@m17n.org>
2066
2067 * coding.c (Ffind_operation_coding_system): Call a function by
2068 safe_call1 instead of call1.
2069
6ad0381c
SM
20702006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2071
2072 * window.c (struct saved_window): Add `dedicated'.
2073 (Fset_window_configuration, save_window_save): Save/restore the
2074 `dedicated' flag.
2075
794033ae
KS
20762006-05-28 Kim F. Storm <storm@cua.dk>
2077
2078 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
2079 don't update w->cursor and return 0. Return 1 on success.
2080 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
2081 until it succeeds.
2082
2083 * dispextern.h (set_cursor_from_row): Update prototype.
2084
26837cd3
KS
20852006-05-28 Kim F. Storm <storm@cua.dk>
2086
2087 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
2088 parameters. Adjust x and width in case cursor in on a partially
2089 visible stretch glyph on the left edge.
2090 (erase_phys_cursor): Don't erase into left fringe/margin in case
2091 previous cursor glyph is a partially visible stretch glyph on left.
2092
2093 * dispextern.h (get_phys_cursor_geometry): Update prototype.
2094
2095 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
2096 cursor and erasing cursor on partially visible stretch glyph on left.
2097 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
2098
2099 * macterm.c: Likewise.
2100
2101 * w32term.c: Likewise.
2102
412f3f18
YM
21032006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2104
6ad0381c
SM
2105 * macselect.c (mac_handle_apple_event):
2106 Return errAEEventNotHandled if key binding is not found.
412f3f18 2107
0f7078f0
EZ
21082006-05-26 Eli Zaretskii <eliz@gnu.org>
2109
2110 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
2111 [__MINGW32__]: MinGW-specific declaration of `etext'.
2112
2113 * w32heap.c (etext, edata): Remove unused definitions.
2114
795c20df
CY
21152006-05-26 Chong Yidong <cyd@stupidchicken.com>
2116
6ad0381c
SM
2117 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
2118 Incorporate the exclusive file-opening functionality into the behavior
2119 when OK-IF-ALREADY-EXISTS is nil.
795c20df
CY
2120 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
2121
07a7837c
JD
21222006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2123
2124 * sound.c (alsa_configure): Move get period/buffer_size after
2125 setting hwparams.
2126
f1c582b4
KH
21272006-05-26 Kenichi Handa <handa@m17n.org>
2128
2129 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
2130 . BUFFER) in TARGET.
2131
3165e450
CY
21322006-05-25 Chong Yidong <cyd@stupidchicken.com>
2133
2134 * image.c (png_load): Don't call fclose on NULL.
2135
d579f53b
LT
21362006-05-25 Luc Teirlinck <teirllm@auburn.edu>
2137
2138 * fns.c (Fyes_or_no_p):
2139 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
2140 only seven args.
2141
abeb5483
JL
21422006-05-25 Juri Linkov <juri@jurta.org>
2143
2144 * lisp.h (Fread_from_minibuffer): Decrement number of args.
2145
2146 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
2147 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
2148
2149 * buffer.c (mode-line-format): Fix docstring.
2150
403a7bca
RS
21512006-05-25 Richard Stallman <rms@gnu.org>
2152
2153 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
2154
24b0232f
LT
21552006-05-24 Luc Teirlinck <teirllm@auburn.edu>
2156
2157 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2158
ac9f37df
AM
21592006-05-24 Alan Mackenzie <acm@muc.de>
2160
2161 * lread.c (Vload_history): Enhance doc-string to say that the file
2162 is the absolute truename of the loaded file.
2163
2164 * lread.c (Vafter_load_alist): doc-string: state that an element
2165 now has a regexp to match file names, not a file name as such.
2166
2167 * lread.c (readevalloop): Call file-truename on the name for
2168 load-history, except at preloading time.
2169
2170 * lread.c (Fload): At preloading time, preserve the extension of
6ad0381c 2171 the filename which goes into load-history. New var hist_file_name.
ac9f37df
AM
2172
2173 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
2174 function do-after-load-evaluation.
2175
e4dff88d
YM
21762006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2177
2178 * mac.c (ae_attr_table): New variable.
2179 (syms_of_mac): Intern and staticpro its elements.
2180 (mac_aelist_to_lisp): Also convert Apple event attributes.
2181 (mac_ae_put_lisp): New function.
2182 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
2183
2184 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
2185
2186 * macselect.c (Qemacs_suspension_id): New variable.
2187 (syms_of_macselect): Intern and staticpro it.
2188 (struct suspended_ae_info): New struct.
2189 (deferred_apple_events, defer_apple_events)
2190 (Fmac_process_deferred_apple_events): Use it.
2191 (suspended_apple_events): New variable.
2192 (mac_handle_apple_event_1): New function.
2193 (mac_handle_apple_event): Use it. Don't process previously
2194 suspended events.
412f3f18 2195 (cleanup_suspended_apple_events, get_suspension_id)
e4dff88d
YM
2196 (cleanup_all_suspended_apple_events): New functions.
2197 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
2198 at exit.
2199 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
2200 (Fmac_resume_apple_event): New defuns.
2201 (syms_of_macselect): Defsubr them.
2202
2203 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
2204 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
2205
2206 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
2207 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
2208 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
2209 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
2210 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
2211 Likewise.
2212 (typeUTF8Text, kEventParamWindowMouseLocation)
2213 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
2214 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
2215
b8c6940e
YM
22162006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2217
2218 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
2219 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
2220 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
2221 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
2222 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
2223 resource to backtranslate key with modifiers.
2224 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
2225
0277e36c
JD
22262006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2227
2228 * xterm.c: Remove declarations already in xterm.h
2229
2230 * xterm.h: Add extern declarations for x_clear_errors,
26837cd3 2231 x_fully_uncatch_errors, x_catching_errors and
0277e36c
JD
2232 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
2233
63af6055
RS
22342006-05-21 Richard Stallman <rms@gnu.org>
2235
55815819
RS
2236 * xfaces.c (best_matching_font): Abort for best == NULL
2237 before we start to use it.
2238
63af6055
RS
2239 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
2240
5748161e
KS
22412006-05-20 Kim F. Storm <storm@cua.dk>
2242
2243 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
2244
431225c6
YM
22452006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2246
2247 * macterm.c (convert_fn_keycode): Fix last change.
2248
e00b99c8
EZ
22492006-05-19 Eli Zaretskii <eliz@gnu.org>
2250
2251 * w32.c (init_environment): Perform the processing of environment
2252 variables on a copy of default variables and their values, not on
75e3b957
EZ
2253 the original. Simplify code that calls ExpandEnvironmentStrings
2254 and make buf1[] and buf2[] more visible for easier debugging.
e00b99c8 2255
689840b9
YM
22562006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2257
2258 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
2259
2260 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
2261
2262 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
2263
2264 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
2265 Forward keyUp events to toolbox_dispatcher.
2266
2267 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
2268
a940e2c6
JD
22692006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2270
2271 * config.in: Regenerated (HAVE_ALSA).
2272
2273 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
2274 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
2275 (snd_error_quiet, alsa_init): New functions.
2276 (vox_init): Return 0 if unable to open device.
2277 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
2278 a fallback.
2279 (struct sound_device): Add period_size.
2280 (wav_play, au_play): Use period_size if set.
2281
2282 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
2283 (ALL_CFLAGS): Add CFLAGS_SOUND
2284
8acb7dad
KH
22852006-05-18 Kenichi Handa <handa@m17n.org>
2286
2287 * callproc.c (Fcall_process): Reject encoding arguments by
2288 ascii-incompatible coding systems (e.g. utf-16).
2289
2290 * coding.c (Qascii_incompatible): New variable.
2291 (syms_of_coding): Setup Qascii_incompatible.
2292 (setup_coding_system): Be sure to initialize coding->common_flags.
2293 Check `ascii-incompatible' property of the coding system.
2294
2295 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
2296
f5ecbcee
KS
22972006-05-18 Kim F. Storm <storm@cua.dk>
2298
647b07d1
AS
2299 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
2300 geometry when backtracking in case last image doesn't fit on line.
f5ecbcee 2301
856bb2b0 23022006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
f5ecbcee 2303
647b07d1
AS
2304 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
2305 more than height of one frame default line.
f5ecbcee 2306
5748161e
KS
23072006-05-17 Richard Stallman <rms@gnu.org>
2308
2309 * xfaces.c (better_font_p): Any font beats no font.
2310 (best_matching_font): Simplify based on above change.
26837cd3 2311
6f5c4cc9 2312 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5748161e 2313
b3abe3a5
KS
23142006-05-16 Kim F. Storm <storm@cua.dk>
2315
2316 * xterm.c (handle_one_xevent): Check that f is not NULL before
2317 calling x_kill_gs_process.
2318
46a2df8e
RS
23192006-05-14 Richard Stallman <rms@gnu.org>
2320
2321 * textprop.c (Fnext_single_char_property_change)
2322 (Fprevious_single_char_property_change): Don't allow returning
2323 value beyond LIMIT in any cases.
2324 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
b3abe3a5 2325
46a2df8e
RS
2326 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
2327
79fb0ab7
JD
23282006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2329
2330 * xterm.c (handle_one_xevent): Check that f is not NULL before
2331 calling _XEditResCheckMessages.
2332
0f479f06
KS
23332006-05-14 Kim F. Storm <storm@cua.dk>
2334
2335 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
2336
642c61f3
EZ
23372006-05-13 Eli Zaretskii <eliz@gnu.org>
2338
dac85f4b
EZ
2339 * frame.c (x_set_border_width): Fix error message to say "frame",
2340 not "window".
2341
642c61f3
EZ
2342 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
2343
4e8f005c
CY
23442006-05-12 Chong Yidong <cyd@stupidchicken.com>
2345
2346 * intervals.c (set_point_both): Fix mixup before before and after
2347 in variable names.
2348
2349 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
2350 while setting point temporarily.
2351
1ed7b9ae
RS
23522006-05-11 Richard Stallman <rms@gnu.org>
2353
2354 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
2355
f46f3e21
KS
23562006-05-11 Kim F. Storm <storm@cua.dk>
2357
2358 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
2359
17ad716a
KH
23602006-05-11 Kenichi Handa <handa@m17n.org>
2361
2362 * fileio.c (Finsert_file_contents): Fix for the case of IO error
2363 while handling replace operation.
2364
4da9c136
KH
23652006-05-10 Kenichi Handa <handa@m17n.org>
2366
2367 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
2368 chosen for the default face was different from the frame font,
2369 adjust the frame font.
2370
dec94049
YM
23712006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2372
2373 * image.c (Qduration) [MAC_OS]: Undo previous change.
2374 (syms_of_image) [MAC_OS]: Likewise.
2375 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
2376
2377 * macfns.c (x_to_mac_color): Fix shift amount change.
b8c6940e 2378 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
dec94049
YM
2379 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
2380
2381 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
2382 Vmac_services_selection. All uses changed.
2383 (mac_store_service_event): Rename from mac_store_services_event in
2384 extern and calls.
2385
2386 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
2387 changed.
2388 [MAC_OSX] (mac_store_service_event): Rename from
2389 mac_store_services_event. All callers changed.
2390 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
2391 FACE_ID and C. All callers changed.
2392 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
2393 mac_set_font_info_for_selection when focus frame is destroyed.
2394 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
2395
2396 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
2397 args in extern.
2398
d3ee989e
CY
23992006-05-09 Chong Yidong <cyd@stupidchicken.com>
2400
2401 * keymap.c (describe_map): Avoid generating duplicate entries if
2402 the shadowed binding has the same definition.
2403
5f2c7b2a
KH
24042006-05-09 Kenichi Handa <handa@m17n.org>
2405
2406 * keymap.c (push_key_description): Handle invalid character key.
2407
76a25e79
KH
24082006-05-08 Kenichi Handa <handa@m17n.org>
2409
2410 * callproc.c (Fcall_process): Use system_eol_type for encoding
2411 arguments if eol_type is not yet decided.
2412
2413 * coding.h (system_eol_type): Extern it.
2414
2415 * coding.c (setup_coding_system): For invalid coding-system, set
2416 coding->eol_type to CODING_EOL_UNDECIDED.
2417 (encode_coding): Cancel previous change.
2418 (shrink_encoding_region): Likewise.
2419 (code_convert_region1): Likewise.
2420 (code_convert_string1): Likewise.
2421 (code_convert_string_norecord): Likewise.
2422
2423 * fileio.c (choose_write_coding_system): Use system_eol_type for
2424 encoding if eol_type is not yet decided.
2425
2426 * process.c (setup_process_coding_systems): Use system_eol_type
2427 for encoding if eol_type is not yet decided.
2428 (read_process_output): Likewise.
2429 (send_process): Likewise.
2430
f4b46bb9
JB
24312006-05-07 Juanma Barranquero <lekktu@gmail.com>
2432
2433 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
2434
cc9945f2
YM
24352006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2436
2437 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
2438 (syms_of_mac): Likewise for defsubr.
2439
2440 * macfns.c (mac_set_font): New function.
2441 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
2442 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
2443 kWindowToolbarButtonAttribute when creating window.
2444 (Fmac_clear_font_name_table): Move from macfns.c.
2445 (syms_of_macfns): Likewise for defsubr.
2446 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
2447 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
2448
2449 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
2450 and build is done on Mac OS X 10.2 and later.
2451
2452 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
2453 (mac_store_services_event): Change return type in extern.
2454
dec94049
YM
2455 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
2456 FMFontFamily value.
cc9945f2
YM
2457 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
2458 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
2459 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
2460 (QWindow) [MAC_OSX]: Likewise.
2461 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
2462 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
2463 (syms_of_macterm) [USE_ATSUI]: Defvar it.
2464 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
2465 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
2466 (syms_of_macterm): Intern and staticpro them.
dec94049 2467 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
cc9945f2
YM
2468 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
2469 function.
2470 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
2471 [MAC_OSX] (mac_store_services_event): Likewise.
2472 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
2473 kEventWindowToolbarSwitchMode event.
2474 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
2475 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
2476 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
2477 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
2478 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
2479
2480 * macterm.h (mac_set_font_info_for_selection): Add extern.
2481
41f7a85e
YM
24822006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2483
2484 * image.c (Qduration) [MAC_OS]: New variable.
2485 (syms_of_image) [MAC_OS]: Intern and staticpro it.
2486 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
2487 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
2488 instead of cfstring_create_with_string.
2489
a1dfdf24
KS
24902006-05-06 Kim F. Storm <storm@cua.dk>
2491
2492 * .gdbinit (xframe): Print frame name.
2493 (xlist): New command to print a list (max 10 elements).
2494 (xpr): Print lisp object of any type.
2495 (pitx): Print it->pixel_width.
2496
37e21325
KH
24972006-05-05 Kenichi Handa <handa@m17n.org>
2498
2499 * xdisp.c (handle_composition_prop): Fix for the case of empty
2500 composition component.
2501
ef0154b5
YM
25022006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2503
2504 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
2505 from event->arg.
2506
2507 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
2508 MAC_APPLE_EVENT.
2509
2510 * macterm.h (mac_make_lispy_event_code): Remove extern.
2511 (mac_post_mouse_moved_event): Add extern.
2512 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
2513 `const AEDesc *' in externs.
2514 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
2515
2516 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
2517 `const AEDesc *'.
2518 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
2519 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
2520 Use xrealloc instead of repeated xmalloc/xfree.
2521 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
2522 function.
2523
2524 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
2525
2526 * macselect.c: Update copyright year.
2527 (mac_store_apple_event): Change return type to void in extern.
2528 (mac_handle_apple_event): Don't get return value from
2529 mac_store_apple_event.
2530 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
2531 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
2532 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
2533 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
2534 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
2535 implementation using create_apple_event_from_drag_ref.
2536 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
2537 (mac_do_receive_dragUPP): Move variables from macterm.c.
2538 (install_drag_handler, remove_drag_handler): New functions.
2539
2540 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
2541 path select also for proxy icon click.
2542 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
2543 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
2544 (xlfdpat_create): Remove unused label `error' and trailing sentences.
2545 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
2546 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
2547 macselect.c.
2548 (install_drag_handler, remove_drag_handler): Add extern.
2549 (mac_store_apple_event): Change return type to void. All uses changed.
2550 Create Lisp object from Apple event and store it into input event.
2551 (mac_make_lispy_event_code): Remove function.
2552 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
2553 (install_window_handler): Call install_drag_handler.
2554 (remove_window_handler): Call remove_drag_handler.
2555
8b0ba111
RS
25562006-05-03 Richard Stallman <rms@gnu.org>
2557
e4a9a1cf
RS
2558 * sound.c (Fplay_sound_internal): Dynamically allocate
2559 current_sound_device and current_sound.
2560 (sound_cleanup): Free them.
2561
8b0ba111
RS
2562 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
2563 when inside a keyboard macro.
2564
64ec8b2f
AS
25652006-05-02 Andreas Schwab <schwab@suse.de>
2566
2567 * xmenu.c (restore_menu_items): Return a value.
2568
fcdd4585
SM
25692006-05-01 Martin Rudalics <rudalics@gmx.at>
2570
2571 * syntax.c (Fforward_comment): Detect generic comment at beginning of
2572 buffer when moving backwards.
2573
c1eb34c2
YM
25742006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2575
2576 * dispnew.c (update_window): Don't set changed_p when mode/header
2577 line is updated.
2578
2579 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
fcdd4585
SM
2580 (get_glyph_face_and_encoding, get_char_face_and_encoding):
2581 Don't distinguish known faces from others.
c1eb34c2
YM
2582
2583 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
2584 through typeFileURL failed.
2585
2586 * macfns.c (mac_update_title_bar): New function.
2587 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
fcdd4585
SM
2588 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
2589 Call mac_prepare_for_quickdraw.
c1eb34c2
YM
2590
2591 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
2592 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
2593 (enum pcm_status): New enum.
2594 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
2595 (XCharStructRow): Remove. Now validity is represented by
2596 non-negativeness of sum of ascent and descent.
2597 (struct MacFontStruct): Change type of member `rows'.
2598 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
2599
fcdd4585
SM
2600 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
2601 Adjust endpoints of strictly horizontal/vertical lines.
c1eb34c2
YM
2602 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
2603 (pcm_init, pcm_get_status): New functions.
2604 (x_per_char_metric, XLoadQueryFont): Use them instead of
2605 XCharStructRow and related macros.
2606 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
2607 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
2608 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
2609 and window path pop-up menu on title bar.
2610 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
2611
2612 * macterm.h (mac_update_title_bar): Add extern.
2613 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
2614 (FRAME_FILE_NAME): New macro.
2615
2616 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
2617
9abc5f45
RS
26182006-04-30 Richard Stallman <rms@gnu.org>
2619
2620 * keymap.c (Fdefine_key): Improve error message
2621 when KEY begins with a non-prefix key.
2622
5fed8c15 26232006-04-30 Martin Rudalics <rudalics@gmx.at>
39c41ad4
SM
2624
2625 * syntax.c (Fforward_comment): Don't forget to break out of the loop
2626 when we skipped backward over a generic comment.
2627
4a113e3f
NR
26282006-04-27 Nick Roberts <nickrob@snap.net.nz>
2629
2630 * .gdbinit (pp1, pv1): Only print value as expression is now
2631 printed out by gud-print.
2632 (pv1): Correct doc string.
2633
e89e07cc
SM
26342006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
2635
2636 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
2637 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
2638 keymap.c:895: error: address of register variable `def' requested.
2639
7d6f8c68
JR
26402006-04-26 Jason Rumney <jasonr@gnu.org>
2641
8b03732e
JR
2642 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
2643
7d6f8c68
JR
2644 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
2645 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
2646 where we preempt mouse_button_timer.
2647
51d793da
MB
26482006-04-25 Miles Bader <miles@gnu.org>
2649
2650 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
2651
a9ec7317
SM
26522006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
2653
2654 * process.h: Include headers for pid_t.
2655
e9346494
KS
26562006-04-24 Kim F. Storm <storm@cua.dk>
2657
1ada896b
KS
2658 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
2659 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
6fcd305c 2660 (produce_stretch_glyph): Assume that face box height and width is
5fed8c15 2661 already included in stretch glyph size so caller doesn't have to
6fcd305c 2662 consider the extra space otherwise added (fixes problem in ses.el).
1ada896b 2663
e9346494
KS
2664 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
2665 matrices to force recalculation of tool-bar height after font change.
2666
2667 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
14922abe
KS
2668 Clear it when done, so we don't accidentally draw a second copy of
2669 the tool-bar after resetting f->n_tool_bar_rows.
e9346494
KS
2670 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
2671 we recalculate f->n_tool_bar_rows.
2672
4f261b99
RF
26732006-04-23 Lars Hansen <larsh@soem.dk>
2674
59062dce
LH
2675 * editfns.c (find_field): Fix comment.
2676 (Ffield_beginning): Fix bug when POS is at field beginning.
2677
3705332d
EZ
26782006-04-22 Eli Zaretskii <eliz@gnu.org>
2679
2680 * puresize.h (BASE_PURESIZE): Increase to 1205000.
2681
cdd2341c
KS
26822006-04-21 Kim F. Storm <storm@cua.dk>
2683
95797ede
KS
2684 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
2685 window start is at BEGV.
2686
cdd2341c
KS
2687 * dispextern.h (struct image): New member `corners'.
2688 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
2689
2690 * image.c (four_corners_best): New arg CORNERS specifies what pixels
2691 to look at in case image has margin.
2692 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
2693 (image_background, image_background_transparent)
2694 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
2695 (gif_load): Set img->corners according to image's margin spec.
2696 Use img->corners values directly where applicable.
2697 Save image extension data in img->data.lisp_val.
2698 (gif_clear_image): New function to free img->data.lisp_val.
2699 (gif_type): Use it instead of generic x_clear_image.
2700 (Fimage_extension_data): New defun.
2701 (syms_of_image): Defsubr it.
2702
72ffd9d0
EZ
27032006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
2704
2705 * window.c (Fdisplay_buffer): Doc fix.
2706
0d95f6b2
EZ
27072006-04-21 Eli Zaretskii <eliz@gnu.org>
2708
2709 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
2710
a0c62ca2
YM
27112006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2712
2713 * image.c [MAC_OS] (xpm_load_image): Fill in background field
2714 while we have ximg handy.
2715
2716 * macmenu.c (restore_menu_items, save_menu_items): New functions
2717 from xmenu.c.
2718 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
2719 changes for xmenu.c.
2720
2721 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
2722 (add_mac_font_name): New function.
2723 (init_font_name_table): Use it. Adopt the first found font from
2724 those having the same family name.
2725
bf49275d
NR
27262006-04-21 Nick Roberts <nickrob@snap.net.nz>
2727
2728 * xdisp.c (note_mouse_highlight): Use build_string.
2729
570fab6c
LH
27302006-04-20 Lars Hansen <larsh@soem.dk>
2731
a9ec7317
SM
2732 * textprop.c (Fremove_list_of_text_properties):
2733 Ensure modify_region is called only when buffer is modified and that
570fab6c
LH
2734 signal_after_change is allways called in that case.
2735
2736 * print.c (PRINTFINISH): Call signal_after_change.
2737
7f32b80b
KS
27382006-04-20 Kim F. Storm <storm@cua.dk>
2739
bdb60d06
KS
2740 * xdisp.c (redisplay_window): Fix last change.
2741
7f32b80b
KS
2742 * xdisp.c (redisplay_window): If current window start is not at the
2743 beginning of a line, select a new window start if buffer is modified
2744 and window start is in the modified region, but the first change is
2745 before window start.
2746
290e4aae
RS
27472006-04-18 Richard Stallman <rms@gnu.org>
2748
2749 * xmenu.c (restore_menu_items, save_menu_items): New fns.
2750 (set_frame_menubar): Use save_menu_items. Save updated vector in
a9ec7317
SM
2751 the frame before unwinding it. Don't use unuse_menu_items.
2752 Don't use discard_menu_items.
290e4aae
RS
2753 (digest_single_submenu): Abort if an item is not in a pane.
2754 (init_menu_items): Put the error check at the top.
2755
2756 * keymap.c (describe_map): Make "shadowed" warning more verbose.
2757
2758 * window.c (adjust_window_trailing_edge): Correctly distinguish
2759 series vs parallel cases, even when window has no parent.
2760
2761 * abbrev.c (record_symbol): New function.
2762 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
2763
b96fe6ea
YM
27642006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2765
2766 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
2767 value of xmalloc.
2768
2769 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
2770 (create_apple_event_from_event_ref, xrm_get_preference_database)
2771 (cfstring_create_normalized): Don't check return value of xmalloc.
2772
2773 * macselect.c (get_scrap_target_type_list, defer_apple_events)
2774 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
2775 return value of xmalloc/xrealloc.
2776
2777 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
2778 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
a0c62ca2
YM
2779 (XLoadQueryFont, mac_store_apple_event): Don't check return value
2780 of xmalloc.
b96fe6ea 2781
6c7809b3
NR
27822006-04-17 Kim F. Storm <storm@cua.dk>
2783
2784 * window.c (coordinates_in_window): On the vertical border,
2785 calculate the row number measured from the top of the window, not
2786 the top of the frame.
39d78835
KS
2787 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
2788 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
6c7809b3 2789
4bba3064
EZ
27902006-04-16 Eli Zaretskii <eliz@gnu.org>
2791
2792 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
2793
8d95636b
RF
27942006-04-16 Romain Francoise <romain@orebokech.com>
2795
2796 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
2797
6a258a33
AS
27982006-04-16 Andreas Schwab <schwab@suse.de>
2799
2800 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
2801
f70a96b0
RF
28022006-04-15 Romain Francoise <romain@orebokech.com>
2803
2804 * puresize.h (BASE_PURESIZE): Increment to 1210000.
2805
28b257dc 28062006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
cda4c00b
EZ
2807
2808 * print.c (Fprin1_to_string): Mention in the `doc' that the
2809 behavior is modified by `print-level' and `print-length'.
2810
6e9715ae
KH
28112006-04-13 Kenichi Handa <handa@m17n.org>
2812
2813 * coding.c (setup_coding_system): If eol-type is not yet decided
2814 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
2815 If coding_system is nil, return 0.
2816 (code_convert_region1): Even if coding_system is nil, don't skip
2817 conversion if system_eol_type is not LF.
2818 (code_convert_string1): Likewise.
2819 (code_convert_string_norecord): Likewise.
2820
2b89a53f
KH
28212006-04-13 Kenichi Handa <handa@m17n.org>
2822
2823 * coding.c (setup_coding_system): Fix previous change.
a9ec7317 2824 (encode_coding): If eol_type is not yet decided, use system_eol_type.
73ec0f89
KH
2825 (shrink_encoding_region): If eol_type is not yet decided and
2826 system_eol_type is not LF, don't shrink.
2b89a53f 2827
5c24517a
NR
28282006-04-13 Nick Roberts <nickrob@snap.net.nz>
2829
2830 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
2831 line.
2832
9d1a8e5d
RS
28332006-04-12 Richard Stallman <rms@gnu.org>
2834
a53fe666
RS
2835 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
2836
9d1a8e5d
RS
2837 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
2838 (Fprocess_send_eof): Abort if fail to open null device.
2839
190998d8
YM
28402006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2841
2842 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
2843
2844 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
2845 assignment used as truth value. Add explicit braces to avoid
2846 ambiguous `else'.
2847 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
2848
2849 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
2850 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
2851 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
2852 Put externs in #ifdef HAVE_X_WINDOWS.
2853 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
2854 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
2855 (init_mac_osx_environment) [MAC_OSX]: Add extern.
2856
2857 * mac.c (init_process): Remove undef.
2858 (select) [MAC_OSX]: Undefine before including sysselect.h.
2859 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
2860 Remove functions and prototypes.
2861 (parse_value): Add parentheses around + inside shift.
2862 (path_from_vol_dir_name): Make static.
2863 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
2864 [!MAC_OSX] (get_path_to_system_folder): Likewise.
2865 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
2866 variable `cCode'.
2867 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
2868 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
2869
2870 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
2871 (x_set_mouse_color): Remove unused variable `dpy'.
2872 (Fx_create_frame): Remove unused variable `x_frame_count'.
2873 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
2874 (x_sync): Move from macterm.c.
2875 (Fx_file_dialog): Remove unused variable `default_filter_index'.
2876
2877 * macmenu.c (min_menu_id): Make element type explicit.
2878
2879 * macselect.c (get_flavor_type_from_symbol): Remove unused
2880 variable `val'.
2881 (get_scrap_private_timestamp, x_get_foreign_selection)
2882 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
2883 (Fmac_process_deferred_apple_events): Remove unused variables
2884 `keyword', `reply', `apple_event', `count', and `err'.
2885
2886 * macterm.c: Don't include gnu.h.
2887 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
2888 (x_sync): Move to macfns.c.
2889 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
2890 variable `mask_bits'.
2891 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
2892 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
2893 (x_mac_to_emacs_modifiers): Remove function.
2894 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
2895 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
2896 Add explicit braces to avoid ambiguous `else'.
2897 (x_make_frame_visible): Remove unused variables `type',
2898 `original_top', and `original_left'.
2899 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
2900 (x_load_font): Remove unused variables `full_name', and `value'.
2901 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
2902 Remove functions.
2903 (do_zoom_window): Reorganize variables with respect to conditionals.
2904 (init_command_handler): Remove unused variable `err'.
2905 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
2906
2907 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
2908 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
2909 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
2910 (do_menu_choice, have_menus_p, x_real_positions)
2911 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
2912 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
2913 (free_frame_menubar): Add externs.
2914
2915 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
2916 (malloc, realloc, free): Add undefs.
2917 (read_load_commands): Remove unused variable `n' and `j'.
2918 (copy_data_segment): Remove unused variable `r'.
2919
2920 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
2921 within ||. Add explicit braces to avoid ambiguous `else'.
2922 (dump_glyph_row): Remove label for `inverse_p' from legend.
2923
a9ec7317
SM
2924 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
2925 Add explicit braces to avoid ambiguous `else'.
190998d8 2926
28b257dc 29272006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
00d70d57
JD
2928
2929 * dispnew.c (init_display): Don't init X display if the user asked
2930 for a non-X display.
7e37cb69 2931
957b3c5f
KH
29322006-04-12 Kenichi Handa <handa@m17n.org>
2933
2934 * coding.c (setup_coding_system): Use system_eol_type for default
2935 coding->eol_type.
2936
db926d80
DN
29372006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2938
2939 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
2940
2941 * data.c (wrong_type_argument): Try to avoid compiler warnings due
2942 to the fact the function is now marked as NO_RETURN.
2943
978781a5
EZ
29442006-04-10 Eli Zaretskii <eliz@gnu.org>
2945
2946 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
2947
8fd0f424
RF
29482006-04-10 Romain Francoise <romain@orebokech.com>
2949
2950 * xrdb.c (gethomedir): Use xstrdup.
2951
f8f10777
AS
29522006-04-10 Andreas Schwab <schwab@suse.de>
2953
2954 * xrdb.c (gethomedir): Make sure to always return a pointer that
2955 can be passed to free.
2956
2a8da555
RS
29572006-04-09 Richard Stallman <rms@gnu.org>
2958
2959 * lisp.h (Fkill_emacs): Undo previous change.
2960
29612006-04-08 Richard Stallman <rms@gnu.org>
2962
2963 * search.c (boyer_moore): Test ch >= 0400, not >.
2964
404be028
DN
29652006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
2966
2967 * puresize.h (pure_write_error): Mark as NO_RETURN.
2968
4ca412ec 2969 * lisp.h (args_out_of_range, args_out_of_range_3)
404be028 2970
f93bd8e4
EZ
29712006-04-08 Eli Zaretskii <eliz@gnu.org>
2972
2973 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
2974 if a menu is active on this frame.
2975
31a4f621
DN
29762006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
2977
2978 * lisp.h (report_file_error): Mark as NO_RETURN.
2979
7e773529
EZ
29802006-04-08 Eli Zaretskii <eliz@gnu.org>
2981
4f27350a
EZ
2982 * alloc.c [STDC_HEADERS]: Include stddef.h.
2983
7e773529
EZ
2984 * lisp.h (PSEUDOVECSIZE): Fix last change.
2985
6bfd98e7
SM
29862006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2987
2988 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
2989 `raw_status_high', and `raw_status_low' with plain integers, and move
2990 them to the end of the structure.
2991
2992 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
2993 pseudovector's size field so only the Lisp_Object fields get GC'd.
2994
2995 * process.c (update_status, make_process, Fdelete_process)
2996 (Fprocess_status, list_processes_1, start_process_unwind)
2997 (create_process, Fmake_network_process, server_accept_connection)
2998 (wait_reading_process_output, send_process, Fprocess_running_child_p)
2999 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
3000 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
3001 `pid' and `raw_status'.
3002 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
3003 representing PIDs that are larger than most-positive-fixnum.
3004
3005 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
3006
3007 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
3008
1d79e521
EZ
30092006-04-08 Eli Zaretskii <eliz@gnu.org>
3010
3011 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
3012
d65b4235
PE
30132006-04-03 Paul Eggert <eggert@cs.ucla.edu>
3014
3015 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
3016 ../lib-src/b2m.c and ../lib-src/editfns.c.
3017 (Fcurrent_time_string): Use it.
3018 Document that the year might not consume 4 columns if it's outside
3019 the range 1000-9999.
3020 Check for asctime failure.
3021 Don't assume that the output string length is always exactly 24.
3022
fc9f8d15
YM
30232006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3024
3025 * macterm.c (XTread_socket): Initialize variable `f' before its use.
3026
022af124
KH
30272006-04-03 Kenichi Handa <handa@m17n.org>
3028
3029 * image.c: Include "charset.h" and "coding.h".
3030 (x_find_image_file): Return an encoded file name.
3031
61be4a8a
EZ
30322006-04-01 Eli Zaretskii <eliz@gnu.org>
3033
3034 * configure: Regenerated.
3035
a869edd4
KH
30362006-03-31 Kenichi Handa <handa@m17n.org>
3037
3038 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
3039
29444a2f
DN
30402006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3041
3042 * xdisp.c (syms_of_xdisp): Fix variable name.
3043
3c5f9492
KH
30442006-03-30 Kenichi Handa <handa@m17n.org>
3045
3046 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
3047
267ee78f
JB
30482006-03-29 Juanma Barranquero <lekktu@gmail.com>
3049
3050 * keyboard.c (process_tool_bar_item): Reorder dummy args.
3051
293bd733
SM
30522006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3053
3054 * keyboard.c (tool_bar_items): Use map_keymap.
3055 (process_tool_bar_item): Add dummy args to fit the required interface.
3056
4fccedb5
EZ
30572006-03-25 Eli Zaretskii <eliz@gnu.org>
3058
3059 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
3060 to zero before calling debug_print or safe_debug_print.
3061
3062 * print.c (print_output_debug_flag): New global variable.
3063 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
3064 OutputDebugString if print_output_debug_flag is zero.
3065
aac18aa4
PE
30662006-03-24 Paul Eggert <eggert@cs.ucla.edu>
3067
71c3f28f 3068 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
aac18aa4 3069 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
71c3f28f
EZ
3070 (Fdecode_time): Cast tm_year to EMACS_INT.
3071 (Fcurrent_time_string): Report an invalid time specification if
293bd733 3072 the argument is invalid. Also, check for out-of-range time stamps.
aac18aa4 3073
0ef4f79b
KS
30742006-03-24 Kim F. Storm <storm@cua.dk>
3075
95d8aa28
KS
3076 * xterm.c (handle_one_xevent):
3077 * w32term.c (w32_read_socket):
95d8aa28
KS
3078 * macterm.c (XTread_socket): Don't let key-press clear mouse face
3079 on in toolbar window if mouse-highlight is an integer.
3080
0ef4f79b
KS
3081 * fns.c (sxhash_list): Include last non-nil CDR in hash.
3082
e2e206ae
YM
30832006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3084
3085 * macmenu.c (enum mac_menu_kind): New enum.
3086 (min_menu_id): New variable.
3087 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
3088 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
3089 min_menu_id and enumerators in enum mac_menu_kind.
3090 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
3091 All uses changed. Add range check for menu ID.
3092 (fill_menubar): Add range check for menu ID.
3093 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
3094 GetEventParameter.
3095 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
3096 for each menu kind.
3097
5a32a2f2
KS
30982006-03-22 Kim F. Storm <storm@cua.dk>
3099
ea049c5e
KS
3100 * xdisp.c: Undo 2006-03-21 change.
3101
3102 * term.c: Define aliases for append_glyph and produce_stretch_glyph
3103 when `static' is defined to avoid name clash with those in xdisp.c.
3104
647b07d1
AS
3105 * process.c (Faccept_process_output): Fix to comply with lisp
3106 reference. Change arg "timeout" to "seconds" and allow both
3107 integer and float value. Change arg "timeout-msec" to "millisec"
3108 and interpret" as milliseconds rather than microseconds. Fix doc
3109 string accordingly.
5a32a2f2 3110
d63cd766
KR
31112006-03-21 Ken Raeburn <raeburn@raeburn.org>
3112
293bd733
SM
3113 * xdisp.c (store_next_glyph): Rename from append_glyph.
3114 (generate_stretch_glyph): Rename from produce_stretch_glyph.
d63cd766
KR
3115 All callers changed accordingly.
3116
11e887e2
JD
31172006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3118
3119 * xterm.c: x_session_initialized new variable.
3120 (x_term_init): Use x_session_initialized to check if
3121 x_session_initialize should be called.
3122 (x_initialize): Initialize x_session_initialized.
3123
52bd2f43
KS
31242006-03-21 Kim F. Storm <storm@cua.dk>
3125
3126 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
3127 bitmap here, but ...
3128 (update_window_fringes): ... here, so we can test if it has changed.
3129
c1fc674b
AS
31302006-03-20 Andreas Schwab <schwab@suse.de>
3131
3132 * dispnew.c (init_display): Check DISPLAY here.
3133
3134 * emacs.c (main): Don't check here.
3135
3136 * xterm.c (x_display_ok): Don't use DISPLAY env var.
3137
7d619454
SM
31382006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3139
3140 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
3141 mixup (YAILOM).
3142
e2916251
EZ
31432006-03-20 Eli Zaretskii <eliz@gnu.org>
3144
3145 * emacs.c (main): Fix last change.
3146
95c1c901
KH
31472006-03-20 Kenichi Handa <handa@m17n.org>
3148
7d619454 3149 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
95c1c901
KH
3150
3151 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
3152
3153 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
3154
3155 * xterm.c (x_term_init): Remove unnecessary GCPRO.
3156
45c1c789
KS
31572006-03-19 Kim F. Storm <storm@cua.dk>
3158
3159 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
3160 so it doesn't associate overlay string with following glyph by default.
3161 Allow integer property value to specify explicit number of buffer
3162 positions associate with overlay string.
3163
11aaf447
CY
31642006-03-18 Chong Yidong <cyd@stupidchicken.com>
3165
3166 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
3167
e4d181dc
EZ
31682006-03-18 Nozomu Ando <nand@mac.com>
3169
3170 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
3171 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
3172 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
3173 Don't redefine.
3174
3175 * m/mips.h: Don't use unexmips on NetBSD.
3176 (LIBS_MACHINE): Move definition lower, so it doesn't use
3177 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
3178 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
3179
3180 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
3181 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
3182 option is broken (e.g., MIPS/NetBSD).
3183
50f9edc2
EZ
31842006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
3185
3186 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
7b833ed1 3187 Remove the HAVE_X_WINDOWS conditional.
50f9edc2 3188
7e37c7c0
EZ
31892006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
3190
3191 * emacs.c (main): If user asks for a display that is unavailable,
3192 simulate -nw.
3193
3194 * xterm.c (x_display_ok): New function.
3195
3196 * xterm.h: Add prototype for x_display_ok.
3197
c85eab3a
EZ
31982006-03-18 Eli Zaretskii <eliz@gnu.org>
3199
3200 * w32fns.c (Fw32_select_font): Doc fix.
3201
e09ce637
YM
32022006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3203
3204 * image.c [MAC_OS] (XPutPixel, XGetPixel)
3205 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
3206 version when depth is 32.
7d619454
SM
3207 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
3208 New function.
e09ce637
YM
3209 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
3210 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
3211
3212 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
3213 Create GWorld in ARGB pixel format.
7d619454
SM
3214 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
3215 Remove functions.
e09ce637
YM
3216 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
3217 instead of mac_copy_area/mac_copy_area_with_mask.
3218
b0896280
KS
32192006-03-15 Kim F. Storm <storm@cua.dk>
3220
3221 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
3222 empty row. Fixes memory corruption revealed by 2006-03-02 change.
3223 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
3224 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
3225 width is exactly the same as the window width. Don't count a final
3226 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
3227
713cb18d
JB
32282006-03-15 Juanma Barranquero <lekktu@gmail.com>
3229
364d0cf8 3230 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
713cb18d
JB
3231 conditional on HAVE_NTGUI, not WINDOWS_NT.
3232
ad21830e
YM
32332006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3234
3235 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
3236
3237 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
3238
3239 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
3240 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
3241 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
3242 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
3243 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
3244 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
3245 instead of mac_draw_bitmap.
3246 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
3247 define_fringe_bitmap and destroy_fringe_bitmap.
3248
8a34117e
CY
32492006-03-14 Chong Yidong <cyd@stupidchicken.com>
3250
3251 * xterm.c (x_uncatch_errors): Block input for entire function.
3252
ab68b375
JR
32532006-03-12 Jason Rumney <jasonr@gnu.org>
3254
92cc46af 3255 * w32fns.c (Fx_create_frame): Remove call to
364d0cf8 3256 Qface_set_after_frame_default (from xfns.c 2003-05-26).
92cc46af 3257
335be36b
JR
3258 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
3259 finished with the menu.
3260
ab68b375
JR
3261 * w32term.c: Sync 2005-10-24 xterm.c changes.
3262 (last_mouse_glyph_frame): New var.
3263 (note_mouse_movement): Say mouse moved if current frame differs
3264 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
3265 (w32_mouse_position): Set last_mouse_glyph_frame.
875e613d 3266 Remove OLD_REDISPLAY_CODE block.
ab68b375 3267
204b78de
YM
32682006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3269
3270 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
3271
3272 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
3273 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
3274
3275 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
3276
3277 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
3278
3279 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
3280 (x_draw_composite_glyph_string_foreground)
3281 (x_draw_image_foreground): Undo previous changes.
3282 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
3283 argument of mac_draw_rectangle.
3284 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
3285 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
3286 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
3287 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
3288 [USE_CG_DRAWING]: New functions.
3289 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
3290 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
3291 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
3292 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
3293 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
3294 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
3295 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
3296
a9d54793
KL
32972006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3298
3299 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
3300
b452fd7a
JR
33012006-03-11 Jason Rumney <jasonr@gnu.org>
3302
3303 * w32fns.c (signal_user_input): New function.
3304 (post_character_message): Use it for keyboard input.
3305 (w32_msg_pump): Use it for mouse input.
3306
f372bd5b
LT
33072006-03-11 Luc Teirlinck <teirllm@auburn.edu>
3308
3309 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
3310 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
3311
2c1bd367
EZ
33122006-03-11 Eli Zaretskii <eliz@gnu.org>
3313
3314 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
3315 if a menu is already active (the menubar_active flag is on).
3316
f161146b
EZ
33172006-03-11 David Ponce <david@dponce.com>
3318
7d619454 3319 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
f161146b 3320
9257b627
EZ
33212006-03-11 Eli Zaretskii <eliz@gnu.org>
3322
db3c0e9c
EZ
3323 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
3324 the list of unused display error handling functions.
3325
8887e8ec
EZ
3326 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
3327 HAVE_X_WINDOWS.
3328 (internal_condition_case, internal_condition_case_1)
3329 (internal_condition_case_2): Call x_catching_errors only if
3330 HAVE_X_WINDOWS.
3331
9257b627
EZ
3332 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
3333 Don't include sys/resource.h unless defined.
3334
395d3972
RS
33352006-03-11 Richard Stallman <rms@gnu.org>
3336
5a893bff
RS
3337 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
3338
395d3972 3339 * vm-limit.c (get_lim_data, lim_data, data_space_start):
7d619454 3340 Move from mem-limits.h.
395d3972
RS
3341 (enum warnlevel): New data type.
3342 (check_memory_limits): Rewrite the logic about warnings.
3343 Use standard `struct rlimit'. Check return values for nonsense.
3344 (memory_warnings): Always clear lim_data.
3345
3346 * mem-limits.h (get_lim_data, lim_data, data_space_start):
7d619454 3347 Move to vm-limit.c.
395d3972
RS
3348
3349 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
3350
3351 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
f372bd5b 3352 (internal_condition_case_1, internal_condition_case_2):
395d3972
RS
3353 Abort if within unclosed x_catch_errors.
3354
635a3496
RF
33552006-03-11 Romain Francoise <romain@orebokech.com>
3356
3357 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
3358
306cea3a
EZ
33592006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3360
3361 * lisp.h: Remove duplicate prototypes. Make the prototype of
3362 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
3363
97b5ae78
EZ
33642006-03-11 Eli Zaretskii <eliz@gnu.org>
3365
7325e714
EZ
3366 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
3367 argument of XDrawRectangle.
3368
97b5ae78
EZ
3369 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
3370
3371 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
3372 (x_draw_glyph_string_foreground)
3373 (x_draw_composite_glyph_string_foreground)
3374 (x_draw_image_foreground): Don't subtract 1 from width and height
3375 arguments to mac_draw_rectangle.
3376 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
3377
68f632a8
KS
33782006-03-10 Kim F. Storm <storm@cua.dk>
3379
3380 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
3381
349a4500
SM
33822006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
3383
3384 * alloc.c (USE_POSIX_MEMALIGN): New macro.
3385 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
3386
53a5eba9
KH
33872006-03-09 Kenichi Handa <handa@m17n.org>
3388
3389 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
3390 ASCII component of a composition.
3391
629f023d
LT
33922006-03-08 Luc Teirlinck <teirllm@auburn.edu>
3393
3394 * window.c: Declare preserve_y as a static global variable.
3395 (window_scroll_pixel_based): No longer declare preserve_y;
3396 it is global now.
f945af42 3397 (syms_of_window): Set preserve_y to -1.
629f023d 3398
4cdffedf
YM
33992006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3400
3401 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
3402 depth is 32.
204b78de 3403 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4cdffedf
YM
3404 depth is 32.
3405
45b5f35d
CY
34062006-03-06 Chong Yidong <cyd@stupidchicken.com>
3407
3408 * xdisp.c (handle_invisible_prop): Don't update it->position with
3409 a buffer position if we're in a display string.
3410
48b60fa1
YM
34112006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3412
3413 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
3414 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
3415
3416 * macfns.c (x_default_scroll_bar_color_parameter)
349a4500
SM
3417 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
3418 Remove unnecessary prototypes.
3419 (x_set_scroll_bar_default_width):
3420 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
48b60fa1
YM
3421 (mac_set_scroll_bar_width): New function.
3422 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
3423
3424 * macterm.c (get_control_part_bounds): Fix type of return value.
3425 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3426 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
3427 scroll bar if it is not tall enough to display scroll bar thumb.
3428 [USE_CARBON_EVENTS] (mac_convert_event_ref)
3429 (mac_handle_command_event, mac_handle_window_event)
3430 (mac_handle_mouse_event): Check error code of GetEventParameter.
3431 (convert_fn_keycode) [MAC_OSX]: Likewise.
f945af42 3432
6f10509c
AS
34332006-03-05 Andreas Schwab <schwab@suse.de>
3434
3435 * xselect.c (x_catch_errors_unwind): Fix missing return value.
3436
f79bc642
KS
34372006-03-02 Kim F. Storm <storm@cua.dk>
3438
3439 * frame.h (struct frame): New member n_tool_bar_rows.
3440
3441 * xdisp.c: Minimize the unpleasent visual impact of the requirement
3442 that non-toolkit tool-bars must occupy an integral number of screen
875e613d 3443 lines, by distributing the rows evenly over the tool-bar screen area.
f79bc642
KS
3444 (Vtool_bar_border): New variable.
3445 (syms_of_xdisp): DEFVAR_LISP it.
349a4500
SM
3446 (display_tool_bar_line): Add HEIGHT arg for desired row height.
3447 Make tool-bar row the desired height. Use default face for border
3448 below tool-bar.
f79bc642
KS
3449 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
3450 actual tool-bar rows.
3451 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
3452 Adjust the height of the tool-bar rows to fill tool-bar screen area.
3453 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
3454 is resized.
3455
0bbe0c9c
LT
34562006-03-01 Luc Teirlinck <teirllm@auburn.edu>
3457
3458 * search.c (Fregexp_quote): Do not precede a literal `]' with two
3459 backslashes to try to make clear that it has a literal meaning; it
3460 does not do that. (It could close a character alternative
3461 containing a backslash.)
3462
c525d842
CY
34632006-02-28 Chong Yidong <cyd@stupidchicken.com>
3464
3465 * xselect.c (x_catch_errors_unwind): New function.
3466 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
3467 (Fx_get_atom_name): Call x_uncatch_errors earlier.
3468
3469 * window.c (Qscroll_up, Qscroll_down): New syms.
3470 (window_scroll_pixel_based): Make preserve_y static to avoid
3471 getting point stuck when scrolling 1 line.
3472
4545fa20
CY
34732006-02-26 Chong Yidong <cyd@stupidchicken.com>
3474
349a4500 3475 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4545fa20 3476
364d0cf8
JB
3477 * xterm.c (x_load_font, x_term_init, XTmouse_position)
3478 (handle_one_xevent, x_connection_closed, x_list_fonts):
3479 No arg for x_uncatch_errors.
4545fa20
CY
3480
3481 * xselect.c (x_own_selection, x_decline_selection_request)
3482 (x_reply_selection_request, x_get_foreign_selection)
3483 (Fx_get_atom_name, Fx_send_client_event): Likewise.
3484
3485 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
3486 Likewise.
3487
a5e25a4c
LT
34882006-02-26 Luc Teirlinck <teirllm@auburn.edu>
3489
440cbd9e
LT
3490 * lread.c: Declare Vload_file_rep_suffixes instead of
3491 deleted variable default_suffixes.
3492 (Fget_load_suffixes): New function.
3493 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
3494 No longer use deleted variable default_suffixes. Update docstring.
3495 (syms_of_lread): defsubr Sget_load_suffixes.
3496 Expand `load-suffixes' docstring.
3497 Delete default_suffixes and DEFVAR_LISP the new variable
3498 `load-file-rep-suffixes'.
3499
3500 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
3501 of Vload_suffixes.
3502
3503 * lisp.h: EXFUN Fget_load_suffixes.
3504 Extern Vload_file_rep_suffixes.
3505
a5e25a4c
LT
3506 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
3507 with lisp.h.
3508
a7af5886
SM
35092006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3510
3511 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
3512 qualifier which was trying to avoid the bug that was fixed by
3513 yesterday's changes to xterm.c.
3514
9ba8e10d
CY
35152006-02-25 Chong Yidong <cyd@stupidchicken.com>
3516
3517 * xterm.h (x_catch_errors) Return value changed to void.
4545fa20 3518 (x_uncatch_errors): Delete unused count argument.
a7af5886 3519
9ba8e10d
CY
3520 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
3521 it can be called in a signal handler.
3522 (x_catch_errors_unwind): Function deleted.
3523 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
3524 (x_check_errors): Call x_uncatch_errors before signalling error.
3525
3526 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
3527 (x_connection_closed, x_list_fonts): Use new versions of
3528 x_catch_errors and x_uncatch_errors.
3529
3530 * xselect.c (x_own_selection, x_decline_selection_request)
3531 (x_reply_selection_request, x_get_foreign_selection)
3532 (Fx_get_atom_name, Fx_send_client_event): Likewise.
3533
3534 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
3535 Likewise.
3536
3537 * eval.c (record_unwind_protect): Add an assertion.
3538
f523e0c3
SM
35392006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3540
3541 * process.c (Fmake_network_process): Init the process's mark.
3542
a7a7e1d7
KS
35432006-02-25 Kim F. Storm <storm@cua.dk>
3544
3545 * buffer.c (modify_overlay): Force redisplay if we modify an
3546 overlay at the end of the buffer.
3547
a821c035
JD
35482006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3549
3550 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
3551 nil the image file has been removed, in that case use the (cached)
3552 pixmap.
3553
77343e1d
KH
35542006-02-24 Kenichi Handa <handa@m17n.org>
3555
3556 * fileio.c (Finsert_file_contents): When a text is replaced
3557 partially, be sure to set point before the inserted characters.
3558
92fb5516
KH
35592006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
3560
3561 * xfns.c (Fx_file_dialog): Return a decoded file name.
3562
78897758
YM
35632006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3564
3565 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
3566 glyph whose face is extended to the text area end.
3567
5b574e69
YM
3568 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
3569 values if control is not visible or values are not changed.
3570
acc6289a
SM
35712006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3572
3573 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
3574 The default `window' should not be "on a different frame".
3575
c4336e88
KS
35762006-02-22 Kim F. Storm <storm@cua.dk>
3577
3578 * indent.c (Fvertical_motion): Only try to move back if we can.
3579
b6e3efe0
YM
35802006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3581
3582 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
3583 n_clip_rects.
3584
3585 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
3586 xmenu.c.
3587
3588 * macterm.c (GC_CLIP_REGION): Remove macro.
3589 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
3590 All uses changed. Don't do clipping if n_clip_rects is zero.
acc6289a
SM
3591 (mac_set_clip_rectangles): Use xassert instead of abort.
3592 Set n_clip_rects. Don't make clip_region empty when number of
b6e3efe0
YM
3593 clipping rectangles is zero.
3594 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
3595 calling mac_set_clip_rectangles.
3596 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
3597 avoid multiple redraws.
3598
6f62a45e
KS
35992006-02-22 Kim F. Storm <storm@cua.dk>
3600
3601 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
3602
dd9959da
KS
36032006-02-21 Kim F. Storm <storm@cua.dk>
3604
3605 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
3606
364d0cf8 36072006-02-21 Zhang Wei <brep@newsmth.org>
a8f4bdc6
JD
3608
3609 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
3610 returning it.
3611
dd9959da 36122006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9866a438
JB
3613
3614 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
3615 (standard_bitmaps): Use it.
3616
9fb446e3
YM
36172006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3618
3619 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
3620 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
3621 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
3622 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
acc6289a
SM
3623 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
3624 Draw background if BG_WIDTH is not zero. Use float constants as
9fb446e3
YM
3625 divisors instead of double. Use alloca instead of xmalloc/xfree.
3626 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3627 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
3628 mac_draw_image_string* functions.
3629 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
3630 some fonts when srcCopy text transfer mode might be used.
3631 (mac_begin_clip, mac_end_clip): Check if region is empty.
3632 (mac_set_clip_rectangles): When resetting clip region, make it
3633 empty instead of disposing of it.
3634
49af2995
KS
36352006-02-20 Kim F. Storm <storm@cua.dk>
3636
3637 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
3638
3639 * buffer.h (struct buffer): New members fringe_indicator_alist and
3640 fringe_cursor_alist.
3641
3642 * buffer.c (init_buffer_once): Set dummy default values for
3643 fringe-indicator-alist and fringe-cursor-alist. The proper
3644 default values are set by pre-loading fringe.el.
3645 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
3646 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
9866a438 3647 corresponding default- variables.
49af2995
KS
3648
3649 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
3650 to use `int'.
3651 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
3652 Define explicitly.
3653 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
3654 (Qhollow_small): New variables.
3655 (syms_of_fringe): Intern and staticpro them.
3656 (question_mark_bits): Rename from unknown_bits.
3657 (left_curly_arrow_bits): Rename from continuation_bits.
3658 (right_curly_arrow_bits): Rename from continued_bits.
3659 (left_triangle_bits): Rename from ov_bits.
acc6289a 3660 (right_triangle_bits): Add.
49af2995
KS
3661 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
3662 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
acc6289a 3663 (filled_square_bits): Add.
49af2995 3664 (vertical_bar_bits): Rename from bar_cursor_bits.
9866a438 3665 (horizontal_bar_bits): Rename from hbar_cursor_bits.
49af2995
KS
3666 (empty_line_bits): Rename from zv_bits.
3667 (standard_bitmaps): Update to use new names.
3668 (draw_fringe_bitmap_1): Make static.
3669 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
3670 to map from logical cursors and indicators to physical bitmaps.
875e613d 3671 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
49af2995
KS
3672 bitmaps using symbol names instead of bitmap numbers.
3673 (update_window_fringes): Use logical indicator symbol names
3674 instead of bitmap numbers for logical. Add bitmap cache.
3675 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
3676
a77f947b
CY
36772006-02-20 Chong Yidong <cyd@stupidchicken.com>
3678
a073faa6
CY
3679 * regex.c: Revert 2006-02-19 change.
3680 (xmalloc, xrealloc): Define these when not linked to Emacs.
3681 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
a77f947b 3682
2f90d2bc
LT
36832006-02-19 Luc Teirlinck <teirllm@auburn.edu>
3684
3685 * regex.c (extend_range_table_work_area): Fix typo.
3686
5498b6af
RS
36872006-02-19 Richard M. Stallman <rms@gnu.org>
3688
7b1d7d66
RS
3689 * xterm.c (x_catch_errors): Use xmalloc.
3690
3691 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
3692 (regex_compile): Likewise.
3693 (regcomp): Use xmalloc.
3694
3695 * gtkutil.c (malloc_widget_value): Use xmalloc.
3696
5498b6af
RS
3697 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
3698 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
3699
3700 * xmenu.c (digest_single_submenu): When pane_string is empty,
3701 do initialize save_wv.
3702
4f2f3214
YM
37032006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3704
3705 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
3706 w->update_mode_line if arg F is not the selected frame.
3707
3708 * macmenu.c (popup_activated_flag, submenu_id)
3709 (next_menubar_widget_id): Remove variables.
3710 (initialize_frame_menubar): Remove function.
3711 (pop_down_menu, mac_menu_show): Simplify save value.
3712 (dispose_menus): New function.
3713 (pop_down_menu, fill_menubar): Use it.
3714 (fill_submenu): Remove function. All uses changed to fill_menu.
3715 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
3716 POS. Don't call SetMenuItemHierarchicalID here.
3717 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
3718 used next. Call SetMenuItemHierarchicalID here.
3719 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
3720 objects if needed. Reuse existing menu bar titles if possible.
3721 (set_frame_menubar): Don't clean up menu objects here.
3722
da7520de
CY
37232006-02-18 Chong Yidong <cyd@stupidchicken.com>
3724
3725 * window.c (window_min_size_1): Ensure room for the scroll bar and
3726 fringes.
3727
a9c18b84
RF
37282006-02-17 Romain Francoise <romain@orebokech.com>
3729
3730 * puresize.h (BASE_PURESIZE): Increment to 1200000.
3731
537407f0
SM
37322006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
3733
3734 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
3735 addition of the BLOCK_INPUTs.
3736
5bf3610f
JB
37372006-02-17 Juanma Barranquero <lekktu@gmail.com>
3738
3739 * window.c (Fset_window_scroll_bars): Doc fix.
3740
ed0218e2
KH
37412006-02-17 Kenichi Handa <handa@m17n.org>
3742
3743 * xdisp.c (display_mode_element): Call display_string with correct
3744 PREC arg (which must be a number of characters, not column width).
3745
f036d043
YM
37462006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3747
3748 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
3749
3750 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
3751
3752 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
3753
885f1975
RS
37542006-02-14 Richard M. Stallman <rms@gnu.org>
3755
9d8f542c
RS
3756 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
3757
885f1975
RS
3758 * m/ibms390x.h: New file.
3759
26ebccfd
JD
37602006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3761
3762 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
3763 value of x-gtk-whole-detached-tool-bar.
d8d3d48c 3764 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
26ebccfd
JD
3765
3766 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
3767
4d7637b8 37682006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
58118de5
JD
3769
3770 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
3771
3772 * xterm.h: Declare x_x_to_emacs_modifiers.
3773
3774 * gtkutil.c (xg_tool_bar_button_cb): New function.
3775 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
3776 store modifiers in event.
3777 (update_frame_tool_bar): Connect button-release-event to
3778 xg_tool_bar_button_cb.
3779
f8d775e1
RS
37802006-02-13 Richard M. Stallman <rms@gnu.org>
3781
3782 * .gdbinit (xwindow): Update the code to show the window box.
3783
0c0351b5
JD
37842006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3785
3786 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
3787
4d94dd9a
RS
37882006-02-12 Richard M. Stallman <rms@gnu.org>
3789
3790 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
3791
c54fb9ef
EZ
37922006-02-11 Eli Zaretskii <eliz@gnu.org>
3793
3794 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
3795 (syms_of_keyboard): DEVFAR_LISP and initialize it.
3796 (parse_tool_bar_item, parse_menu_item): If that variable is
3797 non-nil, don't disable menu items and tool-bar buttons.
3798
ac6a9b55
JB
37992006-02-11 Juanma Barranquero <lekktu@gmail.com>
3800
3801 * doc.c (Fsubstitute_command_keys): Doc fix.
3802
0ddb0ae8
TTN
38032006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
3804
3805 * data.c (Findirect_function): Rewrite docstring.
3806 Fix omission bug: Declare new arg NOERROR.
3807
cbd488c4
YM
38082006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3809
3810 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
3811 if window_desc is not set yet.
3812 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
3813 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
3814 parameter `visibility' is `icon'.
3815 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
3816 instead of "fontset-mac".
3817 (Fx_focus_frame): New defun.
3818 (syms_of_macfns): Defsubr it.
3819
3820 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
3821 for unfocused frame.
3822 (x_raise_frame): Call BringToFront instead of SelectWindow.
3823 (x_lower_frame): Use NULL instead of nil.
3824 (x_make_frame_visible): Don't call SelectWindow.
3825 (XTread_socket): Increment handling_signal at the start, decrement
3826 it at the end.
3827 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
3828 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
3829
a7f96a35
KS
38302006-02-10 Kim F. Storm <storm@cua.dk>
3831
3832 * data.c (Findirect_function): Add NOERROR arg. All callers changed
3833 to pass Qnil for NOERROR.
3834
3835 * keymap.c (current_minor_maps_error): Remove.
3836 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
3837 instead of using internal_condition_case_1+current_minor_maps_error.
3838
1834d8e7
JD
38392006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3840
3841 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
3842 frames for GTK, in that case it is the tool bar. This is so that
3843 highlighted text get reset properly.
3844
cffc3472
JB
38452006-02-09 Juanma Barranquero <lekktu@gmail.com>
3846
3847 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
3848
e99c7521
JD
38492006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3850
3851 * window.c (adjust_window_trailing_edge): Check that shrinking
3852 does not set a window to size zero or less.
3853
42ab8e36
MB
38542006-02-08 Miles Bader <miles@gnu.org>
3855
3856 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
cffc3472 3857 of Fget_text_property (other field functions work with overlays as
42ab8e36
MB
3858 well as text-properties).
3859
6a80c3ba
KH
38602006-02-07 Kenichi Handa <handa@m17n.org>
3861
e1a67366 3862 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6a80c3ba 3863
e1a67366
KS
3864 * xterm.h (unibyte_display_via_language_environment):
3865 * w32term.h (unibyte_display_via_language_environment):
3866 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6a80c3ba 3867
d2b4c17d
KH
38682006-02-07 Kenichi Handa <handa@m17n.org>
3869
e1a67366 3870 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
d2b4c17d 3871 (produce_glyphs): Set the character to print in
e1a67366
KS
3872 it->char_to_display. Handle unibyte-display-via-language-environment.
3873 (produce_stretch_glyph): Set character to print in it->char_to_display.
d2b4c17d 3874
8b9d426a
KH
38752006-02-06 Kenichi Handa <handa@m17n.org>
3876
e1a67366 3877 * lread.c (openp): Initialize encoded_fn before GCPRO it.
8b9d426a 3878
d63b4018
KR
38792006-02-05 Ken Raeburn <raeburn@raeburn.org>
3880
3881 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
3882
98950fd6
KR
3883 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
3884 Cast bitfield value to EMACS_INT, to suppress gcc warning.
3885
0cf36656
KR
3886 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
3887 defining.
3888
ad02d7ea
KS
38892006-02-03 Kim F. Storm <storm@cua.dk>
3890
3891 * xdisp.c: Cache last merged escape glyph face.
3892 (last_escape_glyph_frame, last_escape_glyph_face_id)
3893 (last_escape_glyph_merged_face_id): New variables.
3894 (get_next_display_element): Use/update them.
3895 (redisplay_internal): Reset them before redisplay.
3896
3897 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
3898 Only recheck faces after displaying ellipsis.
3899
999a0fe5
KH
39002006-02-02 Kenichi Handa <handa@m17n.org>
3901
3902 * coding.c (decode_composition_emacs_mule): Fix handling of
3903 incorrect format data.
3904
cd7cd4ac
JD
39052006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3906
3907 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
3908 (gtk_toolbar_insert) so we can have tool bars of different sizes.
3909
4cf7e99c
LT
39102006-01-30 Luc Teirlinck <teirllm@auburn.edu>
3911
3912 * data.c (Flistp): Doc fix.
3913
a3bc032f
JB
39142006-01-30 Juanma Barranquero <lekktu@gmail.com>
3915
3916 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
3917 Fix typos in docstrings.
3918
6badf38c
LT
39192006-01-28 Luc Teirlinck <teirllm@auburn.edu>
3920
1f2907ee 3921 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6badf38c 3922
e2984df0
CY
39232006-01-27 Chong Yidong <cyd@stupidchicken.com>
3924
3925 * alloc.c (make_interval, allocate_string)
3926 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
3927 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
3928 global variables.
3929
dc86c16d
EZ
39302006-01-27 Eli Zaretskii <eliz@gnu.org>
3931
3932 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
3933 the MSDOS definition.
3934
57436ee7
RS
39352006-01-26 Richard M. Stallman <rms@gnu.org>
3936
3937 * alloc.c (check_pure_size): Make overflow message an "error message".
3938
3939 * keymap.c (Fmap_keymap): Doc fix.
3940
3941 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
3942 unless they were cleared out.
3943
3944 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
3945
2cb3aec4
KL
39462006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3947
e477bb04
KL
3948 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
3949 (find_field): Set before_field to after_field when pos is at BEGV.
293bd733
SM
3950 (Fline_beginning_position, Fline_end_position):
3951 Clarify confusing doc string.
2cb3aec4
KL
3952
3953 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
3954 string.
3955
34b87689
KH
39562006-01-26 Kenichi Handa <handa@m17n.org>
3957
3958 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
3959 current_dir, and error_file. On reporting an error, decode them
3960 back.
3961
1cee1e27
SM
39622006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3963
3964 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
3965 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
3966 Don't check for quit, since any loop will go through fail or jump.
3967
a0b08700
CY
39682006-01-24 Chong Yidong <cyd@stupidchicken.com>
3969
3970 * alloc.c (allocate_string_data): Update next_free immediately, to
3971 reduce risk of memory clobberage.
3972
bf7f1d30
KL
39732006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3974
3975 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
3976 display when point moves across an ellipsis. If there are
3977 adjacent invisible texts, don't lose the second one's ellipsis.
3978 (x_produce_glyphs): Doc fix.
3979
e5e26d8f
SM
39802006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
3981
3982 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
3983
1ff4535b
KS
39842006-01-23 Kim F. Storm <storm@cua.dk>
3985
3986 * xdisp.c (handle_single_display_spec): Fix handling of space
3987 property on char from string: set *position rather than
3988 it->current.pos.
3989 (produce_stretch_glyph): Reduce width of stretch glyphs so they
3990 don't get wider than the window (unless truncate-lines is on).
3991
5badc98d
SM
39922006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
3993
3994 * xterm.c: Avoid allocating Lisp data from a signal handler.
3995 (x_error_message): New var to replace x_error_message_string.
3996 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
3997 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
3998 (syms_of_xterm): Use it instead of x_error_message_string.
3999
4000 * alloc.c (lisp_align_free): Add an assertion.
4001 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
4002 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
4003 a signal handler.
4004
638590e8
LT
40052006-01-21 Luc Teirlinck <teirllm@auburn.edu>
4006
4007 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
4008
cde0a40c
RF
40092006-01-21 Romain Francoise <romain@orebokech.com>
4010
4011 * xdisp.c (get_window_cursor_type): Fix last change.
4012 Update copyright year.
4013
ea5f3ad4
EZ
40142006-01-20 Eli Zaretskii <eliz@gnu.org>
4015
3fdf12ca
EZ
4016 * lread.c (Fload): Don't leak the file descriptor returned by
4017 openp if we are going to signal an error.
4018
7559f399
EZ
4019 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
4020 directly to _close.
4021 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
4022 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
4023 to _read.
cde0a40c 4024 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7559f399
EZ
4025 directly to _write.
4026
ea5f3ad4
EZ
4027 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
4028 if it is NULL.
4029
ef8beec6
KH
40302006-01-20 Kenichi Handa <handa@m17n.org>
4031
4032 * puresize.h (BASE_PURESIZE): Increment to 1190000.
4033
995f2df9
CY
40342006-01-19 Chong Yidong <cyd@stupidchicken.com>
4035
4036 * xdisp.c (get_window_cursor_type): Use cursor type specified by
4037 the selected buffer for the echo area too.
4038
c94c4d0a
RS
40392006-01-19 Richard M. Stallman <rms@gnu.org>
4040
4041 * keymap.c (Fmap_keymap): Doc fix.
4042
4043 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
4044
4045 * keyboard.c (echo_char): Don't omit the space between first two
4046 echoed chars.
4047
4048 * minibuf.c (read_minibuf): Fix previous change.
4049
71578d4f
KH
40502006-01-19 Kenichi Handa <handa@m17n.org>
4051
4052 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
4053
edd1c685
RS
40542006-01-17 Richard M. Stallman <rms@gnu.org>
4055
4056 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
4057 value in f->param_alist.
4058
0501acd4
AS
40592006-01-15 Andreas Schwab <schwab@suse.de>
4060
4061 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
4062
d33a7384
NR
40632006-01-13 Richard M. Stallman <rms@gnu.org>
4064
4065 * Makefile.in: Define new macro WINDOW_SUPPORT.
4066 (lisp): Use it.
4067 (SOME_MACHINE_LISP): Add conditionally loaded files.
4068
2026418c
YM
40692006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4070
4071 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
22e6707e 4072 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2026418c
YM
4073 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
4074 decomposed form.
4075
4076 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
4077 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
4078 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
4079 macro. Also try member ifr_addr when getting netmask.
4080
b8f7f3be
SM
40812006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
4082
4083 * fileio.c (Fexpand_file_name): Remove redundant tests.
4084 Fix elimination of // so that it doesn't prevent elimination of an
4085 immediately following /. or /..
4086
4c9ca1a3
JD
40872006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4088
4089 * gtkutil.c (xg_toggle_notify_cb): New function.
4090 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
4091 xg_toggle_notify_cb.
4092 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
4093 parameter value changes so the toggle button gets updated.
4094
340bb2ea
NR
40952006-01-06 Nick Roberts <nickrob@snap.net.nz>
4096
4097 * .gdbinit: Fix typo.
4098
feaf060a
EZ
40992006-01-05 Eli Zaretskii <eliz@gnu.org>
4100
4101 * .gdbinit: Fix last change.
4102
c22cc558
KS
41032006-01-05 Kim F. Storm <storm@cua.dk>
4104
4105 * process.c (Fmake_network_process): Use AF_INET instead of
22e6707e 4106 AF_UNSPEC when AF_INET6 is not defined.
c22cc558 4107
07f9b01c
YM
41082006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4109
4110 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
4111 Don't check that the other type is known file-related one.
4112
4113 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
4114 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
4115 OS X 10.4 and later.
4116
0facd9c3
JD
41172006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4118
4119 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
4120 let GTK do all image processing. Importing Emacs own pixmaps to GTK
4121 looks bad for inactive tool bar items with some Gnome themes.
4122
805b0439
EZ
41232006-01-04 Eli Zaretskii <eliz@gnu.org>
4124
913645cd
EZ
4125 * .gdbinit: Avoid a warning message when x_error_quitter is not
4126 compiled in.
4127
805b0439
EZ
4128 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
4129 for w32.
4130
0f5642c2
KS
41312006-01-04 Kim F. Storm <storm@cua.dk>
4132
8a5db8ae
KS
4133 * process.c: Add IPv6 support.
4134 (Qipv4, Qipv6): New vars.
4135 (syms_of_process): Intern and staticpro them.
4136 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
4137 with or without port number. Handle 4 element vector as IPv4 address
4138 without port number.
4139 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
4140 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
4141 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
4142 request that address family only. :family nil or omitted means to
4143 determine address family from the specified :host and :service.
4144 (ifflag_table): Add missing OpenBSD IFF_ flags.
4145 (server_accept_connection): Handle IPv6 addresses.
4146 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
4147
0f5642c2
KS
4148 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
4149 determine which breakpoints to set.
4150
e7b394e1
SM
41512006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
4152
4153 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
4154
4155 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
4156
dcc9b98d
RF
41572006-01-03 Romain Francoise <romain@orebokech.com>
4158
4159 * emacs.c (main): Update copyright year.
4160
6918ac24 41612006-01-03 Ken Raeburn <raeburn@gnu.org>
1a271e14
KR
4162
4163 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
4164 nil for the call to internal_delete_file.
4165
bb951f0e
KR
41662006-01-01 Ken Raeburn <raeburn@gnu.org>
4167
4168 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
4169 to nil for the call to Fwrite_region.
4170
b20de1cd
RS
41712005-12-31 Richard M. Stallman <rms@gnu.org>
4172
4173 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
4174
b5871831
EZ
41752005-12-31 Eli Zaretskii <eliz@gnu.org>
4176
4177 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
4178
c26ec07f
LT
41792005-12-30 Luc Teirlinck <teirllm@auburn.edu>
4180
4181 * textprop.c (set_text_properties): Reword description of return value.
4182 Return Qnil if caller wants to remove all text properties from a
4183 string and the string already has no intervals.
4184
0db017c0
SM
41852005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
4186
4187 * term.c (visible_cursor): New boolean var.
4188 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
4189 visible_cursor.
4190 (syms_of_term): Export the new var as "visible-cursor".
4191
fc8dc7cf
EZ
41922005-12-30 Eli Zaretskii <eliz@gnu.org>
4193
4194 * .gdbinit: Tell users not to worry about GDB warnings that some
4195 functions do not exist in the binary.
4196
82a80058
AS
41972005-12-30 Andreas Schwab <schwab@suse.de>
4198
4199 * process.c (Fnetwork_interface_info): Correctly terminate the
4200 loop over ifflag_table.
4201
c36238ee
RS
42022005-12-29 Richard M. Stallman <rms@gnu.org>
4203
d11db2c8
RS
4204 * lread.c (readevalloop): Test for reading a whole buffer
4205 before actually reading anything. Handle all cases, including
4206 START = END = nil and an already-narrowed buffer.
4207 Convert END to a marker if it is a number.
4208
c36238ee
RS
4209 * keymap.c (describe_map): Put sparse map elements into an array,
4210 sort them, then output a sequence of identical bindings on one line.
4211 (struct describe_map_elt): New data type.
4212 (describe_map_compare): New function.
4213
82bc1fd6
JD
42142005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4215
e7b394e1 4216 * gtkutil.c (xg_get_file_with_chooser): Change message shown
82bc1fd6
JD
4217 in file chooser.
4218
fe5195e8
RS
42192005-12-27 Richard M. Stallman <rms@gnu.org>
4220
6281e1e8
RS
4221 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
4222 not the current one.
4223
4224 * minibuf.c (Fminibuffer_message): Doc fix.
4225 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
4226
fe5195e8
RS
4227 * eval.c (do_autoload): Ignore elements of Vautoload_queue
4228 where car is not symbol.
4229
0d9fb289
KH
42302005-12-27 Kenichi Handa <handa@m17n.org>
4231
4232 * charset.c (lisp_string_width): Check multibyteness of STRING.
4233
ff9c9c59
JD
42342005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4235
4236 * xfns.c: x_show_hidden_files, new variable.
4237 (syms_of_xfns): Defvar it.
4238
4239 * gtkutil.c (xg_toggle_visibility_cb): New function.
4240 (xg_get_file_with_chooser): Add toggle hidden files and a message
4241 to the new file chooser dialog. Show hidden files if
4242 x_show_hidden_files is non-zero.
4243
d7504d5c
RS
42442005-12-26 Richard M. Stallman <rms@gnu.org>
4245
4246 * keyboard.h: Undo previous change.
4247
4248 * Makefile.in (undo.o): Undo previous change.
4249
4250 * undo.c: Undo previous change.
4251
0ad017ce
LT
42522005-12-26 Luc Teirlinck <teirllm@auburn.edu>
4253
403c00a5
LT
4254 * keyboard.h: extern last_point_position_window.
4255
0ad017ce
LT
4256 * undo.c: include keyboard.h.
4257
403c00a5 4258 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 4259
91e25f5e
RS
42602005-12-26 Richard M. Stallman <rms@gnu.org>
4261
d7504d5c
RS
4262 * commands.h (last_point_position_window): Declare.
4263
91e25f5e
RS
4264 * undo.c: Depend on window.h.
4265 (record_point): Save old point from the correct window.
4266
4267 * keyboard.c (last_point_position_window): New variable.
4268 (command_loop_1): Set last_point_position_window.
4269 (syms_of_keyboard): Init it.
4270
4271 * Makefile.in (undo.o): Depend on window.h.
4272
cad1051b
RS
42732005-12-25 Richard M. Stallman <rms@gnu.org>
4274
4275 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
4276 to undo a `provide'.
4277
4278 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
4279
d52c26e9
KB
42802005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
4281
4282 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
4283 define for FreeBSD on this platform.
4284
14af1e44
YM
42852005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4286
4287 * macterm.h (TYPE_FILE_NAME): New define.
4288 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
4289
e7b394e1
SM
4290 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
4291 Add prototypes. Make static.
14af1e44
YM
4292 (mac_aedesc_to_lisp): Initialize err to noErr.
4293 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
4294 (init_coercion_handler): New functions.
4295 (Fmac_coerce_ae_data): Use coercion of Apple event data for
4296 translation from/to file names.
4297
4298 * macterm.c: Don't include sys/param.h.
4299 (init_coercion_handler): Add extern.
4300 [MAC_OS8] (main): Call init_coercion_handler.
4301 (mac_initialize) [MAC_OSX]: Likewise.
4302 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
4303 Apple event data for translation from/to file names.
4304
4305 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
4306
4307 * image.c [MAC_OS] (find_image_fsspec): Likewise.
4308
5fed8c15 43092005-12-23 Martin Rudalics <rudalics@gmx.at>
bab3eee1
EZ
4310
4311 * insdel.c (insert, insert_and_inherit, insert_before_markers)
4312 (insert_before_markers_and_inherit): Make sure FROM is correct
4313 when `after-change-functions' are called.
4314
90f2e16b
JD
43152005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4316
4317 * xfns.c (Fx_uses_old_gtk_dialog): New function.
4318
4319 * gtkutil.c (xg_uses_old_file_dialog): New function.
4320 (xg_get_file_name): Use xg_uses_old_file_dialog.
4321
4322 * gtkutil.h: Declare xg_uses_old_file_dialog.
4323
0ee01fff
RS
43242005-12-22 Richard M. Stallman <rms@gnu.org>
4325
4326 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
4327
b73e4d84
YM
43282005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4329
4330 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
4331
4332 * macgui.h (XCharStruct): Remove member `valid_p'.
4333 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
4334 (XCharStructRow): New typedef.
e7b394e1
SM
4335 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
4336 New macros.
b73e4d84
YM
4337 (struct MacFontStruct): Add member `bounds'. Remove member
4338 `per_char'. All uses for QuichDraw Text fonts are changed to
4339 `bounds.per_char'. ATSUI font bounds are represented as an array
4340 `bounds.rows' of XCharStructRow's, each of which consists of a
4341 bitmap of valid entries and an array of char bounds.
4342
4343 * macterm.c (mac_per_char_metric): Add prototype.
4344 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
4345 (mac_query_char_extents): New function.
4346 (x_per_char_metric): Use it.
4347 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
e7b394e1
SM
4348 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
4349 Use mac_per_char_metric instead of x_per_char_metric.
b73e4d84
YM
4350 (mac_text_extents_16): New function.
4351 (mac_compute_glyph_string_overhangs): Use it.
4352 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
4353
a425bd03
SM
43542005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4355
4356 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
4357 (Fminibuffer_completion_help): Remove duplicates before display.
4358
aa0b0cd9
KL
43592005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4360
da3863b5 4361 * print.c (print_preprocess): Don't lose print_depth levels while
aa0b0cd9
KL
4362 iterating.
4363
5a61ec18
YM
43642005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4365
4366 * macmenu.c (Qmac_apple_event): Add extern.
4367 (set_frame_menubar, mac_menu_show keymp_panes)
4368 (single_keymap_panes, list_of_panes, list_of_item)
4369 (single_menu_item): Add argument types to prototypes.
4370 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
4371 (struct skp): New struct (from xmenu.c).
4372 (single_keymap_panes, single_menu_item, list_of_panes)
4373 (list_of_item): Sync with xmenu.c.
4374 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
4375 POSITION if it is mac-apple-event event.
4376 (menubar_selection_callback): Don't use menu_command_in_progress.
4377 (set_frame_menubar): First parse all submenus, then make
4378 widget_value trees from them. Don't allocate any widget_value
4379 objects until we are done with the parsing.
4380 (parse_single_submenu, digest_single_submenu): New functions.
4381 (single_submenu): Function deleted, replaced by those two.
4382 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
4383 create or dispose of EventHandlerUPP. Install hander to all submenus.
4384 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
4385 instead of ENCODE_SYSTEM.
4386 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
4387 integer values.
4388 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
4389 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
4390 format menu item string. Don't use NULL for integer value.
4391
4392 * macterm.h (struct mac_output): Remove unused member
4393 menu_command_in_progress.
4394
3bdba51d
JL
43952005-12-20 Juri Linkov <juri@jurta.org>
4396
4397 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
4398 position is non-nil, else set it to nil.
4399
4400 * macmenu.c (Fx_popup_menu): Add `else' to set
4401 Vmenu_updating_frame to nil only if position is nil.
4402
4403 * w32menu.c (Fx_popup_menu): Add `else' to set
4404 Vmenu_updating_frame to nil only if position is nil.
4405
d6a90a49
YM
44062005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4407
4408 * keyboard.c (make_lispy_event): Drag-and-drop items are now
4409 stored in member `args' of struct input_event.
4410
4411 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
4412
4413 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
4414 stored in member `args' of struct input_event.
4415
4416 * w32term.c (construct_drag_n_drop): Likewise.
4417
4418 * macterm.c (mac_do_receive_drag): Likewise.
4419 (x_use_underline_position_properties): Undo 2005-07-13 change.
4420 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
4421 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
4422 (mac_pass_command_to_system, mac_pass_control_to_system):
4423 New boolean variables renamed from Lisp_Object ones
d6a90a49 4424 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
4425 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
4426 All uses changed.
d6a90a49
YM
4427 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
4428 Make them user options.
a425bd03
SM
4429 (mac_handle_command_event, mac_store_services_event):
4430 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
4431 (backtranslate_modified_keycode): Mask off modifier keys that are
4432 mapped to some Emacs modifiers before passing it to KeyTranslate.
4433 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
4434 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
4435 Fix docstrings of `mac-*-modifier'.
4436
4437 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
4438 (do_applescript): Change argument types to Lisp_Object.
4439 All uses changed.
d6a90a49
YM
4440
4441 * macterm.h (create_apple_event_from_event_ref): Remove 5th
4442 argument from extern.
4443
20d1c5c5
DN
44442005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4445
4446 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
4447 the answer, return `lambda', not nil.
4448
abeb5855
EZ
44492005-12-17 Eli Zaretskii <eliz@gnu.org>
4450
4451 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
4452 enclosed in $(ARGQUOTE)s should not be split between two lines, as
4453 that will break with GNU Make >3.80, when sh.exe is used and
4454 arg quoting is with '..'.
4455
6b8dfbf7
CY
44562005-12-17 Chong Yidong <cyd@stupidchicken.com>
4457
4458 * print.c (print_preprocess): Just signal an error if print_depth
4459 is exceeded.
4460
d912b87a
EZ
44612005-12-17 Eli Zaretskii <eliz@gnu.org>
4462
4463 * .gdbinit: Set a breakpoint on w32_abort.
4464
2a502a32
JL
44652005-12-16 Juri Linkov <juri@jurta.org>
4466
4467 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
4468 created from minibuffer_completion_contents.
4469 (minibuffer_completion_contents): Remove.
4470 (do_completion, Fminibuffer_complete_word)
4471 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
4472 with Fminibuffer_completion_contents.
4473 (syms_of_minibuf): Add Sminibuffer_completion_contents.
4474 (Fdisplay_completion_list): Doc fix.
4475 (display_completion_list_1): Use `nil' for second arg of
4476 `Fdisplay_completion_list'.
4477
bf63eb69
JD
44782005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4479
4480 * xfns.c (compute_tip_xy): Handle negative dx and dy.
4481
a425bd03 4482 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 4483
a425bd03 4484 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 4485
9b98e161
CY
44862005-12-14 Chong Yidong <cyd@stupidchicken.com>
4487
4488 * print.c (print_preprocess): Go to a deeper print_depth to avoid
4489 print_object loop.
4490
89aa725a
KH
44912005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
4492
4493 * coding.c (code_convert_region_unwind): GCPRO arg.
4494
3b006f5b
JD
44952005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4496
57134802
JD
4497 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
4498 i.e. dy is offset from top of frame instead of bottom.
4499
4500 * macfns.c (compute_tip_xy): Ditto.
4501
4502 * w32fns.c (compute_tip_xy): Ditto.
4503
3b006f5b
JD
4504 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
4505 (xg_get_image_for_pixmap, xg_create_frame_widgets)
4506 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
4507
4508 * xmenu.c (menubar_selection_callback): Do nothing if the callback
4509 is for an unselected radio menu item.
4510
2cb33a98
RS
45112005-12-11 Richard M. Stallman <rms@gnu.org>
4512
4513 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
4514
4515 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
4516
4517 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
4518 (Flookup_key): Doc fix.
4519 (syms_of_keymap) <function-key-map>: Doc fix.
4520
4521 * fns.c (Frequire): Treat evaluating from a source file
4522 like loading the file.
4523
4524 * floatfns.c (Flog): Doc fix.
4525
4526 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
4527 when we change the buffer.
4528
d7d1f75e
JL
45292005-12-11 Juri Linkov <juri@jurta.org>
4530
4531 * minibuf.c (display_completion_list_1):
4532 Call `minibuffer_completion_contents' instead of using `nil' as
4533 second arg of `Fdisplay_completion_list'.
4534 (keys_of_minibuf): Unbind SPC in
4535 Vminibuffer_local_filename_completion_map (see also related
4536 change on 2005-12-06).
4537
ac8fcf0f
YM
45382005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4539
4540 * emacs.c (main) [MAC_OS8]: Undo previous change.
4541
4542 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
4543 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
4544
4b3eb407
YM
45452005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4546
4547 * Makefile.in (macselect.o): Depend on keymap.h.
4548
4549 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
4550 syms_of_macselect.
4551
4552 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
4553 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
4554
4555 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
4556 (syms_of_keyboard) [MAC_OS]: Initialize it.
4557 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
4558
4559 * mac.c (Qundecoded_file_name): New variable.
4560 (syms_of_mac): Initialize it.
4561 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 4562 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
4563 (Fmac_coerce_ae_data): New defun.
4564 (syms_of_mac): Defsubr it.
4565
4566 * macselect.c: Include keymap.h.
4567 (mac_ready_for_apple_events): New variable.
4568 (Vmac_apple_event_map, Qmac_apple_event_class)
4569 (Qmac_apple_event_id): New variables.
4570 (syms_of_macselect): Initialize them.
4571 (Qundefined, mac_store_apple_event): Add externs.
4572 (struct apple_event_binding): New struct.
4573 (find_event_binding_fun, find_event_binding)
4574 (mac_find_apple_event_spec, defer_apple_events)
4575 (mac_handle_apple_event, init_apple_event_handler)
4576 (copy_scrap_flavor_data): New functions.
4577 (Fmac_process_deferred_apple_events): New defun.
4578 (syms_of_macselect): Defsubr it.
4579 (mac_store_services_event): Fix extern.
4580 (mac_handle_service_event): Don't allocate Lisp objects during
4581 asynchronous input processing. Use mac_store_services_event
4582 instead of mac_store_application_menu_event.
4583
4584 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
4585 (Qpreferences): Remove variables.
4586 (syms_of_macterm) : Don't initialize them.
4587 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
4588 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
4589 (init_required_apple_events, do_ae_open_application)
4590 (do_ae_print_documents, do_ae_open_documents)
4591 (do_ae_quit_application): Remove functions and prototypes.
4592 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
4593 (mac_find_apple_event_spec): Add externs.
4594 (mac_store_application_menu_event): Remove function.
4595 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
4596 (mac_handle_command_event): Create Apple event from Carbon event.
4597 Use mac_store_apple_event instead of mac_store_application_menu_event.
4598 [MAC_OSX] (mac_store_services_event): Likewise.
4599 (struct SelectionRange, SelectionRange): Remove struct and typedef.
4600 [MAC_OS8] (main): Call init_apple_event_handler instead of
4601 init_required_apple_events.
4602 (mac_initialize) [MAC_OSX]: Likewise.
e7b394e1
SM
4603 [!USE_CARBON_EVENTS] (mac_wait_next_event):
4604 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4b3eb407 4605
e7b394e1
SM
4606 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
4607 Add externs.
4b3eb407
YM
4608 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
4609 (Fmac_get_preference): Add EXFUN.
4610
4611 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
4612 event.
4613
e358e052
RS
46142005-12-09 Richard M. Stallman <rms@gnu.org>
4615
4616 * xfns.c (Fx_create_frame): Reinstate previous change.
4617
9ea74bfb
EZ
46182005-12-09 Eli Zaretskii <eliz@gnu.org>
4619
4620 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
4621 GDB to the abort dialog.
4622
9dd28cae 46232005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
84fdb82c
KS
4624
4625 * indent.c (Fvertical_motion): Force move if starting on
4626 stretch glyph.
4627
2fda6977
RS
46282005-12-08 Richard M. Stallman <rms@gnu.org>
4629
2663a204
RS
4630 * lread.c (read_escape) <\s>: Don't treat strings specially.
4631
2fda6977
RS
4632 * xfns.c (Fx_create_frame): Comment out previous change.
4633
225c13a5
KL
46342005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4635
4636 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
4637 when needed.
4638
da8ec671
SM
46392005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
4640
4641 * minibuf.c (keys_of_minibuf): Just unbind SPC in
4642 Vminibuffer_local_filename_completion_map rather than forcing it
4643 explicitly to the same binding as the global map.
4644
88fde92a
KR
46452005-12-06 Ken Raeburn <raeburn@gnu.org>
4646
e7b394e1 4647 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
88fde92a 4648 * bytecode.c (Fbyte_code): Likewise.
e7b394e1 4649 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
88fde92a
KR
4650 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
4651 * undo.c (truncate_undo_list): Likewise.
4652
fa0d4d0c
RS
46532005-12-05 Richard M. Stallman <rms@gnu.org>
4654
4655 * window.c (enlarge_window): Eliminate arg preserve_before.
4656 Assume it is 0. All callers changed.
4657 (Fenlarge_window, Fshrink_window): Likewise.
4658
5a98616e
EZ
46592005-12-02 Eli Zaretskii <eliz@gnu.org>
4660
4661 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
4662 fit below.
4663
1dbacb90
JD
46642005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4665
4666 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
4667
4668 * xfns.c (x_real_positions): int ign => unsigned int.
4669 (xg_set_icon_from_xpm_data): Remove unused variable err.
4670 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
4671 to remove compiler warning.
4672 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
4673
0a79da1b
EZ
46742005-12-02 David Reitter <david.reitter@gmail.com>
4675
4676 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
4677 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
4678 and Vminibuffer_local_must_match_filename_map keymaps.
4679 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
4680
4681 * keymap.c (Vminibuffer_local_filename_completion_map)
4682 (Vminibuffer_local_must_match_filename_map): New variables.
4683 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
4684 parent to be Vminibuffer_local_completion_map and
4685 Vminibuffer_local_must_match_map, respectively.
4686
4687 * commands.h (Vminibuffer_local_filename_completion_map)
4688 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
4689
e67a1dea
SM
46902005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
4691
4692 * window.c (Fset_window_configuration): Don't accidentally copy the
4693 window-point of one window to another.
4694
6ad0f04d
KL
46952005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4696
7854b2a3 4697 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 4698
4269a2fd
KS
46992005-11-30 Kim F. Storm <storm@cua.dk>
4700
4701 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
4702 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
4703 passing it to `emacs_write'.
4704
96013ba9
SM
47052005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
4706
4707 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
4708
161ef3be
RS
47092005-11-27 Richard M. Stallman <rms@gnu.org>
4710
4711 * window.c (adjust_window_trailing_edge): New function.
4712 (Fadjust_window_trailing_edge): New function.
96013ba9 4713 (syms_of_window): Defsubr it.
161ef3be
RS
4714 (window_deletion_count): New variable.
4715 (delete_window): Update window_deletion_count.
4716
02b1a164
EZ
47172005-11-26 Eli Zaretskii <eliz@gnu.org>
4718
4719 * minibuf.c (syms_of_minibuf): Mention the extension of
4720 `completion-auto-help's meaning by complete.el.
4721
07908aec
EZ
47222005-11-26 Henrik Enberg <henrik.enberg@telia.com>
4723
96013ba9 4724 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
4725 Handle :inherit property as a lisp expression.
4726
b9c7cbf9
YM
47272005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4728
4729 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
4730 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
4731 Qsuper, and Qmodifier_value.
4732 (Vmac_control_modifier, Vmac_option_modifier)
4733 (Vmac_command_modifier, Vmac_function_modifier)
4734 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
4735 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
4736 (Vmac_charset_info_alist): Doc fixes.
4737
2c012c41
YM
47382005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4739
4740 * emacs.c (main) [MAC_OSX]: Change working directory to home
4741 directory if `-psn_*' option is specified.
4742
4743 * mac.c (DECODE_UTF_8): Remove macro.
4744 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
4745 created from cfstring_to_lisp.
4746 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
4747 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
4748
4749 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
4750 Add prototype.
4751
88fde92a 47522005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
4753
4754 * keymap.c (shadow_lookup): Use make_number to pass a number to
4755 Fsubstring.
4756
17c1971a
JL
47572005-11-21 Juri Linkov <juri@jurta.org>
4758
4759 * puresize.h (BASE_PURESIZE): Increment to 1180000.
4760
0268cef3
CY
47612005-11-20 Chong Yidong <cyd@stupidchicken.com>
4762
96013ba9
SM
4763 * xfaces.c (Finternal_set_lisp_face_attribute):
4764 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
4765 supplied.
4766 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
4767 (merge_face_vectors): Don't do :ignore-defface overwriting here.
4768 (Finternal_merge_in_global_face): Do it here.
0268cef3 4769
dd949173
JL
47702005-11-20 Juri Linkov <juri@jurta.org>
4771
4772 * charset.c (invalid_character): Use Lisp-readable syntax
4773 for octal and hex. Reorder decimal, octal and hex values.
4774
76986433
NR
47752005-11-20 Nick Roberts <nickrob@snap.net.nz>
4776
4777 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
4778 this type is recognised when debugging.
4779
603add2d
AS
47802005-11-19 Andreas Schwab <schwab@suse.de>
4781
4782 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
4783 Lisp_Cons and Lisp_Float.
4784
125ce9ec
YM
47852005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4786
4787 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
4788 New variable.
96013ba9 4789 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
4790 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
4791 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
4792 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
4793
2ff10663
CY
47942005-11-17 Chong Yidong <cyd@stupidchicken.com>
4795
96013ba9 4796 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 4797
2ff10663
CY
4798 * xfaces.c (Qignore_defface): New variable.
4799 (syms_of_xfaces): Provide `:ignore-defface'.
4800 (IGNORE_DEFFACE_P): New macro.
05338727
CY
4801 (check_lface_attrs, lface_fully_specified_p)
4802 (Finternal_set_lisp_face_attribute)
96013ba9
SM
4803 (Fface_attribute_relative_p, Fmerge_face_attribute):
4804 Handle Qignore_defface as a possible value.
2ff10663
CY
4805 (merge_face_vectors): The merged face is `unspecified' if the
4806 mergee specifies `:ignore-defface'.
4807
c01f0ed3
SM
48082005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
4809
4810 * lread.c (readevalloop): Add missing GCPROs.
4811
786a43d6
CY
48122005-11-16 Chong Yidong <cyd@stupidchicken.com>
4813
9f7b984b
CY
4814 * xfns.c (xg_set_icon_from_xpm_data): New function.
4815
c01f0ed3
SM
4816 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
4817 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
4818
4819 * xterm.c (x_bitmap_icon): Use the xpm if available.
4820
4821 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 4822 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 4823
8ab84823
LT
48242005-11-15 Luc Teirlinck <teirllm@auburn.edu>
4825
4826 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
4827
3671718b
NR
48282005-11-16 Nick Roberts <nickrob@snap.net.nz>
4829
4830 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
4831
28a099a4
AS
48322005-11-15 Andreas Schwab <schwab@suse.de>
4833
4834 * lisp.h (struct Lisp_Cons): Make cdr a union.
4835 (XCDR_AS_LVALUE): Adjust.
4836 (struct Lisp_Float): Make data a union.
4837 (XFLOAT_DATA): Adjust.
4838
4839 * alloc.c (free_float): Make free list chaining aliasing-safe.
4840 (make_float): Likewise.
4841 (free_cons): Likewise.
4842 (Fcons): Likewise.
4843 (check_cons_list): Likewise.
4844 (Fmake_symbol): Likewise.
4845 (allocate_misc): Likewise.
4846 (free_misc): Likewise.
4847 (gc_sweep): Likewise.
4848
308a6607
YM
48492005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4850
fc09d07f
YM
4851 * mac.c (HASHKEY_QUERY_CACHE): New define.
4852 (xrm_create_database, xrm_q_put_resource): Empty query cache.
4853 (xrm_get_resource): Use query cache.
4854
308a6607
YM
4855 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
4856 inhibit_window_system is set.
4857
29b585db
YM
48582005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4859
4860 * macgui.h (USE_CG_TEXT_DRAWING): New define.
4861 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
4862 and cg_glyphs.
4863
4864 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
4865 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
4866 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
4867 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
4868 not used and font substitution never occurs for ASCII and Latin-1
4869 characters.
4870 (XLoadQueryFont): Maximum and minimum metrics are now those among
4871 ASCII characters.
4872 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
4873 height adjustments for Courier, Helvetica, and Times.
4874
4875 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
4876
9dd28cae 48772005-11-11 David Reitter <david.reitter@gmail.com>
b02e3f7b 4878
dff79d04 4879 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
267ee78f 4880 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
dff79d04
ST
4881 Vmac_control_modifier / mac-control-modifier,
4882 Vmac_option_modifier / mac-option-modifier,
4883 Vmac_command_modifier / mac-command-modifier.
4884 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
4885 variables. Return UInt32 (modifiers are longs now.)
4886 (backtranslate_modified_keycode): New function (refactoring).
4887 (XTread_socket): Use new modifier variables and refactored function.
4888 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
4889 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
4890 (convert_fn_keycode): Map Fn-keys to their original keycode
4891 using a table (english keyboard only).
b02e3f7b 4892
6a77a9f5
KS
48932005-11-11 Kim F. Storm <storm@cua.dk>
4894
ab4d879e
KS
4895 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
4896 Add post hook to "backtrace" to always dump lisp call stack to
4897 increase chance of people sending it to us when reporting bugs.
4898
8c41220c
KS
4899 * doc.c (Fsubstitute_command_keys): Doc fix.
4900
6a77a9f5
KS
4901 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
4902
4903 * xdisp.c (handle_stop): Skip overlay string handling if
4904 ignore_overlay_strings_at_pos_p is set.
4905 (set_iterator_to_next): At end of display vector, set
4906 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
4907 string, so we skip those overlay strings at current pos.
4908
9dd28cae 49092005-11-10 Lars Hansen <larsh@soem.dk>
19a9c3b7
LH
4910
4911 * fileio.c (file-regular-p): Doc fix.
4912
932954d1
KS
49132005-11-10 Kim F. Storm <storm@cua.dk>
4914
4915 * alloc.c (valid_lisp_object_p): New function to validate that
4916 an object is really a valid Lisp_Object.
4917
4918 * lisp.h (valid_lisp_object_p): Add prototype.
4919
4920 * print.c (safe_debug_print): New function to be called from gdb
4921 to print Lisp objects; use valid_lisp_object_p to avoid crashing
4922 if user tries to print something which is not a Lisp object.
4923
4924 * .gdbinit (pp, pp1): Use safe_debug_print.
4925 (pv, pv1): New commands to print value of a lisp variable.
4926
78e5988d
NR
49272005-11-10 Nick Roberts <nickrob@snap.net.nz>
4928
4929 * .gdbinit (pp1): New user-defined function.
4930
f56a5bd8
YM
49312005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4932
4933 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
4934
4935 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
4936 related variables for dumped executable.
4937
4938 * unexmacosx.c (unexec_write_zero): New function.
4939 (copy_data_segment): Clear uninitialized local variables in
4940 statically linked libraries.
4941
4942 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
4943
58b6f884
JL
49442005-11-09 Juri Linkov <juri@jurta.org>
4945
4946 * keymap.c (shadow_lookup): If Flookup_key returns a number,
4947 call it again with a sub-key-sequence, and if its return value
4948 is non-nil (sub-key is bound), return nil.
4949
1f5f957a
KS
49502005-11-08 Kim F. Storm <storm@cua.dk>
4951
4952 * process.c (Fsignal_process): Recognize signal names with and
4953 without SIG prefix, e.g. SIGHUP and HUP.
4954
4955 * search.c (search_buffer): No need to initialize base_pat.
4956
20b69789
SM
49572005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
4958
4959 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
4960 Don't abuse the `mini' arg. Use the `obj' arg instead.
4961
7353f169
KS
49622005-11-04 Kim F. Storm <storm@cua.dk>
4963
4964 * xdisp.c (show_mouse_face): Clear mouse face to eol.
4965
1f7b1131
DN
49662005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
4967
4968 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
4969 font-lock.elc and jit-lock.elc.
4970
e082564e
RS
49712005-11-03 Richard M. Stallman <rms@gnu.org>
4972
4973 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
4974 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
4975 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
4976
4977 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
4978
4979 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
4980
49e99345
SM
49812005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4982
4983 * window.c (Fdisplay_buffer): Fix last change to not use
4984 a dedicated window.
4985
8f15921b
KS
49862005-11-01 Kim F. Storm <storm@cua.dk>
4987
4988 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
4989 Instead, rotate the bottom angle bitmap 180 degrees to indicate
4990 that the bottom row does not end in a newline.
4991
b4235a80
AS
49922005-11-01 Andreas Schwab <schwab@suse.de>
4993
4994 * unexelf.c (unexec): Handle .plt section in BSS segment.
4995
3cbb13c8
SM
49962005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4997
e5f64be2
SM
4998 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
4999
3cbb13c8
SM
5000 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
5001 determine whether to consider dedicated windows as well.
5002 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
5003 (Fdisplay_buffer): Do consider dedicated windows in those cases where
5004 we will split the window rather than reuse it.
5005 Don't try to use windows on other displays.
5006
c94f08ff
DN
50072005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
5008
5009 * puresize.h (BASE_PURESIZE): Increment to 1170000.
5010
edf84ae9
RF
50112005-10-31 Romain Francoise <romain@orebokech.com>
5012
5013 * macfns.c: Update copyright year.
5014 * m/gould.h: Likewise.
5015
6f07f649
KS
50162005-10-30 Kim F. Storm <storm@cua.dk>
5017
5018 * xdisp.c (display_line): Restore it->current_x and call
5019 extend_face_to_end_of_line when last glyph doesn't fit on line.
9dd28cae 5020 (set_glyph_string_background_width): Remove specific tests here
6f07f649
KS
5021 to see if face background should extend to end of line. Simplify.
5022
4d74a5fc
RS
50232005-10-30 Richard M. Stallman <rms@gnu.org>
5024
5025 * alloc.c (BYTES_USED): Use uordblks, not arena.
5026 (bytes_used_when_reconsidered): New variable.
5027 (emacs_blocked_free): Set that.
5028
bccfb310
CY
50292005-10-29 Chong Yidong <cyd@stupidchicken.com>
5030
5031 * alloc.c (emacs_blocked_free): Fix typo.
5032
f5b8d5f2
RS
50332005-10-29 Richard M. Stallman <rms@gnu.org>
5034
4d74a5fc
RS
5035 * data.c (Fmake_variable_frame_local): Doc fix.
5036
f5b8d5f2
RS
5037 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
5038 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
5039 controls whether to save and restore mode_line_proptrans_alist.
5040 Callers changed.
5041 (unwind_format_mode_line): Work with that feature.
5042 (redisplay_internal): Don't call prepare_menu_bars if memory full.
5043 (move_elt_to_front): New function.
5044 (display_mode_element): Use move_elt_to_front.
5045 Don't bother munging text props on a null string.
5046 Delete obsolete elts from mode_line_proptrans_alist.
5047 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 5048 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 5049
49e99345
SM
5050 * lisp.h (memory_full_cons_threshold): Declare.
5051 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
5052
5053 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
5054 (Fmemory_full_p): Function deleted.
5055 (syms_of_alloc): Don't defsubr it.
5056 (memory_full_cons_threshold): New variable.
5057 (spare_memory): Now a vector of 7 elts.
5058 (buffer_memory_full): Don't set Vmemory_full here.
5059 (xfree): Don't try to refill here.
5060 (emacs_blocked_free): Record BYTES_USED in local var.
5061 (memory_full): Now free all the slots in spare_memory.
5062 (refill_memory_reserve): Allocate each slot in spare_memory.
5063 (init_alloc_once): Call refill_memory_reserve.
5064
5065 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
5066
5067 * eval.c (internal_lisp_condition_case): New function.
5068 (Fcondition_case): Use internal_lisp_condition_case.
5069 (Feval): Test Vmemory_full and memory_full_cons_threshold.
5070 (Ffuncall): Likewise.
5071
5072 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
5073
c390e28c
SM
50742005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
5075
5076 * syntax.c (Fparse_partial_sexp): Fix docstring.
5077
ab5d87b3
RF
50782005-10-28 Romain Francoise <romain@orebokech.com>
5079
c390e28c 5080 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 5081
107fb6c9
RS
50822005-10-28 Richard M. Stallman <rms@gnu.org>
5083
5084 * xfns.c (syms_of_xfns): Provide `x' as feature.
5085
5086 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
5087
5088 * editfns.c (Fformat): Don't include string padding
5089 between info[n].start and info[n].end.
5090
5091 * alloc.c (spare_memory): No longer static.
5092 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
5093
c390e28c 5094 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 5095
f351b58b
CY
50962005-10-27 Chong Yidong <cyd@stupidchicken.com>
5097
c390e28c 5098 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 5099
f351b58b
CY
5100 * fringe.c (update_window_fringes): Handle case where buffer ends
5101 with a newline.
5102
581e7427
KH
51032005-10-27 Kenichi Handa <handa@m17n.org>
5104
5105 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
5106
51072005-10-24 Kenichi Handa <handa@m17n.org>
5108
5109 * charset.h (charset_mule_unicode_0100_24ff)
5110 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5111 Extern them.
5112
5113 * charset.c (charset_mule_unicode_0100_24ff)
5114 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5115 New variables.
5116 (Fsetup_special_charsets): Initialize them.
5117
5118 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5119 supported Unicode characters.
5120
813fa8a8
JR
51212005-10-25 Jason Rumney <jasonr@gnu.org>
5122
5123 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
5124
05f7d868
YM
51252005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5126
5127 * image.c [MAC_OS] (image_load_qt_1): Check image size.
5128 Use GraphicsImportGetImageDescription instead of
5129 GraphicsImportGetNaturalBounds.
5130 [MAC_OSX] (image_load_quartz2d): Check image size.
5131 [MAC_OS] (xpm_load_image): Likewise.
5132
5133 * macterm.c (last_mouse_glyph_frame): New var.
5134 (note_mouse_movement): Say mouse moved if current frame differs
5135 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5136 (XTmouse_position): Set last_mouse_glyph_frame.
5137 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 5138 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
5139 Use EndianU16_BtoN.
5140 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
5141 (x_per_char_metric, XLoadQueryFont)
5142 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
5143 glyph bounds.
5144 (mac_to_x_fontname, mac_do_list_fonts)
5145 (mac_initialize_display_info): Change screen resolutions to 72dpi.
5146
128e729d
MY
51472005-10-25 Masatake YAMATO <jet@gyve.org>
5148
5149 * minibuf.c (Fdisplay_completion_list): Small doc fix.
5150
59017afb
KS
51512005-10-24 Kim F. Storm <storm@cua.dk>
5152
94717db1
KS
5153 * xterm.c: Undo 2005-10-23 change.
5154 (last_mouse_glyph_frame): New var.
5155 (note_mouse_movement): Say mouse moved if current frame differs
5156 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5157 (XTmouse_position): Set last_mouse_glyph_frame.
5158 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
5159 last_mouse_glyph] on mouse up/down event.
5160
59017afb
KS
5161 * editfns.c (Fcompare_buffer_substrings): Fix last change.
5162
7c5ba0d2
SM
51632005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5164
5165 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
5166
a4b0e228
JD
51672005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5168
5169 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
5170 so tool tips don't interfere with press on tool bar button.
5171
f6a18aa2
RS
51722005-10-23 Richard M. Stallman <rms@gnu.org>
5173
5174 * casetab.c (Fset_case_table): Doc fix.
5175
5176 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
5177 (readevalloop): Compute ENTIRE properly.
5178 (syms_of_lread) <load-history>: Doc fix.
5179
45158e77
RS
51802005-10-21 Richard M. Stallman <rms@gnu.org>
5181
5182 * lread.c (Fload): Simplify gcpro structure.
5183 Gcpro FOUND as well as FILE, but not EFOUND.
5184 Unless preloading, record FOUND instead of FILE in Vload_history.
5185 Rename repeat local FILE to MSG_FILE.
5186 (syms_of_lread) <load-history>: Doc fix.
5187
dfa1cd4d
KH
51882005-10-21 Kenichi Handa <handa@m17n.org>
5189
96664fc0 5190 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 5191
1064a9ea
KS
51922005-10-20 Kim F. Storm <storm@cua.dk>
5193
5194 * buffer.c (clone_per_buffer_values): Remove unused var tem.
5195 (init_buffer): Remove unused vars dotstat, pwdstat.
5196
5197 * ccl.c (check_ccl_update): Remove unused var vp.
5198
5199 * fileio.c (auto_save_error): Call SAFE_FREE.
5200
5201 * fns.c (Fchar_table_range): Remove unused var i.
5202
5203 * minibuf.c (display_completion_list_1): New wrapper function
5204 for Fdisplay_completion_list.
5205 (Fminibuffer_completion_help): Use it.
5206
5207 * term.c (encode_terminal_code): Remove unused var src_start.
5208
5209 * window.c (Fwindow_tree): Remove unused var alist.
5210
5211 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
5212
ce13796f
EZ
52132005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
5214
20b69789 5215 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 5216
ad9c16d3
EZ
52172005-10-20 Olli Savia <ops@iki.fi> (tiny change)
5218
5219 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
5220
26e9d2cf
AS
52212005-10-20 Andreas Schwab <schwab@suse.de>
5222
5223 * minibuf.c (Fdisplay_completion_list): Doc fix.
5224
e50165ec
KS
52252005-10-19 Kim F. Storm <storm@cua.dk>
5226
5227 * image.c (check_image_size): Handle integer Vmax_image_size value
5228 directly as max pixel value. Use default frame size for null frame.
5229 (syms_of_image) <max-image-size>: Describe integer value.
5230
d7b94c98
RF
52312005-10-19 Romain Francoise <romain@orebokech.com>
5232
5233 * emacs.c (main): Update copyright year.
5234
f1f25b99
CY
52352005-10-18 Chong Yidong <cyd@stupidchicken.com>
5236
5237 * image.c (Vmax_image_size): New variable.
5238 (check_image_size): New function.
5239 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
5240 (gif_load, gs_load): Use it.
5241 (lookup_image): Try loading again if previous load failed.
5242 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
5243 to display in, NULL if none.
5244 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
5245 argument.
5246
f42d19a2
RS
52472005-10-18 Richard M. Stallman <rms@gnu.org>
5248
5249 * search.c (Fstring_match): Doc fix.
5250
bcbdafce
YM
52512005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5252
5253 * macterm.c (note_mouse_movement): Use PtInRect.
5254 (XTread_socket): Also ignore mouse motion just before a button
5255 release event. Don't process button release event when mouse is
5256 not grabbed.
5257
f5fab556
MY
52582005-10-16 Masatake YAMATO <jet@gyve.org>
5259
5260 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 5261 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
5262 to the optional argument during running `completion-setup-hook'.
5263
2ef1363e
YM
52642005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5265
5266 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
5267 Allow nil as argument.
5268 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
5269 for encoding arguments as UTF-16 in native byte order, no BOM.
5270
5271 * macfns.c (Fx_create_frame): Add debugging code.
5272 (Fx_show_tip): Set frame pixel width and height.
5273
5274 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
5275 (FRAME_NORMAL_GC): New macro.
5276 (mac_draw_line, mac_clear_area, mac_clear_window)
5277 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
5278 (mac_draw_image_string, mac_draw_image_string_16): Rename from
5279 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
5280 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
5281 All uses changed.
5282 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
5283 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
5284 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
5285 (mac_draw_string_16, mac_draw_image_string)
5286 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
5287 (mac_scroll_area): Drawing functions now take frame as destination.
5288 All uses changed.
5289 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
5290 (x_draw_fringe_bitmap): Set clipping area in face->gc.
5291
5292 * macterm.h (mac_clear_area): Add extern.
5293
fc5c7550
YM
52942005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5295
5296 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
5297 changes for xterm.c.
5298
5299 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
5300
fed91c38
KH
53012005-10-14 Kenichi Handa <handa@m17n.org>
5302
5303 * search.c (search_buffer): Give up BM search on case-fold-search
5304 if one of a target character has a case-equivalence of different
5305 charset even if that target charcter is an ASCII.
5306
5307 * casefiddle.c (casify_object): Fix for the case that case
5308 conversion change the byte length.
5309
0ea1a8af
KS
53102005-10-14 Kim F. Storm <storm@cua.dk>
5311
5312 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
5313 (handle_one_xevent): Only clear help_echo_string; restore it if
5314 note_mouse_movement didn't record any mouse movement.
5315
5316 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
5317 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
5318
647b07d1
AS
5319 * keyboard.c (make_lispy_position): Adjust wx for left margin if
5320 ON_TEXT.
0ea1a8af
KS
5321 (Fposn_at_x_y): Fix calculation of x coordinate.
5322 (Fposn_at_point): Return nil if point is hscrolled out of view.
5323
6e5b2385
AS
53242005-10-13 Andreas Schwab <schwab@suse.de>
5325
5326 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
5327 non-interactive mode.
5328
6de0e1a2
YM
53292005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5330
5331 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
5332
78f3b91f
KS
53332005-10-12 Kim F. Storm <storm@cua.dk>
5334
5335 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
5336
b639c9be
RF
53372005-10-12 Romain Francoise <romain@orebokech.com>
5338
5339 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
5340
76d8f04c
YM
53412005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5342
5343 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
5344 get end of text rows. Obtain header-line/mode-line rows directly.
5345
96013ba9
SM
5346 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
5347 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 5348
d76432f5
KS
53492005-10-12 Kim F. Storm <storm@cua.dk>
5350
7a127784
KS
5351 * xdisp.c (remember_mouse_glyph): New generic version based on
5352 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
5353 properly handle all different window areas.
5354
5355 * dispextern.h (remember_mouse_glyph): Add prototype.
5356
5357 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
5358 (note_mouse_movement, XTmouse_position): Use generic
5359 remember_mouse_glyph, add last_mouse_glyph arg.
5360
5361 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
5362 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
5363 (note_mouse_movement, w32_mouse_position): Use generic
5364 remember_mouse_glyph, add last_mouse_glyph arg.
5365
5366 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
5367 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
5368 (XTmouse_position): Adapt to use generic remember_mouse_glyph
5369 instead of pixel_to_glyph_coords.
5370
d76432f5
KS
5371 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
5372 Fix x position for ON_TEXT when left margin width > 0.
5373
55a4ac3e
KS
53742005-10-11 Kim F. Storm <storm@cua.dk>
5375
d76432f5 5376 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
5377
5378 * keyboard.c (make_lispy_position): Fix buffer calculations for
5379 mouse click or movement in right fringe and the margins.
5380
2d4713aa
JB
53812005-10-11 Juanma Barranquero <lekktu@gmail.com>
5382
5383 * image.c (fn_jpeg_stdio_src): Don't define it.
5384 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
5385 (our_common_init_source): Rename from `our_init_source'.
5386 (our_common_term_source): Rename from `our_term_source'.
5387 (our_memory_fill_input_buffer): Rename from
5388 `our_fill_input_buffer'.
5389 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
5390 (jpeg_memory_src): Use the new names.
5391 (struct jpeg_stdio_mgr): New struct.
5392 (JPEG_STDIO_BUFFER_SIZE): New constant.
5393 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
5394 (jpeg_file_src): New functions.
5395 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
5396
71b7a47f
YM
53972005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5398
5399 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
5400 (fm_font_family_alist): New variable.
5401 (syms_of_macterm): Initialize and staticpro it.
5402 (decode_mac_font_name): Replace '-' in family name with '_' if it
5403 occurs just once. Lower family name.
5404 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
5405 All uses changed. Remove argument MF and code conversion for it.
5406 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
5407 to CHARSET. Parse font size. Lower family name. Return integer
5408 value for status of parsing.
5409 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
5410 Don't use Fdowncase because family name is already lowered by
5411 decode_mac_font_name.
96013ba9
SM
5412 (init_font_name_table): Always call decode_mac_font_name.
5413 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
5414 (mac_clear_font_name_table): Clear fm_font_family_alist.
5415 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
5416 Lookup fm_font_family_alist to get font family reference.
5417 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
5418 name is already lowered by parse_x_font_name.
5419
74051a92
KS
54202005-10-11 Kim F. Storm <storm@cua.dk>
5421
31ab1f05
KS
5422 * xterm.c (glyph_rect): Return 0 if position is outside text area.
5423
74051a92
KS
5424 * keyboard.c (make_lispy_position): Fix buffer position calculation for
5425 mouse click or movement in fringe.
5426
9b909870
JR
54272005-10-10 Jason Rumney <jasonr@gnu.org>
5428
5429 * xterm.c (remember_mouse_glyph): New function.
58af5591 5430 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 5431 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 5432 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 5433
f9e36a6d
JD
54342005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5435
58af5591 5436 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 5437
04bc7945
JB
54382005-10-10 Juanma Barranquero <lekktu@gmail.com>
5439
5440 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
5441 (next_frame, prev_frame, set_term_frame_name): Make static.
5442
5443 * window.c (Fwindow_tree): Fix spelling.
5444
41791a20
RF
54452005-10-09 Romain Francoise <romain@orebokech.com>
5446
5447 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
5448
e313fc07
JD
54492005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5450
58af5591
KS
5451 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
5452 Add options -nb, --no-bitmap-icon.
e313fc07
JD
5453
5454 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
5455
61e62f5f
YM
54562005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5457
5458 * macgui.h (MAX_CLIP_RECTS): New define.
5459 (struct _XGC): New member clip_region.
5460 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
5461 clip_rects.
5462
5463 * macterm.c (GC_CLIP_REGION): New macro.
5464 (saved_port_clip_region): New variable.
5465 (mac_begin_clip, mac_end_clip): New functions.
5466 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
5467 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
5468 (mac_copy_area_with_mask, mac_scroll_area): Use them.
5469 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
5470 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
5471 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
5472 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
5473 rectangles stored in gc.
71b7a47f 5474 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
5475 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
5476 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
5477 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
5478 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
5479 (x_draw_bar_cursor): Use them.
5480 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
5481 get multiple clipping rectangles.
5482
5483 * macterm.h (mac_term_init): Add types to extern.
5484 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 5485 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
5486 scroll_bar_background_pixel in #if 0.
5487 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
5488
5489 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 5490 Add debugging code.
61e62f5f 5491
ef1b4c9e
KS
54922005-10-08 Kim F. Storm <storm@cua.dk>
5493
5494 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
5495
f1010549
KS
54962005-10-07 Kim F. Storm <storm@cua.dk>
5497
5498 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
5499 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
5500 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
5501
c2ded1b7
YM
55022005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5503
5504 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
5505 to for_overlaps. Now occupy 3 bits.
5506 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
5507 (OVERLAPS_ERASED_CURSOR): New defines.
5508 (struct redisplay_interface): Add new OVERLAPS arg to member
5509 fix_overlapping_area.
5510 (x_fix_overlapping_area): Add new OVERLAPS arg.
5511 (get_glyph_string_clip_rects): Add extern.
5512
96013ba9
SM
5513 * dispnew.c (redraw_overlapping_rows):
5514 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
5515
5516 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
5517 for_overlaps.
5518 (get_glyph_string_clip_rects): New function created from
f1010549
KS
5519 get_glyph_string_clip_rect. Set clipping rectangles according to the
5520 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
5521 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
5522 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
5523 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 5524 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 5525 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
5526 calculating clipping rectangles later. Call x_fix_overlapping_area
5527 with new OVERLAPS arg to draw only erased cursor area.
f7270128 5528 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 5529 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
5530
5531 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
5532 struct glyph_string to for_overlaps.
5533
a19a0003
RS
55342005-10-04 Richard M. Stallman <rms@gnu.org>
5535
5536 * alloc.c (refill_memory_reserve): Conditionalize the body,
5537 not the function's existence.
5538
abc8ce50
KS
55392005-10-04 Kim F. Storm <storm@cua.dk>
5540
5541 * window.c (window_split_tree): New function.
5542 (Fwindow_split_tree): New defun.
5543 (syms_of_window): Defsubr it.
5544
66533b25
YM
55452005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5546
5547 * macterm.c (mac_invert_rectangle): New function.
5548 (XTflash): Use it.
5549
4156359e
SM
55502005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
5551
4e2f601f
SM
5552 * regex.h (re_char): Don't expose it in the interface.
5553 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
5554
5555 * regex.c (re_char): Move it back here.
5556 (re_set_whitespace_regexp): Change the arg's type to not use it.
5557
4156359e
SM
5558 * keyboard.c (make_lispy_event): If point has moved between down and up
5559 event, make it a drag, not a click, to mirror what
5560 mouse-drag-region expects.
5561
eb27c2ca
DN
55622005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5563
5564 * lisp.h (fatal): Undo previous change.
5565 * term.c (fatal): Undo previous change.
5566
b059f7d0
RS
55672005-10-01 Richard M. Stallman <rms@gnu.org>
5568
5569 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
5570
21a9a7be
KS
55712005-10-01 Kim F. Storm <storm@cua.dk>
5572
5573 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
5574
ddcb7665
YM
55752005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5576
5577 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
5578
5579 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 5580 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
5581 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
5582 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
5583
5584 * macgui.h (struct _XCharStruct): New member valid_p.
5585 (STORE_XCHARSTRUCT): Set valid_p.
5586 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
5587
5588 * macterm.c (mac_draw_string_common, x_per_char_metric)
5589 (mac_compute_glyph_string_overhangs, init_font_name_table)
5590 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
5591 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
5592 (x_draw_glyph_string_background)
5593 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
5594 XDrawImageString. Always draw background and foreground separately.
5595 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
5596 functions for one-byte chars when using ATSUI-compatible fonts.
5597 (atsu_font_id_hash) [USE_ATSUI]: New variable.
5598 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
5599 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
5600 max_char_or_byte2 more in detail.
5601 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
5602
fa8459a3
DN
56032005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
5604
4156359e 5605 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
5606 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
5607
5608 * unexelf.c (fatal): Fix prototype.
5609
5610 * term.c (fatal): Implement using varargs.
5611
21a9a7be 5612 * regex.c (re_char): Move typedef ...
fa8459a3 5613 * regex.h (re_char): ... here.
4156359e 5614 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
5615
5616 * emacs.c (malloc_set_state): Fix return type.
5617 (endif): Fix type.
5618
5619 * lisp.h (fatal): Add argument types.
5620
5621 * dispextern.h (fatal): Delete prototype.
5622
9dd28cae 5623 * systime.h (make_time): Prototype moved from ...
fa8459a3
DN
5624 * editfns.c (make_time): ... here.
5625
5626 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
5627 * dired.c:
5628 * xsmfns.c:
fa8459a3 5629 * process.c: Likewise.
21a9a7be 5630
fa8459a3
DN
5631 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
5632 Add parameter types.
5633 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
5634 (emacs_blocked_free): Change definition to match __free_hook.
5635 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 5636 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 5637
97c3e4cc
RF
56382005-09-30 Romain Francoise <romain@orebokech.com>
5639
5640 * minibuf.c (Fread_buffer): Follow convention for reading from the
5641 minibuffer with a default value. Doc fix.
5642
8ad8c5ce
JL
56432005-09-29 Juri Linkov <juri@jurta.org>
5644
5645 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
5646 Rename argument name `string' to `format-string'.
5647 (Fformat): Doc fix.
5648
64da5759
KS
56492005-09-28 Kim F. Storm <storm@cua.dk>
5650
5651 * image.c (gif_load): Fix size of allocated image buffer
5652 for images where a sub-image may be larger than the image's
5653 total height/width specifications.
5654
eaf92438
YM
56552005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5656
5657 * macgui.h (struct _XCharStruct): Each member now takes short value.
5658
43f15d4a
DN
56592005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
5660
5661 * xfaces.c (lookup_derived_face): Add parameter type.
5662
5663 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
5664
5665 * marker.c (verify_bytepos): Add parameter type.
5666
5667 * process.c (get_operating_system_release): Move prototype ...
5668
5669 * systime.h (get_operating_system_release): ... here.
5670
04bc7945
JB
5671 * xterm.c (handle_one_xevent): Refer to union field to match the
5672 type required by the function definition.
5673 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
5674
5675 * xterm.h: ... here.
5676
5677 * fns.c (internal_equal, seed_random): Fix prototypes.
5678 (internal_equal): Add missing parameter.
5679
c769dcac
RS
56802005-09-25 Richard M. Stallman <rms@gnu.org>
5681
5682 * keyboard.c (update_menu_bindings): Variable deleted.
5683 (syms_of_keyboard): Don't defvar it.
5684 (parse_menu_item): Don't test it.
5685
8dbf19c7
RS
56862005-09-23 Richard M. Stallman <rms@gnu.org>
5687
5688 * editfns.c (Fformat): Explicitly test for end of format string
5689 and don't use `index'.
5690
3480d92b
DN
56912005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
5692
4156359e
SM
5693 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
5694 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
5695
5696 * sysdep.c (get_current_dir_name): Also define if
64da5759 5697 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
5698
5699 * m/ibmrs6000.h: Test for USG5, not USG5_4.
5700
5db60f31
KS
57012005-09-22 Kim F. Storm <storm@cua.dk>
5702
5703 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
5704 (message2): Fix commentary. Ok to use alloca'ed memory.
5705 Still not ok to use Lisp string data (because of GC).
5706 (set_message): Add comment why GC cannot happen.
5707
7c3d233d
YM
57082005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5709
5710 * macterm.c (xlfdpat_block_match_1): Fix assertion.
5711 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
5712 variants for a scalable font multiple times.
5713
acde1152
YM
57142005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5715
5716 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
5717 Setup slave tty options before forking.
5718
52d166e0
JD
57192005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5720
5721 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
5722 positions have been set for the frame (as is done for frames in
5723 special-display-buffer-names).
5724
12d10bc7
KS
57252005-09-19 Kim F. Storm <storm@cua.dk>
5726
5727 * editfns.c (Fformat): Don't scan past end of format string that
5728 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
5729
9f1cf0e3
AS
57302005-09-18 Andreas Schwab <schwab@suse.de>
5731
5732 * window.h (struct window): Remove height_fixed_p, no longer set.
5733
5734 * window.c (make_window): Don't initialize height_fixed_p.
5735 (window_fixed_size_p): Don't use it.
5736
8a658a52
JPW
57372005-09-18 John Paul Wallington <jpw@pobox.com>
5738
5739 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
5740
be9bb408
YM
57412005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5742
5743 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
5744
5745 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
5746 New variables.
5747 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
5748 file selection.
5749
5750 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
5751
cbf223e1
EZ
57522005-09-17 Eli Zaretskii <eliz@gnu.org>
5753
5754 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
5755 (obj): Use XMENU_OBJ, not a literal xmenu.o.
5756
e3f509dd
RF
57572005-09-16 Romain Francoise <romain@orebokech.com>
5758
8ccd3630 5759 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 5760
5c4757d3
RS
57612005-09-15 Richard M. Stallman <rms@gnu.org>
5762
5763 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
5764 (display_mode_element): Instead of `lisp_string' and `this',
5765 record `offset' and increment that.
5766 `last_offset' replaces `last'.
5767
5768 * Makefile.in (XMENU_OBJ): Variable deleted.
5769 (obj): Use xmenu.o unconditionally.
5770 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
5771
5772 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
5773
01978521
KS
57742005-09-15 Kim F. Storm <storm@cua.dk>
5775
5776 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
5777 (reseat_at_next_visible_line_start): Likewise (in xassert).
5778
ccf61795
RF
57792005-09-14 Romain Francoise <romain@orebokech.com>
5780
5781 * fileio.c (write_region_inhibit_fsync): New variable.
5782 (Fwrite_region): Use it to skip call to fsync.
5783 (syms_of_fileio): Initialize it.
5784
2b046a72
KH
57852005-09-14 Kenichi Handa <handa@m17n.org>
5786
24a2b282
KH
5787 * coding.c (code_convert_region_unwind): Argument format changed.
5788 (run_pre_post_conversion_on_str): If pre-write-conversion function
5789 changed the current buffer, delete the new buffer.
5790 (run_pre_write_conversin_on_c_str): Likewise.
5791
2b046a72
KH
5792 * fileio.c (Fexpand_file_name): Check multibyteness of
5793 default_directory.
5794
d008f7b7
KH
57952005-09-13 Kenichi Handa <handa@m17n.org>
5796
5797 * composite.c (compose_chars_in_text): Delete it.
5798
5799 * composite.h (compose_chars_in_text): Delete extern.
5800
2ada8ac5
KS
58012005-09-13 Kim F. Storm <storm@cua.dk>
5802
5803 * print.c (print_error_message): Fix last change.
5804
48c60938
KS
58052005-09-12 Kim F. Storm <storm@cua.dk>
5806
0fdbe302
KS
5807 * composite.c (compose_chars_in_text): Fix setup of `pend'.
5808 Unconditionally reload `ptr' and `pend' after eval.
5809
48c60938
KS
5810 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
5811
5812 * print.c (print_error_message): Pass copy of caller name to
5813 message_dolog.
5814
5815 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
5816
5add1986
KH
58172005-09-12 Kenichi Handa <handa@m17n.org>
5818
5819 * xdisp.c (display_mode_element): Be sure to make variables THIS
5820 and LISP_STRING point into a string data of ELT.
5821
18bb66c7
KS
58222005-09-12 Kim F. Storm <storm@cua.dk>
5823
5824 * editfns.c (Ftranslate_region_internal): Reload `tt' after
5825 signal_after_change that may have GC'ed.
5826 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
5827
5828 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
5829 after insert while runs signal_after_change.
5830
5831 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
5832 declaration to where it is used.
5833
5834 * w32.c (check_windows_init_file): Fix allocation of error buffer.
5835
5836 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
5837 (x_set_name_internal): Call x_encode_text with new FREEP arg to
5838 know if xfree is needed instead of guessing.
5839
5840 * xterm.h (x_encode_text): Remove prototype.
5841
945a75f8
JR
58422005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
5843
5844 * w32term.c (x_bitmap_icon): Load small icons too.
5845
156bdb41
RF
58462005-09-10 Romain Francoise <romain@orebokech.com>
5847
5848 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 5849 and terminal zero. Fix typos.
156bdb41 5850
67b8391b
EZ
58512005-09-10 Eli Zaretskii <eliz@gnu.org>
5852
a17b5ed1
EZ
5853 * buffer.c (init_buffer): Fix error message for failed call to
5854 get_current_dir_name.
5855 (get_current_dir_name): Remove prototype.
5856
9dd28cae 5857 * xsmfns.c (get_current_dir_name): Remove prototype.
a17b5ed1 5858
9dd28cae 5859 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
96013ba9 5860 Add prototype.
a17b5ed1 5861
ed326e35 5862 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 5863 Don't #undef NULL after including blockinput.h.
ed326e35 5864
67b8391b
EZ
5865 * config.in: Regenerated.
5866
c187839d
EZ
58672005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
5868
5869 Remove the MAXPATHLEN limitations:
5870
1486d036
EZ
5871 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
5872 New function.
c187839d
EZ
5873
5874 * buffer.c (init_buffer): Use it.
5875
5876 * xsmfns.c (smc_save_yourself_CB): Ditto.
5877
ae8a5689
KS
58782005-09-09 Kim F. Storm <storm@cua.dk>
5879
39cac6b3
KS
5880 * doc.c (Fsubstitute_command_keys): Lookup key binding for
5881 commands that are remapped from some other command.
5882
aeb55c44
KS
5883 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
5884 flag in disabled rows below the window.
5885
ae8a5689
KS
5886 * frame.h (struct frame): New member updated_p.
5887
5888 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
5889 member. Remove local `updated' array and associated variables.
5890
821f6dae
KS
58912005-09-07 Kim F. Storm <storm@cua.dk>
5892
6e5395f2
KS
5893 * xdisp.c (handle_display_prop): Respect overlay window property.
5894
821f6dae
KS
5895 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
5896 Fixes crash reported by YAMAMOTO Mitsuharu.
5897
9655b404
YM
58982005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5899
5900 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
5901 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
5902 (xlfdpat_block_match_1, xlfdpat_match): New functions.
5903 (xlfdpat_block_match): New macro.
5904 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
5905 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
5906 (add_font_name_table_entry): Increase font_name_table_size more
5907 rapidly.
5908 (mac_c_string_match): Remove function.
5909 (mac_do_list_fonts): Use XLFD pattern match instead of regular
5910 expression match.
5911
5912 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
5913
d7ea8b71
RS
59142005-09-03 Richard M. Stallman <rms@gnu.org>
5915
5916 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
5917 (move_it_in_display_line_to): Stop after last char on line even
5918 on a windowing terminal, if that's the specified stop position.
5919
5920 * fns.c (Fsort): Doc fix.
5921
5922 * editfns.c (Fpropertize): Don't insist that properties be symbols.
5923
1550ae60
SM
59242005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
5925
5926 * dired.c (directory_files_internal_unwind, directory_files_internal)
5927 (file_name_completion): Use a Save_Value object rather than a cons of
5928 two 16bit ints to store the DIR*.
5929 (directory_files_internal, file_name_completion): Handle both EINTR and
5930 EAGAIN consistently after `readdir'.
5931
bdb4d6d8
SM
59322005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5933
1550ae60
SM
5934 * intervals.c (update_interval): Add position info in error.
5935
bdb4d6d8
SM
5936 * dispnew.c (window_to_frame_hpos, update_window):
5937 Avoid gcc warning about unused variable `f'.
5938
6bcc3ca4
JR
59392005-08-31 Jason Rumney <jasonr@gnu.org>
5940
5941 * w32menu.c (add_menu_item): If unicode_append_menu returns an
5942 error, revert to using AppendMenu.
5943
07c5948c
YM
59442005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5945
bdb4d6d8
SM
5946 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
5947 All uses changed.
07c5948c
YM
5948 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
5949 cases.
5950 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
5951 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
5952 Use posix_pathname_to_fsspec.
07c5948c
YM
5953 [MAC_OS] (xpm_load_image): Fill in background_transparent field
5954 while we have mask.
5955
5956 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
5957
5958 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
5959
5a774522
SM
59602005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5961
5962 * syntax.c (update_syntax_table): Properly reproduce the special +1
5963 setting of e_property at the end of the buffer when bumping into the
5964 INTERVALS_AT_ONCE limit.
5965
0fb57cc0
EZ
59662005-08-27 Eli Zaretskii <eliz@gnu.org>
5967
5968 * emacs.c (USAGE1): Fix the description of the -Q option.
5969
5a774522
SM
59702005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
5971
5972 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
5973
4e6b8c5a
KS
59742005-08-26 Kim F. Storm <storm@cua.dk>
5975
5976 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
5977 Don't move PT to new window start.
5978
1f98fbb4
YM
59792005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5980
5981 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
5982 ICONIFY/DEICONIFY_EVENT.
5983
5a774522
SM
5984 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
5985 Restore background color.
1f98fbb4
YM
5986 (mac_handle_visibility_change): New function.
5987 (x_make_frame_invisible, x_iconify_frame)
5988 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
5989 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 5990 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
5991 (x_make_frame_visible): Don't reposition window if it is iconified
5992 or asked for visible before. Select and uncollapse window when it
5993 is made visible.
5994 (x_make_frame_invisible): Don't reset x_highlight_frame.
5995 (x_iconify_frame): Likewise. Make invisible frame visible before
5996 it is iconified.
5997 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
5998 (do_window_update): Don't change visibility of invisible frame.
5999
16691d29
JL
60002005-08-22 Juri Linkov <juri@jurta.org>
6001
6002 * term.c (turn_on_face): Check for TS_set_foreground and
6003 TS_set_background depending on standout_mode. Simplify.
6004
7c3f805b
KS
60052005-08-21 Kim F. Storm <storm@cua.dk>
6006
0f467468
KS
6007 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
6008 bitmaps on fully visible rows.
6009
7c3f805b
KS
6010 * fringe.c (update_window_fringes): Replace FORCE_P arg with
6011 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
6012 and return 0.
6013
6014 * xdisp.c (redisplay_window): Call update_window_fringes with
6015 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
6016
40b388f9
RS
60172005-08-20 Richard M. Stallman <rms@gnu.org>
6018
6019 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
6020 (resize_mini_window): Set w->start, and PT, so as to display the tail
6021 end of the buffer, if it doesn't all fit.
6022
581360f0
KS
60232005-08-18 Kim F. Storm <storm@cua.dk>
6024
6025 * xdisp.c (calc_pixel_width_or_height): Use actual display
6026 resolution when available instead of Vdisplay_pixels_per_inch.
6027
0eefa6fb
KS
60282005-08-17 Kim F. Storm <storm@cua.dk>
6029
6030 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
6031
6032 * dispnew.c (buffer_posn_from_coords): Check that target row is
6033 within matrix.
6034
ada192ba
JD
60352005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6036
6037 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
6038 xg_set_frame_icon and call it.
6039
6040 * gtkutil.c (xg_set_frame_icon): New function.
6041
0eefa6fb 6042 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 6043
ab89a403
KS
60442005-08-16 Kim F. Storm <storm@cua.dk>
6045
6046 * dispnew.c (increment_row_positions): Skip non-enabled rows.
6047
6048 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
6049 (Fcurrent_window_configuration): Use VECSIZE macro instead.
6050
8d34b5e1
RS
60512005-08-15 Richard M. Stallman <rms@gnu.org>
6052
6053 * xdisp.c (message3_nolog): Clear echo_message_buffer.
6054
71e37f3c
KS
60552005-08-15 Kim F. Storm <storm@cua.dk>
6056
0781c303
KS
6057 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
6058
71e37f3c
KS
6059 * process.c (deactivate_process, status_notify, read_process_output)
6060 (update_status, status_convert, decode_status, allocate_pty)
6061 (make_process, remove_process, list_processes_1)
6062 (create_process_1, unwind_request_sigio, read_process_output)
6063 (send_process, keyboard_bit_set): Declare static.
6064 (Fdelete_process): Simplify. Pass process to status_notify, so we
6065 don't try to read output from it.
6066 (status_notify): New arg deleting_process--don't try to read
6067 output from that process.
6068
6069 * lisp.h (deactivate_process, status_notify, read_process_output):
6070 Remove prototypes.
6071
0bf14bfd
RS
60722005-08-14 Richard M. Stallman <rms@gnu.org>
6073
bdb4d6d8
SM
6074 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
6075 define_image_type.
0bf14bfd 6076
6c7eb721
JD
60772005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6078
6079 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
6080 (xg_get_image_for_pixmap): Move some code to
6081 xg_get_pixbuf_from_pix_and_mask, and call it.
6082
6083 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
6084
6085 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
6086 to get an GTK icon and set it with GTK functions to avoid having GTK
6087 override an icon set with just X functions.
6088
6e2d14c8
RS
60892005-08-11 Richard M. Stallman <rms@gnu.org>
6090
bdb4d6d8
SM
6091 * image.c (syms_of_image): Init image_types here, and call
6092 define_image_type.
6e2d14c8
RS
6093 (init_image): Not here.
6094
61298e17
RS
60952005-08-09 Richard M. Stallman <rms@gnu.org>
6096
6097 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
6098
6099 * lisp.h (QUIT): Throw t to Vthrow_on_input.
6100
5a9807a8
TTN
61012005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
6102
6103 * floatfns.c (Fexpt): Use floats for negative exponent.
6104
93469010
JD
61052005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6106
6107 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
6108 should not be there, causing menu display errors with GTK 2.6.9.
6109
44edd521
RS
61102005-08-07 Richard M. Stallman <rms@gnu.org>
6111
8b6a9551
RS
6112 * floatfns.c (Fexpt): Undo previous change.
6113
44edd521
RS
6114 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
6115 so it can be used with various state vectors.
6116
6117 * emacs.c (endif): Convert -script into -scriptload.
6118 (standard_args): Add -scriptload. Allow -basic-display with one dash.
6119
6120 * fns.c (syms_of_fns): Add `emacs' to features.
6121
6122 * term.c (set_terminal_modes): If no TS_termcap_modes string,
6123 output newlines to scroll the old screen contents off the screen.
6124
cac87e30
TTN
61252005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
6126
2a205424
TTN
6127 * floatfns.c (Fexpt): Use floats for negative exponent.
6128 Reported by D Goel.
cac87e30 6129
31b7cc74
JB
61302005-08-02 Richard M. Stallman <rms@gnu.org>
6131
6132 * frame.c (Fframe_char_width): Doc fix.
6133
e2b64074
JB
61342005-07-30 Juanma Barranquero <lekktu@gmail.com>
6135
6136 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
6137 Defvar it.
6138
0962822d
JB
61392005-07-28 Juanma Barranquero <lekktu@gmail.com>
6140
6141 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
6142 (my_create_window, my_create_tip_window): Make static.
6143
6144 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
6145 (my_set_foreground_window, my_destroy_window): Make static.
6146
9eff9fe3
PE
61472005-07-26 Paul Eggert <eggert@cs.ucla.edu>
6148
6149 Merge gnulib getopt implementation into Emacs.
6150
6151 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
6152 now part of lib-src.
6153
1c9916a1
SM
61542005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
6155
6156 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
6157
94c7f257
JR
61582005-07-25 Jason Rumney <jasonr@gnu.org>
6159
6160 * w32menu.c (w32_menu_display_help): Suppress tooltip when
6161 navigating menus with the keyboard.
6162
bf0bf758
RS
61632005-07-23 Richard M. Stallman <rms@gnu.org>
6164
6165 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
6166
6167 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
6168 gc_relative_threshold, one by one.
6169
6170 * keyboard.c (read_char): Test gc_cons_threshold.
6171 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
6172
6173 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
6174 gc_relative_threshold, one by one.
6175
6176 * alloc.c (gc_cons_threshold): Not static.
6177 (gc_cons_combined_threshold): Var deleted.
6178 (gc_relative_threshold): New variable.
6179 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
6180 instead of gc_cons_combined_threshold.
6181
1c9916a1 6182 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
6183 (gc_cons_combined_threshold): Declaration deleted.
6184
99f963e4
YM
61852005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6186
6187 * mac.c: Don't include stdlib.h or string.h.
6188 (Fdo_applescript, Fmac_file_name_to_posix)
6189 (Fmac_file_name_to_posix): Doc fixes.
6190 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
6191 (Fmac_code_convert_string): Likewise.
6192 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
6193 if the executable is not contained in a bundle.
6194
6195 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
6196 (gray_width, gray_height): Remove defines.
6197 (gray_bits, gray_bitmap_width, gray_bitmap_height)
6198 (gray_bitmap_bits): Remove variables.
6199 (lispy_function_keys): Remove extern.
6200 (free_frame_menubar): Add extern.
6201 (x_window_to_frame): Remove function.
6202 (unwind_create_tip_frame): Add declaration.
6203 (x_set_name_internal): New function.
6204 (x_set_name, x_set_title): Use it.
6205 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
6206 (Fx_display_pixel_height, Fx_display_planes)
6207 (Fx_display_color_cells, Fx_server_max_request_size)
6208 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6209 (Fx_display_mm_height, Fx_display_mm_width)
6210 (Fx_display_backing_store, Fx_display_visual_class)
6211 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
6212
6213 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
6214
bdb4d6d8 6215 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
6216 (Fx_get_selection_internal, Fx_selection_owner_p)
6217 (Fx_selection_exists_p): Doc fixes.
6218 (syms_of_macselect) <selection-converter-alist>: Likewise.
6219
1d256714
JB
62202005-07-21 Juanma Barranquero <lekktu@gmail.com>
6221
6222 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
6223
6224 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
6225 (Fccl_execute_on_string): Likewise; add usage info.
6226
6227 * composite.c (Fcompose_region_internal)
6228 (Fcompose_string_internal):
6229 Improve argument/docstring consistency.
6230
6231 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
6232 Fix typos in docstrings.
6233
6234 * textprop.c (Fnext_char_property_change)
6235 (Fprevious_char_property_change): Doc fixes.
6236
6237 * window.c (Fset_window_margins, Fset_window_fringes):
6238 Improve argument/docstring consistency.
6239
6240 * xfaces.c (Finternal_lisp_face_p): Doc fix.
6241
538f78c3
AS
62422005-07-21 Andreas Schwab <schwab@suse.de>
6243
6244 * eval.c (restore_stack_limits): Return a value.
6245
a5b5bf44
JB
62462005-07-20 Juanma Barranquero <lekktu@gmail.com>
6247
6248 * eval.c (Fdefvar): Doc fix.
6249
ae643123
KS
62502005-07-20 Kim F. Storm <storm@cua.dk>
6251
0ed4bf15
KS
6252 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
6253 Use make_save_value to unwind protect stream.
6254
6255 * lread.c (Fload, load_unwind):
6256 Use make_save_value to unwind protect stream.
ae643123 6257
82fc29a1
JB
62582005-07-19 Juanma Barranquero <lekktu@gmail.com>
6259
6260 * eval.c (Fprog2, Fcalled_interactively_p),
6261 (syms_of_eval) <debug-on-quit>: Doc fixes.
6262 (syms_of_eval) <max-specpdl-size>:
6263 (Finteractive_p): Fix typos in docstrings.
6264
73b90087
KS
62652005-07-19 Kim F. Storm <storm@cua.dk>
6266
6267 * w32fns.c (Vx_hand_shape): Variable removed.
6268 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
6269
dfc434d0
KH
62702005-07-19 Kenichi Handa <handa@m17n.org>
6271
bdb4d6d8 6272 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 6273
bcd98331
SM
62742005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
6275
6276 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
6277
2a85a754
KS
62782005-07-18 Kim F. Storm <storm@cua.dk>
6279
6280 * frame.h (struct frame): New member already_hscrolled_p.
6281
6282 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
6283 to avoid redisplay looping hscrolling back and forth ad infinitum.
6284
426179e1
JL
62852005-07-18 Juri Linkov <juri@jurta.org>
6286
6287 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
6288 * keymap.c (Fminor_mode_key_binding):
6289 * macterm.c (mac-emulate-three-button-mouse):
6290 Delete duplicate duplicate words.
6291
9f4a578d
KR
62922005-07-18 Ken Raeburn <raeburn@gnu.org>
6293
6294 * minibuf.c (Ftest_completion): Fix odd syntax in test.
6295
d005338b
YM
62962005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6297
bcd98331 6298 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
6299
6300 * macgui.h (struct _XGC): New struct.
6301 (GC): Use it.
6302 (GCForeground, GCBackground, GCFont): Use X11 mask values.
6303 (XCreateGC, XParseGeometry): Move externs to macterm.h.
6304
bcd98331 6305 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 6306 (XSetFont): Add declaration.
bcd98331
SM
6307 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
6308 Remove functions.
6309 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
6310 New defines.
d005338b
YM
6311 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
6312 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
6313 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
6314 Use them.
d005338b
YM
6315 (mac_erase_rectangle): New function.
6316 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
6317 (x_draw_stretch_glyph_string): Use it.
6318 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
6319 (XSetBackground, XSetFont): Adjust for new GC implementation.
6320 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
6321 (XTset_vertical_scroll_bar): Clear area under scroll bar.
6322
6323 * macterm.h (struct mac_display_info): Change types of
6324 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
6325 (XCreateGC, XParseGeometry): Move externs from macgui.h.
6326
6327 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
6328
9b0c2c56
RS
63292005-07-16 Richard M. Stallman <rms@gnu.org>
6330
6331 * buffer.c (Fmake_overlay): Doc fix.
6332
2e9c1c6d
EZ
63332005-07-16 Eli Zaretskii <eliz@gnu.org>
6334
6335 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
6336 Vw32_valid_locale_ids, and Vw32_valid_codepages.
6337
407289a4
YM
63382005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6339
bcd98331
SM
6340 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
6341 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 6342
e4b477a1
RS
63432005-07-15 Richard M. Stallman <rms@gnu.org>
6344
6345 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
6346
a8613adf
KS
63472005-07-15 Kim F. Storm <storm@cua.dk>
6348
6349 * xdisp.c: Fix redisplay loop in last change.
6350 (IT_POS_VALID_AFTER_MOVE_P): New macro.
6351 (move_it_vertically_backward, move_it_by_lines): Use it.
6352
2d5324c5
JR
63532005-07-14 Jason Rumney <jasonr@gnu.org>
6354
6355 * w32.c (init_environment): Default HOME directory to user's
6356 appdata directory if possible.
6357
3ed70dc4
KS
63582005-07-14 Kim F. Storm <storm@cua.dk>
6359
7b9389b0
KS
6360 * .gdbinit (pitx): Fix output format. Print string charpos.
6361
3ed70dc4
KS
6362 * lread.c (syms_of_lread): Initialize seen_list.
6363
6364 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
6365
6366 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
6367 Staticpro re_match_object.
6368
ef029e5a
YM
63692005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6370
6371 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
6372 dereference.
6373
6374 * macterm.c (mac_window_to_frame): Remove duplicate define.
6375
16ef9c56
KH
63762005-07-14 Kenichi Handa <handa@m17n.org>
6377
6378 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 6379 (code_convert_region): Adjust for the above change.
16ef9c56
KH
6380 (set_conversion_work_buffer): If the work buffer is already in
6381 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 6382 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
6383 (run_pre_write_conversin_on_c_str): Likewise.
6384
098e1273
KS
63852005-07-13 Kim F. Storm <storm@cua.dk>
6386
010b9a45
KS
6387 * xdisp.c (start_display): Don't reseat to next visible line start
6388 if current start position is in a string or image.
6389 (move_it_vertically_backward): Be sure to move out of strings and
6390 images when moving it2 forward.
6391 (move_it_by_lines): When moving forward, move to next buffer
6392 position if we end up in a string or image. When moving backward,
6393 count rows moved over when moving to start of current row in case
6394 row starts in middle of a string or image. Also move further
6395 backward if we end up in a string or image.
bcd98331 6396 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
6397 move backward to set cursor on start of an overlay string.
6398 (cursor_row_p): Row is ok if cursor is at newline from string, but
6399 string starts on this line (so we always position cursor at start
6400 of string).
6401
6402 * indent.c (Fvertical_motion): If start position is on an image,
6403 don't move back if we move too far (that's almost certain to happen).
6404
098e1273
KS
6405 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
6406 row in minibuffer windows.
6407 (try_window): Don't check margins in minibuffer windows.
6408
c229fb15
YM
64092005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6410
6411 * macterm.c: Don't include stdlib.h or composite.h.
6412 (x_use_underline_position_properties, last_mouse_press_frame)
6413 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
6414 (syms_of_macterm, mac_initialize): Don't initialize them.
6415 (waiting_for_input, initial_argv, initial_argc)
6416 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
6417 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
6418 (extra_keyboard_modifiers): Fix type in extern.
6419 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
6420 (x_scroll_bar_report_motion): Add argument types to declaration.
6421 (mac_compute_glyph_string_overhangs): Add declaration.
6422 (disable_mouse_highlight): Remove unused variable.
6423 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
6424 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
6425 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
6426 All callers changed.
c229fb15
YM
6427 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
6428 timestamp.
6429 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
6430 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
6431 only when its width is less than the height.
6432 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
6433 (font_name_table, font_name_table_size, font_name_count):
6434 Make static.
c229fb15
YM
6435 (drag_and_drop_file_list): Remove variable. Previous use is now
6436 local to function.
6437 (do_ae_open_documents): Move DRAG_N_DROP event construction part
6438 from XTread_socket.
bcd98331
SM
6439 (XTread_socket): Consolidate setting of event timestamp.
6440 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
6441 Support extra_keyboard_modifiers.
6442
6443 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
6444 beginning with that for ASCII.
6445
69d05d83
SM
64462005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
6447
6448 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
6449 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
6450 (syms_of_alloc): Declare gc-cons-percentage.
6451
6452 * eval.c (Feval, Ffuncall):
6453 * keyboard.c (read_char):
6454 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
6455
6456 * lisp.h (gc_cons_combined_threshold): Declare.
6457
5c7f9de1
KS
64582005-07-12 Kim F. Storm <storm@cua.dk>
6459
6460 * coding.c (Qprocess_argument):
6461 * coding.h (Qprocess_argument): Remove unused var.
6462
6463 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
6464
c37efb7a
YM
64652005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6466
6467 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
6468 Endian.h.
6469 [!MAC_OSX] (fchmod, fchown): New functions.
6470 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
6471 Use SBYTES and EndianU32_BtoN.
6472 (mac_get_object_from_code): Return 4 byte string even if argument
6473 is 0. Use make_unibyte_string and EndianU32_NtoB.
6474 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
6475 (Fmac_set_file_type): Fix documents and argument declarations.
6476 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
6477
a4429c5b
SM
64782005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
6479
6480 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
6481
a2d7e722
JD
64822005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6483
6484 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
6485 Lucid if X_I18N, font otherwise.
6486
9a4183e9
ST
64872005-07-10 Steven Tamm <steventamm@mac.com>
6488
a4429c5b
SM
6489 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
6490 (Fmac_set_file_type, Fmac_set_file_creator): Add.
6491 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 6492
51f74c37
RS
64932005-07-10 Richard M. Stallman <rms@gnu.org>
6494
6495 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
6496 (syms_of_lread): Set up eval-buffer-list.
6497 (Feval_buffer, Feval_region): Bind eval-buffer-list.
6498
93c7da4c
RS
64992005-07-08 Richard M. Stallman <rms@gnu.org>
6500
6501 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
6502
64af5917
KS
65032005-07-08 Kim F. Storm <storm@cua.dk>
6504
6505 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
6506 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
6507
a96b333c
KS
65082005-07-07 Kim F. Storm <storm@cua.dk>
6509
6510 * window.c (Frecenter): Fix last change (set iarg before use).
6511
dc2204be
RS
65122005-07-06 Richard M. Stallman <rms@gnu.org>
6513
6514 * window.c (Frecenter): When arg is inside the scroll margin,
6515 move it out of the margin.
6516
3fb1d72b
JR
65172005-07-06 Jason Rumney <jasonr@gnu.org>
6518
6519 * w32console.c (initialize_w32_display): Detect when the console
6520 dimensions are insane, and default to 80x25 instead.
a4429c5b 6521 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 6522
dd15724d
YM
65232005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6524
6525 * macterm.c (mac_draw_vertical_window_border): Use foreground of
6526 VERTICAL_BORDER_FACE_ID for vertical border line.
6527 (mac_encode_char): Call check_ccl_update in advance.
6528 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
6529 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
6530 Don't assume that font family length is less than 32.
dd15724d
YM
6531 (x_compute_min_glyph_bounds): Make static.
6532 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 6533
68003d6b
LK
65342005-07-04 Lute Kamstra <lute@gnu.org>
6535
dc2204be 6536 * Update FSF's address in GPL notices.
68003d6b 6537
3d393029
RS
65382005-07-03 Richard M. Stallman <rms@gnu.org>
6539
6540 * xdisp.c (try_window): Fix previous change in how it handles
6541 a partially-visible line or one only partly past the margin.
6542
6543 * window.c (window_scroll_pixel_based): Take account
6544 of this_scroll_margin when finding point when scrolling up.
6545
65462005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
6547
6548 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6549 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9dd28cae 6550 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3d393029 6551
d6951bb4
EZ
65522005-07-02 Juri Linkov <juri@jurta.org>
6553
6554 * w32term.c (w32_draw_vertical_window_border): Use foreground of
6555 VERTICAL_BORDER_FACE_ID for vertical border line.
6556
b016179b
EZ
65572005-07-02 Eli Zaretskii <eliz@gnu.org>
6558
6559 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
6560 fchmod so that chmod doesn't get called on MSDOS before the file
6561 is closed.
6562
c2baa2b6
JR
65632005-07-01 Jason Rumney <jasonr@gnu.org>
6564
6565 * w32term.c (cleartype_active): New flag for enabling sub-pixel
6566 workaround.
6567 (w32_initialize): Initialize it.
6568 (w32_native_per_char_metric): Allow a couple of extra pixels when
6569 Cleartype is active.
6570
6571 * w32term.c (w32_initialize): Move check for screen reader here
6572 from syms_of_w32term.
6573
a6d0ae55
JD
65742005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6575
6576 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
6577 is not zero.
6578
711877f3
MY
65792005-07-01 Masatake YAMATO <jet@gyve.org>
6580
a4429c5b 6581 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 6582
63f7ffb3
JL
65832005-06-30 Juri Linkov <juri@jurta.org>
6584
6585 * xdisp.c (x_draw_vertical_border): If left fringe is not present
6586 decrease x coord of vertical border by 1 pixel to not occupy text
6587 area of the right window.
6588
6589 * xterm.c (x_draw_vertical_window_border): Use foreground of
6590 VERTICAL_BORDER_FACE_ID for vertical border line.
6591
6592 * term.c (turn_on_face): In standout mode apply specified
6593 fg to bg, and specified bg to fg (this makes the logic of
6594 inversion on terminal consistent with X).
6595
b26860ad
JB
65962005-06-29 Juanma Barranquero <lekktu@gmail.com>
6597
6598 * eval.c (user_variable_p_eh): New function.
6599 (Fuser_variable_p): Use it. Clarify docstring.
6600 Return t for aliases of user options, nil for alias loops.
6601
3a1f1d79
RS
66022005-06-27 Richard M. Stallman <rms@gnu.org>
6603
6604 * eval.c (Fdefvar): Improve error message.
6605
92de1e01
YM
66062005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6607
6608 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
6609 change.
6610
69410484
JB
66112005-06-27 Juanma Barranquero <lekktu@gmail.com>
6612
6613 * eval.c (Fdefvar): Don't try to set constant symbols.
6614
09352e8f
RS
66152005-06-25 Richard M. Stallman <rms@gnu.org>
6616
a68d870b
RS
6617 * macfns.c (Fx_show_tip): Pass new arg to try_window.
6618
6619 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
6620
6621 * xfns.c (Fx_show_tip): Pass new arg to try_window.
6622
6623 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
6624 (redisplay_window): Handle try_window reporting point in scroll margin.
6625
6626 * dispextern.h (try_window): Declare new arg.
6627
6628 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
6629 Use fchmod to copy the file modes.
6630 (Frename_file): Don't copy UID and GID here;
6631 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
6632
df13531d
RS
6633 * eval.c (call_debugger): Take full care of extending stack limits
6634 to make space for the debugger, and restore the change afterward.
6635 Bind debug-on-error to nil.
6636 (restore_stack_limits): New subroutine.
6637 (Fsignal): Extend specpdl bound along with eval depth bound,
6638 for calling edebug. Don't do either one, for calling debugger.
6639 (find_handler_clause): Don't bind debug-on-error here.
6640 Don't unbind anything either.
6641 Temporarily advance max_specpdl_size for calling
6642 internal_with_output_to_temp_buffer.
6643 (grow_specpdl): Don't alter max_specpdl_size before signaling
6644 an error.
6645 (syms_of_eval) <max-specpdl-size>: Doc fix.
6646
09352e8f
RS
6647 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
6648
90296dd3
EZ
66492005-06-24 Eli Zaretskii <eliz@gnu.org>
6650
6651 * fileio.c (Frename_file): Undo last change: no need to ifdef away
6652 chown on DOS_NT platforms.
6653
6654 * w32.c (sys_chown): New function.
6655
6656 * s/ms-w32.h (chown): New; define to sys_chown.
6657
c4f6ca24
JB
66582005-06-24 Juanma Barranquero <lekktu@gmail.com>
6659
3338c0ad
JB
6660 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
6661 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
6662
9a1505e9 6663 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 6664
528b6abc
RS
66652005-06-23 Richard M. Stallman <rms@gnu.org>
6666
6667 * xdisp.c (get_next_display_element): Finish reversing the tests of
6668 Vnobreak_char_display.
6669
9a1505e9 6670 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 6671 All uses changed.
9a1505e9 6672 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
6673 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
6674
6675 * fileio.c (Frename_file): Preserve owner and group, if possible,
6676 when copying.
6677
1d1c7e75
JB
66782005-06-23 Juanma Barranquero <lekktu@gmail.com>
6679
253b2298
JB
6680 * abbrev.c (Funexpand_abbrev):
6681 * category.c (Fmake_category_set):
6682 * dispnew.c (Fsleep_for, Fsit_for):
6683 * editfns.c (Fsubst_char_in_region):
6684 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
6685 * frame.c (make_frame_without_minibuffer):
6686 * lread.c (read_vector):
6687 * macfns.c (check_x_frame):
6688 * process.c (Fstop_process, Fcontinue_process):
6689 * search.c (Freplace_match):
6690 * syntax.c (Fstring_to_syntax):
6691 * w32fns.c (check_x_frame, check_x_display_info):
6692 * xfaces.c (x_supports_face_attributes_p):
6693 * xselect.c (Fx_own_selection_internal): Follow error conventions.
6694
1d1c7e75
JB
6695 * image.c (fn_png_init_io): Don't define it.
6696 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
6697 (png_read_from_file): New function, based on png_read_from_memory.
6698 (png_load): Use it, instead of fn_png_init_io.
6699
d1fab151
KS
67002005-06-23 Kim F. Storm <storm@cua.dk>
6701
6702 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 6703 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
6704 Add commentary explaining evaporate arg (for internal use only).
6705 (unwind_set_match_data): Add comment on evaporate use.
6706
53abc3bf
MB
67072005-06-22 Miles Bader <miles@gnu.org>
6708
a4429c5b 6709 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
6710 (realize_basic_faces, syms_of_xfaces): Update references to it.
6711 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
6712 to `VERTICAL_BORDER_FACE_ID'.
6713 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
6714
36a3b076
JL
67152005-06-21 Juri Linkov <juri@jurta.org>
6716
6717 * dispextern.h: Add extern Qframe_set_background_mode.
6718
6719 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
6720 Qframe_set_background_mode.
6721
6722 * frame.c (Fmodify_frame_parameters):
6723 Call frame-set-background-mode after changing the background color
6724 on non-window non-dos branch.
6725
23873c96
JB
67262005-06-21 Juanma Barranquero <lekktu@gmail.com>
6727
6728 * fns.c (Fchar_table_range):
6729 * process.c (Fmake_network_process): Fix spellings.
6730
b7d1f38f
KS
67312005-06-20 Kim F. Storm <storm@cua.dk>
6732
6733 * fns.c (Fsort): Doc fix.
6734
b4e49aee
MB
67352005-06-20 Miles Bader <miles@gnu.org>
6736
6737 * xfaces.c (Qvertical_divider): New variable.
6738 (realize_basic_faces): Realize its face.
6739 (syms_of_xfaces): Initialize it.
6740
6741 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
6742
6743 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
6744 window-separator on ttys using `vertical-divider' face by default.
6745
b7da00ba
RS
67462005-06-17 Richard M. Stallman <rms@gnu.org>
6747
a4429c5b
SM
6748 * xdisp.c (get_next_display_element):
6749 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
6750
6751 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
6752 (Ftty_no_underline): New function.
6753 (syms_of_term): defsubr it.
b7d1f38f 6754
b7da00ba
RS
6755 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
6756
6757 * dispnew.c (spec_glyph_lookup_face): New function.
6758 (build_frame_matrix_from_leaf_window): Use it.
6759
6760 * dispextern.h (spec_glyph_lookup_face): Add declaration.
6761
6762 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
6763
67642005-06-12 Richard M. Stallman <rms@gnu.org>
6765
6766 * keyboard.c (read_char): After catching a longjmp,
6767 call restore_getcjmp.
6768
289824a3
JB
67692005-06-17 Juanma Barranquero <lekktu@gmail.com>
6770
6771 * xselect.c (lisp_data_to_selection_data): Fix spelling.
6772
95085023
YM
67732005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6774
6775 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
6776 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
6777 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
6778 events.
6779 (XTread_socket): Don't pass keyboard events with the option
6780 modifier to the system when Vmac_command_key_is_meta is nil or
6781 Vmac_option_modifier is non-nil.
6782 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
6783 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
6784 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
6785 handler function.
6786 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
6787 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
6788 handler part to mac_handle_mouse_event.
6789
4a9308b8
JB
67902005-06-14 Juanma Barranquero <lekktu@gmail.com>
6791
6792 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
6793 NEW-ALIAS and BASE-VARIABLE, respectively.
6794
5aa6db57
SM
67952005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6796
6797 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
6798 (get_phys_cursor_geometry, format_mode_line_unwind_data)
6799 (get_line_height_property, x_produce_glyphs): Remove unused vars.
6800
6801 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
6802
0e0dddda
EZ
68032005-06-13 Eli Zaretskii <eliz@gnu.org>
6804
6805 * w32term.c (x_use_underline_position_properties): New variable.
6806 (x_draw_glyph_string): Remind in a comment to change doc string of
6807 x-use-underline-position-properties if/when underline positioning
6808 is implemented.
6809 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
6810 and initialize it to nil.
6811
7f2b4738
JR
68122005-06-12 Jason Rumney <jasonr@gnu.org>
6813
6814 * w32fns.c (NEWOPENFILENAME): New struct.
6815 (Fx_file_dialog): Use it to trick the system into giving us up to
6816 date dialogs on systems that are documented to support it.
6817 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
6818
a1e8cad6
EZ
68192005-06-12 Eli Zaretskii <eliz@gnu.org>
6820
6821 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
6822 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
6823
099a3eea
EZ
68242005-06-11 Eli Zaretskii <eliz@gnu.org>
6825
2e09fef1
EZ
6826 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
6827 to CreateDIBSection to avoid a compiler warning.
6828 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
6829 warning.
6830 (png_load): Cast return values of fn_png_create_read_struct and
6831 fn_png_create_info_struct, to avoid compiler warnings on W32.
6832 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
6833 to avoid compiler warnings.
6834 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
6835 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
6836 avoid a compiler warning.
6837 (tiff_load): Cast return values of fn_TIFFOpen and
6838 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
6839 to IMAGE_BACKGROUND to avoid a compiler warning.
6840 (gif_load): Cast return values of fn_DGifOpenFileName and
6841 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
6842 IMAGE_BACKGROUND to avoid a compiler warning.
6843 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
6844 before redefining.
6845
099a3eea
EZ
6846 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
6847 the call to CreateDIBSection, to avoid a compiler warning.
6848
d11f8e1a
JR
68492005-06-11 Jason Rumney <jasonr@gnu.org>
6850
6851 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
6852 minibuffer.
6853 * macfns.c (Fx_file_dialog): Likewise.
6854
cd4344a3
EZ
68552005-06-10 Eli Zaretskii <eliz@gnu.org>
6856
6857 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
6858
578c1340
JB
68592005-06-10 Juanma Barranquero <lekktu@gmail.com>
6860
6861 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
6862 * w32fns.c (syms_of_w32fns): Fix spellings.
6863
4162f25f
EZ
68642005-06-10 Eli Zaretskii <eliz@gnu.org>
6865
6866 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
6867 `verbose'; print diagnostic messages only if it is non-zero.
6868 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
6869 in the environment.
6870 (copy_executable_and_dump_data): Print section names with %.8s.
6871
121c59a3
MY
68722005-06-10 Masatake YAMATO <jet@gyve.org>
6873
6874 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
6875 when mouse_face is not given.
121c59a3 6876
c869384d
LT
68772005-06-09 Luc Teirlinck <teirllm@auburn.edu>
6878
6879 * window.c (Fselect_window): Adapt call to Fselect_frame.
6880
6881 * lisp.h: Update EXFUN of Fselect_frame.
6882
6883 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
6884
6ecf436d
LT
6885 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
6886 no_enter.
6887 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
6888 Adapt to above change.
6889
c14ec135
JB
68902005-06-10 Juanma Barranquero <lekktu@gmail.com>
6891
6892 * fns.c (Fmemq, Fmaphash): Doc fixes.
6893
9fed2905
JB
68942005-06-09 Juanma Barranquero <lekktu@gmail.com>
6895
6896 * xfaces.c (Fdisplay_supports_face_attributes_p):
6897 Fix typo in docstring.
6898
427c5b1b
ST
68992005-06-08 Steven Tamm <steventamm@mac.com>
6900
6901 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
6902 used by gcc4 on intel mac.
6903
b7aae902
KS
69042005-06-09 Kim F. Storm <storm@cua.dk>
6905
6906 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
6907 in REUSE list if non-nil; free them if equal to evaporate.
6908 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
6909 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
6910 (restore_search_regs): Rename from restore_match_data. Uses changed.
6911 (unwind_set_match_data): New function.
6912 (record_unwind_save_match_data): New function like save-match-data.
6913
6914 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
6915 (record_unwind_save_match_data): Add prototype.
6916 (restore_search_regs): Rename from restore_match_data.
6917
6918 * composite.c (compose_chars_in_text):
6919 * eval.c (do_autoload):
6920 * macmenu.c (set_frame_menubar):
6921 * process.c (read_process_output, exec_sentinel):
6922 * xmenu.c (set_frame_menubar):
6923 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
6924 * w32menu.c (set_frame_menubar):
6925 Use record_unwind_save_match_data.
6926
547d2b37
RS
69272005-06-08 Richard M. Stallman <rms@gnu.org>
6928
6929 * xdisp.c (get_next_display_element): Alter previous change:
6930 Distinguish Vshow_nonbreak_escape = t or not t.
6931 For t, use escape_glyph once again, as before previous change.
6932 Use space or hyphen for display, instead of the non-ASCII char.
6933 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
6934
6935 * process.c (Fstart_process): Don't touch command_channel_p slot.
6936
99598737 6937 * process.h (struct process): Delete command_channel_p.
547d2b37 6938
602907ae
MY
69392005-06-07 Masatake YAMATO <jet@gyve.org>
6940
5aa6db57
SM
6941 * xdisp.c (note_mode_line_or_margin_highlight):
6942 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 6943 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
6944 is not ON_MODE_LINE nor ON_HEADER_LINE.
6945
8b793bed
KS
69462005-06-07 Kim F. Storm <storm@cua.dk>
6947
6948 * process.c: Improve commentary for adaptive read buffering.
6949
3d031334
SM
69502005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
6951
6952 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
6953 if available.
6954
16d2e704
JD
69552005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6956
5aa6db57
SM
6957 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
6958 New functions for popping down menus on C-g.
16d2e704
JD
6959 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
6960
6961 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
6962 non-static.
6963
9fed2905 6964 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 6965
b6cc2ad0
EZ
69662005-06-06 Eli Zaretskii <eliz@gnu.org>
6967
9a1505e9 6968 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 6969
5aa6db57 6970 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
6971
6972 * w32proc.c (RVA_TO_PTR): New macro.
6973
6974 * w32heap.c (RVA_TO_PTR): No need to #undef now.
6975
6976 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
6977 Depend on w32heap.h.
6978
24e55feb
LT
69792005-06-06 Luc Teirlinck <teirllm@auburn.edu>
6980
6981 * keyboard.c (command_loop_1): Update Vthis_original_command.
6982
ce6e10af
RS
69832005-06-06 Richard M. Stallman <rms@gnu.org>
6984
6985 * xmenu.c (popup_get_selection): Undo previous change.
6986
c476bcb0
JL
69872005-06-06 Juri Linkov <juri@jurta.org>
6988
6989 * xdisp.c (Qno_break_space): New variable.
6990 (syms_of_xdisp): Initialize it.
6991 (get_next_display_element): Add no-break space and soft hypen
6992 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
6993 Use `no-break-space' face for no-break spaces.
6994
5494d7bc
JD
69952005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6996
6997 * window.c (delete_window): Handle the case where a h/vchild has
6998 a h/vchild.
6999
a0c38328
EZ
70002005-06-05 Eli Zaretskii <eliz@gnu.org>
7001
7002 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
7003 call to pfn_setsockopt, cast optval to `const char *'.
7004
91018229
EZ
70052005-06-04 Eli Zaretskii <eliz@gnu.org>
7006
1a8fb426
EZ
7007 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
7008 (open_unc_volume): Cast return value of map_w32_filename, to avoid
7009 compiler warnings.
7010
b6f0a397
EZ
7011 * s/ms-w32.h (fileno): Don't define if already defined.
7012
17a7c5c2 7013 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 7014
91018229
EZ
7015 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
7016
196ac78c
RS
70172005-06-04 Richard M. Stallman <rms@gnu.org>
7018
7019 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
7020
b8987570
JD
70212005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7022
7023 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 7024 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
7025 mac_menu_show Quit:s.
7026 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
7027 a dialog).
7028
555228aa
KS
70292005-06-04 Kim F. Storm <storm@cua.dk>
7030
7031 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
7032
7033 * callproc.c (Fcall_process): Don't use alloca to gradually
7034 increase size of buf, as it effectively uses twice the necessary
7035 space on the stack. Instead, pre-allocate buf of full size, and
7036 gradually increase the read size.
7037
7038 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
7039
7040 * eval.c (unbind_to): Preserve value of Vquit_flag.
7041
7042 * xterm.c (handle_one_xevent): Also ignore mouse motion just
7043 before a button release event.
7044
6312e5f7
JB
70452005-06-03 Juanma Barranquero <lekktu@gmail.com>
7046
7047 * xfaces.c (Finternal_lisp_face_equal_p): Really report
7048 on faces in a frame, if the argument FRAME is non-nil.
7049 Improve argument/docstring consistency.
7050
0493f7be
KS
70512005-06-02 Kim F. Storm <storm@cua.dk>
7052
7053 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
7054 (x_consider_frame_title, Fformat_mode_line): Save offset into
7055 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
7056
89fe657e
KS
70572005-06-01 Kim F. Storm <storm@cua.dk>
7058
7059 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
7060
02a6375c
YM
70612005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7062
7063 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
7064 resolution fields for scalable fonts to 0.
7065
7066 * xfaces.c (build_scalable_font_name): Round pixel size to the
7067 nearest integer.
7068
95d4fad8
KS
70692005-06-01 Kim F. Storm <storm@cua.dk>
7070
7071 * xdisp.c (display_mode_line): Support nested calls to redisplay
7072 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
7073
3c1b433a
SM
70742005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7075
7076 * fileio.c (Finsert_file_contents):
7077 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7078
13cc7d61
KS
70792005-05-31 Kim F. Storm <storm@cua.dk>
7080
7081 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
7082 (mode_line_noprop_ptr): Rename from frame_title_*.
7083 (store_mode_line_noprop_char): Rename from store_frame_title_char.
7084 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 7085 (mode_line_target): New enum to specify current output target
13cc7d61
KS
7086 for mode line formatting.
7087 (display_mode_element): Test it rather than frame_title_ptr and
7088 mode_line_string_list to determine where output should go.
7089 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
7090 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
7091 (format_mode_line_unwind_data, unwind_format_mode_line):
7092 New functions for unwind protection in mode line formatting.
13cc7d61 7093 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
7094 to support nested calls to format-mode-line and redisplay.
7095 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 7096 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
7097 support nested calls to format-mode-line and redisplay.
7098 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 7099 Don't trim trailing dashes.
13cc7d61
KS
7100 (decode_mode_spec): Don't make infinite number of trailing dashes
7101 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
7102 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
7103 mode_line_string_face_prop, and Vmode_line_unwind_vector.
7104 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
7105 Initialize mode_line_target to MODE_LINE_DISPLAY.
7106
c16b1394
RS
71072005-05-29 Richard M. Stallman <rms@gnu.org>
7108
7109 * buffer.c (Fbuffer_local_value): Call indirect_variable.
7110
edfaeb4e
MY
71112005-05-28 Masatake YAMATO <jet@gyve.org>
7112
7113 * xdisp.c (note_mode_line_or_margin_highlight): Change the
7114 pointer to a hand cursor when hoovering over a mouse-face.
7115
7cf49add
KH
71162005-05-27 Kenichi Handa <handa@m17n.org>
7117
7118 * xterm.c (x_encode_char): Call check_ccl_update in advance.
7119
7120 * ccl.c: Now an element of Vccl_program_table is a vector of
7121 length 4, not 3.
3c1b433a
SM
7122 (ccl_get_compiled_code): New arg idx. Caller changed.
7123 Adjust for the change of Vccl_program_table.
7124 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
7125 (check_ccl_update): New function.
7126 (Fregister_ccl_program): Use ASET to set an element of a vector.
7127 Adjusted for the change of Vccl_program_table.
7128
7129 * ccl.h (struct ccl_program): New member idx.
7130 (check_ccl_update): Extern it.
7131
5e2ad10b
JB
71322005-05-27 Juanma Barranquero <lekktu@gmail.com>
7133
3c1b433a 7134 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
7135 (syms_of_image): Defvar it.
7136 (lookup_image_type): Use it.
7137
5e2ad10b
JB
7138 * buffer.c (Fbuffer_local_value): Make argument name match its use
7139 in docstring.
7140
6e604a9b
JB
71412005-05-26 Juanma Barranquero <lekktu@gmail.com>
7142
7143 * keyboard.c (Frecursive_edit): Fix typo in docstring.
7144 (Fposn_at_x_y): Make argument name match its use in docstring.
7145
59244a3f
LK
71462005-05-26 Lute Kamstra <lute@gnu.org>
7147
7148 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
7149
55ce5058
MY
71502005-05-24 Masatake YAMATO <jet@gyve.org>
7151
7152 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
7153 as loop sentinels.
7154
cb5db137
NR
71552005-05-24 Nick Roberts <nickrob@snap.net.nz>
7156
7157 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
7158 select frame title ("Question"/"Information").
7159 (xdialog_show): Use it.
7160
13dcfc35
NR
7161 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
7162
7163 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
7164
d3393daa
NR
7165 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
7166 a third argument (Qnil).
7167
7168 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
7169
7170 * editfns.c (Fmessage_box): Use "Information" for frame title.
7171
71d4fba1
TTN
71722005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
7173
7174 * termcap.c [VMS]: Include <starlet.h>.
7175
359e4563
MY
71762005-05-23 Masatake YAMATO <jet@gyve.org>
7177
6e604a9b
JB
7178 * xdisp.c (note_mode_line_or_margin_highlight): Add code
7179 for mouse-face. Change the type of the first argument from `window'
7180 to `Lisp_Object'.
359e4563
MY
7181 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
7182 window instead of w.
7183
edceb51c
AS
71842005-05-22 Andreas Schwab <schwab@suse.de>
7185
41c4895c 7186 * process.c (send_process): Move misplaced volatile.
edceb51c 7187
5c213fcc
RS
71882005-05-21 Richard M. Stallman <rms@gnu.org>
7189
7190 * xdisp.c (display_mode_element): If we're processing a list and
7191 padding is specified, put it after the last element.
7192
aa4060b9
EZ
71932005-05-21 Eli Zaretskii <eliz@gnu.org>
7194
7195 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
7196 "superroot" on DOS_NT systems.
7197
a2c9aee6
EZ
71982005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
7199
7200 * process.c (send_process): Restore the SIGPIPE handler if we
7201 catch a SIGPIPE.
7202
09e8eb5b
JB
72032005-05-20 Juanma Barranquero <lekktu@gmail.com>
7204
7205 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
7206 misleading comments).
7207 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
7208
f3fbdb1f
LK
72092005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7210
7211 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
7212 Correct the right value.
7213
639ec765
NR
72142005-05-19 Nick Roberts <nickrob@snap.net.nz>
7215
240d926e 7216 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
7217 post-command-idle-hook and post-command-idle-delay.
7218 (command_loop_1): Don't try to execute post-command-idle-hook.
7219
03d42907
KS
72202005-05-16 Kim F. Storm <storm@cua.dk>
7221
1cb83e13
KS
7222 * xdisp.c (handle_display_prop): Handle empty replacement.
7223 (handle_single_display_spec): Return -1 for empty replacement.
7224
7225 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
7226
03d42907
KS
7227 * .gdbinit (pitx): Print more info about iterator.
7228
0da46b6e
AS
72292005-05-16 Andreas Schwab <schwab@suse.de>
7230
3c1b433a 7231 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 7232
d06ba294
RS
72332005-05-14 Richard M. Stallman <rms@gnu.org>
7234
7235 * xdisp.c (message3): Call cancel_echoing.
7236
7237 * alloc.c (Fmemory_full_p): New function.
7238 (syms_of_alloc): defsubr it.
7239
7240 * process.c (send_process_trap): Unblock SIGPIPE.
7241 (send_process): Reset SIGPIPE handler before reporting error.
7242
90713743
NR
72432005-05-14 Nick Roberts <nickrob@snap.net.nz>
7244
7245 * emacs.c (syms_of_emacs): Fix doc string for system-type.
7246
68780e2a
RS
72472005-05-13 Richard M. Stallman <rms@gnu.org>
7248
7249 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
7250 (Finsert_file_contents): If we read 0 bytes from a special file,
7251 unlock the visited file if we locked it.
7252 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 7253 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 7254
5063dbbf
YM
72552005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7256
7257 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
7258
3c1b433a
SM
7259 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
7260 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
7261 redisplay from being paused by them.
7262
7263 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
7264 [!MAC_OSX] (target_ticks): Remove variable.
7265 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
7266 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
7267 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 7268 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
7269 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
7270 handling using Time Manager routines.
3c1b433a
SM
7271 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
7272 New variables.
5063dbbf
YM
7273 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
7274 (setitimer): New functions.
7275
7276 * macfns.c, macmenu.c: Don't include signal.h.
7277
7278 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
7279 Rename from get_control_part_bound. All callers changed.
7280 (x_scroll_bar_clear): New function.
7281 (x_clear_frame): Use it.
7282 (XTset_vertical_scroll_bar): Don't call Draw1Control.
7283 (x_scroll_bar_handle_click): Change type of second argument from
7284 int to ControlPartCode.
7285 (check_alarm): Remove declaration.
02a6375c
YM
7286 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
7287 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
7288
72892005-05-13 Nozomu Ando <nand@mac.com>
7290
7291 * unexmacosx.c: Include assert.h.
7292 (MACOSX_MALLOC_MULT16): New define.
7293 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
7294 ptr is in unexec regions by checking it is multiple of 16.
7295 (unexec_malloc_header_t): New typedef.
7296 (unexec_malloc, unexec_realloc, unexec_free): Store and use
7297 allocated size information in unexec_malloc_header.
7298
d101bf56
RS
72992005-05-10 Richard M. Stallman <rms@gnu.org>
7300
7301 * xterm.c (noinclude): Add #undef.
7302
7303 * image.c, xfns.c, xmenu.c: Don't include signal.h.
7304
2f60660a
JB
73052005-05-09 Juanma Barranquero <lekktu@gmail.com>
7306
f1701e65
JB
7307 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
7308 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
7309 Doc fixes.
7310
2f60660a
JB
7311 * dired.c (Ffile_name_completion): Make argument name
7312 match its use in docstring.
7313
9f29e806
LT
73142005-05-08 Luc Teirlinck <teirllm@auburn.edu>
7315
7316 * eval.c (Fdefvaralias): Remove any pre-existing
7317 variable-documentation property of the alias.
7318
a790bcd4
TTN
73192005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
7320
7321 * xfns.c (start_hourglass): Do nothing when running on a tty.
7322
d5fb8dab
JB
73232005-05-07 Juanma Barranquero <lekktu@gmail.com>
7324
7325 * fns.c (Fchar_table_range): Fix typos in docstring.
7326
7ec64183
SM
73272005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7328
7329 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
7330
6ff95f1d
EZ
73312005-05-06 Eli Zaretskii <eliz@gnu.org>
7332
2c6b25c7
EZ
7333 * lread.c (Flocate_file_internal): Doc fix.
7334
6ff95f1d
EZ
7335 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
7336
17d28d26
YM
73372005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7338
7339 * macselect.c (x_own_selection): Accept Lisp string as result of
7340 selection converter function.
7341 (x_clear_frame_selections): Don't call x-lost-selection-functions
7342 if Emacs is not owner of the selection.
7343 (Vmac_services_selection): Put variable and initialization in
7344 #ifdef MAC_OSX.
7345 (syms_of_macselect) [MAC_OSX]: Set default value of
7346 Vmac_services_selection to PRIMARY.
7347
7ec64183
SM
7348 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
7349 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
7350 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
7351 (install_scroll_bar_timer, set_scroll_bar_timer)
7352 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
7353 (get_control_part_bound, x_scroll_bar_handle_press)
7354 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
7355 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
7356 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
7357 (scroll_bar_timer_event_posted_p): New variables.
7358 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
7359 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
7360 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
7361 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
7362 Initialize track_top and track_height to nil.
7363 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
7364 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
7365 (XTset_vertical_scroll_bar): Don't make space between scroll bar
7366 and associated window.
7367 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
7368 from window config.
7ec64183
SM
7369 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7370 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
7371 Recalculate them if they are nil.
7372 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
7373 clicked control is a scroll bar.
7374 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
7375 event handler functions. Don't add modifiers to scroll bar click
7ec64183 7376 events. Call scroll bar release handler when window is deactivated.
17d28d26 7377 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
7378 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
7379 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 7380
7ec64183
SM
7381 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7382 New members track_top and track_height.
17d28d26
YM
7383
7384 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
7385 init_process when including sys/select.h.
7386
643b4cf5
LT
73872005-05-05 Luc Teirlinck <teirllm@auburn.edu>
7388
7389 * eval.c (Fdefvaralias): Doc fix.
7390
7391 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7392
99bda128
KS
73932005-05-05 Kim F. Storm <storm@cua.dk>
7394
7395 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
7396 default value.
7397 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
7398 Fix type of cursor-in-non-selected-windows.
7399
3a3563e9
JD
74002005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7401
7402 * mac.c: #undef init_process so not to conflict with system headers.
7403
0124c5bd
RS
74042005-05-02 Richard M. Stallman <rms@gnu.org>
7405
7406 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
7407
7408 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
7409
7410 * xdisp.c (Vcursor_in_non_selected_windows)
7411 (Qcursor_in_non_selected_windows): Vars deleted.
7412 (syms_of_xdisp): Don't initialize them.
7413 (get_window_cursor_type): Use cursor_in_non_selected_windows
7414 buffer slot.
7415
4b3f161f
KS
74162005-05-02 Kim F. Storm <storm@cua.dk>
7417
e40527dc
KS
7418 * macros.c (executing_kbd_macro_index): Rename from
7419 executing_macro_index. All uses changed.
7420 (executing_kbd_macro_iterations): Rename from
7421 executing_macro_iterations. All uses changed.
7422 (executing_kbd_macro): Rename from executing_macro.
7423 All uses changed.
7424 (syms_of_macros): Rename Lisp var executing-macro-index to
7425 executing-kbd-macro-index.
7426
4b3f161f
KS
7427 * xdisp.c (move_it_in_display_line_to): Fix last change.
7428
4d49edf6
LT
74292005-05-01 Luc Teirlinck <teirllm@auburn.edu>
7430
f6b1b15a
LT
7431 * xmenu.c (Fx_popup_menu): Doc fix.
7432
4d49edf6
LT
7433 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
7434
4a766fe6
JR
74352005-05-02 Jason Rumney <jasonr@gnu.org>
7436
7437 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
7438
c924d3ff
TTN
74392005-05-02 Nozomu Ando <nand@mac.com>
7440
7441 * sysselect.h: Fix typo.
7442
b161ea4e 74432005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 7444
b161ea4e
NR
7445 * charset.c (Fchars_in_region): Remove as obsolete.
7446
d37e919d 74472005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
7448
7449 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 7450 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 7451 glyph.
5c2e5a5e 7452
bec0b768
LT
74532005-05-01 Luc Teirlinck <teirllm@auburn.edu>
7454
7455 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
7456
ebbfa918
RS
74572005-05-01 Richard M. Stallman <rms@gnu.org>
7458
7459 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
7460 If user cancels the menu, quit unless FOR_CLICK.
7461
7ec64183 7462 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
7463 All uses changed.
7464 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
7465 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
7466 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
7467 * commands.h (Vexecuting_kbd_macro): Likewise.
7468
a72c2d97
TTN
74692005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
7470
7471 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
7472
7e995a23
RS
74732005-04-30 Richard M. Stallman <rms@gnu.org>
7474
7475 * fileio.c (Ffind_file_name_handler): Handle the `operations'
7476 property of the file name handler.
7477 (Qoperations): New variable.
7478 (syms_of_fileio): Initialize and staticpro it.
7479
7480 * xdisp.c (set_message_1): Delete xassert.
7481
7a92caf8
YM
74822005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7483
7ec64183 7484 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
7485
7486 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
7487
7488 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
7489 before/after including Carbon.h if there is a working mktime.
7490
5ae91803
KS
74912005-04-28 Kim F. Storm <storm@cua.dk>
7492
7493 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
7494 Fix cyclic alias check. If alias loop is detected, signal
7495 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
7496
d79b6c21
LK
74972005-04-28 Lute Kamstra <lute@gnu.org>
7498
7499 * eval.c (do_autoload): Record only autoloads in the autoload
7500 property of symbols.
7501
8c75afbf
NR
75022005-04-28 Nick Roberts <nickrob@snap.net.nz>
7503
7504 * emacs.c (USAGE1): Add --basic-display and --quick options.
7505
832e294f
KS
75062005-04-27 Kim F. Storm <storm@cua.dk>
7507
7508 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
7509
f03f317a
RS
75102005-04-26 Richard M. Stallman <rms@gnu.org>
7511
c019856e
RS
7512 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
7513 (syms_of_window): Doc fixes.
7514
f03f317a
RS
7515 * indent.c (Fvertical_motion): Undo previous change.
7516
38f60cd9
KH
75172005-04-26 Kenichi Handa <handa@m17n.org>
7518
7519 * fns.c (char_table_range): New function.
7520 (Fchar_table_range): Signal an error if characters in the range
7521 have inconsistent values. Don't check the parent.
7522
87ede5a1
KH
75232005-04-25 Kenichi Handa <handa@m17n.org>
7524
7525 * fontset.c (fontset_set): Fix previous change.
7526
a6390474
RS
75272005-04-24 Richard M. Stallman <rms@gnu.org>
7528
7529 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
7530
7fce7dfe
EZ
75312005-04-24 Eli Zaretskii <eliz@gnu.org>
7532
cf1982d9
EZ
7533 * regex.c (re_search_2, re_match_2_internal): Convert second arg
7534 of RE_TRANSLATE to int, to shut up GCC warnings.
7535
7fce7dfe
EZ
7536 * fileio.c (Fcopy_file): Doc fix.
7537 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
7538 not needed.
7539
49ed33c7
YM
75402005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7541
7542 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
7543 (SOME_MACHINE_OBJECTS): Likewise.
7544 (mac.o): Depend on ccl.h.
7545 (macselect.o): New target.
7546
7ec64183
SM
7547 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
7548 Call syms_of_macselect.
49ed33c7
YM
7549
7550 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
7551
7ec64183 7552 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
7553 (QCLIPBOARD): Remove variable.
7554 (syms_of_mac): Don't initialize it.
7555 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
7556 Remove functions.
7557 (syms_of_mac): Don't defsubr them.
7558 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
7559 (QHFS_plus_D, QHFS_plus_C): New variables.
7560 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
7561 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
7562 (cfstring_create_normalized): New functions.
7563 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
7564 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
7565
7ec64183
SM
7566 * macterm.c (handling_window_update, terminate_flag):
7567 Remove variables.
7568 (do_window_update, do_ae_quit_application, XTread_socket):
7569 Don't use them.
49ed33c7
YM
7570 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
7571 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
7572 (init_service_handler): Move to macselect.c. Remove declarations.
7573 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
7574 (Qapplication, Qabout): New variables.
7575 (syms_of_mac): Initialize them.
7576 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
7577 (Qperform): New variables.
7578 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 7579 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
7580 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
7581 (mac_store_application_menu_event, init_menu_bar): New functions.
7582 [USE_CARBON_EVENTS] (mac_handle_command_event)
7583 (init_command_handler): New functions.
7584 (mac_handle_window_event): Return noErr on window update event.
7585 (do_ae_quit_application): Call mac_store_application_menu_event.
7586 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
7587 and init_menu_bar.
7588
7589 * macterm.h (x_clear_frame_selections): Add extern.
7590
7591 * macselect.c: New file for selection processing on Mac OS.
7592
469bc679
RS
75932005-04-23 Richard M. Stallman <rms@gnu.org>
7594
7595 * fileio.c (Fcopy_file): New arg MUSTBENEW.
7596 (Frename_file): Pass new arg to Fcopy_file.
7597
7598 * window.c (window_size_fixed): Variable deleted.
7599 (syms_of_window): Initialize window-size-fixed to nil.
7600 But don't DEFVAR window_size_fixed.
7601
d379c558
AS
76022005-04-23 Andreas Schwab <schwab@suse.de>
7603
7604 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
7605 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
7606 use lib64 instead of lib.
7607 (_LP64) [_ARCH_PPC64]: Define if not defined.
7608
007d105b
TTN
76092005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
7610
7611 * s/ms-w32.h (HAVE_PWD_H): Define.
7612
b9c15916
KH
76132005-04-22 Kenichi Handa <handa@m17n.org>
7614
7615 * fns.c (copy_sub_char_table): Explicitly copy the default value
7616 of the sub-chartable.
7617
7618 * fontset.c (fontset_set): When a sub-chartable is created,
7619 explicitly sets the defalt value.
7620
1ba52906
KS
76212005-04-22 Kim F. Storm <storm@cua.dk>
7622
7623 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
7624 (Fsafe_plist_get): Rename to Fplist_get.
7625 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
7626 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
7627
7628 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
7629
7630 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
7631 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7632 Use Fplist_get instead of Fsafe_plist_get.
7633
7634 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
7635
e235145c
MB
76362005-04-21 Miles Bader <miles@gnu.org>
7637
7638 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
7639
766c5349
TTN
76402005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
7641
c164a7e6
TTN
7642 * sysdep.c: Remove reference to defunct vms-pwd.h.
7643 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
7644 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
7645
766c5349
TTN
7646 * config.in: Regenerate.
7647
2b048bf5
KH
76482005-04-20 Kenichi Handa <handa@m17n.org>
7649
7650 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
7651 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
7652 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
7653
7654 * alloc.c (make_sub_char_table): Argument changed to initial
7655 value of the slots.
7656
7657 * data.c (Faref): Handle special slots used as default values of
7658 ascii, eight-bit-control, eight-bit-control. Don't ignore a
7659 default value set for a group of characters.
7660 (Faset): Signal an error if IDXVAL is not a valid character code.
7661 Make a sub-chartable with correct initial value.
7662
7663 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
7664 values for ascii, eight-bit-control, eight-bit-graphic.
7665 Don't call Faref with charset-id.
2b048bf5
KH
7666 (Fset_char_table_default): Document how to treat normal character
7667 argument. Handle special slots used as default values of ascii,
7668 eight-bit-control, eight-bit-control. Make a sub chartable if
7669 necessary.
7670
b0a35939
KH
76712005-04-20 Kenichi Handa <handa@m17n.org>
7672
7673 * search.c (boyer_moore): Fix previous change.
7674
98dde726
KS
76752005-04-19 Kim F. Storm <storm@cua.dk>
7676
7677 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
7678 face unless last visible char and first invisible char have the
7679 same face. Also use default face if saved_face_id is undefined.
7680
327a3376
YM
76812005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7682
7683 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
7684 `full_name'.
7685 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
7686 mac_scriptcode member.
7687
7688 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
7689 (syms_of_mac): Don't initialize them.
7690 (Vmac_charset_info_alist): New variable.
7691 (syms_of_mac): Defvar it.
7692 (create_text_encoding_info_alist): New function.
7693 (decode_mac_font_name, mac_to_x_fontname)
7694 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
7695 code the correspondence among XLFD charsets, Mac script codes, and
7696 Emacs coding systems. Use Vmac_charset_info_alist and result of
7697 create_text_encoding_info_alist instead.
7698 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
7699 routines also on Mac OS Classic.
7ec64183
SM
7700 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
7701 Use add_font_name_table_entry.
327a3376
YM
7702 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
7703 specified. Derive unspecified scalable fields from specified one.
7704 (x_list_fonts): Consider Valternate_fontname_alist.
7705 (kDefaultFontSize): Change value from 9 to 12.
7706 (XLoadQueryFont): Get decoded font family, font face, and charset
7707 from x_font_name_to_mac_font_name. Set full name of loaded font.
7708 (mac_unload_font): Free `full_name' member.
7709 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
7710 NULL. Copy full_name member of struct MacFontStruct to that of
7711 struct font_info.
7712
d0636839
KS
77132005-04-19 Kim F. Storm <storm@cua.dk>
7714
5827e9d4
KS
7715 * xdisp.c (handle_stop): Set saved_face_id to current face if
7716 selective_display_ellipsis_p so ellipsis will be shown in same
7717 face as preceding text.
7718 (setup_for_ellipsis): Don't set saved_face_id here.
7719 (next_element_from_display_vector): Default to saved_face_id.
7720
d0636839
KS
7721 * fns.c (Fsafe_get): New function.
7722 (syms_of_fns): Defsubr it.
7723
7724 * lisp.h (Fsafe_get): EXFUN it.
7725
7726 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
7727 loops in case of bad face property lists. Limit number of face
7728 alias lookups to 10 (in case of face alias loops).
7729
e5c78c9d
KS
77302005-04-18 Kim F. Storm <storm@cua.dk>
7731
7732 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
7733 It replaces the corresponding member from struct window, as a
7734 window may now show multiple overlay arrows.
7735 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
7736
7737 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
7738 Compare overlay_arrow_bitmap than overlay_arrow_p members.
7739
7740 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
7741 rather than from window.
7742 (update_window_fringes): Compare overlay_arrow_bitmap rather than
7743 overlay_arrow_p members.
7744 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
7745 if not default.
7746
7747 * window.h (struct window): Remove member overlay_arrow_bitmap.
7748
7749 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
7750
7751 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
7752 Calls changed. Don't check for overlay-arrow-bitmap property here.
7753 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
7754 fringe is present, return Lisp integer for bitmap (or -1 for default).
7755 Fix value of overlay-arrow-bitmap property to be a symbol, use
7756 lookup_fringe_bitmap to parse it.
7757 (display_line): Change call to overlay_arrow_at_row. Store integer
7758 return value as overlay bitmap in row rather than window.
7759 Only show overlay arrow if row displays text, or if no other overlay
7760 arrow is seen in window (if overlay marker is at point-max).
7761
7d603e3f
TTN
77622005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
7763
7764 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
7765
9942fa0c
LK
77662005-04-18 Lute Kamstra <lute@gnu.org>
7767
7768 * lread.c (Vloads_in_progress): Static.
7769 * fns.c (Vloads_in_progress): Remove extern.
7770 (load_in_progress): Add extern.
7771 (Frequire): Use load_in_progress instead of Vloads_in_progress.
7772
999cdb8f
TTN
77732005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
7774
7775 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
7776
3f4413f8
YM
77772005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7778
7779 * macterm.c (XTread_socket): Don't beep on keyboard input even if
7780 no frame is visible.
7781
60ec7b7e
DN
77822005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
7783
7784 * term.c (struct keys): Add support for shifted keys.
7785
a8a1c0ee
RS
77862005-04-16 Richard M. Stallman <rms@gnu.org>
7787
7788 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
7789 (set_message): Call with_echo_area_buffer with WHICH = 0.
7790 (set_message_1): Erase the echo area buffer first thing.
7791 (echo_area_display): Don't clear echo_message_buffer.
7792
f3cf04d3
YM
77932005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7794
7795 * Makefile.in (mac.o): Depend on charset.h and coding.h.
7796
7797 * mac.c: Include charset.h and coding.h.
7798 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 7799 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
7800 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
7801
7802 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
7803
7804 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
7805
7806 * macterm.c (x_autoselect_window_p): Remove variable.
7807 (last_window): New variable.
7ec64183
SM
7808 (XTreassert_line_highlight, x_change_line_highlight):
7809 Remove declarations.
f3cf04d3
YM
7810 (mac_focus_changed, x_detect_focus_change): New functions and
7811 declarations.
7812 (XTextExtents16, front_emacs_window): Remove function.
7813 (mac_focus_frame): New function.
7814 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
7815 (mac_check_for_quit_char): Use it instead of front_emacs_window.
7816 (x_scroll_bar_report_motion): Obtain window from control owner.
7817 (x_make_frame_invisible): Set window manager size hint.
7818 (do_mouse_moved): Remove function.
7819 (XTread_socket): Move its contents here. Generate select-window
7820 event on mouse movement if needed. Use x_detect_focus_change on
7821 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
7822 window rectangle when dnd items are dropped.
7823 Don't activate/deactivate root control.
f3cf04d3
YM
7824 (frame_highlight, frame_unhighlight): Activate/deactivate root
7825 control here.
7826 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
7827
7828 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
7829 New extern.
7830
9e5b2858
LT
78312005-04-15 Luc Teirlinck <teirllm@auburn.edu>
7832
7833 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
7834 (lisp): Use it.
7835 (SOME_MACHINE_LISP): Add tooltip.
7836
42c6741e
YM
78372005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7838
7ec64183
SM
7839 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
7840 Don't include TextEncodingConverter.h.
42c6741e
YM
7841 (mac_system_script_code, Vmac_system_locale): New variables.
7842 (syms_of_mac): Defvar them.
7843 (mac_get_system_locale): New function.
7844
7ec64183
SM
7845 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
7846 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 7847 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
7848 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
7849 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
7850
7851 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
7852 TextEncodingConverter.h.
7853
0614c575
ST
78542005-04-13 Steven Tamm <steventamm@mac.com>
7855
7e26f91b
KS
7856 * macterm.c (syms_of_macterm): Remove redundant definition of
7857 mac-pass-control-to-system.
0614c575 7858
203eb0aa
SM
78592005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7860
7861 * window.c (Fset_window_configuration): Be careful when you choose
7862 among several possible points for the new_current_buffer.
7863
a56e6111
YM
78642005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7865
7866 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
7867 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
7868 (Qlanguage_change) [MAC_OS]: New variable.
7869 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 7870 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
7871
7872 * macterm.c (mac_keyboard_text_encoding)
7873 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
7874 (XTread_socket): Store language-change event if keyboard script change
7875 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 7876 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 7877
7e26f91b 7878 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 7879
6695c528
RS
78802005-04-10 Richard M. Stallman <rms@gnu.org>
7881
7882 * emacs.c (standard_args): Rename --bare-bones to --quick.
7883 Add -D aka --basic-display.
7884
7885 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
7886
18e2d91f
RS
78872005-04-09 Richard M. Stallman <rms@gnu.org>
7888
7889 * keymap.c (where_is_internal): Convert a string used as event type
7890 into "(any string)".
7891
7892 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
7893 * fns.c (Vloads_in_progress): Add extern.
7894 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
7895
78962005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
7897
7898 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
7899
1cf21850
LK
79002005-04-09 Lute Kamstra <lute@gnu.org>
7901
7902 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
7903 within the accessible part of the buffer.
7904
bfd93240
KS
79052005-04-09 Kim F. Storm <storm@cua.dk>
7906
7907 * lread.c (readevalloop): Add args START and END as region in
7908 current buffer to read. Callers changed.
7909 When specified, narrow to this region only when reading,
7910 not during eval. Track next point to read from during eval.
7911 Also restore point to "real" buffer position before eval.
7912 (Feval_region): Don't save excursion and restriction here, and
7913 don't narrow to region. Just pass region to readevalloop.
7914 Note: Point is now preserved even when PRINTFLAG is nil.
7915
9ba27690
KS
79162005-04-08 Kim F. Storm <storm@cua.dk>
7917
7918 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
7919
73f0d996
KS
79202005-04-06 Kim F. Storm <storm@cua.dk>
7921
7922 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
7923
369f76bb
YM
79242005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7925
7926 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
7927 (Fmac_get_preference): Doc fix.
7928
203eb0aa
SM
7929 * macfns.c (Fx_create_frame, x_create_tip_frame):
7930 Add "fontset-mac" to fallback font/fontsets.
369f76bb 7931
2ba613a6
KS
79322005-04-04 Kim F. Storm <storm@cua.dk>
7933
4d5ddddc
KS
7934 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
7935
2ba613a6
KS
7936 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
7937 Call it again after autoload.
7938
1673df2e
JD
79392005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7940
7941 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
7942 mallopt.
7943
7944 * ralloc.c (r_alloc_init): Ditto.
7945
41639988
KH
79462005-04-01 Kenichi Handa <handa@m17n.org>
7947
1cf21850
LK
7948 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
7949 (Vascii_eqv_table): Extern them.
41639988
KH
7950
7951 * casetab.c (set_case_table): If standard is nonzero, setup
7952 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
7953
7954 * search.c (looking_at_1): Use current_buffer->case_canon_table,
7955 not DOWNCASE_TABLE.
7956 (string_match_1): Likewise.
7957 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
7958 Vascii_downcase_table.
7959 (fast_string_match_ignore_case): Likewise.
7960 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
7961 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
7962 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
7963 simple_translate.
7964
6ca53601
SM
79652005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7966
7967 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
7968 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
7969 Use XtNtopShadowPixel and XtNbottomShadowPixel.
7970 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
7971 really work and that breaks with some versions of Xaw3d.
7972
fafbb99d 79732005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
7974
7975 * coding.c (syms_of_coding): Fix previous change.
7976
6ca53601
SM
79772005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
7978
7979 * fileio.c (search_embedded_absfilename): Fix last change.
7980
bf762c98
KH
79812005-03-25 Kenichi Handa <handa@m17n.org>
7982
7983 * coding.c (syms_of_coding): Suggest to use set-coding-category in
7984 the docstring of coding-category-list.
7985
f793f885
KS
79862005-03-31 Kim F. Storm <storm@cua.dk>
7987
7988 * keyboard.c (Qmouse_fixup_help_message): New var.
7989 (syms_of_keyboard): Intern and staticpro it.
7990 (show_help_echo): Apply mouse-fixup-help-message to help string.
7991
c364fe19
KS
79922005-03-30 Kim F. Storm <storm@cua.dk>
7993
7994 * xdisp.c (display_line): Allow multiple overlay arrows in window.
7995
c70a4df6
SM
79962005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7997
7998 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
7999 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
8000 (Ffile_name_absolute_p): Use it.
8001 (search_embedded_absfilename): New fun, extracted from
8002 Fsubstitute_in_file_name. Use file_name_absolute_p.
8003 Free the pw data after use.
8004 (Fsubstitute_in_file_name): Use it.
8005 After cutting a prefix, re-check file-name-handler.
8006
6e7d0438
JR
80072005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
8008
6ca53601 8009 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
8010
8011 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
8012 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
8013
65671706
SM
80142005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8015
8016 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
8017 Use Fexit_minibuffer.
8018 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
8019
0de4dad4
SM
80202005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8021
781da985
SM
8022 * dired.c (Ffile_attributes): Add a missing gcpro.
8023
0de4dad4
SM
8024 * alloc.c (make_number): The arg can be bigger than `int'.
8025 * lisp.h (make_number): Make prototype more precise.
8026
8027 * process.c, dired.c (Vfile_name_coding_system)
8028 (Vdefault_file_name_coding_system):
8029 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
8030 (Vdefault_file_name_coding_system): Remove unused declarations.
8031
ff18668f
JD
80322005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8033
8034 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
8035 if it failed to pop up (Gnome "show pointer on ctrl" option makes
8036 menus fail to pop up).
8037
0de4dad4 80382005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
8039
8040 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 8041 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 8042
8df0ffbe
KS
80432005-03-22 Kim F. Storm <storm@cua.dk>
8044
8045 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
8046 * dispextern.h (lookup_derived_face): Fix prototype.
8047 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
8048
8049 * xdisp.c (handle_single_display_spec): Derive left-fringe and
8050 right-fringe face from fringe face.
8051
8052 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
8053 Derive face from fringe face.
8054
6ca30ba4
JD
80552005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8056
8057 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
8058
d615870a
DK
80592005-03-22 David Kastrup <dak@gnu.org>
8060
8061 * textprop.c (Fnext_char_property_change)
66347da7 8062 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
8063 (Fnext_single_char_property_change)
8064 (Fprevious_single_char_property_change): Check that limit is a
8065 number in strings.
8066 (Fnext_single_char_property_change): Coerce position to integer.
8067 (Fprevious_single_char_property_change): Same here.
8068
32b939ea
TTN
80692005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
8070
8071 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
8072
6027e473
SM
80732005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8074
8075 * frame.c (Fignore_event): Remove.
8076 (syms_of_frame): Don't defsubr it.
8077
8078 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
8079 redundant `ignore-event'.
8080
730f4d72
EZ
80812005-03-19 Eli Zaretskii <eliz@gnu.org>
8082
8083 * unexec.c (write_segment, unexec): Move these functions to avoid
8084 forward references (which cause errors with "gcc -gcoff").
8085
c7f6afd5
JD
80862005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8087
6027e473 8088 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 8089 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 8090
c7f6afd5
JD
8091 * xrdb.c (x_load_resources): Use different char *helv when I18N
8092 is present.
8093
db328182
KH
80942005-03-17 Kenichi Handa <handa@m17n.org>
8095
66347da7 8096 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 8097
211f2210
SM
80982005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8099
8100 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
8101 Use xic_create_fontsetname even for non-Motif menus.
8102 Don't forget to free the fontsetname.
8103
8104 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
8105
c7bd5d57
RS
81062005-03-17 Richard M. Stallman <rms@gnu.org>
8107
8108 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
8109
8110 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
8111 (Fmake_symbolic_link): Use G to read the new file name.
8112
8113 * callint.c (Finteractive): Document G option.
8114 (Fcall_interactively): Implement G option.
8115
8116 * buffer.c (buffer_lisp_local_variables): New function,
8117 broken out from Fbuffer_local_variables.
8118 (clone_per_buffer_values): Use buffer_lisp_local_variables.
8119
888953f1
SM
81202005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8121
3c916d65
SM
8122 * xfns.c (xic_create_fontsetname): Add `motif' argument.
8123 Always return a freshly allocated string.
8124 (xic_create_xfontset): Adjust call.
8125
8126 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
8127 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
8128 (dump_realized_face): Fix warning.
8129
9f9e5275
SM
8130 * emacs.c (Fkill_emacs): YAILOM.
8131
888953f1
SM
8132 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
8133
48502d68
YM
81342005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8135
8136 * mac.c (HASHKEY_TERMINAL): Remove.
8137 (HASHKEY_MAX_NID): New macro.
8138 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
8139 argument.
888953f1 8140 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
8141 (xrm_create_database, xrm_q_put_resource)
8142 (xrm_merge_string_database, xrm_q_get_resource_1)
8143 (xrm_q_get_resource): Change resource database representation so
8144 that it may not use multiple hash tables for a single database.
8145 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
8146
d5161e8c
SM
81472005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
8148
11a646cd
SM
8149 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
8150
8151 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
8152 locale-coding-system, as was already done for WINDOWSNT.
8153
d5161e8c
SM
8154 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
8155 translation for chars in the 0-255 range.
8156
568b6e41
LK
81572005-03-16 Lute Kamstra <lute@gnu.org>
8158
8159 * floatfns.c (Ffloor): Doc fix.
8160
469fb3cf
YM
81612005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8162
8163 * mac.c: Include macterm.h instead of directly including Carbon.h.
8164 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
8165 (Qarray, Qdictionary): New variables.
8166 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
8167 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
8168 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
8169 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
8170 in callback for CFDictionaryApplyFunction.
8171 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
8172 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
8173 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
8174 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
8175 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
8176 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
8177 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 8178 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
8179 (parse_binding, parse_component, parse_resource_name, parse_value)
8180 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
8181 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
8182 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
8183 New functions.
469fb3cf
YM
8184
8185 * macfns.c (mac_get_rdb_resource): Remove function.
8186 (x_get_string_resource): Use xrm_get_resource.
8187
8188 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
8189
8190 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
8191 name_list_element.
8192 (mac_make_rdb): Create resource database from preferences and
8193 argument string.
8194 (mac_term_init): Save resource database to cddr part of
8195 name_list_element.
8196
8197 * macterm.h (xrm_merge_string_database, xrm_get_resource)
8198 (xrm_get_preference_database): Add externs.
8199 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
8200 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
8201 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
8202
8203 * process.c (init_process): Change `#ifdef DARWIN' to `#if
8204 defined (DARWIN) || defined (MAC_OSX)'
8205
8206 * s/darwin.h (DARWIN): Don't define.
8207
6a3fac90
YM
82082005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8209
8210 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
8211 Remove unused variables.
8212 (syms_of_macfns): Don't initialize them. Likewise for
8213 Qface_set_after_frame_default. Defvar and initialize
8214 Vx_window_horizontal_drag_shape.
8215 (x_set_mouse_color): Change mouse pointer shape.
8216 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 8217 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
8218 (hourglass_started): New function (from xfns.c).
8219 (start_hourglass, cancel_hourglass): Put function body in #ifdef
8220 MAC_OSX.
8221 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
8222 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 8223 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
8224
8225 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
8226 Controls.h. Use ThemeCursor instead of CursHandle.
8227
d5161e8c
SM
8228 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
8229 Remove functions and declarations.
8230 (mac_set_colors): Take argument for saving background color.
8231 All callers changed.
6a3fac90
YM
8232 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
8233 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
8234 background color.
8235 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
8236 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
8237 Use SetThemeCursor.
6a3fac90
YM
8238 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
8239 indicator control to the upper-right corner of the window.
8240 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
8241 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
8242 (do_window_update): Update controls after updating content area.
8243 (mac_handle_window_event): Remove unused extern.
8244 (XTread_socket): Check both control handle and control part code
8245 to determine whether a scroll bar is clicked. Activate/deactivate
8246 root control instead of contained scroll bar controls.
8247 (make_mac_terminal_frame): Use ThemeCursor constants.
8248
d5161e8c
SM
8249 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
8250 New member hourglass_control.
6a3fac90 8251 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 8252 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 8253
a7321976
YM
82542005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8255
8256 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 8257 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
8258 laptops, and fn + `enter' on laptops.
8259
f7b758bd
SM
82602005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8261
8262 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
8263 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
8264 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
8265
8266 * xfns.c (xic_defaut_fontset): New constant.
8267 (xic_create_fontsetname): New function.
8268 Extracted from create_frame_xic. Try to generate a slightly
8269 better fontset.
8270 (xic_create_xfontset): Use it.
8271 (create_frame_xic): Simplify.
8272
dac24db4
SM
82732005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
8274
8275 * fileio.c (Fmake_symbolic_link): Fix last change.
8276
e0402468
RS
82772005-03-11 Richard M. Stallman <rms@gnu.org>
8278
8279 * fileio.c (Frename_file, Fadd_name_to_file)
8280 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
8281 expand the basename of FILE relative to it.
8282
fa815b14
KH
82832005-03-11 Kenichi Handa <handa@m17n.org>
8284
8285 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
8286 before calling setup_coding_system so that autoloading of a coding
8287 system work.
8288
817d354b
JD
82892005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8290
68a505ef
JD
8291 * xfns.c (hourglass_started): New function.
8292
8293 * dispextern.h: Declare hourglass_started.
8294
8295 * keyboard.c (Fexecute_extended_command): Restart hourglass
8296 after call to Fcompleting_read if already started.
8297
817d354b
JD
8298 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
8299 GTK main loop is entered in xterm.c, thus doing the redraw.
8300
b0a6f45c
KS
83012005-03-10 Kim F. Storm <storm@cua.dk>
8302
8303 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
8304
ee5d57b0
KH
83052005-03-08 Kenichi Handa <handa@m17n.org>
8306
8307 * frame.c (x_set_font): Call set_default_ascii_font if an
8308 available font is found.
8309
8310 * fontset.c (set_default_ascii_font): New function.
dac24db4 8311 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
8312
8313 * fontset.h (set_default_ascii_font): Extern it.
8314
f30c4a5c
KS
83152005-03-07 Kim F. Storm <storm@cua.dk>
8316
3fb26a86
KS
8317 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
8318 (clear_image_cache_count): New var.
8319 (redisplay_internal): Don't clear face and image caches in the
8320 middle of redisplay; do it afterwards.
8321
a54595d4
KS
8322 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
8323
f30c4a5c
KS
8324 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
8325 is valid. If not, clear phys_cursor_on_p and return.
8326
3d182f9d
AS
83272005-03-07 Andreas Schwab <schwab@suse.de>
8328
8329 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
8330
85d964de
RS
83312005-03-06 Richard M. Stallman <rms@gnu.org>
8332
8333 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
8334
8335 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
8336 (Feval, Ffuncall): Use CHECK_CONS_LIST.
8337
8338 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
8339
8340 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
8341 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
8342
3ff96c81
JL
83432005-03-05 Juri Linkov <juri@jurta.org>
8344
8345 * emacs.c (USAGE1): Replace Info node name "command arguments"
8346 with "emacs invocation".
8347 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
8348 allow arguments `--color' and `MODE' to be separated by space.
8349 Add --no-blinking-cursor, -nbc.
8350 (standard_args): Add -nbc, --no-blinking-cursor.
8351
64eb0083
TTN
83522005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
8353
8354 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
8355 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
8356 * fileio.c (Fexpand_file_name) [VMS]:
8357 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
8358 * doc.c (munge_doc_file_name) [VMS]: Likewise.
8359 (Fsnarf_documentation): Call munge_doc_file_name.
8360
ad708ae5
TTN
83612005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
8362
8363 * s/vms.h (FILE_SYSTEM_CASE): New macro.
8364 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
8365 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
8366
ba025f6d
YM
83672005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8368
8369 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
8370 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 8371
dac24db4 8372 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
8373
8374 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
8375 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 8376 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
8377 (mac_clear_font_name_table): Move extern to macterm.h.
8378
8379 * macfns.c (install_window_handler): Move extern to macterm.h.
8380 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
8381 valid. Don't check !NILP (dir) because it is already checked with
8382 CHECK_STRING.
8383 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 8384 specifying the default location and obtaining the selected filename.
ba025f6d
YM
8385
8386 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
8387
2313f861 8388 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
8389 are included via Carbon.h.
8390
dac24db4
SM
8391 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
8392 Define USE_CARBON_EVENTS to 1.
2313f861 8393 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
8394 (x_free_frame_resources): Call remove_window_handler for
8395 non-tooltip windows.
8396 [TARGET_API_MAC_CARBON]: Don't include headers that are included
8397 via Carbon.h.
8398 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
8399 (mac_do_receive_dragUPP): New variables.
8400 (mac_handle_service_event, init_service_handler): Put declarations
8401 and definitions in #ifdef MAC_OSX.
8402 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
8403 drag-and-drop handler functions and register them.
8404 (remove_window_handler): New function.
dac24db4
SM
8405 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
8406 Use fsspec_to_posix_pathname.
ba025f6d
YM
8407 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
8408 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
8409 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
8410 Set default cursors.
ba025f6d
YM
8411 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
8412 init_service_handler or init_quit_char_handler.
8413 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
8414
8415 * macterm.h (install_window_handler, remove_window_handler)
8416 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
8417 (mac_clear_font_name_table): New externs.
ad708ae5 8418
c1558952
TTN
84192005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
8420
8421 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
8422 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
8423 (Fexpand_file_name): Likewise.
8424
fa439170
TTN
84252005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
8426
8427 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
8428 no longer special-case VMS. Add bogus return value.
8429
db2dacf6
KS
84302005-03-02 Kim F. Storm <storm@cua.dk>
8431
8432 * dispextern.h (XASSERTS): Define to 0 if not already defined.
8433 (xassert) [!XASSERTS]: Define dummy version.
8434
0870514c
KS
84352005-03-02 Kim F. Storm <storm@cua.dk>
8436
8437 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
8438 Reported by David Kastrup.
8439
6b640092
KS
84402005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
8441
8442 * xdisp.c (get_next_display_element): Fix control and escape
8443 glyph from display vector.
8444
f4a5a485
SM
84452005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
8446
8447 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
8448
85d964de
RS
84492005-02-27 Richard M. Stallman <rms@gnu.org>
8450
8451 * xdisp.c (fast_find_position): Rename END to BEG.
8452 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
8453
6e8db3ea
JD
84542005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8455
f4a5a485 8456 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
8457 gtk_window_resize and x_wm_set_size_hint.
8458
0f465b55
KS
84592005-02-25 Kim F. Storm <storm@cua.dk>
8460
8461 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
8462
8463 * xdisp.c (init_from_display_pos): Don't read past end of
8464 it->overlay_strings array.
8465
d5fb8dab 84662005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
8467
8468 * buffer.c (syms_of_buffer): Fix typo.
8469
b02c3eed
LK
84702005-02-23 Lute Kamstra <lute@gnu.org>
8471
8472 * buffer.c (Foverlay_buffer): Doc fix.
8473
c8500765
KS
84742005-02-22 Kim F. Storm <storm@cua.dk>
8475
b686dd59
KS
8476 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
8477 and symbol keys in alists and hash tables.
8478
c8500765
KS
8479 * xdisp.c (fast_find_position): Fix search for start of overlay.
8480
81c85b53
KS
84812005-02-21 Kim F. Storm <storm@cua.dk>
8482
8483 * window.c (window_scroll_pixel_based): When scrolling backwards,
8484 handle partial visible line at end of window even when we hit PT.
8485
f4a5a485 84862005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
8487
8488 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
8489
0dd5a842
KS
84902005-02-21 Kim F. Storm <storm@cua.dk>
8491
8492 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
8493 I think those asserts are bogus if buffer contains invisible text
8494 or images.
8495
d5fb8dab 84962005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
8497
8498 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
8499
0fba9f25
KS
85002005-02-20 Kim F. Storm <storm@cua.dk>
8501
8502 * xdisp.c (pos_visible_p): Be sure to move to the specified
8503 position. Always get the full ascent / descent of the
8504 corresponding row, to return reliable rtop and rbot values.
8505 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
8506 Must look one character back, as back_to_previous_line_start
8507 returns position after the newline.
8508 (move_it_vertically_backward): Fix heuristic for when to move further
8509 back in case line_height * 2/3 is larger than window height.
8510 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
8511 as it does not do anything anymore. Add arg current_matrix_p to
8512 use current matrix rather than desired matrix when set.
8513 (try_cursor_movement): Don't scroll to make cursor row fully
8514 visible if cursor didn't move. This avoids unexpected recentering
8515 in case of blinking cursor or accepting process output.
8516 Use current matrix to check cursor row visibility.
8517 (redisplay_window): Fix whether to recenter or move to top in case
8518 cursor line is taller than window height.
8519 (find_first_unchanged_at_end_row): Stop search if we reach a row
8520 which not enabled (instead of abort).
8521
b1c2adc3
KS
85222005-02-18 Kim F. Storm <storm@cua.dk>
8523
c2ee48fb
KS
8524 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
8525 to be nil in a :box attribute value list; customize prints that
8526 as lisp value when no box color is specified.
8527
b1c2adc3
KS
8528 * .gdbinit (pitx, pit): Pretty print display iterator.
8529 (prowx, prow): Pretty print glyph row.
8530 (pcursorx, pcursor): Pretty print a window cursor.
8531 (pwinx, pwin): Pretty print struct window.
8532
f102186f
SM
85332005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8534
8535 * alloc.c (BLOCK_BYTES): Harmless typo.
8536
9b516537
AS
85372005-02-17 Andreas Schwab <schwab@suse.de>
8538
8539 * xfns.c (hack_wm_protocols): Use correct type for last parameter
8540 of XGetWindowProperty to avoid aliasing issues.
8541 (Fx_window_property): Likewise.
8542
8543 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 8544 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
8545
8546 * xterm.c (handle_one_xevent): Use union of struct input_event and
8547 struct selection_input_event to avoid aliasing issues.
8548 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
8549
886b1418
KS
85502005-02-17 Kim F. Storm <storm@cua.dk>
8551
8552 * dispextern.h (enum it_method): New enum.
8553 (GET_FROM_*): Its members.
8554 (struct it): Change member method from function pointer to enum.
8555
8556 * xdisp.c (check_it, init_from_display_pos, handle_stop)
8557 (setup_for_ellipsis, handle_single_display_spec)
8558 (handle_composition_prop, next_overlay_string)
8559 (get_overlay_strings, reseat_1, reseat_to_string)
8560 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
8561 (in_display_vector_p, display_line, get_next_display_element):
8562 Change it->method from function pointer to enum.
8563 (get_next_element): New array to map it->method to function.
8564 (get_next_display_element): Use it.
8565 (set_iterator_to_next): Use switch instead of if/else chain.
8566
99ee2c6a 85672005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
8568
8569 * w32select.c: Summary: Thorough rework to implement Unicode
8570 clipboard operations and delayed rendering.
8571
8572 Drop last_clipboard_text and related code, keep track of
f4a5a485 8573 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
8574
8575 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
8576 (clipboard_owner, modifying_clipboard, cfg_coding_system)
8577 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
8578 (current_coding_system, current_requires_encoding)
f4a5a485
SM
8579 (current_num_nls, current_clipboard_type, current_lcid):
8580 New static variables.
52c7f9ee
JR
8581
8582 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
8583 (render, render_all, run_protected, lisp_error_handler)
8584 (owner_callback, create_owner, setup_config)
f4a5a485
SM
8585 (enum_locale_callback, cp_from_locale, coding_from_cp):
8586 New local functions.
52c7f9ee
JR
8587
8588 (term_w32select, globals_of_w32select): New global functions.
8589
8590 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
8591 clipboard_owner instead. Use delayed rendering and provide
8592 all text formats. Provide CF_LOCALE if necessary.
8593
8594 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
8595 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
8596 available. Force DOS line-ends for decoding.
8597
8598 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
8599
8600 (syms_of_w32select): Init and register new variables.
8601
8602 * w32.h: Add prototypes for globals_of_w32select and
8603 term_w32select. Make the neighboring K&R declarations into
8604 prototypes, too.
8605
8606 * emacs.c: Include w32.h to get function prototypes.
8607 (main): Call globals_of_w32select.
8608
886b1418 8609 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
8610
8611 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
8612
86e61586
KS
86132005-02-16 Kim F. Storm <storm@cua.dk>
8614
8615 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
8616 at end of display vector.
8617
6407f07b
RS
86182005-02-15 Richard M. Stallman <rms@gnu.org>
8619
8620 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
8621 for mode and header lines.
8622
8623 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
8624
8625 * keymap.h (describe_map_tree): Change decl.
8626
8627 * keyboard.c (command_loop_1): Always use safe_run_hooks
8628 to run Qdeferred_action_function.
8629
8630 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
8631 (describe_map, describe_vector): Likewise. When it's 1,
8632 don't omit shadowed bindings, instead mark them as shadowed.
8633
8634 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
8635 for describe_map_tree. Pass 1 for MENTION_SHADOW.
8636
8637 * data.c (Fsetq_default): Allow no arg case.
8638
3bb917bf
KH
86392005-02-14 Kenichi Handa <handa@m17n.org>
8640
8641 * coding.c (encode_coding_string): Always return a unibyte string.
8642 If NOCOPY is nonzero and there's no need of encoding, make STR
8643 unibyte directly.
8644
8645 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
8646 multibyte string, signal an error instead of aborting.
8647
e31d908f
DN
86482005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
8649
8650 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
8651
48e029b6
KS
86522005-02-12 Kim F. Storm <storm@cua.dk>
8653
8654 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
8655
c10bb00a
KS
86562005-02-10 Kim F. Storm <storm@cua.dk>
8657
8658 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
8659 if it moves outside window or it doesn't display text.
8660
9ca0f64a
KS
86612005-02-09 Kim F. Storm <storm@cua.dk>
8662
8663 * undo.c (Fprimitive_undo): Check that undo function does not
8664 switch buffer.
8665
b8d6f4af
JD
86662005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8667
8668 * xselect.c (selection_data_to_lisp_data): For the special case
8669 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
8670 (x_property_data_to_lisp, selection_data_to_lisp_data):
8671 Comment update: data must be array of int for format == 32.
b8d6f4af 8672
3419757d
SM
86732005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
8674
8675 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
8676
3a441526
JD
86772005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8678
fc34503b
JD
8679 * xfns.c (Fx_change_window_property): Use long array when format is 32.
8680 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
8681 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
8682 (x_set_tool_bar_lines): Check that width and height is greater than
8683 zero before clearing area.
fc34503b
JD
8684
8685 * xselect.c (x_reply_selection_request): Pass long array to
8686 XChangeProperty so that 64 bit longs are handeled correctly.
8687 (x_get_window_property): If format is 32 and long is bigger than 32
8688 bits convert data from XGetWindowProperty from long array to int array.
8689 (lisp_data_to_selection_data): When the input is a vector and the
8690 format is 32, allocate a long array even if long is bigger than 32 bits.
8691 (x_fill_property_data): Use char, short and long as the man page
8692 for XChangeProperty specifies. This way the data returned is OK for
8693 both 32 and 64 bit machines.
8694 (x_handle_dnd_message): Calculate size correctly even for 64 bit
8695 machines.
8696 (Fx_send_client_event): Undo change from 2005-02-05,
8697 x_fill_property_data now handles that case.
8698
3419757d 8699 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
8700 reason for the approach in the code.
8701
82ec225b
KS
87022005-02-07 Kim F. Storm <storm@cua.dk>
8703
8704 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
8705
ba2c991c
RS
87062005-02-06 Richard M. Stallman <rms@gnu.org>
8707
8708 * eval.c (Frun_hook_with_args)
8709 (Frun_hook_with_args_until_success)
8710 (Frun_hook_with_args_until_failure): Doc fixes.
8711
e120ea40
AS
87122005-02-05 Andreas Schwab <schwab@suse.de>
8713
3419757d 8714 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 8715
31f16913
JD
87162005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8717
8718 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
8719 the longs in a XClientMessageEvent correctly when long is 64 bits.
8720
6082a820
EZ
87212005-02-05 Eli Zaretskii <eliz@gnu.org>
8722
8723 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
8724 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
8725
0e95095b
JD
87262005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8727
8728 * xmenu.c (menubar_selection_callback): Force out GTK buffered
8729 events so the menu event comes after them. This is to prevent sit-for
8730 from exiting on buffered events directly after a menu selection,
8731 lisp code for Help => About Emacs uses sit-for.
8732
8733 * gtkutil.c (create_menus): Connect selection-done event instead of
8734 the deactivate event to deactivate_cb. This will make the last
8735 leave event come before the call to deactivate_cb, so the leave
8736 event does not make sit-for exit after a menu selection.
8737
5bb6a3c1
KS
87382005-02-03 Kim F. Storm <storm@cua.dk>
8739
8740 * dispnew.c (build_frame_matrix_from_leaf_window)
8741 [!GLYPH_DEBUG]: Fix xassert.
8742
8743 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
8744
8745 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8746
e9859e26
YM
87472005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8748
8749 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
8750 the compiling OS version.
8751
8752 * macfns.c (x_create_tip_frame): Likewise.
8753
3419757d 8754 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 8755
4e07258f
RS
87562005-02-03 Richard M. Stallman <rms@gnu.org>
8757
8758 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
8759
8760 * xdisp.c (echo_area_display): Clear echo_message_buffer.
8761
8762 * buffer.c (Fbury_buffer): Doc fix.
8763
4a34b529
ST
87642005-02-02 Steven Tamm <steventamm@mac.com>
8765
7e26f91b 8766 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 8767 xassert being uncondition, but predicate is.
7e26f91b 8768 * dispnew.c (update_window): Fix compile error due to
f6c62d96 8769 xassert being uncondition, but predicate is.
4a34b529 8770
d78f30b8
MB
87712005-02-02 Miles Bader <miles@gnu.org>
8772
8773 * dispextern.h (xassert): Enable unconditionally.
8774
b044278d
KS
87752005-02-02 Kim F. Storm <storm@cua.dk>
8776
8777 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
8778
56072160
KH
87792005-02-02 Kenichi Handa <handa@m17n.org>
8780
8781 * casefiddle.c (casify_object): Enable changing characters of
8782 different byte length.
8783 (casify_region): Fix loop condition, args to replace_range_2, and
8784 update opoint_byte.
8785
f4a5a485 8786 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 8787
5e1674c5
KS
87882005-02-01 Kim F. Storm <storm@cua.dk>
8789
8790 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
8791 stack before calling handle_display_prop.
8792
fb89c330
KS
87932005-01-31 Kim F. Storm <storm@cua.dk>
8794
8795 * undo.c (Qapply): New lisp var.
8796 (syms_of_undo): Intern and staticpro it.
8797 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
8798 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
8799
8800 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
8801
7bf72fa6
JH
88022005-01-30 Jesper Harder <harder@phys.au.dk>
8803
a050b1a9
KS
8804 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
8805 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 8806
03c64f2e
LT
88072005-01-29 Luc Teirlinck <teirllm@auburn.edu>
8808
8809 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 8810 Increase value to 3 Meg.
03c64f2e 8811
49b8b5dc
JD
88122005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8813
8814 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
8815 button events are not received otherwise.
8816
5a92a9eb
RS
88172005-01-29 Richard M. Stallman <rms@gnu.org>
8818
8819 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
8820
8821 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
8822
5c243ee4
SM
88232005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8824
8825 * keymap.c (access_keymap): YAILOM.
8826
caf533af
KS
88272005-01-27 Kim F. Storm <storm@cua.dk>
8828
8829 * xdisp.c (get_phys_cursor_geometry): New function to calculate
8830 phys cursor position and size for hollow cursor. Position is
8831 aligned with get_glyph_string_clip_rect and ensures that a hollow
8832 cursor is shown, even when the actual glyph is not visible.
8833
8834 * dispextern.h (get_phys_cursor_geometry): Add prototype.
8835
8836 * xterm.c (x_clip_to_row): Ensure y >= 0.
8837 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8838
8839 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8840
8841 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8842
043f7f73
SM
88432005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
8844
8845 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
8846
889f3641
KS
88472005-01-27 Kim F. Storm <storm@cua.dk>
8848
8849 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
8850 glyph, even when row is only partially visible and actual cursor
8851 position is not visible.
8852
29099c2f
RS
88532005-01-24 Richard M. Stallman <rms@gnu.org>
8854
8855 * xterm.c (x_error_quitter): No longer static, and moved after
8856 x_error_handler.
8857
6adb6f01
KS
88582005-01-24 Kim F. Storm <storm@cua.dk>
8859
8860 * xdisp.c (move_it_by_lines): If we move forward after going too
8861 far back, cancel move if end position is same as start position.
8862
4d904fa0
ST
88632005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8864
8865 * dispextern.h (struct glyph_string): New members clip_head and
8866 clip_tail.
6adb6f01 8867
4d904fa0
ST
8868 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
8869 region to the area between clip_head and clip_tail.
8870 (draw_glyphs): Record the area that need to be actually redrawn to
8871 the new variables clip_head and clip_tail when there are
8872 overhangs. Set values of these variables to the corresponding
8873 members in struct glyph_string. Refine x coordinates for
8874 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 8875
4d904fa0
ST
8876 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
8877
8878 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
8879 QDTextBounds.
8880 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 8881 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 8882 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 8883 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 8884
f2417699
KS
88852005-01-24 Kim F. Storm <storm@cua.dk>
8886
6f67f013
KS
8887 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
8888 direction if window height was smaller than next-screen-context-lines.
8889 Now always scroll at least one line in the requested direction.
8890 Ensure that we actually do scroll backwards when requested to do so.
8891
f2417699
KS
8892 * xdisp.c (redisplay_window): Only try to make cursor line fully
8893 visible once (to avoid redisplay loop).
8894
a354b72c
KS
88952005-01-23 Kim F. Storm <storm@cua.dk>
8896
6b3d88f7 8897 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 8898 partially visible rows.
6b3d88f7
KS
8899 (window_scroll_pixel_based): Adapt to that change.
8900
5c20cae2
KS
8901 * window.c (window_scroll_pixel_based): Force moving to next line
8902 if scrolling doesn't move start point, e.g. if looking at tall image.
8903
a354b72c 8904 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
8905 Clear last_height before calling line_bottom_y to get real height.
8906 Fix calculation of y.
a354b72c 8907
d9e7c622
ST
89082005-01-22 Steven Tamm <steventamm@mac.com>
8909
8910 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 8911 (DARWIN): Define.
7e26f91b 8912
d9e7c622
ST
8913 * process.c (init_process): Default process-connection-type to
8914 nil on darwin 6 or less, t if it is 7 or higher. This way the
8915 broken pty behavior is still allowed on darwin 6 for interactive
8916 processes for people that know what they are doing.
8917
d00e399a
KS
89182005-01-22 Kim F. Storm <storm@cua.dk>
8919
8920 * window.c (auto_window_vscroll_p): New boolean.
8921 (syms_of_window): DEFVAR_BOOL it.
8922 (Fpos_visible_in_window_p): Extend return value to include RTOP
8923 and RBOT values if FULLY is nil.
8924 (window_scroll_pixel_based): Adjust vscroll for partially visible
8925 rows if auto_window_vscroll_p is set.
8926 (Fset_window_vscroll): Do nothing if vscroll is not modified.
8927
8928 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
8929 to return number of partially invisible pixels at top and bottom
8930 of the dislay row at POS.
8931
8932 * lisp.h (pos_visible_p): Fix prototype.
8933
f95a20e7
RS
89342005-01-21 Richard M. Stallman <rms@gnu.org>
8935
8936 * fileio.c (Fcopy_file): Doc fix.
8937
eee141ce
JD
89382005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8939
8940 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
8941 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
8942 start of function for older compilers.
8943
6f771c32
RS
89442005-01-20 Richard M. Stallman <rms@gnu.org>
8945
8946 * editfns.c (Fmessage): If arg is "", return "" (as before).
8947
8948 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
8949
8950 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
8951 variable.
8952
a15252fd
ST
89532005-01-20 Steven Tamm <steventamm@mac.com>
8954
043f7f73 8955 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
8956 (init_editfns): Assign new variable operating-system-release
8957 based on call to uname if available.
043f7f73 8958 (get_operating_system_release): Add function to
d00e399a 8959 allow c-level access to operating system release.
a15252fd
ST
8960
8961 * config.h: Regenerated.
8962
043f7f73
SM
8963 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
8964 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
8965 using ptys as '7'.
8966
3d6a4b2d
KS
89672005-01-20 Kim F. Storm <storm@cua.dk>
8968
62fc9b0f
KS
8969 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
8970
c310aca4
KS
8971 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
8972 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
8973
8974 * macterm.c (x_draw_glyph_string_box): Likewise.
8975
8976 * w32term.c (x_draw_glyph_string_box): Likewise.
8977
3d6a4b2d
KS
8978 * indent.c (Fvertical_motion): Temporarily disable selective display.
8979
27c8be45
KS
89802005-01-19 Kim F. Storm <storm@cua.dk>
8981
77db5cf3
KS
8982 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
8983 image property.
8984
27c8be45
KS
8985 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
8986
81f498dc
KS
89872005-01-18 Kim F. Storm <storm@cua.dk>
8988
8989 * xdisp.c (fast_find_position): Backtrack to find first row if
8990 charpos is inside a display overlay that spans multiple lines.
8991
1cdb0707
KH
89922005-01-18 Kenichi Handa <handa@m17n.org>
8993
8994 * coding.c (decode_coding_iso2022): Translate invalid codes if
8995 translation-table is specified.
8996
677159ce
KS
89972005-01-18 Kim F. Storm <storm@cua.dk>
8998
8999 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
9000 change. If handle_display_prop indicates newline is replaced by
9001 image or text, move back to start of relevant overlay or interval
9002 and continue scan from there. Simplify.
9003
977284cc
KS
90042005-01-17 Kim F. Storm <storm@cua.dk>
9005
043f7f73
SM
9006 * dispnew.c (mode_line_string, marginal_area_string):
9007 Fix off-by-one error in search for glyph.
977284cc 9008
e24531b7
KS
90092005-01-16 Kim F. Storm <storm@cua.dk>
9010
9011 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
9012
5ddd7664
ST
90132005-01-16 Steven Tamm <steventamm@mac.com>
9014
043f7f73 9015 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 9016
fc2ff44b
AS
90172005-01-16 Andreas Schwab <schwab@suse.de>
9018
9019 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
9020
50af5100
JD
90212005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9022
9023 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
9024 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
9025
a2d5fca0
JD
90262005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9027
9028 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
9029 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
9030 New flags for readable_events.
043f7f73 9031 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
9032 (tracking_off): Call readable_events and get_input_pending with
9033 flag READABLE_EVENTS_DO_TIMERS_NOW.
9034 (readable_events): Move code from old readable_filtered_events here,
9035 but check new READABLE_EVENTS_* in argument flags instead of previous
9036 two boolean arguments do_timers_now and filter_events.
9037 If we are doing mouse tracking and the mouse moved, return only if
9038 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
9039 (swallow_events): Call get_input_pending with flag
9040 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 9041 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
9042 here. Replace boolean arguments do_timers_now, filter_events with
9043 flags, and pass flags to readable_events. Document new
9044 READABLE_EVENTS_* flags.
9045 (detect_input_pending_ignore_squeezables): New function.
9046 (detect_input_pending_run_timers): Call get_input_pending with flag
9047 READABLE_EVENTS_DO_TIMERS_NOW.
9048 (Finput_pending_p): Call get_input_pending with flags
9049 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
9050
9051 * dispnew.c (update_window, update_frame_1): Replace calls to
9052 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 9053 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
9054 mouse movements.
9055
9056 * lisp.h: Declare detect_input_pending_ignore_squeezables.
9057
42afbcda
ST
90582005-01-15 Steven Tamm <steventamm@mac.com>
9059
e24531b7
KS
9060 * macterm.c (Vmac_use_core_graphics): Declare variable for
9061 mac-allow-anti-aliasing.
9062 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 9063 (mac_draw_string_common): Use core graphics text rendering if
0530c679 9064 mac-allow-anti-aliasing is enabled.
743d0696 9065
42afbcda
ST
9066 * macfns.c (Fx_file_dialog): Save As dialog includes only the
9067 file name in the text box.
9068
9cdd4884
ST
90692005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9070
043f7f73
SM
9071 * macfns.c (x_set_foreground_color, x_set_background_color):
9072 Sync with xfns.c.
9cdd4884
ST
9073 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
9074 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
9075 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
9076
88948d55
KS
90772005-01-14 Kim F. Storm <storm@cua.dk>
9078
9079 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
9080
20d6de82
RS
90812005-01-13 Richard M. Stallman <rms@gnu.org>
9082
9083 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
9084 if Voverriding_terminal_local_map is non-nil.
9085
9086 * keyboard.c (syms_of_keyboard): Doc fix.
9087
f75a592e
KS
90882005-01-13 Kim F. Storm <storm@cua.dk>
9089
9090 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 9091 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 9092
28f94a34
RS
90932005-01-12 Richard M. Stallman <rms@gnu.org>
9094
9095 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
9096 face property for characters that don't specify one.
9097
9098 * fns.c (Frequire): Record in load-history unconditionally.
9099
57a230b1
KS
91002005-01-10 Kim F. Storm <storm@cua.dk>
9101
9102 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
9103
9104 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
9105 Callers changed.
9106 Add support to merge with lisp face id too (if face_name is t).
9107
9108 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9109 Don't lookup lface_id from display table glyphs here; instead use
9110 merge_faces to merge the lisp face id into current face.
9111
8ab2c119
KS
91122005-01-09 Kim F. Storm <storm@cua.dk>
9113
9114 * dispextern.h (struct it): New member dpvec_face_id.
9115 (merge_into_realized_face): Add prototype.
9116
9117 * xfaces.c (merge_into_realized_face): New function. Used to
9118 merge escape-glyph face or face from display table into current face.
9119
9120 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
9121 (syms_of_xdisp): DEFVAR_LISP it.
9122 (escape_glyph_face): Remove var.
9123 (redisplay_window): Don't initialize it.
9124 (setup_for_ellipsis, get_next_display_element):
9125 Set it->dpvec_face_id to -1.
9126 (get_next_display_element): Test Vshow_nonbreak_escape.
9127 Do not setup escape_glyph_face.
9128 Properly merge escape-glyph face or face from display table with
043f7f73
SM
9129 current face for escape and control characters.
9130 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
9131 element of display vector.
9132 (next_element_from_display_vector): If it->dpvec_face_id is set,
9133 use that instead of lface_id from glyph itself.
9134
e0910857
JD
91352005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9136
9137 * xterm.h (struct x_output): New member, toolbar_detached.
9138
9139 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
9140 38.
9141 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
9142 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
9143 (xg_create_tool_bar): Initialize toolbar_detached.
9144 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
9145 toolbar_detached is zero.
9146
ff59904a
JD
91472005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9148
9b85e63d
JD
9149 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
9150 gtk_menu_popup if not for_click, so callbacks for the menu are called.
9151
ff59904a
JD
9152 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
9153 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 9154 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
9155
9156 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 9157 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
9158 XFLOAT_DATA to get extract number from Lisp object.
9159
f9a23a6f
KS
91602005-01-07 Kim F. Storm <storm@cua.dk>
9161
9162 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
9163 Set stop_charpos to current charpos instead of 0.
9164
28f94a34
RS
91652005-01-06 Nick Roberts <nickrob@snap.net.nz>
9166
9167 * xdisp.c (Fformat_mode_line): First arg now required.
9168
a6fffcdc
ST
91692005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9170
9171 * macterm.c (XLoadQueryFont): Correctly handle 0 size
9172 font widths that are returned from some Japanese fonts.
9173
c35b0c6b
KS
91742005-01-06 Kim F. Storm <storm@cua.dk>
9175
9176 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
9177 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
9178 (destroy_fringe_bitmap): Set fringe_faces element to nil.
9179 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
9180 fringe_faces array and init elements to nil.
9181 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
9182 non-persistent face id.
9183 (mark_fringe_data): New function for GC.
9184
9185 * alloc.c (mark_fringe_data): Declare extern.
9186 (Fgarbage_collect): Call mark_fringe_data.
9187
9188 * alloc.c (overrun_check_free): Invalidate freed memory if
9189 XMALLOC_CLEAR_FREE_MEMORY is defined.
9190
e0e76ab9
ST
91912005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9192
9193 * macfns.c: Include sys/param.h.
9194 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
9195 and function.
9196 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
9197 of filename string. Set event callback function when creating
9198 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 9199 of apple event descriptor record if failed to create it.
e0e76ab9
ST
9200
9201 * macterm.c: Include sys/param.h.
9202 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
9203 kEventWindowUpdate.
9204 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
9205 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
9206 of FSSpec from apple event descriptor record.
9207 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
9208 size of filename string.
9209 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
9210 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
9211 file dialog is in action.
043f7f73
SM
9212 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
9213 Reject only when there are no filename items. Set background color
e0e76ab9 9214 before (un)highlighting the window below the dragged items.
2313f861 9215 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 9216
043bc640
KH
92172005-01-05 Romain Francoise <romain@orebokech.com>
9218
9219 * term.c (encode_terminal_code): Fix buffer size computation.
9220
dd496df6
RS
92212005-01-04 Richard M. Stallman <rms@gnu.org>
9222
9223 * xdisp.c (Fformat_mode_line): Doc fix.
9224
026cdede
SM
92252005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9226
9227 * alloc.c (refill_memory_reserve): Move.
9228 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
9229 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
9230
d57c7572
RS
92312005-01-03 Richard M. Stallman <rms@gnu.org>
9232
9233 * window.c (window_scroll_pixel_based): Don't correct preserve_y
9234 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
9235
b14f868c
JR
92362005-01-03 Jason Rumney <jasonr@gnu.org>
9237
9238 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
9239 fontp->space_width to FONT_WIDTH so they are valid.
9240
9241 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 9242 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
9243 their appropriate values.
9244
9245 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
9246 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
9247 fontp->space_width.
9248
e169f939
ST
92492005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9250
9251 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
9252 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
9253 metrics for max and min bounds.
9254 (x_load_font): Correctly calculate average font width metrics.
9255
19996af4
RS
92562005-01-02 Richard M. Stallman <rms@gnu.org>
9257
9258 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
9259
42d02da0
JD
92602004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9261
9262 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
9263
1db7dd46
RS
92642004-12-31 Richard M. Stallman <rms@gnu.org>
9265
b437860a
RS
9266 * xdisp.c (setup_for_ellipsis, get_next_display_element):
9267 Set it->ellipsis_p to 1 or 0.
9268 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 9269 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
9270 (cursor_row_p): If PT's at the end of the ellipsis the row
9271 ends within, don't display cursor on this row.
9272
9273 * dispextern.h (struct it): New element ellipsis_p.
9274 (struct glyph_row): New element ends_in_ellipsis_p.
9275
9276 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
9277 position if we're reading from something other than the buffer.
9278
1db7dd46
RS
9279 * window.c (window_scroll_pixel_based): Only look at
9280 Vscroll_preserve_screen_position if the old PT can't be kept.
9281 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
9282
1225f637
KS
92832004-12-30 Kim F. Storm <storm@cua.dk>
9284
9285 * xdisp.c (get_line_height_property): New function extracted from
9286 original calc_line_height_property.
9287 (calc_line_height_property): Rework. Handle t and (nil . ratio).
9288 (x_produce_glyphs): Use them to handle line-height and
9289 line-spacing according to new height spec.
9290 (Qtotal): Remove.
33b2f4ea 9291 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 9292
c243063e
KH
92932004-12-30 Kenichi Handa <handa@m17n.org>
9294
9295 * fileio.c (Finsert_file_contents): Don't use
9296 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 9297 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
9298
9299 * fontset.h (struct font_info): New members space_width and
9300 average_width.
9301
9302 * frame.h (struct frame): New member space_width.
9303 (FRAME_SPACE_WIDTH): New macro.
9304
9305 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
9306
9307 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
9308 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 9309 fontp->space_width.
043f7f73 9310 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
9311 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
9312
9313 * xdisp.c (x_produce_glyphs): Calculate tab width by
9314 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
9315
456e761b
ST
93162004-12-29 Sanghyuk Suh <han9kin@mac.com>
9317
9318 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 9319 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 9320
188577ce
LT
93212004-12-29 Luc Teirlinck <teirllm@auburn.edu>
9322
9323 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
9324
99ec74b9
RS
93252004-12-29 Richard M. Stallman <rms@gnu.org>
9326
9327 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
9328
30c92fab
ST
93292004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9330
9331 * macfns.c (install_window_handler): Modify extern to return OSErr
9332 value.
9333 (mac_window): Handle return value of install_window_handler.
9334
9335 * macterm.c (reflect_byte): Remove function.
9336 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
9337 Lookup table instead.
9338 (mac_do_font_lists): Simplify calculation of the longest
9339 nonspecial string.
9340 (init_mac_drag_n_drop): Remove function and declaration.
9341 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
9342 init_mac_drag_n_drop.
9343 (mac_do_track_drag): New function and declaration.
9344 (install_window_handler): Return OSErr value.
043f7f73
SM
9345 (install_window_handler) [TARGET_API_MAC_CARBON]:
9346 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 9347 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
9348 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
9349 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 9350
4b982924
DN
93512004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
9352
9353 * coding.c (decode_coding): Fix previous change.
9354
93fdf45f
RS
93552004-12-28 Richard M. Stallman <rms@gnu.org>
9356
9357 * xdisp.c (back_to_previous_visible_line_start):
9358 Don't call handle_display_prop.
9359
5bdca8af
DN
93602004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
9361
9362 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
9363 (decode_coding_emacs_mule, encode_coding_emacs_mule)
9364 (decode_coding_iso2022, encode_designation_at_bol)
9365 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
9366 (decode_coding): Constify arguments and local vars.
9367
33385c6f
JD
93682004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9369
9370 * xmenu.c (popup_get_selection): Only pop down dialogs
9371 on C-g and Escape.
95bdef2e 9372 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
9373 (create_and_show_popup_menu, create_and_show_dialog):
9374 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 9375
b15325b2
ST
93762004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9377
9378 * dispextern.h: Change HAVE_CARBON to MAC_OS.
9379 (struct glyph_string): Likewise.
a2c7e69a 9380
b15325b2
ST
9381 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
9382 mac_initialize.
a2c7e69a 9383
b15325b2
ST
9384 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
9385 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 9386
b15325b2 9387 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 9388
b15325b2
ST
9389 * frame.c (x_set_frame_parameters, x_report_frame_params)
9390 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
9391 (x_set_border_width, Vdefault_frame_scroll_bars):
9392 Change HAVE_CARBON to MAC_OS.
a2c7e69a 9393
b15325b2
ST
9394 * image.c [MAC_OS]: Include sys/stat.h.
9395 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
9396 QuickTimeComponents.h.
a2c7e69a 9397
b15325b2
ST
9398 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
9399 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 9400 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
9401 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
9402 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
9403 (mac_clear_font_name_table): Add extern.
9404 (Fmac_clear_font_name_table): New defun.
9405 (syms_of_mac): Defsubr it.
9406 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
9407 [MAC_OSX] (select_and_poll_event): New function.
9408 [MAC_OSX] (sys_select): Use it.
9409 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
9410 [MAC_OSX && SELECT_USE_CFSOCKET]
9411 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
9412 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
9413 RunLoop for simultaneously monitoring two kinds of inputs, window
9414 events and process outputs, without periodically polling.
a2c7e69a 9415
b15325b2
ST
9416 * macfns.c (mac_initialized): Remove extern.
9417 (stricmp): Put in #if 0. All callers changed to use xstricmp in
9418 xfaces.c.
043f7f73
SM
9419 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
9420 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
9421 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
9422 (mac_get_rdb_resource): New function (from w32reg.c).
9423 (x_get_string_resource): Use it.
9424 (install_window_handler): Add extern.
9425 (mac_window): New function.
043f7f73
SM
9426 (Fx_create_frame): Use it instead of make_mac_frame.
9427 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
9428 (Fx_open_connection, Fx_close_connection): New defuns.
9429 (syms_of_macfns): Defsubr them.
043f7f73
SM
9430 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
9431 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
9432 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
9433 (x_create_tip_frame): Don't call ShowWindow.
9434 (Fx_show_tip): Call ShowWindow.
9435 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
9436 TARGET_API_MAC_CARBON'.
9437 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
9438 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 9439
043f7f73 9440 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
9441 (Window): Typedef to WindowPtr and move outside `#if
9442 TARGET_API_MAC_CARBON'.
9443 (XSizeHints): New struct.
a2c7e69a 9444
b15325b2
ST
9445 * macterm.c (x_update_begin, x_update_end)
9446 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
9447 frame.
9448 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
9449 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
9450 (construct_mouse_click): Put in #if 0.
9451 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
9452 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
9453 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
9454 (activate_scroll_bars, deactivate_scroll_bars)
9455 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
9456 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
9457 if the position is neither user-specified nor program-specified.
9458 (x_free_frame_resources): Free size_hints.
043f7f73 9459 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
9460 (mac_clear_font_name_table): New function.
9461 (mac_do_list_fonts): Initialize font_name_table if needed.
9462 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
9463 around mac_do_list_fonts.
9464 (mac_unload_font): New function.
9465 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
9466 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
9467 and definitions with #if TARGET_API_MAC_CARBON.
9468 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
9469 (install_window_handler): Add decl.
9470 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
9471 window. Use UpdateControls. Get the rectangle that should be
9472 updated and restrict the target of expose_frame to it.
043f7f73 9473 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
9474 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
9475 (do_zoom_window): Don't use x_set_window_size.
9476 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
9477 (install_window_handler): New function.
9478 [!USE_CARBON_EVENTS] (mouse_region): New variable.
9479 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
9480 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
9481 GetEventDispatcherTarget inside BLOCK_INPUT.
9482 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
9483 Update mouse_region when mouse is moved.
9484 (make_mac_frame): Remove.
043f7f73
SM
9485 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
9486 Initialize mouse pointer shapes. Change values of f->left_pos and
9487 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
9488 Don't call ShowWindow.
b15325b2
ST
9489 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
9490 Vinvocation_name and Vsystem_name.
9491 (mac_make_rdb): New function (from w32term.c).
9492 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
9493 already been opened. Don't pass argument to
9494 mac_initialize_display_info. Don't set dpyinfo->height/width.
9495 Add entries to x_display_list and x_display_name_list.
9496 (x_delete_display): New function.
9497 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
9498 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
9499
b15325b2
ST
9500 * macterm.h (check_mac): Add extern.
9501 (struct mac_output): New member size_hints.
9502 (FRAME_SIZE_HINTS): New macro.
9503 (mac_unload_font): Add extern.
a2c7e69a 9504
b15325b2 9505 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 9506
1d1c7e75 9507 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 9508
92d2947b
RS
95092004-12-27 Richard M. Stallman <rms@gnu.org>
9510
043f7f73 9511 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
9512 (syms_of_buffer): Don't defsubr it.
9513
9514 * process.c (list_processes_1): Set undo_list instead
9515 of calling Fbuffer_disable_undo.
9516
043f7f73 9517 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 9518 single_display_prop_string_p.
043f7f73 9519 (single_display_spec_intangible_p): Rename from
92d2947b 9520 single_display_prop_intangible_p.
043f7f73 9521 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
9522 Rewritten to be easier to understand.
9523
a2c7e69a 9524 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
9525 and variables get just NAME.
9526
9527 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
9528
9529 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
9530 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
9531 (Qdefvar): Var deleted.
9532 (syms_of_eval): Don't initialze it.
9533
9534 * lread.c (syms_of_lread) <load-history>: Doc fix.
9535
9f6fcdc5
JD
95362004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9537
9538 * xmenu.c (popup_get_selection): Pop down on C-g.
9539 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
9540 pops down menu on C-g.
9541 (xdialog_show): If dialog popped down and no button in the dialog was
9542 pushed, call Fsignal to quit.
9543 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
9544 Fsignal to quit.
9545
1d1c7e75 9546 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
9547
9548 * gtkutil.c (xg_initialize): Install bindings for C-g so that
9549 dialogs and menus pop down.
9550
d8ca23a0
KH
95512004-12-27 Kenichi Handa <handa@m17n.org>
9552
9553 * coding.c (code_convert_region): Fix calculation of `ratio'.
9554
857ae68b
JD
95552004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9556
133c0116
JD
9557 * gtkutil.c (update_frame_tool_bar): Make the value of
9558 tool-bar-button-margin control margins of images in tool bar.
9559
857ae68b
JD
9560 * alloc.c (check_depth): New variable.
9561 (overrun_check_malloc, overrun_check_realloc): Only add
9562 overhead and write check pattern if check_depth is 1 (to handle
9563 recursive calls). Increase/decrease check_depth in entry/exit.
9564 (overrun_check_free): Only check for overhead if check_depth is 1.
9565 Increase/decrease check_depth in entry/exit.
9566
bd55c35c
JD
95672004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9568
9569 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
9570 before touching input_available_clear_time, to avoid accessing it
9571 from multiple threads.
9572
66354420
JR
95732004-12-23 Jason Rumney <jasonr@gnu.org>
9574
9575 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
9576 of JPEG library.
9577
55f4edbc
RS
95782004-12-22 Richard M. Stallman <rms@gnu.org>
9579
9580 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
9581
9582 * lisp.h (Vundo_outer_limit): Fix decl.
9583
9584 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
9585 Uses changed.
9586 (syms_of_undo): Initialize appropriately.
9587 (truncate_undo_list): If it's nil, there's no limit.
9588
7a0ea9e3
KH
95892004-12-22 Kenichi Handa <handa@m17n.org>
9590
9591 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
9592
fda2922a
RS
95932004-12-21 Richard M. Stallman <rms@gnu.org>
9594
9595 * eval.c (unwind_to_catch): Clear immediate_quit.
9596
9597 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
9598 specially as `\ ' and `\-'.
9599
9600 * keyboard.c (kbd_buffer_store_event_hold):
9601 In the code for while-no-input, handle immediate_quit.
9602
9603 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
9604 Call that at the very start.
043f7f73 9605 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
9606 (syms_of_alloc): Don't define undo-limit,
9607 undo-strong-limit and undo-outer-limit here.
9608
9609 * undo.c (truncate_undo_list): Return void.
9610 Take just one argument, the buffer.
9611 Make it current, and inhibit recursive GC.
9612 Access and update the undo list directly; return void.
9613 Refer to the undo...limit variables directly.
9614 Test undo_outer_limit only after counting the whole current command.
9615 When it's exceeded, call the function in undo-outer-limit-function.
9616 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
9617 (Vundo_outer_limit_function): New variable.
9618 (syms_of_undo): Define undo-limit, undo-strong-limit
9619 and undo-outer-limit here, and undo-outer-limit-function.
9620 Doc fixes.
9621
9622 * lisp.h (truncate_undo_list): Update decl.
9623
96242004-12-21 Piet van Oostrum <piet@cs.uu.nl>
9625
9626 * fileio.c (Fread_file_name): Delete duplicates in
9627 file-name-history when history_delete_duplicates is true.
9628
68c69027
ST
96292004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9630
9631 * macterm.c (mac_do_list_fonts): Fix memory leak
9632
134579f2
RS
96332004-12-20 Richard M. Stallman <rms@gnu.org>
9634
9635 * regex.c (re_match_2_internal) <symend, wordend>:
9636 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
9637
fbe6152f
ST
96382004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9639
043f7f73
SM
9640 * macterm.c (endif, x_font_name_to_mac_font_name):
9641 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
9642 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
9643 quickly finding a specific font without needing regexps.
9644
fecad3f6
JD
96452004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9646
333f1b6f
JD
9647 * syssignal.h: Declare main_thread.
9648 (SIGNAL_THREAD_CHECK): New macro.
9649
9650 * keyboard.c (input_available_signal): Move thread checking code
9651 to macro SIGNAL_THREAD_CHECK and call that macro.
9652 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
9653
9654 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
9655
9656 * emacs.c: Define main_thread.
9657 (main): Initialize main_thread.
9658 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
9659 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
9660
9661 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
9662
9663 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
9664
9665 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
9666
043f7f73
SM
9667 * process.c (send_process_trap, sigchld_handler):
9668 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
9669
9670 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
9671
9672 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
9673
fecad3f6
JD
9674 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
9675 returning when xg_ignore_gtk_scrollbar is true.
9676
2a84c6da
KS
96772004-12-14 Kim F. Storm <storm@cua.dk>
9678
9679 * keyboard.c (read_char): Save and restore echo_string when
9680 handling input method.
9681
d9c1ce9d
RS
96822004-12-13 Richard M. Stallman <rms@gnu.org>
9683
9684 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
9685
9686 * keyboard.c (Vthrow_on_input): New variable.
9687 (syms_of_keyboard): Defvar and initialize it.
9688 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
9689
9690 * lisp.h (QUIT): Check for Vthrow_on_input.
9691 (Vthrow_on_input): Declare it.
9692
a6495ed5
KS
96932004-12-13 Kim F. Storm <storm@cua.dk>
9694
9695 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
9696 vector.
9697
24a0e22f
RS
96982004-12-12 Richard M. Stallman <rms@gnu.org>
9699
9700 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
9701
9702 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
9703 (Ftry_completion): Really use outer `zero'; eliminate inner one.
9704
d6d31e57
KH
97052004-12-12 Kenichi Handa <handa@m17n.org>
9706
9707 * term.c (encode_terminal_code): Fix previous change.
9708
6f8ffb88
SM
97092004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
9710
fb6f5cbf
SM
9711 * keyboard.c (handle_async_input): Remove pthread mutex handling.
9712 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
9713
6f8ffb88
SM
9714 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
9715 in macro arguments.
9716
9717 * minibuf.c (Ftry_completion, Fall_completions): Don't use
9718 XFASTINT blindly.
9719
9720 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
9721
c83c9f9d
JD
97222004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9723
2f25767f
JD
9724 * w32term.c (x_calc_absolute_position): Remove calculation of
9725 difference between inner and outer window. Don't subtract difference
9726 for left and top calculations.
9727
c83c9f9d
JD
9728 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
9729 for left and top calculations. Remove call to x_real_positions.
24a0e22f 9730 [Bug report by Drew Adams in November]
c83c9f9d
JD
9731 (x_check_expected_move): Do not set change_gravity to 1 when calling
9732 x_set_offset.
9733
cc1caa4e
RS
97342004-12-08 Richard M. Stallman <rms@gnu.org>
9735
9736 * xdisp.c (get_next_display_element): Use `escape-glyph' for
9737 control chars and escaped octal codes.
9738 (Qescape_glyph): New variable.
9739 (syms_of_xdisp): Initialize it.
9740 (escape_glyph_face): New variable.
9741 (redisplay_window): Initialize it.
9742
e0e30823
RS
97432004-12-07 Paul Eggert <eggert@cs.ucla.edu>
9744
9745 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
9746 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
9747
f415cacd
JD
97482004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9749
cf435f39
JD
9750 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
9751 reset_malloc_hooks.
9752
6f8ffb88
SM
9753 * keyboard.c (handle_async_input, input_available_signal):
9754 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 9755
f415cacd
JD
9756 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
9757
043f7f73 97582004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
9759
9760 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
9761
9762 * config.in: Regenerate.
9763
ded997c1
JD
97642004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9765
453a4f1b
JD
9766 * xmenu.c (Fx_popup_menu): Correct documentation about position.
9767 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
9768 if not given by a mouse click to correspond with x-popup-menu
9769 documentation.
9770
9a38524c
JD
9771 * config.in: Regenerate.
9772
aa477689
JD
9773 * gtkutil.c: Include signal.h and syssignal.h.
9774 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
9775
9776 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
9777 new variables main_thread and alloc_mutex,
9778 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
9779 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
9780 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
9781 (UN)BLOCK_INPUT.
9782 (emacs_blocked_free, emacs_blocked_malloc)
9783 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
9784 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
9785 (reset_malloc_hooks): New function.
9786
9787 * lisp.h: Declare reset_malloc_hooks.
9788
9789 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
9790
9791 * keyboard.c: Conditionally include pthread.h
6f8ffb88 9792 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
9793 thread, block signal, send signal to main thread and return.
9794
ded997c1 9795 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 9796 Set current folder in file chooser if default_filename is a directory.
ded997c1 9797
c72b0edd
SM
97982004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
9799
9800 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
9801 Remove redundant correctness checks.
9802 (regex_compile): Fix up error codes for \{..\} expressions.
9803
c721eee5
RS
98042004-12-05 Richard M. Stallman <rms@gnu.org>
9805
9806 * regex.c (regex_compile): Fix end-of-pattern case for space.
9807
d8f96db8
ST
98082004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9809
6108209e
KS
9810 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
9811 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 9812 crashes with invalid characters.
6108209e
KS
9813 * macmenu.c (add_menu_item): Use it.
9814 * image.c (image_load_quartz2d): Likewise.
9815 * macfns.c (x_set_name, x_set_title): Likewise.
9816 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
9817 creating them each time for labels.
d8f96db8 9818
ab67e8b6
RS
98192004-12-02 Richard M. Stallman <rms@gnu.org>
9820
9821 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
9822 don't use it here.
9823
9824 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
9825 (interactive_p): Skip Scalled_interactively_p frames
9826 like Sinteractive_p frames.
b8217ea6 9827 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
9828
9829 * data.c (Fmake_variable_buffer_local): Doc fix.
9830 (Fmake_local_variable): Doc fix.
9831
9832 * insdel.c (insert_from_string_before_markers)
9833 (insert_from_string): Don't modify buffer on empty insertion.
9834
9835 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
9836
f86bdc80
ST
98372004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9838
9839 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
9840 menu text as UTF8 fails.
9841
1cae6d39
KS
98422004-12-01 Kim F. Storm <storm@cua.dk>
9843
9844 * alloc.c: Add commentary for last change.
9845 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
9846 sizeof(size_t) != 4.
9847 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
9848 Use them. Also clear header and trailer of freed memory.
9849 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
9850 (string_overrun_cookie): Rename from string_overrun_pattern.
9851 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
9852
77ea0764
AS
98532004-12-01 Andreas Schwab <schwab@suse.de>
9854
9855 * lisp.h: Declare string_to_multibyte.
9856
2d5cd4e6
KH
98572004-12-01 Kenichi Handa <handa@m17n.org>
9858
9859 * w32console.c (w32con_write_glyphs): Decide coding here.
9860 Adjusted for the change of encode_terminal_code.
9861
9862 * term.c (encode_terminal_code): Don't make it "static".
9863
25a0994a
KH
98642004-11-30 Kenichi Handa <handa@m17n.org>
9865
19b1f29a 9866 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 9867 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
9868 characters at once, and return a pointer to the result of encoding.
9869 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
9870 (insert_glyphs): Likewise.
9871 (term_init): Initialize encode_terminal_bufsize to 0.
9872
9873 * coding.c (Vcode_conversion_workbuf_name): New variable.
9874 (syms_of_coding): Initialize and staticpro it.
9875 (set_conversion_work_buffer): New function.
9876 (run_pre_post_conversion_on_str): Use it.
9877 (run_pre_write_conversin_on_c_str): New function.
9878
9879 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
9880
fc7a70cc
ST
98812004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9882
9883 * keyboard.c: Don't undef SIGIO
9884 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
9885 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
9886 (macfns.o): Don't depend on ccl.h.
9887 * macfns.c (mac_frame_parm_handlers): Set handlers for
9888 Qleft_fringe and Qright_fringe.
9889 * macterm.c (mac_fill_rectangle_to_pixmap)
9890 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
9891 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
9892 Put in #if 0.
9893 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
9894 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
9895 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
9896 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
9897 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
9898 XDrawImageString. Always draw background and foreground separately.
9899 (x_draw_image_foreground): Use clipping instead of computing the
9900 intersection rectangle.
9901 (x_draw_image_glyph_string): Don't draw an image with mask to a
9902 pixmap.
9903 (x_redisplay_interface): Set flush_display_optional member to 0.
9904 (XTread_socket): Correctly reset the TEConverter
9905 object.
9906
fc368889
KS
99072004-11-30 Kim F. Storm <storm@cua.dk>
9908
9909 * lisp.h: New defines to enable buffer overrun checking.
9910 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
9911 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
9912
9913 * alloc.c: Add more checks for buffer overruns.
9914 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
9915 xmalloc_overrun_check_trailer, overrun_check_malloc)
9916 overrun_check_realloc, overrun_check_free): Add.
9917 (GC_STRING_EXTRA, string_overrun_pattern): Add.
9918 (check_sblock, allocate_string_data, compact_small_strings):
9919 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
9920 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
9921 (check_string_free_list): Add.
9922 (allocate_string, sweep_strings): Call check_string_free_list.
9923
9924 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
9925 XMALLOC_OVERRUN_CHECK to avoid crash during load.
9926
0af8cfe1
KS
99272004-11-29 Kim F. Storm <storm@cua.dk>
9928
9929 * fns.c (concat): Use SAFE_ALLOCA.
9930
77220eeb
SM
99312004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
9932
9933 * sysdep.c (emacs_write): Don't use QUIT.
9934
a778cf63
KH
99352004-11-29 Kenichi Handa <handa@m17n.org>
9936
9937 * buffer.c (init_buffer): Set current_buffer->directory to a
9938 multibyte string made by string_to_multibyte.
9939
77220eeb 9940 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 9941
e3177e43
AS
99422004-11-27 Andreas Schwab <schwab@suse.de>
9943
9944 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
9945
9946 * s/gnu-linux.h: Enable no-op gcpros on ia64.
9947 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
9948
77220eeb
SM
9949 * filelock.c (lock_file_1): Call get_boot_time early.
9950 Increase buffer size.
e3177e43 9951
ca5e6fef
EZ
99522004-11-27 Eli Zaretskii <eliz@gnu.org>
9953
9954 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
9955 is not defined.
9956
e2811828
KS
99572004-11-27 Kim F. Storm <storm@cua.dk>
9958
9959 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
9960 marker out of doc string.
9961
7a262394
SM
99622004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
9963
9964 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
9965 which was not mentioned in the log.
9966
f33cc5a9
KS
99672004-11-26 Kim F. Storm <storm@cua.dk>
9968
048bb03f
KS
9969 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
9970 angle bitmaps at top/bottom line.
9971
52eb0373 9972 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
9973 set it when it->method is set to next_element_from_display_vector.
9974 (setup_for_ellipsis): Add LEN argument. Callers changed.
9975 Set it->saved_face_id.
9976 (get_next_display_element): Use loop instead of recursion.
9977 Set it->saved_face_id. Combine duplicate code for ctr chars.
9978 (next_element_from_display_vector): Do not set it->saved_face_id.
9979 (next_element_from_ellipsis): Use setup_for_ellipsis.
9980
670e8906
EZ
99812004-11-26 Eli Zaretskii <eliz@gnu.org>
9982
9983 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
9984 prevent compiler warnings.
9985
275464e7
SM
99862004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
9987
1bf0e604
SM
9988 * keyboard.c (command_loop_1): Print a message describing the key
9989 the user just pressed when this key has no binding.
9990
275464e7
SM
9991 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
9992 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
9993
9994 * lread.c (readchar): Check QUIT when `getc' is interrupted.
9995
261b01c6
RS
99962004-11-24 Richard M. Stallman <rms@gnu.org>
9997
9998 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
9999
10000 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
10001
a5bd504e
KS
100022004-11-24 Kim F. Storm <storm@cua.dk>
10003
10004 * xdisp.c (move_it_in_display_line_to, display_line):
10005 Restore saved_face_id also when truncate-lines or hscrolled.
10006
255e4140
JD
100072004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10008
10009 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
10010 x-use-old-gtk-file-dialog.
10011
10012 * xfns.c: Define x_use_old_gtk_file_dialog.
10013 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
10014 outside ifdef USE_GTK.
10015
cab27d04
SM
100162004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
10017
10018 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
10019 Don't use XFASTINT blindly.
10020
10021 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
10022
10023 * indent.c (skip_invisible): Avoid non-idempotent side-effects
10024 in macro arguments.
10025
10026 * keymap.c (Flookup_key): Check INTEGERP before XINT.
10027
10028 * lread.c (oblookup): Don't use XFASTINT blindly.
10029
10030 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
10031 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
10032
11e0be49
KS
100332004-11-23 Kim F. Storm <storm@cua.dk>
10034
4d721114
KS
10035 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
10036 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
10037
11e0be49
KS
10038 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
10039 signal_p is zero and face name is unknown.
10040 (Fx_list_fonts): Don't signal error in lookup_named_face.
10041 (Fface_font): Signal error in lookup_named_face.
10042 (ascii_face_of_lisp_face): Likewise.
10043
10044 * dispextern.h (lookup_named_face): Fix prototype.
10045
10046 * xdisp.c (handle_single_display_prop): Don't signal error in
10047 lookup_named_face for unknown fringe face name.
10048 (highlight_trailing_whitespace): Don't signal error in
10049 lookup_named_face if trailing-whitespace face unknown.
10050 (calc_line_height_property): Don't signal error in
10051 lookup_named_face if specified face name is unknown.
10052
10053 * fringe.c (update_window_fringes): Show top row indicator if
10054 window has header-line. Don't show arrow at bob and eob
10055 if the boundary indicators are not used.
10056 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
10057
10058 * window.c (set_window_buffer): Clear display_error_modiff.
10059
0960a582
KS
100602004-11-22 Kim F. Storm <storm@cua.dk>
10061
10062 * fringe.c (update_window_fringes): Provide sensible fall-back
10063 value for non-nil indicate-buffer-boundaries setting.
10064
b0e9bb28
MR
100652004-11-22 Markus Rost <rost@ias.edu>
10066
10067 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
10068
d0bce91e
SM
100692004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10070
10071 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
10072
e1814672
KS
100732004-11-21 Kim F. Storm <storm@cua.dk>
10074
b7fd3518
KS
10075 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
10076
10077 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
10078 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10079
10080 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
10081 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10082
10083 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
10084 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10085
d0bce91e
SM
10086 * xdisp.c (move_it_in_display_line_to, display_line):
10087 Restore saved_face_id if overflow-newline-into-fringe is enabled and
10088 line is continued before or in middle of element from display vector.
f01d4d05 10089
f1a61389
KS
10090 * indent.c (Fvertical_motion): Fix last change. Use another
10091 method to detect if iterator moved too far ahead after reseat.
10092
e1814672
KS
10093 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
10094 expand matrix width for overflow in zero-width area.
10095 (append_glyph, append_composite_glyph, produce_image_glyph)
10096 (append_stretch_glyph): Use it to avoid loop in redisplay.
10097 (note_mode_line_or_margin_highlight): Don't let help-echo from
10098 string override help-echo from image map.
10099
2dafe1c9
LT
101002004-11-20 Luc Teirlinck <teirllm@auburn.edu>
10101
d0bce91e 10102 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
10103 * callint.c (Fcall_interactively): Ditto.
10104
fd6866c8 101052004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
10106
10107 * minibuf.c (Fminibuffer_complete_and_exit):
10108 Fixup the case of the completed value, for case-indep completion.
10109
dedbac89
RS
101102004-11-20 Richard M. Stallman <rms@gnu.org>
10111
fd6866c8
RS
10112 * lisp.h (Fread_from_minibuffer): Add arg in decl.
10113
9d00469f 10114 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 10115 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 10116
dedbac89 10117 * search.c (Vsearch_spaces_regexp):
d0bce91e 10118 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 10119
2f672bb5
TTN
101202004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
10121
10122 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
10123
f31a9a68
RS
101242004-11-19 Richard M. Stallman <rms@gnu.org>
10125
10126 * search.c (Vsearch_whitespace_regexp): New variable.
10127 (syms_of_search): Defvar it.
10128 (compile_pattern_1): Call re_set_whitespace_regexp with it.
10129 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
10130 is non-nil.
6de891db
RS
10131 (struct regexp_cache): New element whitespace_regexp.
10132 (syms_of_search): Initialize whitespace_regexp elements.
10133 (compile_pattern): Compare whitespace_regexp elements.
10134 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
10135
10136 * regex.c (regex_compile): Substitute whitespace_regexp
10137 for spaces, if it is nonzero.
10138 (whitespace_regexp): New variable.
10139 (re_set_whitespace_regexp): New function.
10140
cbc34cb3
KS
101412004-11-19 Kim F. Storm <storm@cua.dk>
10142
10143 * indent.c (Fvertical_motion): Fix last change.
10144
b54a7539
KS
101452004-11-18 Kim F. Storm <storm@cua.dk>
10146
10147 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
10148 Instead, move back again if reseating moves too far ahead.
10149
101502004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
10151
10152 * xdisp.c (message3): Call clear_message.
10153
5ff504fe
KS
101542004-11-17 Kim F. Storm <storm@cua.dk>
10155
10156 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
10157
5ae53dcf
JD
101582004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10159
d0bce91e 10160 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 10161
6abf3a27 10162 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
10163 (x_menu_set_in_use): Also set popup_activated_flag.
10164
5ff504fe 10165 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
10166 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
10167
52eb0373 10168 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 10169
ee31cd78
RS
101702004-11-16 Richard M. Stallman <rms@gnu.org>
10171
6abf3a27
SM
10172 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
10173 Use map-keymap-internal to implement that.
ee31cd78
RS
10174
10175 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
10176
6abf3a27
SM
101772004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10178
10179 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
10180 a window before using XWINDOW.
10181
10182 * window.c (make_window, Fselect_window, make_dummy_parent)
10183 (save_window_save):
10184 * frame.c (make_frame):
10185 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
10186
10187 * lisp.h (NILP): Use EQ rather than XFASTINT.
10188
b4d61105
KS
101892004-11-16 Kim F. Storm <storm@cua.dk>
10190
6abf3a27 10191 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 10192
b4d61105
KS
10193 * indent.c (Fvertical_motion): Fix last change. Only reseat when
10194 moving backwards.
10195
101962004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
10197
10198 * dispextern.h: Extern reseat_at_previous_visible_line_start.
10199
ab5b02b0
KH
102002004-11-16 Kenichi Handa <handa@m17n.org>
10201
10202 * xdisp.c (display_mode_element): Fix previous change (calculate
10203 end position of substring to display correctly).
10204
c482cf97
KS
102052004-11-16 Kim F. Storm <storm@cua.dk>
10206
10207 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
10208 Reported by Andrew M. Scott.
10209
9f89426b
KS
102102004-11-15 Kim F. Storm <storm@cua.dk>
10211
10212 * fns.c (Fsafe_plist_get): New defun.
10213 (syms_of_fns): Defsubr it.
10214
10215 * lisp.h (Fsafe_plist_get): Add EXFUN.
10216
10217 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
10218 Use Fsafe_plist_get.
10219 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10220 Fix image map element parsing. Use Fsafe_plist_get.
10221
27418463
RS
102222004-11-15 Richard M. Stallman <rms@gnu.org>
10223
10224 * xdisp.c (get_next_display_element): Fix previous change.
10225
a130b901
JD
102262004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10227
ef614e04
JD
10228 * window.c (shrink_windows): Handle special case of one window left
10229 when trying to shrink the final reminder. Grow windows if
10230 total_removed is less than total_shrink.
10231
a130b901
JD
10232 * xmenu.c (pop_down_menu): Remove global variable current_menu,
10233 extract pointer from arg with XSAVE_VALUE.
46303896
KS
10234 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
10235 Construct arg to record_unwind_protect with make_save_value.
a130b901 10236
d9a03ad2
RS
102372004-11-13 Richard M. Stallman <rms@gnu.org>
10238
10239 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
10240 (get_next_display_element): Fix previous change to apply only to \n.
10241
10242 * indent.c (Fvertical_motion): Scan to PT from start of line to
10243 make iterator consistent.
10244
10245 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
10246
b3935289
JD
102472004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10248
10249 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
10250
10251 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
10252 Record unwind with clean_up_file_dialog.
10253
78819ebb
KS
10254 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
10255 Declare.
b3935289
JD
10256
10257 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
10258
af89e871
JD
102592004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10260
457a8155 10261 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 10262 (xg_file_sel_destroy): Remove.
46303896
KS
10263 (xg_file_response_cb, pop_down_file_dialog)
10264 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 10265 New functions.
6abf3a27
SM
10266 (xg_get_file_with_chooser, xg_get_file_with_selection):
10267 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
10268 Move common code to xg_get_file_name. Return widget created.
10269 (xg_get_file_name): Set name, transient for, modal and destroy
10270 with parent here. Connect response signal to xg_file_response_cb,
10271 connect delete-event to gtk_true. Record pop_down_file_dialog
10272 for unwind. Do event loop and call x_menu_wait_for_event in loop.
10273 (xg_create_widget): Make dialogs modal.
10274
af89e871
JD
10275 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
10276 Lisp_Object.
10277 (popup_get_selection): Move unwind protect ...
10278 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
10279 Move destroy of widget to pop_down_menu.
10280 (popup_widget_loop): Move unwind protect ...
10281 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
10282 Move destroy of widget to pop_down_menu.
10283 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 10284 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
10285 x_mouse_leave and grabbed = 0 to pop_down_menu.
10286
5596fbf1
KS
102872004-11-13 Kim F. Storm <storm@cua.dk>
10288
10289 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
10290 (syms_of_xdisp): DEFVAR_BOOL it.
10291 (make_cursor_line_fully_visible, try_cursor_movement)
10292 (try_window_id): Use it.
10293
b9de078a
KS
102942004-11-12 Kim F. Storm <storm@cua.dk>
10295
381f7091
KS
10296 * dispextern.h (struct glyph_row): New member extra_line_spacing.
10297 (struct it): New member max_extra_line_spacing.
10298 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
10299 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
10300 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
10301 part of last line is only extra line spacing (so the text on the
52eb0373 10302 line is fully visible). Use helper macros.
381f7091
KS
10303 Add W arg (to use them). All callers changed.
10304 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
10305 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
10306
6abf3a27
SM
10307 * window.c (window_scroll_pixel_based, Frecenter):
10308 Use move_it_vertically_backward directly.
381f7091
KS
10309 (Frecenter): Fix calculation of new start pos for negative arg.
10310 Before, the new start pos was sometimes chosen too far back, so
10311 the last line became only partially visible, and thus would be
10312 either only semi-visible or automatically scrolled to the middle
10313 of the window by redisplay.
10314
10315 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
10316 (move_it_vertically_backward): Don't recure to move further back.
10317 (move_it_vertically): Remove superfluous condition.
10318 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 10319 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
10320 (display_tool_bar_line): Clear row->extra_line_spacing.
10321 (try_scrolling): Use move_it_vertically_backward directly.
10322 (redisplay_window): Likewise.
10323 (compute_line_metrics): Set row->extra_line_spacing.
10324 (display_line, display_string): Likewise.
10325 (x_produce_glyphs): Update it->max_extra_line_spacing.
10326
b9de078a
KS
10327 * xmenu.c (pop_down_menu): Return nil.
10328
c3438661
JD
103292004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10330
10331 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 10332 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 10333 to handle timers.
df00f436
JD
10334 (popup_widget_loop): Add argument do_timers.
10335 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
10336 do_timers to popup_widget_loop.
c3438661
JD
10337 (xmenu_show): Call XMenuActivateSetWaitFunction so that
10338 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 10339 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 10340 popup_get_selection.
f1d1cd24
JD
10341 (pop_down_menu): New function.
10342 (popup_get_selection, popup_widget_loop): Unwind protect to
10343 pop_down_menu.
10344 (popup_widget_loop): Add argument widget.
10345 (create_and_show_popup_menu, create_and_show_dialog): Pass new
10346 argument widget to popup_widget_loop.
c3438661 10347
32e2fb04
SM
103482004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10349
10350 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
10351
0faf6806
KS
103522004-11-09 Kim F. Storm <storm@cua.dk>
10353
10354 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
10355 Fix various comments referring to XEvents instead of input events.
10356 (x_queue_event): Fix format strings.
10357 (x_stop_queuing_selection_requests): Likewise.
10358
10359 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
10360 (pint2hrstr): Add extra braces to silence compiler.
10361
10362 * print.c (print_object): Fix format string.
10363
10364 * lread.c (read1): Fix next_char matching.
10365
10366 * lisp.h (Fdelete): Add EXFUN.
10367 (replace_range_2): Add prototype.
10368
10369 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
10370
10371 * intervals.h (NULL_INTERVAL_P): Add separate version when
10372 ENABLE_CHECKING is not defined to silence compiler.
10373 (compare_string_intervals): Add prototype.
10374
10375 * fringe.c (destroy_fringe_bitmap): Fix return type.
10376 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
10377
10378 * emacs.c (Fdump_emacs): Fix format string.
10379
10380 * doc.c: Include <ctype.h>.
10381 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
10382
10383 * data.c (store_symval_forwarding): Remove unused variables.
10384
10385 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
10386
16bf4e32
JD
103872004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10388
10389 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
10390 to ${OLDXMENU}.
10391
cdb805a9
KS
103922004-11-09 Kim F. Storm <storm@cua.dk>
10393
10394 * process.c (Fmake_network_process): Remove kludge for interrupted
10395 connects on BSD. If connect is interrupted, just close socket and
10396 start over rather than sleeping and retry with same socket.
10397
d87a9ab8 103982004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 10399
a8b16c80
JD
10400 * .cvsignore: Add buildobj.lst.
10401
d87a9ab8
JD
10402 * doc.c: New variable Vbuild_files.
10403 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 10404 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
10405 that are in Vbuild_files.
10406 (syms_of_doc): Defvar Vbuild_files.
10407
10408 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
10409 and w32*.o.
10410 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 10411 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
10412
10413 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
10414 is linked.
10415
b6709e77
KS
104162004-11-09 Kim F. Storm <storm@cua.dk>
10417
10418 * fringe.c (update_window_fringes): Update fringe bitmaps if
10419 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
10420 also update previous row to get rid of misc. artifacts.
10421
bae9677d
KS
104222004-11-08 Kim F. Storm <storm@cua.dk>
10423
10424 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 10425 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 10426
3f8ea68c
EZ
104272004-11-08 Eli Zaretskii <eliz@gnu.org>
10428
10429 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
10430 Don't include <sys/time.h> explicitly.
10431 Include <stdio.h> unconditionally, not just on MacOS.
10432
a653f812
KH
104332004-11-08 Kenichi Handa <handa@m17n.org>
10434
10435 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
10436 don't pay attention to '\' before '*'.
10437 (fontset_pattern_regexp): Change the meaning of the second arg.
10438 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
10439 (check_fontset_name): Try NAME as literal at first, and if it
10440 failes, try NAME as pattern.
10441
c37caf9d
JD
104422004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10443
10444 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
10445
b72915a7
AS
104462004-11-07 Andreas Schwab <schwab@suse.de>
10447
78819ebb
KS
10448 * lisp.h (Fmsdos_downcase_filename): Declare.
10449 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
10450 * fileio.c: Likewise.
10451
238a44a8
JD
104522004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10453
10454 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
10455 comparisons with integers instead of Lisp_Object address.
10456 (Fmsdos_set_keyboard): Declare argument allkeys.
10457
10458 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
10459
78819ebb 10460 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
10461 int/Lisp_Object mixup.
10462
10463 * fileio.c: Ditto.
10464
31141c13
ST
104652004-11-06 Steven Tamm <steventamm@mac.com>
10466
10467 * editfns.c: Need to include sys/time.h before resource.h on darwin.
10468
f28c1bd9
RS
104692004-11-06 Richard M. Stallman <rms@gnu.org>
10470
10471 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
10472
10473 * xfaces.c (merge_named_face): GCPRO the face_name in the
10474 named_merge_point struct that we make.
10475 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
10476
10477 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
10478 before deciding whether to inactivate mark.
10479
59dede22
EZ
104802004-11-06 Lars Brinkhoff <lars@nocrew.org>
10481
10482 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
10483 * editfns.c (Fget_internal_run_time): New function.
10484 (syms_of_data): Defsubr it.
10485 * fns.c (sxhash): As far as possible, merge calculation of
10486 hash code for symbols and strings.
59dede22 10487
27540e81
EZ
104882004-11-06 Eli Zaretskii <eliz@gnu.org>
10489
10490 * frame.c (syms_of_frame): Fix the example in the doc string.
10491
df470e3b
JD
104922004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10493
10494 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
10495
10496 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
10497 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 10498
4cc8522c
LT
104992004-11-05 Luc Teirlinck <teirllm@auburn.edu>
10500
10501 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
10502
d4a42098
KS
105032004-11-05 Kim F. Storm <storm@cua.dk>
10504
a8490886
KS
10505 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
10506
d4a42098
KS
10507 * fileio.c (Ffile_modes): Doc fix.
10508 (auto_save_1): Check for Ffile_modes nil value.
10509
36a2b04c
KS
105102004-11-05 Kim F. Storm <storm@cua.dk>
10511
10512 * xselect.c (struct selection_event_queue, selection_queue)
10513 (x_queue_selection_requests, x_queue_event)
10514 (x_start_queuing_selection_requests)
10515 (x_stop_queuing_selection_requests): Add new queue for selection
10516 input events to replace previous XEvent queue in xterm.c.
10517 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
10518 (x_reply_selection_request): Adapt to new queue.
10519 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
10520 (x_handle_selection_request, x_handle_selection_clear): Make static.
10521 (x_handle_selection_event): New function. May queue selection events.
10522 (wait_for_property_change_unwind): Use save_value instead of cons.
10523 Clear property_change_reply_object.
10524 (wait_for_property_change): Abort if already waiting.
10525 Use save_value instead of cons for unwind data.
10526 (x_handle_property_notify): Skip events already arrived, but don't
10527 free them, as "arrived" field is checked by wait_for_property_change,
10528 and it will be freed by unwind or explicit unexpect_property_change.
10529 (x_get_foreign_selection): Add to new queue.
10530 (receive_incremental_selection): Don't unexpect wait_object when done
10531 as it has already been freed by previous wait_for_property_change.
10532
10533 * xterm.h (x_start_queuing_selection_requests)
10534 (x_stop_queuing_selection_requests, x_handle_selection_request)
10535 (x_handle_selection_clear): Remove prototypes.
10536 (x_handle_selection_event): Add prototype.
10537
10538 * xterm.c (handle_one_xevent): Don't queue X selection events
10539 here, it may be too late if we start queuing after we have already
10540 stored some selection events into the kbd buffer.
10541 (struct selection_event_queue, queue, x_queue_selection_requests)
10542 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
10543 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
10544 (x_catch_errors_unwind): Block input around final XSync.
10545
10546 * keyboard.h (kbd_buffer_unget_event): Add prototype.
10547
10548 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
10549 (kbd_buffer_unget_event): New function.
10550 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
10551 and use x_handle_selection_event.
10552 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
10553
9c3ad9e1
JD
105542004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10555
10556 * xselect.c (TRACE3): New debug macro.
10557 (x_reply_selection_request): Use it.
10558 (receive_incremental_selection): In call to TRACE0, the name of
10559 a symbol is in xname.
10560
a33b89de
KS
105612004-11-05 Kim F. Storm <storm@cua.dk>
10562
10563 * fontset.c (fontset_pattern_regexp): Use unsigned char.
10564
a872928c
JD
105652004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10566
88208bb8
JD
10567 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
10568
78819ebb 10569 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
10570
10571 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 10572 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
10573 * xfns.c (syms_of_xfns): ... to here.
10574
a872928c
JD
10575 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
10576 it doesn't start with /.
10577
b912921c
KH
105782004-11-04 Kenichi Handa <handa@m17n.org>
10579
10580 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
10581 treat it as a literal character.
10582
c524d9a6
KS
105832004-11-03 Kim F. Storm <storm@cua.dk>
10584
10585 * .gdbinit (ppt): New function.
10586
8cfd0f36
JD
105872004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10588
a11e1dce
JD
10589 * xterm.c (x_window_to_scroll_bar): Only call
10590 xg_get_scroll_id_for_window if toolkit scroll bars are used.
10591
8cfd0f36
JD
10592 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
10593 of save.
10594
a93563fd
AS
105952004-11-02 Andreas Schwab <schwab@suse.de>
10596
10597 * window.c (Fscroll_right): Fix last change.
10598
2b2d59d8
KS
105992004-11-02 Kim F. Storm <storm@cua.dk>
10600
10601 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
10602
106032004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10604
10605 * callproc.c (Fcall_process): Block input around vfork.
10606
ca28104d
KS
106072004-11-02 Kim F. Storm <storm@cua.dk>
10608
10609 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
10610 (syms_of_eval): Defsubr it.
10611
29bb7127
RS
106122004-11-02 Richard M. Stallman <rms@gnu.org>
10613
10614 * insdel.c (replace_range_2): New function.
10615
10616 * casefiddle.c (casify_region): Handle changes in byte-length
10617 using replace_range_2.
10618
10619 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
10620
b6189c3b 10621 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
10622 Subtract 1 from pos when checking previous newline for invisibility.
10623
10624 * window.c (window_scroll_pixel_based): Update preserve_y
10625 for header line if any.
10626 (Fscroll_left, Fscroll_right): Don't call interactive_p;
10627 use a new second argument instead.
10628
10629 * eval.c (Fcall_interactive_p): New function.
10630 (interactive_p): Don't test INTERACTIVE here.
10631 (Finteractive_p): Doc fix.
10632
10633 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
10634
b6189c3b 106352004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
10636
10637 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 10638 comparing font names.
a3fe4aaf 10639
2a00cdb4
JD
106402004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10641
f9d64bb3
JD
10642 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
10643 Fx_file_dialog if only directories should be read.
10644
10645 * lisp.h: Fx_file_dialog takes 5 parameters.
10646
32e2fb04
SM
10647 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
10648 Add parameter only_dir_p.
f9d64bb3
JD
10649 In Motif version, don't put DEFAULT_FILENAME in filter part of the
10650 dialog, just text field part. Do not add DEFAULT_FILENAME
10651 to list of files if it isn't there.
10652 In GTK version, pass only_dir_p parameter to xg_get_file_name.
10653
32e2fb04
SM
10654 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
10655 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
10656 a save dialog, add option kNavDontConfirmReplacement, change title
10657 to "Enter name", change text for save button to "Ok".
10658
32e2fb04
SM
10659 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
10660 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
10661
10662 * gtkutil.c (xg_get_file_with_chooser)
10663 (xg_get_file_with_selection): New functions, only defined ifdef
10664 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
10665 respectively.
10666 (xg_get_file_name): Add parameter only_dir_p.
10667 Call xg_get_file_with_chooser or xg_get_file_with_selection
10668 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
10669 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
10670
10671 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
10672
2a00cdb4
JD
10673 * config.in: Rebuild (added HAVE_GTK_FILE_*).
10674
f6749d5d
KS
106752004-11-01 Kim F. Storm <storm@cua.dk>
10676
32e2fb04
SM
10677 * process.c (connect_wait_mask, num_pending_connects):
10678 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 10679 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
10680 (IF_NON_BLOCKING_CONNECT): New helper macro.
10681 (wait_reading_process_output): Only declare and use local vars
10682 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 10683
1a99fe1a
JR
106842004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
10685
10686 * w32term.c (x_scroll_run): Delete region objects after use.
10687
fcdb28b4
JD
106882004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10689
495ef86b
JD
10690 * xmenu.c: Add prototypes for forward function declarations.
10691 (popup_get_selection): Remove parameter do_timers, remove call to
10692 timer_check.
32e2fb04
SM
10693 (create_and_show_popup_menu, create_and_show_dialog):
10694 Remove parameter do_timers from call to popup_get_selection.
495ef86b 10695
12e6566a
JD
10696 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
10697 tool_bar_items and assign the result to f->tool_bar_items if
10698 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
10699 tool_bar_items to assignment of result.
10700
fcdb28b4
JD
10701 * atimer.c (alarm_signal_handler): Do not call set_alarm if
10702 pending_atmers is non-zero.
10703
1a1a0c4c
KS
107042004-10-31 Kim F. Storm <storm@cua.dk>
10705
10706 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
10707
a36f1680
JW
107082004-10-28 Will <will@glozer.net>
10709
1d1c7e75 10710 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
10711 key via a 'mac-option-modifier' variable.
10712
32e2fb04 107132004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
10714
10715 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
10716 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
10717 (x_handle_selection_request, x_handle_selection_clear)
10718 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
10719
4f71c13f
RS
107202004-10-28 Richard M. Stallman <rms@gnu.org>
10721
10722 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
10723
10724 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
10725
068f3848
SM
107262004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
10727
10728 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
10729 comment-starter over a 1-char one.
10730
4660a9e3
RS
107312004-10-27 Richard M. Stallman <rms@gnu.org>
10732
10733 * xdisp.c (get_next_display_element): In mode lines,
10734 treat newline and tab like other control characters.
10735
10736 * editfns.c (Fmessage): Doc fix.
10737
10738 * indent.c (vmotion): When moving up, check the newline before.
10739 Make prevline an int, not a Lisp_Object.
10740
233f3db6
KS
107412004-10-27 Kim F. Storm <storm@cua.dk>
10742
10743 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
10744 Only allocate info and discarded tables once.
10745
10746 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
10747 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
10748 (SAFE_FREE): Test it to determine if we need to unwind to free.
10749 Remove size arg. All users changed.
10750 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
10751
1442465d
JD
107522004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10753
10754 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
10755 (xg_destroy_widgets): Rename from remove_from_container.
10756 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
10757 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
10758 instead of remove_from_container.
10759 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
10760 (free_frame_tool_bar): Add comment.
10761
10762 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
10763 is not NULL before strcmp.
10764
c8636435
KS
107652004-10-26 Kim F. Storm <storm@cua.dk>
10766
10767 * callint.c (Fcall_interactively): Add 'U' code to get the
10768 up-event discarded by a previous 'k' or 'K' argument.
10769
5629f29b
DK
107702004-10-26 David Kastrup <dak@gnu.org>
10771
10772 * buffer.c (syms_of_buffer): Fix a few typos.
10773
4f2f546e
JD
107742004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10775
10776 * xsmfns.c: Put empty line between comment and function body.
10777 Use two spaces before comment end.
10778
fc1062f5
KH
107792004-10-25 Kenichi Handa <handa@m17n.org>
10780
10781 * fontset.c (fontset_pattern_regexp): Optimize for the case that
10782 PATTERN is full XLFD.
10783
be13f5e5
KH
107842004-10-24 Kenichi Handa <handa@m17n.org>
10785
10786 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
10787
10788 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
10789 (regex_compile): Return REG_ERANGEX if appropriate.
10790
d0ee2ed3
KH
107912004-10-22 Kenichi Handa <handa@m17n.org>
10792
10793 * editfns.c (Ftranslate_region_internal): New function.
10794 (syms_of_editfns): Defsubr it.
10795
63ea8ea5
JD
107962004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10797
10798 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
10799
d495ccfc 108002004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
c27ed90a 10801
068f3848
SM
10802 * xterm.h (x_output): New member `xic_base_fontname'.
10803 (FRAME_XIC_BASE_FONTNAME): New macro.
10804 (xic_free_xfontset): Declare.
c27ed90a 10805
068f3848
SM
10806 * xfns.c (xic_create_xfontset): Share fontsets between frames
10807 based on base_fontname.
10808 (xic_free_xfontset): New function.
10809 (free_frame_xic): Use it.
10810 (xic_set_xfontset): Ditto.
c27ed90a 10811
068f3848 10812 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a 10813
59508699
JR
108142004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
10815
10816 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
10817
dede2792
JD
108182004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10819
3aca2078
JD
10820 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
10821 XSync.
10822
dede2792
JD
10823 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
10824 New variables and constant.
10825 (main): Calculate heap_bss_diff. If we are dumping and the
10826 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
10827 and exec ourself again.
10828 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
10829 print a warning.
10830
10831 * lastfile.c: Make my_endbss and my_endbss_static available on all
10832 platforms.
10833
10834 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
10835 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
10836
1dc5ba01
LT
108372004-10-19 Luc Teirlinck <teirllm@auburn.edu>
10838
10839 * data.c (Flocal_variable_if_set_p): Doc fix.
10840
950090be
JR
108412004-10-19 Jason Rumney <jasonr@gnu.org>
10842
10843 * w32.c (init_environment): Set emacs_dir correctly when running
10844 emacs from the build directory.
10845
8550b998
RS
108462004-10-19 Richard M. Stallman <rms@gnu.org>
10847
10848 * editfns.c (Fdelete_and_extract_region):
10849 If region is empty, return null string.
10850
08dedea6
JD
108512004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10852
1dc5ba01 10853 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 10854 and canon_width.
068f3848 10855 (xg_frame_cleared): Remove.
08dedea6 10856
068f3848
SM
10857 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
10858 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
10859 (xg_create_scroll_bar): Put an event box widget between
10860 the scroll bar widget and the edit widget.
10861 (xg_show_scroll_bar): Show the parent widget (the event box).
10862 (xg_remove_scroll_bar): Destroy parent (the event box) also.
10863 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
10864 Move the parent (the event box) widget inside the fixed widget.
10865 Move window clear to xterm.c.
10866
068f3848 10867 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 10868
08dedea6 10869 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
10870 (x_scroll_bar_create, XTset_vertical_scroll_bar):
10871 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
10872 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
10873
8550b998 108742004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
10875
10876 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 10877
84338890
JD
108782004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10879
10880 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
10881 gdk_window_clear and move gdk_window_process_all_updates after
10882 clear so events are sent to the X server in correct order.
10883
6e1b0d8c
KH
108842004-10-18 Kenichi Handa <handa@m17n.org>
10885
10886 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
10887 comparing font names.
8550b998 10888 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
10889 (list_fontsets): Likewise.
10890
10891 * search.c (fast_string_match_ignore_case): New function.
10892
10893 * lisp.h (fast_string_match_ignore_case): Extern it.
10894
345e75a8
KS
108952004-10-17 Kim F. Storm <storm@cua.dk>
10896
10897 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
10898 than bitmap if there is not left fringe.
10899 (get_overlay_arrow_glyph_row): Also used on windows system.
10900 (display_line): Display overlay string if no left fringe.
10901
be13cbb7
JR
109022004-10-16 Jason Rumney <jasonr@gnu.org>
10903
10904 * w32fns.c (w32_font_match): Encode font name being matched.
10905
c2e2ede7
RS
109062004-10-16 Richard M. Stallman <rms@gnu.org>
10907
10908 * window.c (Fspecial_display_p): Doc fix.
10909
043f7f73 109102004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
10911
10912 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
10913 Don't ignore menus, because where-is-internal already does it for us.
10914
699a0392
KS
109152004-10-15 Kim F. Storm <storm@cua.dk>
10916
b3c7a89b
KS
10917 * xdisp.c (redisplay_window): Only update fringes and vertical
10918 border on window frames.
699a0392 10919
4e382b0f
AS
109202004-10-14 Andreas Schwab <schwab@suse.de>
10921
10922 * m/ia64.h (DATA_SEG_BITS): Don't define.
10923
329a7be2
KS
109242004-10-14 Kim F. Storm <storm@cua.dk>
10925
10926 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 10927 in some X versions.
329a7be2 10928
982241b1
SM
109292004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
10930
10931 * fns.c (map_char_table): Add missing gcpros.
10932
9238467d
SM
109332004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
10934
10935 * keymap.c (get_keymap): An autoload form is not a keymap.
10936
10937 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
10938
4440e3ca
KS
109392004-10-13 Kim F. Storm <storm@cua.dk>
10940
7cfdabde
KS
10941 * callproc.c (Fcall_process): Simplify handling of display arg.
10942 Resume `display_on_the_fly' once a coding system is determined.
10943
4440e3ca
KS
10944 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
10945
1c8dec6a
KS
109462004-10-12 Kim F. Storm <storm@cua.dk>
10947
10948 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
10949 caller, such as call-process, is not going to poll for input.
10950 (calc_line_height_property): Handle case where it->object is nil.
10951
10952 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
10953
170b174c
KH
109542004-10-12 Kenichi Handa <handa@m17n.org>
10955
9238467d
SM
10956 * xdisp.c (get_next_display_element):
10957 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
10958 chars in octal in unibyte buffer.
10959
b583964c
KS
109602004-10-12 Kim F. Storm <storm@cua.dk>
10961
10962 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
10963 are no ordinary bindings.
10964
29fabd8c
JD
109652004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10966
9238467d 10967 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 10968
c3f4c690
ST
109692004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10970
9238467d
SM
10971 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
10972 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 10973 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
10974 terminal frame.
10975 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
10976 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
10977 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
10978 Make a cancel file-open dialog be like C-g.
9238467d
SM
10979 * mac.c (mktime): Use emacs_mktime.
10980 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
10981 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 10982
9688f9eb
KS
109832004-10-10 Kim F. Storm <storm@cua.dk>
10984
10985 * keyboard.c (timer_resume_idle): New function to resume idle
10986 timer without resetting timers on the idle list.
52eb0373 10987 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
10988 (timer_start_idle, timer_stop_idle): Declare static.
10989 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
10990
10991 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
10992
f7f3a65f
ST
109932004-10-08 Steven Tamm <steventamm@mac.com>
10994
9238467d 10995 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 10996 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 10997 NULL where 0 should be used.
f7f3a65f
ST
10998 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
10999 objc/malloc.h
9238467d 11000 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 11001
3c7d999a
KS
110022004-10-07 Kim F. Storm <storm@cua.dk>
11003
11004 * xdisp.c (redisplay_window): Fix flicker on vertical line between
11005 windows. Update vertical line after drawing window fringes, but
11006 only if actually drawing any bitmaps--or there is no fringe.
11007
11008 * xterm.c (x_update_window_end): Likewise.
11009 * macterm.c (x_update_window_end): Likewise.
11010 * w32term.c (x_update_window_end): Likewise.
11011
11012 * fringe.c (draw_window_fringes): Return value now indicates if
11013 any fringe bitmaps were redrawn (or there are no fringes).
11014
11015 * dispextern.h (draw_window_fringes): Update prototype.
11016
bf06c82f
ST
110172004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11018
11019 * macfns.c (mac_get_window_bounds): Add extern.
11020 (x_real_positions): Use mac_get_window_bounds.
11021
11022 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
11023 xmenu.c (YAILOM).
3c7d999a 11024
bf06c82f
ST
11025 * macterm.c [!MAC_OSX]: Include Windows.h.
11026 (front_emacs_window): Rename from mac_front_window. All uses
11027 changed. Return the frontmost non-tooltip emacs window.
11028 (mac_get_window_bounds): New function.
11029 (x_calc_absolute_position): Use the difference of width and height
11030 between the inner and outer window.
11031 (x_set_offset): Specify window position by the coordinae of the
11032 outer window. Adjust the position if the title bar is completely
11033 outside the screen.
11034 (app_is_suspended, app_sleep_time): Remove unused variables.
11035 (do_app_resume, do_app_suspend): Remove their contents because
11036 window-activate/deactivate events will do the job.
11037 (do_zoom_window): Remove unused variables. Make compliant to the
11038 standard way of zooming. Set f->left_pos and f->top_pos.
11039 (XTread_socket): Don't use argument `expected'. Don't use
11040 FrontWindow to determine the clicked window. Exclude unprocessed
11041 mouseUp cases in the early stage. Add parentheses to fix operator
11042 precedence.
11043 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
11044
4cbbf6b7 110452004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
11046
11047 * config.in: Regenerate.
11048
11049 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
11050 HAVE_EXECSHIELD.
11051
b90ee8b5
JD
110522004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11053
11054 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
11055 a row if Alt or Meta has been found for that row. Also stop scanning
11056 for Keysyms for that row.
11057
904db1a2
KS
110582004-10-04 Kim F. Storm <storm@cua.dk>
11059
0207b8ad
KS
11060 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
11061 to list. Include overlay arrow bitmap in return value.
11062
25f7220c
KS
11063 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
11064 bars with fractional column width. If scroll bar separates two
11065 windows, move it towards the window it belongs to. Only update
11066 the padding area below the scroll bar widget when necessary,
11067 i.e. when scroll bar widget is created, moved, or resized.
11068
562020fe
KS
11069 * xdisp.c (define_frame_cursor1): Do not change frame cursor
11070 while tracking/dragging mouse.
11071 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
11072
37e34af7
KS
11073 * window.c (coordinates_in_window): Relax check for cursor
11074 on vertial border between mode lines.
11075 (Fset_window_fringes): Do not allow negative widths.
11076 (Fset_window_scroll_bars): Likewise.
11077
904db1a2
KS
11078 * .gdbinit (pp): Shorthand for p ARG + pr.
11079 (ff): New command: flush frame updates (X only).
11080
38fe4f64
MA
110812004-10-03 Michael Albinus <michael.albinus@gmx.de>
11082
11083 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
11084
9de36315
KH
110852004-09-30 Kenichi Handa <handa@m17n.org>
11086
07c381ad 11087 * process.c (send_process): Free composition data.
9de36315 11088
07c381ad 11089 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
11090
11091 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
11092 compositions to encode.
11093 (encode_coding_string): Likewise. Free composition data.
11094
d5fb8dab 110952004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
11096
11097 * coding.c (code_convert_region): Free composition data.
9de36315 11098
f2a54fbc
KS
110992004-09-29 Kim F. Storm <storm@cua.dk>
11100
dc5d6435
KS
11101 * fringe.c: Remove limit on number of bitmaps.
11102 (fringe_bitmaps, fringe_faces): Change to pointers.
11103 (max_fringe_bitmaps): New var.
11104 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
11105 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
11106
11107 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
11108 (struct glyph_row): Reorder fringe_bitmap related fields.
11109 (struct it): Likewise.
11110
11111 * w32term.c (fringe_bmp): Change to pointer.
11112 (max_fringe_bmp): New var.
11113 (w32_define_fringe_bitmap): Expand fringe_bmp.
11114 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
11115 (w32_destroy_fringe_bitmap): Likewise.
11116
111172004-09-29 Kim F. Storm <storm@cua.dk>
11118
11119 * fringe.c: Simplify last change.
f2a54fbc
KS
11120 (lookup_fringe_bitmap): New function.
11121 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
11122 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
11123 Keep standard bitmaps in Vfringe_bitmaps.
11124 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
11125 (Fset_fringe_bitmap_face): Likewise.
11126
11127 * dispextern.h (lookup_fringe_bitmap): Add prototype.
11128 (valid_fringe_bitmap_p): Remove prototype.
11129
11130 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
11131
841a8bca
KS
111322004-09-29 Kim F. Storm <storm@cua.dk>
11133
1f2da365
KS
11134 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
11135 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
11136
841a8bca
KS
11137 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
11138
11139 * fringe.c (Vfringe_bitmaps): New variable.
11140 (syms_of_fringe): DEFVAR_LISP it.
11141 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
11142 Change arg to Lisp_Object and fail if not an integer.
11143 (get_fringe_bitmap_name, resolve_fringe_bitmap)
11144 (destroy_fringe_bitmap): New functions.
9238467d
SM
11145 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
11146 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
11147 clear its fringe property.
11148 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
11149 Fdestroy_fringe_bitmap.
11150 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
11151 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
11152 and set fringe property. Signal error if no free slots.
11153 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
11154 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
11155
11156 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
11157 symbols with a fringe property.
11158
4d965590
KS
111592004-09-27 Kim F. Storm <storm@cua.dk>
11160
11161 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
11162 Doc fix. Format may now be a symbol or alist, not a cons.
11163
11164 * fringe.c (update_window_fringes): Handle new formats of
11165 indicate-buffer-boundaries (symbol or alist). No longer
11166 allow a simple cons.
11167 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
11168
e888c2b3
JD
111692004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11170
9238467d 11171 * config.in: Rebuild.
e888c2b3 11172
83f1cb94
JD
111732004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11174
11175 * config.in: Rebuild.
11176
9dd28cae 11177 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 11178
2c51754c
SM
111792004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
11180
11181 * xterm.c (x_term_init): Work around a bug in some X servers.
11182
3df5f8aa
RS
111832004-09-18 Richard M. Stallman <rms@gnu.org>
11184
557ca2c1
RS
11185 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
11186
3df5f8aa
RS
11187 * xdisp.c (try_window_reusing_current_matrix):
11188 Handle the case where we reach the old displayed text,
11189 out of sync with the old line boundary.
11190
9238467d 111912004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
11192
11193 * fileio.c (Finsert_file_contents): Fix case of replacement in a
11194 narrowed buffer.
11195
bfa02563
KS
111962004-09-14 Kim F. Storm <storm@cua.dk>
11197
a25fe164
KS
11198 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
11199
bfa02563
KS
11200 * xfaces.c (Qface_no_inherit): New var.
11201 (syms_of_xfaces): Intern and staticpro it.
11202 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
11203 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
11204 Don't increment face_change_count when face has non-nil
11205 face-no-inherit property.
11206
126f9c02
SM
112072004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
11208
892a8eb5
SM
11209 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
11210 (Fbyte_code): Remove dead code after `wrong_type_argument'.
11211
126f9c02 11212 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 11213 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 11214
c0ad3b38
KS
112152004-09-12 Kim F. Storm <storm@cua.dk>
11216
11217 * editfns.c (Fformat): Handle format strings with multiple text
11218 properties. Reverse text property list from the format string,
11219 so the positions are in increasing order.
11220
844fc085
JD
112212004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11222
11223 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
11224 x_uncatch_errors so that possible protocol errors are delivered.
11225
b106731c
EZ
112262004-09-10 Eli Zaretskii <eliz@gnu.org>
11227
21065c92
EZ
11228 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
11229 blockinput.h.
11230 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
11231 charset.h, and coding.h
9238467d 11232 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
11233 (term.o): Depend on window.h and keymap.h.
11234 (abbrev.o): Depend on syntax.h.
11235 (callint.o): Depend on keymap.h.
11236 (casefiddle.o): Depend on charset.h and keymap.h.
11237 (category.o): Depend on keymap.h.
11238 (coding.o): Depend on dispextern.h.
11239 (cmds.o): Depend on keyboard.h and keymap.h.
11240 (dispnew.o): Depend on indent.h and intervals.h.
11241 (doc.o): Depend on keymap.h.
11242 (editfns.o): Depend on frame.h.
11243 (emacs.o): Depend on dispextern.h.
11244 (fileio.o): Don't depend on ccl.h.
11245 (filelock.o): Depend on charset.h and coding.h.
11246 (frame.o): Depend on w32term.h and macterm.h.
11247 (insdel.o): Depend on region-cache.h.
11248 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
11249 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
11250 (search.o): Depend on $(INTERVALS_SRC).
11251 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
11252 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
11253 xterm.h, w32term.h, and macterm.h.
11254 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
11255 w32term.h, and macterm.h.
11256 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
11257 region-cache.h, xterm.h, w32term.h, and macterm.h.
11258 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
11259 (data.o): Depend on frame.h.
11260 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
11261 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
11262 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
11263 (intervals.o): Depend on keymap.h.
11264
9238467d
SM
11265 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
11266 Add debugging print-out to termscript.
b106731c 11267
64b7122d
RS
112682004-09-09 Richard M. Stallman <rms@gnu.org>
11269
11270 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
11271
5670531e
RS
112722004-09-08 Richard M. Stallman <rms@gnu.org>
11273
6cb4a892
RS
11274 * window.c (Fset_window_buffer): Doc fix.
11275
5670531e
RS
11276 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
11277
7e388eb7
JL
112782004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
11279
11280 * minibuf.c (history_delete_duplicates): New variable.
11281 (read_minibuf): Use it.
11282 (syms_of_minibuf): Create the corresponding lisp variable.
11283
370e3587
KS
112842004-09-08 Kim F. Storm <storm@cua.dk>
11285
11286 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
11287 overlay just before point.
11288
f844ba4e
LT
112892004-09-07 Luc Teirlinck <teirllm@auburn.edu>
11290
11291 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
11292 * buffer.c (reset_buffer, init_buffer_once):
11293 Handle auto_save_file_format field.
f844ba4e
LT
11294 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
11295 `buffer-auto-save-file-format'.
f844ba4e
LT
11296 * fileio.c: Delete declaration for removed Vauto_save_file_format.
11297 (build_annotations): Adapt to replacement of
11298 `auto-save-file-format' with the new buffer-local variable
11299 `buffer-auto-save-file-format'.
11300 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
11301
f0f90717
JR
113022004-09-07 Jason Rumney <jasonr@gnu.org>
11303
11304 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
11305
9238467d
SM
11306 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
11307 Handle Unicode menu titles.
f0f90717 11308
4e14f66c
KS
113092004-09-07 Kim F. Storm <storm@cua.dk>
11310
11311 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
11312 property from text property or overlay strings at point.
11313
9238467d 113142004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
11315
11316 * xmenu.c (update_submenu_strings): YAILOM.
11317 (set_frame_menubar): Make sure last_i is initialized.
11318
1f06d367
JR
113192004-09-03 Jason Rumney <jasonr@gnu.org>
11320
1806714a 11321 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
11322 (digest_single_submenu): Set lname and lkey in widget_value
11323 instead of name and key.
11324 (update_submenu_strings): New function.
11325 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11326 call update_submenu_strings.
11327
11328 * w32menu.c (globals_of_w32menu): Check for Unicode API.
11329 (digest_single_submenu, w32_menu_show): Encode menu strings as
11330 UTF-8 if Unicode API is available.
11331 (utf8to16): New function.
11332 (add_menu_item): Use it when calling Unicode API.
1806714a 11333
46540080
KS
113342004-09-03 Kim F. Storm <storm@cua.dk>
11335
11336 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
11337 in overlay or text-property strings; set cursor on corresponding
11338 glyph rather than at end of the string.
11339
9277ba61 113402004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 11341
9277ba61 11342 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
11343 set a new one before obtaining the global coordinate.
11344 Use FRAME_MAC_WINDOW.
11345 (x_set_name, x_set_title): Encode title to UTF8.
11346 Use SetWindowTitleWithCFString.
9277ba61
ST
11347 (Fx_server_version): Get correct OS version.
11348
1806714a
SM
11349 * macmenu.c (add_menu_item): Remove unused variable `i'.
11350 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
11351
11352 * macterm.c (x_update_end): Move SetPortWindowPort to inside
11353 BLOCK_INPUT.
11354 (x_set_offset): Use FRAME_MAC_WINDOW.
11355
11356 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
11357 nontext_cursor if it is on a scroll bar.
11358
11359 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
11360 Carbon support.
1806714a
SM
11361 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
11362 Use LIBS_CARBON.
9277ba61 11363
b10daec7
JD
113642004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11365
11366 * xfns.c (x_set_name_internal): New function. Check if we shall call
11367 xfree before ENCODE_UTF_8.
11368 (x_set_name, x_set_title): Call x_set_name_internal.
11369
f7e22385
JR
113702004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
11371
11372 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
11373 reload it.
11374
2bf436c3
JD
113752004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11376
1806714a 11377 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
11378 (single_submenu): Set lname and lkey in widget_value
11379 instead of name and key.
11380 (update_submenu_strings): New function.
11381 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11382 call update_submenu_strings.
11383
2bf436c3
JD
11384 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
11385 instead of name and key.
11386 (update_submenu_strings): New function.
11387 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 11388 call update_submenu_strings.
2bf436c3
JD
11389
11390 * gtkutil.h (_widget_value): Added lname and lkey.
11391
11715f92
ST
113922004-08-30 Steven Tamm <steventamm@mac.com>
11393
11394 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
11395 by using different names for inner loop variables.
11396
5500be54
JD
113972004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11398
059cd329
JD
11399 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
11400 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
11401
5500be54
JD
11402 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
11403 tool bar items is 0.
11404
383418e5
ST
114052004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11406
11407 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
11408 strings in menu items.
11409 (single_submenu): Use ENCODE_MENU_STRING
11410 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
11411 button release isn't passed to event loop
11412 (add_menu_item): Use SetMenuItemWithCFString
11413
6eb3ee72
ST
114142004-08-26 Steven Tamm <steventamm@mac.com>
11415
11416 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
11417 tool-bar/menu click.
11418 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 11419
10b43ac3
JD
114202004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11421
2728b5d0
JD
11422 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
11423
10b43ac3
JD
11424 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11425 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11426 (x_top_window_to_frame): Return 0 if wdesc is None.
11427
2ee3b79e
RS
114282004-08-22 Richard M. Stallman <rms@gnu.org>
11429
11430 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
11431 HAVE_TERMIOS]: If there's no char for this signal, drop through
11432 and use system calls.
11433
11434 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
11435
9a1ba2ea
KS
114362004-08-20 Kim F. Storm <storm@cua.dk>
11437
11438 * process.c (wait_reading_process_output): Rename from
11439 wait_reading_process_input. All uses changed.
11440 (wait_reading_process_output_1): Rename from
11441 wait_reading_process_input_1. All uses changed.
11442
11443 * dispnew.c (Fsleep_for): Remove obsolete code.
11444
295f3b30
KH
114452004-08-20 Kenichi Handa <handa@m17n.org>
11446
11447 * syntax.c (skip_chars): Fix for unibyte case.
11448
27615979
SM
114492004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11450
11451 * syntax.c (char_quoted): Mixup byte/char pos.
11452 (back_comment): Fixup globals in all cases.
11453
00267f94
JD
114542004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11455
11456 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
11457 passing it to gtk_window_set_title.
11458
2439909e
KS
114592004-08-19 Kim F. Storm <storm@cua.dk>
11460
6ba0f14c
KS
11461 * process.c (wait_reading_process_input): Clean up.
11462 Add wait_for_cell, wait_proc, and just_wait_proc args
11463 to avoid overloading `read_kbd' and `do_display' args.
11464 Change read_kbd arg to int. All callers changed.
11465
2439909e
KS
11466 * process.c (process_send_signal): Use CDISABLE.
11467
11468 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
11469
101c421e
KS
114702004-08-18 Kim F. Storm <storm@cua.dk>
11471
11472 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
11473 forward to wait_reading_process_input via DO_DISPLAY arg.
11474 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
11475 object, only process output from that process; also inhibit
11476 running timers if DO_DISPLAY==-2.
11477
c438dc33
KS
114782004-08-17 Kim F. Storm <storm@cua.dk>
11479
11480 * process.c (process_send_signal): Fix last change--use
11481 _POSIX_VDISABLE instead of CVDISABLE when available.
11482
8afc13c6
RS
114832004-08-16 Richard M. Stallman <rms@gnu.org>
11484
11485 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
11486 Set VQUIT and VINTR chars to the standard ones if they are unset.
11487 [AIX]: Don't do that here. And don't force VINTR to standard
11488 when SIGNALS_VIA_CHARACTERS.
11489
c438dc33 11490 * process.c (process_send_signal)
8afc13c6
RS
11491 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
11492 Do nothing if the character is CVDISABLE.
11493
11494 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
11495
c438dc33 11496 * intervals.c (move_if_not_intangible):
8afc13c6
RS
11497 Force POSITION to be between BEGV and ZV.
11498
6dad1714
JPW
114992004-08-14 John Paul Wallington <jpw@gnu.org>
11500
11501 * buffer.c (Frestore_buffer_modified_p): Doc fix.
11502
11503 * fileio.c (Fread_file_name): Doc fix.
11504
11505 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11506
2bd77330
LT
115072004-08-09 Luc Teirlinck <teirllm@auburn.edu>
11508
11509 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
11510
c90e7e43
LT
115112004-08-08 Luc Teirlinck <teirllm@auburn.edu>
11512
11513 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 11514 Qdisabled_command_hook.
c90e7e43 11515 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 11516 Qdisabled_command_hook.
c90e7e43
LT
11517 (syms_of_keyboard): Ditto.
11518
81909a1a
LT
115192004-08-07 Luc Teirlinck <teirllm@auburn.edu>
11520
11521 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
11522 (syms_of_keymap) <key-translation-map>: Doc fixes.
11523
0cedd530
SM
115242004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
11525
1725a7c9
SM
11526 * window.c (window_list_1): YAILOM.
11527
0cedd530
SM
11528 * fileio.c (make_temp_name): Handle multibyte prefixes.
11529
2515a131
LT
115302004-08-06 Luc Teirlinck <teirllm@auburn.edu>
11531
11532 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
11533 Doc fix.
11534
c8b20fb7
KH
115352004-08-03 Kenichi Handa <handa@m17n.org>
11536
11537 * coding.c (decode_coding_string): Adjust coding->consumed, and
11538 etc. with shrinked_bytes.
11539
fb8b092b
KS
115402004-08-03 Kim F. Storm <storm@cua.dk>
11541
11542 * indent.c (compute_motion): Fix check for full width window
11543 in non-window case. Do not count left truncation glyph on
11544 window systems.
11545
df133612
LT
115462004-08-02 Luc Teirlinck <teirllm@auburn.edu>
11547
11548 * data.c (Finteractive_form): Doc fix.
11549
0f7a93c1
KS
115502004-08-02 Kim F. Storm <storm@cua.dk>
11551
11552 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
11553 properly accounting for continuation glyph on non-window systems.
11554 (Fcompute_motion): Use actual window width if WIDTH is nil, and
11555 actual window width/height if TOPOS is nil, properly accounting for
11556 continuation glyphs on non-window systems, and optional header lines.
11557 (vmotion): Let compute_motion calculate actual window width.
11558
11559 * window.c (window_scroll_line_based): Let compute_motion
11560 calculate actual window width.
11561
f491e1ed
KS
115622004-08-02 Kim F. Storm <storm@cua.dk>
11563
11564 * process.c (read_process_output): Use whole read buffer.
11565 Don't trigger adaptive read buffering on errors.
11566
83f64226
LT
115672004-07-31 Luc Teirlinck <teirllm@auburn.edu>
11568
11569 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
11570
1d1c7e75 11571 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
11572
11573 * callint.c (Fcall_interactively): Doc fix.
11574
8afc13c6
RS
115752004-07-30 Richard M. Stallman <rms@gnu.org>
11576
11577 * abbrev.c (Fexpand_abbrev): Undo previous change.
11578
7c111482
KS
115792004-07-30 Kim F. Storm <storm@cua.dk>
11580
11581 * editfns.c (Fformat): Allocate extra (dummy) element in info.
11582
ee945d08
LT
115832004-07-28 Luc Teirlinck <teirllm@auburn.edu>
11584
11585 * eval.c (Fdefvar, Fdefconst): Doc fixes.
11586
3f911c94
KS
115872004-07-27 Kim F. Storm <storm@cua.dk>
11588
11589 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
11590 we have ensured that the glyph fits on the current line (or returned
11591 MOVE_LINE_CONTINUED otherwise).
11592
f29ff8c7
KS
115932004-07-26 Kim F. Storm <storm@cua.dk>
11594
11595 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
11596 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
11597 if target position is at end of display line but char is not a newline.
11598
81159bb9
RS
115992004-07-25 Richard M. Stallman <rms@gnu.org>
11600
ab431b61
RS
11601 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
11602 instead of ON_VERTICAL_BORDER, when on scroll bar.
11603 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
11604
11605 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
11606
f29ff8c7 11607 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
11608 Take account of FRAME_INTERNAL_BORDER_WIDTH.
11609
11610 * alloc.c (check_cons_list): New function (contents commented out).
11611
fc820cc5
LT
116122004-07-24 Luc Teirlinck <teirllm@auburn.edu>
11613
11614 * xfaces.c (Fcolor_supported_p): Doc fix.
11615
11616 * frame.c (Fselect_frame, Fset_frame_selected_window)
11617 (Fframe_visible_p, Fraise_frame): Doc fixes.
11618
289978b5
LT
116192004-07-24 Richard M. Stallman <rms@gnu.org>
11620
78819ebb 11621 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
11622
11623 * fileio.c (Fwrite_region): Doc fix.
11624
11625 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
11626
11627 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
11628 only when a real abbrev is present.
11629
289978b5
LT
11630 * xfns.c (x_icon_verify): New function.
11631 (Fx_create_frame): Use it.
11632
d5fb8dab 116332004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
11634
11635 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
11636
36f826d4
KS
116372004-07-21 Kim F. Storm <storm@cua.dk>
11638
11639 * window.h (struct glyph_matrix): New members nrows_scale_factor
11640 and ncols_scale_factor.
11641
11642 * window.c (make_window): Initialize nrows_scale_factor and
11643 ncols_scale_factor members.
11644
11645 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
11646 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
11647 (required_matrix_height): Apply nrows_scale_factor.
11648 (required_matrix_width): Apply ncols_scale_factor.
11649
11650 * xdisp.c (display_line): Increment nrows_scale_factor and set
11651 fonts_changed_p if past last allocated row.
11652 (append_glyph, append_composite_glyph, produce_image_glyph)
11653 (append_stretch_glyph): Increment ncols_scale_factor and set
11654 fonts_changed_p if current area is full.
11655
5fc1c546
JD
116562004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11657
11658 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
11659
cb7516e5
LT
116602004-07-19 Luc Teirlinck <teirllm@auburn.edu>
11661
11662 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
11663 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
11664 (Fset_window_start, Fscroll_up, Fscroll_down)
11665 (Fother_window_for_scrolling, Fscroll_other_window)
11666 (Fsave_window_excursion, Fset_window_vscroll)
11667 (syms_of_window) <window-size-fixed>: Doc fixes.
11668
b6189c3b 116692004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
11670
11671 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
11672 ENCODE_SYSTEM for filenames.
11673
bfcf6608
ST
116742004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11675
11676 * mac.c (sys_select): Block input around call to
11677 ReceiveNextEvent to prevent breakage. Correctly handle
11678 blocking on event queue only by calling ReceiveNextEvent
11679 instead of select (since GUI events aren't on an fd).
11680 (sys_read): Remove function
11681 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
11682
e082ac9d
ST
116832004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11684
11685 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 11686 polling instead of 1 sec timeouts (like solaris).
e082ac9d 11687
cb7516e5 11688 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
11689 frame creation.
11690
11691 * keyboard.c: Undef SIGIO on Carbon
11692
11693 * atimer.c (alarm_signal_handler): Call alarm handlers after
11694 scheduling.
11695
11696 * eval.c (Feval): Remove quit_char test
11697
11698 * process.c (wait_reading_process_input): Remove clearing
11699 stdin for select call on process input.
11700
4b9da0fb
LT
117012004-07-18 Luc Teirlinck <teirllm@auburn.edu>
11702
1204e81c
LT
11703 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
11704 capitalization error in docstring.
4b9da0fb 11705
26503ad2
JB
117062004-07-17 Juanma Barranquero <lektu@terra.es>
11707
11708 * keyboard.c (not_single_kboard_state): Do nothing unless
11709 MULTI_KBOARD is defined.
11710
3751eb00
RS
117112004-07-17 Richard M. Stallman <rms@gnu.org>
11712
11713 * window.c (coordinates_in_window): Inside the window but outside
11714 its box to the L or R, return ON_VERTICAL_BORDER.
11715 (window_list_1): Rotate the list to start with WINDOW.
11716
11717 * print.c (print_preprocess): Test for print_depth at limit
11718 before entering in being_printed.
11719
11720 * keyboard.c (not_single_kboard_state): New function.
11721 (stuff_buffered_input): Now no-op only if no SIGTSTP.
11722
11723 * frame.c (Fdelete_frame): If we're in single_bboard_state on
11724 this kboard, and we delete its last frame, go to any_kboard_state.
11725
11726 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
11727
b6189c3b 117282004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
11729
11730 * w32fns.c (Fx_file_dialog): Encode strings in system coding
11731 system before passing them to OS functions for display.
11732
0f6af254
DK
117332004-07-15 David Kastrup <dak@gnu.org>
11734
f9253326
KS
11735 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
11736 Apparently fixes an abort condition.
0f6af254 11737
386c8f42
LT
117382004-07-14 Luc Teirlinck <teirllm@auburn.edu>
11739
11740 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
11741 instead of a cons.
11742
d495ccfc 117432004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
366511da
MB
11744
11745 * keyboard.c (echo_dash): Do nothing if there already is a dash
11746 at the end of the echo string.
11747
f85409d3
KS
117482004-07-12 Kim F. Storm <storm@cua.dk>
11749
11750 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
11751 if GC_MARK_STACK.
11752
0ba2e87b
LT
117532004-07-10 Luc Teirlinck <teirllm@auburn.edu>
11754
da38045d
LT
11755 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
11756
9dd28cae 11757 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
0ba2e87b
LT
11758 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
11759 (Freplace_buffer_in_windows, Fset_window_buffer)
11760 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
11761 (syms_of_window): Expand docstring of `display-buffer-function'.
11762
5668fbb8
LT
117632004-07-09 Luc Teirlinck <teirllm@auburn.edu>
11764
11765 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
11766 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
11767 that time values of the type (HIGH . LOW) are considered obsolete.
11768
a085bf9d
LT
117692004-07-06 Luc Teirlinck <teirllm@auburn.edu>
11770
669de2fb
LT
11771 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
11772 docstring.
11773
bac66325 11774 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 11775
8e975df9
JPW
117762004-07-06 John Paul Wallington <jpw@gnu.org>
11777
11778 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
11779
fa164e6a
JPW
11780 * fns.c (Fclear_string): Signal an error if STRING is not a string.
11781
2bac9bb1
JD
117822004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11783
11784 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
11785 instead of CGMainDisplayID (only in OSX 10.2 and later).
11786
316ef0dc
JPW
117872004-07-04 John Paul Wallington <jpw@gnu.org>
11788
11789 * fileio.c (read_file_name_completion_ignore_case): New variable.
11790 (syms_of_fileio): Declare and initialise it.
11791 (Fread_file_name): Bind `completion-ignore-case' to respect it.
11792
2a1a35c6
EZ
117932004-07-03 Eli Zaretskii <eliz@gnu.org>
11794
11795 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
11796 for event.x and event.y.
11797
33a72331
KH
117982004-07-01 Kenichi Handa <handa@m17n.org>
11799
11800 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
11801 after getting a new string by pre-write-conversion.
11802
9238467d 118032004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
11804
11805 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
11806 (x_calc_absolute_position): Remove unused var `child'.
11807
11808 * xfaces.c (x_supports_face_attributes_p)
11809 (Fdisplay_supports_face_attributes_p): YAILOM.
11810 (tty_supports_face_attributes_p): Remove unused var `i'.
11811
11812 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
11813 back_unibyte_ok.
11814
11815 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
11816
647b07d1
AS
11817 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
11818 `registry'.
07a6ab76
SM
11819
11820 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
11821
f96ec754
AS
118222004-06-30 Andreas Schwab <schwab@suse.de>
11823
11824 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
11825 (Finit_image_library): Pass LIBRARIES through to
11826 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
11827 (lookup_image_type): Pass Qnil as second argument to
11828 Finit_image_library.
11829
78819ebb 11830 * lisp.h (Finit_image_library): Declare.
f96ec754 11831
59feca74 118322004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 11833
31983645
AS
11834 * macterm.c (do_window_activate, do_window_deactivate): Remove.
11835 (XTread_socket): Send mouse button events to the toolbox
11836 dispatcher even when the mouse is grabbed. Don't process window
11837 activate events for non-Emacs windows. Replace function calls to
11838 do_window_activate and do_window_deactivate with their contents.
11839 Reset mouse grabbing status when a window is deactivated.
59feca74 11840
c61278bb
ST
118412004-06-29 Steven Tamm <steventamm@mac.com>
11842
11843 * macterm.c (mac_get_emulated_btn)
11844 (mac_event_to_emacs_modifiers): Fix emulated mouse button
11845 support to correctly mask out modifiers.
11846
c3762cbd
DK
118472004-06-29 David Kastrup <dak@gnu.org>
11848
11849 * search.c (Fset_match_data): Allow buffer before end of list
11850 which can happen if set-match-data is using a pre-consed list.
11851
c61278bb 118522004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
11853
11854 * macterm.c (XTread_socket): Correctly set the frame position
11855 after the window is moved.
11856
74cdfe05
JD
118572004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11858
11859 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
11860 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
11861 (xg_get_image_for_pixmap): Add workaround for monochrome displays
11862 so insensitive and activated icons look ok.
74cdfe05 11863
ef544dc8
JR
118642004-06-27 Jason Rumney <jasonr@gnu.org>
11865
11866 * w32fns.c (file_dialog_callback): Disable edit control if set
11867 to directories only on CDN_INITDONE message.
11868 (Fx_file_dialog): Default to directories only when prompt starts
11869 with "Dired".
11870
7b7990cc
KS
118712004-06-25 Kim F. Storm <storm@cua.dk>
11872
11873 * alloc.c (allocate_misc): Update total_free_markers.
11874 (free_misc): New function.
11875 (safe_alloca_unwind, free_marker): Use it.
11876
11877 * lisp.h (free_misc): Add prototype.
11878
11879 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
11880
d8c379f8
RS
118812004-06-24 Richard M. Stallman <rms@gnu.org>
11882
11883 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
11884 (syms_of_emacs): Lisp variables deleted.
11885
559cdd07
DK
118862004-06-23 David Kastrup <dak@gnu.org>
11887
94939b84
DK
11888 * search.c (Freplace_match): Adjust the match-data more thoroughly
11889 when replacing strings in the buffer.
11890 (Fmatch_data): When INTEGERS is non-nil and the last match was in
11891 a buffer, add the buffer as last element to the match data.
11892 (Fset_match_data): If an additional element of the match-data is a
11893 buffer, restore it to last_thing_searched.
c8d09ad8 11894 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
11895 (restore_match_data): Restore it again.
11896
dce417e7
LT
118972004-06-23 Luc Teirlinck <teirllm@auburn.edu>
11898
11899 * keymap.c (Ftext_char_description): Doc fix.
11900 * doc.c (Fsnarf_documentation): Doc fix.
11901
ef54b2d0
KS
119022004-06-22 Kim F. Storm <storm@cua.dk>
11903
b5bc4d05
KS
11904 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
11905
ef54b2d0
KS
11906 * lisp.h (struct Lisp_Save_Value): New member dogc.
11907 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
11908 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
11909 (SAFE_FREE_LISP): New macro.
11910
11911 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
11912 (make_save_value): Init new dogc member.
11913 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
11914
11915 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
11916 SAFE_FREE_LISP macros.
11917
3d33d993
KS
119182004-06-22 Kim F. Storm <storm@cua.dk>
11919
11920 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
11921 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
11922 in that memory area are unknown to GC. Add comments.
11923
11924 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
11925
5c917f98
KS
119262004-06-21 Kim F. Storm <storm@cua.dk>
11927
11928 * lisp.h (MAX_ALLOCA): Define here.
11929 (safe_alloca_unwind): Add prototype.
11930 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
11931
11932 * alloc.c (safe_alloca_unwind): New function.
11933
11934 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
11935
11936 * charset.c (Fstring): Use SAFE_ALLOCA.
11937
11938 * coding.c (MAX_ALLOCA): Remove define.
11939
11940 * data.c (MAX_ALLOCA): Remove define.
11941 (Faset): Use SAFE_ALLOCA.
11942
11943 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
11944
11945 * fns.c (string_make_multibyte, string_to_multibyte)
11946 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
11947 (MAX_ALLOCA): Remove define.
11948 (Fbase64_encode_region, Fbase64_encode_string)
11949 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
11950 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
11951 memory leak if encoding fails.
11952
11953 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
11954
9a09408e
EZ
119552004-06-21 Eli Zaretskii <eliz@gnu.org>
11956
11957 * print.c (Fwith_output_to_temp_buffer): Doc fix.
11958
376de739
RS
119592004-06-20 Richard M. Stallman <rms@gnu.org>
11960
11961 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
11962
11963 * search.c (match_limit): Cleaner err msg when no match data available.
11964
11965 * window.c (syms_of_window): Doc fix.
11966
11967 * keyboard.c (command_loop_1): Handle values `only' and `identity'
11968 for Vtransient_mark_mode.
11969
11970 * buffer.c (syms_of_buffer): Doc fix.
11971
acd81db9
DK
119722004-06-21 David Kastrup <dak@gnu.org>
11973
11974 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
11975 and unbinding of `case-fold-search' according to
11976 `completion-ignore-case' around calls of string-match and
11977 predicates, respectively. Should give satisfactory performance
11978 in all relevant cases.
11979
f303762d
JD
119802004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11981
95911c74
JD
11982 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
11983 clip_x/y_origin.
11984
a6cb6b78
JD
11985 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
11986
f303762d
JD
11987 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
11988
11989 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
11990 on Mac OSX.
11991
bbdb2684
LT
119922004-06-16 Luc Teirlinck <teirllm@auburn.edu>
11993
11994 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
11995
5ea48b1c
KS
119962004-06-16 Kim F. Storm <storm@cua.dk>
11997
11998 * dispextern.h (Vimage_types): Remove extern.
11999
803aac3e
MB
120002004-06-16 Miles Bader <miles@gnu.org>
12001
12002 * image.c (lookup_image_type): Initialize image type if necessary.
12003
cdc97764
KS
120042004-06-15 Kim F. Storm <storm@cua.dk>
12005
c4a5739c
KS
12006 * xdisp.c (try_cursor_movement): Exclude header line from scroll
12007 margin at top of window.
12008 (try_window_reusing_current_matrix): Calculate proper cursor position
12009 after scrolling up with non-zero scroll margin, as the old cursor
12010 position corresponds to value of PT before executing this command.
12011 (try_window_id): Consider scroll margin at bottom of window too;
12012 otherwise we fail to scroll when hl-line-mode is enabled.
12013
cdc97764
KS
12014 * syntax.c (skip_chars): Only recognize [:class:] when it has the
12015 proper format and class is a lower-case word.
12016
5b166323
JD
120172004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12018
12019 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 12020 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
12021 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
12022 xg_get_gdk_pixmap_and_mask.
cdc97764 12023
5b166323
JD
12024 * xterm.h (struct x_display_info): Typo in comment fixed.
12025
1ebd4f78
JB
120262004-06-14 Juanma Barranquero <lektu@terra.es>
12027
12028 * dispextern.h (Vimage_types): Make it conditional on
12029 HAVE_WINDOW_SYSTEM.
12030
12031 * image.c (Vimage_types): Move from xdisp.c.
12032 (Vimage_type_cache): New variable.
12033 (define_image_type): New argument indicating whether an image
12034 library was loaded; cache loaded status and return t on success,
12035 nil otherwise.
12036 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
12037 (w32_delayed_load): New function to load an image library from a
12038 list of possible filenames.
12039 (init_xpm_functions, init_png_functions, init_jpeg_functions)
12040 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 12041 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
12042 (Finit_image_library): New function, extracted from `init_image'.
12043 Try to initialize an image library on demand and cache whether we
12044 were successful or not.
12045 (syms_of_image): Initialize `Vimage_types' and
12046 `Vimage_type_cache'. Add recognized image types to Vimage_types.
12047 Export `init-image-library'.
12048 (init_image): Remove initialization of all image types, except xbm
12049 and pbm.
12050
12051 * xdisp.c (Vimage_types): Delete (moved to image.c).
12052
904ee128
AS
120532004-06-14 Andreas Schwab <schwab@suse.de>
12054
12055 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12056 Avoid calling specbind when completion-regexp-list is empty.
12057
092de21d
RS
120582004-06-13 Richard M. Stallman <rms@gnu.org>
12059
12060 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12061 (re_wctype, re_iswctype, re_wctype_to_bit):
12062 Non-function definitions moved here from regex.c.
1ebd4f78 12063
092de21d
RS
12064 * regex.c (re_wctype, re_iswctype): Function defs longer static.
12065 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12066 (re_wctype, re_iswctype, re_wctype_to_bit):
12067 Non-function definitions moved to regex.h.
12068
12069 * window.c (Fselect_window): Doc fix.
12070
12071 * syntax.c: Include regex.h.
12072 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
12073 If requested, make a list of classes, then check the scanned
12074 chars for membership in them.
12075 (in_classes): New function.
12076 Doc fix.
12077
12078 * keyboard.c (cmd_error): Don't call any_kboard_state
12079 if inside a recursive edit level.
12080
d495ccfc 120812004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
092de21d
RS
12082
12083 * keyboard.c (command_loop): Call any_kboard_state before
12084 command_loop_2 when at top level.
12085
3ebc0939
AS
120862004-06-13 Andreas Schwab <schwab@suse.de>
12087
cea5d0d4
AS
12088 * print.c (print_object): Always use %ld for printing EMACS_INT.
12089
12090 * keyboard.c (cancel_hourglass_unwind): Return a value.
12091 (modify_event_symbol): Always use %ld for printing EMACS_INT.
12092 (Fexecute_extended_command): Likewise.
12093
12094 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
12095 avoid clashes.
12096 (SYNTAX): Likewise.
12097 (SYNTAX_WITH_FLAGS): Likewise.
12098 (SYNTAX_MATCH): Likewise.
12099
12100 * syntax.c (char_quoted): Avoid warning about undefined operation.
12101 (find_defun_start): Likewise.
12102 (scan_lists): Likewise.
12103 (INC_FROM): Likewise.
12104 (scan_sexps_forward): Likewise.
12105
be8c4ce4
AS
12106 * image.c: Include <ctype.h>.
12107
3ebc0939
AS
12108 * xfaces.c (face_attr_equal_p): Declare parameters.
12109
6fb41b5b
KH
121102004-06-13 Kenichi Handa <handa@m17n.org>
12111
12112 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
12113
fc3095ce
EZ
121142004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
12115
12116 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
12117
66189a40
KH
121182004-06-12 Kenichi Handa <handa@m17n.org>
12119
12120 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
12121 ccl_prog_stack_struct and update it.
12122 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
12123 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
12124 ccl->eof_ic on EOF.
12125 (ccl_debug_hook): New function.
12126 (struct ccl_prog_stack): New member eof_ic.
12127 (ccl_driver): Handle EOF in subrountine call correctly.
12128
121292004-06-11 Kenichi Handa <handa@m17n.org>
12130
a9b43336 12131 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 12132
1da71023
KS
121332004-06-11 Kim F. Storm <storm@cua.dk>
12134
12135 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
12136
e9efcef4
JB
121372004-06-11 Juanma Barranquero <lektu@terra.es>
12138
12139 * keyboard.c (Fposn_at_point): Doc fix.
12140
9b9ceb61
DK
121412004-06-11 David Kastrup <dak@gnu.org>
12142
12143 * search.c (match_limit): Don't flag an error if match-data
12144 exceeding the allocated search_regs.num_regs gets requested, just
12145 return Qnil.
12146
6e87ac8f
MB
121472004-06-08 Miles Bader <miles@gnu.org>
12148
12149 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
12150
0b0dea7b
JB
121512004-06-07 Juanma Barranquero <lektu@terra.es>
12152
12153 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
12154 (Fcurrent_time_string, Fcurrent_time_zone)
12155 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
12156
a0a23346
MB
121572004-06-07 Miles Bader <miles@gnu.org>
12158
08384afd 12159 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
12160 (push_named_merge_point): New function.
12161 (merge_named_face): New function.
12162 (merge_face_ref, face_at_buffer_position, face_at_string_position):
12163 Use `merge_named_face'.
12164 (merge_face_inheritance): Function removed.
c8d09ad8 12165 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
12166 Add new `err_msgs' and `named_merge_points' args. Return error
12167 status. Only print error messages if ERR_MSGS is true. Don't try to
12168 do :inherit attribute validation.
12169 (merge_face_heights): Handle `unspecified' in both directions.
12170 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
12171 Call `merge_face_ref' instead of `merge_face_inheritance'.
12172 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
12173 (compute_char_face, face_at_buffer_position)
12174 (face_at_string_position): Call `merge_face_ref' instead of
12175 `merge_face_vector_with_property'.
12176
12d5b185
KH
121772004-06-07 Kenichi Handa <handa@m17n.org>
12178
12179 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
12180 the necessary places.
12181
2e2d7ee6
KS
121822004-06-07 Kim F. Storm <storm@cua.dk>
12183
12184 * process.c (Fdelete_process): Undo 2004-05-28 change.
12185 Instead, call status_notify also for network process.
12186 (status_message): Use process instead of status as arg.
12187 Give messages "deleted" or "connection broken by remote peer" for
12188 an exited network process.
12189 (status_notify): Change call to status_message.
12190 (read_process_output): Increase readmax to 4096. Do not increase
12191 buffer size for datagram channels (default is now large enough).
12192
fcf0d299
ST
121932004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
12194
12195 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
12196 problem due to newly defined variable.
12197
0722292b
MB
121982004-06-06 Miles Bader <miles@gnu.org>
12199
12200 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
12201 immediately if non-interactive or not initialized.
12202
ddfb8369
RS
122032004-06-05 Richard M. Stallman <rms@gnu.org>
12204
12205 * minibuf.c (Fcompleting_read): Doc fix.
12206
57015754
AS
122072004-06-05 Andreas Schwab <schwab@suse.de>
12208
12209 * macfns.c (x_create_tip_frame): Fix declaration after statement.
12210
23715ea6
JB
122112004-06-05 Juanma Barranquero <lektu@terra.es>
12212
12213 * keymap.c (Fdescribe_vector): Fix docstring.
12214 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
12215
8e330b22
MB
122162004-06-05 Miles Bader <miles@gnu.org>
12217
12218 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
12219 attributes have different values than the default face.
12220
9742a3a6
EZ
122212004-06-04 Eli Zaretskii <eliz@gnu.org>
12222
12223 * xfaces.c (x_supports_face_attributes_p): Make this function
12224 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
12225 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
12226 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 12227
9717e36c
MB
122282004-06-04 Miles Bader <miles@gnu.org>
12229
12230 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
12231 from Ftty_supports_face_attributes_p.
12232 (x_supports_face_attributes_p): New function.
12233 (Ftty_supports_face_attributes_p): Function deleted.
12234 (Fdisplay_supports_face_attributes_p): New function.
12235 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 12236 (face_attr_equal_p): New function.
9717e36c
MB
12237 (lface_equal_p): Use it.
12238
52deb19f
JB
122392004-06-03 Juanma Barranquero <lektu@terra.es>
12240
12241 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
12242 (Vw32_color_map): Fix typo in docstring.
12243 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
12244 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
12245 Make argument names match their use in docstring.
12246
86d373e6
JB
122472004-06-02 Juanma Barranquero <lektu@terra.es>
12248
12249 Work around bugs/problems with MinGW builds of graphics libraries
12250 called from MSVC builds of Emacs.
12251
12252 * image.c (lookup_image): Make pointer to img static.
12253 (png_read_from_memory): Disable "global" optimization.
12254
2fb0ce67
SM
122552004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
12256
c8d09ad8
SM
12257 * eval.c (Fcondition_case): Fix usage. Simplify.
12258
2fb0ce67
SM
12259 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
12260
50bf7673
ST
122612004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12262
12263 * macfns.c: Don't include ccl.h.
12264 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
12265 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
12266 TextUtils.h.
c8d09ad8 12267 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
12268 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
12269 display height/width.
12270 (compute_tip_xy, Vx_max_tooltip_size): Declare.
12271 (unwind_create_tip_frame, compute_tip_xy): New functions.
12272 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
12273 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
12274 and last_show_tip_args.
2fb0ce67 12275
50bf7673
ST
12276 * macgui.h [!MAC_OSX]: Include Gestalt.h.
12277 (Cursor, No_Cursor): New defines.
c8d09ad8 12278 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
12279 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
12280
12281 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
12282
12283 * macterm.c: Don't include Gestalt.h.
12284 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
12285 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
12286 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
12287 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
12288 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
12289 (construct_mouse_click, XTmouse_position)
12290 (x_scroll_bar_report_motion, x_calc_absolute_position)
12291 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
12292 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
12293 (note_mouse_movement): Clear the mouse face and reset the pointer
12294 shape when the pointer goes outside the frame without grabbing.
12295 (mac_front_window): New function.
12296 (mac_window_to_frame): New macro.
12297 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
12298 (do_window_activate, do_window_deactivate, do_app_resume)
12299 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
12300 (do_zoom_window, mac_do_receive_drag, XTread_socket)
12301 (mac_check_for_quit_char): Use mac_front_window and/or
12302 mac_window_to_frame.
12303 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
12304 scroll-bar click event.
12305 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
12306 (x_free_frame_resources): Reset tip_window to NULL when it is
12307 disposed of.
50bf7673 12308 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 12309 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
12310 (do_window_update): Don't do anything if the updated window is the
12311 tooltip window.
12312 (do_mouse_moved): Handle mouse movement events here (previously in
12313 XTread_socket). Clear the mouse face if
12314 dpyinfo->mouse_face_hidden is set.
12315 (do_os_event, do_events): Remove (now in XTread_socket).
12316 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
12317 Loop until all the events in the queue are processed.
12318 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
12319 contents of do_os_event and do_events. Remove mouse movement
12320 handling (now in do_mouse_moved). Add the case where
12321 Vmouse_highlight has an integer value.
12322 (NewMacWindow): Remove.
12323 (make_mac_frame): Do what NewMacWindow previously did. Don't do
12324 excess initializations.
12325 (make_mac_terminal_frame): Previous initializations in
12326 make_mac_frame are moved here.
c8d09ad8
SM
12327 (mac_initialize_display_info):
12328 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
12329
12330 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
12331 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
12332
08fd1251
RS
123332004-05-29 Richard M. Stallman <rms@gnu.org>
12334
12335 * lisp.h (truncate_undo_list): Update decl.
12336
12337 * alloc.c (undo_outer_limit): New variable.
12338 (syms_of_alloc): Defvar it.
12339 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
12340
12341 * undo.c (truncate_undo_list): New arg LIMITSIZE.
12342
12343 * alloc.c (lisp_align_malloc): Check for base == 0
12344 regardless of HAVE_POSIX_MEMALIGN.
12345 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
12346
227ef0ff
SM
123472004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12348
12349 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
12350 (marker_blocks_pending_free): Remove.
12351 (Fgarbage_collect): Sweep after cleaning up undo-lists.
12352 Mark the undo lists after claning them up.
12353 Don't free block in marker_blocks_pending_free.
12354 (mark_buffer): Don't mark undo_list.
12355 (gc_sweep): Sweep hash-tables and strings first.
12356 Do free marker blocks that are empty.
12357
034a6113
SM
123582004-05-28 Jim Blandy <jimb@redhat.com>
12359
12360 * regex.c (print_partial_compiled_pattern): Add missing 'break'
12361 after 'case wordend'. For symbeg and symend, print to stderr,
12362 like the other cases.
12363
33594a8d
NF
123642004-05-28 Noah Friedman <friedman@splode.com>
12365
12366 * process.c (Fdelete_process): Do not call remove_process.
12367
ce50a847
SM
123682004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12369
12370 * alloc.c (struct backtrace): Remove.
12371 (Fgarbage_collect): Use the new mark_backtrace.
12372
12373 * eval.c (mark_backtrace): New function.
12374
12375 * minibuf.c (run_exit_minibuf_hook): New function.
12376 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
12377 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
12378
1e8dae36
KS
123792004-05-27 Kim F. Storm <storm@cua.dk>
12380
12381 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
12382 over display properties, e.g. images, that replace buffer text.
12383
846faa3b
KS
123842004-05-25 Kim F. Storm <storm@cua.dk>
12385
12386 * alloc.c (marker_blocks_pending_free): New var.
12387 (gc_sweep): Store free marker blocks on that list.
12388 (Fgarbage_collect): Free them after undo-list cleanup.
12389
12390 * process.c (wait_reading_process_input): Check connect_wait_mask
12391 before actually accepting connection in case it has already been
12392 accepted due to recursion.
12393
d495ccfc 123942004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
6239a668 12395
ce50a847
SM
12396 * coding.c (Fset_safe_terminal_coding_system_internal):
12397 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 12398
71d5a208
RS
123992004-05-22 Richard M. Stallman <rms@gnu.org>
12400
12401 * alloc.c (Fmake_string): Doc fix.
12402
12403 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
12404 and the alist pairs too.
12405
12406 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
12407
51391fb9
RF
12408 * emacs.c (main): Update copyright year.
12409
71d5a208
RS
12410 * fileio.c (Fread_file_name): Expand DIR if not absolute.
12411
12412 * insdel.c (del_range_2, replace_range): Don't write an anchor
12413 if the gap is empty.
12414
12415 * xdisp.c (try_scrolling): If scroll-up-aggressively or
12416 scroll-down-aggressively is small but positive, put point
12417 near the screen edge.
12418
f63fd14e
JB
124192004-05-22 Juanma Barranquero <lektu@terra.es>
12420
12421 * keymap.c (Fdefine_key): Doc fix.
12422
4d12067c
KS
124232004-05-22 Kim F. Storm <storm@cua.dk>
12424
12425 * alloc.c (struct backtrace): Add debug_on_exit member.
12426 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
12427 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
12428 the removed cons cells.
12429 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
12430 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
12431 any cons cells pointing to unallocated stings.
12432 Do not lisp_free any marker blocks, as there may still be pointers
12433 to them from buffer undo lists at this stage of GC.
12434
12435 * keyboard.c (struct backtrace): Add debug_on_exit member.
12436 (Fcommand_execute): Clear it.
12437
931285e2
LT
124382004-05-20 Luc Teirlinck <teirllm@auburn.edu>
12439
12440 * intervals.c (lookup_char_property): Do not prematurely return nil.
12441
669fa600
SM
124422004-05-19 Jim Blandy <jimb@redhat.com>
12443
12444 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 12445 beginning and end of symbols.
4d12067c 12446
669fa600
SM
12447 * regex.c (enum syntaxcode): Add Ssymbol.
12448 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
12449 (re_opcode_t): New opcodes `symbeg' and `symend'.
12450 (print_partial_compiled_pattern): Print the new opcodes properly.
12451 (regex_compile): Parse the new operators.
ce50a847 12452 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
12453 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
12454 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
12455 (re_match_2_internal): Match symbeg and symend.
12456
12457 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
12458
0d8c2e5c
KS
124592004-05-19 Kim F. Storm <storm@cua.dk>
12460
12461 * .gdbinit (xsymbol): Fix last change.
12462
669fa600
SM
124632004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
12464
12465 * .gdbinit (xprintstr): New fun.
12466 (xstring, xprintsym): Use it.
12467
12468 * w32proc.c (create_child): Use INTMASK.
12469
12470 * alloc.c (Fgarbage_collect): Do all the marking before flushing
12471 unmarked elements of the undo list.
12472
9a6a4c40
DP
124732004-05-18 David Ponce <david@dponce.com>
12474
12475 * print.c (print): Reset print_depth before to call print_object.
12476
f3c4ec74
JR
124772004-05-18 Jason Rumney <jasonr@gnu.org>
12478
12479 * w32console.c: Prefix RIF functions with w32con_ to avoid
12480 namespace clash with functions in term.c and w32term.c.
12481
12482 * w32menu.c (add_menu_item, w32_menu_display_help)
12483 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
12484
0d8c2e5c 12485 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 12486
6be49c3a
EZ
124872004-05-18 Eli Zaretskii <eliz@gnu.org>
12488
4d0b9a0a
EZ
12489 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
12490
6be49c3a
EZ
12491 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
12492 with make_number.
12493 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
12494 with XINT.
12495
0bc90bba
KS
124962004-05-18 Kim F. Storm <storm@cua.dk>
12497
89d19988
KS
12498 * blockinput.h (INPUT_BLOCKED_P): New macros.
12499
12500 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
12501 (Ftop_level): Unblock input if blocked.
12502
0bc90bba
KS
12503 * buffer.h (GET_OVERLAYS_AT): New macro.
12504 * msdos.c (IT_note_mouse_highlight): Use it.
12505 * textprop.c (get_char_property_and_overlay): Use it.
12506 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
12507 * xfaces.c (face_at_buffer_position): Use it.
12508
12509 * print.c (print_object): Increase buf size.
12510
653bd0f6
JR
125112004-05-17 Jason Rumney <jasonr@gnu.org>
12512
12513 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
12514 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
12515 Lisp_Object using i member.
12516 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
12517 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
12518 consistently.
12519
12520 * w32proc.c (create_child): Use make_number instead of masking pid.
12521
12522 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
12523 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
12524 Use EQ to compare Lisp_Objects.
12525 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
12526
12527 * w32term.c (w32_num_mouse_buttons): Rename from
12528 Vw32_num_mouse_buttons and make it an int.
12529
12530 * w32.c (init_environment): Use it.
12531
12532 * w32fns.c (w32_wnd_proc): Likewise.
12533
12534 * w32proc.c (w32_pipe_read_delay): Rename from
12535 Vw32_pipe_read_delay and make it an int.
12536
12537 * w32.c (_sys_read_ahead): Use it.
12538
12539 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
12540
12541 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
12542
12543 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
12544 (key_event): Don't mix Lisp_Object and int.
12545
12546 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
12547
12548 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
12549 modifiers in language change event.
12550
54b53ba7
KS
125512004-05-17 Kim F. Storm <storm@cua.dk>
12552
12553 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
12554 Such objects may be freed markers which still exist on an undo list.
12555
6e86a75d
JB
125562004-05-16 Juanma Barranquero <lektu@terra.es>
12557
12558 * data.c (Fset_default): Make argument names match their use in
12559 docstring.
12560
fc80da24
AS
125612004-05-15 Andreas Schwab <schwab@suse.de>
12562
12563 * emacs.c (gdb_array_mark_flag): Define.
12564 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
12565
c1380aa6
EZ
125662004-05-15 Eli Zaretskii <eliz@gnu.org>
12567
12568 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
12569 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
12570 defined for the MS-DOS build.
12571
89458937
SM
125722004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
12573
12574 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
12575
08020f9a
KH
125762004-05-14 Kenichi Handa <handa@m17n.org>
12577
12578 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
12579
a433994a
ST
125802004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12581
12582 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
12583 section to frame.c section.
12584 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 12585 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 12586
a433994a 12587 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 12588
a433994a 12589 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 12590
a433994a
ST
12591 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
12592 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
12593 (XTread_socket): Fix int/Lisp_Object mixup.
12594 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 12595
a433994a
ST
12596 * macterm.h (struct frame, struct face, struct image)
12597 (display_x_get_resource, Fx_display_color_p)
89458937
SM
12598 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
12599 Add prototypes.
a433994a 12600
b51a51b9
KS
126012004-05-14 Kim F. Storm <storm@cua.dk>
12602
12603 * process.c (wait_reading_process_input): Make reentrant.
12604 Make Available and Connecting non-static. Save and restore value
12605 of waiting_for_user_input_p.
12606
2bde1dd8
KS
126072004-05-13 Kim F. Storm <storm@cua.dk>
12608
12609 * keyboard.c (mark_kboards): Don't mark x and y members
12610 that are overloaded in selection request events.
12611
a267ab4d
SM
126122004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12613
12614 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
12615
eb15ce9e
GM
126162004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
12617
12618 * window.c (Fdisplay_buffer, Fsplit_window)
12619 (split-height-threshold): Doc fix.
12620
7fc92635
JB
126212004-05-13 Juanma Barranquero <lektu@terra.es>
12622
12623 * xfaces.c (Ftty_supports_face_attributes_p)
12624 (Finternal_copy_lisp_face): Fix typo in docstring.
12625 (Finternal_get_lisp_face_attribute): Fix docstring.
12626
1ec2a572
JD
126272004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12628
12629 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
12630
ae9292e0
ST
126312004-05-11 Steven Tamm <steventamm@mac.com>
12632
12633 * macfns.c (Fx_create_frame): Default to using tool-bar by
12634 setting tool-bar-lines to 1 in default-frame-alist.
12635
126362004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
12637
12638 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
12639 (xpm_get_color_table_v, xpm_make_color_table_h)
12640 (xpm_put_color_table_h, xpm_get_color_table_h)
12641 (xpm_str_to_color_key, xpm_load_image, xpm_load)
12642 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 12643 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 12644
fe97e8df
ST
126452004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12646
a267ab4d 12647 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
12648 instead of FRAME_X_P
12649
b47e779e
KS
126502004-05-11 Kim F. Storm <storm@cua.dk>
12651
12652 * process.c (read_process_output): Grow decoding_buf when needed;
12653 this could cause a crash in allocate_string and compact_small_strings.
12654
cdc9b845
EZ
126552004-04-29 Jim Blandy <jimb@redhat.com>
12656
12657 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
12658 against proper opcode.
12659
aa7094ba
JB
126602004-05-10 Juanma Barranquero <lektu@terra.es>
12661
12662 * process.c (Fstart_process): Fix docstring.
12663
12664 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
12665 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
12666 (Fsplit_char, Fchar_charset): Make argument names match their use
12667 in docstring.
12668
e109331a
RS
126692004-05-10 Richard M. Stallman <rms@gnu.org>
12670
12671 * print.c (print_preprocess): Use being_printed, loop_count and
12672 halftail to detect overdeep nesting and cyclic cdr chains.
12673
9a28b921
AS
126742004-05-10 Andreas Schwab <schwab@suse.de>
12675
78819ebb 12676 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
12677
12678 * fileio.c (Frename_file): Remove extra argument in call to
12679 Fmake_symbolic_link.
12680
e2c02c1a
KS
126812004-05-10 Kim F. Storm <storm@cua.dk>
12682
12683 * xdisp.c (calc_line_height_property): Use string position when
12684 object is a string.
12685
cfe9d13e
KH
126862004-05-10 Kenichi Handa <handa@m17n.org>
12687
a57e8159
KH
12688 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
12689 inhibit-modification-hooks to t temporarily before calling
12690 Ferase_buffer.
12691
12692 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
12693 inhibit-modification-hooks to t temporarily before calling
12694 Ferase_buffer.
12695
12696 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
12697 inhibit-modification-hooks to t temporarily before calling
12698 Ferase_buffer.
12699
cfe9d13e
KH
12700 * fns.c (count_combining): Delete it.
12701 (concat): Don't check combining bytes.
12702
ceb96489
JR
127032004-05-09 Jason Rumney <jasonr@gnu.org>
12704
12705 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
12706 (globals_of_w32fns): Set it.
12707
b6189c3b 127082004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
12709
12710 * data.c (Fquo): Simplify.
12711
28712a21
JB
127122004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
12713
12714 * data.c (Fquo): If any argument is float, do the computation in
12715 floating point.
12716
0f0af7a8
JB
127172004-05-08 Juanma Barranquero <lektu@terra.es>
12718
88214ef6
JB
12719 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
12720 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
12721 Fix spelling of Emacs on docstring.
12722 (Fset_process_coding_system, Fprocess_coding_system)
12723 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
12724 Make argument names match their use in docstring.
12725 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
12726 Fix docstring.
12727
0f0af7a8
JB
12728 * editfns.c (Finsert_buffer_substring): Make argument names match their
12729 use in docstring.
12730
12731 * syntax.c (Fmodify_syntax_entry): Fix docstring.
12732
2a316a84
ST
127332004-05-07 Steven Tamm <steventamm@mac.com>
12734
12735 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
12736 around call to ReceiveEvent to avoid certain crashes.
12737
127382004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 12739
2a316a84
ST
12740 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
12741 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
12742 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
12743 Save/restore the current graphics port and device handle when
12744 drawing into an offscreen graphics world.
12745
12746 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
12747 (gif_load): Likewise.
12748
ab80314b
JB
127492004-05-07 Juanma Barranquero <lektu@terra.es>
12750
12751 * window.c (Fset_window_buffer): Fix docstring.
12752
70646bb5
TTN
127532004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
12754
12755 * emacs.c (main) [VMS]: Fix var ref.
12756
b6189c3b 127572004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
12758
12759 * data.c (Fsetq_default): Fix docstring.
12760
279d3293
JR
127612004-05-06 Jason Rumney <jasonr@gnu.org>
12762
12763 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
12764 to avoid name clash.
12765
f72b5416
JD
127662004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12767
12768 * fileio.c (barf_or_query_if_file_exists): Use lstat.
12769 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 12770 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 12771
6ab66799
KS
127722004-05-04 Kim F. Storm <storm@cua.dk>
12773
12774 * xdisp.c (Qtotal): New var.
12775 (syms_of_xdisp): Intern and staticpro it.
12776 (calc_line_height_property): New arg total. Set it if
12777 line-spacing property has format (total . VALUE).
12778 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
12779 Handle total line-spacing property.
12780
ab2d724b
JD
127812004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12782
12783 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
12784 "under" scroll bar when size/position changes.
12785
238add5e
JR
127862004-05-03 Jason Rumney <jasonr@gnu.org>
12787
12788 * makefile.nt: Remove.
12789
1644f4e4
EZ
127902004-05-02 Eli Zaretskii <eliz@gnu.org>
12791
a267ab4d
SM
12792 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
12793 Avoid compiler warnings.
05fdbeb8 12794
1644f4e4
EZ
12795 * Makefile.in (region-cache.o): Depend on config.h.
12796
b6189c3b 127972004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
12798
12799 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
12800 with continuation lines, too.
12801
2b98b088
TTN
128022004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
12803
12804 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
12805
d9bf7950
SM
128062004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
12807
12808 * xdisp.c (calc_line_height_property): YAILOM (yet another
12809 int/Lisp_Object mixup).
12810
affa509c
EZ
128112004-05-01 Eli Zaretskii <eliz@gnu.org>
12812
12813 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
12814 undo bad effect of pack(4) in some versions of system headers.
12815
07c07cfe
JR
128162004-05-01 Jason Rumney <jasonr@gnu.org>
12817
12818 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
12819
e71caa4e
KS
128202004-04-30 Kim F. Storm <storm@cua.dk>
12821
12822 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 12823 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
12824
12825 * dispextern.h (struct it): Remove member use_default_face.
12826 Add members override_ascent, override_descent, override_boff.
12827
12828 * xdisp.c (init_iterator): Handle line-spacing float value.
12829 Initialize override_ascent member.
12830 (append_space_for_newline): Reset override_ascent.
12831 Remove use_default_face.
12832 (calc_line_height_property): New function to calculate value of
12833 line-height and line-spacing properties. Look at overlays, too.
12834 Set override_ascent, override_descent, override_boff members when
12835 using another face than the current face. Float values are now
12836 relative to the frame default font, by default; accept a cons
12837 of ratio and face name to specify value relative to a specific face.
12838 (x_produce_glyphs): Use calc_line_height_property.
12839 Use override_ascent etc. when set to handle different face heights.
12840 A negative line-spacing property value is interpreted as a total
12841 line height, rather than inter-line spacing.
12842 (note_mouse_highlight): Allocate room for 40 overlays initially.
12843
0fddae66
SM
128442004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
12845
12846 * data.c (Fsubr_name): New fun.
12847 (syms_of_data): Defsubr it.
12848
712d23dc
KS
128492004-04-29 Kim F. Storm <storm@cua.dk>
12850
12851 * xdisp.c (null_glyph_slice): New var.
12852 (append_glyph, append_composite_glyph, append_stretch_glyph):
12853 Use it to initialize glyph slice.
12854
033ad8c6
SM
128552004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
12856
12857 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
12858 (on_hot_spot_p): Make sure we always return a value.
12859 (Flookup_image_map): Remove unused var ix and iy.
12860 (note_mode_line_or_margin_highlight): Remove unused var `image'.
12861
93397360
EZ
128622004-04-27 Eli Zaretskii <eliz@gnu.org>
12863
12864 * msdos.c (init_environment): If one of the TMP... environment
12865 variables is set to a drive letter without a trailing slash,
12866 append a slash.
12867
0c54865e
EZ
128682004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
12869
12870 * editfns.c (lisp_time_argument): Provide externally.
12871
12872 * fileio.c (Fset_file_times): New function.
12873 (syms_of_fileio): Intern and staticpro it.
12874
d3b111bd
KS
128752004-04-27 Kim F. Storm <storm@cua.dk>
12876
07dc1231
KS
12877 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
12878 header line strings.
12879
360fe9d2
KS
12880 * dispextern.h (struct it): New member use_default_face.
12881
d3b111bd
KS
12882 * xdisp.c (Qline_height): New variable.
12883 (syms_of_xdisp): Intern and staticpro it.
12884 (append_space_for_newline): Partially undo 2004-04-25 change;
12885 add default_face_p arg, and restore callers.
12886 Clear it->use_default_face after use.
12887 (x_produce_glyphs): Set default font for ascii char if
12888 it->use_default_font is set. Change line-spacing property to set
12889 just extra line spacing. Handle new line-height property.
12890
0448588b
AS
128912004-04-26 Andreas Schwab <schwab@suse.de>
12892
12893 * print.c (print_object): Print non-ascii characters in bool
12894 vector representation as octal escapes.
12895
12896 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
12897 * print.c (print_object): Use it instead of BITS_PER_CHAR for
12898 bool vectors.
12899 * lread.c (read1): Likewise.
12900 * alloc.c (Fmake_bool_vector): Likewise.
12901 * data.c (Faref, Faset): Likewise.
12902 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
12903 (mapcar1): Likewise.
d3b111bd 12904
536d6baa
ST
129052004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
12906
7e26f91b 12907 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 12908
ae11577a
MB
129092004-04-26 Miles Bader <miles@gnu.org>
12910
12911 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
12912
e198ba87
JB
129132004-04-26 Juanma Barranquero <lektu@terra.es>
12914
12915 * buffer.c (Fpop_to_buffer): Fix docstring.
12916
f3d5f92d 129172004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 12918
f3d5f92d
ST
12919 * lread.c (init_lread): Don't display missing lisp directory
12920 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 12921 may be built without correct installation path.
f3d5f92d 12922
03e35edc
KS
129232004-04-25 Kim F. Storm <storm@cua.dk>
12924
9ff3aa31
KS
12925 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
12926
12927 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
12928
03e35edc
KS
12929 * xdisp.c (append_space_for_newline): Rename from append_space.
12930 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
12931 (x_produce_glyphs): Handle line-spacing property on newline char.
12932 If value is t, adjust ascent and descent to fit current row height.
12933 If value is an integer or float, set extra_line_spacing to integer
12934 value, or to float value x current line height.
12935
f24814e0
KH
129362004-04-23 Kenichi Handa <handa@m17n.org>
12937
12938 * fontset.c (Finternal_char_font): If POSITION is nil, return
12939 font for displaying CH with the default face.
12940
d814862a
JB
129412004-04-23 Juanma Barranquero <lektu@terra.es>
12942
12943 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
12944
063a45c5
SM
129452004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12946
12947 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
12948 Don't make assumptions about the relative place of i and val.
12949 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
12950
ae7ab2d3
KS
129512004-04-21 Kim F. Storm <storm@cua.dk>
12952
12953 * dispextern.h (struct glyph_slice): New struct.
12954 (struct glyph): New member slice.
12955 (GLYPH_SLICE_EQUAL_P): New macro.
12956 (GLYPH_EQUAL_P): Use it.
12957 (struct glyph_string): New member slice.
12958 (struct it_slice): New struct.
12959 (struct it): New member slice, add member to stack too.
12960 New member constrain_row_ascent_descent_p.
12961 (image_ascent): Add prototype.
12962
12963 * dispnew.c (buffer_posn_from_coords): Return full image width
12964 and height even for image slices (posn is relative to full image).
12965 (marginal_area_string): Adjust x0,y0 for image slice.
12966
12967 * image.c (image_ascent): Add slice arg; calculate ascent for
12968 image slice (or full image).
12969
12970 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
12971 (syms_of_keyboard): Defsubr them.
12972
12973 * lisp.h (pos_visible_p): Fix prototype.
12974
c62aec78 12975 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
12976 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12977 (x_draw_image_foreground, x_draw_image_relief)
12978 (x_draw_image_foreground_1, x_draw_image_glyph_string):
12979 Draw sliced images.
12980
12981 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
12982 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12983 (x_draw_image_foreground, x_draw_image_relief)
12984 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
12985 Draw sliced images.
12986
12987 * w32term.h (image_ascent): Remove prototype.
12988
12989 * window.c (Fpos_visible_in_window_p): Return pixel position if
12990 PARTIALLY arg is non-nil. Simplify. Doc fix.
12991 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
12992 to return/set vscroll in pixels.
12993
12994 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
12995
12996 * xdisp.c (Qslice): New variable.
12997 (syms_of_xdisp): Intern and staticpro it.
12998 (pos_visible_p): Return pixel position in new x and y args.
12999 (init_iterator): Reset it->slice info.
13000 (handle_display_prop): Parse (slice ...) property.
13001 (push_it, pop_it): Save/restore slice info.
13002 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
13003 force repositioning of tall row if window is vscrolled, as that
13004 would reset vscroll.
13005 (append_space): Set it->constrain_row_ascent_descent_p to avoid
13006 increasing row height if row is non-empty.
13007 (fill_image_glyph_string): Copy slice info.
13008 (take_vertical_position_into_account): Simplify.
13009 (produce_image_glyph): Handle iterator slice info, setup glyph
13010 slice info. Do not force minimum line height.
13011 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
13012 do not increase height (ascent/descent) of non-empty row when
13013 adding normal character glyph; instead reduce glyph ascent/descent
13014 appropriately; if row is higher than current glyph, adjust glyph
13015 descent/ascent to reposition glyph within the existing row.
13016 Likewise, when char is newline, only set ascent/descent if row is
13017 currently empty.
13018 (note_mouse_highlight): Handle hotspots with sliced image.
13019
13020 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
13021 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13022 (x_draw_image_foreground, x_draw_image_relief)
13023 (x_draw_image_foreground_1, x_draw_image_glyph_string):
13024 Draw sliced images.
13025
13026 * xterm.h (image_ascent): Remove prototype.
13027
d58f8753
SM
130282004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
13029
13030 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
13031
4ce2719d
JPW
130322004-04-20 John Paul Wallington <jpw@gnu.org>
13033
13034 * fns.c (Fassoc, Feql): Fix indentation.
13035
d58f8753 13036 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 13037
95f8c3b9
JPW
130382004-04-19 John Paul Wallington <jpw@gnu.org>
13039
13040 * fns.c (Feql): New function.
d58f8753 13041 (syms_of_fns): Defsubr it.
95f8c3b9 13042
b7e85537
JR
130432004-04-18 Jason Rumney <jasonr@gnu.org>
13044
13045 * w32select.c (Fw32_set_clipboard_data): Get sequence number
13046 after closing the clipboard.
13047
5a72efd4
LT
130482004-04-16 Luc Teirlinck <teirllm@auburn.edu>
13049
13050 * buffer.c (Fbuffer_base_buffer): Doc fix.
13051
20dc8583
KS
130522004-04-17 Kim F. Storm <storm@cua.dk>
13053
60962ec4
KS
13054 * keymap.c (Fkey_description): Add optional PREFIX arg.
13055 Combine prefix with KEYS to make up the full key sequence to describe.
13056 Correlate meta_prefix_char and following (simple) key to describe
13057 as meta modifier. All callers changed.
13058 (describe_map): Rename arg `keys' to `prefix'. Remove local
13059 `elt_prefix' var. Use Fkey_description with prefix instead of
13060 elt_prefix combined with Fsingle_key_description.
13061 (describe_vector): Declare static. Replace arg `elt_prefix' with
13062 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 13063 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
13064 Fsingle_key_description.
13065
13066 * keymap.h (Fkey_description): Fix prototype.
13067 (describe_vector): Remove prototype.
13068
409368b9
KS
13069 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
13070
20dc8583
KS
13071 * image.c (PNG_BG_COLOR_SHIFT): Remove.
13072 (png_load): Fix calculation of transparent background color on X
13073 and W32 platforms.
13074
75c5501b
JB
130752004-04-16 Juanma Barranquero <lektu@terra.es>
13076
13077 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
13078 not too large before computing how much to scroll.
13079
da879ae8
SM
130802004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
13081
13082 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
13083
d01ca4a8
LT
130842004-04-14 Luc Teirlinck <teirllm@auburn.edu>
13085
13086 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
13087 Add hyperlink to Elisp manual to the docstring.
13088
572943b3
SM
130892004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
13090
13091 * callint.c (fix_command): Use XDCR.
13092
5e30a0fb
NR
130932004-04-14 Nick Roberts <nick@nick.uklinux.net>
13094
13095 * window.c (Fget_lru_window): Doc fix.
13096
a27ddfaf
KS
130972004-04-14 Kim F. Storm <storm@cua.dk>
13098
13099 * editfns.c (Fformat): Fix allocation size of precision array.
13100
13101 * dispnew.c (update_window): Only set changed_p if
13102 scrolling_window actually did scroll.
13103 (scrolling_window): Only return 1 if we actually did scroll.
13104
13105 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
13106 height to glyph height when cursor row is not fully visible.
13107 (make_cursor_line_fully_visible): Add FORCE_P arg to return
13108 failure in case row is higher than window. Callers changed.
13109 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
13110 Try to scroll partially visible, higher-than-window cursor row.
13111 (redisplay_window): Always try to scroll partially visible,
13112 higher-than-window cursor row - both initially and again with
13113 centering_position = 0.
13114 Clear desired matrix before retrying with centering_position = 0.
13115
da879ae8
SM
131162004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13117
13118 * syntax.c (scan_lists): Simplify backward string scan.
13119 Fix off-by-one boundary check for string and comment fences.
13120
5fc16e8e
SM
131212004-04-13 Joe Buehler <jbuehler@hekimian.com>
13122
13123 * sheap.c, unexcw.c: New files.
13124
c9aac8e6
LT
131252004-04-12 Luc Teirlinck <teirllm@auburn.edu>
13126
13127 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
13128 base buffer has been killed. Correct the error message if the
13129 base buffer does not exist.
13130
1e88a355
SM
131312004-04-12 Joe Buehler <jbuehler@hekimian.com>
13132
13133 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
13134 Cygwin itself. Add support for Xaw3d scrollbars.
13135
13136 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
13137
13138 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
13139
13140 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
13141 before Cygwin unexec.
13142
13143 * Makefile.in: Link changes for Cygwin unexec() support.
13144
8dbff9a0
AS
131452004-04-12 Andreas Schwab <schwab@suse.de>
13146
13147 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
13148
54dffe35
LT
131492004-04-11 Luc Teirlinck <teirllm@auburn.edu>
13150
13151 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
13152 IGNORE argument equals NAME. Doc fix.
13153
99a72bdf
MY
131542004-04-11 Masatake YAMATO <jet@gyve.org>
13155
1e88a355 13156 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
13157 empty if they are backwards.
13158
40899d7b
SM
131592004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13160
13161 * xfaces.c (face_color_supported_p): Fix compilation without X11.
13162
f8f853de
SM
131632004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
13164
13165 * doc.c (Fsnarf_documentation): Ignore new file name entries.
13166
c953fe1b
KS
131672004-04-06 Kim F. Storm <storm@cua.dk>
13168
661e85c1
KS
13169 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
13170 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
13171
13172 * w32term.c (w32_read_socket): Set mouse_face_hidden after
13173 clearing highlight.
13174
13175 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
13176
13177 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
13178 clearing highlight.
13179
c953fe1b
KS
13180 * indent.c (vmotion): Do not reserve one column for continuation
13181 marks on window frames.
13182
c1994268
EZ
131832004-04-04 Eli Zaretskii <eliz@gnu.org>
13184
13185 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
13186 from GCC.
13187
9f691b0d
SM
131882004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13189
13190 * .gdbinit-union: Remove.
13191
13192 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
13193 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
13194 ($nonvalbits): Remove.
13195 ($valmask): Set it by calling xreload to avoid redundancy.
13196
13197 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
13198 (gdb_emacs_intbits): Remove.
13199
7a8560d7
JD
132002004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13201
9f691b0d 13202 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 13203
3c8111fc
KH
132042004-03-30 Kenichi Handa <handa@m17n.org>
13205
13206 * editfns.c (Fformat): Fix initialization of the array info.
13207
48a0bce4
KS
132082004-03-30 Kim F. Storm <storm@cua.dk>
13209
13210 * xterm.c (x_mouse_click_focus_ignore_position): New var.
13211 (syms_of_xterm): DEFVAR_BOOL it.
13212 (ignore_next_mouse_click_timeout): New var.
13213 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
13214 Use it to filter mouse clicks following focus event.
13215
1cd0066c
KS
132162004-03-29 David Ponce <david@dponce.com>
13217
13218 * callint.c (Fcall_interactively): Fix last change.
13219
adb3b353
SM
132202004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13221
13222 * eval.c (Fcommandp): Simplify.
13223
13224 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
13225 Extend to handle all kinds of functions.
13226
13227 * lisp.h (Finteractive_form): Declare.
13228
13229 * callint.c (Fcall_interactively): Use it.
13230
6fc4c9c9
KS
132312004-03-26 Kim F. Storm <storm@cua.dk>
13232
13233 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
13234 to catch errors in calc_pixel_width_or_height during redisplay.
13235
abdb9b83
MY
132362004-03-26 Masatake YAMATO <jet@gyve.org>
13237
b17856dd 13238 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 13239
b17856dd 13240 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 13241
b17856dd 13242 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 13243
b17856dd 13244 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 13245
e8a84b6c
JD
132462004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13247
b17856dd 13248 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 13249
36a3fd05
RS
132502004-03-19 Richard M. Stallman <rms@gnu.org>
13251
13252 * s/sol2-6.h: Delete previous change.
13253
ab24c127
KS
132542004-03-19 Kim F. Storm <storm@cua.dk>
13255
13256 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
13257 to_charpos corresponds to newline in right fringe. Use local
13258 BUFFER_POS_REACHED_P macro.
13259
992126de
JD
132602004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13261
13262 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
13263 to compile on non-window system.
13264
45dbfc84
KS
132652004-03-19 Kim F. Storm <storm@cua.dk>
13266
13267 * dispextern.h (calc_pixel_width_or_height): Add prototype.
13268
13269 * image.c (Qcenter): Move to xdisp.c.
13270
13271 * xdisp.c (Qcenter): Declare here.
adb3b353 13272 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
13273 (handle_single_display_prop): Allow space display property on all
13274 platforms.
13275 (display_mode_line): Set mode_line_p before displaying line.
13276 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
13277 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 13278 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
13279 width/height. Return width or height for image specs.
13280 (produce_stretch_glyph): Improve handling of :align-to. Is now
13281 relative to left of text area by default, but other base offsets
13282 can be specified -- also for text lines.
13283
13284 * term.c (produce_glyphs): Handle IT_STRETCH.
13285 (produce_stretch_glyph): New function to handle space width and
13286 align-to display properties on non-window systems.
13287
37264101
SM
132882004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13289
13290 * fileio.c (Fread_file_name): Set completion-ignore-case for
13291 case-insensitive systems.
13292
73bc43da
MY
132932004-03-14 Masatake YAMATO <jet@gyve.org>
13294
13295 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
13296 when keymap and cursor are setup.
13297
d5fb8dab 132982004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 13299
b17856dd 13300 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 13301
e4b1b5ab
KS
133022004-03-14 Kim F. Storm <storm@cua.dk>
13303
13304 * dispextern.h (x_find_image_file): Add prototype.
13305
13306 * image.c (x_find_image_file): Make extern.
13307
13308 * xfns.c (x_find_image_file): Remove prototype.
13309
a6eeaa81 133102004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 13311
37264101 13312 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 13313
37264101 13314 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 13315
e69cfac2
RS
133162004-03-12 Richard M. Stallman <rms@gnu.org>
13317
13318 * fns.c (internal_equal): New arg PROPS controls comparing
13319 text properties. All callers changed.
13320 (Fequal_including_properties): New function.
13321 (syms_of_fns): defsubr it.
13322
45034953
KS
133232004-03-12 Kim F. Storm <storm@cua.dk>
13324
13325 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 13326
45034953
KS
13327 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
13328 (image_background, image_background_transparent): Fix prototypes.
13329
37264101 13330 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
13331
13332 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
13333 (x_query_font, x_find_ccl_program, x_set_window_size)
13334 (x_make_frame_visible, mac_initialize, XCreatePixmap)
13335 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
13336 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
13337
13338 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
13339 (x_query_font, x_find_ccl_program, x_set_window_size)
13340 (x_make_frame_visible, mac_initialize, XCreatePixmap)
13341 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
13342 (mac_draw_line_to_pixmap): Add prototypes.
13343
133442004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13345
13346 * macterm.c (XTread_socket): Fix mouse click on tool bar.
13347
a12d3d87
KS
133482004-03-11 Kim F. Storm <storm@cua.dk>
13349
d3ab1cf1
KS
13350 * dispextern.h: Move image related prototypes from xfns.c section
13351 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
13352 HAVE_X_WINDOWS.
37264101 13353
37de9f51 13354 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 13355 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
13356 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
13357 (GTK_OBJ) [USE_GTK]: New declaration.
13358 (obj): Add $(GTK_OBJ) to list.
13359
d5fb8dab 133602004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 13361
7e26f91b 13362 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
13363
13364 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 13365 defined in image.c.
5243c06a 13366
c0f97789
KS
133672004-03-11 Kim F. Storm <storm@cua.dk>
13368
13369 The following changes consolidates the identical/similar image
13370 support code previously found in xfns.c, w32fns.c, and macfns.c
13371 into a new file image.c.
13372
13373 * makefile.w32-in (OBJ1): Add image.o.
13374 ($(BLD)/image.$(O)): Add dependencies.
13375
13376 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
13377 (image.o): Add dependencies.
37264101 13378
c0f97789
KS
13379 * image.c: New file with consolidated image support code.
13380 (COLOR_TABLE_SUPPORT): New define to control whether
13381 color table support is available (X only).
13382 (Bitmap_Record): Common name for x_bitmap_record,
13383 w32_bitmap_record, and mac_bitmap_record.
13384 (XImagePtr): Common name for pointer to XImage or equivalent.
13385 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
13386 to XImagePtr on X+MAC, and to HDC on W32.
13387 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
13388 (NO_PIXMAP): Common name for "None" or equivalent.
13389 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
13390 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
13391 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
13392 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
13393 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
13394 (XDrawLine): Define on MAC for code sharing.
13395 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
13396 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
13397 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13398 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13399 (x_reference_bitmap, x_create_bitmap_from_data)
13400 (x_create_bitmap_from_file, x_destroy_bitmap)
13401 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13402 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13403 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13404 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13405 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13406 (define_image_type, lookup_image_type, valid_image_p)
13407 (image_error, enum image_value_type, struct image_keyword)
13408 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13409 (make_image, free_image, prepare_image_for_display, image_ascent)
13410 (four_corners_best, image_background, image_background_transparent)
9dd28cae 13411 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
13412 (make_image_cache, free_image_cache, clear_image_cache)
13413 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13414 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13415 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13416 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
13417 (init_image_func_pointer, image_load_quartz2d)
13418 (struct ct_color, init_color_table, free_color_table)
13419 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13420 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13421 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13422 (x_disable_image, x_build_heuristic_mask)
13423 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13424 (TIFF support, GIF support, Ghostscript support): Consolidate image
13425 code from xfns.c, w32fns.c, and macfns.c.
13426 (syms_of_image): Consolidate image related symbol setup here.
13427 (init_image): Consolidate image related initializations here.
37264101 13428
c0f97789
KS
13429 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
13430 and init_image. Remove call to init_xfns.
13431
37264101
SM
13432 * macterm.h (struct mac_bitmap_record): Add file member.
13433 Not currently used, but simplifies code sharing.
c0f97789
KS
13434
13435 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13436 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13437 (x_reference_bitmap, x_create_bitmap_from_data)
13438 (x_create_bitmap_from_file, x_destroy_bitmap)
13439 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13440 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13441 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13442 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13443 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13444 (define_image_type, lookup_image_type, valid_image_p)
13445 (image_error, enum image_value_type, struct image_keyword)
13446 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13447 (make_image, free_image, prepare_image_for_display, image_ascent)
13448 (four_corners_best, image_background, image_background_transparent)
9dd28cae 13449 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
13450 (make_image_cache, free_image_cache, clear_image_cache)
13451 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13452 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13453 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13454 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
13455 (init_image_func_pointer, image_load_quartz2d)
13456 (struct ct_color, init_color_table, free_color_table)
13457 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13458 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13459 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13460 (x_disable_image, x_build_heuristic_mask)
13461 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13462 (TIFF support, GIF support, Ghostscript support): Merge with image
13463 code from xfns.c and macfns.c into image.c.
13464 (syms_of_xfns): Move image related symbols to image.c.
13465 (init_external_image_libraries, init_xfns): Remove; initialization
13466 moved to init_image in image.c.
13467
13468 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13469 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13470 (x_reference_bitmap, x_create_bitmap_from_data)
13471 (x_create_bitmap_from_file, x_destroy_bitmap)
13472 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13473 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13474 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13475 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13476 (define_image_type, lookup_image_type, valid_image_p)
13477 (image_error, enum image_value_type, struct image_keyword)
13478 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13479 (make_image, free_image, prepare_image_for_display, image_ascent)
13480 (four_corners_best, image_background, image_background_transparent)
9dd28cae 13481 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
13482 (make_image_cache, free_image_cache, clear_image_cache)
13483 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13484 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13485 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13486 (struct ct_color, init_color_table, free_color_table)
13487 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13488 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13489 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13490 (x_disable_image, x_build_heuristic_mask)
13491 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13492 (TIFF support, GIF support, Ghostscript support): Merge with image
13493 code from xfns.c and macfns.c into image.c.
13494 (syms_of_xfns): Move image related symbols to image.c.
13495 (init_external_image_libraries, init_xfns): Remove; initialization
13496 moved to init_image in image.c.
13497
13498 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13499 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13500 (x_reference_bitmap, x_create_bitmap_from_data)
13501 (x_create_bitmap_from_file, x_destroy_bitmap)
13502 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13503 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13504 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13505 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13506 (define_image_type, lookup_image_type, valid_image_p)
13507 (image_error, enum image_value_type, struct image_keyword)
13508 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13509 (make_image, free_image, prepare_image_for_display, image_ascent)
13510 (four_corners_best, image_background, image_background_transparent)
9dd28cae 13511 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
13512 (make_image_cache, free_image_cache, clear_image_cache)
13513 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13514 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13515 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13516 (struct ct_color, init_color_table, free_color_table)
13517 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13518 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13519 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13520 (x_disable_image, x_build_heuristic_mask)
13521 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13522 (TIFF support, GIF support, Ghostscript support): Merge with
13523 w32fns.c and macfns.c image code into image.c.
13524 (syms_of_xfns): Move image related symbols to image.c.
13525 (init_xfns): Remove; initialization moved to init_image in image.c.
13526
13527 * lisp.h (syms_of_image, init_image): Add protoypes.
13528 (init_xfns): Remove prototype.
13529
13530 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13531 (x_reference_bitmap, x_create_bitmap_from_data)
13532 (x_create_bitmap_from_file, x_destroy_bitmap)
13533 (x_create_bitmap_mask): Move prototypes from dispextern.h.
13534 (gamma_correct) [MAC_OS]: Add prototype.
13535
13536 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13537 (x_reference_bitmap, x_create_bitmap_from_data)
13538 (x_create_bitmap_from_file, x_destroy_bitmap)
13539 (x_create_bitmap_mask): Move prototypes to dispextern.h.
13540
6eced09c
KH
135412004-03-09 Kenichi Handa <handa@etlken2>
13542
13543 * coding.c (decode_coding_emacs_mule): Handle insufficent source
13544 correctly.
13545
9a7e95f3
RS
135462004-03-04 Richard M. Stallman <rms@gnu.org>
13547
04a6e76b
RS
13548 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
13549
9a7e95f3
RS
13550 * window.c (Fdisplay_buffer): Doc fix.
13551
13552 * buffer.c (Fpop_to_buffer): Doc fix.
13553
6c2488df
KS
135542004-03-03 Kim F. Storm <storm@cua.dk>
13555
13556 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
13557
d8d95bc7
SM
135582004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
13559
13560 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
13561
357589bf
RS
135622004-03-02 Richard M. Stallman <rms@gnu.org>
13563
13564 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
13565
409949b5
KH
135662004-03-02 Kenichi Handa <handa@m17n.org>
13567
13568 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
13569
d24bc50f
KS
135702004-03-02 Kim F. Storm <storm@cua.dk>
13571
13572 * window.h (struct window): New member overlay_arrow_bitmap.
13573
13574 * window.c (make_window): Initialize overlay_arrow_bitmap.
13575
13576 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
13577 implement and integrate multiple overlay arrows with redisplay.
13578 (syms_of_xdisp): DEFVAR_LISP and initialize it.
13579 (last_arrow_position, last_arrow_string): Replace by properties.
13580 (Qlast_arrow_position, Qlast_arrow_string)
13581 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
13582 (syms_of_xdisp): Intern and staticpro them.
13583 (overlay_arrow_string_or_property, update_overlay_arrows)
13584 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
13585 (overlay_arrow_at_row): New functions for multiple overlay arrows.
13586 (redisplay_internal): Use them instead of directly accessing
13587 Voverlay_arrow_position etc. for multiple overlay arrows.
13588 (mark_window_display_accurate): Use update_overlay_arrows.
13589 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
13590 (try_window_id): Use overlay_arrows_changed_p.
13591 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
13592 (display_line): Use overlay_arrow_at_row to check multiple
13593 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 13594 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
13595 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
13596 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
13597
13598 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
13599 (update_window_fringes): Remove unused code.
13600
c1464661
JR
136012004-03-01 Jason Rumney <jasonr@gnu.org>
13602
13603 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
13604
a64387ee
JB
136052004-03-01 Juanma Barranquero <lektu@terra.es>
13606
13607 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
13608
13609 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
13610
334faa08
JD
136112004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13612
13613 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
13614 how many colors can be displayed.
13615
bb62616f
KH
136162004-03-01 Kenichi Handa <handa@m17n.org>
13617
13618 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
13619 correctly.
13620
0fd16104
KS
136212004-02-28 Kim F. Storm <storm@cua.dk>
13622
13623 * dispnew.c (update_window): Update header line also if there are
13624 no other changes in window (move code after set_cursor label).
13625
13626 * lisp.h (mark_window_display_accurate): Remove prototype.
13627
13628 * window.c (window_loop, Fforce_window_update): Force mode line
13629 updates by setting prevent_redisplay_optimizations_p and
13630 update_mode_lines.
13631
b59dd9c8
JD
136322004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13633
d8d95bc7 13634 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
13635
13636 * xterm.c (x_calc_absolute_position): Call x_real_positions
13637 to get WM window sizes and use those to calculate position.
d8d95bc7 13638 (x_set_offset): Remove code commented out.
b59dd9c8 13639
a874691c
MB
136402004-02-28 Miles Bader <miles@gnu.org>
13641
13642 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
13643
3e0c6482
KS
136442004-02-28 Kim F. Storm <storm@cua.dk>
13645
13646 * keyboard.c (kbd_buffer_store_event_hold): New function to store
13647 an event into kbd fifo, but with special handling of quit event;
13648 a quit event is saved for later, and further events are discarded
13649 until the saved quit event has been processed.
13650 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
13651 (gen_help_event): Store help event in kbd fifo.
13652 (NREAD_INPUT_EVENTS): Remove.
13653 (read_avail_input): Adapt to new read_socket_hook interface.
13654 Remove allocation and initialization of local input_event buffer,
13655 as read_socket_hook stores events directly in fifo. Allocate and
13656 initialize local hold_quit event to handle postponed quit event
13657 (and store it if set by kbd_buffer_store_event_hold).
13658
13659 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
13660 (gen_help_event): Fix prototype.
13661
a64387ee 13662 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 13663 numcharsp args. Add hold_quit arg.
f63fd14e 13664 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
13665 directly in fifo using kbd_buffer_store_event_hold.
13666
13667 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
13668 (read_input_waiting): Adapt to new read_socket_hook interface.
13669 Remove allocation and initialization of local input_event buffer,
13670 as read_socket_hook stores events directly in fifo. Allocate and
13671 initialize local hold_quit event to handle postponed quit event
13672 (and store it if set by kbd_buffer_store_event_hold).
13673
a64387ee 13674 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
13675
13676 * termhooks.h (read_socket_hook): Fix prototype.
13677
13678 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
13679 numcharsp args. Add hold_quit arg.
f63fd14e 13680 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
13681 directly in fifo using kbd_buffer_store_event_hold.
13682
13683 * w32inevt.h (w32_console_mouse_position): Fix prototype.
13684
13685 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
13686 Add hold_quit arg. Rework to use just one, local, inev
13687 input_event. Store inev directly in fifo using
3e0c6482
KS
13688 kbd_buffer_store_event_hold. Update count in one place.
13689 Postpone call to gen_help_event until inev is stored; use new
13690 local do_help for this.
13691 Remove local emacs_event in handing of ButtonPress event; just use
13692 inev instead (so no reason to copy it later).
13693
13694 * xsmfns.c (x_session_check_input): Remove numchars arg.
13695
d8d95bc7
SM
13696 * xterm.c (x_focus_changed, x_detect_focus_change):
13697 Remove numchars arg. Always store event into bufp arg.
13698 Return nothing. Callers changed accordingly.
3e0c6482
KS
13699 (glyph_rect): Simplify.
13700 (STORE_KEYSYM_FOR_DEBUG): New macro.
13701 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
13702 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
13703 (current_hold_quit) [USE_GTK]: Add.
13704 (event_handler_gdk): Adapt to new handle_one_xevent.
13705 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
13706 Add hold_quit arg. Rework to use just one, local, inev
13707 input_event. Store inev directly in fifo using
3e0c6482
KS
13708 kbd_buffer_store_event_hold. Update count in one place.
13709 Postpone call to gen_help_event until inev is stored; use new
13710 local do_help for this.
13711 Simplify handling of keysyms (consolidate common code). Fix bug
13712 where count was updated with nchars instead of nbytes.
13713 Remove local emacs_event in handing of ButtonPress event; just use
13714 inev instead (so no reason to copy it later).
13715 Remove `out' label. Rename label `ret' to `done'; add various
13716 `goto done' to clarify code flow in deeply nested blocks.
13717 (x_dispatch_event): Simplify as handle_one_xevent now calls
13718 kbd_buffer_store_event itself.
f63fd14e 13719 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
13720 arg. Call handle_one_xevent with new arglist. Store event from
13721 x_session_check_input in fifo.
13722 [USE_GTK]: Setup current_hold_quit.
13723 Decrement handling_signal before unblocking input.
13724 (x_initialize) [USE_GTK]: Initialize current_count.
13725
13726 * xterm.h (x_session_check_input): Fix prototype.
13727
e3564461 137282004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 13729
d8d95bc7 13730 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 13731
e3564461
ST
13732 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
13733 macgui.h).
a64387ee 13734
e3564461 13735 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 13736
e3564461
ST
13737 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
13738 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
13739 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
13740 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
13741 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
13742 (Bitmap): Remove typedef.
13743 (Pixmap): Change int to GWorldPtr.
13744
d8d95bc7 13745 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 13746
d8d95bc7
SM
13747 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
13748 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
13749 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
13750 long representation.
13751 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
13752 colors used for masks.
13753 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 13754
e3564461
ST
13755 * macfns.c: Include sys/types.h and sys/stat.h.
13756 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
13757 Include QuickTime/QuickTime.h.
13758 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13759 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
13760 functions defined in macterm.c.
13761 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
13762 (ZPixmap): New #define for compatibility with xfns.c.
13763 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13764 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
13765 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
13766 New functions.
e3564461 13767 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
13768 (x_destroy_x_image, unwind_create_frame, x_disable_image)
13769 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
13770 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
13771 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
13772 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
13773 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
13774 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
13775 long mixup.
13776 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
13777 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
13778 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
13779 (x_set_cursor_type, Fxw_color_values, valid_image_p)
13780 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
13781 (x_alloc_image_color, clear_image_cache, lookup_image)
13782 (x_find_image_file, xbm_read_bitmap_file_data)
13783 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
13784 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
13785 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
13786 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
13787 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 13788 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
13789 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
13790 #if 0.
13791 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
13792 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
13793 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
13794 New functions (from xfns.c).
e3564461
ST
13795 (Fx_create_frame): Record unwind_create_frame.
13796 (Fxw_display_color_p): Use dpyinfo->color_p.
13797 (Fx_display_grayscale_p, Fx_display_planes): Don't use
13798 dpyinfo->n_cbits.
13799 (Fx_display_color_cells): Use dpyinfo->n_planes;
13800 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
13801 (Qheuristic, cross_disabled_images, emboss_matrix)
13802 (laplace_matrix): New variables (from xfns.c).
13803 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
13804 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
13805 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
13806 (image_background_transparent): New function (from xfns.c).
13807 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
13808 (image_load_quicktime): Add declaration.
13809 [MAC_OSX] (image_load_quartz2d): Likewise.
13810 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
13811 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 13812 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
13813 (xbm_load_image_from_file, x_laplace_read_row)
13814 (x_laplace_write_row, pbm_read_file): Remove functions.
13815 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
13816 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
13817 (colors_in_color_table): Sync with xfns.c (although not used).
13818 (lookup_rgb_color): Don't lookup color table. Just do gamma
13819 correction.
13820 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
13821 (x_disable_image): New function (from xfns.c).
13822 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13823 (x_build_heuristic_mask): Sync with xfns.c.
13824 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
13825 (HAVE_PBM): Remove #ifdef.
13826 (pbm_load): Sync with xfns.c. Set img->width and img->height
13827 before IMAGE_BACKGROUND.
d8d95bc7 13828 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
13829 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
13830 Don't enclose with #if HAVE_PNG.
13831 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
13832 symbol _CGImageCreateWithPNGDataProvider is defined.
13833 Otherwise use image_load_quicktime.
e3564461 13834 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
13835 [HAVE_PNG] (png_load): Sync with xfns.c.
13836 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
13837 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
13838 HAVE_JPEG.
13839 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
13840 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
13841 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
13842 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
13843 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
13844 (tiff_image_p, tiff_load): Don't enclose declarations with #if
13845 HAVE_TIFF.
13846 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
13847 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
13848 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
13849 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
13850 New functions (from xfns.c).
e3564461 13851 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 13852 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
13853 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
13854 Don't enclose with #if HAVE_GIF.
13855 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
13856 animated gif. Otherwise use image_load_quicktime.
13857 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
13858 gif_DrawText to avoid conflict with QuickdrawText.h.
13859 [HAVE_GIF] (gif_load): Sync with xfns.c.
13860 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
13861 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
13862 Ghostscript is not supported yet).
13863 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
13864 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
13865 cross_disabled_images (from xfns.c). Remove #if 0 for supported
13866 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
13867 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
13868 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
13869 HAVE_PNG. Call EnterMovies to support animated gifs.
13870 Call init_image_func_pointer to bind a symbol
e3564461 13871 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 13872
d8d95bc7 13873 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
13874 (x_draw_bar_cursor): Sync declaration with xterm.c.
13875 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
13876 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
13877 graphics).
13878 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
13879 (mac_draw_line_to_pixmap, XCreatePixmap)
13880 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
13881 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
13882 New functions.
13883 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
13884 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
13885 Cast bits to char *.
e3564461
ST
13886 (reflect_byte): New function (from w32fns.c).
13887 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
13888 due to byte alignment.
d8d95bc7
SM
13889 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
13890 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
13891 (XSetForeground): Remove static (now used in macfns.c).
13892 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
13893 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
13894 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
13895 (x_draw_glyph_string_box, x_draw_image_foreground)
13896 (x_draw_image_foreground_1, x_draw_image_glyph_string)
13897 (x_draw_stretch_glyph_string, x_draw_glyph_string)
13898 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
13899 Sync with xterm.c.
13900 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
13901 than the xterm.c version when a strictly horizontal or vertical
13902 line is drawn.
13903 (XTset_terminal_window): Add static.
13904 (x_make_frame_visible): Add UNBLOCK_INPUT.
13905 (x_free_frame_resources): New funcion (from xterm.c).
13906 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
13907 occurs in tool bar area.
d8d95bc7
SM
13908 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
13909 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
13910 Initialize image cache.
13911 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
13912 Enclose unused functions with #if 0.
13913 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
13914 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 13915 from a mac font name to an XLFD font name according to its script code.
e3564461 13916 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 13917 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
13918 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
13919 whose name starts with `.'.
13920 (init_font_name_table): Use decode_mac_font_name. Add both
13921 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
13922 of a font is smJapanese.
13923 (mac_do_list_fonts): New function to list fonts that match a given
13924 pattern.
13925 (x_list_fonts, XLoadQueryFont): Use it.
13926 (XLoadQueryFont): Set rbearing field for each variable width
13927 character to avoid needless redraw.
13928 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
13929
446f5f3d
KS
139302004-02-26 Kim F. Storm <storm@cua.dk>
13931
af617d0f
KS
13932 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
13933 as read_socket_hook handler on X aborts if buffer is too small
13934 and W32 handler doesn't always check buffer limit.
13935
446f5f3d
KS
13936 * xdisp.c (handle_single_display_prop): Handle left-fringe and
13937 right-fringe similar to a display margin image. Specifically,
13938 the characters having the fringe prop are no longer shown, and
13939 we use IT_IMAGE/next_element_from_image with image_id = -1 to
13940 do this. Set fringe bitmap face_id in it->face_id.
13941 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
13942 still realize it->face (i.e. the fringe bitmap face).
13943
7d8a0b55
MB
139442004-02-25 Miles Bader <miles@gnu.org>
13945
13946 * xdisp.c (check_it): Check string/string_pos consistency.
13947 (init_iterator): Initialize string-related fields properly.
13948
139492004-02-11 Miles Bader <miles@gnu.org>
13950
13951 * xdisp.c (produce_image_glyph): Force negative descents to zero.
13952
139532004-02-10 Miles Bader <miles@gnu.org>
13954
13955 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
13956 BLOCK_INPUT can be nested, so it doesn't make much sense.
13957
a64387ee 139582004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
13959
13960 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
13961 (xbm_read_bitmap_data): Use unsigned char for image data.
13962
92f5fba2
LT
139632004-02-23 Luc Teirlinck <teirllm@auburn.edu>
13964
13965 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
13966
8565fb3d
JR
139672004-02-22 Jason Rumney <jasonr@gnu.org>
13968
13969 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
13970 correctly over other bitmaps.
13971
a6eeaa81 139722004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
13973
13974 * emacs.c (USAGE1): Split into two halves.
13975 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
13976 (USAGE3): Rename from USAGE2.
13977 (USAGE4): Rename from USAGE3.
f8125c39 13978
4effffca
EZ
139792004-02-21 Juri Linkov <juri@jurta.org>
13980
13981 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
13982 Fix --multibyte. Move --help, --version to USAGE2. Add alias
13983 --file. Fix -f, -l. Sort options. Untabify.
13984 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
13985
923c1e6f
LT
139862004-02-19 Luc Teirlinck <teirllm@auburn.edu>
13987
13988 * category.c (Fdefine_category, Fcategory_docstring)
13989 (Fget_unused_category, Fset_category_table)
13990 (Fcategory_set_mnemonics): Doc fixes.
13991
b0e225fd
KS
139922004-02-20 Kim F. Storm <storm@cua.dk>
13993
13994 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
13995 The following changes are relative to the 2004-01-21 revision.
13996 (NREAD_INPUT_EVENTS): Define as max number of input events to read
13997 in one call to read_socket_hook. Value is 8.
13998 (read_avail_input): Separate and rework handling of read_socket_hook
13999 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
14000 in read_socket_hook case, and repeat if full buffer is read.
14001 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
14002 In non-read_socket_hook case, just use a single input_event, and
14003 call kbd_buffer_store_event on the fly for each character.
14004
b15aa9f9
SM
140052004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14006
14007 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
14008 Remove unused `gu' alternative.
14009
83c9aa95
AS
140102004-02-19 Andreas Schwab <schwab@suse.de>
14011
14012 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
14013 warning.
14014
cc808173
KS
140152004-02-18 Kim F. Storm <storm@cua.dk>
14016
14017 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
14018 Fix last change.
14019
ab90a54d
KS
140202004-02-17 Kim F. Storm <storm@cua.dk>
14021
b26f249f
KS
14022 * xdisp.c (fast_find_position): Fix return value of new version;
14023 it was inverted compared to the 21.1 version.
14024 (get_window_cursor_type): Don't look at glyph if NULL.
14025 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 14026
ab90a54d
KS
14027 * keyboard.c: Rework previous change; it didn't consider that the
14028 buf array was allocated on the stack.
14029 (prev_read): Remove variable.
14030 (read_avail_input_buf): New static event buffer array.
b9568dfc 14031 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 14032 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
14033 Use in_read_avail_input to handle re-entrance; when re-entered,
14034 fully initialize and use tmp_buf array instead of read_avail_input_buf.
14035 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
14036 is always cleared on entry. To ensure that, we clear (just) the
14037 entries that were used before we return.
14038 (init_keyboard): Initialize read_avail_input_buf here.
14039
b6189c3b 140402004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
14041
14042 * cmds.c (Fend_of_line): Doc fix.
14043
7b5368c1
EZ
140442004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
14045
14046 * keyboard.c (prev_read): New static variable.
14047 (read_avail_input): Use it to zero out only those slots in buf[]
14048 that were used last time we were called.
14049
a6eeaa81 140502004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
14051
14052 * Makefile.in (obj): Move fringe.o from here...
14053 (XOBJ, MAC_OBJ): ...to here.
14054
159c348e
SE
140552004-02-16 Stephen Eglen <stephen@gnu.org>
14056
14057 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
14058
d2f14999
SM
140592004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
14060
b15aa9f9
SM
14061 * data.c (Fbyteorder):
14062 * fringe.c (Fdefine_fringe_bitmap):
14063 * xdisp.c (handle_single_display_prop):
d2f14999
SM
14064 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
14065
8d50508a
JR
140662004-02-16 Jason Rumney <jasonr@gnu.org>
14067
14068 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
14069
dd4497dc
ST
140702004-02-15 Steven Tamm <steventamm@mac.com>
14071
14072 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
14073 controlling emulation of a three button mouse with option and
14074 command keys.
7e26f91b 14075 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 14076 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 14077
c9159cb3
KS
140782004-02-15 Kim F. Storm <storm@cua.dk>
14079
2cc52658
KS
14080 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
14081
c9159cb3
KS
14082 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
14083 Perform byte-swapping.
14084
12fde2dc
KS
140852004-02-14 Kim F. Storm <storm@cua.dk>
14086
14087 * dispextern.h (struct draw_fringe_bitmap_params): Change member
14088 bits from char to short to facilitate wider bitmaps.
14089 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
14090 member.
14091
14092 * fringe.c (struct fringe_bitmap): Change member bits from char to
14093 short to facilitate 16 bits wide bitmaps. Modify all standard
14094 bitmaps accordingly.
14095 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
14096 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
14097 (draw_fringe_bitmap): Ditto.
14098 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
14099 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
14100 handle up to 16 bits wide bitmaps.
14101 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 14102 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
14103
14104 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
14105 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
14106 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
14107
14108 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
14109 so it is no longer necessary to expand them here.
14110
14111 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
14112
9d7271e8
KS
141132004-02-12 Kim F. Storm <storm@cua.dk>
14114
14115 * window.c (Fwindow_fringes): Doc fix.
14116
706c1e4f
JD
141172004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14118
14119 * xselect.c (x_get_foreign_selection): Add new optional parameter
14120 time_stamp.
14121 (Fx_get_selection_internal): Ditto, pass time_stamp to
14122 x_get_foreign_selection.
14123
14124 * data.c (Fbyteorder): New function.
14125
c2d12b5d
JD
141262004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14127
14128 * atimer.c: Move include stdio.h to same place as in other files.
14129
14130 * region-cache.c: Ditto.
14131
14132 * sysdep.c: Ditto.
14133
14134 * xfaces.c: Ditto.
14135
4c1947b9
SS
141362004-02-09 Sam Steingold <sds@gnu.org>
14137
89458937 14138 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 14139
82722af3
KS
141402004-02-09 Kim F. Storm <storm@cua.dk>
14141
14142 * fringe.c: New file. Move original fringe related declarations
14143 and code from dispextern.h and xdisp.c here.
14144 Rework code to support user defined fringe bitmaps, redefining
14145 standard bitmaps, ability to overlay user defined bitmap with
14146 overlay arrow bitmap, and add faces to bitmaps.
14147 (Voverflow_newline_into_fringe): Declare here.
14148 (enum fringe_bitmap_align): New enum.
14149 (..._bits): All bitmaps are now defined without bitswapping; that
14150 is now done in init_fringe_once (if necessary).
14151 (standard_bitmaps): New array with specifications for the
14152 standard fringe bitmaps.
14153 (fringe_faces): New array.
14154 (valid_fringe_bitmap_id_p): New function.
14155 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
14156 (draw_fringe_bitmap): New function which draws fringe bitmap,
14157 possibly overlaying bitmap with cursor in right fringe or the
14158 overlay arrow in the left fringe.
14159 (update_window_fringes): Do not handle overlay arrow here.
14160 Compare and copy fringe bitmap faces.
14161 (init_fringe_bitmap): New function.
14162 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
14163 define and destroy user defined fringe bitmaps.
14164 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
14165 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
14166 (syms_of_fringe): New function. Defsubr new DEFUNs.
14167 DEFVAR_LISP Voverflow_newline_into_fringe.
14168 (init_fringe_once, init_fringe): New functions.
14169 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 14170
82722af3
KS
14171 * Makefile.in (obj): Add fringe.o.
14172 (fringe.o): New dependencies.
14173
14174 * dispextern.h (FRINGE_ID_BITS): New definition for number of
14175 bits allocated to hold a fringe number. Increase number of bits
14176 from 4 to 8 to allow user defined fringe bitmaps.
14177 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
14178 left_user_fringe_face_id, right_user_fringe_bitmap,
14179 right_user_fringe_face_id.
14180 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
14181 Move to new file fringe.c.
14182 (MAX_FRINGE_BITMAPS): Define here.
14183 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
14184 and overlay_p. Change member which to int.
14185 (struct redisplay_interface): New members define_fringe_bitmap
14186 and destroy_fringe_bitmap.
14187 (valid_fringe_bitmap_id_p): Add prototype.
14188 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
14189
14190 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
14191 arrows.
14192 (update_frame): Do flush_display if force_flush_display_p to
14193 ensure display (specifically fringes) are updated in a timely
14194 manner when resizing the frame by dragging the mouse.
14195 (update_window_line): Update row if overlay arrow changed.
14196 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
14197 or overlay arrow changed.
14198
14199 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
14200 syms_of_fringe, and init_fringe.
14201
14202 * frame.h (struct frame): New member force_flush_display_p.
14203
14204 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
14205 Add prototypes.
14206
a3993cc8 14207 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 14208 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
14209 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
14210 Use cursor color for displaying cursor in fringe.
82722af3
KS
14211 (x_redisplay_interface): Add null handlers for
14212 define_fringe_bitmap and destroy_fringe_bitmap functions.
14213
14214 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
14215 xterm.c to handle overlayed fringe bitmaps and to use cursor color
14216 for displaying cursor in fringe.
14217 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
14218 specific functions to define and destroy fringe bitmaps in fringe_bmp.
14219 (w32_redisplay_interface): Add them to redisplay_interface.
14220 (w32_term_init): Call w32_init_fringe instead of explicitly
14221 defining fringe bitmaps in fringe_bmp array.
14222 (x_delete_display): Call w32_reset_fringes instead of explicitly
14223 destroying fringe bitmaps in fringe_bmp array.
14224
14225 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
14226 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
14227 (continued_bits, continuation_bits, ov_bits, first_line_bits)
14228 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
14229 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
14230 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
14231 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
14232 Move fringe handling vars and code to new file fringe.c.
14233 (handle_display_prop): Handle left-fringe and right-fringe
14234 display properties; store user fringe bitmaps in iterator.
14235 (move_it_in_display_line_to): Handle cursor in fringe at eob.
14236 (clear_garbaged_frames): Set force_flush_display_p if resized.
14237 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
14238 (display_line): Handle cursor in fringe at eob.
14239 (display_line): Set row user fringe bitmaps from iterator.
14240
14241 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
14242 Use cursor color for displaying cursor in fringe.
14243 (x_redisplay_interface): Add null handlers for
14244 define_fringe_bitmap and destroy_fringe_bitmap functions.
14245
030400eb
JD
142462004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14247
14248 * macfns.c (Fx_change_window_property): Make doc string and
14249 parameters same as for X version.
14250
14251 * w32fns.c (Fx_change_window_property): Ditto.
14252
3af55251
KS
142532004-02-07 Kim F. Storm <storm@cua.dk>
14254
ec110e9e
KS
14255 * xdisp.c (hscroll_window_tree): Position cursor near to right
14256 margin in hscrolled window when jumping to end of line (rather
14257 than centering cursor).
14258
3af55251
KS
14259 * process.c (wait_reading_process_input): Don't do adaptive read
14260 buffering if waiting for a specific process.
14261
b0c138ce
LT
142622004-02-05 Luc Teirlinck <teirllm@auburn.edu>
14263
14264 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
14265 (Fread_minibuffer, Feval_minibuffer)
14266 (Fread_string, Fread_no_blanks_input)
14267 (Fcompleting_read): Doc fixes.
14268 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
14269 completion-regexp-list. Define Qcase_fold_search and staticpro it.
14270 (read_minibuf): Fix initial comment.
14271 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 14272 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
14273 checking completion-regexp-list.
14274 (Fdisplay_completion_list): Make it handle arguments that are
14275 symbols. Doc fix.
14276
9676f5ad 142772004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 14278
9676f5ad 14279 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 14280
9676f5ad
JD
14281 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
14282 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 14283 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 14284 format. Remove unused variable cons.
5b698285 14285
9dd28cae 14286 * xselect.c: Include stdio.h.
5b698285 14287
fc1d15f6
KH
142882004-02-05 Kenichi Handa <handa@m17n.org>
14289
ebaff4af
KH
14290 * fns.c (Fset_char_table_range): Fix previous change.
14291
fc1d15f6
KH
14292 * buffer.c (Fset_buffer_multibyte): Fix docstring.
14293
9676f5ad
JD
142942004-02-04 Luc Teirlinck <teirllm@auburn.edu>
14295
14296 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
14297
da75761f
SM
142982004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
14299
14300 * keymap.c (Vmouse_events): Rename from Vmenu_events.
14301 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
14302
13c5d120
KH
143032004-02-04 Kenichi Handa <handa@m17n.org>
14304
14305 * fns.c (Fset_char_table_range): Handle charsets ascii,
14306 eight-bit-control, and eight-bit-graphic correctly.
14307
2883d842
JR
143082004-02-03 Jason Rumney <jasonr@gnu.org>
14309
14310 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
14311
14312 * w32fns.c (x_to_w32_font): Likewise.
14313
69eff41f
JD
143142004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14315
14316 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
14317 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
14318
14319 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
14320 ClientMessages.
14321
14322 * xselect.c: Include termhooks.h and X11/Xproto.h
14323 (x_check_property_data, x_fill_property_data)
14324 (x_property_data_to_lisp, mouse_position_for_drop)
14325 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 14326 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
14327 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
14328
da75761f 14329 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
14330 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
14331 OUTER_P.
14332 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
14333 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
14334 if vector_ret_p is true.
14335 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 14336
a6eeaa81 143372004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
14338
14339 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
14340 basename of FILE relative to it, not FILE itself.
14341
09721b31
KH
143422004-02-02 Kenichi Handa <handa@m17n.org>
14343
14344 * coding.c (coding_restore_composition): Check invalid
14345 composition data more rigidly.
14346
eb996101
LT
143472004-01-30 Luc Teirlinck <teirllm@auburn.edu>
14348
14349 * fileio.c (Fread_file_name_internal): Correctly handle the case
14350 where insert-default-directory is nil.
14351 (Fread_file_name): Always return an empty string if the user exits
14352 with an empty minibuffer. Adapt the docstring accordingly.
14353 (syms_of_fileio): Adapt the docstring of insert-default-directory
14354 to the change in Fread_file_name.
14355
a6eeaa81 143562004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
14357
14358 * alloca.c [!alloca]: Fix the prototype for xfree.
14359
13f52ed8
KH
143602004-01-29 Kenichi Handa <handa@m17n.org>
14361
14362 * fns.c (string_char_to_byte): Optimize for ASCII only string.
14363 (string_byte_to_char): Likewise.
14364
d57625a0
JR
143652004-01-28 Peter Runestig <peter@runestig.com>
14366
14367 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
14368
a64387ee 143692004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
14370
14371 * unexmacosx.c (unexec_copy): Do not copy more than was
14372 requested to prevent overwriting during unexec.
14373
eb37b8fd
JD
143742004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14375
ce38070a
JD
14376 * process.c (sigchld_handler): Add comment about not calling malloc.
14377
eb37b8fd
JD
14378 * process.h: Add extern to synch_process_termsig.
14379
a64387ee 143802004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 14381
da75761f
SM
14382 * macterm.c (make_mac_frame, make_mac_terminal_frame):
14383 Move setting of scroll bars from make_mac_frame to
14384 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 14385
d62a265d
RS
143862004-01-26 Richard M. Stallman <rms@gnu.org>
14387
14388 * search.c (Freplace_match): Handle nonexistent
14389 back-references properly.
14390
143912004-01-03 Richard M. Stallman <rms@gnu.org>
14392
14393 * window.c (decode_any_window): New function.
14394 (Fwindow_height, Fwindow_width, Fwindow_edges)
14395 (Fwindow_pixel_edges, Fwindow_inside_edges)
14396 (Fwindow_inside_pixel_edges): Use decode_any_window.
14397
ff236419
JD
143982004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14399
14400 * process.h: synch_process_termsig new variable.
14401
14402 * callproc.c: Define synch_process_termsig.
14403 (Fcall_process): Initiate synch_process_termsig to zero and
14404 check if non-zero and get signal name after subprocess has ended.
14405
14406 * process.c (sigchld_handler): Set synch_process_termsig
14407 if terminated by a signal. synch_process_death setting removed.
14408
14409 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
14410
41b867ea
AS
144112004-01-26 Andreas Schwab <schwab@suse.de>
14412
14413 * print.c (print_preprocess): Declare size as EMACS_INT to not
14414 lose bits.
14415 (print_object): Likewise.
14416 * alloc.c (Fpurecopy): Likewise.
14417
a08084ff
LT
144182004-01-25 Luc Teirlinck <teirllm@auburn.edu>
14419
14420 * window.c (Fwindow_minibuffer_p): Doc fix.
14421
b19ac475
JY
144222004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
14423
14424 * editfns.c (Fformat): Make both passes accept the same set of flags.
14425
fe905025
KH
144262004-01-23 Kenichi Handa <handa@m17n.org>
14427
14428 * fns.c (Fmd5): If OBJECT is a buffer different from the current
14429 one, set buffer to OBJECT temporarily.
14430
438fc6c0
SM
144312004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
14432
455316e2
SM
14433 * keyboard.c (kbd_buffer_gcpro): Remove.
14434 (kbd_buffer_store_event, clear_event, Fdiscard_input)
14435 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
14436 Don't initialize and/or maintain the variable any more. It was made
14437 redundant by my commit of 2003-06-15.
14438
438fc6c0
SM
14439 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
14440
5335a4ee
JD
144412004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14442
14443 * lisp.h: Add undef DECL_ALIGN.
14444
dcdaeebc
SM
144452004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
14446
14447 * process.c (wait_reading_process_input) [SYNC_INPUT]:
14448 Check interrupt_input_pending explicitly.
14449
14450 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
14451
14452 * keyboard.c (handle_async_input): New fun,
14453 extracted from input_available_signal.
14454 (input_available_signal, reinvoke_input_signal): Use it.
14455
9076a823
SM
144562004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
14457
d7107586
SM
14458 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
14459
14460 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
14461 manipulation macros for when tags are in the lower bits.
14462 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
14463 (DECL_ALIGN): New macro.
14464 (DEFUN): Use it.
14465
14466 * lisp.h [ENABLE_CHECKING]: Don't force union type.
14467
14468 * s/darwin.h (__attribute__): Remove outdated workaround.
14469
14470 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
14471
14472 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
14473 Don't check range of malloc address.
14474 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
14475
9076a823
SM
14476 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
14477
14478 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
14479
ba029065
KH
144802004-01-19 Kenichi Handa <handa@m17n.org>
14481
14482 * fontset.c (fontset_font_pattern): Fix previous change.
14483
7af0e8d7
MB
144842004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
14485
14486 * xdisp.c (Voverflow_newline_into_fringe)
14487 (move_it_in_display_line_to, redisplay_internal)
14488 (update_window_fringes, redisplay_window, display_line, window):
14489 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
14490 that it compiles without a window-system.
14491 * dispnew.c (direct_output_for_insert, update_window): Likewise.
14492
77a9cf69
KS
144932004-01-16 Kim F. Storm <storm@cua.dk>
14494
14495 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
14496
a64387ee 14497 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
14498 buffer_local_flags for indicate_buffer_boundaries.
14499 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
14500 default- variable for it.
14501
14502 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
14503 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 14504 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
14505 overflowing newlines into right fringe.
14506 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
14507 and indicate_bottom_line_p for buffer boundaries and scrolling.
14508 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
14509 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
14510 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
14511 and HOLLOW_SQUARE_BITMAP.
14512 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
14513 Add prototypes.
14514
14515 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
14516 instead of related indicator fields.
14517 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
14518 (direct_output_for_insert): Handle exact width lines like
14519 contined lines. Call update_window_fringes.
14520 (update_window): Call update_window_fringes.
14521 (scrolling_window): Don't skip desired rows with changed bitmaps.
14522 Check if fringe bitmaps changes when assigning scrolled rows.
14523
14524 * xdisp.c (Voverflow_newline_into_fringe): New variable.
14525 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
14526 (move_it_in_display_line_to): Overflow newline into fringe for
14527 rows that are exactly as wide as the window.
14528 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
14529 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
14530 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
14531 (fringe_bitmaps): Add new bitmaps.
14532 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
14533 Select proper bitmap for cursor in fringe when appropriate.
14534 Handle alignment of bitmap to top or bottom of row.
14535 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
14536 done by update_window_fringes.
14537 (update_window_fringes, draw_window_fringes): New functions.
14538 (redisplay_internal): Call update_window_fringes in case only
14539 cursor row is updated.
14540 (redisplay_window): Call update_window_fringes.
14541 Explicitly call draw_window_fringes if redisplay was done using
14542 the current matrix or the overlay arrow is in the window.
14543 (try_window_reusing_current_matrix): Mark scrolled rows for
14544 fringe update (to update buffer-boundaries / scrolling icons).
14545 (find_last_unchanged_at_beg_row): Handle exact width lines line
14546 continued lines.
14547 (display_line): Overflow newline into fringe for rows that are
14548 exactly as wide as the window. Don't append space for newline
d7107586 14549 in this case.
77a9cf69
KS
14550 (notice_overwritten_cursor): Explicitly clear cursor bitmap
14551 in fringe as if it had been overwritten.
14552 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 14553 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
14554 void-text-area-pointer as user options.
14555 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 14556
77a9cf69
KS
14557 * xterm.c (x_update_window_end): Call draw_window_fringes.
14558 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14559 in row instead of actually drawing fringe bitmaps.
14560 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14561 (x_draw_window_cursor): Draw cursor in fringe.
14562
14563 * w32term.c (x_update_window_end): Call draw_window_fringes.
14564 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14565 in row instead of actually drawing fringe bitmaps.
14566 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14567 (w32_draw_window_cursor): Draw cursor in fringe.
14568
14569 * macterm.c (x_update_window_end): Call draw_window_fringes.
14570 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14571 in row instead of actually drawing fringe bitmaps.
14572 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14573 (mac_draw_window_cursor): Draw cursor in fringe.
14574
a633a954
JD
145752004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14576
14577 * xterm.c (handle_one_xevent): Don't handle characters that are part
14578 of an old style (XLookupString) compose sequence.
14579
80460525
KH
145802004-01-15 Kenichi Handa <handa@m17n.org>
14581
14582 * search.c (Freplace_match): Use make_multibyte_string or
14583 make_unibyte_string according to the buffer multibyteness.
14584
7fc34f85
SM
145852004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
14586
14587 * alloc.c (struct interval_block, struct string_block)
14588 (struct symbol_block, struct marker_block, live_string_p)
14589 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
14590 Better preserve alignment for objects in blocks.
14591 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
14592
14593 * lread.c (defvar_per_buffer): Remove dead declaration.
14594
14595 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
14596 space size.
14597
66070bd1
JD
145982004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14599
14600 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
14601 if a key press should pop down. Only pop down if a key is pressed
14602 outside the menu/dialog.
14603 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
14604 popup_get_selection.
14605 (create_and_show_dialog): Pass 1 for down_on_keypress to
14606 popup_get_selection.
14607
de7515d6
JD
146082004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14609
14610 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
14611 BLOCK/UNBLOCK_INPUT.
14612
160b1b50
JD
146132004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14614
14615 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
14616 specified.
14617
3a9f36e6
KH
146182004-01-08 Kenichi Handa <handa@m17n.org>
14619
14620 * editfns.c (Fformat): Fix '&' to '&&'.
14621
3803eb32
AS
146222004-01-08 Andreas Schwab <schwab@suse.de>
14623
14624 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
14625 size if PSEUDOVECTOR_FLAG is set.
14626
9da88f37
KH
146272004-01-07 Kenichi Handa <handa@m17n.org>
14628
74ac5074
KH
14629 * charset.c (Fdeclare_equiv_charset): Fix docstring.
14630
9da88f37
KH
14631 * fontset.c (fontset_ref_via_base): Fix previous change.
14632
05faee07
KS
146332004-01-07 Kim F. Storm <storm@cua.dk>
14634
14635 * process.c (read_process_output): Only activate adaptive
14636 buffering if we read less than 256 bytes at a time.
14637
634910c8
KS
146382004-01-06 Kim F. Storm <storm@cua.dk>
14639
14640 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
14641 object and image object. Return glyph width and height.
14642 (mode_line_string, marginal_area_string): Ditto.
14643
14644 * dispextern.h (buffer_posn_from_coords, mode_line_string)
14645 (marginal_area_string): Fix prototypes.
14646
14647 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 14648 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
14649 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
14650
14651 * keyboard.c (make_lispy_position): Use modified mode_line_string,
14652 buffer_posn_from_coords, and marginal_area_string functions to
14653 include both string object and image object in the lispy position.
14654 Also add actual glyph width and height to position.
14655 (read_key_sequence): Use real buffer position from mouse
14656 event to find keymap property even when click is in marginal area.
14657
14658 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
14659 mode_line_string and marginal_area_string functions to handle
14660 both string object and image object properties.
d7107586 14661
57951c2e
AS
146622004-01-06 Andreas Schwab <schwab@suse.de>
14663
14664 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
14665 character.
14666
181e6a61
AS
146672004-01-02 Andreas Schwab <schwab@suse.de>
14668
d7107586
SM
14669 * macterm.c (emacs_options, x_initialized, same_x_server):
14670 Remove unused (and duplicated) definitions.
181e6a61 14671
31e0fbdd
KS
146722004-01-02 Kim F. Storm <storm@cua.dk>
14673
14674 * process.h (struct Lisp_Process): New members for adaptive read
14675 buffering: adaptive_read_buffering, read_output_delay, and
14676 read_output_skip.
14677
14678 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
14679 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
14680 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
14681 (process_output_delay_count, process_output_skip): New vars.
14682 (Vprocess_adaptive_read_buffering): New variable.
14683 (make_process): Initialize adaptive read buffering members.
14684 (Fstart_process): Set adaptive_read_buffering member.
14685 (deactivate_process): Cleanup adaptive read buffering.
14686 (wait_reading_process_input): Temporarily omit delayed
14687 subprocesses from the set of file descriptors to read from;
14688 adjust the select timeout if we skipped any subprocesses.
14689 (read_process_output): Increase adaptive read buffering delay if
14690 we read less than a full buffer; reduce delay when we read a
14691 full buffer.
14692 (send_process): Simplify using local Lisp_Process var.
14693 Reset adaptive read buffering delay after write.
14694 (init_process): Initialize process_output_delay_count and
14695 process_output_skip.
14696 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
14697
68c6a789
JR
146982004-01-01 Jason Rumney <jasonr@gnu.org>
14699
d7107586 14700 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 14701
3f70fe82
LT
147022003-12-30 Luc Teirlinck <teirllm@auburn.edu>
14703
14704 * print.c (Ferror_message_string): Add hyperlink in the docstring
14705 to the definition of `signal' in the Elisp manual.
14706 * eval.c (Fsignal): Ditto.
14707
b6189c3b 147082003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
14709
14710 * fns.c (internal_equal): Return t for two NaN arguments.
14711
7abd90ea
RS
147122003-12-29 Richard M. Stallman <rms@gnu.org>
14713
14714 * data.c (store_symval_forwarding): Handle setting
14715 default-fill-column, etc., by changing the value in
14716 buffers that use the default.
14717
14718 * minibuf.c (Fset_minibuffer_window): Doc fix.
14719
14720 * fileio.c (choose_write_coding_system): Ignore auto_saving
14721 if using the visited file for auto saves.
14722 (Fwrite_region): Don't update SAVE_MODIFF
14723 if auto-saving in visited file.
14724
3e7cfcdc
KH
147252003-12-29 Kenichi Handa <handa@m17n.org>
14726
14727 * dispextern.h (face_font_available_p): Extern it.
14728
14729 * fontset.c (Voverriding_fontspec_alist): New variable.
14730 (lookup_overriding_fontspec): New function.
d7107586 14731 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
14732 (fontset_font_pattern): Likewise.
14733 (regulalize_fontname): New function.
14734 (Fset_fontset_font): Call regulalize_fontname.
14735 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
14736 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
14737 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
14738
14739 * xfaces.c (face_font_available_p): New function.
14740
7abd90ea
RS
147412003-12-28 Richard M. Stallman <rms@gnu.org>
14742
14743 * buffer.c (Fother_buffer): Don't crash if BUF is nil
14744 or if its name is nil.
14745
14746 * buffer.c (Fkill_buffer): Don't delete auto-save file
14747 if it's the same as the visited file.
14748
de1d1a40
LT
147492003-12-28 Luc Teirlinck <teirllm@auburn.edu>
14750
14751 * coding.c (Fcheck_coding_system): Doc fix.
14752
204fb75e
KS
147532003-12-28 Kim F. Storm <storm@cua.dk>
14754
14755 * Makefile.in (eval.o): Depend on dispextern.h.
14756
14757 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
14758 image glyph using image's ascent.
14759 (mode_line_string): Return image glyph as object clicked on.
14760 Adjust y0 for image glyph using image's ascent.
14761
14762 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
14763 (struct glyph): New members, ascent and descent. Used to save
14764 this glyph's ascent and descent, instead of having.
14765 (struct glyph): Declare member face_id using FACE_ID_BITS.
14766 (find_hot_spot): Add prototype.
14767
14768 * keyboard.c (Qimage): Remove extern (now in lisp.h).
14769 (QCmap): Declare extern.
14770 (make_lispy_position): When position is inside image hot-spot,
14771 use hot-spot element's id as posn element.
14772
14773 * lisp.h (IMAGEP): New macro to test for image object type.
14774 (Qimage): Declare extern.
14775
14776 * macfns.c (Qimage): Remove extern (now in lisp.h).
14777 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14778
14779 * macterm.c (Qface, Qmouse_face): Remove unused externs.
14780
14781 * w32fns.c (Qimage): Remove extern (now in lisp.h).
14782 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14783
14784 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
14785
14786 * w32term.c (Qface, Qmouse_face): Remove unused externs.
14787
14788 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
14789 pointer types.
14790 (Qrelative_width, Qalign_to): Remove unused variables.
14791 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
647b07d1
AS
14792 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
14793 maps.
14794 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
14795 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
14796 code accordingly.
204fb75e
KS
14797 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
14798 than row's ascent and height, to get sensible height on tall rows.
14799 (build_desired_tool_bar_string): Remove Qimage extern.
14800 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
14801 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
14802 image glyph is alone on the last line.
14803 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 14804 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 14805 (on_hot_spot_p): New function to check if position is inside an
d7107586 14806 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
14807 (find_hot_spot): New function to search for image hot-spot.
14808 (Flookup_image_map): New defun to search for image hot-spot.
647b07d1
AS
14809 (define_frame_cursor1): New aux function to determine frame
14810 pointer.
14811 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
14812 `pointer' text property and :pointer image property to control
14813 frame pointer shape. Detect image hot-spots for pointer and
14814 help_echo properties. Use define_frame_cursor1.
14815 (note_mouse_highlight): Use Vvoid_text_area_pointer.
14816 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
14817 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
14818 Vshow_text_cursor_in_void.
204fb75e
KS
14819
14820 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
14821
14822 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
14823 (Qimage): Remove extern (now in lisp.h).
14824 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14825
14826 * xmenu.c (show_help_event): Remove unused code.
14827
14828 * xterm.c (Qface, Qmouse_face): Remove unused externs.
14829 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
14830 row's ascent and descent, to get a sensible height on tall rows.
14831
fc052137
LT
148322003-12-25 Luc Teirlinck <teirllm@auburn.edu>
14833
14834 * minibuf.c (Fcompleting_read): Undo previous change.
14835
a64387ee 148362003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
14837
14838 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
14839 Arguments GCPRO'ed in call to file name handler.
14840
56ffd194
TTN
148412003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
14842
14843 * termcap.c (tgetst1): Scan for "%pN"; if all
14844 N are continuous in [1,9], remove all "%pN".
14845
5202d23d
JD
148462003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14847
f26fab36
JD
14848 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
14849
5202d23d
JD
14850 * xfaces.c (lface_fully_specified_p): Take into account that
14851 MAC OS always have unspecified stipple.
14852
8babaa59
TTN
148532003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
14854
14855 * tparam.c (tparam1): Add handling for `%pN', which
14856 means use param N for the next substitution.
14857
2d176448
TTN
148582003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
14859
14860 * xfaces.c (Fcolor_gray_p): Fix omission bug:
14861 In case `frame' is nil, consult the selected frame.
14862 (Fcolor_supported_p): Likewise.
14863
adb0708c
LT
148642003-12-23 Luc Teirlinck <teirllm@auburn.edu>
14865
000eeb15
LT
14866 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
14867 Doc fixes.
0dc72b11
LT
14868
14869 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
14870 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
14871 (Fread_from_minibuffer): Delete code moved into read_minibuf.
14872 Doc fix.
14873 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
14874 read_minibuf.
14875 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 14876 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 14877
2e4d132b
KH
148782003-12-03 Kenichi Handa <handa@m17n.org>
14879
14880 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
14881 encoding sequence.
14882
3999c705
KH
148832003-12-01 Kenichi Handa <handa@m17n.org>
14884
14885 * composite.c (syms_of_composite): Don't make the compostion hash
14886 table week.
14887
d344ecbb
LT
148882003-11-30 Luc Teirlinck <teirllm@auburn.edu>
14889
14890 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
14891 * textprop.c (Fget_char_property_and_overlay): New function.
14892 (syms_of_textprop): Defsubr it.
14893
03d6484e
JD
148942003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14895
019b1f0e
JD
14896 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
14897 to compile on terminal configuration.
14898
03d6484e
JD
14899 * fileio.c (Fread_file_name): Check use_file_dialog also before
14900 calling Fx_file_dialog.
14901
1d1c7e75 14902 * fns.c (use_file_dialog): New variable.
03d6484e
JD
14903 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
14904
442d3fd0
KS
149052003-11-29 Kim F. Storm <storm@cua.dk>
14906
14907 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
14908 (syms_of_msdos): Don't intern and staticpro them.
14909
0f6a07a8
KS
149102003-11-27 Kim F. Storm <storm@cua.dk>
14911
14912 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
14913 coordinates relative to glyph at posn. If glyph is an image,
14914 return that as object at posn. Callers changed.
14915 (mode_line_string, marginal_area_string): Calculate and return
14916 pixel coordinates relative to glyph. Callers changed.
14917
14918 * dispextern.h (buffer_posn_from_coords, mode_line_string)
14919 (marginal_area_string): Fix prototypes.
14920 (window_box_left_offset, window_box_right_offset): Add prototypes.
14921
14922 * frame.h (get_specified_cursor_type, get_window_cursor_type):
14923 Remove prototypes.
14924
14925 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
14926
14927 * keyboard.c (make_lispy_position): Add x and y coordinates
14928 relative to the current glyph as 7th element of position.
14929 If glyph is an image, return it in the object element.
14930 (read_key_sequence): Skip checks for keymap property in cases
14931 where POSN_STRING is not a string (e.g. an image).
14932
14933 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
14934 (Vshow_text_cursor_in_void): New variable.
14935 (glyph_to_pixel_coords): Don't use negative hpos.
14936 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
14937 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 14938 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
14939 (calc_pixel_width_or_height): New aux function, implementing
14940 pixel based artihmetic for glyph widths and heights.
14941 (produce_stretch_glyph): Use calc_pixel_width_or_height for
14942 :width, :height, :align-to, and :ascent, thus allowing these to
14943 be specified in pixels as well as multiples of characters.
14944 Don't produce stretch glyphs with zero width or height.
14945 (get_specified_cursor_type): Declare static.
14946 (get_window_cursor_type): Declare static. Add glyph arg to be
14947 able to know when cursor is on an image; always substitute
14948 hollow-box cursor for filled-box cursor on images, to avoid
14949 negative images and flicker when blinking the cursor.
14950 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
14951 (note_mode_line_or_margin_highlight): Use non-text cursor rather
14952 than vertical scroll-bar cursor in display margins.
14953 (note_mouse_highlight): Use non-text cursor rather than text
14954 cursor in fringes and over images in the text area.
14955 Use non-text cursor when mouse pointer is outside editable text,
14956 i.e. in the void after end-of-line or end-of-buffer; this was
14957 already done for W32, but is now standard for all systems --
14958 user can toggle show-text-cursor-in-void to get old behaviour.
14959 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
14960 Vdisplay_pixels_per_inch.
14961
00498bfc
AS
149622003-11-25 Andreas Schwab <schwab@suse.de>
14963
14964 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
14965 EMACS_INT to not lose bits.
14966 (Ffillarray): Don't set bits beyond the size of a bool vector.
14967
edaa824d
KS
149682003-11-25 Kim F. Storm <storm@cua.dk>
14969
14970 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
14971 define this defun on systems that cannot use stderr as lvalue.
14972
74d6f539
GM
149732003-11-24 Gerd Moellmann <gerd@gnu.org>
14974
14975 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
14976 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
14977 ld's default is incompatible with unexec.
14978
6a1ff3ba
KS
149792003-11-23 Kim F. Storm <storm@cua.dk>
14980
63dc7c6b
KS
14981 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
14982 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
14983 (Fforce_window_update): New defun.
14984 (syms_of_window): Defsubr it.
14985 (Fset_window_margins, Fset_window_fringes): Doc fix.
14986
6a1ff3ba
KS
14987 * print.c (Fredirect_debugging_output): New defun.
14988 (syms_of_print): Defsubr it.
14989
aef109b7
LT
149902003-11-22 Luc Teirlinck <teirllm@auburn.edu>
14991
14992 * fns.c (Fset_char_table_parent): Doc fix.
14993
6a1ff3ba 149942003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
14995
14996 * dispnew.c (buffer_posn_from_coords): Return actual row/column
14997 for glyph clicked on, rather than (unused) pixel positions.
14998 (mode_line_string, marginal_area_string): Change X and Y args to
14999 pointers for returning actual row/column for glyph clicked on.
15000 Simplify and optimize loops.
15001
aef109b7
LT
15002 * dispextern.h (mode_line_string, marginal_area_string):
15003 Update prototypes.
63ccbe21
KS
15004
15005 * keyboard.c (make_lispy_position): New function for generating
15006 mouse click positions from frame and pixel coordinates.
15007 Enhanced to return buffer position and actual row/column for
15008 events outside the text area using updated mode_line_string and
15009 marginal_area_string functions.
15010 Return left-fringe and right-fringe clicks as such, rather than
15011 clicks in text area.
15012 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
15013 pixel_to_glyph_coords, as we never use the results.
15014 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
15015 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
15016 Eliminate unused code in WHEEL_EVENT handling.
15017 (make_lispy_movement): Use make_lispy_position.
15018
15019 * window.c (coordinates_in_window): Remove redundant tests.
15020 Fix returned X pixel value for left-margin.
15021
15022 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
15023 mode_line_string and marginal_area_string parameters.
15024
a64387ee 150252003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 15026
d7107586
SM
15027 * w32.c (struct the_group, getgrgid): Add.
15028 * mac.c (struct my_group, getgrgid): Add.
aef109b7 15029
3dbf3426
LT
150302003-11-21 Luc Teirlinck <teirllm@auburn.edu>
15031
15032 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
15033
cae8ddbb 150342003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 15035
d7107586
SM
15036 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
15037 include in call to file name handler. Optionally translate numeric
15038 UID and GID to strings. Update docstring.
15039 (directory_files_internal): Add parameter ID-FORMAT.
15040 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
15041 include in call to file name handler and call to
15042 directory_files_internal. Update Docstring.
15043 (Fdirectory_files): Add dummy parameter in call to
15044 directory_files_internal.
15045 * lisp.h (Qinteger): Add.
15046 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
15047 (Ffile_attributes): Add parameter.
15048 * data.c (Qinteger): Export.
cae8ddbb 15049
2550b848
LT
150502003-11-21 Luc Teirlinck <teirllm@auburn.edu>
15051
3dbf3426 15052 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 15053
88380018
KS
150542003-11-19 Kim F. Storm <storm@cua.dk>
15055
15056 * xdisp.c (init_iterator): Initialize it->start to position
15057 before reseating (in case start position is invisible).
15058 (init_to_row_start): Set it->start to row-start.
15059 (redisplay_window): Accept optional_new_start if start position
15060 is invisible (in which case IT_CHARPOS overshoots PT).
15061 (display_line): Setup row->start from it->start (rather than
15062 it->current which is wrong if first char on line is invisible).
15063 When done, reseat it->start to it->current (= start of next row).
15064 (expose_area): Fix exposure of text area when first char (e.g. TAB)
15065 is only partially visible.
15066
15067 * dispextern.h (struct it): New member start.
15068
854c1a59
SM
150692003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
15070
455316e2
SM
15071 * alloc.c (make_float, Fcons): Clear the markbit at init time.
15072 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
15073 of block_index outside of the macro call.
15074 (Fgarbage_collect): Remove null code.
15075
15076 * m/amdx86-64.h: Don't redefine XPNTR.
15077
854c1a59
SM
15078 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
15079 of VALMASK.
15080
15081 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
15082 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
15083 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
15084
15085 * lisp.h (VALMASK): Only define for non-union type.
15086 (MARKBIT): Remove.
15087 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
15088 (XTYPE): Define unconditionally.
15089 (XSETTYPE): Remove one more remnant.
15090 (EQ): Define differently for the union and non-union cases.
15091 (INTMASK): New bit mask.
15092 (struct Lisp_Marker): Move down to prepare for upcoming patch.
15093 (GC_EQ): Delegate to EQ.
15094
15095 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
15096
a0c6ef2d
JD
150972003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15098
15099 * xterm.c (x_window_to_scroll_bar): Move check of display to
15100 where window_id is compared.
15101
859492c4
KS
151022003-11-17 Kim F. Storm <storm@cua.dk>
15103
15104 * dispextern.h (struct it): New member first_vpos.
15105
15106 * xdisp.c (start_display): Set it->first_vpos.
15107 (try_window_id): Use first_vpos to start display in first _text_
15108 line if no reusable lines at start of window with header line.
15109
810f2256
JD
151102003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15111
7c402969 15112 * w32fns.c (XPutPixel):
854c1a59
SM
15113 * w32bdf.c (w32_init_bdf_font):
15114 * sunfns.c (sel_read):
15115 * process.c (Fmake_network_process):
15116 * frame.c (store_frame_param):
15117 * fontset.c (Fset_fontset_font):
15118 * emacs.c (shut_down_emacs):
a64387ee 15119 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 15120
a32e9bfd
JD
15121 * config.in: Regenerate.
15122
810f2256
JD
15123 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15124 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15125 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
15126 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
15127 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
15128
15129 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
15130
15131 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
15132 (XTmouse_position, handle_one_xevent): Pass Display* to
15133 x_window_to_scroll_bar.
15134 (x_window_to_scroll_bar): Take a Display* argument.
15135 Check that display for frame is equal to Display* argument.
854c1a59 15136 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
15137 x_display_info_for_display instead. Use Display in xev instead
15138 of GDK_DISPLAY.
15139 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 15140 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
15141 (x_connection_closed): Call xg_display_close for GTK.
15142 (x_term_init): Call xg_display_open for additional displays.
15143 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
15144 for GTK.
15145
15146 * xmenu.c (single_menu_item, mouse_position_for_popup)
15147 (x_activate_menubar): Formatting adjustments.
15148
15149 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
15150 adjustments.
15151
15152 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
15153 (xg_display_close, xg_create_default_cursor)
15154 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
15155 handling.
854c1a59
SM
15156 (xg_left_ptr_cursor): Remove.
15157 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
15158 cursor here.
15159 (xg_win_to_widget): Take Display* argument, call
15160 gdk_xid_table_lookup_for_display.
15161 (xg_create_frame_widgets, xg_get_file_name, create_menus)
15162 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
15163 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
15164 in FRAME_X_DISPLAY_INFO.
15165 (xg_get_scroll_id_for_window): Take Display* argument.
15166 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 15167 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 15168
78819ebb
KS
15169 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
15170 Display* argument.
15171 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 15172
0b03cc78
JD
151732003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15174
15175 * xterm.c (x_detect_focus_change): Do not change focus frame for
15176 Enter/LeaveNotify if the current focus frame has explicit focus.
15177
77e688fa
KS
151782003-11-14 Kim F. Storm <storm@cua.dk>
15179
15180 * dispnew.c (update_text_area): Fix redisplay error when hscroll
15181 is active and first glyph is only partially visible.
854c1a59 15182
dd429b03
KH
151832003-11-13 Kenichi Handa <handa@m17n.org>
15184
15185 * xdisp.c (select_frame_for_redisplay): New function.
15186 (redisplay_internal): Record also selected_frame for
15187 unwind_redisplay. Call select_frame_for_redisplay before
15188 redrawing each frame.
15189 (unwind_redisplay): Argument changed to a cons.
15190
6d9266f4
LT
151912003-11-12 Luc Teirlinck <teirllm@auburn.edu>
15192
15193 * fns.c (Fstring_to_multibyte): Doc fix.
15194
80060eb3
KH
151952003-11-11 Kenichi Handa <handa@m17n.org>
15196
15197 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15198
74305183
JD
151992003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15200
15201 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
15202 program specified positions.
15203
cfda993e
JD
152042003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15205
15206 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
15207
df211069
KH
152082003-11-08 Kenichi Handa <handa@m17n.org>
15209
15210 * Makefile.in (lisp): Add kannada.el.
15211 (shortlisp): Likewise.
15212
4307d534
KH
152132003-11-07 Kenichi Handa <handa@m17n.org>
15214
854c1a59
SM
15215 * coding.c (coding_allocate_composition_data):
15216 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
15217 (coding_restore_composition): Detect invalid composition data.
15218 Give Fstring and Fvector a Lispy integer, not C int.
15219
854c1a59
SM
152202003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
15221
15222 * floatfns.c (Flogb): Don't use VALMASK.
15223
15224 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
15225 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
15226
15227 * lisp.h (XINT): Move the cast to clarify what is going on.
15228 (GCTYPEMASK, XSETTYPE): Remove.
15229 (XGCTYPE): Make it an alias of XTYPE.
15230
d04103a1
JD
152312003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15232
15233 * xterm.c (x_term_init): Fix formatting.
15234
da18b5ac
JD
152352003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15236
78819ebb
KS
15237 * gtkutil.h (xg_have_tear_offs): Declare.
15238 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
15239
15240 * gtkutil.c: Remove variable xg_did_tearoff.
15241 (xg_have_tear_offs): New function.
15242 (tearoff_remove): Just decrease xg_detached_menus.
15243 (tearoff_activate): Increase xg_detached_menus and call
15244 tearoff_remove when tearoff is removed.
854c1a59 15245 (xg_keep_popup): Remove function.
da18b5ac
JD
15246 (create_menus): Give add_tearoff_p as argument to recursive
15247 call to create_menus.
15248 (xg_create_widget): Use variables instead of multiple
15249 strcmp. Tell create_menus to create tear off only for
15250 menu bar menus.
15251 (xg_update_menubar): Change title for a detached menu also.
15252 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
15253 of deep_p.
15254 (xg_initialize): Initialize xg_detached_menus, remove
15255 initialization of xg_did_tearoff.
15256
15257 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
15258 xg_have_tear_offs returns non-zero.
15259 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
15260 call to xg_keep_popup.
15261
64d4923e
AC
152622003-11-01 Andrew Choi <akochoi@shaw.ca>
15263
15264 * macterm.c (XTread_socket): Handle menubar selection and grow
15265 window only for mouseDown events.
854c1a59 15266
6cc8bc07
JD
152672003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15268
15269 * xterm.c (x_term_init): For GTK part, increase x_initialized
15270 to check for more than one display. Use error instead of return 0.
15271
043131c4
AC
152722003-10-31 Andrew Choi <akochoi@shaw.ca>
15273
854c1a59 15274 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
15275 (copy_dysymtab): Call it.
15276
bdda99a1
LT
152772003-10-31 Luc Teirlinck <teirllm@auburn.edu>
15278
15279 * eval.c (Fdefvaralias): Doc fix.
15280
800f42ff 152812003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
15282
15283 * data.c (Fsetplist): Doc fix.
15284
ef35b389
LK
152852003-10-14 Lute Kamstra <lute@gnu.org>
15286
15287 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 15288
ef35b389 152892003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 15290
07107abc
KS
15291 * window.c (Fset_window_margins): Simplify arg checking.
15292
f7005886
RS
152932003-10-13 Richard M. Stallman <rms@gnu.org>
15294
15295 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
15296 (print_partial_compiled_pattern): Replace assert with a printout.
15297 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
15298
15299 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
15300
15301 * window.c (Fset_window_margins): Allow only integers as args.
647b07d1
AS
15302 (syms_of_window) <special-display-buffer-names,
15303 special-display-regexps>: Doc fixes.
f7005886 15304
9c0c2af5
LK
153052003-10-13 Lute Kamstra <lute@gnu.org>
15306
15307 * window.c (Fset_window_fringes): Elaborate docstring.
15308
3f080e4e
AC
153092003-10-12 Andrew Choi <akochoi@shaw.ca>
15310
854c1a59 15311 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 15312
3f080e4e
AC
15313 * s/darwin.h (GC_MARK_STACK): Define.
15314
0aa513ed
JD
153152003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15316
15317 * window.c (shrink_windows): New function.
15318 (size_window): Call shrink_windows to calculate window sizes when
15319 shrinking frame with more than one window.
15320
6aa8858a
KS
153212003-10-12 Kim F. Storm <storm@cua.dk>
15322
15323 * xdisp.c (compute_fringe_widths): Doc fix.
15324
c2164d91
KH
153252003-10-08 Kenichi Handa <handa@m17n.org>
15326
854c1a59 15327 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 15328
f82ac129
KH
153292003-10-07 Kenichi Handa <handa@m17n.org>
15330
15331 * coding.c (Qcoding_system_define_form): New variable.
15332 (syms_of_coding): Intern and staticpro it.
15333 (Fcheck_coding_system): Try to autoload the definition of
15334 CODING-SYSTEM.
15335
9296c947
LT
153362003-10-05 Luc Teirlinck <teirllm@auburn.edu>
15337
15338 * fns.c (Frequire): Doc fix.
15339
c1f0671a
JD
153402003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15341
3d8c3826
JD
15342 * xfns.c (Fx_send_client_event): New function as a base for
15343 manipulating extended window manager hints.
6dc15d98 15344 (Fx_send_client_event): Remove unused variable s.
3d8c3826 15345
068ae0fd
JD
15346 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
15347 that function is removed.
15348
15349 * xterm.c (x_set_offset): Use move_offset_left/top instead of
15350 x/y_pixels_outer_diff.
15351 (x_check_expected_move): Calculate move_offset_left/top.
15352
15353 * xterm.h (struct x_output): New members: move_offset_top/left.
15354
854c1a59 15355 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
15356 call x_set_offset directly.
15357
15358 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
15359
96f09305
JD
15360 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
15361
15362 * xterm.c (x_delete_display): Free font names and font_encoder
15363 in dpyinfo->font_table.
15364
854c1a59
SM
15365 * xfns.c (Fx_close_connection): Only call XFreeFont here.
15366 Move xfree of font names to x_delete_display.
96f09305 15367
c1f0671a
JD
15368 * xterm.h (struct x_display_info): New member, wm_type.
15369 (struct x_output): New members, expected_top/left and
15370 check_expected_move.
15371
15372 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
15373 is received.
854c1a59
SM
15374 (handle_one_xevent): Rename x_check_expected_move from
15375 x_check_fullscreen_move.
c1f0671a
JD
15376 (x_set_offset): Only add WM decoration sizes to modified_top/left
15377 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 15378 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
15379 Removed fullscreen specific code. Use check_expected_move,
15380 expected_left/top instead. Also, set wm_type.
15381 (x_term_init): Initialize wm_type to unknown.
15382
15383 * frame.c (x_fullscreen_move): Remove addition of WM decoration
15384 sizes to move_x/y.
15385
be2fdba9
KH
153862003-10-03 Kenichi Handa <handa@m17n.org>
15387
15388 * macterm.c (x_load_font): Clear all members of FONTP before start
15389 filling them.
15390
153912003-10-02 Kenichi Handa <handa@m17n.org>
15392
15393 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
15394 before calling find_ccl_program_func. Call find_ccl_program_func
15395 only when fontp->font_encoder is not NULL.
15396
15397 * xterm.c (x_load_font): Clear all members of FONTP before start
15398 filling them.
15399
26a6e439
JPW
154002003-10-03 John Paul Wallington <jpw@gnu.org>
15401
15402 * keymap.c (map_keymap): Don't abort when binding is a vector.
15403
0d4c2dc2
JR
154042003-10-02 Jason Rumney <jasonr@gnu.org>
15405
854c1a59
SM
15406 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
15407 Sync dependencies with Makefile.in.
a63cf46f
JR
15408 (alloca.o): Remove.
15409
0d4c2dc2
JR
15410 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
15411 filling them.
15412
15413 * w32bdf.c (w32_load_bdf_font): Likewise.
15414
ab8f7d5c
RS
154152003-09-30 Richard M. Stallman <rms@gnu.org>
15416
15417 * term.c (set_tty_color_mode): Calculate current_mode_spec
15418 regardless of value of VAL.
15419
854c1a59 15420 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
15421 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
15422 Handle over_used when splitting UNDER.
15423
a64387ee 154242003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
15425
15426 * regex.c (regex_compile): Free the stack when returning from function.
15427
3413f972
KH
154282003-09-28 Kenichi Handa <handa@m17n.org>
15429
15430 * fontset.c (Finternal_char_font): Change return value to
15431 cons (FONT-NAME . GLYPH-CODE).
15432
a6eeaa81 154332003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
15434
15435 * term.c (tty_setup_colors): Treat any negative argument as -1.
15436
f98ddc99
KH
154372003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
15438
15439 * process.c (send_process): Delete unused temp_buf.
15440
66c8f1a8
DL
154412003-09-26 Dave Love <fx@gnu.org>
15442
15443 * xterm.c (x_bitmap_mask): Declare.
15444
ca716c26
DL
154452003-09-25 Dave Love <fx@gnu.org>
15446
15447 * Makefile.in (fns.o): Depend on md5.h.
15448
fbe57420
KS
154492003-09-25 Kim F. Storm <storm@cua.dk>
15450
15451 * window.c (set_window_buffer): Fix redisplay problems when
15452 switching between buffers with different display margin widths.
15453
ef6ae4ff
KS
154542003-09-23 Kim F. Storm <storm@cua.dk>
15455
15456 * process.c (set_socket_option): Fix :bindtodevice option.
15457 (Fset_network_process_option): Update process contact list when
15458 setting option succeeds.
15459 (Fmake_network_process): Doc fix.
15460
68e03c1c
DL
154612003-09-23 Dave Love <fx@gnu.org>
15462
7146d1c1 15463 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 15464
a6eeaa81 154652003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
15466
15467 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
15468 color mode is an integer number (it could be -1).
15469
8fe7d8c8
RS
154702003-09-22 Richard M. Stallman <rms@gnu.org>
15471
15472 * intervals.c (graft_intervals_into_buffer): Correct the main loop
15473 in the case where OVER is longer than UNDER.
15474
2f71b5ea
MY
154752003-09-22 Masatake YAMATO <jet@gyve.org>
15476
7146d1c1 15477 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 15478 `vertical_type'.
7146d1c1 15479
0c4da023
KS
154802003-09-21 Kim F. Storm <storm@cua.dk>
15481
15482 * frame.c (Vdefault_frame_scroll_bars): New variable.
15483 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
15484 (syms_of_frame): DEFVAR_LISP it, and initialize according to
15485 window-system default scroll bar position.
15486
b648413b
KS
15487 * window.c (Fwindow_scroll_bars): Doc fix.
15488
8f5b9e34
JD
154892003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15490
854c1a59 15491 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 15492
b0f23edf
RS
154932003-09-19 Richard M. Stallman <rms@gnu.org>
15494
15495 * atimer.h: Don't include lisp.h.
15496 (P_): Define it here (as well as elsewhere).
15497
15498 * print.c (Fprin1_to_string): Move the PRINTPREPARE
15499 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
15500
15501 * data.c (Fvariable_binding_locus): New function.
15502 (syms_of_data): defsubr it.
15503 (Flocal_variable_p): Delete duplicate call to indirect_variable.
15504
e1283999
DL
155052003-09-18 Dave Love <fx@gnu.org>
15506
ad5f3636
DL
15507 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
15508
e1283999
DL
15509 * process.c (Fnetwork_interface_info): Fix type error.
15510 (Fnetwork_interface_list): Doc fix.
15511 (read_process_output, read_process_output): Delete unused var.
15512
b8c7fd71
KS
155132003-09-17 Kim F. Storm <storm@cua.dk>
15514
15515 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
15516 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
15517 (Fnetwork_interface_info): Check that ifreq struct has required
15518 fields before accessing them; this requires that those fields are
15519 defined as macros, which may be too restrictive on some platforms,
15520 but it is better than failing on other platforms.
15521 (syms_of_process): Only defsubr above fns when included.
15522
11e0a411
DL
155232003-09-17 Dave Love <fx@gnu.org>
15524
15525 * unexalpha.c: Don't include varargs.h.
15526
e9c50801
KS
155272003-09-17 Kim F. Storm <storm@cua.dk>
15528
15529 * process.c (Fset_process_sentinel): Add sentinel to childp plist
15530 for network process.
15531 (socket_options): Add `:' prefix to option names. Add optbit field.
15532 (set_socket_option): Remove no_error arg and special handling of s < 0.
15533 Return 1<<optbit for known option, 0 for unknown.
15534 Do not interpret 0 as false for boolean option (only nil).
15535 Pass failed option and value to report_file_error.
7146d1c1 15536 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
15537 (Fset_network_process_option): New function to set just one option.
15538 (Fmake_network_process): Allow :coding arg to be a cons.
15539 Allow :server arg to be an integer specifying backlog size.
15540 Remove :options arg, and allow options to be specified directly
15541 as :KEY, VALUE pairs. Parse these options before binding socket.
15542 As before, :reuseaddr t is default for a server process, but this
15543 can now be disabled by specifying :reuseaddr nil.
15544 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
15545 (init_process): Availability of network options is now checked with
15546 simpler syntax (featurep 'make-network-process :OPTION); use loop to
15547 setup features.
15548 (syms_of_process): Fix defsubr's for the replaced functions.
15549
a0fc3644
DL
155502003-09-16 Dave Love <fx@gnu.org>
15551
15552 * Makefile.in: Depend on coding.h.
15553
6df2a645
KS
155542003-09-14 Kim F. Storm <storm@cua.dk>
15555
15556 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
15557 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
15558 (syms_of_process): Defsubr them.
15559
15560 * config.in: Regenerate.
7146d1c1
SM
15561
155622003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15563
15564 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
15565 * m/news-r6.h (XUNMARK): Remove.
15566 * m/mips.h (XUNMARK): Remove.
15567 * m/mips-siemens.h (XUNMARK): Remove.
15568 * m/iris4d.h (XUNMARK): Remove.
15569 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
15570
0930c1a1
SM
155712003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
15572
31003b9e
SM
15573 * lisp.h (VALBITS): Don't remove 1 for the markbit.
15574 (union Lisp_Object): Use unsigned int for types. Remove markbit.
15575 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
15576 (XTYPE): Use unsigned right-shift.
15577 (XMARKBIT, XMARK, XUNMARK): Remove.
15578
0930c1a1
SM
15579 * alloc.c (init_intervals, init_symbol, init_marker):
15580 Don't preallocate anything.
15581 (Fgarbage_collect, mark_object): Ignore the markbit.
15582
15583 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
15584
19bb0fcd 155852003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
15586
15587 * xdisp.c (pint2hrstr): New function.
15588 (decode_mode_spec): Add `%i' and `%I' specs.
15589 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
15590 for `mode-line-format'.
15591
03bb6a06
AS
155922003-09-07 Andreas Schwab <schwab@suse.de>
15593
15594 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
15595 avoid warning.
15596
a6eeaa81 155972003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 15598
0930c1a1 15599 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 15600
ed159bbf
KS
156012003-09-03 Kim F. Storm <storm@cua.dk>
15602
15603 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
15604 change (superseded by 2002-08-30 change); the default blink-off
15605 cursor is now again "no cursor".
15606
fe64a394
JR
156072003-09-01 Jason Rumney <jasonr@gnu.org>
15608
15609 * makefile.w32-in (alloca.o): Remove.
15610 (coding.o): Depend on intervals.h
15611 (emacs.o, bytecode.o): Depend on window.h
15612
c0175e24
DL
156132003-09-01 Dave Love <fx@gnu.org>
15614
15615 * Makefile.in (alloca.o): Remove commands.
15616 (coding.o): Depend on intervals.h composite.h window.h.
15617 (emacs.o): Depend on window.h keyboard.h keymap.h.
15618 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
15619 (bytecode.o): Depend on window.h.
15620
a24d4cb2
JR
156212003-08-31 Jason Rumney <jasonr@gnu.org>
15622
4bc2315e
JR
15623 * w32term.c (w32_per_char_metric): Allow cached metrics to be
15624 returned even when font_type is unknown.
15625
a24d4cb2
JR
15626 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
15627
9d35adc7
JD
156282003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15629
15630 * xterm.c (x_term_init): Initialize new fields in x_display_info.
15631
15632 * xterm.h (struct x_display_info): Add red/green/blue_bits and
15633 *_offset.
15634
15635 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
15636 calculate pixel value.
15637
6f68b035
GM
156382003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
15639
0930c1a1
SM
15640 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
15641 Don't tell redisplay display is accurate when it's actually been
15642 paused for pending input.
6f68b035 15643
4828b4d7
RS
156442003-08-29 Richard M. Stallman <rms@gnu.org>
15645
15646 * dispnew.c (adjust_glyph_matrix): Call window_box
15647 whenever W is nonzero.
15648
15649 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15650 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 15651 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
15652 Use indirect_variable to trace thru variable aliases.
15653
15654 * config.in: Updated.
15655
15656 * callint.c (Fcall_interactively): Save and restore
15657 Vthis_command, Vthis_original_command, real_this_command,
15658 and current_kboard->Vlast_command.
15659
15660 * abbrev.c (Fexpand_abbrev): Insert before deleting.
15661
e019878d
GM
156622003-08-29 Gerd Moellmann <gerd@gnu.org>
15663
15664 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
15665
85478bc6
KH
156662003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
15667
0930c1a1 15668 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
15669 (decode_coding_sjis_big5): Likewise.
15670
07ce82d3
JR
156712003-08-27 Jason Rumney <jasonr@gnu.org>
15672
d3703de3
JR
15673 * w32.c (sys_pipe): Protect against file descriptor overflow.
15674
ee4a01d1
JR
15675 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
15676
07ce82d3
JR
15677 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
15678
a64387ee 156792003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
15680
15681 * xfns.c (Vgtk_version_string): New variable.
15682 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
15683
a6eeaa81 156842003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 15685
0930c1a1 15686 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 15687
5459e42a
EZ
15688 * Makefile.in (msdos.o): Depend on intervals.h.
15689
0930c1a1 15690 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 15691
231d6cfb
JD
156922003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15693
15694 * xterm.h (struct x_display_info): New fields: client_leader_window
15695 and Xatom_wm_client_leader.
15696
15697 * xterm.c (x_initialize): Move call to x_session_initialize to ...
15698 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
15699
15700 * xsmfns.c (create_client_leader_window): New function.
15701 (x_session_initialize): Call create_client_leader_window, take
15702 dpyinfo as argument.
15703
15704 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
15705
15706 * Makefile.in (xsmfns.o): Add more depenedencies.
15707
afa88464
DL
157082003-08-21 Dave Love <fx@gnu.org>
15709
15710 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
15711
f730033e
KH
157122003-08-21 Kenichi Handa <handa@m17n.org>
15713
15714 * term.c (term_init): Fix previous change; don't rely on the
15715 length of `buffer' if TERMINFO is defined.
15716
6dca786c
DL
157172003-08-20 Dave Love <fx@gnu.org>
15718
15719 * atimer.h: Include lisp.h.
15720
15721 * lisp.h (EMACS_LISP_H): New.
15722 (popup_activated_flag): Don't declare.
15723
15724 * alloca.c: Some merging with gnulib. Change logic and doc
15725 concerning (x)malloc/(x)free -- no longer Emacs-specific.
15726 [DO_BLOCK_INPUT]: Don't include lisp.h.
15727 (xmalloc, xfree): Declare.
15728 (malloc): Don't declare.
15729
0930c1a1 15730 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
15731 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
15732 atimer.h, blockinput.h.
15733
15734 * alloc.c (lisp_align_malloc): Change type of `aligned'.
15735
78819ebb 15736 * alloca.s: Remove.
6dca786c 15737
3a06a6d9
RS
157382003-08-19 Gerd Moellmann <gerd@gnu.org>
15739
15740 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
15741 use -lncurses.
15742
15743 * term.c (term_init): Use a buffer of size 4096 for tgetent since
15744 FreeBSD returns something longer than 2044. Abort if the end of
15745 the buffer is overwritten.
15746
27eeee55
MB
157472003-08-19 Miles Bader <miles@gnu.org>
15748
15749 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
15750
2f297815
GM
157512003-08-19 Gerd Moellmann <gerd@gnu.org>
15752
f4446bbf
GM
15753 * alloc.c (lisp_align_malloc): Check for memory full when
15754 allocating ablocks, which also avoids freeing a pointer into an
15755 ablocks structure.
15756
15757 * puresize.h (BASE_PURESIZE): Increase to 1100000.
15758
0930c1a1 15759 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 15760
0e7d7aae
RS
157612003-08-16 Richard M. Stallman <rms@gnu.org>
15762
15763 * editfns.c (Fencode_time): Doc fix.
15764
157652003-08-16 David Ponce <david@dponce.com>
15766
15767 * fileio.c (Fwrite_region): Fix conditional expression to issue
15768 the right message.
15769
b6189c3b 157702003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
15771
15772 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 15773 Set default value to 1.
0e7d7aae 15774
5d551295
KH
157752003-08-15 Kenichi Handa <handa@m17n.org>
15776
15777 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
15778 what autoscaled.
15779 (best_matching_font): Once we find a better scalable font, set
15780 non_scalable_has_exact_height_p to 1.
15781 (try_font_list): Call try_alternative_families to try any family
15782 with the given registry.
15783
1661e56b
AS
157842003-08-09 Andreas Schwab <schwab@suse.de>
15785
f29181dc
AS
15786 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
15787
1661e56b
AS
15788 * print.c (print_string): Fix printing of multibyte string with
15789 nontrivial printcharfun.
15790
465aa50a
JD
157912003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15792
15793 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
15794
15795 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
15796
e430e5ba
KH
157972003-07-31 Kenichi Handa <handa@m17n.org>
15798
15799 * process.c (read_process_output): Return the actually read bytes
15800 instead of the result of decoding.
15801
97e7188e
KH
158022003-07-31 Kenichi Handa <handa@m17n.org>
15803
15804 * xterm.h (struct x_bitmap_record): New member have_mask.
15805
15806 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
15807 to 0.
15808 (x_create_bitmap_from_file): Likewise.
15809 (x_destroy_bitmap): Check have_mask member before freeing a mask.
15810 (x_destroy_all_bitmaps): Likewise.
15811 (x_create_bitmap_mask): Set have_mask member to 1.
15812
b53094d6
RS
158132003-07-30 Richard M. Stallman <rms@gnu.org>
15814
15815 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
15816
631f2082
JD
158172003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15818
15819 * gtkutil.c (xg_mark_data): Update calls to mark_object.
15820
c855f2ca
RS
158212003-07-29 Richard M. Stallman <rms@gnu.org>
15822
15823 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
15824 Conditionalize XIM code on HAVE_XIM.
15825
15826 * fns.c (Fclear_string): New function.
15827 (syms_of_fns): defsubr it.
15828
b6189c3b 158292003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 15830
0930c1a1 15831 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 15832
29ea8ae9
SM
158332003-07-22 Stefan Monnier <monnier@cs.yale.edu>
15834
15835 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
15836
15837 * buffer.c (delete_all_overlays): New function.
15838 * buffer.h (delete_all_overlays): Declare.
15839 * coding.c (run_pre_post_conversion_on_str):
15840 * print.c (temp_output_buffer_setup):
15841 * fileio.c (Finsert_file_contents):
15842 * minibuf.c (get_minibuffer): Use it.
15843
1dd7ccf2
AC
158442003-07-22 Andrew Choi <akochoi@shaw.ca>
15845
15846 * unexmacosx.c (unexec_regions_sort_compare):
15847 (unexec_regions_merge): New functions. Sort and merge unexec
15848 regions before dumping them.
15849
f57bd967
DL
158502003-07-22 Dave Love <fx@gnu.org>
15851
15852 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
15853
7cdee936
SM
158542003-07-21 Stefan Monnier <monnier@cs.yale.edu>
15855
15856 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
15857 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
15858 MARKBIT as the gcmarkbit for strings.
15859
e50886d3
RS
158602003-07-21 Richard M. Stallman <rms@gnu.org>
15861
15862 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
15863
29ea8ae9 15864 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
15865 (syms_of_fns): Corresponding change.
15866
15867 * alloc.c (syms_of_alloc): Doc fixes.
15868
158692003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
15870
15871 * s/netbsd.h: Use -Wl syntax.
15872
fdc39b59
RS
158732003-07-17 Richard M. Stallman <rms@gnu.org>
15874
15875 * xterm.c (xim_initialize): Redo 6/24 change.
15876
9c53385f
SM
158772003-07-15 Stefan Monnier <monnier@cs.yale.edu>
15878
15879 * buffer.c (copy_overlays): Use EMACS_INT for positions.
15880 (Fswitch_to_buffer): Don't signal an error when switching to the same
15881 buffer in a dedicated window.
15882
15883 * alloc.c: Use bitmaps for cons, as was done for floats.
15884 (init_float, init_cons): Let the normal code allocate the first block.
15885 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
15886 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
15887 New macros.
15888 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
15889 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
15890 (live_cons_p): Check the pointer is not past the `conses' array.
15891 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
15892 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
15893 (survives_gc_p): Use CONS_MARKED_P and simplify.
15894 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
15895
dde13196
PE
158962003-07-13 Paul Eggert <eggert@twinsun.com>
15897
15898 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
15899 puts it into BSS instead, at least on Solaris 8 and 9.
15900 This is a valid optimization, and it may occur on other platforms,
15901 so Emacs should not assume that initializing a static variable to
15902 zero puts it into data.
15903 * alloc.c (pure, staticvec):
15904 Initialize these arrays to nonzero, so that they're not
15905 put into BSS by that optimization.
15906
a801bc34
SM
159072003-07-13 Stefan Monnier <monnier@cs.yale.edu>
15908
15909 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
15910 (lisp_align_malloc): Use posix_memalign is available.
15911 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
15912 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
15913 for consistency. Update users.
15914
0c8b2afa
RS
159152003-07-13 Richard M. Stallman <rms@gnu.org>
15916
15917 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
15918
668c2ab0
JB
159192003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
15920
9dd28cae 15921 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
668c2ab0
JB
15922 and use the Gtk+ function gtk_window_icon_from_file if available.
15923
15924 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
15925 handle mask of bitmaps.
15926 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
15927 mask property.
15928 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
15929
15930 * xterm.h (xg_set_icon): New function.
15931
800bebe3
RS
159322003-07-12 Paul Eggert <eggert@twinsun.com>
15933
15934 * unexelf.c (unexec): Consider a section to precede the .bss
15935 section if its addresses overlap that of .bss.
15936
69e38995
RS
159372003-07-12 Richard M. Stallman <rms@gnu.org>
15938
15939 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
15940
15941 * config.in (HAVE_CRTIN): Add #undef.
15942 (INLINE): Really inline only if OPTIMIZE is defined.
15943
15944 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
15945 END_FILES_1.
15946 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 15947 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
15948
15949 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
15950 (TERMINFO): Define.
15951 (LIBS_TERMCAP): Define.
15952 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
15953
15954 * xfns.c: Include libpng/png.h instead of png.h.
15955
f1d0c238
AS
159562003-07-11 Andreas Schwab <schwab@suse.de>
15957
15958 * buffer.c (modify_overlay): Update prototype.
15959 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
15960 Likewise.
15961
5f6bf5fe
SM
159622003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15963
15964 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
15965 (struct interval): Move to intervals.h.
15966 (struct Lisp_Marker): Use EMACS_INT for position info.
15967 (forward_point): Remove prototype of defunct function.
15968 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
15969 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
15970 (syms_of_textprop, set_text_properties): Remove prototypes that are
15971 already in intervals.h.
15972
15973 * intervals.h (struct interval): Move from lisp.h.
15974 Use EMACS_INT for position and size info.
15975
15976 * coding.c: Include intervals.h for Fset_text_properties.
15977
15978 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15979 position and length information.
15980
2765b457
SM
159812003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15982
15983 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15984 position and length information.
15985
2410d73a
SM
159862003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15987
15988 Change overlays_after and overlays_before so the overlays themselves
15989 are linked into lists, rather than using cons cells. After all each
15990 Lisp_Misc already occupies 5 words, so we can add a `next' field to
15991 Lisp_Overlay for free and save up one cons cell per overlay (not
15992 to mention one indirection when traversing the list of overlay).
15993
15994 * lisp.h (struct Lisp_Overlay): New field `next'.
15995
15996 * buffer.h (struct buffer): Change overlays_before and overlays_after
15997 from Lisp lists of overlays to pointers to overlays.
15998
15999 * buffer.c (overlay_strings, recenter_overlay_lists):
16000 Fix typo in eassert in last commit.
16001 (unchain_overlay): New function.
16002 (add_overlay_mod_hooklist): Use AREF.
16003 (copy_overlays, reset_buffer, overlays_at, overlays_in)
16004 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
16005 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
16006 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
16007 (report_overlay_modification, evaporate_overlays, init_buffer_once):
16008 Adjust to new type of overlays_(before|after).
16009
16010 * alloc.c (mark_object): Mark the new `next' field of overlays.
16011 (mark_buffer): Manually mark the overlays_(after|before) fields.
16012
16013 * coding.c (run_pre_post_conversion_on_str):
16014 * editfns.c (overlays_around):
16015 * xdisp.c (load_overlay_strings):
16016 * fileio.c (Finsert_file_contents):
16017 * indent.c (current_column):
16018 * insdel.c (signal_before_change, signal_after_change):
16019 * intervals.c (set_point_both):
16020 * print.c (temp_output_buffer_setup): Use new type for
16021 overlays_(before|after).
16022
04812929
SM
160232003-07-08 Stefan Monnier <monnier@cs.yale.edu>
16024
16025 * buffer.c (report_overlay_modification): Don't run hooks while
16026 traversing the list of overlays.
16027
16028 * buffer.h (struct buffer): Use an int for overlay_center.
16029 (overlays_at, evaporate_overlays, recenter_overlay_lists)
16030 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16031
16032 * buffer.c (reset_buffer, recenter_overlay_lists)
16033 (adjust_overlays_for_insert, adjust_overlays_for_delete)
16034 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
16035 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
16036 (overlays_at, evaporate_overlays, recenter_overlay_lists)
16037 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16038
16039 * xdisp.c (fast_find_position): Remove unused var.
16040
16041 * cmds.c (Qexpand_abbrev): New sym.
16042 (syms_of_cmds): Initialize it.
16043 (internal_self_insert): Use it to call expand-abbrev.
16044
2e7ecf15
KS
160452003-07-09 Kim F. Storm <storm@cua.dk>
16046
f9711de4 16047 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 16048 was configured with --without-xim.
42f81f64 16049 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 16050
c6de56a0
RS
160512003-07-07 Richard M. Stallman <rms@gnu.org>
16052
16053 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
16054
16055 * alloc.c (Fgarbage_collect): Doc fix.
16056
b6189c3b 160572003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
16058
16059 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
16060
bfe1a3f7
SM
160612003-07-06 Stefan Monnier <monnier@cs.yale.edu>
16062
04812929
SM
16063 * minibuf.c (read_minibuf): UNGCPRO before returning.
16064 (Ftry_completion, Fall_completions): Doc fix.
16065
bfe1a3f7
SM
16066 * alloc.c (live_float_p): Check that p is not past the `floats' array,
16067 now that `floats' is not the last element of the struct any more.
16068
ee79d1aa
JR
160692003-07-06 Jason Rumney <jasonr@gnu.org>
16070
16071 * w32term.h (ClipboardSequence_Proc): New type.
16072
16073 * w32fns.c (clipboard_sequence_fn): New variable.
16074 (globals_of_w32fns): Initialize it.
16075
16076 * w32select.c (last_clipboard_sequence_number): New variable.
16077 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
16078 number if possible.
16079
49723c04
SM
160802003-07-06 Stefan Monnier <monnier@cs.yale.edu>
16081
4698665f
SM
16082 * m/amdx86-64.h (MARKBIT):
16083 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
16084 MARKBIT and ARRAY_MARK_FLAG any more.
16085
16086 * m/hp800.h (XSETMARKBIT):
16087 * m/sr2k.h (XSETMARKBIT):
16088 * lisp.h (XSETMARKBIT): Remove unused macro.
16089
49723c04
SM
16090 * lisp.h (mark_object): Change prototype.
16091
16092 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
16093 (last_marked): Change accordingly.
16094 (mark_interval, mark_maybe_object, mark_maybe_pointer)
16095 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
16096 (mark_buffer): Update calls to mark_object.
16097
16098 * bytecode.c (mark_byte_stack):
16099 * fns.c (sweep_weak_table):
16100 * keyboard.c (mark_kboards): Update calls to mark_object.
16101
1d660eca
JR
161022003-07-06 Jason Rumney <jasonr@gnu.org>
16103
16104 * alloc.c (struct ablock): Only include padding when there is some.
16105
618b5ae4
SM
161062003-07-04 Stefan Monnier <monnier@cs.yale.edu>
16107
16108 * alloc.c (ALIGN): Add casts to simplify usage.
16109 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
16110 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
16111 (struct ablock, struct ablocks): New types.
16112 (free_ablock): New global var.
16113 (lisp_align_malloc, lisp_align_free): New functions.
16114 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
16115 (struct float_block): Reorder and add gcmarkbits.
16116 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
16117 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
16118 (init_float, make_float): Use lisp_align_malloc.
16119 (free_float, live_float_p): Don't use `type' any more.
16120 (make_float): Use FLOAT_UNMARK to access to mark bit.
16121 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
16122 Use FLOAT_MARKED_P to access the mark bit.
16123 (pure_alloc): Simplify use of ALIGN.
16124 (mark_object): Use FLOAT_MARK to access the mark bit.
16125 (gc_sweep): Use new macros to access the float's mark bit.
16126 (init_alloc_once): Init free_ablock.
16127
16128 * lisp.h (struct Lisp_Float): Remove unused field `type'.
16129
3ef06d12
SM
161302003-06-27 Stefan Monnier <monnier@cs.yale.edu>
16131
16132 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
16133 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
16134 (allocate_buffer): Move.
16135 (string_bytes): Don't mask markbit of `size_byte'.
16136 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
16137 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
16138 Use the `size' field of buffers (rather than the `name' field) for
16139 the mark bit, as is done for all other vectorlike objects.
16140 Use the new macros to access the mark bit of vectorlike objects.
16141
e81043aa
RS
161422003-06-26 Richard M. Stallman <rms@gnu.org>
16143
16144 * puresize.h (BASE_PURESIZE): Increment base size.
16145
16146 * xdisp.c (fast_find_position): Enable Gerd's new definition.
16147
16148 * xterm.c (xim_initialize): Undo previous change.
16149
2d0834cc
SM
161502003-06-26 Stefan Monnier <monnier@cs.yale.edu>
16151
16152 * alloc.c (survives_gc_p): Simplify.
16153
16154 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
16155
16156 * window.c (Fset_window_dedicated_p): Simplify.
16157 (display_buffer_1): Don't raise the win from which minibuf was entered.
16158 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
16159 (Fminibuffer_selected_window): Simplify.
16160
16161 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
16162
16163 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
16164 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
16165
16166 * insdel.c (check_markers, adjust_markers_for_delete)
16167 (adjust_markers_for_insert, adjust_markers_for_replace)
16168 (prepare_to_modify_buffer, RESTORE_VALUE):
16169 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
16170 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
16171 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
16172 * alloc.c (Fmake_marker, free_marker, gc_sweep):
16173 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
16174 * editfns.c (save_excursion_restore, transpose_markers):
16175 * window.c (delete_window):
16176 * xdisp.c (message_dolog): Update for new types.
16177
d54ae3d8
JD
161782003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16179
a5f696ac
JD
16180 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
16181 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 16182 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
16183
16184 * frame.c (make_frame): Initialize default_face_done_p.
16185
16186 * frame.h (struct frame): Add default_face_done_p.
16187
d54ae3d8
JD
16188 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
16189 will be defined.
16190
2336fe58
SM
161912003-06-25 Stefan Monnier <monnier@cs.yale.edu>
16192
16193 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
16194 Initialize the new field `gcmarkbit'.
16195 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
16196 (mark_interval_tree): Don't mark the tree separately from the nodes.
16197 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
16198 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
16199 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
16200
16201 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
16202 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
16203 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
16204 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
16205 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
16206
bcea31c2
DL
162072003-06-24 Dave Love <fx@gnu.org>
16208
16209 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
16210
16211 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
16212 from gnulib.
16213
2601f59e
RS
162142003-06-21 Richard M. Stallman <rms@gnu.org>
16215
16216 * fileio.c (Fwrite_region): Alternate messages
16217 for append and partial write.
16218
16219 * keyboard.c (read_key_sequence): When converting upcase fn key to
16220 downcase, update fkey and keytran so `backspace' gets translated.
16221
16222 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
16223
16224 * process.c (wait_reading_process_input): Don't signal SIGIO
16225 in batch mode.
16226
b5d2c621
KH
162272003-06-17 Kenichi Handa <handa@m17n.org>
16228
16229 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
16230 composite.h.
16231
16232 * xselect.c: Don't include charset.h, coding.h, composite.h.
16233 (Qforeign_selection): New variable.
16234 (syms_of_xselect): Intern and static it.
16235 (selection_data_to_lisp_data): Return a unibyte string made from
16236 data with `foreign-selection' text property.
16237
6793bc63
SM
162382003-06-15 Stefan Monnier <monnier@cs.yale.edu>
16239
16240 * termhooks.h (EVENT_INIT): New macro.
16241
16242 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
16243
16244 * alloc.c (mark_kboards): Move to keyboard.c.
16245
16246 * keyboard.c (record_asynch_buffer_change, read_avail_input):
16247 * xterm.c (x_dispatch_event):
16248 * xmenu.c (find_and_call_menu_selection):
16249 * xdisp.c (handle_tool_bar_click):
16250 * w32menu.c (menubar_selection_callback):
16251 * sysdep.c (kbd_input_ast, read_input_waiting):
16252 * msdos.c (dos_rawgetc):
16253 * macterm.c (mac_check_for_quit_char):
16254 * macmenu.c (menubar_selection_callback):
16255 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
16256 data to kbd_buffer_store_event.
16257
b3ea810c
KS
162582003-06-15 Kim F. Storm <storm@cua.dk>
16259
16260 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 16261 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 16262
b8f75eda
KG
162632003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
16264
16265 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
16266
ba92ce48
KH
162672003-06-12 Kenichi Handa <handa@m17n.org>
16268
16269 * fileio.c (Fwrite_region): Save and restore restriction.
16270
b80263be
DL
162712003-06-12 Dave Love <fx@gnu.org>
16272
16273 * alloca.c (alloca): Declare arg as size_t.
16274
6793bc63
SM
16275 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
16276 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 16277
b23c0a83
DL
162782003-06-11 Dave Love <fx@gnu.org>
16279
16280 * search.c (shrink_regexp_cache): Use xrealloc.
16281 (syms_of_search): Use xmalloc.
16282
700e47c2
KS
162832003-06-10 Kim F. Storm <storm@cua.dk>
16284
16285 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
16286 Adjust phys_cursor.x to be relative to window box, rather than
16287 text area before checking -- to ensure cursor is redrawn when
16288 exposing window.
16289 Note: This also fixes a similar (older) bug if display margins
16290 are present.
16291
f11aa0b2
KH
162922003-06-06 Kenichi Handa <handa@m17n.org>
16293
16294 * coding.c (encoding_buffer_size): If coding->type is
16295 coding_type_ccl, double magnification on CRLF encoding.
16296
3d143690
JR
162972003-06-06 Jason Rumney <jasonr@gnu.org>
16298
16299 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
16300 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
16301
16302 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
16303 Mac too.
16304
f16205ca
DL
163052003-06-05 Dave Love <fx@gnu.org>
16306
b23c0a83
DL
16307 * strftime.c: Merge changes from gnulib.
16308
f16205ca
DL
16309 * mktime.c (__mktime_internal): Merge changes from gnulib
16310 involving year 69 and dst2.
16311
16312 Changes to merge with gnulib version and be consistent with the
16313 autoconf test:
16314
6793bc63
SM
16315 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
16316 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
16317 [HAVE_LOCALE_H]: Include locale.h.
16318 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
16319
9b87a0bc
KS
163202003-06-05 Kim F. Storm <storm@cua.dk>
16321
16322 * window.c (coordinates_in_window): Convert X and Y to window
16323 relative coordinates inside mode-line and header-line parts.
16324 Convert X and Y to margin area relative coordinates inside left
16325 and right display margin parts.
16326
5a8a15ec
JR
163272003-06-05 Jason Rumney <jasonr@gnu.org>
16328
16329 * w32fns.c (add_system_logical_colors_to_map): New function.
16330 (Fx_open_connection): Use it.
16331
01ed8ff1
SM
163322003-06-04 Stefan Monnier <monnier@cs.yale.edu>
16333
16334 * process.c (allocate_pty): Revert part of the previous patch.
16335 (Faccept_process_output): Simplify.
16336
b427b65d
JR
163372003-06-04 Jason Rumney <jasonr@gnu.org>
16338
16339 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
16340
16341 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
16342 (lispy_mouse_wheel_names): Remove.
16343 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
16344 Always define drag_and_drop_syms.
16345
16346 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
16347 WHEEL_EVENT events.
16348
914a8c47
SM
163492003-06-03 Stefan Monnier <monnier@cs.yale.edu>
16350
01ed8ff1
SM
16351 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
16352
914a8c47
SM
16353 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
16354
adcb132c
JD
163552003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16356
16357 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
16358 menu item label.
16359
be781fa7
RS
163602003-06-03 Richard M. Stallman <rms@gnu.org>
16361
16362 * window.c (Fwindow_edges): Doc fix.
16363 (Fwindow_pixel_edges, Fwindow_inside_edges)
16364 (Fwindow_inside_pixel_edges): New functions.
16365 (syms_of_window): defsubr them.
16366
16367 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
16368 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
16369
914a8c47
SM
163702003-06-02 Stefan Monnier <monnier@cs.yale.edu>
16371
16372 * dispnew.c (Fsit_for): Don't lie about the number of args.
16373
5b07197a
DL
163742003-06-02 Dave Love <fx@gnu.org>
16375
16376 * callproc.c: Use HAVE_FCNTL_H, not USG5.
16377 (syms_of_callproc) <process-environment>: Doc fix.
16378
16379 * doc.c: Use HAVE_FCNTL_H, not USG5.
16380
16381 * xfaces.c (font_rescale_ratio): Fix for K&R.
16382
16383 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
16384
16385 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
16386
16387 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
16388
16389 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
16390 (xg_create_frame_widgets): Use ENCODE_UTF_8.
16391
d7107586 16392 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
16393
16394 * xmenu.c (ENCODE_MENU_STRING): New.
16395 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
16396 Use it.
16397
16398 * coding.h (ENCODE_UTF_8): New.
16399 (Qutf_8): Declare.
16400
16401 * coding.c (Qutf_8): New.
16402 (syms_of_coding): Intern it.
16403
16404 * fns.c: Doc fixes.
16405
7335b336
KH
164062003-06-02 Kenichi Handa <handa@m17n.org>
16407
16408 * buffer.c (Fset_buffer_multibyte): Fix previous change.
16409
914a8c47
SM
164102003-06-01 Stefan Monnier <monnier@cs.yale.edu>
16411
16412 * lread.c (openp): Make sure STR is a string.
16413
9862c135
JR
164142003-06-01 David Ponce <david@dponce.com>
16415
cab27d04 16416 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
16417 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
16418
16419 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
16420 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
16421 (discard_mouse_events): Discard WHEEL_EVENT events too.
16422 (lispy_wheel_names, wheel_syms): New.
16423 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 16424 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 16425 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
16426
16427 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
16428 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
16429 WHEEL_EVENT events.
16430
f984e73e
JPW
164312003-05-31 John Paul Wallington <jpw@gnu.org>
16432
16433 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
16434 timer are in lisp/emacs-lisp.
16435
1efcd78f
KH
164362003-05-31 Kenichi Handa <handa@m17n.org>
16437
458c8af4
KH
16438 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
16439 region when a buffer is changed to unibyte.
16440
1efcd78f
KH
16441 * charset.h (VALID_LEADING_CODE_P): New macro.
16442 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
16443
778e2804
KH
16444 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
16445 is nonzero, accept multibyte form of eight-bit-control chars.
16446 (decode_composition_emacs_mule): Likewise.
16447 (decode_coding_emacs_mule): Likewise.
16448 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
16449 multibyte form of eight-bit-control chars.
16450
16451 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
16452 (Finsert_file_contents): If coding-system-for-read is bound to
16453 Qauto_save_coding, use the coding system emacs-mule with special
16454 setting for recovering a file.
16455 (choose_write_coding_system): On auto saving, use the coding
16456 system emacs-mule with special setting for auto saving.
16457 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
16458
034060e4
KH
164592003-05-30 Kenichi Handa <handa@m17n.org>
16460
16461 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
16462 properly before calling ccl_driver.
16463
778e2804 16464 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 16465
cab27d04 16466 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
16467 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
16468 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
16469
595f5aa5
GM
164702003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
16471
16472 * xfaces.c (realize_default_face): Do not abort if lface is
16473 non-existent - reverts change from 2003-05-19.
16474
103e0180
KH
164752003-05-29 Kenichi Handa <handa@m17n.org>
16476
16477 * coding.c (decode_coding_iso2022): Pay attention to the byte
16478 sequence of CTEXT extended segment, and retain those bytes as is.
16479
164802003-05-28 Kenichi Handa <handa@m17n.org>
16481
cab27d04 16482 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
16483 of CODING_REPLACEMENT_CHARACTER.
16484 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
16485 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
16486 check this flag on encoding.
cab27d04
SM
16487 (encode_coding_sjis_big5):
16488 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
16489 (Fset_terminal_coding_system_internal):
16490 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
16491 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
16492
16493 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
16494 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16495 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
16496
ff6a3bfb 164972003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 16498
ff6a3bfb
RS
16499 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
16500
16501 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 16502
1963c428
KS
165032003-05-28 Kim F. Storm <storm@cua.dk>
16504
16505 * xdisp.c (expose_window): Fix error in calculation of
16506 window relative coordinates of area to redisplay.
16507
2b5d4601
JR
165082003-05-27 Jason Rumney <jasonr@gnu.org>
16509
16510 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
16511
1c64a4a2
JB
165122003-05-27 David Ponce <david@dponce.com>
16513
16514 Handle W32 mouse wheel events as mouse click events, like in X.
16515
16516 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
16517 MOUSE_WHEEL_EVENT anymore.
16518
16519 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
16520 Scrolling down/up the mouse wheel is respectively mapped to mouse
16521 button 4 and 5.
16522 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
16523 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
16524 WM_MOUSEWHEEL events.
16525
2d031b89
AS
165262003-05-27 Andreas Schwab <schwab@suse.de>
16527
20464fdf
AS
16528 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
16529
2d031b89
AS
16530 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
16531 partially visible line.
16532
16533 * alloc.c (Fgarbage_collect): Fix last change.
16534
97bc76d4
JPW
165352003-05-26 John Paul Wallington <jpw@gnu.org>
16536
16537 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
16538
56613f06
SM
165392003-05-25 Stefan Monnier <monnier@cs.yale.edu>
16540
16541 * window.c (Fset_window_buffer): Add type of `keep_margins'.
16542 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
16543
16544 * window.h (window_box_text_cols): Declare.
16545
16546 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
16547 (x_draw_vertical_border): Remove unused var `f'.
16548
16549 * xfaces.c (build_scalable_font_name): Remove `unused var
16550 pixel_size' warning.
16551
16552 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
16553
16554 * unexelf.c (unexec): Remove `unused var n' warning.
16555
16556 * strftime.c (my_strftime_localtime_r): Remove `defined but
16557 unused' warning.
16558
16559 * process.c (allocate_pty): Remove `unused var stb' and
16560 `cp might be used uninitialized' warnings.
16561
16562 * dispnew.c (mode_line_string): Remove unused var `f'.
16563
16564 * coding.c (find_safe_codings): Remove unused var `i'.
16565
16566 * bytecode.c (Fbyte_code): Remove `unused val' warning.
16567
16568 * buffer.c (Fkill_buffer): Remove unused var `list'.
16569
16570 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
16571
93421a1f
JD
165722003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16573
16574 * frame.c (make_frame): Condition want_fullscreen with
16575 HAVE_WINDOW_SYSTEM.
16576
c4b8aebc
JB
165772003-05-25 Juanma Barranquero <lektu@terra.es>
16578
16579 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
16580 (Fwindow_scroll_bars): Fix typo in docstring.
16581
0416870b
KS
165822003-05-24 Kim F. Storm <storm@cua.dk>
16583
16584 The following changes serve several purposes:
16585
16586 1) Swap the position of fringes and display margins in windows, i.e.
16587 the fringes are now displayed between the margins and the text area
16588 (by default).
16589
16590 2) Allow fringe and scroll bar parameters to be set per-buffer and
16591 per-window (like display margins). Such settings are now stored
16592 in window configurations, preserved when frames are resized, and
9018a88e 16593 copied when windows are split vertically or horizontally.
0416870b
KS
16594 Several bugs related to display margins have been fixed.
16595
16596 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 16597
0416870b
KS
16598 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
16599 rather than FRAME_WIDTH (FRAME_FONT (f)).
16600
16601 5) Introduce a consistent naming of variables, members and macros
16602 depending on whether their value is measured in pixels or in
16603 canonical columns/lines. Pixel dimensions are named *_width and
16604 *_height, while canonical columns/lines are named *_cols and
16605 *_lines. Pixel positions are named *_x and *_y, while column/line
16606 positions are named *_col and *_line.
16607
16608 6) Consolidate more of the X, W32, and MAC gui code by moving
16609 common data into struct frame, and generalize it for the non-gui
16610 case by using suitable defaults.
16611
16612 7) Cleanup and consolidate the macros controlling frame and window
16613 layout into frame.h and window.h, and generalize the use of the
16614 various window_box_* functions (enhanced to handle the new fringe
16615 position and the per-window fringe and scroll bar settings).
16616
16617 * frame.h (struct frame): Rename members height to text_lines,
16618 width to text_cols, window_height to total_lines, window_width to
16619 total_cols, new_height to new_text_lines, new_width to
16620 new_text_cols. All uses changed.
16621 (struct frame): New members which consolidate common members of
16622 x_output, w32_output, and mac_output structures: left_pos,
16623 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
16624 win_gravity, size_hint_flags, border_width, internal_border_width,
16625 line_height, fringe_cols, left_fringe_width, right_fringe_width,
16626 want_fullscreen. All uses changed.
16627 (struct frame): New member column_width contaning the canonical
16628 column width, analogue to line_height. All uses changed.
16629 (struct frame): Rename members scroll_bar_pixel_width to
16630 config_scroll_bar_width, and scroll_bar_cols to
16631 config_scroll_bar_cols. All uses changed.
16632 (struct frame): New member scroll_bar_actual_width which
16633 consolidates and renames the vertical_scroll_bar_extra member of
16634 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 16635 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
16636 from x/w32/macterm.h files. All uses changed. Also change code
16637 which referred to f->output_data...->pixel_height.
cab27d04 16638 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 16639 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 16640 which referred to f->output_data...->pixel_width.
cab27d04 16641 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 16642 Also change code which referred to f->height.
cab27d04 16643 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
16644 Also change code which referred to f->width.
16645 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
16646 to update new_text_lines and new_text_cols members directly.
cab27d04 16647 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 16648 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 16649 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
16650 FRAME_SCROLL_BAR_COLS. All uses changed.
16651 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 16652 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
16653 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
16654 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
16655 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
16656 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
16657 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
16658 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
16659 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
16660 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
16661 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
16662 Unconditionally return line_height member (it now has proper value
16663 also for non-window frames).
16664 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
16665 return new column_width member (rather than the default font width).
16666 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 16667 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
16668 from x/w32/macterm.h files. Unconditionally return corresponding
16669 member of frame structure (they now have proper values also for
16670 non-window frames).
cab27d04 16671 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
16672 Calculate return value from left and right widths.
16673 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
16674 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
16675 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
16676 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
16677 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
16678 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
16679 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 16680 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 16681 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 16682 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 16683 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 16684 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 16685 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 16686 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 16687 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 16688 consolidated from x/mac/w32term.h.
cab27d04 16689 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 16690 consolidated from x/mac/w32term.h.
cab27d04 16691 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 16692 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 16693 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
16694 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
16695
16696 * window.h (struct window): Rename members left to left_col,
16697 top to top_line, height to total_lines, width to total_cols,
16698 left_margin_width to left_margin_cols, right_margin_width to
16699 right_margin_cols, orig_height to orig_total_lines, orig_top to
16700 orig_top_line. All uses changed.
16701 (struct window): New members left_fringe_width, right_fringe_width,
16702 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
16703 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
16704 New macros primarily used to simplify other macros.
16705 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
16706 referred to XINT (w->width).
16707 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
16708 referred to XINT (w->height).
16709 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
16710 referred to XINT (w->width) * canon_x_unit.
16711 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
16712 referred to XINT (w->height) * canon_y_unit.
16713 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
16714 referred to XINT (w->left).
cab27d04 16715 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
16716 all uses and code that referred to XINT (w->left) + XINT (w->width).
16717 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
16718 referred to XINT (w->top).
16719 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
16720 referred to XINT (w->top) + XINT (w->height).
16721 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
16722 referred to XINT (w->left) * canon_x_unit.
16723 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
16724 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
16725 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
16726 referred to XINT (w->top) * canon_y_unit.
16727 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
16728 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
16729 (WINDOW_LEFTMOST_P): New macro.
cab27d04 16730 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 16731 All uses changed.
cab27d04 16732 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 16733 All uses changed.
cab27d04 16734 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
16735 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
16736 Do not exclude left fringe width.
cab27d04 16737 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
16738 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
16739 Do not exclude fringe widths.
16740 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
16741 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
16742 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
16743 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
16744 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
16745 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
16746 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
16747 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
16748 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
16749 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
16750 New macros. Change code which referenced corresponding
16751 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
16752 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
16753 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
16754 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
16755 allow per-window scroll-bar settings.
16756 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
16757 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
16758 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
16759 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
16760 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
16761 FRAME_SCROLL_BAR_WIDTH.
16762 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 16763 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 16764 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 16765 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 16766 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 16767 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 16768 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
16769 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
16770 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
16771 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
16772 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
16773 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 16774 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 16775 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
16776 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
16777 (window_from_coordinates): Update prototype.
16778 (Fset_window_buffer): Update EXFUN.
16779 (set_window_buffer): Update prototype.
9018a88e 16780
0416870b 16781 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 16782 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
16783 changed.
16784 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
16785 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
16786 internal_border_width is now set to 0 for non-window frames.
16787 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
16788 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
16789 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
16790 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
16791 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
16792 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
16793 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
16794 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
16795 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 16796 Move to window.h and renamed [see window.h changes].
0416870b
KS
16797 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
16798 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
16799 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
16800 Use WINDOW_TOTAL_LINES.
0416870b
KS
16801 (frame_update_line_height): Remove prototype.
16802
16803 * buffer.h (struct buffer): Rename members measured in columns:
16804 left_margin_width to left_margin_cols, right_margin_width to
16805 right_margin_cols. All uses changed.
16806 New members left_fringe_width, right_fringe_width,
16807 fringes_outside_margins for per-buffer fringe settings.
16808 New members scroll_bar_width and vertical_scroll_bar_type for
16809 per-buffer scroll bar settings.
16810
16811 * buffer.c (init_buffer_once): Set buffer_defaults and
16812 buffer_local_flags for new buffer-local variables
16813 left_fringe_width, right_fringe_width, fringes_outside_margins,
16814 scroll_bar_width, and vertical_scroll_bar_type.
16815 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
16816 default-* variables for them.
16817
16818 * dispnew.c: Make (many) trivial substitutions for renamed and
16819 new macros in dispextern.h, frame.h and window.h.
16820 (mode_line_string): No need to adjust width for mode lines, as it
16821 is already adjusted by the caller.
16822 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 16823
0416870b
KS
16824 * frame.c: Make (many) trivial substitutions for renamed and
16825 new macros in dispextern.h, frame.h and window.h.
16826 (make_frame): Initialize left_fringe_width, right_fringe_width,
16827 fringe_cols, scroll_bar_actual_width, border_width,
16828 internal_border_width, column_width, line_height, x_pixels_diff,
16829 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
16830 members with values suitable for a non-window frames.
16831
16832 * gtkutil.c: Make (many) trivial substitutions for renamed and
16833 new macros in dispextern.h, frame.h and window.h.
9018a88e 16834
0416870b
KS
16835 * indent.c: Make (few) trivial substitutions for renamed and
16836 new macros in dispextern.h, frame.h and window.h.
16837
16838 * keyboard.c: Make (many) trivial substitutions for renamed and
16839 new macros in dispextern.h, frame.h and window.h.
16840 (make_lispy_event): Use window positions returned from
16841 window_from_coordinates when constructing the lisp event for
16842 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
16843 (incorrect) values locally.
16844 (make_lispy_movement): Use window positions returned from
16845 window_from_coordinates when constructing the lisp event, rather
16846 than calculating (incorrect) values locally.
16847
16848 * scroll.c: Make (some) trivial substitutions for renamed and
16849 new macros in dispextern.h, frame.h and window.h.
16850
16851 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
16852 scroll-bars.
16853
16854 * sysdep.c: Make (few) trivial substitutions for renamed and
16855 new macros in dispextern.h, frame.h and window.h.
16856
16857 * term.c: Make (some) trivial substitutions for renamed and
16858 new macros in dispextern.h, frame.h and window.h.
16859
16860 * widget.c: Make (few) trivial substitutions for renamed and
16861 new macros in dispextern.h, frame.h and window.h.
16862
16863 * window.c: Make (many) trivial substitutions for renamed and
16864 new macros in dispextern.h, frame.h and window.h.
16865 (make_window): Initialize new members
16866 left_margin_cols, right_margin_cols, left_fringe_width,
16867 right_fringe_width, fringes_outside_margins, scroll_bar_width,
16868 and vertical_scroll_bar_type.
cab27d04 16869 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 16870 and per-window fringes and scroll-bars.
0416870b 16871 Fix bug related to incorrectly adjusting coordinates by
9018a88e 16872 frame's internal_border_width (the effect normally negible since
0416870b
KS
16873 the internal_border_width is typically 0 or 1 pixel, but very
16874 noticeable for an internal_border_width of e.g. 25 pixels).
16875 Upon successful return (other than ON_NOTHING), the coordinates
16876 are now always properly converted to window relative for the
16877 given display element.
16878 (window_from_coordinates): Add new parameters wx and wy to
16879 return the window relative x and y position in the returned
16880 window and part. A null arg means, don't return the position.
16881 All callers changed.
16882 (adjust_window_margins): New function which may reduce the width
16883 of the display margins if a window's text area is too small after
16884 resizing or splitting windows.
16885 (size_window): Fix bug that did not account for display margin
16886 widths when checking the minimum width of a window; use
16887 adjust_window_margins.
16888 (set_window_buffer): Call Fset_window_fringes and
16889 Fset_window_scroll_bars to setup per-window elements.
16890 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
16891 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
16892 (e.g. after splitting a window or resizing the frame).
16893 All callers changed.
0416870b
KS
16894 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
16895 (Fsplit_window): Duplicate original window's display margin,
16896 fringe, and scroll-bar settings; then call Fset_window_buffer with
16897 KEEP_MARGINS non-nil. This fixes a bug which caused a split
16898 window to only preserve the display margins in one of the windows.
c4b8aebc 16899 When splitting horizontally, call adjust_window_margins on both
0416870b 16900 windows to ensure that the text area of the new windows is non too
f9711de4 16901 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
16902 width of the split window was less than the width of the display
16903 margins.
cab27d04 16904 (window_box_text_cols): Rename from window_internal_width.
9018a88e 16905 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
16906 Fix bug that caused vertical separator to be subtracted also on
16907 window frames. Fix another bug that did not reduce the returned
16908 value by the columns used for display margins.
16909 (window_scroll_line_based): Fix bug related to scrolling too much
16910 when display margins are present (implicitly fixed by the fix to
16911 window_box_text_cols).
16912 (scroll_left, scroll_right): Fix bug related to scrolling too far
16913 by default when display margins are present (implicitly fixed by
16914 the fix to window_box_text_cols).
16915 (struct saved_window): Rename members left to left_col, top to
16916 top_line, width to total_cols, height to total_lines, orig_top to
16917 orig_top_line, orig_height to orig_total_lines. All uses changed.
16918 New members left_margin_cols, right_margin_cols,
16919 left_fringe_width, right_fringe_width, fringes_outside_margins,
16920 scroll_bar_width, and vertical_scroll_bar_type for saving
16921 per-window display elements.
16922 (Fset_window_configuration): Restore display margins, fringes,
16923 and scroll bar settings. This fixes a bug which caused display
16924 margins to be discarded when saving and restoring a window
16925 configuration.
16926 (save_window_save): Save display margins, fringes, and scroll bar
16927 settings. This fixes a bug which caused display margins to be
16928 discarded when saving and restoring a window configuration.
16929 (Fset_window_margins): Do nothing if display margins are not
16930 really changed. Otherwise, call adjust_window_margins to ensure
16931 the text area doesn't get too narrow. This fixes a bug which
f9711de4 16932 could cause Emacs to trap if setting display margins wider than
0416870b
KS
16933 the width of the window.
16934 (Fset_window_fringes): New defun to allow user to specifically set
16935 this window's fringe widths and position vs. display margins.
cab27d04 16936 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
16937 (Fset_window_scroll_bars): New defun to allow user to specifically
16938 set this window's scroll bar width and position.
16939 (Fwindow_scroll_bars): New defun to return window's actual scroll
16940 bar settings.
16941 (compare_window_configurations): Also compare display margins,
16942 fringes, and scroll bar settings.
16943 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
16944
16945 * xdisp.c: Make (many) trivial substitutions for renamed and
16946 new macros in dispextern.h, frame.h and window.h.
16947 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 16948 and new fringe vs. display margin position. Note that returned
0416870b
KS
16949 value is no longer guaranteed to be a whole multiple of the frame
16950 column width, since per-window fringes may now be any width.
16951 (window_box_left_offset): New function like window_box_left, but
16952 value is relative to left border of window (rather than frame).
16953 (window_box_right_offset): New function like window_box_right,
16954 but value is relative to left border of window.
16955 (window_box_left): Adapt to per-window fringes and scroll bars,
16956 and new fringe vs. display margin position. Simplify by using
16957 WINDOW_LEFT_EDGE_X and window_box_left_offset.
16958 (window_box): Allow null args for unnecessary return values;
16959 change/simplify relevant callers.
16960 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
16961 and new fringe vs. display margin position.
16962 Use window_box_left_offset and window_box_right_offset
0416870b 16963 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
16964 scroll bars, and new fringe vs. display margin position.
16965 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
16966 (draw_fringe_bitmap): Rework to handle per-window fringes and new
16967 fringe vs. display margin position.
16968 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
16969 (redisplay_window): Adapt to per-window scroll bars.
16970 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
16971 bars, and new fringe vs. display margin position.
16972 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 16973 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
16974 bars, and new fringe vs. display margin position. Fix bug which
16975 increased total width of full_width rows by width of scroll bars
16976 although window's total width already includes that.
16977 (x_fix_overlapping_area): Simplify using window_box_left_offset.
16978 (expose_area): Simplify using window_box_left_offset.
16979 (x_draw_vertical_border): Handle per-window scroll bar settings,
16980 mixing windows with left, right and no scroll bars.
16981
16982 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
16983 where it's used in x_list_fonts (for clarity).
16984 (frame_update_line_height): Remove unused function; functionality
16985 is now done directly when setting the default font in x_set_font.
16986
16987 * xfns.c: Make (many) trivial substitutions for renamed and
16988 new macros in dispextern.h, frame.h and window.h.
16989
16990 * xmenu.c: Make (some) trivial substitutions for renamed and
16991 new macros in dispextern.h, frame.h and window.h.
16992
16993 * xterm.h (struct x_output): Move members left_pos, top_pos,
16994 border_width, pixel_height, pixel_width, line_height,
16995 internal_border_width, vertical_scroll_bar_extra,
16996 left_fringe_width, right_fringe_width, fringe_cols,
16997 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16998 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
16999 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17000 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17001 (PIXEL_WIDTH, PIXEL_HEIGHT)
17002 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 17003 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
17004 frame.h and renamed [see frame.h changes].
17005 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17006 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 17007 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 17008 and renamed [see frame.h changes].
9018a88e 17009
0416870b
KS
17010 * xterm.c: Make (several) trivial substitutions for renamed and
17011 new macros in dispextern.h, frame.h and window.h.
cab27d04 17012 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
17013 (scroll_run): Adapt to new fringe position.
17014 (glyph_rect): Use window coordinates returned from
17015 window_from_coordinates rather than frame_to_window_pixel_xy.
17016 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17017 scroll-bars.
17018 (handle_one_xevent): Simplify a USE_GTK conditional.
17019 (x_clip_to_row): Remove superfluous whole_line_p arg and code
17020 (fringes are now inside margins, i.e. always in the clipping area).
17021 All callers changed.
17022 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17023 directly, then call compute_fringe_widths. Don't call
17024 frame_update_line_height.
17025
17026 * w32term.h (struct w32_output): Move members left_pos, top_pos,
17027 border_width, pixel_height, pixel_width, line_height,
17028 internal_border_width, vertical_scroll_bar_extra,
17029 left_fringe_width, right_fringe_width, fringe_cols,
17030 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17031 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
17032 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17033 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17034 (PIXEL_WIDTH, PIXEL_HEIGHT)
17035 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 17036 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
17037 frame.h and renamed [see frame.h changes].
17038 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17039 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 17040 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 17041 and renamed [see frame.h changes].
9018a88e 17042
0416870b
KS
17043 * w32term.c: Make (several) trivial substitutions for renamed and
17044 new macros in dispextern.h, frame.h and window.h.
cab27d04 17045 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
17046 (glyph_rect): Use window coordinates returned from
17047 window_from_coordinates rather than frame_to_window_pixel_xy.
17048 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17049 scroll-bars.
17050 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
17051 (fringes are now inside margins, i.e. always in the clipping area).
17052 All callers changed.
17053 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17054 directly, then call compute_fringe_widths. Don't call
17055 frame_update_line_height.
17056
17057 * w32console.c: Make (few) trivial substitutions for renamed and
17058 new macros in dispextern.h, frame.h and window.h.
17059
17060 * w32fns.c: Make (many) trivial substitutions for renamed and
17061 new macros in dispextern.h, frame.h and window.h.
17062
17063 * w32menu.c: Make (few) trivial substitutions for renamed and
17064 new macros in dispextern.h, frame.h and window.h.
17065
17066 * macterm.h (struct mac_output): Move members left_pos, top_pos,
17067 border_width, pixel_height, pixel_width, line_height,
17068 internal_border_width, vertical_scroll_bar_extra,
17069 left_fringe_width, right_fringe_width, fringe_cols,
17070 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17071 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
17072 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17073 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17074 (PIXEL_WIDTH, PIXEL_HEIGHT)
17075 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 17076 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
17077 frame.h and renamed [see frame.h changes].
17078 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17079 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 17080 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 17081 and renamed [see frame.h changes].
9018a88e 17082
0416870b
KS
17083 * macterm.c: Make (several) trivial substitutions for renamed and
17084 new macros in dispextern.h, frame.h and window.h.
cab27d04 17085 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
17086 (glyph_rect): Use window coordinates returned from
17087 window_from_coordinates rather than frame_to_window_pixel_xy.
17088 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17089 scroll-bars.
17090 (x_clip_to_row): Remove superfluous whole_line_p arg and code
17091 (fringes are now inside margins, i.e. always in the clipping area).
17092 All callers changed.
17093 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17094 directly, then call compute_fringe_widths. Don't call
17095 frame_update_line_height.
17096
17097 * macfns.c: Make (several) trivial substitutions for renamed and
17098 new macros in dispextern.h, frame.h and window.h.
9018a88e 17099 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
17100
17101 * macmenu.c: Make (few) trivial substitutions for renamed and
17102 new macros in dispextern.h, frame.h and window.h.
17103
17104 * msdos.h (struct x_output): Remove members left_pos, top_pos,
17105 and line_height, and use corresponding new members in struct
17106 frame. All uses changed.
17107 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
17108 superseeded by corresponding macros in frame.h.
17109
17110 * msdos.c: Make (several) trivial substitutions for renamed and
17111 new macros in dispextern.h, frame.h and window.h.
17112 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 17113 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
17114 (internal_terminal_init): No need to initialize line_height here;
17115 it now defaults to 1.
17116
9018a88e
SM
171172003-05-24 Stefan Monnier <monnier@cs.yale.edu>
17118
17119 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
17120 dropping `down' events.
17121
016bd3c0
AS
171222003-05-24 Andreas Schwab <schwab@suse.de>
17123
17124 * coding.c (find_safe_codings): Fix last change.
17125
4dacadcc
TTN
171262003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
17127
17128 * xfns.c (x_window): Fix typo from 2003-05-21 change.
17129
319830ce
SM
171302003-05-23 Stefan Monnier <monnier@cs.yale.edu>
17131
9018a88e
SM
17132 * xdisp.c (display_mode_element): Increase max depth.
17133 Simplify the error handling code. Use a different error string
17134 for the case where we hit the depth limit.
17135
319830ce
SM
17136 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
17137
17138 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
17139
171402003-05-21 Stefan Monnier <monnier@cs.yale.edu>
17141
17142 * intervals.c (get_local_map): Don't get char-property of previous
17143 point any more: get_pos_property already does it and better.
17144
c67de8ba
DL
171452003-05-21 Dave Love <fx@gnu.org>
17146
17147 [Merged from unicode branch.]
17148
17149 * xfns.c (x_window, x_window): Use use_xim.
17150
17151 * xterm.c (use_xim): Initialize.
17152 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17153 (x_term_init): Maybe set use_xim.
17154
17155 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17156
edd3ff1d
JR
171572003-05-21 Jason Rumney <jasonr@gnu.org>
17158
17159 * unexw32.c (_start): Remove _fmode initialization.
17160
17161 * emacs.c (main) [WINDOWSNT]: Move it here.
17162
463f55ee
DL
171632003-05-20 Dave Love <fx@gnu.org>
17164
17165 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
17166
af253914
RS
171672003-05-19 Richard M. Stallman <rms@gnu.org>
17168
17169 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
17170 as value for QCfont attribute.
17171 (realize_default_face): lface should already exist; crash if not.
17172 Specify 0 for FORCE_P when calling set_lface_from_font_name.
17173
17174 * frame.c (Fignore_event): Doc fix.
17175
1d211019
KH
171762003-05-19 Kenichi Handa <handa@m17n.org>
17177
17178 * coding.c (decode_coding_string): Handle post-read-conversion
17179 even if the coding doesn't require decoding.
17180
4dd68254
RS
171812003-05-18 Richard M. Stallman <rms@gnu.org>
17182
17183 * callproc.c (Fcall_process_region): Doc fix.
17184
14d87dc9
SM
171852003-05-17 Stefan Monnier <monnier@cs.yale.edu>
17186
deca5d96
SM
17187 * lread.c (Fload): Print a message if package is obsolete.
17188
14d87dc9
SM
17189 * window.c (Fselect_window): Add optional `norecord' arg.
17190 (select_window_1): Fold into Fselect_window.
17191 (select_window_norecord): New function.
17192 (temp_output_buffer_show): Use it. Preserve current buffer.
17193
17194 * window.h (Fselect_window): Update declaration.
17195
17196 * window.c (delete_window, Fother_window, Fset_window_configuration):
17197 * minibuf.c (read_minibuf):
17198 * macterm.c (x_new_focus_frame):
17199 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
17200 * callint.c (Fcall_interactively):
17201 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
17202
17203 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
17204
78f52183
DK
172052003-05-17 David Kastrup <dak@gnu.org>
17206
17207 * process.c (read_process_output): Back out change from 2003-03-09.
17208
14d87dc9
SM
172092003-05-17 Stefan Monnier <monnier@cs.yale.edu>
17210
17211 * editfns.c (get_pos_property): Don't assume that `object' = nil.
17212
17213 * textprop.c (text_property_stickiness): New arg `buffer'.
17214
17215 * intervals.h (text_property_stickiness): New arg `buffer'.
17216 (get_pos_property): Declare.
17217
17218 * intervals.c (get_local_map): Use get_pos_property, to obey
17219 stickiness and empty overlays.
17220 (create_root_interval, graft_intervals_into_buffer): Use BEG.
17221 (merge_properties, intervals_equal, merge_properties_sticky):
17222 Use XCAR, XCDR.
17223 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
17224
1fd1cc2f
RS
172252003-05-17 Richard M. Stallman <rms@gnu.org>
17226
4f9f637a
RS
17227 * minibuf.c (read_minibuf): If buffer is empty, record the default
17228 in the history.
17229 (Fminibuffer_complete_word): When deleting the overlap, take account
17230 of its real position.
17231
17232 * fns.c (map_char_table): Fix previous change.
17233
1fd1cc2f
RS
17234 * syntax.c (find_defun_start):
17235 When open_paren_in_column_0_is_defun_start,
17236 return beginning of buffer.
17237
17238 * lisp.h (map_char_table): Declare added arg.
17239
17240 * fns.c (map_char_table): New arg TABLE gets the master table.
17241 All calls changed.
17242 Process default and inheritance, resorting to Faref if necessary.
17243
17244 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17245 (Faccessible_keymaps): Pass new arg to map_char_table.
17246
17247 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
17248
17249 * casetab.c (set_case_table): Pass new arg to map_char_table.
17250
17251 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
17252
17253 * lisp.h (specbinding_func): New typedef.
17254 (struct specbinding): Use specbinding_func, to put the `volatile'
17255 in the right place.
17256
17257 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
17258 to avoid GCC warning.
14d87dc9 17259
b6189c3b 172602003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 17261
14d87dc9 17262 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 17263
35fb885d
SM
172642003-05-15 Stefan Monnier <monnier@cs.yale.edu>
17265
17266 * keyboard.c (apply_modifiers): Don't fill the other cache.
17267
9a274fbd
SM
172682003-05-14 Stefan Monnier <monnier@cs.yale.edu>
17269
c55b5fad
SM
17270 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
17271
9a274fbd
SM
17272 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
17273 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
17274 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
17275 (Fset_window_configuration, Fcurrent_window_configuration)
17276 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
17277 (Fpos_visible_in_window_p, mark_window_cursors_off)
17278 (window_internal_height, window_internal_width, Frecenter)
17279 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
17280 (replace_buffer_in_all_windows, init_window_once, init_window)
17281 (syms_of_window, keys_of_window): Move from lisp.h.
17282 * lisp.h: Move window.c declarations to window.h.
17283
17284 * bytecode.c: Include window.h.
17285 * emacs.c: Include window.h.
17286
14d87dc9 17287 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
17288 (keyremap): Add `parent' field.
17289 (keyremap_step): Use it. Remove `parent' argument.
17290 (read_key_sequence): Setup and use the new `parent' field.
17291
fd93e331
SM
172922003-05-11 Stefan Monnier <monnier@cs.yale.edu>
17293
17294 * keyboard.c (adjust_point_for_property): Ensure termination.
17295
1c4001a1
SM
172962003-05-10 Stefan Monnier <monnier@cs.yale.edu>
17297
17298 * keyboard.c (follow_key): Remove dead variable `did_meta'.
17299 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
17300 duplicated handling of function-key-map and key-translation-map
17301 in read_key_sequence.
17302 (read_key_sequence): Use them.
17303
17304 * keyboard.c (adjust_point_for_property): Try harder to move point
17305 to the non-sticky end of an invisible property.
17306
17307 * xdisp.c (single_display_prop_intangible_p): Make `space' display
17308 property intangible as well.
17309
780379b1
AS
173102003-05-10 Andreas Schwab <schwab@suse.de>
17311
17312 * xmenu.c (single_menu_item): Change last parameter to void* to
17313 avoid warning.
17314
ca2de342
RS
173152003-05-09 Richard M. Stallman <rms@gnu.org>
17316
17317 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
17318 Bind Qinhibit_modification_hooks to t so there will be no GC.
17319 Rename local `tem' to `save_deactivate_mark'.
17320
17321 * eval.c (specpdl_ptr): Declare volatile.
17322 (unbind_to): Copy the whole binding and decrement specpdl_ptr
17323 before doing the work of unbinding it.
17324
17325 * lisp.h (struct specbinding): Declare elements volatile.
17326 (specpdl_ptr): Declare volatile.
17327
17328 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
17329
17330 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
17331 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
17332
347003be
DL
173332003-05-08 Dave Love <fx@gnu.org>
17334
17335 * coding.c (Vlast_coding_system_used): Doc fix.
17336
5adcec23
JR
173372003-05-07 Jason Rumney <jasonr@gnu.org>
17338
17339 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
17340 when system does not support them.
17341
5fe3b8a4
SM
173422003-05-05 Stefan Monnier <monnier@cs.yale.edu>
17343
17344 * fileio.c (Qwrite_region_annotate_functions): New var.
17345 (build_annotations): Use it to process the global part of the hook.
17346 (syms_of_fileio): Init and staticpro it.
17347
17348 * keyboard.c (safe_run_hooks_error): Display a message instead of
17349 silently ignoring the error.
17350
173512003-05-03 Stefan Monnier <monnier@cs.yale.edu>
17352
17353 * keyboard.c (input_available_signal): Mark static.
17354 (menu_bar_items): Use map_keymap.
17355 (menu_bar_one_keymap): Remove.
17356 (menu_bar_item): Adjust arglist (for use in map_keymap).
17357 Properly hide a second binding when not both are keymaps.
17358
17359 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
17360 (single_keymap_panes): Use it and map_keymap.
17361 (single_menu_item): Use skp as well.
17362
17363 * keymap.h (map_keymap_function_t): New type.
17364 (map_keymap): Declare.
17365
17366 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
17367 (map_keymap_call, Fmap_keymap): New functions.
17368 (syms_of_keymap): Defsubr map-keymap.
17369
4b1b4443
JD
173702003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17371
17372 * gtkutil.c (create_dialog, make_widget_for_menu_item)
17373 (make_menu_item, create_menus, xg_update_menu_item): Don't call
17374 ..._with_mnemonic functions for menu items.
17375
1f816871
KH
173762003-05-01 Kenichi Handa <handa@m17n.org>
17377
17378 * coding.c (coding_system_accept_latin_extra_p): Delete this
17379 function.
17380 (find_safe_codings): Pay attention to
17381 the property tranlsation-table-for-encode of each codings.
17382 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
17383
5ed6ba5b
SM
173842003-05-01 Stefan Monnier <monnier@cs.yale.edu>
17385
17386 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
17387
32c06229
SM
173882003-04-30 Stefan Monnier <monnier@cs.yale.edu>
17389
17390 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
17391
17392 * lisp.h (CHECK): Wrap args in parenthesis.
17393 (specbind): Fix doc: symbol = Qnil is not supported any more.
17394
17395 * bytecode.c (Fbyte_code) <unwind-protect>:
17396 Use Fprogn rather than 0 and Qnil.
17397
17398 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
17399 `double', and `triple' modifiers as well.
17400
ed3c3314
RS
174012003-04-30 Richard M. Stallman <rms@gnu.org>
17402
17403 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
17404
17405 * alloc.c (abort_on_gc): New variable.
17406 (Fgarbage_collect): Abort if abort_on_gc is set.
17407
17408 * lisp.h (abort_on_gc): Add decl.
17409
17410 * eval.c (Fsignal): Clear abort_on_gc.
17411
17412 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 17413 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
17414
17415 * xdisp.c (move_it_vertically_backward): Do the final big else
17416 even if nlines is 0.
17417
17418 * xdisp.c (redisplay_internal): Finish the per-frame loop
17419 even if redisplay is suspended by input.
17420
0b325c12
AC
174212003-04-24 Andrew Choi <akochoi@shaw.ca>
17422
17423 * macterm.c (x_list_fonts): Return all fonts that match if
17424 maxnames = -1.
17425
4e837cd0
KH
174262003-04-25 Kenichi Handa <handa@m17n.org>
17427
17428 * syntax.c (skip_chars): Fix previous change.
17429
9af7511a
KH
174302003-04-24 Kenichi Handa <handa@m17n.org>
17431
17432 * syntax.c (skip_chars): Make the code faster by using the common
17433 technique of *p, *stop, and *endp.
17434
e3b2c21f
JD
174352003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17436
17437 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 17438 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
17439 being updated.
17440
32c06229
SM
174412003-04-19 Stefan Monnier <monnier@cs.yale.edu>
17442
17443 * eval.c (Fapply): Undo last change and add a comment about why.
17444
c6464167
MB
174452003-04-18 Miles Bader <miles@gnu.org>
17446
17447 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
17448 pickier PARSE_MULTIBYTE_SEQ.
17449
e509f168
SM
174502003-04-17 Stefan Monnier <monnier@cs.yale.edu>
17451
17452 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
17453 Use XCDR, XCAR, CONSP.
17454 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
17455 (Fapply): Remove unnecessary GCPRO.
17456
17457 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
17458
17459 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
17460
17461 * buffer.h: Don't hardcode BEG==1.
17462
17463 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
17464
5ceea398
RS
174652003-04-16 Richard M. Stallman <rms@gnu.org>
17466
17467 * xdisp.c (try_window, try_window_reusing_current_matrix):
17468 When at end of window, set window_end_pos to Z-ZV.
17469
17470 * buffer.c (Foverlay_recenter): Doc fix.
17471
e509f168
SM
174722003-04-14 Stefan Monnier <monnier@cs.yale.edu>
17473
17474 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
17475
d243e605
AC
174762003-04-14 Andrew Choi <akochoi@shaw.ca>
17477
17478 * macterm.c (mac_check_for_quit_char): Don't check more often than
17479 once a second.
17480
6901b111
SM
174812003-04-11 Stefan Monnier <monnier@cs.yale.edu>
17482
17483 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
17484 specially, so that they can't hide an implicit switch-frame event.
17485 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
17486 (head_table): Use switch-frame as event_kind for select-window.
17487 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
17488
17489 * editfns.c (Fformat): Lisp_Object/int mixup.
17490 (format2): Remove unused var numargs.
17491
e301806f 174922003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 17493
6901b111 17494 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
17495 (Qafter_insert_file_set_coding): New variable.
17496 (syms_of_fileio): Initialize and staticpro it. Delete declaration
17497 for after-insert-file-adjust-coding-function.
17498 (Finsert_file_contents): Call Qafter_insert_file_set_coding
17499 instead of Vafter_insert_file_adjust_coding_function.
17500
38914424
KH
175012003-04-11 Kenichi Handa <handa@m17n.org>
17502
17503 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
17504
17505 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
17506 string. Callers changed.
17507
175082003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 17509
6901b111 17510 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 17511 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
17512 (Finsert_file_contents):
17513 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
17514 decode-format.
17515
f979dc05
JD
175162003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17517
17518 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
17519 get GtkAdjustment as widget now is a GtkRange.
17520
17521 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
17522 GtkRange to avoid memory leak.
17523
f8c6b4c2 175242003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 17525
50ebc53d
KH
17526 * xfaces.c (Vface_font_rescale_alist): New variable.
17527 (struct font_name): New member rescale_ratio.
17528 (font_rescale_ratio): New function.
6901b111 17529 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
17530 (better_font_p): On comparing point sized, pay attention to
17531 recale_ratio member of fonts.
17532 (build_scalable_font_name): Reflect font->rescale_ratio in the
17533 font name.
6901b111 17534 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 17535
cb98871c
KH
17536 * lread.c (read1): Before calling index, check if the 2nd
17537 arguemnt is in ASCII range.
17538
4773b8ca
RS
175392003-04-08 Richard M. Stallman <rms@gnu.org>
17540
b0ada147
RS
17541 * fileio.c (Ffile_symlink_p): Doc fix.
17542
17543 * editfns.c (Fformat): Translate positions of text properties
17544 in the format string to apply them to the result.
17545
4773b8ca
RS
17546 * fileio.c (Finsert_file_contents): Doc fix.
17547 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17548
175492003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 17550
4773b8ca
RS
17551 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
17552
e8f25745 175532003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 17554
e8f25745
ST
17555 * mac.c (init_mac_osx_environment): Switch libexec and bin so
17556 that self-contained application finds libexec files.
17557
f8c6b4c2 175582003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 17559
6901b111
SM
17560 * coding.c (code_convert_region_unwind):
17561 Set Vlast_coding_system_used to the argument.
2310d84c
KH
17562 (code_convert_region): If post-read-conversion function changed
17563 the value of last-coding-sytem, keep the new value in
17564 coding->symbol so that it won't be overridden.
17565 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
17566 (coding_system_accept_latin_extra_p): New function.
17567 (find_safe_codings): Pay attention to characters registered in
17568 latin-extra-code-table.
2310d84c 17569
39c9a034
TTN
175702003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
17571
17572 * Makefile.in (md5.o): Add missing dependency info.
17573
eb67c5d6
RS
175742003-04-06 Richard M. Stallman <rms@gnu.org>
17575
17576 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
17577
17578 * marker.c (verify_bytepos): New function.
17579
17580 * intervals.c (set_intervals_multibyte_1): When becoming
17581 multibyte, adjust right and left child sizes to a whole set of
17582 characters. If an interval gets zero total-length, delete it.
17583 If an interval consists of just its children, delete one of them.
17584
17585 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
17586 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 17587
52eb0373 17588 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
17589 All calls deleted.
17590 (lisp_malloc): Do the work here directly.
17591
b1f81fc5
JB
175922003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
17593
17594 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
17595 char tables.
17596
175972003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
17598
17599 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
17600 destructively change "%S" to "%s".
17601
774666fb
MB
176022003-04-03 Miles Bader <miles@gnu.org>
17603
17604 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
17605 always set.
17606
19c37f01
DL
176072003-04-01 Dave Love <fx@gnu.org>
17608
17609 * xfns.c (xpm_lookup_color): Grok "opaque".
17610
2f4b24c3
AC
176112003-03-31 Andrew Choi <akochoi@shaw.ca>
17612
17613 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
17614 parent window ID.
17615
17616 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
17617
17618 * macterm.h (struct mac_output): Define x_pixels_diff and
17619 y_pixels_diff.
b1f81fc5 17620
9443fcf6
JB
176212003-03-31 Juanma Barranquero <lektu@terra.es>
17622
17623 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
17624 blockinput.h and files included from it.
17625
e072891b
KS
176262003-03-31 Kim F. Storm <storm@cua.dk>
17627
17628 The following changes consolidates the common code related to
17629 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
17630 files into frame.c.
9443fcf6 17631
e072891b
KS
17632 * frame.c: Include blockinput.h.
17633 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
17634 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
17635 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
17636 related vars here.
17637 (struct frame_parm_table, frame_parms): New table for describing
17638 frame parameters and their associated Q-variable.
17639 The order of the parameters corresponds to the sequence of the
17640 frame_parm_handlers table in redisplay_interface.
17641 (x_fullscreen_move, x_set_frame_parameters)
17642 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
17643 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
17644 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17645 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
17646 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
17647 Generic functions for processing of frame parameters.
17648 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
17649 (display_x_get_resource, x_get_resource_string): Functions for
17650 generic access to X resources.
17651 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
17652 (x_default_parameter, Fx_parse_geometry): Functions for generic
17653 access to frame parameters.
6901b111
SM
17654 (x_figure_window_size): Generic calculation of frame size.
17655 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
17656 (syms_of_frame): Intern and staticpro frame parameter variables.
17657 Defvar_lisp Vx_resource_class and Vx_resource_name here.
17658 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 17659
e072891b
KS
17660 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
17661 parameter related vars defined in frame.c.
17662 (EMACS_CLASS): Define here.
17663 (enum FULLSCREEN_*): Define here.
17664 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
17665 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
17666 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
17667 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
17668 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
17669 (x_set_visibility, x_set_autoraise, x_set_autolower)
17670 (x_set_unsplittable, x_set_vertical_scroll_bars)
17671 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
17672 (x_figure_window_size): Add prototypes.
17673
17674 * dispextern.h (frame_parm_handler): New typedef.
17675 (struct redisplay_interface): New member frame_parm_handlers.
17676 (enum resource_types): Move declaration here.
17677 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
17678 (x_default_parameter): Add prototypes.
17679
17680 * window.c: Remove extern decl for frame parameter vars.
17681 (change_window_heights): New generic function;
17682 replaces x_change_window_heights. All users changed.
17683
17684 * window.h (change_window_heights): Add prototype.
17685
17686 * xfaces.c: Remove extern decl for frame parameter vars.
17687
17688 * xterm.h (EMACS_CLASS): Remove. Use generic define.
17689 (struct w32_display_info): Fix type of xrdb member.
17690 (enum FULLSCREEN_*): Remove.
17691 Remove prototypes for generic functions (in frame.h).
17692
17693 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17694 parameters now defined in frame.h and frame.c.
f63fd14e 17695 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
17696 (enum x_frame_parms): Remove (bogus, unused enum).
17697 (check_x_display_info): Make non-static (for frame.c).
17698 (struct x_frame_parm_table, x_frame_parms): Remove.
17699 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17700 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17701 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17702 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17703 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17704 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17705 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17706 Remove. Use generic functions instead.
17707 (enum resource_types): Remove.
17708 (x_set_scroll_bar_default_width): New global function (for frame.c).
17709 (Fx_create_frame): Depend on x_figure_window_size to add space for
17710 toolbar and setup size_hint_flags.
17711 (x_frame_parm_handlers): New table for redisplay_interface.
17712 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 17713
e072891b 17714 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 17715 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
17716 (x_redisplay_interface): Add x_frame_parm_handlers member.
17717
17718 * w32gui.h (XrmDatabase): New (dummy) typedef.
17719
17720 * w32term.h (EMACS_CLASS): Remove. Use generic define.
17721 (struct w32_display_info): Fix type of xrdb member.
17722 (enum FULLSCREEN_*): Remove.
17723 (x_fullscreen_adjust): Remove prototype.
17724
17725 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17726 parameters now defined in frame.h and frame.c.
f63fd14e 17727 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
17728 (enum x_frame_parms): Remove (bogus, unused enum).
17729 (check_x_display_info): Make non-static (for frame.c).
17730 (struct x_frame_parm_table, x_frame_parms): Remove.
17731 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17732 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17733 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17734 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17735 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17736 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17737 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17738 Remove. Use generic functions instead.
17739 (enum resource_types): Remove.
17740 (x_set_scroll_bar_default_width): New global function (for frame.c).
17741 (Fx_create_frame): Depend on x_figure_window_size to add space for
17742 toolbar and setup size_hint_flags.
17743 (w32_frame_parm_handlers): New table for redisplay_interface.
17744 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 17745
e072891b 17746 * w32term.c: Remove unnecessary extern declarations.
52eb0373 17747 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
17748 (x_redisplay_interface): Add w32_frame_parm_handlers member.
17749
17750 * w32reg.c (x_get_string_resource): Use XrmDatabase.
17751
17752 * macgui.h (XrmDatabase): New (dummy) typedef.
17753
17754 * macterm.h (EMACS_CLASS): Remove.
17755 (struct mac_display_info): Add xrdb member.
17756 (struct mac_output): Add want_fullscreen member.
17757
17758 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17759 parameters now defined in frame.h and frame.c.
f63fd14e 17760 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
17761 (check_x_display_info): Make non-static (for frame.c).
17762 (struct x_frame_parm_table, x_frame_parms): Remove.
17763 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17764 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17765 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17766 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17767 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17768 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17769 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17770 Remove. Use generic functions instead.
17771 (enum resource_types): Remove.
17772 (x_set_scroll_bar_default_width): New global function (for frame.c).
17773 (mac_frame_parm_handlers): New table for redisplay_interface.
17774 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 17775
e072891b
KS
17776 * macterm.c: Remove unnecessary extern declarations.
17777 (x_redisplay_interface): Add mac_frame_parm_handlers member.
17778
3e6a560b
KS
17779 * Makefile.in (frame.o): Add dependency on blockinput.h and files
17780 included from it (atimer.h and systime.h).
17781
7b7b454e
AS
177822003-03-30 Andreas Schwab <schwab@suse.de>
17783
17784 * xdisp.c (x_insert_glyphs): Fix swapped width and height
17785 parameters for shift_glyphs_for_insert.
17786
17787 * macterm.c (x_redisplay_interface): Add missing entry for
17788 draw_vertical_window_border.
17789
beb402de
KG
177902003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
17791
17792 * fileio.c (Fexpand_file_name): In the no-handler case, after
17793 expanding, look again for a handler and invoke it. This is needed
17794 for filenames like "/foo/../user@host:/bar/../baz" -- the first
17795 expansion produces "/user@host:/bar/../baz" which needs to be
17796 expanded again for the finame result "/user@host:/baz".
17797
b676f356
JD
177982003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17799
17800 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
17801 of area to be redrawn for better performance.
17802
3c671a56
SM
178032003-03-28 Stefan Monnier <monnier@cs.yale.edu>
17804
17805 * xterm.c (take_vertical_position_into_account): Remove.
17806 (xt_action_hook): Call set_vertical_scroll_bar if needed.
17807 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
17808 (xm_scroll_callback, x_create_toolkit_scroll_bar)
17809 (x_set_toolkit_scroll_bar_thumb): Simplify.
17810 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
17811 (XTread_socket): Remove unused var.
17812 (x_make_frame_invisible): Replace goto with else.
17813
17814 * xdisp.c (set_vertical_scroll_bar): New fun.
17815 (redisplay_window): Use it.
17816
84f2e615
RS
178172003-03-26 Richard M. Stallman <rms@gnu.org>
17818
17819 * xdisp.c (update_tool_bar): Recompute tool bar if
17820 update_mode_lines is set. Set w->update_mode_line
17821 only if the tool bar contents actually change.
17822 (update_menu_bar): Undo previous change.
17823
70b6104c
JD
178242003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17825
5fd6f727
JD
17826 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
17827 (xg_frame_set_char_size): Calculate scroll bar width before frame
17828 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
17829 (xg_separator_p): Check for all documented separator types.
17830 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
17831 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
17832
70b6104c
JD
17833 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
17834 so tool bar gets updated.
17835
d9b36d19
SM
178362003-03-26 Stefan Monnier <monnier@cs.yale.edu>
17837
17838 * data.c (store_symval_forwarding): Re-instate part of the code
17839 that was deleted with too much enthusiasm.
17840
178412003-03-25 Stefan Monnier <monnier@cs.yale.edu>
17842
17843 * data.c (store_symval_forwarding): Delete special read-only
17844 hack for type == -1, since we now use ->constant instead.
17845 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
17846
17847 * buffer.c (overlays_in): Declare static.
17848 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
17849 `constant' field rather than the variable's `type' field.
17850
365fa1b3
AC
178512003-03-24 Andrew Choi <akochoi@shaw.ca>
17852
17853 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
17854
17855 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
17856
17857 * fns.c [MAC_OSX]: Do not redefine vector.
17858
17859 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
17860
17861 * macgui.h: Remove definition of No_Cursor.
17862
d9b36d19 17863 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
17864
17865 * xdisp.c: Define No_Cursor.
17866 (x_write_glyphs, notice_overwritten_cursor)
17867 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
17868 (note_mouse_highlight): Remove Mac-specific code.
17869 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 17870
c0bcce6f
JPW
178712003-03-24 John Paul Wallington <jpw@gnu.org>
17872
17873 * xdisp.c (redisplay_window): If mini window's buffer is not
17874 empty, then redisplay it like other windows.
17875
a526b96c
KS
178762003-03-23 Kim F. Storm <storm@cua.dk>
17877
17878 * w32term.c (w32_draw_window_cursor): Fix last change.
17879
37ab321e
KH
178802003-03-23 Kenichi Handa <handa@m17n.org>
17881
a526b96c
KS
17882 * alloc.c (make_string_from_bytes, make_specified_string):
17883 Add `const' for the arg CONTENTS.
37ab321e
KH
17884
17885 * lisp.h (make_string_from_bytes, make_specified_string):
17886 Prototypes adjusted.
17887
7863d625
JD
178882003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17889
a526b96c 17890 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 17891
7863d625
JD
17892 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
17893 (XG_SB_RANGE): New define.
17894
17895 * gtkutil.c (xg_fixed_handle_expose): New function.
17896 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
17897 expose events.
17898 (xg_update_scrollbar_pos): Take two more arguments, left and width
17899 of scroll bar including borders.
17900 Clear left and right part outside scroll bar separately as some
17901 themes have bars that are not an even number of pixels.
d9b36d19 17902 Don't set reallocate_redraws, don't call
7863d625
JD
17903 gdk_window_process_all_updates.
17904 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
17905 so no need to change it. Calculate size and value with XG_SB_RANGE.
17906
d9b36d19
SM
17907 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
17908 Pass left and width of scroll bar including borders to
7863d625
JD
17909 xg_update_scrollbar_pos.
17910
af0ad939
TTN
179112003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
17912
17913 * Makefile.in: Make sure space precedes end-of-line backslashes.
17914
b22139fd
KS
179152003-03-22 Kim F. Storm <storm@cua.dk>
17916
17917 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
17918 Add generic versions here. Remove system specific versions
17919 defined elsewhere.
17920
17921 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
17922 Add prototypes.
17923
6e6410cf
KS
17924 * xterm.h (STORE_NATIVE_RECT): New macro.
17925
5c9cc435
KS
179262003-03-21 Kim F. Storm <storm@cua.dk>
17927
00c64fab
SM
17928 * xdisp.c (get_glyph_string_clip_rect):
17929 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
17930
17931 * dispextern.h (struct redisplay_interface): Add active_p
17932 argument to draw_window_cursor member. All uses changed.
17933
acd37560
KS
179342003-03-21 Kim F. Storm <storm@cua.dk>
17935
17936 The following changes consolidate code related to writing and
17937 inserting glyphs, exposing frame, the tool bar, the mouse face,
17938 the output cursor, and help echo from xterm.c, w32term.c and
17939 macterm.c into xdisp.c. It also generalizes the use of the
17940 window_part enum instead of using numeric values throughout.
af0ad939 17941
acd37560
KS
17942 * xdisp.c: Consolidate gui-independent code here.
17943 Include keymap.h.
17944 (Qhelp_echo): Import.
17945 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
17946 (help_echo_string, help_echo_window, help_echo_object)
17947 (previous_help_echo_string, help_echo_pos): Declare here.
17948 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
17949 (estimate_mode_line_height): Define here. Handle windowing
17950 systems directly (without using estimate_mode_line_height_hook).
17951 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
17952 (update_window_cursor, update_cursor_in_window_tree)
17953 (fast_find_position, fast_find_string_pos)
17954 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
17955 (expose_area, expose_line, expose_overlaps, expose_window)
17956 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
17957 declared static as they are only used locally in xdisp.c.
17958 (draw_glyphs): Rename from x_draw_glyphs and make static.
17959 (tool_bar_item_info, notice_overwritten_cursor): Make static.
17960 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
17961 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 17962 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
17963 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17964 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
17965 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
17966 (note_mouse_highlight, x_clear_window_mouse_face)
17967 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
17968 (x_intersect_rectangles): New generic functions for use by xdisp.c
17969 and GUI front-ends.
17970 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
17971 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
17972
17973 * dispextern.h (Display_Info): Generic typedef for *_display_info.
17974 (NativeRectangle): Generic typedef for rectangle type.
17975 (enum window_part): Move here from window.c.
17976 (struct redisplay_interface): New members flush_display_optional,
17977 define_frame_cursor, clear_frame_area, draw_window_cursor,
17978 draw_vertical_window_border, shift_glyphs_for_insert.
17979 Rename member clear_mouse_face to clear_window_mouse_face.
17980 (estimate_mode_line_height_hook): Remove hook.
17981 (auto_raise_tool_bar_buttons_p): Don't declare extern.
17982 (tool_bar_item_info): Remove prototype.
17983 (help_echo_string, help_echo_window, help_echo_object)
17984 (previous_help_echo_string, help_echo_pos)
17985 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
17986 (x_stretch_cursor_p, output_cursor): Declare extern.
17987 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
17988 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
17989 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17990 (display_and_set_cursor, set_output_cursor, x_cursor_to)
17991 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
17992 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
17993 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
17994 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
17995 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
17996 Add prototypes.
17997 (mode_line_string, marginal_area_string): Fix prototypes.
17998
17999 * window.c (enum window_part): Move to dispextern.h.
18000 (coordinates_in_window): Use enum window_part member names
18001 instead of numbers to describe return value.
18002 (struct check_window_data): Change part member to window_part.
18003 (check_window_containing): Return window_part unaltered.
18004 (window_from_coordinates): Change part arg from int to enum
18005 window_part. Allow part arg to be null. All users changed.
18006
18007 * window.h (window_from_coordinates): Fix prototype.
18008
18009 * term.c (estimate_mode_line_height): Move to xdisp.c.
18010
18011 * keyboard.c (make_lispy_event): Use enum window_part.
18012
18013 * dispnew.c (mode_line_string, marginal_area_string): Use enum
18014 window_part instead of int in arg list. Users changed.
18015
18016 * xterm.h (No_Cursor): Declare as None for X.
18017 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 18018
acd37560
KS
18019 * xterm.c: Remove consolidated defines and code.
18020 (BETWEEN): Remove unused macro.
18021 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
18022 (x_define_frame_cursor, x_clear_frame_area)
18023 (x_draw_window_cursor): New X-specific functions for RIF.
18024 (x_redisplay_interface): Add new members.
18025
18026 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
18027
18028 * w32term.h (struct w32_output): Remove cross_cursor member.
18029
18030 * w32term.c: Remove consolidated defines and code.
18031 (BETWEEN): Remove unused macro.
18032 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
18033 (w32_define_frame_cursor, w32_clear_frame_area)
18034 (w32_draw_window_cursor): New W32-specific functions for RIF.
18035 (w32_redisplay_interface): Add new members.
18036
a64387ee 18037 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
18038 (XRectangle): Add X compatible rectangle type.
18039 (NativeRectangle): Declare as RECT for W32.
18040 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18041
18042 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
18043
18044 * w32console.c: Remove consolidated defines and code.
af0ad939 18045
acd37560
KS
18046 * msdos.h (Display_Info): Add generic typedef.
18047
18048 * msdos.c: Remove consolidated defines and code.
18049 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
18050
18051 * macterm.h (struct mac_output): Replace member cross_cursor by
18052 hand_cursor.
18053 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
18054
18055 * macterm.c: Remove consolidated defines and code.
18056 (BETWEEN): Remove unused macro.
18057 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
18058 (mac_define_frame_cursor, mac_clear_frame_area)
18059 (mac_draw_window_cursor): New Mac-specific functions for RIF.
18060 (x_redisplay_interface): Add new members.
18061
18062 * macgui.h (No_Cursor): Define as 0 for Mac.
18063 (XRectangle): Add X compatible rectangle type.
18064 (NativeRectangle): Declare as Rect for Mac.
18065 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18066
204ccab1
KS
18067 * macfns.c (x_set_mouse_color): Setup hand_cursor.
18068 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 18069
9443fcf6 18070 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
18071 included from it. Add dependency on keymap.h.
18072
18073 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
18074
8ba01a70 180752003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
18076
18077 * fileio.c (Fexpand_file_name): Fix previous change.
18078
8ba01a70 180792003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
18080
18081 * fileio.c (Ffile_name_directory): Reconstruct file name by
18082 make_specified_string.
18083 (Ffile_name_nondirectory, Ffile_name_as_directory)
18084 (Fdirectory_file_name, Fexpand_file_name)
18085 (Fsubstitute_in_file_name): Likewise.
18086 (Fread_file_name): Compare decoded homedir with DIR and
18087 DEFAULT_FILENAME.
18088
18089 * alloc.c (make_specified_string): If NCHARS is negative, count
18090 the number of characters.
18091
19536747
JD
180922003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18093
de38ae5a
JD
18094 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
18095 all widgets.
18096
19536747
JD
18097 * gtkutil.h: Removed xg_ignore_next_thumb.
18098
37ab321e 180992003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
18100
18101 * coding.c (Vchar_coding_system_table): Remove this variable.
18102 (Vcoding_system_safe_chars): New variable.
18103 (intersection): Remove this function.
18104 (find_safe_codings): Don't use Vchar_coding_system_table, but try
18105 all codings in SAFE_CODINGS.
00c64fab 18106 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
18107 find_safe_codings. Get generic coding systems from
18108 Vcoding_system_safe_chars.
18109 (Fdefine_coding_system_internal): New function.
18110 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
18111 Initialize and staticpro Vcoding_system_safe_chars.
18112
17097258
JD
181132003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18114
2a2071c3
JD
18115 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
18116 equal old values before updating.
18117
17097258
JD
18118 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
18119
18120 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
18121
181222003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18123
18124 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
18125 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
18126 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
18127 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
18128 (xg_create_scroll_bar): Pass bar to button event callback.
18129 (xg_find_top_left_in_fixed): New function.
18130 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
18131 whole scroll bar area. Get old position with
18132 xg_find_top_left_in_fixed, calculate and only clear needed areas.
18133 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
18134 dragging is in progress. Calculate whole as for Motif.
18135 Remove code that saved last values. Call gtk_range functions to
18136 set scroll bar sizes.
18137
18138 * gtkutil.h: Removed xg_ignore_next_thumb.
18139
8cb9dfbf
JB
181402003-03-17 Juanma Barranquero <lektu@terra.es>
18141
18142 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
18143 and files included from it.
18144
00c64fab
SM
181452003-03-18 Stefan Monnier <monnier@cs.yale.edu>
18146
18147 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
18148 multiple occurrences of the same keymap under different prefixes.
18149 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
18150
c45bb3b2
JR
181512003-03-16 Jason Rumney <jasonr@gnu.org>
18152
18153 * w32gui.h: Use HDC for Display.
18154
18155 * w32term.c (w32_encode_char): Prevent double-byte chars from
18156 crashing Emacs.
18157
18158 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
18159 as binary.
18160
2a6d0874
JB
181612003-03-16 Juanma Barranquero <lektu@terra.es>
18162
18163 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
18164
03eb5fab
KS
181652003-03-16 Kim F. Storm <storm@cua.dk>
18166
18167 The following changes consolidate some of the gui-independent
18168 parts of the processing and drawing of "glyph strings" from
18169 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 18170
03eb5fab
KS
18171 * dispextern.h (struct glyph): Reduce face_id member from 22 to
18172 21 bits (this reduces number of faces from 4M to 2M).
18173 Replace W32 specific w32_font_type member (2 bits) by generic
18174 font_type member (3 bits) for portability.
18175 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
18176 (enum draw_glyphs_face): Define here.
18177 (struct glyph_string): Define here. Merge W32 and X versions.
18178 (struct redisplay_interface): New members per_char_metric,
18179 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
18180 (VCENTER_BASELINE_OFFSET): Define here.
18181 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
18182 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
18183
18184 * xdisp.c: Consolidate gui-independent "glyph string" code here.
18185 (dump_glyph_string): Moved here.
18186 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
18187 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
18188 (fill_composite_glyph_string, fill_glyph_string)
18189 (fill_image_glyph_string, fill_stretch_glyph_string)
18190 (left_overwritten, left_overwriting, right_overwritten)
18191 (right_overwriting, get_char_face_and_encoding)
18192 (set_glyph_string_background_width, compute_overhangs_and_x)
18193 (append_glyph, append_composite_glyph, produce_image_glyph)
18194 (take_vertical_position_into_account, append_stretch_glyph)
18195 (produce_stretch_glyph): New generic functions (based on X version).
18196 Call platform specific functions through rif.
18197 (INIT_GLYPH_STRING): New macro, hides W32 details.
18198 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
18199 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
18200 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
18201 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
18202 (notice_overwritten_cursor):
18203 Generic functions exported to platform modules. Users changed.
18204
18205 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
18206 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
18207 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 18208 New macros for consolidated code.
2a6d0874 18209
03eb5fab
KS
18210 * xterm.c: Remove consolidated defines and code.
18211 (x_per_char_metric, x_encode_char)
18212 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
18213 (x_redisplay_interface): Add new members.
18214
18215 * w32gui.h (Display): Add dummy typedef for consolidation.
18216 (XChar2b): Define alias for wchar_t for consolidation.
18217 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
18218
18219 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 18220 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
18221 New macros for consolidation.
18222
fad49844 18223 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
18224 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
18225 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
18226 (w32_per_char_metric): Change font_type arg to int for RIF.
18227 (w32_encode_char): Return int according to RIF requirements.
18228 (w32_compute_glyph_string_overhangs): Adapt to RIF.
18229 (w32_get_glyph_overhangs): New function for RIF. Uses generic
18230 x_get_glyph_overhangs.
18231 (w32_redisplay_interface): Add new members.
18232
18233 * macgui.h (XChar2b): Move typedef here for consolidation.
18234 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
18235
18236 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
18237 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
18238 consolidation.
18239
18240 * macterm.c: Remove consolidated defines and code.
18241 (mac_per_char_metric): New function for RIF.
00c64fab 18242 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
18243 (mac_compute_glyph_string_overhangs): Adapt for RIF.
18244 (x_redisplay_interface): Add new members.
18245
00c64fab
SM
182462003-03-15 Stefan Monnier <monnier@cs.yale.edu>
18247
18248 * keymap.c (Vmenu_events): New var.
18249 (syms_of_keymap): Initialize it.
18250 (where_is_internal): Check more carefully what is a menu event.
18251
225c7a07
RS
182522003-03-14 Richard M. Stallman <rms@gnu.org>
18253
18254 * lread.c (read1): After #!, exit loop on eof.
18255
cea9be54
JD
182562003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18257
9ea0e54d
JD
18258 * gtkutil.h: Add declaration for xg_frame_cleared.
18259
0cb35f4e
JD
18260 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
18261
cea9be54
JD
18262 * gtkutil.c (struct xg_last_sb_pos): New structure.
18263 (handle_fixed_child): New function.
18264 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
18265 and force a redraw on them.
18266 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
18267 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
18268 so we can avoid unneeded redraws.
18269 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
18270 and force a redraw on the scroll bar.
18271 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
18272 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 18273 (xg_frame_cleared): New function.
cea9be54 18274
20b853f3
KH
182752003-03-13 Kenichi Handa <handa@m17n.org>
18276
18277 * coding.c (Fdetect_coding_region): Fix docstring.
18278 (Fdetect_coding_string): Fix docstring.
18279
7a555aff
AS
182802003-03-13 Andreas Schwab <schwab@suse.de>
18281
25cc0080
AS
18282 * gtkutil.c: Add prototype for create_menus.
18283
30225431
AS
18284 * data.c (long_to_cons): Fix type of top.
18285
18286 * xselect.c (selection_data_to_lisp_data): Use int instead of
18287 long for an integer of size 4.
18288
7a555aff 18289 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 18290 (xg_tool_bar_help_callback): Likewise.
7a555aff 18291
a3e4741f
AS
182922003-03-12 Andreas Schwab <schwab@suse.de>
18293
18294 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
18295
9668be7c
KS
182962003-03-12 Kim F. Storm <storm@cua.dk>
18297
03eb5fab 18298 The following changes consolidate the fringe handling from
9668be7c 18299 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 18300
9668be7c
KS
18301 * xdisp.c: Consolidate fringe handling code here.
18302 (left_bits, right_bits, continued_bits, continuation_bits)
18303 (ov_bits, zv_bits): Define fringe bitmaps.
18304 (fringe_bitmaps): New array holding fringe bitmaps.
18305 (draw_fringe_bitmap): Draw a specific bitmap; call display
18306 specific drawing routine via rif->draw_fringe_bitmap.
18307 (draw_row_fringe_bitmaps): Generic replacement for
18308 x_draw_row_fringe_bitmaps; all callers changed.
18309 (compute_fringe_widths): Generic replacement for
18310 x_compute_fringe_widths; all callers changed.
18311
18312 * dispextern.h (enum fringe_bitmap_type): Define here.
18313 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
18314 (fringe_bitmaps): Declare extern.
18315 (struct redisplay_interface): New member draw_fringe_bitmap.
18316 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
18317
18318 * xterm.c: Remove generic fringe code.
18319 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
18320 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
18321
18322 * w32term.c: Remove generic fringe code.
18323 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
18324 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 18325
9668be7c
KS
18326 * macterm.c: Remove generic fringe code.
18327 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
18328 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
18329
00a88f32
SM
183302003-03-11 Stefan Monnier <monnier@cs.yale.edu>
18331
18332 * print.c (Fprin1_to_string): Return unibyte string if possible.
18333
1d1de695
DK
183342003-03-09 David Kastrup <dak@gnu.org>
18335
18336 * process.c (read_process_output): We have allocated enough space
18337 for readmax and carryover, so actually use the alloted space.
18338
257f40f2
JD
183392003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18340
18341 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
18342 toolkit scrollbar click.
18343
18344 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
18345 for USE_GTK.
18346 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
18347 also.
1d1c7e75 18348 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 18349 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 18350
78819ebb 18351 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
18352
18353 * gtkutil.c (xg_get_scroll_id_for_window): New function.
18354 (xg_tool_bar_item_expose_callback): New function.
18355 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
18356 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
18357 on the tool bar widget.
18358 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
18359 to expose on the tool bar item widgets.
18360
15213141
JD
183612003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18362
26b74a0b 18363 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 18364 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
18365 deleted from the image cache).
18366
15213141
JD
18367 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
18368 the event isn't for a frame (i.e. for dialogs).
18369
20b853f3 183702003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
18371
18372 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
18373 composition components reaches the limit, terminate composing.
18374 (COMPOSITION_OK): New macro.
00a88f32 18375 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
18376 composition is found.
18377 (coding_restore_composition): Adjust the number of composition
18378 components if it is not sane.
18379
c9029fe5
JB
183802003-03-06 Juanma Barranquero <lektu@terra.es>
18381
18382 * w32term.h (struct w32_display_info): Add xrdb member to support
18383 passing resources via -xrm on Windows.
18384
18385 * w32term.c (w32_make_rdb): New function.
18386 (w32_term_init): Use it to initialize xrdb member of w32_display_info
18387 struct. Delete leftover code.
18388
18389 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
18390 for resources passed on the command line.
18391
18392 * w32reg.c (w32_get_rdb_resource): New function.
18393 (x_get_string_resource): Use it, so resources passed with -xrm
18394 supercede the ones in the registry.
18395
9d00001f
JD
183962003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18397
18398 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
18399 instead of x_top_window_to_frame.
18400
ca2417b9
JD
184012003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18402
18403 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
18404 when restarting Emacs.
18405
5b20caf0
RS
184062003-03-03 Richard M. Stallman <rms@gnu.org>
18407
18408 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
18409 to run kill-buffer-query-functions.
18410 (Qkill_buffer_query_functions): New var.
18411 (syms_of_buffer): Init and staticpro it.
18412
58e91b77
JD
184132003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18414
18415 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
18416
932357b4
KS
184172003-02-25 Kim F. Storm <storm@cua.dk>
18418
18419 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
18420 If centering point failed to make whole line visible and vscroll
18421 is non-zero, disable vscroll and try centering point again.
18422
18423 * lread.c (read1): Accept `single space' syntax like (? x).
18424
bb8db7e1
JD
184252003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18426
18427 * keyboard.c (cancel_hourglass_unwind): Surround with
18428 #ifdef HAVE_X_WINDOWS
18429
47d77aab
KH
184302003-02-25 Kenichi Handa <handa@m17n.org>
18431
18432 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
18433 process only when "subprocesses" is defined.
18434
6a097c0c
SM
184352003-02-24 Stefan Monnier <monnier@cs.yale.edu>
18436
18437 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
18438
0b063c27
JB
184392003-02-24 Juanma Barranquero <lektu@terra.es>
18440
d1135afc
JB
18441 * callint.c (fix_command): Declare as static void and move before
18442 Fcall_interactively.
18443
0b063c27
JB
18444 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
18445 (syms_of_xdisp): Don't initialize Qwhen.
18446
0af912f0
JD
184472003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18448
18449 * keyboard.c (cancel_hourglass_unwind): New function.
18450 (command_loop_1): Cancel hourglass with unwind-protect.
18451
120d0a23
RS
184522003-02-23 Richard M. Stallman <rms@gnu.org>
18453
18454 * callint.c (fix_command): New subroutine, from Fcall_interactively.
18455 Detect (when ... (region-beginning)) etc.
18456 (Fcall_interactively): Call fix_command.
18457 (Qif, Qwhen): New variables.
18458 (syms_of_callint): Init and staticpro them.
0b063c27 18459
120d0a23
RS
18460 * regex.c (print_partial_compiled_pattern): Output to stderr.
18461
4ece81a6
KG
184622003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
18463
18464 * dired.c (directory_files_internal): Don't expand directory.
18465 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
18466 instead. From Lars Hansen <larsh@math.ku.dk>.
18467
e52bd6b7
SM
184682003-02-22 Stefan Monnier <monnier@cs.yale.edu>
18469
18470 * fns.c (string_to_multibyte): Remove unused var i.
18471 (Flanginfo): Fix int/Lisp_Object mixup.
18472 (void_call2): New fun.
18473 (Fmap_char_table): Use it in place of call2.
18474
18475 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
18476
18477 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
18478
18479 * keymap.c (copy_keymap_1): Make it static.
18480
18481 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
18482
c33ef7c4
JB
184832003-02-22 David Ponce <david@dponce.com>
18484
18485 * lread.c (Fload): Don't check STRING_MULTIBYTE.
18486
16782258
JD
184872003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18488
18489 * process.h: Removed subtty field from struct Lisp_Process.
18490
18491 * process.c (create_process): Remove setting of subtty.
18492 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
18493 (Fprocess_running_child_p, process_send_signal):
18494 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
18495 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
18496
3abeca61
KG
184972003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
18498
18499 * keymap.c (Fdefine_key): Doc fix.
18500
92a8ce63
JB
185012003-02-21 Juanma Barranquero <lektu@terra.es>
18502
18503 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
18504
18505 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
18506 POLLING_PROBLEM_IN_SELECT.
18507
18508 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
18509 Delete #undef of POLLING_PROBLEM_IN_SELECT.
18510
18511 * s/hpux10-20.h: New file.
18512
e52bd6b7
SM
18513 * process.c (wait_reading_process_input):
18514 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 18515
20f1ef2e
KH
185162003-02-20 Kenichi Handa <handa@m17n.org>
18517
32d0a9dc
KH
18518 * fontset.c (check_fontset_name): If NAME is nil, return the
18519 default fontset.
18520 (override_font_info): New function.
e52bd6b7 18521 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
18522 (Ffontset_info): If FONTSET is not the default fontset, merge
18523 FONTSET onto the copy of the default fontset, and work on that
18524 copy. Document that NAME nil means the default fontset.
18525 (Ffontset_font): Document that NAME nil means the default fontset.
18526
20f1ef2e
KH
18527 * process.c (setup_process_coding_systems): If the process's
18528 in/out descriptor is -1, do nothing.
18529
77d1daf2
AS
185302003-02-19 Andreas Schwab <schwab@suse.de>
18531
e52bd6b7
SM
18532 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
18533 Add prototypes.
77d1daf2 18534
f9a45bb3
KH
185352003-02-19 Kenichi Handa <handa@m17n.org>
18536
18537 * xfaces.c (try_alternative_families): Try all scalable fonts if
18538 Vscalable_fonts_allowed is not Qt.
18539
72ecb43c
JD
185402003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18541
18542 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
18543
ee5be7c3
JD
185442003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18545
18546 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
18547 names.
18548
18549 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 18550 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
18551 x_face_list_fonts.
18552 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
18553 (Fx_list_fonts): Set maxnames to -1 to get all font names.
18554
4cd519a7
KS
185552003-02-18 Kim F. Storm <storm@cua.dk>
18556
068f9882
KS
18557 * lread.c (read1): Fix last change.
18558 "`" is not always special. Allow "?" after a character constant.
4cd519a7 18559
7290a344
AC
185602003-02-18 Andrew Choi <akochoi@shaw.ca>
18561
18562 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
18563
1f7fa69b
AS
185642003-02-18 Andreas Schwab <schwab@suse.de>
18565
18566 * window.c (window_scroll_pixel_based): Move outside a
18567 multi-glyph character before setting new window start.
18568
18569 * xdisp.c (in_display_vector_p): New function.
18570 * dispextern.h (in_display_vector_p): Declare.
18571
23e21195
KS
185722003-02-18 Kim F. Storm <storm@cua.dk>
18573
18574 * lread.c (read1): Fix and relax read syntax.
18575 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
18576 Only recognize "," after dotted-pair dot if inside backquote.
18577 Never include "`" or "," (inside backquote) in a symbol.
18578 Allow dotted-pair dot after a character constant.
18579 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 18580
f098b121
JD
185812003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18582
18583 * gtkutil.c (xg_tool_bar_expose_callback): New function.
18584 (xg_create_tool_bar): Force style of tool bar to be horizontal with
18585 icons. Set name of tool bar to emacs-toolbar.
18586 (update_frame_tool_bar): Connect expose event to
18587 xg_tool_bar_expose_callback.
18588
63020c46
RS
185892003-02-17 Richard M. Stallman <rms@gnu.org>
18590
18591 * keyboard.c (this_command_key_count_reset): New variable.
18592 Initiatize to 0 where this_command_key_count is set.
18593 (read_char): Save and restore this_command_key_count_reset
18594 around input method code.
18595 (read_char): If this_command_key_count_reset, echo reread commands.
18596 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
18597
fb4452cc
KH
185982003-02-17 Kenichi Handa <handa@m17n.org>
18599
18600 * fns.c (string_to_multibyte): Always return a multibyte string.
18601
bd11cc09
JR
186022003-02-16 Jason Rumney <jasonr@gnu.org>
18603
e52bd6b7
SM
18604 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
18605 Negative max_fonts parameter means list all.
bd11cc09 18606
4cdf4bde
DL
186072003-02-14 Dave Love <fx@gnu.org>
18608
18609 * fns.c (Flanginfo): Doc fix.
18610
023b93f6
KS
186112003-02-13 Kim F. Storm <storm@cua.dk>
18612
37cd4238
KS
18613 * lread.c (read_escape): Interpret \s as a SPACE character, except
18614 for \s-X in a character constant which still is the super modifier.
18615 (read1): Signal an `invalid read syntax' error if a character
18616 constant is immediately followed by a digit or symbol character.
18617
140a6b7e
KS
18618 * search.c (Fmatch_data): Doc fix. Explicitly state that
18619 match-data is undefined if last search failed.
18620
3419757d 18621 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
18622 All uses changed.
18623
7d5c86e5
JB
186242003-02-12 Juanma Barranquero <lektu@terra.es>
18625
18626 * eval.c (Fdefmacro): Fix typo.
18627
295fff2c
KS
186282003-02-12 Kim F. Storm <storm@cua.dk>
18629
18630 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
18631 macro is a string, convert meta modifiers in string when copying
18632 the string into a vector.
18633
60f3202d
KS
186342003-02-11 Kim F. Storm <storm@cua.dk>
18635
18636 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
18637
61cb0b53
KH
186382003-02-11 Kenichi Handa <handa@m17n.org>
18639
18640 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
18641
7392e23c
KS
186422003-02-10 Kim F. Storm <storm@cua.dk>
18643
18644 * process.c: Doc fixes.
18645 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
18646
ce4254bd
KH
186472003-02-10 Kenichi Handa <handa@m17n.org>
18648
9c7a329a
KH
18649 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
18650
ce4254bd
KH
18651 * process.c (QCfilter_multibyte): New variable.
18652 (setup_process_coding_systems): New function.
e52bd6b7
SM
18653 (Fset_process_buffer, Fset_process_filter):
18654 Call setup_process_coding_systems.
ce4254bd
KH
18655 (Fstart_process): Initialize the member `filter_multibyte' of
18656 struct Lisp_Process.
18657 (create_process): Call setup_process_coding_systems.
18658 (Fmake_network_process): New keyward `:filter-multibyte'.
18659 Initialize the member `filter_multibyte' of struct Lisp_Process.
18660 Call setup_process_coding_systems.
18661 (server_accept_connection): Call setup_process_coding_systems.
18662 (read_process_output): If the process has a filter, decide the
18663 multibyteness of a string to given to the filter by
18664 `filter_multibyte' member of the process. If the process doesn't
18665 have a filter and the result of conversion is unibyte, use
18666 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
18667 multibyte form.
18668 (Fset_process_coding_system): Call setup_process_coding_systems.
18669 (Fset_process_filter_multibyte): New function.
18670 (Fprocess_filter_multibyte_p): New function.
18671 (syms_of_process): Intern and staticpro QCfilter_multibyte.
18672 Defsubr Sset_process_filter_multibyte and
18673 Sprocess_filter_multibyte_p.
18674
18675 * process.h (struct Lisp_Process): New member filter_multibyte.
18676
18677 * lisp.h (setup_process_coding_systems): Add prototype.
18678
18679 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
18680 process, update coding systems for the process.
18681
b08d5f59
KH
186822003-02-09 Kenichi Handa <handa@m17n.org>
18683
18684 * fns.c (string_to_multibyte): New function.
18685 (Fstring_to_multibyte): New function.
18686 (syms_of_fns): Defsubr it.
18687
0dfd93c0
AS
186882003-02-08 Andreas Schwab <schwab@suse.de>
18689
18690 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
18691 instead of the substitution.
18692
7b76ca1c
JD
186932003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18694
18695 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
18696
18697 * xmenu.c (menu_position_func): Adjust menu popup position so that
18698 the menu is fully visible.
7b76ca1c 18699
2436a4e4
JD
187002003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18701
18702 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
18703 (x_make_frame_invisible, x_wm_set_icon_position):
18704 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
18705
18706 * xfns.c (x_set_name, x_set_title): Ditto.
18707
37d1e680
RS
187082003-02-04 Richard M. Stallman <rms@gnu.org>
18709
18710 * keyboard.c (echo_now): Update before_command_echo_length.
18711 (Freset_this_command_lengths): Reset this_command_key_count etc.
18712 immediately rather than arranging to do it later.
18713 (before_command_key_count_1, before_command_echo_length_1)
18714 (before_command_restore_flag): Vars deleted.
18715 (add_command_key): Don't handle before_command_restore_flag.
18716 (read_char, record_menu_key): Don't update before_command_key_count or
18717 before_command_echo_length.
18718 (read_char): Don't handle before_command_restore_flag.
18719
18720 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
18721 in direct-output clauses if it wouldn't be called in the ordinary case.
18722
578846a3
KS
187232003-02-04 Kim F. Storm <storm@cua.dk>
18724
18725 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
18726
49853a4d
JD
187272003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18728
18729 * gtkutil.c (remove_from_container): Copying list is not needed.
18730 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
18731 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
18732 on list returned from gtk_container_get_children to avoid memory leak.
18733
8b53dc06
JR
187342003-02-01 Jason Rumney <jasonr@gnu.org>
18735
5d54d177
JR
18736 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
18737 local malloc.
18738 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
18739 definitions in xpm.h.
18740 (init_xpm_functions): New function.
f63fd14e 18741 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
18742 (init_external_image_libraries): Try to load libXpm.dll.
18743
8b53dc06
JR
18744 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
18745 timestamp.
18746
b222e415
DL
187472003-01-31 Dave Love <fx@gnu.org>
18748
18749 * syntax.c (Fskip_chars_forward)
18750 (open-paren-in-column-0-is-defun-start): Doc fix.
18751
c60ee5e7
JB
187522003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
18753
18754 * fileio.c: Support // at start of name for Cygwin (just added proper
18755 preprocessor tests).
18756
18757 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
18758
18759 * Makefile.in: Use @EXEEXT@ for Cygwin.
18760
18761 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
18762
18763 * s/cygwin.h: Added for Cygwin port.
18764
53b37591
JB
187652003-01-31 Juanma Barranquero <lektu@terra.es>
18766
18767 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
18768 when including gif_lib.h.
fe929957 18769 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
18770 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
18771 Windows. Disable color table lookups. Call library functions
53b37591 18772 through pointers determined at runtime.
fe929957
JB
18773 (init_external_image_libraries): Try to load libungif.dll and
18774 libtiff.dll.
53b37591 18775
45415a8f
KH
187762003-01-31 Kenichi Handa <handa@m17n.org>
18777
18778 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 18779 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 18780
a97e4138
JD
187812003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18782
e52bd6b7 18783 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 18784
6eed9bed
DL
187852003-01-30 Dave Love <fx@gnu.org>
18786
18787 * alloc.c (Vgc_elapsed, gcs_done): New variables.
18788 (Fgarbage_collect): Use them.
18789 (init_alloc, syms_of_alloc): Set them up.
18790
100dcd40
JB
187912003-01-30 Juanma Barranquero <lektu@terra.es>
18792
18793 * w32fns.c (init_external_image_libraries): Add missing operator.
18794
fbd852af
JR
187952003-01-29 Jason Rumney <jasonr@gnu.org>
18796
18797 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
18798 an alternative name for jpeg.dll.
18799
8a2d8020
KH
188002003-01-29 Kenichi Handa <handa@m17n.org>
18801
18802 * xdisp.c (set_cursor_from_row): Pay attention to string display
18803 properties.
18804
058c18c7
AC
188052003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
18806
18807 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
18808 <escape>.
18809 (keycode_to_xkeysym_table): Reformat and add more comments.
18810 (XTread_socket): Drop special case for backspace.
18811
385f11cf
AC
188122003-01-28 Andrew Choi <akochoi@shaw.ca>
18813
18814 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
18815 values in old-style RGB specs.
18816
c922a224
JB
188172003-01-27 Juanma Barranquero <lektu@terra.es>
18818
18819 * w32fns.c (init_external_image_libraries): Try alternate names for the
18820 jpeg dll.
18821
0a1d6de0
JD
188222003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18823
18824 * gtkutil.c (create_dialog, xg_separator_p)
18825 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
18826 before calling strcmp or strlen.
18827
a97e4138 188282003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
18829
18830 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
18831 and handle image load failure.
18832
28908312
JR
188332003-01-26 Jason Rumney <jasonr@gnu.org>
18834
18835 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
18836 New functions.
f63fd14e
JB
18837 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
18838 Disable color table lookups. Call jpeg library functions
28908312
JR
18839 through pointers determined at runtime.
18840 (init_external_image_libraries): Try to load jpeg.dll.
18841
84e47416
RS
188422003-01-25 Richard M. Stallman <rms@gnu.org>
18843
18844 * lisp.h: Declare format2 instead of format1.
18845
18846 * fileio.c (barf_or_query_if_file_exists):
18847 Call format2 instead of format1.
18848
18849 * editfns.c (format2): New function, replaces format1
18850 but takes exactly two Lisp Objects as format args.
18851
18852 * buffer.c (Fkill_buffer): Call format2 instead of format1.
18853
a97e4138 188542003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
18855
18856 * xterm.h: Change to return value of x_dispatch_event to int.
18857
18858 * xterm.c (x_filter_event): New function.
18859 (event_handler_gdk, XTread_socket): Call x_filter_event.
18860 (x_dispatch_event): Change to return value of finish.
18861 (event_handler_gdk): Use return value from x_dispatch_event.
18862
18863 * xfns.c (x_window): Call create_frame_xic for GTK version to
18864 initialize input methods.
18865
18866 * gtkutil.h: Add (void) prototypes.
18867
18868 * gtkutil.c (create_menus): Remove code that puts the help menu to
18869 the right.
18870
54eefef1
JR
188712003-01-25 Jason Rumney <jasonr@gnu.org>
18872
18873 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
18874 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
18875 (png_load): Adjust colors for Windows. Use Windows
18876 bitmaps. Disable color table lookups.
c262430d
JR
18877 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
18878 (init_png_functions): New function.
18879 (png_read_from_memory, png_load): Call png library functions
18880 through pointers determined at runtime.
18881 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
18882 (init_external_image_libraries): New function.
18883 (init_xfns): Call it.
54eefef1 18884
1a9e275b
AS
188852003-01-24 Andreas Schwab <schwab@suse.de>
18886
18887 * minibuf.c (Fminibuffer_message): Verify type of parameter.
18888
a97e4138 188892003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
18890
18891 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
18892 of static initializer.
18893
422eec7e
DL
188942003-01-24 Dave Love <fx@gnu.org>
18895
18896 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
18897 architectures.
18898
18899 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
18900 Use __alignof__.
18901
2a026b04
KH
189022003-01-24 Kenichi Handa <handa@m17n.org>
18903
18904 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 18905 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
18906 (command_loop_1): Call adjust_point_for_property with proper
18907 second arg.
18908
a18bb28d
JR
189092003-01-22 Jason Rumney <jasonr@gnu.org>
18910
18911 Sync changes with xterm.c and xfns.c.
18912
18913 * w32term.c (x_draw_glyph_string_foreground)
18914 (x_draw_composite_glyph_string_foreground): Implement overstriking.
18915
18916 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
18917 phys_cursor's hpos is overwritten. This is still not completely
18918 correct, as it doesn't really make sense to use hpos at all to
18919 get the cursor glyph (as that is relative to the width of the
18920 characters on the line, which may have changed during the update).
18921
18922 * w32term.c (notice_overwritten_cursor): Handle the special case
18923 of the cursor being in the first blank non-text line at the
18924 end of a window.
18925
18926 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18927 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18928 Compute from the x position returned by x_draw_glyphs.
18929
18930 (x_display_and_set_cursor): Don't set phys_cursor_width here,
18931 except for NO_CURSOR and system caret, to make phys_cursor_width
18932 contain what its name suggests.
18933 (notice_overwritten_cursor): Consider the cursor image erased if
18934 the output area intersects the cursor image in y-direction.
18935
6a097c0c
SM
18936 * w32term.c (note_mode_line_or_margin_highlight): Rename from
18937 note_mode_line_highlight and extend.
a18bb28d
JR
18938
18939 * w32term.c (last_window): New variable.
18940 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
18941 (note_mouse_movement): Remove reimplemented code in #if 0.
18942
18943 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
18944 not update_mode_lines, and always set it to 1.
18945
ac6e47ef
JR
189462003-01-21 Jason Rumney <jasonr@gnu.org>
18947
18948 * w32fns.c (IDC_HAND): Define it if system headers don't.
18949
189502003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
18951
18952 * w32term.h (struct w32_output): New member hand_cursor.
18953 (WM_EMACS_SETCURSOR): New message definition.
18954
18955 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
18956 function w32_define_cursor.
18957 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
18958 position, change member name output_data.x to output_data.w32 and
18959 add function w32_define_cursor.
18960 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
18961 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
18962 (w32_initialize_display_info):
18963 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
18964
18965 * w32fns.c (Vx_hand_shape): New variable.
18966 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
18967 WM_EMACS_SETCURSOR.
18968 (x-create-frame): Setup Cursor types.
18969
ceb39a17
JB
189702003-01-21 David Ponce <david@dponce.com>
18971
ac6e47ef 18972 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
18973 ccl->reg[2] to -1 before calling ccl_driver.
18974 (Sync. with xterm.c x_encode_char change by Kenichi Handa
18975 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
18976 (w32_draw_relief_rect): Declare all args.
18977 (w32_define_cursor): New.
18978
18979 * w32fns.c (w32_load_cursor): New function.
18980 (w32_init_class): Use it.
18981 (x_put_x_image): Declare all args.
18982
b6189c3b 189832003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
18984
18985 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
18986
a97e4138 189872003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
18988
18989 * gtkutil.c: Must include stdio.h before termhooks.h
18990
83fc9c63
DL
189912003-01-21 Dave Love <fx@gnu.org>
18992
18993 * alloc.c (Fgc_status): Print zombie list.
18994 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18995 Fix assignment of zombies.
18996 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18997 Don't take car of non-cons.
18998
18999 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19000
19001 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19002
fe04b8c8
JR
190032003-01-20 David Ponce <david@dponce.com>
19004
19005 * w32menu.c (digest_single_submenu): Declare all args.
19006
19007 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
19008 changes in xmenu.c:
19009
19010 (parse_single_submenu): Use individual keymap's prompt
19011 string as pane name, if there is one.
19012 (set_frame_menubar): Save menu_items_n_panes from each call to
19013 parse_single_submenu and use it when calling digest_single_submenu.
19014
539e69a9
ST
190152003-01-20 Steven Tamm <steventamm@mac.com>
19016
7e26f91b 19017 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
19018 before sending a scroll-wheel event.
19019
675d000f
RS
190202003-01-20 Richard M. Stallman <rms@gnu.org>
19021
19022 * xdisp.c (redisplay_window): If mini window's buffer is not
19023 a minibuffer, then redisplay it like other windows.
19024
a97e4138 190252003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
19026
19027 * gtkutil.c (xg_create_frame_widgets): Check if there is an
19028 external tool bar before setting tool bar height.
19029
048addec
JD
190302003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19031
19032 * xterm.c (handle_one_xevent): Surround popup_activated
19033 with #ifdef:s for non-toolkit version.
19034
19035 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
19036 (gtkutil.o): New file.
19037 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
19038 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
19039
19040 * gtkutil.c: New file for GTK version.
19041
19042 * gtkutil.h: New file for GTK version.
19043
19044 * xterm.h: Add xt_or_gtk_widget.
19045 Include gtk files for USE_GTK.
19046 (struct x_output): Add toolbar_height.
19047 (struct x_output): Add GTK widgets and Gdk size_hints.
19048 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
19049 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
19050 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
19051
19052 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 19053 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
19054 (note_mouse_highlight): Check popup_activated for USE_GTK.
19055 (xt_action_hook): Don't compile if USE_GTK.
19056 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
19057 (xg_scroll_callback): New function.
19058 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
19059 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
19060 for USE_GTK.
19061 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
19062 xg_show_scroll_bar for USE_GTK.
19063 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
19064 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
19065 (event_handler_gdk): New function for USE_GTK.
19066 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
19067 (handle_one_xevent): Make sure widget is mapped before
19068 calling x_real_positions for USE_GTK.
19069 (XTread_socket): Add GTK event loop for USE_GTK.
19070 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
19071 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
19072 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
19073 (x_iconify_frame): Add code for USE_GTK.
19074 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
19075 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
19076 is in gtkutil.c.
19077 (x_term_init): Add initialization for GTK.
19078 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
19079
19080 * xmenu.c: Include gtkutil.h for USE_GTK.
19081 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
19082 (single_menu_item, single_menu_item, Fx_popup_dialog):
19083 Check for USE_GTK.
048addec
JD
19084 (popup_widget_loop): New function for USE_GTK.
19085 (x_activate_menubar): Add code for USE_GTK.
19086 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
19087 (menu_highlight_callback, menubar_selection_callback):
19088 Add USE_GTK versions.
048addec
JD
19089 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
19090 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
19091 (free_frame_menubar): Only compile if not USE_GTK. GTK version
19092 is in gtkutil.c.
19093 (popup_selection_callback): New version for USE_GTK.
19094 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 19095 one USE_X_TOOLKIT version.
048addec
JD
19096 (xmenu_show): Call create_and_show_popup_menu.
19097 (dialog_selection_callback): New version for USE_GTK.
19098 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 19099 one USE_X_TOOLKIT version.
048addec
JD
19100 (xdialog_show): Call create_and_show_dialog.
19101
19102 * xfns.c: Include gtkutil for USE_GTK.
19103 (x_window_to_frame, x_any_window_to_frame)
19104 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
19105 (x_top_window_to_frame): Add code for USE_GTK.
19106 (x_set_background_color): Call xg_set_background_color for GTK.
19107 (x_set_menu_bar_lines): Check for USE_GTK.
19108 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
19109 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
19110 (x_window): Call xg_create_frame_widgets for USE_GTK.
19111 (Fx_create_frame): Check for USE_GTK
19112 (Fx_file_dialog): New implementation for USE_GTK.
19113
19114 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
19115 (update_menu_bar): Add check for USE_GTK.
19116 (update_tool_bar): Add check for USE_GTK and external tool bar.
19117 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
19118 (redisplay_internal): Add check for USE_GTK and popup_activated.
19119 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
19120 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
19121 (display_menu_bar): Add check for USE_GTK
19122
78819ebb 19123 * lisp.h (Vx_resource_name): Declare extern.
048addec 19124
a64387ee 19125 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
19126 for USE_GTK.
19127 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
19128
19129 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
19130 (FRAME_EXTERNAL_TOOL_BAR): New macro.
19131 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
19132
19133 * fileio.c (Fread_file_name): Add check for USE_GTK.
19134
6bdb309a
SM
19135 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
19136 Add check for USE_GTK.
048addec
JD
19137
19138 * config.in: Added HAVE_GTK
19139
19140 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
19141
191422003-01-18 Stefan Monnier <monnier@cs.yale.edu>
19143
19144 * charset.h (Funibyte_char_to_multibyte): Export.
19145
191462003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19147
19148 * xmenu.c (mouse_position_for_popup): New function.
19149 (Fx_popup_menu): Call mouse_position_for_popup for X and
19150 mouse_position_hook for others.
19151
191522003-01-17 Kim F. Storm <storm@cua.dk>
19153
19154 * editfns.c (Finsert): Mention `string-make-multibyte' and
19155 `string-as-multibyte' in doc string.
19156
191572003-01-17 Kenichi Handa <handa@m17n.org>
19158
19159 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 19160
048addec
JD
19161 * editfns.c (Fformat): Convert an unibyte char argument that is
19162 formatted by "%c" to multibyte if the total result must be a
19163 multibyte string.
cd7df9c0 19164
048addec 191652003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 19166
048addec
JD
19167 * process.c (set-process-filter): Document unibyte/multibyte-ness
19168 of string argument.
56210ecd 19169
048addec 191702003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 19171
048addec 19172 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 19173
048addec
JD
19174 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
19175 (re_search_2): Likewise.
6df8b9fe 19176
048addec 191772003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 19178
048addec
JD
19179 * xdisp.c (message_dolog): Fix bug of the case that *Message*
19180 buffer is unibyte.
292ddc31 19181
048addec 191822003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 19183
048addec 19184 * fns.c (Fsubstring): Clarify doc string.
292ddc31 19185
048addec
JD
19186 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
19187 (Fprevious_char_property_change)
19188 (Fnext_single_char_property_change)
19189 (Fprevious_single_char_property_change, Fnext_property_change)
19190 (Fnext_single_property_change, Fprevious_property_change)
19191 (Fprevious_single_property_change, Fadd_text_properties)
19192 (Fput_text_property, Fset_text_properties)
19193 (Fremove_text_properties, Fremove_list_of_text_properties)
19194 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 19195
048addec 191962003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 19197
048addec
JD
19198 * process.h (struct Lisp_Process): New member plist replaces old
19199 member private_vars. All uses changed.
63e4e4c6 19200
048addec 19201 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 19202 (QCplist): Rename from QCvars. Change all uses.
048addec 19203 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 19204 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 19205 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 19206 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 19207
048addec 192082003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 19209
6bdb309a 19210 * m/delta.h: Remove (obsolete).
e833850f 19211
048addec 192122003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 19213
048addec
JD
19214 * fileio.c (Fdelete_directory, Fdelete_file): Document the
19215 behaviour in front of symlinks.
19216 (Fdelete_file): Raise an error on directories.
817cb127 19217
048addec 192182003-01-13 Dave Love <fx@gnu.org>
817cb127 19219
048addec 19220 * fns.c (Freverse): Use QUIT.
3e8cf2ea 19221
048addec 192222003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 19223
048addec
JD
19224 * minibuf.c (minibuffer_completion_contents):
19225 Error if point is inside prompt.
3e8cf2ea 19226
048addec
JD
19227 * keyboard.c (command_loop_1): Don't redisplay directly
19228 if there's a post-command-hook.
3e8cf2ea 19229
048addec
JD
19230 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
19231 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 19232
048addec 192332003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 19234
048addec 19235 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 19236
048addec
JD
19237 * process.c (QCvars): New variable.
19238 (syms_of_process): Intern and staticpro it.
19239 (Fset_process_contact): Removed function.
19240 (Fprocess_variable, Fset_process_variable): New functions.
19241 (syms_of_process): Defsubr them.
19242 (Fstart_process): Initialize private_vars plist to nil.
19243 (Fmake_network_process): New arg :vars to setup the private
19244 variables for new network process.
19245 (server_accept_connection): Copy server's private variables to
19246 client process.
2c10f029 19247
048addec
JD
19248 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
19249 crashes). Code rewritten and simplified. Now directly aligns the
19250 pointer and recalculates pure_bytes_used, rather than aligning the
19251 size and adjusting the pointer.
b8a76c6c 19252
048addec 192532003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 19254
048addec
JD
19255 * process.c (Fset_process_contact): New function.
19256 (syms_of_process): defsubr it.
19257 (make-network-process): Update doc.
3a8d0899 19258
048addec 192592003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 19260
048addec
JD
19261 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
19262 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 19263
048addec 192642003-01-10 Dave Love <fx@gnu.org>
4abc7470 19265
048addec 19266 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 19267
048addec 192682003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 19269
048addec
JD
19270 * process.c (Fmake_network_process): Convert new port number
19271 to host byte order for `:service t' case. From Mario Lang.
bf338245 19272
048addec 192732003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 19274
048addec
JD
19275 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
19276 instead of XtAppProcessEvent.
bf338245 19277
048addec
JD
19278 * xterm.c (handle_one_xevent): New function.
19279 (x_dispatch_event): New function.
19280 (XTread_socket): Call handle_one_xevent.
bf338245 19281
048addec 19282 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 19283
048addec
JD
19284 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
19285 call XQueryPointer to get coordinates.
19286 (popup_get_selection): Do not set popup_activated_flag to zero,
19287 let popup_deactivate_callback do that. Needed for Motif.
19288 Call x_dispatch_event instead of XtDispatchEvent.
19289 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 19290
048addec 192912003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 19292
6bdb309a 19293 * process.c (server_accept_connection): Fix recording of new
048addec
JD
19294 connection's local address in :local property of contact info.
19295 (Fmake_network_process): Record local network address for new
19296 client processes in :local property of contact info.
6bdb309a 19297 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 19298
048addec 192992003-01-07 Dave Love <fx@gnu.org>
00e3ab56 19300
048addec 19301 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 19302
ddec2286
RS
193032003-01-06 Dave Love <fx@gnu.org>
19304
19305 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
19306 (Vlocale_coding_system): Declare.
19307 (Qcodeset, Qdays, Qmonths, Qpaper): New.
19308 (Flanginfo): New.
19309 (syms_of_fns): Initialize new stuff.
19310
048addec 193112003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 19312
048addec 19313 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 19314
048addec
JD
19315 * eval.c (Fuser_variable_p): Doc change. For custom variables,
19316 use the same test as for custom-variable-p.
8c6d74c6 19317
048addec 193182003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 19319
048addec
JD
19320 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
19321 Count LAST_LINE_MISFIT in scroll margin for end of window.
19322 Move label too_near_end before setting SCROLL_MARGIN_POS.
19323 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 19324
048addec
JD
19325 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
19326 scroll_conservatively case. If scrolling that much doesn't change
19327 STARTP, move it down one line.
e833850f 19328
048addec
JD
19329 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
19330 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 19331
048addec
JD
19332 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
19333 selected frame.
8c6d74c6 19334
048addec 19335 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 19336 (syms_of_keymap): Staticpro them.
048addec
JD
19337 (Fapropos_internal): Initialize them and clear them out.
19338 Don't GCPRO them.
8c6d74c6 19339
f5ecbcee 19340 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
8c6d74c6 19341
048addec
JD
19342 * lisp.h: New misc type Lisp_Save_Value.
19343 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
19344 (XSAVE_VALUE): New macro.
19345 (struct Lisp_Save_Value): New data type.
19346 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 19347 (make_save_value): Declare.
8c6d74c6 19348
048addec 19349 * alloc.c (make_save_value): New function.
8c6d74c6 19350
048addec
JD
19351 * xterm.c (x_catch_errors): Save dpy using make_save_value.
19352 (x_catch_errors_unwind): Call XSync.
8c6d74c6 19353
048addec 193542003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 19355
048addec 19356 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 19357
048addec
JD
19358 * keyboard.c (command_loop_1): Call adjust_point_for_property
19359 in direct action cases for Qforward_char and Qbackward_char.
19360 Set already_adjusted so it won't be done twice.
8c6d74c6 19361
b6189c3b 193622002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 19363
048addec
JD
19364 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
19365 type definition of size_t.
8c609cff 19366
048addec 193672003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 19368
048addec
JD
19369 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
19370 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 19371
048addec 193722002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 19373
048addec
JD
19374 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
19375 to default to t.
fa634a5e 19376
048addec 193772002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 19378
048addec 19379 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 19380
048addec 193812002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 19382
7e26f91b 19383 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
19384 allow building in a different directory than source. Uses some
19385 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 19386
048addec 193872002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 19388
048addec
JD
19389 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
19390 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
19391 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
19392 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 19393
048addec 193942002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 19395
048addec
JD
19396 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
19397 <scroll-down-aggressively>: Doc fix.
2155ecf3 19398
048addec
JD
19399 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
19400 string as pane name, if there is one.
19401 (set_frame_menubar): Save menu_items_n_panes from each call to
19402 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 19403
048addec
JD
19404 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
19405 Don't try to make last line fully visible if it is past end of window.
61f1d295 19406
048addec 194072002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 19408
048addec
JD
19409 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
19410 (mac_menu_show): Add support for hierarchical popup menus.
19411 (add_menu_item): Remove indentation support.
19412 (fill_submenu, fill_menu): Create hierarchical menus
19413 instead of using indentation.
0b17a217 19414
048addec 194152002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 19416
048addec
JD
19417 * xdisp.c (try_cursor_movement): Don't call try_window here.
19418 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 19419
048addec 19420 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 19421
048addec 194222002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 19423
048addec
JD
19424 * macterm.c (XTread_socket): Call KeyTranslate for control and
19425 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 19426 being treated like C-%. Do not look for shift key to deal
048addec 19427 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 19428
048addec 194292002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 19430
048addec
JD
19431 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
19432 If it is non-nil, run timers. Use an unwind-protect to requeue
19433 the events that were read ahead.
19434 (popup_get_selection_unwind): New subroutine.
19435 (popup_get_selection_queue): File-scope variable now holds that queue.
19436 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
19437 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
19438 Use an unwind-protect to pop down the dialog box.
19439 (xdialog_show_unwind): New subroutine implements that.
f02cac82 19440
048addec
JD
19441 * xdisp.c (row_containing_pos): Change exit test using last_y.
19442 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 19443
048addec
JD
19444 * lread.c (load_error_handler): New function.
19445 (Fload): Handle errors in Fsubstitute_in_file_name.
19446 Don't expect Fsignal to return.
f02cac82 19447
048addec
JD
19448 * eval.c: Errors and throws work right with interrupt blocking.
19449 (struct catchtag): New elt interrupt_input_blocked.
19450 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
19451 (internal_catch, Fcondition_case, internal_condition_case)
19452 (internal_condition_case_1, internal_condition_case_2): Save it.
19453 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 19454
048addec 19455 * editfns.c (Fformat): Add parens.
f02cac82 19456
048addec
JD
19457 * dired.c (file_name_completion): Fix that change.
19458 Delete special quit-handling code; just use QUIT.
f02cac82 19459
b6189c3b 194602002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 19461
048addec
JD
19462 * dired.c (file_name_completion): Close directory on error
19463 just as in directory_files_internal.
1a590729 19464
048addec 194652002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 19466
048addec
JD
19467 * window.c (Fset_window_configuration): Set old_point to correct
19468 value when new_current_buffer == current_buffer.
f02cac82 19469
048addec 194702002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 19471
048addec
JD
19472 Revisited my earlier fix for the following entry in etc/PROBLEMS:
19473 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
19474 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 19475
048addec
JD
19476 These changes were in part based upon suggestions made by Peter
19477 'Luna' Runestig [peter@runestig.com].
9785d95b 19478
f4a5a485
SM
19479 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
19480 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
19481 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 19482 global variables.
9785d95b 19483
048addec
JD
19484 * w32.c (globals_of_w32): New function. Used to initialize those
19485 global variables that must always be initialized on startup even
19486 when the global variable initialized is non zero. Its primary
19487 purpose at this time is to set the global variables
19488 g_b_init_is_windows_9x, g_b_init_open_process_token,
19489 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
19490 g_b_init_get_sid_identifier_authority to 0 on startup.
19491 Called from main.
9785d95b 19492
048addec
JD
19493 * w32.c (is_windows_9x): Perform initialization only if
19494 g_b_init_is_windows_9x is equal to 0. On initialization set
19495 g_b_init_is_windows_9x equal to 1.
2308af15 19496
048addec
JD
19497 * w32.c (open_process_token): Perform initialization only if
19498 g_b_init_open_process_token is equal to 0. On initialization set
19499 g_b_init_open_process_token equal to 1.
2308af15 19500
048addec
JD
19501 * w32.c (get_token_information): Perform initialization only if
19502 g_b_init_get_token_information is equal to 0. On initialization
19503 set g_b_init_get_token_information equal to 1.
9785d95b 19504
048addec
JD
19505 * w32.c (lookup_account_sid): Perform initialization only if
19506 g_b_init_lookup_account_sid is equal to 0. On initialization
19507 set g_b_init_lookup_account_sid equal to 1.
9785d95b 19508
048addec
JD
19509 * w32.c (get_sid_identifier_authority): Perform initialization
19510 only if g_b_init_get_sid_identifier_authority is equal to 0.
19511 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 19512
f63fd14e 19513 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
19514 those global variables that must always be initialized on startup
19515 even when the global variable initialized is non zero.
19516 Its primary purpose at this time is to initialize the global variable
19517 track_mouse_event_fn.
9785d95b 19518
a64387ee 19519 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 19520 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 19521
048addec 19522 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 19523
f63fd14e 19524 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
19525 initialize those global variables that must always be initialized
19526 on startup even when the global variable initialized is non zero.
19527 Its primary purpose at this time is to initialize the global
19528 variables get_menu_item_info and set_menu_item_info.
9785d95b 19529
048addec
JD
19530 * w32menu.c (initialize_frame_menubar): Remove initialization of
19531 get_menu_item_info and set_menu_item_info.
9785d95b 19532
048addec 19533 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 19534
048addec
JD
19535 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
19536 Declare them.
9785d95b 19537
048addec
JD
19538 * emacs.c (main): Call globals_of_w32 prior to calling
19539 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
19540 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
19541 is defined.
9785d95b 19542
048addec
JD
19543 * w32term.c (x_update_window_begin): Fix Windows API error
19544 detected by BoundsChecker. Test to determine if
19545 w32_system_caret_hwnd is NULL prior to attempting to use
19546 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 19547
048addec
JD
19548 * w32term.c (x_update_window_end): Fix Windows API error
19549 detected by BoundsChecker. Test to determine if
19550 w32_system_caret_hwnd is NULL prior to attempting to use
19551 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 19552
048addec 195532002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 19554
048addec
JD
19555 * coding.c (coding_system_require_warning): New variable.
19556 (syms_of_coding): DEFVAR it.
b6da19ef 19557
048addec 19558 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 19559
048addec
JD
19560 * fileio.c (choose_write_coding_system): Even if
19561 Vcoding_system_for_write is non-nil, if
19562 coding_system_require_warning is nonzero, call
19563 Vselect_safe_coding_system_function.
bfcf6dbe 19564
048addec 195652002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 19566
048addec
JD
19567 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
19568 (lisp): Add font-core.
2c568af5 19569
048addec 195702002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 19571
048addec
JD
19572 * textprop.c (text_read_only): New arg `propval'.
19573 (get_char_property_and_overlay): Remove unused var `next_overlay'.
19574 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 19575
048addec 195762002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 19577
048addec 19578 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 19579
048addec 195802002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 19581
048addec
JD
19582 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
19583 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
19584 Be more careful about when help_events are generated.
96720f09 19585
048addec 195862002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 19587
048addec
JD
19588 * macterm.c (mac_check_for_quit_char): Correctly set the
19589 modifiers of the event to 0.
19590 * mac.c (sys_select): Duplicate rfds before calling select to
19591 ensure that rfds survive the while loop.
e5ae1c49 19592
048addec 195932002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 19594
048addec
JD
19595 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
19596 row_containing_pos returned NULL.
2eb46b2d 19597
048addec 195982002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 19599
6bdb309a 19600 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 19601 non-blocking.
6bdb309a 19602 (sys_select): Fix sys_select to not use a timeout larger than
048addec 19603 the one given.
b11f1d8a 19604
048addec 196052002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 19606
048addec 19607 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 19608
048addec 196092002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 19610
048addec
JD
19611 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
19612 as the last thing.
a4ac5b17 19613
048addec 196142002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 19615
048addec 19616 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 19617
048addec 196182002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 19619
048addec
JD
19620 * editfns.c (Fformat): Handle precision in string conversion
19621 specifiers like libc functions do (ie, print at most that many
19622 characters).
85cce843 19623
048addec 196242002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 19625
048addec
JD
19626 * xdisp.c (row_containing_pos): Check more carefully
19627 whether charpos is really in the row before returning it.
0d4d26a7 19628
048addec 196292002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 19630
048addec 19631 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 19632
048addec
JD
19633 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
19634 each stack frame. This may change as it could be time consuming.
0d4d26a7 19635
048addec
JD
19636 * macterm.c (mac_check_for_quit_char, quit_char_comp)
19637 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 19638 (mac_initialize): Add code to check for pressing of quit_char
048addec 19639 in the OS event queue.
b11f1d8a 19640
048addec
JD
19641 * mac.c (sys_select): Call mac_check_for_quit_char every second
19642 while blocking on select.
0d4d26a7 19643
048addec
JD
19644 * mac.c (sys_read): Use sys_select to test for input first
19645 before calling read, to allow C-g to break.
9252f7bc 19646
048addec 196472002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 19648
048addec 19649 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 19650
048addec 19651 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 19652
048addec 19653 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 19654
048addec
JD
19655 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
19656 autoload.
9252f7bc 19657
048addec 19658 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 19659
048addec 19660 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 19661
048addec 196622002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 19663
048addec 19664 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 19665
048addec 196662002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 19667
048addec 19668 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 19669
048addec 19670 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 19671
048addec 19672 * alloca.c: Don't use #error.
02d588e2 19673
048addec 196742002-12-03 Dave Love <fx@gnu.org>
02d588e2 19675
048addec
JD
19676 * buffer.c (Qucs_set_table_for_input): New.
19677 (Fget_buffer_create): Use it.
19678 (Qset_buffer_major_mode_hook): Deleted.
19679 (Fset_buffer_major_mode): Revert previous change.
19680 (init_buffer_once): Intern ucs-set-table-for-input.
19681 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
19682 Add &Qucs_set_table_for_input.
451e2697 19683
048addec 196842002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 19685
048addec
JD
19686 * callint.c (Fcall_interactively): Use next_event only if less
19687 than key_count.
72742a99 19688
048addec 196892002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 19690
048addec
JD
19691 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
19692 names to 255 characters.
72742a99 19693
048addec
JD
19694 * macterm.c (XTread_socket): If all frames have been collapsed,
19695 expand the first one before handling drag-and-drop events.
72742a99 19696
048addec
JD
19697 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
19698 which is detected by autoconf.
40e6ff95 19699
048addec 197002002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 19701
048addec
JD
19702 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
19703 offset in two hints table to allow prebinding to be redone and
19704 allow the executable to be stripped.
c02138c6 19705
048addec 197062002-11-29 Dave Love <fx@gnu.org>
c02138c6 19707
048addec
JD
19708 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
19709 already provided.
0e47bbf7 19710
048addec 197112002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 19712
048addec
JD
19713 * xdisp.c (start_display): Check more intelligently for
19714 whether the line is continued.
19715 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 19716
048addec 197172002-11-28 Dave Love <fx@gnu.org>
44129dcb 19718
048addec
JD
19719 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
19720 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 19721
048addec 197222002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 19723
048addec
JD
19724 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
19725 more descriptive error output from lread.c:Fload upon most require
19726 cycles during boostrapping.
1637fd2c 19727
048addec 197282002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 19729
048addec
JD
19730 * fileio.c (Finsert_file_contents): Give a more appropriate error
19731 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 19732
048addec
JD
19733 * dired.c (Ffile_attributes): Don't return negative file sizes for
19734 files bigger than 2Gb when off_t is 32 bit.
540c2788 19735
048addec 197362002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 19737
048addec 19738 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 19739
048addec
JD
19740 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
19741 Test GETPGRP_VOID instead.
19742 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 19743
048addec
JD
19744 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
19745 Don't define.
19746 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 19747
048addec 19748 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 19749
048addec 197502002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 19751
048addec
JD
19752 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
19753 supported.
4042a81a 19754
048addec 197552002-11-25 Dave Love <fx@gnu.org>
4042a81a 19756
048addec 19757 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 19758
048addec 19759 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 19760
048addec 197612002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 19762
048addec 19763 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 19764
048addec 197652002-11-24 Steven Tamm <steventamm@mac.com>
82122254 19766
048addec
JD
19767 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
19768 determine the size of pointers alloced in unexed space instead
19769 of using possibly invalid emacs_zone pointers. This fixes the
19770 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 19771
048addec 197722002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 19773
048addec 19774 * search.c (Fstring_match): Doc fix.
c1ee53bc 19775
048addec
JD
19776 * callint.c (Fcall_interactively): If a command fails because
19777 `*' detects a read-only buffer, but RECORD_FLAG is set,
19778 record it anyway if the args don't actually do tty input.
5598c32e 19779
048addec 197802002-11-22 Dave Love <fx@gnu.org>
5598c32e 19781
048addec 19782 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 19783
048addec
JD
19784 * keyboard.c (interrupt_signal): Provide forward declaration.
19785 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 19786
048addec 19787 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 19788
048addec 197892002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 19790
048addec
JD
19791 * eval.c (interactive_p): Skip any number of bytecode
19792 and special form frames, in any order.
516eea8e 19793
048addec 197942002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 19795
048addec
JD
19796 * w32fns.c (convert_mono_to_color_image): New function.
19797 (xbm_load, xbm_load_image): Use it when foreground or background
19798 is explicitly set.
04dbfa08 19799
048addec 198002002-11-19 Dave Love <fx@gnu.org>
04dbfa08 19801
048addec 19802 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 19803
048addec 198042002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 19805
048addec
JD
19806 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
19807 (XPutPixel): Swap blue and red.
19808 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
19809 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
19810 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
19811 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 19812
048addec 198132002-11-18 Dave Love <fx@gnu.org>
d824beee 19814
048addec 19815 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 19816
048addec 19817 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 19818
048addec 19819 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 19820
048addec
JD
19821 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
19822 malloc, realloc, calloc.
d824beee 19823
048addec
JD
19824 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
19825 (bcmp): Don't define.
d824beee 19826
048addec 19827 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 19828
048addec 19829 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 19830
048addec 19831 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 19832
048addec 19833 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 19834
048addec
JD
19835 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
19836 Don't include alloca.h.
d824beee 19837
048addec 19838 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 19839
048addec 19840 * regex.c (_GNU_SOURCE): Don't define.
1998560a 19841
048addec 19842 * process.c (_GNU_SOURCE): Don't define.
1998560a 19843
048addec 19844 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 19845
048addec 198462002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 19847
048addec 19848 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 19849
048addec 198502002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 19851
048addec
JD
19852 * dispextern.h (struct face): Add `overstrike' field.
19853 * xterm.c (x_draw_glyph_string_foreground)
19854 (x_draw_composite_glyph_string_foreground): Implement overstriking.
19855 * xfaces.c (load_face_font): Set `face->overstrike' based on
19856 result from choose_face_font.
19857 (best_matching_font, choose_face_font): Add `needs_overstrike'
19858 argument, and use it to return whether overstriking is desirable
19859 for this face/font combo.
19860 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 19861
048addec 198622002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 19863
048addec
JD
19864 This change is my fix for the following entry in etc/PROBLEMS:
19865 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
19866 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 19867
048addec
JD
19868 * w32.c: Added wrapper functions around the win32 API functions
19869 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
19870 GetSidIdentifierAuthority. These wrapper functions serve two
19871 purposes:
19872 1. They ensure that the wrapped function can never be called
19873 when Emacs is running on an operating system on which they are
19874 not supported (Microsoft Windows 95 / 98 / ME).
19875 2. They call the wrapped functions via function pointers rather
19876 than calling them directly. This avoids taking advantage of the
19877 undocumented fact that although these functions are not supported
19878 in the 9x branch of Microsoft Windows, the functions do exist in
19879 the version of advapi32.dll that is found in the 9x branch of
19880 Microsoft Windows.
f60ae425 19881
6bdb309a 19882 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
19883 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
19884 and GetSidIdentifierAuthority with calls to the newly added
19885 wrapper functions.
f60ae425 19886
048addec
JD
19887 * w32.h: Added extern declarations for the following functions:
19888 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
19889 syms_of_w32menu, and void syms_of_fontset.
f60ae425 19890
6bdb309a 19891 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
19892 function pointer track_mouse_event_fn in the handler for the
19893 WM_SETFOCUS message.
3582b6a3 19894
6bdb309a 19895 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
19896 reinitialize the function pointers set_menu_item_info and
19897 get_menu_item_info.
f60ae425 19898
048addec 198992002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 19900
048addec
JD
19901 * sound.c: Added a partial implementation of play-sound-internal
19902 for Microsoft Windows. Added various #ifdef / #else / #endif
19903 code blocks to separate the code that will compile under
9fed2905 19904 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 19905 Moved several blocks of code around to make this separation of code
9fed2905 19906 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 19907
048addec 19908 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 19909
048addec
JD
19910 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
19911 added support for play-sound-internal under Windows would be
19912 included in the build of Emacs.
517f42a0 19913
048addec 199142002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 19915
048addec 19916 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 19917
048addec 19918 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 19919
048addec 199202002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 19921
048addec
JD
19922 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
19923 (adjust_point_for_property): Move out of display and invisible even if
19924 we were already inside before (in case a property was added while
19925 we weren't looking). Be more careful when handling invisible props.
19926 Skip invisible text as if it really wasn't there at all.
aab83f91 19927
048addec 199282002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 19929
048addec
JD
19930 * w32term.c (x_draw_image_foreground)
19931 (w32_draw_image_foreground_1): Use standard copy and invert
19932 operations to draw images.
aab83f91 19933
048addec
JD
19934 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
19935 depth of 1.
19936 (xbm_read_bitmap_data): Invert bits as xbm is read in.
19937 (XPutPixel): Don't invert bits here.
a4478a76 19938
048addec 199392002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 19940
048addec
JD
19941 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
19942 (w32_draw_image_foreground_1): Handle image masks.
19943 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 19944
048addec
JD
19945 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
19946 (x_from_xcolors): Adjust RGB values for W32.
19947 (image_background, image_background_transparent)
19948 (postprocess_image, x_to_xcolors, x_disable_image)
19949 (x_build_heuristic_mask): Adapt for W32 and enable.
19950 (x_create_x_image_and_pixmap): Mark images with palettes as such.
19951 (xbm_load): Remove unused variable.
03670a65 19952
048addec 199532002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 19954
048addec 19955 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 19956
048addec 199572002-11-14 Dave Love <fx@gnu.org>
59daa29a 19958
048addec 19959 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 19960
048addec
JD
19961 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
19962 * xmenu.c (unuse_menu_items, digest_single_submenu):
19963 * xfns.c (x_put_x_image):
19964 * xdisp.c (message2_nolog, set_message):
19965 * undo.c (record_point):
19966 * terminfo.c (tparam):
19967 * syntax.c (scan_sexps_forward):
19968 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19969 * composite.c (update_compositions):
19970 * cm.c (calccost, cmgoto):
19971 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 19972
048addec 19973 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 19974
048addec
JD
19975 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
19976 Don't declare.
59daa29a 19977
048addec 19978 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 19979
048addec
JD
19980 * fns.c (Fcopy_sequence): Doc fix.
19981 (Fmap_char_table): Cast `call2'.
3947677c 19982
048addec
JD
199832002-11-14 Francesco Potorti` <pot@gnu.org>
19984
19985 * s/sol2-8.h: New file.
19986
199872002-11-14 Kim F. Storm <storm@cua.dk>
19988
19989 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
19990 dependency on `risky-local-variable' and the :propertize form.
19991
199922002-11-12 Stefan Monnier <monnier@cs.yale.edu>
19993
19994 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
19995
19996 * syntax.c (scan_sexps_forward): Undo last patch.
19997 Use a more obvious fix: check eob before updating the syntax table.
19998
199992002-11-09 Stefan Monnier <monnier@cs.yale.edu>
20000
20001 * syntax.c (scan_sexps_forward): Update syntax table before reading
20002 a char rather than after so we don't update the table past eob.
20003
200042002-11-09 Dave Love <fx@gnu.org>
20005
20006 * buffer.c (Fset_buffer_major_mode): Fix last change.
20007
20008 * regex.c (regexec): Fix pmatch declaration.
20009
20010 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
20011
20012 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
20013 to self-inserting characters.
20014 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
20015
20016 * coding.c (Vtranslation_table_for_input): New.
20017 (syms_of_coding): DEFVAR it.
20018
200192002-11-08 Juanma Barranquero <lektu@terra.es>
20020
20021 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
20022 window.
20023
200242002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20025
6bdb309a 20026 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
20027 cp, and i.
20028
200292002-11-06 Dave Love <fx@gnu.org>
20030
20031 * buffer.c (Qset_buffer_major_mode_hook): New.
20032 (Fset_buffer_major_mode): Use it.
20033
200342002-11-06 Richard M. Stallman <rms@gnu.org>
20035
20036 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
20037 and stop_polling.
20038
20039 * process.c (wait_reading_process_input):
20040 Test POLLING_PROBLEM_IN_SELECT, not hpux.
20041 Avoid initialization for auto Lisp_Object var.
20042
20043 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
20044
20045 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
20046
200472002-11-05 Richard M. Stallman <rms@gnu.org>
20048
20049 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
20050
20051 * callint.c (Fcall_interactively): New local filter_specs.
20052 (Fcall_interactively): Check for progn as well as let.
20053 Add a gcpro.
20054 (Qprogn): New variable.
20055 (syms_of_callint): Staticpro and init Qprogn.
20056
200572002-11-04 John Paul Wallington <jpw@shootybangbang.com>
20058
20059 * lread.c (Feval_buffer): Doc fix.
20060
200612002-11-04 Dave Love <fx@gnu.org>
20062
20063 * keyboard.c (read_char): Always translate iff
20064 Vkeyboard_translate_table is a char table and c is valid.
20065
20066 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20067 and fix C types.
20068
200692002-11-03 Stefan Monnier <monnier@cs.yale.edu>
20070
20071 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
20072
20073 * editfns.c (get_pos_property): Don't hardcode Qfield.
20074
20075 * keyboard.c (adjust_point_for_property): Handle `display' prop on
20076 overlays. Also handle `invisible' prop.
20077
200782002-11-02 Stefan Monnier <monnier@cs.yale.edu>
20079
20080 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
20081 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
20082
200832002-11-01 Andreas Schwab <schwab@suse.de>
20084
20085 * editfns.c (Fmessage): Revert last change to properly handle %%.
20086
200872002-11-01 Stefan Monnier <monnier@cs.yale.edu>
20088
20089 * xmenu.c (unuse_menu_items): New fun.
20090 (menu_items_inuse): New var.
20091 (syms_of_xmenu): Initialize it.
20092 (init_menu_items): Use it to detect re-entrance.
20093 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
20094 (Fx_popup_menu): Remove spurious XSETFRAME.
20095
20096 * editfns.c (find_field): Make an exception for nil fields.
20097
200982002-11-01 Dave Love <fx@gnu.org>
20099
20100 * m/gec63.h: Deleted.
20101
201022002-10-31 Dave Love <fx@gnu.org>
20103
20104 * xterm.c (XTread_socket): Fix last change.
20105 (xaw_scroll_callback): Cast call_data to long to avoid warning.
20106
201072002-10-31 Stefan Monnier <monnier@cs.yale.edu>
20108
20109 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
20110
201112002-10-30 Stefan Monnier <monnier@cs.yale.edu>
20112
20113 * editfns.c (overlays_around, get_pos_property): New funs.
20114 (find_field): Use them.
20115 Also be careful not to modify POS before its last use.
20116 (Fmessage): Don't Fformat if there's nothing to format.
20117
201182002-10-30 Dave Love <fx@gnu.org>
20119
20120 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
20121 [HAVE_PTY_H]; Include pty.h.
20122
20123 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
20124
20125 * xterm.c (Qeql): Declare.
20126 (Vx_keysym_table): New.
20127 (syms_of_xterm): Initialize it.
20128 (XTread_socket): Use it. Deal with ASCII keysyms.
20129 (XSetIMValues) [HAVE_X11R6]: Prototype.
20130
20131 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
20132 (lispy_kana_keys): Comment out.
20133 (make_lispy_event) [XK_kana_A]: Comment out.
20134 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
20135 Fix sprintf call.
20136
20137 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
20138 regexp.h change).
20139 (TERMINFO, LIBS_TERMCAP): Define.
20140
20141 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
20142 (bcmp): Define conditional on HAVE_BCMP.
20143 (NO_SIOCTL_H): Don't define.
20144 (TIOCSIGSEND): Don't make conditional on IRIX6.
20145
20146 * s/sol2-5.h: Don't include strings.h.
20147 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
20148
20149 * s/irix6-0.h (IRIX6): Don't define.
20150 (bcopy, bcmp, bzero): Don't undef.
20151
20152 * s/irix6-5.h: Don't include strings.h.
20153 (IRIX6): Don't define.
20154 (bcopy, bcmp, bzero): Don't undef.
20155
20156 * syntax.c (Fforward_comment): Doc fix.
20157
201582002-10-29 Kim F. Storm <storm@cua.dk>
20159
20160 * process.c (Fsignal_process): Allow PROCESS to be specified by
20161 name in addition to pid (as integer or string).
20162
201632002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
20164
20165 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
20166 environments.
20167
201682002-10-27 Kim F. Storm <storm@cua.dk>
20169
20170 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
20171
20172 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
20173
20174 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
20175
20176 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
20177
201782002-10-26 Richard M. Stallman <rms@gnu.org>
20179
20180 * editfns.c (Fformat): Detect invalid format letters for floats.
20181
201822002-10-25 Kenichi Handa <handa@m17n.org>
20183
20184 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
20185 (x_set_title): Likewise.
20186
201872002-10-25 Juanma Barranquero <lektu@terra.es>
20188
20189 * macgui.h:
20190 * w32gui.h: Remove definition of XColor.
20191
20192 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
20193
201942002-10-24 Kim F. Storm <storm@cua.dk>
20195
20196 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
20197 Callers changed (supply dummy arg).
20198
20199 * lisp.h (get_window_cursor_type): Update prototype.
20200
20201 * w32term.c (x_display_and_set_cursor): Get active_cursor from
20202 get_window_cursor_type to track system caret.
20203
202042002-10-24 Kim F. Storm <storm@cua.dk>
20205
20206 * process.c (Fformat_network_address): New function.
20207 (syms_of_process): Defsubr it.
20208 (list_processes_1): Use it to format :local/:remote address if
f9711de4 20209 service/host is not set; before Emacs would crash in that case.
048addec
JD
20210 (Fmake_network_process): Don't use Ffind_operation_coding_system
20211 to setup coding system if host or service is not set.
20212
202132002-10-23 Juanma Barranquero <lektu@terra.es>
20214
20215 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
20216
20217 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
20218 COLORREF.
20219
20220 * macgui.h:
20221 * w32gui.h: Add definition of XColor.
20222
20223 * macfns.c:
20224 * w32fns.c:
20225 * xfaces.c: Remove definition of XColor.
20226
202272002-10-22 Stefan Monnier <monnier@cs.yale.edu>
20228
20229 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
20230
20231 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
20232 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
20233 window if it is dedicated.
20234 (Fshrink_window): Add preserve_before as was done for enlarge_window.
20235 (Vspecial_display_function): Update docstring.
20236
20237 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
20238 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
20239 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
20240
202412002-10-21 Stefan Monnier <monnier@cs.yale.edu>
20242
20243 * casefiddle.c (casify_region): Don't treat a prefix char as part
20244 of a word when at the beginning.
20245
202462002-10-17 Juanma Barranquero <lektu@terra.es>
20247
20248 * lread.c (syms_of_lread): Fix typos.
20249
202502002-10-17 Dave Love <fx@gnu.org>
20251
20252 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
20253
202542002-10-16 Richard M. Stallman <rms@gnu.org>
20255
20256 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
20257
202582002-10-14 Juanma Barranquero <lektu@terra.es>
20259
20260 * w16select.c (syms_of_win16select): Fix docstring for
20261 `selection-coding-system'.
20262
20263 * w32select.c (syms_of_w32select): Likewise.
20264
202652002-10-14 Stefan Monnier <monnier@cs.yale.edu>
20266
20267 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
20268 a backslash-quoted char.
20269 (scan_lists, scan_sexps_forward): Pacify the compiler.
20270
202712002-10-13 Richard M. Stallman <rms@gnu.org>
20272
20273 * window.c (window_scroll): Set immediate_quit.
20274
20275 * print.c (print): When backquote form is the car of a list,
20276 output in old style. Use old_backquote_output to output all
20277 comma forms inside it in old style too.
20278
20279 * buffer.h (struct buffer): Move `undo_list' down below `name'.
20280
202812002-10-11 Markus Rost <rost@math.ohio-state.edu>
20282
20283 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
20284 batch mode).
20285
20286 * lread.c (Fload): Doc fix (load-suffixes).
20287
202882002-10-10 Steven Tamm <steventamm@mac.com>
20289
20290 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
20291 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
20292 Also switch the default to Qnil from Qt.
20293
202942002-10-08 Kenichi Handa <handa@m17n.org>
20295
20296 * coding.c (code_convert_region): When we need more GAP for
20297 conversion, pay attention to the case that coding->produced is not
20298 greater than coding->consumed.
20299
203002002-10-07 Richard M. Stallman <rms@gnu.org>
20301
20302 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
20303
203042002-10-06 Andrew Choi <akochoi@shaw.ca>
20305
20306 * macmenu.c (mac_menu_show): Add j to count menu items; match
20307 menu_item_selection to it to find selected item.
20308
203092002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20310
20311 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
20312 cases. The correct fix is to pass ReparentNotify to Xt.
20313 The shell widget interprets ConfigureNotify differently depending
20314 on if it has been reparented or not.
20315
203162002-10-05 Markus Rost <rost@math.ohio-state.edu>
20317
20318 * editfns.c (Fformat_time_string): Doc fix.
20319
203202002-10-05 John Paul Wallington <jpw@shootybangbang.com>
20321
20322 * fns.c (Flength): Doc fix.
20323
203242002-10-04 Stefan Monnier <monnier@cs.yale.edu>
20325
20326 * keyboard.c (keyremap): New struct.
20327 (read_key_sequence): Use it: globally replace keytran_foo with
20328 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
20329 keytran_next and fkey_next to just `next'.
20330
203312002-10-04 Steven Tamm <steventamm@mac.com>
20332
20333 * macterm.c (keycode_to_xkeysym_table): Change return to be
20334 treated like an X keysym.
20335
203362002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20337
20338 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
20339 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
20340 This is to also handle x/y changes that occur because of a resize.
20341
203422002-10-02 John Paul Wallington <jpw@shootybangbang.com>
20343
20344 * frame.c (Vdelete_frame_functions): New variable.
20345 (syms_of_frame): Initialize and defvar it.
20346 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
20347 it when frame's `tooltip' parameter is non-nil.
20348
20349 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
20350
20351 * w32fns.c (x_create_tip_frame): Likewise.
20352
20353 * macfns.c (x_create_tip_frame): Likewise.
20354
203552002-09-30 Kenichi Handa <handa@m17n.org>
20356
20357 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
20358 -1 before calling ccl_driver.
20359
20360 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
20361 Only when it is non-nil, handle composition sequence.
20362 (setup_coding_system) <0>: Don't force composition handling.
20363
20364 * Makefile.in (lisp, shortlisp): Add utf-16.elc
20365
203662002-09-29 Richard M. Stallman <rms@gnu.org>
20367
20368 * search.c (Freplace_match): Adjust match data for the substitution
20369 just made in the buffer.
20370
20371 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
20372 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
20373
203742002-09-27 Richard M. Stallman <rms@gnu.org>
20375
20376 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
20377 (read_char): Use them. Do all exits thru the end of the function.
20378
203792002-09-27 Kenichi Handa <handa@etl.go.jp>
20380
20381 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
20382 is nil.
20383
203842002-09-26 Richard M. Stallman <rms@gnu.org>
20385
20386 * regex.h (__restrict_arr): Don't define if already defined.
20387
20388 * coding.c (run_pre_post_conversion_on_str):
20389 Save and restore Vdeactivate_mark.
20390
203912002-09-26 John Paul Wallington <jpw@shootybangbang.com>
20392
20393 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
20394
203952002-09-26 Kenichi Handa <handa@etl.go.jp>
20396
20397 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
20398 nonzero, try face's family at first. Otherwise try FAMILY at first.
20399 (choose_face_font): If C is a single byte char or latin-1, call
20400 try_font_list with PREFER_FACE_FAMILY 1.
20401
204022002-09-21 Richard M. Stallman <rms@gnu.org>
20403
20404 * window.c (select_window_1): Don't select frame.
20405 Set frame's selected window only when frame itself is selected.
20406 (Fselect_window): Doc fix.
20407
204082002-09-18 Kim F. Storm <storm@cua.dk>
20409
20410 * process.c (make-network-process): Doc fix (there is no
20411 network-server-log-function hook).
20412
204132002-09-18 Richard M. Stallman <rms@gnu.org>
20414
20415 * print.c (print): Clear out the unused parts of Vprint_number_table.
20416 (syms_of_print): Doc fix for `print-number-table'.
20417
20418 * unexelf.c (unexec): Undo previous change.
20419
204202002-09-17 Andreas Schwab <schwab@suse.de>
20421
20422 * m/alpha.h [LINUX]: Don't define DATA_START.
20423
204242002-09-16 Dave Love <fx@gnu.org>
20425
20426 * unexelf.c (unexec): Deal with .got, reinstating change from
20427 25-08-1999.
20428
204292002-09-13 Richard M. Stallman <rms@gnu.org>
20430
20431 * s/sol2-6.h (UNEXEC): Comment out definition.
20432
20433 * unexsol.c (unexec): Don't downcase first letter of error msg.
20434
20435 * xfaces.c (Fcolor_supported_p): Just one arg is required.
20436
204372002-09-12 Markus Rost <rost@math.ohio-state.edu>
20438
20439 * unexsol.c: Include buffer.h, charset.h, coding.h.
20440
204412002-09-11 Richard M. Stallman <rms@gnu.org>
20442
20443 * unexsol.c: Don't use report_file_error; do it by hand
20444 using dlerror.
20445
20446 * process.c (wait_reading_process_input, both versions):
20447 Before calling turn_on_atimers, call stop_polling.
20448
20449 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
20450
20451 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
20452 we go to too_near_end, call clear_glyph_matrix.
20453 (redisplay_window): After make_cursor_line_fully_visible,
20454 call clear_glyph_matrix and bypass `goto done'.
20455
20456 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
20457 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
20458
204592002-09-10 Richard M. Stallman <rms@gnu.org>
20460
20461 * fileio.c (Fdo_auto_save): Catch error making directory.
20462 Only call push_message if we need to.
20463 At the same time, make an unwind-protect to pop it.
20464 Rename local message_p to old_message_p.
20465 (do_auto_save_make_dir, do_auto_save_eh): New functions.
20466 (do_auto_save_unwind): Don't call pop_message.
20467
20468 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
20469
20470 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
20471
20472 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
20473
20474 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
20475
204762002-09-10 Stefan Monnier <monnier@cs.yale.edu>
20477
20478 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
20479 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
20480 (re_match_2_internal): Be more careful with infinite loops.
20481
204822002-09-10 Kim F. Storm <storm@cua.dk>
20483
20484 * macros.c (end_kbd_macro): New function.
20485 (Fend_kbd_macro): Use it.
20486
20487 * macros.h (end_kbd_macro): Declare extern.
20488
20489 * keyboard.c (Fdiscard_input): If defining keyboard macro,
20490 end and save it instead of discarding it.
20491
204922002-09-09 Markus Rost <rost@math.ohio-state.edu>
20493
20494 * s/sol2-6.h: Fix typo. Add comment.
20495
204962002-09-09 Richard M. Stallman <rms@gnu.org>
20497
20498 * regex.c (regnum_t): Use signed int, not unsigned int.
20499
20500 * s/sol2-6.h: New file.
20501
20502 * s/sol2-5.h (UNEXEC): Definition deleted.
20503
205042002-09-08 Kim F. Storm <storm@cua.dk>
20505
20506 * macros.c (executing_macro_index): Change type to EMACS_INT.
9dd28cae 20507 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
048addec
JD
20508
20509 * macros.h (executing_macro_index): Change type to EMACS_INT.
20510
205112002-09-06 Richard M. Stallman <rms@gnu.org>
20512
20513 * casetab.c (set_case_table): Make canon table point to eqv table.
20514
205152002-09-06 Juanma Barranquero <lektu@terra.es>
20516
20517 * coding.c (syms_of_coding): Fix spacing.
20518
20519 * composite.c (Fcompose_region_internal)
20520 (Fcompose_string_internal): Likewise.
20521
20522 * data.c (Flsh): Likewise.
20523
20524 * fontset.c (Fset_fontset_font): Likewise.
20525
20526 * macfns.c (Fx_server_max_request_size): Likewise.
20527
20528 * w16select.c (syms_of_win16select): Likewise.
20529
20530 * w32select.c (syms_of_w32select): Likewise.
20531
20532 * xselect.c (syms_of_xselect): Likewise.
20533
205342002-09-05 Richard M. Stallman <rms@gnu.org>
20535
20536 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
20537 call EXTEND_RANGE_TABLE and return a proper value.
20538 (set_image_of_range): Don't call set_image_of_range_1
20539 if no TRANSLATE or if range includes all of Latin-1.
20540 Only call it for the Latin-1 part of the range.
20541 For other cases, make two separate ranges,
20542 one for the original specified characters and one for
20543 their case-conversions.
20544
205452002-09-04 Richard M. Stallman <rms@gnu.org>
20546
20547 * s/sol2-5.h (UNEXEC): Use unexsol.o.
20548
20549 * window.c (displayed_window_lines): Correct for one-off bug
20550 in HEIGHT on non-window displays.
20551
20552 * regex.c (set_image_of_range_1): New function.
20553 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
20554 Return a value to indicate running out of memory.
20555 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
20556 (extend_range_table_work_area): New subroutine.
20557 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
20558 Different calling conventions, and used from set_image_of_range{,_1}.
20559 (IMMEDIATE_QUIT_CHECK): Definitions moved.
20560
205612002-09-04 Juanma Barranquero <lektu@terra.es>
20562
20563 * makefile.w32-in: All dependencies updated.
20564
205652002-09-01 Richard M. Stallman <rms@gnu.org>
20566
20567 * unexsol.c: New file.
20568
20569 * xfns.c (Qbox): Declare external, don't define.
20570
20571 * xdisp.c (redisplay_window) <force-start case>:
20572 If point is on semi-visible last line, reposition
20573 it at previous line.
20574
20575 * alloc.c (display_malloc_warning): Use display-warning.
20576 (malloc_warning_1): Function deleted.
20577
20578 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
20579
20580 * lread.c (read1): Handle #! by skipping the line.
20581
205822002-08-31 Richard M. Stallman <rms@gnu.org>
20583
20584 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
20585 Don't include LDFLAGS.
20586 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
20587
205882002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
20589
20590 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
20591 member of x_display_info unless we compile for some window system.
20592
205932002-08-31 Kim F. Storm <storm@cua.dk>
20594
20595 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
20596 (get_window_cursor_type): Don't use them.
20597 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
20598
205992002-08-30 Kenichi Handa <handa@etl.go.jp>
20600
20601 * xdisp.c (get_next_display_element): Fix previous change.
20602
206032002-08-30 Andrew Choi <akochoi@shaw.ca>
20604
20605 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
20606 (expose_window): Use it to fix the display of overlapping
20607 rows (merge code from xterm.c).
20608
20609 * macfns.c (Qbox): Add extern declaration.
20610
206112002-08-30 Juanma Barranquero <lektu@terra.es>
20612
20613 * w32fns.c (Qbox): Make extern.
20614 (syms_of_w32fns): Remove initialization of Qbox.
20615
206162002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
20617
20618 * xfns.c (Fx_open_connection): Fix error message.
20619
206202002-08-30 Kim F. Storm <storm@cua.dk>
20621
20622 The following changes consolidates the handling of the cursor
20623 type in xdisp.c, moving duplicate code and functionality from
20624 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
20625
20626 * frame.h (enum text_cursor_kinds): Consolidated here.
20627 Added DEFAULT_CURSOR value.
20628 (struct frame) <desired_cursor, cursor_width>
20629 <blink_off_cursor, blink_off_cursor_width>: New fields.
20630 Consolidated from output_x, output_w32 and output_mac structs.
20631 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20632 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
20633
20634 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
20635 Variables consolidated here.
20636 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
20637 (Vcursor_in_non_selected_windows): Renamed from
20638 cursor_in_non_selected_windows and changed to Lisp_Object.
20639 (syms_of_xdisp): Define and staticpro new and moved variables.
20640 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
20641 consolidated here. Recognize Qhollow setting.
20642 (set_frame_cursor_types): New function to set frame cursor types
20643 based on the frame parameters.
20644 (get_window_cursor_type): New function to calculate new cursor
20645 type and width for the specified window. Based on duplicated
20646 code consolidated here.
20647 Enhancements: cursor-in-non-selected-windows may be a cursor type,
20648 check buffer-local alternate-cursor-type and blink-cursor-alist
20649 before using built-in blink off methods.
20650
20651 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
20652
20653 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
20654 (get_specified_cursor_type, get_window_cursor_type)
20655 (set_frame_cursor_types): Added prototypes.
20656
20657 * macfns.c (x_specified_cursor_type): Removed.
20658 (x_set_cursor_type): Use set_frame_cursor_types.
20659 (Qbar, Qbox): Removed.
20660 (syms_of_macfns): Don't intern or staticpro them.
20661
20662 * macterm.c (x_specified_cursor_type): Remove prototype.
20663 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20664 (x_display_and_set_cursor): Use get_window_cursor_type.
20665 Remove unused local variables cursor_non_selected, active_cursor.
20666 Redraw cursor if hbar cursor width changes.
20667 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
20668
20669 * macterm.h (enum text_cursor_kinds): Removed.
20670 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
20671 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20672 (FRAME_DESIRED_CURSOR): Macro removed.
20673
20674 * w32fns.c (Vblink_cursor_alist): Removed.
20675 (Qbar, Qhbar, Qbox, Qhollow): Removed.
20676 (syms_of_w32fns): Don't intern, staticpro, or define them.
20677 (x_specified_cursor_type): Removed.
20678 (x_set_cursor_type): Use set_frame_cursor_types.
20679
20680 * w32term.c (x_specified_cursor_type): Remove prototype.
20681 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20682 (x_display_and_set_cursor): Use get_window_cursor_type.
20683 Remove unused local variables cursor_off_state.
20684 Redraw cursor if hbar cursor width changes.
20685 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
20686
20687 * w32term.h (enum text_cursor_kinds): Removed.
20688 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
20689 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20690 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20691 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
20692 (struct w32_display_info) <x_highlight_frame>: Renamed member from
20693 w32_highlight_frame.
20694
20695 * xfns.c (Vblink_cursor_alist): Removed.
20696 (Qbar, Qhbar, Qbox, Qhollow): Removed.
20697 (syms_of_xfns): Don't intern, staticpro, or define them.
20698 (x_specified_cursor_type): Removed.
20699 (x_set_cursor_type): Use set_frame_cursor_types.
20700
20701 * xterm.c (x_specified_cursor_type): Remove prototype.
20702 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20703 (x_display_and_set_cursor): Use get_window_cursor_type.
20704 Remove unused local variables cursor_off_state.
20705 Redraw cursor if hbar cursor width changes.
20706
20707 * xterm.h (enum text_cursor_kinds): Removed.
20708 (struct output_x) <current_cursor, desired_cursor, cursor_width>
20709 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20710 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20711 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
20712 (x_specified_cursor_type): Remove prototype.
20713
207142002-08-28 Richard M. Stallman <rms@gnu.org>
20715
20716 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
20717 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
20718 (Vblink_cursor_alist): New variable.
20719 (syms_of_w32fns): Initialize and defvar it.
20720 (x_specified_cursor_type): Recognize Qbox for filled box.
20721 Exceptions are hollow boxes.
20722 (Qbox, Qhollow): New variables.
20723 (syms_of_w32fns): Initialize and staticpro them.
20724
20725 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
20726 New macros.
20727 (struct w32_output): New fields blink_off_cursor,
20728 blink_off_cursor_width.
20729 (FRAME_CURSOR_WIDTH): New macro.
20730
20731 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
20732 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
20733
20734 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
20735 for bar cursor.
20736
20737 * w32term.c (expose_overlaps): New function.
20738 (expose_window): Use it to fix the display of overlapping rows.
20739
207402002-08-28 Simon Josefsson <jas@extundo.com>
20741
20742 * xfns.c (Fx_open_connection): Improve help when X connection
20743 fails, xhost is insecure and xauth is better.
20744
207452002-08-28 Juanma Barranquero <lektu@terra.es>
20746
20747 * makefile.w32-in: Add missing dependencies on w32term.h and
20748 composite.h.
20749
20750 * emacs.c (USAGE1): Add missing newline.
20751
207522002-08-27 Andrew Choi <akochoi@shaw.ca>
20753
20754 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
20755
207562002-08-27 Richard M. Stallman <rms@gnu.org>
20757
20758 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
20759 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
20760 (Vblink_cursor_alist): New variable.
20761 (syms_of_xfns): Initialize and defvar it.
20762 (x_specified_cursor_type): Recognize Qbox for filled box.
20763 Exceptions are hollow boxes.
20764 (Qbox, Qhollow): New variables.
20765 (syms_of_xfns): Initialize and staticpro them.
20766
20767 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
20768 New macros.
20769 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
20770
20771 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
20772 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
20773
20774 * emacs.c (main): Handle --script.
20775 (USAGE1): Mention --script.
20776 (standard_args): Define sort order for --script.
20777
207782002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
20779
20780 * xdisp.c (redisplay_updating_p): Variable removed.
20781 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
20782 New variables.
20783 (init_iterator): Don't free realized faces if
20784 inhibit_free_realized_faces is set.
20785 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
20786 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
20787 initialize Qinhibit_free_realized_faces.
20788
20789 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
20790 when iterator is adding glyphs to a glyph matrix.
20791
207922002-08-27 Kenichi Handa <handa@etl.go.jp>
20793
20794 * xdisp.c (get_next_display_element): In unibyte case, don't use
20795 octal form for such eight-bit characters that can be converted to
20796 multibyte char.
20797
207982002-08-26 Kim F. Storm <storm@cua.dk>
20799
b6189c3b
KS
20800 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
20801 foreground and background colors. From Joe Buehler.
048addec
JD
20802
208032002-08-26 Miles Bader <miles@gnu.org>
20804
20805 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
20806
208072002-08-25 Andrew Choi <akochoi@shaw.ca>
20808
20809 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
20810 defined instead of MAC_OSX.
20811
20812 * s/darwin.h (select): Define select to sys_select only if
20813 HAVE_CARBON is defined.
20814 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
20815 (DONT_REOPEN_PTY): #def it.
20816
20817 * macterm.c (XTread_socket): Remove code to call
20818 SendEventToEventTarget for keys with command modifiers when
20819 mac_command_key_is_meta is nil.
20820
208212002-08-24 Andreas Schwab <schwab@suse.de>
20822
20823 * eval.c (Fdefvar): Fix last change.
20824
208252002-08-23 Richard M. Stallman <rms@gnu.org>
20826
20827 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
20828 Record variables in load history as (defvar . VAR).
20829 (Fdefvar): Don't record in load history if no initial value.
20830 (Qdefvar): New variable.
20831 (syms_of_eval): Init and staticpro it.
20832
20833 * lread.c (syms_of_lread): Doc fix.
20834 (build_load_history): Use Fmember to see if a definition
20835 is already in the Vload_history element.
20836
20837 * process.c (Fstart_process): Remove /: from program name.
20838
20839 * emacs.c (decode_env_path): Don't add /: if file name handler
20840 has a `safe-magic' property.
20841
20842 * callproc.c (Fcall_process): Remove /: from program name.
20843
208442002-08-23 Stefan Monnier <monnier@cs.yale.edu>
20845
20846 * regex.c (PATFETCH): Remove the translating fetch.
20847 (PATFETCH_RAW): Rename to PATFETCH.
20848 (set_image_of_range): New fun.
20849 (SET_RANGE_TABLE_WORK_AREA): Use it.
20850 (regex_compile): Don't translate the pattern chars so eagerly.
20851 Only do it when inserting an `exactn' bytecode or when handling
20852 a char-range.
20853 (mutually_exclusive_p): Avoid empty statement.
20854
208552002-08-22 Kim F. Storm <storm@cua.dk>
20856
20857 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
20858 end up on a partially visible line; this reverts a specific part
20859 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
20860 display error which has been reported several times now.
20861 However it introduces the problem that changes was supposed to fix.
20862 See my comments in the source if you want to debug this further.
20863
208642002-08-20 Kenichi Handa <handa@etl.go.jp>
20865
20866 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20867
208682002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
20869
20870 * msdos.c (croak): Add `void' to definition.
20871
c1380aa6 20872 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
20873 Don't define them, they are defined in msdos.c.
20874
20875 * mem-limits.h [MSDOS]: Declare etext.
20876
20877 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
20878 `const' since CORRECT_DIR_SEPS modifies its target.
20879
208802002-08-19 Kim F. Storm <storm@cua.dk>
20881
2fb0ce67 20882 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
20883 KEEP-RECORD to avoid clearing lossage when we just want to clear
20884 the current key sequence (kmacro needs this).
20885
208862002-08-19 Kenichi Handa <handa@localhost>
20887
20888 * composite.c (run_composition_function): Call FUNC if it is fboundp.
20889
20890 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
20891 cons, return Qnil.
20892
208932002-08-17 Richard M. Stallman <rms@gnu.org>
20894
20895 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
20896
20897 * sysdep.c [!VMS]: Include sys/files.h.
20898
20899 * editfns.c (save_restriction_restore): Defend from unchained marker.
20900
20901 * buffer.c (overlays_at): Handle extending vec uniformly.
20902 (overlays_in): Handle extending vec from length 0 as in overlays_at.
20903
209042002-08-15 Andrew Choi <akochoi@shaw.ca>
20905
20906 * mac.c (init_mac_osx_environment): New function.
20907
20908 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
20909
209102002-08-14 Kim F. Storm <storm@cua.dk>
20911
20912 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
20913 executing macro before appending to it (when used from Lisp).
20914 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
20915 which is called prior to each iteration of macro (for kmacro.el).
20916 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
20917
20918 * lisp.h (Fexecute_kbd_macro): Update prototype.
20919
20920 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
20921
209222002-08-14 Kenichi Handa <handa@etl.go.jp>
20923
20924 * xselect.c (QUTF8_STRING): New variable.
20925 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
20926 (x_atom_to_symbol): Likewise.
20927 (x_get_local_selection): New argument local_request. If it is
20928 nonzero, call handler_fn with the second arg nil.
20929 (x_handle_selection_request): Call x_get_local_selection with
20930 local_request 0.
20931 (lisp_data_to_selection_data): Don't encode the string here.
20932 (Fx_get_selection_internal): Call x_get_local_selection with
20933 local_request 1.
20934 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
20935
20936 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
20937
20938 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
20939
209402002-08-13 Richard M. Stallman <rms@gnu.org>
20941
20942 * minibuf.c (Fminibufferp): New function.
20943 (syms_of_minibuf): Defsubr it.
20944 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
20945
209462002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
20947
20948 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
20949
209502002-08-12 Richard M. Stallman <rms@gnu.org>
20951
20952 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
20953 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
20954 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
20955 already.
20956
20957 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
20958
209592002-08-11 Andrew Choi <akochoi@shaw.ca>
20960
20961 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
20962 (Vmac_pass_command_to_system): New variable.
20963 (Vmac_pass_control_to_system): New variable.
20964 (do_mouse_moved): Check wp with is_emacs_window.
20965 (XTread_socket): Check window_ptr with is_emacs_window.
20966 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
20967 events back to Mac Toolbox for processing, depending on values of
20968 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
20969 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
20970 Vmac_pass_control_to_system.
20971
209722002-08-10 Kenichi Handa <handa@etl.go.jp>
20973
20974 * coding.c (unencodable_char_position): New function.
20975 (Funencodable_char_position): New function.
20976 (syms_of_coding): Defsubr Funencodable_char_position.
20977
209782002-08-10 Andrew Choi <akochoi@shaw.ca>
20979
20980 * mac.c (sys_select) [MAC_OSX]: New function.
20981
20982 * macterm.c (MakeMeTheFrontProcess): New function.
20983 (mac_initialize): Call MakeMeTheFrontProcess.
20984
20985 * s/darwin.h: Define select to sys_select.
20986
209872002-08-09 Richard M. Stallman <rms@gnu.org>
20988
20989 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
20990
209912002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
20992
20993 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
20994 end of the buffer.
20995
88fde92a 209962002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
20997
20998 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
20999
21000 * puresize.h (BASE_PURESIZE): Increase to 910000.
21001
210022002-08-08 Kenichi Handa <handa@etl.go.jp>
21003
21004 * coding.c (Ffind_operation_coding_system): For write-region, if
21005 VISIT is a filename, make it the target.
21006
210072002-08-07 Richard M. Stallman <rms@gnu.org>
21008
21009 * alloc.c (mark_object): Detect long lists for debugging.
21010 (mark_object_loop_halt): New variable.
21011
21012 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
21013
21014 * data.c (Fmake_variable_frame_local): Doc fix.
21015
210162002-08-01 David Ponce <david@dponce.com>
21017
21018 * w32menu.c (local_heap, local_alloc, local_free): New macros.
21019 (malloc_widget_value, free_widget_value)
21020 (w32_free_submenu_strings): Use them.
21021
21022 (push_submenu_start, push_submenu_end, push_left_right_boundary)
21023 (push_menu_pane, push_menu_item, single_keymap_panes)
21024 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
21025 (single_submenu, set_frame_menubar)
21026 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
21027
21028 (Fx_popup_menu): Don't show pop up menu until preceding one is
21029 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
21030
21031 * w32menu.c: Changes adapted from xmenu.c
21032 (set_frame_menubar): First parse all submenus,
21033 then make widget_value trees from them.
21034 Don't allocate any widget_value objects
21035 until we are done with the parsing.
21036 (parse_single_submenu): New function.
21037 (digest_single_submenu): New function.
21038 (single_submenu): Function deleted, replaced by those two.
21039
210402002-08-04 Andrew Choi <akochoi@shaw.ca>
21041
21042 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
21043 returns a valid window pointer before proceeding for keyDown and
21044 autoKey events.
21045
210462002-08-03 Andrew Choi <akochoi@shaw.ca>
21047
21048 * macterm.c (USE_CARBON_EVENTS): New macro.
21049 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
21050 (x_iconify_frame): Call CollapseWindow.
21051 (Vmac_reverse_ctrl_meta): New variable.
21052 (Vmac_wheel_button_is_mouse_2): New variable.
21053 (init_mac_drag_n_drop): New function.
21054 (mac_do_receive_drag): New function.
21055 (mac_handle_service_event): New function.
21056 (init_service_handler): New function.
21057 (mac_to_emacs_modifiers): New function.
21058 (mac_event_to_emacs_modifiers): New function.
21059 (mac_get_mouse_btn): New function.
21060 (mac_convert_event_ref): New function.
21061 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
21062 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
21063 mac_get_mouse_btn.
21064 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
21065
21066 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
21067 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
21068 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
21069 TOOL_BAR_EVENT for MAC_OS as well.
21070 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
21071 as for WINDOWS_NT.
21072 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
21073
21074 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
21075
210762002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
21077
21078 * xdisp.c (forward_to_next_line_start): Fix a condition that
21079 lead to a newline being skipped.
21080
210812002-08-02 Andrew Choi <akochoi@shaw.ca>
21082
21083 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
21084
210852002-08-01 Richard M. Stallman <rms@gnu.org>
21086
21087 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
21088
210892002-07-31 Andrew Choi <akochoi@shaw.ca>
21090
21091 * macfns.c: #undef init_process before #define-ing it.
21092
21093 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
21094 HAVE_CARBON is defined.
21095
210962002-07-31 Richard M. Stallman <rms@gnu.org>
21097
21098 * xmenu.c (set_frame_menubar): First parse all submenus,
21099 then make widget_value trees from them.
21100 Don't allocate any widget_value objects
21101 until we are done with the parsing.
21102 (parse_single_submenu): New function.
21103 (digest_single_submenu): New function.
21104 (single_submenu): Function deleted, replaced by those two.
21105
211062002-07-30 Juanma Barranquero <lektu@terra.es>
21107
21108 * w32proc.c (syms_of_ntproc): Fix docstring of
21109 `w32-get-true-file-attributes'.
21110
211112002-07-28 Richard M. Stallman <rms@gnu.org>
21112
21113 * s/hpux8.h (HPUX8): Define this before including hpux.h.
21114 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
21115
21116 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
21117
21118 * keyboard.c (make_lispy_event):
21119 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
21120 Explicitly clear up_modifier in event->modifiers.
21121
211222002-07-27 Richard M. Stallman <rms@gnu.org>
21123
21124 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
21125
21126 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21127 for bar cursor.
21128
211292002-07-26 Kenichi Handa <handa@etl.go.jp>
21130
21131 * coding.c (detect_coding_iso2022): While checking a byte sequence
21132 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
21133 it in the normal loop.
21134
211352002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
21136
21137 * xterm.c (expose_overlaps): New function.
21138 (expose_window): Use it to fix the display of overlapping rows.
21139
21140 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
21141
211422002-07-23 Ken Raeburn <raeburn@gnu.org>
21143
21144 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
21145 since it only depends on XUINT.
21146
21147 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
21148 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
21149 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
21150 Macros deleted.
3947677c 21151
77d1daf2
AS
21152 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
21153 its value over other approaches.
21154 * sysdep.c (start_of_data): Don't define the function if a macro
21155 form has been defined.
8a8e19a3 21156
048addec
JD
211572002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
21158
21159 * xdisp.c (redisplay_updating_p): New variable.
21160 (init_iterator): Don't free realized faces when
21161 redisplay_updating_p is set.
21162 (redisplay_internal): Set redisplay_updating_p while updating
21163 the display.
21164
211652002-07-23 Richard M. Stallman <rms@gnu.org>
21166
21167 * editfns.c (Fmessage): Treat "" like nil.
21168
211692002-07-23 Kenichi Handa <handa@etl.go.jp>
21170
21171 * xdisp.c (face_before_or_after_it_pos):
21172 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21173
211742002-07-22 Juanma Barranquero <lektu@terra.es>
21175
21176 * callproc.c (init_callproc) [DOS_NT]:
21177 Initialize Vshared_game_score_directory to nil.
21178 (syms_of_callproc) [DOS_NT]: Likewise.
21179
211802002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
21181
21182 * xdisp.c (display_line): Replace an abort with xassert.
21183
211842002-07-21 Richard M. Stallman <rms@gnu.org>
21185
21186 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
21187 and END_UNCHANGED when setting buffer_unchanged_p.
21188 Use current_matrix_up_to_date_p to decide whether to use
21189 try_cursor_movement.
21190
21191 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
21192
21193 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
21194
21195 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
21196 Set to nil if dir does not exist.
21197 (syms_of_callproc): Init unconditionally and simply.
21198
21199 * buffer.c (Fbuffer_list): Doc fix.
21200
212012002-07-21 Ken Raeburn <raeburn@gnu.org>
21202
21203 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
21204
21205 * buffer.c (mmap_realloc): When shrinking, make sure number of
21206 pages to unmap is rounded towards zero.
21207
21208 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
21209 (XSETINT): Deleted.
21210
21211 * m/att3b.h (XINT): Don't define.
21212 (VALBITS, VALMASK, XTYPE): Deleted.
21213 (DATA_SEG_BITS): Define.
21214 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
21215 ARRAY_MARK_FLAG): Deleted.
21216 (DATA_SEG_BITS): Define.
21217 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
21218 (DATA_SEG_BITS): Define.
21219
212202002-07-20 Richard M. Stallman <rms@gnu.org>
21221
21222 * print.c (print_error_message): New args CONTEXT and CALLER.
21223 Calls changed.
21224
21225 * lisp.h (print_error_message): Declare new args.
21226
21227 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
21228 and CONTEXT to print_error_message, don't print them here.
21229 For a Quit, don't use Vsignaling_function.
21230 Call message_log_maybe_newline.
21231
21232 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
21233
212342002-07-20 Kim F. Storm <storm@cua.dk>
21235
21236 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
21237
212382002-07-19 Ken Raeburn <raeburn@gnu.org>
21239
21240 * bytecode.c (struct byte_stack): Pointers into byte string now
21241 point to const.
21242 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
21243 const.
21244 * charset.h (BCOPY_SHORT): Source pointer now points to const.
21245 * coding.c (encode_eol, detect_coding, detect_eol):
21246 (decode_coding, encode_coding, detect_coding_system):
21247 Source strings now treated as const.
21248 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
21249 modify Lisp string contents.
21250 * coding.h (decode_coding, encode_coding, detect_coding,
21251 detect_eol): Declarations updated.
21252 * composite.c (compose_chars_in_text): Treat Lisp string contents
21253 as const.
21254 * dispnew.c (safe_bcopy): Source pointer now points to const.
21255 * lisp.h (STRING_COPYIN): New macro.
21256 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
21257 (internal_with_output_to_temp_buffer): Declarations updated.
21258 * print.c (temp_output_buffer_setup):
21259 (internal_with_output_to_temp_buffer): Buffer name argument is now
21260 pointer to const.
21261 * sound.c (struct sound_device): Function pointer field "write"
21262 buffer argument now points to const.
21263 (vox_write): Buffer argument points to const.
21264 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
21265 contents as const.
21266 * sysdep.c (emacs_write): Buffer pointer now const.
21267 * term.c (encode_terminal_code): Buffer pointer now const.
21268 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
21269 (x_face_list_fonts, x_update_menu_appearance):
21270 (hash_string_case_insensitive): Treat Lisp string contents as const.
21271
212722002-07-19 Juanma Barranquero <lektu@terra.es>
21273
048addec
JD
21274 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
21275
21276 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
21277 (Ffile_name_as_directory): Fix argument name in docstring.
21278 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
21279
212802002-07-18 Richard M. Stallman <rms@gnu.org>
21281
21282 * data.c (Fdefalias): Doc fix.
21283
212842002-07-17 Dave Love <fx@gnu.org>
21285
21286 * intervals.h (text_property_stickiness): Use P_.
21287
21288 * ccl.c: Remove `emacs' conditionals.
21289 (ccl_backtrace_table): Fix size spec.
21290 (ccl_driver): Fix type errors.
21291
212922002-07-16 Ken Raeburn <raeburn@gnu.org>
21293
21294 * alloc.c (xstrdup, make_string, make_unibyte_string)
21295 (make_multibyte_string, build_string): String pointer args now
21296 point to const.
21297 * charset.c (find_charset_in_text, c_string_width):
21298 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
21299 * fileio.c (report_file_error):
21300 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
21301 (count_combining_before, count_combining_after, insert_1_both):
21302 (insert, insert_and_inherit, insert_string):
21303 (insert_before_markers, insert_before_markers_and_inherit):
21304 * lread.c (intern, oblookup, hash_string):
21305 * minibuf.c (temp_echo_area_glyphs):
21306 * search.c (fast_c_string_match_ignore_case):
21307 * sysdep.c (emacs_open, set_file_times):
21308 * xfaces.c (xstricmp):
21309 * xdisp.c (store_frame_title, string_char_and_length):
21310 (message_dolog, message2, message2_nolog, set_message): Likewise.
21311 (set_message_1): Cast message string argument to const pointer.
21312 * editfns.c (general_insert_function): Insertion function now
21313 takes pointer to const for input data.
21314 * charset.h (find_charset_in_text, c_string_width):
21315 (parse_str_as_multibyte): Declarations updated.
21316 * dispextern.h (xstricmp): Declaration updated.
21317 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
21318 (count_size_as_multibyte, count_combining_before):
21319 (count_combining_after, insert_1, insert_1_both, message_dolog):
21320 (insert, insert_and_inherit, insert_before_markers)
21321 (insert_before_markers_and_inherit, set_message, message2):
21322 (message2_dolog, build_string, make_string, make_unibyte_string):
21323 (make_multibyte_string, intern, oblookup, report_file_error):
21324 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
21325 (emacs_open, xstrdup): Declarations updated.
21326 * systime.h (set_file_times): Declaration updated.
21327
21328 * charset.c (find_charset_in_text, lisp_string_width): Use const
21329 for pointer to lisp string data.
21330 * charset.h (FETCH_STRING_CHAR_ADVANCE):
21331 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
21332 * coding.c (Ffind_coding_systems_region_interval):
21333 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
21334 (Fmake_directory_internal, Fdelete_directory):
21335 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
21336 * fontset.c (font_family_registry, fs_query_fontset):
21337 (list_fontsets):
21338 * frame.c (Fframe_parameter):
21339 * keyboard.c (cmd_error_internal):
21340 * keymap.c (Fdescribe_buffer_bindings):
21341 * lread.c (complete_filename_p, openp):
21342 * minibuf.c (Fminibuffer_complete_word):
21343 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
21344 (face_before_or_after_it_pos, next_element_from_string):
21345 (get_overlay_arrow_glyph_row, display_mode_element):
21346 (decode_mode_spec_coding):
21347 * xterm.c (same_x_server): Likewise.
21348
21349 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
21350 settings of non-existent fields.
21351
21352 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
21353 copy a lisp value.
21354
21355 * lread.c (Fintern_soft): Use string macros instead of
21356 Lisp_String fields.
21357 * keyboard.c (echo_char, parse_modifiers_uncached):
21358 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
21359 * textprop.c (validate_interval_range, interval_of): Likewise.
21360
21361 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
21362
21363 * charset.h (FETCH_STRING_CHAR_ADVANCE)
21364 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
21365 XSTRING()->size_byte.
21366
21367 * lisp.h (SDATA, SREF): Produce rvalue.
21368 (SSET): New macro.
21369 * alloc.c (make_event_array): Use SSET for storing into a string.
21370 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
21371 a string.
21372 * casefiddle.c (casify_object): Use SSET.
21373 * charset.h (FETCH_STRING_CHAR_ADVANCE)
21374 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
21375 address of string contents.
21376 * data.c (Faref): Use SDATA.
21377 (Faset): Use SDATA, SSET.
21378 * dired.c (directory_files_internal): Use SSET.
21379 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
21380 (Fread_file_name): Use SREF, SSET.
21381 * fns.c (concat): Use SSET.
21382 (concat, Fdelete): Use SDATA.
21383 * insdel.c (insert_from_string_1): Use SDATA.
21384 * keyboard.c (Fevent_convert_list): Use SREF.
21385 * lread.c (Fload): Use SDATA, SSET.
21386 * macfns.c (validate_x_resource_name): Use SSET.
21387 * process.c (status_message): Use SSET.
21388 * search.c (wordify): Use SDATA.
21389 (Freplace_match): Use SREF.
21390 * w32fns.c (validate_x_resource_name): Use SSET.
21391 * xfns.c (validate_x_resource_name): Use SSET.
21392 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
21393
213942002-07-16 Richard M. Stallman <rms@gnu.org>
21395
21396 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
21397
21398 * xdisp.c (reconsider_clip_changes):
21399 Don't test prevent_redisplay_optimizations_p.
21400 (redisplay_internal): Test prevent_redisplay_optimizations_p
21401 along with clip_changed in some cases.
21402 (try_window_id): Likewise.
21403 (redisplay_window): New local var buffer_unchanged_p.
21404
21405 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
21406
21407 * process.c (create_process): Test USG_SUBTTY_WORKS.
21408 (process_send_signal): Clean up handling of GID.
21409 Detect errors in ioctls meant to set GID.
21410
21411 * window.c (temp_output_buffer_show):
21412 Don't set prevent_redisplay_optimizations_p.
21413
214142002-07-15 Juanma Barranquero <lektu@terra.es>
21415
21416 * eval.c (Fdefvaralias): Add docstring argument.
21417
214182002-07-15 Ken Raeburn <raeburn@gnu.org>
21419
21420 * lisp.h (STRING_INTERVALS): Produce rvalue.
21421 (STRING_SET_INTERVALS): New macro.
21422 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
21423 * fns.c (Fstring_as_multibyte): Likewise.
21424 * intervals.c (balance_possible_root_interval, delete_interval)
21425 (create_root_interval, copy_intervals_to_string): Likewise.
21426 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
21427 instead of 0.
21428
214292002-07-14 Ken Raeburn <raeburn@gnu.org>
21430
21431 * lisp.h (STRING_SET_CHARS): New macro.
21432 (SCHARS, SBYTES): Produce rvalues.
21433 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
21434 * fns.c (concat): Likewise.
21435 * lread.c (read_vector): Likewise.
21436
3419757d 21437 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 21438 (STRING_SET_UNIBYTE): New macro.
3419757d 21439 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
21440 length of -1) changed to use STRING_SET_UNIBYTE.
21441 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21442 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
21443 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
21444 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
21445 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
21446 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
21447 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
21448 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
21449 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
21450 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
21451 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
21452 STRING_BYTES or indirection changed to SCHARS, SBYTES,
21453 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
21454 unchanged for now.
21455
214562002-07-13 Kim F. Storm <storm@cua.dk>
21457
21458 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
21459
214602002-07-12 Richard M. Stallman <rms@gnu.org>
21461
21462 * fileio.c (Fwrite_region): Doc fix.
21463
21464 * print.c (print_error_message): Don't handle Vsignaling_function here.
21465
21466 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
21467 (command_loop_1): Avoid certain actions after memory-full error.
21468
21469 * eval.c (Fsignal): Don't call cancel_hourglass.
21470 For a memory-full error, don't call Vsignal_hook_function
21471 and don't set Vsignaling_function.
21472
21473 * process.c (process_send_signal): Add abort call.
21474
214752002-07-11 Markus Rost <rost@math.ohio-state.edu>
21476
21477 * keymap.c (Fkey_binding): Fix typo.
21478
214792002-07-11 Richard M. Stallman <rms@gnu.org>
21480
21481 * alloc.c (Vmemory_full): New variable.
3419757d 21482 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
21483 Uses changed.
21484 (syms_of_alloc): Defvar them.
21485 (memory_full, buffer_memory_full): Set Vmemory_full.
21486
21487 * lisp.h (Vmemory_full): Add declaration.
21488 (current_column, indented_beyond_p): Change declaration.
21489
21490 * indent.c (last_known_column): Declare as double, not float.
21491 (current_column, current_column_1, string_display_width)
21492 (position_indentation): Return `double'.
21493 (indented_beyond_p): Arg `column' is `double'. Callers changed.
21494
21495 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
21496 (back_to_previous_visible_line_start)
21497 (reseat_at_next_visible_line_start, next_element_from_buffer):
21498 Use `double', not `float', when calling indented_beyond_p.
21499
3419757d 21500 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
21501
21502 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
21503
215042002-07-11 Juanma Barranquero <lektu@terra.es>
21505
21506 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
21507 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
21508 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
21509 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
21510 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
21511 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
21512
215132002-07-10 Juanma Barranquero <lektu@terra.es>
21514
d814862a
JB
21515 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
21516 All callers changed.
048addec
JD
21517
215182002-07-09 Stefan Monnier <monnier@cs.yale.edu>
21519
21520 * data.c (Fdefalias): Add an optional `docstring' argument.
21521 (set_internal, Fsetq_default): Use XCAR/XCDR.
21522
21523 * composite.c (HASH_VALUE, HASH_KEY):
21524 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
21525
215262002-07-09 Kenichi Handa <handa@etl.go.jp>
21527
21528 * callproc.c (Fcall_process): Fix previous change.
21529
215302002-07-07 Stefan Monnier <monnier@cs.yale.edu>
21531
21532 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
21533 Add support for hash-tables.
21534 (Ftry_completion): Return t even if the string appears multiple times.
21535
21536 * fns.c (Fnconc): Use XCDR.
21537 (Fprovide): Use CONSP and XCDR.
21538 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
21539 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
21540 (Fmake_hash_table): Accept `:size nil'.
21541 (Fmakehash): Delete: moved to subr.el.
21542 (syms_of_fns): Don't defsubr makehash.
21543
21544 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
21545 (HASH_TABLE_SIZE): Move from fns.c.
21546
215472002-07-07 Richard M. Stallman <rms@gnu.org>
21548
21549 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
21550 Instead just return 0 when there is something to be done.
21551 (try_scrolling): If make_cursor_line_fully_visible returns 0,
21552 retry scrolling as if cursor were off the bottom.
21553 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
21554 return CURSOR_MOVEMENT_MUST_SCROLL.
21555 (redisplay_window): If make_cursor_line_fully_visible returns 0,
21556 go to try_to_scroll.
21557
21558 * buffer.c (Fbuffer_local_value): Store current value into its binding
21559 so we get the up-to-date value for the binding that is loaded.
21560
21561 * eval.c (Fdefmacro): Doc fix.
21562
215632002-07-05 Dave Love <fx@gnu.org>
21564
21565 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
21566 correctly.
21567
21568 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
21569 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
21570 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
21571 CCL_LookupCharConstTbl.
21572 (syms_of_ccl): Defvar translation-hash-table-vector.
21573
215742002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21575
21576 * xdisp.c: Remove unused variable `face'.
21577
215782002-07-04 Juanma Barranquero <lektu@terra.es>
21579
21580 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
21581 obsolescence information.
21582
215832002-07-03 Andrew Choi <akochoi@shaw.ca>
21584
21585 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
21586 pattern. Search cache first.
21587 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
21588 for Japanese font.
21589 (XLoadQueryFont): Use it.
21590
215912002-07-02 Richard M. Stallman <rms@gnu.org>
21592
21593 * keymap.c (Fdefine_key): Doc fix.
21594
21595 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
21596
215972002-07-02 Juanma Barranquero <lektu@terra.es>
21598
21599 * keymap.c (syms_of_keymap): Fix typo.
21600
216012002-07-01 Andrew Choi <akochoi@shaw.ca>
21602
21603 * s/darwin.h: Define POSIX_SIGNALS.
21604
21605 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
21606 and FSRefMakePath to convert FSSpec returned with Apple Event to
21607 Posix pathname.
21608 (mac_initialize) [TARGET_API_MAC_CARBON]:
21609 Call init_required_apple_events and disable the `Quit' menu item
21610 provided automatically by the Carbon Toolbox.
21611
216122002-07-01 Dave Love <fx@gnu.org>
21613
21614 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21615 for K&R.
21616
21617 * xterm.c: Fix prototype for K&R.
21618
21619 * term.c (costs_set): Declare static, non-initialized for pcc.
21620
216212002-07-01 Richard M. Stallman <rms@gnu.org>
21622
21623 * keyboard.c (timer_last_idleness_start_time): New variable.
21624 (timer_start_idle): Set that.
21625 (read_key_sequence): Use that to reset timer_idleness_start_time
21626 to previous value.
21627
21628 * window.c (Frecenter): With arg, set optional_new_start.
21629
21630 * xdisp.c (redisplay_internal): Make optional_new_start really work.
21631
21632 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
21633 buffer for completion.
21634
216352002-06-29 Ken Raeburn <raeburn@gnu.org>
21636
21637 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
21638
216392002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21640
21641 * keyboard.c (readable_filtered_events): New function that filters
21642 FOCUS_IN_EVENT depending on parameter.
21643 (readable_events): Calls readable_filtered_events, not filtering
21644 FOCUS_IN_EVENT.
21645 (get_filtered_input_pending): New function, filtering parameter passed
21646 to readable_filtered_events.
21647 (get_input_pending): Calls get_filtered_input_pending, not filtering
21648 FOCUS_IN_EVENT.
21649 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
21650 FOCUS_IN_EVENT.
21651
21652 * xterm.h (struct x_output): Add focus_state.
21653
21654 * xterm.c (x_focus_changed): New function.
21655 (x_detect_focus_change): New function.
21656 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
21657 EnterNotify and LeaveNotify to track X focus changes.
21658
216592002-06-28 Andreas Schwab <schwab@suse.de>
21660
21661 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
21662
216632002-06-27 Kim F. Storm <storm@cua.dk>
21664
52eb0373 21665 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
21666 (mode_line_string_face_prop): New variables.
21667 (store_mode_line_string): New function.
21668 (display_mode_element): Use store_mode_line_string to
21669 add mode-line string elements to mode_line_string_list
21670 when mode_line_string_list is non-nil.
21671 (Fformat_mode_line): Now returns propertized string by
21672 default. New arg NO-PROPS to ignore properties.
21673 (decode_mode_spec): Only add two dashes for %- in propertized
21674 mode-line string.
21675 (syms_of_xdisp): Init and staticpro mode_line_string_list.
21676
216772002-06-27 Stefan Monnier <monnier@cs.yale.edu>
21678
21679 * minibuf.c (minibuffer_completion_contents): Add return type.
21680
216812002-06-27 Juanma Barranquero <lektu@terra.es>
21682
21683 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
21684
216852002-06-26 Juanma Barranquero <lektu@terra.es>
21686
21687 * fileio.c (read_file_name_cleanup): Add missing return.
21688
216892002-06-26 Richard M. Stallman <rms@gnu.org>
21690
21691 * window.c (Frecenter): Don't set force_start flag.
21692
21693 * minibuf.c (do_completion, Fminibuffer_complete_word)
21694 (Fminibuffer_completion_help): Complete just the text before point.
21695 (minibuffer_completion_contents): New function.
21696
21697 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
21698
21699 * frame.c (frames_bury_buffer): Function deleted.
21700
217012002-06-25 Miles Bader <miles@gnu.org>
21702
21703 * callint.c (Fcall_interactively): When checking to see if doprnt hit
21704 the end of callint_message, allow for a terminating '\0'.
21705
217062002-06-24 Juanma Barranquero <lektu@terra.es>
21707
52eb0373 21708 * w32select.c: Include composite.h.
048addec
JD
21709
21710 * w16select.c: Likewise.
21711
217122002-06-24 Kenichi Handa <handa@etl.go.jp>
21713
21714 * callproc.c (Fcall_process): If code detection is necessary,
21715 call detect_coding directly here.
21716
21717 * coding.c (detect_eol): Preserve coding->cmp_data.
21718
21719 * w16select.c (Fw16_get_clipboard_data):
21720 * w32fns.c (w32_to_x_font):
21721 * w32select.c (Fw32_get_clipboard_data):
21722 * xselect.c (selection_data_to_lisp_data):
21723 * xterm.c (XTread_socket): Disable composition handling.
21724
217252002-06-24 Stefan Monnier <monnier@cs.yale.edu>
21726
21727 * print.c (temp_output_buffer_setup): Kill all local variables.
21728
217292002-06-22 Stefan Monnier <monnier@cs.yale.edu>
21730
21731 * lread.c (Fread): Remove redundant and imprecise declaration.
21732
21733 * xfns.c (check_x_display_info): Use check_x_frame.
21734
21735 * .gdbinit (xprintsym): Use the new `xname' field.
21736 (xsymbol): Use it.
21737
217382002-06-22 Jason Rumney <jasonr@gnu.org>
21739
21740 * w32fns.c (file_dialog_callback): New function.
21741 (Fx_file_dialog): Allow selecting directories as well as files.
21742
217432002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21744
21745 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 21746 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
21747
217482002-06-17 Andrew Choi <akochoi@shaw.ca>
21749
21750 * macterm.c (mac_scroll_area): Set foreground and backcolor to
21751 black and white before scrolling. Restore frame background and
21752 foreground color after scrolling.
21753 (do_window_update): Call XClearWindow before calling expose_frame.
21754 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
21755 FRAME_FOREGROUND_PIXEL of frame.
21756
21757 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
21758 test Mac command key as <ALT> key.
21759
217602002-06-17 Stefan Monnier <monnier@cs.yale.edu>
21761
21762 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
21763
21764 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
21765 Lookup keys in function-key-map immediately so that key-translation-map
21766 can be applied earlier.
21767 Remove function_key_possible and key_translation_possible, replaced
21768 by checking `keytran_start < t'.
21769
21770 * .gdbinit (xsymbol): Use the new `xname' field.
21771
217722002-06-17 Andrew Choi <akochoi@shaw.ca>
21773
21774 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
21775 test Mac command key as <ALT> key.
21776
21777 * mac.c (do_applescript): Call initialize_applescript if necessary
21778 when first called. Dispose of result_desc only when there is no error.
21779 (Fdo_applescript): Use %d format specifier instead of %ld.
21780
217812002-06-16 Andrew Choi <akochoi@shaw.ca>
21782
21783 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
21784 of FrontWindow for cases keyDown and autoKey.
21785
21786 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
21787 Vdefault_fontset to Monaco with mac-roman coding.
21788
21789 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
21790 init_process before and after inclusion of Carbon/Carbon.h, resp.
21791
21792 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
21793 cursor_gc.
21794 (add_font_name_table_entry): New function.
21795 (init_font_name_table): Use add_font_name_table_entry; add italic,
21796 bold, and bold-italic entries for truetype fonts.
21797
21798 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
21799 for Mac too.
21800 (try_font_list) [MAC_OS]: If no font matches given registry, try
21801 fonts with any registry matching face_family.
21802 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
21803
21804 * s/darwin.h: If autoconf detects the Ncurses library, define
21805 LIBS_TERMCAP to -lncurses to use it.
21806
218072002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
21808
21809 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
21810
218112002-06-15 Richard M. Stallman <rms@gnu.org>
21812
21813 * window.c (Fset_window_configuration): Explicitly preserve
21814 the point value that new_current_buffer had at the start.
21815
218162002-06-14 Juanma Barranquero <lektu@terra.es>
21817
21818 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
21819 Fix typos.
21820
218212002-06-14 Kim F. Storm <storm@cua.dk>
21822
21823 * insdel.c (insert_1_both, insert_from_string_1)
21824 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
21825 insert happened in the end_unchanged region. Otherwise, the
21826 redisplay may be confused and duplicate the last line in the
21827 buffer [seen after save-buffer when require-final-newline==t].
21828
218292002-06-13 Jason Rumney <jasonr@gnu.org>
21830
21831 * w32.c (init_environment): Remove EMACSLOCKDIR.
21832 (stat): Swap _S_IFDIR and _S_IFREG.
21833
218342002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21835
21836 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
21837 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
21838 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
21839 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
21840 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
21841 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
21842 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
21843 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
21844 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
21845 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
21846 SELECTION_REQUEST_EVENT, selection_clear_event to
21847 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
21848 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
21849 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
21850 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
21851 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
21852 no_event to NO_EVENT.
21853
218542002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21855
21856 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
21857
218582002-06-12 Stefan Monnier <monnier@cs.yale.edu>
21859
21860 * intervals.c (textget): Don't forget to `return'.
21861 (lookup_char_property): Use XCAR/XCDR.
21862
218632002-06-12 Juanma Barranquero <lektu@terra.es>
21864
21865 * xdisp.c (Fformat_mode_line): Fix typo.
21866
218672002-06-12 Kim F. Storm <storm@cua.dk>
21868
21869 * xdisp.c (Fformat_mode_line): New function.
21870 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
21871 (store_frame_title_char, store_frame_title): Use unconditionally.
21872 (init_xdisp): Defsubr Fformat_mode_line.
21873 Initialize frame_title_buf etc. unconditionally.
21874
218752002-06-11 Stefan Monnier <monnier@cs.yale.edu>
21876
21877 * keyboard.c (read_key_sequence):
21878 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
21879 things through those maps after downcasing events.
21880 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
21881 applies after function-key-map.
21882 Make sure that keytran can be done in the middle in the sequence.
21883 Be careful not to throw away events past the one we downcase.
21884
21885 * lread.c (read_integer): Remove unused var `tem'.
21886 (read1): Fix int/Lisp_Object mixup.
21887
21888 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
21889
218902002-06-11 Richard M. Stallman <rms@gnu.org>
21891
21892 * keyboard.c (readable_events): Ignore any number of
21893 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
21894
218952002-06-09 Miles Bader <miles@gnu.org>
21896
21897 * xfaces.c (Ftty_supports_face_attributes_p): New function.
21898 (parse_rgb_list, tty_lookup_color): New functions.
21899 (tty_defined_color): Use `tty_lookup_color' to do all the work.
21900 (color_distance, Fcolor_distance): New functions.
21901 (TTY_SAME_COLOR_THRESHOLD): New macro.
21902 (Qtty_color_standard_values): New variable.
21903 (syms_of_xfaces): Initialize new vars & functions.
21904
219052002-06-08 Colin Walters <walters@verbum.org>
21906
21907 * textprop.c (Vchar_property_alias_alist): New variable.
21908 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
21909
21910 * intervals.c (lookup_char_property): New function for looking up
21911 overlay and text properties, created from textget.
21912 (textget): Use it.
21913
21914 * intervals.h (lookup_char_property): Declare.
21915 (Vchar_property_alias_alist): Declare.
21916
21917 * buffer.c (Foverlay_get): Use lookup_char_property.
21918
219192002-06-07 Sam Steingold <sds@gnu.org>
21920
21921 * xselect.c (lisp_data_to_selection_data): Fix last change:
21922 *data_ret is not a Lisp string, while unibyte_string is.
21923
219242002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
21925
21926 * xselect.c (lisp_data_to_selection_data): Fix last change:
21927 set size_ret.
21928
219292002-06-07 Andreas Schwab <schwab@suse.de>
21930
21931 * m/amdx86-64.h: New file.
21932
219332002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
21934
21935 * fns.c (Fstring_make_unibyte): Doc fix.
21936
21937 * xselect.c (lisp_data_to_selection_data): If the requested type
21938 is STRING, call string_make_unibyte to encode the selected text
21939 as a string.
21940
21941 * window.c (Fset_window_hscroll): Doc fix.
21942
219432002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21944
21945 * fileio.c (choose_write_coding_system):
21946 Call select-safe-coding-system properly.
21947
219482002-06-03 Richard M. Stallman <rms@gnu.org>
21949
21950 * xdisp.c (message_with_string): Error if STRING is not a string.
21951
21952 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
21953
21954 * fileio.c (choose_write_coding_system): Pass FILE arg to
21955 Vselect_safe_coding_system_function.
21956
219572002-06-03 Ken Raeburn <raeburn@gnu.org>
21958
21959 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
21960
219612002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
21962
21963 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
21964 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
21965 * keymap.c (describe_command): Likewise.
21966 * minibuf.c (read_minibuf): Likewise.
21967
21968 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
21969 Cast `current_column' return value to int.
21970 (back_to_previous_visible_line_start)
21971 (reseat_at_next_visible_line_start, next_element_from_buffer):
21972 Cast `indented_beyond_p' 3rd arg to float.
21973
21974 * indent.c (last_known_column): Now a float.
21975 (current_column_1, position_indentation, current_column)
21976 (string_display_width): Return float.
21977 (Fcurrent_column): Cast `current_column' return value to int.
21978 (Fcurrent_indentation): Cast `position_indentation' retval to int.
21979 (indented_beyond_p): Third arg now a float.
21980 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
21981
21982 * lisp.h (current_column): Now returns float.
21983 (indented_beyond_p): 3rd arg now a float.
21984
219852002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
21986
21987 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
21988 is Qcompound_text_with_extensions.
21989
21990 * xselect.c (lisp_data_to_selection_data): Always set selection
21991 type as string if x_encode_text returns streingp non-NULL.
21992
21993 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
21994
219952002-05-30 Richard M. Stallman <rms@gnu.org>
21996
21997 * window.c (Fset_window_configuration): Correct the handling
21998 of point in current buffer, to work with multiple windows.
21999
220002002-05-29 Colin Walters <walters@verbum.org>
22001
22002 * lread.c (Fread_from_string): Don't depend on order of evaluation
22003 for C function parameters.
22004
220052002-05-28 Richard M. Stallman <rms@gnu.org>
22006
22007 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
22008 way for blinked-off state and for a nonselected window.
22009
22010 * window.c (window_scroll_pixel_based): Don't call Fbolp;
22011 instead, see if the new start pos is at beginning of line.
22012
22013 * fileio.c (Fwrite_region): If START is a string, don't
22014 make any annotations.
22015
22016 * eval.c (syms_of_eval): Doc fix.
22017
220182002-05-28 Colin Walters <walters@debian.org>
22019
22020 * emacs.c (USAGE1): Add --no-splash.
22021 (standard_args): Ditto.
22022
220232002-05-28 Colin Walters <walters@gnu.org>
22024
22025 * lread.c (readchar_count): New variable.
22026 (readchar): Increment it.
22027 (unreadchar): Decrement it.
22028 (read_multibyte): Decrement it.
22029 (Vread_with_symbol_positions): New variable.
22030 (Vread_symbol_positions_list): New variable.
22031 (read_internal_start): New function, created from Fread and
22032 Fread_from_string. Handle Vread_symbol_positions_list and
22033 Vread_with_symbol_positions.
22034 (readevalloop, Fread, Fread_from_string): Use it.
22035 (read1): Use readchar_count to add symbol positions to
22036 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
22037 (syms_of_lread): DEFVAR_LISP and initialize them.
22038
22039 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
22040 (substitute_object_recurse, substitute_object_in_subtree)
22041 (substitute_in_interval): Prototype.
22042 (read_multibyte): Return c if it's less than zero.
22043
220442002-05-28 Kim F. Storm <storm@cua.dk>
22045
22046 * fileio.c (Fread_file_name_internal): Added brute-force
22047 speed up for using predicate file-directory-p.
22048
220492002-05-28 Kim F. Storm <storm@cua.dk>
22050
22051 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
22052 New variables.
22053 (syms_of_fileio): DEFVAR_LISP them.
22054 (read_file_name_cleanup): New unwind function.
22055 (Fread_file_name_internal): Only return completions satifying
22056 Vread_file_name_predicate. Temporarily unwind protect and rebind
22057 default-directory while checking completions against the predicate.
22058 (Fread_file_name): Added PREDICATE argument. Specbind it to
22059 Vread_file_name_predicate during completion.
22060 Call Vread_file_name_function to read the file name if non-nil.
22061
22062 * lisp.h (Fread_file_name): Now has 6 args.
22063
22064 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
22065 predicate for Fread_file_name when reading directory name.
22066 Supply Qnil for predicate in other calls to Fread_file_name.
22067
220682002-05-26 Miles Bader <miles@gnu.org>
22069
22070 * term.c (tty_capable_p): New function.
22071 * dispextern.h (tty_capable_p): New function declaration.
22072 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
22073 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
22074
220752002-05-23 Stefan Monnier <monnier@cs.yale.edu>
22076
22077 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
22078 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
22079 (Vwrite_region_annotate_functions): Docstring fix.
22080
220812002-05-23 Kim F. Storm <storm@cua.dk>
22082
22083 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
22084 phys_cursor's hpos is overwritten. This is still not completely
22085 correct, as it doesn't really make sense to use hpos at all to
22086 get the cursor glyph (as that is relative to the width of the
22087 characters on the line, which may have changed during the update).
22088
220892002-05-22 Jason Rumney <jasonr@gnu.org>
22090
22091 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
22092 Lisp_Object.
22093 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
22094 Use modified enumfont_t struct.
22095
22096 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
22097
22098 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
22099 Handle the `hbar' cursor type.
22100 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
22101
22102 * w32fns.c (Qhbar): New variable.
22103 (x_specified_cursor_type): Use it.
22104
221052002-05-21 Ken Raeburn <raeburn@gnu.org>
22106
22107 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
22108 now, when the address is needed.
22109
221102002-05-21 Colin Walters <walters@gnu.org>
22111
22112 * Makefile.in (shortlisp): Add font-core.el.
22113
221142002-05-20 Richard M. Stallman <rms@gnu.org>
22115
22116 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
22117
22118 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
22119 equivalent key bindings here.
22120
221212002-05-20 Ken Raeburn <raeburn@gnu.org>
22122
22123 Change symbol structure to contain a lisp object for the symbol
22124 name:
22125 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
22126 object field named "xname".
22127 (SYMBOL_NAME): New macro.
22128 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
22129 name field.
22130 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
22131 (mark_object, gc_sweep): Use symbol xname field and XSTRING
22132 instead of name field.
22133 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
22134 SYMBOL_NAME instead of XSYMBOL and name field.
22135 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
22136 instead of XSYMBOL and name field.
22137 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
22138 and SYMBOL_NAME instead of XSYMBOL and name field.
22139 * coding.c (Fread_coding_system, code_convert_region1)
22140 (code_convert_string1, code_convert_string_norecord)
22141 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
22142 XSYMBOL and name field.
22143 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
22144 (Fmake_variable_buffer_local, Fmake_local_variable)
22145 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
22146 of XSYMBOL and name field.
22147 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
22148 XSYMBOL and name field.
22149 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
22150 instead of XSYMBOL and name field.
22151 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
22152 XSYMBOL and name field.
22153 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
22154 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22155 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
22156 instead of XSYMBOL and name field.
22157 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
22158 (parse_modifiers, apply_modifiers, Fevent_convert_list)
22159 (parse_solitary_modifier, Fexecute_extended_command):
22160 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22161 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
22162 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
22163 of XSYMBOL and name field.
22164 (describe_command, describe_translation): Use SYMBOL_NAME and
22165 assignment instead of XSYMBOL and name field and XSETSTRING.
22166 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
22167 instead of XSYMBOL and name field.
22168 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
22169 name field and XSETSTRING.
22170 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
22171 of XSYMBOL and name field.
22172 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
22173 assignment instead of XSYMBOL and name field and XSETSTRING.
22174 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
22175 XSTRING instead of XSYMBOL and name field.
22176 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
22177 and XSTRING instead of XSYMBOL and name field.
22178 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
22179 and XSTRING instead of XSYMBOL and name field.
22180 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
22181 XSTRING instead of XSYMBOL and name field.
22182 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
22183 of XSYMBOL and name field.
22184 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
22185 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
22186
221872002-05-19 Ken Raeburn <raeburn@gnu.org>
22188
22189 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
22190 and XCDR real rvalues in most configurations.
22191
22192 * buffer.c (fix_overlays_in_range, fix_overlays_before):
22193 Don't take the address of the cdr part of a cons cell; instead, track
22194 the parent cell and call XSETCDR, or set the variable for the head
22195 of the list if we haven't started down the list yet.
22196
221972002-05-19 Richard M. Stallman <rms@gnu.org>
22198
22199 * doc.c (reread_doc_file): Don't ask for confirmation.
22200
222012002-05-18 Jason Rumney <jasonr@gnu.org>
22202
22203 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
22204 (xbm_load_image): Use it.
22205 (xbm_load): Ditto.
22206 (xbm_read_bitmap_data): Reverted to xfns.c version.
22207 From David Ponce <david@dponce.com>.
22208
222092002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
22210
22211 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
22212 2.02 and later.
22213
222142002-05-16 Juanma Barranquero <lektu@terra.es>
22215
22216 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
22217
222182002-05-15 Stefan Monnier <monnier@cs.yale.edu>
22219
22220 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
22221 meaningful test.
22222 (read_char_minibuf_menu_prompt): Fix typo.
22223
222242002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
22225
22226 * eval.c (Fcommandp): Doc fix.
22227
222282002-05-13 Stefan Monnier <monnier@cs.yale.edu>
22229
22230 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
22231 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
22232 (Fset_keymap_parent): Gcpro a bit more.
22233 (access_keymap): Gcpro around meta_map call and around the main loop.
22234 (get_keyelt): Gcpro when following indirect references.
22235 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
22236 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
22237 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
22238 Remove useless ad-hoc remap code.
22239
222402002-05-13 Richard M. Stallman <rms@gnu.org>
22241
22242 * search.c (search_buffer): Give up boyer moore search if inverse
22243 translation change charset_base.
22244
222452002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
22246
22247 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
22248 characters is carried over from the previous block of text, adjust
22249 coding->produced to account for the extra character.
22250
222512002-05-11 Andreas Schwab <schwab@suse.de>
22252
22253 * coding.c (intersection): Keep the elements of the returned list
22254 in the same order as in the first list.
22255
222562002-05-11 Kim F. Storm <storm@cua.dk>
22257
3419757d 22258 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
22259 only update cmm_size if realloc actually succeeds.
22260 Testing with initial size of 2 elements revealed that using
22261 realloc on GNU/Linux would cause a random trap in xmalloc
22262 later on, so I rewrote the code to use malloc/bcopy/free instead
22263 of realloc.
22264
222652002-05-10 Jason Rumney <jasonr@gnu.org>
22266
22267 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
22268
222692002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
22270
22271 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
22272 parens, to ensure correct evaluation order.
22273
222742002-05-10 Kim F. Storm <storm@cua.dk>
22275
22276 * keymap.c (Vemulation_mode_map_alists): New variable.
22277 (syms_of_keymap): DEFVAR_LISP it.
22278 (current_minor_maps): Process keymap alists in that list before
22279 minor-mode-overriding-map-alist and minor-mode-map-alist.
22280
222812002-05-09 Richard M. Stallman <rms@gnu.org>
22282
22283 * search.c (Freplace_match): Doc fix.
22284
222852002-05-09 Kim F. Storm <storm@cua.dk>
22286
22287 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
22288 Enlarge cursor rectangle drawn around image with non-zero relief.
22289
22290 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
22291 Enlarge cursor rectangle drawn around image with non-zero relief.
22292
22293 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
22294 Enlarge cursor rectangle drawn around image with non-zero relief.
22295
222962002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
22297
22298 * xselect.c (lisp_data_to_selection_data): Don't set selection
22299 type if comes from the Lisp object's car. If the selection
22300 contains a pure ASCII text, always return QSTRING as its type.
22301
223022002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22303
22304 * mac.c (mac-cut-function): Doc fix.
22305
223062002-05-05 Richard M. Stallman <rms@gnu.org>
22307
22308 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
22309
223102002-05-04 Jason Rumney <jasonr@gnu.org>
22311
22312 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
22313 for event-click-count.
22314
22315 * process.c (init_process): Only add server subfeature if we can
22316 use non-blocking I/O.
22317
223182002-05-04 Andrew Choi <akochoi@shaw.ca>
22319
22320 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
22321 repeatedly.
22322
223232002-05-03 Jason Rumney <jasonr@gnu.org>
22324
22325 * process.c (Fmake_network_process): Only support server sockets
22326 when we can make them non-blocking.
22327
22328 * s/ms-w32.h (HAVE_SELECT): Define.
22329
22330 * w32.h (FILE_NDELAY): New flag.
22331
22332 * w32.c (sys_getpeername, fcntl): New functions.
22333 (_sys_read_ahead): Temporarily block on non-blocking sockets.
22334
2d4713aa 22335 * w32proc.c: Include sys/file.h.
048addec
JD
22336
223372002-05-03 Colin Walters <walters@verbum.org>
22338
22339 * callproc.c (Vgame_score_directory): Renamed to
22340 Vshared_game_score_directory.
22341
223422002-04-30 Richard M. Stallman <rms@gnu.org>
22343
22344 * s/gnu.h [emacs]: Include stdio.h.
22345 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
22346
22347 * eval.c (do_autoload): Error if called while preparing to dump.
22348
22349 * fns.c (Frequire): Error if need to load while preparing to dump.
22350
223512002-04-28 Colin Walters <walters@verbum.org>
22352
22353 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
22354 Default to "~/.emacs.d/games".
22355
223562002-04-29 Stefan Monnier <monnier@cs.yale.edu>
22357
22358 * lread.c (openp): Change arg exec_only to predicate.
22359 (build_load_history): Use XCAR/XCDR.
22360 (Flocate_file_internal): New fun.
22361 (syms_of_lread): Defsubr it.
22362 (Fload): Update call to openp.
22363
22364 * lisp.h (openp): Update prototype.
22365
22366 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
22367 * w32proc.c (sys_spawnve):
22368 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
22369 * w32.c (check_windows_init_file):
22370 * sound.c (Fplay_sound_internal):
22371 * process.c (Fstart_process):
22372 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
22373 * mac.c (run_mac_command):
22374 * emacs.c (init_cmdargs):
22375 * callproc.c (Fcall_process): Update call to openp.
22376
22377 * textprop.c (remove_properties): Don't use XCAR without CONSP.
22378
22379 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
22380
223812002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22382
22383 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
22384 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
22385
223862002-04-28 Richard M. Stallman <rms@gnu.org>
22387
22388 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
22389
22390 * eval.c (Fcommandp): New arg for_call_interactively.
22391 * lisp.h (Fcommandp): Declare new arg.
22392
223932002-04-28 Jason Rumney <jasonr@gnu.org>
22394
22395 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
22396
22397 * w32.c (stat, fstat): Use file index information to generate
22398 inodes for directories where available.
22399
224002002-04-26 Andrew Choi <akochoi@shaw.ca>
22401
22402 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
22403 [HAVE_CARBON]: Include Mac object files.
22404
22405 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
22406 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
22407 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
22408 MAC_OSX, and MAC_OS instead of macintosh.
22409
22410 * editfns.c [MAC_OS8]: Include stdio.h.
22411
22412 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
22413
22414 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
22415 Apple Monaco.
22416
78819ebb 22417 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
22418 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
22419 calling select.
22420
22421 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
22422
22423 * tparam.c [MAC_OSX]: Don't define BC and UP.
22424
22425 * config.in [HAVE_CARBON]: Add.
22426
22427 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
22428 Move here from mac/src and mac/inc.
22429
22430 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
22431
224322002-04-26 Gerd Moellmann <gerd@gnu.org>
22433
22434 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
22435 Compute phys_cursor_width from the x position returned
22436 by x_draw_glyhs, which is cheaper.
22437 (x_display_and_set_cursor): Compute the buffer-local value
22438 of `cursor-in-non-selected-windows' only when needed.
22439
224402002-04-25 Gerd Moellmann <gerd@gnu.org>
22441
22442 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
22443 cursor on a stretch glyph has a width that depends on
22444 x_stretch_cursor_p.
22445
224462002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22447
22448 * abbrev.c (abbrev-start-location): Doc fix.
22449
22450 * indent.c (Fvertical_motion): Fix last change.
22451
224522002-04-25 Gerd Moellmann <gerd@gnu.org>
22453
22454 * indent.c (Fvertical_motion): Move to the start of the line
22455 containing PT before moving up or down.
22456
224572002-04-24 Gerd Moellmann <gerd@gnu.org>
22458
22459 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
22460 case of writing a whole row, more or less analogous to the case of
22461 writing only parts of a row.
22462
22463 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
22464 0 for NO_CURSOR.
22465
22466 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
22467
224682002-04-23 Colin Walters <walters@verbum.org>
22469
22470 * buffer.c (syms_of_buffer): Doc fix.
22471
224722002-04-23 Gerd Moellmann <gerd@gnu.org>
22473
22474 * xterm.c (notice_overwritten_cursor): Handle the special case
22475 of the cursor being in the first blank non-text line at the
22476 end of a window.
22477
22478 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
22479 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
22480 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
22481 bar cursors only, to make phys_cursor_width contain what its name
22482 suggests.
22483 (notice_overwritten_cursor): Consider the cursor image erased if
22484 the output area intersects the cursor image in y-direction.
22485
224862002-04-23 Simon Marshall <simon@gnu.org>
22487
22488 * xfns.c (x_set_mouse_color): Change default for cross_cursor
22489 to XC_hand2.
22490
224912002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22492
22493 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
22494
224952002-04-22 Kim F. Storm <storm@cua.dk>
22496
22497 * textprop.c (remove_properties): Fixed trap for malformed plist.
22498
224992002-04-22 Richard M. Stallman <rms@gnu.org>
22500
22501 * cmds.c (Fend_of_line): Handle intangible text in mid line.
22502
22503 * window.c (make_window): Initialize height_fixed_p,
22504 last_cursor_off_p, and p->cursor_off_p slots.
22505
225062002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22507
22508 * fns.c (use-dialog-box): Doc fix.
22509
225102002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22511
22512 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
22513 variables `row', `i' and `area'.
22514 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
22515 toolkit library.
22516
225172002-04-19 Stefan Monnier <monnier@cs.yale.edu>
22518
22519 * xfaces.c (clear_font_table): Don't free the default font of
22520 a frame even if it's on another display.
22521 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
22522 that could be Qt.
22523
225242002-04-19 Juanma Barranquero <lektu@terra.es>
22525
22526 * indent.c (Fmove_to_column): Remove unused local variable
22527 `next_boundary_byte'.
22528 (current_column_1): Likewise.
22529
225302002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
22531
22532 * msdos.c (Qhbar): New variable.
22533 (syms_of_msdos): Intern and staticpro it.
22534 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
22535 cursor type.
22536
225372002-04-19 Dave Lambert <dlambert@acm.org>
22538
22539 Theses change implement an underscore-like (`hbar') cursor.
22540
22541 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
22542
22543 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
22544 Handle the `hbar' cursor type.
22545 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
22546
22547 * xfns.c (Qhbar): New variable.
22548 (syms_of_xfns): Intern and staticpro it.
22549 (x_specified_cursor_type): Handle `hbar' cursor.
22550
22551 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
22552 not defined.
22553
225542002-04-18 Richard M. Stallman <rms@gnu.org>
22555
22556 * textprop.c (remove_properties): New arg LIST allows scanning
22557 either a list or a plist.
22558 (interval_has_some_properties_list): New function, like
22559 interval_has_some_properties using list instead of plist.
22560 All callers changed.
22561 (Fremove_list_of_text_properties): New function.
22562 (syms_of_textprop): Defsubr it.
22563
225642002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
22565
22566 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
22567
225682002-04-17 Juanma Barranquero <lektu@terra.es>
22569
22570 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
22571
225722002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
22573
22574 * window.c (coordinates_in_window): Don't report on margin area
22575 if its width is zero.
22576
225772002-04-16 Jason Rumney <jasonr@gnu.org>
22578
22579 * w32fns.c (Fx_file_dialog): Decode file name before using.
22580
22581 * w32term.c (construct_drag_n_drop): Likewise.
22582
225832002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
22584
22585 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
22586 store load-history in pure space.
22587
22588 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
22589
225902002-04-16 Stefan Monnier <monnier@cs.yale.edu>
22591
22592 * xterm.c (Qlatin_1, Qutf_8): New vars.
22593 (syms_of_xterm): Initialize them.
22594 (XTread_socket): Eliminate incorrect optimization that tried to avoid
22595 decoding the output of X*LookupString.
22596 Always use latin-1 to decode the output of XLookupString.
22597 Try Xutf8LookupString if XmbLookupString failed.
22598
22599 * region-cache.c (new_region_cache): Use BEG.
22600
226012002-04-16 Gerd Moellmann <gerd@gnu.org>
22602
22603 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
22604 configuration files.
22605 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
22606 returns 0.
22607
226082002-04-15 Andreas Schwab <schwab@suse.de>
22609
22610 * config.in: Regenerated using autoheader.
22611
22612 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
22613 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
22614 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
22615 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
22616 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
22617 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
22618 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
22619 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
22620 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
22621 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
22622 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
22623 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
22624 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
22625 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
22626 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
22627 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
22628 STACK_DIRECTION, now set by autoconf.
22629
226302002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22631
22632 * dispnew.c (marginal_area_string): Sort arguments.
22633
22634 * dispextern.h (marginal_area_string): Add prototype.
22635
226362002-04-13 Richard M. Stallman <rms@gnu.org>
22637
22638 * fileio.c (Finsert_file_contents):
22639 Don't call temp_output_buffer_setup--do just part, by hand.
22640
22641 * coding.c (run_pre_post_conversion_on_str):
22642 Don't call temp_output_buffer_setup--do just part, by hand.
22643
22644 * keyboard.c (command_loop_1): Don't call start_hourglass
22645 or cancel_hourglass when executing a macro.
22646
22647 * marker.c (count_markers): New function.
22648
22649 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
22650 grow without limit. Move recently used elements to the front.
22651
226522002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
22653
22654 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
22655
226562002-04-12 Gerd Moellmann <gerd@gnu.org>
22657
22658 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
22659 rows marginal areas.
22660 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
22661 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
22662
22663 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
22664
226652002-04-12 Dave Love <fx@gnu.org>
22666
22667 * dispnew.c (marginal_area_string): New.
22668
22669 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
22670 (Qleft_margin, Qright_margin): Declare.
22671 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
22672
22673 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
22674 note_mode_line_highlight and extended.
22675
22676 * keyboard.c (Qleft_margin, Qright_margin): Declare.
22677 (make_lispy_event): Deal with mouse events in margins.
22678
226792002-04-12 Stefan Monnier <monnier@cs.yale.edu>
22680
22681 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
22682
22683 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
22684 than deactivating the mark if tmm is set to `lambda'.
22685 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
22686 Use a single event for HELP_EVENT.
22687 (Fexecute_extended_command): Save last_point_position.
22688
226892002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22690
22691 * lisp.h (Fpropertize): Add prototype.
22692
22693 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
22694
226952002-04-10 Colin Walters <walters@verbum.org>
22696
22697 * config.in: Add HAVE_SHARED_GAME_DIR.
22698
52eb0373 22699 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
22700 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
22701
227022002-04-10 Richard M. Stallman <rms@gnu.org>
22703
22704 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
22705
227062002-04-09 Stefan Monnier <monnier@cs.yale.edu>
22707
22708 * minibuf.c (read_minibuf): Use empty_string.
22709 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
22710 Short-circuit the search as soon as it "failed".
22711 (Fall_completions): Allow lambda forms and lists of strings for alist.
22712 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
22713 when require_match is nil.
22714 (Ftest_completion): Rename from `test_completion' and export to elisp.
22715 Call the predicate also when alist is a list.
22716 Obey Vcompletion_regexp_list.
22717 (do_completion, Fminibuffer_complete_and_exit): Use it.
22718 (Fassoc_string): Rename from `assoc_for_completion'.
22719 Allow list of strings as well and export to elisp.
22720
227212002-04-08 Stefan Monnier <monnier@cs.yale.edu>
22722
22723 * puresize.h (BASE_PURESIZE): Increase to 900KB.
22724
227252002-04-08 Juanma Barranquero <lektu@terra.es>
22726
22727 * w32.c (sys_accept): Don't hide variable `s'.
22728
227292002-04-05 Gerd Moellmann <gerd@gnu.org>
22730
22731 * callint.c (Fcall_interactively): Use INTEGERP instead of
22732 NUMBERP for checking Vhistory_length.
22733
227342002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22735
22736 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
22737 Doc fix to reflect it.
22738
227392002-04-04 Richard M. Stallman <rms@gnu.org>
22740
22741 * xdisp.c (display_mode_element): New arg RISKY.
22742 Disregard text props found or specified within a variable
22743 that isn't marked risky-local-variable.
22744 (Qrisky_local_variable): New variable.
22745 (syms_of_xdisp): Init and staticpro it.
22746
227472002-04-04 Stefan Monnier <monnier@cs.yale.edu>
22748
22749 * undo.c (record_point): New fun.
22750 (record_delete, record_insert): Use it.
22751
227522002-04-03 Juanma Barranquero <lektu@terra.es>
22753
22754 * doc.c (Fdocumentation): Add missing parentheses.
22755 (Fdocumentation_property): Likewise.
22756
227572002-04-03 Stefan Monnier <monnier@cs.yale.edu>
22758
22759 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
22760 data is 0, just return nil.
22761
227622002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
22763
22764 * msdos.c (syms_of_msdos): Fix last change with
22765 mouse_autoselect_window.
22766
227672002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22768
22769 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
22770 mouse_autoselect_window.
22771
227722002-04-02 Stefan Monnier <monnier@cs.yale.edu>
22773
22774 * keyboard.c (make_lispy_event): Handle unknown keysyms together
22775 with system-specific keysyms. Use it also for unknown function keys.
22776
22777 * doc.c (reread_doc_file): Return whether reload was attempted.
22778 (Fdocumentation, Fdocumentation_property): Don't try to reload
22779 if the doc is 0 and only ask once.
22780
22781 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
22782
227832002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
22784
22785 * keyboard.c (read_char): If the event was Qselect_window,
22786 restore timer_idleness_start_time to its previous value.
22787
22788 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
22789
227902002-04-01 Stefan Monnier <monnier@cs.yale.edu>
22791
22792 * region-cache.c (new_region_cache): Use BEG.
22793
22794 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
22795 Use BEG and BEG_BYTE.
22796
22797 * doc.c (get_doc_string): Return nil if the location is wrong.
22798 (reread_doc_file): New fun.
22799 (Fdocumentation, Fdocumentation_property):
22800 Call it if get_doc_string fails.
22801 (Fsnarf_documentation): Make it work for a dumped Emacs.
22802
22803 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
22804 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
22805
22806 * charset.c (Fstring): Allow 0 arguments.
22807
22808 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
22809
22810 * process.c (DATAGRAM_CONN_P, list_processes_1)
22811 (Fprocess_datagram_address, Fset_process_datagram_address)
22812 (Fset_network_process_options, server_accept_connection):
22813 Fix some int/Lisp_Object confusions (thank you union types).
22814
228152002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22816
22817 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
22818
22819 * w32term.c: Likewise.
22820 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
22821
22822 * keyboard.c (Qselect_window): New symbol.
22823 (head_table): Use it.
22824 (keys_of_keyboard): Bound select-window event to handle-select-window.
22825 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
22826
22827 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
22828 (last_window): New variable.
22829 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
22830 (note_mouse_movement): Remove reimplemented code in #if 0.
22831 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
22832 Emacs windows.
22833
22834 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
22835
228362002-03-31 Gerd Moellmann <gerd@gnu.org>
22837
22838 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
22839 Callers changed.
22840
228412002-03-30 Richard M. Stallman <rms@gnu.org>
22842
22843 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
22844 loop whenever it stops making progress.
22845
22846 * widget.c (set_frame_size): Don't call change_frame_size.
22847
228482002-03-30 Gerd Moellmann <gerd@gnu.org>
22849
22850 * dispnew.c (direct_output_for_insert):
22851 Call mark_window_display_accurate.
22852
228532002-03-29 Jason Rumney <jasonr@gnu.org>
22854
22855 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
22856
228572002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
22858
22859 * Makefile.in (lread.o): Depend on coding.h.
22860
22861 * lread.c (openp, Fload): Encode the file name before passing it
22862 to `stat', `access', and `emacs_open'.
22863 (openp): GCPRO the encoded file name. Don't recompute Lisp
22864 strings unnecessarily.
22865
228662002-03-29 Kim F. Storm <storm@cua.dk>
22867
22868 * fns.c (Flax_plist_put): Doc fix.
22869
228702002-03-28 Miles Bader <miles@gnu.org>
22871
22872 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
22873
228742002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22875
22876 * process.c (set-network-process-options): Add usage.
22877 (make-network-process): Doc fix.
22878
228792002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
22880
22881 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
22882
228832002-03-26 Richard M. Stallman <rms@gnu.org>
22884
22885 * fns.c (Fsubstring_no_properties): New function.
22886 (Flax_plist_get, Flax_plist_put): New functions.
22887 (syms_of_fns): defsubr them.
22888
22889 * xdisp.c (update_menu_bar): Test only update_mode_lines;
22890 don't test or alter w->update_mode_line.
22891
22892 * window.c (Fdisplay_buffer): Doc fix.
22893
228942002-03-24 Richard M. Stallman <rms@gnu.org>
22895
22896 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
22897
228982002-03-24 Gerd Moellmann <gerd@gnu.org>
22899
22900 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
22901 (Fdefmacro): Handle `(declare ...)'.
22902 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
22903 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
22904
229052002-03-24 Jason Rumney <jasonr@gnu.org>
22906
22907 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
22908 (xbm_file_p): Add prototypes.
22909 (xbm_format, xbm_image_p): Sync with xfns.c.
22910 (reflect_byte): New function.
22911 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
22912 (xbm_load_image): Create bitmaps with a depth of 1.
22913 (init_xfns): Enable XBM images.
22914
229152002-03-23 Jason Rumney <jasonr@gnu.org>
22916
22917 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
22918 correctly. Do not pass up_modifier to keyboard buffer.
22919
22920 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
22921
229222002-03-22 Stefan Monnier <monnier@cs.yale.edu>
22923
22924 * Makefile.in (bootstrapclean): New target.
22925 (bootstrap-temacs, bootstrap-doc): Remove.
22926 (bootstrap-emacs): Use a bog-standard `temacs'.
22927 Don't bother to build a DOC file.
22928
22929 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
22930
22931 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
22932 in temacs even if !CANNOT_DUMP.
22933 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
22934
22935 * alloc.c (check_pure_size): Only output a warning.
22936
229372002-03-22 Jason Rumney <jasonr@gnu.org>
22938
22939 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
22940 supported.
22941
22942 * w32term.c (zv_bits): Declare as short, for word alignment.
22943 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
22944 (syms_of_w32term): Define x-use-underline-position-properties.
22945
22946 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
22947 (clear_image_cache): Block input, fix logic, clear matrices in
22948 all frames that share this cache.
22949
229502002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
22951
22952 * emacs.c (main): Update the Copyright year in the blurb printed
22953 by "emacs --version".
22954
22955 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
22956
22957 * xterm.c (XTread_socket): If XK_ISO_Lock and
22958 XK_ISO_Last_Group_Lock are defined, handle keysyms between
22959 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
22960
229612002-03-21 Kim F. Storm <storm@cua.dk>
22962
22963 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
22964 menu-bar bindings in keymap and local-map properties _are_ used.
22965 But try keymap property first in accordance with 2002-01-03 patch.
22966 Added comment describing why this is not always reliable.
22967 (tool_bar_items): Ditto for tool-bar.
22968
229692002-03-21 Jason Rumney <jasonr@gnu.org>
22970
22971 * w32fns.c (x_clear_image_1): Disable color table code.
22972
229732002-03-21 Kim F. Storm <storm@cua.dk>
22974
22975 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
22976 removed the wrong version of the DEFUN macro; fixed it.
22977
22978 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
22979 Fmember rather than Fmemq).
22980 (Fprovide): Check that subfeatures is a list.
22981
22982 * process.c (QCfeature, QCdatagram): Removed variables.
22983 (QCtype, Qdatagram): New variables.
22984 (network_process_featurep): Removed function.
22985 (Fmake_network_process): Removed :feature check.
22986 Use :type 'datagram instead of :datagram t to create a datagram
22987 socket. This allows us to add other connection types (e.g. raw
22988 sockets) later in a consistent manner.
22989 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
22990 supported subfeatures for feature make-network-process.
22991 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
22992 Intern and staticpro QCtype and Qdatagram.
22993 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
22994
9dd28cae 22995 * xfns.c (QCtype): Remove duplicate declaration and
048addec
JD
22996 initialization (is now declared in process.c).
22997
9dd28cae 22998 * w32fns.c (QCtype): Remove duplicate declaration and
048addec
JD
22999 initialization (is now declared in process.c).
23000
230012002-03-21 Richard M. Stallman <rms@gnu.org>
23002
23003 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
23004 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
23005 when jumping to `fail' to avoid undoing reg changes in the
23006 last iteration of the loop.
23007 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
23008
23009 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
23010 Depend on process.h.
23011
230122002-03-20 Jason Rumney <jasonr@gnu.org>
23013
23014 Most of the following changes are still conditional on HAVE_IMAGES
23015 which is not set by default on Windows.
23016
23017 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
23018
23019 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
23020 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
23021 (four_corners_best, x_clear_image_1, x_clear_image)
23022 (x_alloc_image_color, postprocess_image)
23023 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
23024 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
23025 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
23026
23027 * w32gui.h (struct XImage): Define.
23028
23029 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
23030 extract mouse co-ordinates.
23031
230322002-03-20 Jason Rumney <jasonr@gnu.org>
23033
23034 * w32.c (init_winsock): Dynamically load new server and UDP
23035 socket functions.
23036 (socket_to_fd): New function.
23037 (sys_socket): Use it.
23038 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
23039 (sys_recvfrom, sys_sendto): New wrapper functions.
23040
23041 * process.c (QCfamily, QCfilter): Remove duplicate declaration
23042 and initialization.
23043
23044 * makefile.w32-in (LIBS): Remove $(WSOCK32).
23045
230462002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
23047
23048 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
23049 Don't use "sun" as a variable, it's a predefined constant on Sun
23050 machines.
23051
230522002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23053
23054 * bytecode.c (Fbyte_code): Revert last change.
23055
230562002-03-19 Kim F. Storm <storm@cua.dk>
23057
23058 * makefile.w32-in (LIBS): Add $(WSOCK32).
23059 From David Ponce <dponce@voila.fr>.
23060
230612002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23062
23063 * process.c (wait_reading_process_input): Move variables `pname'
23064 and `pnamelen' down where they are used.
23065
23066 * bytecode.c (Fbyte_code): Discard unused computed value to
23067 prevent gcc warning.
23068
23069 * lisp.h (Fplist_member): Add prototype.
23070
230712002-03-18 Kim F. Storm <storm@cua.dk>
23072
23073 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
23074 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
23075
23076 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
23077 Remove explicit GNU_LINUX settings for datagram support.
23078
230792002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23080
23081 * process.c (Fmake_network_process): Remove unused variable `sa'.
23082 Doc fix. Add usage:.
23083 (set_socket_options): Remove unused variables `optnum' and `opttype'.
23084
230852002-03-17 Richard M. Stallman <rms@gnu.org>
23086
23087 * xdisp.c (cursor_type_changed): New variable.
23088 (redisplay_internal): Redisplay all windows if cursor_type_changed.
23089 Clear it when clearing windows_or_buffers_changed.
23090 (try_cursor_movement, redisplay_window, try_window_id)
23091 (try_window_reusing_current_matrix): Test cursor_type_changed
23092 along with windows_or_buffers_changed.
23093
23094 * window.h (cursor_type_changed): New variable.
23095
23096 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
23097 not update_mode_lines, and always set it to 1.
23098
23099 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
23100 if no frames needed redrawing.
23101
231022002-03-17 Kim F. Storm <storm@cua.dk>
23103
23104 The following changes add support for network server processes,
23105 datagram connections, and local (unix) sockets.
23106
23107 * process.h (struct Lisp_Process): New member log.
23108 Doc fix: Member command used to indicate stopped network process.
23109 Doc fix: Member childp contains plist for network process.
23110 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
23111
23112 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
9dd28cae 23113 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
647b07d1
AS
23114 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
23115 variables.
048addec
JD
23116 (NETCONN1_P): New macro.
23117 (DATAGRAM_SOCKETS): New conditional symbol.
23118 (datagram_address): New array.
23119 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
23120 (status_message): Use concat3.
647b07d1
AS
23121 (Fprocess_status): Add `listen' status to doc string. Return
23122 `stop' for a stopped network process.
048addec
JD
23123 (Fset_process_buffer): Update contact plist for network process.
23124 (Fset_process_filter): Ditto. Don't enable input for stopped
23125 network processes. Server must listen, even if filter is t.
23126 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
23127 New functions.
23128 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
23129 (Fprocess_contact): Added KEY argument. Handle datagrams.
23130 (list_processes_1): Optionally show only processes with the query
23131 on exit flag set. Dynamically adjust column widths. Omit tty
647b07d1
AS
23132 column if not needed. Report stopped network processes. Identify
23133 server and datagram network processes.
048addec
JD
23134 (Flist_processes): New optional arg `query-only'.
23135 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
23136 (conv_lisp_to_sockaddr, set_socket_options)
647b07d1
AS
23137 (network_process_featurep, unwind_request_sigio): New helper
23138 functions.
048addec
JD
23139 (Fprocess_datagram_address, Fset_process_datagram_address):
23140 (Fset_network_process_options): New lisp functions.
23141 (Fopen_network_stream): Removed. Now defined in simple.el.
647b07d1
AS
23142 (Fmake_network_process): New lisp function. Code is based on
23143 previous Fopen_network_stream, but heavily reworked with new
23144 property list based argument list, support for datagrams, server
23145 processes, and local sockets in addition to old client-only
23146 functionality.
048addec
JD
23147 (server_accept_connection): New function.
23148 (wait_reading_process_input): Use it to handle incoming connects.
23149 Do not enable input on a new connection if process is stopped.
647b07d1
AS
23150 (read_process_output): Handle datagram sockets. Use 2k buffer for
23151 them.
048addec 23152 (send_process): Handle datagram sockets.
647b07d1
AS
23153 (Fstop_process, Fcontinue_process): Apply to network processes. A
23154 stopped network process is indicated by setting command field to t.
048addec
JD
23155 (Fprocess_send_eof): No-op if datagram connection.
23156 (Fstatus_notify): Don't read input for a stream server socket or a
23157 stopped network process.
23158 (init_process): Initialize datagram_address array.
23159 (syms_of_process): Intern and staticpro new variables, defsubr new
23160 functions.
23161
231622002-03-16 Jason Rumney <jasonr@gnu.org>
23163
23164 * w32fns.c (w32_to_all_x_charsets): Return correct type in
23165 startup case.
23166
231672002-03-16 Richard M. Stallman <rms@gnu.org>
23168
23169 * xdisp.c (redisplay_internal, redisplay_windows):
23170 Use list_of_error to call internal_condition_case_1.
23171 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
23172 so as to catch all errors with no possibility of debugger redisplay.
23173 (list_of_error): New variable.
23174 (syms_of_xdisp): Init and staticpro it.
23175
23176 * print.c (print_object): Delete `\ ' from printed rep of frame.
23177
231782002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
23179
23180 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
23181 until its implementation is fixed.
23182
231832002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23184
23185 * xfns.c (png_load): Remove unused variable `gamma_str'.
23186
231872002-03-14 Richard M. Stallman <rms@gnu.org>
23188
23189 * xfns.c (x_real_positions): Handle failure in XQueryTree.
23190
231912002-03-14 Miles Bader <miles@gnu.org>
23192
23193 * intervals.c (adjust_for_invis_intang): New function.
23194 (set_point_both): Use `adjust_for_invis_intang' to do most of the
23195 work for dealing with invisible+intangible regions. Do so before
23196 and after both forward and backward movements, to handle both
23197 front-sticky and rear-sticky cases.
23198 * textprop.c (text_property_stickiness): Function moved here from
23199 `editfns.c'.
23200 * intervals.h (text_property_stickiness): New declaration.
23201 * editfns.c (char_property_eq): Function removed.
23202 (text_property_stickiness): Function moved to `textprop.c'.
23203
232042002-03-13 Jason Rumney <jasonr@gnu.org>
23205
23206 * config.in: Add STRFTIME_NO_POSIX2.
23207
23208 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
23209 and %OX when underlying strftime does not.
23210
232112002-03-13 Stefan Monnier <monnier@cs.yale.edu>
23212
23213 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
23214 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
23215 line) to avoid annoying flicker.
23216 (xm_scroll_callback): Get rid of the now unnecessary kludge.
23217 (XTread_socket): Mark it static.
23218
23219 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
23220
232212002-03-13 Kim F. Storm <storm@cua.dk>
23222
23223 * puresize.h (BASE_PURESIZE): Increase to 775000.
23224
232252002-03-12 Juanma Barranquero <lektu@terra.es>
23226
23227 * editfns.c (syms_of_editfns): Fix typo.
23228
232292002-03-12 Gerd Moellmann <gerd@gnu.org>
23230
23231 * xsmfns.c: Include stdio.h because termhooks.h needs it.
23232 Include termopt.h for interrupt_input.
23233
232342002-03-11 Andreas Schwab <schwab@suse.de>
23235
23236 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
23237
232382002-03-11 Gerd Moellmann <gerd@gnu.org>
23239
23240 * xterm.c (note_mouse_movement): Put code for
23241 x_autoselect_window_p in #if 0.
23242
23243 * lread.c (Fload): Don't assume that message_with_string uses the
23244 string it is given like a C string.
23245
232462002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23247
78819ebb 23248 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 23249
52eb0373 23250 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
23251 x_session_have_connection.
23252 (x_initialize): Add call to x_session_initialize.
23253
23254 * termhooks.h (enum event_kind): Add save_session_event.
23255
23256 * keyboard.c: Add Emacs event save_session_event.
23257
23258 * emacs.c (main): Add call to syms_of_xsmfns.
23259
78819ebb 23260 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
23261
23262 * config.in: Add HAVE_X_SM.
23263
23264 * Makefile.in (LIBXT): Add -lSM -lICE
23265 if HAVE_X_SM and not USE_X_TOOLKIT.
23266 (XOBJ): New file xsmfns.c added.
23267
23268 * xsmfns.c: New file for X session management.
23269
232702002-03-09 Jason Rumney <jasonr@gnu.org>
23271
23272 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
23273 read-only when setting modified time.
23274
232752002-03-08 Gerd Moellmann <gerd@gnu.org>
23276
23277 * xdisp.c (move_it_vertically_backward): At the end of the function,
23278 when moving forward by lines, treat terminal frames specially.
23279
23280 * keyboard.c (echo_char): Make sure to add a separator between
23281 keys even if echo_dash hasn't been called.
23282
23283 * xdisp.c: Use new string macros.
23284 (update_echo_area): Pass number of bytes to message3 instead of
23285 number of chars.
23286 (set_message_1): Don't access a string's size_byte directly.
23287 (decode_mode_spec_coding): Use number of bytes of eoltype string
23288 instead number of chars.
23289
23290 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
23291
232922002-03-08 Juanma Barranquero <lektu@terra.es>
23293
23294 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
23295 24-bit.
23296
232972002-03-06 Jason Rumney <jasonr@gnu.org>
23298
23299 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
23300
233012002-03-06 Gerd Moellmann <gerd@gnu.org>
23302
23303 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
23304 (cancel_echoing, echo_length, echo_truncate): Changed to
23305 work with new kboard definition.
23306 (echo_now): Use message3_nolog instead of message2_nolog.
23307
23308 * alloc.c (mark_kboards): Mark echo_string.
23309
23310 * keyboard.h (ECHOBUFSIZE): Removed.
23311 (struct kboard): Member echoptr removed, member echobuf renamed
23312 to echo_string.
23313
23314 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
23315 message3 instead of message2 to display the message using STRING's
23316 text properties.
23317
233182002-03-05 Andreas Schwab <schwab@suse.de>
23319
23320 * xdisp.c (hscroll_margin): Change to EMACS_INT.
23321
233222002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
23323
23324 * frame.c (default-frame-alist): Explain that setting it doesn't
23325 affect existing frames.
23326
233272002-03-05 Stefan Monnier <monnier@cs.yale.edu>
23328
23329 * indent.c (skip_invisible): Fix my brain fart.
23330
23331 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
23332
233332002-03-04 Stefan Monnier <monnier@cs.yale.edu>
23334
23335 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
23336 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
23337 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
23338 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
23339 and variables to use EMACS_INT instead of just int.
23340
23341 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
23342
233432002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
23344
23345 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
23346 environment, pass it down with corrected value.
23347
233482002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23349
23350 * lread.c (read_filtered_event): Do not call start_hourglass
23351 before returning.
23352
233532002-03-04 Juanma Barranquero <lektu@terra.es>
23354
23355 * w32term.c (x_display_and_set_cursor): Fix typo.
23356
233572002-03-03 Richard M. Stallman <rms@gnu.org>
23358
23359 * fileio.c (Fmake_temp_name): Doc fix.
23360
233612002-03-03 Gary Wong <gtw@gnu.org>
23362
23363 * termcap.c [!emacs]: Replace ospeed for building standalone
23364 libtermcap, for binary compatibility.
23365
23366 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
23367
233682002-03-03 Richard M. Stallman <rms@gnu.org>
23369
23370 * xrdb.c (file_p): Rename arg `path' to `filename'.
23371
23372 * abbrev.c (Fexpand_abbrev): Increment plist as use count
23373 only if it is an integer.
23374
23375 * xfns.c (png_load): Set screen_gamma based on f->gamma.
23376 If png_get_sRGB gives an answer, call png_set_gamma
23377 using the default image gamma value.
23378
23379 * lread.c (read1): When reading from a file, default string to
23380 multibyte only if it has some multibyte characters.
23381
23382 * print.c (print_object): Output multibyte chars 128...255
23383 using \x even if ! print_escape_multibyte.
23384
23385 * xdisp.c (display_mode_element): Move the places where
23386 bytepos, charpos, this, and lisp_string are set.
23387 Use lisp_string to set bytepos.
23388
23389 * xdisp.c (redisplay_internal):
23390 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
23391
23392 * xdisp.c (display_mode_element): Merge properties specified with
23393 :propertize onto those that come with the string.
23394
233952002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
23396
23397 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
23398 automatic-hscrolling. Users changed.
23399 <hscroll-margin>: Renamed from automatic-hscroll-margin.
23400 Users changed.
23401 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
23402
234032002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
23404
23405 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
23406
234072002-03-02 Kim F. Storm <storm@cua.dk>
23408
23409 * window.c (Fminibuffer_selected_window): New function.
23410 (syms_of_window): Defsubr it.
23411
234122002-03-01 Kim F. Storm <storm@cua.dk>
23413
23414 * window.h (struct window): New member phys_cursor_width.
23415
23416 * window.c (make_window, replace_window): Init phys_cursor_width.
23417
23418 * xterm.c (x_display_and_set_cursor): Blink box cursor using
23419 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
23420
23421 * w32term.c (x_display_and_set_cursor): Blink box cursor using
23422 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
23423
23424 * lisp.h (GCPRO6): New macro.
23425
23426 * process.c (Fopen_network_stream): Use GCPRO6.
23427
234282002-03-01 Kim F. Storm <storm@cua.dk>
23429
23430 * process.c (Qconnect, Qfailed): New variables.
23431 (syms_of_process): Intern and staticpro them.
23432 (Fprocess_status): Document connect and failed return values.
23433 [NON_BLOCKING_CONNECT]: New conditional.
23434 (connect_wait_mask, num_pending_connects): New variables.
23435 (status_message): Convert Qfailed status.
23436 (Fopen_network_stream): Added support for non-blocking connect.
23437 New optional args: filter, sentinel, non_blocking. Doc updated.
23438 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
23439 (deactivate_process): Handle pending non-blocking connect.
23440 (wait_reading_process_input): Poll for status of non-blocking
23441 connects. Exec sentinel directly when connect succeeds.
23442 (status_notify): Don't read process output if not yet connected.
23443
234442002-02-28 Kim F. Storm <storm@cua.dk>
23445
9dd28cae 23446 * window.c (minibuf_selected_window): Renamed from
048addec
JD
23447 Vminibuf_selected_window. Users changed.
23448 (syms_of_window): Staticpro it.
23449
234502002-02-26 Kim F. Storm <storm@cua.dk>
23451
23452 The following changes add a new Vminibuf_selected_window variable
23453 which is similar to Vminibuf_scroll_window, but which is only set
23454 on entry to the minibuffer (from a non-minibuffer window):
23455
9dd28cae 23456 * window.c (Vminibuf_selected_window): New variable.
048addec
JD
23457 (struct save_window_data): New member minibuf_selected_window.
23458 (Fset_window_configuration): Restore Vminibuf_selected_window.
23459 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
23460 Set minibuf_scroll_window member to nil if minibuf_level is 0.
23461 (compare_window_configurations): Compare minibuf_selected_window.
23462
9dd28cae 23463 * window.h (Vminibuf_selected_window): Declare extern.
048addec
JD
23464
23465 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
23466 entry to minibuffer or on entry from a non-minibuffer window.
23467
23468 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
23469 Vminibuf_selected_window instead of Vminibuf_scroll_window.
23470
23471 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
23472 instead of Vminibuf_scroll_window when deciding in which window
23473 the region should be highlighted. Consequently, the region remains
23474 highlighteded even when a completion buffer is also displayed.
23475
234762002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
23477
23478 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
23479
23480 * xselect.c (Qcompound_text_with_extensions): Renamed from
23481 Qcompound_text_no_extensions.
23482 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
23483
234842002-02-26 Juanma Barranquero <lektu@terra.es>
23485
23486 * w32proc.c (syms_of_ntproc): Doc fix.
23487
234882002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23489
23490 * intervals.h: Include "dispextern.h" unconditionally.
23491
234922002-02-24 Jason Rumney <jasonr@gnu.org>
23493
23494 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
23495 and disp-table.elc.
23496 (lisp): Add emacs-lisp/backquote.elc.
23497
234982002-02-24 Kim F. Storm <storm@cua.dk>
23499
3419757d 23500 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
23501 The validation of the event type was too strict as it didn't
23502 allow string events; buffer names are used in bindings for
23503 menu-bar-select-buffer (see `menu-bar-update-buffers').
23504
235052002-02-23 Kim F. Storm <storm@cua.dk>
23506
23507 The following changes rework my patch of 2002-02-06 which
23508 added command remapping by entering the commands directly into
23509 the keymaps. Now, command remapping uses an explicit `remap'
23510 prefix in the keymaps, i.e. [remap COMMAND].
23511
23512 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 23513 (is_command_symbol): Remove function.
048addec
JD
23514 (Fdefine_key): No longer accept a symbol for KEY.
23515 Added validation of [remap COMMAND] argument for KEY.
23516 The DEF is no longer required to be a symbol when remapping a command.
23517 (Fremap_command): New function to remap command through keymaps.
23518 (Flookup_key): Perform command remapping initiated by
23519 Fremap_command directly for speed.
23520 (Fkey_binding): Use Fremap_command for command remapping.
23521 (where_is_internal): Handle new command remapping representation.
23522 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
23523 staticpro them. Defsubr Fremap_command.
23524
23525 * keymap.h (Fremap_command): Declare extern.
23526 (is_command_symbol): Remove extern.
23527
23528 * keyboard.c (command_loop_1): Use Fremap_command for command
23529 remapping; now try command remapping for all symbols.
23530
235312002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
23532
23533 * coding.h (run_pre_post_conversion_on_str): Add prototype.
23534
235352002-02-23 Jason Rumney <jasonr@gnu.org>
23536
23537 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
23538 on the string before encoding it.
23539 (Fw32_get_clipboard_data): Run post-read-conversion on the string
23540 after decoding it.
23541
23542 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
23543
235442002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23545
23546 * w32term.c (enter_timestamp): Remove unused static variable to
23547 prevent warning.
23548
23549 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
23550
235512002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
23552
23553 * w16select.c (Fw16_get_clipboard_data): Fix last change.
23554
23555 * xselect.c (selection_data_to_lisp_data): Fix last change.
23556
235572002-02-22 Jason Rumney <jasonr@gnu.org>
23558
23559 * w32term.h (struct w32_output): New member menu_command_in_progress.
23560
23561 * w32menu.c (menubar_selection_callback): Free the menu and
23562 clear the menu_command_in_progress flag.
23563
23564 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
23565 (menu_free_timer): New variable.
23566 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
23567 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
23568 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
23569 menu command is in progress.
23570 <WM_COMMAND>: Set the menu_command_in_progress flag.
23571 Kill any menu_free_timer that is running.
23572
23573 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
23574 Call ExtTextOutA rather than ExtTextOut.
23575
235762002-02-22 Eli Zaretskii <eliz@gnu.org>
23577
23578 * puresize.h (BASE_PURESIZE): Increase to 755000.
23579
235802002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
23581
23582 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
23583 on the string before encoding it.
23584 (Fw16_get_clipboard_data): Run post-read-conversion on the string
23585 after decoding it.
23586
235872002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
23588
9dd28cae 23589 Support for ICCCM Extended Segments in X selections:
048addec
JD
23590
23591 * xselect.c <Qcompound_text_no_extensions>: New variable.
23592 (syms_of_xselect): Intern and staticpro it.
23593 (selection_data_to_lisp_data): Run post-read-conversion on decoded
23594 selection text.
23595 (lisp_data_to_selection_data): If next-selection-coding-system is
23596 compound-text-no-extensions, set the type of selection to be
23597 compound-text.
23598
23599 * xterm.h (x_encode_text): Update prototype.
23600
23601 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
23602 callers changed. If SELECTIONP is non-zero, run the
23603 pre-write-conversion function before encoding the selection text.
23604
236052002-02-21 Kim F. Storm <storm@cua.dk>
23606
23607 * frame.c (syms_of_frame): Change mouse-highlight default to t.
23608
23609 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
23610 Correct composing of language-change event.
23611
236122002-02-20 Kim F. Storm <storm@cua.dk>
23613
23614 * keyboard.c (menu_bar_items): Don't include keymap or local-map
23615 bindings at PT when building menu (the menu is not updated often
23616 enough for this to work reliable).
23617 (tool_bar_items): Likewise.
23618 (current_active_maps): Removed unused (and buggy) function.
23619
236202002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23621
23622 * xfns.c (gif_load): Use correct width and height for GIF images.
23623
236242002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
23625
23626 * floatfns.c (Fatan): Accept an optional second arg and call
23627 atan2 if passed 2 args.
23628
236292002-02-18 Jason Rumney <jasonr@gnu.org>
23630
23631 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
23632
236332002-02-17 Jason Rumney <jasonr@gnu.org>
23634
23635 * w32term.c (x_autoselect_window_p): New variable.
23636 (syms_of_w32term): DEFVAR_BOOL and initialize it.
23637 (note_mouse_movement): Use it.
23638
23639 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
23640
23641 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
23642
23643 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
23644 New variables.
23645 (syms_of_w32fns): Intern and staticpro them.
23646 (x_frame_parms) <"fullscreen">: New parameter.
23647 (x_fullscreen_move, x_set_fullscreen): New functions.
23648 (x_set_frame_parameters): Support Qfullscreen.
23649 (x_real_positions): Save x/y_pixels_diff frame params.
23650 (x_figure_window_size): Support full-screen frames.
23651 (Fx_create_frame): Default the fullscreen parameter.
23652
23653 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
23654 (x_fullscreen_adjust): New functions.
23655 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
23656 fullscreen. Call x_check_fullscreen_move, and set the
23657 want_fullscreen member of output_data.w32
23658 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
23659
23660 * w32term.h: New enum for FULLSCREEN_* constants.
23661 (struct w32_output): New members want_fullscreen, x_pixels_diff,
23662 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
23663 (x-fullscreen-adjust): New prototype.
23664
236652002-02-17 Kim F. Storm <storm@cua.dk>
23666
52eb0373 23667 * frame.c (Vmouse_highlight): New variable.
048addec
JD
23668 (syms_of_frame): DEFVAR_LISP it.
23669
52eb0373 23670 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 23671
048addec 23672 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 23673
048addec
JD
23674 * xterm.c (disable_mouse_highlight): Removed variable.
23675 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
23676 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23677 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
23678 and on after keyboard input.
23679 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 23680
048addec 23681 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 23682
048addec
JD
23683 * msdos.c (disable_mouse_highlight): Removed variable.
23684 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23685 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
23686 (internal_terminal_init): Initialize mouse_face_hidden.
23687 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
23688 and on after keyboard input.
4f1b1854 23689
048addec 23690 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 23691
048addec
JD
23692 * w32term.c (disable_mouse_highlight): Removed variable.
23693 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
23694 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23695 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
23696 and on after keyboard input.
23697 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 23698
048addec 236992002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 23700
048addec
JD
23701 * msdos.c (last_mouse_window): New variable.
23702 (dos_rawgetc): Fix last change--if the mouse is in the same window
23703 as recorded in last_mouse_window, don't select this window.
5cb6905d 23704
048addec 23705 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 23706
048addec
JD
23707 * msdos.c (x_autoselect_window_p): New variable.
23708 (syms_of_msdos): Defvar it.
23709 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
23710 which the last mouse movement occured, unless it is already selected.
437dfb9f 23711
048addec
JD
23712 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
23713 New variables.
23714 (syms_of_xdisp): DEVFAR them.
23715 (hscroll_window_tree): Use automatic_hscroll_margin and
23716 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 23717
048addec 237182002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 23719
048addec
JD
23720 * xterm.c (x-autoselect-window): New variable.
23721 (note_mouse_movement): Use it.
9f696a00 23722
048addec 23723 * keyboard.c: Do not include "systime.h" twice.
d57966d7 23724
048addec 237252002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 23726
bfa02563 23727 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 23728
048addec 23729 * alloc.c (NSTATICS): Increase to 1280.
74779f52 23730
048addec 237312002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 23732
048addec 23733 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 23734
048addec
JD
23735 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
23736 (Vx_super_keysym): New variables.
23737 (syms_of_xterm): DEFVAR_LISP them.
23738 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
23739 variables to determine which keys to use for the various modifiers.
a474d59c 23740
048addec 237412002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 23742
9dd28cae 23743 * window.c (Vmode_line_in_non_selected_windows): Removed.
048addec
JD
23744 (mode_line_in_non_selected_windows): New variable.
23745 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 23746
048addec
JD
23747 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
23748 Use mode_line_in_non_selected_windows.
23749 (mode_line_in_non_selected_windows): Declare extern.
23750 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 23751
048addec 237522002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 23753
048addec
JD
23754 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
23755 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
23756 (Fclear_this_command_keys): Doc fixes.
2d10309f 23757
048addec
JD
23758 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
23759 (update_face_from_frame_parameter): Increment face_change_count
23760 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 23761
048addec
JD
23762 * xdisp.c (QCpropertize): New variable.
23763 (mode_line_proptrans_alist): New variable.
23764 (display_mode_element): New arg PROPS; all calls changed.
23765 Implement this, for strings.
23766 Handle literal output of strings by sharing the
23767 main-line code for strings, using local var `literal'.
23768 Handle :propertize feature.
23769 (syms_of_xdisp): Initialze and staticpro QCpropertize and
23770 mode_line_proptrans_alist.
0b1e6b54 23771
048addec 237722002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 23773
9dd28cae 23774 * window.c (Vmode_line_in_non_selected_windows): New variable.
048addec 23775 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 23776
048addec
JD
23777 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
23778 (CURRENT_MODE_LINE_FACE_ID): Use it.
23779 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 23780
048addec
JD
23781 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
23782 to get mode line face.
e17144de 23783
048addec 237842002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 23785
048addec
JD
23786 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
23787 variables; cus-start.el doesn't need them anymore.
44368f8f 23788
048addec 237892002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 23790
048addec
JD
23791 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
23792 reduction. This fixes a display problem where stray newlines were
23793 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 23794
048addec 237952002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 23796
048addec 23797 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 23798
048addec 23799 * xdisp.c (display_mode_lines): Fix last change.
453c5510 23800
048addec 238012002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 23802
048addec
JD
23803 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
23804 match each other.
23805 (w32_load_system_font): Prevent Cleartype fonts from loading.
23806 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 23807
048addec 238082002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 23809
048addec
JD
23810 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
23811 (CURRENT_MODE_LINE_HEIGHT): Use it.
23812 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 23813
048addec
JD
23814 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
23815 (pos_visible_p, handle_face_prop): Likewise.
23816 (display_mode_lines): Likewise, but for the real selected window.
23817 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 23818
048addec
JD
23819 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
23820 in non-selected windows.
23821 (realize_basic_faces): Realize it.
23822 (syms_of_term): Intern and staticpro it.
308dd672 23823
048addec 238242002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 23825
048addec
JD
23826 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
23827 Changed mail addresses to emacs-devel@gnu.org.
308dd672 23828
048addec 238292002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 23830
048addec
JD
23831 * fileio.c (Fsubstitute_in_file_name): If the file name includes
23832 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 23833
048addec 23834 * floatfns.c (Fround): Doc fix.
3c1e6b46 23835
048addec 238362002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 23837
048addec 23838 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 23839
048addec 238402002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 23841
048addec 23842 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 23843
048addec 238442002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 23845
048addec
JD
23846 * keymap.c (where_is_internal): Only check whether definition is
23847 remapped if it fulfills is_command_symbol.
0065bb74 23848
048addec 238492002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 23850
048addec 23851 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 23852
048addec 23853 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 23854
048addec 238552002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 23856
048addec
JD
23857 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
23858 defining command remapping. Doc updated.
23859 (Flookup_key): Remap command through keymap if KEY is a symbol.
23860 (is_command_symbol): New function.
23861 (Fkey_binding): Use it. New optional argument NO-REMAP.
23862 Doc updated. Callers changed. Perform command remapping via
23863 recursive call unless that arg is non-nil.
23864 (where_is_internal): New argument no_remap. Callers changed.
23865 Call recursively to find original key bindings for a remapped
23866 comand unless that arg is non-nil.
23867 (Fwhere_is_internal): New optional argument NO-REMAP.
23868 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 23869
048addec 23870 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 23871 (is_command_symbol): Add prototype.
0d8466cc 23872
048addec
JD
23873 * keyboard.c (Vthis_original_command): New variable.
23874 (syms_of_keyboard): DEFVAR_LISP it.
23875 (command_loop_1): Set it, and perform command remapping.
15fff01d 23876
048addec 238772002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 23878
048addec 23879 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 23880
048addec 238812002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 23882
048addec 23883 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 23884
048addec 238852002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 23886
048addec 23887 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 23888
048addec 238892002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 23890
048addec 23891 * filelock.c (S_ISLNK): Define if not defined.
3a232704 23892
048addec 238932002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 23894
048addec 23895 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 23896
048addec
JD
23897 * lread.c (read1): Redesign strategy for force_multibyte and
23898 force_singlebyte. Now is_multibyte records whether read_buffer
23899 is multibyte. Encountering any multibyte character makes it so.
4e02881b 23900
048addec 239012002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 23902
048addec
JD
23903 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
23904 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 23905
048addec 239062002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 23907
048addec
JD
23908 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
23909 latter never being defined on GNU/Linux.
749f499f 23910
048addec 239112002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 23912
048addec
JD
23913 * xfaces.c (realize_default_face): Don't set the weight and slant of
23914 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 23915
048addec 239162002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 23917
048addec
JD
23918 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
23919 Call cancel_hourglass unconditionally.
d0fd26dd 23920
048addec
JD
23921 * eval.c (Fsignal): Remove duplicated declaration of
23922 the variable `display_hourglass_p'.
b4c45162 23923
048addec 239242002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 23925
048addec 23926 * editfns.c (region_limit): Nicer error message.
c95eaa61 23927
048addec
JD
23928 * coding.c (decode_composition_emacs_mule):
23929 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 23930
048addec
JD
23931 * callint.c (check_mark): New arg to specify clearer error message.
23932 Callers changed.
c95eaa61 23933
048addec 239342002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 23935
048addec 23936 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 23937
048addec 239382002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 23939
048addec
JD
23940 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
23941 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
23942 Fix doc-strings.
c95eaa61 23943
048addec 239442002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 23945
048addec 23946 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 23947
048addec
JD
23948 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
23949 and scroll_up_aggressively.
c95eaa61 23950
048addec 239512002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 23952
048addec 23953 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 23954
048addec 239552002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 23956
048addec
JD
23957 * textprop.c (Fnext_property_change, Fnext_single_property_change)
23958 (Fprevious_property_change, Fprevious_single_property_change):
23959 Stay within the narrowed-buffer boundaries.
e2c3786a 23960
048addec 239612002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 23962
048addec
JD
23963 * term.c (Ftty_display_color_cells): New function.
23964 (syms_of_term): Defsubr it.
23965 (Ftty_display_color_cells, Ftty_display_color_p): Change the
23966 argument name to DISPLAY. Doc fix.
bf794306 23967
048addec
JD
23968 * dispextern.h: Add prototype for set_tty_color_mode and
23969 tty_setup_colors.
bf794306 23970
048addec 239712002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 23972
048addec
JD
23973 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
23974 If region left to draw is not what was expected, mark the frame as
23975 garbaged.
62582985 23976
048addec
JD
23977 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
23978 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 23979
048addec 239802002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 23981
048addec
JD
23982 * w32term.c (x_update_window_begin): Only hide caret if
23983 w32_use_visible_system_caret is set.
23984 (x_update_window_end): Only show caret if
23985 w32_use_visible_system_caret is set.
23986 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 23987
048addec 23988 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 23989
048addec 239902002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 23991
048addec
JD
23992 * unexelf.c (unexec): Define n so as to cause compilation error
23993 for the code where people have often written n instead of nn.
1e9a6186 23994
048addec 23995 * .gdbinit (hookpost-run): Defined.
1e9a6186 23996
048addec 239972002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 23998
048addec 23999 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 24000
048addec 240012002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 24002
048addec
JD
24003 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
24004 if fullscreen is being set.
7c75be36 24005
048addec 240062002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 24007
048addec
JD
24008 * minibuf.c (Fminibuffer_contents)
24009 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
24010 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 24011
048addec 240122002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 24013
048addec 24014 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 24015
048addec 240162002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 24017
048addec
JD
24018 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
24019 height before comparison.
24020 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 24021
048addec 240222002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 24023
048addec
JD
24024 * w32term.c (w32_system_caret_width): Remove.
24025 (w32_use_visible_system_caret): New user flag.
24026 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
24027 Windows reports a screen reader running.
24028 (x_update_window_begin): Hide the system caret.
24029 (x_update_window_end): Show the system caret.
24030 (x_display_and_set_cursor): Don't draw a cursor when
24031 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 24032
048addec
JD
24033 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
24034 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
24035 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
24036 the user requests it. Use system default width when creating.
24037 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 24038
048addec
JD
24039 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
24040 New window messages.
905cc05a 24041
048addec 240422002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 24043
048addec 24044 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 24045
048addec 240462002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 24047
048addec 24048 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 24049
048addec 240502002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 24051
048addec 24052 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 24053
048addec 240542002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 24055
048addec
JD
24056 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
24057 that Windows returns. If a double check fails, try to guess how
24058 ExtTextOut is going to act.
4d0fa4f3 24059
048addec
JD
24060 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
24061 in place of stricmp.
24062 (w32_list_synthesized_fonts): Removed.
24063 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
24064 (struct enumfont_t): New element; list.
24065 (enum_font_cb2): List all style and charset variations of a font.
24066 (Fw32_select_font): New optional argument; include_proportional.
24067 Exclude vertical fonts. Exclude proportional fonts unless
24068 include_proportional is non-nil.
24069 (w32_enable_synthesized_fonts): Change to a boolean.
24070 (Fw32_send_sys_command): Doc fix.
493faf20 24071
048addec 240722002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 24073
048addec
JD
24074 * dispnew.c (update_frame): Move the variable `tem' to the block
24075 where it is used.
4971e491 24076
048addec 240772002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 24078
048addec
JD
24079 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
24080 call to face-set-after-frame-default.
4971e491 24081
048addec 240822002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 24083
048addec
JD
24084 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
24085 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 24086
048addec 240872002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 24088
048addec
JD
24089 * window.c (enlarge_window): When exceeding size of parent,
24090 directly delete all the siblings instead of trying to resize it.
201c831a 24091
048addec 240922002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 24093
048addec 24094 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 24095
048addec 240962002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 24097
048addec 24098 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 24099
048addec 241002002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 24101
048addec
JD
24102 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
24103 is invisible. This can happen if cursor is on top line of a
24104 window, and we switch to a buffer with a header line.
d77fbc16 24105
048addec 24106 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 24107
048addec 241082002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 24109
048addec
JD
24110 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
24111 `dont_resize' only when used.
61e3b944 24112
048addec 24113 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 24114
048addec 241152002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 24116
048addec
JD
24117 * xdisp.c (display_mode_element): When computing charpos, depend
24118 on multibyteness of elt, not the text in field.
8af01033 24119
048addec 241202002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 24121
048addec
JD
24122 * buffer.c (Fkill_all_local_variables):
24123 Increment `update_mode_lines' only once.
7363986a 24124
048addec 241252002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 24126
048addec
JD
24127 * lisp.h (adjust_after_replace_noundo)
24128 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 24129
048addec 24130 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 24131
048addec 241322002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 24133
048addec
JD
24134 Support for the --color command-line argument and tty-color-mode
24135 frame parameter:
f1a85b89 24136
048addec
JD
24137 * term.c (tty_default_color_capabilities, tty_setup_colors)
24138 (set_tty_color_mode): New functions.
24139 (term_init): Call tty_default_color_capabilities.
24140 (Qtty_color_mode_alist): New variable.
24141 (syms_of_term): Intern and staticpro it.
f1a85b89 24142
048addec
JD
24143 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
24144 frames.
24145 (do_switch_frame): For termcap frames, switch the tty
24146 color mode as specified by the frame's parameters.
24147 (Qtty_color_mode): New variable.
24148 (syms_of_frame): Intern and staticpro it.
3a62677f 24149
048addec
JD
24150 * emacs.c (USAGE2): Add the --color option.
24151 (standard_args): Ditto.
72244db2 24152
048addec
JD
241532002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24154
24155 * xterm.h (struct x_output): New members want_fullscreen,
24156 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
24157 y_pixels_outer_diff.
24158 New enum for FULLSCREEN_* constants.
24159 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
24160 is NULL.
24161 (x_fullscreen_adjust): Add prototype.
3a62677f 24162
048addec
JD
24163 * emacs.c (USAGE2): Add the new full-screen arguments.
24164 (standard_args): Ditto.
3a62677f 24165
048addec
JD
24166 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
24167 New variables.
24168 (syms_of_xfns): Intern and staticpro them.
24169 (x_frame_parms) <"fullscreen">: New parameter.
24170 (x_fullscreen_move, x_set_fullscreen): New functions.
24171 (x_set_frame_parameters): Support for Qfullscreen.
24172 (x_real_positions): More accurate computation of the frame position.
24173 (x_figure_window_size): Support full-screen frames.
24174 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 24175
048addec
JD
24176 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
24177 (XTread_socket) <Expose>: Call x_check_fullscreen.
24178 <ConfigureNotify>: Don't resize to fullscreen.
24179 Call x_check_fullscreen_move, and set the want_fullscreen member of
24180 output_data.x.
3a62677f 24181
048addec 241822002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 24183
048addec
JD
24184 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
24185 for mice with more than 3 buttons.
b8523839 24186
048addec
JD
24187 * w32term.c (parse_button): New parameter xbutton. Callers changed.
24188 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 24189
048addec
JD
24190 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
24191 (syms_of_w32fns): DEFVAR_BOOL it.
24192 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 24193
048addec 241942002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 24195
048addec 24196 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 24197
048addec 241982002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 24199
048addec 24200 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 24201
048addec 242022002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 24203
048addec
JD
24204 * .gdbinit (xbuffer): Remove address operator since data is now a
24205 pointer.
c93674bb 24206
048addec 242072002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 24208
048addec 24209 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 24210
048addec 24211 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 24212
048addec 242132002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 24214
048addec
JD
24215 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
24216 when checking for multiple frames.
91175673 24217
048addec 242182002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 24219
048addec
JD
24220 * window.c (delete_window): Rewrite the code for changing the
24221 selected window to handle the case where WINDOW is not a leaf.
91175673 24222
048addec 242232002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 24224
048addec
JD
24225 * process.c (send_process): Set src_multibyte to 1 after the call
24226 top setup_coding_system, not before the call.
e0fead5d 24227
048addec 242282002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 24229
048addec
JD
24230 * xmenu.c (set_frame_menubar, xmenu_show):
24231 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 24232
048addec
JD
24233 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
24234 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 24235
048addec 242362002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 24237
048addec 24238 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 24239
048addec 24240 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 24241
048addec 24242 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 24243
048addec 242442002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 24245
048addec
JD
24246 * insdel.c (make_gap_larger): Make sure buffer size does not
24247 overflow range of int.
62854fe2 24248
048addec 242492002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 24250
048addec
JD
24251 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
24252 OVERLAPS_P.
656f46bb 24253
048addec 24254 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 24255
048addec
JD
24256 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
24257 to the left or to the right of the pointer, put it against
24258 the left screen edge.
24259 (x_frame_parms): Add missing braces around initializer.
036e218d 24260
048addec
JD
24261 * w32term.c (x_setup_relief_colors): Don't compute an image's
24262 background color if it doesn't have a Pixmap.
24263 (notice_overwritten_cursor): Don't depend on
24264 output_cursor and updated_area. Compare pixel coordinates with
24265 window's cursor pixel coordinates.
24266 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
24267 Call notice_overwritten_cursor with new arg list.
24268 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
24269 unconditionally.
24270 (x_draw_image_relief): Use predefined macro instead of
24271 constant when the value of `tool_bar_button_relief' is negative.
036e218d 24272
048addec 24273 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 24274
048addec 242752002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 24276
048addec 24277 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 24278
048addec 242792002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 24280
048addec
JD
24281 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
24282 (Fkey_binding): Try the `keymap' property map first.
24283 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
24284 minor mode bindings.
90647b07 24285
048addec 242862002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 24287
3419757d 24288 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 24289
048addec 242902002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 24291
048addec
JD
24292 * keyboard.c (read_key_sequence): Handle the keymap property
24293 before minor mode maps.
9fbc32aa 24294
048addec
JD
24295 * editfns.c (Fformat): Update thissize from field_width
24296 based on the actual width, in the string case.
036e218d 24297
048addec 242982002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 24299
048addec
JD
24300 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
24301 when used as truth value to prevent gcc warnings.
9fbc32aa 24302
048addec
JD
24303 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
24304 * w32proc.c: Include <config.h>.
9fbc32aa 24305
048addec 243062002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 24307
048addec
JD
24308 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
24309 not EMACS_INT, to make them compatible with DEFVAR_INT.
24310 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 24311
048addec 243122002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 24313
048addec
JD
24314 * print.c (print_object): Test print_escape_nonascii only for
24315 unibyte strings.
24316 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
24317 when outputting to a multibyte buffer.
9fbc32aa 24318
048addec 243192001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 24320
048addec
JD
24321 * print.c (print_object): In multibyte string, use hex escapes.
24322 Use octal only for unibyte strings.
24323 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 24324
048addec
JD
24325 * lread.c (read_escape): New arg BYTEREP for reporting whether
24326 escape forces unibyte or multibyte.
24327 (read1): When reading a string, take note of that info.
0142178a 24328
048addec 243292001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 24330
048addec
JD
24331 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
24332 comparison to test lisp value returned by Fget.
d4824a5d 24333
048addec 243342001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 24335
048addec 24336 * lisp.h (max_specpdl_size): Add declaration.
b1356234 24337
048addec 24338 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 24339
048addec
JD
24340 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
24341 Handle modifier bits. Correct typo in error message.
99e380ee 24342
048addec 243432001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 24344
048addec
JD
24345 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
24346 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
24347 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24348 Update calls to Fdefine_abbrev.
24349 (write_abbrev): Update for changed data format.
24350 Don't list "system" abbrevs.
24351 (Fexpand_abbrev): Update use count with new data format.
24352 (describe_abbrev): Update for changed data format.
24353 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 24354
048addec 24355 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 24356
048addec 24357 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 24358
048addec
JD
24359 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
24360 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 24361
048addec
JD
24362 * keymap.c (Flookup_key): Error message if key has wrong data type.
24363 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
24364 (exclude_key): New variable.
59a86c99 24365
048addec 243662001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 24367
048addec
JD
24368 * xterm.c (x_setup_relief_colors): Don't compute an image's
24369 background color if it doesn't have a Pixmap.
eb77a5f4 24370
048addec
JD
24371 * xterm.c (notice_overwritten_cursor): Don't depend on
24372 output_cursor and updated_area. Compare pixel coordinates with
24373 window's cursor pixel coordinates.
24374 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
24375 Call notice_overwritten_cursor with new arg list.
24376 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
24377 unconditionally.
eb77a5f4 24378
048addec
JD
24379 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
24380 height of the cursor line to the amount to scroll.
eb77a5f4 24381
048addec 243822001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 24383
048addec
JD
24384 * intervals.c (set_point_both): The position after an invisible,
24385 intangible character is not an acceptable stopping point.
bb313871 24386
048addec 243872001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 24388
048addec
JD
24389 * window.c (enlarge_window): In new preserve_before code, convert
24390 CURBEG from lisp object to integer before doing arithmetic.
6052529b 24391
048addec 243922001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 24393
048addec 24394 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 24395
048addec 243962001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 24397
048addec
JD
24398 * keyboard.c (record_char): Ignore duplicate help-echo events only
24399 separated by mouse-movement. When tracking mouse, only record
24400 first and last mouse-movement event in same window.
24401 Don't record mouse-movement events in keyboard macros.
3ce081f5 24402
048addec 244032001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 24404
048addec
JD
24405 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
24406 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 24407
048addec
JD
24408 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
24409 instead of Fstring_as_unibyte.
9fabb2f5 24410
048addec 244112001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 24412
048addec 24413 The following changes remove mocklisp support:
9fabb2f5 24414
048addec 24415 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 24416
048addec
JD
24417 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
24418 `Qmocklisp' and `Qmocklisp_arguments'.
24419 Remove prototype of syms_of_mocklisp.
2fa0eedf 24420
048addec 24421 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 24422
048addec
JD
24423 * callint.c: Do not include mocklisp.h.
24424 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 24425
048addec
JD
24426 * eval.c: Remove variables `Qmocklisp_arguments',
24427 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
24428 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
24429 Do not test for mocklisp case.
24430 (Fwhile): Remove unused variable `tem'.
24431 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 24432
048addec 24433 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 24434
048addec 24435 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 24436
048addec 24437 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 24438
048addec 244392001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 24440
048addec
JD
24441 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
24442 to the left or to the right of the pointer, put it against
24443 the left screen edge.
6108b49c 24444
048addec 244452001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 24446
048addec
JD
24447 * Makefile.in (distclean): Remove .gdbinit if we are building
24448 outside the source tree.
5eea19a4 24449
048addec 244502001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 24451
048addec 24452 * w32.c (emacs_root_dir): New function.
5eea19a4 24453
048addec 24454 * msdos.c (emacs_root_dir): New function.
5eea19a4 24455
048addec
JD
24456 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
24457 of the current drive as the fallback for default_directory.
438e57dd 24458
048addec
JD
24459 * dired.c (file_name_completion): Run the elements of
24460 completion-ignored-extensions through ENCODE_FILE.
438e57dd 24461
048addec
JD
24462 * lisp.h (scmp): Remove prototype, since it's now a static
24463 function private to dired.c.
c88e5347 24464
048addec 244652001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 24466
048addec
JD
24467 * dired.c (scmp): Function moved from minibuf.c.
24468 Delete multibyte handling--used only on encoded strings.
59ce1461 24469
048addec 24470 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 24471
048addec 24472 * fns.c (merge): Add QUIT call.
59ce1461 24473
048addec 244742001-12-18 Dave Love <fx@gnu.org>
8727d588 24475
048addec
JD
24476 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
24477 language/georgian.el.
8727d588 24478
048addec 244792001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 24480
048addec
JD
24481 * Makefile.in (lisp, shortlisp): Synchronize with changes to
24482 lisp/Makefile.in:DONTCOMPILE.
cc63037e 24483
048addec 244842001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 24485
048addec
JD
24486 * xdisp.c (window_box_height): Do not return negative values.
24487 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 24488
048addec 24489 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 24490
048addec 24491 * term.c (keys): Likewise.
deece6f5 24492
048addec 24493 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 24494
048addec 244952001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 24496
048addec
JD
24497 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
24498 patch (COMPOSING_P, not COMPOSING).
28ff4293 24499
048addec 245002001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 24501
048addec 24502 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 24503
048addec
JD
24504 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
24505 before calling decode_coding.
9b46de40 24506
048addec 24507 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 24508
048addec
JD
24509 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
24510 instead of only for COMPOSITION_DISABLED.
9b46de40 24511
048addec 245122001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 24513
048addec 24514 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 24515
048addec 24516 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 24517
048addec
JD
24518 * buffer.h (struct buffer): New field `display_error_modiff'.
24519 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 24520
048addec 24521 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 24522
048addec
JD
24523 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
24524 Call redisplay_window, but not if display_error_modiff field says no.
24525 (redisplay_window_error): New function.
24526 (displayed_buffer): New variable.
24527 (redisplay_internal, redisplay_windows): Call the new functions
24528 instead of redisplay_window directly.
2cd23960 24529
048addec 245302001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 24531
048addec 24532 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 24533
048addec 245342001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 24535
048addec 24536 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 24537 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 24538 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 24539
048addec 245402001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 24541
048addec
JD
24542 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
24543 parameter have a numeric value all the time.
f6fa0866 24544
048addec 24545 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 24546
048addec 245472001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 24548
048addec 24549 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 24550
048addec
JD
24551 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
24552 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 24553
048addec 245542001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 24555
048addec
JD
24556 * xdisp.c (move_it_vertically_backward): Change heuristic
24557 for the case that we didn't move far enough initially.
91c153e2 24558
048addec
JD
24559 * window.c (Frecenter): Simplify computation in the case of window
24560 system frames and ARG < 0; use window_box_height.
65b7d3e7 24561
048addec 245622001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 24563
048addec
JD
24564 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
24565 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 24566
048addec 245672001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 24568
048addec
JD
24569 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
24570 arg is negative.
be676094 24571
048addec 245722001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 24573
048addec
JD
24574 * m/hp800.h: Split the __hpux conditional into the parts
24575 that are right for GNU/Linux too and the parts that are not.
24576 Use the former if GNU_LINUX.
24577 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 24578
048addec 24579 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 24580
048addec 245812001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 24582
048addec
JD
24583 * macros.c, msdos.c, w16select.c: Change doc-string comments to
24584 `new style' [w/`doc:' keyword].
032a857d 24585
048addec 245862001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 24587
048addec
JD
24588 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
24589 before using.
b6270150 24590
048addec 245912001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 24592
048addec
JD
24593 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
24594 keyword].
98cbb9fa 24595
048addec 245962001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 24597
048addec 24598 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 24599
048addec 24600 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 24601
048addec 246022001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 24603
048addec 24604 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 24605 Add comment to explain where the struct came from.
048addec
JD
24606 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
24607 (add_menu_item): Process pop-up menus first to avoid memory leak.
24608 (add_menu_item, w32_menu_display_help): Use `help' field as
24609 Lisp_Object.
24610 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 24611
048addec 246122001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 24613
048addec 24614 * COPYING: Moved back.
fa336b91 24615
048addec
JD
24616 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
24617 Add parentheses around && within ||.
077907d4 24618
048addec 24619 * indent.c (compute_motion): Likewise.
aa2af83a 24620
048addec 24621 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 24622
048addec
JD
24623 * coding.c (setup_coding_system, shrink_encoding_region)
24624 (Fdecode_sjis_char): Likewise.
60a653f1 24625
048addec 246262001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 24627
048addec
JD
24628 * xdisp.c (display_mode_element): Don't read past end of string if
24629 it ends with '%'.
60a653f1 24630
048addec
JD
24631 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
24632 can hold.
60a653f1 24633
048addec
JD
24634 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
24635 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
24636 type changed to Lisp_Object.
24637 (syms_of_data): DEFVAR_LISP them.
60a653f1 24638
048addec 246392001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 24640
048addec
JD
24641 * callproc.c (init_callproc): Set Vdata_directory based on the source
24642 location whenever Emacs was run uninstalled.
60a653f1 24643
048addec 246442001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 24645
048addec
JD
24646 * config.in (HAVE_WORKING_VFORK): New #undefs.
24647 * process.c (create_process):
24648 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
24649 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
24650 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
24651 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
24652 * m/intel386.h (HAVE_VFORK): Likewise.
24653 * m/mips-siemens.h (HAVE_VFORK): Likewise.
24654 * m/mips.h (HAVE_VFORK): Likewise.
24655 * s/freebsd.h (vfork): Remove #define.
24656 * s/lynxos.h (HAVE_VFORK): Remove #undef.
24657 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 24658
048addec 246592001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 24660
048addec
JD
24661 * s/hpux10.h (random): Add undef.
24662 (HAVE_RANDOM): Define it just once.
60a653f1 24663
048addec 246642001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24665
048addec 24666 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 24667
048addec 246682001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 24669
048addec
JD
24670 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
24671 scroll bars of the frame before deleting the frame itself. If the
24672 frame has a widget, delete the frame with XtDestroyWidget, and do
24673 not call XDestroyWindow before that.
60a653f1 24674
048addec 246752001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 24676
048addec 24677 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 24678
048addec 24679 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 24680
048addec 246812001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 24682
048addec
JD
24683 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
24684 excessively large.
60a653f1 24685
048addec
JD
24686 * insdel.c (make_gap_larger): New function.
24687 (make_gap_smaller): New function.
24688 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
24689 Call make_gap_smaller if arg is negative.
60a653f1 24690
048addec 246912001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24692
048addec
JD
24693 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
24694 Pass a dummy argument when calling interrupt_signal.
24695 (parse_menu_item): Mark disabled items before checking for empty def.
24696 (read_char_minibuf_menu_prompt): Make safety more visible.
24697 (read_key_sequence): Add a `first_unbound' variable.
24698 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
24699 unbound prefix as soon as we can detect it.
60a653f1 24700
048addec
JD
24701 * doc.c (Fsnarf_documentation): Add prototype.
24702 (get_doc_string): Handle negative arguments.
24703 (Fdocumentation): Use AREF and ASIZE.
24704 Move the calls to get_doc_string to a single place.
24705 Don't confuse an interactive-spec for a docstring reference.
24706 (Fdocumentation_property): Take advantage of the fact that
24707 get_doc_string now ignores the sign of the docstring position.
60a653f1 24708
048addec 24709 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 24710
048addec 247112001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 24712
a64387ee 24713 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 24714
048addec 247152001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 24716
048addec
JD
24717 * xterm.c (x_draw_image_relief): Use predefined macro instead of
24718 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 24719
048addec 247202001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 24721
048addec
JD
24722 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
24723 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 24724
048addec 24725 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 24726
048addec 247272001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24728
048addec 24729 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 24730
048addec 247312001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 24732
048addec 24733 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 24734
048addec 247352001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 24736
f63fd14e 24737 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 24738
048addec
JD
24739 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
24740 [!WM_MOUSELEAVE]: Define.
60a653f1 24741
048addec
JD
24742 * w32menu.c (current_popup_menu, get_menu_item_info):
24743 (set_menu_item_info): New vars.
24744 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
24745 (w32_menu_show): Set current_popup_menu.
24746 (add_menu_item): Allocate new strings for owner-drawn menu items
24747 and help strings.
24748 Use owner-draw for disabled menu items again.
24749 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
24750 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 24751
048addec
JD
24752 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
24753 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
24754 <WM_EXITMENULOOP>: Free menu strings.
24755 <WM_MOUSELEAVE>: Stop tracking mouse.
24756 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 24757
048addec
JD
24758 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
24759 and mouse face.
60a653f1 24760
048addec 247612001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 24762
048addec
JD
24763 The following changes add left-fringe and right-fringe
24764 frame parameters to adjust fringe widths, or remove one or
24765 both fringes.
60a653f1 24766
048addec
JD
24767 * frame.h (struct frame): Remove trunc_area_pixel_width and
24768 trunc_area_cols fields.
24769 (Qleft_fringe, Qright_fringe): Declare.
24770 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 24771
048addec
JD
24772 * frame.c (Qleft_fringe, Qright_fringe): New vars.
24773 (syms_of_frame): Initialize them.
60a653f1 24774
048addec
JD
24775 * window.c (coordinates_in_window): Handle separate left and right
24776 fringe widths.
60a653f1 24777
048addec
JD
24778 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
24779 and fringe_cols fields.
24780 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
24781 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
24782 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
24783 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
24784 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
24785 (x_compute_fringe_widths): Add prototype.
60a653f1 24786
048addec
JD
24787 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
24788 fill fringe evenly with small dashes.
f63fd14e 24789 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
24790 clip the new ZV bitmap to avoid jitter between rows.
24791 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
24792 background. Don't draw fringe bitmaps if fringe width is zero.
24793 (x_compute_fringe_widths): New function.
24794 (x_new_font, x_set_window_size_1): Use it.
60a653f1 24795
048addec
JD
24796 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
24797 (x_set_frame_parameters): Process `font' parameter before other
24798 parameters as fringe widths depend on it.
24799 (x_set_fringe_width): New function.
24800 (x_figure_window_size): Use x_compute_fringe_widths.
24801 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
24802 parameters.
60a653f1 24803
048addec
JD
24804 * widget.c (set_frame_size): Use x_compute_fringe_widths.
24805 (EmacsFrameSetCharSize): Ditto.
60a653f1 24806
048addec
JD
24807 * w32term.h: Merged changes from xterm.h.
24808 * w32term.c: Merged changes from xterm.c.
24809 * w32fns.c: Merged changes from xfns.c.
60a653f1 24810
048addec 248112001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 24812
048addec 24813 * COPYING: Removed.
60a653f1 24814
048addec 248152001-11-29 Dave Love <fx@gnu.org>
60a653f1 24816
048addec
JD
24817 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
24818 extra extra slot.
24819 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 24820
048addec 248212001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 24822
048addec
JD
24823 * fileio.c (file-name-coding-system)
24824 (default-file-name-coding-system): Doc fix (links to referenced
24825 variables added).
60a653f1 24826
048addec 248272001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24828
048addec
JD
24829 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
24830 Add dummy uses of gcproN variables.
60a653f1 24831
048addec
JD
24832 * category.c (describe_category, describe_category_1)
24833 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
24834 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 24835
048addec 248362001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 24837
048addec 24838 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 24839
048addec
JD
24840 * Makefile.in (lispdir): New variable, referring to build dir.
24841 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 24842
048addec 248432001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 24844
048addec
JD
24845 * w32menu.c (w32_menu_display_help): Actually add the new argument
24846 OWNER.
60a653f1 24847
048addec 248482001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 24849
048addec
JD
24850 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
24851 menu items. From David Ponce <dponce@wanadoo.fr>.
24852 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
24853 conditionally.
f63fd14e 24854 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 24855 help event in the owner frame's keyboard buffer.
60a653f1 24856
048addec
JD
24857 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
24858 (Fx_show_tip): Don't subtract last width from row width.
24859
24860 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
24861 (w32_read_socket): Use EQ to compare frames.
60a653f1 24862
048addec 248632001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 24864
048addec
JD
24865 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
24866 OVERLAPS_P.
60a653f1 24867
048addec 248682001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 24869
048addec
JD
24870 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
24871 `gcpro3' and `gcpro4'.
60a653f1 24872
048addec 24873 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 24874
048addec 248752001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24876
048addec 24877 * ccl.c: Use AREF and ASIZE.
60a653f1 24878
048addec 248792001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24880
048addec
JD
24881 * lisp.h (run_hook_list_with_args): Remove.
24882 (LIST_END_P): Fix call to wrong_type_argument.
24883 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 24884
048addec 248852001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24886
048addec
JD
24887 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
24888 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 24889
048addec
JD
24890 * eval.c: Use AREF and ASIZE.
24891 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 24892
048addec
JD
24893 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
24894 which match the end of the file-name.
24895 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
24896 is not a valid env var, but leave it as is instead.
60a653f1 24897
048addec
JD
24898 * keymap.c (access_keymap): Handle t bindings like nil bindings.
24899 Make nil bindings in char-tables transparent.
24900 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 24901
048addec 249022001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 24903
048addec
JD
24904 * textprop.c (set_text_properties_1): Allow START, END in either order.
24905 Do nothing if range is empty.
60a653f1 24906
048addec 24907 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 24908
048addec
JD
24909 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
24910 (clean): Not here.
60a653f1 24911
048addec 249122001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24913
048addec
JD
24914 * textprop.c (set_text_properties_1): Clearly mark that the
24915 interval should not be empty.
60a653f1 24916
048addec
JD
24917 * intervals.c (graft_intervals_into_buffer):
24918 Don't call set_text_properties_1 on an empty interval.
60a653f1 24919
048addec 249202001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 24921
048addec 24922 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 24923
048addec
JD
24924 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
24925 don't lose the data in it.
60a653f1 24926
048addec 249272001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 24928
048addec 24929 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 24930
c62aec78 24931 * buffer.c (Fkill_buffer): Likewise.
60a653f1 24932
c62aec78 24933 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 24934
048addec 249352001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 24936
048addec 24937 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 24938
048addec 249392001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 24940
048addec
JD
24941 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
24942 Niemitalo <kon@iki.fi>.
60a653f1 24943
048addec 249442001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 24945
048addec 24946 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 24947
048addec
JD
24948 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
24949 (Fx_show_tip): Block input during frame creation.
24950 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 24951
048addec 249522001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 24953
048addec
JD
24954 * lread.c (Fload): Detect recursive load error for more than 3
24955 nestings of the same file.
24956 (Vrecursive_load_depth_limit): Variable deleted.
24957 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 24958
048addec 249592001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 24960
048addec
JD
24961 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
24962 mouse position if either left or top is not specified.
60a653f1 24963
048addec
JD
24964 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
24965 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
24966 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
24967 (my_create_tip_window): Assign tip_window.
24968 (x_create_tip_frame): Use same defaults as X.
24969 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 24970 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 24971
048addec
JD
24972 * w32term.c (x_after_update_window_line): Doc fix.
24973 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
24974 frames.
24975 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 24976
048addec
JD
24977 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
24978 for all Windowed systems.
60a653f1 24979
048addec 249802001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 24981
048addec
JD
24982 * msdos.c (IT_clear_screen): If the frame's faces are not yet
24983 realized, use the initial screen colors to clear the screen.
60a653f1 24984
048addec 249852001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 24986
048addec
JD
24987 * textprop.c (Fset_text_properties): Remove unused variables
24988 `unchanged', `prev_changed', `s' and `len'.
60a653f1 24989
048addec
JD
24990 * search.c (Freplace_match): Remove unused variable `inslen'.
24991
24992 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
24993
249942001-11-22 Jason Rumney <jasonr@gnu.org>
24995
24996 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
24997 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
24998 (my_create_tip_window): New function.
24999 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
25000 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
25001
250022001-11-20 Jason Rumney <jasonr@gnu.org>
25003
25004 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
25005 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
25006
25007 * w32fns.c (Vw32_system_coding_system): Remove.
25008 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
25009
250102001-11-19 Stefan Monnier <monnier@cs.yale.edu>
25011
25012 * fileio.c (Fwrite_region): Move choose_write_coding_system to
25013 after build_annotations.
25014
25015 * syntax.c (describe_syntax): Add dummy arg.
25016 (describe_syntax_1): Update call to describe_vector.
25017
25018 * category.c (describe_category): Add dummy arg.
25019 (describe_category_1): Update call to describe_vector.
25020
25021 * keymap.c (Fdescribe_vector): Add `describer' parameter.
25022 (describe_command, describe_translation): Add dummy second param.
25023 (describe_map): Call elt_describer with two arguments.
25024 (describe_vector_princ): Add `fun' parameter.
25025 Call it instead of the hardcoded `princ'.
25026 (describe_vector): Add arg `args'.
25027 Pass it as a new second argument to elt_describer.
60a653f1 25028
048addec 25029 * keymap.h (describe_vector): Update prototype.
60a653f1 25030
048addec
JD
25031 * frame.c: Don't include keymap.h any more.
25032 (keys_of_frame): Remove.
60a653f1 25033
048addec 25034 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 25035
048addec 25036 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 25037
048addec 250382001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 25039
048addec
JD
25040 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
25041 if defined, 0 otherwise.
25042 (MAP_FAILED): Define if not defined and use it to test mmap failure.
25043 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 25044
048addec 250452001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 25046
048addec 25047 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 25048
048addec 250492001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 25050
048addec
JD
25051 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
25052 (x_draw_bar_cursor): If the background color of the glyph under
25053 the cursor equals the frame's cursor color, use the glyph's
25054 foreground color for drawing the bar cursor.
25055 (x_after_update_window_line): Clear internal border in different
25056 circumstances.
25057 (w32_set_vertical_scroll_bar): Check for width and height > 0.
25058 (w32_draw_relief_rect): Correct relief by 1 pixel.
25059 (x_set_glyph_string_background_width):
25060 Set extends_to_end_of_line_p if the row's fill_line_p is set and
25061 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
25062 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
25063 if cursor_in_non_selected_windows is false.
25064 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
25065 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
25066 Notice if cursor gets overwritten.
25067 (notice_overwritten_cursor): Renamed from
25068 note_overwritten_text_cursor. Rewritten to take glyph widths
25069 into account, and to take X positions as parameters.
25070 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
25071 around call to x_draw_glyphs.
25072 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25073 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25074 color to use for image glyph reliefs.
25075 (x_draw_image_relief): Accept zero tool_bar_button_relief.
25076 (glyph_rect): Remove unused variable `area'.
60a653f1 25077
048addec
JD
25078 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
25079 some items.
25080 (x_set_internal_border_width): Set frame garbaged when window
25081 doesn't exist yet.
25082 (Fx_create_frame): Accept zero tool_bar_button_relief.
25083 (x_clear_image_1, four_corners_best, image_background)
25084 (image_background_transparent): New functions.
25085 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
25086 (gs_format): Add `:background' entry.
25087 (lookup_image): Set IMG's background color if specified.
25088 (pbm_load, xbm_load_image, png_load): Set IMG's background field
25089 when appropriate.
25090 (x_clear_image_1): Reset `background_valid' and
25091 `background_transparent_valid' fields.
25092 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25093 calculating it here. Set IMG's background_transparent field.
25094 (enum xpm_keyword_index): Add XPM_BACKGROUND.
25095 (enum png_keyword_index): Add PNG_BACKGROUND.
25096 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25097 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25098 (enum gif_keyword_index): Add GIF_BACKGROUND.
25099 (enum gs_keyword_index): Add GS_BACKGROUND.
25100 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25101 Pre-calculate image background color where necessary.
25102 (x_create_x_image_and_pixmap, xbm_load, gs_load):
25103 Use display info's n_cbits entry for screen depth.
25104 (Fx_show_tip): Remove unused variables `buffer', `top',
25105 `left', `max_width' and `max_height'.
60a653f1 25106
048addec 25107 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 25108
048addec 251092001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 25110
048addec 25111 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 25112
048addec 251132001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 25114
048addec 25115 * frame.c (Fframe_live_p): Doc fix.
60a653f1 25116
048addec 251172001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 25118
048addec
JD
25119 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
25120 (message_dolog_marker3): New static variables hold three markers.
25121 (syms_of_xdisp): Initialize and staticpro them.
25122 (message_dolog): Use message_dolog_marker1..3 instead of
25123 allocating markers each time. Unchain them when done.
60a653f1 25124
048addec 251252001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 25126
048addec 25127 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 25128
048addec 251292001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 25130
048addec 25131 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 25132
048addec 251332001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 25134
048addec 25135 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 25136
048addec 251372001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 25138
048addec 25139 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 25140
048addec 251412001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 25142
048addec
JD
25143 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
25144 with invalid position.
60a653f1 25145
048addec 251462001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 25147
048addec 25148 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 25149
048addec
JD
25150 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
25151 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
25152 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 25153
048addec 25154 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 25155
048addec 251562001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 25157
048addec
JD
25158 * fileio.c (build_annotations): Split off the tail.
25159 (build_annotations_2): New fun. Extracted from build_annotations.
25160 (Fwrite_region): Split the call to build_annotations into two
25161 calls to build_annotations and build_annotations_2.
077907d4 25162
048addec 251632001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 25164
048addec
JD
25165 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
25166 clear_waiting_for_input with argument.
1756e2fb 25167
048addec 25168 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 25169
048addec 25170 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 25171
048addec 25172 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 25173
048addec 25174 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 25175
048addec 251762001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 25177
048addec
JD
25178 * fileio.c (choose_write_coding_system): New fun, extracted
25179 from Fwrite_region.
25180 (Fwrite_region): Use it.
fa336b91 25181
048addec
JD
25182 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
25183 (funcall_lambda, run_hook_with_args): Make static and add prototype.
25184 (ml_apply, find_handler_clause): Add prototype.
fa336b91 25185
048addec 251862001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 25187
048addec 25188 * config.in: Add #undef HAVE_COFF_H.
fa336b91 25189
048addec
JD
25190 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
25191 Required for ISC 4.1.
fa336b91 25192
048addec 251932001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 25194
52eb0373 25195 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 25196 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 25197
048addec 251982001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 25199
048addec
JD
25200 The following changes are made to clean up the various internal
25201 references to the fringes to actually use the term `fringe' for
25202 them. Previously, they were called `flags areas', `bitmap areas',
25203 `left/right side of windows', or implicitly as `flags' or
25204 `bitmaps':
fa336b91 25205
048addec 25206 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 25207 Comments fixed. Use renamed symbols.
06e8f738 25208
f63fd14e 25209 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 25210
048addec
JD
25211 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
25212 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
25213 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 25214
048addec 25215 * msdos.c: Comment fix.
9ce647f4 25216
048addec 25217 * w32fns.c: Use renamed symbols.
9b784ab8 25218
f63fd14e 25219 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
25220 (fringe_bitmap_type): Renamed from bitmap_type.
25221 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
25222 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
25223 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 25224
f63fd14e 25225 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
25226 (fringes_extra): Renamed from flags_areas_extra.
25227 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
25228 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
25229 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
25230 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
25231 (FRAME_X_LEFT_FRINGE_WIDTH):
25232 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
25233 (FRAME_X_RIGHT_FRINGE_WIDTH):
25234 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 25235
048addec 25236 * widget.c: Use renamed symbols.
9f7e52b4 25237
f63fd14e 25238 * window.c: Comment fixes. Use renamed symbols.
048addec 25239 (coordinates-in-window-p): Doc fix.
fa336b91 25240
f63fd14e 25241 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 25242
048addec 25243 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 25244
048addec 25245 * xfns.c: Use renamed symbols.
89512fcd 25246
f63fd14e 25247 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
25248 (fringe_bitmap_type): Renamed from bitmap_type.
25249 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
25250 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
25251 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 25252
f63fd14e 25253 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
25254 (fringes_extra): Renamed from flags_areas_extra.
25255 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
25256 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
25257 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
25258 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
25259 (FRAME_X_LEFT_FRINGE_WIDTH):
25260 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
25261 (FRAME_X_RIGHT_FRINGE_WIDTH):
25262 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
25263
252642001-11-15 Jason Rumney <jasonr@gnu.org>
25265
25266 * w32menu.c (add-menu-item): Make help_echo and radio buttons
25267 work for most menu items. From David Ponce
25268 <david.ponce@wanadoo.fr>.
25269
252702001-11-15 Gerd Moellmann <gerd@gnu.org>
25271
25272 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
25273 Some x_set_* function expect to be called even if old and new
25274 value are equal.
25275
25276 * xdisp.c (build_desired_tool_bar_string): Accept zero
25277 tool_bar_button_relief.
25278
25279 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
25280
25281 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
25282
25283 * xterm.c (x_draw_bar_cursor): If the background color of the
25284 glyph under the cursor equals the frame's cursor color, use
25285 the glyph's foreground color for drawing the bar cursor.
25286
25287 * dispnew.c (direct_output_forward_char): Fix character/byte
25288 position comparison.
7d18891d 25289
048addec 252902001-11-15 Miles Bader <miles@gnu.org>
d2936d21 25291
048addec
JD
25292 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
25293 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
25294 Update arguments to find_field.
25295 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
25296 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
25297 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
25298 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 25299
048addec 253002001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 25301
048addec 25302 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 25303
048addec
JD
25304 * dispextern.h (image_background, image_background_transparent):
25305 Conditionalize on HAVE_X_WINDOWS.
7d18891d 25306
048addec 253072001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 25308
048addec 25309 * print.c (Fprin1_to_string): Doc fix.
7d18891d 25310
048addec 25311 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 25312
048addec 25313 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 25314
048addec 25315 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 25316
048addec 25317 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 25318
048addec 25319 * eval.c (syms_of_eval): Doc fix.
7d18891d 25320
048addec 25321 * coding.c (syms_of_coding): Doc fix.
7d18891d 25322
048addec 25323 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 25324
048addec 25325 * dispnew.c (syms_of_display): Doc fix.
9474c847 25326
048addec 25327 * category.c (Fget_unused_category): Doc fix.
9474c847 25328
048addec 25329 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 25330
048addec 253312001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 25332
048addec 25333 * print.c (prin1, print): Doc fix.
e3059a5d 25334
048addec 253352001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 25336
048addec
JD
25337 * fontset.h: Remove declarations of variables
25338 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 25339
048addec
JD
25340 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
25341 `Vclip_large_size_font'.
eae936e2 25342
048addec 253432001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 25344
048addec 25345 * w32fns.c: Doc fix.
ddb67bdc 25346
048addec 253472001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 25348
048addec 25349 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 25350
048addec 25351 * fns.c: Doc fix.
6e1b91d7 25352
048addec 25353 * emacs.c: Doc fix.
1c1d3d69 25354
048addec 25355 * coding.c: Doc fix.
1c1d3d69 25356
048addec
JD
25357 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
25358 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
25359 `new style' [w/`doc:' keyword].
b6f4c7ba 25360
048addec 253612001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 25362
048addec
JD
25363 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
25364 LeaveNotify events. Only FocusIn and FocusOut do that now.
25365 (x_display_and_set_cursor): Do display hollow cursors in active
25366 minibuffer windows when they are not selected.
b6f4c7ba 25367
048addec 253682001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 25369
048addec 25370 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
25371 * w32term.c: Change doc-string comments to `new style'
25372 [w/`doc:' keyword]. Doc fixes.
a89f435d 25373
048addec
JD
25374 * w32fns.c: Don't define max.
25375 (Fx_open_connection): Only execute once.
a4cd0cd7 25376
048addec 253772001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 25378
048addec
JD
25379 * ccl.c: Change macros to use do-while block instead of if-else.
25380 Use braces to follow GNU Coding Standards.
eafb659a 25381
048addec 253822001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 25383
048addec 25384 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 25385
048addec 25386 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 25387
048addec
JD
25388 * insdel.c (replace_range): Use adjust_markers_for_replace
25389 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 25390
78819ebb 25391 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 25392
048addec
JD
25393 * textprop.c (set_text_properties_1): New subroutine
25394 broken out of set_text_properties.
25395 (set_text_properties): Use set_text_properties_1.
91823618 25396
048addec
JD
25397 * intervals.c (graft_intervals_into_buffer):
25398 Use set_text_properties_1 to clear out properties.
91823618 25399
048addec
JD
25400 * search.c (Freplace_match): Use replace_range to insert
25401 and delete. Don't request property inheritance from
25402 surrounding text.
86928dfb 25403
048addec 254042001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 25405
048addec 25406 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 25407 vertical fonts. Allow them if face name is explicitly specified.
048addec 25408 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 25409
048addec 254102001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 25411
048addec
JD
25412 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
25413 instead of malloc/free.
a78e0303 25414
048addec 254152001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 25416
048addec
JD
25417 * xfaces.c (merge_face_vectors): Use braces to follow GNU
25418 Coding Standards.
25419 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 25420
048addec 25421 * buffer.c (Fbury_buffer): Likewise.
0c99b139 25422
048addec 25423 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 25424
048addec
JD
25425 * coding.c (encode_coding): Use precomputed value of `src'.
25426 (encode_coding): Remove unused variable `src_end'.
25427 (code_convert_region): Remove unused variables `count'.
830ddd77 25428
048addec 254292001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 25430
048addec
JD
25431 * w32term.c (x_display_and_set_cursor): Do not move system caret
25432 if cursor_glyph is NULL.
55c6d645 25433
048addec 254342001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 25435
048addec 25436 * keymap.c (access_keymap): Fix compilation error.
5de38842 25437
048addec 254382001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 25439
048addec 25440 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 25441
048addec 254422001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 25443
048addec
JD
25444 * intervals.c (graft_intervals_into_buffer):
25445 Remove #ifdef'd-out code.
25446 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 25447
048addec
JD
25448 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
25449 code (eval-current-buffer).
25450 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 25451
048addec 254522001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 25453
048addec 25454 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 25455
048addec 254562001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 25457
048addec 25458 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 25459
048addec
JD
25460 * keyboard.c (make_lispy_event): Check integerness and fix
25461 Lisp_Object/int mixup.
17893c65 25462
048addec 254632001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 25464
048addec 25465 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 25466
048addec
JD
25467 * fontset.c (fontset_font_pattern): Remove unused variable
25468 `family_registry'.
d5360cc7 25469
048addec 25470 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 25471
048addec 254722001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 25473
048addec 25474 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 25475
048addec
JD
25476 * buffer.c (Fkill_buffer): Don't delete auto save file
25477 if buffer is modified.
d9d54213 25478
048addec 254792001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 25480
048addec
JD
25481 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
25482 CHECK_NUMBER_CDR.
b116830b 25483
048addec 254842001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 25485
048addec 25486 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 25487
048addec 254882001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 25489
048addec 25490 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 25491
048addec 254922001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 25493
048addec 25494 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 25495
048addec 254962001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 25497
048addec
JD
25498 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
25499 the program image directly.
982f6c7e 25500
048addec 255012001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 25502
048addec 25503 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 25504
048addec 255052001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 25506
048addec
JD
25507 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
25508 and CHECK_BUFFER.
d31053f9 25509
048addec
JD
25510 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
25511 (record_char): Likewise.
d31053f9 25512
048addec
JD
25513 * keyboard.c (make_lispy_event): Don't insist a drag event must
25514 move to a different buffer position. Instead, check for moving at
25515 least double_click_fuzz.
982f6c7e 25516
048addec 25517 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 25518
048addec 25519 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 25520
048addec
JD
25521 * indent.c (current_column_1, Fmove_to_column): Separate the code
25522 for display-table glyphs from the code for buffer text, to fix
25523 bugs in the former.
830047fd 25524
048addec 255252001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 25526
048addec
JD
25527 * buffer.c (Fbuffer_local_value): New function.
25528 (syms_of_buffer): Defsubr it.
2df5238c 25529
048addec
JD
25530 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
25531 value of `cursor-in-non-selected-windows'.
4e397688 25532
048addec
JD
25533 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
25534 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
25535 (syms_of_xdisp): Initialize it.
48b0f3ae 25536
048addec 255372001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 25538
048addec 25539 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 25540
048addec
JD
25541 * coding.c: Change doc-string comments to `new style' [w/`doc:'
25542 keyword].
3ecaf7e5 25543
048addec
JD
25544 * eval.c (top_level_value, top_level_set): Remove commented and
25545 #ifdef'd-out code.
25546 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 25547
048addec 255482001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 25549
048addec 25550 * xfns.c: Include unistd.h, if it exists.
8db2e33b 25551
048addec 25552 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 25553
048addec 25554 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 25555
048addec 255562001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 25557
048addec
JD
25558 * lisp.h (CHECK_STRING_CAR): New macro.
25559 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
25560 treating XCAR and XCDR as lvalues.
25561 (openp): Use CHECK_STRING_CAR.
25562 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 25563
048addec 255642001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 25565
048addec
JD
25566 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
25567 (SIGMASKTYPE): Define.
1b1acc13 25568
048addec 25569 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 25570
048addec 255712001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 25572
048addec
JD
25573 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
25574 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
25575 Fix typos in comments.
6cb16f95 25576
048addec
JD
25577 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
25578 and #ifdef'd-out code.
25579 Fix and reindent comments.
6cb16f95 25580
048addec 25581 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 25582
048addec
JD
25583 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
25584 argument `i' in macros.
6cb16f95 25585
048addec
JD
25586 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
25587 `i' in macros.
7e9d3c2f 25588
048addec
JD
25589 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
25590 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
25591 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
25592 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
25593 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
25594 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
25595 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
25596 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
25597 in macros.
7e9d3c2f 25598
048addec
JD
25599 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
25600 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
25601 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
25602 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
25603 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
25604 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
25605 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
25606 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
25607 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
25608 (remove unused second argument).
7e9d3c2f 25609
048addec 256102001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 25611
048addec
JD
25612 * syntax.c (describe_syntax): New wrapper.
25613 (Finternal_describe_syntax_value): Rename from describe_syntax.
25614 Don't insert space at front and \n at the end.
25615 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 25616
048addec
JD
25617 * regex.c (re_wctype): Try to fix some warnings.
25618 (regcomp, regexec): Don't forget the __restrict.
9ba48103 25619
048addec 256202001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 25621
048addec 25622 * textprop.c (Fget_char_property): Doc fix.
9ba48103 25623
048addec 256242001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 25625
048addec 25626 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 25627
048addec 25628 * data.c (Fsetq_default): Ditto.
c22e59e1 25629
048addec 25630 * callint.c (Finteractive): Ditto.
9271ed2c 25631
048addec 256322001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 25633
048addec
JD
25634 * macros.c: Don't include keymap.h any more.
25635
256362001-11-01 Richard M. Stallman <rms@gnu.org>
25637
25638 * data.c (Fmake_local_variable): Doc fix.
25639
25640 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
25641 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 25642
048addec 25643 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
25644 bindings along with or instead of the buffer local map.
25645 Make the overriding maps override what they should.
25646
f00691a3 256472001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
25648
25649 * window.c (grow_mini_window): Fix typo in comment.
25650
27188d11
GM
256512001-11-01 Gerd Moellmann <gerd@gnu.org>
25652
7b49b9d2
GM
25653 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
25654 (XTset_vertical_scroll_bar): Likewise.
25655
43f7c3ea
GM
25656 * xfns.c (x_build_heuristic_mask): Use four_corners_best
25657 instead of IMAGE_BACKGROUND.
c22e59e1 25658
b350c2e5
GM
25659 * xfns.c (four_corners_best): Reindent.
25660
c22e59e1 25661 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
25662 Handle :box so that it is possible to specify sexprs.
25663
bf00d461
EZ
256642001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
25665
25666 * s/hpux11.h: New file.
25667
f00691a3 256682001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 25669
2b209b97
PJ
25670 * emacs.c (USAGE1): Show command line option --no-window-system
25671 instead of --no-windows in usage.
25672 (standard_args): Rename --no-windows to --no-window-system.
25673 (bug_reporting_address): Follow Emacs coding conventions.
25674
9dbc9081
PJ
25675 * eval.c (Fcommandp): Doc fix.
25676 Change doc-string comments to `new style' [w/`doc:' keyword].
25677
4e10df59
PJ
25678 * frame.c (Fframe_live_p): Doc fix.
25679
25680 * buffer.c (selective-display-ellipses): Doc fix.
25681
dd387b25
GM
256822001-10-31 Gerd Moellmann <gerd@gnu.org>
25683
fe957e65
GM
25684 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
25685
dd387b25
GM
25686 * xfaces.c (realize_x_face): If C is not a single-byte character,
25687 set the face's colors_copied_bitwise_p instead of the defaulted_p
25688 members which have a different meaning.
25689 (free_face_colors): Do nothing for a face whose colors have been
25690 copied bitwise.
25691
c22e59e1 25692 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 25693
f00691a3 256942001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 25695
687784e8
PJ
25696 * marker.c, mocklisp.c: Change doc-string comments to `new style'
25697 [w/`doc:' keyword].
2e1280f8 25698
b9d9a9b9
GM
256992001-10-31 Gerd Moellmann <gerd@gnu.org>
25700
25701 * fns.c (require_unwind): Return Lisp_Object.
25702
f00691a3 257032001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 25704
fa1361cb
PJ
25705 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
25706 (last-input-char): Revert doc-string to be the same as the
25707 doc-string of `last-input-event'.
25708
6c465a15 25709 * xdisp.c: Fix typos in comments.
48400103 25710
eafa3196
GM
257112001-10-31 Gerd Moellmann <gerd@gnu.org>
25712
25713 * window.c (grow_mini_window): Handle case that the root
25714 window is already smaller than the nominal mininum height.
25715
747d3f2a
SM
257162001-10-30 Stefan Monnier <monnier@cs.yale.edu>
25717
bf9bb76f
SM
25718 * emacs.c (main): Don't call keys_of_macros any more.
25719
25720 * lisp.h (keys_of_macros): Remove.
25721
25722 * macros.c (keys_of_macros): Remove.
25723
747d3f2a
SM
25724 * xfaces.c (Fface_attribute_relative_p): Declare args.
25725
5e905a57
JR
257262001-10-30 Jason Rumney <jasonr@gnu.org>
25727
25728 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
25729 (enum_font_cb2): Ignore fonts with vertical orientation.
25730
3a426197
RS
257312001-10-30 Richard M. Stallman <rms@gnu.org>
25732
25733 * keyboard.c (Finput_pending_p): Doc fix.
25734
a742d646
GM
257352001-10-30 Gerd Moellmann <gerd@gnu.org>
25736
259cf6bc
GM
25737 * xterm.c (x_after_update_window_line): Don't run the code
25738 clearing in borders for rows whose visible height is 0.
25739
3f99f948
GM
25740 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
25741 resized_p flag is set. If not set, use the much less flickering
25742 method previously used.
25743
25744 * dispnew.c (change_frame_size_1): Set frame's resized_p.
25745
25746 * frame.h (struct frame) <resized_p>: New member.
25747
b4a3be43
GM
25748 * lread.c (to_multibyte): Ensure read_buffer is at least twice
25749 as large as the number of bytes to convert.
747d3f2a 25750
a742d646
GM
25751 * lread.c (to_multibyte): New function.
25752 (read1): Use it.
25753
cacbb9e9
EZ
257542001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
25755
25756 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
25757
99cb6b2f
GM
257582001-10-30 Gerd Moellmann <gerd@gnu.org>
25759
327f42ee 25760 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
25761 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
25762 if the row's fill_line_p is set and drawing the last glyph with
25763 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 25764
99cb6b2f
GM
25765 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
25766
8e8223e2
SM
257672001-10-29 Stefan Monnier <monnier@cs.yale.edu>
25768
25769 * xmenu.c: Include coding.h and charset.h.
25770 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
25771 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
25772 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
25773 Explicitly set wv->help. Use `TRUE' rather than `True'.
25774 (menu_help_callback): Use empty_string.
25775
25776 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
25777 (Fx_popup_dialog): Explicitly init f.
25778 (w32_menu_display_help): Use empty_string.
25779
4d083a8f
RS
257802001-10-29 Richard M. Stallman <rms@gnu.org>
25781
b2304472
RS
25782 * fns.c (Frequire): Detect recursive try to require the same
25783 feature 3 or more levels deep, and get error.
25784 (require_unwind): New subroutine.
25785 (require_nesting_list): New variable.
25786 (syms_of_fns): Init and staticpro it.
25787
4d083a8f
RS
25788 * print.c (print_object): Clarify indication of insertion type.
25789
2fe41216
EZ
257902001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
25791
90480000
EZ
25792 * coding.c (syms_of_coding): Document that locale-coding-system is
25793 used for decoding input on X.
25794
2fe41216
EZ
25795 * window.c (Fscroll_left, Fscroll_right): Doc fix.
25796
f00691a3 257972001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
25798
25799 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
25800 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
25801
60ebcfe8
GM
258022001-10-29 Gerd Moellmann <gerd@gnu.org>
25803
9a7bdceb
GM
25804 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
25805 use NO_CURSOR if cursor_in_non_selected_windows is false.
25806
3f08fcd2
GM
25807 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
25808 the slant attribute if FRAME is t.
25809
0ccfdad2
GM
25810 * xfns.c (x_set_internal_border_width): Set frame garbaged
25811 when X window doesn't exist yet.
25812
ef253080
GM
25813 * xterm.c (x_after_update_window_line): Clear internal border
25814 in different circumstances.
b116830b 25815
60ebcfe8
GM
25816 * xterm.c (XTread_socket) <KeyPress>: Don't use
25817 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
25818 <handa@etl.go.jp>.
25819
73d25f9c
EZ
258202001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
25821
25822 * m/ibms390.h: New file. From Adam Thornton
25823 <athornton@sinenomine.net>.
25824
cac1daf0
GM
258252001-10-28 Gerd Moellmann <gerd@gnu.org>
25826
053b3256 25827 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 25828
cac1daf0
GM
25829 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
25830 a loop counter.
25831
f00691a3 258322001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 25833
f9711de4 25834 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 25835
4707d2d0
PJ
25836 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
25837 keyword].
25838 Fix typos in comments.
b116830b 25839
d883731c
PJ
25840 * emacs.c (bug_reporting_address): New function.
25841 Use it when displaying usage message.
25842
04012254
PJ
25843 * minibuf.c (read_minibuf): Remove unused external declaration of
25844 variable `Qread_only'.
25845
13b1a09c
PJ
25846 * keymap.c (access_keymap): Remove unused variable `charset'.
25847
5bbf4378
MB
258482001-10-28 Miles Bader <miles@gnu.org>
25849
25850 * xfaces.c (merge_face_heights): Handle TO being relative as well.
25851 Remove #ifdef'd-out code.
25852 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
25853 (syms_of_xfaces): Initialize them.
25854
1ce1e4ee
JR
258552001-10-27 Jason Rumney <jasonr@gnu.org>
25856
25857 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
25858 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
25859 position using the system caret.
25860
25861 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
25862 (w32_system_caret_height, w32_system_caret_x)
25863 (w32_system_caret_y): New variables for tracking system caret.
25864 (w32_initialize): Initialize them.
c2d53558 25865 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 25866
c2d53558
SM
25867 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
25868 New messages types.
1ce1e4ee
JR
25869
25870 * w32term.c (note_mouse_highlight): Clear old help_echo.
25871
f00691a3 258722001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 25873
bb4600a4
PJ
25874 * xterm.c: Fix typo in a comment.
25875
7db35a48
PJ
25876 * emacs.c: Fix typos in comments.
25877 Remove unnecessary spaces.
25878 Change doc-string comments to `new style' [w/`doc:' keyword].
25879 (USAGE2): Fix typos in usage string.
25880
a7248e4f
PJ
25881 * xterm.c: Fix typo in a comment.
25882
52eb0373 25883 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
25884 emacs.c.
25885
62725a92
GM
258862001-10-27 Gerd Moellmann <gerd@gnu.org>
25887
798dbe1f 25888 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 25889 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
25890 farther backward when target_y was not reached.
25891
62725a92
GM
25892 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
25893 Display errno only if non-zero.
25894 (sound_warning): New function.
25895 (vox_configure): Don't treat failing to set sample rate as error.
25896 (various places): Improve error messages.
25897
d4e34d24
EZ
258982001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
25899
944e6f60
EZ
25900 * fileio.c (Faccess_file): Run the argument filename through
25901 Fexpand_file_name, before using it.
25902
d4e34d24
EZ
25903 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
25904 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
25905
38d2af0c
GM
259062001-10-26 Gerd Moellmann <gerd@gnu.org>
25907
da80a8d5
GM
25908 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
25909
38d2af0c
GM
25910 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
25911 Fix clearing in the case of scroll bars on the right.
c2d53558 25912
45de4a6f 259132001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
25914
25915 * w32gui.h (XImage): Add a dummy typedef.
25916
fbd5ceb2
GM
259172001-10-26 Gerd Moellmann <gerd@gnu.org>
25918
c2d53558 25919 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 25920
b23236fb
EZ
259212001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
25922
25923 * frame.c (Fframe_parameter): Fix last change.
25924
5d991fc4
EZ
25925 * fileio.c: Revert last change (which removed old commented-out
25926 version of expand-file-name). Add a comment that explains why
25927 this old version should not be removed.
25928
879eadc3
GM
259292001-10-25 Gerd Moellmann <gerd@gnu.org>
25930
75700ff2
GM
25931 * frame.c (Fframe_parameter): Fix a bug whereby some
25932 ``artificial'' frame parameters, like `minibuffer' were not
25933 obtained by calling Fframe_parameters.
25934
dfe92a6a
GM
25935 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
25936 cursor differently.
25937
879eadc3
GM
25938 * xdisp.c (move_it_vertically_backward): Compute line height
25939 differently. Add heuristic to try to be more compatible to 20.x.
25940
e1010ebe
SM
259412001-10-25 Stefan Monnier <monnier@cs.yale.edu>
25942
d73a471b
SM
25943 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
25944
d6da5a06
GM
25945 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
25946 boolean.
e1010ebe 25947
f66bd220
MB
259482001-10-25 Miles Bader <miles@gnu.org>
25949
25950 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
25951 BG is a pointer to a structure, not a structure.
25952 (gif_format, png_format): Add missing commas.
25953
d436d538
RS
259542001-10-24 Richard M. Stallman <rms@gnu.org>
25955
25956 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 25957 (syms_of_xfaces): Defsubr it.
d436d538 25958
f00691a3 259592001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
25960
25961 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
25962 variable `area'.
25963
f00691a3 259642001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 25965
c2d53558 25966 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 25967
e2a57b34
MB
259682001-10-25 Miles Bader <miles@gnu.org>
25969
25970 * dispextern.h (struct image): Add `background',
25971 `background_valid', and `background_transparent' fields.
25972 (image_background, image_background_transparent): New declarations.
25973 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
25974 * xfns.c (image_background, image_background_transparent)
25975 (four_corners_best): New functions.
c2d53558 25976 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
25977 (gs_format): Add `:background' entry.
25978 (lookup_image): Set IMG's background color if specified.
25979 (pbm_load, xbm_load_image, png_load): Set IMG's background field
25980 when appropriate.
25981 (x_clear_image_1): Reset `background_valid' and
25982 `background_transparent_valid' fields.
25983 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25984 calculating it here. Set IMG's background_transparent field.
25985 (enum xpm_keyword_index): Add XPM_BACKGROUND.
25986 (enum png_keyword_index): Add PNG_BACKGROUND.
25987 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25988 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25989 (enum gif_keyword_index): Add GIF_BACKGROUND.
25990 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 25991 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
25992 Pre-calculate image background color where necessary.
25993 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25994 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25995 color to use for image glyph reliefs.
25996
b547b6e8
GM
259972001-10-24 Gerd Moellmann <gerd@gnu.org>
25998
d9e3b8c6
GM
25999 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
26000 in full-width rows.
c2d53558 26001
b547b6e8
GM
26002 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26003 Fix clearing of area not covered by scroll bar.
26004
f00691a3 260052001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 26006
52eb0373 26007 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 26008 and `real_start'.
c2d53558 26009 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
26010 (glyph_rect): Remove unused variable `area'.
26011
76cb5e06
GM
260122001-10-24 Gerd Moellmann <gerd@gnu.org>
26013
bdbdebff 26014 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
26015
26016 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
26017 (row_containing_pos): Take additional argument DY.
26018 Treat rows ending in middle of char differently.
62e33982
GM
26019 (display_line): Handle tabs on window systems differently.
26020
26021 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
26022 with additional argument.
26023
26024 * dispextern.h (row_containing_pos): Adjust prototype.
26025
76cb5e06
GM
26026 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
26027 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
26028 (try_window_id, try_window_reusing_current_matrix)
26029 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 26030 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 26031
f00691a3 260322001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 26033
c9e60620
PJ
26034 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
26035 gnuemacs).
26036 (HAVE_BOXES): Fix typo in comment.
26037 (push_menu_pane): Fix typo in comment.
26038
52eb0373 26039 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
26040 of `Qwhen'.
26041 (single_display_prop_string_p): Remove unused local declarations
26042 of `Qwhen' and `Qmargin'.
26043 (string_buffer_position): Remove unused variable `around'.
26044 (store_frame_title): Remove unused variable `width'.
26045
15c565ac
PJ
26046 * window.c: Don't define max.
26047 (coordinates_in_window): Remove unused variable `uy'.
26048
a8818eb9
PJ
26049 * widget.c: Don't define max.
26050
996fee11
PJ
26051 * process.c: Don't define max.
26052 (create_process): Remove unused variable `buffer'.
26053
496e1a5b
GM
260542001-10-23 Gerd Moellmann <gerd@gnu.org>
26055
c2d53558 26056 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 26057
5905ae8b
EZ
260582001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
26059
26060 * xfaces.c (Finternal_set_lisp_face_attribute)
26061 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
26062 frame is on a windowed display.
26063
24db49fb
GM
260642001-10-23 Gerd Moellmann <gerd@gnu.org>
26065
c2d53558
SM
26066 * dispnew.c (sync_window_with_frame_matrix_rows):
26067 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
26068 of marginal areas.
26069
c2d53558 26070 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 26071
f0487f05
EZ
260722001-10-23 Andreas Schwab <schwab@suse.de>
26073
26074 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
26075 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
26076
f0a48a01
GM
260772001-10-23 Gerd Moellmann <gerd@gnu.org>
26078
c2d53558 26079 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
26080 REAL_END. Notice if cursor gets overwritten.
26081 (notice_overwritten_cursor): Take X positions as parameters.
26082 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26083 around call to x_draw_glyphs.
26084
f00691a3 260852001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 26086
fc11dff0
PJ
26087 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
26088 instead of C) and usage.
a50a10a0 26089
fc11dff0
PJ
26090 * editfns.c (char-to-string): Fix argument names (use CHAR instead
26091 of C) and usage.
a50a10a0
PJ
26092
26093 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
26094 `left', `max_width' and `max_height'.
26095
8738febd
GM
260962001-10-23 Gerd Moellmann <gerd@gnu.org>
26097
26098 * xdisp.c (display_line): For a tab continued to the next line,
26099 set row's ends_in_middle_of_char_p.
26100
653c329b
GM
261012001-10-22 Gerd Moellmann <gerd@gnu.org>
26102
26103 * xdisp.c (display_line): Fix computation of continuation lines
26104 width for TABs.
26105
f00691a3 261062001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 26107
7ba51063
PJ
26108 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
26109 `Qlaplace'.
26110
f958c5ac
PJ
26111 * fileio.c: Remove unused code.
26112
eb360291
MB
261132001-10-22 Miles Bader <miles@gnu.org>
26114
26115 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
26116 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
26117 Remove `DOC_STRINGS_IN_COMMENTS' cases.
26118
98515cf0
JR
261192001-10-21 Jason Rumney <jasonr@gnu.org>
26120
26121 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
26122
93026d88
EZ
261232001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
26124
26125 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
26126 (Finsert_string): Avoid the multi-line string literals warning.
26127
c9a95b79
MB
261282001-10-22 Miles Bader <miles@gnu.org>
26129
26130 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
26131 (Fdocumentation): Don't use it.
26132 (syms_of_doc): Don't initialize it.
26133
26134 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
26135 * print.c (Fwith_output_to_temp_buffer): Likewise.
26136 * window.c (Fsave_window_excursion): Likewise.
c2d53558 26137 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 26138 (Fsave_restriction): Likewise.
c2d53558
SM
26139 * eval.c (Frun_hooks, Frun_hook_with_args)
26140 (Frun_hook_with_args_until_failure)
26141 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
26142 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
26143 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
26144 (Funwind_protect, Fcondition_case): Likewise.
26145 * coding.c (Ffind_operation_coding_system): Likewise.
26146 * keyboard.c (Ftrack_mouse): Likewise.
26147
a3b10252
MB
261482001-10-21 Miles Bader <miles@gnu.org>
26149
c2d53558 26150 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
26151 (Fmake_hash_table): Add usage: string to doc string.
26152 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 26153 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
26154 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
26155 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
26156 (Fml_prefix_argument_loop): Likewise.
26157
f00691a3 261582001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 26159
c2d53558 26160 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 26161
c6f73eec
PJ
26162 * sysdep.c (init_sys_modes): Change doc-string comments to `new
26163 style' [w/`doc:' keyword].
26164
26165 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
26166 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
26167 comments to `new style' [w/`doc:' keyword].
26168
3cf3436e
JR
261692001-10-21 Jason Rumney <jasonr@gnu.org>
26170
26171 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
26172
c169b8f1
JR
26173 * w32term.c (remember_mouse_glyph): New function.
26174 (w32_mouse_position): Use it.
26175 (note_mouse_movement): If the mouse moved off the glyph, remember
26176 its new position.
c2d53558 26177
4fdd691b
JR
26178 * w32term.h (struct w32_output): Correct spelling of x_compatible.
26179 (w32_display_info): Add mouse_face_overlay.
26180
c169b8f1
JR
26181 * w32term.c (notice_overwritten_cursor): Renamed from
26182 note_overwritten_text_cursor. Rewritten to take glyph widths into
26183 account.
26184 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
26185 (fast_find_string_pos): New function.
26186 (fast_find_position): Return the correct vpos. Add parameter
26187 STOP. In the final row, stop before glyphs having STOP as object.
26188 Don't consider glyphs that are not from a buffer.
26189 (fast_find_position) [0]: Add a presumably more correct version
26190 for after 21.1.
26191 (expose_window_tree, expose_frame): Don't compute intersections here.
26192 (expose_window): Do it here instead.
26193 (expose_window_tree, expose_window, expose_line): Return 1 when
26194 overwriting mouse-face.
26195 (expose_window): If W is the window currently being updated, mark
26196 the frame garbaged.
26197 (expose_frame): If mouse-face was overwritten, redo it.
26198 (x_use_underline_position_properties): New variable.
26199 (syms_of_xterm): DEFVAR_BOOL it.
26200 (x_draw_glyph_string): Add comment to use it in future.
26201 (x_draw_glyph_string): Restore clipping after drawing box.
26202 Fix a computation of the underline position.
26203 (w32_get_glyph_string_clip_rect): Minor cleanup.
26204 (x_fill_stretch_glyph_string): Remove an assertion.
26205 (x_produce_glyphs): Don't convert multibyte characters
26206 to unibyte characters in unibyte buffers.
26207 (cursor_in_mouse_face_p): New function.
26208 (x_draw_stretch_glyph_string): Use it to choose a different GC
26209 when drawing a cursor within highlighted text. Don't draw
26210 background again if it has already been drawn.
26211 (x_draw_glyph_string_box): Don't draw a full-width
26212 box just because the glyph row's full_width_p flag is set.
26213 (x_draw_glyphs): Fix computation of rightmost x for
26214 full-width rows.
26215 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
26216 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 26217 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
26218 (x_update_window_end): Handle overwritten mouse face
26219 also for tool bar windows.
26220 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
26221 DRAW is DRAW_IMAGE_RAISED.
26222 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
26223 actually redrawn. Make the function static.
26224 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
26225 optimize away highlighting if we pass over that same overlay again.
26226 (note_mouse_highlight): Call mouse_face_overlay_overlaps
26227 to detect a case where we have to highlight a different region
26228 despite not having left the currently highlighted region.
26229 Set mouse_face_overlay in the x_display_info. Avoid changing the
26230 mouse pointer shape when show_mouse_face has already done it, or
26231 there is no need. Handle mouse-face and help-echo in strings.
26232 (glyph_rect): New function.
26233 (w32_mouse_position): Use it to raise the threshold for mouse
26234 movement event generation.
26235 (w32_initialize_display_info): Initialize the x_display_info's
26236 mouse_face_overlay.
26237 (w32_set_vertical_scroll_bar): Don't clear a zero height
26238 or width area.
26239 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
26240 a widget to zero height.
26241
3cf3436e 26242 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 26243 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
26244 equivalents in menu_items.
26245 (w32_menu_show): Don't overwrite an item's name with its key
26246 description in case the description is a multibyte string.
26247 (single_submenu): Some cleanup.
26248
26249 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
26250 (postprocess_image): New function.
26251 (lookup_image): Call it for all image types except PostScript.
26252 (x_kill_gs_process): Call postprocess_image.
26253 (tiff_error_handler, tiff_warning_handler): New functions.
26254 (tiff_load): Install them as handlers.
26255 (x_kill_gs_process): Recognize if someone has cleared the image
26256 cache under us.
26257 (valid_image_p): Protect better against invalid image
26258 specifications. Previous code could signal an error.
26259 (Fx_hide_tip, Fshow_tip): Doc fix.
26260 (Fv_max_tooltip_size): New variable.
26261 (syns_of_xfns): DEFVAR_LISP it.
26262 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 26263 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
26264 window_width. Use a maximum tooltip size specified by
26265 Vx_max_tooltip_size, if that has valid contents.
26266 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
26267 Make sure the tooltip is completely visible.
26268 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
26269 (Fx_create_frame): Adjust the frame's height for presence
26270 of the tool bar before calling x_figure_window_size.
26271 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
26272 when the window gets smaller.
26273 (x_set_foreground_color): Set frame's cursor_pixel.
26274 (x_set_foreground_color, x_set_background_color): Cleaned up.
26275 (x_set_font): Handle case of x_new_fontset returning the same name
26276 as before, although there was a change in fontsets.
26277
386ca361
MB
262782001-10-21 Miles Bader <miles@gnu.org>
26279
c2d53558 26280 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
26281 (Flogxor): Add usage: string to doc string.
26282 * charset.c (Fstring): Likewise.
26283 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
26284 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
26285
f00691a3 262862001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 26287
03be2694
PJ
26288 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
26289
26290 * alloc.c: Reindent DEFUNs with doc: keywords.
26291
26292 * abbrev.c (Finsert_abbrev_table_description): Reindent.
26293
14ff1ee0
PJ
26294 * frame.c: Change doc-string comments to `new style' [w/`doc:'
26295 keyword].
26296
2f147815 26297See ChangeLog.9 for earlier changes.
6922b018
KH
26298
26299;; Local Variables:
49b3bd82 26300;; coding: iso-2022-7bit
6922b018 26301;; End:
2a34a036 26302
aaef169d
TTN
26303 Copyright (C) 2001, 2002, 2003, 2004, 2005,
26304 2006 Free Software Foundation, Inc.
2a34a036
GM
26305 Copying and distribution of this file, with or without modification,
26306 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
26307
26308;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4