(pbm_load): Allow color values up to 65535.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b9c89e11
JR
12008-03-28 Jason Rumney <jasonr@gnu.org>
2
3 * image.c (pbm_load): Allow color values up to 65535.
4 Throw an error if max_color_idx is outside the supported range.
5 Report an error when image size is invalid.
6 Read two bytes at a time when raw images have max_color_idx above 255.
7
5070a9f5
CY
82008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9
10 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11 operations, to avoid having the difference between pointers
12 overflow.
13
192788d7
EZ
142008-03-26 Eli Zaretskii <eliz@gnu.org>
15
16 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17 cFileName a file name that includes `?' characters, use the 8+3
18 alias in cAlternateFileName instead.
19
03a864d5
CY
202008-03-26 Chong Yidong <cyd@stupidchicken.com>
21
22 * Version 22.2 released.
23
fe56282f
KH
242008-03-10 Kenichi Handa <handa@ni.aist.go.jp>
25
26 * fileio.c (Finsert_file_contents): Don't make CCL program to
27 append "CCL: Quitted" when the decoding is quitted, but just
28 signal `quit'.
29
30 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
31 append "CCL: Quitted" when the CCL program is quitted.
32 (setup_ccl_program): Initialize ccl->quit_silently to zero.
33
34 * ccl.h (struct ccl_program): New member quit_silently.
35
f2549aa0
AS
362008-03-08 Andreas Schwab <schwab@suse.de>
37
38 * process.h (struct Lisp_Process): Declare bit field as unsigned.
39
3efaadb7
SM
402008-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
41
42 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
43 size of resulting string.
44
4e5a6f83
JR
452008-03-05 Jason Rumney <jasonr@gnu.org>
46
ca8a12a7
JR
47 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
48
70f6d796
YM
492008-03-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50
51 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
52 Don't pretend as if characters with display property haven't been
53 consumed for string-replacing-string case.
54
05884da4
CY
552008-02-29 Chong Yidong <cyd@stupidchicken.com>
56
57 * xdisp.c (get_overlay_strings_1): Add missing argument type.
58
a88a1197
YM
592008-02-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
60
61 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
62
1239e198
CY
632008-02-27 Chong Yidong <cyd@stupidchicken.com>
64
65 * process.c (wait_reading_process_output): Check for window
66 changes caused by timers.
67 Suggested by Johan Bockg\e,Ae\e(Brd.
68
6667db4e
CY
692008-02-26 Chong Yidong <cyd@stupidchicken.com>
70
71 * editfns.c (Fformat): Doc fix.
72
152e0c97
CY
732008-02-25 Chong Yidong <cyd@stupidchicken.com>
74
75 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
76
59c6b61c
JR
772008-02-24 Jason Rumney <jasonr@gnu.org>
78
79 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
80
41cac0d7
CY
812008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
82
83 * xterm.c (x_set_offset): Don't change the gravity if
84 CHANGE_GRAVITY is -1.
85
837584c7
SM
862008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
87
88 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
89 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
90
6a146d31
JR
912008-02-18 Jason Rumney <jasonr@gnu.org>
92
93 * w32fns.c (Fw32_shell_execute): Encode parameters.
94
073387e7
JR
952008-02-15 Jason Rumney <jasonr@gnu.org>
96
97 * w32term.c (x_draw_glyph_string_background): Clear the background
98 manually when cleartype is in use.
99 (x_draw_glyph_string_foreground): Draw text transparently when
100 cleartype is in use.
101
d375705e
EZ
1022008-02-09 Eli Zaretskii <eliz@gnu.org>
103
104 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
105
85bb72ee
JR
1062008-02-05 Jason Rumney <jasonr@gnu.org>
107
108 * w32term.c (w32_read_socket) <WM_CHAR>: Use locale-coding-system
109 instead of using mule-unicode-* charsets directly.
110
05b33f7c
JB
1112008-02-05 Juanma Barranquero <lekktu@gmail.com>
112
113 * unexec.c (make_hdr):
114 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
115
10fdc4c2
YM
1162008-02-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
117
118 * macterm.c [MAC_OSX] (fn_keycode_to_keycode_table): Add more entries
ca1617bf 119 that ignore kEventKeyModifierFnMask.
10fdc4c2
YM
120 (XTread_socket) [MAC_OSX]: Move code for ignoring
121 kEventKeyModifierFnMask for some keys ...
122 (mac_mapped_modifiers) [MAC_OSX]: ... to here. Add argument KEY_CODE.
123 All callers changed.
ca1617bf
YM
124 (mac_to_emacs_modifiers): New argument UNMAPPED_MODS.
125 All callers changed.
10fdc4c2 126 (mac_quit_char_key_p, XTread_socket): Get Emacs modifiers from
ca1617bf 127 mapped modifiers together with original ones.
10fdc4c2 128
0acdaf8d
KH
1292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
130
131 * ccl.c (CCL_WRITE_CHAR): Fix overflow checking.
132 (CCL_WRITE_MULTIBYTE_CHAR): Likewise.
133
a32aad64
KH
1342008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
135
136 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
137 return it ORed with ctrl_modifier.
138
4ada4a87
TTN
1392008-01-26 Thien-Thi Nguyen <ttn@gnuvola.org>
140
141 * fns.c (Fclrhash): Return TABLE.
142
223b3d1d
YM
1432008-01-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
144
145 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
146 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
147 is set even without positional changes.
148 (x_scroll_bar_clear): Set bar->redraw_needed_p.
149
150 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
151
5a7a1dde
KH
1522008-01-19 Kenichi Handa <handa@m17n.org>
153
c041e2d1
JB
154 * coding.c (detect_coding_iso2022): New arg latin_extra_code_state.
155 Allow Latin extra codes only when *latin_extra_code_state is nonzero.
5a7a1dde 156 (detect_coding_mask): If there is a NULL byte, detect the encoding
c041e2d1
JB
157 as UTF-16 or binary. If Latin extra codes exist, detect the encoding
158 as ISO-2022 only when no other proper encoding is found.
5a7a1dde 159
602e142f
JR
1602008-01-17 Jason Rumney <jasonr@gnu.org>
161
d6169680
JR
162 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
163
602e142f
JR
164 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
165 the unicode range available in MULE by locale-coding-system.
c041e2d1 166 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
167 earlier.
168
5d2c8fc0
GM
1692008-01-17 Glenn Morris <rgm@gnu.org>
170
171 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
172 to HAVE_X86_64_LIB64_DIR.
173
5ee4de53
YM
1742008-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
175
176 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
177 [MAC_OSX] (init_mac_osx_environment): Initialize it.
05b33f7c 178 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
179 when used on child processes.
180
63dbe8da
GM
1812008-01-10 Chong Yidong <cyd@stupidchicken.com>
182
183 * process.c (wait_reading_process_output): Check for window
184 changes caused by timers.
185
081f2203
GM
1862008-01-08 Glenn Morris <rgm@gnu.org>
187
188 * emacs.c (main): Set copyright year to 2008.
189
bea1686f
YM
1902008-01-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
191
192 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
193 #ifdef MAC_OS.
194
78379264
RS
1952008-01-04 Richard Stallman <rms@gnu.org>
196
197 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
198
5742be86
YM
1992007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
200
9d826ef2
YM
201 * process.c (make_process): Initialize pty_flag to Qnil instead of 0
202 as it is not a bit field on Emacs 22 yet.
203
5742be86
YM
204 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
205
585a8772
YM
2062007-12-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
207
208 * macmenu.c (fill_menubar) [MAC_OSX]: Add workaround for Mac OS X 10.5
209 about not changing Help menu title.
210
b014713c
EZ
2112007-12-22 Eli Zaretskii <eliz@gnu.org>
212
213 * callint.c (syms_of_callint) <command-history>: Add reference to
214 history-length in the doc string.
215
a313b291
JR
2162007-12-17 Jason Rumney <jasonr@gnu.org>
217
218 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
219 before passing as wParam.
220
2e3566d8
JR
2212007-12-14 Jason Rumney <jasonr@gnu.org>
222
223 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
224 for characters above 127.
225
bf254037
JR
2262007-12-13 Jason Rumney <jasonr@gnu.org>
227
228 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
229 before dereferencing array.
230 (lookup_vk_code): Remove zero comparison.
231
0277bfa1
RS
2322007-12-02 Magnus Henoch <mange@freemail.hu>
233
234 * process.c (make_process): Initialize pty_flag to 0.
235
44b1dc2e
JR
2362007-12-02 Jason Rumney <jasonr@gnu.org>
237
238 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
239 specified XBMs.
240
d0f44b71
RS
2412007-12-01 Richard Stallman <rms@gnu.org>
242
243 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
244
959116ef
YM
2452007-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
246
247 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
248 New variable.
249 (mac_try_close_socket) [MAC_OSX]: New function.
250 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
251 Update cfsockets_for_select. Replace invalid CFRunLoop source.
252
253 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
254 Use mac_try_close_socket.
255
9485484a
GM
2562007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
257
258 * s/gnu-kfreebsd.h: New file.
259
7aee2da7
YM
2602007-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
261
262 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
263 reloc_base.
264 (copy_dysymtab): Compute relocation base here.
265 (rebase_reloc_address) [__ppc64__]: New function.
266 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
267 changed.
268
0a7a6051
JR
2692007-11-26 Jason Rumney <jasonr@gnu.org>
270
271 * w32proc.c (sys_spawnve): Quote args with wildcards.
272
dd9b0004
AS
2732007-11-26 Andreas Schwab <schwab@suse.de>
274
275 * process.c (list_processes_1): Fix indentation level of the
276 command column.
277
b2411edf
YM
2782007-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
279
280 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
281 __objc_* sections.
282 (unrelocate) [_LP64]: Set relocation base to address of data segment.
283
89df6fc6
AS
2842007-11-23 Andreas Schwab <schwab@suse.de>
285
286 * editfns.c (Fformat): Handle %c specially since it requires the
287 argument to be of type int.
288
1fbf5386
JD
2892007-11-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
290
291 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
05b33f7c 292 file for image is nil.
1fbf5386 293
5f42a7eb
JR
2942007-11-19 Jason Rumney <jasonr@gnu.org>
295
296 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
297 returns NULL on failure.
298
b51d6c92
SM
2992007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
300
301 * search.c (Fset_match_data): Remove the `evaporate' feature.
302 (unwind_set_match_data): Don't use the `evaporate' feature.
303
f52fcaa4
AS
3042007-11-15 Andreas Schwab <schwab@suse.de>
305
b51d6c92
SM
306 * editfns.c (Fformat): Correctly format EMACS_INT values.
307 Also take precision into account when formatting an integer.
f52fcaa4 308
bb189688
JB
3092007-11-15 Juanma Barranquero <lekktu@gmail.com>
310
311 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
312 (Fx_display_pixel_height, Fx_display_planes)
313 (Fx_display_color_cells, Fx_server_max_request_size)
314 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
315 (Fx_display_visual_class, Fx_display_save_under):
316 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
317 (Fx_display_pixel_height, Fx_display_planes)
318 (Fx_display_color_cells, Fx_server_max_request_size)
319 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
320 (Fx_display_mm_height, Fx_display_mm_width)
321 (Fx_display_backing_store, Fx_display_visual_class)
322 (Fw32_select_font, Fx_display_save_under):
323 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
324 (Fx_display_pixel_height, Fx_display_planes)
325 (Fx_display_color_cells, Fx_server_max_request_size)
326 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
327 (Fx_display_save_under): Fix typos in docstrings.
328
cca3fd48
JB
3292007-11-14 Juanma Barranquero <lekktu@gmail.com>
330
331 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
332 corresponding to deleted entries; they are an implementation detail.
333 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
334 Remove variables.
335 (Fw32_define_rgb_color, Fw32_load_color_file): Fix typos in docstrings.
336 (Fx_server_version): Reflow docstring.
337 (Fw32_shell_execute): Doc fixes.
338
f1ca9497
JB
3392007-11-13 Juanma Barranquero <lekktu@gmail.com>
340
341 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
342 if w32_parse_hot_key returned nil.
343
d83e0299
JL
3442007-11-10 Juri Linkov <juri@jurta.org>
345
346 * puresize.h (BASE_PURESIZE): Increase to 1130000.
347
8383dac7
SM
3482007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
349
350 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
351
d388d2ac
CY
3522007-11-07 Chong Yidong <cyd@stupidchicken.com>
353
354 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
355 twice.
356
357 * xdisp.c (handle_face_prop): Fix last change.
358
59961aa4
JD
3592007-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
360
361 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
362 abort with a message on unhandled store_type values.
363
db3a4b2f
RS
3642007-11-04 Richard Stallman <rms@gnu.org>
365
366 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
367 not just for after-strings and before-strings.
368 Call face_for_overlay_string and pass the overlay to it.
369 (handle_display_prop): Determine whether property came from an overlay.
370 Pass OVERLAY arg to handle_single_display_spec.
371 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
372 (load_overlay_strings): Fill in it->string_overlays.
373 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
374
375 * xfaces.c (face_for_overlay_string): Function renamed from
376 face_at_buffer_position_no_overlays, and add arg OVERLAY.
377
378 * dispextern.h (struct it): New elt string_overlays.
379 New elt from_overlay, also in stack.
380 Rearrange a few elements.
381 (face_for_overlay_string): Decl renamed from
382 face_at_buffer_position_no_overlays, and add argument.
8383dac7 383
d85b2f1e
RS
3842007-11-03 Richard Stallman <rms@gnu.org>
385
17d6c69d
RS
386 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
387 to get the base face for an overlay string.
388
389 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
390
391 * xfaces.c (face_at_buffer_position_no_overlays): New function.
392
d85b2f1e
RS
393 * xdisp.c (handle_stop): Move some code out of loop.
394
b4a638b3
GM
3952007-11-01 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org>
396
397 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
f1ca9497 398 Don't set s->stippled_p here, since it has already been set by
b4a638b3
GM
399 x_set_glyph_string_gc from x_draw_glyph_string.
400
7837948f
YM
4012007-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
402
403 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
404 Fix conversion from Lisp object to ATSUFontID.
405
63eb134d
JR
4062007-10-30 Jason Rumney <jasonr@gnu.org>
407
408 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
409
ae7c60a9
YM
4102007-10-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
411
412 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
413 Don't assume regions are aligned to page boundary.
414 (print_load_command_name): Add LC_UUID if defined.
415
e58a672c
RS
4162007-10-30 Richard Stallman <rms@gnu.org>
417
418 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
419
3888559e
JB
4202007-10-29 Juanma Barranquero <lekktu@gmail.com>
421
422 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
423 <installation-directory>: Reflow docstring.
424
b6ff295c
MR
4252007-10-26 Martin Rudalics <rudalics@gmx.at>
426
427 * window.c (window_min_size_2): Don't count header-line.
428
a8d6819a
JB
4292007-10-25 Juanma Barranquero <lekktu@gmail.com>
430
431 * w32.c (init_environment): Fix tiny memory leak.
a7d9e21f 432 (w32_get_resource): Remove unused variable `ok'.
a8d6819a 433
3a7632e5
JR
4342007-10-24 Jason Rumney <jasonr@gnu.org>
435
436 * w32fns.c: Include math.h.
437
a04ee161
RS
4382007-10-24 Richard Stallman <rms@gnu.org>
439
440 * frame.c (x_figure_window_size): For fullscreen case,
441 set USPosition | PPosition without clobbering rest of window_prompting.
442
443 * keyboard.c (Fcurrent_idle_time): Doc fix.
444
445 * print.c (Fwith_output_to_temp_buffer): Doc fix.
446
a6c93f61
JB
4472007-10-19 Juanma Barranquero <lekktu@gmail.com>
448
449 * process.c (Fset_process_filter): Doc fix.
450
24eb74a3
GM
4512007-10-17 Glenn Morris <rgm@gnu.org>
452
453 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
454 (syms_of_minibuf): Add Qcompletion_ignore_case.
455 * dired.c (Qcompletion_ignore_case): Change to external.
456 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
457 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
458 (Fread_file_name): Use it rather than intern'ing.
459
460 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
461 (Fread_coding_system): Ignore case of user input.
462
da6658e8
YM
4632007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
464
465 * xdisp.c (handle_display_prop): Ignore display specs after
466 replacing one when string text is being replaced.
467 (handle_single_display_spec): Pretend as if characters with display
468 property haven't been consumed only when buffer text is being replaced.
469
fe4cd268
JB
4702007-10-14 Juanma Barranquero <lekktu@gmail.com>
471
472 * eval.c (do_autoload): Don't save autoloads.
473
474 * data.c (Ffset): Save autoload of the function being set.
475
7663ea74
GM
4762007-10-07 John Paul Wallington <jpw@pobox.com>
477
478 * xfns.c (x_create_tip_frame): Set the `display-type' frame
479 parameter before setting up faces.
480
543bb368
EZ
4812007-10-13 Eli Zaretskii <eliz@gnu.org>
482
483 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
484 selected frame'' on MSDOS).
485
5839d7e8
MR
4862007-10-12 Martin Rudalics <rudalics@gmx.at>
487
488 * frame.c (Qexplicit_name): New variable.
489 (x_report_frame_params): Report it in parameter alist.
490 (syms_of_frame): Intern and staticpro it.
491
f8d1a163
JR
4922007-10-09 Jason Rumney <jasonr@gnu.org>
493
494 * w32term.c (x_set_window_size): Disable code that attempts to tell
495 Lisp code about a size change before it actually happens.
496
ec406436
RS
4972007-10-09 Richard Stallman <rms@gnu.org>
498
499 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
500 return HANDLED_RETURN.
501
cb94103f
MR
5022007-10-06 Martin Rudalics <rudalics@gmx.at>
503
504 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
505 when there's an unread command event.
506
507 * frame.c (focus_follows_mouse): Moved here from frame.el to allow
508 window autoselection act appropriately when leaving selected frame.
509 (syms_of_frame): Initialize focus_follows_mouse.
510 * frame.h (focus_follows_mouse): Extern it.
511 * macterm.c (XTread_socket): When focus_follows_mouse is nil
512 make SELECT_WINDOW_EVENT only if we don't leave the selected
513 frame.
514 * msdos.c (dos_rawgetc): Likewise.
515 * w32term.c (w32_read_socket): Likewise.
516 * xterm.c (handle_one_xevent): Likewise.
517 * xdisp.c (syms_of_xdisp): In doc-string of
518 mouse-autoselect-window mention focus-follows-mouse.
519
41618deb
AS
5202007-10-06 Andreas Schwab <schwab@suse.de>
521
522 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
523
cb91e86a
YM
5242007-10-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
525
526 * macterm.c (mac_load_query_font): Fix missing return value.
527 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
528 Add BLOCK_INPUT.
529
4024ec3a
JB
5302007-10-04 Juanma Barranquero <lekktu@gmail.com>
531
532 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
533
65dad34a
RS
5342007-10-02 Richard Stallman <rms@gnu.org>
535
536 * xdisp.c (get_window_cursor_type): Implement documented behavior
537 for cursor-in-non-selected-windows = t.
538
87ef8938
RS
5392007-10-01 Juanma Barranquero <lekktu@gmail.com>
540
fe4cd268 541 * lread.c (Fload): Fix typo in docstring.
87ef8938 542
bb378f19
JL
5432007-09-29 Juri Linkov <juri@jurta.org>
544
545 * emacs.c (standard_args): Change priority of "--no-splash"
546 from 40 to 3. Add "--no-desktop" with the same priority.
547
b380e47e
JR
5482007-09-29 Jason Rumney <jasonr@gnu.org>
549
550 * w32.c (w32_get_resource): Always close registry keys.
551
60860eb3
JR
5522007-09-27 Jason Rumney <jasonr@gnu.org>
553
554 * makefile.w32-in (LIBS): Add COMCTL32.
555
556 * w32fns.c (globals_of_w32fns): Init common controls.
557
2e2cc4e4
RS
5582007-09-21 Richard Stallman <rms@gnu.org>
559
560 * image.c (our_memory_buffer): Renamed from omfib_buffer.
561
e243eb1f
JB
5622007-09-21 Juanma Barranquero <lekktu@gmail.com>
563
564 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
565 underline_color, to draw strike-through.
566
b2217c17
GM
5672007-09-20 Glenn Morris <rgm@gnu.org>
568
569 * process.c (Fmake_network_process): Doc fix.
570
aabc29c8
RS
5712007-09-19 Richard Stallman <rms@gnu.org>
572
573 * buffer.c (Foverlays_at): Doc fix.
574
088c8c37
SM
5752007-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
576
577 * fns.c (Fplist_put): Preserve uneven tail data.
578
d51e0fc4
JD
5792007-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
580
581 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
582 when we have no file name for the icon.
583 (xg_tool_bar_expose_callback): Remove.
584 (xg_create_tool_bar): Don't connect expose signal to
585 xg_tool_bar_expose_callback.
586
257c9715
AS
5872007-09-16 Andreas Schwab <schwab@suse.de>
588
589 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
590 values instead of zapping them.
591
fc2b776c
GM
5922007-09-15 Glenn Morris <rgm@gnu.org>
593
594 * s/hpux.h: No longer define `static' as nothing.
595
a99dc82b
GM
5962007-09-14 Glenn Morris <rgm@gnu.org>
597
598 * fringe.c (init_fringe_bitmap) <swap nibble>: Move to file scope.
599 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
600 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
601 scope and rename to omfib_buffer for clarity.
602 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
603
e243eb1f
JB
6042007-09-14 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
605
4a46077f
JD
606 * gtkutil.c (xg_get_file_with_chooser): Move GCPRO1 after declarations.
607
608 * termhooks.h (enum event_kind): Remove trailing comma.
609
610 * frame.h (enum): Remove trailing comma.
611
6122007-09-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
613
614 * keyboard.c, xterm.c, xfaces.c (abs): #undef before #define.
615
5fc76feb
GM
6162007-09-12 Glenn Morris <rgm@gnu.org>
617
618 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
619 (menu_grab_callback): All uses changed.
620
621 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
622 (x_reply_selection_request): All uses changed.
623
315912fb
TTN
6242007-09-06 Pixel <pixel@mandriva.com> (tiny change)
625
626 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
627
424aca2e
GM
6282007-09-06 Glenn Morris <rgm@gnu.org>
629
f63f5da8 630 * gtkutil.c (menu_grab_callback) <cnt>:
424aca2e
GM
631 * xselect.c (x_reply_selection_request) <cnt>: Move static
632 variable to file scope.
633
63a19c30
JR
6342007-09-02 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
635
636 * w32proc.c (delete_child): Don't terminate threads of zombies.
637
93716e0e
JD
6382007-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
639
640 * keyboard.c: Qrtl is new.
e243eb1f
JB
641 (parse_tool_bar_item): Handle :rtl keyword.
642 (syms_of_keyboard): Intern :rtl keyword.
93716e0e
JD
643
644 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
645
e243eb1f
JB
646 * gtkutil.c (file_for_image, find_rtl_image): New functions.
647 (xg_get_image_for_pixmap): Use file_for_image
648 (update_frame_tool_bar): If direction is RTL, use RTL image if
649 defined. Use Gtk stock images or named theme icons if defined.
93716e0e 650
d0d3a311
MR
6512007-08-29 Martin Rudalics <rudalics@gmx.at>
652
653 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
654
655 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
656 last-repeatable-command.
657 (init_kboard): Initialize Vlast_repeatable_command.
658 (command_loop_1): Set it to real_this_command unless that was
659 bound to an input event.
660 (mark_kboards): Mark it.
661
747c316e
JB
6622007-08-28 Juanma Barranquero <lekktu@gmail.com>
663
664 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
665 Doc fixes.
666
5f4a9ec6
JD
6672007-08-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
668
669 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
670 so no Lisp code is executed.
671
769174c4
YM
6722007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
673
674 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
675 for nonexistent or zero-width glyph in composition glyph.
676
a13ab63f
RS
6772007-08-27 Richard Stallman <rms@gnu.org>
678
679 * eval.c (condition-case): Doc fix.
680
6812007-08-27 Masatake YAMATO <jet@gyve.org>
682
683 * xfaces.c (tty_supports_face_attributes_p): Fix code
684 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
685 was copied and not edited.
686
b636b4c1
SM
6872007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
688
689 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
690
9ecb827b
SM
6912007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
692
1d064697
SM
693 * lread.c (Qold_style_backquotes): New var.
694 (syms_of_lread): Init and staticpro it.
695 (load_warn_old_style_backquotes): New fun.
696 (Fload): Use them to warn about old style backquotes.
697 (end_of_file_error, Fload): Remove unused vars.
698
5772ed4b
SM
699 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
700
9ecb827b 701 * lread.c (Vold_style_backquotes): New var.
5aa273b0 702 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
703 (read1): Set it when we find an old-style (back)quote.
704
32e1c7b1
JR
7052007-08-22 Jason Rumney <jasonr@gnu.org>
706
707 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
708
97c4ef2a
SM
7092007-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
710
711 * insdel.c (reset_var_on_error): New fun.
712 (signal_before_change, signal_after_change):
713 Use it to reset (after|before)-change-functions to nil in case of error.
714 Bind inhibit-modification-hooks to t.
715 Don't bind (after|before)-change-functions to nil while they run.
716
259d1516
AS
7172007-08-19 Andreas Schwab <schwab@suse.de>
718
719 * alloc.c (pure): Round PURESIZE up.
720
a33f5759
JD
7212007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
722
723 * xterm.c (handle_one_xevent): Remove check that mouse click is in
724 active frame.
725
0c984824
GM
7262007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
727
fb2336a1
GM
728 * term.c (tty_default_color_capabilities): Declare static
729 variables in file scope, to avoid HPUX compiler problem.
0c984824 730
e4f61b3b
JD
7312007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
732
733 * gtkutil.c (update_frame_tool_bar): Use -1 as index
734 to gtk_toolbar_insert.
735
14e1270c
YM
7362007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
737
738 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
739 filling pixmap with stippled background.
740
a22dec27
SM
7412007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
742
743 * print.c (new_backquote_output): Rename from old_backquote_output.
744 (print): Inverse its logic (according to its name) so as to match the
745 behavior of new_backquote_flag in lread.c.
746
e575132a
YM
7472007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
748
749 * gmalloc.c (posix_memalign): New function.
750
22e9fe24
GM
7512007-08-08 Glenn Morris <rgm@gnu.org>
752
753 * Replace `iff' in doc-strings and comments.
754
1cc8a861
CY
7552007-08-07 Chong Yidong <cyd@stupidchicken.com>
756
3d91c31d
CY
757 * dispextern.h (struct image): New members.
758
759 * image.c: Sync to trunk version.
760 (search_image_cache, uncache_image, image-refresh): New functions.
761 Check for fg and bg colors.
762 (lookup_image): Use search_image_cache. Cache fg and bg colors.
763 (pbm_load): Another check for invalid image data.
764 (png_load): Ignore default background field.
765
1cc8a861
CY
766 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
767
31521cb0
YM
7682007-08-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
769
770 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
771
e490694a
YM
7722007-08-07 Sam Steingold <sds@gnu.org>
773
774 * gmalloc.c (__morecore): Fix the declaration to comply with the
775 definition.
776
22ffeb19
YM
7772007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
778
779 * emacs.c (main)
780 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
781 Call malloc_enable_thread on interactive startup.
782
783 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
e575132a
YM
784 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
785 [USE_PTHREAD]: Conditionalize with it.
22ffeb19
YM
786 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
787 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
788 New functions.
789
675bab44
CY
7902007-08-06 Chong Yidong <cyd@stupidchicken.com>
791
792 * xdisp.c (redisplay_window): When restoring original buffer
793 position, make sure it is still valid.
794
97958f77
MR
7952007-08-06 Martin Rudalics <rudalics@gmx.at>
796
797 * window.c (window_min_size_2): New function.
798 (window_min_size_1, size_window, Fdisplay_buffer)
799 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
800 windows without mode- or header-lines when window-min-height is
801 too small.
802 (size_window): Reset nodelete_p after testing it, following an
803 earlier note by Kim F. Storm.
804 (display_buffer): Do not set split_height_threshold to twice the
805 value of window_min_height to avoid changing the value of a
806 customizable variable. Rather explicitly check whether the
807 height of the window that shall be splitted is at least as large
808 as split_height_threshold.
809 (Fwindow_full_width_p): New defun.
810 (syms_of_window): Defsubr it.
811
812 * window.h: Add EXFUN for Fwindow_full_width_p.
813
8142007-08-06 Andreas Schwab <schwab@suse.de>
815
816 * window.c (Fdisplay_buffer): Use NILP.
817 (Fset_window_scroll_bars): Likewise.
818
73ff9d42
RS
8192007-08-03 Richard Stallman <rms@gnu.org>
820
821 * fileio.c (Fvisited_file_modtime): Use make_time.
822
d73a9dd7 8232007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
ec96293f
VJL
824
825 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
826 build.
827
eff23ff3
DN
8282007-07-30 Stefan Monnier <monnier@iro.umontreal.ca>
829
830 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
831
cacc7b51
GM
8322007-07-25 Glenn Morris <rgm@gnu.org>
833
834 * Relicense all FSF files to GPLv3 or later.
835
836 * COPYING: Switch to GPLv3.
837
ee04257d
JR
8382007-07-24 Jason Rumney <jasonr@gnu.org>
839
840 * w32fns.c (x_real_positions): Get real position from OS instead of
841 calculating it.
842
50624218
JR
8432007-07-23 Jason Rumney <jasonr@gnu.org>
844
845 * filelock.c (current_lock_owner): Allow for @ sign in username.
846
75be5258
EZ
8472007-07-20 Eli Zaretskii <eliz@gnu.org>
848
b395d6e1
EZ
849 * makefile.w32-in (clean): Don't delete *~.
850
75be5258
EZ
851 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
852 Define if not defined.
853
2b6e2f4d
JR
8542007-07-18 Jason Rumney <jasonr@gnu.org>
855
856 * w32proc.c (w32_executable_type): Handle 64 bit executables.
857
1faa97e4
JB
8582007-07-16 Juanma Barranquero <lekktu@gmail.com>
859
860 * coding.c (Ffind_operation_coding_system):
861 * eval.c (For, Fand, Fprogn):
862 * keyboard.c (Ftrack_mouse):
863 * print.c (Fwith_output_to_temp_buffer):
864 * window.c (Fsave_window_excursion): Doc fixes (some reported
865 by Johan Bockg\e,Ae\e(Brd).
866
ec07b64b
RS
8672007-07-15 Richard Stallman <rms@gnu.org>
868
869 * data.c (Fsetq_default): Doc fix.
870
871 * eval.c (Fsetq): Doc fix.
872
d5781bb6
JR
8732007-07-11 Jason Rumney <jasonr@gnu.org>
874
875 * makefile.w32-in (LIBS): Include OLE32.
876
877 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
878 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
879
de3f71d6
YM
8802007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
881
882 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
883 Check WINDOWP before using XWINDOW.
884
251db0f4
JB
8852007-06-27 Juanma Barranquero <lekktu@gmail.com>
886
887 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
888
56f3136b
YM
8892007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
890
891 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
892 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
893 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
894 (_free_internal, memalign): Use them.
895 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
896 Initialize to PTHREAD_MUTEX_INITIALIZER.
897 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
898 (morecore_nolock): Rename from morecore. All uses changed.
899 Use only nolock versions of internal allocation functions.
900 (_malloc_internal_nolock, _realloc_internal_nolock)
901 (_free_internal_nolock): New functions created from
902 _malloc_internal, _realloc_internal, and _free_internal.
903 (_malloc_internal, _realloc_internal, _free_internal): Use them.
904 Copy hook value to automatic variable before its use.
905 (memalign): Copy hook value to automatic variable before its use.
906
d217d390
JR
9072007-06-21 Jason Rumney <jasonr@gnu.org>
908
909 * image.c (convert_mono_to_color_image): Swap fore and background.
910
76e4973a
JR
9112007-06-20 Jason Rumney <jasonr@gnu.org>
912
913 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
914 (w32_free_bdf_font): Unmap memory not handle.
915
43e9fc93
JB
9162007-06-20 Juanma Barranquero <lekktu@gmail.com>
917
918 * w32.c (_wsa_errlist): Fix typo in error message.
919 (init_environment): Ignore any environment variable from the
920 registry having a null value.
921
d058c8a1
JR
9222007-06-17 Jason Rumney <jasonr@gnu.org>
923
924 * w32menu.c (add_menu_item): Don't use multibyte string functions on
925 unicode strings.
926
c3e35d75
JB
9272007-06-17 Juanma Barranquero <lekktu@gmail.com>
928
929 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
930 Fix typo in docstring.
931
96f6c170
EZ
9322007-06-16 Eli Zaretskii <eliz@gnu.org>
933
934 * w32menu.c (add_menu_item): Escape `&' characters in menu items
935 and their keybindings.
936
72918b61
CY
9372007-06-14 Chong Yidong <cyd@stupidchicken.com>
938
939 * composite.c (update_compositions): Check validity of compositions.
940
f9de989a
JR
9412007-06-10 Jason Rumney <jasonr@gnu.org>
942
943 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
944
fb7ece24
JR
9452007-06-06 Jason Rumney <jasonr@gnu.org>
946
947 * s/ms-w32.h: Don't define HAVE_TZNAME.
948
e29bb91e
CY
9492007-06-06 Chong Yidong <cyd@stupidchicken.com>
950
951 * image.c (xpm_load): Remove spurious call to
952 xpm_init_color_cache.
953
60fb4860
CY
9542007-06-06 Martin Rudalics <rudalics@gmx.at>
955
956 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
957
a021e026
CY
9582007-06-05 Dan Nicolaescu <dann@ics.uci.edu>
959
960 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
961 * xdisp.c (next_element_from_buffer):
962 * window.c (delete_window):
963 * term.c (term_mouse_highlight):
964 * msdos.c (getdefdir):
965 * macterm.c (mac_create_bitmap_from_bitmap_data)
966 (init_font_name_table):
967 * fns.c (Fsxhash):
968 * data.c (Fmake_local_variable):
969 * ccl.c (ccl_driver): Likewise.
970
56a94c1e
JB
9712007-06-04 Juanma Barranquero <lekktu@gmail.com>
972
973 * window.c (Fshrink_window): Reflow docstring.
974
2c5e0a10
CY
9752007-06-02 Chong Yidong <cyd@stupidchicken.com>
976
7dfc4cda
CY
977 * Version 22.1 released.
978
2c5e0a10
CY
979 * xfns.c (x_set_name_internal): Undo last change.
980
9812007-06-01 Richard Stallman <rms@gnu.org>
982
983 * xfns.c (x_encode_text): Add GCPRO.
984 (x_set_name_internal): Separate USE_GTK and non-USE_GTK cases.
985
8e45f175
CY
9862007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
987
988 * xfns.c (x_set_name_internal): Save encoded name before
989 x_encode_text in case string data is relocated.
990
b49dd850
RS
9912007-05-31 Richard Stallman <rms@gnu.org>
992
993 * buffer.c (syms_of_buffer): Doc fix.
994
4bde4d4f
YM
9952007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
996
997 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
998 around current_column call.
999
ef92b69b
CY
10002007-05-24 Chong Yidong <cyd@stupidchicken.com>
1001
1002 * xdisp.c (redisplay_window): If first window line is a
1003 continuation line, recompute the new window start instead of
1004 recentering.
1005
3654a2c3
YM
10062007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1007
1008 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
1009 Call mac_wakeup_from_rne on window size change.
1010
c81036c6
RS
10112007-05-22 Richard Stallman <rms@gnu.org>
1012
1013 * xterm.c (x_connection_closed): Remove NO_RETURN.
1014
d46b87e9
SM
10152007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1016
1017 * syntax.c (skip_chars): Update syntax-table only after we checked that
1018 the new location is valid.
1019
1d5bcd55
YM
10202007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1021
1022 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
1023 mac_get_window_bounds.
1024
2fddf4ab
GM
10252007-05-17 Glenn Morris <rgm@gnu.org>
1026
1027 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
1028
e4f5123f
YM
10292007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1030
1031 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
1032 dead key repeat and up events.
1033
4e3908cd
CY
10342007-05-13 Chong Yidong <cyd@stupidchicken.com>
1035
1036 * xterm.c (XTread_socket): Revert last change.
1037
e9c8d984
CY
10382007-05-12 Chong Yidong <cyd@stupidchicken.com>
1039
96587f7e
CY
1040 * image.c (pbm_load): Correctly check image size for greyscale pbm.
1041
e9c8d984
CY
1042 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
1043
c10b2810
SM
10442007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1045
1046 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
1047
205f01b4
RS
10482007-05-06 Richard Stallman <rms@gnu.org>
1049
1050 * process.c: Undo May 3 change.
1051
9913756b 10522007-05-03 Per Cederqvist <ceder@lysator.liu.se> (tiny change)
39f3dff9
RS
1053
1054 * process.c (Faccept_process_output): Revert 2006-03-22 change so
1055 that the third argument once again is in microseconds (not
1056 milliseconds). This makes it compatible with Emacs 21 and
205f01b4 1057 earlier. Problem found by Henrik Rindl\e,Av\e(Bw.
39f3dff9 1058
0f6da68b
YM
10592007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1060
1061 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
1062 (Fx_popup_dialog) [MAC_OSX]: Likewise.
1063
76181e0a
RS
10642007-04-29 Richard Stallman <rms@gnu.org>
1065
1066 * insdel.c (replace_range): For undo, record insertion first.
1067
769da2c1
YM
10682007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1069
1070 * xdisp.c (try_window_reusing_current_matrix): Fix number of
1071 disabled lines.
1072
f56cff88
JD
10732007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1074
1075 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
1076
1077 * gtkutil.c (xg_update_menubar, create_menus): Create empty
1078 submenu for menu bar items.
1079
53105662
CY
10802007-04-24 Chong Yidong <cyd@stupidchicken.com>
1081
1082 * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
1083 values of the actual window.
1084
bdfeaf61
RS
10852007-04-23 Richard Stallman <rms@gnu.org>
1086
1087 * process.c (Fstart_process): Doc fix.
1088
c9c3704c
EZ
10892007-04-23 Eli Zaretskii <eliz@gnu.org>
1090
1091 * process.c (Fstart_process): Doc fix.
1092
5fe751c9
RS
10932007-04-22 Richard Stallman <rms@gnu.org>
1094
1095 * abbrev.c (Fdefine_abbrev): Doc fix.
1096
1097 * keymap.c (Fdefine_key): Minor doc fix.
1098
b1e6882f
GM
10992007-04-21 Glenn Morris <rgm@gnu.org>
1100
1101 * keymap.c (Fdefine_key): Fix info ref in doc string.
1102
8ea8a516
CY
11032007-04-20 Glenn Morris <rgm@gnu.org>
1104
1105 * sysdep.c (init_system_name): Don't accept localhost.localdomain.
1106
6cc62df0
JB
11072007-04-19 Juanma Barranquero <lekktu@gmail.com>
1108
1109 * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
1110 (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
1111 Doc fixes.
1112
837751ae
CY
11132007-04-16 Chong Yidong <cyd@stupidchicken.com>
1114
c10b2810
SM
1115 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
1116 Set garbaged flag in presence of window margins.
30603ba1
CY
1117 (showing_window_margins_p): New function.
1118
837751ae
CY
1119 * xdisp.c (cursor_row_p): Only end row on newline if it's a
1120 display string. Suggested by Lennart Borgman.
1121
add3c3ea
YM
11222007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1123
1124 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
1125 if they are not yet initialized.
1126
bc4aed8f
CY
11272007-04-15 Chong Yidong <cyd@stupidchicken.com>
1128
1129 * xdisp.c (redisplay_window): When deciding whether or not to
1130 recenter, don't use the reset values of BEG_UNCHANGED and
1131 END_UNCHANGED.
1132
42587578
KS
11332007-04-13 Kim F. Storm <storm@cua.dk>
1134
1135 * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
1136 and check that buffer is still alive upon return.
1137
19ee09cc
YM
11382007-04-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1139
1140 * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
1141 (mac_screen_config_changed): New variable.
1142 (mac_handle_dm_notification, init_dm_notification_handler)
1143 (mac_get_screen_info): New functions.
1144 [MAC_OS8] (main): Call init_dm_notification_handler.
1145 (mac_initialize) [MAC_OSX]: Likewise.
1146 (XTread_socket): Call mac_get_screen_info if screen config changed.
1147 (mac_initialized): Make static.
1148 (mac_initialize_display_info): Remove function.
42587578 1149 (mac_term_init): Call mac_get_screen_info. Add partial contents of
19ee09cc
YM
1150 mac_initialize_display_info.
1151
2a953eae
YM
11522007-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1153
1154 * mac.c (xrm_get_preference_database, Fmac_get_preference)
1155 [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
1156
1157 * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
1158 Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
1159 (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
1160 (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
1161 dpyinfo->width are those of whole screen.
1162
63a4fc68
CY
11632007-04-10 Chong Yidong <cyd@stupidchicken.com>
1164
1165 * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
1166 glyph pointer before start of glyph row.
1167
82608dd9
YM
11682007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1169
1170 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
1171 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
1172
4c669c09
RS
11732007-04-09 Martin Rudalics <rudalics@gmx.at>
1174
1175 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
1176
aa9c7852
RS
11772007-04-08 Richard Stallman <rms@gnu.org>
1178
1179 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
1180
b1e553b4
CY
11812007-04-07 Chong Yidong <cyd@stupidchicken.com>
1182
1183 * editfns.c (Ftranspose_regions): Validate interval before setting
1184 text properties.
1185
06efaba2
EZ
11862007-04-03 Eli Zaretskii <eliz@gnu.org>
1187
1188 * emacs.c (main): Fix instructions for building Emacs for profiling.
1189
0a194c92
JD
11902007-04-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1191
1192 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
1193 menu bar item.
1194
1a7de17e
JB
11952007-04-02 Juanma Barranquero <lekktu@gmail.com>
1196
1197 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
1198
50fcc399
CY
11992007-04-01 Chong Yidong <cyd@stupidchicken.com>
1200
f8c9f4b1
CY
1201 * keymap.c (Fcommand_remapping): New optional argument.
1202 (where_is_internal): Use new keymaps argument.
1203 (Fkey_binding): Caller changed.
1204
1205 * keyboard.c (command_loop_1): Caller changed.
50fcc399 1206
89a4f43f
EZ
12072007-03-31 Eli Zaretskii <eliz@gnu.org>
1208
1209 * window.c (Fget_lru_window): Doc fix.
1210
6cf1226a
CY
12112007-03-30 Chong Yidong <cyd@stupidchicken.com>
1212
1213 * undo.c (Fprimitive_undo): Give clearer error message when trying
1214 to change text properties outside accessible part of buffer.
1215
1acc2cac
KS
12162007-03-29 Kim F. Storm <storm@cua.dk>
1217
1218 * process.c (wait_reading_process_output) [HAVE_PTYS]:
1219 When EIO happens, clear channel from descriptor masks before raising
1220 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
1221 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
1222
cbf23adb
JB
12232007-03-29 Juanma Barranquero <lekktu@gmail.com>
1224
ea4fddd8
JB
1225 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
1226
cbf23adb
JB
1227 * process.c (Fformat_network_address): Return nil when the
1228 argument vector contains invalid values.
1229
a0dd810b
YM
12302007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1231
1232 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
1233 [USE_PTHREAD]: Include pthread.h.
1234 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
1235 (malloc_initialize_1): New function created from __malloc_initialize.
1236 (__malloc_initialize): Use it.
1237 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
1238 (_malloc_internal, _free_internal, _realloc_internal): Use them.
1239
1240 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
1241
84e78f61
JB
12422007-03-27 Juanma Barranquero <lekktu@gmail.com>
1243
1244 * process.c (Fformat_network_address): Make args array big enough
1245 to format IPv6 addresses.
1246
6afdff63
GM
12472007-03-27 Glenn Morris <rgm@gnu.org>
1248
1249 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
1250
b51065cf
YM
12512007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1252
84e78f61
JB
1253 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
1254 screen size in pixels by millimeters per pixel of main display.
b51065cf 1255
84e78f61
JB
1256 * macselect.c (get_scrap_target_type_list, x_own_selection):
1257 Move assignments outside predicate macros.
b51065cf
YM
1258 (Vselection_converter_alist): Doc fix.
1259
1260 * macterm.c (create_text_encoding_info_alist): Move assignments
1261 outside predicate macros.
1262 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
1263 dpyinfo->width are those of whole screen.
1264
8f0e1e44
SS
12652007-03-26 Sam Steingold <sds@gnu.org>
1266
1267 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
1268 alleviate sluggishness (the original problem is still fixed).
1269
aa95cbb5
KS
12702007-03-25 Kim F. Storm <storm@cua.dk>
1271
1272 * intervals.c (merge_properties): Use explicit loop instead of
1273 Fplist_member to avoid QUIT. Don't use Fcdr.
1274 (intervals_equal): Likewise. Rewrite loop to perform length check
1275 on the fly rather than calling Flength. Don't use Fcar.
1276
61880ffe
EZ
12772007-03-24 Eli Zaretskii <eliz@gnu.org>
1278
1279 * editfns.c (Fgoto_char): Doc fix.
1280
1281 * indent.c (Findent_to): Doc fix.
1282
159f7bef
CY
12832007-03-24 Chong Yidong <cyd@stupidchicken.com>
1284
1285 * editfns.c (Ftranspose_regions): Use set_text_properties_1
1286 instead of Fset_text_properties to avoid GC. Signal after change.
1287
87c891c7
EZ
12882007-03-24 Eli Zaretskii <eliz@gnu.org>
1289
1290 * xfns.c (Fx_show_tip): Doc fix.
1291
1292 * macfns.c (Fx_show_tip): Doc fix.
1293
1294 * w32fns.c (Fx_show_tip): Doc fix.
1295
be5ef8f0
KS
12962007-03-23 Kim F. Storm <storm@cua.dk>
1297
1298 * intervals.c (merge_properties, intervals_equal):
1299 Use Fplist_member instead of Fmemq to find properties.
1300
6afdff63
GM
13012007-03-23 Glenn Morris <rgm@gnu.org>
1302
1303 * unexhp9k800.c: Restore file with clarified legal status.
1304 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
1305
96356799
CY
13062007-03-22 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * widget.c (EmacsFrameSetCharSize): Catch X errors.
1309
3ff2c161
KH
13102007-03-22 Kenichi Handa <handa@m17n.org>
1311
1312 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
1313 non-encoded file name.
1314 (Frename_file): Likewise.
1315 (Fadd_name_to_file): Likewise.
1316 (Fmake_symbolic_link): Likewise.
1317
87f4728f
YM
13182007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1319
1320 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
1321 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
1322 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
1323 systime.h.
1324 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
1325 systime.h.
1326 (macfns.o): Remove duplicate dependency on systime.h.
1327
1328 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
1329 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
1330
1331 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
1332 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
1333
1334 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
1335 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
1336
1337 * lread.c: Include blockinput.h.
1338 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
1339 (unreadchar): Add BLOCK_INPUT around ungetc.
1340 (load_unwind): Add BLOCK_INPUT around fclose.
1341
1342 * print.c: Include blockinput.h.
1343 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
1344
523fc433
JB
1345 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
1346 Clear immediate_quit before calling freeaddrinfo.
1347 Add BLOCK_INPUT around freeaddrinfo.
87f4728f
YM
1348
1349 * term.c: Include blockinput.h.
1350 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
1351
705959fc
RS
13522007-03-19 Richard Stallman <rms@gnu.org>
1353
1354 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
1355
1356 * buffer.c (syms_of_buffer): Doc fix.
1357
b55252e0
CY
13582007-03-18 Chong Yidong <cyd@stupidchicken.com>
1359
1360 * image.c (pbm_load): Signal error for invalid image size.
1361
c601a8ed
YM
13622007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1363
1364 * macterm.c (note_mouse_movement): Don't return immediately for
1365 LeaveNotify case.
1366
1367 * macmenu.c (popup_activated_flag): New variable.
1368 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
1369 (popup_activated): New function.
1370
84e78f61
JB
1371 * xdisp.c (redisplay_internal, note_mouse_highlight):
1372 Check popup_activated for MAC_OS.
c601a8ed 1373
adbb3b05 13742007-03-17 Juanma Barranquero <lekktu@gmail.com>
e3a1ed3b 1375
adbb3b05
JB
1376 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
1377 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
e338790f 1378
b7f51ebb
JB
13792007-03-17 Richard Stallman <rms@gnu.org>
1380
705959fc 1381 * dired.c (file_name_completion): gcpro NAME.
b7f51ebb 1382
1c8f28b0
KS
13832007-03-17 Chong Yidong <cyd@stupidchicken.com>
1384
1385 * xdisp.c (try_window_id): Increment matrix positions if the
1386 buffer's byte count has increased, but not the character count.
1387
8b60f44c
CY
13882007-03-12 Andreas Schwab <schwab@suse.de>
1389
1390 * lisp.h: Declare check_obarray.
1391
1392 * process.c (Fdelete_process): Properly handle deletion of first
1393 element of deleted_pid_list.
1394 (create_process): Declare pid as pid_t.
1395
46adc7a5
CY
13962007-03-12 Kim F. Storm <storm@cua.dk>
1397
1398 * process.c (sigchld_handler): Change type of pid to pid_t.
1399 Scan deleted_pid_list explicitly to avoid using Fmember which don't
1400 know about mark bits and make_fixnum_or_float which may malloc.
1401 Reported by Andreas Schwab.
1402
1403 * keyboard.c (read_key_sequence): Store original event into keybuf
1404 when replaying sequence with local keymap(s) from string.
1405
7ad42042
GM
14062007-03-12 Glenn Morris <rgm@gnu.org>
1407
1408 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
1409 savings" to "daylight saving").
1410
ece29e38
SS
14112007-03-11 Sam Steingold <sds@gnu.org>
1412
1413 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
1414
c13ba385
YM
14152007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1416
1417 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
1418
5bc21f35
YM
14192007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1420
adbb3b05
JB
1421 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
1422 Ignore mouse wheel movement on title bar or tool bar.
5bc21f35 1423
7469c0f9
CY
14242007-03-10 Chong Yidong <cyd@stupidchicken.com>
1425
1426 * keyboard.c (help_form_saved_window_configs): New var.
1427 (read_char_help_form_unwind): New function.
1428 (read_char): Don't restore window configuration if a mouse click
1429 arrives while the help form is being displayed.
1430
eebe9a29
KS
14312007-03-10 Kim F. Storm <storm@cua.dk>
1432
1433 * xdisp.c (redisplay_window): Don't automatically select a new window
1434 start for a contination line during mouse-click.
1435
a3a44a5a
JD
14362007-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1437
1438 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
1439
49d92e9d
JB
14402007-03-09 Juanma Barranquero <lekktu@gmail.com>
1441
1442 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
1443
7d8d0914
RS
14442007-03-08 Richard Stallman <rms@gnu.org>
1445
1446 * keyboard.c (syms_of_keyboard): Doc fix.
1447
b033f7a7
CY
14482007-03-08 Chong Yidong <cyd@stupidchicken.com>
1449
1450 * minibuf.c (Ftry_completion): Don't short circuit if
1451 completion-ignore-case is non-nil.
1452
7a844a76
YM
14532007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1454
1455 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
1456 Undo 2006-03-06 changes.
1457
1458 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
1459 bar if its width is smaller than that of Aqua small scroll bar.
1460
d9d7b298
SM
14612007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
1462
1463 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
1464 to handle correctly prompts with read-only property.
1465
a28de257
JD
14662007-03-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1467
1468 * sound.c (wav_play): Check header->data_length to see how much we
1469 shall read.
1470 (alsa_period_size): Convert ALSA period size in frames to bytes.
1471 (alsa_write): Return if frames is zero.
1472
15c2ffb2
KH
14732007-03-06 Kenichi Handa <handa@m17n.org>
1474
1475 * xselect.c (Vselection_coding_system): Documentation improved.
1476
2d21c780
YM
14772007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1478
1479 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
1480 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
1481 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
1482 internal border width has changed.
1483
1484 * macterm.h (struct mac_output): New member `internal_border_width'.
1485
d89abe75
RS
14862007-03-04 Richard Stallman <rms@gnu.org>
1487
1488 * window.c (Fdisplay_buffer): Doc fix.
1489
046c4413
CY
14902007-03-03 Glenn Morris <rgm@gnu.org>
1491
1492 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
1493 not include -lX11 on Solaris.
1494
49d92e9d 14952007-03-02 Stuart D. Herring <herring@lanl.gov>
b9b26387 1496
d9d7b298 1497 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
b9b26387 1498
faa6ce91
KH
14992007-03-01 Kenichi Handa <handa@m17n.org>
1500
1501 * process.c (send_process_object): Check the process status and
1502 signal an error if something is wrong.
1503
f79b31db
CY
15042007-02-28 Chong Yidong <cyd@stupidchicken.com>
1505
1506 * insdel.c (Fcombine_after_change_execute): Return nil if
1507 combine_after_change_buffer has been invalidated.
1508
5f5a9e29
DN
15092007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
1510
1511 * m/xtensa.h: New file.
1512
d3332249
NR
15132007-02-24 Nick Roberts <nickrob@snap.net.nz>
1514
1515 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
1516 as strings and not character arrays.
1517
cd2e3962
YM
15182007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1519
1520 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
1521 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
1522 scroll bar handle size in order to avoid `scroll backward' problem.
1523 (x_scroll_bar_create, XTset_vertical_scroll_bar)
1524 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
1525
d9d7b298
SM
1526 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1527 New member `min_handle'.
cd2e3962 1528
948f7516
KS
15292007-02-23 Kim F. Storm <storm@cua.dk>
1530
1531 * print.c (print): Reset print_number_index if Vprint_number_table
1532 is nil.
1533
617a6756
EZ
15342007-02-23 Eli Zaretskii <eliz@gnu.org>
1535
1536 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
1537 instead of strpbrk.
1538
0efdda24
YM
15392007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1540
1541 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
1542 `menu_item_selection' as in W32 version.
1543 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
1544 braces to avoid ambiguous `else'.
1545
1546 * macterm.c (mac_display_info_for_display): Remove function.
1547 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
1548 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
1549 flush_display_optional.
d9d7b298
SM
1550 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
1551 New argument MOUSE_POS. All uses changed. Set bar->dragging to
0efdda24 1552 negative integer if scroll bar handle is pressed.
d9d7b298
SM
1553 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
1554 Negative bar->dragging means scroll bar handle is not dragged.
0efdda24
YM
1555 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
1556 offset of scroll bar handle from negative bar->dragging.
1557 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
1558 bar click is compared against mapped one. Set down/up_modifier
1559 for scroll bar click event with control key.
1560
1561 * macterm.h (x_display_info_for_display): Remove extern.
1562 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
1563 value to be unpacked to 32-bit on LP64 model.
1564
8d4e7254
KH
15652007-02-23 Kenichi Handa <handa@m17n.org>
1566
1567 * process.c (send_process_object_unwind): New function.
1568 (send_process_object): New function.
1569 (Fprocess_send_region): Call send_process_object.
1570 (Fprocess_send_string): Likewise.
1571
904700a0
JR
15722007-02-22 Jason Rumney <jasonr@gnu.org>
1573
2f028a74
JR
1574 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
1575 when popup menu finishes.
1576
58e55497 1577 * w32fns.c (menubar_in_use): New flag.
88a337ec 1578 (w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
72a3a66a
JR
1579 Use it.
1580
a67b5c3d
JR
1581 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
1582 (w32_menu_show): Do it here instead.
1583
88a337ec 1584 * w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
ca21600d 1585 parameter.
90816b86 1586
904700a0
JR
1587 * w32menu.c (current_popup_menu): Make available globally.
1588 (menubar_selection_callback): Free menu strings before pushing the
d9d7b298 1589 menu event into the keyboard buffer. Remove menu_command_in_progress.
904700a0
JR
1590
1591 * w32fns.c (current_popup_menu): Use from w32menu.c.
88a337ec 1592 (w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
90816b86
JR
1593 and current_popup_menu to determine whether a menubar menu has
1594 been cancelled.
904700a0
JR
1595
1596 * w32term.h (w32_output): Remove menu_command_in_progress.
1597
d1eeefeb
KS
15982007-02-22 Kim F. Storm <storm@cua.dk>
1599
1600 * dispnew.c (update_frame, update_single_window): Set force_p here if
1601 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
1602 (update_window, update_frame_1): ... instead of here.
e973477d 1603 (update_text_area): Clear mouse face on header lines.
d1eeefeb 1604
dfb1e36c
KS
16052007-02-21 Kim F. Storm <storm@cua.dk>
1606
1607 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
1608
d8506697
YM
16092007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1610
1611 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
1612 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
1613 `mapped_modifiers'.
1614 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
1615 Layout Services routines to get current Unicode keyboard layout.
1616
864a4ae7
CY
16172007-02-20 Chong Yidong <cyd@stupidchicken.com>
1618
ca21600d
JB
1619 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
1620 bgcolor.
864a4ae7 1621
86dcc2c3
KS
16222007-02-19 Kim F. Storm <storm@cua.dk>
1623
669b454d
KS
1624 * minibuf.c (Fassoc_string): Allow symbols as keys.
1625
86dcc2c3
KS
1626 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
1627 handle while dragging, except when we get close to eob.
1628 Fix position and size calculations so we don't scroll backwards
1629 just by clicking on the handle.
1630
bc23733a
YM
16312007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1632
1633 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
1634 [HAVE_CARBON]: Remove target.
1635 (macosx-app) [HAVE_CARBON]: Don't depend on it.
1636
ebf24b59
JB
16372007-02-17 Juanma Barranquero <lekktu@gmail.com>
1638
1639 * callproc.c (syms_of_callproc) <doc-directory>:
1640 <configure-info-directory>:
1641 (Fgetenv_internal): Fix typos in docstrings.
1642
1643 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
1644
52b2c096
AS
16452007-02-16 Andreas Schwab <schwab@suse.de>
1646
3b58be21
AS
1647 * frame.c (Fmodify_frame_parameters): Return a value.
1648
52b2c096
AS
1649 * editfns.c (Fformat): Add support for '+' flag.
1650 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
1651
44713939
CY
16522007-02-14 Chong Yidong <cyd@stupidchicken.com>
1653
1654 * s/umips.h: Unused file removed.
1655
424f6998
JB
16562007-02-14 Juanma Barranquero <lekktu@gmail.com>
1657
1658 * xfaces.c (Fcolor_distance): Don't continue checking a color for
1659 errors after it has been correctly parsed as an RGB list.
1660
6dac214c
JD
16612007-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1662
1663 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
1664
409d2613
YM
16652007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1666
1667 * macfns.c (Fx_focus_frame): Move current process to foreground if
1668 it is not.
1669 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
1670 #ifdef MAC_OSX.
1671 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
1672 Fmac_set_font_panel_visibility. All uses changed. Rename argument
1673 VISIBLE to FLAG.
1674
1675 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
1676 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
1677 MakeMeTheFrontProcess.
1678
09efb30a
CY
16792007-02-12 Chong Yidong <cyd@stupidchicken.com>
1680
1681 * frame.c (x_set_screen_gamma): Clear face cache.
1682
550934c8
JB
16832007-02-11 Juanma Barranquero <lekktu@gmail.com>
1684
1685 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
1686 Reflow docstrings.
1687
3570640e
EZ
16882007-02-10 Eli Zaretskii <eliz@gnu.org>
1689
1690 * window.c (Fwindow_height, Fwindow_hscroll)
1691 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
1692 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
1693 Document the effect of WINDOW arg being nil.
1694
2b7ef867
KS
16952007-02-08 Kim F. Storm <storm@cua.dk>
1696
1697 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
550934c8 1698 Use Qlambda as interim value of Vminibuffer_completing_file_name.
ac6ee452 1699 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
2b7ef867
KS
1700 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
1701
8b57a7fd
JB
17022007-02-07 Juanma Barranquero <lekktu@gmail.com>
1703
1704 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
1705 of $(ALL_DEPS).
1706
f3d5bd22
EZ
17072007-02-07 Eli Zaretskii <eliz@gnu.org>
1708
1709 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
1710 put into $(BLD).
1711
c9008e63
CY
17122007-02-06 Chong Yidong <cyd@stupidchicken.com>
1713
1714 * frame.c (Fmodify_frame_parameters): Don't bind
1715 Qinhibit_default_face_x_resources, which has no effect.
1716 (Qinhibit_default_face_x_resources): Symbol deleted.
1717
77083ca3
EZ
17182007-02-03 Eli Zaretskii <eliz@gnu.org>
1719
1720 * indent.c (Fmove_to_column): Document that the argument COLUMN is
1721 taken from prefix numeric argument.
1722
191c4353
JB
17232007-02-03 Juanma Barranquero <lekktu@gmail.com>
1724
1725 * lread.c (syms_of_lread) <load-history>: Doc fix.
1726
5e1a6e32
JB
17272007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
1728
1729 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
1730 Use the foreground color of the scroll-bar face when drawing
1731 the scroll-bar's border.
1024f9c0 1732
849bb789
JD
17332007-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1734
1735 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
1736 calling wm_supports.
1737
099de390
JB
17382007-02-01 Juanma Barranquero <lekktu@gmail.com>
1739
1740 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
1741 Wording by Eli Zaretskii.
1742
0cba6386
JD
17432007-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1744
1745 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
1746
25752d87
RS
17472007-01-30 Richard Stallman <rms@gnu.org>
1748
1749 * minibuf.c (read_minibuf):
1750 Save and clear Vminibuffer_completing_file_name.
1751 (read_minibuf_unwind): Restore it.
1752 (Vminibuffer_completion_table, Qminibuffer_completion_table)
1753 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
1754 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
1755 (Vminibuffer_completing_file_name): Definitions moved up.
1756
956d1928
CY
17572007-01-29 Chong Yidong <cyd@stupidchicken.com>
1758
1759 * m/hp800.h: Restore, removing HP-UX support.
1760
4abaeb50
JD
17612007-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1762
1763 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
1764
d9380425
RS
17652007-01-28 Richard Stallman <rms@gnu.org>
1766
1767 * minibuf.c (Ftry_completion, Fall_completions)
1768 (Fcompleting_read, Ftest_completion):
1769 Rename arg ALIST or TABLE to COLLECTION.
1770
b99e3557
CY
17712007-01-27 Chong Yidong <cyd@stupidchicken.com>
1772
1773 * unexhp9k800.c: Remove due to lack of legal papers.
1774
1775 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
1776
4fda07c1
EZ
17772007-01-27 Eli Zaretskii <eliz@gnu.org>
1778
65849ada
EZ
1779 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
1780
4fda07c1
EZ
1781 * minibuf.c (Fcompleting_read): Doc fix.
1782
aa4ff486
JD
17832007-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1784
cddb7844
JD
1785 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
1786
aa4ff486
JD
1787 * Makefile.in: Use XFT_LIBS if defined.
1788
3fb8b536
YM
17892007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1790
ca21600d
JB
1791 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
1792 BLOCK_INPUT/UNBLOCK_INPUT.
3fb8b536
YM
1793
1794 * blockinput.h (interrupt_input_blocked): Declare volatile.
1795
1796 * keyboard.c (interrupt_input_blocked): Declare volatile.
1797
1798 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
1799
ff40b263
KS
18002007-01-24 Kim F. Storm <storm@cua.dk>
1801
1802 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
1803
9671c13a
JB
18042007-01-23 Juanma Barranquero <lekktu@gmail.com>
1805
1806 * editfns.c (Finsert_char): Doc fix.
1807 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
1808
447466a5
YM
18092007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1810
523fc433
JB
1811 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
1812 Don't pass keyboard modifiers to mac_store_drag_event, but put
1813 them as kEventParamKeyModifiers Apple event parameter.
447466a5 1814
64401adc
CY
18152007-01-21 Chong Yidong <cyd@stupidchicken.com>
1816
1817 * xdisp.c (try_window): Revert previous change.
1818
1819 * dispnew.c (update_text_area): Revert 2006-09-17 change.
1820 Always redraw non-mode-line rows with mouse-face.
1821
7d100727
CY
18222007-01-20 Chong Yidong <cyd@stupidchicken.com>
1823
1824 * xdisp.c (try_window): Clear mouse-face highlights first.
1825
1826 * window.c (set_window_buffer): Revert 2006-11-22 change.
1827
4e251bd1
EZ
18282007-01-20 Eli Zaretskii <eliz@gnu.org>
1829
1830 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
1831 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
1832
25170427
CY
18332007-01-20 Chong Yidong <cyd@stupidchicken.com>
1834
1835 * keyboard.c (read_key_sequence): Extract local map only if the
1836 given position is in an accessible buffer region.
1837
acb38529
NR
18382007-01-19 Nick Roberts <nickrob@snap.net.nz>
1839
1840 * .gdbinit: Reformat documentation so that first sentence
1841 displays properly with "help user-defined" (like apropos).
1842
9671c13a 18432007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
4a75434a
CY
1844
1845 * epaths.in: Move PATH_DOC from local/info to local/share/info.
1846
a35c8b70
YM
18472007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1848
4e251bd1 1849 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
a35c8b70 1850 Create movable modal window instead of movable alert window.
4e251bd1
EZ
1851 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
1852 of DisableControl.
a35c8b70
YM
1853
1854 * macselect.c (Fmac_resume_apple_event): Set error number when
1855 descriptor type of reply is non-null.
1856
28c96b4d
YM
18572007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1858
d9d7b298
SM
1859 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
1860 Use DisableControl for disabled items. Set default button to first
28c96b4d
YM
1861 enabled one. Use icon of application in execution.
1862
9bd1cd35
EZ
18632007-01-13 Eli Zaretskii <eliz@gnu.org>
1864
9671c13a
JB
1865 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
1866 Copy PID into EMACS_INT to avoid GCC warnings.
d30fe779 1867
9bd1cd35
EZ
1868 * fns.c (maybe_resize_hash_table): Copy new size of hash table
1869 into EMACS_INT to avoid GCC warnings.
1870
1871 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
1872 geteuid and getuid into EMACS_INT to avoid GCC warnings.
1873
1874 * dired.c (Ffile_attributes): Fix last change.
1875
b55445d6
EZ
18762007-01-12 Eli Zaretskii <eliz@gnu.org>
1877
1878 * dired.c (Ffile_attributes): Copy some members of `struct stat'
1879 into int's to avoid GCC warnings about limited range of short in
1880 arguments to FIXNUM_OVERFLOW_P.
1881
37370cea
YM
18822007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1883
1884 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
1885 (mac_handle_dialog_event, install_dialog_event_handler)
1886 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
1887 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1888 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
1889 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1890 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1891 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1892 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1893 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
1894 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
1895 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
1896
523fc433
JB
1897 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
1898 Call mac_prepare_for_quickdraw.
37370cea
YM
1899 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
1900 outside #ifdef MAC_OSX.
1901 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
1902 outside #ifdef MAC_OSX.
1903 (mac_check_bundle) [MAC_OSX]: Remove unused function.
1904
1905 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
1906 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
1907
959dc601
JD
19082007-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1909
1910 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
1911 block/unblock SIGIO.
1912
8b9ae6b0
SM
19132007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
1914
c5c6b2cc
SM
1915 * editfns.c (Fformat): Allow integer-format to work with floats of size
1916 larger than most-positive-fixnum (but still smaller than MAXINT).
1917
8b9ae6b0
SM
1918 * dired.c (Ffile_attributes): Use floats for large uids/gids.
1919
c7ed3276
EZ
19202007-01-09 Eli Zaretskii <eliz@gnu.org>
1921
1922 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
1923
5d348d3f
YM
19242007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1925
1926 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
1927 around mkstemp.
1928
1929 * image.c (XDrawLine) [MAC_OS]: Remove macro.
1930 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
1931 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
1932 XCreateGC_pixmap.
1933
1934 * macgui.h (Display): Typedef to opaque type.
1935
1936 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
1937 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
1938 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
8b9ae6b0
SM
1939 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
1940 Use mac_quit_char_key_p.
5d348d3f
YM
1941
1942 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
1943 (XCreateGC): Change type of 2nd argument to void *.
1944 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1945 Fix last change.
1946 (mac_to_emacs_modifiers): Change return type to int.
1947 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
1948 (mac_mapped_modifiers): New function.
1949 (XTread_socket): Use it.
1950 [USE_TSM] (mac_handle_text_input_event): Likewise.
1951 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
8b9ae6b0
SM
1952 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
1953 Remove variables.
5d348d3f
YM
1954 (mac_determine_quit_char_modifiers, init_quit_char_handler)
1955 [MAC_OSX]: Remove functions.
1956 (make_ctrl_char) [MAC_OSX]: Add extern.
1957 (mac_quit_char_key_p) [MAC_OSX]: New function.
1958 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
1959
1960 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
1961 (XCreateGC): Change type in extern.
1962 (XDrawLine): Rename from mac_draw_line_to_pixmap.
1963 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
1964
287110f5
JD
19652007-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1966
4c180390
JD
1967 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
1968 interrupt_input_pending.
1969
287110f5
JD
1970 * xterm.h (x_display_info): New: net_supported_atoms,
1971 nr_net_supported_atoms and net_supported_window.
1972
9671c13a 1973 * xterm.c (last_user_time): New variable.
287110f5
JD
1974 (handle_one_xevent): Set last_user_time from events that have Time.
1975 Set net_supported_window to 0 when reparented.
1976 (wm_supports): New function.
1977 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
1978 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
1979 and net_supported_window.
1980
5be70981
KS
19812007-01-05 Kim F. Storm <storm@cua.dk>
1982
1983 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
1984 strings without embedded newlines immediately followed by newline.
1985
1675bac7
YM
19862007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1987
1988 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
1989 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
1990 gmtime/localtime/emacs_memftimeu/mktime.
1991
1992 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
1993 instead of 'EMAx'.
1994 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
1995
1996 * macgui.h (struct _XGC) [USE_CG_DRAWING
1997 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
1998 and cg_back_color.
1999
2000 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
2001 (restore_show_help_function, menu_target_item_handler)
2002 [TARGET_API_MAC_CARBON]: New functions.
2003 (install_menu_target_item_handler): New function.
2004 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
2005 item property.
2006
2007 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
2008 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
2009 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
2010 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
2011 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
2012 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
2013 (mac_cg_color_black) [USE_CG_DRAWING
2014 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
2015 (init_cg_color) [USE_CG_DRAWING]: New function.
2016 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
2017 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
2018 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
2019 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
2020 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
2021 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
2022 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
2023 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
5e1a6e32 2024 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
1675bac7
YM
2025 gc->cg_back_color.
2026 (install_drag_handler, remove_drag_handler): Make extern.
2027 (install_menu_target_item_handler): Add extern.
2028 (install_window_handler): Call install_menu_target_item_handler.
2029 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
5be70981 2030 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
1675bac7
YM
2031
2032 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
2033
4c9564e8
JB
20342007-01-04 Juanma Barranquero <lekktu@gmail.com>
2035
2036 * window.c (Fwindow_end): Fix use of >= operator.
2037
c3295e7b
RS
20382007-01-03 Richard Stallman <rms@gnu.org>
2039
2040 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
2041
0c5e9b06
JD
20422007-01-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2043
2044 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
2045 unhighlight_id.
2046
2047 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
2048 parent of the menu item. Get menu item widget from event.
2049 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
2050 unhighlight_id has been removed.
2051 (create_menus): Connect enter/leave-notify-event to the menu instead
2052 of individual items.
2053
1e0fe298
JD
20542006-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2055
2056 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
2057 xg_tool_bar_menu_proxy.
2058 (xg_tool_bar_menu_proxy): New function.
2059 (xg_tool_bar_proxy_callback): New function.
2060
6e1440e6
JD
20612006-12-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2062
2063 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
2064 (xg_tool_bar_callback): Remove check for button.
2065 (update_frame_tool_bar): Put an event box in the tool bar and a button
2066 in the event box. Attach enter/leave-notify-event to the event box.
2067
dced1a73
RS
20682006-12-30 Richard Stallman <rms@gnu.org>
2069
2070 * keymap.c (Fdefine_key): Doc fix.
2071
05a699b6
KS
20722006-12-29 Kim F. Storm <storm@cua.dk>
2073
2074 * frame.h (struct frame): New member minimize_tool_bar_window_p.
2075
2076 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
2077 (Vauto_resize_tool_bars): ... this.
2078 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
2079 to describe new value `grow-only', and use of C-l.
2080 (display_tool_bar_line): Only use default face for border below
2081 toolbar if not grow-only (to get acceptable visual appearence).
2082 Explicitly set visible_height for empty toolbar lines.
2083 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
2084 minimize_tool_bar_window_p flag.
2085
2086 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
2087 when called without arg to redraw with minimum toolbar height.
2088 Update doc string.
2089
e37b3faf
JR
20902006-12-29 Jason Rumney <jasonr@gnu.org>
2091
2092 * s/ms-w32.h (tzname): Do not define in msvc8.
40c41924 2093 (utime): Do not define in msvc8.
e37b3faf
JR
2094
2095 * regex.c (regerror): Change parameter name err_code.
2096
dbb8dfc7
RS
20972006-12-26 Richard Stallman <rms@gnu.org>
2098
e817cc9b
RS
2099 * search.c (Fsearch_forward): Doc fix.
2100
dbb8dfc7
RS
2101 * callint.c (Finteractive): Doc fix.
2102
42f82ce7
KS
21032006-12-25 Kim F. Storm <storm@cua.dk>
2104
2105 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
2106
fa1f0a88
EZ
21072006-12-23 Eli Zaretskii <eliz@gnu.org>
2108
2109 * keyboard.c (some_mouse_moved): Fix last change.
2110
453027ac
EZ
21112006-12-22 Eli Zaretskii <eliz@gnu.org>
2112
2113 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
2114
b9542c10
EZ
21152006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
2116
2117 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
2118 * m/sh3el.h: New file.
2119
5e059fc1
EZ
21202006-12-22 Eli Zaretskii <eliz@gnu.org>
2121
ca21600d
JB
2122 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
2123 $(BLD).
5e059fc1
EZ
2124 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
2125 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
6808dce1 2126 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
f278d4a6 2127 (clean): Delete stamp_BLD.
5e059fc1 2128
2f0fd19a
YM
21292006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2130
8b9ae6b0
SM
2131 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2132 Call mac_update_proxy_icon also when buffer modification flag changed.
2f0fd19a
YM
2133 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
2134 but compare FSRef/FSSpec of resolved alias.
2135
274fa194
KS
21362006-12-21 Kim F. Storm <storm@cua.dk>
2137
2138 * w32.c (_sys_wait_accept): Fix handle leak.
2139
7fb24298
JD
21402006-12-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2141
ca21600d
JB
2142 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
2143 defined.
7fb24298 2144
15d6777e
KS
21452006-12-20 Kim F. Storm <storm@cua.dk>
2146
2147 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
2148
209ceeef
JB
21492006-12-19 Juanma Barranquero <lekktu@gmail.com>
2150
2151 * keyboard.c (syms_of_keyboard) <double-click-time>:
2152 * mac.c (Fmac_code_convert_string):
2153 * search.c (Fsearch_forward): Doc fixes.
2154
36ff6d6f
KS
21552006-12-19 Kim F. Storm <storm@cua.dk>
2156
2157 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
2158 a sigusr1 event instead of [signal usr1] sequence, and signal events
2159 are now supposed to be handled via special-event-map.
2160
2161 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
2162 (make_lispy_event): Don't generate Qsignal prefix for code 0.
2163 Abort if signal code is unknown.
2164 (store_user_signal_events): Don't make Qsignal prefix (code 0).
2165 (Qsignal): Move declaration back to process.c.
2166 (syms_of_keyboard): Don't intern or staticpro it here.
2167
2168 * process.c (Qsignal): Declare here.
2169 (syms_of_process): Intern or staticpro it.
2170
2171 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
2172
2173 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
2174
6a28a84c
JB
21752006-12-19 Juanma Barranquero <lekktu@gmail.com>
2176
ebf24b59 2177 * buffer.c (syms_of_buffer) <buffer-display-table>:
6a28a84c
JB
2178 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
2179
294f1c39
RS
21802006-12-17 Richard Stallman <rms@gnu.org>
2181
2182 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
2183 to Ffile_name_completion.
2184
2185 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
6a28a84c 2186 (Ffile_name_completion): New arg PREDICATE.
294f1c39 2187
f6e22881
JB
21882006-12-17 Juanma Barranquero <lekktu@gmail.com>
2189
2190 * buffer.c (Fkill_buffer): Doc fix.
2191 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
2192
f03c1894
JB
21932006-12-16 Juanma Barranquero <lekktu@gmail.com>
2194
2195 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
2196
04afd01e
EZ
21972006-12-16 Eli Zaretskii <eliz@gnu.org>
2198
b58d0378
EZ
2199 * w32fns.c (w32-window-exists-p): New function.
2200 (syms_of_w32fns): Defsubr it.
2201
04afd01e
EZ
2202 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
2203
33202706
JB
22042006-12-16 Juanma Barranquero <lekktu@gmail.com>
2205
2206 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
2207
75036d1c
EZ
22082006-12-15 Eli Zaretskii <eliz@gnu.org>
2209
2210 * emacs.c (USAGE3): Clarify documentation of --color.
2211
e71b26ec
YM
22122006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2213
33202706
JB
2214 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
2215 New variable.
e71b26ec
YM
2216 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
2217 [!MAC_OSX] (select): Use them.
2218 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
2219 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
2220
2221 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
2222 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
2223 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
2224
8b9ae6b0
SM
2225 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
2226 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
2227
2228 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
2229 ATSUGetGlyphBounds if not necessary.
33202706 2230 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
e71b26ec
YM
2231 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
2232 (fm_get_style_from_font, atsu_find_font_from_family_name)
2233 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
2234 [USE_ATSUI]: New functions.
2235 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
2236 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
2237 Don't get metrics for Latin-1 right half characters.
2238 (mac_load_query_font): Don't load font if space width is not positive.
8b9ae6b0
SM
2239 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
2240 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
e71b26ec
YM
2241 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
2242
2243 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
2244
cbaa9c44
KS
22452006-12-15 Kim F. Storm <storm@cua.dk>
2246
2247 * keyboard.c (ignore_mouse_drag_p): New global var.
2248 (some_mouse_moved): Return 0 if it is non-zero.
2249 (make_lispy_event): Generate click event on mouse up if
2250 ignore_mouse_drag_p is non-zero, even if mouse moved.
2251 Clear ignore_mouse_drag_p on mouse down/up.
2252
2253 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
2254 is resized to avoid generating a mouse drag event.
2255
8a4c4c7f
JB
22562006-12-14 Juanma Barranquero <lekktu@gmail.com>
2257
2258 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
2259 minimum tracking size. Remove non-working old hack to do the same.
2260
b1c6aa6e
YM
22612006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2262
2263 * emacs.c (handle_user_signal): Move function to keyboard.c.
2264 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
2265
2266 * keyboard.c (make_lispy_event): Use find_user_signal_name.
2267 (read_avail_input): Store pending user signal events.
2268 (struct user_signal_info): New struct.
2269 (user_signals): New variable.
e71b26ec
YM
2270 (add_user_signal, store_user_signal_events)
2271 (find_user_signal_name): New functions.
b1c6aa6e
YM
2272 (handle_user_signal): Move function from emacs.c. Don't store
2273 USER_SIGNAL_EVENT here, but increment number of pending signals.
2274
2275 * keyboard.h (add_user_signals): Add extern.
2276
fc961256
JB
22772006-12-11 Juanma Barranquero <lekktu@gmail.com>
2278
2279 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2280 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
2281 <line-spacing, left-margin>: Doc fixes.
2282
53d45a17
JB
2283 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
2284
df20dc2b
KS
22852006-12-10 Kim F. Storm <storm@cua.dk>
2286
2287 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
2288
28e86dc4
JB
22892006-12-10 Juanma Barranquero <lekktu@gmail.com>
2290
2291 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
2292 * buffer.c (syms_of_buffer) <default-major-mode>:
2293 * keymap.c (Flookup_key):
2294 * lread.c (Feval_buffer, Feval_region):
2295 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
2296 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
2297 * marker.c (Fmarker_insertion_type):
2298 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
2299 * msdos.c (syms_of_msdos) <delete-exited-processes>:
2300 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2301 <x-underline-at-descent-line>:
2302 * xdisp.c (format-mode-line):
2303 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
2304 <x-underline-at-descent-line>: Doc fixes.
2305
64d962c1
AS
23062006-12-10 Andreas Schwab <schwab@suse.de>
2307
2308 * systime.h (EMACS_GET_TIME): Remove check for
2309 HAVE_STRUCT_TIMEZONE which is never defined.
2310
43726c05
AM
23112006-12-10 Alan Mackenzie <acm@muc.de>
2312
2313 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
2314 result is now neither the last elt nor optional for OLDSTATE.
2315
cbf9640e
EZ
23162006-12-09 Eli Zaretskii <eliz@gnu.org>
2317
2318 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
2319 extract the process ID from a Lisp float.
2320
3ca241e1
CY
23212006-12-09 Chong Yidong <cyd@stupidchicken.com>
2322
28e86dc4 2323 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
3ca241e1 2324
9e67e94f
EZ
23252006-12-08 Eli Zaretskii <eliz@gnu.org>
2326
2327 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
2328 platforms where long is 64-bit.
2329
2330 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
2331
28e86dc4 23322006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
a15fc3c3
CY
2333
2334 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
2335
65fa9a64
KH
23362006-12-08 Kenichi Handa <handa@m17n.org>
2337
2338 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
2339
b4963755
JB
23402006-12-08 Juanma Barranquero <lekktu@gmail.com>
2341
2342 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2343
f7a706cf
KS
23442006-12-07 Kim F. Storm <storm@cua.dk>
2345
2346 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
2347 (Fsignal_process): Don't use strncasecmp.
2348
da9109f7
GM
23492006-12-05 Glenn Morris <rgm@gnu.org>
2350
2351 * abbrev.c (Qforce): New Lisp_Object.
2352 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
2353 abbrevs, unless 'force is applied.
2354 (syms_of_abbrev): Add Qforce.
2355
5c35ec32
KS
23562006-12-04 Kim F. Storm <storm@cua.dk>
2357
55ba687b
KS
2358 * process.c (parse_signal): Rename macro from handle_signal.
2359 (Fsignal_process): Also accept lower-case variants of signal
2360 names (to align with signal names generated by Emacs itself).
2361
5c35ec32
KS
2362 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
2363 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
2364 first with code == 0 [signal] and one with code == sig number.
2365 (main): Use it as handler for SIGUR1 and SIGUSR2.
2366
2367 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
2368 if first event in [signal xxx] sequence.
2369 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
2370 (syms_of_keyboard): Don't intern and staticpro them.
9d8b24a2
KS
2371 (Qsignal): Declare here.
2372 (syms_of_keyboard): Intern and staticpro it.
2373 (make_lispy_event): Use it. Intern symbols on the fly for other
2374 USER_SIGNAL_EVENTs events.
5c35ec32
KS
2375
2376 * process.c (Qsignal): Declare extern.
9d8b24a2 2377 (syms_of_process): Don't intern/staticpro it here.
5c35ec32
KS
2378
2379 * process.c (read_process_output): Abort if carryover < 0.
2380
ee77eef5
YM
23812006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2382
2383 * config.in: Regenerate.
2384
2385 * fileio.c [__NetBSD__]: Don't define `unix'.
2386 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
2387 `#ifdef unix'.
2388
4a3363c5
GM
23892006-12-04 Glenn Morris <rgm@gnu.org>
2390
2391 * Makefile.in (version): New variable, set by configure.
2392 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
2393
a3893a90
JD
23942006-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2395
2396 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
2397 without an image.
2398
107fae8b
EZ
23992006-12-01 Eli Zaretskii <eliz@gnu.org>
2400
2401 * w32fns.c (Fw32_shell_execute): Doc fix.
2402
b88548b1
CY
24032006-11-30 Chong Yidong <cyd@stupidchicken.com>
2404
2405 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
2406 lines ending in tab.
2407
65dc67a9
JD
24082006-11-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2409
2410 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
2411 property ...
2412 (XTframe_raise_lower): ... to here.
2413
3aaab9a0
KH
24142006-11-30 Kenichi Handa <handa@m17n.org>
2415
2416 * regex.c (regex_compile): Fix previous change.
2417
c6605d63
JB
24182006-11-29 Juanma Barranquero <lekktu@gmail.com>
2419
2420 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
2421
1a52930b
CY
24222006-11-28 Chong Yidong <cyd@stupidchicken.com>
2423
2424 * config.in: Regenerate.
2425
6358f8b2
KH
24262006-11-28 Kenichi Handa <handa@m17n.org>
2427
2428 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
2429 multibyte character.
2430
55107ae5
CY
24312006-11-27 Chong Yidong <cyd@stupidchicken.com>
2432
2b8d8474 2433 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
55107ae5 2434
89692b9a
KS
24352006-11-27 Kim F. Storm <storm@cua.dk>
2436
2437 * window.c (set_window_buffer): Refactor recent changes.
2438
7e993c06
JR
24392006-11-27 Jason Rumney <jasonr@gnu.org>
2440
2441 * w32term.c (w32_msg_worker): Declare correctly.
2442 (w32_initialize): Don't cast w32_msg_worker.
2443
2444 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
2445
fb873e6b
CY
24462006-11-26 Chong Yidong <cyd@stupidchicken.com>
2447
2448 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
2449 directory exists.
2450
69a6e74d
EZ
24512006-11-25 Eli Zaretskii <eliz@gnu.org>
2452
2453 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
2454 as per the calling sequence change on 2006-07-11.
2455
d496cfc0
CY
24562006-11-25 Chong Yidong <cyd@stupidchicken.com>
2457
2458 * window.c (set_window_buffer): Use BLOCK_INPUT.
2459
5ee699a7
JB
24602006-11-24 Juanma Barranquero <lekktu@gmail.com>
2461
2462 * fns.c (substring_both): Add missing address operator.
2463
7edbb0da
SM
24642006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2465
2466 * fns.c: Use AREF/ASIZE macros.
2467 (concat): Provide the full ANSI prototype.
2468
96215ace
JB
24692006-11-24 Juanma Barranquero <lekktu@gmail.com>
2470
2471 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2472
09566666
NR
24732006-11-23 William Smith <William.Smith@global360.com> (tiny change)
2474
609b291d 2475 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
09566666 2476
550934c8 24772006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
6a022bd9
CY
2478
2479 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
2480 /usr/pkg/lib from the library search path.
2481 (LD_SWITCH_X_DEFAULT): New macro.
2482
63cb1543
CY
24832006-11-22 Chong Yidong <cyd@stupidchicken.com>
2484
2485 * window.c (set_window_buffer): Clear mouse highlight if it is in
2486 this window.
2487
ca612449
CY
24882006-11-21 Chong Yidong <cyd@stupidchicken.com>
2489
2490 * xfaces.c (realize_default_face): Check if the default font name
2491 exists on this display before trying to use it.
2492
a98d0b8e
RS
24932006-11-21 Richard Stallman <rms@gnu.org>
2494
2495 * fileio.c: Break line before &&, not after.
2496
1ce0a32d
EZ
24972006-11-20 Eli Zaretskii <eliz@gnu.org>
2498
2499 * fns.c (concat) [!__GNUC__]: Add prototype.
2500
565f08cd
KH
25012006-11-20 Kenichi Handa <handa@m17n.org>
2502
2503 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
2504 check the tailing slash of a filename.
2505
e15a0495
KH
25062006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
2507
2508 * indent.c (Fvertical_motion): Include composition in the case of
2509 overshoot expected.
2510
221439a0
AS
25112006-11-19 Andreas Schwab <schwab@gnu.org>
2512
7edbb0da 2513 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
221439a0
AS
2514
2515 * xmenu.c (Fx_popup_menu): Initialize selection.
2516
bcd7101a
AS
25172006-11-18 Andreas Schwab <schwab@suse.de>
2518
7edbb0da 2519 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
bcd7101a 2520
118ddbdd
JD
25212006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2522
2523 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
2524 to avoid gcc 2.96 error.
2525
347d9bbe
KH
25262006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
2527
2528 * search.c (simple_search): In the loop of backward searching,
2529 check also the byte position against the limit.
2530
d089c7a8
RF
25312006-11-14 Romain Francoise <romain@orebokech.com>
2532
2533 * minibuf.c (Fcompleting_read): Fix typo in docstring.
2534
1364f420
KH
25352006-11-14 Kenichi Handa <handa@m17n.org>
2536
7edbb0da 2537 * coding.c (code_convert_region): Initialize coding->heading_ascii.
1364f420
KH
2538 (decode_coding_string, code_convert_region): Likewise.
2539
9b150aa2
YM
25402006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2541
2542 * config.in: Regenerate.
2543
2544 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
2545 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
2546 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
2547 CGDisplayScreenSize is available.
2548
2549 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2550 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
2551 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
2552 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
2553 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
2554 CancelMenuTracking is available.
2555
2556 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
2557 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
2558 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
2559 CGContextShowGlyphsWithAdvances is available.
2560
52dcc2d0
JR
25612006-11-13 Jason Rumney <jasonr@gnu.org>
2562
2563 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
2564
55a314a5
YM
25652006-11-13 Nozomu Ando <nand@mac.com>
2566
2567 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
2568 Fix address calculations for case END < START.
2569 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
2570
4cb8645c
JB
25712006-11-12 Juanma Barranquero <lekktu@gmail.com>
2572
2573 * coding.c (Fencode_sjis_char, Fencode_big5_char):
2574 Improve argument/docstring consistency.
2575
2576 * editfns.c (Fmessage): Doc fixes.
2577
2578 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
2579
b071677f
CY
25802006-11-12 Chong Yidong <cyd@stupidchicken.com>
2581
2582 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
2583
0924e3f6
RF
25842006-11-12 Romain Francoise <romain@orebokech.com>
2585
2586 * xselect.c (selection-coding-system): Fix docstring.
2587
947129a2
JB
25882006-11-12 Juanma Barranquero <lekktu@gmail.com>
2589
2590 * category.c (Fchar_category_set): Improve arg/docstring consistency.
2591
2592 * data.c (Flogxor):
2593 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
2594 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
2595 (Fstring_make_unibyte): Fix typos in docstrings.
2596
b8e7655f
JD
25972006-11-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2598
2599 * xterm.h (struct x_display_info): Fix indentation.
2600
2601 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
2602 (x_check_fullscreen): Call do_ewmh_fullscreen.
2603 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
2604
2605 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
2606
2607 * term.c: Define fullscreen_hook.
2608 (syms_of_term): Initialize fullscreen_hook to NULL.
2609
2610 * termhooks.h: Add fullscreen_hook.
2611
eed1152f
JB
26122006-11-08 Juanma Barranquero <lekktu@gmail.com>
2613
2614 * bytecode.c (Fbyte_code):
2615 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
2616
3dd428fa
JB
26172006-11-06 Juanma Barranquero <lekktu@gmail.com>
2618
2619 * lread.c (syms_of_lread):
2620 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
2621
e8407323
CY
26222006-11-06 Martin Rudalics <rudalics@gmx.at>
2623
2624 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
2625
2626 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
2627 Return nil if building without menus.
2628
2629 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
2630 Return nil if building without menus.
2631
faefde36
RS
26322006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
2633
7edbb0da 2634 * s/netbsd.h (POSIX_SIGNALS): Define.
faefde36 2635
107709d4
EZ
26362006-11-05 Martin Rudalics <rudalics@gmx.at>
2637
2638 * macmenu.c (Fmenu_or_popup_active_p): New function.
2639 (syms_of_macmenu): Defsubr it.
2640
2641 * w32menu.c (Fmenu_or_popup_active_p): New function.
2642 (syms_of_w32menu): Defsubr it.
2643 (popup_activated_flag, popup_activated): Remove.
2644
2645 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
2646 check popup_activated.
2647
2648 * xmenu.c (Fmenu_or_popup_active_p): New function.
2649 (syms_of_xmenu): Defsubr it.
2650
c57038f8
YM
26512006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2652
2653 * unexmacosx.c (malloc_cookie): Remove unused variable.
2654 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
2655 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
2656 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
2657 (num_unexec_regions, unexec_regions): Make variables static.
2658 (print_regions, find_emacs_zone_regions): Make static.
2659 (unexec_region_info): New typedef.
2660 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
2661 All uses changed.
2662 (unexec_regions_recorder): Subtract size of trailing null pages from
2663 filesize. Show filesize.
2664 (unexec_regions_merge): Don't merge if null pages of preceding region
2665 is not too small. Use long format in printf.
2666 (copy_segment, copy_data_segment): Show filesize.
7edbb0da
SM
2667 (copy_data_segment): Write filesize bytes of region data.
2668 Adjust filesize in segment command accordingly.
c57038f8
YM
2669 (dump_it): Use long format in printf.
2670
60a294e2
JB
26712006-11-05 Juanma Barranquero <lekktu@gmail.com>
2672
2673 * dosfns.c (Finsert_startup_screen):
2674 * fns.c (Ffeaturep, syms_of_fns):
2675 * frame.c (syms_of_frame): Fix typos in docstrings.
2676
2677 * unexcw.c (unexec): Fix typo in output message.
2678
b20d6154
EZ
26792006-11-04 Ralf Angeli <angeli@caeruleus.net>
2680
2681 * w32fns.c (w32_createwindow): Remove code for handling -geometry
2682 command line option and `initial-frame-alist' which is superfluous
2683 after the last change to `w32_createwindow'.
2684
ccc54d96 26852006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
3ac04ed0 2686
ccc54d96
JB
2687 * w32proc.c (sys_wait): Only wait for processes with fd<0.
2688 Others should be handled by sys_select instead. Fixes problems
2689 with (progn (start-process "" nil "ls") (call-process "ls")).
3ac04ed0 2690
ccc54d96 26912006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8630721e
CY
2692
2693 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
2694 avoid gcc 2.95 error.
2695
b20d6154 26962006-11-04 Chong Yidong <cyd@stupidchicken.com>
ffbdf67b
CY
2697
2698 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
2699 wicon is null, insert an empty button.
2700
45a26c42
JD
27012006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2702
ca21600d
JB
2703 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
2704 window.
45a26c42 2705
b224de9b
JB
27062006-11-02 Juanma Barranquero <lekktu@gmail.com>
2707
2708 * emacs.c (Fkill_emacs): Fix typo in docstring.
2709
73da71f9
YM
27102006-11-02 Nozomu Ando <nand@mac.com>
2711
2712 * unexmacosx.c (mach_header, segment_command, vm_region, section)
2713 [_LP64]: New defines.
2714 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
2715 (MH_MAGIC) [_LP64]: Redefine.
2716 (delta): Remove variable.
2717 (curr_file_offset, pagesize): New variables.
2718 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
2719 (data_segment_old_fileoff): Initialize explicitly.
2720 (print_region, unexec_regions_recorder, print_load_command_name)
2721 (copy_segment, copy_data_segment): Use long format in printf.
2722 (MAX_UNEXEC_REGIONS): Increase to 400.
2723 (unexec_regions_recorder): Don't warn too many regions here.
2724 (find_emacs_zone_regions): Warn too many regions here.
2725 (print_load_command_name) [_LP64]: Show correct load command name.
2726 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
2727 Show starting virtual memory address. Don't show ending file offset.
2728 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
2729 (dump_it): Use new local variable `linkedit_delta' and pass to them.
2730 Error if trying to handle multiple DATA segments.
2731 (unexec): Initialize variable `pagesize'.
2732
ebc20ca0
JB
27332006-11-01 Juanma Barranquero <lekktu@gmail.com>
2734
2735 * eval.c (Fcatch): Doc fix.
2736
6ceb8058
YM
27372006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2738
2739 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
5e1a6e32 2740 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
6ceb8058
YM
2741 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
2742 (xpm_load_image): Add const qualifier to arguments.
2743 [MAC_OS] (xpm_color_key_strings): Make static const.
2744
2745 * mac.c (create_apple_event_from_event_ref)
2746 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
2747 (parse_include_file, parse_binding, parse_component)
2748 (parse_resource_name, parse_value, parse_resource_line)
2749 (xrm_merge_string_database, xrm_get_resource)
2750 (xrm_get_preference_database): Add const qualifier to arguments.
2751 [MAC_OSX] (sys_select): Make variable `context' static const.
2752
2753 * macfns.c (mac_color_map): Make static const.
2754 (mac_color_map_lookup): Add const qualifier to arguments.
2755
2756 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
2757 static const.
2758 (name_is_separator): Add const qualifier to arguments.
2759
ca21600d
JB
2760 * macselect.c (init_service_handler): Make variable `specs' static
2761 const.
6ceb8058
YM
2762
2763 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
2764 `swap_nibbles' static const.
2765 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
2766 `tags', `sizes', `values' static const.
7edbb0da
SM
2767 (mac_draw_string_common): Make variables `context' static.
2768 Make variables `tags', `sizes', and `values' static const.
6ceb8058
YM
2769 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
2770 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
2771 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
2772 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
2773 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
2774 qualifier to arguments.
2775 (xlfd_scalable_fields, keycode_to_xkeysym_table)
2776 (fn_keycode_to_keycode_table): Make static const.
2777 (mac_load_query_font): Make variables `tags', `sizes', `values',
2778 `types', and `selectors' static const.
7edbb0da
SM
2779 (mac_handle_command_event, mac_handle_window_event):
2780 Make variables `names' and `types' static const.
6ceb8058
YM
2781 (init_command_handler, install_window_handler): Make variables
2782 `specs*' static const.
2783 (mac_handle_font_event, mac_handle_text_input_event)
2784 (mac_store_service_event): Make variables `names' and `types'
2785 const. Make variables `names_*' and `types_*' static const.
2786
2787 * macterm.h (create_apple_event_from_event_ref)
2788 (create_apple_event_from_drag_ref, xrm_merge_string_database)
2789 (xrm_get_resource, xrm_get_preference_database): Add const
2790 qualifier to arguments in externs.
2791
7147863a
KH
27922006-10-31 Kenichi Handa <handa@m17n.org>
2793
2794 * xfns.c (xic_create_xfontset): Fix previous change.
2795
78667db7
CY
27962006-10-30 Chong Yidong <cyd@stupidchicken.com>
2797
2798 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
2799 /usr/pkg/lib to library search path.
2800
ebc20ca0 28012006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
8d31e373
CY
2802
2803 * ralloc.c (relinquish): Use a long for excess space counter to
2804 handle 64-bit case correctly.
2805
1dbfd8e3
CY
28062006-10-29 Jeramey Crawford <jeramey@jeramey.com>
2807
2808 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
2809
856bb2b0
JB
28102006-10-29 Juanma Barranquero <lekktu@gmail.com>
2811
2812 * window.c (Fdisplay_buffer): Fix typo in docstring.
2813
4975e695
JB
28142006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
2815
2816 * w32term.c (x_draw_glyph_string_foreground): Set background mode
2817 to TRANSPARENT before using overstrike to simulate bold faces.
2818
2819 * xfaces.c (best_matching_font): Fix logic to decide whether to
2820 use overstriking to simulate bold-face (it was reversed).
2821
cbfe778a
KS
28222006-10-23 Kim F. Storm <storm@cua.dk>
2823
ca21600d
JB
2824 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
2825 initialized.
a4614668 2826
cbfe778a
KS
2827 * keyboard.c (read_char): Make an element (t . EVENT) in
2828 unread-command-events add EVENT to the current command's key sequence.
2829 (syms_of_keyboard) <unread-command-events>: Update doc.
2830
627fb581
RS
28312006-10-21 Richard Stallman <rms@gnu.org>
2832
2833 * minibuf.c (Vread_expression_map): Define here.
2834 (Qread_expression_history): New variable.
2835 (syms_of_minibuf): Initialize them.
2836 (Feval_minibuffer): Use Vread_expression_map and
2837 Qread_expression_history.
2838
cd987aaa
KH
28392006-10-21 Kenichi Handa <handa@m17n.org>
2840
2841 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
2842 card, change it to "*".
2843 (xic_create_xfontset): Call XCreateFontSet for each single
2844 fontname in fontsetname.
2845
55b41ef5
CY
28462006-10-19 Chong Yidong <cyd@stupidchicken.com>
2847
2848 * callint.c (callint_message): Convert to a Lisp string.
2849 (syms_of_callint): Initialize it.
2850 (callint_message_size): Var deleted.
2851 (Fcall_interactively): Use Fformat instead of doprnt to construct
2852 prompt string.
2853
cc7aa8dc
KS
28542006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2855
2856 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
2857
045b1908
YM
28582006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2859
2860 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
2861 New variable.
2862 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
2863
866f8518
JD
28642006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2865
2866 * xselect.c (x_handle_selection_request): If the converted_selection
14a56a1b 2867 is nil or XCDR (converted_selection) is nil, decline the request.
866f8518 2868
b43da352
JD
28692006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2870
2871 * gtkutil.c (get_utf8_string): Remove warnings with casts.
7edbb0da 2872 (xg_tool_bar_button_cb): Ditto.
b43da352
JD
2873 (xg_tool_bar_callback): Ditto.
2874
7c682cf1
YM
28752006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2876
2877 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
2878 variable ch_dim.
2879 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
2880 menu bar window matrices on non-X systems.
2881
2882 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
2883
2884 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
2885 adjustment is needed.
2886 (mac_load_query_font): Check if width and height are positive.
2887
563964ae
RS
28882006-10-14 Richard Stallman <rms@gnu.org>
2889
2890 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
2891
98721beb
CY
28922006-10-13 Chong Yidong <cyd@stupidchicken.com>
2893
ca21600d
JB
2894 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
2895 title.
98721beb 2896
eae637ec
CY
28972006-10-12 Chong Yidong <cyd@stupidchicken.com>
2898
2899 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
2900 XCAR and XINT.
2901
431feaf6
RF
29022006-10-12 Romain Francoise <romain@orebokech.com>
2903
2904 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
2905
de9855d5
SM
29062006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
2907
b70e1a2b
SM
2908 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
2909
2910 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
2911
2912 * xterm.c (x_check_expected_move): Remove unused var `count'.
2913
de9855d5
SM
2914 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
2915 Fdefalias is not declared in any *.h file.
2916
394ccd7d
CY
29172006-10-09 Chong Yidong <cyd@stupidchicken.com>
2918
2bcac766
CY
2919 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
2920
2921 * keyboard.c (command_loop_1): Handle non-number values of
2922 `minibuffer-message-timeout'.
2923 (Fexecute_extended_command): Fix typo.
2924
394ccd7d
CY
2925 * minibuf.c (temp_echo_area_glyphs): Sit for
2926 `minibuffer-message-timeout' seconds.
2927
bb420759
YM
29282006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2929
de9855d5
SM
2930 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
2931 Add argument OVERSTRIKE_P.
bb420759
YM
2932 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
2933 Support overstrike.
2934 (mac_draw_string, mac_draw_string_16): Remove functions.
2935 (x_draw_glyph_string_foreground): Use overstrike when needed.
de9855d5
SM
2936 (x_draw_composite_glyph_string_foreground): Likewise.
2937 Use mac_draw_image_string_16 instead of mac_draw_string_16.
4975e695
JB
2938 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
2939 F instead of DPY. All uses changed. Don't save/restore font.
bb420759 2940
2770d589
JR
29412006-10-07 Ralf Angeli <angeli@caeruleus.net>
2942
2943 * w32fns.c (w32_createwindow): Honour left and top positions if
2944 supplied explicitly.
2945
ee37d135
KS
29462006-10-06 Kim F. Storm <storm@cua.dk>
2947
2948 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
2949
26c34ec2
CY
29502006-10-05 Chong Yidong <cyd@stupidchicken.com>
2951
2952 * frame.c (Qinhibit_face_set_after_frame_default): New var.
2953 (syms_of_frame): Initialize it.
2954 (x_set_frame_parameters): Avoid resetting :font attributes to the
2955 new-frame defaults.
2956
54dd3310
SM
29572006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
2958
2959 * lisp.h (clear_regexp_cache): Declare.
2960
2961 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
2962 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
2963 (clear_regexp_cache): Only flush those regexps which depend on
2964 a syntax-table.
2965
2966 * regex.c (regex_compile): Set the new `used_syntax' bit.
2967
2968 * regex.h: Remove file local variables.
2969 (struct re_pattern_buffer): New field `used_syntax'.
2970
73812be6
KS
29712006-10-03 Kim F. Storm <storm@cua.dk>
2972
2973 * process.c (list_processes_1): Run sentinels before removing dead
2974 processes. Also remove `closed' network connections.
2975
2201c41c
SM
29762006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2977
2978 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
2979
79e01e93
EZ
29802006-09-30 Eli Zaretskii <eliz@gnu.org>
2981
4975e695 2982 * config.in: Regenerated.
79e01e93 2983
f9df5f68
JL
29842006-09-29 Juri Linkov <juri@jurta.org>
2985
2986 * buffer.c (syms_of_buffer): Reorder coding systems in the
2987 docstring of %z to the real order displayed in the modeline.
2988
7ae8428d
SM
29892006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2990
2991 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
2992
14a7cabf
CY
29932006-09-26 Chong Yidong <cyd@stupidchicken.com>
2994
2995 * indent.c (Fvertical_motion): Do move back if the Lisp string
2996 being displayed contains newlines.
2997
444a42fd
YM
29982006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2999
3000 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
3001 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
3002
4ccaff67
KH
30032006-09-26 Kenichi Handa <handa@m17n.org>
3004
3005 * keymap.c (Fsingle_key_description): For an invalid char, return
3006 "Invalid char code NNNNN".
3007
2a95a27c
CY
30082006-09-25 Chong Yidong <cyd@stupidchicken.com>
3009
3010 * callint.c (Fcall_interactively): Doc fix.
3011
cf2c6835
YM
30122006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3013
3014 * macterm.c (x_underline_at_descent_line): New variable.
3015 (syms_of_macterm): DEFVAR_BOOL it.
3016 (x_draw_glyph_string): Use it.
3017 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
3018
173517c6
KH
30192006-09-25 Kenichi Handa <handa@m17n.org>
3020
3021 * keymap.c (Fsingle_key_description): Return unique names for
3022 generic characters.
3023
45c912f2
RS
30242006-09-24 Richard Stallman <rms@gnu.org>
3025
3026 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
3027
1133f8e7
EZ
30282006-09-24 Eli Zaretskii <eliz@gnu.org>
3029
de9855d5
SM
3030 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
3031 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
8f59d602
EZ
3032
3033 * w32proc.c (nl_langinfo): New function.
3034
1133f8e7
EZ
3035 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
3036 (w32-pass-lwindow-to-system, w32-enable-num-lock)
3037 (w32-enable-caps-lock, w32-scroll-lock-modifier)
3038 (w32-lwindow-modifier, w32-rwindow-modifier)
3039 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
3040
ba5524f4
JB
30412006-09-23 Juanma Barranquero <lekktu@gmail.com>
3042
3043 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
3044 (Fdisplay_completion_list): Fix typos in docstrings.
3045
47a0ee40
RF
30462006-09-23 Romain Francoise <romain@orebokech.com>
3047
3048 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
3049
5dfe789c
KH
30502006-09-23 Kenichi Handa <handa@m17n.org>
3051
ba5524f4 3052 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
5dfe789c 3053
4560a582
SM
30542006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
3055
3056 * regex.c (analyse_first): For eight-bit-control chars, mark both the
3057 char's value and its leading byte in the fastmap.
3058 (re_search_2): When fast-scanning without translation, be careful to
3059 check that we only match the leading byte of a multibyte char.
3060
3061 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
3062 byte sequence.
3063 (AT_CHAR_BOUNDARY): New macro.
3064
2e77924d
KH
30652006-09-22 Kenichi Handa <handa@m17n.org>
3066
3067 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
3068 whose default value is non-nil.
3069
66687b7c
JD
30702006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3071
db4fd914 3072 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
782447bd
JD
3073 Gtk+ versions < 2.10.
3074
66687b7c
JD
3075 * xfns.c (syms_of_xfns): Fix typo in help text for
3076 x-gtk-file-dialog-help-text.
3077
b521ddce
KS
30782006-09-21 Kim F. Storm <storm@cua.dk>
3079
3080 * fns.c (Fmemq): Refill doc string.
3081 (Fmemql): New defun, like memq but using eql.
3082 (syms_of_fns): Defsubr it.
3083
d0e0bd5f
KS
30842006-09-20 Kim F. Storm <storm@cua.dk>
3085
3086 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
3087 last visible glyph in window.
3088
a4df1f8b 3089 * window.c (Fset_window_hscroll, Fwindow_line_height):
d0e0bd5f
KS
3090 Doc fix. Use "off-window" instead of "off-screen".
3091 (Fpos_visible_in_window_p): Likewise.
3092 If POS is t, return info for last visible glyph in window.
3093
b69e3c18
CY
30942006-09-19 Chong Yidong <cyd@stupidchicken.com>
3095
3096 * search.c (struct regexp_cache): New entry syntax_table.
3097 (compile_pattern_1): Set it.
3098 (syms_of_search): Initialize it.
3099 (compile_pattern): Require the syntax_table entry of the cache
3100 element to match the current syntax table entry.
3101
31790df3
SM
31022006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
3103
3104 * window.c (Fwindow_end): Fix recent change.
3105
06e6b4be
KS
31062006-09-19 Kim F. Storm <storm@cua.dk>
3107
3108 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
3109 Doc fix. Use "off-screen" instead of "invisible".
3110 (Fwindow_line_height): Make line numbers 0-based. Make line arg
3111 optional; if nil, use current cursor row. Handle text terminals
3112 properly. Return nil if non-interactive or pseudo-window.
3113
08e26e8b
SM
31142006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
3115
3116 * keymap.c: Include alloca.h if available.
3117 (Fkey_binding): Only use AREF after checking it's a vector.
3118 Remove unused var `window'.
3119
61973eb6
YM
31202006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3121
ca21600d
JB
3122 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
3123 inhibit_sentinels.
61973eb6
YM
3124
3125 * mac.c [!MAC_OSX] (select): Fix argument name.
3126
3127 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
3128 menu ID for Apple menu.
3129 (menubar_selection_callback): Remove function.
3130 (find_and_call_menu_selection): New function from xmenu.c.
3131 (x_activate_menubar): Use it.
3132 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
3133
3134 * macterm.c (menubar_selection_callback): Remove extern.
3135 (M_APPLE): Change to 234.
3136 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
3137 (do_menu_choice): Remove function.
3138
3139 * macterm.h (struct mac_output): Remove member menubar_active.
3140 (do_menu_choice): Remove extern.
3141 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
3142
1dd3c9b6
JD
31432006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3144
1a2b3a9f
JD
3145 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
3146 x_gtk_file_dialog_help_text.
3147
1dd3c9b6
JD
3148 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
3149 to x-gtk-use-old-file-dialog.
1a2b3a9f
JD
3150 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
3151 x_gtk_file_dialog_help_text.
1dd3c9b6
JD
3152
3153 * xfns.c (syms_of_xfns): Ditto.
3154
661bdc06
KS
31552006-09-18 Kim F. Storm <storm@cua.dk>
3156
3157 * window.c (Fwindow_line_visibility): Remove.
3158 (Fwindow_line_height): New defun replacing it.
3159 (syms_of_window): Defsubr it.
3160
37228c38
YM
31612006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3162
3163 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
3164 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
3165
a688d8b5
JB
31662006-09-17 Jay Belanger <belanger@truman.edu>
3167
3168 * gmalloc.c:
3169 * md5.c:
3170 * md5.h:
3171 * strftime.c: Replace "GNU Library General Public License" by "GNU
3172 General Public License" throughout.
3173
059fd1a1
KS
31742006-09-17 Kim F. Storm <storm@cua.dk>
3175
3176 * dispnew.c (update_text_area): Undo 2000-07-18 change.
3177 Always redrawing whole row if line has mouse-face in it causes
3178 excessive flickering of the mode line.
3179
e5b94d44
CY
31802006-09-17 Chong Yidong <cyd@stupidchicken.com>
3181
3182 * search.c (clear_regexp_cache): New function.
3183
3184 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
3185
241ad3ca
JD
31862006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3187
31790df3
SM
3188 * gtkutil.c (xg_get_file_with_chooser):
3189 Check x-gtk-show-chooser-help-text before adding the help text.
fbce5860
JD
3190
3191 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
3192
241ad3ca
JD
3193 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
3194 will simply crash if we fail.
3195
6875fe9a
RS
31962006-09-16 Richard Stallman <rms@gnu.org>
3197
3198 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
3199
0c9337fb
KS
32002006-09-15 Kim F. Storm <storm@cua.dk>
3201
3202 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
3203 (syms_of_window): Defsubr it.
3204 (Fwindow_end): Use window's buffer rather than current buffer.
3205
45a2056c
JB
32062006-09-15 Jay Belanger <belanger@truman.edu>
3207
3208 * COPYING: Replace "Library Public License" by "Lesser Public
3209 License" throughout.
3210
b74e16a3
DK
32112006-09-15 David Kastrup <dak@gnu.org>
3212
de9855d5 3213 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
b74e16a3
DK
3214
3215 * keymap.c: include "window.h".
3216 (Fcommand_remapping): New optional POSITION argument.
3217 (Fkey_binding): New optional POSITION argument. Completely rework
3218 handling of mouse clicks to get the same order of keymaps as
3219 `read-key-sequence' and heed POSITION. Also temporarily switch
3220 buffers to location of mouse click and back.
3221
3222 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
3223 for additional argument.
ca21600d
JB
3224 (parse_menu_item): Adjust call of `Fkey_binding' for additional
3225 argument.
b74e16a3
DK
3226 (read_key_sequence): If there are both `local-map' and `keymap'
3227 text properties at some buffer position, heed both.
3228
3229 * keymap.h: Declare additional optional arguments of
3230 `Fcommand_remapping' and `Fkey_binding'.
3231
6cb66a31
JB
32322006-09-15 Juanma Barranquero <lekktu@gmail.com>
3233
3234 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
3235
cd3587c1
AS
32362006-09-14 Andreas Schwab <schwab@suse.de>
3237
3238 * print.c: Whitespace fixup.
3239
84be646f
KS
32402006-09-14 Kim F. Storm <storm@cua.dk>
3241
3242 * xdisp.c (produce_image_glyph): Automatically crop wide images at
3243 right window edge so we can draw the cursor on the same row to
3244 avoid confusing redisplay by placing the cursor outside the visible
3245 window area.
3246
856bb2b0 32472006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98a20c65
CY
3248
3249 * xterm.c (x_initialize): Don't install Xt event timer here.
3250 (x_timeout_atimer_activated_flag): New var.
3251 (x_activate_timeout_atimer): New function to install Xt timer.
3252 (x_send_scroll_bar_event, x_process_timeouts): Use it.
3253
3254 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
3255 (create_and_show_popup_menu, create_and_show_dialog): Use it.
3256
2371cbe9 3257 * xterm.h (x_activate_timeout_atimer): Add prototype.
98a20c65 3258
efb15f96
RS
32592006-09-13 Richard Stallman <rms@gnu.org>
3260
3261 * print.c (print_string): When printcharfun is t,
3262 copy string contents and call strout on the copy.
3263
3264 * keyboard.c (read_char): If end_time specified, don't put the
3265 event into this_command_keys.
3266 (read_key_sequence): If Voverriding_terminal_local_map is specified,
3267 don't check Voverriding_local_map at all.
3268
1baa749c 32692006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
52c0f270
CY
3270
3271 * textprop.c (Fnext_property_change, Fnext_single_property_change)
3272 (Fprevious_property_change, Fprevious_single_property_change):
3273 Avoid changing limit, so we can correctly catch the case where the
3274 property is constant up to limit.
3275
eee81f5d
YM
32762006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3277
3278 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3279 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3280 Undo 2006-09-08 change.
3281
91197db4
CY
32822006-09-11 Chong Yidong <cyd@stupidchicken.com>
3283
3284 * keymap.c (Fkey_binding): Use string position for string objects.
3285
83279b3e
KS
32862006-09-11 Kim F. Storm <storm@cua.dk>
3287
9a71d7de
KS
3288 * keymap.c (Fkey_binding): Fix last change.
3289
83279b3e
KS
3290 * editfns.c (Fmessage): Recommend using (message "%s" ...).
3291
b067ddb6
CY
32922006-09-10 Chong Yidong <cyd@stupidchicken.com>
3293
ca21600d
JB
3294 * keymap.c (Fkey_binding): Check for local keymap for mouse click
3295 events.
b067ddb6 3296
322dd254
KS
32972006-09-10 Kim F. Storm <storm@cua.dk>
3298
606fd469
KS
3299 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
3300 and Vunread_post_input_method_events.
3301
322dd254
KS
3302 * dispnew.c (Fredisplay): Document return value.
3303
437b2a15
JD
33042006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3305
3306 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
3307
3308 * gtkutil.c (xg_display_close): Always change default display if needed,
3309 check for < Gtk+ version 2.10 before calling gdk_display_close.
3310
6eeee4d6
YM
33112006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3312
eee81f5d
YM
3313 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
3314 Make variable `ofds' static. Remove variable `maxfd'.
6eeee4d6 3315
6cb66a31
JB
3316 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
3317 Call check_mac.
6eeee4d6 3318
eee81f5d 3319 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
6cb66a31
JB
3320 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
3321 Apply 2006-09-08 change for xmenu.c.
6eeee4d6 3322
d7b1ea44 3323 * xfns.c (Fx_file_dialog): Call check_x.
6eeee4d6 3324
f90660aa
KS
33252006-09-10 Kim F. Storm <storm@cua.dk>
3326
3327 * xdisp.c (get_window_cursor_type): Use hollow cursor on
3328 non-transparent images.
3329
c048d606
EZ
33302006-09-09 Eli Zaretskii <eliz@gnu.org>
3331
3332 * editfns.c (Fsystem_name): Mention "host" in the doc string.
3333 (syms_of_editfns) <system-name>: Likewise.
3334
f4cfdbbe 33352006-09-08 Martin Rudalics <rudalics@gmx.at>
92b23323 3336
4560a582 3337 * xdisp.c (mouse_autoselect_window): Remove.
92b23323
CY
3338 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
3339
3340 * dispextern.h (mouse_autoselect_window): Remove extern.
3341 (Vmouse_autoselect_window): Add extern.
3342
3343 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
3344 instead of mouse_autoselect_window.
3345
3346 * msdos.c (dos_rawgetc): Likewise.
3347
3348 * w32term.c (w32_read_socket): Likewise.
3349
3350 * xterm.c (handle_one_xevent): Likewise.
3351
d799329b
RS
33522006-09-08 Richard Stallman <rms@gnu.org>
3353
af09dd78
RS
3354 * xdisp.c (Vmenu_updating_frame): Define here.
3355 (syms_of_xdisp): DEFVAR it here.
3356 (update_menu_bar): Always return hooks_run.
3357 Set Vmenu_updating_frame.
c989bc87 3358
af09dd78
RS
3359 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
3360 before calculating SELECTED_FRAME.
3361
3362 * xmenu.c (Vmenu_updating_frame): Don't define here.
3363 (syms_of_xmenu): Don't DEFVAR it here.
3364
3365 * xterm.c (x_error_quitter): For BadName error, just return.
3366
d799329b
RS
3367 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
3368
3369 * casetab.c (init_casetab_once): Call set_case_table.
3370
3371 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
3372
3373 * process.c (inhibit_sentinels): New variable.
3374 (exec_sentinel): Test inhibit_sentinels.
3375 (init_process): Initialize it.
3376
3377 * process.h (inhibit_sentinels): Add decl.
3378
3379 * search.c (looking_at_1, string_match_1, search_command):
3380 Make syntax table's canon table point to eqv table.
3381
bcdbfd36
AS
33822006-09-08 Andreas Schwab <schwab@suse.de>
3383
3384 * print.c (strout): Fix whitespace.
3385
70c6267a
KS
33862006-09-08 Kim F. Storm <storm@cua.dk>
3387
3388 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
3389
9deaefb7
YM
33902006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3391
3392 * mac.c [!MAC_OSX]: Don't include keyboard.h.
3393 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
3394 in the same BLOCK_INPUT block, in case that some input has already
3395 been read asynchronously. Pretend to be interrupted by a signal
3396 if some input is available.
3397 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
3398 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
3399 Now used for ReceiveNextEvent timeout instead of select timeout.
3400 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
3401 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
3402 support. Quit event loop.
3403 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
3404 connect support. Reuse previously allocated CFRunLoopSource.
3405 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
3406 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3407
3408 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3409 Specify kWindowAsyncDragAttribute.
3410
3411 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
3412 (mac_get_ideal_size): New functions.
3413 (x_set_offset, x_set_window_size, x_make_frame_visible)
3414 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
3415 (install_window_handler, mac_handle_window_event)
3416 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
3417 kEventWindowBoundsChanged.
ca21600d
JB
3418 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
3419 DragWindow.
70c6267a 3420
d7695a63
AS
34212006-09-07 Andreas Schwab <schwab@suse.de>
3422
3423 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
3424 use lib64 instead of lib.
3425
be9b5a60
SM
34262006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
3427
3428 * Makefile.in: Avoid double quotes when possible.
3429
04e28558
KH
34302006-09-06 Kenichi Handa <handa@m17n.org>
3431
3432 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
3433 a Lisp string from the result of emacs_memftimeu call.
3434
902f06ed
KS
34352006-09-06 Kim F. Storm <storm@cua.dk>
3436
3437 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
f90660aa
KS
3438 so calculate heights even when pos-visible-in-window-p is called
3439 with partially = t. Don't overshoot last_visible_y in move_it_to.
3440 Return row height and row number in new rowh and vpos args.
3441 (cursor_row_fully_visible_p): First line is always "fully visible".
902f06ed
KS
3442 (try_window): Don't clear matrix if vscrolled.
3443
3444 * lisp.h (pos_visible_p): Update prototype.
3445
3446 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
3447 Return row height and row number for partially visible rows.
647b07d1
AS
3448 Modify return value to a 2 element list for fully visible rows and
3449 6 for partially visible row.
902f06ed 3450 (window_scroll_pixel_based): Use pos_visible_p directly instead of
647b07d1
AS
3451 Fpos_visible_in_window_p. Fix auto vscrolling for partially
3452 visible lines. Only vscroll backwards if already vscrolled
3453 forwards. Unconditionally vscroll forwards if PT is first (and
3454 only) line. Set new window start instead of scrolling at
3455 start/end of tall line.
902f06ed 3456
750a6cf4
YM
34572006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3458
3459 * macterm.c (install_window_handler, mac_handle_window_event)
3460 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
3461 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
3462 ASCII keystroke event.
3463
ae6c1c19
JD
34642006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3465
3466 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
3467 the file chooser message. Only call gtk_file_chooser_set_current_name
3468 when action is SAVE.
3469
5aa17bb2
AS
34702006-09-04 Andreas Schwab <schwab@suse.de>
3471
3472 * Makefile.in: Double all single and back quotes in C-style
3473 comments to help fontifier.
3474
934db434
JR
34752006-09-03 Jason Rumney <jasonr@gnu.org>
3476
3477 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
3478 (globals_of_w32): Register it as a signal handler.
3479
6a8c7cfe
JL
34802006-09-02 Juri Linkov <juri@jurta.org>
3481
3482 * marker.c (Fmarker_position): Doc fix.
3483
5c4aaa79
EZ
34842006-09-03 Eli Zaretskii <eliz@gnu.org>
3485
3486 * window.c (syms_of_window) <split-height-threshold>:
3487 <window-min-height, window-min-width>: Doc fix.
3488
655ea21c
JD
34892006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3490
4f3097d8
JD
3491 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
3492 for writing files. Call gtk_file_chooser_set_current_name to keep
3493 default filename.
3494
655ea21c
JD
3495 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
3496
79f6ba1f
EZ
34972006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
3498
ca21600d
JB
3499 * fns.c (concat) [__GNUC__]: Declare with
3500 `__attribute__((noinline))'.
79f6ba1f
EZ
3501
3502 * eval.c (apply1, call2) [__GNUC__]: Declare with
3503 `__attribute__((noinline))'.
3504
ebc80ddf
EZ
35052006-09-02 Stuart D. Herring <herring@lanl.gov>
3506
3507 * minibuf.c (Finternal_complete_buffer): New function.
3508 (syms_of_minibuf): Defsubr it.
3509 (Fread_buffer): Use it, instead of Vbuffer_alist.
3510
5deb7a51 35112006-09-01 Martin Rudalics <rudalics@gmx.at>
3e145152 3512
5deb7a51
RF
3513 * buffer.h (struct buffer_text): New field chars_modiff.
3514 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
3515 * buffer.c (Fbuffer_chars_modified_tick): New function returning
3516 value of BUF_CHARS_MODIFF.
3517 (syms_of_buffer): Defsubr it.
3518 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
3519 * insdel.c (modify_region): New argument preserve_chars_modiff.
3520 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
3521 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
3522 (adjust_after_replace, adjust_after_replace_noundo)
3523 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
3524 * lisp.h (modify_region): Add fourth argument in extern.
3525 * casefiddle.c (casify_region): Call modify_region with fourth
3526 argument zero to assert that CHARS_MODIFF is updated.
3527 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3528 (Ftranspose_regions): Likewise.
3529 * textprop.c (Fadd_text_properties, Fset_text_properties)
3530 (Fremove_text_properties, Fremove_list_of_text_properties):
3531 Call modify_region with fourth argument 1 to avoid that
3532 CHARS_MODIFF is updated.
3e145152 3533
80e0572b
RS
35342006-08-31 Richard Stallman <rms@gnu.org>
3535
3536 * editfns.c (Fformat): Don't sign-extend for %o or %x.
3537
41d24b39
CY
35382006-08-29 Chong Yidong <cyd@stupidchicken.com>
3539
3540 * indent.c (Fvertical_motion): Don't move back if we were
3541 displaying a Lisp string, either.
3542
62d108d4
KS
35432006-08-28 Kim F. Storm <storm@cua.dk>
3544
3545 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
3546 Don't attempt to replace cursor on image glyphs.
3547
c6f8bb3a
KH
35482006-08-28 Kenichi Handa <handa@m17n.org>
3549
523fc433
JB
3550 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
3551 Fix docstring about ISO-2022 control characters.
c6f8bb3a 3552
7b9c9125
KS
35532006-08-28 Kim F. Storm <storm@cua.dk>
3554
3555 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
3556 with a hollow box cursor if image is larger than 32x32 (or the default
3557 frame font if that is bigger). Replace any other cursor on images
3558 with hollow box cursor, as redisplay doesn't support bar and hbar
3559 cursors on images.
3560
eb411049
YM
35612006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3562
3563 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
3564 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
3565
3566 * dired.c (directory_files_internal_unwind, directory_files_internal)
3567 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
3568
3569 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
3570 of OSErr.
3571
3572 * keyboard.c (in_sighandler): Remove variable.
3573 (Fcurrent_idle_time): Add missing `doc:'.
3574 (input_available_signal, init_keyboard): Undo previous change.
3575
3576 * keyboard.h (in_sighandler): Remove extern.
3577
3578 * mac.c (create_apple_event_from_event_ref, select)
3579 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
3580 (Fmac_set_file_type, cfstring_create_normalized)
6cb66a31
JB
3581 (mac_get_system_locale, select_and_poll_event, sys_select):
3582 Use OSStatus instead of OSErr.
eb411049 3583
6cb66a31
JB
3584 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
3585 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
eb411049
YM
3586 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
3587
3588 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
3589 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
3590 (get_scrap_private_timestamp, get_scrap_target_type_list)
3591 (x_own_selection, x_get_foreign_selection)
3592 (Fx_disown_selection_internal, Fx_selection_owner_p)
3593 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
3594
3595 * macterm.c (mac_draw_string_common, mac_query_char_extents)
3596 (x_iconify_frame, XLoadQueryFont, install_window_handler)
3597 (mac_handle_command_event, init_command_handler, init_menu_bar):
3598 Use OSStatus instead of OSErr.
ca21600d
JB
3599 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
3600 FRAME_FILE_NAME.
eb411049
YM
3601 (x_query_font): Apply 2006-08-04 change for xterm.c.
3602 (Qhi_command): Rename from Qhicommand. All uses changed.
3603
ca21600d
JB
3604 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
3605 file_name.
eb411049
YM
3606 (FRAME_FILE_NAME): Remove macro.
3607 (install_window_handler, create_apple_event_from_event_ref):
3608 Return OSStatus instead of OSErr.
3609
d489b9c5
KS
36102006-08-26 Kim F. Storm <storm@cua.dk>
3611
3612 * buffer.c (Fset_buffer_multibyte):
3613 * editfns.c (Fcurrent_time, Fget_internal_run_time):
3614 * macfns.c (Fxw_color_values):
3615 * w32fns.c (Fxw_color_values):
3616 * xfns.c (Fxw_color_values): Simplify; use list3.
3617
3618 * fileio.c (Fmake_directory_internal, Fdelete_directory)
3619 (Fdelete_file): Simplify; use list1.
3620 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
3621 Simplify; remove NO_ARG_ARRAY stuff, use list2.
3622
24d8984e
RS
36232006-08-25 Richard Stallman <rms@gnu.org>
3624
3625 * buffer.c (Fswitch_to_buffer): Fix previous change.
3626
16fb6ded
KS
36272006-08-25 Kim F. Storm <storm@cua.dk>
3628
3629 * keyboard.c (Fcurrent_idle_time): Simplify.
3630
3e04a8fc
RS
36312006-08-25 Richard Stallman <rms@gnu.org>
3632
3633 * fns.c (sxhash_string): Rotate properly; don't lose bits.
3634
8d8dafeb
KS
36352006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
3636
3637 * xdisp.c (overline_margin): New variable.
3638 (x_produce_glyphs): Use it.
3639 (syms_of_xdisp): DEFVAR_INT it.
3640
3641 * xterm.c (x_underline_at_descent_line): New variable.
3642 (syms_of_xterm): DEFVAR_BOOL it.
3643 (x_draw_glyph_string): Use it.
3644 Draw underline and overline up to the end of line if the face
3645 extends to the end of line.
3646
3647 * macterm.c: Likewise.
3648
3649 * w32term.c: Likewise.
3650
36512006-08-24 Nick Roberts <nickrob@snap.net.nz>
6410aac9
NR
3652
3653 * buffer.c (Fswitch_to_buffer): Move buffer to front of
3654 buffer-alist if necessary.
3655
6b4d8762
KS
36562006-08-22 Kim F. Storm <storm@cua.dk>
3657
3658 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
3659 number of items changes.
3660
7e1de68d
KS
36612006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
3662
3663 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
3664
f73858ce
JD
36652006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3666
3667 * keyboard.c: Clarify difference between in_sighandler and
3668 handling_signal.
3669
c58790e6
KS
36702006-08-21 Kim F. Storm <storm@cua.dk>
3671
3672 * macterm.c (x_draw_stretch_glyph_string):
3673 * w32term.c (x_draw_stretch_glyph_string):
3674 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
5e1a6e32 3675 stretch glyph in left marginal areas on header and mode lines.
c58790e6 3676
748726f4
KH
36772006-08-21 Kenichi Handa <handa@m17n.org>
3678
3679 * keyboard.c (syms_of_keyboard): Docstring of
ca21600d
JB
3680 Vunread_post_input_method_events and Vunread_input_method_events
3681 fixed.
748726f4 3682
c5b76d6c
CY
36832006-08-20 Chong Yidong <cyd@stupidchicken.com>
3684
3685 * keyboard.c (show_help_echo): Preserve mouse movement flag if
3686 tracking mouse.
3687
ce629713
RS
36882006-08-20 Richard Stallman <rms@gnu.org>
3689
3690 * xfaces.c (load_pixmap): Add quotes in error message.
3691
3692 * keyboard.c (Fcurrent_idle_time): New function.
3693 (syms_of_keyboard): defsubr it.
3694
454e31b3
NR
36952006-08-18 Nick Roberts <nickrob@snap.net.nz>
3696
3697 * window.c (Fset_window_fringes): Do nothing on a tty.
3698 (Fwindow_fringes): Put ? operator after the line break.
3699
dae581bf
AS
37002006-08-16 Andreas Schwab <schwab@suse.de>
3701
3702 * print.c (debug_output_compilation_hack): Fix return type.
3703
3cb74cd1
RS
37042006-08-16 Richard Stallman <rms@gnu.org>
3705
3706 * print.c (debug_output_compilation_hack): New function.
3707
29cbc482
KH
37082006-08-16 Kenichi Handa <handa@m17n.org>
3709
3710 * fileio.c (choose_write_coding_system): Use LF for end-of-line
3711 in auto-saving.
3712
3236e6b8
CY
37132006-08-15 Chong Yidong <cyd@stupidchicken.com>
3714
3715 * keyboard.c (read_char): Don't change idle timer state at all if
3716 end_time is supplied.
3717
8db1f9fa
KH
37182006-08-15 Kenichi Handa <handa@m17n.org>
3719
3720 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
3721 is exhausted, return with RET.
3722 (detect_coding_emacs_mule, detect_coding_iso2022)
3723 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
ca21600d
JB
3724 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
3725 change.
8db1f9fa 3726
70282fce
CY
37272006-08-14 Chong Yidong <cyd@stupidchicken.com>
3728
3729 * keyboard.c (read_char): Don't reset idle timers if a time limit
3730 is supplied.
3731
9bdc2a5d
KS
37322006-08-14 Kim F. Storm <storm@cua.dk>
3733
3734 * .gdbinit (pitx): Print iterator position.
3735 Limit stack dump in case iterator is not initialized.
3736
e6b8d662
EZ
37372006-08-12 Eli Zaretskii <eliz@gnu.org>
3738
3739 * frame.c (Fmouse_position, Fmouse_pixel_position)
3740 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
3741
0c584069
JD
37422006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3743
3744 * xselect.c (Fx_register_dnd_atom): New function.
3745 (syms_of_xselect): Defsubr it.
9bdc2a5d 3746 (x_handle_dnd_message): Check that message_type is in
0c584069
JD
3747 dpyinfo->x_dnd_atoms before generating lisp event.
3748
3749 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
3750 of drag and drop Atoms.
3751
3752 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
3753
abef1dd7
JD
37542006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3755
3756 * keyboard.c: Define in_sighandler.
3757 (input_available_signal): Set in_sighandler.
3758 (init_keyboard): Initialize in_sighandler.
3759
3760 * keyboard.h: Declare in_sighandler.
3761
3762 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
3763 to check if mutex should be locked or not.
3764
c2028ac6
RS
37652006-08-09 Richard Stallman <rms@gnu.org>
3766
3767 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
3768 (read_key_sequence): Always start fkey.start and fkey.end at 0,
3769 and likewise for keytran.
3770
bb0825cb
KH
37712006-08-09 Kenichi Handa <handa@m17n.org>
3772
3773 * coding.c (syms_of_coding): Improve the docstring
1a7de17e 3774 of file-coding-system-alist.
bb0825cb 3775
61486999
AS
37762006-08-07 Andreas Schwab <schwab@suse.de>
3777
3778 * puresize.h (BASE_PURESIZE): Increase to 1120000.
3779
43ed3b8d
CY
37802006-08-06 Chong Yidong <cyd@stupidchicken.com>
3781
3782 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
3783 (Fkill_all_local_variables): Use it.
3784 (syms_of_buffer): Defvar it.
3785
6b657e42
EZ
37862006-08-05 Eli Zaretskii <eliz@gnu.org>
3787
0a3297f7
EZ
3788 * w32.c (w32_valid_pointer_p): New function.
3789
3790 * w32.h: Add prototype for w32_valid_pointer_p.
3791
3792 * alloc.c: Include w32.h.
3793 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
3794 the job.
3795
6b657e42
EZ
3796 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
3797 is exactly equal to end_time, not only when it is past that.
3798
092869b9
CY
37992006-08-04 Chong Yidong <cyd@stupidchicken.com>
3800
3801 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
3802
3803 * process.c: Reapply 2006-08-01 change.
3804
3046c3f9
EZ
38052006-08-04 Eli Zaretskii <eliz@gnu.org>
3806
3807 * w32fns.c (w32_query_font): Fix last change: use stricmp.
3808
0f2e2a3b
SM
38092006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
3810
3811 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
3812 the before-change-functions since they may have altered the buffer.
3813
316a275a
EZ
38142006-08-04 Ralf Angeli <angeli@caeruleus.net>
3815
3816 * w32fns.c (w32_createwindow): Handle -geometry command line option
3817 and the geometry settings in the Registry.
3818
ef8f7cdd
KH
38192006-08-04 Kenichi Handa <handa@m17n.org>
3820
6f64cebf
KH
3821 * w32fns.c (w32_query_font): Compare names by ignoring case.
3822
ef8f7cdd
KH
3823 * xterm.c (x_query_font): Compare names by ignoring case.
3824
f3e0a6de
JR
38252006-08-03 Jason Rumney <jasonr@gnu.org>
3826
3827 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
3828 when no option selected.
3829
d634a670
CY
38302006-08-03 Chong Yidong <cyd@stupidchicken.com>
3831
3832 * process.c: Revert last change.
3833
0885202f
KS
38342006-08-01 Kim F. Storm <storm@cua.dk>
3835
3836 * process.c (wait_reading_process_output_unwind): New function.
3837 Restores waiting_for_user_input_p to saved value.
3838 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
3839 instead of save/restore old value on stack.
3840
0f42ea76
TTN
38412006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
3842
3843 * editfns.c: Undo 2006-06-27 change.
3844
69666f77
EZ
38452006-07-29 Eli Zaretskii <eliz@gnu.org>
3846
cfb37af8
EZ
3847 * coding.c (Ffind_operation_coding_system): Revert the change from
3848 2006-05-29.
3849
69666f77
EZ
3850 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
3851
0de8dcc9
RS
38522006-07-28 Richard Stallman <rms@gnu.org>
3853
0f42ea76 3854 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
0de8dcc9
RS
3855 Add conditional aborts for clarity.
3856
3857 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
3858 Used to avoid running the hooks over and over for each frame.
3859 (prepare_menu_bars): Pass value from update_menu_bar
3860 as HOOKS_RUN of next call.
3861
3862 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
3863
4dbdb9eb
KS
38642006-07-28 Kim F. Storm <storm@cua.dk>
3865
3866 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
3867 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
3868
2f1950bf
CY
38692006-07-26 Chong Yidong <cyd@stupidchicken.com>
3870
3871 * keyboard.c (read_char): New arg END_TIME specifying timeout.
3872 All callers changed. Turn off echoing if END_TIME is non-NULL.
3873 (kbd_buffer_get_event): New arg END_TIME.
3874
3875 * lread.c (read_filtered_event): New arg SECONDS to wait until.
3876 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
3877
3878 * lisp.h: Update read-char, read-event, and read_filtered_event
3879 prototypes.
3880
3881 * keyboard.h: Include systime.h. Update read_char prototype.
3882
55a90501
YM
38832006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3884
3885 * alloc.c (find_string_data_in_pure): New function.
3886 (make_pure_string): Use it to reuse existing string data if possible.
3887
3888 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
3889
2db8f173
SM
38902006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
3891
3892 * keymap.c (Fdefine_key): If the key binding definition looks like an
3893 XEmacs-style key sequence, convert it to Emacs's format.
3894
272f22eb
EZ
38952006-07-22 Ralf Angeli <angeli@caeruleus.net>
3896
ca21600d
JB
3897 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
3898 parameters are bound to some values, use that instead of
3899 CW_USEDEFAULT.
272f22eb 3900
69b72317
EZ
39012006-07-21 Eli Zaretskii <eliz@gnu.org>
3902
3903 * w32.c (convert_time): Use explicit long double constants to
3904 ensure long double arithmetics is used throughout.
3905
14eee502
YM
39062006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3907
5e1a6e32 3908 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
14eee502
YM
3909 (init_alloc_once): Initialize them.
3910 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
3911 without alignment.
3912
3913 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
3914
eeeda6f1
KS
39152006-07-18 Francis Litterio <franl@world.std.com>
3916
3917 * w32term.c (x_calc_absolute_position): Fix frame positioning
3918 with negative X/Y coordinates.
3919
2381d38d
DN
39202006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3921
3922 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
3923
3924 * textprop.c (text_read_only): Likewise.
3925
3926 * lread.c (end_of_file_error): Likewise.
3927
3928 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
3929 Likewise.
3930
3931 * eval.c (unwind_to_catch): Likewise.
3932
3933 * buffer.h (buffer_slot_type_mismatch): Likewise.
3934
5b5fca28
KS
39352006-07-18 Kim F. Storm <storm@cua.dk>
3936
3937 Cleanup Fsignal calls that never returns; now only use it for Qquit.
3938
3939 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
3940 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
3941 (signal_error): New no-return function (from xfaces.c).
3942 (Fthrow): Use xsignal2 instead of Fsignal + abort.
3943 (error): Use xsignal1 instead of Fsignal + abort.
3944 (FletX, Flet, grow_specpdl): Use signal_error.
3945 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
3946
6cb66a31 3947 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
5b5fca28
KS
3948 (list1): New function.
3949
3950 * lisp.h (list1): Add EXFUN.
3951 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
3952 Add prototypes. Mark them as no-return.
3953
3954 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
3955 Use xsignal1.
3956
3957 * callint.c (check_mark): Use xsignal0.
3958
3959 * casefiddle.c (casify_object): wrong_type_argument is no-return.
3960
3961 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
3962
3963 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
3964 (Fdefine_coding_system_internal): Use xsignal1.
3965
3966 * data.c (circular_list_error): Use xsignal.
3967 (wrong_type_argument): Use xsignal2. Don't care about return value.
3968 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
3969 Remove loop around Fsignal.
3970 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
3971 (indirect_function, Findirect_function, Fstring_to_number)
3972 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
3973 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
3974 Use xsignal0.
3975
3976 * doc.c (Fdocumentation): Use xsignal1.
3977
3978 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
3979
3980 * fileio.c (report_file_error): Use xsignal.
3981 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
3982 (Finsert_file_contents): Use xsignal2.
3983 (syms_of_fileio): Use list2, list3.
3984
3985 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
3986 (range_error2, domain_error2): Use xsignal3.
3987 (rounding_driver, fmod_float): Use xsignal0.
3988 (float_error): Use xsignal1.
3989 (matherr): Use xsignal.
3990
3991 * fns.c (Flength): wrong_type_argument is no-return.
3992 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
3993 (Fmd5): Use xsignal1.
3994
3995 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
3996
3997 * keyboard.c (recursive_edit_1): Use xsignal1.
3998
3999 * keymap.c (Fmap_keymap): Use xsignal1.
4000
4001 * lread.c (Fload): Use xsignal2, signal_error.
4002 (end_of_file_error): Use xsignal0, xsignal1.
4003 (read0): Use xsignal1.
4004 (invalid_syntax): New error function marked no-return.
4005 (read_integer, read1, read_list): Use it.
4006
4007 * macselect.c (x_get_local_selection): Use signal_error.
4008
4009 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
4010
4011 * search.c (compile_pattern_1): Use xsignal1.
4012 (signal_failure): Remove (was only called once).
4013 (search_command): Use xsignal1 instead of signal_failure.
4014
4015 * syntax.c (scan_lists): Use xsignal3.
4016
4017 * textprop.c (text_read_only): Use xsignal0, xsignal1.
4018
4019 * unexsol.c (unexec): Use xsignal.
4020
4021 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4022 Use xsignal0.
4023
4024 * xfaces.c (signal_error): Move to eval.c.
4025 (resolve_face_name): Use xsignal1.
4026
4027 * xfns.c (x_decode_color): Use signal_error.
4028
4029 * xselect.c (x_get_local_selection, copy_multiple_data)
4030 (x_get_window_property_as_lisp_data)
4031 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
4032 (Fx_get_cut_buffer_internal): Use signal_error.
4033
d3f31bc5
YM
40342006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4035
4036 * macterm.c (XTread_socket): Undo previous change.
4037
1e53bd0e
YM
40382006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4039
4040 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
4041 directly lookup keycode_to_xkeysym_table.
4042 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
4043 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
4044 (XTread_socket): Use character codes to construct keypad key events.
4045 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
4046 (x_delete_display): Apply 2006-07-04 change for xterm.c.
4047
0de8dcc9
RS
40482006-07-17 Richard Stallman <rms@gnu.org>
4049
4050 * keyboard.c (Vcommand_error_function): New variable.
4051 (syms_of_keyboard): Defvar it.
4052 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
4053
4054 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
4055
55dc982c
KS
40562006-07-17 Kim F. Storm <storm@cua.dk>
4057
4058 * xdisp.c (handle_single_display_spec): Ensure the right value of
4059 it->position is saved by push_it.
4060 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
4061 (reseat_1): Don't setup it->object twice.
4062 (set_iterator_to_next): No need to set it->object after pop_it.
4063 (move_it_to): Explicitly check to see if last move reached to_charpos.
4064
ce7d5efe
TTN
40652006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
4066
4067 * xdisp.c (display_mode_line): Preserve match data.
4068
d753d9b7
KS
40692006-07-14 Kim F. Storm <storm@cua.dk>
4070
4071 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
4072 (init_winsock): Load them. Use ws2_32.dll.
4073 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
4074 (sys_accept): Undo last change. Instead, set child status to
4075 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
4076 sys_select will wakeup the reader thread.
4077 (_sys_wait_accept): New function used by reader thread to wait for
4078 an incoming connection on a server socket.
4079
4080 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
4081
4082 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
4083 server socket (FILE_LISTEN flag).
4084
dcc88121
JD
40852006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4086
4087 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
4088
8a8476f9
KS
40892006-07-14 Kim F. Storm <storm@cua.dk>
4090
4091 * w32.c: Fix high cpu load for server sockets.
4092 (pfn_WSAEventSelect): New function ptr.
4093 (init_winsock): Load it.
f1ca9497 4094 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
8a8476f9
KS
4095 char_avail event object to FD_ACCEPT.
4096 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
4097 socket's char_avail event object to FD_READ|FD_CLOSE.
4098
4099 * w32.h (FILE_LISTEN): New filedesc flag value.
4100
f3500bbe
KS
41012006-07-13 Kim F. Storm <storm@cua.dk>
4102
4103 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
4104 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
4105 Simplify loops and use CAR for Bnth and Belt.
4106
4107 * data.c (Findirect_function): Optimize for no indirection.
4108
4109 * eval.c (Fthrow): Remove loop around Fsignal.
4110 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
4111 Use original function name in all signaled errors.
4112 Simplify Fsignal calls (no return).
4113 (funcall_lambda): Simplify Fsignal calls (no return).
4114
60c86a83
AS
41152006-07-13 Andreas Schwab <schwab@suse.de>
4116
4117 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
4118 out_charpos.
4119
d40ec4a0
KH
41202006-07-13 Kenichi Handa <handa@m17n.org>
4121
4122 * editfns.c (Fformat): Fix calculation of text property positions
4123 of format string.
4124
b8a6aaa7
KS
41252006-07-12 Kim F. Storm <storm@cua.dk>
4126
4127 * lisp.h (CHECK_TYPE): New macro for generic type checking.
4128 (CAR_SAFE, CDR_SAFE): New macros.
4129 (ARRAYP, CHECK_ARRAY): New macros.
4130 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
4131 (CHECK_WINDOW_CONFIGURATION): New macro.
4132 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
4133 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
4134 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
4135 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
4136 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
4137 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
4138 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
4139 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
4140
4141 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
4142 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
4143
4144 * callint.c (Fcall_interactively):
4145 * casefiddle.c (casify_object):
4146 * editfns.c (general_insert_function):
4147 * fns.c (Flength, Felt, Ffillarray):
4148 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
4149
4150 * data.c (wrong_type_argument): Remove loop around Fsignal.
4151 (Farrayp, Fsequencep): Use ARRAYP.
4152 (Fcar): Use CAR.
4153 (Fcar_safe): Use CAR_SAFE.
4154 (Fcdr): Use CDR.
4155 (Fcdr_safe): Use CDR_SAFE.
4156 (Fsetcar, Fsetcdr): Use CHECK_CONS.
4157 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
4158 (Faset): Use CHECK_ARRAY.
4159
4160 * fns.c (Felt): Use CHECK_ARRAY.
4161 (concat): Use CHECK_NUMBER.
4162 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
4163 (Fmemq): Use CHECK_LIST.
4164 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
4165 (assq_no_quit): Use CAR_SAFE.
4166 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
4167 Use CHECK_LIST_CONS.
4168 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
4169
4170 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
4171
4172 * casetab.c (check_case_table):
4173 * category.c (check_category_table):
4174 * marker.c (Fcopy_marker):
4175 * syntax.c (check_syntax_table):
4176 * xfaces.c (load_pixmap): Use CHECK_TYPE.
4177
4178 * fns.c (Fcopy_sequence, concat):
4179 * fringe.c (Fdefine_fringe_bitmap):
4180 * lread.c (check_obarray): Cleanup wrong_type_argument use.
4181
e55deb0b
KS
4182 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
4183
b8a6aaa7
KS
4184 * keymap.c (Fdefine_key, Flookup_key):
4185 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
4186
4187 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
4188
4189 * search.c (Fset_match_data): Use CHECK_LIST.
4190
4191 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
4192
4193 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
4194 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
4195
099d4201
YM
41962006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4197
4198 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
4199
4200 * dired.c: Include blockinput.h.
4201 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
4202
4203 * editfns.c: Include blockinput.h.
4204 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
4205 getpwuid/getpwnam.
4206
4207 * fileio.c: Include blockinput.h.
4208 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
4209 around getpwnam.
4210 (search_embedded_absfilename): Remove spurious xfree.
4211
2e42ee7b
KS
42122006-07-11 Kim F. Storm <storm@cua.dk>
4213
4214 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
4215 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
4216 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
8e09f23f 4217 Signal error if TIMEOUT is not a number.
2e42ee7b
KS
4218 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
4219 The rework of sit_for args also fixes several incorrect Qt args
4220 which should have been 1.
4221 (Fredisplay): Pass 1 instead of Qt to swallow_events and
4222 detect_input_pending_run_timers.
4223
4224 * lisp.h (sit_for): Update prototype.
4225 (Fredisplay): Add EXFUN.
4226
4227 * dispextern.h (sit_for): Remove prototype.
4228
4229 * callint.c (Fcall_interactively):
4230 * minibuf.c (temp_echo_area_glyphs):
4231 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
4232 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
4233
a0aa7fcf
SM
42342006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
4235
4236 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
4237
ff97f952
KS
42382006-07-11 Kim F. Storm <storm@cua.dk>
4239
68ade564 4240 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
ff97f952
KS
4241 input is available. Fix test for redisplay_dont_pause non-nil.
4242 Specbind redisplay-dont-pause to t if FORCE non-nil.
4243
7ba07a1a
CY
42442006-07-10 Chong Yidong <cyd@stupidchicken.com>
4245
4246 * puresize.h (BASE_PURESIZE): Increment to 1211000.
4247
4248 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
4249 (Fsit_for): Function deleted.
4250
a0aa7fcf
SM
4251 * keyboard.c (command_loop_1, Fexecute_extended_command):
4252 Call sit_for instead of Fsit_for.
7ba07a1a
CY
4253
4254 * minibuf.c (temp_echo_area_glyphs): Likewise.
4255
2312c580
SM
42562006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4257
4258 * syntax.c (Fforward_comment): Revert the reversion.
932e6895 4259 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
2312c580 4260
bf88ca63
JPW
42612006-07-09 John Paul Wallington <jpw@pobox.com>
4262
4263 * syntax.c (Fforward_comment): Revert previous change.
4264
08b17d37
KS
42652006-07-09 Kim F. Storm <storm@cua.dk>
4266
4267 * window.c (Fforce_window_update): Doc fix.
4268
26816cbf
SG
42692006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
4270
4271 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
4272 directory unreadable for better user privacy.
4273
4332cf50
SM
42742006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
4275
dd9f0dcd
SM
4276 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
4277
4332cf50
SM
4278 * lread.c (read_filtered_event): Remove `register' qualifier because it
4279 causes compilation problem with gcc-4.0.2-20051125 on amd64.
91fe9496
SM
4280 (readevalloop): Remove unused var `bpos'.
4281 Yet another int/Lisp_Object mixup (YAILOM).
4332cf50 4282
dfb4bff5
EZ
42832006-07-07 Eli Zaretskii <eliz@gnu.org>
4284
4285 * keyboard.c (Fexecute_extended_command): Mention the argument
4286 PREFIXARG in the doc string.
4287
efaed3b0
KS
42882006-07-07 Kim F. Storm <storm@cua.dk>
4289
4290 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4291
e2e6e4d2
CY
42922006-07-05 Chong Yidong <cyd@stupidchicken.com>
4293
234fb773
CY
4294 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
4295 clash detection using the base buffer.
4296
e2e6e4d2
CY
4297 * puresize.h (BASE_PURESIZE): Increment to 1210500.
4298
e128be55
KS
42992006-07-04 Kim F. Storm <storm@cua.dk>
4300
4301 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
4302
2462bc66
KH
43032006-07-04 Kenichi Handa <handa@m17n.org>
4304
4305 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
4306 to update Voverriding_fontspec_alist.
4307
9ca24617
RS
43082006-07-03 Richard Stallman <rms@gnu.org>
4309
4310 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
4311
4312 * xfaces.c (Fface_attribute_relative_p): Doc fix.
4313
4314 * textprop.c (Fget_char_property_and_overlay): Doc fix.
4315
4316 * eval.c (Fdefvaralias): Doc fix.
4317
d8ab3c6d
KS
43182006-07-03 Kim F. Storm <storm@cua.dk>
4319
4320 * dispnew.c (sit_for): Fix preempt condition.
4321
ca77ee45
SM
43222006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
4323
4324 * lread.c (read_filtered_event): Treat select-window just like
4325 switch-frame.
4326
8cb72de5
KS
43272006-07-02 Kim F. Storm <storm@cua.dk>
4328
4329 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
4330 to ever fit the tool-bar,
4331 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
4332 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
4333 (redisplay_tool_bar): Only clear desired matrix if we actually
4334 change the tool-bar window height. Only try to make the tool-bar
4335 window bigger if there is actually room for it.
4336
6407e67c
EZ
43372006-06-30 Ralf Angeli <angeli@caeruleus.net>
4338
4339 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
4340 SPI_GETWORKAREA to find the dimensions of the screen work area,
4341 and adjust vertical position of the frame in order to avoid being
4342 covered by the task bar.
4343
4344 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
4345 f->left_pos and SH_SHOW instead of f->top_pos in the call to
4346 CreateWindow. Record the actual position in f->left_pos and
4347 f->top_pos.
4348
639804b3
JPW
43492006-06-30 John Paul Wallington <jpw@pobox.com>
4350
4351 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
4352 Doc fix - default value has changed.
4353
3ff05183
YM
43542006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4355
4356 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
4357
4358 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
4359
4360 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
4361
4362 * macterm.c (Qeql): Add extern.
4363 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
4364 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
4365 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
4366 Change keys of Vmac_atsu_font_table from strings to numbers.
4367 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
4368 (init_font_name_table) [USE_ATSUI]: Use it.
4369 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
4370 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
4371 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
4372 only when saved_ts_script_language_on_focus coincides with
4373 Vmac_ts_script_language_on_focus.
4374 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
4375 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
4376 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
4377 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
4378
df8ffa05
CY
43792006-06-27 Chong Yidong <cyd@stupidchicken.com>
4380
4381 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
4382 (Ffield_string_no_properties, Ffield_end): Mention
4383 args-out-of-range error condition in docstring.
4384
04405ad9
KS
43852006-06-27 Kim F. Storm <storm@cua.dk>
4386
4387 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
4388
f8e83735
KS
43892006-06-25 Kim F. Storm <storm@cua.dk>
4390
4391 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
4392 version 2.4 and later.
4393
86b2ba0d
CY
43942006-06-24 Chong Yidong <cyd@stupidchicken.com>
4395
4396 * xfns.c (Fx_create_frame): Set font parameter directly instead of
4397 using x_default_parameter, since x_get_args clears the parm alist.
4398
eff6bfea
EZ
43992006-06-24 Eli Zaretskii <eliz@gnu.org>
4400
4401 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
4402 case-insensitively.
4403
d9034473
EZ
44042006-06-24 Aidan Kehoe <kehoea@parhasard.net>
4405
4406 * lread.c (read_escape): When an unknown Unicode code point is
4407 encountered as a string or character escape, signal an error.
4408
8800bd5c
KS
44092006-06-23 Kim F. Storm <storm@cua.dk>
4410
31005921
KS
4411 * .gdbinit (pitx): Dump iterator stack.
4412
8800bd5c
KS
4413 * xdisp.c (handle_composition_prop): Push iterator on stack.
4414 (set_iterator_to_next): Pop iterator at end of composition.
4415
28fa06ea
EZ
44162006-06-23 Martin Rudalics <rudalics@gmx.at>
4417
4418 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
4419 itself on DOS_NT platforms, if the old and new names are identical
4420 but for the letter-case.
4421
43a37241
KS
44222006-06-21 Kim F. Storm <storm@cua.dk>
4423
4424 * dispextern.h (struct it): Add `position' member to iterator stack.
4425 Rename `pos' member to `current'. Rearrange and add comments.
4426
4427 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
4428 if we get any overlays.
4429 (set_cursor_from_row): Don't clobber `end' if we rescan from
4430 start_string.
4431 (push_it, pop_it): Save it->position.
4432
a5bd14d3
RS
44332006-06-19 Richard Stallman <rms@gnu.org>
4434
4435 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
4436 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
4437 for the case of a top-level window and the following minibuffer.
4438 Don't exit because of no `next' when there is a parent.
4439 Use the FIRST_ONLY feature when resizing following windows.
eb85ecac 4440
a5bd14d3
RS
4441 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
4442
a3efc408
KS
44432006-06-17 Kim F. Storm <storm@cua.dk>
4444
4445 * dispnew.c (update_frame): Check for input pending on entry.
4446 (update_window, update_frame_1): Break loop if input is detected.
4447
d692a3d5
JD
44482006-06-16 Francis Litterio <flitterio@gmail.com>
4449
4450 * xterm.c (x_check_expected_move, handle_one_xevent)
4451 (x_set_offset, x_check_fullscreen): Extensive changes to make
4452 frame positioning deterministic under X.
4453
b70e1a2b 4454 * xterm.h (x_output): Add members left_before_move and
d692a3d5
JD
4455 top_before_move. Removed members expected_left and expected_top.
4456
df05d913
KS
44572006-06-16 Kim F. Storm <storm@cua.dk>
4458
626c7c71
KS
4459 * dispextern.h (struct it): Add union to iterator stack to save
4460 image, composition, and stretch specific paramters.
4461
4462 * xdisp.c (next_overlay_string): Fix assert.
4463 (push_it, pop_it): Handle composition and stretch specific values.
4464 Only handle it->slice in image (for now).
4465 (back_to_previous_visible_line_start): Continue search if newline is
4466 part of a compisition. Simplify.
4467 (reseat_1): Set it->object to buffer.
4468 (set_iterator_to_next): Set it->object to string or buffer, when
4469 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
4470 (next_element_from_composition): Set it->object to buffer if not
4471 from string.
4472 (set_cursor_from_row): Only save start of string if not already
4473 done to handle multiple strings in a row.
4474
df05d913
KS
4475 * .gdbinit (pitx): Show composition parameters.
4476 (pgx, pg): New commands to print a glyph structure.
4477 (pgi, pgn): New commands to print specific/next glyph.
4478 (pgrowx, pgrow): New commands to print all glyphs in a row.
4479
aa2f234a
YM
44802006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4481
4482 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
4483 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
4484
4485 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
4486 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
4487 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
4488 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
4489 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4490 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
4491 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
4492 Services functions to get size of main display in pixels.
4493
633e63ca
CY
44942006-06-14 Chong Yidong <cyd@stupidchicken.com>
4495
d0f891a7
SM
4496 * xdisp.c (back_to_previous_visible_line_start):
4497 Reset it->continuation_lines_width.
633e63ca 4498
cac9d766
RS
44992006-06-14 Richard Stallman <rms@gnu.org>
4500
4501 * eval.c (Fdefconst): Mark variable as risky.
4502
4503 * callproc.c (Fcall_process): Doc fix.
4504
4505 * window.c (adjust_window_trailing_edge): Don't break out of the loop
4506 because there's no next window, if there are parallel windows.
4507 Do break out when WINDOW is nil.
df05d913 4508
bae1ed29
KS
45092006-06-14 Kim F. Storm <storm@cua.dk>
4510
1bb32610
KS
4511 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
4512 iterator stack (instead of hardcoded number). Increase from 2 to
4513 4 to make room for propertized overlay strings before and after a
4514 display string, image or composition.
4515 (struct it): Add image_id and method members to iterator stack.
4516
4517 * xdisp.c (init_from_display_pos): Don't set it->method and
4518 overlay_string_index after pop_it. Add asserts.
4519 (handle_stop): Look for overlay strings around a display string,
4520 image, or composition. Handle properties on those strings.
4521 (next_overlay_string): Don't set string, pos or method after pop_it.
4522 (get_overlay_strings_1): Split from get_overlay_strings; don't
4523 modify it if no overlay strings are found.
4524 (get_overlay_strings): Use get_overlay_strings_1. Always set
4525 it->string and it->method.
4526 (push_it): Push it->image_id and it->method. Push it->object
4527 instead of it->string if method is GET_FROM_IMAGE.
4528 (pop_it): Pop it->image_id and it->method. Ppo it->object
4529 instead of it->string if method is GET_FROM_IMAGE.
4530 Reset it->current.string_pos if popped it->string is nil.
4531 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
4532 whether a given change was correct; but the change is correct.
4533 Clear it->string_from_display_prop_p.
4534 (set_iterator_to_next): Rely on it->method and it->image_id from
4535 iterator stack, instead of setting them explicitly after pop_it.
4536
bae1ed29
KS
4537 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
4538 negative time forces redisplay even when input is available.
4539 (Fsit_for): Doc fix.
4540
8eb2b87f
KS
45412006-06-13 Kim F. Storm <storm@cua.dk>
4542
4543 * dispnew.c: Modify preemptive redisplay to be based on periodic
4544 checks for input.
4545 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
4546 (Vredisplay_preemption_period): New variable.
4547 (syms_of_display): DEFVAR_LISP and initialize it.
4548 (preemption_period, preemption_next_check): New variables.
4549 (update_frame, update_single_window): Initialize them based on
4550 Vredisplay_preemption_period if !force_p.
4551 (update_window, update_frame_1): Use them to determine when to
4552 check for input.
4553
7cb93181
EZ
45542006-06-03 Aidan Kehoe <kehoea@parhasard.net>
4555
4556 * lread.c (read_escape): Provide a Unicode character escape
4557 syntax; \u followed by exactly four or \U followed by exactly
4558 eight hex digits in a comment or string is read as a Unicode
4559 character with that code point.
4560
cf402f3f
EZ
45612006-06-09 Eli Zaretskii <eliz@gnu.org>
4562
4563 * window.c (window_scroll_pixel_based): Signal "Beginning of
4564 buffer" when scroll-down at the beginning of an empty buffer.
4565
67b5f809
YM
45662006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4567
d0f891a7
SM
4568 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
4569 Exclude 0x7f from ASCII range.
67b5f809 4570
94856834
JR
45712006-06-05 Jason Rumney <jasonr@gnu.org>
4572
4573 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
4574 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
4575 (x_scroll_bar_report_motion): Remove workarounds for
4576 versions of Windows NT < 3.51.
4577 [!SIF_ALL]: Remove.
4578 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
4579 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
4580
d495ccfc
DK
45812006-06-04 David Kastrup <dak@gnu.org>
4582
ca21600d
JB
4583 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
4584 `sit-for'.
d495ccfc 4585
fabcf455
YM
45862006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4587
4588 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
4589
4590 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
4591
4592 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
4593 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
4594 [USE_MAC_TSM]: Likewise.
4595 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
4596 (Qbefore_string) [USE_MAC_TSM]: Add extern.
ca21600d
JB
4597 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
4598 ActivateTSMDocument/DeactivateTSMDocument.
fabcf455 4599 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
ca21600d
JB
4600 (mac_handle_window_event) [USE_MAC_TSM]: Handle
4601 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
fabcf455
YM
4602 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
4603 (install_window_handler) [USE_MAC_TSM]: Install it. Register
4604 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
4605 (keycode_to_xkeysym_table): Add entry for f16.
4606 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
4607 before/after passing keystroke event to toolbox dispatcher.
4608 (init_tsm) [USE_MAC_TSM]: New function.
4609 (mac_initialize) [USE_MAC_TSM]: Call it.
4610 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
4611
4612 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
4613
4985dde2
JPW
46142006-06-02 John Paul Wallington <jpw@gnu.org>
4615
4616 * xfns.c (x_set_name_internal): Set icon to `text', derived from
4617 name, when frame's icon_name isn't a string rather than only when
4618 it is nil.
4619
3f65d6f5
EZ
46202006-06-03 Eli Zaretskii <eliz@gnu.org>
4621
4622 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
4623 and not nil.
4624
56f41f98
CY
46252006-06-02 Chong Yidong <cyd@stupidchicken.com>
4626
ca21600d
JB
4627 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
4628 string.
56f41f98 4629
70a4cae4
YM
46302006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4631
4632 * xdisp.c (next_element_from_composition): Set it->object to
4633 it->string if composition is coming from string.
4634 (set_cursor_from_row): Don't return 0 unless row displays a
4635 continued line.
4636 (dump_glyph): Dump composite glyph.
06c7827a 4637
8b2b00f5
JD
46382006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4639
4640 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
4641
963128f3
RS
46422006-06-01 Richard Stallman <rms@gnu.org>
4643
4644 * window.c (Fsplit_window): Doc fix.
4645
24a71bb1
KS
46462006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4647
4648 * process.c (deleted_pid_list): New variable to store the pids
4649 of deleted processes. Declare it only if SIGCHLD is defined.
4650 (init_process): Initialize it.
4651 (syms_of_process): Staticpro it.
4652 (Fdelete_process): Add pid of the deleted process to it. Check after
4653 the addition and before the kill if the process is already stopped,
4654 in which case it is deleted from the list and not killed.
4655 (sigchld_handler): Define it only if SIGCHLD is. Search the process
4656 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
4657 Original idea by Stefan Monnier.
4658
a71a7704
KS
46592006-06-01 Kim F. Storm <storm@cua.dk>
4660
4661 * dispnew.c (sit_for): Perform redisplay even if input is pending
4662 when redisplay-dont-pause is non-nil.
4663
36f0107c
YM
46642006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4665
4666 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
4667 (XTread_socket): Remove obsolete comment.
4668
2e92a7cb
JD
46692006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4670
4671 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
4672 menu-bar-open.
4673
c9467aaa
JD
46742006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4675
4676 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
4677 menu-bar-open.
4678
4679 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
4680
82db8fa7
JL
46812006-05-31 Juri Linkov <juri@jurta.org>
4682
4683 * minibuf.c (Vhistory_add_new_input): New variable.
4684 (read_minibuf): Use it.
4685 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
4686 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
4687
360fecca
KS
46882006-05-31 Kim F. Storm <storm@cua.dk>
4689
4690 * process.c (select_wrapper): Add wrapper around select to work around
4691 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
4692 select called from wait_reading_process_output.
4693
303e108c
AS
46942006-05-30 Andreas Schwab <schwab@suse.de>
4695
4696 * xmenu.c (Fmenu_bar_start): Return a value.
4697
d9e8091d
RS
46982006-05-30 Richard Stallman <rms@gnu.org>
4699
4700 * coding.c (Ffind_operation_coding_system): Doc fix.
4701
7c42b3e0
EZ
47022006-05-30 Eli Zaretskii <eliz@gnu.org>
4703
4704 * w32term.c (x_draw_hollow_cursor): Fix last change.
4705
73af0716
KS
47062006-05-29 Kim F. Storm <storm@cua.dk>
4707
4708 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
4709
47102006-05-29 Eli Zaretskii <eliz@gnu.org>
a952cebe
EZ
4711
4712 * coding.c (Ffind_operation_coding_system): Doc fix.
4713
ffd71266
YM
47142006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4715
4716 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
4717 Call mac_set_font_info_for_selection if font panel is made visible.
4718
4719 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
4720 (mac_font_panel_visible_p, mac_show_hide_font_panel)
4721 [USE_MAC_FONT_PANEL]: New functions.
523fc433
JB
4722 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
4723 Return immediately if font panel is not visible.
ffd71266
YM
4724
4725 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
4726 Add externs.
4727
01d09305
DN
47282006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
4729
4730 * search.c (matcher_overflow): Mark as NO_RETURN.
4731
4732 * xterm.c (x_connection_closed): Likewise.
4733
4734 * sysdep.c (croak): Likewise.
4735
4736 * sound.c (sound_perror, alsa_sound_perror): Likewise.
4737
4738 * lisp.h (die, nsberror): Likewise.
4739
c1c032a3
JD
47402006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4741
523fc433
JB
4742 * sound.c (alsa_open, alsa_configure, alsa_write):
4743 Move assignment to err out of if-statement.
3fc7a865 4744
c1c032a3 4745 * gtkutil.c (menu_nav_ended): New function.
ca21600d
JB
4746 (create_menus): Connect menu_nav_ended to "selection-done" to fix
4747 grabs.
c1c032a3
JD
4748
4749 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
4750
345b3483
DN
47512006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
4752
4753 * charset.h (invalid_character): Mark as NO_RETURN.
4754
7311509e
KH
47552006-05-29 Kenichi Handa <handa@m17n.org>
4756
4757 * coding.c (Ffind_operation_coding_system): Call a function by
4758 safe_call1 instead of call1.
4759
6ad0381c
SM
47602006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4761
4762 * window.c (struct saved_window): Add `dedicated'.
4763 (Fset_window_configuration, save_window_save): Save/restore the
4764 `dedicated' flag.
4765
794033ae
KS
47662006-05-28 Kim F. Storm <storm@cua.dk>
4767
4768 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
4769 don't update w->cursor and return 0. Return 1 on success.
4770 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
4771 until it succeeds.
4772
4773 * dispextern.h (set_cursor_from_row): Update prototype.
4774
26837cd3
KS
47752006-05-28 Kim F. Storm <storm@cua.dk>
4776
4777 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
4778 parameters. Adjust x and width in case cursor in on a partially
4779 visible stretch glyph on the left edge.
4780 (erase_phys_cursor): Don't erase into left fringe/margin in case
4781 previous cursor glyph is a partially visible stretch glyph on left.
4782
4783 * dispextern.h (get_phys_cursor_geometry): Update prototype.
4784
4785 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
4786 cursor and erasing cursor on partially visible stretch glyph on left.
4787 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
4788
4789 * macterm.c: Likewise.
4790
4791 * w32term.c: Likewise.
4792
412f3f18
YM
47932006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4794
6ad0381c
SM
4795 * macselect.c (mac_handle_apple_event):
4796 Return errAEEventNotHandled if key binding is not found.
412f3f18 4797
0f7078f0
EZ
47982006-05-26 Eli Zaretskii <eliz@gnu.org>
4799
4800 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
4801 [__MINGW32__]: MinGW-specific declaration of `etext'.
4802
4803 * w32heap.c (etext, edata): Remove unused definitions.
4804
795c20df
CY
48052006-05-26 Chong Yidong <cyd@stupidchicken.com>
4806
6ad0381c
SM
4807 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
4808 Incorporate the exclusive file-opening functionality into the behavior
4809 when OK-IF-ALREADY-EXISTS is nil.
795c20df
CY
4810 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
4811
07a7837c
JD
48122006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4813
4814 * sound.c (alsa_configure): Move get period/buffer_size after
4815 setting hwparams.
4816
f1c582b4
KH
48172006-05-26 Kenichi Handa <handa@m17n.org>
4818
4819 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
4820 . BUFFER) in TARGET.
4821
3165e450
CY
48222006-05-25 Chong Yidong <cyd@stupidchicken.com>
4823
4824 * image.c (png_load): Don't call fclose on NULL.
4825
d579f53b
LT
48262006-05-25 Luc Teirlinck <teirllm@auburn.edu>
4827
4828 * fns.c (Fyes_or_no_p):
4829 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
4830 only seven args.
4831
abeb5483
JL
48322006-05-25 Juri Linkov <juri@jurta.org>
4833
4834 * lisp.h (Fread_from_minibuffer): Decrement number of args.
4835
4836 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
4837 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
4838
4839 * buffer.c (mode-line-format): Fix docstring.
4840
403a7bca
RS
48412006-05-25 Richard Stallman <rms@gnu.org>
4842
4843 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
4844
24b0232f
LT
48452006-05-24 Luc Teirlinck <teirllm@auburn.edu>
4846
4847 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4848
ac9f37df
AM
48492006-05-24 Alan Mackenzie <acm@muc.de>
4850
4851 * lread.c (Vload_history): Enhance doc-string to say that the file
4852 is the absolute truename of the loaded file.
4853
4854 * lread.c (Vafter_load_alist): doc-string: state that an element
4855 now has a regexp to match file names, not a file name as such.
4856
4857 * lread.c (readevalloop): Call file-truename on the name for
4858 load-history, except at preloading time.
4859
4860 * lread.c (Fload): At preloading time, preserve the extension of
6ad0381c 4861 the filename which goes into load-history. New var hist_file_name.
ac9f37df
AM
4862
4863 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
4864 function do-after-load-evaluation.
4865
e4dff88d
YM
48662006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4867
4868 * mac.c (ae_attr_table): New variable.
4869 (syms_of_mac): Intern and staticpro its elements.
4870 (mac_aelist_to_lisp): Also convert Apple event attributes.
4871 (mac_ae_put_lisp): New function.
4872 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
4873
4874 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
4875
4876 * macselect.c (Qemacs_suspension_id): New variable.
4877 (syms_of_macselect): Intern and staticpro it.
4878 (struct suspended_ae_info): New struct.
4879 (deferred_apple_events, defer_apple_events)
4880 (Fmac_process_deferred_apple_events): Use it.
4881 (suspended_apple_events): New variable.
4882 (mac_handle_apple_event_1): New function.
4883 (mac_handle_apple_event): Use it. Don't process previously
4884 suspended events.
412f3f18 4885 (cleanup_suspended_apple_events, get_suspension_id)
e4dff88d
YM
4886 (cleanup_all_suspended_apple_events): New functions.
4887 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
4888 at exit.
4889 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
4890 (Fmac_resume_apple_event): New defuns.
4891 (syms_of_macselect): Defsubr them.
4892
4893 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
4894 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
4895
4896 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
4897 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
4898 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
4899 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4900 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4901 Likewise.
4902 (typeUTF8Text, kEventParamWindowMouseLocation)
4903 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
4904 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
4905
b8c6940e
YM
49062006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4907
4908 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
4909 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
4910 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
4911 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
4912 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
4913 resource to backtranslate key with modifiers.
4914 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
4915
0277e36c
JD
49162006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4917
4918 * xterm.c: Remove declarations already in xterm.h
4919
4920 * xterm.h: Add extern declarations for x_clear_errors,
26837cd3 4921 x_fully_uncatch_errors, x_catching_errors and
0277e36c
JD
4922 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
4923
63af6055
RS
49242006-05-21 Richard Stallman <rms@gnu.org>
4925
55815819
RS
4926 * xfaces.c (best_matching_font): Abort for best == NULL
4927 before we start to use it.
4928
63af6055
RS
4929 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
4930
5748161e
KS
49312006-05-20 Kim F. Storm <storm@cua.dk>
4932
4933 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
4934
431225c6
YM
49352006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4936
4937 * macterm.c (convert_fn_keycode): Fix last change.
4938
e00b99c8
EZ
49392006-05-19 Eli Zaretskii <eliz@gnu.org>
4940
4941 * w32.c (init_environment): Perform the processing of environment
4942 variables on a copy of default variables and their values, not on
75e3b957
EZ
4943 the original. Simplify code that calls ExpandEnvironmentStrings
4944 and make buf1[] and buf2[] more visible for easier debugging.
e00b99c8 4945
689840b9
YM
49462006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4947
4948 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
4949
4950 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
4951
4952 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
4953
4954 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
4955 Forward keyUp events to toolbox_dispatcher.
4956
4957 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
4958
a940e2c6
JD
49592006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4960
4961 * config.in: Regenerated (HAVE_ALSA).
4962
4963 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
4964 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
4965 (snd_error_quiet, alsa_init): New functions.
4966 (vox_init): Return 0 if unable to open device.
4967 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
4968 a fallback.
4969 (struct sound_device): Add period_size.
4970 (wav_play, au_play): Use period_size if set.
4971
14a56a1b
JB
4972 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
4973 (ALL_CFLAGS): Add CFLAGS_SOUND.
a940e2c6 4974
8acb7dad
KH
49752006-05-18 Kenichi Handa <handa@m17n.org>
4976
4977 * callproc.c (Fcall_process): Reject encoding arguments by
4978 ascii-incompatible coding systems (e.g. utf-16).
4979
4980 * coding.c (Qascii_incompatible): New variable.
4981 (syms_of_coding): Setup Qascii_incompatible.
4982 (setup_coding_system): Be sure to initialize coding->common_flags.
4983 Check `ascii-incompatible' property of the coding system.
4984
4985 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
4986
f5ecbcee
KS
49872006-05-18 Kim F. Storm <storm@cua.dk>
4988
647b07d1
AS
4989 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
4990 geometry when backtracking in case last image doesn't fit on line.
f5ecbcee 4991
856bb2b0 49922006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
f5ecbcee 4993
647b07d1
AS
4994 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
4995 more than height of one frame default line.
f5ecbcee 4996
5748161e
KS
49972006-05-17 Richard Stallman <rms@gnu.org>
4998
4999 * xfaces.c (better_font_p): Any font beats no font.
5000 (best_matching_font): Simplify based on above change.
26837cd3 5001
6f5c4cc9 5002 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
5748161e 5003
b3abe3a5
KS
50042006-05-16 Kim F. Storm <storm@cua.dk>
5005
5006 * xterm.c (handle_one_xevent): Check that f is not NULL before
5007 calling x_kill_gs_process.
5008
46a2df8e
RS
50092006-05-14 Richard Stallman <rms@gnu.org>
5010
5011 * textprop.c (Fnext_single_char_property_change)
5012 (Fprevious_single_char_property_change): Don't allow returning
5013 value beyond LIMIT in any cases.
5014 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
b3abe3a5 5015
46a2df8e
RS
5016 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
5017
79fb0ab7
JD
50182006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5019
5020 * xterm.c (handle_one_xevent): Check that f is not NULL before
5021 calling _XEditResCheckMessages.
5022
0f479f06
KS
50232006-05-14 Kim F. Storm <storm@cua.dk>
5024
5025 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
5026
642c61f3
EZ
50272006-05-13 Eli Zaretskii <eliz@gnu.org>
5028
dac85f4b
EZ
5029 * frame.c (x_set_border_width): Fix error message to say "frame",
5030 not "window".
5031
642c61f3
EZ
5032 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
5033
4e8f005c
CY
50342006-05-12 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * intervals.c (set_point_both): Fix mixup before before and after
5037 in variable names.
5038
5039 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
5040 while setting point temporarily.
5041
1ed7b9ae
RS
50422006-05-11 Richard Stallman <rms@gnu.org>
5043
5044 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
5045
f46f3e21
KS
50462006-05-11 Kim F. Storm <storm@cua.dk>
5047
5048 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
5049
17ad716a
KH
50502006-05-11 Kenichi Handa <handa@m17n.org>
5051
5052 * fileio.c (Finsert_file_contents): Fix for the case of IO error
5053 while handling replace operation.
5054
4da9c136
KH
50552006-05-10 Kenichi Handa <handa@m17n.org>
5056
5057 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
5058 chosen for the default face was different from the frame font,
5059 adjust the frame font.
5060
dec94049
YM
50612006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5062
5063 * image.c (Qduration) [MAC_OS]: Undo previous change.
5064 (syms_of_image) [MAC_OS]: Likewise.
5065 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
5066
5067 * macfns.c (x_to_mac_color): Fix shift amount change.
b8c6940e 5068 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
dec94049
YM
5069 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
5070
5071 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
5072 Vmac_services_selection. All uses changed.
5073 (mac_store_service_event): Rename from mac_store_services_event in
5074 extern and calls.
5075
ca21600d
JB
5076 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
5077 changed.
dec94049
YM
5078 [MAC_OSX] (mac_store_service_event): Rename from
5079 mac_store_services_event. All callers changed.
5080 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
5081 FACE_ID and C. All callers changed.
ca21600d
JB
5082 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
5083 mac_set_font_info_for_selection when focus frame is destroyed.
dec94049
YM
5084 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
5085
5086 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
5087 args in extern.
5088
d3ee989e
CY
50892006-05-09 Chong Yidong <cyd@stupidchicken.com>
5090
5091 * keymap.c (describe_map): Avoid generating duplicate entries if
5092 the shadowed binding has the same definition.
5093
5f2c7b2a
KH
50942006-05-09 Kenichi Handa <handa@m17n.org>
5095
5096 * keymap.c (push_key_description): Handle invalid character key.
5097
76a25e79
KH
50982006-05-08 Kenichi Handa <handa@m17n.org>
5099
5100 * callproc.c (Fcall_process): Use system_eol_type for encoding
5101 arguments if eol_type is not yet decided.
5102
5103 * coding.h (system_eol_type): Extern it.
5104
5105 * coding.c (setup_coding_system): For invalid coding-system, set
5106 coding->eol_type to CODING_EOL_UNDECIDED.
5107 (encode_coding): Cancel previous change.
5108 (shrink_encoding_region): Likewise.
5109 (code_convert_region1): Likewise.
5110 (code_convert_string1): Likewise.
5111 (code_convert_string_norecord): Likewise.
5112
5113 * fileio.c (choose_write_coding_system): Use system_eol_type for
5114 encoding if eol_type is not yet decided.
5115
5116 * process.c (setup_process_coding_systems): Use system_eol_type
5117 for encoding if eol_type is not yet decided.
5118 (read_process_output): Likewise.
5119 (send_process): Likewise.
5120
f4b46bb9
JB
51212006-05-07 Juanma Barranquero <lekktu@gmail.com>
5122
5123 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
5124
cc9945f2
YM
51252006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5126
5127 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
5128 (syms_of_mac): Likewise for defsubr.
5129
5130 * macfns.c (mac_set_font): New function.
5131 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
5132 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
5133 kWindowToolbarButtonAttribute when creating window.
5134 (Fmac_clear_font_name_table): Move from macfns.c.
5135 (syms_of_macfns): Likewise for defsubr.
5136 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
5137 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
5138
5139 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
5140 and build is done on Mac OS X 10.2 and later.
5141
5142 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
5143 (mac_store_services_event): Change return type in extern.
5144
dec94049
YM
5145 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
5146 FMFontFamily value.
cc9945f2
YM
5147 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
5148 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
5149 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
5150 (QWindow) [MAC_OSX]: Likewise.
5151 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
5152 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
5153 (syms_of_macterm) [USE_ATSUI]: Defvar it.
5154 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
5155 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
5156 (syms_of_macterm): Intern and staticpro them.
dec94049 5157 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
523fc433
JB
5158 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
5159 New function.
cc9945f2
YM
5160 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
5161 [MAC_OSX] (mac_store_services_event): Likewise.
5162 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
5163 kEventWindowToolbarSwitchMode event.
5164 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
5165 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
5166 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
5167 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
5168 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
5169
5170 * macterm.h (mac_set_font_info_for_selection): Add extern.
5171
41f7a85e
YM
51722006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5173
5174 * image.c (Qduration) [MAC_OS]: New variable.
5175 (syms_of_image) [MAC_OS]: Intern and staticpro it.
5176 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
5177 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
5178 instead of cfstring_create_with_string.
5179
a1dfdf24
KS
51802006-05-06 Kim F. Storm <storm@cua.dk>
5181
5182 * .gdbinit (xframe): Print frame name.
5183 (xlist): New command to print a list (max 10 elements).
5184 (xpr): Print lisp object of any type.
5185 (pitx): Print it->pixel_width.
5186
37e21325
KH
51872006-05-05 Kenichi Handa <handa@m17n.org>
5188
5189 * xdisp.c (handle_composition_prop): Fix for the case of empty
5190 composition component.
5191
ef0154b5
YM
51922006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5193
5194 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
5195 from event->arg.
5196
5197 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
5198 MAC_APPLE_EVENT.
5199
5200 * macterm.h (mac_make_lispy_event_code): Remove extern.
5201 (mac_post_mouse_moved_event): Add extern.
5202 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
5203 `const AEDesc *' in externs.
5204 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
5205
5206 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
5207 `const AEDesc *'.
5208 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
5209 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
5210 Use xrealloc instead of repeated xmalloc/xfree.
523fc433
JB
5211 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
5212 New function.
ef0154b5
YM
5213
5214 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
5215
5216 * macselect.c: Update copyright year.
5217 (mac_store_apple_event): Change return type to void in extern.
5218 (mac_handle_apple_event): Don't get return value from
5219 mac_store_apple_event.
5220 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
5221 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
5222 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
5223 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
5224 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
5225 implementation using create_apple_event_from_drag_ref.
5226 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
5227 (mac_do_receive_dragUPP): Move variables from macterm.c.
5228 (install_drag_handler, remove_drag_handler): New functions.
5229
5230 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
5231 path select also for proxy icon click.
5232 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
5233 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
5234 (xlfdpat_create): Remove unused label `error' and trailing sentences.
5235 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
5236 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
5237 macselect.c.
5238 (install_drag_handler, remove_drag_handler): Add extern.
5239 (mac_store_apple_event): Change return type to void. All uses changed.
5240 Create Lisp object from Apple event and store it into input event.
5241 (mac_make_lispy_event_code): Remove function.
5242 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
5243 (install_window_handler): Call install_drag_handler.
5244 (remove_window_handler): Call remove_drag_handler.
5245
8b0ba111
RS
52462006-05-03 Richard Stallman <rms@gnu.org>
5247
e4a9a1cf
RS
5248 * sound.c (Fplay_sound_internal): Dynamically allocate
5249 current_sound_device and current_sound.
5250 (sound_cleanup): Free them.
5251
8b0ba111
RS
5252 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
5253 when inside a keyboard macro.
5254
64ec8b2f
AS
52552006-05-02 Andreas Schwab <schwab@suse.de>
5256
5257 * xmenu.c (restore_menu_items): Return a value.
5258
fcdd4585
SM
52592006-05-01 Martin Rudalics <rudalics@gmx.at>
5260
5261 * syntax.c (Fforward_comment): Detect generic comment at beginning of
5262 buffer when moving backwards.
5263
c1eb34c2
YM
52642006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5265
5266 * dispnew.c (update_window): Don't set changed_p when mode/header
5267 line is updated.
5268
5269 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
fcdd4585
SM
5270 (get_glyph_face_and_encoding, get_char_face_and_encoding):
5271 Don't distinguish known faces from others.
c1eb34c2
YM
5272
5273 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
5274 through typeFileURL failed.
5275
5276 * macfns.c (mac_update_title_bar): New function.
5277 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
fcdd4585
SM
5278 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
5279 Call mac_prepare_for_quickdraw.
c1eb34c2
YM
5280
5281 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
5282 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
5283 (enum pcm_status): New enum.
5284 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
5285 (XCharStructRow): Remove. Now validity is represented by
5286 non-negativeness of sum of ascent and descent.
5287 (struct MacFontStruct): Change type of member `rows'.
5288 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
5289
fcdd4585
SM
5290 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
5291 Adjust endpoints of strictly horizontal/vertical lines.
c1eb34c2
YM
5292 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
5293 (pcm_init, pcm_get_status): New functions.
5294 (x_per_char_metric, XLoadQueryFont): Use them instead of
5295 XCharStructRow and related macros.
5296 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
5297 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
5298 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
5299 and window path pop-up menu on title bar.
5300 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
5301
5302 * macterm.h (mac_update_title_bar): Add extern.
5303 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
5304 (FRAME_FILE_NAME): New macro.
5305
5306 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
5307
9abc5f45
RS
53082006-04-30 Richard Stallman <rms@gnu.org>
5309
5310 * keymap.c (Fdefine_key): Improve error message
5311 when KEY begins with a non-prefix key.
5312
5fed8c15 53132006-04-30 Martin Rudalics <rudalics@gmx.at>
39c41ad4
SM
5314
5315 * syntax.c (Fforward_comment): Don't forget to break out of the loop
5316 when we skipped backward over a generic comment.
5317
4a113e3f
NR
53182006-04-27 Nick Roberts <nickrob@snap.net.nz>
5319
5320 * .gdbinit (pp1, pv1): Only print value as expression is now
5321 printed out by gud-print.
5322 (pv1): Correct doc string.
5323
e89e07cc
SM
53242006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
5325
5326 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
5327 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
5328 keymap.c:895: error: address of register variable `def' requested.
5329
7d6f8c68
JR
53302006-04-26 Jason Rumney <jasonr@gnu.org>
5331
8b03732e
JR
5332 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
5333
7d6f8c68
JR
5334 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
5335 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
5336 where we preempt mouse_button_timer.
5337
51d793da
MB
53382006-04-25 Miles Bader <miles@gnu.org>
5339
5340 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
5341
a9ec7317
SM
53422006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
5343
5344 * process.h: Include headers for pid_t.
5345
e9346494
KS
53462006-04-24 Kim F. Storm <storm@cua.dk>
5347
1ada896b
KS
5348 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
5349 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
6fcd305c 5350 (produce_stretch_glyph): Assume that face box height and width is
5e1a6e32 5351 already included in stretch glyph size so caller doesn't have to
6fcd305c 5352 consider the extra space otherwise added (fixes problem in ses.el).
1ada896b 5353
e9346494
KS
5354 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
5355 matrices to force recalculation of tool-bar height after font change.
5356
5357 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
14922abe
KS
5358 Clear it when done, so we don't accidentally draw a second copy of
5359 the tool-bar after resetting f->n_tool_bar_rows.
e9346494
KS
5360 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
5361 we recalculate f->n_tool_bar_rows.
5362
4f261b99
RF
53632006-04-23 Lars Hansen <larsh@soem.dk>
5364
59062dce
LH
5365 * editfns.c (find_field): Fix comment.
5366 (Ffield_beginning): Fix bug when POS is at field beginning.
5367
3705332d
EZ
53682006-04-22 Eli Zaretskii <eliz@gnu.org>
5369
5370 * puresize.h (BASE_PURESIZE): Increase to 1205000.
5371
cdd2341c
KS
53722006-04-21 Kim F. Storm <storm@cua.dk>
5373
95797ede
KS
5374 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
5375 window start is at BEGV.
5376
cdd2341c
KS
5377 * dispextern.h (struct image): New member `corners'.
5378 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
5379
5380 * image.c (four_corners_best): New arg CORNERS specifies what pixels
5381 to look at in case image has margin.
5382 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
5383 (image_background, image_background_transparent)
5384 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
5385 (gif_load): Set img->corners according to image's margin spec.
5386 Use img->corners values directly where applicable.
5387 Save image extension data in img->data.lisp_val.
5388 (gif_clear_image): New function to free img->data.lisp_val.
5389 (gif_type): Use it instead of generic x_clear_image.
5390 (Fimage_extension_data): New defun.
5391 (syms_of_image): Defsubr it.
5392
72ffd9d0
EZ
53932006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
5394
5395 * window.c (Fdisplay_buffer): Doc fix.
5396
0d95f6b2
EZ
53972006-04-21 Eli Zaretskii <eliz@gnu.org>
5398
5399 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
5400
a0c62ca2
YM
54012006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5402
5403 * image.c [MAC_OS] (xpm_load_image): Fill in background field
5404 while we have ximg handy.
5405
5406 * macmenu.c (restore_menu_items, save_menu_items): New functions
5407 from xmenu.c.
5408 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
5409 changes for xmenu.c.
5410
5411 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
5412 (add_mac_font_name): New function.
5413 (init_font_name_table): Use it. Adopt the first found font from
5414 those having the same family name.
5415
bf49275d
NR
54162006-04-21 Nick Roberts <nickrob@snap.net.nz>
5417
5418 * xdisp.c (note_mouse_highlight): Use build_string.
5419
570fab6c
LH
54202006-04-20 Lars Hansen <larsh@soem.dk>
5421
a9ec7317
SM
5422 * textprop.c (Fremove_list_of_text_properties):
5423 Ensure modify_region is called only when buffer is modified and that
570fab6c
LH
5424 signal_after_change is allways called in that case.
5425
5426 * print.c (PRINTFINISH): Call signal_after_change.
5427
7f32b80b
KS
54282006-04-20 Kim F. Storm <storm@cua.dk>
5429
bdb60d06
KS
5430 * xdisp.c (redisplay_window): Fix last change.
5431
5e1a6e32 5432 * xdisp.c (redisplay_window): If current window start is not at the
7f32b80b
KS
5433 beginning of a line, select a new window start if buffer is modified
5434 and window start is in the modified region, but the first change is
5435 before window start.
5436
290e4aae
RS
54372006-04-18 Richard Stallman <rms@gnu.org>
5438
5439 * xmenu.c (restore_menu_items, save_menu_items): New fns.
5440 (set_frame_menubar): Use save_menu_items. Save updated vector in
a9ec7317
SM
5441 the frame before unwinding it. Don't use unuse_menu_items.
5442 Don't use discard_menu_items.
290e4aae
RS
5443 (digest_single_submenu): Abort if an item is not in a pane.
5444 (init_menu_items): Put the error check at the top.
5445
5446 * keymap.c (describe_map): Make "shadowed" warning more verbose.
5447
5448 * window.c (adjust_window_trailing_edge): Correctly distinguish
5449 series vs parallel cases, even when window has no parent.
5450
5451 * abbrev.c (record_symbol): New function.
5452 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
5453
b96fe6ea
YM
54542006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5455
5456 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
5457 value of xmalloc.
5458
5459 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5460 (create_apple_event_from_event_ref, xrm_get_preference_database)
5461 (cfstring_create_normalized): Don't check return value of xmalloc.
5462
5463 * macselect.c (get_scrap_target_type_list, defer_apple_events)
5464 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
5465 return value of xmalloc/xrealloc.
5466
5467 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
5468 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
a0c62ca2
YM
5469 (XLoadQueryFont, mac_store_apple_event): Don't check return value
5470 of xmalloc.
b96fe6ea 5471
6c7809b3
NR
54722006-04-17 Kim F. Storm <storm@cua.dk>
5473
5474 * window.c (coordinates_in_window): On the vertical border,
5475 calculate the row number measured from the top of the window, not
5476 the top of the frame.
39d78835
KS
5477 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
5478 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
6c7809b3 5479
4bba3064
EZ
54802006-04-16 Eli Zaretskii <eliz@gnu.org>
5481
5482 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
5483
8d95636b
RF
54842006-04-16 Romain Francoise <romain@orebokech.com>
5485
5486 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
5487
6a258a33
AS
54882006-04-16 Andreas Schwab <schwab@suse.de>
5489
5490 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
5491
f70a96b0
RF
54922006-04-15 Romain Francoise <romain@orebokech.com>
5493
5494 * puresize.h (BASE_PURESIZE): Increment to 1210000.
5495
28b257dc 54962006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
cda4c00b
EZ
5497
5498 * print.c (Fprin1_to_string): Mention in the `doc' that the
5499 behavior is modified by `print-level' and `print-length'.
5500
6e9715ae
KH
55012006-04-13 Kenichi Handa <handa@m17n.org>
5502
5503 * coding.c (setup_coding_system): If eol-type is not yet decided
5504 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
5505 If coding_system is nil, return 0.
5506 (code_convert_region1): Even if coding_system is nil, don't skip
5507 conversion if system_eol_type is not LF.
5508 (code_convert_string1): Likewise.
5509 (code_convert_string_norecord): Likewise.
5510
2b89a53f
KH
55112006-04-13 Kenichi Handa <handa@m17n.org>
5512
5513 * coding.c (setup_coding_system): Fix previous change.
a9ec7317 5514 (encode_coding): If eol_type is not yet decided, use system_eol_type.
73ec0f89
KH
5515 (shrink_encoding_region): If eol_type is not yet decided and
5516 system_eol_type is not LF, don't shrink.
2b89a53f 5517
5c24517a
NR
55182006-04-13 Nick Roberts <nickrob@snap.net.nz>
5519
ca21600d
JB
5520 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
5521 line.
5c24517a 5522
9d1a8e5d
RS
55232006-04-12 Richard Stallman <rms@gnu.org>
5524
a53fe666
RS
5525 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
5526
9d1a8e5d
RS
5527 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
5528 (Fprocess_send_eof): Abort if fail to open null device.
5529
190998d8
YM
55302006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5531
5532 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
5533
5534 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
5535 assignment used as truth value. Add explicit braces to avoid
5536 ambiguous `else'.
5537 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
5538
5539 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
5540 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
5541 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
5542 Put externs in #ifdef HAVE_X_WINDOWS.
5543 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
5544 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
5545 (init_mac_osx_environment) [MAC_OSX]: Add extern.
5546
5547 * mac.c (init_process): Remove undef.
5548 (select) [MAC_OSX]: Undefine before including sysselect.h.
5549 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
5550 Remove functions and prototypes.
5551 (parse_value): Add parentheses around + inside shift.
5552 (path_from_vol_dir_name): Make static.
5553 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
5554 [!MAC_OSX] (get_path_to_system_folder): Likewise.
5555 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
5556 variable `cCode'.
5557 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
5558 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
5559
5560 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
5561 (x_set_mouse_color): Remove unused variable `dpy'.
5562 (Fx_create_frame): Remove unused variable `x_frame_count'.
5563 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
5564 (x_sync): Move from macterm.c.
5565 (Fx_file_dialog): Remove unused variable `default_filter_index'.
5566
5567 * macmenu.c (min_menu_id): Make element type explicit.
5568
5569 * macselect.c (get_flavor_type_from_symbol): Remove unused
5570 variable `val'.
5571 (get_scrap_private_timestamp, x_get_foreign_selection)
5572 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
5573 (Fmac_process_deferred_apple_events): Remove unused variables
5574 `keyword', `reply', `apple_event', `count', and `err'.
5575
5576 * macterm.c: Don't include gnu.h.
5577 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
5578 (x_sync): Move to macfns.c.
5579 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
5580 variable `mask_bits'.
5581 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
5582 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
5583 (x_mac_to_emacs_modifiers): Remove function.
5584 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
5585 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
5586 Add explicit braces to avoid ambiguous `else'.
5587 (x_make_frame_visible): Remove unused variables `type',
5588 `original_top', and `original_left'.
5589 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
5590 (x_load_font): Remove unused variables `full_name', and `value'.
5591 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
5592 Remove functions.
5593 (do_zoom_window): Reorganize variables with respect to conditionals.
5594 (init_command_handler): Remove unused variable `err'.
5595 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
5596
5597 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
5598 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
5599 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
5600 (do_menu_choice, have_menus_p, x_real_positions)
5601 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
5602 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
5603 (free_frame_menubar): Add externs.
5604
5605 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
5606 (malloc, realloc, free): Add undefs.
5607 (read_load_commands): Remove unused variable `n' and `j'.
5608 (copy_data_segment): Remove unused variable `r'.
5609
5610 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
5611 within ||. Add explicit braces to avoid ambiguous `else'.
5612 (dump_glyph_row): Remove label for `inverse_p' from legend.
5613
a9ec7317
SM
5614 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
5615 Add explicit braces to avoid ambiguous `else'.
190998d8 5616
28b257dc 56172006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
00d70d57
JD
5618
5619 * dispnew.c (init_display): Don't init X display if the user asked
5620 for a non-X display.
7e37cb69 5621
957b3c5f
KH
56222006-04-12 Kenichi Handa <handa@m17n.org>
5623
5624 * coding.c (setup_coding_system): Use system_eol_type for default
5625 coding->eol_type.
5626
db926d80
DN
56272006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5628
5629 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
5630
5631 * data.c (wrong_type_argument): Try to avoid compiler warnings due
5632 to the fact the function is now marked as NO_RETURN.
5633
978781a5
EZ
56342006-04-10 Eli Zaretskii <eliz@gnu.org>
5635
5636 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
5637
8fd0f424
RF
56382006-04-10 Romain Francoise <romain@orebokech.com>
5639
5640 * xrdb.c (gethomedir): Use xstrdup.
5641
f8f10777
AS
56422006-04-10 Andreas Schwab <schwab@suse.de>
5643
5644 * xrdb.c (gethomedir): Make sure to always return a pointer that
5645 can be passed to free.
5646
2a8da555
RS
56472006-04-09 Richard Stallman <rms@gnu.org>
5648
5649 * lisp.h (Fkill_emacs): Undo previous change.
5650
56512006-04-08 Richard Stallman <rms@gnu.org>
5652
5653 * search.c (boyer_moore): Test ch >= 0400, not >.
5654
404be028
DN
56552006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
5656
5657 * puresize.h (pure_write_error): Mark as NO_RETURN.
5658
4ca412ec 5659 * lisp.h (args_out_of_range, args_out_of_range_3)
404be028 5660
f93bd8e4
EZ
56612006-04-08 Eli Zaretskii <eliz@gnu.org>
5662
5663 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
5664 if a menu is active on this frame.
5665
31a4f621
DN
56662006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
5667
5668 * lisp.h (report_file_error): Mark as NO_RETURN.
5669
7e773529
EZ
56702006-04-08 Eli Zaretskii <eliz@gnu.org>
5671
4f27350a
EZ
5672 * alloc.c [STDC_HEADERS]: Include stddef.h.
5673
7e773529
EZ
5674 * lisp.h (PSEUDOVECSIZE): Fix last change.
5675
6bfd98e7
SM
56762006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
5677
5678 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
5679 `raw_status_high', and `raw_status_low' with plain integers, and move
5680 them to the end of the structure.
5681
5682 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
5683 pseudovector's size field so only the Lisp_Object fields get GC'd.
5684
5685 * process.c (update_status, make_process, Fdelete_process)
5686 (Fprocess_status, list_processes_1, start_process_unwind)
5687 (create_process, Fmake_network_process, server_accept_connection)
5688 (wait_reading_process_output, send_process, Fprocess_running_child_p)
5689 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
5690 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
5691 `pid' and `raw_status'.
5692 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
5693 representing PIDs that are larger than most-positive-fixnum.
5694
5695 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
5696
5697 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
5698
1d79e521
EZ
56992006-04-08 Eli Zaretskii <eliz@gnu.org>
5700
5701 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
5702
d65b4235
PE
57032006-04-03 Paul Eggert <eggert@cs.ucla.edu>
5704
5705 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
5706 ../lib-src/b2m.c and ../lib-src/editfns.c.
5707 (Fcurrent_time_string): Use it.
5708 Document that the year might not consume 4 columns if it's outside
5709 the range 1000-9999.
5710 Check for asctime failure.
5711 Don't assume that the output string length is always exactly 24.
5712
fc9f8d15
YM
57132006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5714
5715 * macterm.c (XTread_socket): Initialize variable `f' before its use.
5716
022af124
KH
57172006-04-03 Kenichi Handa <handa@m17n.org>
5718
5719 * image.c: Include "charset.h" and "coding.h".
5720 (x_find_image_file): Return an encoded file name.
5721
61be4a8a
EZ
57222006-04-01 Eli Zaretskii <eliz@gnu.org>
5723
5724 * configure: Regenerated.
5725
a869edd4
KH
57262006-03-31 Kenichi Handa <handa@m17n.org>
5727
5728 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
5729
29444a2f
DN
57302006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5731
5732 * xdisp.c (syms_of_xdisp): Fix variable name.
5733
3c5f9492
KH
57342006-03-30 Kenichi Handa <handa@m17n.org>
5735
5736 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
5737
267ee78f
JB
57382006-03-29 Juanma Barranquero <lekktu@gmail.com>
5739
5740 * keyboard.c (process_tool_bar_item): Reorder dummy args.
5741
293bd733
SM
57422006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5743
5744 * keyboard.c (tool_bar_items): Use map_keymap.
5745 (process_tool_bar_item): Add dummy args to fit the required interface.
5746
4fccedb5
EZ
57472006-03-25 Eli Zaretskii <eliz@gnu.org>
5748
5749 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
5750 to zero before calling debug_print or safe_debug_print.
5751
5752 * print.c (print_output_debug_flag): New global variable.
5753 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
5754 OutputDebugString if print_output_debug_flag is zero.
5755
aac18aa4
PE
57562006-03-24 Paul Eggert <eggert@cs.ucla.edu>
5757
71c3f28f 5758 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
aac18aa4 5759 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
71c3f28f
EZ
5760 (Fdecode_time): Cast tm_year to EMACS_INT.
5761 (Fcurrent_time_string): Report an invalid time specification if
293bd733 5762 the argument is invalid. Also, check for out-of-range time stamps.
aac18aa4 5763
0ef4f79b
KS
57642006-03-24 Kim F. Storm <storm@cua.dk>
5765
95d8aa28
KS
5766 * xterm.c (handle_one_xevent):
5767 * w32term.c (w32_read_socket):
95d8aa28
KS
5768 * macterm.c (XTread_socket): Don't let key-press clear mouse face
5769 on in toolbar window if mouse-highlight is an integer.
5770
0ef4f79b
KS
5771 * fns.c (sxhash_list): Include last non-nil CDR in hash.
5772
e2e206ae
YM
57732006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5774
5775 * macmenu.c (enum mac_menu_kind): New enum.
5776 (min_menu_id): New variable.
5777 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
5778 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
5779 min_menu_id and enumerators in enum mac_menu_kind.
5780 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
5781 All uses changed. Add range check for menu ID.
5782 (fill_menubar): Add range check for menu ID.
5783 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
5784 GetEventParameter.
5785 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
5786 for each menu kind.
5787
5a32a2f2
KS
57882006-03-22 Kim F. Storm <storm@cua.dk>
5789
ea049c5e
KS
5790 * xdisp.c: Undo 2006-03-21 change.
5791
5792 * term.c: Define aliases for append_glyph and produce_stretch_glyph
5793 when `static' is defined to avoid name clash with those in xdisp.c.
5794
647b07d1
AS
5795 * process.c (Faccept_process_output): Fix to comply with lisp
5796 reference. Change arg "timeout" to "seconds" and allow both
5797 integer and float value. Change arg "timeout-msec" to "millisec"
5798 and interpret" as milliseconds rather than microseconds. Fix doc
5799 string accordingly.
5a32a2f2 5800
d63cd766
KR
58012006-03-21 Ken Raeburn <raeburn@raeburn.org>
5802
293bd733
SM
5803 * xdisp.c (store_next_glyph): Rename from append_glyph.
5804 (generate_stretch_glyph): Rename from produce_stretch_glyph.
d63cd766
KR
5805 All callers changed accordingly.
5806
11e887e2
JD
58072006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5808
5809 * xterm.c: x_session_initialized new variable.
5810 (x_term_init): Use x_session_initialized to check if
5811 x_session_initialize should be called.
5812 (x_initialize): Initialize x_session_initialized.
5813
52bd2f43
KS
58142006-03-21 Kim F. Storm <storm@cua.dk>
5815
5816 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
5817 bitmap here, but ...
5818 (update_window_fringes): ... here, so we can test if it has changed.
5819
c1fc674b
AS
58202006-03-20 Andreas Schwab <schwab@suse.de>
5821
5822 * dispnew.c (init_display): Check DISPLAY here.
5823
5824 * emacs.c (main): Don't check here.
5825
5826 * xterm.c (x_display_ok): Don't use DISPLAY env var.
5827
7d619454
SM
58282006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5829
5830 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
5831 mixup (YAILOM).
5832
e2916251
EZ
58332006-03-20 Eli Zaretskii <eliz@gnu.org>
5834
5835 * emacs.c (main): Fix last change.
5836
95c1c901
KH
58372006-03-20 Kenichi Handa <handa@m17n.org>
5838
7d619454 5839 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
95c1c901
KH
5840
5841 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
5842
5843 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
5844
5845 * xterm.c (x_term_init): Remove unnecessary GCPRO.
5846
45c1c789
KS
58472006-03-19 Kim F. Storm <storm@cua.dk>
5848
5e1a6e32 5849 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
45c1c789
KS
5850 so it doesn't associate overlay string with following glyph by default.
5851 Allow integer property value to specify explicit number of buffer
5852 positions associate with overlay string.
5853
11aaf447
CY
58542006-03-18 Chong Yidong <cyd@stupidchicken.com>
5855
5856 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
5857
e4d181dc
EZ
58582006-03-18 Nozomu Ando <nand@mac.com>
5859
5860 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
5861 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
5862 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
5863 Don't redefine.
5864
5865 * m/mips.h: Don't use unexmips on NetBSD.
5866 (LIBS_MACHINE): Move definition lower, so it doesn't use
5867 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
5868 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
5869
5870 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
5871 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
5872 option is broken (e.g., MIPS/NetBSD).
5873
50f9edc2
EZ
58742006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
5875
5876 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
7b833ed1 5877 Remove the HAVE_X_WINDOWS conditional.
50f9edc2 5878
7e37c7c0
EZ
58792006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
5880
5881 * emacs.c (main): If user asks for a display that is unavailable,
5882 simulate -nw.
5883
5884 * xterm.c (x_display_ok): New function.
5885
5886 * xterm.h: Add prototype for x_display_ok.
5887
c85eab3a
EZ
58882006-03-18 Eli Zaretskii <eliz@gnu.org>
5889
5890 * w32fns.c (Fw32_select_font): Doc fix.
5891
e09ce637
YM
58922006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5893
5894 * image.c [MAC_OS] (XPutPixel, XGetPixel)
5895 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
5896 version when depth is 32.
7d619454
SM
5897 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
5898 New function.
e09ce637
YM
5899 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
5900 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
5901
5902 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
5903 Create GWorld in ARGB pixel format.
7d619454
SM
5904 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
5905 Remove functions.
e09ce637
YM
5906 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
5907 instead of mac_copy_area/mac_copy_area_with_mask.
5908
b0896280
KS
59092006-03-15 Kim F. Storm <storm@cua.dk>
5910
5911 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
5912 empty row. Fixes memory corruption revealed by 2006-03-02 change.
5913 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
5914 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
5915 width is exactly the same as the window width. Don't count a final
5916 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
5917
713cb18d
JB
59182006-03-15 Juanma Barranquero <lekktu@gmail.com>
5919
364d0cf8 5920 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
713cb18d
JB
5921 conditional on HAVE_NTGUI, not WINDOWS_NT.
5922
ad21830e
YM
59232006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5924
5925 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
5926
5927 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
5928
5929 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
5930 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
5931 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
5932 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
5933 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
5934 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
5935 instead of mac_draw_bitmap.
5936 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
5937 define_fringe_bitmap and destroy_fringe_bitmap.
5938
8a34117e
CY
59392006-03-14 Chong Yidong <cyd@stupidchicken.com>
5940
5941 * xterm.c (x_uncatch_errors): Block input for entire function.
5942
ab68b375
JR
59432006-03-12 Jason Rumney <jasonr@gnu.org>
5944
92cc46af 5945 * w32fns.c (Fx_create_frame): Remove call to
364d0cf8 5946 Qface_set_after_frame_default (from xfns.c 2003-05-26).
92cc46af 5947
335be36b
JR
5948 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
5949 finished with the menu.
5950
ab68b375
JR
5951 * w32term.c: Sync 2005-10-24 xterm.c changes.
5952 (last_mouse_glyph_frame): New var.
5953 (note_mouse_movement): Say mouse moved if current frame differs
5954 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5955 (w32_mouse_position): Set last_mouse_glyph_frame.
875e613d 5956 Remove OLD_REDISPLAY_CODE block.
ab68b375 5957
204b78de
YM
59582006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5959
5960 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
5961
5962 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
5963 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
5964
5965 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
5966
5967 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
5968
5969 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
5970 (x_draw_composite_glyph_string_foreground)
5971 (x_draw_image_foreground): Undo previous changes.
5972 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
5973 argument of mac_draw_rectangle.
5974 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
5975 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
5976 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
5977 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
5978 [USE_CG_DRAWING]: New functions.
5979 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
5980 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
5981 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
5982 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
5983 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
5984 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
5985 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
5986
a9d54793
KL
59872006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5988
5989 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
5990
b452fd7a
JR
59912006-03-11 Jason Rumney <jasonr@gnu.org>
5992
5993 * w32fns.c (signal_user_input): New function.
5994 (post_character_message): Use it for keyboard input.
5995 (w32_msg_pump): Use it for mouse input.
5996
f372bd5b
LT
59972006-03-11 Luc Teirlinck <teirllm@auburn.edu>
5998
5999 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
6000 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
6001
2c1bd367
EZ
60022006-03-11 Eli Zaretskii <eliz@gnu.org>
6003
6004 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
6005 if a menu is already active (the menubar_active flag is on).
6006
f161146b
EZ
60072006-03-11 David Ponce <david@dponce.com>
6008
7d619454 6009 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
f161146b 6010
9257b627
EZ
60112006-03-11 Eli Zaretskii <eliz@gnu.org>
6012
db3c0e9c
EZ
6013 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
6014 the list of unused display error handling functions.
6015
8887e8ec
EZ
6016 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
6017 HAVE_X_WINDOWS.
6018 (internal_condition_case, internal_condition_case_1)
6019 (internal_condition_case_2): Call x_catching_errors only if
6020 HAVE_X_WINDOWS.
6021
9257b627
EZ
6022 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
6023 Don't include sys/resource.h unless defined.
6024
395d3972
RS
60252006-03-11 Richard Stallman <rms@gnu.org>
6026
5a893bff
RS
6027 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
6028
395d3972 6029 * vm-limit.c (get_lim_data, lim_data, data_space_start):
7d619454 6030 Move from mem-limits.h.
395d3972
RS
6031 (enum warnlevel): New data type.
6032 (check_memory_limits): Rewrite the logic about warnings.
6033 Use standard `struct rlimit'. Check return values for nonsense.
6034 (memory_warnings): Always clear lim_data.
6035
6036 * mem-limits.h (get_lim_data, lim_data, data_space_start):
7d619454 6037 Move to vm-limit.c.
395d3972
RS
6038
6039 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
6040
6041 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
f372bd5b 6042 (internal_condition_case_1, internal_condition_case_2):
395d3972
RS
6043 Abort if within unclosed x_catch_errors.
6044
635a3496
RF
60452006-03-11 Romain Francoise <romain@orebokech.com>
6046
6047 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
6048
306cea3a
EZ
60492006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6050
6051 * lisp.h: Remove duplicate prototypes. Make the prototype of
6052 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
6053
97b5ae78
EZ
60542006-03-11 Eli Zaretskii <eliz@gnu.org>
6055
7325e714
EZ
6056 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
6057 argument of XDrawRectangle.
6058
97b5ae78
EZ
6059 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
6060
6061 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
6062 (x_draw_glyph_string_foreground)
6063 (x_draw_composite_glyph_string_foreground)
6064 (x_draw_image_foreground): Don't subtract 1 from width and height
6065 arguments to mac_draw_rectangle.
6066 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
6067
68f632a8
KS
60682006-03-10 Kim F. Storm <storm@cua.dk>
6069
6070 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
6071
349a4500
SM
60722006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
6073
6074 * alloc.c (USE_POSIX_MEMALIGN): New macro.
6075 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
6076
53a5eba9
KH
60772006-03-09 Kenichi Handa <handa@m17n.org>
6078
6079 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
6080 ASCII component of a composition.
6081
629f023d
LT
60822006-03-08 Luc Teirlinck <teirllm@auburn.edu>
6083
6084 * window.c: Declare preserve_y as a static global variable.
6085 (window_scroll_pixel_based): No longer declare preserve_y;
6086 it is global now.
f945af42 6087 (syms_of_window): Set preserve_y to -1.
629f023d 6088
4cdffedf
YM
60892006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6090
6091 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
6092 depth is 32.
204b78de 6093 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4cdffedf
YM
6094 depth is 32.
6095
45b5f35d
CY
60962006-03-06 Chong Yidong <cyd@stupidchicken.com>
6097
6098 * xdisp.c (handle_invisible_prop): Don't update it->position with
6099 a buffer position if we're in a display string.
6100
48b60fa1
YM
61012006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6102
6103 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
6104 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
6105
6106 * macfns.c (x_default_scroll_bar_color_parameter)
349a4500
SM
6107 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
6108 Remove unnecessary prototypes.
6109 (x_set_scroll_bar_default_width):
6110 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
48b60fa1
YM
6111 (mac_set_scroll_bar_width): New function.
6112 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
6113
6114 * macterm.c (get_control_part_bounds): Fix type of return value.
6115 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6116 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
6117 scroll bar if it is not tall enough to display scroll bar thumb.
6118 [USE_CARBON_EVENTS] (mac_convert_event_ref)
6119 (mac_handle_command_event, mac_handle_window_event)
6120 (mac_handle_mouse_event): Check error code of GetEventParameter.
6121 (convert_fn_keycode) [MAC_OSX]: Likewise.
f945af42 6122
6f10509c
AS
61232006-03-05 Andreas Schwab <schwab@suse.de>
6124
6125 * xselect.c (x_catch_errors_unwind): Fix missing return value.
6126
f79bc642
KS
61272006-03-02 Kim F. Storm <storm@cua.dk>
6128
6129 * frame.h (struct frame): New member n_tool_bar_rows.
6130
6131 * xdisp.c: Minimize the unpleasent visual impact of the requirement
6132 that non-toolkit tool-bars must occupy an integral number of screen
875e613d 6133 lines, by distributing the rows evenly over the tool-bar screen area.
f79bc642
KS
6134 (Vtool_bar_border): New variable.
6135 (syms_of_xdisp): DEFVAR_LISP it.
349a4500
SM
6136 (display_tool_bar_line): Add HEIGHT arg for desired row height.
6137 Make tool-bar row the desired height. Use default face for border
6138 below tool-bar.
f79bc642
KS
6139 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
6140 actual tool-bar rows.
6141 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
6142 Adjust the height of the tool-bar rows to fill tool-bar screen area.
6143 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
6144 is resized.
6145
0bbe0c9c
LT
61462006-03-01 Luc Teirlinck <teirllm@auburn.edu>
6147
6148 * search.c (Fregexp_quote): Do not precede a literal `]' with two
6149 backslashes to try to make clear that it has a literal meaning; it
6150 does not do that. (It could close a character alternative
6151 containing a backslash.)
6152
c525d842
CY
61532006-02-28 Chong Yidong <cyd@stupidchicken.com>
6154
6155 * xselect.c (x_catch_errors_unwind): New function.
6156 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
6157 (Fx_get_atom_name): Call x_uncatch_errors earlier.
6158
6159 * window.c (Qscroll_up, Qscroll_down): New syms.
6160 (window_scroll_pixel_based): Make preserve_y static to avoid
6161 getting point stuck when scrolling 1 line.
6162
4545fa20
CY
61632006-02-26 Chong Yidong <cyd@stupidchicken.com>
6164
349a4500 6165 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4545fa20 6166
364d0cf8
JB
6167 * xterm.c (x_load_font, x_term_init, XTmouse_position)
6168 (handle_one_xevent, x_connection_closed, x_list_fonts):
6169 No arg for x_uncatch_errors.
4545fa20
CY
6170
6171 * xselect.c (x_own_selection, x_decline_selection_request)
6172 (x_reply_selection_request, x_get_foreign_selection)
6173 (Fx_get_atom_name, Fx_send_client_event): Likewise.
6174
6175 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
6176 Likewise.
6177
a5e25a4c
LT
61782006-02-26 Luc Teirlinck <teirllm@auburn.edu>
6179
440cbd9e
LT
6180 * lread.c: Declare Vload_file_rep_suffixes instead of
6181 deleted variable default_suffixes.
6182 (Fget_load_suffixes): New function.
6183 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
6184 No longer use deleted variable default_suffixes. Update docstring.
6185 (syms_of_lread): defsubr Sget_load_suffixes.
6186 Expand `load-suffixes' docstring.
6187 Delete default_suffixes and DEFVAR_LISP the new variable
6188 `load-file-rep-suffixes'.
6189
6190 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
6191 of Vload_suffixes.
6192
6193 * lisp.h: EXFUN Fget_load_suffixes.
6194 Extern Vload_file_rep_suffixes.
6195
a5e25a4c
LT
6196 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
6197 with lisp.h.
6198
a7af5886
SM
61992006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
6200
6201 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
6202 qualifier which was trying to avoid the bug that was fixed by
6203 yesterday's changes to xterm.c.
6204
9ba8e10d
CY
62052006-02-25 Chong Yidong <cyd@stupidchicken.com>
6206
6207 * xterm.h (x_catch_errors) Return value changed to void.
4545fa20 6208 (x_uncatch_errors): Delete unused count argument.
a7af5886 6209
9ba8e10d
CY
6210 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
6211 it can be called in a signal handler.
6212 (x_catch_errors_unwind): Function deleted.
6213 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
6214 (x_check_errors): Call x_uncatch_errors before signalling error.
6215
6216 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
6217 (x_connection_closed, x_list_fonts): Use new versions of
6218 x_catch_errors and x_uncatch_errors.
6219
6220 * xselect.c (x_own_selection, x_decline_selection_request)
6221 (x_reply_selection_request, x_get_foreign_selection)
6222 (Fx_get_atom_name, Fx_send_client_event): Likewise.
6223
6224 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
6225 Likewise.
6226
6227 * eval.c (record_unwind_protect): Add an assertion.
6228
f523e0c3
SM
62292006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6230
6231 * process.c (Fmake_network_process): Init the process's mark.
6232
a7a7e1d7
KS
62332006-02-25 Kim F. Storm <storm@cua.dk>
6234
6235 * buffer.c (modify_overlay): Force redisplay if we modify an
6236 overlay at the end of the buffer.
6237
a821c035
JD
62382006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6239
ca21600d
JB
6240 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
6241 nil the image file has been removed, in that case use the (cached)
6242 pixmap.
a821c035 6243
77343e1d
KH
62442006-02-24 Kenichi Handa <handa@m17n.org>
6245
6246 * fileio.c (Finsert_file_contents): When a text is replaced
6247 partially, be sure to set point before the inserted characters.
6248
92fb5516
KH
62492006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
6250
6251 * xfns.c (Fx_file_dialog): Return a decoded file name.
6252
78897758
YM
62532006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6254
6255 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
6256 glyph whose face is extended to the text area end.
6257
5b574e69
YM
6258 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
6259 values if control is not visible or values are not changed.
6260
acc6289a
SM
62612006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
6262
6263 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
6264 The default `window' should not be "on a different frame".
6265
c4336e88
KS
62662006-02-22 Kim F. Storm <storm@cua.dk>
6267
6268 * indent.c (Fvertical_motion): Only try to move back if we can.
6269
b6e3efe0
YM
62702006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6271
6272 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
6273 n_clip_rects.
6274
6275 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
6276 xmenu.c.
6277
6278 * macterm.c (GC_CLIP_REGION): Remove macro.
6279 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
6280 All uses changed. Don't do clipping if n_clip_rects is zero.
acc6289a
SM
6281 (mac_set_clip_rectangles): Use xassert instead of abort.
6282 Set n_clip_rects. Don't make clip_region empty when number of
b6e3efe0
YM
6283 clipping rectangles is zero.
6284 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
6285 calling mac_set_clip_rectangles.
6286 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
6287 avoid multiple redraws.
6288
6f62a45e
KS
62892006-02-22 Kim F. Storm <storm@cua.dk>
6290
6291 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
6292
dd9959da
KS
62932006-02-21 Kim F. Storm <storm@cua.dk>
6294
6295 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
6296
364d0cf8 62972006-02-21 Zhang Wei <brep@newsmth.org>
a8f4bdc6
JD
6298
6299 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
6300 returning it.
6301
dd9959da 63022006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9866a438
JB
6303
6304 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
6305 (standard_bitmaps): Use it.
6306
9fb446e3
YM
63072006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6308
6309 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
6310 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
6311 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
6312 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
acc6289a
SM
6313 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
6314 Draw background if BG_WIDTH is not zero. Use float constants as
9fb446e3
YM
6315 divisors instead of double. Use alloca instead of xmalloc/xfree.
6316 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6317 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
6318 mac_draw_image_string* functions.
6319 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
6320 some fonts when srcCopy text transfer mode might be used.
6321 (mac_begin_clip, mac_end_clip): Check if region is empty.
6322 (mac_set_clip_rectangles): When resetting clip region, make it
6323 empty instead of disposing of it.
6324
49af2995
KS
63252006-02-20 Kim F. Storm <storm@cua.dk>
6326
6327 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
6328
6329 * buffer.h (struct buffer): New members fringe_indicator_alist and
6330 fringe_cursor_alist.
6331
6332 * buffer.c (init_buffer_once): Set dummy default values for
6333 fringe-indicator-alist and fringe-cursor-alist. The proper
6334 default values are set by pre-loading fringe.el.
6335 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
6336 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
9866a438 6337 corresponding default- variables.
49af2995
KS
6338
6339 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
6340 to use `int'.
6341 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
6342 Define explicitly.
6343 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
6344 (Qhollow_small): New variables.
6345 (syms_of_fringe): Intern and staticpro them.
6346 (question_mark_bits): Rename from unknown_bits.
6347 (left_curly_arrow_bits): Rename from continuation_bits.
6348 (right_curly_arrow_bits): Rename from continued_bits.
6349 (left_triangle_bits): Rename from ov_bits.
acc6289a 6350 (right_triangle_bits): Add.
49af2995
KS
6351 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
6352 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
acc6289a 6353 (filled_square_bits): Add.
49af2995 6354 (vertical_bar_bits): Rename from bar_cursor_bits.
9866a438 6355 (horizontal_bar_bits): Rename from hbar_cursor_bits.
49af2995
KS
6356 (empty_line_bits): Rename from zv_bits.
6357 (standard_bitmaps): Update to use new names.
6358 (draw_fringe_bitmap_1): Make static.
6359 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
6360 to map from logical cursors and indicators to physical bitmaps.
875e613d 6361 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
49af2995
KS
6362 bitmaps using symbol names instead of bitmap numbers.
6363 (update_window_fringes): Use logical indicator symbol names
6364 instead of bitmap numbers for logical. Add bitmap cache.
6365 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
6366
a77f947b
CY
63672006-02-20 Chong Yidong <cyd@stupidchicken.com>
6368
a073faa6
CY
6369 * regex.c: Revert 2006-02-19 change.
6370 (xmalloc, xrealloc): Define these when not linked to Emacs.
6371 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
a77f947b 6372
2f90d2bc
LT
63732006-02-19 Luc Teirlinck <teirllm@auburn.edu>
6374
6375 * regex.c (extend_range_table_work_area): Fix typo.
6376
5498b6af
RS
63772006-02-19 Richard M. Stallman <rms@gnu.org>
6378
7b1d7d66
RS
6379 * xterm.c (x_catch_errors): Use xmalloc.
6380
6381 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
6382 (regex_compile): Likewise.
6383 (regcomp): Use xmalloc.
6384
6385 * gtkutil.c (malloc_widget_value): Use xmalloc.
6386
5498b6af
RS
6387 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
6388 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
6389
6390 * xmenu.c (digest_single_submenu): When pane_string is empty,
6391 do initialize save_wv.
6392
4f2f3214
YM
63932006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6394
6395 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
6396 w->update_mode_line if arg F is not the selected frame.
6397
6398 * macmenu.c (popup_activated_flag, submenu_id)
6399 (next_menubar_widget_id): Remove variables.
6400 (initialize_frame_menubar): Remove function.
6401 (pop_down_menu, mac_menu_show): Simplify save value.
6402 (dispose_menus): New function.
6403 (pop_down_menu, fill_menubar): Use it.
6404 (fill_submenu): Remove function. All uses changed to fill_menu.
6405 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
6406 POS. Don't call SetMenuItemHierarchicalID here.
6407 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
6408 used next. Call SetMenuItemHierarchicalID here.
6409 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
6410 objects if needed. Reuse existing menu bar titles if possible.
6411 (set_frame_menubar): Don't clean up menu objects here.
6412
da7520de
CY
64132006-02-18 Chong Yidong <cyd@stupidchicken.com>
6414
6415 * window.c (window_min_size_1): Ensure room for the scroll bar and
6416 fringes.
6417
a9c18b84
RF
64182006-02-17 Romain Francoise <romain@orebokech.com>
6419
6420 * puresize.h (BASE_PURESIZE): Increment to 1200000.
6421
537407f0
SM
64222006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
6423
6424 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
6425 addition of the BLOCK_INPUTs.
6426
5bf3610f
JB
64272006-02-17 Juanma Barranquero <lekktu@gmail.com>
6428
6429 * window.c (Fset_window_scroll_bars): Doc fix.
6430
ed0218e2
KH
64312006-02-17 Kenichi Handa <handa@m17n.org>
6432
6433 * xdisp.c (display_mode_element): Call display_string with correct
6434 PREC arg (which must be a number of characters, not column width).
6435
f036d043
YM
64362006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6437
6438 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
6439
6440 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
6441
6442 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
6443
885f1975
RS
64442006-02-14 Richard M. Stallman <rms@gnu.org>
6445
9d8f542c
RS
6446 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
6447
885f1975
RS
6448 * m/ibms390x.h: New file.
6449
26ebccfd
JD
64502006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6451
6452 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
6453 value of x-gtk-whole-detached-tool-bar.
d8d3d48c 6454 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
26ebccfd
JD
6455
6456 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
6457
4d7637b8 64582006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
58118de5
JD
6459
6460 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
6461
6462 * xterm.h: Declare x_x_to_emacs_modifiers.
6463
6464 * gtkutil.c (xg_tool_bar_button_cb): New function.
6465 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
6466 store modifiers in event.
6467 (update_frame_tool_bar): Connect button-release-event to
6468 xg_tool_bar_button_cb.
6469
f8d775e1
RS
64702006-02-13 Richard M. Stallman <rms@gnu.org>
6471
6472 * .gdbinit (xwindow): Update the code to show the window box.
6473
0c0351b5
JD
64742006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6475
6476 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
6477
4d94dd9a
RS
64782006-02-12 Richard M. Stallman <rms@gnu.org>
6479
6480 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
6481
c54fb9ef
EZ
64822006-02-11 Eli Zaretskii <eliz@gnu.org>
6483
6484 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
6485 (syms_of_keyboard): DEVFAR_LISP and initialize it.
6486 (parse_tool_bar_item, parse_menu_item): If that variable is
6487 non-nil, don't disable menu items and tool-bar buttons.
6488
ac6a9b55
JB
64892006-02-11 Juanma Barranquero <lekktu@gmail.com>
6490
6491 * doc.c (Fsubstitute_command_keys): Doc fix.
6492
0ddb0ae8
TTN
64932006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
6494
6495 * data.c (Findirect_function): Rewrite docstring.
6496 Fix omission bug: Declare new arg NOERROR.
6497
cbd488c4
YM
64982006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6499
6500 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
6501 if window_desc is not set yet.
6502 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
6503 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
6504 parameter `visibility' is `icon'.
6505 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
6506 instead of "fontset-mac".
6507 (Fx_focus_frame): New defun.
6508 (syms_of_macfns): Defsubr it.
6509
6510 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
6511 for unfocused frame.
6512 (x_raise_frame): Call BringToFront instead of SelectWindow.
6513 (x_lower_frame): Use NULL instead of nil.
6514 (x_make_frame_visible): Don't call SelectWindow.
6515 (XTread_socket): Increment handling_signal at the start, decrement
6516 it at the end.
6517 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
6518 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
6519
a7f96a35
KS
65202006-02-10 Kim F. Storm <storm@cua.dk>
6521
6522 * data.c (Findirect_function): Add NOERROR arg. All callers changed
6523 to pass Qnil for NOERROR.
6524
6525 * keymap.c (current_minor_maps_error): Remove.
6526 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
6527 instead of using internal_condition_case_1+current_minor_maps_error.
6528
1834d8e7
JD
65292006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6530
6531 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
6532 frames for GTK, in that case it is the tool bar. This is so that
6533 highlighted text get reset properly.
6534
cffc3472
JB
65352006-02-09 Juanma Barranquero <lekktu@gmail.com>
6536
6537 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
6538
e99c7521
JD
65392006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6540
6541 * window.c (adjust_window_trailing_edge): Check that shrinking
6542 does not set a window to size zero or less.
6543
42ab8e36
MB
65442006-02-08 Miles Bader <miles@gnu.org>
6545
6546 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
cffc3472 6547 of Fget_text_property (other field functions work with overlays as
42ab8e36
MB
6548 well as text-properties).
6549
6a80c3ba
KH
65502006-02-07 Kenichi Handa <handa@m17n.org>
6551
e1a67366 6552 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6a80c3ba 6553
e1a67366
KS
6554 * xterm.h (unibyte_display_via_language_environment):
6555 * w32term.h (unibyte_display_via_language_environment):
6556 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6a80c3ba 6557
d2b4c17d
KH
65582006-02-07 Kenichi Handa <handa@m17n.org>
6559
e1a67366 6560 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
d2b4c17d 6561 (produce_glyphs): Set the character to print in
e1a67366
KS
6562 it->char_to_display. Handle unibyte-display-via-language-environment.
6563 (produce_stretch_glyph): Set character to print in it->char_to_display.
d2b4c17d 6564
8b9d426a
KH
65652006-02-06 Kenichi Handa <handa@m17n.org>
6566
e1a67366 6567 * lread.c (openp): Initialize encoded_fn before GCPRO it.
8b9d426a 6568
d63b4018
KR
65692006-02-05 Ken Raeburn <raeburn@raeburn.org>
6570
6571 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
6572
98950fd6
KR
6573 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
6574 Cast bitfield value to EMACS_INT, to suppress gcc warning.
6575
ca21600d
JB
6576 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
6577 defining.
0cf36656 6578
ad02d7ea
KS
65792006-02-03 Kim F. Storm <storm@cua.dk>
6580
6581 * xdisp.c: Cache last merged escape glyph face.
6582 (last_escape_glyph_frame, last_escape_glyph_face_id)
6583 (last_escape_glyph_merged_face_id): New variables.
6584 (get_next_display_element): Use/update them.
6585 (redisplay_internal): Reset them before redisplay.
6586
6587 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
6588 Only recheck faces after displaying ellipsis.
6589
999a0fe5
KH
65902006-02-02 Kenichi Handa <handa@m17n.org>
6591
6592 * coding.c (decode_composition_emacs_mule): Fix handling of
6593 incorrect format data.
6594
cd7cd4ac
JD
65952006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6596
14a56a1b
JB
6597 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
6598 gtk_toolbar_insert() so we can have tool bars of different sizes.
cd7cd4ac 6599
4cf7e99c
LT
66002006-01-30 Luc Teirlinck <teirllm@auburn.edu>
6601
6602 * data.c (Flistp): Doc fix.
6603
a3bc032f
JB
66042006-01-30 Juanma Barranquero <lekktu@gmail.com>
6605
6606 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
6607 Fix typos in docstrings.
6608
6badf38c
LT
66092006-01-28 Luc Teirlinck <teirllm@auburn.edu>
6610
1f2907ee 6611 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6badf38c 6612
e2984df0
CY
66132006-01-27 Chong Yidong <cyd@stupidchicken.com>
6614
6615 * alloc.c (make_interval, allocate_string)
6616 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
6617 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
6618 global variables.
6619
dc86c16d
EZ
66202006-01-27 Eli Zaretskii <eliz@gnu.org>
6621
6622 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
6623 the MSDOS definition.
6624
57436ee7
RS
66252006-01-26 Richard M. Stallman <rms@gnu.org>
6626
6627 * alloc.c (check_pure_size): Make overflow message an "error message".
6628
6629 * keymap.c (Fmap_keymap): Doc fix.
6630
6631 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
6632 unless they were cleared out.
6633
6634 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
6635
2cb3aec4
KL
66362006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6637
e477bb04
KL
6638 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
6639 (find_field): Set before_field to after_field when pos is at BEGV.
293bd733
SM
6640 (Fline_beginning_position, Fline_end_position):
6641 Clarify confusing doc string.
2cb3aec4 6642
ca21600d
JB
6643 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
6644 string.
2cb3aec4 6645
34b87689
KH
66462006-01-26 Kenichi Handa <handa@m17n.org>
6647
6648 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
ca21600d
JB
6649 current_dir, and error_file. On reporting an error, decode them
6650 back.
34b87689 6651
1cee1e27
SM
66522006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6653
6654 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
6655 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
6656 Don't check for quit, since any loop will go through fail or jump.
6657
a0b08700
CY
66582006-01-24 Chong Yidong <cyd@stupidchicken.com>
6659
6660 * alloc.c (allocate_string_data): Update next_free immediately, to
6661 reduce risk of memory clobberage.
6662
bf7f1d30
KL
66632006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6664
6665 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
6666 display when point moves across an ellipsis. If there are
6667 adjacent invisible texts, don't lose the second one's ellipsis.
6668 (x_produce_glyphs): Doc fix.
6669
e5e26d8f
SM
66702006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
6671
6672 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
6673
1ff4535b
KS
66742006-01-23 Kim F. Storm <storm@cua.dk>
6675
6676 * xdisp.c (handle_single_display_spec): Fix handling of space
6677 property on char from string: set *position rather than
6678 it->current.pos.
6679 (produce_stretch_glyph): Reduce width of stretch glyphs so they
6680 don't get wider than the window (unless truncate-lines is on).
6681
5badc98d
SM
66822006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
6683
6684 * xterm.c: Avoid allocating Lisp data from a signal handler.
6685 (x_error_message): New var to replace x_error_message_string.
6686 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
6687 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
6688 (syms_of_xterm): Use it instead of x_error_message_string.
6689
6690 * alloc.c (lisp_align_free): Add an assertion.
6691 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
6692 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
6693 a signal handler.
6694
638590e8
LT
66952006-01-21 Luc Teirlinck <teirllm@auburn.edu>
6696
6697 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
6698
cde0a40c
RF
66992006-01-21 Romain Francoise <romain@orebokech.com>
6700
6701 * xdisp.c (get_window_cursor_type): Fix last change.
6702 Update copyright year.
6703
ea5f3ad4
EZ
67042006-01-20 Eli Zaretskii <eliz@gnu.org>
6705
3fdf12ca
EZ
6706 * lread.c (Fload): Don't leak the file descriptor returned by
6707 openp if we are going to signal an error.
6708
7559f399
EZ
6709 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
6710 directly to _close.
6711 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
6712 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
6713 to _read.
cde0a40c 6714 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7559f399
EZ
6715 directly to _write.
6716
ea5f3ad4
EZ
6717 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
6718 if it is NULL.
6719
ef8beec6
KH
67202006-01-20 Kenichi Handa <handa@m17n.org>
6721
6722 * puresize.h (BASE_PURESIZE): Increment to 1190000.
6723
995f2df9
CY
67242006-01-19 Chong Yidong <cyd@stupidchicken.com>
6725
6726 * xdisp.c (get_window_cursor_type): Use cursor type specified by
6727 the selected buffer for the echo area too.
6728
c94c4d0a
RS
67292006-01-19 Richard M. Stallman <rms@gnu.org>
6730
6731 * keymap.c (Fmap_keymap): Doc fix.
6732
6733 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
6734
6735 * keyboard.c (echo_char): Don't omit the space between first two
6736 echoed chars.
6737
6738 * minibuf.c (read_minibuf): Fix previous change.
6739
71578d4f
KH
67402006-01-19 Kenichi Handa <handa@m17n.org>
6741
6742 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6743
edd1c685
RS
67442006-01-17 Richard M. Stallman <rms@gnu.org>
6745
6746 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
6747 value in f->param_alist.
6748
0501acd4
AS
67492006-01-15 Andreas Schwab <schwab@suse.de>
6750
6751 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
6752
d33a7384
NR
67532006-01-13 Richard M. Stallman <rms@gnu.org>
6754
6755 * Makefile.in: Define new macro WINDOW_SUPPORT.
6756 (lisp): Use it.
6757 (SOME_MACHINE_LISP): Add conditionally loaded files.
6758
2026418c
YM
67592006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6760
6761 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
22e6707e 6762 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2026418c
YM
6763 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
6764 decomposed form.
6765
6766 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
6767 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
6768 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
6769 macro. Also try member ifr_addr when getting netmask.
6770
b8f7f3be
SM
67712006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
6772
6773 * fileio.c (Fexpand_file_name): Remove redundant tests.
6774 Fix elimination of // so that it doesn't prevent elimination of an
6775 immediately following /. or /..
6776
4c9ca1a3
JD
67772006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6778
6779 * gtkutil.c (xg_toggle_notify_cb): New function.
6780 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
6781 xg_toggle_notify_cb.
6782 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
6783 parameter value changes so the toggle button gets updated.
6784
340bb2ea
NR
67852006-01-06 Nick Roberts <nickrob@snap.net.nz>
6786
6787 * .gdbinit: Fix typo.
6788
feaf060a
EZ
67892006-01-05 Eli Zaretskii <eliz@gnu.org>
6790
6791 * .gdbinit: Fix last change.
6792
c22cc558
KS
67932006-01-05 Kim F. Storm <storm@cua.dk>
6794
6795 * process.c (Fmake_network_process): Use AF_INET instead of
22e6707e 6796 AF_UNSPEC when AF_INET6 is not defined.
c22cc558 6797
07f9b01c
YM
67982006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6799
6800 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
6801 Don't check that the other type is known file-related one.
6802
6803 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
6804 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
6805 OS X 10.4 and later.
6806
0facd9c3
JD
68072006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6808
6809 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
6810 let GTK do all image processing. Importing Emacs own pixmaps to GTK
6811 looks bad for inactive tool bar items with some Gnome themes.
6812
805b0439
EZ
68132006-01-04 Eli Zaretskii <eliz@gnu.org>
6814
913645cd
EZ
6815 * .gdbinit: Avoid a warning message when x_error_quitter is not
6816 compiled in.
6817
805b0439
EZ
6818 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
6819 for w32.
6820
0f5642c2
KS
68212006-01-04 Kim F. Storm <storm@cua.dk>
6822
8a5db8ae
KS
6823 * process.c: Add IPv6 support.
6824 (Qipv4, Qipv6): New vars.
6825 (syms_of_process): Intern and staticpro them.
6826 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
6827 with or without port number. Handle 4 element vector as IPv4 address
6828 without port number.
6829 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
6830 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
6831 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
6832 request that address family only. :family nil or omitted means to
6833 determine address family from the specified :host and :service.
6834 (ifflag_table): Add missing OpenBSD IFF_ flags.
6835 (server_accept_connection): Handle IPv6 addresses.
6836 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
6837
0f5642c2
KS
6838 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
6839 determine which breakpoints to set.
6840
e7b394e1
SM
68412006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
6842
6843 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
6844
6845 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
6846
dcc9b98d
RF
68472006-01-03 Romain Francoise <romain@orebokech.com>
6848
6849 * emacs.c (main): Update copyright year.
6850
6918ac24 68512006-01-03 Ken Raeburn <raeburn@gnu.org>
1a271e14
KR
6852
6853 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
6854 nil for the call to internal_delete_file.
6855
bb951f0e
KR
68562006-01-01 Ken Raeburn <raeburn@gnu.org>
6857
6858 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
6859 to nil for the call to Fwrite_region.
6860
b20de1cd
RS
68612005-12-31 Richard M. Stallman <rms@gnu.org>
6862
6863 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
6864
b5871831
EZ
68652005-12-31 Eli Zaretskii <eliz@gnu.org>
6866
6867 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
6868
c26ec07f
LT
68692005-12-30 Luc Teirlinck <teirllm@auburn.edu>
6870
6871 * textprop.c (set_text_properties): Reword description of return value.
6872 Return Qnil if caller wants to remove all text properties from a
6873 string and the string already has no intervals.
6874
0db017c0
SM
68752005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
6876
6877 * term.c (visible_cursor): New boolean var.
6878 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
6879 visible_cursor.
6880 (syms_of_term): Export the new var as "visible-cursor".
6881
fc8dc7cf
EZ
68822005-12-30 Eli Zaretskii <eliz@gnu.org>
6883
6884 * .gdbinit: Tell users not to worry about GDB warnings that some
6885 functions do not exist in the binary.
6886
82a80058
AS
68872005-12-30 Andreas Schwab <schwab@suse.de>
6888
6889 * process.c (Fnetwork_interface_info): Correctly terminate the
6890 loop over ifflag_table.
6891
c36238ee
RS
68922005-12-29 Richard M. Stallman <rms@gnu.org>
6893
d11db2c8
RS
6894 * lread.c (readevalloop): Test for reading a whole buffer
6895 before actually reading anything. Handle all cases, including
6896 START = END = nil and an already-narrowed buffer.
6897 Convert END to a marker if it is a number.
6898
c36238ee
RS
6899 * keymap.c (describe_map): Put sparse map elements into an array,
6900 sort them, then output a sequence of identical bindings on one line.
6901 (struct describe_map_elt): New data type.
6902 (describe_map_compare): New function.
6903
82bc1fd6
JD
69042005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6905
e7b394e1 6906 * gtkutil.c (xg_get_file_with_chooser): Change message shown
82bc1fd6
JD
6907 in file chooser.
6908
fe5195e8
RS
69092005-12-27 Richard M. Stallman <rms@gnu.org>
6910
6281e1e8
RS
6911 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
6912 not the current one.
6913
6914 * minibuf.c (Fminibuffer_message): Doc fix.
6915 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
6916
fe5195e8
RS
6917 * eval.c (do_autoload): Ignore elements of Vautoload_queue
6918 where car is not symbol.
6919
0d9fb289
KH
69202005-12-27 Kenichi Handa <handa@m17n.org>
6921
6922 * charset.c (lisp_string_width): Check multibyteness of STRING.
6923
ff9c9c59
JD
69242005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6925
14a56a1b 6926 * xfns.c (x_show_hidden_files): New variable.
ff9c9c59
JD
6927 (syms_of_xfns): Defvar it.
6928
6929 * gtkutil.c (xg_toggle_visibility_cb): New function.
6930 (xg_get_file_with_chooser): Add toggle hidden files and a message
6931 to the new file chooser dialog. Show hidden files if
6932 x_show_hidden_files is non-zero.
6933
d7504d5c
RS
69342005-12-26 Richard M. Stallman <rms@gnu.org>
6935
6936 * keyboard.h: Undo previous change.
6937
6938 * Makefile.in (undo.o): Undo previous change.
6939
6940 * undo.c: Undo previous change.
6941
0ad017ce
LT
69422005-12-26 Luc Teirlinck <teirllm@auburn.edu>
6943
403c00a5
LT
6944 * keyboard.h: extern last_point_position_window.
6945
0ad017ce
LT
6946 * undo.c: include keyboard.h.
6947
403c00a5 6948 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 6949
91e25f5e
RS
69502005-12-26 Richard M. Stallman <rms@gnu.org>
6951
d7504d5c
RS
6952 * commands.h (last_point_position_window): Declare.
6953
91e25f5e
RS
6954 * undo.c: Depend on window.h.
6955 (record_point): Save old point from the correct window.
6956
6957 * keyboard.c (last_point_position_window): New variable.
6958 (command_loop_1): Set last_point_position_window.
6959 (syms_of_keyboard): Init it.
6960
6961 * Makefile.in (undo.o): Depend on window.h.
6962
cad1051b
RS
69632005-12-25 Richard M. Stallman <rms@gnu.org>
6964
6965 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
6966 to undo a `provide'.
6967
6968 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
6969
d52c26e9
KB
69702005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
6971
6972 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
6973 define for FreeBSD on this platform.
6974
14af1e44
YM
69752005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6976
6977 * macterm.h (TYPE_FILE_NAME): New define.
6978 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
6979
e7b394e1
SM
6980 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
6981 Add prototypes. Make static.
14af1e44
YM
6982 (mac_aedesc_to_lisp): Initialize err to noErr.
6983 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
6984 (init_coercion_handler): New functions.
6985 (Fmac_coerce_ae_data): Use coercion of Apple event data for
6986 translation from/to file names.
6987
6988 * macterm.c: Don't include sys/param.h.
6989 (init_coercion_handler): Add extern.
6990 [MAC_OS8] (main): Call init_coercion_handler.
6991 (mac_initialize) [MAC_OSX]: Likewise.
6992 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
6993 Apple event data for translation from/to file names.
6994
6995 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
6996
6997 * image.c [MAC_OS] (find_image_fsspec): Likewise.
6998
5fed8c15 69992005-12-23 Martin Rudalics <rudalics@gmx.at>
bab3eee1
EZ
7000
7001 * insdel.c (insert, insert_and_inherit, insert_before_markers)
7002 (insert_before_markers_and_inherit): Make sure FROM is correct
7003 when `after-change-functions' are called.
7004
90f2e16b
JD
70052005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7006
7007 * xfns.c (Fx_uses_old_gtk_dialog): New function.
7008
7009 * gtkutil.c (xg_uses_old_file_dialog): New function.
7010 (xg_get_file_name): Use xg_uses_old_file_dialog.
7011
7012 * gtkutil.h: Declare xg_uses_old_file_dialog.
7013
0ee01fff
RS
70142005-12-22 Richard M. Stallman <rms@gnu.org>
7015
7016 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
7017
b73e4d84
YM
70182005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7019
7020 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
7021
7022 * macgui.h (XCharStruct): Remove member `valid_p'.
7023 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
7024 (XCharStructRow): New typedef.
e7b394e1
SM
7025 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
7026 New macros.
b73e4d84
YM
7027 (struct MacFontStruct): Add member `bounds'. Remove member
7028 `per_char'. All uses for QuichDraw Text fonts are changed to
7029 `bounds.per_char'. ATSUI font bounds are represented as an array
7030 `bounds.rows' of XCharStructRow's, each of which consists of a
7031 bitmap of valid entries and an array of char bounds.
7032
7033 * macterm.c (mac_per_char_metric): Add prototype.
7034 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
7035 (mac_query_char_extents): New function.
7036 (x_per_char_metric): Use it.
7037 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
e7b394e1
SM
7038 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
7039 Use mac_per_char_metric instead of x_per_char_metric.
b73e4d84
YM
7040 (mac_text_extents_16): New function.
7041 (mac_compute_glyph_string_overhangs): Use it.
7042 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
7043
a425bd03
SM
70442005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7045
7046 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
7047 (Fminibuffer_completion_help): Remove duplicates before display.
7048
aa0b0cd9
KL
70492005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
7050
ca21600d
JB
7051 * print.c (print_preprocess): Don't lose print_depth levels while
7052 iterating.
aa0b0cd9 7053
5a61ec18
YM
70542005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7055
7056 * macmenu.c (Qmac_apple_event): Add extern.
7057 (set_frame_menubar, mac_menu_show keymp_panes)
7058 (single_keymap_panes, list_of_panes, list_of_item)
7059 (single_menu_item): Add argument types to prototypes.
7060 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
7061 (struct skp): New struct (from xmenu.c).
7062 (single_keymap_panes, single_menu_item, list_of_panes)
7063 (list_of_item): Sync with xmenu.c.
7064 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
7065 POSITION if it is mac-apple-event event.
7066 (menubar_selection_callback): Don't use menu_command_in_progress.
7067 (set_frame_menubar): First parse all submenus, then make
7068 widget_value trees from them. Don't allocate any widget_value
7069 objects until we are done with the parsing.
7070 (parse_single_submenu, digest_single_submenu): New functions.
7071 (single_submenu): Function deleted, replaced by those two.
523fc433
JB
7072 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
7073 or dispose of EventHandlerUPP. Install hander to all submenus.
5a61ec18
YM
7074 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
7075 instead of ENCODE_SYSTEM.
7076 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
7077 integer values.
7078 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
7079 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
7080 format menu item string. Don't use NULL for integer value.
7081
7082 * macterm.h (struct mac_output): Remove unused member
7083 menu_command_in_progress.
7084
3bdba51d
JL
70852005-12-20 Juri Linkov <juri@jurta.org>
7086
7087 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
7088 position is non-nil, else set it to nil.
7089
7090 * macmenu.c (Fx_popup_menu): Add `else' to set
7091 Vmenu_updating_frame to nil only if position is nil.
7092
7093 * w32menu.c (Fx_popup_menu): Add `else' to set
7094 Vmenu_updating_frame to nil only if position is nil.
7095
d6a90a49
YM
70962005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7097
7098 * keyboard.c (make_lispy_event): Drag-and-drop items are now
7099 stored in member `args' of struct input_event.
7100
7101 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
7102
7103 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
7104 stored in member `args' of struct input_event.
7105
7106 * w32term.c (construct_drag_n_drop): Likewise.
7107
7108 * macterm.c (mac_do_receive_drag): Likewise.
7109 (x_use_underline_position_properties): Undo 2005-07-13 change.
7110 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
7111 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
7112 (mac_pass_command_to_system, mac_pass_control_to_system):
7113 New boolean variables renamed from Lisp_Object ones
d6a90a49 7114 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
7115 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
7116 All uses changed.
d6a90a49
YM
7117 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
7118 Make them user options.
a425bd03
SM
7119 (mac_handle_command_event, mac_store_services_event):
7120 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
7121 (backtranslate_modified_keycode): Mask off modifier keys that are
7122 mapped to some Emacs modifiers before passing it to KeyTranslate.
7123 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
7124 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
7125 Fix docstrings of `mac-*-modifier'.
7126
7127 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
7128 (do_applescript): Change argument types to Lisp_Object.
7129 All uses changed.
d6a90a49
YM
7130
7131 * macterm.h (create_apple_event_from_event_ref): Remove 5th
7132 argument from extern.
7133
20d1c5c5
DN
71342005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7135
7136 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
7137 the answer, return `lambda', not nil.
7138
abeb5855
EZ
71392005-12-17 Eli Zaretskii <eliz@gnu.org>
7140
7141 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
7142 enclosed in $(ARGQUOTE)s should not be split between two lines, as
7143 that will break with GNU Make >3.80, when sh.exe is used and
7144 arg quoting is with '..'.
7145
6b8dfbf7
CY
71462005-12-17 Chong Yidong <cyd@stupidchicken.com>
7147
7148 * print.c (print_preprocess): Just signal an error if print_depth
7149 is exceeded.
7150
d912b87a
EZ
71512005-12-17 Eli Zaretskii <eliz@gnu.org>
7152
7153 * .gdbinit: Set a breakpoint on w32_abort.
7154
2a502a32
JL
71552005-12-16 Juri Linkov <juri@jurta.org>
7156
7157 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
7158 created from minibuffer_completion_contents.
7159 (minibuffer_completion_contents): Remove.
7160 (do_completion, Fminibuffer_complete_word)
7161 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
7162 with Fminibuffer_completion_contents.
7163 (syms_of_minibuf): Add Sminibuffer_completion_contents.
7164 (Fdisplay_completion_list): Doc fix.
7165 (display_completion_list_1): Use `nil' for second arg of
7166 `Fdisplay_completion_list'.
7167
bf63eb69
JD
71682005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7169
7170 * xfns.c (compute_tip_xy): Handle negative dx and dy.
7171
a425bd03 7172 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 7173
a425bd03 7174 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 7175
9b98e161
CY
71762005-12-14 Chong Yidong <cyd@stupidchicken.com>
7177
7178 * print.c (print_preprocess): Go to a deeper print_depth to avoid
7179 print_object loop.
7180
89aa725a
KH
71812005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
7182
7183 * coding.c (code_convert_region_unwind): GCPRO arg.
7184
3b006f5b
JD
71852005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7186
57134802
JD
7187 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
7188 i.e. dy is offset from top of frame instead of bottom.
7189
7190 * macfns.c (compute_tip_xy): Ditto.
7191
7192 * w32fns.c (compute_tip_xy): Ditto.
7193
3b006f5b
JD
7194 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
7195 (xg_get_image_for_pixmap, xg_create_frame_widgets)
7196 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
7197
7198 * xmenu.c (menubar_selection_callback): Do nothing if the callback
7199 is for an unselected radio menu item.
7200
2cb33a98
RS
72012005-12-11 Richard M. Stallman <rms@gnu.org>
7202
7203 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
7204
7205 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
7206
7207 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
7208 (Flookup_key): Doc fix.
7209 (syms_of_keymap) <function-key-map>: Doc fix.
7210
7211 * fns.c (Frequire): Treat evaluating from a source file
7212 like loading the file.
7213
7214 * floatfns.c (Flog): Doc fix.
7215
7216 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
7217 when we change the buffer.
7218
d7d1f75e
JL
72192005-12-11 Juri Linkov <juri@jurta.org>
7220
7221 * minibuf.c (display_completion_list_1):
7222 Call `minibuffer_completion_contents' instead of using `nil' as
7223 second arg of `Fdisplay_completion_list'.
7224 (keys_of_minibuf): Unbind SPC in
7225 Vminibuffer_local_filename_completion_map (see also related
7226 change on 2005-12-06).
7227
ac8fcf0f
YM
72282005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7229
7230 * emacs.c (main) [MAC_OS8]: Undo previous change.
7231
7232 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
7233 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
7234
4b3eb407
YM
72352005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7236
7237 * Makefile.in (macselect.o): Depend on keymap.h.
7238
7239 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
7240 syms_of_macselect.
7241
7242 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
7243 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
7244
7245 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
7246 (syms_of_keyboard) [MAC_OS]: Initialize it.
7247 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
7248
7249 * mac.c (Qundecoded_file_name): New variable.
7250 (syms_of_mac): Initialize it.
7251 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 7252 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
7253 (Fmac_coerce_ae_data): New defun.
7254 (syms_of_mac): Defsubr it.
7255
7256 * macselect.c: Include keymap.h.
7257 (mac_ready_for_apple_events): New variable.
7258 (Vmac_apple_event_map, Qmac_apple_event_class)
7259 (Qmac_apple_event_id): New variables.
7260 (syms_of_macselect): Initialize them.
7261 (Qundefined, mac_store_apple_event): Add externs.
7262 (struct apple_event_binding): New struct.
7263 (find_event_binding_fun, find_event_binding)
7264 (mac_find_apple_event_spec, defer_apple_events)
7265 (mac_handle_apple_event, init_apple_event_handler)
7266 (copy_scrap_flavor_data): New functions.
7267 (Fmac_process_deferred_apple_events): New defun.
7268 (syms_of_macselect): Defsubr it.
7269 (mac_store_services_event): Fix extern.
7270 (mac_handle_service_event): Don't allocate Lisp objects during
7271 asynchronous input processing. Use mac_store_services_event
7272 instead of mac_store_application_menu_event.
7273
7274 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
7275 (Qpreferences): Remove variables.
05b33f7c 7276 (syms_of_macterm): Don't initialize them.
4b3eb407
YM
7277 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
7278 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
7279 (init_required_apple_events, do_ae_open_application)
7280 (do_ae_print_documents, do_ae_open_documents)
7281 (do_ae_quit_application): Remove functions and prototypes.
7282 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
7283 (mac_find_apple_event_spec): Add externs.
7284 (mac_store_application_menu_event): Remove function.
7285 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
7286 (mac_handle_command_event): Create Apple event from Carbon event.
7287 Use mac_store_apple_event instead of mac_store_application_menu_event.
7288 [MAC_OSX] (mac_store_services_event): Likewise.
7289 (struct SelectionRange, SelectionRange): Remove struct and typedef.
7290 [MAC_OS8] (main): Call init_apple_event_handler instead of
7291 init_required_apple_events.
7292 (mac_initialize) [MAC_OSX]: Likewise.
e7b394e1
SM
7293 [!USE_CARBON_EVENTS] (mac_wait_next_event):
7294 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4b3eb407 7295
e7b394e1
SM
7296 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
7297 Add externs.
4b3eb407
YM
7298 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
7299 (Fmac_get_preference): Add EXFUN.
7300
7301 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
7302 event.
7303
e358e052
RS
73042005-12-09 Richard M. Stallman <rms@gnu.org>
7305
7306 * xfns.c (Fx_create_frame): Reinstate previous change.
7307
9ea74bfb
EZ
73082005-12-09 Eli Zaretskii <eliz@gnu.org>
7309
7310 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
7311 GDB to the abort dialog.
7312
9dd28cae 73132005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
84fdb82c
KS
7314
7315 * indent.c (Fvertical_motion): Force move if starting on
7316 stretch glyph.
7317
2fda6977
RS
73182005-12-08 Richard M. Stallman <rms@gnu.org>
7319
2663a204
RS
7320 * lread.c (read_escape) <\s>: Don't treat strings specially.
7321
2fda6977
RS
7322 * xfns.c (Fx_create_frame): Comment out previous change.
7323
225c13a5
KL
73242005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
7325
7326 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
7327 when needed.
7328
da8ec671
SM
73292005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
7330
7331 * minibuf.c (keys_of_minibuf): Just unbind SPC in
7332 Vminibuffer_local_filename_completion_map rather than forcing it
7333 explicitly to the same binding as the global map.
7334
88fde92a
KR
73352005-12-06 Ken Raeburn <raeburn@gnu.org>
7336
e7b394e1 7337 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
88fde92a 7338 * bytecode.c (Fbyte_code): Likewise.
e7b394e1 7339 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
88fde92a
KR
7340 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
7341 * undo.c (truncate_undo_list): Likewise.
7342
fa0d4d0c
RS
73432005-12-05 Richard M. Stallman <rms@gnu.org>
7344
7345 * window.c (enlarge_window): Eliminate arg preserve_before.
7346 Assume it is 0. All callers changed.
7347 (Fenlarge_window, Fshrink_window): Likewise.
7348
5a98616e
EZ
73492005-12-02 Eli Zaretskii <eliz@gnu.org>
7350
7351 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
7352 fit below.
7353
1dbacb90
JD
73542005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7355
7356 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
7357
7358 * xfns.c (x_real_positions): int ign => unsigned int.
7359 (xg_set_icon_from_xpm_data): Remove unused variable err.
7360 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
7361 to remove compiler warning.
7362 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
7363
0a79da1b
EZ
73642005-12-02 David Reitter <david.reitter@gmail.com>
7365
7366 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
7367 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
7368 and Vminibuffer_local_must_match_filename_map keymaps.
7369 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
7370
7371 * keymap.c (Vminibuffer_local_filename_completion_map)
7372 (Vminibuffer_local_must_match_filename_map): New variables.
7373 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
7374 parent to be Vminibuffer_local_completion_map and
7375 Vminibuffer_local_must_match_map, respectively.
7376
7377 * commands.h (Vminibuffer_local_filename_completion_map)
7378 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
7379
e67a1dea
SM
73802005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
7381
7382 * window.c (Fset_window_configuration): Don't accidentally copy the
7383 window-point of one window to another.
7384
6ad0f04d
KL
73852005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
7386
7854b2a3 7387 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 7388
4269a2fd
KS
73892005-11-30 Kim F. Storm <storm@cua.dk>
7390
7391 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
7392 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
7393 passing it to `emacs_write'.
7394
96013ba9
SM
73952005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
7396
7397 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
7398
161ef3be
RS
73992005-11-27 Richard M. Stallman <rms@gnu.org>
7400
7401 * window.c (adjust_window_trailing_edge): New function.
7402 (Fadjust_window_trailing_edge): New function.
96013ba9 7403 (syms_of_window): Defsubr it.
161ef3be
RS
7404 (window_deletion_count): New variable.
7405 (delete_window): Update window_deletion_count.
7406
02b1a164
EZ
74072005-11-26 Eli Zaretskii <eliz@gnu.org>
7408
7409 * minibuf.c (syms_of_minibuf): Mention the extension of
7410 `completion-auto-help's meaning by complete.el.
7411
07908aec
EZ
74122005-11-26 Henrik Enberg <henrik.enberg@telia.com>
7413
96013ba9 7414 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
7415 Handle :inherit property as a lisp expression.
7416
b9c7cbf9
YM
74172005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7418
7419 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
7420 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
7421 Qsuper, and Qmodifier_value.
7422 (Vmac_control_modifier, Vmac_option_modifier)
7423 (Vmac_command_modifier, Vmac_function_modifier)
7424 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
7425 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
7426 (Vmac_charset_info_alist): Doc fixes.
7427
2c012c41
YM
74282005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7429
7430 * emacs.c (main) [MAC_OSX]: Change working directory to home
7431 directory if `-psn_*' option is specified.
7432
7433 * mac.c (DECODE_UTF_8): Remove macro.
7434 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
7435 created from cfstring_to_lisp.
7436 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
7437 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
7438
7439 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
7440 Add prototype.
7441
88fde92a 74422005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
7443
7444 * keymap.c (shadow_lookup): Use make_number to pass a number to
7445 Fsubstring.
7446
17c1971a
JL
74472005-11-21 Juri Linkov <juri@jurta.org>
7448
7449 * puresize.h (BASE_PURESIZE): Increment to 1180000.
7450
0268cef3
CY
74512005-11-20 Chong Yidong <cyd@stupidchicken.com>
7452
96013ba9
SM
7453 * xfaces.c (Finternal_set_lisp_face_attribute):
7454 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
7455 supplied.
7456 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
7457 (merge_face_vectors): Don't do :ignore-defface overwriting here.
7458 (Finternal_merge_in_global_face): Do it here.
0268cef3 7459
dd949173
JL
74602005-11-20 Juri Linkov <juri@jurta.org>
7461
7462 * charset.c (invalid_character): Use Lisp-readable syntax
7463 for octal and hex. Reorder decimal, octal and hex values.
7464
76986433
NR
74652005-11-20 Nick Roberts <nickrob@snap.net.nz>
7466
7467 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
7468 this type is recognised when debugging.
7469
603add2d
AS
74702005-11-19 Andreas Schwab <schwab@suse.de>
7471
7472 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
7473 Lisp_Cons and Lisp_Float.
7474
125ce9ec
YM
74752005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7476
7477 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
7478 New variable.
96013ba9 7479 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
7480 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
7481 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
7482 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
7483
2ff10663
CY
74842005-11-17 Chong Yidong <cyd@stupidchicken.com>
7485
96013ba9 7486 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 7487
2ff10663
CY
7488 * xfaces.c (Qignore_defface): New variable.
7489 (syms_of_xfaces): Provide `:ignore-defface'.
7490 (IGNORE_DEFFACE_P): New macro.
05338727
CY
7491 (check_lface_attrs, lface_fully_specified_p)
7492 (Finternal_set_lisp_face_attribute)
96013ba9
SM
7493 (Fface_attribute_relative_p, Fmerge_face_attribute):
7494 Handle Qignore_defface as a possible value.
2ff10663
CY
7495 (merge_face_vectors): The merged face is `unspecified' if the
7496 mergee specifies `:ignore-defface'.
7497
c01f0ed3
SM
74982005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
7499
7500 * lread.c (readevalloop): Add missing GCPROs.
7501
786a43d6
CY
75022005-11-16 Chong Yidong <cyd@stupidchicken.com>
7503
9f7b984b
CY
7504 * xfns.c (xg_set_icon_from_xpm_data): New function.
7505
c01f0ed3
SM
7506 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
7507 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
7508
7509 * xterm.c (x_bitmap_icon): Use the xpm if available.
7510
7511 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 7512 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 7513
8ab84823
LT
75142005-11-15 Luc Teirlinck <teirllm@auburn.edu>
7515
7516 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
7517
3671718b
NR
75182005-11-16 Nick Roberts <nickrob@snap.net.nz>
7519
7520 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
7521
28a099a4
AS
75222005-11-15 Andreas Schwab <schwab@suse.de>
7523
7524 * lisp.h (struct Lisp_Cons): Make cdr a union.
7525 (XCDR_AS_LVALUE): Adjust.
7526 (struct Lisp_Float): Make data a union.
7527 (XFLOAT_DATA): Adjust.
7528
7529 * alloc.c (free_float): Make free list chaining aliasing-safe.
7530 (make_float): Likewise.
7531 (free_cons): Likewise.
7532 (Fcons): Likewise.
7533 (check_cons_list): Likewise.
7534 (Fmake_symbol): Likewise.
7535 (allocate_misc): Likewise.
7536 (free_misc): Likewise.
7537 (gc_sweep): Likewise.
7538
308a6607
YM
75392005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7540
fc09d07f
YM
7541 * mac.c (HASHKEY_QUERY_CACHE): New define.
7542 (xrm_create_database, xrm_q_put_resource): Empty query cache.
7543 (xrm_get_resource): Use query cache.
7544
308a6607
YM
7545 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
7546 inhibit_window_system is set.
7547
29b585db
YM
75482005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7549
7550 * macgui.h (USE_CG_TEXT_DRAWING): New define.
7551 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
7552 and cg_glyphs.
7553
7554 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
7555 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
7556 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
7557 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
7558 not used and font substitution never occurs for ASCII and Latin-1
7559 characters.
7560 (XLoadQueryFont): Maximum and minimum metrics are now those among
7561 ASCII characters.
7562 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
7563 height adjustments for Courier, Helvetica, and Times.
7564
7565 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
7566
9dd28cae 75672005-11-11 David Reitter <david.reitter@gmail.com>
b02e3f7b 7568
dff79d04 7569 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
267ee78f 7570 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
dff79d04
ST
7571 Vmac_control_modifier / mac-control-modifier,
7572 Vmac_option_modifier / mac-option-modifier,
7573 Vmac_command_modifier / mac-command-modifier.
7574 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
7575 variables. Return UInt32 (modifiers are longs now.)
7576 (backtranslate_modified_keycode): New function (refactoring).
7577 (XTread_socket): Use new modifier variables and refactored function.
7578 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
7579 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
7580 (convert_fn_keycode): Map Fn-keys to their original keycode
7581 using a table (english keyboard only).
b02e3f7b 7582
6a77a9f5
KS
75832005-11-11 Kim F. Storm <storm@cua.dk>
7584
ab4d879e
KS
7585 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
7586 Add post hook to "backtrace" to always dump lisp call stack to
7587 increase chance of people sending it to us when reporting bugs.
7588
8c41220c
KS
7589 * doc.c (Fsubstitute_command_keys): Doc fix.
7590
6a77a9f5
KS
7591 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
7592
7593 * xdisp.c (handle_stop): Skip overlay string handling if
7594 ignore_overlay_strings_at_pos_p is set.
7595 (set_iterator_to_next): At end of display vector, set
7596 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
7597 string, so we skip those overlay strings at current pos.
7598
9dd28cae 75992005-11-10 Lars Hansen <larsh@soem.dk>
19a9c3b7
LH
7600
7601 * fileio.c (file-regular-p): Doc fix.
7602
932954d1
KS
76032005-11-10 Kim F. Storm <storm@cua.dk>
7604
7605 * alloc.c (valid_lisp_object_p): New function to validate that
7606 an object is really a valid Lisp_Object.
7607
7608 * lisp.h (valid_lisp_object_p): Add prototype.
7609
7610 * print.c (safe_debug_print): New function to be called from gdb
7611 to print Lisp objects; use valid_lisp_object_p to avoid crashing
7612 if user tries to print something which is not a Lisp object.
7613
7614 * .gdbinit (pp, pp1): Use safe_debug_print.
7615 (pv, pv1): New commands to print value of a lisp variable.
7616
78e5988d
NR
76172005-11-10 Nick Roberts <nickrob@snap.net.nz>
7618
7619 * .gdbinit (pp1): New user-defined function.
7620
f56a5bd8
YM
76212005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7622
7623 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
7624
7625 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
7626 related variables for dumped executable.
7627
7628 * unexmacosx.c (unexec_write_zero): New function.
7629 (copy_data_segment): Clear uninitialized local variables in
7630 statically linked libraries.
7631
7632 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
7633
58b6f884
JL
76342005-11-09 Juri Linkov <juri@jurta.org>
7635
7636 * keymap.c (shadow_lookup): If Flookup_key returns a number,
7637 call it again with a sub-key-sequence, and if its return value
7638 is non-nil (sub-key is bound), return nil.
7639
1f5f957a
KS
76402005-11-08 Kim F. Storm <storm@cua.dk>
7641
7642 * process.c (Fsignal_process): Recognize signal names with and
7643 without SIG prefix, e.g. SIGHUP and HUP.
7644
7645 * search.c (search_buffer): No need to initialize base_pat.
7646
20b69789
SM
76472005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
7648
7649 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
7650 Don't abuse the `mini' arg. Use the `obj' arg instead.
7651
7353f169
KS
76522005-11-04 Kim F. Storm <storm@cua.dk>
7653
7654 * xdisp.c (show_mouse_face): Clear mouse face to eol.
7655
1f7b1131
DN
76562005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
7657
7658 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
7659 font-lock.elc and jit-lock.elc.
7660
e082564e
RS
76612005-11-03 Richard M. Stallman <rms@gnu.org>
7662
7663 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
7664 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
7665 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
7666
7667 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
7668
7669 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
7670
49e99345
SM
76712005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7672
7673 * window.c (Fdisplay_buffer): Fix last change to not use
7674 a dedicated window.
7675
8f15921b
KS
76762005-11-01 Kim F. Storm <storm@cua.dk>
7677
7678 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
7679 Instead, rotate the bottom angle bitmap 180 degrees to indicate
7680 that the bottom row does not end in a newline.
7681
b4235a80
AS
76822005-11-01 Andreas Schwab <schwab@suse.de>
7683
7684 * unexelf.c (unexec): Handle .plt section in BSS segment.
7685
3cbb13c8
SM
76862005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7687
e5f64be2
SM
7688 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
7689
3cbb13c8
SM
7690 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
7691 determine whether to consider dedicated windows as well.
7692 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
7693 (Fdisplay_buffer): Do consider dedicated windows in those cases where
7694 we will split the window rather than reuse it.
7695 Don't try to use windows on other displays.
7696
c94f08ff
DN
76972005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
7698
7699 * puresize.h (BASE_PURESIZE): Increment to 1170000.
7700
edf84ae9
RF
77012005-10-31 Romain Francoise <romain@orebokech.com>
7702
7703 * macfns.c: Update copyright year.
7704 * m/gould.h: Likewise.
7705
6f07f649
KS
77062005-10-30 Kim F. Storm <storm@cua.dk>
7707
7708 * xdisp.c (display_line): Restore it->current_x and call
7709 extend_face_to_end_of_line when last glyph doesn't fit on line.
9dd28cae 7710 (set_glyph_string_background_width): Remove specific tests here
6f07f649
KS
7711 to see if face background should extend to end of line. Simplify.
7712
4d74a5fc
RS
77132005-10-30 Richard M. Stallman <rms@gnu.org>
7714
7715 * alloc.c (BYTES_USED): Use uordblks, not arena.
7716 (bytes_used_when_reconsidered): New variable.
7717 (emacs_blocked_free): Set that.
7718
bccfb310
CY
77192005-10-29 Chong Yidong <cyd@stupidchicken.com>
7720
7721 * alloc.c (emacs_blocked_free): Fix typo.
7722
f5b8d5f2
RS
77232005-10-29 Richard M. Stallman <rms@gnu.org>
7724
4d74a5fc
RS
7725 * data.c (Fmake_variable_frame_local): Doc fix.
7726
f5b8d5f2
RS
7727 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
7728 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
7729 controls whether to save and restore mode_line_proptrans_alist.
7730 Callers changed.
7731 (unwind_format_mode_line): Work with that feature.
7732 (redisplay_internal): Don't call prepare_menu_bars if memory full.
7733 (move_elt_to_front): New function.
7734 (display_mode_element): Use move_elt_to_front.
7735 Don't bother munging text props on a null string.
7736 Delete obsolete elts from mode_line_proptrans_alist.
7737 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 7738 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 7739
49e99345
SM
7740 * lisp.h (memory_full_cons_threshold): Declare.
7741 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
7742
7743 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
7744 (Fmemory_full_p): Function deleted.
7745 (syms_of_alloc): Don't defsubr it.
7746 (memory_full_cons_threshold): New variable.
7747 (spare_memory): Now a vector of 7 elts.
7748 (buffer_memory_full): Don't set Vmemory_full here.
7749 (xfree): Don't try to refill here.
7750 (emacs_blocked_free): Record BYTES_USED in local var.
7751 (memory_full): Now free all the slots in spare_memory.
7752 (refill_memory_reserve): Allocate each slot in spare_memory.
7753 (init_alloc_once): Call refill_memory_reserve.
7754
7755 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
7756
7757 * eval.c (internal_lisp_condition_case): New function.
7758 (Fcondition_case): Use internal_lisp_condition_case.
7759 (Feval): Test Vmemory_full and memory_full_cons_threshold.
7760 (Ffuncall): Likewise.
7761
7762 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
7763
c390e28c
SM
77642005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
7765
7766 * syntax.c (Fparse_partial_sexp): Fix docstring.
7767
ab5d87b3
RF
77682005-10-28 Romain Francoise <romain@orebokech.com>
7769
c390e28c 7770 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 7771
107fb6c9
RS
77722005-10-28 Richard M. Stallman <rms@gnu.org>
7773
7774 * xfns.c (syms_of_xfns): Provide `x' as feature.
7775
7776 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
7777
7778 * editfns.c (Fformat): Don't include string padding
7779 between info[n].start and info[n].end.
7780
7781 * alloc.c (spare_memory): No longer static.
7782 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
7783
c390e28c 7784 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 7785
f351b58b
CY
77862005-10-27 Chong Yidong <cyd@stupidchicken.com>
7787
c390e28c 7788 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 7789
f351b58b
CY
7790 * fringe.c (update_window_fringes): Handle case where buffer ends
7791 with a newline.
7792
581e7427
KH
77932005-10-27 Kenichi Handa <handa@m17n.org>
7794
7795 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
7796
77972005-10-24 Kenichi Handa <handa@m17n.org>
7798
7799 * charset.h (charset_mule_unicode_0100_24ff)
7800 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
7801 Extern them.
7802
7803 * charset.c (charset_mule_unicode_0100_24ff)
7804 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
7805 New variables.
7806 (Fsetup_special_charsets): Initialize them.
7807
7808 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7809 supported Unicode characters.
7810
813fa8a8
JR
78112005-10-25 Jason Rumney <jasonr@gnu.org>
7812
7813 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
7814
05f7d868
YM
78152005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7816
7817 * image.c [MAC_OS] (image_load_qt_1): Check image size.
7818 Use GraphicsImportGetImageDescription instead of
7819 GraphicsImportGetNaturalBounds.
7820 [MAC_OSX] (image_load_quartz2d): Check image size.
7821 [MAC_OS] (xpm_load_image): Likewise.
7822
7823 * macterm.c (last_mouse_glyph_frame): New var.
7824 (note_mouse_movement): Say mouse moved if current frame differs
7825 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
7826 (XTmouse_position): Set last_mouse_glyph_frame.
7827 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 7828 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
7829 Use EndianU16_BtoN.
7830 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
7831 (x_per_char_metric, XLoadQueryFont)
7832 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
7833 glyph bounds.
7834 (mac_to_x_fontname, mac_do_list_fonts)
7835 (mac_initialize_display_info): Change screen resolutions to 72dpi.
7836
128e729d
MY
78372005-10-25 Masatake YAMATO <jet@gyve.org>
7838
7839 * minibuf.c (Fdisplay_completion_list): Small doc fix.
7840
59017afb
KS
78412005-10-24 Kim F. Storm <storm@cua.dk>
7842
94717db1
KS
7843 * xterm.c: Undo 2005-10-23 change.
7844 (last_mouse_glyph_frame): New var.
7845 (note_mouse_movement): Say mouse moved if current frame differs
7846 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
7847 (XTmouse_position): Set last_mouse_glyph_frame.
7848 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
7849 last_mouse_glyph] on mouse up/down event.
7850
59017afb
KS
7851 * editfns.c (Fcompare_buffer_substrings): Fix last change.
7852
7c5ba0d2
SM
78532005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7854
7855 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
7856
a4b0e228
JD
78572005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7858
7859 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
7860 so tool tips don't interfere with press on tool bar button.
7861
f6a18aa2
RS
78622005-10-23 Richard M. Stallman <rms@gnu.org>
7863
7864 * casetab.c (Fset_case_table): Doc fix.
7865
7866 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
7867 (readevalloop): Compute ENTIRE properly.
7868 (syms_of_lread) <load-history>: Doc fix.
7869
45158e77
RS
78702005-10-21 Richard M. Stallman <rms@gnu.org>
7871
7872 * lread.c (Fload): Simplify gcpro structure.
7873 Gcpro FOUND as well as FILE, but not EFOUND.
7874 Unless preloading, record FOUND instead of FILE in Vload_history.
7875 Rename repeat local FILE to MSG_FILE.
7876 (syms_of_lread) <load-history>: Doc fix.
7877
dfa1cd4d
KH
78782005-10-21 Kenichi Handa <handa@m17n.org>
7879
96664fc0 7880 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 7881
1064a9ea
KS
78822005-10-20 Kim F. Storm <storm@cua.dk>
7883
7884 * buffer.c (clone_per_buffer_values): Remove unused var tem.
7885 (init_buffer): Remove unused vars dotstat, pwdstat.
7886
7887 * ccl.c (check_ccl_update): Remove unused var vp.
7888
7889 * fileio.c (auto_save_error): Call SAFE_FREE.
7890
7891 * fns.c (Fchar_table_range): Remove unused var i.
7892
7893 * minibuf.c (display_completion_list_1): New wrapper function
7894 for Fdisplay_completion_list.
7895 (Fminibuffer_completion_help): Use it.
7896
7897 * term.c (encode_terminal_code): Remove unused var src_start.
7898
7899 * window.c (Fwindow_tree): Remove unused var alist.
7900
7901 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
7902
ce13796f
EZ
79032005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
7904
20b69789 7905 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 7906
ad9c16d3
EZ
79072005-10-20 Olli Savia <ops@iki.fi> (tiny change)
7908
7909 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
7910
26e9d2cf
AS
79112005-10-20 Andreas Schwab <schwab@suse.de>
7912
7913 * minibuf.c (Fdisplay_completion_list): Doc fix.
7914
e50165ec
KS
79152005-10-19 Kim F. Storm <storm@cua.dk>
7916
7917 * image.c (check_image_size): Handle integer Vmax_image_size value
7918 directly as max pixel value. Use default frame size for null frame.
7919 (syms_of_image) <max-image-size>: Describe integer value.
7920
d7b94c98
RF
79212005-10-19 Romain Francoise <romain@orebokech.com>
7922
7923 * emacs.c (main): Update copyright year.
7924
f1f25b99
CY
79252005-10-18 Chong Yidong <cyd@stupidchicken.com>
7926
7927 * image.c (Vmax_image_size): New variable.
7928 (check_image_size): New function.
7929 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
7930 (gif_load, gs_load): Use it.
7931 (lookup_image): Try loading again if previous load failed.
7932 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
7933 to display in, NULL if none.
7934 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
7935 argument.
7936
f42d19a2
RS
79372005-10-18 Richard M. Stallman <rms@gnu.org>
7938
7939 * search.c (Fstring_match): Doc fix.
7940
bcbdafce
YM
79412005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7942
7943 * macterm.c (note_mouse_movement): Use PtInRect.
7944 (XTread_socket): Also ignore mouse motion just before a button
7945 release event. Don't process button release event when mouse is
7946 not grabbed.
7947
f5fab556
MY
79482005-10-16 Masatake YAMATO <jet@gyve.org>
7949
7950 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 7951 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
7952 to the optional argument during running `completion-setup-hook'.
7953
2ef1363e
YM
79542005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7955
7956 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
7957 Allow nil as argument.
7958 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
7959 for encoding arguments as UTF-16 in native byte order, no BOM.
7960
7961 * macfns.c (Fx_create_frame): Add debugging code.
7962 (Fx_show_tip): Set frame pixel width and height.
7963
7964 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
7965 (FRAME_NORMAL_GC): New macro.
7966 (mac_draw_line, mac_clear_area, mac_clear_window)
7967 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
7968 (mac_draw_image_string, mac_draw_image_string_16): Rename from
7969 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
7970 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
7971 All uses changed.
7972 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
7973 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
7974 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
7975 (mac_draw_string_16, mac_draw_image_string)
7976 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
7977 (mac_scroll_area): Drawing functions now take frame as destination.
7978 All uses changed.
7979 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
7980 (x_draw_fringe_bitmap): Set clipping area in face->gc.
7981
7982 * macterm.h (mac_clear_area): Add extern.
7983
fc5c7550
YM
79842005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7985
7986 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
7987 changes for xterm.c.
7988
7989 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
7990
fed91c38
KH
79912005-10-14 Kenichi Handa <handa@m17n.org>
7992
7993 * search.c (search_buffer): Give up BM search on case-fold-search
7994 if one of a target character has a case-equivalence of different
7995 charset even if that target charcter is an ASCII.
7996
7997 * casefiddle.c (casify_object): Fix for the case that case
7998 conversion change the byte length.
7999
0ea1a8af
KS
80002005-10-14 Kim F. Storm <storm@cua.dk>
8001
8002 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
8003 (handle_one_xevent): Only clear help_echo_string; restore it if
8004 note_mouse_movement didn't record any mouse movement.
8005
8006 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
8007 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
8008
647b07d1
AS
8009 * keyboard.c (make_lispy_position): Adjust wx for left margin if
8010 ON_TEXT.
0ea1a8af
KS
8011 (Fposn_at_x_y): Fix calculation of x coordinate.
8012 (Fposn_at_point): Return nil if point is hscrolled out of view.
8013
6e5b2385
AS
80142005-10-13 Andreas Schwab <schwab@suse.de>
8015
8016 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
8017 non-interactive mode.
8018
6de0e1a2
YM
80192005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8020
8021 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
8022
78f3b91f
KS
80232005-10-12 Kim F. Storm <storm@cua.dk>
8024
8025 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
8026
b639c9be
RF
80272005-10-12 Romain Francoise <romain@orebokech.com>
8028
8029 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
8030
76d8f04c
YM
80312005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8032
8033 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
8034 get end of text rows. Obtain header-line/mode-line rows directly.
8035
96013ba9
SM
8036 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
8037 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 8038
d76432f5
KS
80392005-10-12 Kim F. Storm <storm@cua.dk>
8040
7a127784
KS
8041 * xdisp.c (remember_mouse_glyph): New generic version based on
8042 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
8043 properly handle all different window areas.
8044
8045 * dispextern.h (remember_mouse_glyph): Add prototype.
8046
8047 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
8048 (note_mouse_movement, XTmouse_position): Use generic
8049 remember_mouse_glyph, add last_mouse_glyph arg.
8050
8051 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
8052 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
8053 (note_mouse_movement, w32_mouse_position): Use generic
8054 remember_mouse_glyph, add last_mouse_glyph arg.
8055
8056 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
8057 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
8058 (XTmouse_position): Adapt to use generic remember_mouse_glyph
8059 instead of pixel_to_glyph_coords.
8060
d76432f5
KS
8061 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
8062 Fix x position for ON_TEXT when left margin width > 0.
8063
55a4ac3e
KS
80642005-10-11 Kim F. Storm <storm@cua.dk>
8065
d76432f5 8066 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
8067
8068 * keyboard.c (make_lispy_position): Fix buffer calculations for
8069 mouse click or movement in right fringe and the margins.
8070
2d4713aa
JB
80712005-10-11 Juanma Barranquero <lekktu@gmail.com>
8072
8073 * image.c (fn_jpeg_stdio_src): Don't define it.
8074 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
8075 (our_common_init_source): Rename from `our_init_source'.
8076 (our_common_term_source): Rename from `our_term_source'.
8077 (our_memory_fill_input_buffer): Rename from
8078 `our_fill_input_buffer'.
8079 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
8080 (jpeg_memory_src): Use the new names.
8081 (struct jpeg_stdio_mgr): New struct.
8082 (JPEG_STDIO_BUFFER_SIZE): New constant.
8083 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
8084 (jpeg_file_src): New functions.
8085 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
8086
71b7a47f
YM
80872005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8088
8089 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
8090 (fm_font_family_alist): New variable.
8091 (syms_of_macterm): Initialize and staticpro it.
8092 (decode_mac_font_name): Replace '-' in family name with '_' if it
8093 occurs just once. Lower family name.
8094 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
8095 All uses changed. Remove argument MF and code conversion for it.
8096 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
8097 to CHARSET. Parse font size. Lower family name. Return integer
8098 value for status of parsing.
8099 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
8100 Don't use Fdowncase because family name is already lowered by
8101 decode_mac_font_name.
96013ba9
SM
8102 (init_font_name_table): Always call decode_mac_font_name.
8103 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
8104 (mac_clear_font_name_table): Clear fm_font_family_alist.
8105 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
8106 Lookup fm_font_family_alist to get font family reference.
8107 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
8108 name is already lowered by parse_x_font_name.
8109
74051a92
KS
81102005-10-11 Kim F. Storm <storm@cua.dk>
8111
31ab1f05
KS
8112 * xterm.c (glyph_rect): Return 0 if position is outside text area.
8113
74051a92
KS
8114 * keyboard.c (make_lispy_position): Fix buffer position calculation for
8115 mouse click or movement in fringe.
8116
9b909870
JR
81172005-10-10 Jason Rumney <jasonr@gnu.org>
8118
8119 * xterm.c (remember_mouse_glyph): New function.
58af5591 8120 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 8121 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 8122 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 8123
f9e36a6d
JD
81242005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8125
58af5591 8126 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 8127
04bc7945
JB
81282005-10-10 Juanma Barranquero <lekktu@gmail.com>
8129
8130 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
8131 (next_frame, prev_frame, set_term_frame_name): Make static.
8132
8133 * window.c (Fwindow_tree): Fix spelling.
8134
41791a20
RF
81352005-10-09 Romain Francoise <romain@orebokech.com>
8136
8137 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
8138
e313fc07
JD
81392005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8140
58af5591
KS
8141 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
8142 Add options -nb, --no-bitmap-icon.
e313fc07
JD
8143
8144 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
8145
61e62f5f
YM
81462005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8147
8148 * macgui.h (MAX_CLIP_RECTS): New define.
8149 (struct _XGC): New member clip_region.
8150 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
8151 clip_rects.
8152
8153 * macterm.c (GC_CLIP_REGION): New macro.
8154 (saved_port_clip_region): New variable.
8155 (mac_begin_clip, mac_end_clip): New functions.
8156 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
8157 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
8158 (mac_copy_area_with_mask, mac_scroll_area): Use them.
8159 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
8160 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
8161 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
8162 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
8163 rectangles stored in gc.
71b7a47f 8164 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
8165 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
8166 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
8167 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
8168 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
8169 (x_draw_bar_cursor): Use them.
8170 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
8171 get multiple clipping rectangles.
8172
8173 * macterm.h (mac_term_init): Add types to extern.
8174 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 8175 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
8176 scroll_bar_background_pixel in #if 0.
8177 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
8178
8179 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 8180 Add debugging code.
61e62f5f 8181
ef1b4c9e
KS
81822005-10-08 Kim F. Storm <storm@cua.dk>
8183
8184 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
8185
f1010549
KS
81862005-10-07 Kim F. Storm <storm@cua.dk>
8187
8188 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
8189 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
8190 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
8191
c2ded1b7
YM
81922005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8193
8194 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
8195 to for_overlaps. Now occupy 3 bits.
8196 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
8197 (OVERLAPS_ERASED_CURSOR): New defines.
8198 (struct redisplay_interface): Add new OVERLAPS arg to member
8199 fix_overlapping_area.
8200 (x_fix_overlapping_area): Add new OVERLAPS arg.
8201 (get_glyph_string_clip_rects): Add extern.
8202
96013ba9
SM
8203 * dispnew.c (redraw_overlapping_rows):
8204 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
8205
8206 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
8207 for_overlaps.
8208 (get_glyph_string_clip_rects): New function created from
f1010549
KS
8209 get_glyph_string_clip_rect. Set clipping rectangles according to the
8210 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
8211 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
8212 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
8213 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 8214 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 8215 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
8216 calculating clipping rectangles later. Call x_fix_overlapping_area
8217 with new OVERLAPS arg to draw only erased cursor area.
f7270128 8218 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 8219 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
8220
8221 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
8222 struct glyph_string to for_overlaps.
8223
a19a0003
RS
82242005-10-04 Richard M. Stallman <rms@gnu.org>
8225
8226 * alloc.c (refill_memory_reserve): Conditionalize the body,
8227 not the function's existence.
8228
abc8ce50
KS
82292005-10-04 Kim F. Storm <storm@cua.dk>
8230
8231 * window.c (window_split_tree): New function.
8232 (Fwindow_split_tree): New defun.
8233 (syms_of_window): Defsubr it.
8234
66533b25
YM
82352005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8236
8237 * macterm.c (mac_invert_rectangle): New function.
8238 (XTflash): Use it.
8239
4156359e
SM
82402005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
8241
4e2f601f
SM
8242 * regex.h (re_char): Don't expose it in the interface.
8243 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
8244
8245 * regex.c (re_char): Move it back here.
8246 (re_set_whitespace_regexp): Change the arg's type to not use it.
8247
4156359e
SM
8248 * keyboard.c (make_lispy_event): If point has moved between down and up
8249 event, make it a drag, not a click, to mirror what
8250 mouse-drag-region expects.
8251
eb27c2ca
DN
82522005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8253
8254 * lisp.h (fatal): Undo previous change.
8255 * term.c (fatal): Undo previous change.
8256
b059f7d0
RS
82572005-10-01 Richard M. Stallman <rms@gnu.org>
8258
8259 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
8260
21a9a7be
KS
82612005-10-01 Kim F. Storm <storm@cua.dk>
8262
8263 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
8264
ddcb7665
YM
82652005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8266
8267 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
8268
8269 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 8270 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
8271 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
8272 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
8273
8274 * macgui.h (struct _XCharStruct): New member valid_p.
8275 (STORE_XCHARSTRUCT): Set valid_p.
8276 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
8277
8278 * macterm.c (mac_draw_string_common, x_per_char_metric)
8279 (mac_compute_glyph_string_overhangs, init_font_name_table)
8280 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
8281 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
8282 (x_draw_glyph_string_background)
8283 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
8284 XDrawImageString. Always draw background and foreground separately.
8285 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
8286 functions for one-byte chars when using ATSUI-compatible fonts.
8287 (atsu_font_id_hash) [USE_ATSUI]: New variable.
8288 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
8289 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
8290 max_char_or_byte2 more in detail.
8291 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
8292
fa8459a3
DN
82932005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
8294
4156359e 8295 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
8296 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
8297
8298 * unexelf.c (fatal): Fix prototype.
8299
8300 * term.c (fatal): Implement using varargs.
8301
21a9a7be 8302 * regex.c (re_char): Move typedef ...
fa8459a3 8303 * regex.h (re_char): ... here.
4156359e 8304 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
8305
8306 * emacs.c (malloc_set_state): Fix return type.
8307 (endif): Fix type.
8308
8309 * lisp.h (fatal): Add argument types.
8310
8311 * dispextern.h (fatal): Delete prototype.
8312
9dd28cae 8313 * systime.h (make_time): Prototype moved from ...
fa8459a3
DN
8314 * editfns.c (make_time): ... here.
8315
8316 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
8317 * dired.c:
8318 * xsmfns.c:
fa8459a3 8319 * process.c: Likewise.
21a9a7be 8320
fa8459a3
DN
8321 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
8322 Add parameter types.
8323 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
8324 (emacs_blocked_free): Change definition to match __free_hook.
8325 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 8326 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 8327
97c3e4cc
RF
83282005-09-30 Romain Francoise <romain@orebokech.com>
8329
8330 * minibuf.c (Fread_buffer): Follow convention for reading from the
8331 minibuffer with a default value. Doc fix.
8332
8ad8c5ce
JL
83332005-09-29 Juri Linkov <juri@jurta.org>
8334
8335 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
8336 Rename argument name `string' to `format-string'.
8337 (Fformat): Doc fix.
8338
64da5759
KS
83392005-09-28 Kim F. Storm <storm@cua.dk>
8340
8341 * image.c (gif_load): Fix size of allocated image buffer
8342 for images where a sub-image may be larger than the image's
8343 total height/width specifications.
8344
eaf92438
YM
83452005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8346
8347 * macgui.h (struct _XCharStruct): Each member now takes short value.
8348
43f15d4a
DN
83492005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
8350
8351 * xfaces.c (lookup_derived_face): Add parameter type.
8352
8353 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
8354
8355 * marker.c (verify_bytepos): Add parameter type.
8356
8357 * process.c (get_operating_system_release): Move prototype ...
8358
8359 * systime.h (get_operating_system_release): ... here.
8360
04bc7945
JB
8361 * xterm.c (handle_one_xevent): Refer to union field to match the
8362 type required by the function definition.
8363 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
8364
8365 * xterm.h: ... here.
8366
8367 * fns.c (internal_equal, seed_random): Fix prototypes.
8368 (internal_equal): Add missing parameter.
8369
c769dcac
RS
83702005-09-25 Richard M. Stallman <rms@gnu.org>
8371
8372 * keyboard.c (update_menu_bindings): Variable deleted.
8373 (syms_of_keyboard): Don't defvar it.
8374 (parse_menu_item): Don't test it.
8375
8dbf19c7
RS
83762005-09-23 Richard M. Stallman <rms@gnu.org>
8377
8378 * editfns.c (Fformat): Explicitly test for end of format string
8379 and don't use `index'.
8380
3480d92b
DN
83812005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
8382
4156359e
SM
8383 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
8384 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
8385
8386 * sysdep.c (get_current_dir_name): Also define if
64da5759 8387 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
8388
8389 * m/ibmrs6000.h: Test for USG5, not USG5_4.
8390
5db60f31
KS
83912005-09-22 Kim F. Storm <storm@cua.dk>
8392
8393 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
8394 (message2): Fix commentary. Ok to use alloca'ed memory.
8395 Still not ok to use Lisp string data (because of GC).
8396 (set_message): Add comment why GC cannot happen.
8397
7c3d233d
YM
83982005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8399
8400 * macterm.c (xlfdpat_block_match_1): Fix assertion.
8401 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
8402 variants for a scalable font multiple times.
8403
acde1152
YM
84042005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8405
8406 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
8407 Setup slave tty options before forking.
8408
52d166e0
JD
84092005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8410
8411 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
8412 positions have been set for the frame (as is done for frames in
8413 special-display-buffer-names).
8414
12d10bc7
KS
84152005-09-19 Kim F. Storm <storm@cua.dk>
8416
8417 * editfns.c (Fformat): Don't scan past end of format string that
1faa97e4 8418 ends in %. Reported by Johan Bockg\e,Ae\e(Brd.
12d10bc7 8419
9f1cf0e3
AS
84202005-09-18 Andreas Schwab <schwab@suse.de>
8421
8422 * window.h (struct window): Remove height_fixed_p, no longer set.
8423
8424 * window.c (make_window): Don't initialize height_fixed_p.
8425 (window_fixed_size_p): Don't use it.
8426
8a658a52
JPW
84272005-09-18 John Paul Wallington <jpw@pobox.com>
8428
8429 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
8430
be9bb408
YM
84312005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8432
8433 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
8434
8435 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
8436 New variables.
8437 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
8438 file selection.
8439
8440 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
8441
cbf223e1
EZ
84422005-09-17 Eli Zaretskii <eliz@gnu.org>
8443
8444 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
8445 (obj): Use XMENU_OBJ, not a literal xmenu.o.
8446
e3f509dd
RF
84472005-09-16 Romain Francoise <romain@orebokech.com>
8448
8ccd3630 8449 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 8450
5c4757d3
RS
84512005-09-15 Richard M. Stallman <rms@gnu.org>
8452
8453 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
8454 (display_mode_element): Instead of `lisp_string' and `this',
8455 record `offset' and increment that.
8456 `last_offset' replaces `last'.
8457
8458 * Makefile.in (XMENU_OBJ): Variable deleted.
8459 (obj): Use xmenu.o unconditionally.
8460 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
8461
8462 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
8463
01978521
KS
84642005-09-15 Kim F. Storm <storm@cua.dk>
8465
8466 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
8467 (reseat_at_next_visible_line_start): Likewise (in xassert).
8468
ccf61795
RF
84692005-09-14 Romain Francoise <romain@orebokech.com>
8470
8471 * fileio.c (write_region_inhibit_fsync): New variable.
8472 (Fwrite_region): Use it to skip call to fsync.
8473 (syms_of_fileio): Initialize it.
8474
2b046a72
KH
84752005-09-14 Kenichi Handa <handa@m17n.org>
8476
24a2b282
KH
8477 * coding.c (code_convert_region_unwind): Argument format changed.
8478 (run_pre_post_conversion_on_str): If pre-write-conversion function
8479 changed the current buffer, delete the new buffer.
8480 (run_pre_write_conversin_on_c_str): Likewise.
8481
2b046a72
KH
8482 * fileio.c (Fexpand_file_name): Check multibyteness of
8483 default_directory.
8484
d008f7b7
KH
84852005-09-13 Kenichi Handa <handa@m17n.org>
8486
8487 * composite.c (compose_chars_in_text): Delete it.
8488
8489 * composite.h (compose_chars_in_text): Delete extern.
8490
2ada8ac5
KS
84912005-09-13 Kim F. Storm <storm@cua.dk>
8492
8493 * print.c (print_error_message): Fix last change.
8494
48c60938
KS
84952005-09-12 Kim F. Storm <storm@cua.dk>
8496
0fdbe302
KS
8497 * composite.c (compose_chars_in_text): Fix setup of `pend'.
8498 Unconditionally reload `ptr' and `pend' after eval.
8499
48c60938
KS
8500 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
8501
8502 * print.c (print_error_message): Pass copy of caller name to
8503 message_dolog.
8504
8505 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
8506
5add1986
KH
85072005-09-12 Kenichi Handa <handa@m17n.org>
8508
8509 * xdisp.c (display_mode_element): Be sure to make variables THIS
8510 and LISP_STRING point into a string data of ELT.
8511
18bb66c7
KS
85122005-09-12 Kim F. Storm <storm@cua.dk>
8513
8514 * editfns.c (Ftranslate_region_internal): Reload `tt' after
8515 signal_after_change that may have GC'ed.
8516 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
8517
8518 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
8519 after insert while runs signal_after_change.
8520
8521 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
8522 declaration to where it is used.
8523
8524 * w32.c (check_windows_init_file): Fix allocation of error buffer.
8525
8526 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
8527 (x_set_name_internal): Call x_encode_text with new FREEP arg to
8528 know if xfree is needed instead of guessing.
8529
8530 * xterm.h (x_encode_text): Remove prototype.
8531
945a75f8
JR
85322005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
8533
8534 * w32term.c (x_bitmap_icon): Load small icons too.
8535
156bdb41
RF
85362005-09-10 Romain Francoise <romain@orebokech.com>
8537
8538 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 8539 and terminal zero. Fix typos.
156bdb41 8540
67b8391b
EZ
85412005-09-10 Eli Zaretskii <eliz@gnu.org>
8542
a17b5ed1
EZ
8543 * buffer.c (init_buffer): Fix error message for failed call to
8544 get_current_dir_name.
8545 (get_current_dir_name): Remove prototype.
8546
9dd28cae 8547 * xsmfns.c (get_current_dir_name): Remove prototype.
a17b5ed1 8548
9dd28cae 8549 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
96013ba9 8550 Add prototype.
a17b5ed1 8551
ed326e35 8552 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 8553 Don't #undef NULL after including blockinput.h.
ed326e35 8554
67b8391b
EZ
8555 * config.in: Regenerated.
8556
c187839d
EZ
85572005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
8558
8559 Remove the MAXPATHLEN limitations:
8560
1486d036
EZ
8561 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
8562 New function.
c187839d
EZ
8563
8564 * buffer.c (init_buffer): Use it.
8565
8566 * xsmfns.c (smc_save_yourself_CB): Ditto.
8567
ae8a5689
KS
85682005-09-09 Kim F. Storm <storm@cua.dk>
8569
39cac6b3
KS
8570 * doc.c (Fsubstitute_command_keys): Lookup key binding for
8571 commands that are remapped from some other command.
8572
aeb55c44
KS
8573 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
8574 flag in disabled rows below the window.
8575
ae8a5689
KS
8576 * frame.h (struct frame): New member updated_p.
8577
8578 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
8579 member. Remove local `updated' array and associated variables.
8580
821f6dae
KS
85812005-09-07 Kim F. Storm <storm@cua.dk>
8582
6e5395f2
KS
8583 * xdisp.c (handle_display_prop): Respect overlay window property.
8584
821f6dae
KS
8585 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
8586 Fixes crash reported by YAMAMOTO Mitsuharu.
8587
9655b404
YM
85882005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8589
8590 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
8591 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
8592 (xlfdpat_block_match_1, xlfdpat_match): New functions.
8593 (xlfdpat_block_match): New macro.
8594 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
8595 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
8596 (add_font_name_table_entry): Increase font_name_table_size more
8597 rapidly.
8598 (mac_c_string_match): Remove function.
8599 (mac_do_list_fonts): Use XLFD pattern match instead of regular
8600 expression match.
8601
8602 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
8603
d7ea8b71
RS
86042005-09-03 Richard M. Stallman <rms@gnu.org>
8605
8606 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
8607 (move_it_in_display_line_to): Stop after last char on line even
8608 on a windowing terminal, if that's the specified stop position.
8609
8610 * fns.c (Fsort): Doc fix.
8611
8612 * editfns.c (Fpropertize): Don't insist that properties be symbols.
8613
1550ae60
SM
86142005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
8615
8616 * dired.c (directory_files_internal_unwind, directory_files_internal)
8617 (file_name_completion): Use a Save_Value object rather than a cons of
8618 two 16bit ints to store the DIR*.
8619 (directory_files_internal, file_name_completion): Handle both EINTR and
8620 EAGAIN consistently after `readdir'.
8621
bdb4d6d8
SM
86222005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
8623
1550ae60
SM
8624 * intervals.c (update_interval): Add position info in error.
8625
bdb4d6d8
SM
8626 * dispnew.c (window_to_frame_hpos, update_window):
8627 Avoid gcc warning about unused variable `f'.
8628
6bcc3ca4
JR
86292005-08-31 Jason Rumney <jasonr@gnu.org>
8630
8631 * w32menu.c (add_menu_item): If unicode_append_menu returns an
8632 error, revert to using AppendMenu.
8633
07c5948c
YM
86342005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8635
bdb4d6d8
SM
8636 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
8637 All uses changed.
07c5948c
YM
8638 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
8639 cases.
8640 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
8641 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
8642 Use posix_pathname_to_fsspec.
07c5948c
YM
8643 [MAC_OS] (xpm_load_image): Fill in background_transparent field
8644 while we have mask.
8645
8646 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
8647
8648 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
8649
5a774522
SM
86502005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8651
8652 * syntax.c (update_syntax_table): Properly reproduce the special +1
8653 setting of e_property at the end of the buffer when bumping into the
8654 INTERVALS_AT_ONCE limit.
8655
0fb57cc0
EZ
86562005-08-27 Eli Zaretskii <eliz@gnu.org>
8657
8658 * emacs.c (USAGE1): Fix the description of the -Q option.
8659
5a774522
SM
86602005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
8661
8662 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
8663
4e6b8c5a
KS
86642005-08-26 Kim F. Storm <storm@cua.dk>
8665
8666 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
8667 Don't move PT to new window start.
8668
1f98fbb4
YM
86692005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8670
8671 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
8672 ICONIFY/DEICONIFY_EVENT.
8673
5a774522
SM
8674 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
8675 Restore background color.
1f98fbb4
YM
8676 (mac_handle_visibility_change): New function.
8677 (x_make_frame_invisible, x_iconify_frame)
8678 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
8679 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 8680 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
8681 (x_make_frame_visible): Don't reposition window if it is iconified
8682 or asked for visible before. Select and uncollapse window when it
8683 is made visible.
8684 (x_make_frame_invisible): Don't reset x_highlight_frame.
8685 (x_iconify_frame): Likewise. Make invisible frame visible before
8686 it is iconified.
8687 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
8688 (do_window_update): Don't change visibility of invisible frame.
8689
16691d29
JL
86902005-08-22 Juri Linkov <juri@jurta.org>
8691
8692 * term.c (turn_on_face): Check for TS_set_foreground and
8693 TS_set_background depending on standout_mode. Simplify.
8694
7c3f805b
KS
86952005-08-21 Kim F. Storm <storm@cua.dk>
8696
0f467468
KS
8697 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
8698 bitmaps on fully visible rows.
8699
7c3f805b
KS
8700 * fringe.c (update_window_fringes): Replace FORCE_P arg with
8701 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
8702 and return 0.
8703
8704 * xdisp.c (redisplay_window): Call update_window_fringes with
8705 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
8706
40b388f9
RS
87072005-08-20 Richard M. Stallman <rms@gnu.org>
8708
8709 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
8710 (resize_mini_window): Set w->start, and PT, so as to display the tail
8711 end of the buffer, if it doesn't all fit.
8712
581360f0
KS
87132005-08-18 Kim F. Storm <storm@cua.dk>
8714
8715 * xdisp.c (calc_pixel_width_or_height): Use actual display
8716 resolution when available instead of Vdisplay_pixels_per_inch.
8717
0eefa6fb
KS
87182005-08-17 Kim F. Storm <storm@cua.dk>
8719
8720 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
8721
8722 * dispnew.c (buffer_posn_from_coords): Check that target row is
8723 within matrix.
8724
ada192ba
JD
87252005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8726
8727 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
8728 xg_set_frame_icon and call it.
8729
8730 * gtkutil.c (xg_set_frame_icon): New function.
8731
0eefa6fb 8732 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 8733
ab89a403
KS
87342005-08-16 Kim F. Storm <storm@cua.dk>
8735
8736 * dispnew.c (increment_row_positions): Skip non-enabled rows.
8737
8738 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
8739 (Fcurrent_window_configuration): Use VECSIZE macro instead.
8740
8d34b5e1
RS
87412005-08-15 Richard M. Stallman <rms@gnu.org>
8742
8743 * xdisp.c (message3_nolog): Clear echo_message_buffer.
8744
71e37f3c
KS
87452005-08-15 Kim F. Storm <storm@cua.dk>
8746
0781c303
KS
8747 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
8748
71e37f3c
KS
8749 * process.c (deactivate_process, status_notify, read_process_output)
8750 (update_status, status_convert, decode_status, allocate_pty)
8751 (make_process, remove_process, list_processes_1)
8752 (create_process_1, unwind_request_sigio, read_process_output)
8753 (send_process, keyboard_bit_set): Declare static.
8754 (Fdelete_process): Simplify. Pass process to status_notify, so we
8755 don't try to read output from it.
8756 (status_notify): New arg deleting_process--don't try to read
8757 output from that process.
8758
8759 * lisp.h (deactivate_process, status_notify, read_process_output):
8760 Remove prototypes.
8761
0bf14bfd
RS
87622005-08-14 Richard M. Stallman <rms@gnu.org>
8763
bdb4d6d8
SM
8764 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
8765 define_image_type.
0bf14bfd 8766
6c7eb721
JD
87672005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8768
8769 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
8770 (xg_get_image_for_pixmap): Move some code to
8771 xg_get_pixbuf_from_pix_and_mask, and call it.
8772
8773 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
8774
8775 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
8776 to get an GTK icon and set it with GTK functions to avoid having GTK
8777 override an icon set with just X functions.
8778
6e2d14c8
RS
87792005-08-11 Richard M. Stallman <rms@gnu.org>
8780
bdb4d6d8
SM
8781 * image.c (syms_of_image): Init image_types here, and call
8782 define_image_type.
6e2d14c8
RS
8783 (init_image): Not here.
8784
61298e17
RS
87852005-08-09 Richard M. Stallman <rms@gnu.org>
8786
8787 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
8788
8789 * lisp.h (QUIT): Throw t to Vthrow_on_input.
8790
5a9807a8
TTN
87912005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
8792
8793 * floatfns.c (Fexpt): Use floats for negative exponent.
8794
93469010
JD
87952005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8796
8797 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
8798 should not be there, causing menu display errors with GTK 2.6.9.
8799
44edd521
RS
88002005-08-07 Richard M. Stallman <rms@gnu.org>
8801
8b6a9551
RS
8802 * floatfns.c (Fexpt): Undo previous change.
8803
44edd521
RS
8804 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
8805 so it can be used with various state vectors.
8806
8807 * emacs.c (endif): Convert -script into -scriptload.
8808 (standard_args): Add -scriptload. Allow -basic-display with one dash.
8809
8810 * fns.c (syms_of_fns): Add `emacs' to features.
8811
8812 * term.c (set_terminal_modes): If no TS_termcap_modes string,
8813 output newlines to scroll the old screen contents off the screen.
8814
cac87e30
TTN
88152005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
8816
2a205424
TTN
8817 * floatfns.c (Fexpt): Use floats for negative exponent.
8818 Reported by D Goel.
cac87e30 8819
31b7cc74
JB
88202005-08-02 Richard M. Stallman <rms@gnu.org>
8821
8822 * frame.c (Fframe_char_width): Doc fix.
8823
e2b64074
JB
88242005-07-30 Juanma Barranquero <lekktu@gmail.com>
8825
8826 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
8827 Defvar it.
8828
0962822d
JB
88292005-07-28 Juanma Barranquero <lekktu@gmail.com>
8830
8831 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
8832 (my_create_window, my_create_tip_window): Make static.
8833
8834 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
8835 (my_set_foreground_window, my_destroy_window): Make static.
8836
9eff9fe3
PE
88372005-07-26 Paul Eggert <eggert@cs.ucla.edu>
8838
8839 Merge gnulib getopt implementation into Emacs.
8840
8841 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
8842 now part of lib-src.
8843
1c9916a1
SM
88442005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
8845
8846 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
8847
94c7f257
JR
88482005-07-25 Jason Rumney <jasonr@gnu.org>
8849
8850 * w32menu.c (w32_menu_display_help): Suppress tooltip when
8851 navigating menus with the keyboard.
8852
bf0bf758
RS
88532005-07-23 Richard M. Stallman <rms@gnu.org>
8854
8855 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
8856
8857 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
8858 gc_relative_threshold, one by one.
8859
8860 * keyboard.c (read_char): Test gc_cons_threshold.
8861 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
8862
8863 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
8864 gc_relative_threshold, one by one.
8865
8866 * alloc.c (gc_cons_threshold): Not static.
8867 (gc_cons_combined_threshold): Var deleted.
8868 (gc_relative_threshold): New variable.
8869 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
8870 instead of gc_cons_combined_threshold.
8871
1c9916a1 8872 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
8873 (gc_cons_combined_threshold): Declaration deleted.
8874
99f963e4
YM
88752005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8876
8877 * mac.c: Don't include stdlib.h or string.h.
8878 (Fdo_applescript, Fmac_file_name_to_posix)
8879 (Fmac_file_name_to_posix): Doc fixes.
8880 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
8881 (Fmac_code_convert_string): Likewise.
8882 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
8883 if the executable is not contained in a bundle.
8884
8885 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
8886 (gray_width, gray_height): Remove defines.
8887 (gray_bits, gray_bitmap_width, gray_bitmap_height)
8888 (gray_bitmap_bits): Remove variables.
8889 (lispy_function_keys): Remove extern.
8890 (free_frame_menubar): Add extern.
8891 (x_window_to_frame): Remove function.
8892 (unwind_create_tip_frame): Add declaration.
8893 (x_set_name_internal): New function.
8894 (x_set_name, x_set_title): Use it.
8895 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
8896 (Fx_display_pixel_height, Fx_display_planes)
8897 (Fx_display_color_cells, Fx_server_max_request_size)
8898 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8899 (Fx_display_mm_height, Fx_display_mm_width)
8900 (Fx_display_backing_store, Fx_display_visual_class)
8901 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
8902
8903 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8904
bdb4d6d8 8905 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
8906 (Fx_get_selection_internal, Fx_selection_owner_p)
8907 (Fx_selection_exists_p): Doc fixes.
8908 (syms_of_macselect) <selection-converter-alist>: Likewise.
8909
1d256714
JB
89102005-07-21 Juanma Barranquero <lekktu@gmail.com>
8911
8912 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
8913
8914 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
8915 (Fccl_execute_on_string): Likewise; add usage info.
8916
8917 * composite.c (Fcompose_region_internal)
8918 (Fcompose_string_internal):
8919 Improve argument/docstring consistency.
8920
8921 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
8922 Fix typos in docstrings.
8923
8924 * textprop.c (Fnext_char_property_change)
8925 (Fprevious_char_property_change): Doc fixes.
8926
8927 * window.c (Fset_window_margins, Fset_window_fringes):
8928 Improve argument/docstring consistency.
8929
8930 * xfaces.c (Finternal_lisp_face_p): Doc fix.
8931
538f78c3
AS
89322005-07-21 Andreas Schwab <schwab@suse.de>
8933
8934 * eval.c (restore_stack_limits): Return a value.
8935
a5b5bf44
JB
89362005-07-20 Juanma Barranquero <lekktu@gmail.com>
8937
8938 * eval.c (Fdefvar): Doc fix.
8939
ae643123
KS
89402005-07-20 Kim F. Storm <storm@cua.dk>
8941
0ed4bf15
KS
8942 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
8943 Use make_save_value to unwind protect stream.
8944
8945 * lread.c (Fload, load_unwind):
8946 Use make_save_value to unwind protect stream.
ae643123 8947
82fc29a1
JB
89482005-07-19 Juanma Barranquero <lekktu@gmail.com>
8949
8950 * eval.c (Fprog2, Fcalled_interactively_p),
8951 (syms_of_eval) <debug-on-quit>: Doc fixes.
8952 (syms_of_eval) <max-specpdl-size>:
8953 (Finteractive_p): Fix typos in docstrings.
8954
73b90087
KS
89552005-07-19 Kim F. Storm <storm@cua.dk>
8956
8957 * w32fns.c (Vx_hand_shape): Variable removed.
8958 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
8959
dfc434d0
KH
89602005-07-19 Kenichi Handa <handa@m17n.org>
8961
bdb4d6d8 8962 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 8963
bcd98331
SM
89642005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
8965
8966 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
8967
2a85a754
KS
89682005-07-18 Kim F. Storm <storm@cua.dk>
8969
8970 * frame.h (struct frame): New member already_hscrolled_p.
8971
8972 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
8973 to avoid redisplay looping hscrolling back and forth ad infinitum.
8974
426179e1
JL
89752005-07-18 Juri Linkov <juri@jurta.org>
8976
8977 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
8978 * keymap.c (Fminor_mode_key_binding):
8979 * macterm.c (mac-emulate-three-button-mouse):
8980 Delete duplicate duplicate words.
8981
9f4a578d
KR
89822005-07-18 Ken Raeburn <raeburn@gnu.org>
8983
8984 * minibuf.c (Ftest_completion): Fix odd syntax in test.
8985
d005338b
YM
89862005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8987
bcd98331 8988 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
8989
8990 * macgui.h (struct _XGC): New struct.
8991 (GC): Use it.
8992 (GCForeground, GCBackground, GCFont): Use X11 mask values.
8993 (XCreateGC, XParseGeometry): Move externs to macterm.h.
8994
bcd98331 8995 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 8996 (XSetFont): Add declaration.
bcd98331
SM
8997 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
8998 Remove functions.
8999 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
9000 New defines.
d005338b
YM
9001 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
9002 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
9003 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
9004 Use them.
d005338b
YM
9005 (mac_erase_rectangle): New function.
9006 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
9007 (x_draw_stretch_glyph_string): Use it.
9008 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
9009 (XSetBackground, XSetFont): Adjust for new GC implementation.
9010 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
9011 (XTset_vertical_scroll_bar): Clear area under scroll bar.
9012
9013 * macterm.h (struct mac_display_info): Change types of
9014 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
9015 (XCreateGC, XParseGeometry): Move externs from macgui.h.
9016
9017 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
9018
9b0c2c56
RS
90192005-07-16 Richard M. Stallman <rms@gnu.org>
9020
9021 * buffer.c (Fmake_overlay): Doc fix.
9022
2e9c1c6d
EZ
90232005-07-16 Eli Zaretskii <eliz@gnu.org>
9024
9025 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
9026 Vw32_valid_locale_ids, and Vw32_valid_codepages.
9027
407289a4
YM
90282005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9029
bcd98331
SM
9030 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
9031 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 9032
e4b477a1
RS
90332005-07-15 Richard M. Stallman <rms@gnu.org>
9034
9035 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
9036
a8613adf
KS
90372005-07-15 Kim F. Storm <storm@cua.dk>
9038
9039 * xdisp.c: Fix redisplay loop in last change.
9040 (IT_POS_VALID_AFTER_MOVE_P): New macro.
9041 (move_it_vertically_backward, move_it_by_lines): Use it.
9042
2d5324c5
JR
90432005-07-14 Jason Rumney <jasonr@gnu.org>
9044
9045 * w32.c (init_environment): Default HOME directory to user's
9046 appdata directory if possible.
9047
3ed70dc4
KS
90482005-07-14 Kim F. Storm <storm@cua.dk>
9049
7b9389b0
KS
9050 * .gdbinit (pitx): Fix output format. Print string charpos.
9051
3ed70dc4
KS
9052 * lread.c (syms_of_lread): Initialize seen_list.
9053
9054 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
9055
9056 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
9057 Staticpro re_match_object.
9058
ef029e5a
YM
90592005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9060
9061 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
9062 dereference.
9063
9064 * macterm.c (mac_window_to_frame): Remove duplicate define.
9065
16ef9c56
KH
90662005-07-14 Kenichi Handa <handa@m17n.org>
9067
9068 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 9069 (code_convert_region): Adjust for the above change.
16ef9c56
KH
9070 (set_conversion_work_buffer): If the work buffer is already in
9071 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 9072 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
9073 (run_pre_write_conversin_on_c_str): Likewise.
9074
098e1273
KS
90752005-07-13 Kim F. Storm <storm@cua.dk>
9076
010b9a45
KS
9077 * xdisp.c (start_display): Don't reseat to next visible line start
9078 if current start position is in a string or image.
9079 (move_it_vertically_backward): Be sure to move out of strings and
9080 images when moving it2 forward.
9081 (move_it_by_lines): When moving forward, move to next buffer
9082 position if we end up in a string or image. When moving backward,
9083 count rows moved over when moving to start of current row in case
9084 row starts in middle of a string or image. Also move further
9085 backward if we end up in a string or image.
bcd98331 9086 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
9087 move backward to set cursor on start of an overlay string.
9088 (cursor_row_p): Row is ok if cursor is at newline from string, but
9089 string starts on this line (so we always position cursor at start
9090 of string).
9091
9092 * indent.c (Fvertical_motion): If start position is on an image,
9093 don't move back if we move too far (that's almost certain to happen).
9094
098e1273
KS
9095 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
9096 row in minibuffer windows.
9097 (try_window): Don't check margins in minibuffer windows.
9098
c229fb15
YM
90992005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9100
9101 * macterm.c: Don't include stdlib.h or composite.h.
9102 (x_use_underline_position_properties, last_mouse_press_frame)
9103 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
9104 (syms_of_macterm, mac_initialize): Don't initialize them.
9105 (waiting_for_input, initial_argv, initial_argc)
9106 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
9107 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
9108 (extra_keyboard_modifiers): Fix type in extern.
9109 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
9110 (x_scroll_bar_report_motion): Add argument types to declaration.
9111 (mac_compute_glyph_string_overhangs): Add declaration.
9112 (disable_mouse_highlight): Remove unused variable.
9113 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
9114 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
9115 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
9116 All callers changed.
c229fb15
YM
9117 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
9118 timestamp.
9119 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
9120 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
9121 only when its width is less than the height.
9122 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
9123 (font_name_table, font_name_table_size, font_name_count):
9124 Make static.
c229fb15
YM
9125 (drag_and_drop_file_list): Remove variable. Previous use is now
9126 local to function.
9127 (do_ae_open_documents): Move DRAG_N_DROP event construction part
9128 from XTread_socket.
bcd98331
SM
9129 (XTread_socket): Consolidate setting of event timestamp.
9130 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
9131 Support extra_keyboard_modifiers.
9132
9133 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
9134 beginning with that for ASCII.
9135
69d05d83
SM
91362005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
9137
9138 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
9139 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
9140 (syms_of_alloc): Declare gc-cons-percentage.
9141
9142 * eval.c (Feval, Ffuncall):
9143 * keyboard.c (read_char):
9144 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
9145
9146 * lisp.h (gc_cons_combined_threshold): Declare.
9147
5c7f9de1
KS
91482005-07-12 Kim F. Storm <storm@cua.dk>
9149
9150 * coding.c (Qprocess_argument):
9151 * coding.h (Qprocess_argument): Remove unused var.
9152
9153 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
9154
c37efb7a
YM
91552005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9156
9157 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
9158 Endian.h.
9159 [!MAC_OSX] (fchmod, fchown): New functions.
9160 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
9161 Use SBYTES and EndianU32_BtoN.
9162 (mac_get_object_from_code): Return 4 byte string even if argument
9163 is 0. Use make_unibyte_string and EndianU32_NtoB.
9164 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
9165 (Fmac_set_file_type): Fix documents and argument declarations.
9166 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
9167
a4429c5b
SM
91682005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
9169
9170 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
9171
a2d7e722
JD
91722005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9173
9174 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
9175 Lucid if X_I18N, font otherwise.
9176
9a4183e9
ST
91772005-07-10 Steven Tamm <steventamm@mac.com>
9178
a4429c5b
SM
9179 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
9180 (Fmac_set_file_type, Fmac_set_file_creator): Add.
9181 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 9182
51f74c37
RS
91832005-07-10 Richard M. Stallman <rms@gnu.org>
9184
9185 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
9186 (syms_of_lread): Set up eval-buffer-list.
9187 (Feval_buffer, Feval_region): Bind eval-buffer-list.
9188
93c7da4c
RS
91892005-07-08 Richard M. Stallman <rms@gnu.org>
9190
9191 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
9192
64af5917
KS
91932005-07-08 Kim F. Storm <storm@cua.dk>
9194
9195 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
9196 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
9197
a96b333c
KS
91982005-07-07 Kim F. Storm <storm@cua.dk>
9199
9200 * window.c (Frecenter): Fix last change (set iarg before use).
9201
dc2204be
RS
92022005-07-06 Richard M. Stallman <rms@gnu.org>
9203
9204 * window.c (Frecenter): When arg is inside the scroll margin,
9205 move it out of the margin.
9206
3fb1d72b
JR
92072005-07-06 Jason Rumney <jasonr@gnu.org>
9208
9209 * w32console.c (initialize_w32_display): Detect when the console
9210 dimensions are insane, and default to 80x25 instead.
14a56a1b 9211 (w32_use_full_screen_buffer): Default to nil.
3fb1d72b 9212
dd15724d
YM
92132005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9214
9215 * macterm.c (mac_draw_vertical_window_border): Use foreground of
9216 VERTICAL_BORDER_FACE_ID for vertical border line.
9217 (mac_encode_char): Call check_ccl_update in advance.
9218 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
9219 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
9220 Don't assume that font family length is less than 32.
dd15724d
YM
9221 (x_compute_min_glyph_bounds): Make static.
9222 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 9223
68003d6b
LK
92242005-07-04 Lute Kamstra <lute@gnu.org>
9225
dc2204be 9226 * Update FSF's address in GPL notices.
68003d6b 9227
3d393029
RS
92282005-07-03 Richard M. Stallman <rms@gnu.org>
9229
9230 * xdisp.c (try_window): Fix previous change in how it handles
9231 a partially-visible line or one only partly past the margin.
9232
9233 * window.c (window_scroll_pixel_based): Take account
9234 of this_scroll_margin when finding point when scrolling up.
9235
92362005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
9237
9238 * window.c (window_scroll_pixel_based, window_scroll_line_based):
9239 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9dd28cae 9240 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3d393029 9241
d6951bb4
EZ
92422005-07-02 Juri Linkov <juri@jurta.org>
9243
9244 * w32term.c (w32_draw_vertical_window_border): Use foreground of
9245 VERTICAL_BORDER_FACE_ID for vertical border line.
9246
b016179b
EZ
92472005-07-02 Eli Zaretskii <eliz@gnu.org>
9248
9249 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
9250 fchmod so that chmod doesn't get called on MSDOS before the file
9251 is closed.
9252
c2baa2b6
JR
92532005-07-01 Jason Rumney <jasonr@gnu.org>
9254
9255 * w32term.c (cleartype_active): New flag for enabling sub-pixel
9256 workaround.
9257 (w32_initialize): Initialize it.
9258 (w32_native_per_char_metric): Allow a couple of extra pixels when
9259 Cleartype is active.
9260
9261 * w32term.c (w32_initialize): Move check for screen reader here
9262 from syms_of_w32term.
9263
a6d0ae55
JD
92642005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9265
9266 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
9267 is not zero.
9268
711877f3
MY
92692005-07-01 Masatake YAMATO <jet@gyve.org>
9270
a4429c5b 9271 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 9272
63f7ffb3
JL
92732005-06-30 Juri Linkov <juri@jurta.org>
9274
9275 * xdisp.c (x_draw_vertical_border): If left fringe is not present
9276 decrease x coord of vertical border by 1 pixel to not occupy text
9277 area of the right window.
9278
9279 * xterm.c (x_draw_vertical_window_border): Use foreground of
9280 VERTICAL_BORDER_FACE_ID for vertical border line.
9281
9282 * term.c (turn_on_face): In standout mode apply specified
9283 fg to bg, and specified bg to fg (this makes the logic of
9284 inversion on terminal consistent with X).
9285
b26860ad
JB
92862005-06-29 Juanma Barranquero <lekktu@gmail.com>
9287
9288 * eval.c (user_variable_p_eh): New function.
9289 (Fuser_variable_p): Use it. Clarify docstring.
9290 Return t for aliases of user options, nil for alias loops.
9291
3a1f1d79
RS
92922005-06-27 Richard M. Stallman <rms@gnu.org>
9293
9294 * eval.c (Fdefvar): Improve error message.
9295
92de1e01
YM
92962005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9297
9298 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
9299 change.
9300
69410484
JB
93012005-06-27 Juanma Barranquero <lekktu@gmail.com>
9302
9303 * eval.c (Fdefvar): Don't try to set constant symbols.
9304
09352e8f
RS
93052005-06-25 Richard M. Stallman <rms@gnu.org>
9306
a68d870b
RS
9307 * macfns.c (Fx_show_tip): Pass new arg to try_window.
9308
9309 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
9310
9311 * xfns.c (Fx_show_tip): Pass new arg to try_window.
9312
9313 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
9314 (redisplay_window): Handle try_window reporting point in scroll margin.
9315
9316 * dispextern.h (try_window): Declare new arg.
9317
9318 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
9319 Use fchmod to copy the file modes.
9320 (Frename_file): Don't copy UID and GID here;
9321 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
9322
df13531d
RS
9323 * eval.c (call_debugger): Take full care of extending stack limits
9324 to make space for the debugger, and restore the change afterward.
9325 Bind debug-on-error to nil.
9326 (restore_stack_limits): New subroutine.
9327 (Fsignal): Extend specpdl bound along with eval depth bound,
9328 for calling edebug. Don't do either one, for calling debugger.
9329 (find_handler_clause): Don't bind debug-on-error here.
9330 Don't unbind anything either.
9331 Temporarily advance max_specpdl_size for calling
9332 internal_with_output_to_temp_buffer.
9333 (grow_specpdl): Don't alter max_specpdl_size before signaling
9334 an error.
9335 (syms_of_eval) <max-specpdl-size>: Doc fix.
9336
09352e8f
RS
9337 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
9338
90296dd3
EZ
93392005-06-24 Eli Zaretskii <eliz@gnu.org>
9340
9341 * fileio.c (Frename_file): Undo last change: no need to ifdef away
9342 chown on DOS_NT platforms.
9343
9344 * w32.c (sys_chown): New function.
9345
9346 * s/ms-w32.h (chown): New; define to sys_chown.
9347
c4f6ca24
JB
93482005-06-24 Juanma Barranquero <lekktu@gmail.com>
9349
3338c0ad
JB
9350 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
9351 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
9352
9a1505e9 9353 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 9354
528b6abc
RS
93552005-06-23 Richard M. Stallman <rms@gnu.org>
9356
9357 * xdisp.c (get_next_display_element): Finish reversing the tests of
9358 Vnobreak_char_display.
9359
9a1505e9 9360 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 9361 All uses changed.
9a1505e9 9362 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
9363 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
9364
9365 * fileio.c (Frename_file): Preserve owner and group, if possible,
9366 when copying.
9367
1d1c7e75
JB
93682005-06-23 Juanma Barranquero <lekktu@gmail.com>
9369
253b2298
JB
9370 * abbrev.c (Funexpand_abbrev):
9371 * category.c (Fmake_category_set):
9372 * dispnew.c (Fsleep_for, Fsit_for):
9373 * editfns.c (Fsubst_char_in_region):
9374 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
9375 * frame.c (make_frame_without_minibuffer):
9376 * lread.c (read_vector):
9377 * macfns.c (check_x_frame):
9378 * process.c (Fstop_process, Fcontinue_process):
9379 * search.c (Freplace_match):
9380 * syntax.c (Fstring_to_syntax):
9381 * w32fns.c (check_x_frame, check_x_display_info):
9382 * xfaces.c (x_supports_face_attributes_p):
9383 * xselect.c (Fx_own_selection_internal): Follow error conventions.
9384
1d1c7e75
JB
9385 * image.c (fn_png_init_io): Don't define it.
9386 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
9387 (png_read_from_file): New function, based on png_read_from_memory.
9388 (png_load): Use it, instead of fn_png_init_io.
9389
d1fab151
KS
93902005-06-23 Kim F. Storm <storm@cua.dk>
9391
9392 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 9393 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
9394 Add commentary explaining evaporate arg (for internal use only).
9395 (unwind_set_match_data): Add comment on evaporate use.
9396
53abc3bf
MB
93972005-06-22 Miles Bader <miles@gnu.org>
9398
a4429c5b 9399 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
9400 (realize_basic_faces, syms_of_xfaces): Update references to it.
9401 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
9402 to `VERTICAL_BORDER_FACE_ID'.
9403 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
9404
36a3b076
JL
94052005-06-21 Juri Linkov <juri@jurta.org>
9406
9407 * dispextern.h: Add extern Qframe_set_background_mode.
9408
9409 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
9410 Qframe_set_background_mode.
9411
9412 * frame.c (Fmodify_frame_parameters):
9413 Call frame-set-background-mode after changing the background color
9414 on non-window non-dos branch.
9415
23873c96
JB
94162005-06-21 Juanma Barranquero <lekktu@gmail.com>
9417
9418 * fns.c (Fchar_table_range):
9419 * process.c (Fmake_network_process): Fix spellings.
9420
b7d1f38f
KS
94212005-06-20 Kim F. Storm <storm@cua.dk>
9422
9423 * fns.c (Fsort): Doc fix.
9424
b4e49aee
MB
94252005-06-20 Miles Bader <miles@gnu.org>
9426
9427 * xfaces.c (Qvertical_divider): New variable.
9428 (realize_basic_faces): Realize its face.
9429 (syms_of_xfaces): Initialize it.
9430
9431 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
9432
9433 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
9434 window-separator on ttys using `vertical-divider' face by default.
9435
b7da00ba
RS
94362005-06-17 Richard M. Stallman <rms@gnu.org>
9437
a4429c5b
SM
9438 * xdisp.c (get_next_display_element):
9439 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
9440
9441 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
9442 (Ftty_no_underline): New function.
9443 (syms_of_term): defsubr it.
b7d1f38f 9444
b7da00ba
RS
9445 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
9446
9447 * dispnew.c (spec_glyph_lookup_face): New function.
9448 (build_frame_matrix_from_leaf_window): Use it.
9449
9450 * dispextern.h (spec_glyph_lookup_face): Add declaration.
9451
9452 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9453
94542005-06-12 Richard M. Stallman <rms@gnu.org>
9455
9456 * keyboard.c (read_char): After catching a longjmp,
9457 call restore_getcjmp.
9458
289824a3
JB
94592005-06-17 Juanma Barranquero <lekktu@gmail.com>
9460
9461 * xselect.c (lisp_data_to_selection_data): Fix spelling.
9462
95085023
YM
94632005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9464
9465 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
9466 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
9467 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
9468 events.
9469 (XTread_socket): Don't pass keyboard events with the option
9470 modifier to the system when Vmac_command_key_is_meta is nil or
9471 Vmac_option_modifier is non-nil.
9472 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
9473 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
9474 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
9475 handler function.
9476 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
9477 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
9478 handler part to mac_handle_mouse_event.
9479
4a9308b8
JB
94802005-06-14 Juanma Barranquero <lekktu@gmail.com>
9481
9482 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
9483 NEW-ALIAS and BASE-VARIABLE, respectively.
9484
5aa6db57
SM
94852005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9486
9487 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
9488 (get_phys_cursor_geometry, format_mode_line_unwind_data)
9489 (get_line_height_property, x_produce_glyphs): Remove unused vars.
9490
9491 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
9492
0e0dddda
EZ
94932005-06-13 Eli Zaretskii <eliz@gnu.org>
9494
9495 * w32term.c (x_use_underline_position_properties): New variable.
9496 (x_draw_glyph_string): Remind in a comment to change doc string of
9497 x-use-underline-position-properties if/when underline positioning
9498 is implemented.
9499 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
9500 and initialize it to nil.
9501
7f2b4738
JR
95022005-06-12 Jason Rumney <jasonr@gnu.org>
9503
9504 * w32fns.c (NEWOPENFILENAME): New struct.
9505 (Fx_file_dialog): Use it to trick the system into giving us up to
9506 date dialogs on systems that are documented to support it.
9507 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
9508
a1e8cad6
EZ
95092005-06-12 Eli Zaretskii <eliz@gnu.org>
9510
9511 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
9512 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
9513
099a3eea
EZ
95142005-06-11 Eli Zaretskii <eliz@gnu.org>
9515
2e09fef1
EZ
9516 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
9517 to CreateDIBSection to avoid a compiler warning.
9518 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
9519 warning.
9520 (png_load): Cast return values of fn_png_create_read_struct and
9521 fn_png_create_info_struct, to avoid compiler warnings on W32.
9522 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
9523 to avoid compiler warnings.
9524 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
9525 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
9526 avoid a compiler warning.
9527 (tiff_load): Cast return values of fn_TIFFOpen and
9528 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
9529 to IMAGE_BACKGROUND to avoid a compiler warning.
9530 (gif_load): Cast return values of fn_DGifOpenFileName and
9531 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
9532 IMAGE_BACKGROUND to avoid a compiler warning.
9533 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
9534 before redefining.
9535
099a3eea
EZ
9536 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
9537 the call to CreateDIBSection, to avoid a compiler warning.
9538
d11f8e1a
JR
95392005-06-11 Jason Rumney <jasonr@gnu.org>
9540
9541 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
9542 minibuffer.
9543 * macfns.c (Fx_file_dialog): Likewise.
9544
cd4344a3
EZ
95452005-06-10 Eli Zaretskii <eliz@gnu.org>
9546
9547 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
9548
578c1340
JB
95492005-06-10 Juanma Barranquero <lekktu@gmail.com>
9550
9551 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
9552 * w32fns.c (syms_of_w32fns): Fix spellings.
9553
4162f25f
EZ
95542005-06-10 Eli Zaretskii <eliz@gnu.org>
9555
9556 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
9557 `verbose'; print diagnostic messages only if it is non-zero.
9558 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
9559 in the environment.
9560 (copy_executable_and_dump_data): Print section names with %.8s.
9561
121c59a3
MY
95622005-06-10 Masatake YAMATO <jet@gyve.org>
9563
9564 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
9565 when mouse_face is not given.
121c59a3 9566
c869384d
LT
95672005-06-09 Luc Teirlinck <teirllm@auburn.edu>
9568
9569 * window.c (Fselect_window): Adapt call to Fselect_frame.
9570
9571 * lisp.h: Update EXFUN of Fselect_frame.
9572
9573 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
9574
6ecf436d
LT
9575 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
9576 no_enter.
9577 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
9578 Adapt to above change.
9579
c14ec135
JB
95802005-06-10 Juanma Barranquero <lekktu@gmail.com>
9581
9582 * fns.c (Fmemq, Fmaphash): Doc fixes.
9583
9fed2905
JB
95842005-06-09 Juanma Barranquero <lekktu@gmail.com>
9585
9586 * xfaces.c (Fdisplay_supports_face_attributes_p):
9587 Fix typo in docstring.
9588
427c5b1b
ST
95892005-06-08 Steven Tamm <steventamm@mac.com>
9590
9591 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
9592 used by gcc4 on intel mac.
9593
b7aae902
KS
95942005-06-09 Kim F. Storm <storm@cua.dk>
9595
9596 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
9597 in REUSE list if non-nil; free them if equal to evaporate.
5e1a6e32 9598 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
b7aae902
KS
9599 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
9600 (restore_search_regs): Rename from restore_match_data. Uses changed.
9601 (unwind_set_match_data): New function.
9602 (record_unwind_save_match_data): New function like save-match-data.
9603
9604 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
9605 (record_unwind_save_match_data): Add prototype.
9606 (restore_search_regs): Rename from restore_match_data.
9607
9608 * composite.c (compose_chars_in_text):
9609 * eval.c (do_autoload):
9610 * macmenu.c (set_frame_menubar):
9611 * process.c (read_process_output, exec_sentinel):
9612 * xmenu.c (set_frame_menubar):
9613 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
9614 * w32menu.c (set_frame_menubar):
9615 Use record_unwind_save_match_data.
9616
547d2b37
RS
96172005-06-08 Richard M. Stallman <rms@gnu.org>
9618
9619 * xdisp.c (get_next_display_element): Alter previous change:
9620 Distinguish Vshow_nonbreak_escape = t or not t.
9621 For t, use escape_glyph once again, as before previous change.
9622 Use space or hyphen for display, instead of the non-ASCII char.
9623 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
9624
9625 * process.c (Fstart_process): Don't touch command_channel_p slot.
9626
99598737 9627 * process.h (struct process): Delete command_channel_p.
547d2b37 9628
602907ae
MY
96292005-06-07 Masatake YAMATO <jet@gyve.org>
9630
5aa6db57
SM
9631 * xdisp.c (note_mode_line_or_margin_highlight):
9632 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 9633 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
9634 is not ON_MODE_LINE nor ON_HEADER_LINE.
9635
8b793bed
KS
96362005-06-07 Kim F. Storm <storm@cua.dk>
9637
9638 * process.c: Improve commentary for adaptive read buffering.
9639
3d031334
SM
96402005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
9641
9642 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
9643 if available.
9644
16d2e704
JD
96452005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9646
5aa6db57
SM
9647 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
9648 New functions for popping down menus on C-g.
16d2e704
JD
9649 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
9650
9651 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
9652 non-static.
9653
9fed2905 9654 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 9655
b6cc2ad0
EZ
96562005-06-06 Eli Zaretskii <eliz@gnu.org>
9657
9a1505e9 9658 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 9659
5aa6db57 9660 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
9661
9662 * w32proc.c (RVA_TO_PTR): New macro.
9663
9664 * w32heap.c (RVA_TO_PTR): No need to #undef now.
9665
9666 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
9667 Depend on w32heap.h.
9668
24e55feb
LT
96692005-06-06 Luc Teirlinck <teirllm@auburn.edu>
9670
9671 * keyboard.c (command_loop_1): Update Vthis_original_command.
9672
ce6e10af
RS
96732005-06-06 Richard M. Stallman <rms@gnu.org>
9674
9675 * xmenu.c (popup_get_selection): Undo previous change.
9676
c476bcb0
JL
96772005-06-06 Juri Linkov <juri@jurta.org>
9678
9679 * xdisp.c (Qno_break_space): New variable.
9680 (syms_of_xdisp): Initialize it.
9681 (get_next_display_element): Add no-break space and soft hypen
9682 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
9683 Use `no-break-space' face for no-break spaces.
9684
5494d7bc
JD
96852005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9686
9687 * window.c (delete_window): Handle the case where a h/vchild has
9688 a h/vchild.
9689
a0c38328
EZ
96902005-06-05 Eli Zaretskii <eliz@gnu.org>
9691
9692 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
9693 call to pfn_setsockopt, cast optval to `const char *'.
9694
91018229
EZ
96952005-06-04 Eli Zaretskii <eliz@gnu.org>
9696
1a8fb426
EZ
9697 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
9698 (open_unc_volume): Cast return value of map_w32_filename, to avoid
9699 compiler warnings.
9700
b6f0a397
EZ
9701 * s/ms-w32.h (fileno): Don't define if already defined.
9702
17a7c5c2 9703 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 9704
91018229
EZ
9705 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
9706
196ac78c
RS
97072005-06-04 Richard M. Stallman <rms@gnu.org>
9708
9709 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
9710
b8987570
JD
97112005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9712
9713 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 9714 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
9715 mac_menu_show Quit:s.
9716 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
9717 a dialog).
9718
555228aa
KS
97192005-06-04 Kim F. Storm <storm@cua.dk>
9720
9721 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
9722
9723 * callproc.c (Fcall_process): Don't use alloca to gradually
9724 increase size of buf, as it effectively uses twice the necessary
9725 space on the stack. Instead, pre-allocate buf of full size, and
9726 gradually increase the read size.
9727
9728 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
9729
9730 * eval.c (unbind_to): Preserve value of Vquit_flag.
9731
9732 * xterm.c (handle_one_xevent): Also ignore mouse motion just
9733 before a button release event.
9734
6312e5f7
JB
97352005-06-03 Juanma Barranquero <lekktu@gmail.com>
9736
9737 * xfaces.c (Finternal_lisp_face_equal_p): Really report
9738 on faces in a frame, if the argument FRAME is non-nil.
9739 Improve argument/docstring consistency.
9740
0493f7be
KS
97412005-06-02 Kim F. Storm <storm@cua.dk>
9742
9743 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
9744 (x_consider_frame_title, Fformat_mode_line): Save offset into
9745 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
9746
89fe657e
KS
97472005-06-01 Kim F. Storm <storm@cua.dk>
9748
9749 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
9750
02a6375c
YM
97512005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9752
9753 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
9754 resolution fields for scalable fonts to 0.
9755
9756 * xfaces.c (build_scalable_font_name): Round pixel size to the
9757 nearest integer.
9758
95d4fad8
KS
97592005-06-01 Kim F. Storm <storm@cua.dk>
9760
9761 * xdisp.c (display_mode_line): Support nested calls to redisplay
9762 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
9763
3c1b433a
SM
97642005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
9765
9766 * fileio.c (Finsert_file_contents):
9767 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
9768
13cc7d61
KS
97692005-05-31 Kim F. Storm <storm@cua.dk>
9770
9771 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
9772 (mode_line_noprop_ptr): Rename from frame_title_*.
9773 (store_mode_line_noprop_char): Rename from store_frame_title_char.
9774 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 9775 (mode_line_target): New enum to specify current output target
13cc7d61
KS
9776 for mode line formatting.
9777 (display_mode_element): Test it rather than frame_title_ptr and
9778 mode_line_string_list to determine where output should go.
9779 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
9780 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
9781 (format_mode_line_unwind_data, unwind_format_mode_line):
9782 New functions for unwind protection in mode line formatting.
13cc7d61 9783 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
9784 to support nested calls to format-mode-line and redisplay.
9785 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 9786 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
9787 support nested calls to format-mode-line and redisplay.
9788 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 9789 Don't trim trailing dashes.
13cc7d61
KS
9790 (decode_mode_spec): Don't make infinite number of trailing dashes
9791 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
9792 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
9793 mode_line_string_face_prop, and Vmode_line_unwind_vector.
9794 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
9795 Initialize mode_line_target to MODE_LINE_DISPLAY.
9796
c16b1394
RS
97972005-05-29 Richard M. Stallman <rms@gnu.org>
9798
9799 * buffer.c (Fbuffer_local_value): Call indirect_variable.
9800
edfaeb4e
MY
98012005-05-28 Masatake YAMATO <jet@gyve.org>
9802
9803 * xdisp.c (note_mode_line_or_margin_highlight): Change the
9804 pointer to a hand cursor when hoovering over a mouse-face.
9805
7cf49add
KH
98062005-05-27 Kenichi Handa <handa@m17n.org>
9807
9808 * xterm.c (x_encode_char): Call check_ccl_update in advance.
9809
9810 * ccl.c: Now an element of Vccl_program_table is a vector of
9811 length 4, not 3.
3c1b433a
SM
9812 (ccl_get_compiled_code): New arg idx. Caller changed.
9813 Adjust for the change of Vccl_program_table.
9814 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
9815 (check_ccl_update): New function.
9816 (Fregister_ccl_program): Use ASET to set an element of a vector.
9817 Adjusted for the change of Vccl_program_table.
9818
9819 * ccl.h (struct ccl_program): New member idx.
9820 (check_ccl_update): Extern it.
9821
5e2ad10b
JB
98222005-05-27 Juanma Barranquero <lekktu@gmail.com>
9823
3c1b433a 9824 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
9825 (syms_of_image): Defvar it.
9826 (lookup_image_type): Use it.
9827
5e2ad10b
JB
9828 * buffer.c (Fbuffer_local_value): Make argument name match its use
9829 in docstring.
9830
6e604a9b
JB
98312005-05-26 Juanma Barranquero <lekktu@gmail.com>
9832
9833 * keyboard.c (Frecursive_edit): Fix typo in docstring.
9834 (Fposn_at_x_y): Make argument name match its use in docstring.
9835
59244a3f
LK
98362005-05-26 Lute Kamstra <lute@gnu.org>
9837
9838 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
9839
55ce5058
MY
98402005-05-24 Masatake YAMATO <jet@gyve.org>
9841
9842 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
9843 as loop sentinels.
9844
cb5db137
NR
98452005-05-24 Nick Roberts <nickrob@snap.net.nz>
9846
9847 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
9848 select frame title ("Question"/"Information").
9849 (xdialog_show): Use it.
9850
13dcfc35
NR
9851 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
9852
9853 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
9854
d3393daa
NR
9855 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
9856 a third argument (Qnil).
9857
9858 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
9859
9860 * editfns.c (Fmessage_box): Use "Information" for frame title.
9861
71d4fba1
TTN
98622005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
9863
9864 * termcap.c [VMS]: Include <starlet.h>.
9865
359e4563
MY
98662005-05-23 Masatake YAMATO <jet@gyve.org>
9867
6e604a9b
JB
9868 * xdisp.c (note_mode_line_or_margin_highlight): Add code
9869 for mouse-face. Change the type of the first argument from `window'
9870 to `Lisp_Object'.
359e4563
MY
9871 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
9872 window instead of w.
9873
edceb51c
AS
98742005-05-22 Andreas Schwab <schwab@suse.de>
9875
41c4895c 9876 * process.c (send_process): Move misplaced volatile.
edceb51c 9877
5c213fcc
RS
98782005-05-21 Richard M. Stallman <rms@gnu.org>
9879
9880 * xdisp.c (display_mode_element): If we're processing a list and
9881 padding is specified, put it after the last element.
9882
aa4060b9
EZ
98832005-05-21 Eli Zaretskii <eliz@gnu.org>
9884
9885 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
9886 "superroot" on DOS_NT systems.
9887
a2c9aee6
EZ
98882005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
9889
9890 * process.c (send_process): Restore the SIGPIPE handler if we
9891 catch a SIGPIPE.
9892
09e8eb5b
JB
98932005-05-20 Juanma Barranquero <lekktu@gmail.com>
9894
9895 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
9896 misleading comments).
9897 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
9898
f3fbdb1f
LK
98992005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9900
9901 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
9902 Correct the right value.
9903
639ec765
NR
99042005-05-19 Nick Roberts <nickrob@snap.net.nz>
9905
240d926e 9906 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
9907 post-command-idle-hook and post-command-idle-delay.
9908 (command_loop_1): Don't try to execute post-command-idle-hook.
9909
03d42907
KS
99102005-05-16 Kim F. Storm <storm@cua.dk>
9911
1cb83e13
KS
9912 * xdisp.c (handle_display_prop): Handle empty replacement.
9913 (handle_single_display_spec): Return -1 for empty replacement.
9914
9915 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
9916
03d42907
KS
9917 * .gdbinit (pitx): Print more info about iterator.
9918
0da46b6e
AS
99192005-05-16 Andreas Schwab <schwab@suse.de>
9920
3c1b433a 9921 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 9922
d06ba294
RS
99232005-05-14 Richard M. Stallman <rms@gnu.org>
9924
9925 * xdisp.c (message3): Call cancel_echoing.
9926
9927 * alloc.c (Fmemory_full_p): New function.
9928 (syms_of_alloc): defsubr it.
9929
9930 * process.c (send_process_trap): Unblock SIGPIPE.
9931 (send_process): Reset SIGPIPE handler before reporting error.
9932
90713743
NR
99332005-05-14 Nick Roberts <nickrob@snap.net.nz>
9934
9935 * emacs.c (syms_of_emacs): Fix doc string for system-type.
9936
68780e2a
RS
99372005-05-13 Richard M. Stallman <rms@gnu.org>
9938
9939 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
9940 (Finsert_file_contents): If we read 0 bytes from a special file,
9941 unlock the visited file if we locked it.
9942 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 9943 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 9944
5063dbbf
YM
99452005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9946
9947 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
9948
3c1b433a
SM
9949 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
9950 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
9951 redisplay from being paused by them.
9952
9953 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
9954 [!MAC_OSX] (target_ticks): Remove variable.
9955 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
9956 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
9957 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 9958 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
9959 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
9960 handling using Time Manager routines.
3c1b433a
SM
9961 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
9962 New variables.
5063dbbf
YM
9963 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
9964 (setitimer): New functions.
9965
9966 * macfns.c, macmenu.c: Don't include signal.h.
9967
9968 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
9969 Rename from get_control_part_bound. All callers changed.
9970 (x_scroll_bar_clear): New function.
9971 (x_clear_frame): Use it.
9972 (XTset_vertical_scroll_bar): Don't call Draw1Control.
9973 (x_scroll_bar_handle_click): Change type of second argument from
9974 int to ControlPartCode.
9975 (check_alarm): Remove declaration.
02a6375c
YM
9976 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
9977 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
9978
99792005-05-13 Nozomu Ando <nand@mac.com>
9980
9981 * unexmacosx.c: Include assert.h.
9982 (MACOSX_MALLOC_MULT16): New define.
9983 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
9984 ptr is in unexec regions by checking it is multiple of 16.
9985 (unexec_malloc_header_t): New typedef.
9986 (unexec_malloc, unexec_realloc, unexec_free): Store and use
9987 allocated size information in unexec_malloc_header.
9988
d101bf56
RS
99892005-05-10 Richard M. Stallman <rms@gnu.org>
9990
9991 * xterm.c (noinclude): Add #undef.
9992
9993 * image.c, xfns.c, xmenu.c: Don't include signal.h.
9994
2f60660a
JB
99952005-05-09 Juanma Barranquero <lekktu@gmail.com>
9996
f1701e65
JB
9997 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
9998 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
9999 Doc fixes.
10000
2f60660a
JB
10001 * dired.c (Ffile_name_completion): Make argument name
10002 match its use in docstring.
10003
9f29e806
LT
100042005-05-08 Luc Teirlinck <teirllm@auburn.edu>
10005
10006 * eval.c (Fdefvaralias): Remove any pre-existing
10007 variable-documentation property of the alias.
10008
a790bcd4
TTN
100092005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
10010
10011 * xfns.c (start_hourglass): Do nothing when running on a tty.
10012
d5fb8dab
JB
100132005-05-07 Juanma Barranquero <lekktu@gmail.com>
10014
10015 * fns.c (Fchar_table_range): Fix typos in docstring.
10016
7ec64183
SM
100172005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10018
10019 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
10020
6ff95f1d
EZ
100212005-05-06 Eli Zaretskii <eliz@gnu.org>
10022
2c6b25c7
EZ
10023 * lread.c (Flocate_file_internal): Doc fix.
10024
6ff95f1d
EZ
10025 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
10026
17d28d26
YM
100272005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10028
10029 * macselect.c (x_own_selection): Accept Lisp string as result of
10030 selection converter function.
10031 (x_clear_frame_selections): Don't call x-lost-selection-functions
10032 if Emacs is not owner of the selection.
10033 (Vmac_services_selection): Put variable and initialization in
10034 #ifdef MAC_OSX.
10035 (syms_of_macselect) [MAC_OSX]: Set default value of
10036 Vmac_services_selection to PRIMARY.
10037
7ec64183
SM
10038 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
10039 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
10040 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
10041 (install_scroll_bar_timer, set_scroll_bar_timer)
10042 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
10043 (get_control_part_bound, x_scroll_bar_handle_press)
10044 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
10045 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
10046 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
10047 (scroll_bar_timer_event_posted_p): New variables.
10048 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
10049 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
10050 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
10051 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
10052 Initialize track_top and track_height to nil.
10053 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
10054 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
10055 (XTset_vertical_scroll_bar): Don't make space between scroll bar
10056 and associated window.
10057 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
10058 from window config.
7ec64183
SM
10059 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10060 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
10061 Recalculate them if they are nil.
10062 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
10063 clicked control is a scroll bar.
10064 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
10065 event handler functions. Don't add modifiers to scroll bar click
7ec64183 10066 events. Call scroll bar release handler when window is deactivated.
17d28d26 10067 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
10068 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
10069 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 10070
7ec64183
SM
10071 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10072 New members track_top and track_height.
17d28d26
YM
10073
10074 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
10075 init_process when including sys/select.h.
10076
643b4cf5
LT
100772005-05-05 Luc Teirlinck <teirllm@auburn.edu>
10078
10079 * eval.c (Fdefvaralias): Doc fix.
10080
10081 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
10082
99bda128
KS
100832005-05-05 Kim F. Storm <storm@cua.dk>
10084
10085 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
10086 default value.
10087 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
10088 Fix type of cursor-in-non-selected-windows.
10089
3a3563e9
JD
100902005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10091
10092 * mac.c: #undef init_process so not to conflict with system headers.
10093
0124c5bd
RS
100942005-05-02 Richard M. Stallman <rms@gnu.org>
10095
10096 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
10097
10098 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
10099
10100 * xdisp.c (Vcursor_in_non_selected_windows)
10101 (Qcursor_in_non_selected_windows): Vars deleted.
10102 (syms_of_xdisp): Don't initialize them.
10103 (get_window_cursor_type): Use cursor_in_non_selected_windows
10104 buffer slot.
10105
4b3f161f
KS
101062005-05-02 Kim F. Storm <storm@cua.dk>
10107
e40527dc
KS
10108 * macros.c (executing_kbd_macro_index): Rename from
10109 executing_macro_index. All uses changed.
10110 (executing_kbd_macro_iterations): Rename from
10111 executing_macro_iterations. All uses changed.
10112 (executing_kbd_macro): Rename from executing_macro.
10113 All uses changed.
10114 (syms_of_macros): Rename Lisp var executing-macro-index to
10115 executing-kbd-macro-index.
10116
4b3f161f
KS
10117 * xdisp.c (move_it_in_display_line_to): Fix last change.
10118
4d49edf6
LT
101192005-05-01 Luc Teirlinck <teirllm@auburn.edu>
10120
f6b1b15a
LT
10121 * xmenu.c (Fx_popup_menu): Doc fix.
10122
4d49edf6
LT
10123 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
10124
4a766fe6
JR
101252005-05-02 Jason Rumney <jasonr@gnu.org>
10126
10127 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
10128
c924d3ff
TTN
101292005-05-02 Nozomu Ando <nand@mac.com>
10130
10131 * sysselect.h: Fix typo.
10132
b161ea4e 101332005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 10134
b161ea4e
NR
10135 * charset.c (Fchars_in_region): Remove as obsolete.
10136
d37e919d 101372005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
10138
10139 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 10140 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 10141 glyph.
5c2e5a5e 10142
bec0b768
LT
101432005-05-01 Luc Teirlinck <teirllm@auburn.edu>
10144
10145 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
10146
ebbfa918
RS
101472005-05-01 Richard M. Stallman <rms@gnu.org>
10148
10149 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
10150 If user cancels the menu, quit unless FOR_CLICK.
10151
7ec64183 10152 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
10153 All uses changed.
10154 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
10155 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
10156 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
10157 * commands.h (Vexecuting_kbd_macro): Likewise.
10158
a72c2d97
TTN
101592005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
10160
10161 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
10162
7e995a23
RS
101632005-04-30 Richard M. Stallman <rms@gnu.org>
10164
10165 * fileio.c (Ffind_file_name_handler): Handle the `operations'
10166 property of the file name handler.
10167 (Qoperations): New variable.
10168 (syms_of_fileio): Initialize and staticpro it.
10169
10170 * xdisp.c (set_message_1): Delete xassert.
10171
7a92caf8
YM
101722005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10173
7ec64183 10174 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
10175
10176 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
10177
10178 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
10179 before/after including Carbon.h if there is a working mktime.
10180
5ae91803
KS
101812005-04-28 Kim F. Storm <storm@cua.dk>
10182
10183 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
10184 Fix cyclic alias check. If alias loop is detected, signal
10185 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
10186
d79b6c21
LK
101872005-04-28 Lute Kamstra <lute@gnu.org>
10188
10189 * eval.c (do_autoload): Record only autoloads in the autoload
10190 property of symbols.
10191
8c75afbf
NR
101922005-04-28 Nick Roberts <nickrob@snap.net.nz>
10193
10194 * emacs.c (USAGE1): Add --basic-display and --quick options.
10195
832e294f
KS
101962005-04-27 Kim F. Storm <storm@cua.dk>
10197
10198 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
10199
f03f317a
RS
102002005-04-26 Richard M. Stallman <rms@gnu.org>
10201
c019856e
RS
10202 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
10203 (syms_of_window): Doc fixes.
10204
f03f317a
RS
10205 * indent.c (Fvertical_motion): Undo previous change.
10206
38f60cd9
KH
102072005-04-26 Kenichi Handa <handa@m17n.org>
10208
10209 * fns.c (char_table_range): New function.
10210 (Fchar_table_range): Signal an error if characters in the range
10211 have inconsistent values. Don't check the parent.
10212
87ede5a1
KH
102132005-04-25 Kenichi Handa <handa@m17n.org>
10214
10215 * fontset.c (fontset_set): Fix previous change.
10216
a6390474
RS
102172005-04-24 Richard M. Stallman <rms@gnu.org>
10218
10219 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
10220
7fce7dfe
EZ
102212005-04-24 Eli Zaretskii <eliz@gnu.org>
10222
cf1982d9
EZ
10223 * regex.c (re_search_2, re_match_2_internal): Convert second arg
10224 of RE_TRANSLATE to int, to shut up GCC warnings.
10225
7fce7dfe
EZ
10226 * fileio.c (Fcopy_file): Doc fix.
10227 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
10228 not needed.
10229
49ed33c7
YM
102302005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10231
10232 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
10233 (SOME_MACHINE_OBJECTS): Likewise.
10234 (mac.o): Depend on ccl.h.
10235 (macselect.o): New target.
10236
7ec64183
SM
10237 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
10238 Call syms_of_macselect.
49ed33c7
YM
10239
10240 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
10241
7ec64183 10242 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
10243 (QCLIPBOARD): Remove variable.
10244 (syms_of_mac): Don't initialize it.
10245 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
10246 Remove functions.
10247 (syms_of_mac): Don't defsubr them.
10248 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
10249 (QHFS_plus_D, QHFS_plus_C): New variables.
10250 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
10251 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
10252 (cfstring_create_normalized): New functions.
10253 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
10254 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
10255
7ec64183
SM
10256 * macterm.c (handling_window_update, terminate_flag):
10257 Remove variables.
10258 (do_window_update, do_ae_quit_application, XTread_socket):
10259 Don't use them.
49ed33c7
YM
10260 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
10261 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
10262 (init_service_handler): Move to macselect.c. Remove declarations.
10263 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
10264 (Qapplication, Qabout): New variables.
10265 (syms_of_mac): Initialize them.
10266 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
10267 (Qperform): New variables.
10268 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 10269 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
10270 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
10271 (mac_store_application_menu_event, init_menu_bar): New functions.
10272 [USE_CARBON_EVENTS] (mac_handle_command_event)
10273 (init_command_handler): New functions.
10274 (mac_handle_window_event): Return noErr on window update event.
10275 (do_ae_quit_application): Call mac_store_application_menu_event.
10276 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
10277 and init_menu_bar.
10278
10279 * macterm.h (x_clear_frame_selections): Add extern.
10280
10281 * macselect.c: New file for selection processing on Mac OS.
10282
469bc679
RS
102832005-04-23 Richard M. Stallman <rms@gnu.org>
10284
10285 * fileio.c (Fcopy_file): New arg MUSTBENEW.
10286 (Frename_file): Pass new arg to Fcopy_file.
10287
10288 * window.c (window_size_fixed): Variable deleted.
10289 (syms_of_window): Initialize window-size-fixed to nil.
10290 But don't DEFVAR window_size_fixed.
10291
d379c558
AS
102922005-04-23 Andreas Schwab <schwab@suse.de>
10293
10294 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
10295 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
10296 use lib64 instead of lib.
10297 (_LP64) [_ARCH_PPC64]: Define if not defined.
10298
007d105b
TTN
102992005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
10300
10301 * s/ms-w32.h (HAVE_PWD_H): Define.
10302
b9c15916
KH
103032005-04-22 Kenichi Handa <handa@m17n.org>
10304
10305 * fns.c (copy_sub_char_table): Explicitly copy the default value
10306 of the sub-chartable.
10307
10308 * fontset.c (fontset_set): When a sub-chartable is created,
10309 explicitly sets the defalt value.
10310
1ba52906
KS
103112005-04-22 Kim F. Storm <storm@cua.dk>
10312
10313 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
10314 (Fsafe_plist_get): Rename to Fplist_get.
10315 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
10316 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
10317
10318 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
10319
10320 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
10321 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10322 Use Fplist_get instead of Fsafe_plist_get.
10323
10324 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
10325
e235145c
MB
103262005-04-21 Miles Bader <miles@gnu.org>
10327
10328 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
10329
766c5349
TTN
103302005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
10331
c164a7e6
TTN
10332 * sysdep.c: Remove reference to defunct vms-pwd.h.
10333 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
10334 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
10335
766c5349
TTN
10336 * config.in: Regenerate.
10337
2b048bf5
KH
103382005-04-20 Kenichi Handa <handa@m17n.org>
10339
10340 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
10341 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
10342 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
10343
10344 * alloc.c (make_sub_char_table): Argument changed to initial
10345 value of the slots.
10346
10347 * data.c (Faref): Handle special slots used as default values of
10348 ascii, eight-bit-control, eight-bit-control. Don't ignore a
10349 default value set for a group of characters.
10350 (Faset): Signal an error if IDXVAL is not a valid character code.
10351 Make a sub-chartable with correct initial value.
10352
10353 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
10354 values for ascii, eight-bit-control, eight-bit-graphic.
10355 Don't call Faref with charset-id.
2b048bf5
KH
10356 (Fset_char_table_default): Document how to treat normal character
10357 argument. Handle special slots used as default values of ascii,
10358 eight-bit-control, eight-bit-control. Make a sub chartable if
10359 necessary.
10360
b0a35939
KH
103612005-04-20 Kenichi Handa <handa@m17n.org>
10362
10363 * search.c (boyer_moore): Fix previous change.
10364
98dde726
KS
103652005-04-19 Kim F. Storm <storm@cua.dk>
10366
10367 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
10368 face unless last visible char and first invisible char have the
10369 same face. Also use default face if saved_face_id is undefined.
10370
327a3376
YM
103712005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10372
10373 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
10374 `full_name'.
10375 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
10376 mac_scriptcode member.
10377
10378 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
10379 (syms_of_mac): Don't initialize them.
10380 (Vmac_charset_info_alist): New variable.
10381 (syms_of_mac): Defvar it.
10382 (create_text_encoding_info_alist): New function.
10383 (decode_mac_font_name, mac_to_x_fontname)
10384 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
10385 code the correspondence among XLFD charsets, Mac script codes, and
10386 Emacs coding systems. Use Vmac_charset_info_alist and result of
10387 create_text_encoding_info_alist instead.
10388 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
10389 routines also on Mac OS Classic.
7ec64183
SM
10390 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
10391 Use add_font_name_table_entry.
327a3376
YM
10392 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
10393 specified. Derive unspecified scalable fields from specified one.
10394 (x_list_fonts): Consider Valternate_fontname_alist.
10395 (kDefaultFontSize): Change value from 9 to 12.
10396 (XLoadQueryFont): Get decoded font family, font face, and charset
10397 from x_font_name_to_mac_font_name. Set full name of loaded font.
10398 (mac_unload_font): Free `full_name' member.
10399 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
10400 NULL. Copy full_name member of struct MacFontStruct to that of
10401 struct font_info.
10402
d0636839
KS
104032005-04-19 Kim F. Storm <storm@cua.dk>
10404
5827e9d4
KS
10405 * xdisp.c (handle_stop): Set saved_face_id to current face if
10406 selective_display_ellipsis_p so ellipsis will be shown in same
10407 face as preceding text.
10408 (setup_for_ellipsis): Don't set saved_face_id here.
10409 (next_element_from_display_vector): Default to saved_face_id.
10410
d0636839
KS
10411 * fns.c (Fsafe_get): New function.
10412 (syms_of_fns): Defsubr it.
10413
10414 * lisp.h (Fsafe_get): EXFUN it.
10415
10416 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
10417 loops in case of bad face property lists. Limit number of face
10418 alias lookups to 10 (in case of face alias loops).
10419
e5c78c9d
KS
104202005-04-18 Kim F. Storm <storm@cua.dk>
10421
10422 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
10423 It replaces the corresponding member from struct window, as a
10424 window may now show multiple overlay arrows.
10425 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
10426
10427 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
10428 Compare overlay_arrow_bitmap than overlay_arrow_p members.
10429
10430 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
10431 rather than from window.
10432 (update_window_fringes): Compare overlay_arrow_bitmap rather than
10433 overlay_arrow_p members.
10434 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
10435 if not default.
10436
10437 * window.h (struct window): Remove member overlay_arrow_bitmap.
10438
10439 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
10440
10441 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
10442 Calls changed. Don't check for overlay-arrow-bitmap property here.
10443 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
10444 fringe is present, return Lisp integer for bitmap (or -1 for default).
10445 Fix value of overlay-arrow-bitmap property to be a symbol, use
10446 lookup_fringe_bitmap to parse it.
10447 (display_line): Change call to overlay_arrow_at_row. Store integer
10448 return value as overlay bitmap in row rather than window.
10449 Only show overlay arrow if row displays text, or if no other overlay
10450 arrow is seen in window (if overlay marker is at point-max).
10451
7d603e3f
TTN
104522005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
10453
10454 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
10455
9942fa0c
LK
104562005-04-18 Lute Kamstra <lute@gnu.org>
10457
10458 * lread.c (Vloads_in_progress): Static.
10459 * fns.c (Vloads_in_progress): Remove extern.
10460 (load_in_progress): Add extern.
10461 (Frequire): Use load_in_progress instead of Vloads_in_progress.
10462
999cdb8f
TTN
104632005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
10464
10465 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
10466
3f4413f8
YM
104672005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10468
10469 * macterm.c (XTread_socket): Don't beep on keyboard input even if
10470 no frame is visible.
10471
60ec7b7e
DN
104722005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10473
10474 * term.c (struct keys): Add support for shifted keys.
10475
a8a1c0ee
RS
104762005-04-16 Richard M. Stallman <rms@gnu.org>
10477
10478 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
10479 (set_message): Call with_echo_area_buffer with WHICH = 0.
10480 (set_message_1): Erase the echo area buffer first thing.
10481 (echo_area_display): Don't clear echo_message_buffer.
10482
f3cf04d3
YM
104832005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10484
10485 * Makefile.in (mac.o): Depend on charset.h and coding.h.
10486
10487 * mac.c: Include charset.h and coding.h.
10488 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 10489 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
10490 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
10491
10492 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
10493
10494 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
10495
10496 * macterm.c (x_autoselect_window_p): Remove variable.
10497 (last_window): New variable.
7ec64183
SM
10498 (XTreassert_line_highlight, x_change_line_highlight):
10499 Remove declarations.
f3cf04d3
YM
10500 (mac_focus_changed, x_detect_focus_change): New functions and
10501 declarations.
10502 (XTextExtents16, front_emacs_window): Remove function.
10503 (mac_focus_frame): New function.
10504 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
10505 (mac_check_for_quit_char): Use it instead of front_emacs_window.
10506 (x_scroll_bar_report_motion): Obtain window from control owner.
10507 (x_make_frame_invisible): Set window manager size hint.
10508 (do_mouse_moved): Remove function.
10509 (XTread_socket): Move its contents here. Generate select-window
10510 event on mouse movement if needed. Use x_detect_focus_change on
10511 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
10512 window rectangle when dnd items are dropped.
10513 Don't activate/deactivate root control.
f3cf04d3
YM
10514 (frame_highlight, frame_unhighlight): Activate/deactivate root
10515 control here.
10516 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
10517
10518 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
10519 New extern.
10520
9e5b2858
LT
105212005-04-15 Luc Teirlinck <teirllm@auburn.edu>
10522
10523 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
10524 (lisp): Use it.
10525 (SOME_MACHINE_LISP): Add tooltip.
10526
42c6741e
YM
105272005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10528
7ec64183
SM
10529 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
10530 Don't include TextEncodingConverter.h.
42c6741e
YM
10531 (mac_system_script_code, Vmac_system_locale): New variables.
10532 (syms_of_mac): Defvar them.
10533 (mac_get_system_locale): New function.
10534
7ec64183
SM
10535 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
10536 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 10537 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
10538 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
10539 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
10540
10541 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
10542 TextEncodingConverter.h.
10543
0614c575
ST
105442005-04-13 Steven Tamm <steventamm@mac.com>
10545
7e26f91b
KS
10546 * macterm.c (syms_of_macterm): Remove redundant definition of
10547 mac-pass-control-to-system.
0614c575 10548
203eb0aa
SM
105492005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10550
10551 * window.c (Fset_window_configuration): Be careful when you choose
10552 among several possible points for the new_current_buffer.
10553
a56e6111
YM
105542005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10555
10556 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
10557 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
10558 (Qlanguage_change) [MAC_OS]: New variable.
10559 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 10560 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
10561
10562 * macterm.c (mac_keyboard_text_encoding)
10563 (current_mac_keyboard_text_encoding): Remove variables.
5e1a6e32 10564 (XTread_socket): Store language-change event if keyboard script change
7e26f91b 10565 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 10566 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 10567
7e26f91b 10568 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 10569
6695c528
RS
105702005-04-10 Richard M. Stallman <rms@gnu.org>
10571
10572 * emacs.c (standard_args): Rename --bare-bones to --quick.
10573 Add -D aka --basic-display.
10574
10575 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
10576
18e2d91f
RS
105772005-04-09 Richard M. Stallman <rms@gnu.org>
10578
10579 * keymap.c (where_is_internal): Convert a string used as event type
10580 into "(any string)".
10581
10582 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
10583 * fns.c (Vloads_in_progress): Add extern.
10584 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
10585
105862005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
10587
10588 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
10589
1cf21850
LK
105902005-04-09 Lute Kamstra <lute@gnu.org>
10591
10592 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
10593 within the accessible part of the buffer.
10594
bfd93240
KS
105952005-04-09 Kim F. Storm <storm@cua.dk>
10596
10597 * lread.c (readevalloop): Add args START and END as region in
10598 current buffer to read. Callers changed.
10599 When specified, narrow to this region only when reading,
10600 not during eval. Track next point to read from during eval.
10601 Also restore point to "real" buffer position before eval.
10602 (Feval_region): Don't save excursion and restriction here, and
10603 don't narrow to region. Just pass region to readevalloop.
10604 Note: Point is now preserved even when PRINTFLAG is nil.
10605
9ba27690
KS
106062005-04-08 Kim F. Storm <storm@cua.dk>
10607
10608 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
10609
73f0d996
KS
106102005-04-06 Kim F. Storm <storm@cua.dk>
10611
10612 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
10613
369f76bb
YM
106142005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10615
10616 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
10617 (Fmac_get_preference): Doc fix.
10618
203eb0aa
SM
10619 * macfns.c (Fx_create_frame, x_create_tip_frame):
10620 Add "fontset-mac" to fallback font/fontsets.
369f76bb 10621
2ba613a6
KS
106222005-04-04 Kim F. Storm <storm@cua.dk>
10623
4d5ddddc
KS
10624 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
10625
2ba613a6
KS
10626 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
10627 Call it again after autoload.
10628
1673df2e
JD
106292005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10630
10631 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
10632 mallopt.
10633
10634 * ralloc.c (r_alloc_init): Ditto.
10635
41639988
KH
106362005-04-01 Kenichi Handa <handa@m17n.org>
10637
1cf21850
LK
10638 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
10639 (Vascii_eqv_table): Extern them.
41639988
KH
10640
10641 * casetab.c (set_case_table): If standard is nonzero, setup
10642 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
10643
10644 * search.c (looking_at_1): Use current_buffer->case_canon_table,
10645 not DOWNCASE_TABLE.
10646 (string_match_1): Likewise.
10647 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
10648 Vascii_downcase_table.
10649 (fast_string_match_ignore_case): Likewise.
10650 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
10651 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
10652 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
10653 simple_translate.
10654
6ca53601
SM
106552005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10656
10657 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
10658 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
10659 Use XtNtopShadowPixel and XtNbottomShadowPixel.
10660 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
10661 really work and that breaks with some versions of Xaw3d.
10662
fafbb99d 106632005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
10664
10665 * coding.c (syms_of_coding): Fix previous change.
10666
6ca53601
SM
106672005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
10668
10669 * fileio.c (search_embedded_absfilename): Fix last change.
10670
bf762c98
KH
106712005-03-25 Kenichi Handa <handa@m17n.org>
10672
10673 * coding.c (syms_of_coding): Suggest to use set-coding-category in
10674 the docstring of coding-category-list.
10675
f793f885
KS
106762005-03-31 Kim F. Storm <storm@cua.dk>
10677
10678 * keyboard.c (Qmouse_fixup_help_message): New var.
10679 (syms_of_keyboard): Intern and staticpro it.
10680 (show_help_echo): Apply mouse-fixup-help-message to help string.
10681
c364fe19
KS
106822005-03-30 Kim F. Storm <storm@cua.dk>
10683
10684 * xdisp.c (display_line): Allow multiple overlay arrows in window.
10685
c70a4df6
SM
106862005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10687
10688 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
10689 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
10690 (Ffile_name_absolute_p): Use it.
10691 (search_embedded_absfilename): New fun, extracted from
10692 Fsubstitute_in_file_name. Use file_name_absolute_p.
10693 Free the pw data after use.
10694 (Fsubstitute_in_file_name): Use it.
10695 After cutting a prefix, re-check file-name-handler.
10696
6e7d0438
JR
106972005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
10698
6ca53601 10699 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
10700
10701 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
88a337ec 10702 (w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
6e7d0438 10703
65671706
SM
107042005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
10707 Use Fexit_minibuffer.
10708 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
10709
0de4dad4
SM
107102005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10711
781da985
SM
10712 * dired.c (Ffile_attributes): Add a missing gcpro.
10713
0de4dad4
SM
10714 * alloc.c (make_number): The arg can be bigger than `int'.
10715 * lisp.h (make_number): Make prototype more precise.
10716
10717 * process.c, dired.c (Vfile_name_coding_system)
10718 (Vdefault_file_name_coding_system):
10719 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
10720 (Vdefault_file_name_coding_system): Remove unused declarations.
10721
ff18668f
JD
107222005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10723
10724 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
10725 if it failed to pop up (Gnome "show pointer on ctrl" option makes
10726 menus fail to pop up).
10727
0de4dad4 107282005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
10729
10730 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 10731 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 10732
8df0ffbe
KS
107332005-03-22 Kim F. Storm <storm@cua.dk>
10734
10735 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
10736 * dispextern.h (lookup_derived_face): Fix prototype.
10737 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
10738
10739 * xdisp.c (handle_single_display_spec): Derive left-fringe and
10740 right-fringe face from fringe face.
10741
10742 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
10743 Derive face from fringe face.
10744
6ca30ba4
JD
107452005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10746
10747 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
10748
d615870a
DK
107492005-03-22 David Kastrup <dak@gnu.org>
10750
10751 * textprop.c (Fnext_char_property_change)
66347da7 10752 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
10753 (Fnext_single_char_property_change)
10754 (Fprevious_single_char_property_change): Check that limit is a
10755 number in strings.
10756 (Fnext_single_char_property_change): Coerce position to integer.
10757 (Fprevious_single_char_property_change): Same here.
10758
32b939ea
TTN
107592005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
10760
10761 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
10762
6027e473
SM
107632005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10764
10765 * frame.c (Fignore_event): Remove.
10766 (syms_of_frame): Don't defsubr it.
10767
10768 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
10769 redundant `ignore-event'.
10770
730f4d72
EZ
107712005-03-19 Eli Zaretskii <eliz@gnu.org>
10772
10773 * unexec.c (write_segment, unexec): Move these functions to avoid
10774 forward references (which cause errors with "gcc -gcoff").
10775
c7f6afd5
JD
107762005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10777
6027e473 10778 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 10779 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 10780
c7f6afd5
JD
10781 * xrdb.c (x_load_resources): Use different char *helv when I18N
10782 is present.
10783
db328182
KH
107842005-03-17 Kenichi Handa <handa@m17n.org>
10785
66347da7 10786 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 10787
211f2210
SM
107882005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10789
10790 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
10791 Use xic_create_fontsetname even for non-Motif menus.
10792 Don't forget to free the fontsetname.
10793
10794 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
10795
c7bd5d57
RS
107962005-03-17 Richard M. Stallman <rms@gnu.org>
10797
10798 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
10799
10800 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
10801 (Fmake_symbolic_link): Use G to read the new file name.
10802
10803 * callint.c (Finteractive): Document G option.
10804 (Fcall_interactively): Implement G option.
10805
10806 * buffer.c (buffer_lisp_local_variables): New function,
10807 broken out from Fbuffer_local_variables.
10808 (clone_per_buffer_values): Use buffer_lisp_local_variables.
10809
888953f1
SM
108102005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10811
3c916d65
SM
10812 * xfns.c (xic_create_fontsetname): Add `motif' argument.
10813 Always return a freshly allocated string.
10814 (xic_create_xfontset): Adjust call.
10815
10816 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
10817 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
10818 (dump_realized_face): Fix warning.
10819
9f9e5275
SM
10820 * emacs.c (Fkill_emacs): YAILOM.
10821
888953f1
SM
10822 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
10823
48502d68
YM
108242005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10825
10826 * mac.c (HASHKEY_TERMINAL): Remove.
10827 (HASHKEY_MAX_NID): New macro.
10828 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
10829 argument.
888953f1 10830 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
10831 (xrm_create_database, xrm_q_put_resource)
10832 (xrm_merge_string_database, xrm_q_get_resource_1)
10833 (xrm_q_get_resource): Change resource database representation so
10834 that it may not use multiple hash tables for a single database.
10835 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
10836
d5161e8c
SM
108372005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
10838
11a646cd
SM
10839 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
10840
10841 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
10842 locale-coding-system, as was already done for WINDOWSNT.
10843
d5161e8c
SM
10844 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
10845 translation for chars in the 0-255 range.
10846
568b6e41
LK
108472005-03-16 Lute Kamstra <lute@gnu.org>
10848
10849 * floatfns.c (Ffloor): Doc fix.
10850
469fb3cf
YM
108512005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10852
10853 * mac.c: Include macterm.h instead of directly including Carbon.h.
10854 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
10855 (Qarray, Qdictionary): New variables.
10856 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
10857 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
10858 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
10859 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
10860 in callback for CFDictionaryApplyFunction.
10861 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
10862 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
10863 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
10864 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
10865 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
10866 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
10867 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 10868 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
10869 (parse_binding, parse_component, parse_resource_name, parse_value)
10870 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
10871 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
10872 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
10873 New functions.
469fb3cf
YM
10874
10875 * macfns.c (mac_get_rdb_resource): Remove function.
10876 (x_get_string_resource): Use xrm_get_resource.
10877
10878 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
10879
10880 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
10881 name_list_element.
10882 (mac_make_rdb): Create resource database from preferences and
10883 argument string.
10884 (mac_term_init): Save resource database to cddr part of
10885 name_list_element.
10886
10887 * macterm.h (xrm_merge_string_database, xrm_get_resource)
10888 (xrm_get_preference_database): Add externs.
10889 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
10890 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
10891 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
10892
10893 * process.c (init_process): Change `#ifdef DARWIN' to `#if
10894 defined (DARWIN) || defined (MAC_OSX)'
10895
10896 * s/darwin.h (DARWIN): Don't define.
10897
6a3fac90
YM
108982005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10899
10900 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
10901 Remove unused variables.
10902 (syms_of_macfns): Don't initialize them. Likewise for
10903 Qface_set_after_frame_default. Defvar and initialize
10904 Vx_window_horizontal_drag_shape.
10905 (x_set_mouse_color): Change mouse pointer shape.
10906 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 10907 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
10908 (hourglass_started): New function (from xfns.c).
10909 (start_hourglass, cancel_hourglass): Put function body in #ifdef
10910 MAC_OSX.
10911 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
10912 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 10913 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
10914
10915 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
10916 Controls.h. Use ThemeCursor instead of CursHandle.
10917
d5161e8c
SM
10918 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
10919 Remove functions and declarations.
10920 (mac_set_colors): Take argument for saving background color.
10921 All callers changed.
6a3fac90
YM
10922 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
10923 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
10924 background color.
10925 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
10926 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
10927 Use SetThemeCursor.
6a3fac90
YM
10928 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
10929 indicator control to the upper-right corner of the window.
10930 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
10931 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
10932 (do_window_update): Update controls after updating content area.
10933 (mac_handle_window_event): Remove unused extern.
10934 (XTread_socket): Check both control handle and control part code
10935 to determine whether a scroll bar is clicked. Activate/deactivate
10936 root control instead of contained scroll bar controls.
10937 (make_mac_terminal_frame): Use ThemeCursor constants.
10938
d5161e8c
SM
10939 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
10940 New member hourglass_control.
6a3fac90 10941 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 10942 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 10943
a7321976
YM
109442005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10945
10946 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 10947 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
10948 laptops, and fn + `enter' on laptops.
10949
f7b758bd
SM
109502005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10951
10952 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
10953 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
10954 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
10955
10956 * xfns.c (xic_defaut_fontset): New constant.
10957 (xic_create_fontsetname): New function.
10958 Extracted from create_frame_xic. Try to generate a slightly
10959 better fontset.
10960 (xic_create_xfontset): Use it.
10961 (create_frame_xic): Simplify.
10962
dac24db4
SM
109632005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
10964
10965 * fileio.c (Fmake_symbolic_link): Fix last change.
10966
e0402468
RS
109672005-03-11 Richard M. Stallman <rms@gnu.org>
10968
10969 * fileio.c (Frename_file, Fadd_name_to_file)
10970 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
10971 expand the basename of FILE relative to it.
10972
fa815b14
KH
109732005-03-11 Kenichi Handa <handa@m17n.org>
10974
10975 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
10976 before calling setup_coding_system so that autoloading of a coding
10977 system work.
10978
817d354b
JD
109792005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10980
68a505ef
JD
10981 * xfns.c (hourglass_started): New function.
10982
10983 * dispextern.h: Declare hourglass_started.
10984
10985 * keyboard.c (Fexecute_extended_command): Restart hourglass
10986 after call to Fcompleting_read if already started.
10987
817d354b
JD
10988 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
10989 GTK main loop is entered in xterm.c, thus doing the redraw.
10990
b0a6f45c
KS
109912005-03-10 Kim F. Storm <storm@cua.dk>
10992
10993 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
10994
ee5d57b0
KH
109952005-03-08 Kenichi Handa <handa@m17n.org>
10996
10997 * frame.c (x_set_font): Call set_default_ascii_font if an
10998 available font is found.
10999
11000 * fontset.c (set_default_ascii_font): New function.
dac24db4 11001 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
11002
11003 * fontset.h (set_default_ascii_font): Extern it.
11004
f30c4a5c
KS
110052005-03-07 Kim F. Storm <storm@cua.dk>
11006
3fb26a86
KS
11007 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
11008 (clear_image_cache_count): New var.
11009 (redisplay_internal): Don't clear face and image caches in the
11010 middle of redisplay; do it afterwards.
11011
a54595d4
KS
11012 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
11013
f30c4a5c
KS
11014 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
11015 is valid. If not, clear phys_cursor_on_p and return.
11016
3d182f9d
AS
110172005-03-07 Andreas Schwab <schwab@suse.de>
11018
11019 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
11020
85d964de
RS
110212005-03-06 Richard M. Stallman <rms@gnu.org>
11022
11023 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
11024
11025 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
11026 (Feval, Ffuncall): Use CHECK_CONS_LIST.
11027
11028 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
11029
11030 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
11031 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
11032
3ff96c81
JL
110332005-03-05 Juri Linkov <juri@jurta.org>
11034
11035 * emacs.c (USAGE1): Replace Info node name "command arguments"
11036 with "emacs invocation".
11037 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
11038 allow arguments `--color' and `MODE' to be separated by space.
11039 Add --no-blinking-cursor, -nbc.
11040 (standard_args): Add -nbc, --no-blinking-cursor.
11041
64eb0083
TTN
110422005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
11043
11044 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
11045 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
11046 * fileio.c (Fexpand_file_name) [VMS]:
11047 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
11048 * doc.c (munge_doc_file_name) [VMS]: Likewise.
11049 (Fsnarf_documentation): Call munge_doc_file_name.
11050
ad708ae5
TTN
110512005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
11052
11053 * s/vms.h (FILE_SYSTEM_CASE): New macro.
11054 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
11055 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
11056
ba025f6d
YM
110572005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11058
11059 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
11060 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 11061
dac24db4 11062 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
11063
11064 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11065 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 11066 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
11067 (mac_clear_font_name_table): Move extern to macterm.h.
11068
11069 * macfns.c (install_window_handler): Move extern to macterm.h.
11070 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
11071 valid. Don't check !NILP (dir) because it is already checked with
11072 CHECK_STRING.
11073 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 11074 specifying the default location and obtaining the selected filename.
ba025f6d
YM
11075
11076 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
11077
2313f861 11078 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
11079 are included via Carbon.h.
11080
dac24db4
SM
11081 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
11082 Define USE_CARBON_EVENTS to 1.
2313f861 11083 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
11084 (x_free_frame_resources): Call remove_window_handler for
11085 non-tooltip windows.
11086 [TARGET_API_MAC_CARBON]: Don't include headers that are included
11087 via Carbon.h.
11088 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
11089 (mac_do_receive_dragUPP): New variables.
11090 (mac_handle_service_event, init_service_handler): Put declarations
11091 and definitions in #ifdef MAC_OSX.
11092 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
11093 drag-and-drop handler functions and register them.
11094 (remove_window_handler): New function.
dac24db4
SM
11095 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
11096 Use fsspec_to_posix_pathname.
ba025f6d
YM
11097 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
11098 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
11099 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
11100 Set default cursors.
251db0f4 11101 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call
ba025f6d
YM
11102 init_service_handler or init_quit_char_handler.
11103 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
11104
11105 * macterm.h (install_window_handler, remove_window_handler)
11106 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
11107 (mac_clear_font_name_table): New externs.
ad708ae5 11108
c1558952
TTN
111092005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
11110
11111 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
11112 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
11113 (Fexpand_file_name): Likewise.
11114
fa439170
TTN
111152005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
11116
11117 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
11118 no longer special-case VMS. Add bogus return value.
11119
db2dacf6
KS
111202005-03-02 Kim F. Storm <storm@cua.dk>
11121
11122 * dispextern.h (XASSERTS): Define to 0 if not already defined.
11123 (xassert) [!XASSERTS]: Define dummy version.
11124
0870514c
KS
111252005-03-02 Kim F. Storm <storm@cua.dk>
11126
11127 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
11128 Reported by David Kastrup.
11129
6b640092
KS
111302005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
11131
11132 * xdisp.c (get_next_display_element): Fix control and escape
11133 glyph from display vector.
11134
f4a5a485
SM
111352005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
11136
11137 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
11138
85d964de
RS
111392005-02-27 Richard M. Stallman <rms@gnu.org>
11140
11141 * xdisp.c (fast_find_position): Rename END to BEG.
11142 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
11143
6e8db3ea
JD
111442005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11145
f4a5a485 11146 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
11147 gtk_window_resize and x_wm_set_size_hint.
11148
0f465b55
KS
111492005-02-25 Kim F. Storm <storm@cua.dk>
11150
11151 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
11152
11153 * xdisp.c (init_from_display_pos): Don't read past end of
11154 it->overlay_strings array.
11155
d5fb8dab 111562005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
11157
11158 * buffer.c (syms_of_buffer): Fix typo.
11159
b02c3eed
LK
111602005-02-23 Lute Kamstra <lute@gnu.org>
11161
11162 * buffer.c (Foverlay_buffer): Doc fix.
11163
c8500765
KS
111642005-02-22 Kim F. Storm <storm@cua.dk>
11165
b686dd59
KS
11166 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
11167 and symbol keys in alists and hash tables.
11168
c8500765
KS
11169 * xdisp.c (fast_find_position): Fix search for start of overlay.
11170
81c85b53
KS
111712005-02-21 Kim F. Storm <storm@cua.dk>
11172
11173 * window.c (window_scroll_pixel_based): When scrolling backwards,
11174 handle partial visible line at end of window even when we hit PT.
11175
f4a5a485 111762005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
11177
11178 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
11179
0dd5a842
KS
111802005-02-21 Kim F. Storm <storm@cua.dk>
11181
11182 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
11183 I think those asserts are bogus if buffer contains invisible text
11184 or images.
11185
d5fb8dab 111862005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
11187
11188 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
11189
0fba9f25
KS
111902005-02-20 Kim F. Storm <storm@cua.dk>
11191
11192 * xdisp.c (pos_visible_p): Be sure to move to the specified
11193 position. Always get the full ascent / descent of the
11194 corresponding row, to return reliable rtop and rbot values.
11195 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
11196 Must look one character back, as back_to_previous_line_start
11197 returns position after the newline.
11198 (move_it_vertically_backward): Fix heuristic for when to move further
11199 back in case line_height * 2/3 is larger than window height.
11200 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
11201 as it does not do anything anymore. Add arg current_matrix_p to
11202 use current matrix rather than desired matrix when set.
11203 (try_cursor_movement): Don't scroll to make cursor row fully
11204 visible if cursor didn't move. This avoids unexpected recentering
11205 in case of blinking cursor or accepting process output.
11206 Use current matrix to check cursor row visibility.
11207 (redisplay_window): Fix whether to recenter or move to top in case
11208 cursor line is taller than window height.
11209 (find_first_unchanged_at_end_row): Stop search if we reach a row
11210 which not enabled (instead of abort).
11211
b1c2adc3
KS
112122005-02-18 Kim F. Storm <storm@cua.dk>
11213
c2ee48fb
KS
11214 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
11215 to be nil in a :box attribute value list; customize prints that
11216 as lisp value when no box color is specified.
11217
b1c2adc3
KS
11218 * .gdbinit (pitx, pit): Pretty print display iterator.
11219 (prowx, prow): Pretty print glyph row.
11220 (pcursorx, pcursor): Pretty print a window cursor.
11221 (pwinx, pwin): Pretty print struct window.
11222
f102186f
SM
112232005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11224
11225 * alloc.c (BLOCK_BYTES): Harmless typo.
11226
9b516537
AS
112272005-02-17 Andreas Schwab <schwab@suse.de>
11228
11229 * xfns.c (hack_wm_protocols): Use correct type for last parameter
11230 of XGetWindowProperty to avoid aliasing issues.
11231 (Fx_window_property): Likewise.
11232
11233 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 11234 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
11235
11236 * xterm.c (handle_one_xevent): Use union of struct input_event and
11237 struct selection_input_event to avoid aliasing issues.
11238 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
11239
886b1418
KS
112402005-02-17 Kim F. Storm <storm@cua.dk>
11241
11242 * dispextern.h (enum it_method): New enum.
11243 (GET_FROM_*): Its members.
11244 (struct it): Change member method from function pointer to enum.
11245
11246 * xdisp.c (check_it, init_from_display_pos, handle_stop)
11247 (setup_for_ellipsis, handle_single_display_spec)
11248 (handle_composition_prop, next_overlay_string)
11249 (get_overlay_strings, reseat_1, reseat_to_string)
11250 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
11251 (in_display_vector_p, display_line, get_next_display_element):
11252 Change it->method from function pointer to enum.
11253 (get_next_element): New array to map it->method to function.
11254 (get_next_display_element): Use it.
11255 (set_iterator_to_next): Use switch instead of if/else chain.
11256
99ee2c6a 112572005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
11258
11259 * w32select.c: Summary: Thorough rework to implement Unicode
11260 clipboard operations and delayed rendering.
11261
11262 Drop last_clipboard_text and related code, keep track of
f4a5a485 11263 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
11264
11265 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
11266 (clipboard_owner, modifying_clipboard, cfg_coding_system)
11267 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
11268 (current_coding_system, current_requires_encoding)
f4a5a485
SM
11269 (current_num_nls, current_clipboard_type, current_lcid):
11270 New static variables.
52c7f9ee
JR
11271
11272 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
11273 (render, render_all, run_protected, lisp_error_handler)
11274 (owner_callback, create_owner, setup_config)
f4a5a485
SM
11275 (enum_locale_callback, cp_from_locale, coding_from_cp):
11276 New local functions.
52c7f9ee
JR
11277
11278 (term_w32select, globals_of_w32select): New global functions.
11279
11280 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
11281 clipboard_owner instead. Use delayed rendering and provide
11282 all text formats. Provide CF_LOCALE if necessary.
11283
11284 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
11285 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
11286 available. Force DOS line-ends for decoding.
11287
11288 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
11289
11290 (syms_of_w32select): Init and register new variables.
11291
11292 * w32.h: Add prototypes for globals_of_w32select and
11293 term_w32select. Make the neighboring K&R declarations into
11294 prototypes, too.
11295
11296 * emacs.c: Include w32.h to get function prototypes.
11297 (main): Call globals_of_w32select.
11298
886b1418 11299 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
11300
11301 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
11302
86e61586
KS
113032005-02-16 Kim F. Storm <storm@cua.dk>
11304
11305 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
11306 at end of display vector.
11307
6407f07b
RS
113082005-02-15 Richard M. Stallman <rms@gnu.org>
11309
11310 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
11311 for mode and header lines.
11312
11313 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
11314
11315 * keymap.h (describe_map_tree): Change decl.
11316
11317 * keyboard.c (command_loop_1): Always use safe_run_hooks
11318 to run Qdeferred_action_function.
11319
11320 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
11321 (describe_map, describe_vector): Likewise. When it's 1,
11322 don't omit shadowed bindings, instead mark them as shadowed.
11323
11324 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
11325 for describe_map_tree. Pass 1 for MENTION_SHADOW.
11326
11327 * data.c (Fsetq_default): Allow no arg case.
11328
3bb917bf
KH
113292005-02-14 Kenichi Handa <handa@m17n.org>
11330
11331 * coding.c (encode_coding_string): Always return a unibyte string.
11332 If NOCOPY is nonzero and there's no need of encoding, make STR
11333 unibyte directly.
11334
11335 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
11336 multibyte string, signal an error instead of aborting.
11337
e31d908f
DN
113382005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
11339
11340 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
11341
48e029b6
KS
113422005-02-12 Kim F. Storm <storm@cua.dk>
11343
11344 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
11345
c10bb00a
KS
113462005-02-10 Kim F. Storm <storm@cua.dk>
11347
11348 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
11349 if it moves outside window or it doesn't display text.
11350
9ca0f64a
KS
113512005-02-09 Kim F. Storm <storm@cua.dk>
11352
11353 * undo.c (Fprimitive_undo): Check that undo function does not
11354 switch buffer.
11355
b8d6f4af
JD
113562005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11357
11358 * xselect.c (selection_data_to_lisp_data): For the special case
11359 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
11360 (x_property_data_to_lisp, selection_data_to_lisp_data):
11361 Comment update: data must be array of int for format == 32.
b8d6f4af 11362
3419757d
SM
113632005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11364
11365 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
11366
3a441526
JD
113672005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11368
fc34503b
JD
11369 * xfns.c (Fx_change_window_property): Use long array when format is 32.
11370 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
11371 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
11372 (x_set_tool_bar_lines): Check that width and height is greater than
11373 zero before clearing area.
fc34503b
JD
11374
11375 * xselect.c (x_reply_selection_request): Pass long array to
11376 XChangeProperty so that 64 bit longs are handeled correctly.
11377 (x_get_window_property): If format is 32 and long is bigger than 32
11378 bits convert data from XGetWindowProperty from long array to int array.
11379 (lisp_data_to_selection_data): When the input is a vector and the
11380 format is 32, allocate a long array even if long is bigger than 32 bits.
11381 (x_fill_property_data): Use char, short and long as the man page
11382 for XChangeProperty specifies. This way the data returned is OK for
11383 both 32 and 64 bit machines.
11384 (x_handle_dnd_message): Calculate size correctly even for 64 bit
11385 machines.
11386 (Fx_send_client_event): Undo change from 2005-02-05,
11387 x_fill_property_data now handles that case.
11388
3419757d 11389 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
11390 reason for the approach in the code.
11391
82ec225b
KS
113922005-02-07 Kim F. Storm <storm@cua.dk>
11393
11394 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
11395
ba2c991c
RS
113962005-02-06 Richard M. Stallman <rms@gnu.org>
11397
11398 * eval.c (Frun_hook_with_args)
11399 (Frun_hook_with_args_until_success)
11400 (Frun_hook_with_args_until_failure): Doc fixes.
11401
e120ea40
AS
114022005-02-05 Andreas Schwab <schwab@suse.de>
11403
3419757d 11404 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 11405
31f16913
JD
114062005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11407
11408 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
11409 the longs in a XClientMessageEvent correctly when long is 64 bits.
11410
6082a820
EZ
114112005-02-05 Eli Zaretskii <eliz@gnu.org>
11412
11413 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
11414 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
11415
0e95095b
JD
114162005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11417
11418 * xmenu.c (menubar_selection_callback): Force out GTK buffered
11419 events so the menu event comes after them. This is to prevent sit-for
11420 from exiting on buffered events directly after a menu selection,
11421 lisp code for Help => About Emacs uses sit-for.
11422
11423 * gtkutil.c (create_menus): Connect selection-done event instead of
11424 the deactivate event to deactivate_cb. This will make the last
11425 leave event come before the call to deactivate_cb, so the leave
11426 event does not make sit-for exit after a menu selection.
11427
5bb6a3c1
KS
114282005-02-03 Kim F. Storm <storm@cua.dk>
11429
11430 * dispnew.c (build_frame_matrix_from_leaf_window)
11431 [!GLYPH_DEBUG]: Fix xassert.
11432
11433 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
11434
11435 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11436
e9859e26
YM
114372005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11438
11439 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
11440 the compiling OS version.
11441
11442 * macfns.c (x_create_tip_frame): Likewise.
11443
3419757d 11444 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 11445
4e07258f
RS
114462005-02-03 Richard M. Stallman <rms@gnu.org>
11447
11448 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
11449
11450 * xdisp.c (echo_area_display): Clear echo_message_buffer.
11451
11452 * buffer.c (Fbury_buffer): Doc fix.
11453
4a34b529
ST
114542005-02-02 Steven Tamm <steventamm@mac.com>
11455
7e26f91b 11456 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 11457 xassert being uncondition, but predicate is.
7e26f91b 11458 * dispnew.c (update_window): Fix compile error due to
f6c62d96 11459 xassert being uncondition, but predicate is.
4a34b529 11460
d78f30b8
MB
114612005-02-02 Miles Bader <miles@gnu.org>
11462
11463 * dispextern.h (xassert): Enable unconditionally.
11464
b044278d
KS
114652005-02-02 Kim F. Storm <storm@cua.dk>
11466
11467 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
11468
56072160
KH
114692005-02-02 Kenichi Handa <handa@m17n.org>
11470
11471 * casefiddle.c (casify_object): Enable changing characters of
11472 different byte length.
11473 (casify_region): Fix loop condition, args to replace_range_2, and
11474 update opoint_byte.
11475
f4a5a485 11476 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 11477
5e1674c5
KS
114782005-02-01 Kim F. Storm <storm@cua.dk>
11479
11480 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
11481 stack before calling handle_display_prop.
11482
fb89c330
KS
114832005-01-31 Kim F. Storm <storm@cua.dk>
11484
11485 * undo.c (Qapply): New lisp var.
11486 (syms_of_undo): Intern and staticpro it.
11487 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
11488 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
11489
11490 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
11491
7bf72fa6
JH
114922005-01-30 Jesper Harder <harder@phys.au.dk>
11493
a050b1a9
KS
11494 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
11495 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 11496
03c64f2e
LT
114972005-01-29 Luc Teirlinck <teirllm@auburn.edu>
11498
11499 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 11500 Increase value to 3 Meg.
03c64f2e 11501
49b8b5dc
JD
115022005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11503
11504 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
11505 button events are not received otherwise.
11506
5a92a9eb
RS
115072005-01-29 Richard M. Stallman <rms@gnu.org>
11508
11509 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
11510
11511 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
11512
5c243ee4
SM
115132005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
11514
11515 * keymap.c (access_keymap): YAILOM.
11516
caf533af
KS
115172005-01-27 Kim F. Storm <storm@cua.dk>
11518
11519 * xdisp.c (get_phys_cursor_geometry): New function to calculate
11520 phys cursor position and size for hollow cursor. Position is
11521 aligned with get_glyph_string_clip_rect and ensures that a hollow
11522 cursor is shown, even when the actual glyph is not visible.
11523
11524 * dispextern.h (get_phys_cursor_geometry): Add prototype.
11525
11526 * xterm.c (x_clip_to_row): Ensure y >= 0.
11527 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
11528
11529 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
11530
11531 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
11532
043f7f73
SM
115332005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
11534
11535 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
11536
889f3641
KS
115372005-01-27 Kim F. Storm <storm@cua.dk>
11538
11539 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
11540 glyph, even when row is only partially visible and actual cursor
11541 position is not visible.
11542
29099c2f
RS
115432005-01-24 Richard M. Stallman <rms@gnu.org>
11544
11545 * xterm.c (x_error_quitter): No longer static, and moved after
11546 x_error_handler.
11547
6adb6f01
KS
115482005-01-24 Kim F. Storm <storm@cua.dk>
11549
11550 * xdisp.c (move_it_by_lines): If we move forward after going too
11551 far back, cancel move if end position is same as start position.
11552
4d904fa0
ST
115532005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11554
11555 * dispextern.h (struct glyph_string): New members clip_head and
11556 clip_tail.
6adb6f01 11557
4d904fa0
ST
11558 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
11559 region to the area between clip_head and clip_tail.
11560 (draw_glyphs): Record the area that need to be actually redrawn to
11561 the new variables clip_head and clip_tail when there are
11562 overhangs. Set values of these variables to the corresponding
11563 members in struct glyph_string. Refine x coordinates for
11564 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 11565
4d904fa0
ST
11566 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
11567
11568 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
11569 QDTextBounds.
11570 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 11571 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 11572 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 11573 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 11574
f2417699
KS
115752005-01-24 Kim F. Storm <storm@cua.dk>
11576
6f67f013
KS
11577 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
11578 direction if window height was smaller than next-screen-context-lines.
11579 Now always scroll at least one line in the requested direction.
11580 Ensure that we actually do scroll backwards when requested to do so.
11581
f2417699
KS
11582 * xdisp.c (redisplay_window): Only try to make cursor line fully
11583 visible once (to avoid redisplay loop).
11584
a354b72c
KS
115852005-01-23 Kim F. Storm <storm@cua.dk>
11586
6b3d88f7 11587 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 11588 partially visible rows.
6b3d88f7
KS
11589 (window_scroll_pixel_based): Adapt to that change.
11590
5c20cae2
KS
11591 * window.c (window_scroll_pixel_based): Force moving to next line
11592 if scrolling doesn't move start point, e.g. if looking at tall image.
11593
a354b72c 11594 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
11595 Clear last_height before calling line_bottom_y to get real height.
11596 Fix calculation of y.
a354b72c 11597
d9e7c622
ST
115982005-01-22 Steven Tamm <steventamm@mac.com>
11599
11600 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 11601 (DARWIN): Define.
7e26f91b 11602
d9e7c622
ST
11603 * process.c (init_process): Default process-connection-type to
11604 nil on darwin 6 or less, t if it is 7 or higher. This way the
11605 broken pty behavior is still allowed on darwin 6 for interactive
11606 processes for people that know what they are doing.
11607
d00e399a
KS
116082005-01-22 Kim F. Storm <storm@cua.dk>
11609
11610 * window.c (auto_window_vscroll_p): New boolean.
11611 (syms_of_window): DEFVAR_BOOL it.
11612 (Fpos_visible_in_window_p): Extend return value to include RTOP
11613 and RBOT values if FULLY is nil.
11614 (window_scroll_pixel_based): Adjust vscroll for partially visible
11615 rows if auto_window_vscroll_p is set.
11616 (Fset_window_vscroll): Do nothing if vscroll is not modified.
11617
11618 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
11619 to return number of partially invisible pixels at top and bottom
11620 of the dislay row at POS.
11621
11622 * lisp.h (pos_visible_p): Fix prototype.
11623
f95a20e7
RS
116242005-01-21 Richard M. Stallman <rms@gnu.org>
11625
11626 * fileio.c (Fcopy_file): Doc fix.
11627
eee141ce
JD
116282005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11629
11630 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
11631 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
11632 start of function for older compilers.
11633
6f771c32
RS
116342005-01-20 Richard M. Stallman <rms@gnu.org>
11635
11636 * editfns.c (Fmessage): If arg is "", return "" (as before).
11637
11638 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
11639
11640 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
11641 variable.
11642
a15252fd
ST
116432005-01-20 Steven Tamm <steventamm@mac.com>
11644
043f7f73 11645 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
11646 (init_editfns): Assign new variable operating-system-release
11647 based on call to uname if available.
043f7f73 11648 (get_operating_system_release): Add function to
d00e399a 11649 allow c-level access to operating system release.
a15252fd
ST
11650
11651 * config.h: Regenerated.
11652
043f7f73
SM
11653 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
11654 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
11655 using ptys as '7'.
11656
3d6a4b2d
KS
116572005-01-20 Kim F. Storm <storm@cua.dk>
11658
62fc9b0f
KS
11659 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
11660
c310aca4
KS
11661 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
11662 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
11663
11664 * macterm.c (x_draw_glyph_string_box): Likewise.
11665
11666 * w32term.c (x_draw_glyph_string_box): Likewise.
11667
3d6a4b2d
KS
11668 * indent.c (Fvertical_motion): Temporarily disable selective display.
11669
27c8be45
KS
116702005-01-19 Kim F. Storm <storm@cua.dk>
11671
77db5cf3
KS
11672 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
11673 image property.
11674
27c8be45
KS
11675 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
11676
81f498dc
KS
116772005-01-18 Kim F. Storm <storm@cua.dk>
11678
11679 * xdisp.c (fast_find_position): Backtrack to find first row if
11680 charpos is inside a display overlay that spans multiple lines.
11681
1cdb0707
KH
116822005-01-18 Kenichi Handa <handa@m17n.org>
11683
11684 * coding.c (decode_coding_iso2022): Translate invalid codes if
11685 translation-table is specified.
11686
677159ce
KS
116872005-01-18 Kim F. Storm <storm@cua.dk>
11688
11689 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
11690 change. If handle_display_prop indicates newline is replaced by
11691 image or text, move back to start of relevant overlay or interval
11692 and continue scan from there. Simplify.
11693
977284cc
KS
116942005-01-17 Kim F. Storm <storm@cua.dk>
11695
043f7f73
SM
11696 * dispnew.c (mode_line_string, marginal_area_string):
11697 Fix off-by-one error in search for glyph.
977284cc 11698
e24531b7
KS
116992005-01-16 Kim F. Storm <storm@cua.dk>
11700
11701 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
11702
5ddd7664
ST
117032005-01-16 Steven Tamm <steventamm@mac.com>
11704
043f7f73 11705 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 11706
fc2ff44b
AS
117072005-01-16 Andreas Schwab <schwab@suse.de>
11708
11709 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
11710
50af5100
JD
117112005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11712
11713 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
11714 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
11715
a2d5fca0
JD
117162005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11717
11718 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
11719 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
11720 New flags for readable_events.
043f7f73 11721 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
11722 (tracking_off): Call readable_events and get_input_pending with
11723 flag READABLE_EVENTS_DO_TIMERS_NOW.
11724 (readable_events): Move code from old readable_filtered_events here,
11725 but check new READABLE_EVENTS_* in argument flags instead of previous
11726 two boolean arguments do_timers_now and filter_events.
11727 If we are doing mouse tracking and the mouse moved, return only if
11728 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
11729 (swallow_events): Call get_input_pending with flag
11730 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 11731 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
11732 here. Replace boolean arguments do_timers_now, filter_events with
11733 flags, and pass flags to readable_events. Document new
11734 READABLE_EVENTS_* flags.
11735 (detect_input_pending_ignore_squeezables): New function.
11736 (detect_input_pending_run_timers): Call get_input_pending with flag
11737 READABLE_EVENTS_DO_TIMERS_NOW.
11738 (Finput_pending_p): Call get_input_pending with flags
11739 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
11740
11741 * dispnew.c (update_window, update_frame_1): Replace calls to
11742 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 11743 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
11744 mouse movements.
11745
11746 * lisp.h: Declare detect_input_pending_ignore_squeezables.
11747
42afbcda
ST
117482005-01-15 Steven Tamm <steventamm@mac.com>
11749
e24531b7
KS
11750 * macterm.c (Vmac_use_core_graphics): Declare variable for
11751 mac-allow-anti-aliasing.
11752 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 11753 (mac_draw_string_common): Use core graphics text rendering if
0530c679 11754 mac-allow-anti-aliasing is enabled.
743d0696 11755
42afbcda
ST
11756 * macfns.c (Fx_file_dialog): Save As dialog includes only the
11757 file name in the text box.
11758
9cdd4884
ST
117592005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11760
043f7f73
SM
11761 * macfns.c (x_set_foreground_color, x_set_background_color):
11762 Sync with xfns.c.
9cdd4884
ST
11763 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
11764 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
11765 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
11766
88948d55
KS
117672005-01-14 Kim F. Storm <storm@cua.dk>
11768
11769 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
11770
20d6de82
RS
117712005-01-13 Richard M. Stallman <rms@gnu.org>
11772
11773 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
11774 if Voverriding_terminal_local_map is non-nil.
11775
11776 * keyboard.c (syms_of_keyboard): Doc fix.
11777
f75a592e
KS
117782005-01-13 Kim F. Storm <storm@cua.dk>
11779
11780 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 11781 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 11782
28f94a34
RS
117832005-01-12 Richard M. Stallman <rms@gnu.org>
11784
11785 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
11786 face property for characters that don't specify one.
11787
11788 * fns.c (Frequire): Record in load-history unconditionally.
11789
57a230b1
KS
117902005-01-10 Kim F. Storm <storm@cua.dk>
11791
11792 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
11793
11794 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
11795 Callers changed.
11796 Add support to merge with lisp face id too (if face_name is t).
11797
11798 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11799 Don't lookup lface_id from display table glyphs here; instead use
11800 merge_faces to merge the lisp face id into current face.
11801
8ab2c119
KS
118022005-01-09 Kim F. Storm <storm@cua.dk>
11803
11804 * dispextern.h (struct it): New member dpvec_face_id.
11805 (merge_into_realized_face): Add prototype.
11806
11807 * xfaces.c (merge_into_realized_face): New function. Used to
5e1a6e32 11808 merge escape-glyph face or face from display table into current face.
8ab2c119
KS
11809
11810 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
11811 (syms_of_xdisp): DEFVAR_LISP it.
11812 (escape_glyph_face): Remove var.
11813 (redisplay_window): Don't initialize it.
11814 (setup_for_ellipsis, get_next_display_element):
11815 Set it->dpvec_face_id to -1.
11816 (get_next_display_element): Test Vshow_nonbreak_escape.
11817 Do not setup escape_glyph_face.
11818 Properly merge escape-glyph face or face from display table with
043f7f73
SM
11819 current face for escape and control characters.
11820 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
11821 element of display vector.
11822 (next_element_from_display_vector): If it->dpvec_face_id is set,
11823 use that instead of lface_id from glyph itself.
11824
e0910857
JD
118252005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11826
11827 * xterm.h (struct x_output): New member, toolbar_detached.
11828
11829 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
11830 38.
11831 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
11832 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
11833 (xg_create_tool_bar): Initialize toolbar_detached.
11834 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
11835 toolbar_detached is zero.
11836
ff59904a
JD
118372005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11838
9b85e63d
JD
11839 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
11840 gtk_menu_popup if not for_click, so callbacks for the menu are called.
11841
ff59904a
JD
11842 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
11843 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 11844 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
11845
11846 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 11847 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
11848 XFLOAT_DATA to get extract number from Lisp object.
11849
f9a23a6f
KS
118502005-01-07 Kim F. Storm <storm@cua.dk>
11851
11852 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
11853 Set stop_charpos to current charpos instead of 0.
11854
28f94a34
RS
118552005-01-06 Nick Roberts <nickrob@snap.net.nz>
11856
11857 * xdisp.c (Fformat_mode_line): First arg now required.
11858
a6fffcdc
ST
118592005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11860
11861 * macterm.c (XLoadQueryFont): Correctly handle 0 size
11862 font widths that are returned from some Japanese fonts.
11863
c35b0c6b
KS
118642005-01-06 Kim F. Storm <storm@cua.dk>
11865
11866 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
11867 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
11868 (destroy_fringe_bitmap): Set fringe_faces element to nil.
11869 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
11870 fringe_faces array and init elements to nil.
11871 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
11872 non-persistent face id.
11873 (mark_fringe_data): New function for GC.
11874
11875 * alloc.c (mark_fringe_data): Declare extern.
11876 (Fgarbage_collect): Call mark_fringe_data.
11877
11878 * alloc.c (overrun_check_free): Invalidate freed memory if
11879 XMALLOC_CLEAR_FREE_MEMORY is defined.
11880
e0e76ab9
ST
118812005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11882
11883 * macfns.c: Include sys/param.h.
11884 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
11885 and function.
11886 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
11887 of filename string. Set event callback function when creating
11888 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 11889 of apple event descriptor record if failed to create it.
e0e76ab9
ST
11890
11891 * macterm.c: Include sys/param.h.
11892 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
11893 kEventWindowUpdate.
11894 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
11895 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
11896 of FSSpec from apple event descriptor record.
11897 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
11898 size of filename string.
11899 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
11900 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
11901 file dialog is in action.
043f7f73
SM
11902 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
11903 Reject only when there are no filename items. Set background color
e0e76ab9 11904 before (un)highlighting the window below the dragged items.
2313f861 11905 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 11906
043bc640
KH
119072005-01-05 Romain Francoise <romain@orebokech.com>
11908
11909 * term.c (encode_terminal_code): Fix buffer size computation.
11910
dd496df6
RS
119112005-01-04 Richard M. Stallman <rms@gnu.org>
11912
11913 * xdisp.c (Fformat_mode_line): Doc fix.
11914
026cdede
SM
119152005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11916
11917 * alloc.c (refill_memory_reserve): Move.
11918 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
11919 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
11920
d57c7572
RS
119212005-01-03 Richard M. Stallman <rms@gnu.org>
11922
11923 * window.c (window_scroll_pixel_based): Don't correct preserve_y
11924 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
11925
b14f868c
JR
119262005-01-03 Jason Rumney <jasonr@gnu.org>
11927
11928 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
11929 fontp->space_width to FONT_WIDTH so they are valid.
11930
11931 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 11932 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
11933 their appropriate values.
11934
11935 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
11936 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
11937 fontp->space_width.
11938
e169f939
ST
119392005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11940
11941 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
11942 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
11943 metrics for max and min bounds.
11944 (x_load_font): Correctly calculate average font width metrics.
11945
19996af4
RS
119462005-01-02 Richard M. Stallman <rms@gnu.org>
11947
11948 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
11949
42d02da0
JD
119502004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11951
11952 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
11953
1db7dd46
RS
119542004-12-31 Richard M. Stallman <rms@gnu.org>
11955
b437860a
RS
11956 * xdisp.c (setup_for_ellipsis, get_next_display_element):
11957 Set it->ellipsis_p to 1 or 0.
11958 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 11959 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
11960 (cursor_row_p): If PT's at the end of the ellipsis the row
11961 ends within, don't display cursor on this row.
11962
11963 * dispextern.h (struct it): New element ellipsis_p.
11964 (struct glyph_row): New element ends_in_ellipsis_p.
11965
11966 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
11967 position if we're reading from something other than the buffer.
11968
1db7dd46
RS
11969 * window.c (window_scroll_pixel_based): Only look at
11970 Vscroll_preserve_screen_position if the old PT can't be kept.
11971 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
11972
1225f637
KS
119732004-12-30 Kim F. Storm <storm@cua.dk>
11974
11975 * xdisp.c (get_line_height_property): New function extracted from
11976 original calc_line_height_property.
11977 (calc_line_height_property): Rework. Handle t and (nil . ratio).
11978 (x_produce_glyphs): Use them to handle line-height and
11979 line-spacing according to new height spec.
11980 (Qtotal): Remove.
33b2f4ea 11981 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 11982
c243063e
KH
119832004-12-30 Kenichi Handa <handa@m17n.org>
11984
11985 * fileio.c (Finsert_file_contents): Don't use
11986 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 11987 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
11988
11989 * fontset.h (struct font_info): New members space_width and
11990 average_width.
11991
11992 * frame.h (struct frame): New member space_width.
11993 (FRAME_SPACE_WIDTH): New macro.
11994
11995 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
11996
11997 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
11998 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 11999 fontp->space_width.
043f7f73 12000 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
12001 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
12002
12003 * xdisp.c (x_produce_glyphs): Calculate tab width by
12004 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
12005
456e761b
ST
120062004-12-29 Sanghyuk Suh <han9kin@mac.com>
12007
12008 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 12009 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 12010
188577ce
LT
120112004-12-29 Luc Teirlinck <teirllm@auburn.edu>
12012
12013 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
12014
99ec74b9
RS
120152004-12-29 Richard M. Stallman <rms@gnu.org>
12016
12017 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
12018
30c92fab
ST
120192004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12020
12021 * macfns.c (install_window_handler): Modify extern to return OSErr
12022 value.
12023 (mac_window): Handle return value of install_window_handler.
12024
12025 * macterm.c (reflect_byte): Remove function.
12026 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
12027 Lookup table instead.
12028 (mac_do_font_lists): Simplify calculation of the longest
12029 nonspecial string.
5e1a6e32 12030 (init_mac_drag_n_drop): Remove function and declaration.
30c92fab
ST
12031 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12032 init_mac_drag_n_drop.
12033 (mac_do_track_drag): New function and declaration.
12034 (install_window_handler): Return OSErr value.
043f7f73
SM
12035 (install_window_handler) [TARGET_API_MAC_CARBON]:
12036 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 12037 (do_ae_open_documents): Generate unibyte strings for filenames.
251db0f4 12038 (mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise.
043f7f73 12039 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 12040
4b982924
DN
120412004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
12042
12043 * coding.c (decode_coding): Fix previous change.
12044
93fdf45f
RS
120452004-12-28 Richard M. Stallman <rms@gnu.org>
12046
12047 * xdisp.c (back_to_previous_visible_line_start):
12048 Don't call handle_display_prop.
12049
5bdca8af
DN
120502004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
12051
12052 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
12053 (decode_coding_emacs_mule, encode_coding_emacs_mule)
12054 (decode_coding_iso2022, encode_designation_at_bol)
12055 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
12056 (decode_coding): Constify arguments and local vars.
12057
33385c6f
JD
120582004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12059
12060 * xmenu.c (popup_get_selection): Only pop down dialogs
12061 on C-g and Escape.
95bdef2e 12062 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
12063 (create_and_show_popup_menu, create_and_show_dialog):
12064 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 12065
b15325b2
ST
120662004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12067
12068 * dispextern.h: Change HAVE_CARBON to MAC_OS.
12069 (struct glyph_string): Likewise.
a2c7e69a 12070
b15325b2
ST
12071 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
12072 mac_initialize.
a2c7e69a 12073
b15325b2
ST
12074 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
12075 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 12076
b15325b2 12077 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 12078
b15325b2
ST
12079 * frame.c (x_set_frame_parameters, x_report_frame_params)
12080 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
12081 (x_set_border_width, Vdefault_frame_scroll_bars):
12082 Change HAVE_CARBON to MAC_OS.
a2c7e69a 12083
b15325b2
ST
12084 * image.c [MAC_OS]: Include sys/stat.h.
12085 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
12086 QuickTimeComponents.h.
a2c7e69a 12087
b15325b2
ST
12088 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
12089 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 12090 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
12091 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
12092 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12093 (mac_clear_font_name_table): Add extern.
12094 (Fmac_clear_font_name_table): New defun.
12095 (syms_of_mac): Defsubr it.
12096 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
12097 [MAC_OSX] (select_and_poll_event): New function.
12098 [MAC_OSX] (sys_select): Use it.
12099 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
12100 [MAC_OSX && SELECT_USE_CFSOCKET]
12101 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
12102 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
12103 RunLoop for simultaneously monitoring two kinds of inputs, window
12104 events and process outputs, without periodically polling.
a2c7e69a 12105
b15325b2
ST
12106 * macfns.c (mac_initialized): Remove extern.
12107 (stricmp): Put in #if 0. All callers changed to use xstricmp in
12108 xfaces.c.
043f7f73
SM
12109 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
12110 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
12111 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
12112 (mac_get_rdb_resource): New function (from w32reg.c).
12113 (x_get_string_resource): Use it.
12114 (install_window_handler): Add extern.
12115 (mac_window): New function.
043f7f73
SM
12116 (Fx_create_frame): Use it instead of make_mac_frame.
12117 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
12118 (Fx_open_connection, Fx_close_connection): New defuns.
12119 (syms_of_macfns): Defsubr them.
043f7f73
SM
12120 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
12121 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
12122 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
12123 (x_create_tip_frame): Don't call ShowWindow.
12124 (Fx_show_tip): Call ShowWindow.
12125 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
12126 TARGET_API_MAC_CARBON'.
12127 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
12128 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 12129
043f7f73 12130 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
12131 (Window): Typedef to WindowPtr and move outside `#if
12132 TARGET_API_MAC_CARBON'.
12133 (XSizeHints): New struct.
a2c7e69a 12134
b15325b2
ST
12135 * macterm.c (x_update_begin, x_update_end)
12136 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
12137 frame.
12138 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
12139 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
12140 (construct_mouse_click): Put in #if 0.
12141 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
12142 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
12143 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12144 (activate_scroll_bars, deactivate_scroll_bars)
12145 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
12146 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
12147 if the position is neither user-specified nor program-specified.
12148 (x_free_frame_resources): Free size_hints.
043f7f73 12149 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
12150 (mac_clear_font_name_table): New function.
12151 (mac_do_list_fonts): Initialize font_name_table if needed.
12152 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
12153 around mac_do_list_fonts.
12154 (mac_unload_font): New function.
12155 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
12156 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
12157 and definitions with #if TARGET_API_MAC_CARBON.
12158 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
12159 (install_window_handler): Add decl.
12160 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
12161 window. Use UpdateControls. Get the rectangle that should be
12162 updated and restrict the target of expose_frame to it.
043f7f73 12163 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
12164 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
12165 (do_zoom_window): Don't use x_set_window_size.
12166 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
12167 (install_window_handler): New function.
12168 [!USE_CARBON_EVENTS] (mouse_region): New variable.
12169 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
12170 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
12171 GetEventDispatcherTarget inside BLOCK_INPUT.
12172 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
12173 Update mouse_region when mouse is moved.
12174 (make_mac_frame): Remove.
043f7f73
SM
12175 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
12176 Initialize mouse pointer shapes. Change values of f->left_pos and
12177 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
12178 Don't call ShowWindow.
b15325b2
ST
12179 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
12180 Vinvocation_name and Vsystem_name.
12181 (mac_make_rdb): New function (from w32term.c).
12182 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
12183 already been opened. Don't pass argument to
12184 mac_initialize_display_info. Don't set dpyinfo->height/width.
12185 Add entries to x_display_list and x_display_name_list.
12186 (x_delete_display): New function.
12187 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
12188 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
12189
b15325b2
ST
12190 * macterm.h (check_mac): Add extern.
12191 (struct mac_output): New member size_hints.
12192 (FRAME_SIZE_HINTS): New macro.
12193 (mac_unload_font): Add extern.
a2c7e69a 12194
b15325b2 12195 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 12196
1d1c7e75 12197 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 12198
92d2947b
RS
121992004-12-27 Richard M. Stallman <rms@gnu.org>
12200
043f7f73 12201 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
12202 (syms_of_buffer): Don't defsubr it.
12203
12204 * process.c (list_processes_1): Set undo_list instead
12205 of calling Fbuffer_disable_undo.
12206
043f7f73 12207 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 12208 single_display_prop_string_p.
043f7f73 12209 (single_display_spec_intangible_p): Rename from
92d2947b 12210 single_display_prop_intangible_p.
043f7f73 12211 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
12212 Rewritten to be easier to understand.
12213
a2c7e69a 12214 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
12215 and variables get just NAME.
12216
12217 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
12218
12219 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
12220 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
12221 (Qdefvar): Var deleted.
12222 (syms_of_eval): Don't initialze it.
12223
12224 * lread.c (syms_of_lread) <load-history>: Doc fix.
12225
9f6fcdc5
JD
122262004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12227
12228 * xmenu.c (popup_get_selection): Pop down on C-g.
12229 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
12230 pops down menu on C-g.
12231 (xdialog_show): If dialog popped down and no button in the dialog was
12232 pushed, call Fsignal to quit.
12233 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
12234 Fsignal to quit.
12235
1d1c7e75 12236 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
12237
12238 * gtkutil.c (xg_initialize): Install bindings for C-g so that
12239 dialogs and menus pop down.
12240
d8ca23a0
KH
122412004-12-27 Kenichi Handa <handa@m17n.org>
12242
12243 * coding.c (code_convert_region): Fix calculation of `ratio'.
12244
857ae68b
JD
122452004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12246
133c0116
JD
12247 * gtkutil.c (update_frame_tool_bar): Make the value of
12248 tool-bar-button-margin control margins of images in tool bar.
12249
857ae68b
JD
12250 * alloc.c (check_depth): New variable.
12251 (overrun_check_malloc, overrun_check_realloc): Only add
12252 overhead and write check pattern if check_depth is 1 (to handle
12253 recursive calls). Increase/decrease check_depth in entry/exit.
12254 (overrun_check_free): Only check for overhead if check_depth is 1.
12255 Increase/decrease check_depth in entry/exit.
12256
bd55c35c
JD
122572004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12258
12259 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
12260 before touching input_available_clear_time, to avoid accessing it
12261 from multiple threads.
12262
66354420
JR
122632004-12-23 Jason Rumney <jasonr@gnu.org>
12264
12265 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
12266 of JPEG library.
12267
55f4edbc
RS
122682004-12-22 Richard M. Stallman <rms@gnu.org>
12269
12270 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
12271
12272 * lisp.h (Vundo_outer_limit): Fix decl.
12273
12274 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
12275 Uses changed.
12276 (syms_of_undo): Initialize appropriately.
12277 (truncate_undo_list): If it's nil, there's no limit.
12278
7a0ea9e3
KH
122792004-12-22 Kenichi Handa <handa@m17n.org>
12280
12281 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
12282
fda2922a
RS
122832004-12-21 Richard M. Stallman <rms@gnu.org>
12284
12285 * eval.c (unwind_to_catch): Clear immediate_quit.
12286
12287 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
12288 specially as `\ ' and `\-'.
12289
12290 * keyboard.c (kbd_buffer_store_event_hold):
12291 In the code for while-no-input, handle immediate_quit.
12292
12293 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
12294 Call that at the very start.
043f7f73 12295 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
12296 (syms_of_alloc): Don't define undo-limit,
12297 undo-strong-limit and undo-outer-limit here.
12298
12299 * undo.c (truncate_undo_list): Return void.
12300 Take just one argument, the buffer.
12301 Make it current, and inhibit recursive GC.
12302 Access and update the undo list directly; return void.
12303 Refer to the undo...limit variables directly.
12304 Test undo_outer_limit only after counting the whole current command.
12305 When it's exceeded, call the function in undo-outer-limit-function.
12306 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
12307 (Vundo_outer_limit_function): New variable.
12308 (syms_of_undo): Define undo-limit, undo-strong-limit
12309 and undo-outer-limit here, and undo-outer-limit-function.
12310 Doc fixes.
12311
12312 * lisp.h (truncate_undo_list): Update decl.
12313
123142004-12-21 Piet van Oostrum <piet@cs.uu.nl>
12315
12316 * fileio.c (Fread_file_name): Delete duplicates in
12317 file-name-history when history_delete_duplicates is true.
12318
68c69027
ST
123192004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12320
12321 * macterm.c (mac_do_list_fonts): Fix memory leak
12322
134579f2
RS
123232004-12-20 Richard M. Stallman <rms@gnu.org>
12324
12325 * regex.c (re_match_2_internal) <symend, wordend>:
12326 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
12327
fbe6152f
ST
123282004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12329
043f7f73
SM
12330 * macterm.c (endif, x_font_name_to_mac_font_name):
12331 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
12332 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
12333 quickly finding a specific font without needing regexps.
12334
fecad3f6
JD
123352004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12336
333f1b6f
JD
12337 * syssignal.h: Declare main_thread.
12338 (SIGNAL_THREAD_CHECK): New macro.
12339
12340 * keyboard.c (input_available_signal): Move thread checking code
12341 to macro SIGNAL_THREAD_CHECK and call that macro.
12342 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
12343
12344 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
12345
12346 * emacs.c: Define main_thread.
12347 (main): Initialize main_thread.
12348 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
12349 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
12350
12351 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
12352
12353 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
12354
12355 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
12356
043f7f73
SM
12357 * process.c (send_process_trap, sigchld_handler):
12358 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
12359
12360 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
12361
12362 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
12363
fecad3f6
JD
12364 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
12365 returning when xg_ignore_gtk_scrollbar is true.
12366
2a84c6da
KS
123672004-12-14 Kim F. Storm <storm@cua.dk>
12368
12369 * keyboard.c (read_char): Save and restore echo_string when
12370 handling input method.
12371
d9c1ce9d
RS
123722004-12-13 Richard M. Stallman <rms@gnu.org>
12373
12374 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
12375
12376 * keyboard.c (Vthrow_on_input): New variable.
12377 (syms_of_keyboard): Defvar and initialize it.
12378 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
12379
12380 * lisp.h (QUIT): Check for Vthrow_on_input.
12381 (Vthrow_on_input): Declare it.
12382
a6495ed5
KS
123832004-12-13 Kim F. Storm <storm@cua.dk>
12384
12385 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
12386 vector.
12387
24a0e22f
RS
123882004-12-12 Richard M. Stallman <rms@gnu.org>
12389
12390 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
12391
12392 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
12393 (Ftry_completion): Really use outer `zero'; eliminate inner one.
12394
d6d31e57
KH
123952004-12-12 Kenichi Handa <handa@m17n.org>
12396
12397 * term.c (encode_terminal_code): Fix previous change.
12398
6f8ffb88
SM
123992004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
12400
fb6f5cbf
SM
12401 * keyboard.c (handle_async_input): Remove pthread mutex handling.
12402 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
12403
6f8ffb88
SM
12404 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
12405 in macro arguments.
12406
12407 * minibuf.c (Ftry_completion, Fall_completions): Don't use
12408 XFASTINT blindly.
12409
12410 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
12411
c83c9f9d
JD
124122004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12413
2f25767f
JD
12414 * w32term.c (x_calc_absolute_position): Remove calculation of
12415 difference between inner and outer window. Don't subtract difference
12416 for left and top calculations.
12417
c83c9f9d
JD
12418 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
12419 for left and top calculations. Remove call to x_real_positions.
14a56a1b 12420 [Bug report by Drew Adams in November.]
c83c9f9d
JD
12421 (x_check_expected_move): Do not set change_gravity to 1 when calling
12422 x_set_offset.
12423
cc1caa4e
RS
124242004-12-08 Richard M. Stallman <rms@gnu.org>
12425
12426 * xdisp.c (get_next_display_element): Use `escape-glyph' for
12427 control chars and escaped octal codes.
12428 (Qescape_glyph): New variable.
12429 (syms_of_xdisp): Initialize it.
12430 (escape_glyph_face): New variable.
12431 (redisplay_window): Initialize it.
12432
e0e30823
RS
124332004-12-07 Paul Eggert <eggert@cs.ucla.edu>
12434
12435 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
12436 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
12437
f415cacd
JD
124382004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12439
cf435f39
JD
12440 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
12441 reset_malloc_hooks.
12442
6f8ffb88
SM
12443 * keyboard.c (handle_async_input, input_available_signal):
12444 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 12445
f415cacd
JD
12446 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
12447
043f7f73 124482004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
12449
12450 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
12451
12452 * config.in: Regenerate.
12453
ded997c1
JD
124542004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12455
453a4f1b
JD
12456 * xmenu.c (Fx_popup_menu): Correct documentation about position.
12457 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
12458 if not given by a mouse click to correspond with x-popup-menu
12459 documentation.
12460
9a38524c
JD
12461 * config.in: Regenerate.
12462
aa477689
JD
12463 * gtkutil.c: Include signal.h and syssignal.h.
12464 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
12465
12466 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
12467 new variables main_thread and alloc_mutex,
12468 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
12469 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
14a56a1b
JB
12470 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
12471 as (UN)BLOCK_INPUT.
aa477689
JD
12472 (emacs_blocked_free, emacs_blocked_malloc)
12473 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
12474 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
12475 (reset_malloc_hooks): New function.
12476
12477 * lisp.h: Declare reset_malloc_hooks.
12478
12479 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
12480
14a56a1b 12481 * keyboard.c: Conditionally include pthread.h.
6f8ffb88 12482 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
12483 thread, block signal, send signal to main thread and return.
12484
ded997c1 12485 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 12486 Set current folder in file chooser if default_filename is a directory.
ded997c1 12487
c72b0edd
SM
124882004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
12489
12490 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
12491 Remove redundant correctness checks.
12492 (regex_compile): Fix up error codes for \{..\} expressions.
12493
c721eee5
RS
124942004-12-05 Richard M. Stallman <rms@gnu.org>
12495
12496 * regex.c (regex_compile): Fix end-of-pattern case for space.
12497
d8f96db8
ST
124982004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12499
6108209e
KS
12500 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
12501 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 12502 crashes with invalid characters.
6108209e
KS
12503 * macmenu.c (add_menu_item): Use it.
12504 * image.c (image_load_quartz2d): Likewise.
12505 * macfns.c (x_set_name, x_set_title): Likewise.
12506 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
12507 creating them each time for labels.
d8f96db8 12508
ab67e8b6
RS
125092004-12-02 Richard M. Stallman <rms@gnu.org>
12510
12511 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
12512 don't use it here.
12513
12514 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
12515 (interactive_p): Skip Scalled_interactively_p frames
12516 like Sinteractive_p frames.
b8217ea6 12517 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
12518
12519 * data.c (Fmake_variable_buffer_local): Doc fix.
12520 (Fmake_local_variable): Doc fix.
12521
12522 * insdel.c (insert_from_string_before_markers)
12523 (insert_from_string): Don't modify buffer on empty insertion.
12524
12525 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
12526
f86bdc80
ST
125272004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12528
12529 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
12530 menu text as UTF8 fails.
12531
1cae6d39
KS
125322004-12-01 Kim F. Storm <storm@cua.dk>
12533
12534 * alloc.c: Add commentary for last change.
12535 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
12536 sizeof(size_t) != 4.
12537 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
12538 Use them. Also clear header and trailer of freed memory.
12539 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
12540 (string_overrun_cookie): Rename from string_overrun_pattern.
12541 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
12542
77ea0764
AS
125432004-12-01 Andreas Schwab <schwab@suse.de>
12544
12545 * lisp.h: Declare string_to_multibyte.
12546
2d5cd4e6
KH
125472004-12-01 Kenichi Handa <handa@m17n.org>
12548
12549 * w32console.c (w32con_write_glyphs): Decide coding here.
12550 Adjusted for the change of encode_terminal_code.
12551
12552 * term.c (encode_terminal_code): Don't make it "static".
12553
25a0994a
KH
125542004-11-30 Kenichi Handa <handa@m17n.org>
12555
19b1f29a 12556 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 12557 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
12558 characters at once, and return a pointer to the result of encoding.
12559 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
12560 (insert_glyphs): Likewise.
12561 (term_init): Initialize encode_terminal_bufsize to 0.
12562
12563 * coding.c (Vcode_conversion_workbuf_name): New variable.
12564 (syms_of_coding): Initialize and staticpro it.
12565 (set_conversion_work_buffer): New function.
12566 (run_pre_post_conversion_on_str): Use it.
12567 (run_pre_write_conversin_on_c_str): New function.
12568
12569 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
12570
fc7a70cc
ST
125712004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12572
12573 * keyboard.c: Don't undef SIGIO
12574 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
12575 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
12576 (macfns.o): Don't depend on ccl.h.
12577 * macfns.c (mac_frame_parm_handlers): Set handlers for
12578 Qleft_fringe and Qright_fringe.
12579 * macterm.c (mac_fill_rectangle_to_pixmap)
12580 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
12581 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
12582 Put in #if 0.
12583 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
12584 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
12585 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
12586 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
12587 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
12588 XDrawImageString. Always draw background and foreground separately.
12589 (x_draw_image_foreground): Use clipping instead of computing the
12590 intersection rectangle.
12591 (x_draw_image_glyph_string): Don't draw an image with mask to a
12592 pixmap.
12593 (x_redisplay_interface): Set flush_display_optional member to 0.
12594 (XTread_socket): Correctly reset the TEConverter
12595 object.
12596
fc368889
KS
125972004-11-30 Kim F. Storm <storm@cua.dk>
12598
12599 * lisp.h: New defines to enable buffer overrun checking.
12600 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
12601 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
12602
12603 * alloc.c: Add more checks for buffer overruns.
12604 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
12605 xmalloc_overrun_check_trailer, overrun_check_malloc)
12606 overrun_check_realloc, overrun_check_free): Add.
12607 (GC_STRING_EXTRA, string_overrun_pattern): Add.
12608 (check_sblock, allocate_string_data, compact_small_strings):
12609 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
12610 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
12611 (check_string_free_list): Add.
12612 (allocate_string, sweep_strings): Call check_string_free_list.
12613
12614 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
12615 XMALLOC_OVERRUN_CHECK to avoid crash during load.
12616
0af8cfe1
KS
126172004-11-29 Kim F. Storm <storm@cua.dk>
12618
12619 * fns.c (concat): Use SAFE_ALLOCA.
12620
77220eeb
SM
126212004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
12622
12623 * sysdep.c (emacs_write): Don't use QUIT.
12624
a778cf63
KH
126252004-11-29 Kenichi Handa <handa@m17n.org>
12626
12627 * buffer.c (init_buffer): Set current_buffer->directory to a
12628 multibyte string made by string_to_multibyte.
12629
77220eeb 12630 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 12631
e3177e43
AS
126322004-11-27 Andreas Schwab <schwab@suse.de>
12633
12634 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
12635
12636 * s/gnu-linux.h: Enable no-op gcpros on ia64.
12637 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
12638
77220eeb
SM
12639 * filelock.c (lock_file_1): Call get_boot_time early.
12640 Increase buffer size.
e3177e43 12641
ca5e6fef
EZ
126422004-11-27 Eli Zaretskii <eliz@gnu.org>
12643
12644 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
12645 is not defined.
12646
e2811828
KS
126472004-11-27 Kim F. Storm <storm@cua.dk>
12648
12649 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
12650 marker out of doc string.
12651
7a262394
SM
126522004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
12653
12654 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
12655 which was not mentioned in the log.
12656
f33cc5a9
KS
126572004-11-26 Kim F. Storm <storm@cua.dk>
12658
048bb03f
KS
12659 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
12660 angle bitmaps at top/bottom line.
12661
52eb0373 12662 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
12663 set it when it->method is set to next_element_from_display_vector.
12664 (setup_for_ellipsis): Add LEN argument. Callers changed.
12665 Set it->saved_face_id.
12666 (get_next_display_element): Use loop instead of recursion.
12667 Set it->saved_face_id. Combine duplicate code for ctr chars.
12668 (next_element_from_display_vector): Do not set it->saved_face_id.
12669 (next_element_from_ellipsis): Use setup_for_ellipsis.
12670
670e8906
EZ
126712004-11-26 Eli Zaretskii <eliz@gnu.org>
12672
12673 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
12674 prevent compiler warnings.
12675
275464e7
SM
126762004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
12677
1bf0e604
SM
12678 * keyboard.c (command_loop_1): Print a message describing the key
12679 the user just pressed when this key has no binding.
12680
275464e7
SM
12681 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
12682 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
12683
12684 * lread.c (readchar): Check QUIT when `getc' is interrupted.
12685
261b01c6
RS
126862004-11-24 Richard M. Stallman <rms@gnu.org>
12687
12688 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
12689
12690 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
12691
a5bd504e
KS
126922004-11-24 Kim F. Storm <storm@cua.dk>
12693
12694 * xdisp.c (move_it_in_display_line_to, display_line):
12695 Restore saved_face_id also when truncate-lines or hscrolled.
12696
255e4140
JD
126972004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12698
12699 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
12700 x-use-old-gtk-file-dialog.
12701
12702 * xfns.c: Define x_use_old_gtk_file_dialog.
12703 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
12704 outside ifdef USE_GTK.
12705
cab27d04
SM
127062004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
12707
12708 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
12709 Don't use XFASTINT blindly.
12710
12711 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
12712
12713 * indent.c (skip_invisible): Avoid non-idempotent side-effects
12714 in macro arguments.
12715
12716 * keymap.c (Flookup_key): Check INTEGERP before XINT.
12717
12718 * lread.c (oblookup): Don't use XFASTINT blindly.
12719
12720 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
12721 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
12722
11e0be49
KS
127232004-11-23 Kim F. Storm <storm@cua.dk>
12724
4d721114
KS
12725 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
12726 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
12727
11e0be49
KS
12728 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
12729 signal_p is zero and face name is unknown.
12730 (Fx_list_fonts): Don't signal error in lookup_named_face.
12731 (Fface_font): Signal error in lookup_named_face.
12732 (ascii_face_of_lisp_face): Likewise.
12733
12734 * dispextern.h (lookup_named_face): Fix prototype.
12735
12736 * xdisp.c (handle_single_display_prop): Don't signal error in
12737 lookup_named_face for unknown fringe face name.
12738 (highlight_trailing_whitespace): Don't signal error in
12739 lookup_named_face if trailing-whitespace face unknown.
12740 (calc_line_height_property): Don't signal error in
12741 lookup_named_face if specified face name is unknown.
12742
12743 * fringe.c (update_window_fringes): Show top row indicator if
12744 window has header-line. Don't show arrow at bob and eob
12745 if the boundary indicators are not used.
12746 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
12747
12748 * window.c (set_window_buffer): Clear display_error_modiff.
12749
0960a582
KS
127502004-11-22 Kim F. Storm <storm@cua.dk>
12751
12752 * fringe.c (update_window_fringes): Provide sensible fall-back
12753 value for non-nil indicate-buffer-boundaries setting.
12754
b0e9bb28
MR
127552004-11-22 Markus Rost <rost@ias.edu>
12756
12757 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
12758
d0bce91e
SM
127592004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
12760
12761 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
12762
e1814672
KS
127632004-11-21 Kim F. Storm <storm@cua.dk>
12764
b7fd3518
KS
12765 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
12766
12767 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
12768 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12769
12770 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
12771 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12772
12773 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
12774 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12775
d0bce91e
SM
12776 * xdisp.c (move_it_in_display_line_to, display_line):
12777 Restore saved_face_id if overflow-newline-into-fringe is enabled and
12778 line is continued before or in middle of element from display vector.
f01d4d05 12779
f1a61389
KS
12780 * indent.c (Fvertical_motion): Fix last change. Use another
12781 method to detect if iterator moved too far ahead after reseat.
12782
e1814672
KS
12783 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
12784 expand matrix width for overflow in zero-width area.
12785 (append_glyph, append_composite_glyph, produce_image_glyph)
12786 (append_stretch_glyph): Use it to avoid loop in redisplay.
12787 (note_mode_line_or_margin_highlight): Don't let help-echo from
12788 string override help-echo from image map.
12789
2dafe1c9
LT
127902004-11-20 Luc Teirlinck <teirllm@auburn.edu>
12791
d0bce91e 12792 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
12793 * callint.c (Fcall_interactively): Ditto.
12794
fd6866c8 127952004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
12796
12797 * minibuf.c (Fminibuffer_complete_and_exit):
12798 Fixup the case of the completed value, for case-indep completion.
12799
dedbac89
RS
128002004-11-20 Richard M. Stallman <rms@gnu.org>
12801
fd6866c8
RS
12802 * lisp.h (Fread_from_minibuffer): Add arg in decl.
12803
9d00469f 12804 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 12805 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 12806
dedbac89 12807 * search.c (Vsearch_spaces_regexp):
d0bce91e 12808 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 12809
2f672bb5
TTN
128102004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
12811
12812 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
12813
f31a9a68
RS
128142004-11-19 Richard M. Stallman <rms@gnu.org>
12815
12816 * search.c (Vsearch_whitespace_regexp): New variable.
12817 (syms_of_search): Defvar it.
12818 (compile_pattern_1): Call re_set_whitespace_regexp with it.
12819 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
12820 is non-nil.
6de891db
RS
12821 (struct regexp_cache): New element whitespace_regexp.
12822 (syms_of_search): Initialize whitespace_regexp elements.
12823 (compile_pattern): Compare whitespace_regexp elements.
12824 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
12825
12826 * regex.c (regex_compile): Substitute whitespace_regexp
12827 for spaces, if it is nonzero.
12828 (whitespace_regexp): New variable.
12829 (re_set_whitespace_regexp): New function.
12830
cbc34cb3
KS
128312004-11-19 Kim F. Storm <storm@cua.dk>
12832
12833 * indent.c (Fvertical_motion): Fix last change.
12834
b54a7539
KS
128352004-11-18 Kim F. Storm <storm@cua.dk>
12836
12837 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
12838 Instead, move back again if reseating moves too far ahead.
12839
128402004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
12841
12842 * xdisp.c (message3): Call clear_message.
12843
5ff504fe
KS
128442004-11-17 Kim F. Storm <storm@cua.dk>
12845
12846 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
12847
5ae53dcf
JD
128482004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12849
d0bce91e 12850 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 12851
6abf3a27 12852 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
12853 (x_menu_set_in_use): Also set popup_activated_flag.
12854
5ff504fe 12855 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
12856 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
12857
52eb0373 12858 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 12859
ee31cd78
RS
128602004-11-16 Richard M. Stallman <rms@gnu.org>
12861
6abf3a27
SM
12862 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
12863 Use map-keymap-internal to implement that.
ee31cd78
RS
12864
12865 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
12866
6abf3a27
SM
128672004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
12868
12869 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
12870 a window before using XWINDOW.
12871
12872 * window.c (make_window, Fselect_window, make_dummy_parent)
12873 (save_window_save):
12874 * frame.c (make_frame):
12875 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
12876
12877 * lisp.h (NILP): Use EQ rather than XFASTINT.
12878
b4d61105
KS
128792004-11-16 Kim F. Storm <storm@cua.dk>
12880
6abf3a27 12881 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 12882
b4d61105
KS
12883 * indent.c (Fvertical_motion): Fix last change. Only reseat when
12884 moving backwards.
12885
128862004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
12887
12888 * dispextern.h: Extern reseat_at_previous_visible_line_start.
12889
ab5b02b0
KH
128902004-11-16 Kenichi Handa <handa@m17n.org>
12891
12892 * xdisp.c (display_mode_element): Fix previous change (calculate
12893 end position of substring to display correctly).
12894
c482cf97
KS
128952004-11-16 Kim F. Storm <storm@cua.dk>
12896
12897 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
12898 Reported by Andrew M. Scott.
12899
9f89426b
KS
129002004-11-15 Kim F. Storm <storm@cua.dk>
12901
12902 * fns.c (Fsafe_plist_get): New defun.
12903 (syms_of_fns): Defsubr it.
12904
12905 * lisp.h (Fsafe_plist_get): Add EXFUN.
12906
12907 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
12908 Use Fsafe_plist_get.
12909 (note_mode_line_or_margin_highlight, note_mouse_highlight):
12910 Fix image map element parsing. Use Fsafe_plist_get.
12911
27418463
RS
129122004-11-15 Richard M. Stallman <rms@gnu.org>
12913
12914 * xdisp.c (get_next_display_element): Fix previous change.
12915
a130b901
JD
129162004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12917
ef614e04
JD
12918 * window.c (shrink_windows): Handle special case of one window left
12919 when trying to shrink the final reminder. Grow windows if
12920 total_removed is less than total_shrink.
12921
a130b901
JD
12922 * xmenu.c (pop_down_menu): Remove global variable current_menu,
12923 extract pointer from arg with XSAVE_VALUE.
46303896
KS
12924 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
12925 Construct arg to record_unwind_protect with make_save_value.
a130b901 12926
d9a03ad2
RS
129272004-11-13 Richard M. Stallman <rms@gnu.org>
12928
12929 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
12930 (get_next_display_element): Fix previous change to apply only to \n.
12931
12932 * indent.c (Fvertical_motion): Scan to PT from start of line to
12933 make iterator consistent.
12934
12935 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
12936
b3935289
JD
129372004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12938
12939 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
12940
12941 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
12942 Record unwind with clean_up_file_dialog.
12943
78819ebb
KS
12944 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
12945 Declare.
b3935289
JD
12946
12947 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
12948
af89e871
JD
129492004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12950
457a8155 12951 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 12952 (xg_file_sel_destroy): Remove.
46303896
KS
12953 (xg_file_response_cb, pop_down_file_dialog)
12954 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 12955 New functions.
6abf3a27
SM
12956 (xg_get_file_with_chooser, xg_get_file_with_selection):
12957 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
12958 Move common code to xg_get_file_name. Return widget created.
12959 (xg_get_file_name): Set name, transient for, modal and destroy
12960 with parent here. Connect response signal to xg_file_response_cb,
12961 connect delete-event to gtk_true. Record pop_down_file_dialog
12962 for unwind. Do event loop and call x_menu_wait_for_event in loop.
12963 (xg_create_widget): Make dialogs modal.
12964
af89e871
JD
12965 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
12966 Lisp_Object.
12967 (popup_get_selection): Move unwind protect ...
12968 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
12969 Move destroy of widget to pop_down_menu.
12970 (popup_widget_loop): Move unwind protect ...
12971 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
12972 Move destroy of widget to pop_down_menu.
12973 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 12974 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
12975 x_mouse_leave and grabbed = 0 to pop_down_menu.
12976
5596fbf1
KS
129772004-11-13 Kim F. Storm <storm@cua.dk>
12978
12979 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
12980 (syms_of_xdisp): DEFVAR_BOOL it.
12981 (make_cursor_line_fully_visible, try_cursor_movement)
12982 (try_window_id): Use it.
12983
b9de078a
KS
129842004-11-12 Kim F. Storm <storm@cua.dk>
12985
381f7091
KS
12986 * dispextern.h (struct glyph_row): New member extra_line_spacing.
12987 (struct it): New member max_extra_line_spacing.
12988 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
12989 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
12990 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
12991 part of last line is only extra line spacing (so the text on the
52eb0373 12992 line is fully visible). Use helper macros.
381f7091
KS
12993 Add W arg (to use them). All callers changed.
12994 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
12995 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
12996
6abf3a27
SM
12997 * window.c (window_scroll_pixel_based, Frecenter):
12998 Use move_it_vertically_backward directly.
381f7091
KS
12999 (Frecenter): Fix calculation of new start pos for negative arg.
13000 Before, the new start pos was sometimes chosen too far back, so
13001 the last line became only partially visible, and thus would be
13002 either only semi-visible or automatically scrolled to the middle
13003 of the window by redisplay.
13004
13005 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
13006 (move_it_vertically_backward): Don't recure to move further back.
13007 (move_it_vertically): Remove superfluous condition.
13008 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 13009 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
13010 (display_tool_bar_line): Clear row->extra_line_spacing.
13011 (try_scrolling): Use move_it_vertically_backward directly.
13012 (redisplay_window): Likewise.
13013 (compute_line_metrics): Set row->extra_line_spacing.
13014 (display_line, display_string): Likewise.
13015 (x_produce_glyphs): Update it->max_extra_line_spacing.
13016
b9de078a
KS
13017 * xmenu.c (pop_down_menu): Return nil.
13018
c3438661
JD
130192004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13020
13021 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 13022 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 13023 to handle timers.
df00f436
JD
13024 (popup_widget_loop): Add argument do_timers.
13025 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
13026 do_timers to popup_widget_loop.
c3438661
JD
13027 (xmenu_show): Call XMenuActivateSetWaitFunction so that
13028 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 13029 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 13030 popup_get_selection.
f1d1cd24
JD
13031 (pop_down_menu): New function.
13032 (popup_get_selection, popup_widget_loop): Unwind protect to
13033 pop_down_menu.
13034 (popup_widget_loop): Add argument widget.
13035 (create_and_show_popup_menu, create_and_show_dialog): Pass new
13036 argument widget to popup_widget_loop.
c3438661 13037
32e2fb04
SM
130382004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
13039
13040 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
13041
0faf6806
KS
130422004-11-09 Kim F. Storm <storm@cua.dk>
13043
13044 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
13045 Fix various comments referring to XEvents instead of input events.
13046 (x_queue_event): Fix format strings.
13047 (x_stop_queuing_selection_requests): Likewise.
13048
13049 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
13050 (pint2hrstr): Add extra braces to silence compiler.
13051
13052 * print.c (print_object): Fix format string.
13053
13054 * lread.c (read1): Fix next_char matching.
13055
13056 * lisp.h (Fdelete): Add EXFUN.
13057 (replace_range_2): Add prototype.
13058
13059 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
13060
13061 * intervals.h (NULL_INTERVAL_P): Add separate version when
13062 ENABLE_CHECKING is not defined to silence compiler.
13063 (compare_string_intervals): Add prototype.
13064
13065 * fringe.c (destroy_fringe_bitmap): Fix return type.
13066 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
13067
13068 * emacs.c (Fdump_emacs): Fix format string.
13069
13070 * doc.c: Include <ctype.h>.
13071 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
13072
13073 * data.c (store_symval_forwarding): Remove unused variables.
13074
13075 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
13076
16bf4e32
JD
130772004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13078
13079 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
13080 to ${OLDXMENU}.
13081
cdb805a9
KS
130822004-11-09 Kim F. Storm <storm@cua.dk>
13083
13084 * process.c (Fmake_network_process): Remove kludge for interrupted
13085 connects on BSD. If connect is interrupted, just close socket and
13086 start over rather than sleeping and retry with same socket.
13087
d87a9ab8 130882004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 13089
a8b16c80
JD
13090 * .cvsignore: Add buildobj.lst.
13091
d87a9ab8
JD
13092 * doc.c: New variable Vbuild_files.
13093 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 13094 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
13095 that are in Vbuild_files.
13096 (syms_of_doc): Defvar Vbuild_files.
13097
13098 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
13099 and w32*.o.
13100 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 13101 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
13102
13103 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
13104 is linked.
13105
b6709e77
KS
131062004-11-09 Kim F. Storm <storm@cua.dk>
13107
13108 * fringe.c (update_window_fringes): Update fringe bitmaps if
13109 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
13110 also update previous row to get rid of misc. artifacts.
13111
bae9677d
KS
131122004-11-08 Kim F. Storm <storm@cua.dk>
13113
13114 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 13115 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 13116
3f8ea68c
EZ
131172004-11-08 Eli Zaretskii <eliz@gnu.org>
13118
13119 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
13120 Don't include <sys/time.h> explicitly.
13121 Include <stdio.h> unconditionally, not just on MacOS.
13122
a653f812
KH
131232004-11-08 Kenichi Handa <handa@m17n.org>
13124
13125 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
13126 don't pay attention to '\' before '*'.
13127 (fontset_pattern_regexp): Change the meaning of the second arg.
13128 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
13129 (check_fontset_name): Try NAME as literal at first, and if it
13130 failes, try NAME as pattern.
13131
c37caf9d
JD
131322004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13133
13134 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
13135
b72915a7
AS
131362004-11-07 Andreas Schwab <schwab@suse.de>
13137
78819ebb
KS
13138 * lisp.h (Fmsdos_downcase_filename): Declare.
13139 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
13140 * fileio.c: Likewise.
13141
238a44a8
JD
131422004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13143
13144 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
13145 comparisons with integers instead of Lisp_Object address.
13146 (Fmsdos_set_keyboard): Declare argument allkeys.
13147
13148 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
13149
78819ebb 13150 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
13151 int/Lisp_Object mixup.
13152
13153 * fileio.c: Ditto.
13154
31141c13
ST
131552004-11-06 Steven Tamm <steventamm@mac.com>
13156
13157 * editfns.c: Need to include sys/time.h before resource.h on darwin.
13158
f28c1bd9
RS
131592004-11-06 Richard M. Stallman <rms@gnu.org>
13160
13161 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
13162
13163 * xfaces.c (merge_named_face): GCPRO the face_name in the
13164 named_merge_point struct that we make.
13165 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
13166
13167 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
13168 before deciding whether to inactivate mark.
13169
59dede22
EZ
131702004-11-06 Lars Brinkhoff <lars@nocrew.org>
13171
13172 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
13173 * editfns.c (Fget_internal_run_time): New function.
13174 (syms_of_data): Defsubr it.
13175 * fns.c (sxhash): As far as possible, merge calculation of
13176 hash code for symbols and strings.
59dede22 13177
27540e81
EZ
131782004-11-06 Eli Zaretskii <eliz@gnu.org>
13179
13180 * frame.c (syms_of_frame): Fix the example in the doc string.
13181
df470e3b
JD
131822004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13183
13184 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
13185
13186 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
13187 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 13188
4cc8522c
LT
131892004-11-05 Luc Teirlinck <teirllm@auburn.edu>
13190
13191 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
13192
d4a42098
KS
131932004-11-05 Kim F. Storm <storm@cua.dk>
13194
a8490886
KS
13195 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
13196
d4a42098
KS
13197 * fileio.c (Ffile_modes): Doc fix.
13198 (auto_save_1): Check for Ffile_modes nil value.
13199
36a2b04c
KS
132002004-11-05 Kim F. Storm <storm@cua.dk>
13201
13202 * xselect.c (struct selection_event_queue, selection_queue)
13203 (x_queue_selection_requests, x_queue_event)
13204 (x_start_queuing_selection_requests)
13205 (x_stop_queuing_selection_requests): Add new queue for selection
13206 input events to replace previous XEvent queue in xterm.c.
13207 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
13208 (x_reply_selection_request): Adapt to new queue.
13209 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
13210 (x_handle_selection_request, x_handle_selection_clear): Make static.
13211 (x_handle_selection_event): New function. May queue selection events.
13212 (wait_for_property_change_unwind): Use save_value instead of cons.
13213 Clear property_change_reply_object.
13214 (wait_for_property_change): Abort if already waiting.
13215 Use save_value instead of cons for unwind data.
13216 (x_handle_property_notify): Skip events already arrived, but don't
13217 free them, as "arrived" field is checked by wait_for_property_change,
13218 and it will be freed by unwind or explicit unexpect_property_change.
13219 (x_get_foreign_selection): Add to new queue.
13220 (receive_incremental_selection): Don't unexpect wait_object when done
13221 as it has already been freed by previous wait_for_property_change.
13222
13223 * xterm.h (x_start_queuing_selection_requests)
13224 (x_stop_queuing_selection_requests, x_handle_selection_request)
13225 (x_handle_selection_clear): Remove prototypes.
13226 (x_handle_selection_event): Add prototype.
13227
13228 * xterm.c (handle_one_xevent): Don't queue X selection events
13229 here, it may be too late if we start queuing after we have already
13230 stored some selection events into the kbd buffer.
13231 (struct selection_event_queue, queue, x_queue_selection_requests)
13232 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
13233 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
13234 (x_catch_errors_unwind): Block input around final XSync.
13235
13236 * keyboard.h (kbd_buffer_unget_event): Add prototype.
13237
13238 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
13239 (kbd_buffer_unget_event): New function.
13240 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
13241 and use x_handle_selection_event.
13242 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
13243
9c3ad9e1
JD
132442004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13245
13246 * xselect.c (TRACE3): New debug macro.
13247 (x_reply_selection_request): Use it.
13248 (receive_incremental_selection): In call to TRACE0, the name of
13249 a symbol is in xname.
13250
a33b89de
KS
132512004-11-05 Kim F. Storm <storm@cua.dk>
13252
13253 * fontset.c (fontset_pattern_regexp): Use unsigned char.
13254
a872928c
JD
132552004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13256
88208bb8
JD
13257 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
13258
78819ebb 13259 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
13260
13261 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 13262 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
13263 * xfns.c (syms_of_xfns): ... to here.
13264
a872928c
JD
13265 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
13266 it doesn't start with /.
13267
b912921c
KH
132682004-11-04 Kenichi Handa <handa@m17n.org>
13269
13270 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
13271 treat it as a literal character.
13272
c524d9a6
KS
132732004-11-03 Kim F. Storm <storm@cua.dk>
13274
13275 * .gdbinit (ppt): New function.
13276
8cfd0f36
JD
132772004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13278
a11e1dce
JD
13279 * xterm.c (x_window_to_scroll_bar): Only call
13280 xg_get_scroll_id_for_window if toolkit scroll bars are used.
13281
8cfd0f36
JD
13282 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
13283 of save.
13284
a93563fd
AS
132852004-11-02 Andreas Schwab <schwab@suse.de>
13286
13287 * window.c (Fscroll_right): Fix last change.
13288
2b2d59d8
KS
132892004-11-02 Kim F. Storm <storm@cua.dk>
13290
14a56a1b 13291 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
2b2d59d8
KS
13292
132932004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13294
13295 * callproc.c (Fcall_process): Block input around vfork.
13296
ca28104d
KS
132972004-11-02 Kim F. Storm <storm@cua.dk>
13298
13299 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
13300 (syms_of_eval): Defsubr it.
13301
29bb7127
RS
133022004-11-02 Richard M. Stallman <rms@gnu.org>
13303
13304 * insdel.c (replace_range_2): New function.
13305
13306 * casefiddle.c (casify_region): Handle changes in byte-length
13307 using replace_range_2.
13308
13309 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
13310
b6189c3b 13311 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
13312 Subtract 1 from pos when checking previous newline for invisibility.
13313
13314 * window.c (window_scroll_pixel_based): Update preserve_y
13315 for header line if any.
13316 (Fscroll_left, Fscroll_right): Don't call interactive_p;
13317 use a new second argument instead.
13318
13319 * eval.c (Fcall_interactive_p): New function.
13320 (interactive_p): Don't test INTERACTIVE here.
13321 (Finteractive_p): Doc fix.
13322
13323 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
13324
b6189c3b 133252004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
13326
13327 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 13328 comparing font names.
a3fe4aaf 13329
2a00cdb4
JD
133302004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13331
f9d64bb3
JD
13332 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
13333 Fx_file_dialog if only directories should be read.
13334
13335 * lisp.h: Fx_file_dialog takes 5 parameters.
13336
32e2fb04
SM
13337 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
13338 Add parameter only_dir_p.
f9d64bb3
JD
13339 In Motif version, don't put DEFAULT_FILENAME in filter part of the
13340 dialog, just text field part. Do not add DEFAULT_FILENAME
13341 to list of files if it isn't there.
13342 In GTK version, pass only_dir_p parameter to xg_get_file_name.
13343
32e2fb04
SM
13344 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
13345 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
13346 a save dialog, add option kNavDontConfirmReplacement, change title
13347 to "Enter name", change text for save button to "Ok".
13348
32e2fb04
SM
13349 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
13350 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3 13351
14a56a1b
JB
13352 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
13353 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
13354 and HAVE_GTK_FILE_SELECTION_NEW respectively.
f9d64bb3
JD
13355 (xg_get_file_name): Add parameter only_dir_p.
13356 Call xg_get_file_with_chooser or xg_get_file_with_selection
13357 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
13358 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
13359
13360 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
13361
2a00cdb4
JD
13362 * config.in: Rebuild (added HAVE_GTK_FILE_*).
13363
f6749d5d
KS
133642004-11-01 Kim F. Storm <storm@cua.dk>
13365
32e2fb04
SM
13366 * process.c (connect_wait_mask, num_pending_connects):
13367 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 13368 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
13369 (IF_NON_BLOCKING_CONNECT): New helper macro.
13370 (wait_reading_process_output): Only declare and use local vars
13371 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 13372
1a99fe1a
JR
133732004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
13374
13375 * w32term.c (x_scroll_run): Delete region objects after use.
13376
fcdb28b4
JD
133772004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13378
495ef86b
JD
13379 * xmenu.c: Add prototypes for forward function declarations.
13380 (popup_get_selection): Remove parameter do_timers, remove call to
13381 timer_check.
32e2fb04
SM
13382 (create_and_show_popup_menu, create_and_show_dialog):
13383 Remove parameter do_timers from call to popup_get_selection.
495ef86b 13384
12e6566a
JD
13385 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
13386 tool_bar_items and assign the result to f->tool_bar_items if
13387 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
13388 tool_bar_items to assignment of result.
13389
fcdb28b4 13390 * atimer.c (alarm_signal_handler): Do not call set_alarm if
14a56a1b 13391 pending_atimers is non-zero.
fcdb28b4 13392
1a1a0c4c
KS
133932004-10-31 Kim F. Storm <storm@cua.dk>
13394
13395 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
13396
a36f1680
JW
133972004-10-28 Will <will@glozer.net>
13398
1d1c7e75 13399 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
13400 key via a 'mac-option-modifier' variable.
13401
32e2fb04 134022004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
13403
13404 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
13405 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
13406 (x_handle_selection_request, x_handle_selection_clear)
13407 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
13408
4f71c13f
RS
134092004-10-28 Richard M. Stallman <rms@gnu.org>
13410
13411 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
13412
13413 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
13414
068f3848
SM
134152004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
13416
13417 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
13418 comment-starter over a 1-char one.
13419
4660a9e3
RS
134202004-10-27 Richard M. Stallman <rms@gnu.org>
13421
13422 * xdisp.c (get_next_display_element): In mode lines,
13423 treat newline and tab like other control characters.
13424
13425 * editfns.c (Fmessage): Doc fix.
13426
13427 * indent.c (vmotion): When moving up, check the newline before.
13428 Make prevline an int, not a Lisp_Object.
13429
233f3db6
KS
134302004-10-27 Kim F. Storm <storm@cua.dk>
13431
13432 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
13433 Only allocate info and discarded tables once.
13434
13435 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
13436 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
13437 (SAFE_FREE): Test it to determine if we need to unwind to free.
13438 Remove size arg. All users changed.
13439 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
13440
1442465d
JD
134412004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13442
13443 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
13444 (xg_destroy_widgets): Rename from remove_from_container.
13445 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
13446 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
13447 instead of remove_from_container.
13448 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
13449 (free_frame_tool_bar): Add comment.
13450
13451 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
13452 is not NULL before strcmp.
13453
c8636435
KS
134542004-10-26 Kim F. Storm <storm@cua.dk>
13455
13456 * callint.c (Fcall_interactively): Add 'U' code to get the
13457 up-event discarded by a previous 'k' or 'K' argument.
13458
5629f29b
DK
134592004-10-26 David Kastrup <dak@gnu.org>
13460
13461 * buffer.c (syms_of_buffer): Fix a few typos.
13462
4f2f546e
JD
134632004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13464
13465 * xsmfns.c: Put empty line between comment and function body.
13466 Use two spaces before comment end.
13467
fc1062f5
KH
134682004-10-25 Kenichi Handa <handa@m17n.org>
13469
13470 * fontset.c (fontset_pattern_regexp): Optimize for the case that
13471 PATTERN is full XLFD.
13472
be13f5e5
KH
134732004-10-24 Kenichi Handa <handa@m17n.org>
13474
13475 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
13476
13477 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
13478 (regex_compile): Return REG_ERANGEX if appropriate.
13479
d0ee2ed3
KH
134802004-10-22 Kenichi Handa <handa@m17n.org>
13481
13482 * editfns.c (Ftranslate_region_internal): New function.
13483 (syms_of_editfns): Defsubr it.
13484
63ea8ea5
JD
134852004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13486
13487 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
13488
d495ccfc 134892004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
c27ed90a 13490
068f3848
SM
13491 * xterm.h (x_output): New member `xic_base_fontname'.
13492 (FRAME_XIC_BASE_FONTNAME): New macro.
13493 (xic_free_xfontset): Declare.
c27ed90a 13494
068f3848
SM
13495 * xfns.c (xic_create_xfontset): Share fontsets between frames
13496 based on base_fontname.
13497 (xic_free_xfontset): New function.
13498 (free_frame_xic): Use it.
13499 (xic_set_xfontset): Ditto.
c27ed90a 13500
068f3848 13501 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a 13502
59508699
JR
135032004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
13504
13505 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
13506
dede2792
JD
135072004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13508
3aca2078
JD
13509 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
13510 XSync.
13511
dede2792
JD
13512 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
13513 New variables and constant.
13514 (main): Calculate heap_bss_diff. If we are dumping and the
13515 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
13516 and exec ourself again.
13517 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
13518 print a warning.
13519
13520 * lastfile.c: Make my_endbss and my_endbss_static available on all
13521 platforms.
13522
13523 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
13524 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
13525
1dc5ba01
LT
135262004-10-19 Luc Teirlinck <teirllm@auburn.edu>
13527
13528 * data.c (Flocal_variable_if_set_p): Doc fix.
13529
950090be
JR
135302004-10-19 Jason Rumney <jasonr@gnu.org>
13531
13532 * w32.c (init_environment): Set emacs_dir correctly when running
13533 emacs from the build directory.
13534
8550b998
RS
135352004-10-19 Richard M. Stallman <rms@gnu.org>
13536
13537 * editfns.c (Fdelete_and_extract_region):
13538 If region is empty, return null string.
13539
08dedea6
JD
135402004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13541
1dc5ba01 13542 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 13543 and canon_width.
068f3848 13544 (xg_frame_cleared): Remove.
08dedea6 13545
068f3848
SM
13546 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
13547 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
13548 (xg_create_scroll_bar): Put an event box widget between
13549 the scroll bar widget and the edit widget.
13550 (xg_show_scroll_bar): Show the parent widget (the event box).
13551 (xg_remove_scroll_bar): Destroy parent (the event box) also.
13552 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
13553 Move the parent (the event box) widget inside the fixed widget.
13554 Move window clear to xterm.c.
13555
068f3848 13556 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 13557
08dedea6 13558 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
13559 (x_scroll_bar_create, XTset_vertical_scroll_bar):
13560 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
13561 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
13562
8550b998 135632004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
13564
13565 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 13566
84338890
JD
135672004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13568
13569 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
13570 gdk_window_clear and move gdk_window_process_all_updates after
13571 clear so events are sent to the X server in correct order.
13572
6e1b0d8c
KH
135732004-10-18 Kenichi Handa <handa@m17n.org>
13574
13575 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
13576 comparing font names.
8550b998 13577 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
13578 (list_fontsets): Likewise.
13579
13580 * search.c (fast_string_match_ignore_case): New function.
13581
13582 * lisp.h (fast_string_match_ignore_case): Extern it.
13583
345e75a8
KS
135842004-10-17 Kim F. Storm <storm@cua.dk>
13585
13586 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
13587 than bitmap if there is not left fringe.
13588 (get_overlay_arrow_glyph_row): Also used on windows system.
13589 (display_line): Display overlay string if no left fringe.
13590
be13cbb7
JR
135912004-10-16 Jason Rumney <jasonr@gnu.org>
13592
13593 * w32fns.c (w32_font_match): Encode font name being matched.
13594
c2e2ede7
RS
135952004-10-16 Richard M. Stallman <rms@gnu.org>
13596
13597 * window.c (Fspecial_display_p): Doc fix.
13598
043f7f73 135992004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
13600
13601 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
13602 Don't ignore menus, because where-is-internal already does it for us.
13603
699a0392
KS
136042004-10-15 Kim F. Storm <storm@cua.dk>
13605
b3c7a89b
KS
13606 * xdisp.c (redisplay_window): Only update fringes and vertical
13607 border on window frames.
699a0392 13608
4e382b0f
AS
136092004-10-14 Andreas Schwab <schwab@suse.de>
13610
13611 * m/ia64.h (DATA_SEG_BITS): Don't define.
13612
329a7be2
KS
136132004-10-14 Kim F. Storm <storm@cua.dk>
13614
13615 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 13616 in some X versions.
329a7be2 13617
982241b1
SM
136182004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
13619
13620 * fns.c (map_char_table): Add missing gcpros.
13621
9238467d
SM
136222004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
13623
13624 * keymap.c (get_keymap): An autoload form is not a keymap.
13625
13626 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
13627
4440e3ca
KS
136282004-10-13 Kim F. Storm <storm@cua.dk>
13629
7cfdabde
KS
13630 * callproc.c (Fcall_process): Simplify handling of display arg.
13631 Resume `display_on_the_fly' once a coding system is determined.
13632
4440e3ca
KS
13633 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
13634
1c8dec6a
KS
136352004-10-12 Kim F. Storm <storm@cua.dk>
13636
13637 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
13638 caller, such as call-process, is not going to poll for input.
13639 (calc_line_height_property): Handle case where it->object is nil.
13640
13641 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
13642
170b174c
KH
136432004-10-12 Kenichi Handa <handa@m17n.org>
13644
9238467d
SM
13645 * xdisp.c (get_next_display_element):
13646 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
13647 chars in octal in unibyte buffer.
13648
b583964c
KS
136492004-10-12 Kim F. Storm <storm@cua.dk>
13650
13651 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
13652 are no ordinary bindings.
13653
29fabd8c
JD
136542004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13655
9238467d 13656 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 13657
c3f4c690
ST
136582004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13659
9238467d
SM
13660 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
13661 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 13662 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
13663 terminal frame.
13664 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
13665 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
13666 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
13667 Make a cancel file-open dialog be like C-g.
9238467d
SM
13668 * mac.c (mktime): Use emacs_mktime.
13669 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
13670 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 13671
9688f9eb
KS
136722004-10-10 Kim F. Storm <storm@cua.dk>
13673
13674 * keyboard.c (timer_resume_idle): New function to resume idle
13675 timer without resetting timers on the idle list.
52eb0373 13676 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
13677 (timer_start_idle, timer_stop_idle): Declare static.
13678 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
13679
13680 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
13681
f7f3a65f
ST
136822004-10-08 Steven Tamm <steventamm@mac.com>
13683
9238467d 13684 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 13685 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 13686 NULL where 0 should be used.
f7f3a65f
ST
13687 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
13688 objc/malloc.h
9238467d 13689 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 13690
3c7d999a
KS
136912004-10-07 Kim F. Storm <storm@cua.dk>
13692
13693 * xdisp.c (redisplay_window): Fix flicker on vertical line between
13694 windows. Update vertical line after drawing window fringes, but
13695 only if actually drawing any bitmaps--or there is no fringe.
13696
13697 * xterm.c (x_update_window_end): Likewise.
13698 * macterm.c (x_update_window_end): Likewise.
13699 * w32term.c (x_update_window_end): Likewise.
13700
13701 * fringe.c (draw_window_fringes): Return value now indicates if
13702 any fringe bitmaps were redrawn (or there are no fringes).
13703
13704 * dispextern.h (draw_window_fringes): Update prototype.
13705
bf06c82f
ST
137062004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13707
13708 * macfns.c (mac_get_window_bounds): Add extern.
13709 (x_real_positions): Use mac_get_window_bounds.
13710
13711 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
13712 xmenu.c (YAILOM).
3c7d999a 13713
bf06c82f
ST
13714 * macterm.c [!MAC_OSX]: Include Windows.h.
13715 (front_emacs_window): Rename from mac_front_window. All uses
13716 changed. Return the frontmost non-tooltip emacs window.
13717 (mac_get_window_bounds): New function.
13718 (x_calc_absolute_position): Use the difference of width and height
13719 between the inner and outer window.
13720 (x_set_offset): Specify window position by the coordinae of the
13721 outer window. Adjust the position if the title bar is completely
13722 outside the screen.
13723 (app_is_suspended, app_sleep_time): Remove unused variables.
13724 (do_app_resume, do_app_suspend): Remove their contents because
13725 window-activate/deactivate events will do the job.
13726 (do_zoom_window): Remove unused variables. Make compliant to the
13727 standard way of zooming. Set f->left_pos and f->top_pos.
13728 (XTread_socket): Don't use argument `expected'. Don't use
13729 FrontWindow to determine the clicked window. Exclude unprocessed
13730 mouseUp cases in the early stage. Add parentheses to fix operator
13731 precedence.
13732 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
13733
c6605d63 137342004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
d8b43276
JD
13735
13736 * config.in: Regenerate.
13737
13738 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
13739 HAVE_EXECSHIELD.
13740
b90ee8b5
JD
137412004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13742
13743 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
13744 a row if Alt or Meta has been found for that row. Also stop scanning
13745 for Keysyms for that row.
13746
904db1a2
KS
137472004-10-04 Kim F. Storm <storm@cua.dk>
13748
0207b8ad
KS
13749 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
13750 to list. Include overlay arrow bitmap in return value.
13751
25f7220c
KS
13752 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
13753 bars with fractional column width. If scroll bar separates two
13754 windows, move it towards the window it belongs to. Only update
13755 the padding area below the scroll bar widget when necessary,
13756 i.e. when scroll bar widget is created, moved, or resized.
13757
562020fe
KS
13758 * xdisp.c (define_frame_cursor1): Do not change frame cursor
13759 while tracking/dragging mouse.
13760 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
13761
37e34af7
KS
13762 * window.c (coordinates_in_window): Relax check for cursor
13763 on vertial border between mode lines.
13764 (Fset_window_fringes): Do not allow negative widths.
13765 (Fset_window_scroll_bars): Likewise.
13766
904db1a2
KS
13767 * .gdbinit (pp): Shorthand for p ARG + pr.
13768 (ff): New command: flush frame updates (X only).
13769
38fe4f64
MA
137702004-10-03 Michael Albinus <michael.albinus@gmx.de>
13771
13772 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
13773
9de36315
KH
137742004-09-30 Kenichi Handa <handa@m17n.org>
13775
07c381ad 13776 * process.c (send_process): Free composition data.
9de36315 13777
07c381ad 13778 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
13779
13780 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
13781 compositions to encode.
13782 (encode_coding_string): Likewise. Free composition data.
13783
d5fb8dab 137842004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
13785
13786 * coding.c (code_convert_region): Free composition data.
9de36315 13787
f2a54fbc
KS
137882004-09-29 Kim F. Storm <storm@cua.dk>
13789
dc5d6435
KS
13790 * fringe.c: Remove limit on number of bitmaps.
13791 (fringe_bitmaps, fringe_faces): Change to pointers.
13792 (max_fringe_bitmaps): New var.
13793 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
13794 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
13795
13796 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
13797 (struct glyph_row): Reorder fringe_bitmap related fields.
13798 (struct it): Likewise.
13799
13800 * w32term.c (fringe_bmp): Change to pointer.
13801 (max_fringe_bmp): New var.
13802 (w32_define_fringe_bitmap): Expand fringe_bmp.
13803 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
13804 (w32_destroy_fringe_bitmap): Likewise.
13805
138062004-09-29 Kim F. Storm <storm@cua.dk>
13807
13808 * fringe.c: Simplify last change.
f2a54fbc
KS
13809 (lookup_fringe_bitmap): New function.
13810 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
13811 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
13812 Keep standard bitmaps in Vfringe_bitmaps.
13813 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
13814 (Fset_fringe_bitmap_face): Likewise.
13815
13816 * dispextern.h (lookup_fringe_bitmap): Add prototype.
13817 (valid_fringe_bitmap_p): Remove prototype.
13818
13819 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
13820
841a8bca
KS
138212004-09-29 Kim F. Storm <storm@cua.dk>
13822
1f2da365
KS
13823 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
13824 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
13825
841a8bca
KS
13826 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
13827
13828 * fringe.c (Vfringe_bitmaps): New variable.
13829 (syms_of_fringe): DEFVAR_LISP it.
13830 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
13831 Change arg to Lisp_Object and fail if not an integer.
13832 (get_fringe_bitmap_name, resolve_fringe_bitmap)
13833 (destroy_fringe_bitmap): New functions.
9238467d
SM
13834 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
13835 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
13836 clear its fringe property.
13837 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
13838 Fdestroy_fringe_bitmap.
13839 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
13840 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
13841 and set fringe property. Signal error if no free slots.
13842 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
13843 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
13844
13845 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
13846 symbols with a fringe property.
13847
4d965590
KS
138482004-09-27 Kim F. Storm <storm@cua.dk>
13849
13850 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
13851 Doc fix. Format may now be a symbol or alist, not a cons.
13852
13853 * fringe.c (update_window_fringes): Handle new formats of
13854 indicate-buffer-boundaries (symbol or alist). No longer
13855 allow a simple cons.
13856 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
13857
e888c2b3
JD
138582004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13859
9238467d 13860 * config.in: Rebuild.
e888c2b3 13861
83f1cb94
JD
138622004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13863
13864 * config.in: Rebuild.
13865
9dd28cae 13866 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 13867
2c51754c
SM
138682004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
13869
13870 * xterm.c (x_term_init): Work around a bug in some X servers.
13871
3df5f8aa
RS
138722004-09-18 Richard M. Stallman <rms@gnu.org>
13873
557ca2c1
RS
13874 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
13875
3df5f8aa
RS
13876 * xdisp.c (try_window_reusing_current_matrix):
13877 Handle the case where we reach the old displayed text,
13878 out of sync with the old line boundary.
13879
9238467d 138802004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
13881
13882 * fileio.c (Finsert_file_contents): Fix case of replacement in a
13883 narrowed buffer.
13884
bfa02563
KS
138852004-09-14 Kim F. Storm <storm@cua.dk>
13886
a25fe164
KS
13887 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
13888
bfa02563
KS
13889 * xfaces.c (Qface_no_inherit): New var.
13890 (syms_of_xfaces): Intern and staticpro it.
13891 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
13892 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
13893 Don't increment face_change_count when face has non-nil
13894 face-no-inherit property.
13895
126f9c02
SM
138962004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
13897
892a8eb5
SM
13898 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
13899 (Fbyte_code): Remove dead code after `wrong_type_argument'.
13900
126f9c02 13901 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 13902 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 13903
c0ad3b38
KS
139042004-09-12 Kim F. Storm <storm@cua.dk>
13905
13906 * editfns.c (Fformat): Handle format strings with multiple text
13907 properties. Reverse text property list from the format string,
13908 so the positions are in increasing order.
13909
844fc085
JD
139102004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13911
13912 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
13913 x_uncatch_errors so that possible protocol errors are delivered.
13914
b106731c
EZ
139152004-09-10 Eli Zaretskii <eliz@gnu.org>
13916
21065c92
EZ
13917 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
13918 blockinput.h.
13919 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
13920 charset.h, and coding.h
9238467d 13921 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
13922 (term.o): Depend on window.h and keymap.h.
13923 (abbrev.o): Depend on syntax.h.
13924 (callint.o): Depend on keymap.h.
13925 (casefiddle.o): Depend on charset.h and keymap.h.
13926 (category.o): Depend on keymap.h.
13927 (coding.o): Depend on dispextern.h.
13928 (cmds.o): Depend on keyboard.h and keymap.h.
13929 (dispnew.o): Depend on indent.h and intervals.h.
13930 (doc.o): Depend on keymap.h.
13931 (editfns.o): Depend on frame.h.
13932 (emacs.o): Depend on dispextern.h.
13933 (fileio.o): Don't depend on ccl.h.
13934 (filelock.o): Depend on charset.h and coding.h.
13935 (frame.o): Depend on w32term.h and macterm.h.
13936 (insdel.o): Depend on region-cache.h.
13937 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
13938 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
13939 (search.o): Depend on $(INTERVALS_SRC).
13940 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
13941 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
13942 xterm.h, w32term.h, and macterm.h.
13943 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
13944 w32term.h, and macterm.h.
13945 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
13946 region-cache.h, xterm.h, w32term.h, and macterm.h.
13947 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
13948 (data.o): Depend on frame.h.
13949 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
13950 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
13951 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
13952 (intervals.o): Depend on keymap.h.
13953
9238467d
SM
13954 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
13955 Add debugging print-out to termscript.
b106731c 13956
64b7122d
RS
139572004-09-09 Richard M. Stallman <rms@gnu.org>
13958
13959 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
13960
5670531e
RS
139612004-09-08 Richard M. Stallman <rms@gnu.org>
13962
6cb4a892
RS
13963 * window.c (Fset_window_buffer): Doc fix.
13964
5670531e
RS
13965 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
13966
7e388eb7
JL
139672004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
13968
13969 * minibuf.c (history_delete_duplicates): New variable.
13970 (read_minibuf): Use it.
13971 (syms_of_minibuf): Create the corresponding lisp variable.
13972
370e3587
KS
139732004-09-08 Kim F. Storm <storm@cua.dk>
13974
13975 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
13976 overlay just before point.
13977
f844ba4e
LT
139782004-09-07 Luc Teirlinck <teirllm@auburn.edu>
13979
13980 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
13981 * buffer.c (reset_buffer, init_buffer_once):
13982 Handle auto_save_file_format field.
f844ba4e
LT
13983 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
13984 `buffer-auto-save-file-format'.
f844ba4e
LT
13985 * fileio.c: Delete declaration for removed Vauto_save_file_format.
13986 (build_annotations): Adapt to replacement of
13987 `auto-save-file-format' with the new buffer-local variable
13988 `buffer-auto-save-file-format'.
13989 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
13990
f0f90717
JR
139912004-09-07 Jason Rumney <jasonr@gnu.org>
13992
13993 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
13994
88a337ec 13995 * w32fns.c (w32_wnd_proc) <WM_MEASUREITEM, WM_DRAWITEM>:
9238467d 13996 Handle Unicode menu titles.
f0f90717 13997
4e14f66c
KS
139982004-09-07 Kim F. Storm <storm@cua.dk>
13999
14000 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
14001 property from text property or overlay strings at point.
14002
9238467d 140032004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
14004
14005 * xmenu.c (update_submenu_strings): YAILOM.
14006 (set_frame_menubar): Make sure last_i is initialized.
14007
1f06d367
JR
140082004-09-03 Jason Rumney <jasonr@gnu.org>
14009
1806714a 14010 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
14011 (digest_single_submenu): Set lname and lkey in widget_value
14012 instead of name and key.
14013 (update_submenu_strings): New function.
14014 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14015 call update_submenu_strings.
14016
14017 * w32menu.c (globals_of_w32menu): Check for Unicode API.
14018 (digest_single_submenu, w32_menu_show): Encode menu strings as
14019 UTF-8 if Unicode API is available.
14020 (utf8to16): New function.
14021 (add_menu_item): Use it when calling Unicode API.
1806714a 14022
46540080
KS
140232004-09-03 Kim F. Storm <storm@cua.dk>
14024
14025 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
14026 in overlay or text-property strings; set cursor on corresponding
14027 glyph rather than at end of the string.
14028
9277ba61 140292004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 14030
9277ba61 14031 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
14032 set a new one before obtaining the global coordinate.
14033 Use FRAME_MAC_WINDOW.
14034 (x_set_name, x_set_title): Encode title to UTF8.
14035 Use SetWindowTitleWithCFString.
9277ba61
ST
14036 (Fx_server_version): Get correct OS version.
14037
1806714a
SM
14038 * macmenu.c (add_menu_item): Remove unused variable `i'.
14039 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
14040
14041 * macterm.c (x_update_end): Move SetPortWindowPort to inside
14042 BLOCK_INPUT.
14043 (x_set_offset): Use FRAME_MAC_WINDOW.
14044
14045 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
14046 nontext_cursor if it is on a scroll bar.
14047
14048 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
14049 Carbon support.
1806714a
SM
14050 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
14051 Use LIBS_CARBON.
9277ba61 14052
b10daec7
JD
140532004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14054
14055 * xfns.c (x_set_name_internal): New function. Check if we shall call
14056 xfree before ENCODE_UTF_8.
14057 (x_set_name, x_set_title): Call x_set_name_internal.
14058
f7e22385
JR
140592004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
14060
14061 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
14062 reload it.
14063
2bf436c3
JD
140642004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14065
1806714a 14066 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
14067 (single_submenu): Set lname and lkey in widget_value
14068 instead of name and key.
14069 (update_submenu_strings): New function.
14070 (set_frame_menubar): Remove call to inhibit_garbage_collection,
14071 call update_submenu_strings.
14072
2bf436c3
JD
14073 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
14074 instead of name and key.
14075 (update_submenu_strings): New function.
14076 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 14077 call update_submenu_strings.
2bf436c3
JD
14078
14079 * gtkutil.h (_widget_value): Added lname and lkey.
14080
11715f92
ST
140812004-08-30 Steven Tamm <steventamm@mac.com>
14082
14083 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
14084 by using different names for inner loop variables.
14085
5500be54
JD
140862004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14087
059cd329
JD
14088 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
14089 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
14090
5500be54
JD
14091 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
14092 tool bar items is 0.
14093
383418e5
ST
140942004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14095
14096 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
14097 strings in menu items.
14098 (single_submenu): Use ENCODE_MENU_STRING
14099 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
14100 button release isn't passed to event loop
14101 (add_menu_item): Use SetMenuItemWithCFString
14102
6eb3ee72
ST
141032004-08-26 Steven Tamm <steventamm@mac.com>
14104
14105 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
14106 tool-bar/menu click.
14107 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 14108
10b43ac3
JD
141092004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14110
2728b5d0
JD
14111 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
14112
10b43ac3
JD
14113 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14114 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14115 (x_top_window_to_frame): Return 0 if wdesc is None.
14116
2ee3b79e
RS
141172004-08-22 Richard M. Stallman <rms@gnu.org>
14118
14119 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
14120 HAVE_TERMIOS]: If there's no char for this signal, drop through
14121 and use system calls.
14122
14123 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
14124
9a1ba2ea
KS
141252004-08-20 Kim F. Storm <storm@cua.dk>
14126
14127 * process.c (wait_reading_process_output): Rename from
14128 wait_reading_process_input. All uses changed.
14129 (wait_reading_process_output_1): Rename from
14130 wait_reading_process_input_1. All uses changed.
14131
14132 * dispnew.c (Fsleep_for): Remove obsolete code.
14133
295f3b30
KH
141342004-08-20 Kenichi Handa <handa@m17n.org>
14135
14136 * syntax.c (skip_chars): Fix for unibyte case.
14137
27615979
SM
141382004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
14139
14140 * syntax.c (char_quoted): Mixup byte/char pos.
14141 (back_comment): Fixup globals in all cases.
14142
00267f94
JD
141432004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14144
14145 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
14146 passing it to gtk_window_set_title.
14147
2439909e
KS
141482004-08-19 Kim F. Storm <storm@cua.dk>
14149
6ba0f14c
KS
14150 * process.c (wait_reading_process_input): Clean up.
14151 Add wait_for_cell, wait_proc, and just_wait_proc args
14152 to avoid overloading `read_kbd' and `do_display' args.
14153 Change read_kbd arg to int. All callers changed.
14154
2439909e
KS
14155 * process.c (process_send_signal): Use CDISABLE.
14156
14157 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
14158
101c421e
KS
141592004-08-18 Kim F. Storm <storm@cua.dk>
14160
14161 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
14162 forward to wait_reading_process_input via DO_DISPLAY arg.
14163 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
14164 object, only process output from that process; also inhibit
14165 running timers if DO_DISPLAY==-2.
14166
c438dc33
KS
141672004-08-17 Kim F. Storm <storm@cua.dk>
14168
14169 * process.c (process_send_signal): Fix last change--use
14170 _POSIX_VDISABLE instead of CVDISABLE when available.
14171
8afc13c6
RS
141722004-08-16 Richard M. Stallman <rms@gnu.org>
14173
14174 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
14175 Set VQUIT and VINTR chars to the standard ones if they are unset.
14176 [AIX]: Don't do that here. And don't force VINTR to standard
14177 when SIGNALS_VIA_CHARACTERS.
14178
c438dc33 14179 * process.c (process_send_signal)
5e1a6e32 14180 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
8afc13c6
RS
14181 Do nothing if the character is CVDISABLE.
14182
14183 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
14184
c438dc33 14185 * intervals.c (move_if_not_intangible):
8afc13c6
RS
14186 Force POSITION to be between BEGV and ZV.
14187
6dad1714
JPW
141882004-08-14 John Paul Wallington <jpw@gnu.org>
14189
14190 * buffer.c (Frestore_buffer_modified_p): Doc fix.
14191
14192 * fileio.c (Fread_file_name): Doc fix.
14193
14194 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
14195
2bd77330
LT
141962004-08-09 Luc Teirlinck <teirllm@auburn.edu>
14197
14198 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
14199
c90e7e43
LT
142002004-08-08 Luc Teirlinck <teirllm@auburn.edu>
14201
14202 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 14203 Qdisabled_command_hook.
c90e7e43 14204 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 14205 Qdisabled_command_hook.
c90e7e43
LT
14206 (syms_of_keyboard): Ditto.
14207
81909a1a
LT
142082004-08-07 Luc Teirlinck <teirllm@auburn.edu>
14209
14210 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
14211 (syms_of_keymap) <key-translation-map>: Doc fixes.
14212
0cedd530
SM
142132004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
14214
1725a7c9
SM
14215 * window.c (window_list_1): YAILOM.
14216
0cedd530
SM
14217 * fileio.c (make_temp_name): Handle multibyte prefixes.
14218
2515a131
LT
142192004-08-06 Luc Teirlinck <teirllm@auburn.edu>
14220
14221 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
14222 Doc fix.
14223
c8b20fb7
KH
142242004-08-03 Kenichi Handa <handa@m17n.org>
14225
14226 * coding.c (decode_coding_string): Adjust coding->consumed, and
14227 etc. with shrinked_bytes.
14228
fb8b092b
KS
142292004-08-03 Kim F. Storm <storm@cua.dk>
14230
14231 * indent.c (compute_motion): Fix check for full width window
14232 in non-window case. Do not count left truncation glyph on
14233 window systems.
14234
df133612
LT
142352004-08-02 Luc Teirlinck <teirllm@auburn.edu>
14236
14237 * data.c (Finteractive_form): Doc fix.
14238
0f7a93c1
KS
142392004-08-02 Kim F. Storm <storm@cua.dk>
14240
14241 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
14242 properly accounting for continuation glyph on non-window systems.
14243 (Fcompute_motion): Use actual window width if WIDTH is nil, and
14244 actual window width/height if TOPOS is nil, properly accounting for
14245 continuation glyphs on non-window systems, and optional header lines.
14246 (vmotion): Let compute_motion calculate actual window width.
14247
14248 * window.c (window_scroll_line_based): Let compute_motion
14249 calculate actual window width.
14250
f491e1ed
KS
142512004-08-02 Kim F. Storm <storm@cua.dk>
14252
14253 * process.c (read_process_output): Use whole read buffer.
14254 Don't trigger adaptive read buffering on errors.
14255
83f64226
LT
142562004-07-31 Luc Teirlinck <teirllm@auburn.edu>
14257
14258 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
14259
1d1c7e75 14260 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
14261
14262 * callint.c (Fcall_interactively): Doc fix.
14263
8afc13c6
RS
142642004-07-30 Richard M. Stallman <rms@gnu.org>
14265
14266 * abbrev.c (Fexpand_abbrev): Undo previous change.
14267
7c111482
KS
142682004-07-30 Kim F. Storm <storm@cua.dk>
14269
14270 * editfns.c (Fformat): Allocate extra (dummy) element in info.
14271
ee945d08
LT
142722004-07-28 Luc Teirlinck <teirllm@auburn.edu>
14273
14274 * eval.c (Fdefvar, Fdefconst): Doc fixes.
14275
3f911c94
KS
142762004-07-27 Kim F. Storm <storm@cua.dk>
14277
14278 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
14279 we have ensured that the glyph fits on the current line (or returned
14280 MOVE_LINE_CONTINUED otherwise).
14281
f29ff8c7
KS
142822004-07-26 Kim F. Storm <storm@cua.dk>
14283
14284 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
14285 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
14286 if target position is at end of display line but char is not a newline.
14287
81159bb9
RS
142882004-07-25 Richard M. Stallman <rms@gnu.org>
14289
ab431b61
RS
14290 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
14291 instead of ON_VERTICAL_BORDER, when on scroll bar.
14292 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
14293
14294 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
14295
f29ff8c7 14296 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
14297 Take account of FRAME_INTERNAL_BORDER_WIDTH.
14298
14299 * alloc.c (check_cons_list): New function (contents commented out).
14300
fc820cc5
LT
143012004-07-24 Luc Teirlinck <teirllm@auburn.edu>
14302
14303 * xfaces.c (Fcolor_supported_p): Doc fix.
14304
14305 * frame.c (Fselect_frame, Fset_frame_selected_window)
14306 (Fframe_visible_p, Fraise_frame): Doc fixes.
14307
289978b5
LT
143082004-07-24 Richard M. Stallman <rms@gnu.org>
14309
78819ebb 14310 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
14311
14312 * fileio.c (Fwrite_region): Doc fix.
14313
14314 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
14315
14316 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
14317 only when a real abbrev is present.
14318
289978b5
LT
14319 * xfns.c (x_icon_verify): New function.
14320 (Fx_create_frame): Use it.
14321
d5fb8dab 143222004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
14323
14324 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
14325
36f826d4
KS
143262004-07-21 Kim F. Storm <storm@cua.dk>
14327
14328 * window.h (struct glyph_matrix): New members nrows_scale_factor
14329 and ncols_scale_factor.
14330
14331 * window.c (make_window): Initialize nrows_scale_factor and
14332 ncols_scale_factor members.
14333
14334 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
14335 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
14336 (required_matrix_height): Apply nrows_scale_factor.
14337 (required_matrix_width): Apply ncols_scale_factor.
14338
14339 * xdisp.c (display_line): Increment nrows_scale_factor and set
14340 fonts_changed_p if past last allocated row.
14341 (append_glyph, append_composite_glyph, produce_image_glyph)
14342 (append_stretch_glyph): Increment ncols_scale_factor and set
14343 fonts_changed_p if current area is full.
14344
5fc1c546
JD
143452004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14346
14347 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
14348
cb7516e5
LT
143492004-07-19 Luc Teirlinck <teirllm@auburn.edu>
14350
14351 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
14352 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
14353 (Fset_window_start, Fscroll_up, Fscroll_down)
14354 (Fother_window_for_scrolling, Fscroll_other_window)
14355 (Fsave_window_excursion, Fset_window_vscroll)
14356 (syms_of_window) <window-size-fixed>: Doc fixes.
14357
b6189c3b 143582004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
14359
14360 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
14361 ENCODE_SYSTEM for filenames.
14362
bfcf6608
ST
143632004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14364
14365 * mac.c (sys_select): Block input around call to
14366 ReceiveNextEvent to prevent breakage. Correctly handle
14367 blocking on event queue only by calling ReceiveNextEvent
14368 instead of select (since GUI events aren't on an fd).
14369 (sys_read): Remove function
14370 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
14371
e082ac9d
ST
143722004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14373
14374 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 14375 polling instead of 1 sec timeouts (like solaris).
e082ac9d 14376
cb7516e5 14377 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
14378 frame creation.
14379
14380 * keyboard.c: Undef SIGIO on Carbon
14381
14382 * atimer.c (alarm_signal_handler): Call alarm handlers after
14383 scheduling.
14384
14385 * eval.c (Feval): Remove quit_char test
14386
14387 * process.c (wait_reading_process_input): Remove clearing
14388 stdin for select call on process input.
14389
4b9da0fb
LT
143902004-07-18 Luc Teirlinck <teirllm@auburn.edu>
14391
1204e81c
LT
14392 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
14393 capitalization error in docstring.
4b9da0fb 14394
26503ad2
JB
143952004-07-17 Juanma Barranquero <lektu@terra.es>
14396
14397 * keyboard.c (not_single_kboard_state): Do nothing unless
14398 MULTI_KBOARD is defined.
14399
3751eb00
RS
144002004-07-17 Richard M. Stallman <rms@gnu.org>
14401
14402 * window.c (coordinates_in_window): Inside the window but outside
14403 its box to the L or R, return ON_VERTICAL_BORDER.
14404 (window_list_1): Rotate the list to start with WINDOW.
14405
14406 * print.c (print_preprocess): Test for print_depth at limit
14407 before entering in being_printed.
14408
14409 * keyboard.c (not_single_kboard_state): New function.
14410 (stuff_buffered_input): Now no-op only if no SIGTSTP.
14411
14412 * frame.c (Fdelete_frame): If we're in single_bboard_state on
14413 this kboard, and we delete its last frame, go to any_kboard_state.
14414
14415 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
14416
b6189c3b 144172004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
14418
14419 * w32fns.c (Fx_file_dialog): Encode strings in system coding
14420 system before passing them to OS functions for display.
14421
0f6af254
DK
144222004-07-15 David Kastrup <dak@gnu.org>
14423
f9253326
KS
14424 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
14425 Apparently fixes an abort condition.
0f6af254 14426
386c8f42
LT
144272004-07-14 Luc Teirlinck <teirllm@auburn.edu>
14428
14429 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
14430 instead of a cons.
14431
d495ccfc 144322004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
366511da
MB
14433
14434 * keyboard.c (echo_dash): Do nothing if there already is a dash
14435 at the end of the echo string.
14436
f85409d3
KS
144372004-07-12 Kim F. Storm <storm@cua.dk>
14438
14439 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
14440 if GC_MARK_STACK.
14441
0ba2e87b
LT
144422004-07-10 Luc Teirlinck <teirllm@auburn.edu>
14443
da38045d
LT
14444 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
14445
9dd28cae 14446 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
0ba2e87b
LT
14447 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
14448 (Freplace_buffer_in_windows, Fset_window_buffer)
14449 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
14450 (syms_of_window): Expand docstring of `display-buffer-function'.
14451
5668fbb8
LT
144522004-07-09 Luc Teirlinck <teirllm@auburn.edu>
14453
14454 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
14455 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
14456 that time values of the type (HIGH . LOW) are considered obsolete.
14457
a085bf9d
LT
144582004-07-06 Luc Teirlinck <teirllm@auburn.edu>
14459
669de2fb
LT
14460 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
14461 docstring.
14462
bac66325 14463 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 14464
8e975df9
JPW
144652004-07-06 John Paul Wallington <jpw@gnu.org>
14466
14467 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
14468
fa164e6a
JPW
14469 * fns.c (Fclear_string): Signal an error if STRING is not a string.
14470
2bac9bb1
JD
144712004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14472
14473 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
14474 instead of CGMainDisplayID (only in OSX 10.2 and later).
14475
316ef0dc
JPW
144762004-07-04 John Paul Wallington <jpw@gnu.org>
14477
14478 * fileio.c (read_file_name_completion_ignore_case): New variable.
14479 (syms_of_fileio): Declare and initialise it.
14480 (Fread_file_name): Bind `completion-ignore-case' to respect it.
14481
2a1a35c6
EZ
144822004-07-03 Eli Zaretskii <eliz@gnu.org>
14483
14484 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
14485 for event.x and event.y.
14486
33a72331
KH
144872004-07-01 Kenichi Handa <handa@m17n.org>
14488
14489 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
14490 after getting a new string by pre-write-conversion.
14491
9238467d 144922004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
14493
14494 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
14495 (x_calc_absolute_position): Remove unused var `child'.
14496
14497 * xfaces.c (x_supports_face_attributes_p)
14498 (Fdisplay_supports_face_attributes_p): YAILOM.
14499 (tty_supports_face_attributes_p): Remove unused var `i'.
14500
14501 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
14502 back_unibyte_ok.
14503
14504 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
14505
647b07d1
AS
14506 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
14507 `registry'.
07a6ab76
SM
14508
14509 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
14510
f96ec754
AS
145112004-06-30 Andreas Schwab <schwab@suse.de>
14512
14513 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
14514 (Finit_image_library): Pass LIBRARIES through to
14515 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
14516 (lookup_image_type): Pass Qnil as second argument to
14517 Finit_image_library.
14518
78819ebb 14519 * lisp.h (Finit_image_library): Declare.
f96ec754 14520
59feca74 145212004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 14522
31983645
AS
14523 * macterm.c (do_window_activate, do_window_deactivate): Remove.
14524 (XTread_socket): Send mouse button events to the toolbox
14525 dispatcher even when the mouse is grabbed. Don't process window
5e1a6e32 14526 activate events for non-Emacs windows. Replace function calls to
31983645
AS
14527 do_window_activate and do_window_deactivate with their contents.
14528 Reset mouse grabbing status when a window is deactivated.
59feca74 14529
c61278bb
ST
145302004-06-29 Steven Tamm <steventamm@mac.com>
14531
14532 * macterm.c (mac_get_emulated_btn)
14533 (mac_event_to_emacs_modifiers): Fix emulated mouse button
14534 support to correctly mask out modifiers.
14535
c3762cbd
DK
145362004-06-29 David Kastrup <dak@gnu.org>
14537
14538 * search.c (Fset_match_data): Allow buffer before end of list
14539 which can happen if set-match-data is using a pre-consed list.
14540
c61278bb 145412004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
14542
14543 * macterm.c (XTread_socket): Correctly set the frame position
14544 after the window is moved.
14545
74cdfe05
JD
145462004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14547
14548 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
14549 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
14550 (xg_get_image_for_pixmap): Add workaround for monochrome displays
14551 so insensitive and activated icons look ok.
74cdfe05 14552
ef544dc8
JR
145532004-06-27 Jason Rumney <jasonr@gnu.org>
14554
14555 * w32fns.c (file_dialog_callback): Disable edit control if set
14556 to directories only on CDN_INITDONE message.
14557 (Fx_file_dialog): Default to directories only when prompt starts
14558 with "Dired".
14559
7b7990cc
KS
145602004-06-25 Kim F. Storm <storm@cua.dk>
14561
14562 * alloc.c (allocate_misc): Update total_free_markers.
14563 (free_misc): New function.
14564 (safe_alloca_unwind, free_marker): Use it.
14565
14566 * lisp.h (free_misc): Add prototype.
14567
14568 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
14569
d8c379f8
RS
145702004-06-24 Richard M. Stallman <rms@gnu.org>
14571
14572 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
14573 (syms_of_emacs): Lisp variables deleted.
14574
559cdd07
DK
145752004-06-23 David Kastrup <dak@gnu.org>
14576
94939b84
DK
14577 * search.c (Freplace_match): Adjust the match-data more thoroughly
14578 when replacing strings in the buffer.
14579 (Fmatch_data): When INTEGERS is non-nil and the last match was in
14580 a buffer, add the buffer as last element to the match data.
14581 (Fset_match_data): If an additional element of the match-data is a
14582 buffer, restore it to last_thing_searched.
c8d09ad8 14583 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
14584 (restore_match_data): Restore it again.
14585
dce417e7
LT
145862004-06-23 Luc Teirlinck <teirllm@auburn.edu>
14587
14588 * keymap.c (Ftext_char_description): Doc fix.
14589 * doc.c (Fsnarf_documentation): Doc fix.
14590
ef54b2d0
KS
145912004-06-22 Kim F. Storm <storm@cua.dk>
14592
b5bc4d05
KS
14593 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
14594
ef54b2d0
KS
14595 * lisp.h (struct Lisp_Save_Value): New member dogc.
14596 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
14597 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
14598 (SAFE_FREE_LISP): New macro.
14599
14600 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
14601 (make_save_value): Init new dogc member.
14602 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
14603
14604 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
14605 SAFE_FREE_LISP macros.
14606
3d33d993
KS
146072004-06-22 Kim F. Storm <storm@cua.dk>
14608
14609 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
14610 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
14611 in that memory area are unknown to GC. Add comments.
14612
14613 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
14614
5c917f98
KS
146152004-06-21 Kim F. Storm <storm@cua.dk>
14616
14617 * lisp.h (MAX_ALLOCA): Define here.
14618 (safe_alloca_unwind): Add prototype.
14619 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
14620
14621 * alloc.c (safe_alloca_unwind): New function.
14622
14623 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
14624
14625 * charset.c (Fstring): Use SAFE_ALLOCA.
14626
14627 * coding.c (MAX_ALLOCA): Remove define.
14628
14629 * data.c (MAX_ALLOCA): Remove define.
14630 (Faset): Use SAFE_ALLOCA.
14631
14632 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
14633
14634 * fns.c (string_make_multibyte, string_to_multibyte)
14635 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
14636 (MAX_ALLOCA): Remove define.
14637 (Fbase64_encode_region, Fbase64_encode_string)
14638 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
14639 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
14640 memory leak if encoding fails.
14641
14642 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
14643
9a09408e
EZ
146442004-06-21 Eli Zaretskii <eliz@gnu.org>
14645
14646 * print.c (Fwith_output_to_temp_buffer): Doc fix.
14647
376de739
RS
146482004-06-20 Richard M. Stallman <rms@gnu.org>
14649
14650 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
14651
14652 * search.c (match_limit): Cleaner err msg when no match data available.
14653
14654 * window.c (syms_of_window): Doc fix.
14655
14656 * keyboard.c (command_loop_1): Handle values `only' and `identity'
14657 for Vtransient_mark_mode.
14658
14659 * buffer.c (syms_of_buffer): Doc fix.
14660
acd81db9
DK
146612004-06-21 David Kastrup <dak@gnu.org>
14662
14663 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
14664 and unbinding of `case-fold-search' according to
14665 `completion-ignore-case' around calls of string-match and
14666 predicates, respectively. Should give satisfactory performance
14667 in all relevant cases.
14668
f303762d
JD
146692004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14670
95911c74
JD
14671 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
14672 clip_x/y_origin.
14673
a6cb6b78
JD
14674 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
14675
f303762d
JD
14676 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
14677
14678 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
14679 on Mac OSX.
14680
bbdb2684
LT
146812004-06-16 Luc Teirlinck <teirllm@auburn.edu>
14682
14683 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
14684
5ea48b1c
KS
146852004-06-16 Kim F. Storm <storm@cua.dk>
14686
14687 * dispextern.h (Vimage_types): Remove extern.
14688
803aac3e
MB
146892004-06-16 Miles Bader <miles@gnu.org>
14690
14691 * image.c (lookup_image_type): Initialize image type if necessary.
14692
cdc97764
KS
146932004-06-15 Kim F. Storm <storm@cua.dk>
14694
c4a5739c
KS
14695 * xdisp.c (try_cursor_movement): Exclude header line from scroll
14696 margin at top of window.
14697 (try_window_reusing_current_matrix): Calculate proper cursor position
14698 after scrolling up with non-zero scroll margin, as the old cursor
14699 position corresponds to value of PT before executing this command.
14700 (try_window_id): Consider scroll margin at bottom of window too;
14701 otherwise we fail to scroll when hl-line-mode is enabled.
14702
cdc97764
KS
14703 * syntax.c (skip_chars): Only recognize [:class:] when it has the
14704 proper format and class is a lower-case word.
14705
5b166323
JD
147062004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14707
14708 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 14709 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
14710 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
14711 xg_get_gdk_pixmap_and_mask.
cdc97764 14712
5b166323
JD
14713 * xterm.h (struct x_display_info): Typo in comment fixed.
14714
1ebd4f78
JB
147152004-06-14 Juanma Barranquero <lektu@terra.es>
14716
14717 * dispextern.h (Vimage_types): Make it conditional on
14718 HAVE_WINDOW_SYSTEM.
14719
14720 * image.c (Vimage_types): Move from xdisp.c.
14721 (Vimage_type_cache): New variable.
14722 (define_image_type): New argument indicating whether an image
14723 library was loaded; cache loaded status and return t on success,
14724 nil otherwise.
14725 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
14726 (w32_delayed_load): New function to load an image library from a
14727 list of possible filenames.
14728 (init_xpm_functions, init_png_functions, init_jpeg_functions)
14729 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 14730 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
14731 (Finit_image_library): New function, extracted from `init_image'.
14732 Try to initialize an image library on demand and cache whether we
14733 were successful or not.
14734 (syms_of_image): Initialize `Vimage_types' and
14735 `Vimage_type_cache'. Add recognized image types to Vimage_types.
14736 Export `init-image-library'.
14737 (init_image): Remove initialization of all image types, except xbm
14738 and pbm.
14739
14740 * xdisp.c (Vimage_types): Delete (moved to image.c).
14741
904ee128
AS
147422004-06-14 Andreas Schwab <schwab@suse.de>
14743
14744 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14745 Avoid calling specbind when completion-regexp-list is empty.
14746
092de21d
RS
147472004-06-13 Richard M. Stallman <rms@gnu.org>
14748
14749 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
14750 (re_wctype, re_iswctype, re_wctype_to_bit):
14751 Non-function definitions moved here from regex.c.
1ebd4f78 14752
092de21d
RS
14753 * regex.c (re_wctype, re_iswctype): Function defs longer static.
14754 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
14755 (re_wctype, re_iswctype, re_wctype_to_bit):
14756 Non-function definitions moved to regex.h.
14757
14758 * window.c (Fselect_window): Doc fix.
14759
14760 * syntax.c: Include regex.h.
14761 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
14762 If requested, make a list of classes, then check the scanned
14763 chars for membership in them.
14764 (in_classes): New function.
14765 Doc fix.
14766
14767 * keyboard.c (cmd_error): Don't call any_kboard_state
14768 if inside a recursive edit level.
14769
d495ccfc 147702004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
092de21d
RS
14771
14772 * keyboard.c (command_loop): Call any_kboard_state before
14773 command_loop_2 when at top level.
14774
3ebc0939
AS
147752004-06-13 Andreas Schwab <schwab@suse.de>
14776
cea5d0d4
AS
14777 * print.c (print_object): Always use %ld for printing EMACS_INT.
14778
14779 * keyboard.c (cancel_hourglass_unwind): Return a value.
14780 (modify_event_symbol): Always use %ld for printing EMACS_INT.
14781 (Fexecute_extended_command): Likewise.
14782
14783 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
14784 avoid clashes.
14785 (SYNTAX): Likewise.
14786 (SYNTAX_WITH_FLAGS): Likewise.
14787 (SYNTAX_MATCH): Likewise.
14788
14789 * syntax.c (char_quoted): Avoid warning about undefined operation.
14790 (find_defun_start): Likewise.
14791 (scan_lists): Likewise.
14792 (INC_FROM): Likewise.
14793 (scan_sexps_forward): Likewise.
14794
be8c4ce4
AS
14795 * image.c: Include <ctype.h>.
14796
3ebc0939
AS
14797 * xfaces.c (face_attr_equal_p): Declare parameters.
14798
6fb41b5b
KH
147992004-06-13 Kenichi Handa <handa@m17n.org>
14800
14801 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
14802
fc3095ce
EZ
148032004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
14804
14805 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
14806
66189a40
KH
148072004-06-12 Kenichi Handa <handa@m17n.org>
14808
14809 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
14810 ccl_prog_stack_struct and update it.
14811 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
14812 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
14813 ccl->eof_ic on EOF.
14814 (ccl_debug_hook): New function.
14815 (struct ccl_prog_stack): New member eof_ic.
14816 (ccl_driver): Handle EOF in subrountine call correctly.
14817
148182004-06-11 Kenichi Handa <handa@m17n.org>
14819
a9b43336 14820 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 14821
1da71023
KS
148222004-06-11 Kim F. Storm <storm@cua.dk>
14823
14824 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
14825
e9efcef4
JB
148262004-06-11 Juanma Barranquero <lektu@terra.es>
14827
14828 * keyboard.c (Fposn_at_point): Doc fix.
14829
9b9ceb61
DK
148302004-06-11 David Kastrup <dak@gnu.org>
14831
14832 * search.c (match_limit): Don't flag an error if match-data
14833 exceeding the allocated search_regs.num_regs gets requested, just
14834 return Qnil.
14835
6e87ac8f
MB
148362004-06-08 Miles Bader <miles@gnu.org>
14837
14838 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
14839
0b0dea7b
JB
148402004-06-07 Juanma Barranquero <lektu@terra.es>
14841
14842 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
14843 (Fcurrent_time_string, Fcurrent_time_zone)
14844 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
14845
a0a23346
MB
148462004-06-07 Miles Bader <miles@gnu.org>
14847
08384afd 14848 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
14849 (push_named_merge_point): New function.
14850 (merge_named_face): New function.
14851 (merge_face_ref, face_at_buffer_position, face_at_string_position):
14852 Use `merge_named_face'.
14853 (merge_face_inheritance): Function removed.
c8d09ad8 14854 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
14855 Add new `err_msgs' and `named_merge_points' args. Return error
14856 status. Only print error messages if ERR_MSGS is true. Don't try to
14857 do :inherit attribute validation.
14858 (merge_face_heights): Handle `unspecified' in both directions.
14859 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
14860 Call `merge_face_ref' instead of `merge_face_inheritance'.
14861 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
14862 (compute_char_face, face_at_buffer_position)
14863 (face_at_string_position): Call `merge_face_ref' instead of
14864 `merge_face_vector_with_property'.
14865
12d5b185
KH
148662004-06-07 Kenichi Handa <handa@m17n.org>
14867
14868 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
14869 the necessary places.
14870
2e2d7ee6
KS
148712004-06-07 Kim F. Storm <storm@cua.dk>
14872
14873 * process.c (Fdelete_process): Undo 2004-05-28 change.
14874 Instead, call status_notify also for network process.
14875 (status_message): Use process instead of status as arg.
14876 Give messages "deleted" or "connection broken by remote peer" for
14877 an exited network process.
14878 (status_notify): Change call to status_message.
14879 (read_process_output): Increase readmax to 4096. Do not increase
14880 buffer size for datagram channels (default is now large enough).
14881
fcf0d299
ST
148822004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
14883
14884 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
14885 problem due to newly defined variable.
14886
0722292b
MB
148872004-06-06 Miles Bader <miles@gnu.org>
14888
14889 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
14890 immediately if non-interactive or not initialized.
14891
ddfb8369
RS
148922004-06-05 Richard M. Stallman <rms@gnu.org>
14893
14894 * minibuf.c (Fcompleting_read): Doc fix.
14895
57015754
AS
148962004-06-05 Andreas Schwab <schwab@suse.de>
14897
14898 * macfns.c (x_create_tip_frame): Fix declaration after statement.
14899
23715ea6
JB
149002004-06-05 Juanma Barranquero <lektu@terra.es>
14901
14902 * keymap.c (Fdescribe_vector): Fix docstring.
14903 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
14904
8e330b22
MB
149052004-06-05 Miles Bader <miles@gnu.org>
14906
14907 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
14908 attributes have different values than the default face.
14909
9742a3a6
EZ
149102004-06-04 Eli Zaretskii <eliz@gnu.org>
14911
14912 * xfaces.c (x_supports_face_attributes_p): Make this function
14913 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
14914 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
14915 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 14916
9717e36c
MB
149172004-06-04 Miles Bader <miles@gnu.org>
14918
14919 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
14920 from Ftty_supports_face_attributes_p.
14921 (x_supports_face_attributes_p): New function.
14922 (Ftty_supports_face_attributes_p): Function deleted.
14923 (Fdisplay_supports_face_attributes_p): New function.
14924 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 14925 (face_attr_equal_p): New function.
9717e36c
MB
14926 (lface_equal_p): Use it.
14927
52deb19f
JB
149282004-06-03 Juanma Barranquero <lektu@terra.es>
14929
14930 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
14931 (Vw32_color_map): Fix typo in docstring.
14932 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
14933 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
14934 Make argument names match their use in docstring.
14935
86d373e6
JB
149362004-06-02 Juanma Barranquero <lektu@terra.es>
14937
14938 Work around bugs/problems with MinGW builds of graphics libraries
14939 called from MSVC builds of Emacs.
14940
14941 * image.c (lookup_image): Make pointer to img static.
14942 (png_read_from_memory): Disable "global" optimization.
14943
2fb0ce67
SM
149442004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
14945
c8d09ad8
SM
14946 * eval.c (Fcondition_case): Fix usage. Simplify.
14947
2fb0ce67
SM
14948 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
14949
50bf7673
ST
149502004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14951
14952 * macfns.c: Don't include ccl.h.
14953 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
14954 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
14955 TextUtils.h.
c8d09ad8 14956 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
14957 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
14958 display height/width.
14959 (compute_tip_xy, Vx_max_tooltip_size): Declare.
14960 (unwind_create_tip_frame, compute_tip_xy): New functions.
14961 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
14962 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
14963 and last_show_tip_args.
2fb0ce67 14964
50bf7673
ST
14965 * macgui.h [!MAC_OSX]: Include Gestalt.h.
14966 (Cursor, No_Cursor): New defines.
c8d09ad8 14967 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
14968 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
14969
14970 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
14971
14972 * macterm.c: Don't include Gestalt.h.
14973 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
14974 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
14975 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
14976 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
14977 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
14978 (construct_mouse_click, XTmouse_position)
14979 (x_scroll_bar_report_motion, x_calc_absolute_position)
14980 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
14981 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
14982 (note_mouse_movement): Clear the mouse face and reset the pointer
14983 shape when the pointer goes outside the frame without grabbing.
14984 (mac_front_window): New function.
14985 (mac_window_to_frame): New macro.
14986 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
14987 (do_window_activate, do_window_deactivate, do_app_resume)
14988 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
14989 (do_zoom_window, mac_do_receive_drag, XTread_socket)
14990 (mac_check_for_quit_char): Use mac_front_window and/or
14991 mac_window_to_frame.
14992 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
14993 scroll-bar click event.
14994 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
14995 (x_free_frame_resources): Reset tip_window to NULL when it is
14996 disposed of.
50bf7673 14997 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 14998 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
14999 (do_window_update): Don't do anything if the updated window is the
15000 tooltip window.
15001 (do_mouse_moved): Handle mouse movement events here (previously in
15002 XTread_socket). Clear the mouse face if
15003 dpyinfo->mouse_face_hidden is set.
15004 (do_os_event, do_events): Remove (now in XTread_socket).
15005 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
15006 Loop until all the events in the queue are processed.
15007 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
15008 contents of do_os_event and do_events. Remove mouse movement
15009 handling (now in do_mouse_moved). Add the case where
15010 Vmouse_highlight has an integer value.
15011 (NewMacWindow): Remove.
15012 (make_mac_frame): Do what NewMacWindow previously did. Don't do
15013 excess initializations.
15014 (make_mac_terminal_frame): Previous initializations in
15015 make_mac_frame are moved here.
c8d09ad8
SM
15016 (mac_initialize_display_info):
15017 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
15018
15019 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
15020 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
15021
08fd1251
RS
150222004-05-29 Richard M. Stallman <rms@gnu.org>
15023
15024 * lisp.h (truncate_undo_list): Update decl.
15025
15026 * alloc.c (undo_outer_limit): New variable.
15027 (syms_of_alloc): Defvar it.
15028 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
15029
15030 * undo.c (truncate_undo_list): New arg LIMITSIZE.
15031
15032 * alloc.c (lisp_align_malloc): Check for base == 0
15033 regardless of HAVE_POSIX_MEMALIGN.
15034 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
15035
227ef0ff
SM
150362004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15037
15038 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
15039 (marker_blocks_pending_free): Remove.
15040 (Fgarbage_collect): Sweep after cleaning up undo-lists.
15041 Mark the undo lists after claning them up.
15042 Don't free block in marker_blocks_pending_free.
15043 (mark_buffer): Don't mark undo_list.
15044 (gc_sweep): Sweep hash-tables and strings first.
15045 Do free marker blocks that are empty.
15046
034a6113
SM
150472004-05-28 Jim Blandy <jimb@redhat.com>
15048
15049 * regex.c (print_partial_compiled_pattern): Add missing 'break'
15050 after 'case wordend'. For symbeg and symend, print to stderr,
15051 like the other cases.
15052
33594a8d
NF
150532004-05-28 Noah Friedman <friedman@splode.com>
15054
15055 * process.c (Fdelete_process): Do not call remove_process.
15056
ce50a847
SM
150572004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15058
15059 * alloc.c (struct backtrace): Remove.
15060 (Fgarbage_collect): Use the new mark_backtrace.
15061
15062 * eval.c (mark_backtrace): New function.
15063
15064 * minibuf.c (run_exit_minibuf_hook): New function.
15065 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
15066 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
15067
1e8dae36
KS
150682004-05-27 Kim F. Storm <storm@cua.dk>
15069
15070 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
15071 over display properties, e.g. images, that replace buffer text.
15072
846faa3b
KS
150732004-05-25 Kim F. Storm <storm@cua.dk>
15074
15075 * alloc.c (marker_blocks_pending_free): New var.
15076 (gc_sweep): Store free marker blocks on that list.
15077 (Fgarbage_collect): Free them after undo-list cleanup.
15078
15079 * process.c (wait_reading_process_input): Check connect_wait_mask
15080 before actually accepting connection in case it has already been
15081 accepted due to recursion.
15082
d495ccfc 150832004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
6239a668 15084
ce50a847
SM
15085 * coding.c (Fset_safe_terminal_coding_system_internal):
15086 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 15087
71d5a208
RS
150882004-05-22 Richard M. Stallman <rms@gnu.org>
15089
15090 * alloc.c (Fmake_string): Doc fix.
15091
15092 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
15093 and the alist pairs too.
15094
15095 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
15096
51391fb9
RF
15097 * emacs.c (main): Update copyright year.
15098
71d5a208
RS
15099 * fileio.c (Fread_file_name): Expand DIR if not absolute.
15100
15101 * insdel.c (del_range_2, replace_range): Don't write an anchor
15102 if the gap is empty.
15103
15104 * xdisp.c (try_scrolling): If scroll-up-aggressively or
15105 scroll-down-aggressively is small but positive, put point
15106 near the screen edge.
15107
f63fd14e
JB
151082004-05-22 Juanma Barranquero <lektu@terra.es>
15109
15110 * keymap.c (Fdefine_key): Doc fix.
15111
4d12067c
KS
151122004-05-22 Kim F. Storm <storm@cua.dk>
15113
15114 * alloc.c (struct backtrace): Add debug_on_exit member.
15115 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
15116 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
15117 the removed cons cells.
15118 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
15119 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
15120 any cons cells pointing to unallocated stings.
15121 Do not lisp_free any marker blocks, as there may still be pointers
15122 to them from buffer undo lists at this stage of GC.
15123
15124 * keyboard.c (struct backtrace): Add debug_on_exit member.
15125 (Fcommand_execute): Clear it.
15126
931285e2
LT
151272004-05-20 Luc Teirlinck <teirllm@auburn.edu>
15128
15129 * intervals.c (lookup_char_property): Do not prematurely return nil.
15130
669fa600
SM
151312004-05-19 Jim Blandy <jimb@redhat.com>
15132
15133 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 15134 beginning and end of symbols.
4d12067c 15135
669fa600
SM
15136 * regex.c (enum syntaxcode): Add Ssymbol.
15137 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
15138 (re_opcode_t): New opcodes `symbeg' and `symend'.
15139 (print_partial_compiled_pattern): Print the new opcodes properly.
15140 (regex_compile): Parse the new operators.
ce50a847 15141 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
15142 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
15143 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
15144 (re_match_2_internal): Match symbeg and symend.
15145
15146 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
15147
0d8c2e5c
KS
151482004-05-19 Kim F. Storm <storm@cua.dk>
15149
15150 * .gdbinit (xsymbol): Fix last change.
15151
669fa600
SM
151522004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
15153
15154 * .gdbinit (xprintstr): New fun.
15155 (xstring, xprintsym): Use it.
15156
15157 * w32proc.c (create_child): Use INTMASK.
15158
15159 * alloc.c (Fgarbage_collect): Do all the marking before flushing
15160 unmarked elements of the undo list.
15161
9a6a4c40
DP
151622004-05-18 David Ponce <david@dponce.com>
15163
15164 * print.c (print): Reset print_depth before to call print_object.
15165
f3c4ec74
JR
151662004-05-18 Jason Rumney <jasonr@gnu.org>
15167
15168 * w32console.c: Prefix RIF functions with w32con_ to avoid
15169 namespace clash with functions in term.c and w32term.c.
15170
15171 * w32menu.c (add_menu_item, w32_menu_display_help)
15172 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
15173
0d8c2e5c 15174 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 15175
6be49c3a
EZ
151762004-05-18 Eli Zaretskii <eliz@gnu.org>
15177
4d0b9a0a
EZ
15178 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
15179
6be49c3a
EZ
15180 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
15181 with make_number.
15182 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
15183 with XINT.
15184
0bc90bba
KS
151852004-05-18 Kim F. Storm <storm@cua.dk>
15186
89d19988
KS
15187 * blockinput.h (INPUT_BLOCKED_P): New macros.
15188
15189 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
15190 (Ftop_level): Unblock input if blocked.
15191
0bc90bba
KS
15192 * buffer.h (GET_OVERLAYS_AT): New macro.
15193 * msdos.c (IT_note_mouse_highlight): Use it.
15194 * textprop.c (get_char_property_and_overlay): Use it.
15195 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
15196 * xfaces.c (face_at_buffer_position): Use it.
15197
15198 * print.c (print_object): Increase buf size.
15199
653bd0f6
JR
152002004-05-17 Jason Rumney <jasonr@gnu.org>
15201
15202 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
15203 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
15204 Lisp_Object using i member.
15205 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
15206 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
15207 consistently.
15208
15209 * w32proc.c (create_child): Use make_number instead of masking pid.
15210
15211 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
15212 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
15213 Use EQ to compare Lisp_Objects.
15214 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
15215
15216 * w32term.c (w32_num_mouse_buttons): Rename from
15217 Vw32_num_mouse_buttons and make it an int.
15218
15219 * w32.c (init_environment): Use it.
15220
15221 * w32fns.c (w32_wnd_proc): Likewise.
15222
15223 * w32proc.c (w32_pipe_read_delay): Rename from
15224 Vw32_pipe_read_delay and make it an int.
15225
15226 * w32.c (_sys_read_ahead): Use it.
15227
15228 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
15229
15230 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
15231
15232 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
15233 (key_event): Don't mix Lisp_Object and int.
15234
15235 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
15236
15237 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
15238 modifiers in language change event.
15239
54b53ba7
KS
152402004-05-17 Kim F. Storm <storm@cua.dk>
15241
15242 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
15243 Such objects may be freed markers which still exist on an undo list.
15244
6e86a75d
JB
152452004-05-16 Juanma Barranquero <lektu@terra.es>
15246
15247 * data.c (Fset_default): Make argument names match their use in
15248 docstring.
15249
fc80da24
AS
152502004-05-15 Andreas Schwab <schwab@suse.de>
15251
15252 * emacs.c (gdb_array_mark_flag): Define.
15253 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
15254
c1380aa6
EZ
152552004-05-15 Eli Zaretskii <eliz@gnu.org>
15256
15257 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
15258 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
15259 defined for the MS-DOS build.
15260
89458937
SM
152612004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
15262
15263 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
15264
08020f9a
KH
152652004-05-14 Kenichi Handa <handa@m17n.org>
15266
15267 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
15268
a433994a
ST
152692004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15270
15271 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
15272 section to frame.c section.
15273 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 15274 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 15275
a433994a 15276 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 15277
a433994a 15278 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 15279
a433994a
ST
15280 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
15281 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
15282 (XTread_socket): Fix int/Lisp_Object mixup.
15283 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 15284
a433994a
ST
15285 * macterm.h (struct frame, struct face, struct image)
15286 (display_x_get_resource, Fx_display_color_p)
89458937
SM
15287 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
15288 Add prototypes.
a433994a 15289
b51a51b9
KS
152902004-05-14 Kim F. Storm <storm@cua.dk>
15291
15292 * process.c (wait_reading_process_input): Make reentrant.
15293 Make Available and Connecting non-static. Save and restore value
15294 of waiting_for_user_input_p.
15295
2bde1dd8
KS
152962004-05-13 Kim F. Storm <storm@cua.dk>
15297
15298 * keyboard.c (mark_kboards): Don't mark x and y members
15299 that are overloaded in selection request events.
15300
a267ab4d
SM
153012004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15302
15303 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
15304
eb15ce9e
GM
153052004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
15306
15307 * window.c (Fdisplay_buffer, Fsplit_window)
15308 (split-height-threshold): Doc fix.
15309
7fc92635
JB
153102004-05-13 Juanma Barranquero <lektu@terra.es>
15311
15312 * xfaces.c (Ftty_supports_face_attributes_p)
15313 (Finternal_copy_lisp_face): Fix typo in docstring.
15314 (Finternal_get_lisp_face_attribute): Fix docstring.
15315
1ec2a572
JD
153162004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15317
15318 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
15319
ae9292e0
ST
153202004-05-11 Steven Tamm <steventamm@mac.com>
15321
15322 * macfns.c (Fx_create_frame): Default to using tool-bar by
15323 setting tool-bar-lines to 1 in default-frame-alist.
15324
153252004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
15326
15327 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
15328 (xpm_get_color_table_v, xpm_make_color_table_h)
15329 (xpm_put_color_table_h, xpm_get_color_table_h)
15330 (xpm_str_to_color_key, xpm_load_image, xpm_load)
15331 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 15332 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 15333
fe97e8df
ST
153342004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15335
a267ab4d 15336 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
15337 instead of FRAME_X_P
15338
b47e779e
KS
153392004-05-11 Kim F. Storm <storm@cua.dk>
15340
15341 * process.c (read_process_output): Grow decoding_buf when needed;
15342 this could cause a crash in allocate_string and compact_small_strings.
15343
cdc9b845
EZ
153442004-04-29 Jim Blandy <jimb@redhat.com>
15345
15346 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
15347 against proper opcode.
15348
aa7094ba
JB
153492004-05-10 Juanma Barranquero <lektu@terra.es>
15350
15351 * process.c (Fstart_process): Fix docstring.
15352
15353 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
15354 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
15355 (Fsplit_char, Fchar_charset): Make argument names match their use
15356 in docstring.
15357
e109331a
RS
153582004-05-10 Richard M. Stallman <rms@gnu.org>
15359
15360 * print.c (print_preprocess): Use being_printed, loop_count and
15361 halftail to detect overdeep nesting and cyclic cdr chains.
15362
9a28b921
AS
153632004-05-10 Andreas Schwab <schwab@suse.de>
15364
78819ebb 15365 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
15366
15367 * fileio.c (Frename_file): Remove extra argument in call to
15368 Fmake_symbolic_link.
15369
e2c02c1a
KS
153702004-05-10 Kim F. Storm <storm@cua.dk>
15371
15372 * xdisp.c (calc_line_height_property): Use string position when
15373 object is a string.
15374
cfe9d13e
KH
153752004-05-10 Kenichi Handa <handa@m17n.org>
15376
a57e8159
KH
15377 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
15378 inhibit-modification-hooks to t temporarily before calling
15379 Ferase_buffer.
15380
15381 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
15382 inhibit-modification-hooks to t temporarily before calling
15383 Ferase_buffer.
15384
15385 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
15386 inhibit-modification-hooks to t temporarily before calling
15387 Ferase_buffer.
15388
cfe9d13e
KH
15389 * fns.c (count_combining): Delete it.
15390 (concat): Don't check combining bytes.
15391
ceb96489
JR
153922004-05-09 Jason Rumney <jasonr@gnu.org>
15393
15394 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
15395 (globals_of_w32fns): Set it.
15396
b6189c3b 153972004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
15398
15399 * data.c (Fquo): Simplify.
15400
28712a21
JB
154012004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
15402
15403 * data.c (Fquo): If any argument is float, do the computation in
15404 floating point.
15405
0f0af7a8
JB
154062004-05-08 Juanma Barranquero <lektu@terra.es>
15407
88214ef6
JB
15408 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
15409 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
15410 Fix spelling of Emacs on docstring.
15411 (Fset_process_coding_system, Fprocess_coding_system)
15412 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
15413 Make argument names match their use in docstring.
15414 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
15415 Fix docstring.
15416
0f0af7a8
JB
15417 * editfns.c (Finsert_buffer_substring): Make argument names match their
15418 use in docstring.
15419
15420 * syntax.c (Fmodify_syntax_entry): Fix docstring.
15421
2a316a84
ST
154222004-05-07 Steven Tamm <steventamm@mac.com>
15423
15424 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
15425 around call to ReceiveEvent to avoid certain crashes.
15426
154272004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 15428
2a316a84
ST
15429 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
15430 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
15431 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
15432 Save/restore the current graphics port and device handle when
15433 drawing into an offscreen graphics world.
15434
15435 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
15436 (gif_load): Likewise.
15437
ab80314b
JB
154382004-05-07 Juanma Barranquero <lektu@terra.es>
15439
15440 * window.c (Fset_window_buffer): Fix docstring.
15441
70646bb5
TTN
154422004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
15443
15444 * emacs.c (main) [VMS]: Fix var ref.
15445
b6189c3b 154462004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
15447
15448 * data.c (Fsetq_default): Fix docstring.
15449
279d3293
JR
154502004-05-06 Jason Rumney <jasonr@gnu.org>
15451
15452 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
15453 to avoid name clash.
15454
f72b5416
JD
154552004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15456
15457 * fileio.c (barf_or_query_if_file_exists): Use lstat.
15458 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 15459 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 15460
6ab66799
KS
154612004-05-04 Kim F. Storm <storm@cua.dk>
15462
15463 * xdisp.c (Qtotal): New var.
15464 (syms_of_xdisp): Intern and staticpro it.
15465 (calc_line_height_property): New arg total. Set it if
15466 line-spacing property has format (total . VALUE).
15467 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
15468 Handle total line-spacing property.
15469
ab2d724b
JD
154702004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15471
15472 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
15473 "under" scroll bar when size/position changes.
15474
238add5e
JR
154752004-05-03 Jason Rumney <jasonr@gnu.org>
15476
15477 * makefile.nt: Remove.
15478
1644f4e4
EZ
154792004-05-02 Eli Zaretskii <eliz@gnu.org>
15480
a267ab4d
SM
15481 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
15482 Avoid compiler warnings.
05fdbeb8 15483
1644f4e4
EZ
15484 * Makefile.in (region-cache.o): Depend on config.h.
15485
b6189c3b 154862004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
15487
15488 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
15489 with continuation lines, too.
15490
2b98b088
TTN
154912004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
15492
15493 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
15494
d9bf7950
SM
154952004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
15496
15497 * xdisp.c (calc_line_height_property): YAILOM (yet another
15498 int/Lisp_Object mixup).
15499
affa509c
EZ
155002004-05-01 Eli Zaretskii <eliz@gnu.org>
15501
15502 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
15503 undo bad effect of pack(4) in some versions of system headers.
15504
07c07cfe
JR
155052004-05-01 Jason Rumney <jasonr@gnu.org>
15506
15507 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
15508
e71caa4e
KS
155092004-04-30 Kim F. Storm <storm@cua.dk>
15510
15511 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 15512 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
15513
15514 * dispextern.h (struct it): Remove member use_default_face.
15515 Add members override_ascent, override_descent, override_boff.
15516
15517 * xdisp.c (init_iterator): Handle line-spacing float value.
15518 Initialize override_ascent member.
15519 (append_space_for_newline): Reset override_ascent.
15520 Remove use_default_face.
15521 (calc_line_height_property): New function to calculate value of
15522 line-height and line-spacing properties. Look at overlays, too.
15523 Set override_ascent, override_descent, override_boff members when
15524 using another face than the current face. Float values are now
15525 relative to the frame default font, by default; accept a cons
15526 of ratio and face name to specify value relative to a specific face.
15527 (x_produce_glyphs): Use calc_line_height_property.
15528 Use override_ascent etc. when set to handle different face heights.
15529 A negative line-spacing property value is interpreted as a total
15530 line height, rather than inter-line spacing.
15531 (note_mouse_highlight): Allocate room for 40 overlays initially.
15532
0fddae66
SM
155332004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
15534
15535 * data.c (Fsubr_name): New fun.
15536 (syms_of_data): Defsubr it.
15537
712d23dc
KS
155382004-04-29 Kim F. Storm <storm@cua.dk>
15539
15540 * xdisp.c (null_glyph_slice): New var.
15541 (append_glyph, append_composite_glyph, append_stretch_glyph):
15542 Use it to initialize glyph slice.
15543
033ad8c6
SM
155442004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
15545
15546 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
15547 (on_hot_spot_p): Make sure we always return a value.
15548 (Flookup_image_map): Remove unused var ix and iy.
15549 (note_mode_line_or_margin_highlight): Remove unused var `image'.
15550
93397360
EZ
155512004-04-27 Eli Zaretskii <eliz@gnu.org>
15552
15553 * msdos.c (init_environment): If one of the TMP... environment
15554 variables is set to a drive letter without a trailing slash,
15555 append a slash.
15556
0c54865e
EZ
155572004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
15558
15559 * editfns.c (lisp_time_argument): Provide externally.
15560
15561 * fileio.c (Fset_file_times): New function.
15562 (syms_of_fileio): Intern and staticpro it.
15563
d3b111bd
KS
155642004-04-27 Kim F. Storm <storm@cua.dk>
15565
07dc1231
KS
15566 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
15567 header line strings.
15568
360fe9d2
KS
15569 * dispextern.h (struct it): New member use_default_face.
15570
d3b111bd
KS
15571 * xdisp.c (Qline_height): New variable.
15572 (syms_of_xdisp): Intern and staticpro it.
15573 (append_space_for_newline): Partially undo 2004-04-25 change;
15574 add default_face_p arg, and restore callers.
15575 Clear it->use_default_face after use.
15576 (x_produce_glyphs): Set default font for ascii char if
15577 it->use_default_font is set. Change line-spacing property to set
15578 just extra line spacing. Handle new line-height property.
15579
0448588b
AS
155802004-04-26 Andreas Schwab <schwab@suse.de>
15581
15582 * print.c (print_object): Print non-ascii characters in bool
15583 vector representation as octal escapes.
15584
15585 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
15586 * print.c (print_object): Use it instead of BITS_PER_CHAR for
15587 bool vectors.
15588 * lread.c (read1): Likewise.
15589 * alloc.c (Fmake_bool_vector): Likewise.
15590 * data.c (Faref, Faset): Likewise.
15591 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
15592 (mapcar1): Likewise.
d3b111bd 15593
536d6baa
ST
155942004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
15595
7e26f91b 15596 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 15597
ae11577a
MB
155982004-04-26 Miles Bader <miles@gnu.org>
15599
15600 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
15601
e198ba87
JB
156022004-04-26 Juanma Barranquero <lektu@terra.es>
15603
15604 * buffer.c (Fpop_to_buffer): Fix docstring.
15605
f3d5f92d 156062004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 15607
f3d5f92d
ST
15608 * lread.c (init_lread): Don't display missing lisp directory
15609 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 15610 may be built without correct installation path.
f3d5f92d 15611
03e35edc
KS
156122004-04-25 Kim F. Storm <storm@cua.dk>
15613
9ff3aa31
KS
15614 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
15615
15616 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
15617
03e35edc
KS
15618 * xdisp.c (append_space_for_newline): Rename from append_space.
15619 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
15620 (x_produce_glyphs): Handle line-spacing property on newline char.
15621 If value is t, adjust ascent and descent to fit current row height.
15622 If value is an integer or float, set extra_line_spacing to integer
15623 value, or to float value x current line height.
15624
f24814e0
KH
156252004-04-23 Kenichi Handa <handa@m17n.org>
15626
15627 * fontset.c (Finternal_char_font): If POSITION is nil, return
15628 font for displaying CH with the default face.
15629
d814862a
JB
156302004-04-23 Juanma Barranquero <lektu@terra.es>
15631
15632 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
15633
063a45c5
SM
156342004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15635
15636 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
15637 Don't make assumptions about the relative place of i and val.
15638 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
15639
ae7ab2d3
KS
156402004-04-21 Kim F. Storm <storm@cua.dk>
15641
15642 * dispextern.h (struct glyph_slice): New struct.
15643 (struct glyph): New member slice.
15644 (GLYPH_SLICE_EQUAL_P): New macro.
15645 (GLYPH_EQUAL_P): Use it.
15646 (struct glyph_string): New member slice.
15647 (struct it_slice): New struct.
15648 (struct it): New member slice, add member to stack too.
15649 New member constrain_row_ascent_descent_p.
15650 (image_ascent): Add prototype.
15651
15652 * dispnew.c (buffer_posn_from_coords): Return full image width
15653 and height even for image slices (posn is relative to full image).
15654 (marginal_area_string): Adjust x0,y0 for image slice.
15655
15656 * image.c (image_ascent): Add slice arg; calculate ascent for
15657 image slice (or full image).
15658
15659 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
15660 (syms_of_keyboard): Defsubr them.
15661
15662 * lisp.h (pos_visible_p): Fix prototype.
15663
c62aec78 15664 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
15665 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
15666 (x_draw_image_foreground, x_draw_image_relief)
15667 (x_draw_image_foreground_1, x_draw_image_glyph_string):
15668 Draw sliced images.
15669
15670 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
15671 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
15672 (x_draw_image_foreground, x_draw_image_relief)
15673 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
15674 Draw sliced images.
15675
15676 * w32term.h (image_ascent): Remove prototype.
15677
15678 * window.c (Fpos_visible_in_window_p): Return pixel position if
15679 PARTIALLY arg is non-nil. Simplify. Doc fix.
15680 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
15681 to return/set vscroll in pixels.
15682
15683 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
15684
15685 * xdisp.c (Qslice): New variable.
15686 (syms_of_xdisp): Intern and staticpro it.
15687 (pos_visible_p): Return pixel position in new x and y args.
15688 (init_iterator): Reset it->slice info.
15689 (handle_display_prop): Parse (slice ...) property.
15690 (push_it, pop_it): Save/restore slice info.
15691 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
15692 force repositioning of tall row if window is vscrolled, as that
15693 would reset vscroll.
15694 (append_space): Set it->constrain_row_ascent_descent_p to avoid
15695 increasing row height if row is non-empty.
15696 (fill_image_glyph_string): Copy slice info.
15697 (take_vertical_position_into_account): Simplify.
15698 (produce_image_glyph): Handle iterator slice info, setup glyph
15699 slice info. Do not force minimum line height.
15700 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
15701 do not increase height (ascent/descent) of non-empty row when
15702 adding normal character glyph; instead reduce glyph ascent/descent
15703 appropriately; if row is higher than current glyph, adjust glyph
15704 descent/ascent to reposition glyph within the existing row.
15705 Likewise, when char is newline, only set ascent/descent if row is
15706 currently empty.
15707 (note_mouse_highlight): Handle hotspots with sliced image.
15708
15709 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
15710 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
15711 (x_draw_image_foreground, x_draw_image_relief)
15712 (x_draw_image_foreground_1, x_draw_image_glyph_string):
15713 Draw sliced images.
15714
15715 * xterm.h (image_ascent): Remove prototype.
15716
d58f8753
SM
157172004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
15718
15719 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
15720
4ce2719d
JPW
157212004-04-20 John Paul Wallington <jpw@gnu.org>
15722
15723 * fns.c (Fassoc, Feql): Fix indentation.
15724
d58f8753 15725 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 15726
95f8c3b9
JPW
157272004-04-19 John Paul Wallington <jpw@gnu.org>
15728
15729 * fns.c (Feql): New function.
d58f8753 15730 (syms_of_fns): Defsubr it.
95f8c3b9 15731
b7e85537
JR
157322004-04-18 Jason Rumney <jasonr@gnu.org>
15733
15734 * w32select.c (Fw32_set_clipboard_data): Get sequence number
15735 after closing the clipboard.
15736
5a72efd4
LT
157372004-04-16 Luc Teirlinck <teirllm@auburn.edu>
15738
15739 * buffer.c (Fbuffer_base_buffer): Doc fix.
15740
20dc8583
KS
157412004-04-17 Kim F. Storm <storm@cua.dk>
15742
60962ec4
KS
15743 * keymap.c (Fkey_description): Add optional PREFIX arg.
15744 Combine prefix with KEYS to make up the full key sequence to describe.
15745 Correlate meta_prefix_char and following (simple) key to describe
15746 as meta modifier. All callers changed.
15747 (describe_map): Rename arg `keys' to `prefix'. Remove local
15748 `elt_prefix' var. Use Fkey_description with prefix instead of
15749 elt_prefix combined with Fsingle_key_description.
15750 (describe_vector): Declare static. Replace arg `elt_prefix' with
15751 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 15752 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
15753 Fsingle_key_description.
15754
15755 * keymap.h (Fkey_description): Fix prototype.
15756 (describe_vector): Remove prototype.
15757
409368b9
KS
15758 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
15759
20dc8583
KS
15760 * image.c (PNG_BG_COLOR_SHIFT): Remove.
15761 (png_load): Fix calculation of transparent background color on X
15762 and W32 platforms.
15763
75c5501b
JB
157642004-04-16 Juanma Barranquero <lektu@terra.es>
15765
15766 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
15767 not too large before computing how much to scroll.
15768
da879ae8
SM
157692004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
15770
15771 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
15772
d01ca4a8
LT
157732004-04-14 Luc Teirlinck <teirllm@auburn.edu>
15774
15775 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
15776 Add hyperlink to Elisp manual to the docstring.
15777
572943b3
SM
157782004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
15779
15780 * callint.c (fix_command): Use XDCR.
15781
5e30a0fb
NR
157822004-04-14 Nick Roberts <nick@nick.uklinux.net>
15783
15784 * window.c (Fget_lru_window): Doc fix.
15785
a27ddfaf
KS
157862004-04-14 Kim F. Storm <storm@cua.dk>
15787
15788 * editfns.c (Fformat): Fix allocation size of precision array.
15789
15790 * dispnew.c (update_window): Only set changed_p if
15791 scrolling_window actually did scroll.
15792 (scrolling_window): Only return 1 if we actually did scroll.
15793
15794 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
15795 height to glyph height when cursor row is not fully visible.
15796 (make_cursor_line_fully_visible): Add FORCE_P arg to return
15797 failure in case row is higher than window. Callers changed.
15798 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
15799 Try to scroll partially visible, higher-than-window cursor row.
15800 (redisplay_window): Always try to scroll partially visible,
15801 higher-than-window cursor row - both initially and again with
15802 centering_position = 0.
15803 Clear desired matrix before retrying with centering_position = 0.
15804
da879ae8
SM
158052004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
15806
15807 * syntax.c (scan_lists): Simplify backward string scan.
15808 Fix off-by-one boundary check for string and comment fences.
15809
5fc16e8e
SM
158102004-04-13 Joe Buehler <jbuehler@hekimian.com>
15811
15812 * sheap.c, unexcw.c: New files.
15813
c9aac8e6
LT
158142004-04-12 Luc Teirlinck <teirllm@auburn.edu>
15815
15816 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
15817 base buffer has been killed. Correct the error message if the
15818 base buffer does not exist.
15819
1e88a355
SM
158202004-04-12 Joe Buehler <jbuehler@hekimian.com>
15821
15822 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
15823 Cygwin itself. Add support for Xaw3d scrollbars.
15824
15825 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
15826
15827 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
15828
15829 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
15830 before Cygwin unexec.
15831
15832 * Makefile.in: Link changes for Cygwin unexec() support.
15833
8dbff9a0
AS
158342004-04-12 Andreas Schwab <schwab@suse.de>
15835
15836 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
15837
54dffe35
LT
158382004-04-11 Luc Teirlinck <teirllm@auburn.edu>
15839
15840 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
15841 IGNORE argument equals NAME. Doc fix.
15842
99a72bdf
MY
158432004-04-11 Masatake YAMATO <jet@gyve.org>
15844
1e88a355 15845 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
15846 empty if they are backwards.
15847
40899d7b
SM
158482004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15849
15850 * xfaces.c (face_color_supported_p): Fix compilation without X11.
15851
f8f853de
SM
158522004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
15853
15854 * doc.c (Fsnarf_documentation): Ignore new file name entries.
15855
c953fe1b
KS
158562004-04-06 Kim F. Storm <storm@cua.dk>
15857
5e1a6e32 15858 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
661e85c1
KS
15859 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
15860
15861 * w32term.c (w32_read_socket): Set mouse_face_hidden after
15862 clearing highlight.
15863
15864 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
15865
15866 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
15867 clearing highlight.
15868
c953fe1b
KS
15869 * indent.c (vmotion): Do not reserve one column for continuation
15870 marks on window frames.
15871
c1994268
EZ
158722004-04-04 Eli Zaretskii <eliz@gnu.org>
15873
15874 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
15875 from GCC.
15876
9f691b0d
SM
158772004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15878
15879 * .gdbinit-union: Remove.
15880
15881 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
15882 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
15883 ($nonvalbits): Remove.
15884 ($valmask): Set it by calling xreload to avoid redundancy.
15885
15886 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
15887 (gdb_emacs_intbits): Remove.
15888
7a8560d7
JD
158892004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15890
9f691b0d 15891 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 15892
3c8111fc
KH
158932004-03-30 Kenichi Handa <handa@m17n.org>
15894
15895 * editfns.c (Fformat): Fix initialization of the array info.
15896
48a0bce4
KS
158972004-03-30 Kim F. Storm <storm@cua.dk>
15898
15899 * xterm.c (x_mouse_click_focus_ignore_position): New var.
15900 (syms_of_xterm): DEFVAR_BOOL it.
15901 (ignore_next_mouse_click_timeout): New var.
15902 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
15903 Use it to filter mouse clicks following focus event.
15904
1cd0066c
KS
159052004-03-29 David Ponce <david@dponce.com>
15906
15907 * callint.c (Fcall_interactively): Fix last change.
15908
adb3b353
SM
159092004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
15910
15911 * eval.c (Fcommandp): Simplify.
15912
15913 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
15914 Extend to handle all kinds of functions.
15915
15916 * lisp.h (Finteractive_form): Declare.
15917
15918 * callint.c (Fcall_interactively): Use it.
15919
6fc4c9c9
KS
159202004-03-26 Kim F. Storm <storm@cua.dk>
15921
15922 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
15923 to catch errors in calc_pixel_width_or_height during redisplay.
15924
abdb9b83
MY
159252004-03-26 Masatake YAMATO <jet@gyve.org>
15926
b17856dd 15927 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 15928
b17856dd 15929 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 15930
b17856dd 15931 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 15932
b17856dd 15933 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 15934
e8a84b6c
JD
159352004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15936
b17856dd 15937 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 15938
36a3fd05
RS
159392004-03-19 Richard M. Stallman <rms@gnu.org>
15940
15941 * s/sol2-6.h: Delete previous change.
15942
ab24c127
KS
159432004-03-19 Kim F. Storm <storm@cua.dk>
15944
15945 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
15946 to_charpos corresponds to newline in right fringe. Use local
15947 BUFFER_POS_REACHED_P macro.
15948
992126de
JD
159492004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15950
15951 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
15952 to compile on non-window system.
15953
45dbfc84
KS
159542004-03-19 Kim F. Storm <storm@cua.dk>
15955
15956 * dispextern.h (calc_pixel_width_or_height): Add prototype.
15957
15958 * image.c (Qcenter): Move to xdisp.c.
15959
15960 * xdisp.c (Qcenter): Declare here.
adb3b353 15961 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
15962 (handle_single_display_prop): Allow space display property on all
15963 platforms.
15964 (display_mode_line): Set mode_line_p before displaying line.
15965 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
15966 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 15967 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
15968 width/height. Return width or height for image specs.
15969 (produce_stretch_glyph): Improve handling of :align-to. Is now
15970 relative to left of text area by default, but other base offsets
15971 can be specified -- also for text lines.
15972
15973 * term.c (produce_glyphs): Handle IT_STRETCH.
15974 (produce_stretch_glyph): New function to handle space width and
15975 align-to display properties on non-window systems.
15976
37264101
SM
159772004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15978
15979 * fileio.c (Fread_file_name): Set completion-ignore-case for
15980 case-insensitive systems.
15981
73bc43da
MY
159822004-03-14 Masatake YAMATO <jet@gyve.org>
15983
15984 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
15985 when keymap and cursor are setup.
15986
d5fb8dab 159872004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 15988
b17856dd 15989 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 15990
e4b1b5ab
KS
159912004-03-14 Kim F. Storm <storm@cua.dk>
15992
15993 * dispextern.h (x_find_image_file): Add prototype.
15994
15995 * image.c (x_find_image_file): Make extern.
15996
15997 * xfns.c (x_find_image_file): Remove prototype.
15998
a6eeaa81 159992004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 16000
37264101 16001 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 16002
37264101 16003 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 16004
e69cfac2
RS
160052004-03-12 Richard M. Stallman <rms@gnu.org>
16006
16007 * fns.c (internal_equal): New arg PROPS controls comparing
16008 text properties. All callers changed.
16009 (Fequal_including_properties): New function.
16010 (syms_of_fns): defsubr it.
16011
45034953
KS
160122004-03-12 Kim F. Storm <storm@cua.dk>
16013
16014 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 16015
45034953
KS
16016 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
16017 (image_background, image_background_transparent): Fix prototypes.
16018
37264101 16019 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
16020
16021 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
16022 (x_query_font, x_find_ccl_program, x_set_window_size)
16023 (x_make_frame_visible, mac_initialize, XCreatePixmap)
16024 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16025 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
16026
16027 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
16028 (x_query_font, x_find_ccl_program, x_set_window_size)
16029 (x_make_frame_visible, mac_initialize, XCreatePixmap)
16030 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
16031 (mac_draw_line_to_pixmap): Add prototypes.
16032
160332004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16034
16035 * macterm.c (XTread_socket): Fix mouse click on tool bar.
16036
a12d3d87
KS
160372004-03-11 Kim F. Storm <storm@cua.dk>
16038
d3ab1cf1
KS
16039 * dispextern.h: Move image related prototypes from xfns.c section
16040 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
16041 HAVE_X_WINDOWS.
37264101 16042
37de9f51 16043 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 16044 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
16045 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
16046 (GTK_OBJ) [USE_GTK]: New declaration.
16047 (obj): Add $(GTK_OBJ) to list.
16048
d5fb8dab 160492004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 16050
7e26f91b 16051 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
16052
16053 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 16054 defined in image.c.
5243c06a 16055
c0f97789
KS
160562004-03-11 Kim F. Storm <storm@cua.dk>
16057
16058 The following changes consolidates the identical/similar image
16059 support code previously found in xfns.c, w32fns.c, and macfns.c
16060 into a new file image.c.
16061
16062 * makefile.w32-in (OBJ1): Add image.o.
16063 ($(BLD)/image.$(O)): Add dependencies.
16064
16065 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
16066 (image.o): Add dependencies.
37264101 16067
c0f97789
KS
16068 * image.c: New file with consolidated image support code.
16069 (COLOR_TABLE_SUPPORT): New define to control whether
16070 color table support is available (X only).
16071 (Bitmap_Record): Common name for x_bitmap_record,
16072 w32_bitmap_record, and mac_bitmap_record.
16073 (XImagePtr): Common name for pointer to XImage or equivalent.
16074 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
16075 to XImagePtr on X+MAC, and to HDC on W32.
16076 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
16077 (NO_PIXMAP): Common name for "None" or equivalent.
16078 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
16079 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
16080 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
16081 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
16082 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
16083 (XDrawLine): Define on MAC for code sharing.
16084 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
16085 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
16086 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16087 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16088 (x_reference_bitmap, x_create_bitmap_from_data)
16089 (x_create_bitmap_from_file, x_destroy_bitmap)
16090 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16091 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16092 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16093 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16094 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16095 (define_image_type, lookup_image_type, valid_image_p)
16096 (image_error, enum image_value_type, struct image_keyword)
16097 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16098 (make_image, free_image, prepare_image_for_display, image_ascent)
16099 (four_corners_best, image_background, image_background_transparent)
9dd28cae 16100 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
16101 (make_image_cache, free_image_cache, clear_image_cache)
16102 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16103 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16104 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16105 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
16106 (init_image_func_pointer, image_load_quartz2d)
16107 (struct ct_color, init_color_table, free_color_table)
16108 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16109 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16110 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16111 (x_disable_image, x_build_heuristic_mask)
16112 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16113 (TIFF support, GIF support, Ghostscript support): Consolidate image
16114 code from xfns.c, w32fns.c, and macfns.c.
16115 (syms_of_image): Consolidate image related symbol setup here.
16116 (init_image): Consolidate image related initializations here.
37264101 16117
c0f97789
KS
16118 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
16119 and init_image. Remove call to init_xfns.
16120
37264101
SM
16121 * macterm.h (struct mac_bitmap_record): Add file member.
16122 Not currently used, but simplifies code sharing.
c0f97789
KS
16123
16124 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16125 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16126 (x_reference_bitmap, x_create_bitmap_from_data)
16127 (x_create_bitmap_from_file, x_destroy_bitmap)
16128 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16129 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16130 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16131 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16132 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16133 (define_image_type, lookup_image_type, valid_image_p)
16134 (image_error, enum image_value_type, struct image_keyword)
16135 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16136 (make_image, free_image, prepare_image_for_display, image_ascent)
16137 (four_corners_best, image_background, image_background_transparent)
9dd28cae 16138 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
16139 (make_image_cache, free_image_cache, clear_image_cache)
16140 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16141 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16142 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16143 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
16144 (init_image_func_pointer, image_load_quartz2d)
16145 (struct ct_color, init_color_table, free_color_table)
16146 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16147 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16148 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16149 (x_disable_image, x_build_heuristic_mask)
16150 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16151 (TIFF support, GIF support, Ghostscript support): Merge with image
16152 code from xfns.c and macfns.c into image.c.
16153 (syms_of_xfns): Move image related symbols to image.c.
16154 (init_external_image_libraries, init_xfns): Remove; initialization
16155 moved to init_image in image.c.
16156
16157 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16158 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16159 (x_reference_bitmap, x_create_bitmap_from_data)
16160 (x_create_bitmap_from_file, x_destroy_bitmap)
16161 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16162 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16163 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16164 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16165 (define_image_type, lookup_image_type, valid_image_p)
16166 (image_error, enum image_value_type, struct image_keyword)
16167 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16168 (make_image, free_image, prepare_image_for_display, image_ascent)
16169 (four_corners_best, image_background, image_background_transparent)
9dd28cae 16170 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
16171 (make_image_cache, free_image_cache, clear_image_cache)
16172 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16173 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16174 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16175 (struct ct_color, init_color_table, free_color_table)
16176 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16177 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16178 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16179 (x_disable_image, x_build_heuristic_mask)
16180 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16181 (TIFF support, GIF support, Ghostscript support): Merge with image
16182 code from xfns.c and macfns.c into image.c.
16183 (syms_of_xfns): Move image related symbols to image.c.
16184 (init_external_image_libraries, init_xfns): Remove; initialization
16185 moved to init_image in image.c.
16186
16187 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16188 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16189 (x_reference_bitmap, x_create_bitmap_from_data)
16190 (x_create_bitmap_from_file, x_destroy_bitmap)
16191 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16192 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16193 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16194 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16195 (define_image_type, lookup_image_type, valid_image_p)
16196 (image_error, enum image_value_type, struct image_keyword)
16197 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16198 (make_image, free_image, prepare_image_for_display, image_ascent)
16199 (four_corners_best, image_background, image_background_transparent)
9dd28cae 16200 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
16201 (make_image_cache, free_image_cache, clear_image_cache)
16202 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16203 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16204 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16205 (struct ct_color, init_color_table, free_color_table)
16206 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16207 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16208 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16209 (x_disable_image, x_build_heuristic_mask)
16210 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16211 (TIFF support, GIF support, Ghostscript support): Merge with
16212 w32fns.c and macfns.c image code into image.c.
16213 (syms_of_xfns): Move image related symbols to image.c.
16214 (init_xfns): Remove; initialization moved to init_image in image.c.
16215
16216 * lisp.h (syms_of_image, init_image): Add protoypes.
16217 (init_xfns): Remove prototype.
16218
16219 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16220 (x_reference_bitmap, x_create_bitmap_from_data)
16221 (x_create_bitmap_from_file, x_destroy_bitmap)
16222 (x_create_bitmap_mask): Move prototypes from dispextern.h.
16223 (gamma_correct) [MAC_OS]: Add prototype.
16224
16225 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16226 (x_reference_bitmap, x_create_bitmap_from_data)
16227 (x_create_bitmap_from_file, x_destroy_bitmap)
16228 (x_create_bitmap_mask): Move prototypes to dispextern.h.
16229
6eced09c
KH
162302004-03-09 Kenichi Handa <handa@etlken2>
16231
16232 * coding.c (decode_coding_emacs_mule): Handle insufficent source
16233 correctly.
16234
9a7e95f3
RS
162352004-03-04 Richard M. Stallman <rms@gnu.org>
16236
04a6e76b
RS
16237 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
16238
9a7e95f3
RS
16239 * window.c (Fdisplay_buffer): Doc fix.
16240
16241 * buffer.c (Fpop_to_buffer): Doc fix.
16242
6c2488df
KS
162432004-03-03 Kim F. Storm <storm@cua.dk>
16244
16245 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
16246
d8d95bc7
SM
162472004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
16248
16249 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
16250
357589bf
RS
162512004-03-02 Richard M. Stallman <rms@gnu.org>
16252
16253 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
16254
409949b5
KH
162552004-03-02 Kenichi Handa <handa@m17n.org>
16256
16257 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
16258
d24bc50f
KS
162592004-03-02 Kim F. Storm <storm@cua.dk>
16260
16261 * window.h (struct window): New member overlay_arrow_bitmap.
16262
16263 * window.c (make_window): Initialize overlay_arrow_bitmap.
16264
16265 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
16266 implement and integrate multiple overlay arrows with redisplay.
16267 (syms_of_xdisp): DEFVAR_LISP and initialize it.
16268 (last_arrow_position, last_arrow_string): Replace by properties.
16269 (Qlast_arrow_position, Qlast_arrow_string)
16270 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
16271 (syms_of_xdisp): Intern and staticpro them.
16272 (overlay_arrow_string_or_property, update_overlay_arrows)
16273 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
16274 (overlay_arrow_at_row): New functions for multiple overlay arrows.
16275 (redisplay_internal): Use them instead of directly accessing
16276 Voverlay_arrow_position etc. for multiple overlay arrows.
16277 (mark_window_display_accurate): Use update_overlay_arrows.
16278 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
16279 (try_window_id): Use overlay_arrows_changed_p.
16280 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
16281 (display_line): Use overlay_arrow_at_row to check multiple
16282 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 16283 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
16284 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
16285 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
16286
16287 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
16288 (update_window_fringes): Remove unused code.
16289
c1464661
JR
162902004-03-01 Jason Rumney <jasonr@gnu.org>
16291
16292 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
16293
a64387ee
JB
162942004-03-01 Juanma Barranquero <lektu@terra.es>
16295
16296 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
16297
16298 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
16299
334faa08
JD
163002004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16301
16302 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
16303 how many colors can be displayed.
16304
bb62616f
KH
163052004-03-01 Kenichi Handa <handa@m17n.org>
16306
16307 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
16308 correctly.
16309
0fd16104
KS
163102004-02-28 Kim F. Storm <storm@cua.dk>
16311
16312 * dispnew.c (update_window): Update header line also if there are
16313 no other changes in window (move code after set_cursor label).
16314
16315 * lisp.h (mark_window_display_accurate): Remove prototype.
16316
16317 * window.c (window_loop, Fforce_window_update): Force mode line
16318 updates by setting prevent_redisplay_optimizations_p and
16319 update_mode_lines.
16320
b59dd9c8
JD
163212004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16322
d8d95bc7 16323 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
16324
16325 * xterm.c (x_calc_absolute_position): Call x_real_positions
16326 to get WM window sizes and use those to calculate position.
d8d95bc7 16327 (x_set_offset): Remove code commented out.
b59dd9c8 16328
a874691c
MB
163292004-02-28 Miles Bader <miles@gnu.org>
16330
16331 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
16332
3e0c6482
KS
163332004-02-28 Kim F. Storm <storm@cua.dk>
16334
16335 * keyboard.c (kbd_buffer_store_event_hold): New function to store
16336 an event into kbd fifo, but with special handling of quit event;
16337 a quit event is saved for later, and further events are discarded
16338 until the saved quit event has been processed.
16339 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
16340 (gen_help_event): Store help event in kbd fifo.
16341 (NREAD_INPUT_EVENTS): Remove.
16342 (read_avail_input): Adapt to new read_socket_hook interface.
16343 Remove allocation and initialization of local input_event buffer,
16344 as read_socket_hook stores events directly in fifo. Allocate and
16345 initialize local hold_quit event to handle postponed quit event
16346 (and store it if set by kbd_buffer_store_event_hold).
16347
16348 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
16349 (gen_help_event): Fix prototype.
16350
a64387ee 16351 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 16352 numcharsp args. Add hold_quit arg.
f63fd14e 16353 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
16354 directly in fifo using kbd_buffer_store_event_hold.
16355
16356 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
16357 (read_input_waiting): Adapt to new read_socket_hook interface.
16358 Remove allocation and initialization of local input_event buffer,
16359 as read_socket_hook stores events directly in fifo. Allocate and
16360 initialize local hold_quit event to handle postponed quit event
16361 (and store it if set by kbd_buffer_store_event_hold).
16362
a64387ee 16363 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
16364
16365 * termhooks.h (read_socket_hook): Fix prototype.
16366
16367 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
16368 numcharsp args. Add hold_quit arg.
f63fd14e 16369 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
16370 directly in fifo using kbd_buffer_store_event_hold.
16371
16372 * w32inevt.h (w32_console_mouse_position): Fix prototype.
16373
16374 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
16375 Add hold_quit arg. Rework to use just one, local, inev
16376 input_event. Store inev directly in fifo using
3e0c6482
KS
16377 kbd_buffer_store_event_hold. Update count in one place.
16378 Postpone call to gen_help_event until inev is stored; use new
16379 local do_help for this.
16380 Remove local emacs_event in handing of ButtonPress event; just use
16381 inev instead (so no reason to copy it later).
16382
16383 * xsmfns.c (x_session_check_input): Remove numchars arg.
16384
d8d95bc7
SM
16385 * xterm.c (x_focus_changed, x_detect_focus_change):
16386 Remove numchars arg. Always store event into bufp arg.
16387 Return nothing. Callers changed accordingly.
3e0c6482
KS
16388 (glyph_rect): Simplify.
16389 (STORE_KEYSYM_FOR_DEBUG): New macro.
16390 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
16391 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
16392 (current_hold_quit) [USE_GTK]: Add.
16393 (event_handler_gdk): Adapt to new handle_one_xevent.
16394 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
16395 Add hold_quit arg. Rework to use just one, local, inev
16396 input_event. Store inev directly in fifo using
3e0c6482
KS
16397 kbd_buffer_store_event_hold. Update count in one place.
16398 Postpone call to gen_help_event until inev is stored; use new
16399 local do_help for this.
16400 Simplify handling of keysyms (consolidate common code). Fix bug
16401 where count was updated with nchars instead of nbytes.
16402 Remove local emacs_event in handing of ButtonPress event; just use
16403 inev instead (so no reason to copy it later).
16404 Remove `out' label. Rename label `ret' to `done'; add various
16405 `goto done' to clarify code flow in deeply nested blocks.
16406 (x_dispatch_event): Simplify as handle_one_xevent now calls
16407 kbd_buffer_store_event itself.
f63fd14e 16408 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
16409 arg. Call handle_one_xevent with new arglist. Store event from
16410 x_session_check_input in fifo.
16411 [USE_GTK]: Setup current_hold_quit.
16412 Decrement handling_signal before unblocking input.
16413 (x_initialize) [USE_GTK]: Initialize current_count.
16414
16415 * xterm.h (x_session_check_input): Fix prototype.
16416
e3564461 164172004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 16418
d8d95bc7 16419 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 16420
e3564461
ST
16421 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
16422 macgui.h).
a64387ee 16423
e3564461 16424 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 16425
e3564461
ST
16426 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
16427 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
251db0f4 16428 (init_process) [MAC_OSX]: Avoid conflicts with Carbon/Carbon.h.
e3564461
ST
16429 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
16430 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
16431 (Bitmap): Remove typedef.
16432 (Pixmap): Change int to GWorldPtr.
16433
d8d95bc7 16434 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 16435
d8d95bc7
SM
16436 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
16437 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
16438 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
16439 long representation.
16440 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
16441 colors used for masks.
16442 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 16443
e3564461
ST
16444 * macfns.c: Include sys/types.h and sys/stat.h.
16445 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
16446 Include QuickTime/QuickTime.h.
16447 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16448 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
16449 functions defined in macterm.c.
16450 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
16451 (ZPixmap): New #define for compatibility with xfns.c.
16452 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16453 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
16454 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
16455 New functions.
e3564461 16456 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
16457 (x_destroy_x_image, unwind_create_frame, x_disable_image)
16458 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
16459 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
16460 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
16461 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
16462 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
16463 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
16464 long mixup.
16465 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
16466 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
16467 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
16468 (x_set_cursor_type, Fxw_color_values, valid_image_p)
16469 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
16470 (x_alloc_image_color, clear_image_cache, lookup_image)
16471 (x_find_image_file, xbm_read_bitmap_file_data)
16472 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
16473 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
16474 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
16475 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
16476 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 16477 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
16478 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
16479 #if 0.
16480 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
16481 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
16482 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
16483 New functions (from xfns.c).
e3564461
ST
16484 (Fx_create_frame): Record unwind_create_frame.
16485 (Fxw_display_color_p): Use dpyinfo->color_p.
16486 (Fx_display_grayscale_p, Fx_display_planes): Don't use
16487 dpyinfo->n_cbits.
16488 (Fx_display_color_cells): Use dpyinfo->n_planes;
16489 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
16490 (Qheuristic, cross_disabled_images, emboss_matrix)
16491 (laplace_matrix): New variables (from xfns.c).
16492 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
16493 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
16494 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
16495 (image_background_transparent): New function (from xfns.c).
16496 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
16497 (image_load_quicktime): Add declaration.
16498 [MAC_OSX] (image_load_quartz2d): Likewise.
16499 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
16500 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 16501 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
16502 (xbm_load_image_from_file, x_laplace_read_row)
16503 (x_laplace_write_row, pbm_read_file): Remove functions.
16504 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
16505 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
16506 (colors_in_color_table): Sync with xfns.c (although not used).
16507 (lookup_rgb_color): Don't lookup color table. Just do gamma
16508 correction.
16509 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
16510 (x_disable_image): New function (from xfns.c).
16511 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
16512 (x_build_heuristic_mask): Sync with xfns.c.
16513 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
16514 (HAVE_PBM): Remove #ifdef.
16515 (pbm_load): Sync with xfns.c. Set img->width and img->height
16516 before IMAGE_BACKGROUND.
d8d95bc7 16517 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
16518 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
16519 Don't enclose with #if HAVE_PNG.
16520 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
16521 symbol _CGImageCreateWithPNGDataProvider is defined.
16522 Otherwise use image_load_quicktime.
e3564461 16523 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
16524 [HAVE_PNG] (png_load): Sync with xfns.c.
16525 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
16526 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
16527 HAVE_JPEG.
16528 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
16529 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
16530 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
16531 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
16532 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
16533 (tiff_image_p, tiff_load): Don't enclose declarations with #if
16534 HAVE_TIFF.
16535 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
16536 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
16537 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
16538 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
16539 New functions (from xfns.c).
e3564461 16540 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 16541 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
16542 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
16543 Don't enclose with #if HAVE_GIF.
16544 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
16545 animated gif. Otherwise use image_load_quicktime.
16546 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
16547 gif_DrawText to avoid conflict with QuickdrawText.h.
16548 [HAVE_GIF] (gif_load): Sync with xfns.c.
16549 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
16550 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
16551 Ghostscript is not supported yet).
16552 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
16553 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
16554 cross_disabled_images (from xfns.c). Remove #if 0 for supported
16555 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
16556 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
16557 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
16558 HAVE_PNG. Call EnterMovies to support animated gifs.
16559 Call init_image_func_pointer to bind a symbol
e3564461 16560 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 16561
d8d95bc7 16562 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
16563 (x_draw_bar_cursor): Sync declaration with xterm.c.
16564 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
16565 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
16566 graphics).
16567 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
16568 (mac_draw_line_to_pixmap, XCreatePixmap)
16569 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
16570 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
16571 New functions.
16572 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
16573 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
16574 Cast bits to char *.
e3564461
ST
16575 (reflect_byte): New function (from w32fns.c).
16576 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
16577 due to byte alignment.
d8d95bc7
SM
16578 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
16579 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
16580 (XSetForeground): Remove static (now used in macfns.c).
16581 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
16582 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
16583 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
16584 (x_draw_glyph_string_box, x_draw_image_foreground)
16585 (x_draw_image_foreground_1, x_draw_image_glyph_string)
16586 (x_draw_stretch_glyph_string, x_draw_glyph_string)
16587 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
16588 Sync with xterm.c.
16589 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
16590 than the xterm.c version when a strictly horizontal or vertical
16591 line is drawn.
16592 (XTset_terminal_window): Add static.
16593 (x_make_frame_visible): Add UNBLOCK_INPUT.
16594 (x_free_frame_resources): New funcion (from xterm.c).
16595 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
16596 occurs in tool bar area.
d8d95bc7
SM
16597 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
16598 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
16599 Initialize image cache.
16600 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
16601 Enclose unused functions with #if 0.
16602 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
16603 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 16604 from a mac font name to an XLFD font name according to its script code.
e3564461 16605 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 16606 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
16607 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
16608 whose name starts with `.'.
16609 (init_font_name_table): Use decode_mac_font_name. Add both
16610 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
16611 of a font is smJapanese.
16612 (mac_do_list_fonts): New function to list fonts that match a given
16613 pattern.
16614 (x_list_fonts, XLoadQueryFont): Use it.
16615 (XLoadQueryFont): Set rbearing field for each variable width
16616 character to avoid needless redraw.
16617 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
16618
446f5f3d
KS
166192004-02-26 Kim F. Storm <storm@cua.dk>
16620
af617d0f
KS
16621 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
16622 as read_socket_hook handler on X aborts if buffer is too small
16623 and W32 handler doesn't always check buffer limit.
16624
446f5f3d
KS
16625 * xdisp.c (handle_single_display_prop): Handle left-fringe and
16626 right-fringe similar to a display margin image. Specifically,
16627 the characters having the fringe prop are no longer shown, and
16628 we use IT_IMAGE/next_element_from_image with image_id = -1 to
16629 do this. Set fringe bitmap face_id in it->face_id.
16630 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
16631 still realize it->face (i.e. the fringe bitmap face).
16632
7d8a0b55
MB
166332004-02-25 Miles Bader <miles@gnu.org>
16634
16635 * xdisp.c (check_it): Check string/string_pos consistency.
16636 (init_iterator): Initialize string-related fields properly.
16637
166382004-02-11 Miles Bader <miles@gnu.org>
16639
16640 * xdisp.c (produce_image_glyph): Force negative descents to zero.
16641
166422004-02-10 Miles Bader <miles@gnu.org>
16643
16644 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
16645 BLOCK_INPUT can be nested, so it doesn't make much sense.
16646
a64387ee 166472004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
16648
16649 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
16650 (xbm_read_bitmap_data): Use unsigned char for image data.
16651
92f5fba2
LT
166522004-02-23 Luc Teirlinck <teirllm@auburn.edu>
16653
16654 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
16655
8565fb3d
JR
166562004-02-22 Jason Rumney <jasonr@gnu.org>
16657
16658 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
16659 correctly over other bitmaps.
16660
a6eeaa81 166612004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
16662
16663 * emacs.c (USAGE1): Split into two halves.
16664 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
16665 (USAGE3): Rename from USAGE2.
16666 (USAGE4): Rename from USAGE3.
f8125c39 16667
4effffca
EZ
166682004-02-21 Juri Linkov <juri@jurta.org>
16669
16670 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
16671 Fix --multibyte. Move --help, --version to USAGE2. Add alias
16672 --file. Fix -f, -l. Sort options. Untabify.
16673 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
16674
923c1e6f
LT
166752004-02-19 Luc Teirlinck <teirllm@auburn.edu>
16676
16677 * category.c (Fdefine_category, Fcategory_docstring)
16678 (Fget_unused_category, Fset_category_table)
16679 (Fcategory_set_mnemonics): Doc fixes.
16680
b0e225fd
KS
166812004-02-20 Kim F. Storm <storm@cua.dk>
16682
16683 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
16684 The following changes are relative to the 2004-01-21 revision.
16685 (NREAD_INPUT_EVENTS): Define as max number of input events to read
16686 in one call to read_socket_hook. Value is 8.
16687 (read_avail_input): Separate and rework handling of read_socket_hook
16688 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
16689 in read_socket_hook case, and repeat if full buffer is read.
16690 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
16691 In non-read_socket_hook case, just use a single input_event, and
16692 call kbd_buffer_store_event on the fly for each character.
16693
b15aa9f9
SM
166942004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16695
16696 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
16697 Remove unused `gu' alternative.
16698
83c9aa95
AS
166992004-02-19 Andreas Schwab <schwab@suse.de>
16700
16701 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
16702 warning.
16703
cc808173
KS
167042004-02-18 Kim F. Storm <storm@cua.dk>
16705
16706 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
16707 Fix last change.
16708
ab90a54d
KS
167092004-02-17 Kim F. Storm <storm@cua.dk>
16710
b26f249f
KS
16711 * xdisp.c (fast_find_position): Fix return value of new version;
16712 it was inverted compared to the 21.1 version.
16713 (get_window_cursor_type): Don't look at glyph if NULL.
16714 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 16715
ab90a54d
KS
16716 * keyboard.c: Rework previous change; it didn't consider that the
16717 buf array was allocated on the stack.
16718 (prev_read): Remove variable.
16719 (read_avail_input_buf): New static event buffer array.
b9568dfc 16720 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 16721 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
16722 Use in_read_avail_input to handle re-entrance; when re-entered,
16723 fully initialize and use tmp_buf array instead of read_avail_input_buf.
16724 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
16725 is always cleared on entry. To ensure that, we clear (just) the
16726 entries that were used before we return.
16727 (init_keyboard): Initialize read_avail_input_buf here.
16728
b6189c3b 167292004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
16730
16731 * cmds.c (Fend_of_line): Doc fix.
16732
7b5368c1
EZ
167332004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
16734
16735 * keyboard.c (prev_read): New static variable.
16736 (read_avail_input): Use it to zero out only those slots in buf[]
16737 that were used last time we were called.
16738
a6eeaa81 167392004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
16740
16741 * Makefile.in (obj): Move fringe.o from here...
16742 (XOBJ, MAC_OBJ): ...to here.
16743
159c348e
SE
167442004-02-16 Stephen Eglen <stephen@gnu.org>
16745
16746 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
16747
d2f14999
SM
167482004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
16749
b15aa9f9
SM
16750 * data.c (Fbyteorder):
16751 * fringe.c (Fdefine_fringe_bitmap):
16752 * xdisp.c (handle_single_display_prop):
d2f14999
SM
16753 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
16754
8d50508a
JR
167552004-02-16 Jason Rumney <jasonr@gnu.org>
16756
16757 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
16758
dd4497dc
ST
167592004-02-15 Steven Tamm <steventamm@mac.com>
16760
16761 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
16762 controlling emulation of a three button mouse with option and
16763 command keys.
7e26f91b 16764 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 16765 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 16766
c9159cb3
KS
167672004-02-15 Kim F. Storm <storm@cua.dk>
16768
2cc52658
KS
16769 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
16770
c9159cb3
KS
16771 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
16772 Perform byte-swapping.
16773
12fde2dc
KS
167742004-02-14 Kim F. Storm <storm@cua.dk>
16775
16776 * dispextern.h (struct draw_fringe_bitmap_params): Change member
16777 bits from char to short to facilitate wider bitmaps.
16778 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
16779 member.
16780
16781 * fringe.c (struct fringe_bitmap): Change member bits from char to
16782 short to facilitate 16 bits wide bitmaps. Modify all standard
16783 bitmaps accordingly.
16784 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
16785 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
16786 (draw_fringe_bitmap): Ditto.
16787 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
16788 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
16789 handle up to 16 bits wide bitmaps.
16790 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 16791 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
16792
16793 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
16794 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
16795 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
16796
16797 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
16798 so it is no longer necessary to expand them here.
16799
16800 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
16801
9d7271e8
KS
168022004-02-12 Kim F. Storm <storm@cua.dk>
16803
16804 * window.c (Fwindow_fringes): Doc fix.
16805
706c1e4f
JD
168062004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16807
16808 * xselect.c (x_get_foreign_selection): Add new optional parameter
16809 time_stamp.
16810 (Fx_get_selection_internal): Ditto, pass time_stamp to
16811 x_get_foreign_selection.
16812
16813 * data.c (Fbyteorder): New function.
16814
c2d12b5d
JD
168152004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16816
16817 * atimer.c: Move include stdio.h to same place as in other files.
16818
16819 * region-cache.c: Ditto.
16820
16821 * sysdep.c: Ditto.
16822
16823 * xfaces.c: Ditto.
16824
4c1947b9
SS
168252004-02-09 Sam Steingold <sds@gnu.org>
16826
89458937 16827 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 16828
82722af3
KS
168292004-02-09 Kim F. Storm <storm@cua.dk>
16830
16831 * fringe.c: New file. Move original fringe related declarations
16832 and code from dispextern.h and xdisp.c here.
16833 Rework code to support user defined fringe bitmaps, redefining
16834 standard bitmaps, ability to overlay user defined bitmap with
16835 overlay arrow bitmap, and add faces to bitmaps.
16836 (Voverflow_newline_into_fringe): Declare here.
16837 (enum fringe_bitmap_align): New enum.
16838 (..._bits): All bitmaps are now defined without bitswapping; that
16839 is now done in init_fringe_once (if necessary).
16840 (standard_bitmaps): New array with specifications for the
16841 standard fringe bitmaps.
16842 (fringe_faces): New array.
16843 (valid_fringe_bitmap_id_p): New function.
16844 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
16845 (draw_fringe_bitmap): New function which draws fringe bitmap,
16846 possibly overlaying bitmap with cursor in right fringe or the
16847 overlay arrow in the left fringe.
16848 (update_window_fringes): Do not handle overlay arrow here.
16849 Compare and copy fringe bitmap faces.
16850 (init_fringe_bitmap): New function.
16851 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
16852 define and destroy user defined fringe bitmaps.
16853 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
16854 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
16855 (syms_of_fringe): New function. Defsubr new DEFUNs.
16856 DEFVAR_LISP Voverflow_newline_into_fringe.
16857 (init_fringe_once, init_fringe): New functions.
16858 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 16859
82722af3
KS
16860 * Makefile.in (obj): Add fringe.o.
16861 (fringe.o): New dependencies.
16862
16863 * dispextern.h (FRINGE_ID_BITS): New definition for number of
16864 bits allocated to hold a fringe number. Increase number of bits
16865 from 4 to 8 to allow user defined fringe bitmaps.
16866 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
16867 left_user_fringe_face_id, right_user_fringe_bitmap,
16868 right_user_fringe_face_id.
16869 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
16870 Move to new file fringe.c.
16871 (MAX_FRINGE_BITMAPS): Define here.
16872 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
16873 and overlay_p. Change member which to int.
16874 (struct redisplay_interface): New members define_fringe_bitmap
16875 and destroy_fringe_bitmap.
16876 (valid_fringe_bitmap_id_p): Add prototype.
16877 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
16878
16879 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
16880 arrows.
16881 (update_frame): Do flush_display if force_flush_display_p to
16882 ensure display (specifically fringes) are updated in a timely
16883 manner when resizing the frame by dragging the mouse.
16884 (update_window_line): Update row if overlay arrow changed.
16885 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
16886 or overlay arrow changed.
16887
16888 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
16889 syms_of_fringe, and init_fringe.
16890
16891 * frame.h (struct frame): New member force_flush_display_p.
16892
16893 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
16894 Add prototypes.
16895
a3993cc8 16896 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 16897 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
16898 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
16899 Use cursor color for displaying cursor in fringe.
82722af3
KS
16900 (x_redisplay_interface): Add null handlers for
16901 define_fringe_bitmap and destroy_fringe_bitmap functions.
16902
16903 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
16904 xterm.c to handle overlayed fringe bitmaps and to use cursor color
16905 for displaying cursor in fringe.
16906 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
16907 specific functions to define and destroy fringe bitmaps in fringe_bmp.
16908 (w32_redisplay_interface): Add them to redisplay_interface.
16909 (w32_term_init): Call w32_init_fringe instead of explicitly
16910 defining fringe bitmaps in fringe_bmp array.
16911 (x_delete_display): Call w32_reset_fringes instead of explicitly
16912 destroying fringe bitmaps in fringe_bmp array.
16913
16914 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
16915 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
16916 (continued_bits, continuation_bits, ov_bits, first_line_bits)
16917 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
16918 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
16919 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
16920 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
16921 Move fringe handling vars and code to new file fringe.c.
16922 (handle_display_prop): Handle left-fringe and right-fringe
16923 display properties; store user fringe bitmaps in iterator.
16924 (move_it_in_display_line_to): Handle cursor in fringe at eob.
16925 (clear_garbaged_frames): Set force_flush_display_p if resized.
16926 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
16927 (display_line): Handle cursor in fringe at eob.
16928 (display_line): Set row user fringe bitmaps from iterator.
16929
16930 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
16931 Use cursor color for displaying cursor in fringe.
16932 (x_redisplay_interface): Add null handlers for
16933 define_fringe_bitmap and destroy_fringe_bitmap functions.
16934
030400eb
JD
169352004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16936
16937 * macfns.c (Fx_change_window_property): Make doc string and
16938 parameters same as for X version.
16939
16940 * w32fns.c (Fx_change_window_property): Ditto.
16941
3af55251
KS
169422004-02-07 Kim F. Storm <storm@cua.dk>
16943
ec110e9e
KS
16944 * xdisp.c (hscroll_window_tree): Position cursor near to right
16945 margin in hscrolled window when jumping to end of line (rather
16946 than centering cursor).
16947
3af55251
KS
16948 * process.c (wait_reading_process_input): Don't do adaptive read
16949 buffering if waiting for a specific process.
16950
b0c138ce
LT
169512004-02-05 Luc Teirlinck <teirllm@auburn.edu>
16952
16953 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
16954 (Fread_minibuffer, Feval_minibuffer)
16955 (Fread_string, Fread_no_blanks_input)
16956 (Fcompleting_read): Doc fixes.
16957 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
16958 completion-regexp-list. Define Qcase_fold_search and staticpro it.
16959 (read_minibuf): Fix initial comment.
16960 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 16961 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
16962 checking completion-regexp-list.
16963 (Fdisplay_completion_list): Make it handle arguments that are
16964 symbols. Doc fix.
16965
9676f5ad 169662004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 16967
9676f5ad 16968 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 16969
9676f5ad
JD
16970 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
16971 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 16972 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 16973 format. Remove unused variable cons.
5b698285 16974
9dd28cae 16975 * xselect.c: Include stdio.h.
5b698285 16976
fc1d15f6
KH
169772004-02-05 Kenichi Handa <handa@m17n.org>
16978
ebaff4af
KH
16979 * fns.c (Fset_char_table_range): Fix previous change.
16980
fc1d15f6
KH
16981 * buffer.c (Fset_buffer_multibyte): Fix docstring.
16982
9676f5ad
JD
169832004-02-04 Luc Teirlinck <teirllm@auburn.edu>
16984
16985 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
16986
da75761f
SM
169872004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
16988
16989 * keymap.c (Vmouse_events): Rename from Vmenu_events.
16990 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
16991
13c5d120
KH
169922004-02-04 Kenichi Handa <handa@m17n.org>
16993
16994 * fns.c (Fset_char_table_range): Handle charsets ascii,
16995 eight-bit-control, and eight-bit-graphic correctly.
16996
2883d842
JR
169972004-02-03 Jason Rumney <jasonr@gnu.org>
16998
16999 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
17000
17001 * w32fns.c (x_to_w32_font): Likewise.
17002
69eff41f
JD
170032004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17004
17005 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
17006 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
17007
17008 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
17009 ClientMessages.
17010
14a56a1b 17011 * xselect.c: Include termhooks.h and X11/Xproto.h.
69eff41f
JD
17012 (x_check_property_data, x_fill_property_data)
17013 (x_property_data_to_lisp, mouse_position_for_drop)
17014 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 17015 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
17016 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
17017
14a56a1b 17018 * xfns.c (x-send-client-message): Move to xselect.c.
69eff41f
JD
17019 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
17020 OUTER_P.
17021 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
17022 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
17023 if vector_ret_p is true.
17024 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 17025
a6eeaa81 170262004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
17027
17028 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
17029 basename of FILE relative to it, not FILE itself.
17030
09721b31
KH
170312004-02-02 Kenichi Handa <handa@m17n.org>
17032
17033 * coding.c (coding_restore_composition): Check invalid
17034 composition data more rigidly.
17035
eb996101
LT
170362004-01-30 Luc Teirlinck <teirllm@auburn.edu>
17037
17038 * fileio.c (Fread_file_name_internal): Correctly handle the case
17039 where insert-default-directory is nil.
17040 (Fread_file_name): Always return an empty string if the user exits
17041 with an empty minibuffer. Adapt the docstring accordingly.
17042 (syms_of_fileio): Adapt the docstring of insert-default-directory
17043 to the change in Fread_file_name.
17044
a6eeaa81 170452004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
17046
17047 * alloca.c [!alloca]: Fix the prototype for xfree.
17048
13f52ed8
KH
170492004-01-29 Kenichi Handa <handa@m17n.org>
17050
17051 * fns.c (string_char_to_byte): Optimize for ASCII only string.
17052 (string_byte_to_char): Likewise.
17053
d57625a0
JR
170542004-01-28 Peter Runestig <peter@runestig.com>
17055
17056 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
17057
a64387ee 170582004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
17059
17060 * unexmacosx.c (unexec_copy): Do not copy more than was
17061 requested to prevent overwriting during unexec.
17062
eb37b8fd
JD
170632004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17064
ce38070a
JD
17065 * process.c (sigchld_handler): Add comment about not calling malloc.
17066
eb37b8fd
JD
17067 * process.h: Add extern to synch_process_termsig.
17068
a64387ee 170692004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 17070
da75761f
SM
17071 * macterm.c (make_mac_frame, make_mac_terminal_frame):
17072 Move setting of scroll bars from make_mac_frame to
17073 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 17074
d62a265d
RS
170752004-01-26 Richard M. Stallman <rms@gnu.org>
17076
17077 * search.c (Freplace_match): Handle nonexistent
17078 back-references properly.
17079
170802004-01-03 Richard M. Stallman <rms@gnu.org>
17081
17082 * window.c (decode_any_window): New function.
17083 (Fwindow_height, Fwindow_width, Fwindow_edges)
17084 (Fwindow_pixel_edges, Fwindow_inside_edges)
17085 (Fwindow_inside_pixel_edges): Use decode_any_window.
17086
ff236419
JD
170872004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17088
17089 * process.h: synch_process_termsig new variable.
17090
17091 * callproc.c: Define synch_process_termsig.
17092 (Fcall_process): Initiate synch_process_termsig to zero and
17093 check if non-zero and get signal name after subprocess has ended.
17094
17095 * process.c (sigchld_handler): Set synch_process_termsig
17096 if terminated by a signal. synch_process_death setting removed.
17097
17098 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
17099
41b867ea
AS
171002004-01-26 Andreas Schwab <schwab@suse.de>
17101
17102 * print.c (print_preprocess): Declare size as EMACS_INT to not
17103 lose bits.
17104 (print_object): Likewise.
17105 * alloc.c (Fpurecopy): Likewise.
17106
a08084ff
LT
171072004-01-25 Luc Teirlinck <teirllm@auburn.edu>
17108
17109 * window.c (Fwindow_minibuffer_p): Doc fix.
17110
b19ac475
JY
171112004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
17112
17113 * editfns.c (Fformat): Make both passes accept the same set of flags.
17114
fe905025
KH
171152004-01-23 Kenichi Handa <handa@m17n.org>
17116
17117 * fns.c (Fmd5): If OBJECT is a buffer different from the current
17118 one, set buffer to OBJECT temporarily.
17119
438fc6c0
SM
171202004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
17121
455316e2
SM
17122 * keyboard.c (kbd_buffer_gcpro): Remove.
17123 (kbd_buffer_store_event, clear_event, Fdiscard_input)
17124 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
17125 Don't initialize and/or maintain the variable any more. It was made
17126 redundant by my commit of 2003-06-15.
17127
438fc6c0
SM
17128 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
17129
5335a4ee
JD
171302004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17131
17132 * lisp.h: Add undef DECL_ALIGN.
17133
dcdaeebc
SM
171342004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
17135
17136 * process.c (wait_reading_process_input) [SYNC_INPUT]:
17137 Check interrupt_input_pending explicitly.
17138
17139 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
17140
17141 * keyboard.c (handle_async_input): New fun,
17142 extracted from input_available_signal.
17143 (input_available_signal, reinvoke_input_signal): Use it.
17144
9076a823
SM
171452004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
17146
d7107586
SM
17147 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
17148
17149 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
17150 manipulation macros for when tags are in the lower bits.
17151 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
17152 (DECL_ALIGN): New macro.
17153 (DEFUN): Use it.
17154
17155 * lisp.h [ENABLE_CHECKING]: Don't force union type.
17156
17157 * s/darwin.h (__attribute__): Remove outdated workaround.
17158
17159 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
17160
17161 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
17162 Don't check range of malloc address.
17163 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
17164
9076a823
SM
17165 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
17166
17167 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
17168
ba029065
KH
171692004-01-19 Kenichi Handa <handa@m17n.org>
17170
17171 * fontset.c (fontset_font_pattern): Fix previous change.
17172
7af0e8d7
MB
171732004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
17174
17175 * xdisp.c (Voverflow_newline_into_fringe)
17176 (move_it_in_display_line_to, redisplay_internal)
17177 (update_window_fringes, redisplay_window, display_line, window):
17178 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
17179 that it compiles without a window-system.
17180 * dispnew.c (direct_output_for_insert, update_window): Likewise.
17181
77a9cf69
KS
171822004-01-16 Kim F. Storm <storm@cua.dk>
17183
17184 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
17185
a64387ee 17186 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
17187 buffer_local_flags for indicate_buffer_boundaries.
17188 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
17189 default- variable for it.
17190
17191 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
17192 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 17193 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
17194 overflowing newlines into right fringe.
17195 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
17196 and indicate_bottom_line_p for buffer boundaries and scrolling.
17197 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
17198 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
17199 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
17200 and HOLLOW_SQUARE_BITMAP.
17201 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
17202 Add prototypes.
17203
17204 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
17205 instead of related indicator fields.
17206 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
17207 (direct_output_for_insert): Handle exact width lines like
17208 contined lines. Call update_window_fringes.
17209 (update_window): Call update_window_fringes.
17210 (scrolling_window): Don't skip desired rows with changed bitmaps.
17211 Check if fringe bitmaps changes when assigning scrolled rows.
17212
17213 * xdisp.c (Voverflow_newline_into_fringe): New variable.
17214 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
17215 (move_it_in_display_line_to): Overflow newline into fringe for
17216 rows that are exactly as wide as the window.
17217 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
17218 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
17219 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
17220 (fringe_bitmaps): Add new bitmaps.
17221 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
17222 Select proper bitmap for cursor in fringe when appropriate.
17223 Handle alignment of bitmap to top or bottom of row.
17224 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
17225 done by update_window_fringes.
17226 (update_window_fringes, draw_window_fringes): New functions.
17227 (redisplay_internal): Call update_window_fringes in case only
17228 cursor row is updated.
17229 (redisplay_window): Call update_window_fringes.
17230 Explicitly call draw_window_fringes if redisplay was done using
17231 the current matrix or the overlay arrow is in the window.
17232 (try_window_reusing_current_matrix): Mark scrolled rows for
17233 fringe update (to update buffer-boundaries / scrolling icons).
17234 (find_last_unchanged_at_beg_row): Handle exact width lines line
17235 continued lines.
17236 (display_line): Overflow newline into fringe for rows that are
17237 exactly as wide as the window. Don't append space for newline
d7107586 17238 in this case.
77a9cf69
KS
17239 (notice_overwritten_cursor): Explicitly clear cursor bitmap
17240 in fringe as if it had been overwritten.
17241 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 17242 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
17243 void-text-area-pointer as user options.
17244 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 17245
77a9cf69
KS
17246 * xterm.c (x_update_window_end): Call draw_window_fringes.
17247 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17248 in row instead of actually drawing fringe bitmaps.
17249 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17250 (x_draw_window_cursor): Draw cursor in fringe.
17251
17252 * w32term.c (x_update_window_end): Call draw_window_fringes.
17253 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17254 in row instead of actually drawing fringe bitmaps.
17255 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17256 (w32_draw_window_cursor): Draw cursor in fringe.
17257
17258 * macterm.c (x_update_window_end): Call draw_window_fringes.
17259 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17260 in row instead of actually drawing fringe bitmaps.
17261 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17262 (mac_draw_window_cursor): Draw cursor in fringe.
17263
a633a954
JD
172642004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17265
17266 * xterm.c (handle_one_xevent): Don't handle characters that are part
17267 of an old style (XLookupString) compose sequence.
17268
80460525
KH
172692004-01-15 Kenichi Handa <handa@m17n.org>
17270
17271 * search.c (Freplace_match): Use make_multibyte_string or
17272 make_unibyte_string according to the buffer multibyteness.
17273
7fc34f85
SM
172742004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
17275
17276 * alloc.c (struct interval_block, struct string_block)
17277 (struct symbol_block, struct marker_block, live_string_p)
17278 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
17279 Better preserve alignment for objects in blocks.
17280 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
17281
17282 * lread.c (defvar_per_buffer): Remove dead declaration.
17283
17284 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
17285 space size.
17286
66070bd1
JD
172872004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17288
17289 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
17290 if a key press should pop down. Only pop down if a key is pressed
17291 outside the menu/dialog.
17292 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
17293 popup_get_selection.
17294 (create_and_show_dialog): Pass 1 for down_on_keypress to
17295 popup_get_selection.
17296
de7515d6
JD
172972004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17298
17299 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
17300 BLOCK/UNBLOCK_INPUT.
17301
160b1b50
JD
173022004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17303
17304 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
17305 specified.
17306
3a9f36e6
KH
173072004-01-08 Kenichi Handa <handa@m17n.org>
17308
17309 * editfns.c (Fformat): Fix '&' to '&&'.
17310
3803eb32
AS
173112004-01-08 Andreas Schwab <schwab@suse.de>
17312
17313 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
17314 size if PSEUDOVECTOR_FLAG is set.
17315
9da88f37
KH
173162004-01-07 Kenichi Handa <handa@m17n.org>
17317
74ac5074
KH
17318 * charset.c (Fdeclare_equiv_charset): Fix docstring.
17319
9da88f37
KH
17320 * fontset.c (fontset_ref_via_base): Fix previous change.
17321
05faee07
KS
173222004-01-07 Kim F. Storm <storm@cua.dk>
17323
17324 * process.c (read_process_output): Only activate adaptive
17325 buffering if we read less than 256 bytes at a time.
17326
634910c8
KS
173272004-01-06 Kim F. Storm <storm@cua.dk>
17328
17329 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
17330 object and image object. Return glyph width and height.
17331 (mode_line_string, marginal_area_string): Ditto.
17332
17333 * dispextern.h (buffer_posn_from_coords, mode_line_string)
17334 (marginal_area_string): Fix prototypes.
17335
17336 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 17337 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
17338 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
17339
17340 * keyboard.c (make_lispy_position): Use modified mode_line_string,
17341 buffer_posn_from_coords, and marginal_area_string functions to
17342 include both string object and image object in the lispy position.
17343 Also add actual glyph width and height to position.
17344 (read_key_sequence): Use real buffer position from mouse
17345 event to find keymap property even when click is in marginal area.
17346
17347 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
17348 mode_line_string and marginal_area_string functions to handle
17349 both string object and image object properties.
d7107586 17350
57951c2e
AS
173512004-01-06 Andreas Schwab <schwab@suse.de>
17352
17353 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
17354 character.
17355
181e6a61
AS
173562004-01-02 Andreas Schwab <schwab@suse.de>
17357
d7107586
SM
17358 * macterm.c (emacs_options, x_initialized, same_x_server):
17359 Remove unused (and duplicated) definitions.
181e6a61 17360
31e0fbdd
KS
173612004-01-02 Kim F. Storm <storm@cua.dk>
17362
17363 * process.h (struct Lisp_Process): New members for adaptive read
17364 buffering: adaptive_read_buffering, read_output_delay, and
17365 read_output_skip.
17366
17367 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
17368 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
17369 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
17370 (process_output_delay_count, process_output_skip): New vars.
17371 (Vprocess_adaptive_read_buffering): New variable.
17372 (make_process): Initialize adaptive read buffering members.
17373 (Fstart_process): Set adaptive_read_buffering member.
17374 (deactivate_process): Cleanup adaptive read buffering.
17375 (wait_reading_process_input): Temporarily omit delayed
17376 subprocesses from the set of file descriptors to read from;
17377 adjust the select timeout if we skipped any subprocesses.
17378 (read_process_output): Increase adaptive read buffering delay if
17379 we read less than a full buffer; reduce delay when we read a
17380 full buffer.
17381 (send_process): Simplify using local Lisp_Process var.
17382 Reset adaptive read buffering delay after write.
17383 (init_process): Initialize process_output_delay_count and
17384 process_output_skip.
17385 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
17386
68c6a789
JR
173872004-01-01 Jason Rumney <jasonr@gnu.org>
17388
d7107586 17389 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 17390
3f70fe82
LT
173912003-12-30 Luc Teirlinck <teirllm@auburn.edu>
17392
17393 * print.c (Ferror_message_string): Add hyperlink in the docstring
17394 to the definition of `signal' in the Elisp manual.
17395 * eval.c (Fsignal): Ditto.
17396
b6189c3b 173972003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
17398
17399 * fns.c (internal_equal): Return t for two NaN arguments.
17400
7abd90ea
RS
174012003-12-29 Richard M. Stallman <rms@gnu.org>
17402
17403 * data.c (store_symval_forwarding): Handle setting
17404 default-fill-column, etc., by changing the value in
17405 buffers that use the default.
17406
17407 * minibuf.c (Fset_minibuffer_window): Doc fix.
17408
17409 * fileio.c (choose_write_coding_system): Ignore auto_saving
17410 if using the visited file for auto saves.
17411 (Fwrite_region): Don't update SAVE_MODIFF
17412 if auto-saving in visited file.
17413
3e7cfcdc
KH
174142003-12-29 Kenichi Handa <handa@m17n.org>
17415
17416 * dispextern.h (face_font_available_p): Extern it.
17417
17418 * fontset.c (Voverriding_fontspec_alist): New variable.
17419 (lookup_overriding_fontspec): New function.
d7107586 17420 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
17421 (fontset_font_pattern): Likewise.
17422 (regulalize_fontname): New function.
17423 (Fset_fontset_font): Call regulalize_fontname.
17424 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
17425 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
17426 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
17427
17428 * xfaces.c (face_font_available_p): New function.
17429
7abd90ea
RS
174302003-12-28 Richard M. Stallman <rms@gnu.org>
17431
17432 * buffer.c (Fother_buffer): Don't crash if BUF is nil
17433 or if its name is nil.
17434
17435 * buffer.c (Fkill_buffer): Don't delete auto-save file
17436 if it's the same as the visited file.
17437
de1d1a40
LT
174382003-12-28 Luc Teirlinck <teirllm@auburn.edu>
17439
17440 * coding.c (Fcheck_coding_system): Doc fix.
17441
204fb75e
KS
174422003-12-28 Kim F. Storm <storm@cua.dk>
17443
17444 * Makefile.in (eval.o): Depend on dispextern.h.
17445
17446 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
17447 image glyph using image's ascent.
17448 (mode_line_string): Return image glyph as object clicked on.
17449 Adjust y0 for image glyph using image's ascent.
17450
17451 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
17452 (struct glyph): New members, ascent and descent. Used to save
17453 this glyph's ascent and descent, instead of having.
17454 (struct glyph): Declare member face_id using FACE_ID_BITS.
17455 (find_hot_spot): Add prototype.
17456
17457 * keyboard.c (Qimage): Remove extern (now in lisp.h).
17458 (QCmap): Declare extern.
17459 (make_lispy_position): When position is inside image hot-spot,
17460 use hot-spot element's id as posn element.
17461
17462 * lisp.h (IMAGEP): New macro to test for image object type.
17463 (Qimage): Declare extern.
17464
17465 * macfns.c (Qimage): Remove extern (now in lisp.h).
17466 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17467
17468 * macterm.c (Qface, Qmouse_face): Remove unused externs.
17469
17470 * w32fns.c (Qimage): Remove extern (now in lisp.h).
17471 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17472
17473 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
17474
17475 * w32term.c (Qface, Qmouse_face): Remove unused externs.
17476
17477 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
17478 pointer types.
17479 (Qrelative_width, Qalign_to): Remove unused variables.
17480 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
647b07d1
AS
17481 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
17482 maps.
17483 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
17484 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
17485 code accordingly.
204fb75e
KS
17486 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
17487 than row's ascent and height, to get sensible height on tall rows.
17488 (build_desired_tool_bar_string): Remove Qimage extern.
17489 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
17490 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
17491 image glyph is alone on the last line.
17492 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 17493 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 17494 (on_hot_spot_p): New function to check if position is inside an
d7107586 17495 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
17496 (find_hot_spot): New function to search for image hot-spot.
17497 (Flookup_image_map): New defun to search for image hot-spot.
647b07d1
AS
17498 (define_frame_cursor1): New aux function to determine frame
17499 pointer.
17500 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
17501 `pointer' text property and :pointer image property to control
17502 frame pointer shape. Detect image hot-spots for pointer and
17503 help_echo properties. Use define_frame_cursor1.
17504 (note_mouse_highlight): Use Vvoid_text_area_pointer.
17505 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
17506 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
17507 Vshow_text_cursor_in_void.
204fb75e
KS
17508
17509 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
17510
17511 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
17512 (Qimage): Remove extern (now in lisp.h).
17513 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17514
17515 * xmenu.c (show_help_event): Remove unused code.
17516
17517 * xterm.c (Qface, Qmouse_face): Remove unused externs.
17518 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
17519 row's ascent and descent, to get a sensible height on tall rows.
17520
fc052137
LT
175212003-12-25 Luc Teirlinck <teirllm@auburn.edu>
17522
17523 * minibuf.c (Fcompleting_read): Undo previous change.
17524
a64387ee 175252003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
17526
17527 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
17528 Arguments GCPRO'ed in call to file name handler.
17529
56ffd194
TTN
175302003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
17531
17532 * termcap.c (tgetst1): Scan for "%pN"; if all
17533 N are continuous in [1,9], remove all "%pN".
17534
5202d23d
JD
175352003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17536
f26fab36
JD
17537 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
17538
5202d23d
JD
17539 * xfaces.c (lface_fully_specified_p): Take into account that
17540 MAC OS always have unspecified stipple.
17541
8babaa59
TTN
175422003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
17543
17544 * tparam.c (tparam1): Add handling for `%pN', which
17545 means use param N for the next substitution.
17546
2d176448
TTN
175472003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
17548
17549 * xfaces.c (Fcolor_gray_p): Fix omission bug:
17550 In case `frame' is nil, consult the selected frame.
17551 (Fcolor_supported_p): Likewise.
17552
adb0708c
LT
175532003-12-23 Luc Teirlinck <teirllm@auburn.edu>
17554
000eeb15
LT
17555 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
17556 Doc fixes.
0dc72b11
LT
17557
17558 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
17559 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
17560 (Fread_from_minibuffer): Delete code moved into read_minibuf.
17561 Doc fix.
17562 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
17563 read_minibuf.
17564 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 17565 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 17566
2e4d132b
KH
175672003-12-03 Kenichi Handa <handa@m17n.org>
17568
17569 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
17570 encoding sequence.
17571
3999c705
KH
175722003-12-01 Kenichi Handa <handa@m17n.org>
17573
17574 * composite.c (syms_of_composite): Don't make the compostion hash
17575 table week.
17576
d344ecbb
LT
175772003-11-30 Luc Teirlinck <teirllm@auburn.edu>
17578
17579 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
17580 * textprop.c (Fget_char_property_and_overlay): New function.
17581 (syms_of_textprop): Defsubr it.
17582
03d6484e
JD
175832003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17584
019b1f0e
JD
17585 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
17586 to compile on terminal configuration.
17587
03d6484e
JD
17588 * fileio.c (Fread_file_name): Check use_file_dialog also before
17589 calling Fx_file_dialog.
17590
1d1c7e75 17591 * fns.c (use_file_dialog): New variable.
03d6484e
JD
17592 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
17593
442d3fd0
KS
175942003-11-29 Kim F. Storm <storm@cua.dk>
17595
17596 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
17597 (syms_of_msdos): Don't intern and staticpro them.
17598
0f6a07a8
KS
175992003-11-27 Kim F. Storm <storm@cua.dk>
17600
17601 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
17602 coordinates relative to glyph at posn. If glyph is an image,
17603 return that as object at posn. Callers changed.
17604 (mode_line_string, marginal_area_string): Calculate and return
17605 pixel coordinates relative to glyph. Callers changed.
17606
17607 * dispextern.h (buffer_posn_from_coords, mode_line_string)
17608 (marginal_area_string): Fix prototypes.
17609 (window_box_left_offset, window_box_right_offset): Add prototypes.
17610
17611 * frame.h (get_specified_cursor_type, get_window_cursor_type):
17612 Remove prototypes.
17613
17614 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
17615
17616 * keyboard.c (make_lispy_position): Add x and y coordinates
17617 relative to the current glyph as 7th element of position.
17618 If glyph is an image, return it in the object element.
17619 (read_key_sequence): Skip checks for keymap property in cases
17620 where POSN_STRING is not a string (e.g. an image).
17621
17622 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
17623 (Vshow_text_cursor_in_void): New variable.
17624 (glyph_to_pixel_coords): Don't use negative hpos.
17625 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
17626 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 17627 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
17628 (calc_pixel_width_or_height): New aux function, implementing
17629 pixel based artihmetic for glyph widths and heights.
17630 (produce_stretch_glyph): Use calc_pixel_width_or_height for
17631 :width, :height, :align-to, and :ascent, thus allowing these to
17632 be specified in pixels as well as multiples of characters.
17633 Don't produce stretch glyphs with zero width or height.
17634 (get_specified_cursor_type): Declare static.
17635 (get_window_cursor_type): Declare static. Add glyph arg to be
17636 able to know when cursor is on an image; always substitute
17637 hollow-box cursor for filled-box cursor on images, to avoid
17638 negative images and flicker when blinking the cursor.
5e1a6e32 17639 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
0f6a07a8
KS
17640 (note_mode_line_or_margin_highlight): Use non-text cursor rather
17641 than vertical scroll-bar cursor in display margins.
17642 (note_mouse_highlight): Use non-text cursor rather than text
17643 cursor in fringes and over images in the text area.
17644 Use non-text cursor when mouse pointer is outside editable text,
17645 i.e. in the void after end-of-line or end-of-buffer; this was
17646 already done for W32, but is now standard for all systems --
17647 user can toggle show-text-cursor-in-void to get old behaviour.
17648 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
17649 Vdisplay_pixels_per_inch.
17650
00498bfc
AS
176512003-11-25 Andreas Schwab <schwab@suse.de>
17652
17653 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
17654 EMACS_INT to not lose bits.
17655 (Ffillarray): Don't set bits beyond the size of a bool vector.
17656
edaa824d
KS
176572003-11-25 Kim F. Storm <storm@cua.dk>
17658
17659 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
17660 define this defun on systems that cannot use stderr as lvalue.
17661
74d6f539
GM
176622003-11-24 Gerd Moellmann <gerd@gnu.org>
17663
17664 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
17665 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
17666 ld's default is incompatible with unexec.
17667
6a1ff3ba
KS
176682003-11-23 Kim F. Storm <storm@cua.dk>
17669
63dc7c6b
KS
17670 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
17671 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
17672 (Fforce_window_update): New defun.
17673 (syms_of_window): Defsubr it.
17674 (Fset_window_margins, Fset_window_fringes): Doc fix.
17675
6a1ff3ba
KS
17676 * print.c (Fredirect_debugging_output): New defun.
17677 (syms_of_print): Defsubr it.
17678
aef109b7
LT
176792003-11-22 Luc Teirlinck <teirllm@auburn.edu>
17680
17681 * fns.c (Fset_char_table_parent): Doc fix.
17682
6a1ff3ba 176832003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
17684
17685 * dispnew.c (buffer_posn_from_coords): Return actual row/column
17686 for glyph clicked on, rather than (unused) pixel positions.
17687 (mode_line_string, marginal_area_string): Change X and Y args to
17688 pointers for returning actual row/column for glyph clicked on.
17689 Simplify and optimize loops.
17690
aef109b7
LT
17691 * dispextern.h (mode_line_string, marginal_area_string):
17692 Update prototypes.
63ccbe21
KS
17693
17694 * keyboard.c (make_lispy_position): New function for generating
17695 mouse click positions from frame and pixel coordinates.
17696 Enhanced to return buffer position and actual row/column for
17697 events outside the text area using updated mode_line_string and
17698 marginal_area_string functions.
17699 Return left-fringe and right-fringe clicks as such, rather than
17700 clicks in text area.
17701 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
17702 pixel_to_glyph_coords, as we never use the results.
17703 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
17704 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
17705 Eliminate unused code in WHEEL_EVENT handling.
17706 (make_lispy_movement): Use make_lispy_position.
17707
17708 * window.c (coordinates_in_window): Remove redundant tests.
17709 Fix returned X pixel value for left-margin.
17710
17711 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
17712 mode_line_string and marginal_area_string parameters.
17713
a64387ee 177142003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 17715
d7107586
SM
17716 * w32.c (struct the_group, getgrgid): Add.
17717 * mac.c (struct my_group, getgrgid): Add.
aef109b7 17718
3dbf3426
LT
177192003-11-21 Luc Teirlinck <teirllm@auburn.edu>
17720
17721 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
17722
cae8ddbb 177232003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 17724
d7107586
SM
17725 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
17726 include in call to file name handler. Optionally translate numeric
17727 UID and GID to strings. Update docstring.
17728 (directory_files_internal): Add parameter ID-FORMAT.
17729 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
17730 include in call to file name handler and call to
17731 directory_files_internal. Update Docstring.
17732 (Fdirectory_files): Add dummy parameter in call to
17733 directory_files_internal.
17734 * lisp.h (Qinteger): Add.
17735 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
17736 (Ffile_attributes): Add parameter.
17737 * data.c (Qinteger): Export.
cae8ddbb 17738
2550b848
LT
177392003-11-21 Luc Teirlinck <teirllm@auburn.edu>
17740
3dbf3426 17741 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 17742
88380018
KS
177432003-11-19 Kim F. Storm <storm@cua.dk>
17744
17745 * xdisp.c (init_iterator): Initialize it->start to position
17746 before reseating (in case start position is invisible).
17747 (init_to_row_start): Set it->start to row-start.
17748 (redisplay_window): Accept optional_new_start if start position
17749 is invisible (in which case IT_CHARPOS overshoots PT).
17750 (display_line): Setup row->start from it->start (rather than
17751 it->current which is wrong if first char on line is invisible).
17752 When done, reseat it->start to it->current (= start of next row).
17753 (expose_area): Fix exposure of text area when first char (e.g. TAB)
17754 is only partially visible.
17755
17756 * dispextern.h (struct it): New member start.
17757
854c1a59
SM
177582003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
17759
455316e2
SM
17760 * alloc.c (make_float, Fcons): Clear the markbit at init time.
17761 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
17762 of block_index outside of the macro call.
17763 (Fgarbage_collect): Remove null code.
17764
17765 * m/amdx86-64.h: Don't redefine XPNTR.
17766
854c1a59
SM
17767 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
17768 of VALMASK.
17769
17770 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
17771 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
17772 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
17773
17774 * lisp.h (VALMASK): Only define for non-union type.
17775 (MARKBIT): Remove.
17776 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
17777 (XTYPE): Define unconditionally.
17778 (XSETTYPE): Remove one more remnant.
17779 (EQ): Define differently for the union and non-union cases.
17780 (INTMASK): New bit mask.
17781 (struct Lisp_Marker): Move down to prepare for upcoming patch.
17782 (GC_EQ): Delegate to EQ.
17783
17784 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
17785
a0c6ef2d
JD
177862003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17787
17788 * xterm.c (x_window_to_scroll_bar): Move check of display to
17789 where window_id is compared.
17790
859492c4
KS
177912003-11-17 Kim F. Storm <storm@cua.dk>
17792
17793 * dispextern.h (struct it): New member first_vpos.
17794
17795 * xdisp.c (start_display): Set it->first_vpos.
17796 (try_window_id): Use first_vpos to start display in first _text_
17797 line if no reusable lines at start of window with header line.
17798
810f2256
JD
177992003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17800
7c402969 17801 * w32fns.c (XPutPixel):
854c1a59
SM
17802 * w32bdf.c (w32_init_bdf_font):
17803 * sunfns.c (sel_read):
17804 * process.c (Fmake_network_process):
17805 * frame.c (store_frame_param):
17806 * fontset.c (Fset_fontset_font):
17807 * emacs.c (shut_down_emacs):
a64387ee 17808 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 17809
a32e9bfd
JD
17810 * config.in: Regenerate.
17811
810f2256
JD
17812 * xfns.c (x_window_to_frame, x_any_window_to_frame)
17813 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
17814 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
17815 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
17816 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
17817
17818 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
17819
17820 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
17821 (XTmouse_position, handle_one_xevent): Pass Display* to
17822 x_window_to_scroll_bar.
17823 (x_window_to_scroll_bar): Take a Display* argument.
17824 Check that display for frame is equal to Display* argument.
854c1a59 17825 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
17826 x_display_info_for_display instead. Use Display in xev instead
17827 of GDK_DISPLAY.
17828 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 17829 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
17830 (x_connection_closed): Call xg_display_close for GTK.
17831 (x_term_init): Call xg_display_open for additional displays.
17832 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
17833 for GTK.
17834
17835 * xmenu.c (single_menu_item, mouse_position_for_popup)
17836 (x_activate_menubar): Formatting adjustments.
17837
17838 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
17839 adjustments.
17840
17841 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
17842 (xg_display_close, xg_create_default_cursor)
17843 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
17844 handling.
854c1a59
SM
17845 (xg_left_ptr_cursor): Remove.
17846 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
17847 cursor here.
17848 (xg_win_to_widget): Take Display* argument, call
17849 gdk_xid_table_lookup_for_display.
17850 (xg_create_frame_widgets, xg_get_file_name, create_menus)
17851 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
17852 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
17853 in FRAME_X_DISPLAY_INFO.
17854 (xg_get_scroll_id_for_window): Take Display* argument.
17855 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 17856 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 17857
78819ebb
KS
17858 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
17859 Display* argument.
17860 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 17861
0b03cc78
JD
178622003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17863
17864 * xterm.c (x_detect_focus_change): Do not change focus frame for
17865 Enter/LeaveNotify if the current focus frame has explicit focus.
17866
77e688fa
KS
178672003-11-14 Kim F. Storm <storm@cua.dk>
17868
17869 * dispnew.c (update_text_area): Fix redisplay error when hscroll
17870 is active and first glyph is only partially visible.
854c1a59 17871
dd429b03
KH
178722003-11-13 Kenichi Handa <handa@m17n.org>
17873
17874 * xdisp.c (select_frame_for_redisplay): New function.
17875 (redisplay_internal): Record also selected_frame for
17876 unwind_redisplay. Call select_frame_for_redisplay before
17877 redrawing each frame.
17878 (unwind_redisplay): Argument changed to a cons.
17879
6d9266f4
LT
178802003-11-12 Luc Teirlinck <teirllm@auburn.edu>
17881
17882 * fns.c (Fstring_to_multibyte): Doc fix.
17883
80060eb3
KH
178842003-11-11 Kenichi Handa <handa@m17n.org>
17885
17886 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17887
74305183
JD
178882003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17889
17890 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
17891 program specified positions.
17892
cfda993e
JD
178932003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17894
17895 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
17896
df211069
KH
178972003-11-08 Kenichi Handa <handa@m17n.org>
17898
17899 * Makefile.in (lisp): Add kannada.el.
17900 (shortlisp): Likewise.
17901
4307d534
KH
179022003-11-07 Kenichi Handa <handa@m17n.org>
17903
854c1a59
SM
17904 * coding.c (coding_allocate_composition_data):
17905 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
17906 (coding_restore_composition): Detect invalid composition data.
17907 Give Fstring and Fvector a Lispy integer, not C int.
17908
854c1a59
SM
179092003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
17910
17911 * floatfns.c (Flogb): Don't use VALMASK.
17912
17913 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
17914 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
17915
17916 * lisp.h (XINT): Move the cast to clarify what is going on.
17917 (GCTYPEMASK, XSETTYPE): Remove.
17918 (XGCTYPE): Make it an alias of XTYPE.
17919
d04103a1
JD
179202003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17921
17922 * xterm.c (x_term_init): Fix formatting.
17923
da18b5ac
JD
179242003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17925
78819ebb
KS
17926 * gtkutil.h (xg_have_tear_offs): Declare.
17927 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
17928
17929 * gtkutil.c: Remove variable xg_did_tearoff.
17930 (xg_have_tear_offs): New function.
17931 (tearoff_remove): Just decrease xg_detached_menus.
17932 (tearoff_activate): Increase xg_detached_menus and call
17933 tearoff_remove when tearoff is removed.
854c1a59 17934 (xg_keep_popup): Remove function.
da18b5ac
JD
17935 (create_menus): Give add_tearoff_p as argument to recursive
17936 call to create_menus.
17937 (xg_create_widget): Use variables instead of multiple
17938 strcmp. Tell create_menus to create tear off only for
17939 menu bar menus.
17940 (xg_update_menubar): Change title for a detached menu also.
17941 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
17942 of deep_p.
17943 (xg_initialize): Initialize xg_detached_menus, remove
17944 initialization of xg_did_tearoff.
17945
17946 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
17947 xg_have_tear_offs returns non-zero.
17948 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
17949 call to xg_keep_popup.
17950
64d4923e
AC
179512003-11-01 Andrew Choi <akochoi@shaw.ca>
17952
17953 * macterm.c (XTread_socket): Handle menubar selection and grow
17954 window only for mouseDown events.
854c1a59 17955
6cc8bc07
JD
179562003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17957
17958 * xterm.c (x_term_init): For GTK part, increase x_initialized
17959 to check for more than one display. Use error instead of return 0.
17960
043131c4
AC
179612003-10-31 Andrew Choi <akochoi@shaw.ca>
17962
854c1a59 17963 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
17964 (copy_dysymtab): Call it.
17965
bdda99a1
LT
179662003-10-31 Luc Teirlinck <teirllm@auburn.edu>
17967
17968 * eval.c (Fdefvaralias): Doc fix.
17969
800f42ff 179702003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
17971
17972 * data.c (Fsetplist): Doc fix.
17973
ef35b389
LK
179742003-10-14 Lute Kamstra <lute@gnu.org>
17975
17976 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 17977
ef35b389 179782003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 17979
07107abc
KS
17980 * window.c (Fset_window_margins): Simplify arg checking.
17981
f7005886
RS
179822003-10-13 Richard M. Stallman <rms@gnu.org>
17983
17984 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
17985 (print_partial_compiled_pattern): Replace assert with a printout.
17986 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
17987
17988 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
17989
17990 * window.c (Fset_window_margins): Allow only integers as args.
647b07d1
AS
17991 (syms_of_window) <special-display-buffer-names,
17992 special-display-regexps>: Doc fixes.
f7005886 17993
9c0c2af5
LK
179942003-10-13 Lute Kamstra <lute@gnu.org>
17995
17996 * window.c (Fset_window_fringes): Elaborate docstring.
17997
3f080e4e
AC
179982003-10-12 Andrew Choi <akochoi@shaw.ca>
17999
854c1a59 18000 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 18001
3f080e4e
AC
18002 * s/darwin.h (GC_MARK_STACK): Define.
18003
0aa513ed
JD
180042003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18005
18006 * window.c (shrink_windows): New function.
18007 (size_window): Call shrink_windows to calculate window sizes when
18008 shrinking frame with more than one window.
18009
6aa8858a
KS
180102003-10-12 Kim F. Storm <storm@cua.dk>
18011
18012 * xdisp.c (compute_fringe_widths): Doc fix.
18013
c2164d91
KH
180142003-10-08 Kenichi Handa <handa@m17n.org>
18015
854c1a59 18016 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 18017
f82ac129
KH
180182003-10-07 Kenichi Handa <handa@m17n.org>
18019
18020 * coding.c (Qcoding_system_define_form): New variable.
18021 (syms_of_coding): Intern and staticpro it.
18022 (Fcheck_coding_system): Try to autoload the definition of
18023 CODING-SYSTEM.
18024
9296c947
LT
180252003-10-05 Luc Teirlinck <teirllm@auburn.edu>
18026
18027 * fns.c (Frequire): Doc fix.
18028
c1f0671a
JD
180292003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18030
3d8c3826
JD
18031 * xfns.c (Fx_send_client_event): New function as a base for
18032 manipulating extended window manager hints.
6dc15d98 18033 (Fx_send_client_event): Remove unused variable s.
3d8c3826 18034
068ae0fd
JD
18035 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
18036 that function is removed.
18037
18038 * xterm.c (x_set_offset): Use move_offset_left/top instead of
18039 x/y_pixels_outer_diff.
18040 (x_check_expected_move): Calculate move_offset_left/top.
18041
18042 * xterm.h (struct x_output): New members: move_offset_top/left.
18043
854c1a59 18044 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
18045 call x_set_offset directly.
18046
18047 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
18048
96f09305
JD
18049 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
18050
18051 * xterm.c (x_delete_display): Free font names and font_encoder
18052 in dpyinfo->font_table.
18053
854c1a59
SM
18054 * xfns.c (Fx_close_connection): Only call XFreeFont here.
18055 Move xfree of font names to x_delete_display.
96f09305 18056
c1f0671a
JD
18057 * xterm.h (struct x_display_info): New member, wm_type.
18058 (struct x_output): New members, expected_top/left and
18059 check_expected_move.
18060
18061 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
18062 is received.
854c1a59
SM
18063 (handle_one_xevent): Rename x_check_expected_move from
18064 x_check_fullscreen_move.
5e1a6e32 18065 (x_set_offset): Only add WM decoration sizes to modified_top/left
c1f0671a 18066 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 18067 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
18068 Removed fullscreen specific code. Use check_expected_move,
18069 expected_left/top instead. Also, set wm_type.
18070 (x_term_init): Initialize wm_type to unknown.
18071
18072 * frame.c (x_fullscreen_move): Remove addition of WM decoration
18073 sizes to move_x/y.
18074
be2fdba9
KH
180752003-10-03 Kenichi Handa <handa@m17n.org>
18076
18077 * macterm.c (x_load_font): Clear all members of FONTP before start
18078 filling them.
18079
180802003-10-02 Kenichi Handa <handa@m17n.org>
18081
18082 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
18083 before calling find_ccl_program_func. Call find_ccl_program_func
18084 only when fontp->font_encoder is not NULL.
18085
18086 * xterm.c (x_load_font): Clear all members of FONTP before start
18087 filling them.
18088
26a6e439
JPW
180892003-10-03 John Paul Wallington <jpw@gnu.org>
18090
18091 * keymap.c (map_keymap): Don't abort when binding is a vector.
18092
0d4c2dc2
JR
180932003-10-02 Jason Rumney <jasonr@gnu.org>
18094
854c1a59
SM
18095 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
18096 Sync dependencies with Makefile.in.
a63cf46f
JR
18097 (alloca.o): Remove.
18098
0d4c2dc2
JR
18099 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
18100 filling them.
18101
18102 * w32bdf.c (w32_load_bdf_font): Likewise.
18103
ab8f7d5c
RS
181042003-09-30 Richard M. Stallman <rms@gnu.org>
18105
18106 * term.c (set_tty_color_mode): Calculate current_mode_spec
18107 regardless of value of VAL.
18108
854c1a59 18109 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
18110 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
18111 Handle over_used when splitting UNDER.
18112
c6605d63 181132003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
18114
18115 * regex.c (regex_compile): Free the stack when returning from function.
18116
3413f972
KH
181172003-09-28 Kenichi Handa <handa@m17n.org>
18118
18119 * fontset.c (Finternal_char_font): Change return value to
18120 cons (FONT-NAME . GLYPH-CODE).
18121
a6eeaa81 181222003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
18123
18124 * term.c (tty_setup_colors): Treat any negative argument as -1.
18125
f98ddc99
KH
181262003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
18127
18128 * process.c (send_process): Delete unused temp_buf.
18129
66c8f1a8
DL
181302003-09-26 Dave Love <fx@gnu.org>
18131
18132 * xterm.c (x_bitmap_mask): Declare.
18133
ca716c26
DL
181342003-09-25 Dave Love <fx@gnu.org>
18135
18136 * Makefile.in (fns.o): Depend on md5.h.
18137
fbe57420
KS
181382003-09-25 Kim F. Storm <storm@cua.dk>
18139
18140 * window.c (set_window_buffer): Fix redisplay problems when
18141 switching between buffers with different display margin widths.
18142
ef6ae4ff
KS
181432003-09-23 Kim F. Storm <storm@cua.dk>
18144
18145 * process.c (set_socket_option): Fix :bindtodevice option.
18146 (Fset_network_process_option): Update process contact list when
18147 setting option succeeds.
18148 (Fmake_network_process): Doc fix.
18149
68e03c1c
DL
181502003-09-23 Dave Love <fx@gnu.org>
18151
7146d1c1 18152 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 18153
a6eeaa81 181542003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
18155
18156 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
18157 color mode is an integer number (it could be -1).
18158
8fe7d8c8
RS
181592003-09-22 Richard M. Stallman <rms@gnu.org>
18160
18161 * intervals.c (graft_intervals_into_buffer): Correct the main loop
18162 in the case where OVER is longer than UNDER.
18163
2f71b5ea
MY
181642003-09-22 Masatake YAMATO <jet@gyve.org>
18165
7146d1c1 18166 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 18167 `vertical_type'.
7146d1c1 18168
0c4da023
KS
181692003-09-21 Kim F. Storm <storm@cua.dk>
18170
18171 * frame.c (Vdefault_frame_scroll_bars): New variable.
18172 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
18173 (syms_of_frame): DEFVAR_LISP it, and initialize according to
18174 window-system default scroll bar position.
18175
b648413b
KS
18176 * window.c (Fwindow_scroll_bars): Doc fix.
18177
8f5b9e34
JD
181782003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18179
854c1a59 18180 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 18181
b0f23edf
RS
181822003-09-19 Richard M. Stallman <rms@gnu.org>
18183
18184 * atimer.h: Don't include lisp.h.
18185 (P_): Define it here (as well as elsewhere).
18186
18187 * print.c (Fprin1_to_string): Move the PRINTPREPARE
18188 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
18189
18190 * data.c (Fvariable_binding_locus): New function.
18191 (syms_of_data): defsubr it.
18192 (Flocal_variable_p): Delete duplicate call to indirect_variable.
18193
e1283999
DL
181942003-09-18 Dave Love <fx@gnu.org>
18195
ad5f3636
DL
18196 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
18197
e1283999
DL
18198 * process.c (Fnetwork_interface_info): Fix type error.
18199 (Fnetwork_interface_list): Doc fix.
18200 (read_process_output, read_process_output): Delete unused var.
18201
b8c7fd71
KS
182022003-09-17 Kim F. Storm <storm@cua.dk>
18203
18204 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
18205 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
18206 (Fnetwork_interface_info): Check that ifreq struct has required
18207 fields before accessing them; this requires that those fields are
18208 defined as macros, which may be too restrictive on some platforms,
18209 but it is better than failing on other platforms.
18210 (syms_of_process): Only defsubr above fns when included.
18211
11e0a411
DL
182122003-09-17 Dave Love <fx@gnu.org>
18213
18214 * unexalpha.c: Don't include varargs.h.
18215
e9c50801
KS
182162003-09-17 Kim F. Storm <storm@cua.dk>
18217
18218 * process.c (Fset_process_sentinel): Add sentinel to childp plist
18219 for network process.
18220 (socket_options): Add `:' prefix to option names. Add optbit field.
18221 (set_socket_option): Remove no_error arg and special handling of s < 0.
18222 Return 1<<optbit for known option, 0 for unknown.
18223 Do not interpret 0 as false for boolean option (only nil).
18224 Pass failed option and value to report_file_error.
7146d1c1 18225 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
18226 (Fset_network_process_option): New function to set just one option.
18227 (Fmake_network_process): Allow :coding arg to be a cons.
18228 Allow :server arg to be an integer specifying backlog size.
18229 Remove :options arg, and allow options to be specified directly
18230 as :KEY, VALUE pairs. Parse these options before binding socket.
18231 As before, :reuseaddr t is default for a server process, but this
18232 can now be disabled by specifying :reuseaddr nil.
18233 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
18234 (init_process): Availability of network options is now checked with
18235 simpler syntax (featurep 'make-network-process :OPTION); use loop to
18236 setup features.
18237 (syms_of_process): Fix defsubr's for the replaced functions.
18238
a0fc3644
DL
182392003-09-16 Dave Love <fx@gnu.org>
18240
18241 * Makefile.in: Depend on coding.h.
18242
6df2a645
KS
182432003-09-14 Kim F. Storm <storm@cua.dk>
18244
18245 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
18246 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
18247 (syms_of_process): Defsubr them.
18248
18249 * config.in: Regenerate.
7146d1c1
SM
18250
182512003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
18252
18253 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
18254 * m/news-r6.h (XUNMARK): Remove.
18255 * m/mips.h (XUNMARK): Remove.
18256 * m/mips-siemens.h (XUNMARK): Remove.
18257 * m/iris4d.h (XUNMARK): Remove.
18258 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
18259
0930c1a1
SM
182602003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18261
31003b9e
SM
18262 * lisp.h (VALBITS): Don't remove 1 for the markbit.
18263 (union Lisp_Object): Use unsigned int for types. Remove markbit.
18264 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
18265 (XTYPE): Use unsigned right-shift.
18266 (XMARKBIT, XMARK, XUNMARK): Remove.
18267
0930c1a1
SM
18268 * alloc.c (init_intervals, init_symbol, init_marker):
18269 Don't preallocate anything.
18270 (Fgarbage_collect, mark_object): Ignore the markbit.
18271
18272 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
18273
19bb0fcd 182742003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
18275
18276 * xdisp.c (pint2hrstr): New function.
18277 (decode_mode_spec): Add `%i' and `%I' specs.
18278 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
18279 for `mode-line-format'.
18280
03bb6a06
AS
182812003-09-07 Andreas Schwab <schwab@suse.de>
18282
18283 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
18284 avoid warning.
18285
a6eeaa81 182862003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 18287
0930c1a1 18288 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 18289
ed159bbf
KS
182902003-09-03 Kim F. Storm <storm@cua.dk>
18291
18292 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
18293 change (superseded by 2002-08-30 change); the default blink-off
18294 cursor is now again "no cursor".
18295
fe64a394
JR
182962003-09-01 Jason Rumney <jasonr@gnu.org>
18297
18298 * makefile.w32-in (alloca.o): Remove.
18299 (coding.o): Depend on intervals.h
18300 (emacs.o, bytecode.o): Depend on window.h
18301
c0175e24
DL
183022003-09-01 Dave Love <fx@gnu.org>
18303
18304 * Makefile.in (alloca.o): Remove commands.
18305 (coding.o): Depend on intervals.h composite.h window.h.
18306 (emacs.o): Depend on window.h keyboard.h keymap.h.
18307 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
18308 (bytecode.o): Depend on window.h.
18309
a24d4cb2
JR
183102003-08-31 Jason Rumney <jasonr@gnu.org>
18311
4bc2315e
JR
18312 * w32term.c (w32_per_char_metric): Allow cached metrics to be
18313 returned even when font_type is unknown.
18314
a24d4cb2
JR
18315 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
18316
9d35adc7
JD
183172003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18318
18319 * xterm.c (x_term_init): Initialize new fields in x_display_info.
18320
18321 * xterm.h (struct x_display_info): Add red/green/blue_bits and
18322 *_offset.
18323
18324 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
18325 calculate pixel value.
18326
6f68b035
GM
183272003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
18328
0930c1a1
SM
18329 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
18330 Don't tell redisplay display is accurate when it's actually been
18331 paused for pending input.
6f68b035 18332
4828b4d7
RS
183332003-08-29 Richard M. Stallman <rms@gnu.org>
18334
18335 * dispnew.c (adjust_glyph_matrix): Call window_box
18336 whenever W is nonzero.
18337
18338 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18339 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 18340 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
18341 Use indirect_variable to trace thru variable aliases.
18342
18343 * config.in: Updated.
18344
18345 * callint.c (Fcall_interactively): Save and restore
18346 Vthis_command, Vthis_original_command, real_this_command,
18347 and current_kboard->Vlast_command.
18348
18349 * abbrev.c (Fexpand_abbrev): Insert before deleting.
18350
e019878d
GM
183512003-08-29 Gerd Moellmann <gerd@gnu.org>
18352
18353 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
18354
85478bc6
KH
183552003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
18356
0930c1a1 18357 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
18358 (decode_coding_sjis_big5): Likewise.
18359
07ce82d3
JR
183602003-08-27 Jason Rumney <jasonr@gnu.org>
18361
d3703de3
JR
18362 * w32.c (sys_pipe): Protect against file descriptor overflow.
18363
ee4a01d1
JR
18364 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
18365
07ce82d3
JR
18366 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
18367
a64387ee 183682003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
18369
18370 * xfns.c (Vgtk_version_string): New variable.
18371 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
18372
a6eeaa81 183732003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 18374
0930c1a1 18375 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 18376
5459e42a
EZ
18377 * Makefile.in (msdos.o): Depend on intervals.h.
18378
0930c1a1 18379 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 18380
231d6cfb
JD
183812003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18382
18383 * xterm.h (struct x_display_info): New fields: client_leader_window
18384 and Xatom_wm_client_leader.
18385
18386 * xterm.c (x_initialize): Move call to x_session_initialize to ...
18387 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
18388
18389 * xsmfns.c (create_client_leader_window): New function.
18390 (x_session_initialize): Call create_client_leader_window, take
18391 dpyinfo as argument.
18392
18393 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
18394
18395 * Makefile.in (xsmfns.o): Add more depenedencies.
18396
afa88464
DL
183972003-08-21 Dave Love <fx@gnu.org>
18398
18399 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
18400
f730033e
KH
184012003-08-21 Kenichi Handa <handa@m17n.org>
18402
18403 * term.c (term_init): Fix previous change; don't rely on the
18404 length of `buffer' if TERMINFO is defined.
18405
6dca786c
DL
184062003-08-20 Dave Love <fx@gnu.org>
18407
18408 * atimer.h: Include lisp.h.
18409
18410 * lisp.h (EMACS_LISP_H): New.
18411 (popup_activated_flag): Don't declare.
18412
18413 * alloca.c: Some merging with gnulib. Change logic and doc
18414 concerning (x)malloc/(x)free -- no longer Emacs-specific.
18415 [DO_BLOCK_INPUT]: Don't include lisp.h.
18416 (xmalloc, xfree): Declare.
18417 (malloc): Don't declare.
18418
0930c1a1 18419 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
18420 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
18421 atimer.h, blockinput.h.
18422
18423 * alloc.c (lisp_align_malloc): Change type of `aligned'.
18424
78819ebb 18425 * alloca.s: Remove.
6dca786c 18426
3a06a6d9
RS
184272003-08-19 Gerd Moellmann <gerd@gnu.org>
18428
18429 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
18430 use -lncurses.
18431
18432 * term.c (term_init): Use a buffer of size 4096 for tgetent since
18433 FreeBSD returns something longer than 2044. Abort if the end of
18434 the buffer is overwritten.
18435
27eeee55
MB
184362003-08-19 Miles Bader <miles@gnu.org>
18437
18438 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
18439
2f297815
GM
184402003-08-19 Gerd Moellmann <gerd@gnu.org>
18441
f4446bbf
GM
18442 * alloc.c (lisp_align_malloc): Check for memory full when
18443 allocating ablocks, which also avoids freeing a pointer into an
18444 ablocks structure.
18445
18446 * puresize.h (BASE_PURESIZE): Increase to 1100000.
18447
0930c1a1 18448 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 18449
0e7d7aae
RS
184502003-08-16 Richard M. Stallman <rms@gnu.org>
18451
18452 * editfns.c (Fencode_time): Doc fix.
18453
184542003-08-16 David Ponce <david@dponce.com>
18455
18456 * fileio.c (Fwrite_region): Fix conditional expression to issue
18457 the right message.
18458
b6189c3b 184592003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
18460
18461 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 18462 Set default value to 1.
0e7d7aae 18463
5d551295
KH
184642003-08-15 Kenichi Handa <handa@m17n.org>
18465
18466 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
18467 what autoscaled.
18468 (best_matching_font): Once we find a better scalable font, set
18469 non_scalable_has_exact_height_p to 1.
18470 (try_font_list): Call try_alternative_families to try any family
18471 with the given registry.
18472
1661e56b
AS
184732003-08-09 Andreas Schwab <schwab@suse.de>
18474
f29181dc
AS
18475 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
18476
1661e56b
AS
18477 * print.c (print_string): Fix printing of multibyte string with
18478 nontrivial printcharfun.
18479
465aa50a
JD
184802003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18481
18482 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
18483
18484 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
18485
e430e5ba
KH
184862003-07-31 Kenichi Handa <handa@m17n.org>
18487
18488 * process.c (read_process_output): Return the actually read bytes
18489 instead of the result of decoding.
18490
97e7188e
KH
184912003-07-31 Kenichi Handa <handa@m17n.org>
18492
18493 * xterm.h (struct x_bitmap_record): New member have_mask.
18494
18495 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
18496 to 0.
18497 (x_create_bitmap_from_file): Likewise.
18498 (x_destroy_bitmap): Check have_mask member before freeing a mask.
18499 (x_destroy_all_bitmaps): Likewise.
18500 (x_create_bitmap_mask): Set have_mask member to 1.
18501
b53094d6
RS
185022003-07-30 Richard M. Stallman <rms@gnu.org>
18503
18504 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
18505
631f2082
JD
185062003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18507
18508 * gtkutil.c (xg_mark_data): Update calls to mark_object.
18509
c855f2ca
RS
185102003-07-29 Richard M. Stallman <rms@gnu.org>
18511
18512 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
18513 Conditionalize XIM code on HAVE_XIM.
18514
18515 * fns.c (Fclear_string): New function.
18516 (syms_of_fns): defsubr it.
18517
b6189c3b 185182003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 18519
0930c1a1 18520 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 18521
29ea8ae9
SM
185222003-07-22 Stefan Monnier <monnier@cs.yale.edu>
18523
18524 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
18525
18526 * buffer.c (delete_all_overlays): New function.
18527 * buffer.h (delete_all_overlays): Declare.
18528 * coding.c (run_pre_post_conversion_on_str):
18529 * print.c (temp_output_buffer_setup):
18530 * fileio.c (Finsert_file_contents):
18531 * minibuf.c (get_minibuffer): Use it.
18532
1dd7ccf2
AC
185332003-07-22 Andrew Choi <akochoi@shaw.ca>
18534
18535 * unexmacosx.c (unexec_regions_sort_compare):
18536 (unexec_regions_merge): New functions. Sort and merge unexec
18537 regions before dumping them.
18538
f57bd967
DL
185392003-07-22 Dave Love <fx@gnu.org>
18540
18541 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
18542
7cdee936
SM
185432003-07-21 Stefan Monnier <monnier@cs.yale.edu>
18544
18545 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
18546 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
18547 MARKBIT as the gcmarkbit for strings.
18548
e50886d3
RS
185492003-07-21 Richard M. Stallman <rms@gnu.org>
18550
18551 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
18552
29ea8ae9 18553 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
18554 (syms_of_fns): Corresponding change.
18555
18556 * alloc.c (syms_of_alloc): Doc fixes.
18557
185582003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
18559
18560 * s/netbsd.h: Use -Wl syntax.
18561
fdc39b59
RS
185622003-07-17 Richard M. Stallman <rms@gnu.org>
18563
18564 * xterm.c (xim_initialize): Redo 6/24 change.
18565
9c53385f
SM
185662003-07-15 Stefan Monnier <monnier@cs.yale.edu>
18567
18568 * buffer.c (copy_overlays): Use EMACS_INT for positions.
18569 (Fswitch_to_buffer): Don't signal an error when switching to the same
18570 buffer in a dedicated window.
18571
18572 * alloc.c: Use bitmaps for cons, as was done for floats.
18573 (init_float, init_cons): Let the normal code allocate the first block.
18574 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
18575 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
18576 New macros.
18577 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
18578 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
18579 (live_cons_p): Check the pointer is not past the `conses' array.
18580 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
18581 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
18582 (survives_gc_p): Use CONS_MARKED_P and simplify.
18583 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
18584
dde13196
PE
185852003-07-13 Paul Eggert <eggert@twinsun.com>
18586
18587 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
18588 puts it into BSS instead, at least on Solaris 8 and 9.
18589 This is a valid optimization, and it may occur on other platforms,
18590 so Emacs should not assume that initializing a static variable to
18591 zero puts it into data.
18592 * alloc.c (pure, staticvec):
18593 Initialize these arrays to nonzero, so that they're not
18594 put into BSS by that optimization.
18595
a801bc34
SM
185962003-07-13 Stefan Monnier <monnier@cs.yale.edu>
18597
18598 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
18599 (lisp_align_malloc): Use posix_memalign is available.
18600 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
18601 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
18602 for consistency. Update users.
18603
0c8b2afa
RS
186042003-07-13 Richard M. Stallman <rms@gnu.org>
18605
18606 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
18607
668c2ab0
JB
186082003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
18609
9dd28cae 18610 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
668c2ab0
JB
18611 and use the Gtk+ function gtk_window_icon_from_file if available.
18612
18613 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
18614 handle mask of bitmaps.
18615 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
18616 mask property.
18617 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
18618
18619 * xterm.h (xg_set_icon): New function.
18620
800bebe3
RS
186212003-07-12 Paul Eggert <eggert@twinsun.com>
18622
18623 * unexelf.c (unexec): Consider a section to precede the .bss
18624 section if its addresses overlap that of .bss.
18625
69e38995
RS
186262003-07-12 Richard M. Stallman <rms@gnu.org>
18627
18628 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
18629
18630 * config.in (HAVE_CRTIN): Add #undef.
18631 (INLINE): Really inline only if OPTIMIZE is defined.
18632
18633 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
18634 END_FILES_1.
18635 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 18636 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
18637
18638 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
18639 (TERMINFO): Define.
18640 (LIBS_TERMCAP): Define.
18641 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
18642
18643 * xfns.c: Include libpng/png.h instead of png.h.
18644
f1d0c238
AS
186452003-07-11 Andreas Schwab <schwab@suse.de>
18646
18647 * buffer.c (modify_overlay): Update prototype.
18648 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
18649 Likewise.
18650
5f6bf5fe
SM
186512003-07-09 Stefan Monnier <monnier@cs.yale.edu>
18652
18653 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
18654 (struct interval): Move to intervals.h.
18655 (struct Lisp_Marker): Use EMACS_INT for position info.
18656 (forward_point): Remove prototype of defunct function.
18657 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
18658 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
18659 (syms_of_textprop, set_text_properties): Remove prototypes that are
18660 already in intervals.h.
18661
18662 * intervals.h (struct interval): Move from lisp.h.
18663 Use EMACS_INT for position and size info.
18664
18665 * coding.c: Include intervals.h for Fset_text_properties.
18666
18667 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
18668 position and length information.
18669
2765b457
SM
186702003-07-09 Stefan Monnier <monnier@cs.yale.edu>
18671
18672 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
18673 position and length information.
18674
2410d73a
SM
186752003-07-09 Stefan Monnier <monnier@cs.yale.edu>
18676
18677 Change overlays_after and overlays_before so the overlays themselves
18678 are linked into lists, rather than using cons cells. After all each
18679 Lisp_Misc already occupies 5 words, so we can add a `next' field to
18680 Lisp_Overlay for free and save up one cons cell per overlay (not
18681 to mention one indirection when traversing the list of overlay).
18682
18683 * lisp.h (struct Lisp_Overlay): New field `next'.
18684
18685 * buffer.h (struct buffer): Change overlays_before and overlays_after
18686 from Lisp lists of overlays to pointers to overlays.
18687
18688 * buffer.c (overlay_strings, recenter_overlay_lists):
18689 Fix typo in eassert in last commit.
18690 (unchain_overlay): New function.
18691 (add_overlay_mod_hooklist): Use AREF.
18692 (copy_overlays, reset_buffer, overlays_at, overlays_in)
18693 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
18694 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
18695 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
18696 (report_overlay_modification, evaporate_overlays, init_buffer_once):
18697 Adjust to new type of overlays_(before|after).
18698
18699 * alloc.c (mark_object): Mark the new `next' field of overlays.
18700 (mark_buffer): Manually mark the overlays_(after|before) fields.
18701
18702 * coding.c (run_pre_post_conversion_on_str):
18703 * editfns.c (overlays_around):
18704 * xdisp.c (load_overlay_strings):
18705 * fileio.c (Finsert_file_contents):
18706 * indent.c (current_column):
18707 * insdel.c (signal_before_change, signal_after_change):
18708 * intervals.c (set_point_both):
18709 * print.c (temp_output_buffer_setup): Use new type for
18710 overlays_(before|after).
18711
04812929
SM
187122003-07-08 Stefan Monnier <monnier@cs.yale.edu>
18713
18714 * buffer.c (report_overlay_modification): Don't run hooks while
18715 traversing the list of overlays.
18716
18717 * buffer.h (struct buffer): Use an int for overlay_center.
18718 (overlays_at, evaporate_overlays, recenter_overlay_lists)
18719 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
18720
18721 * buffer.c (reset_buffer, recenter_overlay_lists)
18722 (adjust_overlays_for_insert, adjust_overlays_for_delete)
18723 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
18724 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
18725 (overlays_at, evaporate_overlays, recenter_overlay_lists)
18726 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
18727
18728 * xdisp.c (fast_find_position): Remove unused var.
18729
18730 * cmds.c (Qexpand_abbrev): New sym.
18731 (syms_of_cmds): Initialize it.
18732 (internal_self_insert): Use it to call expand-abbrev.
18733
2e7ecf15
KS
187342003-07-09 Kim F. Storm <storm@cua.dk>
18735
f9711de4 18736 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 18737 was configured with --without-xim.
42f81f64 18738 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 18739
c6de56a0
RS
187402003-07-07 Richard M. Stallman <rms@gnu.org>
18741
18742 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
18743
18744 * alloc.c (Fgarbage_collect): Doc fix.
18745
b6189c3b 187462003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
18747
18748 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
18749
bfe1a3f7
SM
187502003-07-06 Stefan Monnier <monnier@cs.yale.edu>
18751
04812929
SM
18752 * minibuf.c (read_minibuf): UNGCPRO before returning.
18753 (Ftry_completion, Fall_completions): Doc fix.
18754
bfe1a3f7
SM
18755 * alloc.c (live_float_p): Check that p is not past the `floats' array,
18756 now that `floats' is not the last element of the struct any more.
18757
ee79d1aa
JR
187582003-07-06 Jason Rumney <jasonr@gnu.org>
18759
18760 * w32term.h (ClipboardSequence_Proc): New type.
18761
18762 * w32fns.c (clipboard_sequence_fn): New variable.
18763 (globals_of_w32fns): Initialize it.
18764
18765 * w32select.c (last_clipboard_sequence_number): New variable.
18766 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
18767 number if possible.
18768
49723c04
SM
187692003-07-06 Stefan Monnier <monnier@cs.yale.edu>
18770
4698665f
SM
18771 * m/amdx86-64.h (MARKBIT):
18772 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
18773 MARKBIT and ARRAY_MARK_FLAG any more.
18774
18775 * m/hp800.h (XSETMARKBIT):
18776 * m/sr2k.h (XSETMARKBIT):
18777 * lisp.h (XSETMARKBIT): Remove unused macro.
18778
49723c04
SM
18779 * lisp.h (mark_object): Change prototype.
18780
18781 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
18782 (last_marked): Change accordingly.
18783 (mark_interval, mark_maybe_object, mark_maybe_pointer)
18784 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
18785 (mark_buffer): Update calls to mark_object.
18786
18787 * bytecode.c (mark_byte_stack):
18788 * fns.c (sweep_weak_table):
18789 * keyboard.c (mark_kboards): Update calls to mark_object.
18790
1d660eca
JR
187912003-07-06 Jason Rumney <jasonr@gnu.org>
18792
18793 * alloc.c (struct ablock): Only include padding when there is some.
18794
618b5ae4
SM
187952003-07-04 Stefan Monnier <monnier@cs.yale.edu>
18796
18797 * alloc.c (ALIGN): Add casts to simplify usage.
18798 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
18799 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
18800 (struct ablock, struct ablocks): New types.
18801 (free_ablock): New global var.
18802 (lisp_align_malloc, lisp_align_free): New functions.
18803 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
18804 (struct float_block): Reorder and add gcmarkbits.
18805 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
18806 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
18807 (init_float, make_float): Use lisp_align_malloc.
18808 (free_float, live_float_p): Don't use `type' any more.
18809 (make_float): Use FLOAT_UNMARK to access to mark bit.
18810 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
18811 Use FLOAT_MARKED_P to access the mark bit.
18812 (pure_alloc): Simplify use of ALIGN.
18813 (mark_object): Use FLOAT_MARK to access the mark bit.
18814 (gc_sweep): Use new macros to access the float's mark bit.
18815 (init_alloc_once): Init free_ablock.
18816
18817 * lisp.h (struct Lisp_Float): Remove unused field `type'.
18818
3ef06d12
SM
188192003-06-27 Stefan Monnier <monnier@cs.yale.edu>
18820
18821 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
18822 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
18823 (allocate_buffer): Move.
18824 (string_bytes): Don't mask markbit of `size_byte'.
18825 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
18826 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
18827 Use the `size' field of buffers (rather than the `name' field) for
18828 the mark bit, as is done for all other vectorlike objects.
18829 Use the new macros to access the mark bit of vectorlike objects.
18830
e81043aa
RS
188312003-06-26 Richard M. Stallman <rms@gnu.org>
18832
18833 * puresize.h (BASE_PURESIZE): Increment base size.
18834
18835 * xdisp.c (fast_find_position): Enable Gerd's new definition.
18836
18837 * xterm.c (xim_initialize): Undo previous change.
18838
2d0834cc
SM
188392003-06-26 Stefan Monnier <monnier@cs.yale.edu>
18840
18841 * alloc.c (survives_gc_p): Simplify.
18842
18843 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
18844
18845 * window.c (Fset_window_dedicated_p): Simplify.
18846 (display_buffer_1): Don't raise the win from which minibuf was entered.
18847 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
18848 (Fminibuffer_selected_window): Simplify.
18849
18850 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
18851
18852 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
18853 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
18854
18855 * insdel.c (check_markers, adjust_markers_for_delete)
18856 (adjust_markers_for_insert, adjust_markers_for_replace)
18857 (prepare_to_modify_buffer, RESTORE_VALUE):
18858 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
18859 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
18860 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
18861 * alloc.c (Fmake_marker, free_marker, gc_sweep):
18862 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
18863 * editfns.c (save_excursion_restore, transpose_markers):
18864 * window.c (delete_window):
18865 * xdisp.c (message_dolog): Update for new types.
18866
d54ae3d8
JD
188672003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18868
a5f696ac
JD
18869 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
18870 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 18871 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
18872
18873 * frame.c (make_frame): Initialize default_face_done_p.
18874
18875 * frame.h (struct frame): Add default_face_done_p.
18876
d54ae3d8
JD
18877 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
18878 will be defined.
18879
2336fe58
SM
188802003-06-25 Stefan Monnier <monnier@cs.yale.edu>
18881
18882 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
18883 Initialize the new field `gcmarkbit'.
18884 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
18885 (mark_interval_tree): Don't mark the tree separately from the nodes.
18886 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
18887 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
18888 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
18889
18890 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
18891 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
18892 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
18893 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
18894 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
18895
bcea31c2
DL
188962003-06-24 Dave Love <fx@gnu.org>
18897
18898 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
18899
18900 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
18901 from gnulib.
18902
2601f59e
RS
189032003-06-21 Richard M. Stallman <rms@gnu.org>
18904
18905 * fileio.c (Fwrite_region): Alternate messages
18906 for append and partial write.
18907
18908 * keyboard.c (read_key_sequence): When converting upcase fn key to
18909 downcase, update fkey and keytran so `backspace' gets translated.
18910
18911 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
18912
18913 * process.c (wait_reading_process_input): Don't signal SIGIO
18914 in batch mode.
18915
b5d2c621
KH
189162003-06-17 Kenichi Handa <handa@m17n.org>
18917
18918 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
18919 composite.h.
18920
18921 * xselect.c: Don't include charset.h, coding.h, composite.h.
18922 (Qforeign_selection): New variable.
18923 (syms_of_xselect): Intern and static it.
18924 (selection_data_to_lisp_data): Return a unibyte string made from
18925 data with `foreign-selection' text property.
18926
6793bc63
SM
189272003-06-15 Stefan Monnier <monnier@cs.yale.edu>
18928
18929 * termhooks.h (EVENT_INIT): New macro.
18930
18931 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
18932
18933 * alloc.c (mark_kboards): Move to keyboard.c.
18934
18935 * keyboard.c (record_asynch_buffer_change, read_avail_input):
18936 * xterm.c (x_dispatch_event):
18937 * xmenu.c (find_and_call_menu_selection):
18938 * xdisp.c (handle_tool_bar_click):
18939 * w32menu.c (menubar_selection_callback):
18940 * sysdep.c (kbd_input_ast, read_input_waiting):
18941 * msdos.c (dos_rawgetc):
18942 * macterm.c (mac_check_for_quit_char):
18943 * macmenu.c (menubar_selection_callback):
18944 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
18945 data to kbd_buffer_store_event.
18946
b3ea810c
KS
189472003-06-15 Kim F. Storm <storm@cua.dk>
18948
18949 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 18950 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 18951
b8f75eda
KG
189522003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
18953
18954 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
18955
ba92ce48
KH
189562003-06-12 Kenichi Handa <handa@m17n.org>
18957
18958 * fileio.c (Fwrite_region): Save and restore restriction.
18959
b80263be
DL
189602003-06-12 Dave Love <fx@gnu.org>
18961
18962 * alloca.c (alloca): Declare arg as size_t.
18963
6793bc63
SM
18964 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
18965 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 18966
b23c0a83
DL
189672003-06-11 Dave Love <fx@gnu.org>
18968
18969 * search.c (shrink_regexp_cache): Use xrealloc.
18970 (syms_of_search): Use xmalloc.
18971
700e47c2
KS
189722003-06-10 Kim F. Storm <storm@cua.dk>
18973
18974 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
18975 Adjust phys_cursor.x to be relative to window box, rather than
18976 text area before checking -- to ensure cursor is redrawn when
18977 exposing window.
18978 Note: This also fixes a similar (older) bug if display margins
18979 are present.
18980
f11aa0b2
KH
189812003-06-06 Kenichi Handa <handa@m17n.org>
18982
18983 * coding.c (encoding_buffer_size): If coding->type is
18984 coding_type_ccl, double magnification on CRLF encoding.
18985
3d143690
JR
189862003-06-06 Jason Rumney <jasonr@gnu.org>
18987
18988 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
18989 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
18990
18991 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
18992 Mac too.
18993
f16205ca
DL
189942003-06-05 Dave Love <fx@gnu.org>
18995
b23c0a83
DL
18996 * strftime.c: Merge changes from gnulib.
18997
f16205ca
DL
18998 * mktime.c (__mktime_internal): Merge changes from gnulib
18999 involving year 69 and dst2.
19000
19001 Changes to merge with gnulib version and be consistent with the
19002 autoconf test:
19003
6793bc63
SM
19004 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
19005 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
19006 [HAVE_LOCALE_H]: Include locale.h.
19007 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
19008
9b87a0bc
KS
190092003-06-05 Kim F. Storm <storm@cua.dk>
19010
19011 * window.c (coordinates_in_window): Convert X and Y to window
19012 relative coordinates inside mode-line and header-line parts.
19013 Convert X and Y to margin area relative coordinates inside left
19014 and right display margin parts.
19015
5a8a15ec
JR
190162003-06-05 Jason Rumney <jasonr@gnu.org>
19017
19018 * w32fns.c (add_system_logical_colors_to_map): New function.
19019 (Fx_open_connection): Use it.
19020
01ed8ff1
SM
190212003-06-04 Stefan Monnier <monnier@cs.yale.edu>
19022
19023 * process.c (allocate_pty): Revert part of the previous patch.
19024 (Faccept_process_output): Simplify.
19025
b427b65d
JR
190262003-06-04 Jason Rumney <jasonr@gnu.org>
19027
19028 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
19029
19030 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
19031 (lispy_mouse_wheel_names): Remove.
19032 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
19033 Always define drag_and_drop_syms.
19034
19035 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
19036 WHEEL_EVENT events.
19037
914a8c47
SM
190382003-06-03 Stefan Monnier <monnier@cs.yale.edu>
19039
01ed8ff1
SM
19040 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
19041
914a8c47
SM
19042 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
19043
adcb132c
JD
190442003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19045
19046 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
19047 menu item label.
19048
be781fa7
RS
190492003-06-03 Richard M. Stallman <rms@gnu.org>
19050
19051 * window.c (Fwindow_edges): Doc fix.
19052 (Fwindow_pixel_edges, Fwindow_inside_edges)
19053 (Fwindow_inside_pixel_edges): New functions.
19054 (syms_of_window): defsubr them.
19055
19056 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
19057 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
19058
914a8c47
SM
190592003-06-02 Stefan Monnier <monnier@cs.yale.edu>
19060
19061 * dispnew.c (Fsit_for): Don't lie about the number of args.
19062
5b07197a
DL
190632003-06-02 Dave Love <fx@gnu.org>
19064
19065 * callproc.c: Use HAVE_FCNTL_H, not USG5.
19066 (syms_of_callproc) <process-environment>: Doc fix.
19067
19068 * doc.c: Use HAVE_FCNTL_H, not USG5.
19069
19070 * xfaces.c (font_rescale_ratio): Fix for K&R.
19071
19072 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
19073
19074 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
19075
19076 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
19077
19078 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
19079 (xg_create_frame_widgets): Use ENCODE_UTF_8.
19080
d7107586 19081 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
19082
19083 * xmenu.c (ENCODE_MENU_STRING): New.
19084 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
19085 Use it.
19086
19087 * coding.h (ENCODE_UTF_8): New.
19088 (Qutf_8): Declare.
19089
19090 * coding.c (Qutf_8): New.
19091 (syms_of_coding): Intern it.
19092
19093 * fns.c: Doc fixes.
19094
7335b336
KH
190952003-06-02 Kenichi Handa <handa@m17n.org>
19096
19097 * buffer.c (Fset_buffer_multibyte): Fix previous change.
19098
914a8c47
SM
190992003-06-01 Stefan Monnier <monnier@cs.yale.edu>
19100
19101 * lread.c (openp): Make sure STR is a string.
19102
9862c135
JR
191032003-06-01 David Ponce <david@dponce.com>
19104
cab27d04 19105 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
19106 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
19107
19108 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
19109 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
19110 (discard_mouse_events): Discard WHEEL_EVENT events too.
19111 (lispy_wheel_names, wheel_syms): New.
19112 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 19113 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 19114 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
19115
19116 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
19117 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
19118 WHEEL_EVENT events.
19119
f984e73e
JPW
191202003-05-31 John Paul Wallington <jpw@gnu.org>
19121
19122 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
19123 timer are in lisp/emacs-lisp.
19124
1efcd78f
KH
191252003-05-31 Kenichi Handa <handa@m17n.org>
19126
458c8af4
KH
19127 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
19128 region when a buffer is changed to unibyte.
19129
1efcd78f
KH
19130 * charset.h (VALID_LEADING_CODE_P): New macro.
19131 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
19132
778e2804
KH
19133 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
19134 is nonzero, accept multibyte form of eight-bit-control chars.
19135 (decode_composition_emacs_mule): Likewise.
19136 (decode_coding_emacs_mule): Likewise.
19137 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
19138 multibyte form of eight-bit-control chars.
19139
19140 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
19141 (Finsert_file_contents): If coding-system-for-read is bound to
19142 Qauto_save_coding, use the coding system emacs-mule with special
19143 setting for recovering a file.
19144 (choose_write_coding_system): On auto saving, use the coding
19145 system emacs-mule with special setting for auto saving.
19146 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
19147
034060e4
KH
191482003-05-30 Kenichi Handa <handa@m17n.org>
19149
19150 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
19151 properly before calling ccl_driver.
19152
778e2804 19153 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 19154
cab27d04 19155 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
19156 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
19157 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
19158
595f5aa5
GM
191592003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
19160
19161 * xfaces.c (realize_default_face): Do not abort if lface is
19162 non-existent - reverts change from 2003-05-19.
19163
103e0180
KH
191642003-05-29 Kenichi Handa <handa@m17n.org>
19165
19166 * coding.c (decode_coding_iso2022): Pay attention to the byte
19167 sequence of CTEXT extended segment, and retain those bytes as is.
19168
191692003-05-28 Kenichi Handa <handa@m17n.org>
19170
cab27d04 19171 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
19172 of CODING_REPLACEMENT_CHARACTER.
19173 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
19174 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
19175 check this flag on encoding.
cab27d04
SM
19176 (encode_coding_sjis_big5):
19177 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
19178 (Fset_terminal_coding_system_internal):
19179 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
19180 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
19181
19182 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
19183 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19184 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
19185
ff6a3bfb 191862003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 19187
ff6a3bfb
RS
19188 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
19189
19190 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 19191
1963c428
KS
191922003-05-28 Kim F. Storm <storm@cua.dk>
19193
19194 * xdisp.c (expose_window): Fix error in calculation of
19195 window relative coordinates of area to redisplay.
19196
2b5d4601
JR
191972003-05-27 Jason Rumney <jasonr@gnu.org>
19198
19199 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
19200
1c64a4a2
JB
192012003-05-27 David Ponce <david@dponce.com>
19202
19203 Handle W32 mouse wheel events as mouse click events, like in X.
19204
19205 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
19206 MOUSE_WHEEL_EVENT anymore.
19207
19208 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
19209 Scrolling down/up the mouse wheel is respectively mapped to mouse
19210 button 4 and 5.
19211 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
19212 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
19213 WM_MOUSEWHEEL events.
19214
2d031b89
AS
192152003-05-27 Andreas Schwab <schwab@suse.de>
19216
20464fdf
AS
19217 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
19218
2d031b89
AS
19219 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
19220 partially visible line.
19221
19222 * alloc.c (Fgarbage_collect): Fix last change.
19223
97bc76d4
JPW
192242003-05-26 John Paul Wallington <jpw@gnu.org>
19225
19226 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
19227
56613f06
SM
192282003-05-25 Stefan Monnier <monnier@cs.yale.edu>
19229
19230 * window.c (Fset_window_buffer): Add type of `keep_margins'.
19231 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
19232
19233 * window.h (window_box_text_cols): Declare.
19234
19235 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
19236 (x_draw_vertical_border): Remove unused var `f'.
19237
19238 * xfaces.c (build_scalable_font_name): Remove `unused var
19239 pixel_size' warning.
19240
19241 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
19242
19243 * unexelf.c (unexec): Remove `unused var n' warning.
19244
19245 * strftime.c (my_strftime_localtime_r): Remove `defined but
19246 unused' warning.
19247
19248 * process.c (allocate_pty): Remove `unused var stb' and
19249 `cp might be used uninitialized' warnings.
19250
19251 * dispnew.c (mode_line_string): Remove unused var `f'.
19252
19253 * coding.c (find_safe_codings): Remove unused var `i'.
19254
19255 * bytecode.c (Fbyte_code): Remove `unused val' warning.
19256
19257 * buffer.c (Fkill_buffer): Remove unused var `list'.
19258
19259 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
19260
93421a1f
JD
192612003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19262
19263 * frame.c (make_frame): Condition want_fullscreen with
19264 HAVE_WINDOW_SYSTEM.
19265
c4b8aebc
JB
192662003-05-25 Juanma Barranquero <lektu@terra.es>
19267
19268 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
19269 (Fwindow_scroll_bars): Fix typo in docstring.
19270
0416870b
KS
192712003-05-24 Kim F. Storm <storm@cua.dk>
19272
19273 The following changes serve several purposes:
19274
19275 1) Swap the position of fringes and display margins in windows, i.e.
19276 the fringes are now displayed between the margins and the text area
19277 (by default).
19278
19279 2) Allow fringe and scroll bar parameters to be set per-buffer and
19280 per-window (like display margins). Such settings are now stored
19281 in window configurations, preserved when frames are resized, and
9018a88e 19282 copied when windows are split vertically or horizontally.
0416870b
KS
19283 Several bugs related to display margins have been fixed.
19284
19285 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 19286
0416870b 19287 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5e1a6e32 19288 rather than FRAME_WIDTH (FRAME_FONT (f)).
0416870b
KS
19289
19290 5) Introduce a consistent naming of variables, members and macros
19291 depending on whether their value is measured in pixels or in
19292 canonical columns/lines. Pixel dimensions are named *_width and
19293 *_height, while canonical columns/lines are named *_cols and
19294 *_lines. Pixel positions are named *_x and *_y, while column/line
19295 positions are named *_col and *_line.
19296
19297 6) Consolidate more of the X, W32, and MAC gui code by moving
19298 common data into struct frame, and generalize it for the non-gui
19299 case by using suitable defaults.
19300
19301 7) Cleanup and consolidate the macros controlling frame and window
19302 layout into frame.h and window.h, and generalize the use of the
19303 various window_box_* functions (enhanced to handle the new fringe
19304 position and the per-window fringe and scroll bar settings).
19305
19306 * frame.h (struct frame): Rename members height to text_lines,
19307 width to text_cols, window_height to total_lines, window_width to
19308 total_cols, new_height to new_text_lines, new_width to
19309 new_text_cols. All uses changed.
19310 (struct frame): New members which consolidate common members of
19311 x_output, w32_output, and mac_output structures: left_pos,
19312 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
19313 win_gravity, size_hint_flags, border_width, internal_border_width,
19314 line_height, fringe_cols, left_fringe_width, right_fringe_width,
19315 want_fullscreen. All uses changed.
19316 (struct frame): New member column_width contaning the canonical
19317 column width, analogue to line_height. All uses changed.
19318 (struct frame): Rename members scroll_bar_pixel_width to
19319 config_scroll_bar_width, and scroll_bar_cols to
19320 config_scroll_bar_cols. All uses changed.
19321 (struct frame): New member scroll_bar_actual_width which
19322 consolidates and renames the vertical_scroll_bar_extra member of
19323 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 19324 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
19325 from x/w32/macterm.h files. All uses changed. Also change code
19326 which referred to f->output_data...->pixel_height.
cab27d04 19327 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 19328 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 19329 which referred to f->output_data...->pixel_width.
cab27d04 19330 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 19331 Also change code which referred to f->height.
cab27d04 19332 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
19333 Also change code which referred to f->width.
19334 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
19335 to update new_text_lines and new_text_cols members directly.
cab27d04 19336 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 19337 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 19338 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
19339 FRAME_SCROLL_BAR_COLS. All uses changed.
19340 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 19341 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
19342 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
19343 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
19344 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
19345 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
19346 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
19347 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
19348 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
19349 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
19350 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
19351 Unconditionally return line_height member (it now has proper value
19352 also for non-window frames).
19353 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
19354 return new column_width member (rather than the default font width).
19355 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 19356 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
19357 from x/w32/macterm.h files. Unconditionally return corresponding
19358 member of frame structure (they now have proper values also for
19359 non-window frames).
cab27d04 19360 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
19361 Calculate return value from left and right widths.
19362 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
19363 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
19364 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
19365 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
19366 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
19367 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
19368 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 19369 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 19370 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 19371 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 19372 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 19373 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 19374 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 19375 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 19376 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 19377 consolidated from x/mac/w32term.h.
cab27d04 19378 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 19379 consolidated from x/mac/w32term.h.
cab27d04 19380 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 19381 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 19382 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
19383 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
19384
19385 * window.h (struct window): Rename members left to left_col,
19386 top to top_line, height to total_lines, width to total_cols,
19387 left_margin_width to left_margin_cols, right_margin_width to
19388 right_margin_cols, orig_height to orig_total_lines, orig_top to
19389 orig_top_line. All uses changed.
19390 (struct window): New members left_fringe_width, right_fringe_width,
19391 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
19392 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
19393 New macros primarily used to simplify other macros.
19394 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
19395 referred to XINT (w->width).
19396 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
19397 referred to XINT (w->height).
19398 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
19399 referred to XINT (w->width) * canon_x_unit.
19400 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
19401 referred to XINT (w->height) * canon_y_unit.
19402 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
19403 referred to XINT (w->left).
cab27d04 19404 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
19405 all uses and code that referred to XINT (w->left) + XINT (w->width).
19406 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
19407 referred to XINT (w->top).
19408 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
19409 referred to XINT (w->top) + XINT (w->height).
19410 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
19411 referred to XINT (w->left) * canon_x_unit.
19412 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
19413 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
19414 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
19415 referred to XINT (w->top) * canon_y_unit.
19416 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
19417 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
19418 (WINDOW_LEFTMOST_P): New macro.
cab27d04 19419 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 19420 All uses changed.
cab27d04 19421 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 19422 All uses changed.
cab27d04 19423 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
19424 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
19425 Do not exclude left fringe width.
cab27d04 19426 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
19427 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
19428 Do not exclude fringe widths.
19429 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
19430 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
19431 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
19432 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
19433 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
19434 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
19435 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
19436 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
19437 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
19438 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
19439 New macros. Change code which referenced corresponding
19440 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
19441 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
19442 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
19443 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
19444 allow per-window scroll-bar settings.
19445 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
19446 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
19447 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
19448 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
19449 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
19450 FRAME_SCROLL_BAR_WIDTH.
19451 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 19452 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 19453 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 19454 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 19455 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 19456 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 19457 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
19458 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
19459 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
19460 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
19461 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
19462 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 19463 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 19464 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
19465 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
19466 (window_from_coordinates): Update prototype.
19467 (Fset_window_buffer): Update EXFUN.
19468 (set_window_buffer): Update prototype.
9018a88e 19469
0416870b 19470 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 19471 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
19472 changed.
19473 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
19474 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
19475 internal_border_width is now set to 0 for non-window frames.
19476 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
19477 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
19478 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
19479 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
19480 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
19481 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
19482 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
19483 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
19484 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 19485 Move to window.h and renamed [see window.h changes].
0416870b
KS
19486 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
19487 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
19488 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
19489 Use WINDOW_TOTAL_LINES.
0416870b
KS
19490 (frame_update_line_height): Remove prototype.
19491
19492 * buffer.h (struct buffer): Rename members measured in columns:
19493 left_margin_width to left_margin_cols, right_margin_width to
19494 right_margin_cols. All uses changed.
19495 New members left_fringe_width, right_fringe_width,
19496 fringes_outside_margins for per-buffer fringe settings.
19497 New members scroll_bar_width and vertical_scroll_bar_type for
19498 per-buffer scroll bar settings.
19499
19500 * buffer.c (init_buffer_once): Set buffer_defaults and
19501 buffer_local_flags for new buffer-local variables
19502 left_fringe_width, right_fringe_width, fringes_outside_margins,
19503 scroll_bar_width, and vertical_scroll_bar_type.
19504 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
19505 default-* variables for them.
19506
19507 * dispnew.c: Make (many) trivial substitutions for renamed and
19508 new macros in dispextern.h, frame.h and window.h.
19509 (mode_line_string): No need to adjust width for mode lines, as it
19510 is already adjusted by the caller.
19511 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 19512
0416870b
KS
19513 * frame.c: Make (many) trivial substitutions for renamed and
19514 new macros in dispextern.h, frame.h and window.h.
19515 (make_frame): Initialize left_fringe_width, right_fringe_width,
19516 fringe_cols, scroll_bar_actual_width, border_width,
19517 internal_border_width, column_width, line_height, x_pixels_diff,
19518 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
19519 members with values suitable for a non-window frames.
19520
19521 * gtkutil.c: Make (many) trivial substitutions for renamed and
19522 new macros in dispextern.h, frame.h and window.h.
9018a88e 19523
0416870b
KS
19524 * indent.c: Make (few) trivial substitutions for renamed and
19525 new macros in dispextern.h, frame.h and window.h.
19526
19527 * keyboard.c: Make (many) trivial substitutions for renamed and
19528 new macros in dispextern.h, frame.h and window.h.
19529 (make_lispy_event): Use window positions returned from
19530 window_from_coordinates when constructing the lisp event for
19531 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
19532 (incorrect) values locally.
19533 (make_lispy_movement): Use window positions returned from
19534 window_from_coordinates when constructing the lisp event, rather
19535 than calculating (incorrect) values locally.
19536
19537 * scroll.c: Make (some) trivial substitutions for renamed and
19538 new macros in dispextern.h, frame.h and window.h.
19539
19540 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
19541 scroll-bars.
19542
19543 * sysdep.c: Make (few) trivial substitutions for renamed and
19544 new macros in dispextern.h, frame.h and window.h.
19545
19546 * term.c: Make (some) trivial substitutions for renamed and
19547 new macros in dispextern.h, frame.h and window.h.
19548
19549 * widget.c: Make (few) trivial substitutions for renamed and
19550 new macros in dispextern.h, frame.h and window.h.
19551
19552 * window.c: Make (many) trivial substitutions for renamed and
19553 new macros in dispextern.h, frame.h and window.h.
19554 (make_window): Initialize new members
19555 left_margin_cols, right_margin_cols, left_fringe_width,
19556 right_fringe_width, fringes_outside_margins, scroll_bar_width,
19557 and vertical_scroll_bar_type.
cab27d04 19558 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 19559 and per-window fringes and scroll-bars.
0416870b 19560 Fix bug related to incorrectly adjusting coordinates by
9018a88e 19561 frame's internal_border_width (the effect normally negible since
0416870b
KS
19562 the internal_border_width is typically 0 or 1 pixel, but very
19563 noticeable for an internal_border_width of e.g. 25 pixels).
19564 Upon successful return (other than ON_NOTHING), the coordinates
19565 are now always properly converted to window relative for the
19566 given display element.
19567 (window_from_coordinates): Add new parameters wx and wy to
19568 return the window relative x and y position in the returned
19569 window and part. A null arg means, don't return the position.
19570 All callers changed.
19571 (adjust_window_margins): New function which may reduce the width
19572 of the display margins if a window's text area is too small after
19573 resizing or splitting windows.
19574 (size_window): Fix bug that did not account for display margin
19575 widths when checking the minimum width of a window; use
19576 adjust_window_margins.
19577 (set_window_buffer): Call Fset_window_fringes and
19578 Fset_window_scroll_bars to setup per-window elements.
19579 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
19580 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
19581 (e.g. after splitting a window or resizing the frame).
19582 All callers changed.
0416870b
KS
19583 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
19584 (Fsplit_window): Duplicate original window's display margin,
19585 fringe, and scroll-bar settings; then call Fset_window_buffer with
19586 KEEP_MARGINS non-nil. This fixes a bug which caused a split
19587 window to only preserve the display margins in one of the windows.
5e1a6e32 19588 When splitting horizontally, call adjust_window_margins on both
0416870b 19589 windows to ensure that the text area of the new windows is non too
f9711de4 19590 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
19591 width of the split window was less than the width of the display
19592 margins.
cab27d04 19593 (window_box_text_cols): Rename from window_internal_width.
9018a88e 19594 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
19595 Fix bug that caused vertical separator to be subtracted also on
19596 window frames. Fix another bug that did not reduce the returned
19597 value by the columns used for display margins.
19598 (window_scroll_line_based): Fix bug related to scrolling too much
19599 when display margins are present (implicitly fixed by the fix to
19600 window_box_text_cols).
19601 (scroll_left, scroll_right): Fix bug related to scrolling too far
19602 by default when display margins are present (implicitly fixed by
19603 the fix to window_box_text_cols).
19604 (struct saved_window): Rename members left to left_col, top to
19605 top_line, width to total_cols, height to total_lines, orig_top to
19606 orig_top_line, orig_height to orig_total_lines. All uses changed.
19607 New members left_margin_cols, right_margin_cols,
19608 left_fringe_width, right_fringe_width, fringes_outside_margins,
19609 scroll_bar_width, and vertical_scroll_bar_type for saving
19610 per-window display elements.
19611 (Fset_window_configuration): Restore display margins, fringes,
19612 and scroll bar settings. This fixes a bug which caused display
19613 margins to be discarded when saving and restoring a window
19614 configuration.
19615 (save_window_save): Save display margins, fringes, and scroll bar
19616 settings. This fixes a bug which caused display margins to be
19617 discarded when saving and restoring a window configuration.
19618 (Fset_window_margins): Do nothing if display margins are not
19619 really changed. Otherwise, call adjust_window_margins to ensure
19620 the text area doesn't get too narrow. This fixes a bug which
f9711de4 19621 could cause Emacs to trap if setting display margins wider than
0416870b
KS
19622 the width of the window.
19623 (Fset_window_fringes): New defun to allow user to specifically set
19624 this window's fringe widths and position vs. display margins.
cab27d04 19625 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
19626 (Fset_window_scroll_bars): New defun to allow user to specifically
19627 set this window's scroll bar width and position.
19628 (Fwindow_scroll_bars): New defun to return window's actual scroll
19629 bar settings.
19630 (compare_window_configurations): Also compare display margins,
19631 fringes, and scroll bar settings.
19632 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
19633
19634 * xdisp.c: Make (many) trivial substitutions for renamed and
19635 new macros in dispextern.h, frame.h and window.h.
19636 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 19637 and new fringe vs. display margin position. Note that returned
0416870b
KS
19638 value is no longer guaranteed to be a whole multiple of the frame
19639 column width, since per-window fringes may now be any width.
19640 (window_box_left_offset): New function like window_box_left, but
19641 value is relative to left border of window (rather than frame).
19642 (window_box_right_offset): New function like window_box_right,
19643 but value is relative to left border of window.
19644 (window_box_left): Adapt to per-window fringes and scroll bars,
19645 and new fringe vs. display margin position. Simplify by using
19646 WINDOW_LEFT_EDGE_X and window_box_left_offset.
19647 (window_box): Allow null args for unnecessary return values;
19648 change/simplify relevant callers.
19649 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
19650 and new fringe vs. display margin position.
19651 Use window_box_left_offset and window_box_right_offset
0416870b 19652 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
19653 scroll bars, and new fringe vs. display margin position.
19654 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
19655 (draw_fringe_bitmap): Rework to handle per-window fringes and new
19656 fringe vs. display margin position.
19657 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
19658 (redisplay_window): Adapt to per-window scroll bars.
19659 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
19660 bars, and new fringe vs. display margin position.
19661 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 19662 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
19663 bars, and new fringe vs. display margin position. Fix bug which
19664 increased total width of full_width rows by width of scroll bars
19665 although window's total width already includes that.
19666 (x_fix_overlapping_area): Simplify using window_box_left_offset.
19667 (expose_area): Simplify using window_box_left_offset.
19668 (x_draw_vertical_border): Handle per-window scroll bar settings,
19669 mixing windows with left, right and no scroll bars.
19670
19671 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
19672 where it's used in x_list_fonts (for clarity).
19673 (frame_update_line_height): Remove unused function; functionality
19674 is now done directly when setting the default font in x_set_font.
19675
19676 * xfns.c: Make (many) trivial substitutions for renamed and
19677 new macros in dispextern.h, frame.h and window.h.
19678
19679 * xmenu.c: Make (some) trivial substitutions for renamed and
19680 new macros in dispextern.h, frame.h and window.h.
19681
19682 * xterm.h (struct x_output): Move members left_pos, top_pos,
19683 border_width, pixel_height, pixel_width, line_height,
19684 internal_border_width, vertical_scroll_bar_extra,
19685 left_fringe_width, right_fringe_width, fringe_cols,
19686 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19687 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
19688 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19689 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19690 (PIXEL_WIDTH, PIXEL_HEIGHT)
19691 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 19692 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
19693 frame.h and renamed [see frame.h changes].
19694 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19695 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 19696 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 19697 and renamed [see frame.h changes].
9018a88e 19698
0416870b
KS
19699 * xterm.c: Make (several) trivial substitutions for renamed and
19700 new macros in dispextern.h, frame.h and window.h.
cab27d04 19701 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
19702 (scroll_run): Adapt to new fringe position.
19703 (glyph_rect): Use window coordinates returned from
19704 window_from_coordinates rather than frame_to_window_pixel_xy.
19705 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19706 scroll-bars.
19707 (handle_one_xevent): Simplify a USE_GTK conditional.
19708 (x_clip_to_row): Remove superfluous whole_line_p arg and code
19709 (fringes are now inside margins, i.e. always in the clipping area).
19710 All callers changed.
19711 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19712 directly, then call compute_fringe_widths. Don't call
19713 frame_update_line_height.
19714
19715 * w32term.h (struct w32_output): Move members left_pos, top_pos,
19716 border_width, pixel_height, pixel_width, line_height,
19717 internal_border_width, vertical_scroll_bar_extra,
19718 left_fringe_width, right_fringe_width, fringe_cols,
19719 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19720 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
19721 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19722 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19723 (PIXEL_WIDTH, PIXEL_HEIGHT)
19724 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 19725 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
19726 frame.h and renamed [see frame.h changes].
19727 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19728 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 19729 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 19730 and renamed [see frame.h changes].
9018a88e 19731
0416870b
KS
19732 * w32term.c: Make (several) trivial substitutions for renamed and
19733 new macros in dispextern.h, frame.h and window.h.
cab27d04 19734 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
19735 (glyph_rect): Use window coordinates returned from
19736 window_from_coordinates rather than frame_to_window_pixel_xy.
19737 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19738 scroll-bars.
19739 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
19740 (fringes are now inside margins, i.e. always in the clipping area).
19741 All callers changed.
19742 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19743 directly, then call compute_fringe_widths. Don't call
19744 frame_update_line_height.
19745
19746 * w32console.c: Make (few) trivial substitutions for renamed and
19747 new macros in dispextern.h, frame.h and window.h.
19748
19749 * w32fns.c: Make (many) trivial substitutions for renamed and
19750 new macros in dispextern.h, frame.h and window.h.
19751
19752 * w32menu.c: Make (few) trivial substitutions for renamed and
19753 new macros in dispextern.h, frame.h and window.h.
19754
19755 * macterm.h (struct mac_output): Move members left_pos, top_pos,
19756 border_width, pixel_height, pixel_width, line_height,
19757 internal_border_width, vertical_scroll_bar_extra,
19758 left_fringe_width, right_fringe_width, fringe_cols,
19759 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19760 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
19761 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19762 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19763 (PIXEL_WIDTH, PIXEL_HEIGHT)
19764 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 19765 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
19766 frame.h and renamed [see frame.h changes].
19767 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19768 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 19769 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 19770 and renamed [see frame.h changes].
9018a88e 19771
0416870b
KS
19772 * macterm.c: Make (several) trivial substitutions for renamed and
19773 new macros in dispextern.h, frame.h and window.h.
cab27d04 19774 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
19775 (glyph_rect): Use window coordinates returned from
19776 window_from_coordinates rather than frame_to_window_pixel_xy.
19777 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19778 scroll-bars.
19779 (x_clip_to_row): Remove superfluous whole_line_p arg and code
19780 (fringes are now inside margins, i.e. always in the clipping area).
19781 All callers changed.
19782 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19783 directly, then call compute_fringe_widths. Don't call
19784 frame_update_line_height.
19785
19786 * macfns.c: Make (several) trivial substitutions for renamed and
19787 new macros in dispextern.h, frame.h and window.h.
9018a88e 19788 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
19789
19790 * macmenu.c: Make (few) trivial substitutions for renamed and
19791 new macros in dispextern.h, frame.h and window.h.
19792
19793 * msdos.h (struct x_output): Remove members left_pos, top_pos,
19794 and line_height, and use corresponding new members in struct
19795 frame. All uses changed.
19796 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
19797 superseeded by corresponding macros in frame.h.
19798
19799 * msdos.c: Make (several) trivial substitutions for renamed and
19800 new macros in dispextern.h, frame.h and window.h.
19801 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 19802 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
19803 (internal_terminal_init): No need to initialize line_height here;
19804 it now defaults to 1.
19805
9018a88e
SM
198062003-05-24 Stefan Monnier <monnier@cs.yale.edu>
19807
19808 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
19809 dropping `down' events.
19810
016bd3c0
AS
198112003-05-24 Andreas Schwab <schwab@suse.de>
19812
19813 * coding.c (find_safe_codings): Fix last change.
19814
4dacadcc
TTN
198152003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
19816
19817 * xfns.c (x_window): Fix typo from 2003-05-21 change.
19818
319830ce
SM
198192003-05-23 Stefan Monnier <monnier@cs.yale.edu>
19820
9018a88e
SM
19821 * xdisp.c (display_mode_element): Increase max depth.
19822 Simplify the error handling code. Use a different error string
19823 for the case where we hit the depth limit.
19824
319830ce
SM
19825 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
19826
19827 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
19828
198292003-05-21 Stefan Monnier <monnier@cs.yale.edu>
19830
19831 * intervals.c (get_local_map): Don't get char-property of previous
19832 point any more: get_pos_property already does it and better.
19833
c67de8ba
DL
198342003-05-21 Dave Love <fx@gnu.org>
19835
19836 [Merged from unicode branch.]
19837
19838 * xfns.c (x_window, x_window): Use use_xim.
19839
19840 * xterm.c (use_xim): Initialize.
19841 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19842 (x_term_init): Maybe set use_xim.
19843
19844 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19845
edd3ff1d
JR
198462003-05-21 Jason Rumney <jasonr@gnu.org>
19847
19848 * unexw32.c (_start): Remove _fmode initialization.
19849
19850 * emacs.c (main) [WINDOWSNT]: Move it here.
19851
463f55ee
DL
198522003-05-20 Dave Love <fx@gnu.org>
19853
19854 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
19855
af253914
RS
198562003-05-19 Richard M. Stallman <rms@gnu.org>
19857
19858 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
19859 as value for QCfont attribute.
19860 (realize_default_face): lface should already exist; crash if not.
19861 Specify 0 for FORCE_P when calling set_lface_from_font_name.
19862
19863 * frame.c (Fignore_event): Doc fix.
19864
1d211019
KH
198652003-05-19 Kenichi Handa <handa@m17n.org>
19866
19867 * coding.c (decode_coding_string): Handle post-read-conversion
19868 even if the coding doesn't require decoding.
19869
4dd68254
RS
198702003-05-18 Richard M. Stallman <rms@gnu.org>
19871
19872 * callproc.c (Fcall_process_region): Doc fix.
19873
14d87dc9
SM
198742003-05-17 Stefan Monnier <monnier@cs.yale.edu>
19875
deca5d96
SM
19876 * lread.c (Fload): Print a message if package is obsolete.
19877
14d87dc9
SM
19878 * window.c (Fselect_window): Add optional `norecord' arg.
19879 (select_window_1): Fold into Fselect_window.
19880 (select_window_norecord): New function.
19881 (temp_output_buffer_show): Use it. Preserve current buffer.
19882
19883 * window.h (Fselect_window): Update declaration.
19884
19885 * window.c (delete_window, Fother_window, Fset_window_configuration):
19886 * minibuf.c (read_minibuf):
19887 * macterm.c (x_new_focus_frame):
19888 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
19889 * callint.c (Fcall_interactively):
19890 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
19891
19892 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
19893
78f52183
DK
198942003-05-17 David Kastrup <dak@gnu.org>
19895
19896 * process.c (read_process_output): Back out change from 2003-03-09.
19897
14d87dc9
SM
198982003-05-17 Stefan Monnier <monnier@cs.yale.edu>
19899
19900 * editfns.c (get_pos_property): Don't assume that `object' = nil.
19901
19902 * textprop.c (text_property_stickiness): New arg `buffer'.
19903
19904 * intervals.h (text_property_stickiness): New arg `buffer'.
19905 (get_pos_property): Declare.
19906
19907 * intervals.c (get_local_map): Use get_pos_property, to obey
19908 stickiness and empty overlays.
19909 (create_root_interval, graft_intervals_into_buffer): Use BEG.
19910 (merge_properties, intervals_equal, merge_properties_sticky):
19911 Use XCAR, XCDR.
19912 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
19913
1fd1cc2f
RS
199142003-05-17 Richard M. Stallman <rms@gnu.org>
19915
4f9f637a
RS
19916 * minibuf.c (read_minibuf): If buffer is empty, record the default
19917 in the history.
19918 (Fminibuffer_complete_word): When deleting the overlap, take account
19919 of its real position.
19920
19921 * fns.c (map_char_table): Fix previous change.
19922
1fd1cc2f
RS
19923 * syntax.c (find_defun_start):
19924 When open_paren_in_column_0_is_defun_start,
19925 return beginning of buffer.
19926
19927 * lisp.h (map_char_table): Declare added arg.
19928
19929 * fns.c (map_char_table): New arg TABLE gets the master table.
19930 All calls changed.
19931 Process default and inheritance, resorting to Faref if necessary.
19932
19933 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19934 (Faccessible_keymaps): Pass new arg to map_char_table.
19935
19936 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
19937
19938 * casetab.c (set_case_table): Pass new arg to map_char_table.
19939
19940 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
19941
19942 * lisp.h (specbinding_func): New typedef.
19943 (struct specbinding): Use specbinding_func, to put the `volatile'
19944 in the right place.
19945
19946 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
19947 to avoid GCC warning.
14d87dc9 19948
b6189c3b 199492003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 19950
14d87dc9 19951 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 19952
35fb885d
SM
199532003-05-15 Stefan Monnier <monnier@cs.yale.edu>
19954
19955 * keyboard.c (apply_modifiers): Don't fill the other cache.
19956
9a274fbd
SM
199572003-05-14 Stefan Monnier <monnier@cs.yale.edu>
19958
c55b5fad
SM
19959 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
19960
9a274fbd
SM
19961 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
19962 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
19963 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
19964 (Fset_window_configuration, Fcurrent_window_configuration)
19965 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
19966 (Fpos_visible_in_window_p, mark_window_cursors_off)
19967 (window_internal_height, window_internal_width, Frecenter)
19968 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
19969 (replace_buffer_in_all_windows, init_window_once, init_window)
19970 (syms_of_window, keys_of_window): Move from lisp.h.
19971 * lisp.h: Move window.c declarations to window.h.
19972
19973 * bytecode.c: Include window.h.
19974 * emacs.c: Include window.h.
19975
14d87dc9 19976 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
19977 (keyremap): Add `parent' field.
19978 (keyremap_step): Use it. Remove `parent' argument.
19979 (read_key_sequence): Setup and use the new `parent' field.
19980
fd93e331
SM
199812003-05-11 Stefan Monnier <monnier@cs.yale.edu>
19982
19983 * keyboard.c (adjust_point_for_property): Ensure termination.
19984
1c4001a1
SM
199852003-05-10 Stefan Monnier <monnier@cs.yale.edu>
19986
19987 * keyboard.c (follow_key): Remove dead variable `did_meta'.
19988 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
19989 duplicated handling of function-key-map and key-translation-map
19990 in read_key_sequence.
19991 (read_key_sequence): Use them.
19992
19993 * keyboard.c (adjust_point_for_property): Try harder to move point
19994 to the non-sticky end of an invisible property.
19995
19996 * xdisp.c (single_display_prop_intangible_p): Make `space' display
19997 property intangible as well.
19998
780379b1
AS
199992003-05-10 Andreas Schwab <schwab@suse.de>
20000
20001 * xmenu.c (single_menu_item): Change last parameter to void* to
20002 avoid warning.
20003
ca2de342
RS
200042003-05-09 Richard M. Stallman <rms@gnu.org>
20005
20006 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
20007 Bind Qinhibit_modification_hooks to t so there will be no GC.
20008 Rename local `tem' to `save_deactivate_mark'.
20009
20010 * eval.c (specpdl_ptr): Declare volatile.
20011 (unbind_to): Copy the whole binding and decrement specpdl_ptr
20012 before doing the work of unbinding it.
20013
20014 * lisp.h (struct specbinding): Declare elements volatile.
20015 (specpdl_ptr): Declare volatile.
20016
20017 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
20018
20019 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
20020 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
20021
347003be
DL
200222003-05-08 Dave Love <fx@gnu.org>
20023
20024 * coding.c (Vlast_coding_system_used): Doc fix.
20025
5adcec23
JR
200262003-05-07 Jason Rumney <jasonr@gnu.org>
20027
20028 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
20029 when system does not support them.
20030
5fe3b8a4
SM
200312003-05-05 Stefan Monnier <monnier@cs.yale.edu>
20032
20033 * fileio.c (Qwrite_region_annotate_functions): New var.
20034 (build_annotations): Use it to process the global part of the hook.
20035 (syms_of_fileio): Init and staticpro it.
20036
20037 * keyboard.c (safe_run_hooks_error): Display a message instead of
20038 silently ignoring the error.
20039
200402003-05-03 Stefan Monnier <monnier@cs.yale.edu>
20041
20042 * keyboard.c (input_available_signal): Mark static.
20043 (menu_bar_items): Use map_keymap.
20044 (menu_bar_one_keymap): Remove.
20045 (menu_bar_item): Adjust arglist (for use in map_keymap).
20046 Properly hide a second binding when not both are keymaps.
20047
20048 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
20049 (single_keymap_panes): Use it and map_keymap.
20050 (single_menu_item): Use skp as well.
20051
20052 * keymap.h (map_keymap_function_t): New type.
20053 (map_keymap): Declare.
20054
20055 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
20056 (map_keymap_call, Fmap_keymap): New functions.
20057 (syms_of_keymap): Defsubr map-keymap.
20058
4b1b4443
JD
200592003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20060
20061 * gtkutil.c (create_dialog, make_widget_for_menu_item)
20062 (make_menu_item, create_menus, xg_update_menu_item): Don't call
20063 ..._with_mnemonic functions for menu items.
20064
1f816871
KH
200652003-05-01 Kenichi Handa <handa@m17n.org>
20066
20067 * coding.c (coding_system_accept_latin_extra_p): Delete this
20068 function.
20069 (find_safe_codings): Pay attention to
20070 the property tranlsation-table-for-encode of each codings.
20071 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
20072
5ed6ba5b
SM
200732003-05-01 Stefan Monnier <monnier@cs.yale.edu>
20074
20075 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
20076
32c06229
SM
200772003-04-30 Stefan Monnier <monnier@cs.yale.edu>
20078
20079 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
20080
20081 * lisp.h (CHECK): Wrap args in parenthesis.
20082 (specbind): Fix doc: symbol = Qnil is not supported any more.
20083
20084 * bytecode.c (Fbyte_code) <unwind-protect>:
20085 Use Fprogn rather than 0 and Qnil.
20086
20087 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
20088 `double', and `triple' modifiers as well.
20089
ed3c3314
RS
200902003-04-30 Richard M. Stallman <rms@gnu.org>
20091
20092 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
20093
20094 * alloc.c (abort_on_gc): New variable.
20095 (Fgarbage_collect): Abort if abort_on_gc is set.
20096
20097 * lisp.h (abort_on_gc): Add decl.
20098
20099 * eval.c (Fsignal): Clear abort_on_gc.
20100
20101 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 20102 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
20103
20104 * xdisp.c (move_it_vertically_backward): Do the final big else
20105 even if nlines is 0.
20106
20107 * xdisp.c (redisplay_internal): Finish the per-frame loop
20108 even if redisplay is suspended by input.
20109
0b325c12
AC
201102003-04-24 Andrew Choi <akochoi@shaw.ca>
20111
20112 * macterm.c (x_list_fonts): Return all fonts that match if
20113 maxnames = -1.
20114
4e837cd0
KH
201152003-04-25 Kenichi Handa <handa@m17n.org>
20116
20117 * syntax.c (skip_chars): Fix previous change.
20118
9af7511a
KH
201192003-04-24 Kenichi Handa <handa@m17n.org>
20120
20121 * syntax.c (skip_chars): Make the code faster by using the common
20122 technique of *p, *stop, and *endp.
20123
e3b2c21f
JD
201242003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20125
20126 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 20127 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
20128 being updated.
20129
32c06229
SM
201302003-04-19 Stefan Monnier <monnier@cs.yale.edu>
20131
20132 * eval.c (Fapply): Undo last change and add a comment about why.
20133
c6464167
MB
201342003-04-18 Miles Bader <miles@gnu.org>
20135
20136 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
20137 pickier PARSE_MULTIBYTE_SEQ.
20138
e509f168
SM
201392003-04-17 Stefan Monnier <monnier@cs.yale.edu>
20140
20141 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
20142 Use XCDR, XCAR, CONSP.
20143 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
20144 (Fapply): Remove unnecessary GCPRO.
20145
20146 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
20147
20148 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
20149
20150 * buffer.h: Don't hardcode BEG==1.
20151
20152 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
20153
5ceea398
RS
201542003-04-16 Richard M. Stallman <rms@gnu.org>
20155
20156 * xdisp.c (try_window, try_window_reusing_current_matrix):
20157 When at end of window, set window_end_pos to Z-ZV.
20158
20159 * buffer.c (Foverlay_recenter): Doc fix.
20160
e509f168
SM
201612003-04-14 Stefan Monnier <monnier@cs.yale.edu>
20162
20163 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
20164
d243e605
AC
201652003-04-14 Andrew Choi <akochoi@shaw.ca>
20166
20167 * macterm.c (mac_check_for_quit_char): Don't check more often than
20168 once a second.
20169
6901b111
SM
201702003-04-11 Stefan Monnier <monnier@cs.yale.edu>
20171
20172 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
20173 specially, so that they can't hide an implicit switch-frame event.
20174 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
20175 (head_table): Use switch-frame as event_kind for select-window.
20176 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
20177
20178 * editfns.c (Fformat): Lisp_Object/int mixup.
20179 (format2): Remove unused var numargs.
20180
e301806f 201812003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 20182
6901b111 20183 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
20184 (Qafter_insert_file_set_coding): New variable.
20185 (syms_of_fileio): Initialize and staticpro it. Delete declaration
20186 for after-insert-file-adjust-coding-function.
20187 (Finsert_file_contents): Call Qafter_insert_file_set_coding
20188 instead of Vafter_insert_file_adjust_coding_function.
20189
38914424
KH
201902003-04-11 Kenichi Handa <handa@m17n.org>
20191
20192 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
20193
20194 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
20195 string. Callers changed.
20196
201972003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 20198
6901b111 20199 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 20200 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
20201 (Finsert_file_contents):
20202 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
20203 decode-format.
20204
f979dc05
JD
202052003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20206
20207 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
20208 get GtkAdjustment as widget now is a GtkRange.
20209
20210 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
20211 GtkRange to avoid memory leak.
20212
f8c6b4c2 202132003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 20214
50ebc53d
KH
20215 * xfaces.c (Vface_font_rescale_alist): New variable.
20216 (struct font_name): New member rescale_ratio.
20217 (font_rescale_ratio): New function.
6901b111 20218 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
20219 (better_font_p): On comparing point sized, pay attention to
20220 recale_ratio member of fonts.
20221 (build_scalable_font_name): Reflect font->rescale_ratio in the
20222 font name.
6901b111 20223 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 20224
cb98871c
KH
20225 * lread.c (read1): Before calling index, check if the 2nd
20226 arguemnt is in ASCII range.
20227
4773b8ca
RS
202282003-04-08 Richard M. Stallman <rms@gnu.org>
20229
b0ada147
RS
20230 * fileio.c (Ffile_symlink_p): Doc fix.
20231
20232 * editfns.c (Fformat): Translate positions of text properties
20233 in the format string to apply them to the result.
20234
4773b8ca
RS
20235 * fileio.c (Finsert_file_contents): Doc fix.
20236 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20237
202382003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 20239
4773b8ca
RS
20240 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
20241
e8f25745 202422003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 20243
e8f25745
ST
20244 * mac.c (init_mac_osx_environment): Switch libexec and bin so
20245 that self-contained application finds libexec files.
20246
f8c6b4c2 202472003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 20248
6901b111
SM
20249 * coding.c (code_convert_region_unwind):
20250 Set Vlast_coding_system_used to the argument.
2310d84c
KH
20251 (code_convert_region): If post-read-conversion function changed
20252 the value of last-coding-sytem, keep the new value in
20253 coding->symbol so that it won't be overridden.
20254 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
20255 (coding_system_accept_latin_extra_p): New function.
20256 (find_safe_codings): Pay attention to characters registered in
20257 latin-extra-code-table.
2310d84c 20258
39c9a034
TTN
202592003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
20260
20261 * Makefile.in (md5.o): Add missing dependency info.
20262
eb67c5d6
RS
202632003-04-06 Richard M. Stallman <rms@gnu.org>
20264
20265 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
20266
20267 * marker.c (verify_bytepos): New function.
20268
20269 * intervals.c (set_intervals_multibyte_1): When becoming
20270 multibyte, adjust right and left child sizes to a whole set of
20271 characters. If an interval gets zero total-length, delete it.
20272 If an interval consists of just its children, delete one of them.
20273
20274 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
20275 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 20276
52eb0373 20277 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
20278 All calls deleted.
20279 (lisp_malloc): Do the work here directly.
20280
b1f81fc5
JB
202812003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
20282
20283 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
20284 char tables.
20285
202862003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
20287
20288 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
20289 destructively change "%S" to "%s".
20290
774666fb
MB
202912003-04-03 Miles Bader <miles@gnu.org>
20292
20293 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
20294 always set.
20295
19c37f01
DL
202962003-04-01 Dave Love <fx@gnu.org>
20297
20298 * xfns.c (xpm_lookup_color): Grok "opaque".
20299
2f4b24c3
AC
203002003-03-31 Andrew Choi <akochoi@shaw.ca>
20301
20302 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
20303 parent window ID.
20304
20305 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
20306
20307 * macterm.h (struct mac_output): Define x_pixels_diff and
20308 y_pixels_diff.
b1f81fc5 20309
9443fcf6
JB
203102003-03-31 Juanma Barranquero <lektu@terra.es>
20311
20312 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
20313 blockinput.h and files included from it.
20314
e072891b
KS
203152003-03-31 Kim F. Storm <storm@cua.dk>
20316
20317 The following changes consolidates the common code related to
20318 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
20319 files into frame.c.
9443fcf6 20320
e072891b
KS
20321 * frame.c: Include blockinput.h.
20322 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
20323 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
20324 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
20325 related vars here.
20326 (struct frame_parm_table, frame_parms): New table for describing
20327 frame parameters and their associated Q-variable.
20328 The order of the parameters corresponds to the sequence of the
20329 frame_parm_handlers table in redisplay_interface.
20330 (x_fullscreen_move, x_set_frame_parameters)
20331 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
20332 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
20333 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20334 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
20335 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
20336 Generic functions for processing of frame parameters.
20337 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
20338 (display_x_get_resource, x_get_resource_string): Functions for
20339 generic access to X resources.
20340 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
20341 (x_default_parameter, Fx_parse_geometry): Functions for generic
20342 access to frame parameters.
6901b111
SM
20343 (x_figure_window_size): Generic calculation of frame size.
20344 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
20345 (syms_of_frame): Intern and staticpro frame parameter variables.
20346 Defvar_lisp Vx_resource_class and Vx_resource_name here.
20347 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 20348
e072891b
KS
20349 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
20350 parameter related vars defined in frame.c.
20351 (EMACS_CLASS): Define here.
20352 (enum FULLSCREEN_*): Define here.
20353 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
20354 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
20355 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
20356 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
20357 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
20358 (x_set_visibility, x_set_autoraise, x_set_autolower)
20359 (x_set_unsplittable, x_set_vertical_scroll_bars)
20360 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
20361 (x_figure_window_size): Add prototypes.
20362
20363 * dispextern.h (frame_parm_handler): New typedef.
20364 (struct redisplay_interface): New member frame_parm_handlers.
20365 (enum resource_types): Move declaration here.
20366 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
20367 (x_default_parameter): Add prototypes.
20368
20369 * window.c: Remove extern decl for frame parameter vars.
20370 (change_window_heights): New generic function;
20371 replaces x_change_window_heights. All users changed.
20372
20373 * window.h (change_window_heights): Add prototype.
20374
20375 * xfaces.c: Remove extern decl for frame parameter vars.
20376
20377 * xterm.h (EMACS_CLASS): Remove. Use generic define.
20378 (struct w32_display_info): Fix type of xrdb member.
20379 (enum FULLSCREEN_*): Remove.
20380 Remove prototypes for generic functions (in frame.h).
20381
20382 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20383 parameters now defined in frame.h and frame.c.
f63fd14e 20384 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
20385 (enum x_frame_parms): Remove (bogus, unused enum).
20386 (check_x_display_info): Make non-static (for frame.c).
20387 (struct x_frame_parm_table, x_frame_parms): Remove.
20388 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20389 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20390 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20391 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20392 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20393 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20394 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20395 Remove. Use generic functions instead.
20396 (enum resource_types): Remove.
20397 (x_set_scroll_bar_default_width): New global function (for frame.c).
20398 (Fx_create_frame): Depend on x_figure_window_size to add space for
20399 toolbar and setup size_hint_flags.
20400 (x_frame_parm_handlers): New table for redisplay_interface.
20401 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 20402
e072891b 20403 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 20404 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
20405 (x_redisplay_interface): Add x_frame_parm_handlers member.
20406
20407 * w32gui.h (XrmDatabase): New (dummy) typedef.
20408
20409 * w32term.h (EMACS_CLASS): Remove. Use generic define.
20410 (struct w32_display_info): Fix type of xrdb member.
20411 (enum FULLSCREEN_*): Remove.
20412 (x_fullscreen_adjust): Remove prototype.
20413
20414 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20415 parameters now defined in frame.h and frame.c.
f63fd14e 20416 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
20417 (enum x_frame_parms): Remove (bogus, unused enum).
20418 (check_x_display_info): Make non-static (for frame.c).
20419 (struct x_frame_parm_table, x_frame_parms): Remove.
20420 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20421 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20422 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20423 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20424 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20425 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20426 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20427 Remove. Use generic functions instead.
20428 (enum resource_types): Remove.
20429 (x_set_scroll_bar_default_width): New global function (for frame.c).
20430 (Fx_create_frame): Depend on x_figure_window_size to add space for
20431 toolbar and setup size_hint_flags.
20432 (w32_frame_parm_handlers): New table for redisplay_interface.
20433 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 20434
e072891b 20435 * w32term.c: Remove unnecessary extern declarations.
52eb0373 20436 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
20437 (x_redisplay_interface): Add w32_frame_parm_handlers member.
20438
20439 * w32reg.c (x_get_string_resource): Use XrmDatabase.
20440
20441 * macgui.h (XrmDatabase): New (dummy) typedef.
20442
20443 * macterm.h (EMACS_CLASS): Remove.
20444 (struct mac_display_info): Add xrdb member.
20445 (struct mac_output): Add want_fullscreen member.
20446
20447 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20448 parameters now defined in frame.h and frame.c.
f63fd14e 20449 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
20450 (check_x_display_info): Make non-static (for frame.c).
20451 (struct x_frame_parm_table, x_frame_parms): Remove.
20452 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20453 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20454 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20455 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20456 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20457 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20458 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20459 Remove. Use generic functions instead.
20460 (enum resource_types): Remove.
20461 (x_set_scroll_bar_default_width): New global function (for frame.c).
20462 (mac_frame_parm_handlers): New table for redisplay_interface.
20463 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 20464
e072891b
KS
20465 * macterm.c: Remove unnecessary extern declarations.
20466 (x_redisplay_interface): Add mac_frame_parm_handlers member.
20467
3e6a560b
KS
20468 * Makefile.in (frame.o): Add dependency on blockinput.h and files
20469 included from it (atimer.h and systime.h).
20470
7b7b454e
AS
204712003-03-30 Andreas Schwab <schwab@suse.de>
20472
20473 * xdisp.c (x_insert_glyphs): Fix swapped width and height
20474 parameters for shift_glyphs_for_insert.
20475
20476 * macterm.c (x_redisplay_interface): Add missing entry for
20477 draw_vertical_window_border.
20478
beb402de
KG
204792003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
20480
20481 * fileio.c (Fexpand_file_name): In the no-handler case, after
20482 expanding, look again for a handler and invoke it. This is needed
20483 for filenames like "/foo/../user@host:/bar/../baz" -- the first
20484 expansion produces "/user@host:/bar/../baz" which needs to be
20485 expanded again for the finame result "/user@host:/baz".
20486
b676f356
JD
204872003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20488
20489 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
20490 of area to be redrawn for better performance.
20491
3c671a56
SM
204922003-03-28 Stefan Monnier <monnier@cs.yale.edu>
20493
20494 * xterm.c (take_vertical_position_into_account): Remove.
20495 (xt_action_hook): Call set_vertical_scroll_bar if needed.
20496 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
20497 (xm_scroll_callback, x_create_toolkit_scroll_bar)
20498 (x_set_toolkit_scroll_bar_thumb): Simplify.
20499 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
20500 (XTread_socket): Remove unused var.
20501 (x_make_frame_invisible): Replace goto with else.
20502
20503 * xdisp.c (set_vertical_scroll_bar): New fun.
20504 (redisplay_window): Use it.
20505
84f2e615
RS
205062003-03-26 Richard M. Stallman <rms@gnu.org>
20507
20508 * xdisp.c (update_tool_bar): Recompute tool bar if
20509 update_mode_lines is set. Set w->update_mode_line
20510 only if the tool bar contents actually change.
20511 (update_menu_bar): Undo previous change.
20512
70b6104c
JD
205132003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20514
5fd6f727
JD
20515 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
20516 (xg_frame_set_char_size): Calculate scroll bar width before frame
20517 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
20518 (xg_separator_p): Check for all documented separator types.
20519 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
20520 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
20521
70b6104c
JD
20522 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
20523 so tool bar gets updated.
20524
d9b36d19
SM
205252003-03-26 Stefan Monnier <monnier@cs.yale.edu>
20526
20527 * data.c (store_symval_forwarding): Re-instate part of the code
20528 that was deleted with too much enthusiasm.
20529
205302003-03-25 Stefan Monnier <monnier@cs.yale.edu>
20531
20532 * data.c (store_symval_forwarding): Delete special read-only
20533 hack for type == -1, since we now use ->constant instead.
20534 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
20535
20536 * buffer.c (overlays_in): Declare static.
20537 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
20538 `constant' field rather than the variable's `type' field.
20539
365fa1b3
AC
205402003-03-24 Andrew Choi <akochoi@shaw.ca>
20541
20542 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
20543
20544 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
20545
20546 * fns.c [MAC_OSX]: Do not redefine vector.
20547
20548 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
20549
20550 * macgui.h: Remove definition of No_Cursor.
20551
d9b36d19 20552 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
20553
20554 * xdisp.c: Define No_Cursor.
20555 (x_write_glyphs, notice_overwritten_cursor)
20556 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
20557 (note_mouse_highlight): Remove Mac-specific code.
20558 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 20559
c0bcce6f
JPW
205602003-03-24 John Paul Wallington <jpw@gnu.org>
20561
20562 * xdisp.c (redisplay_window): If mini window's buffer is not
20563 empty, then redisplay it like other windows.
20564
a526b96c
KS
205652003-03-23 Kim F. Storm <storm@cua.dk>
20566
20567 * w32term.c (w32_draw_window_cursor): Fix last change.
20568
37ab321e
KH
205692003-03-23 Kenichi Handa <handa@m17n.org>
20570
a526b96c
KS
20571 * alloc.c (make_string_from_bytes, make_specified_string):
20572 Add `const' for the arg CONTENTS.
37ab321e
KH
20573
20574 * lisp.h (make_string_from_bytes, make_specified_string):
20575 Prototypes adjusted.
20576
7863d625
JD
205772003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20578
14a56a1b 20579 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
fd4c9408 20580
7863d625
JD
20581 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
20582 (XG_SB_RANGE): New define.
20583
20584 * gtkutil.c (xg_fixed_handle_expose): New function.
20585 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
20586 expose events.
20587 (xg_update_scrollbar_pos): Take two more arguments, left and width
20588 of scroll bar including borders.
20589 Clear left and right part outside scroll bar separately as some
20590 themes have bars that are not an even number of pixels.
d9b36d19 20591 Don't set reallocate_redraws, don't call
7863d625
JD
20592 gdk_window_process_all_updates.
20593 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
20594 so no need to change it. Calculate size and value with XG_SB_RANGE.
20595
d9b36d19
SM
20596 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
20597 Pass left and width of scroll bar including borders to
7863d625
JD
20598 xg_update_scrollbar_pos.
20599
af0ad939
TTN
206002003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
20601
20602 * Makefile.in: Make sure space precedes end-of-line backslashes.
20603
b22139fd
KS
206042003-03-22 Kim F. Storm <storm@cua.dk>
20605
20606 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
20607 Add generic versions here. Remove system specific versions
20608 defined elsewhere.
20609
20610 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
20611 Add prototypes.
20612
6e6410cf
KS
20613 * xterm.h (STORE_NATIVE_RECT): New macro.
20614
5c9cc435
KS
206152003-03-21 Kim F. Storm <storm@cua.dk>
20616
00c64fab
SM
20617 * xdisp.c (get_glyph_string_clip_rect):
20618 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
20619
20620 * dispextern.h (struct redisplay_interface): Add active_p
20621 argument to draw_window_cursor member. All uses changed.
20622
acd37560
KS
206232003-03-21 Kim F. Storm <storm@cua.dk>
20624
20625 The following changes consolidate code related to writing and
20626 inserting glyphs, exposing frame, the tool bar, the mouse face,
20627 the output cursor, and help echo from xterm.c, w32term.c and
20628 macterm.c into xdisp.c. It also generalizes the use of the
20629 window_part enum instead of using numeric values throughout.
af0ad939 20630
acd37560
KS
20631 * xdisp.c: Consolidate gui-independent code here.
20632 Include keymap.h.
20633 (Qhelp_echo): Import.
20634 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
20635 (help_echo_string, help_echo_window, help_echo_object)
20636 (previous_help_echo_string, help_echo_pos): Declare here.
20637 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
20638 (estimate_mode_line_height): Define here. Handle windowing
20639 systems directly (without using estimate_mode_line_height_hook).
20640 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
20641 (update_window_cursor, update_cursor_in_window_tree)
20642 (fast_find_position, fast_find_string_pos)
20643 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
20644 (expose_area, expose_line, expose_overlaps, expose_window)
20645 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
20646 declared static as they are only used locally in xdisp.c.
20647 (draw_glyphs): Rename from x_draw_glyphs and make static.
20648 (tool_bar_item_info, notice_overwritten_cursor): Make static.
20649 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
20650 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 20651 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
20652 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
20653 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
20654 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
20655 (note_mouse_highlight, x_clear_window_mouse_face)
20656 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
20657 (x_intersect_rectangles): New generic functions for use by xdisp.c
20658 and GUI front-ends.
20659 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
20660 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
20661
20662 * dispextern.h (Display_Info): Generic typedef for *_display_info.
20663 (NativeRectangle): Generic typedef for rectangle type.
20664 (enum window_part): Move here from window.c.
20665 (struct redisplay_interface): New members flush_display_optional,
20666 define_frame_cursor, clear_frame_area, draw_window_cursor,
20667 draw_vertical_window_border, shift_glyphs_for_insert.
20668 Rename member clear_mouse_face to clear_window_mouse_face.
20669 (estimate_mode_line_height_hook): Remove hook.
20670 (auto_raise_tool_bar_buttons_p): Don't declare extern.
20671 (tool_bar_item_info): Remove prototype.
20672 (help_echo_string, help_echo_window, help_echo_object)
20673 (previous_help_echo_string, help_echo_pos)
20674 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
20675 (x_stretch_cursor_p, output_cursor): Declare extern.
20676 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
20677 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
20678 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
20679 (display_and_set_cursor, set_output_cursor, x_cursor_to)
20680 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
20681 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
20682 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
20683 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
20684 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
20685 Add prototypes.
20686 (mode_line_string, marginal_area_string): Fix prototypes.
20687
20688 * window.c (enum window_part): Move to dispextern.h.
20689 (coordinates_in_window): Use enum window_part member names
20690 instead of numbers to describe return value.
20691 (struct check_window_data): Change part member to window_part.
20692 (check_window_containing): Return window_part unaltered.
20693 (window_from_coordinates): Change part arg from int to enum
20694 window_part. Allow part arg to be null. All users changed.
20695
20696 * window.h (window_from_coordinates): Fix prototype.
20697
20698 * term.c (estimate_mode_line_height): Move to xdisp.c.
20699
20700 * keyboard.c (make_lispy_event): Use enum window_part.
20701
20702 * dispnew.c (mode_line_string, marginal_area_string): Use enum
20703 window_part instead of int in arg list. Users changed.
20704
20705 * xterm.h (No_Cursor): Declare as None for X.
20706 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 20707
acd37560
KS
20708 * xterm.c: Remove consolidated defines and code.
20709 (BETWEEN): Remove unused macro.
20710 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
20711 (x_define_frame_cursor, x_clear_frame_area)
20712 (x_draw_window_cursor): New X-specific functions for RIF.
20713 (x_redisplay_interface): Add new members.
20714
20715 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
20716
20717 * w32term.h (struct w32_output): Remove cross_cursor member.
20718
20719 * w32term.c: Remove consolidated defines and code.
20720 (BETWEEN): Remove unused macro.
20721 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
20722 (w32_define_frame_cursor, w32_clear_frame_area)
20723 (w32_draw_window_cursor): New W32-specific functions for RIF.
20724 (w32_redisplay_interface): Add new members.
20725
a64387ee 20726 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
20727 (XRectangle): Add X compatible rectangle type.
20728 (NativeRectangle): Declare as RECT for W32.
20729 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
20730
20731 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
20732
20733 * w32console.c: Remove consolidated defines and code.
af0ad939 20734
acd37560
KS
20735 * msdos.h (Display_Info): Add generic typedef.
20736
20737 * msdos.c: Remove consolidated defines and code.
20738 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
20739
20740 * macterm.h (struct mac_output): Replace member cross_cursor by
20741 hand_cursor.
20742 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
20743
20744 * macterm.c: Remove consolidated defines and code.
20745 (BETWEEN): Remove unused macro.
20746 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
20747 (mac_define_frame_cursor, mac_clear_frame_area)
20748 (mac_draw_window_cursor): New Mac-specific functions for RIF.
20749 (x_redisplay_interface): Add new members.
20750
20751 * macgui.h (No_Cursor): Define as 0 for Mac.
20752 (XRectangle): Add X compatible rectangle type.
20753 (NativeRectangle): Declare as Rect for Mac.
20754 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
20755
204ccab1
KS
20756 * macfns.c (x_set_mouse_color): Setup hand_cursor.
20757 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 20758
9443fcf6 20759 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
20760 included from it. Add dependency on keymap.h.
20761
20762 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
20763
8ba01a70 207642003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
20765
20766 * fileio.c (Fexpand_file_name): Fix previous change.
20767
8ba01a70 207682003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
20769
20770 * fileio.c (Ffile_name_directory): Reconstruct file name by
20771 make_specified_string.
20772 (Ffile_name_nondirectory, Ffile_name_as_directory)
20773 (Fdirectory_file_name, Fexpand_file_name)
20774 (Fsubstitute_in_file_name): Likewise.
20775 (Fread_file_name): Compare decoded homedir with DIR and
20776 DEFAULT_FILENAME.
20777
20778 * alloc.c (make_specified_string): If NCHARS is negative, count
20779 the number of characters.
20780
19536747
JD
207812003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20782
de38ae5a
JD
20783 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
20784 all widgets.
20785
19536747
JD
20786 * gtkutil.h: Removed xg_ignore_next_thumb.
20787
37ab321e 207882003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
20789
20790 * coding.c (Vchar_coding_system_table): Remove this variable.
20791 (Vcoding_system_safe_chars): New variable.
20792 (intersection): Remove this function.
20793 (find_safe_codings): Don't use Vchar_coding_system_table, but try
20794 all codings in SAFE_CODINGS.
00c64fab 20795 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
20796 find_safe_codings. Get generic coding systems from
20797 Vcoding_system_safe_chars.
20798 (Fdefine_coding_system_internal): New function.
20799 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
20800 Initialize and staticpro Vcoding_system_safe_chars.
20801
17097258
JD
208022003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20803
2a2071c3
JD
20804 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
20805 equal old values before updating.
20806
17097258
JD
20807 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
20808
20809 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
20810
208112003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20812
20813 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
20814 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
20815 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
14a56a1b 20816 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
17097258
JD
20817 (xg_create_scroll_bar): Pass bar to button event callback.
20818 (xg_find_top_left_in_fixed): New function.
20819 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
20820 whole scroll bar area. Get old position with
20821 xg_find_top_left_in_fixed, calculate and only clear needed areas.
20822 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
20823 dragging is in progress. Calculate whole as for Motif.
20824 Remove code that saved last values. Call gtk_range functions to
20825 set scroll bar sizes.
20826
20827 * gtkutil.h: Removed xg_ignore_next_thumb.
20828
8cb9dfbf
JB
208292003-03-17 Juanma Barranquero <lektu@terra.es>
20830
20831 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
20832 and files included from it.
20833
00c64fab
SM
208342003-03-18 Stefan Monnier <monnier@cs.yale.edu>
20835
20836 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
20837 multiple occurrences of the same keymap under different prefixes.
20838 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
20839
c45bb3b2
JR
208402003-03-16 Jason Rumney <jasonr@gnu.org>
20841
20842 * w32gui.h: Use HDC for Display.
20843
20844 * w32term.c (w32_encode_char): Prevent double-byte chars from
20845 crashing Emacs.
20846
20847 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
20848 as binary.
20849
2a6d0874
JB
208502003-03-16 Juanma Barranquero <lektu@terra.es>
20851
20852 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
20853
03eb5fab
KS
208542003-03-16 Kim F. Storm <storm@cua.dk>
20855
20856 The following changes consolidate some of the gui-independent
20857 parts of the processing and drawing of "glyph strings" from
20858 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 20859
03eb5fab
KS
20860 * dispextern.h (struct glyph): Reduce face_id member from 22 to
20861 21 bits (this reduces number of faces from 4M to 2M).
20862 Replace W32 specific w32_font_type member (2 bits) by generic
20863 font_type member (3 bits) for portability.
20864 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
20865 (enum draw_glyphs_face): Define here.
20866 (struct glyph_string): Define here. Merge W32 and X versions.
20867 (struct redisplay_interface): New members per_char_metric,
20868 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
20869 (VCENTER_BASELINE_OFFSET): Define here.
20870 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
20871 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
20872
20873 * xdisp.c: Consolidate gui-independent "glyph string" code here.
20874 (dump_glyph_string): Moved here.
20875 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
20876 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
20877 (fill_composite_glyph_string, fill_glyph_string)
20878 (fill_image_glyph_string, fill_stretch_glyph_string)
20879 (left_overwritten, left_overwriting, right_overwritten)
20880 (right_overwriting, get_char_face_and_encoding)
20881 (set_glyph_string_background_width, compute_overhangs_and_x)
20882 (append_glyph, append_composite_glyph, produce_image_glyph)
20883 (take_vertical_position_into_account, append_stretch_glyph)
20884 (produce_stretch_glyph): New generic functions (based on X version).
20885 Call platform specific functions through rif.
20886 (INIT_GLYPH_STRING): New macro, hides W32 details.
20887 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
20888 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
20889 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
20890 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
20891 (notice_overwritten_cursor):
20892 Generic functions exported to platform modules. Users changed.
20893
20894 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
20895 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
20896 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 20897 New macros for consolidated code.
2a6d0874 20898
03eb5fab
KS
20899 * xterm.c: Remove consolidated defines and code.
20900 (x_per_char_metric, x_encode_char)
20901 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
20902 (x_redisplay_interface): Add new members.
20903
20904 * w32gui.h (Display): Add dummy typedef for consolidation.
20905 (XChar2b): Define alias for wchar_t for consolidation.
20906 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
20907
20908 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 20909 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
20910 New macros for consolidation.
20911
fad49844 20912 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
20913 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
20914 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
20915 (w32_per_char_metric): Change font_type arg to int for RIF.
20916 (w32_encode_char): Return int according to RIF requirements.
20917 (w32_compute_glyph_string_overhangs): Adapt to RIF.
20918 (w32_get_glyph_overhangs): New function for RIF. Uses generic
20919 x_get_glyph_overhangs.
20920 (w32_redisplay_interface): Add new members.
20921
20922 * macgui.h (XChar2b): Move typedef here for consolidation.
20923 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
20924
20925 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
20926 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
20927 consolidation.
20928
20929 * macterm.c: Remove consolidated defines and code.
20930 (mac_per_char_metric): New function for RIF.
00c64fab 20931 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
20932 (mac_compute_glyph_string_overhangs): Adapt for RIF.
20933 (x_redisplay_interface): Add new members.
20934
00c64fab
SM
209352003-03-15 Stefan Monnier <monnier@cs.yale.edu>
20936
20937 * keymap.c (Vmenu_events): New var.
20938 (syms_of_keymap): Initialize it.
20939 (where_is_internal): Check more carefully what is a menu event.
20940
225c7a07
RS
209412003-03-14 Richard M. Stallman <rms@gnu.org>
20942
20943 * lread.c (read1): After #!, exit loop on eof.
20944
cea9be54
JD
209452003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20946
9ea0e54d
JD
20947 * gtkutil.h: Add declaration for xg_frame_cleared.
20948
0cb35f4e
JD
20949 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
20950
cea9be54
JD
20951 * gtkutil.c (struct xg_last_sb_pos): New structure.
20952 (handle_fixed_child): New function.
20953 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
20954 and force a redraw on them.
20955 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
20956 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
20957 so we can avoid unneeded redraws.
20958 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
20959 and force a redraw on the scroll bar.
20960 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
20961 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 20962 (xg_frame_cleared): New function.
cea9be54 20963
20b853f3
KH
209642003-03-13 Kenichi Handa <handa@m17n.org>
20965
20966 * coding.c (Fdetect_coding_region): Fix docstring.
20967 (Fdetect_coding_string): Fix docstring.
20968
7a555aff
AS
209692003-03-13 Andreas Schwab <schwab@suse.de>
20970
25cc0080
AS
20971 * gtkutil.c: Add prototype for create_menus.
20972
30225431
AS
20973 * data.c (long_to_cons): Fix type of top.
20974
20975 * xselect.c (selection_data_to_lisp_data): Use int instead of
20976 long for an integer of size 4.
20977
7a555aff 20978 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 20979 (xg_tool_bar_help_callback): Likewise.
7a555aff 20980
a3e4741f
AS
209812003-03-12 Andreas Schwab <schwab@suse.de>
20982
20983 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
20984
9668be7c
KS
209852003-03-12 Kim F. Storm <storm@cua.dk>
20986
03eb5fab 20987 The following changes consolidate the fringe handling from
9668be7c 20988 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 20989
9668be7c
KS
20990 * xdisp.c: Consolidate fringe handling code here.
20991 (left_bits, right_bits, continued_bits, continuation_bits)
20992 (ov_bits, zv_bits): Define fringe bitmaps.
20993 (fringe_bitmaps): New array holding fringe bitmaps.
20994 (draw_fringe_bitmap): Draw a specific bitmap; call display
20995 specific drawing routine via rif->draw_fringe_bitmap.
20996 (draw_row_fringe_bitmaps): Generic replacement for
20997 x_draw_row_fringe_bitmaps; all callers changed.
20998 (compute_fringe_widths): Generic replacement for
20999 x_compute_fringe_widths; all callers changed.
21000
21001 * dispextern.h (enum fringe_bitmap_type): Define here.
21002 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
21003 (fringe_bitmaps): Declare extern.
21004 (struct redisplay_interface): New member draw_fringe_bitmap.
21005 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
21006
21007 * xterm.c: Remove generic fringe code.
21008 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21009 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21010
21011 * w32term.c: Remove generic fringe code.
21012 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
21013 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 21014
9668be7c
KS
21015 * macterm.c: Remove generic fringe code.
21016 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
21017 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
21018
00a88f32
SM
210192003-03-11 Stefan Monnier <monnier@cs.yale.edu>
21020
21021 * print.c (Fprin1_to_string): Return unibyte string if possible.
21022
1d1de695
DK
210232003-03-09 David Kastrup <dak@gnu.org>
21024
21025 * process.c (read_process_output): We have allocated enough space
21026 for readmax and carryover, so actually use the alloted space.
21027
257f40f2
JD
210282003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21029
21030 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
21031 toolkit scrollbar click.
21032
21033 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
21034 for USE_GTK.
21035 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
21036 also.
1d1c7e75 21037 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 21038 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 21039
78819ebb 21040 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
21041
21042 * gtkutil.c (xg_get_scroll_id_for_window): New function.
21043 (xg_tool_bar_item_expose_callback): New function.
21044 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
21045 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
21046 on the tool bar widget.
21047 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
21048 to expose on the tool bar item widgets.
21049
15213141
JD
210502003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21051
26b74a0b 21052 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 21053 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
21054 deleted from the image cache).
21055
15213141
JD
21056 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
21057 the event isn't for a frame (i.e. for dialogs).
21058
20b853f3 210592003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
21060
21061 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
21062 composition components reaches the limit, terminate composing.
21063 (COMPOSITION_OK): New macro.
00a88f32 21064 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
21065 composition is found.
21066 (coding_restore_composition): Adjust the number of composition
21067 components if it is not sane.
21068
c9029fe5
JB
210692003-03-06 Juanma Barranquero <lektu@terra.es>
21070
21071 * w32term.h (struct w32_display_info): Add xrdb member to support
21072 passing resources via -xrm on Windows.
21073
21074 * w32term.c (w32_make_rdb): New function.
21075 (w32_term_init): Use it to initialize xrdb member of w32_display_info
21076 struct. Delete leftover code.
21077
21078 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
21079 for resources passed on the command line.
21080
21081 * w32reg.c (w32_get_rdb_resource): New function.
21082 (x_get_string_resource): Use it, so resources passed with -xrm
21083 supercede the ones in the registry.
21084
9d00001f
JD
210852003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21086
21087 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
21088 instead of x_top_window_to_frame.
21089
ca2417b9
JD
210902003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21091
21092 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
21093 when restarting Emacs.
21094
5b20caf0
RS
210952003-03-03 Richard M. Stallman <rms@gnu.org>
21096
21097 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
21098 to run kill-buffer-query-functions.
21099 (Qkill_buffer_query_functions): New var.
21100 (syms_of_buffer): Init and staticpro it.
21101
58e91b77
JD
211022003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21103
21104 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
21105
932357b4
KS
211062003-02-25 Kim F. Storm <storm@cua.dk>
21107
21108 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
21109 If centering point failed to make whole line visible and vscroll
21110 is non-zero, disable vscroll and try centering point again.
21111
21112 * lread.c (read1): Accept `single space' syntax like (? x).
21113
bb8db7e1
JD
211142003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21115
21116 * keyboard.c (cancel_hourglass_unwind): Surround with
14a56a1b 21117 #ifdef HAVE_X_WINDOWS.
bb8db7e1 21118
47d77aab
KH
211192003-02-25 Kenichi Handa <handa@m17n.org>
21120
21121 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
21122 process only when "subprocesses" is defined.
21123
6a097c0c
SM
211242003-02-24 Stefan Monnier <monnier@cs.yale.edu>
21125
21126 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
21127
0b063c27
JB
211282003-02-24 Juanma Barranquero <lektu@terra.es>
21129
d1135afc
JB
21130 * callint.c (fix_command): Declare as static void and move before
21131 Fcall_interactively.
21132
0b063c27
JB
21133 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
21134 (syms_of_xdisp): Don't initialize Qwhen.
21135
0af912f0
JD
211362003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21137
21138 * keyboard.c (cancel_hourglass_unwind): New function.
21139 (command_loop_1): Cancel hourglass with unwind-protect.
21140
120d0a23
RS
211412003-02-23 Richard M. Stallman <rms@gnu.org>
21142
21143 * callint.c (fix_command): New subroutine, from Fcall_interactively.
21144 Detect (when ... (region-beginning)) etc.
21145 (Fcall_interactively): Call fix_command.
21146 (Qif, Qwhen): New variables.
21147 (syms_of_callint): Init and staticpro them.
0b063c27 21148
120d0a23
RS
21149 * regex.c (print_partial_compiled_pattern): Output to stderr.
21150
4ece81a6
KG
211512003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21152
21153 * dired.c (directory_files_internal): Don't expand directory.
21154 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
21155 instead. From Lars Hansen <larsh@math.ku.dk>.
21156
e52bd6b7
SM
211572003-02-22 Stefan Monnier <monnier@cs.yale.edu>
21158
21159 * fns.c (string_to_multibyte): Remove unused var i.
21160 (Flanginfo): Fix int/Lisp_Object mixup.
21161 (void_call2): New fun.
21162 (Fmap_char_table): Use it in place of call2.
21163
21164 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
21165
21166 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
21167
21168 * keymap.c (copy_keymap_1): Make it static.
21169
21170 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
21171
c33ef7c4
JB
211722003-02-22 David Ponce <david@dponce.com>
21173
21174 * lread.c (Fload): Don't check STRING_MULTIBYTE.
21175
16782258
JD
211762003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21177
21178 * process.h: Removed subtty field from struct Lisp_Process.
21179
21180 * process.c (create_process): Remove setting of subtty.
21181 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
21182 (Fprocess_running_child_p, process_send_signal):
21183 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
21184 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
21185
3abeca61
KG
211862003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21187
21188 * keymap.c (Fdefine_key): Doc fix.
21189
92a8ce63
JB
211902003-02-21 Juanma Barranquero <lektu@terra.es>
21191
21192 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
21193
21194 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
21195 POLLING_PROBLEM_IN_SELECT.
21196
21197 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
21198 Delete #undef of POLLING_PROBLEM_IN_SELECT.
21199
21200 * s/hpux10-20.h: New file.
21201
e52bd6b7
SM
21202 * process.c (wait_reading_process_input):
21203 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 21204
20f1ef2e
KH
212052003-02-20 Kenichi Handa <handa@m17n.org>
21206
32d0a9dc
KH
21207 * fontset.c (check_fontset_name): If NAME is nil, return the
21208 default fontset.
21209 (override_font_info): New function.
e52bd6b7 21210 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
21211 (Ffontset_info): If FONTSET is not the default fontset, merge
21212 FONTSET onto the copy of the default fontset, and work on that
21213 copy. Document that NAME nil means the default fontset.
21214 (Ffontset_font): Document that NAME nil means the default fontset.
21215
20f1ef2e
KH
21216 * process.c (setup_process_coding_systems): If the process's
21217 in/out descriptor is -1, do nothing.
21218
77d1daf2
AS
212192003-02-19 Andreas Schwab <schwab@suse.de>
21220
e52bd6b7
SM
21221 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
21222 Add prototypes.
77d1daf2 21223
f9a45bb3
KH
212242003-02-19 Kenichi Handa <handa@m17n.org>
21225
21226 * xfaces.c (try_alternative_families): Try all scalable fonts if
21227 Vscalable_fonts_allowed is not Qt.
21228
72ecb43c
JD
212292003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21230
21231 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
21232
ee5be7c3
JD
212332003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21234
21235 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
21236 names.
21237
21238 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 21239 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
21240 x_face_list_fonts.
21241 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
21242 (Fx_list_fonts): Set maxnames to -1 to get all font names.
21243
4cd519a7
KS
212442003-02-18 Kim F. Storm <storm@cua.dk>
21245
068f9882
KS
21246 * lread.c (read1): Fix last change.
21247 "`" is not always special. Allow "?" after a character constant.
4cd519a7 21248
7290a344
AC
212492003-02-18 Andrew Choi <akochoi@shaw.ca>
21250
21251 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
21252
1f7fa69b
AS
212532003-02-18 Andreas Schwab <schwab@suse.de>
21254
21255 * window.c (window_scroll_pixel_based): Move outside a
21256 multi-glyph character before setting new window start.
21257
21258 * xdisp.c (in_display_vector_p): New function.
21259 * dispextern.h (in_display_vector_p): Declare.
21260
23e21195
KS
212612003-02-18 Kim F. Storm <storm@cua.dk>
21262
21263 * lread.c (read1): Fix and relax read syntax.
21264 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
21265 Only recognize "," after dotted-pair dot if inside backquote.
21266 Never include "`" or "," (inside backquote) in a symbol.
21267 Allow dotted-pair dot after a character constant.
21268 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 21269
f098b121
JD
212702003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21271
21272 * gtkutil.c (xg_tool_bar_expose_callback): New function.
21273 (xg_create_tool_bar): Force style of tool bar to be horizontal with
5e1a6e32 21274 icons. Set name of tool bar to emacs-toolbar.
f098b121
JD
21275 (update_frame_tool_bar): Connect expose event to
21276 xg_tool_bar_expose_callback.
21277
63020c46
RS
212782003-02-17 Richard M. Stallman <rms@gnu.org>
21279
21280 * keyboard.c (this_command_key_count_reset): New variable.
21281 Initiatize to 0 where this_command_key_count is set.
21282 (read_char): Save and restore this_command_key_count_reset
21283 around input method code.
21284 (read_char): If this_command_key_count_reset, echo reread commands.
21285 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
21286
fb4452cc
KH
212872003-02-17 Kenichi Handa <handa@m17n.org>
21288
21289 * fns.c (string_to_multibyte): Always return a multibyte string.
21290
bd11cc09
JR
212912003-02-16 Jason Rumney <jasonr@gnu.org>
21292
e52bd6b7
SM
21293 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
21294 Negative max_fonts parameter means list all.
bd11cc09 21295
4cdf4bde
DL
212962003-02-14 Dave Love <fx@gnu.org>
21297
21298 * fns.c (Flanginfo): Doc fix.
21299
023b93f6
KS
213002003-02-13 Kim F. Storm <storm@cua.dk>
21301
37cd4238
KS
21302 * lread.c (read_escape): Interpret \s as a SPACE character, except
21303 for \s-X in a character constant which still is the super modifier.
21304 (read1): Signal an `invalid read syntax' error if a character
21305 constant is immediately followed by a digit or symbol character.
21306
140a6b7e
KS
21307 * search.c (Fmatch_data): Doc fix. Explicitly state that
21308 match-data is undefined if last search failed.
21309
3419757d 21310 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
21311 All uses changed.
21312
7d5c86e5
JB
213132003-02-12 Juanma Barranquero <lektu@terra.es>
21314
21315 * eval.c (Fdefmacro): Fix typo.
21316
295fff2c
KS
213172003-02-12 Kim F. Storm <storm@cua.dk>
21318
21319 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
21320 macro is a string, convert meta modifiers in string when copying
21321 the string into a vector.
21322
60f3202d
KS
213232003-02-11 Kim F. Storm <storm@cua.dk>
21324
21325 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
21326
61cb0b53
KH
213272003-02-11 Kenichi Handa <handa@m17n.org>
21328
21329 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
21330
7392e23c
KS
213312003-02-10 Kim F. Storm <storm@cua.dk>
21332
21333 * process.c: Doc fixes.
21334 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
21335
ce4254bd
KH
213362003-02-10 Kenichi Handa <handa@m17n.org>
21337
9c7a329a
KH
21338 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
21339
ce4254bd
KH
21340 * process.c (QCfilter_multibyte): New variable.
21341 (setup_process_coding_systems): New function.
e52bd6b7
SM
21342 (Fset_process_buffer, Fset_process_filter):
21343 Call setup_process_coding_systems.
ce4254bd
KH
21344 (Fstart_process): Initialize the member `filter_multibyte' of
21345 struct Lisp_Process.
21346 (create_process): Call setup_process_coding_systems.
21347 (Fmake_network_process): New keyward `:filter-multibyte'.
21348 Initialize the member `filter_multibyte' of struct Lisp_Process.
21349 Call setup_process_coding_systems.
21350 (server_accept_connection): Call setup_process_coding_systems.
21351 (read_process_output): If the process has a filter, decide the
21352 multibyteness of a string to given to the filter by
21353 `filter_multibyte' member of the process. If the process doesn't
21354 have a filter and the result of conversion is unibyte, use
21355 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
21356 multibyte form.
21357 (Fset_process_coding_system): Call setup_process_coding_systems.
21358 (Fset_process_filter_multibyte): New function.
21359 (Fprocess_filter_multibyte_p): New function.
21360 (syms_of_process): Intern and staticpro QCfilter_multibyte.
21361 Defsubr Sset_process_filter_multibyte and
21362 Sprocess_filter_multibyte_p.
21363
21364 * process.h (struct Lisp_Process): New member filter_multibyte.
21365
21366 * lisp.h (setup_process_coding_systems): Add prototype.
21367
21368 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
21369 process, update coding systems for the process.
21370
b08d5f59
KH
213712003-02-09 Kenichi Handa <handa@m17n.org>
21372
21373 * fns.c (string_to_multibyte): New function.
21374 (Fstring_to_multibyte): New function.
21375 (syms_of_fns): Defsubr it.
21376
0dfd93c0
AS
213772003-02-08 Andreas Schwab <schwab@suse.de>
21378
21379 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
21380 instead of the substitution.
21381
7b76ca1c
JD
213822003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21383
21384 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
21385
21386 * xmenu.c (menu_position_func): Adjust menu popup position so that
21387 the menu is fully visible.
7b76ca1c 21388
2436a4e4
JD
213892003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21390
21391 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
21392 (x_make_frame_invisible, x_wm_set_icon_position):
21393 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
21394
21395 * xfns.c (x_set_name, x_set_title): Ditto.
21396
37d1e680
RS
213972003-02-04 Richard M. Stallman <rms@gnu.org>
21398
21399 * keyboard.c (echo_now): Update before_command_echo_length.
21400 (Freset_this_command_lengths): Reset this_command_key_count etc.
21401 immediately rather than arranging to do it later.
21402 (before_command_key_count_1, before_command_echo_length_1)
21403 (before_command_restore_flag): Vars deleted.
21404 (add_command_key): Don't handle before_command_restore_flag.
21405 (read_char, record_menu_key): Don't update before_command_key_count or
21406 before_command_echo_length.
21407 (read_char): Don't handle before_command_restore_flag.
21408
21409 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
21410 in direct-output clauses if it wouldn't be called in the ordinary case.
21411
578846a3
KS
214122003-02-04 Kim F. Storm <storm@cua.dk>
21413
21414 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
21415
49853a4d
JD
214162003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21417
21418 * gtkutil.c (remove_from_container): Copying list is not needed.
21419 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
21420 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
21421 on list returned from gtk_container_get_children to avoid memory leak.
21422
8b53dc06
JR
214232003-02-01 Jason Rumney <jasonr@gnu.org>
21424
5d54d177
JR
21425 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
21426 local malloc.
21427 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
21428 definitions in xpm.h.
21429 (init_xpm_functions): New function.
f63fd14e 21430 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
21431 (init_external_image_libraries): Try to load libXpm.dll.
21432
8b53dc06
JR
21433 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
21434 timestamp.
21435
b222e415
DL
214362003-01-31 Dave Love <fx@gnu.org>
21437
21438 * syntax.c (Fskip_chars_forward)
21439 (open-paren-in-column-0-is-defun-start): Doc fix.
21440
c60ee5e7
JB
214412003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
21442
21443 * fileio.c: Support // at start of name for Cygwin (just added proper
21444 preprocessor tests).
21445
21446 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
21447
21448 * Makefile.in: Use @EXEEXT@ for Cygwin.
21449
21450 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
21451
21452 * s/cygwin.h: Added for Cygwin port.
21453
53b37591
JB
214542003-01-31 Juanma Barranquero <lektu@terra.es>
21455
21456 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
21457 when including gif_lib.h.
fe929957 21458 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
21459 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
21460 Windows. Disable color table lookups. Call library functions
53b37591 21461 through pointers determined at runtime.
fe929957
JB
21462 (init_external_image_libraries): Try to load libungif.dll and
21463 libtiff.dll.
53b37591 21464
45415a8f
KH
214652003-01-31 Kenichi Handa <handa@m17n.org>
21466
21467 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 21468 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 21469
a97e4138
JD
214702003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21471
e52bd6b7 21472 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 21473
6eed9bed
DL
214742003-01-30 Dave Love <fx@gnu.org>
21475
21476 * alloc.c (Vgc_elapsed, gcs_done): New variables.
21477 (Fgarbage_collect): Use them.
21478 (init_alloc, syms_of_alloc): Set them up.
21479
100dcd40
JB
214802003-01-30 Juanma Barranquero <lektu@terra.es>
21481
21482 * w32fns.c (init_external_image_libraries): Add missing operator.
21483
fbd852af
JR
214842003-01-29 Jason Rumney <jasonr@gnu.org>
21485
21486 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
21487 an alternative name for jpeg.dll.
21488
8a2d8020
KH
214892003-01-29 Kenichi Handa <handa@m17n.org>
21490
21491 * xdisp.c (set_cursor_from_row): Pay attention to string display
21492 properties.
21493
058c18c7
AC
214942003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
21495
21496 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
21497 <escape>.
21498 (keycode_to_xkeysym_table): Reformat and add more comments.
21499 (XTread_socket): Drop special case for backspace.
21500
385f11cf
AC
215012003-01-28 Andrew Choi <akochoi@shaw.ca>
21502
21503 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
21504 values in old-style RGB specs.
21505
c922a224
JB
215062003-01-27 Juanma Barranquero <lektu@terra.es>
21507
21508 * w32fns.c (init_external_image_libraries): Try alternate names for the
21509 jpeg dll.
21510
0a1d6de0
JD
215112003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21512
21513 * gtkutil.c (create_dialog, xg_separator_p)
21514 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
21515 before calling strcmp or strlen.
21516
a97e4138 215172003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
21518
21519 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
21520 and handle image load failure.
21521
28908312
JR
215222003-01-26 Jason Rumney <jasonr@gnu.org>
21523
21524 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
21525 New functions.
f63fd14e
JB
21526 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
21527 Disable color table lookups. Call jpeg library functions
28908312
JR
21528 through pointers determined at runtime.
21529 (init_external_image_libraries): Try to load jpeg.dll.
21530
84e47416
RS
215312003-01-25 Richard M. Stallman <rms@gnu.org>
21532
21533 * lisp.h: Declare format2 instead of format1.
21534
21535 * fileio.c (barf_or_query_if_file_exists):
21536 Call format2 instead of format1.
21537
21538 * editfns.c (format2): New function, replaces format1
21539 but takes exactly two Lisp Objects as format args.
21540
21541 * buffer.c (Fkill_buffer): Call format2 instead of format1.
21542
a97e4138 215432003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
21544
21545 * xterm.h: Change to return value of x_dispatch_event to int.
21546
21547 * xterm.c (x_filter_event): New function.
21548 (event_handler_gdk, XTread_socket): Call x_filter_event.
21549 (x_dispatch_event): Change to return value of finish.
21550 (event_handler_gdk): Use return value from x_dispatch_event.
21551
21552 * xfns.c (x_window): Call create_frame_xic for GTK version to
21553 initialize input methods.
21554
21555 * gtkutil.h: Add (void) prototypes.
21556
21557 * gtkutil.c (create_menus): Remove code that puts the help menu to
21558 the right.
21559
54eefef1
JR
215602003-01-25 Jason Rumney <jasonr@gnu.org>
21561
21562 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
21563 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
21564 (png_load): Adjust colors for Windows. Use Windows
21565 bitmaps. Disable color table lookups.
c262430d
JR
21566 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
21567 (init_png_functions): New function.
21568 (png_read_from_memory, png_load): Call png library functions
21569 through pointers determined at runtime.
21570 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
21571 (init_external_image_libraries): New function.
21572 (init_xfns): Call it.
54eefef1 21573
1a9e275b
AS
215742003-01-24 Andreas Schwab <schwab@suse.de>
21575
21576 * minibuf.c (Fminibuffer_message): Verify type of parameter.
21577
a97e4138 215782003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
21579
21580 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
21581 of static initializer.
21582
422eec7e
DL
215832003-01-24 Dave Love <fx@gnu.org>
21584
21585 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
21586 architectures.
21587
21588 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
21589 Use __alignof__.
21590
2a026b04
KH
215912003-01-24 Kenichi Handa <handa@m17n.org>
21592
21593 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 21594 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
21595 (command_loop_1): Call adjust_point_for_property with proper
21596 second arg.
21597
a18bb28d
JR
215982003-01-22 Jason Rumney <jasonr@gnu.org>
21599
21600 Sync changes with xterm.c and xfns.c.
21601
21602 * w32term.c (x_draw_glyph_string_foreground)
21603 (x_draw_composite_glyph_string_foreground): Implement overstriking.
21604
21605 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
21606 phys_cursor's hpos is overwritten. This is still not completely
21607 correct, as it doesn't really make sense to use hpos at all to
21608 get the cursor glyph (as that is relative to the width of the
21609 characters on the line, which may have changed during the update).
21610
21611 * w32term.c (notice_overwritten_cursor): Handle the special case
21612 of the cursor being in the first blank non-text line at the
21613 end of a window.
21614
21615 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
21616 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
21617 Compute from the x position returned by x_draw_glyphs.
21618
21619 (x_display_and_set_cursor): Don't set phys_cursor_width here,
21620 except for NO_CURSOR and system caret, to make phys_cursor_width
21621 contain what its name suggests.
21622 (notice_overwritten_cursor): Consider the cursor image erased if
21623 the output area intersects the cursor image in y-direction.
21624
6a097c0c
SM
21625 * w32term.c (note_mode_line_or_margin_highlight): Rename from
21626 note_mode_line_highlight and extend.
a18bb28d
JR
21627
21628 * w32term.c (last_window): New variable.
21629 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
21630 (note_mouse_movement): Remove reimplemented code in #if 0.
21631
21632 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
21633 not update_mode_lines, and always set it to 1.
21634
ac6e47ef
JR
216352003-01-21 Jason Rumney <jasonr@gnu.org>
21636
21637 * w32fns.c (IDC_HAND): Define it if system headers don't.
21638
216392003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
21640
21641 * w32term.h (struct w32_output): New member hand_cursor.
21642 (WM_EMACS_SETCURSOR): New message definition.
21643
21644 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
21645 function w32_define_cursor.
21646 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
21647 position, change member name output_data.x to output_data.w32 and
21648 add function w32_define_cursor.
21649 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
21650 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
21651 (w32_initialize_display_info):
21652 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
21653
21654 * w32fns.c (Vx_hand_shape): New variable.
21655 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
21656 WM_EMACS_SETCURSOR.
21657 (x-create-frame): Setup Cursor types.
21658
ceb39a17
JB
216592003-01-21 David Ponce <david@dponce.com>
21660
ac6e47ef 21661 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
21662 ccl->reg[2] to -1 before calling ccl_driver.
21663 (Sync. with xterm.c x_encode_char change by Kenichi Handa
21664 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
21665 (w32_draw_relief_rect): Declare all args.
21666 (w32_define_cursor): New.
21667
21668 * w32fns.c (w32_load_cursor): New function.
21669 (w32_init_class): Use it.
21670 (x_put_x_image): Declare all args.
21671
b6189c3b 216722003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
21673
21674 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
21675
a97e4138 216762003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476 21677
14a56a1b 21678 * gtkutil.c: Must include stdio.h before termhooks.h.
e8794476 21679
83fc9c63
DL
216802003-01-21 Dave Love <fx@gnu.org>
21681
21682 * alloc.c (Fgc_status): Print zombie list.
21683 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
21684 Fix assignment of zombies.
21685 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
21686 Don't take car of non-cons.
21687
21688 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21689
21690 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21691
fe04b8c8
JR
216922003-01-20 David Ponce <david@dponce.com>
21693
21694 * w32menu.c (digest_single_submenu): Declare all args.
21695
21696 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
21697 changes in xmenu.c:
21698
21699 (parse_single_submenu): Use individual keymap's prompt
21700 string as pane name, if there is one.
21701 (set_frame_menubar): Save menu_items_n_panes from each call to
21702 parse_single_submenu and use it when calling digest_single_submenu.
21703
539e69a9
ST
217042003-01-20 Steven Tamm <steventamm@mac.com>
21705
7e26f91b 21706 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
21707 before sending a scroll-wheel event.
21708
675d000f
RS
217092003-01-20 Richard M. Stallman <rms@gnu.org>
21710
21711 * xdisp.c (redisplay_window): If mini window's buffer is not
21712 a minibuffer, then redisplay it like other windows.
21713
a97e4138 217142003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
21715
21716 * gtkutil.c (xg_create_frame_widgets): Check if there is an
21717 external tool bar before setting tool bar height.
21718
048addec
JD
217192003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21720
21721 * xterm.c (handle_one_xevent): Surround popup_activated
21722 with #ifdef:s for non-toolkit version.
21723
14a56a1b 21724 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
048addec
JD
21725 (gtkutil.o): New file.
21726 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
21727 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
21728
21729 * gtkutil.c: New file for GTK version.
21730
21731 * gtkutil.h: New file for GTK version.
21732
21733 * xterm.h: Add xt_or_gtk_widget.
21734 Include gtk files for USE_GTK.
21735 (struct x_output): Add toolbar_height.
21736 (struct x_output): Add GTK widgets and Gdk size_hints.
21737 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
21738 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
21739 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
21740
21741 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 21742 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
21743 (note_mouse_highlight): Check popup_activated for USE_GTK.
21744 (xt_action_hook): Don't compile if USE_GTK.
21745 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
21746 (xg_scroll_callback): New function.
21747 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
21748 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
21749 for USE_GTK.
21750 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
21751 xg_show_scroll_bar for USE_GTK.
21752 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
21753 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
21754 (event_handler_gdk): New function for USE_GTK.
21755 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
21756 (handle_one_xevent): Make sure widget is mapped before
21757 calling x_real_positions for USE_GTK.
21758 (XTread_socket): Add GTK event loop for USE_GTK.
21759 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
21760 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
21761 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
21762 (x_iconify_frame): Add code for USE_GTK.
21763 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
21764 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
21765 is in gtkutil.c.
21766 (x_term_init): Add initialization for GTK.
21767 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
21768
21769 * xmenu.c: Include gtkutil.h for USE_GTK.
14a56a1b 21770 (Fx_popup_menu): Use current position if x and y are nil.
6bdb309a
SM
21771 (single_menu_item, single_menu_item, Fx_popup_dialog):
21772 Check for USE_GTK.
048addec
JD
21773 (popup_widget_loop): New function for USE_GTK.
21774 (x_activate_menubar): Add code for USE_GTK.
21775 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
21776 (menu_highlight_callback, menubar_selection_callback):
21777 Add USE_GTK versions.
048addec
JD
21778 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
21779 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
21780 (free_frame_menubar): Only compile if not USE_GTK. GTK version
21781 is in gtkutil.c.
21782 (popup_selection_callback): New version for USE_GTK.
21783 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 21784 one USE_X_TOOLKIT version.
048addec
JD
21785 (xmenu_show): Call create_and_show_popup_menu.
21786 (dialog_selection_callback): New version for USE_GTK.
21787 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 21788 one USE_X_TOOLKIT version.
048addec
JD
21789 (xdialog_show): Call create_and_show_dialog.
21790
21791 * xfns.c: Include gtkutil for USE_GTK.
21792 (x_window_to_frame, x_any_window_to_frame)
21793 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
21794 (x_top_window_to_frame): Add code for USE_GTK.
21795 (x_set_background_color): Call xg_set_background_color for GTK.
21796 (x_set_menu_bar_lines): Check for USE_GTK.
21797 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
21798 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
21799 (x_window): Call xg_create_frame_widgets for USE_GTK.
14a56a1b 21800 (Fx_create_frame): Check for USE_GTK.
048addec
JD
21801 (Fx_file_dialog): New implementation for USE_GTK.
21802
21803 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
21804 (update_menu_bar): Add check for USE_GTK.
21805 (update_tool_bar): Add check for USE_GTK and external tool bar.
21806 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
21807 (redisplay_internal): Add check for USE_GTK and popup_activated.
21808 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
21809 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
21810 (display_menu_bar): Add check for USE_GTK
21811
78819ebb 21812 * lisp.h (Vx_resource_name): Declare extern.
048addec 21813
a64387ee 21814 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
21815 for USE_GTK.
21816 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
21817
21818 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
21819 (FRAME_EXTERNAL_TOOL_BAR): New macro.
21820 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
21821
21822 * fileio.c (Fread_file_name): Add check for USE_GTK.
21823
6bdb309a
SM
21824 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
21825 Add check for USE_GTK.
048addec 21826
14a56a1b 21827 * config.in: Added HAVE_GTK.
048addec
JD
21828
21829 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
21830
218312003-01-18 Stefan Monnier <monnier@cs.yale.edu>
21832
21833 * charset.h (Funibyte_char_to_multibyte): Export.
21834
218352003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21836
21837 * xmenu.c (mouse_position_for_popup): New function.
21838 (Fx_popup_menu): Call mouse_position_for_popup for X and
21839 mouse_position_hook for others.
21840
218412003-01-17 Kim F. Storm <storm@cua.dk>
21842
21843 * editfns.c (Finsert): Mention `string-make-multibyte' and
21844 `string-as-multibyte' in doc string.
21845
218462003-01-17 Kenichi Handa <handa@m17n.org>
21847
21848 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 21849
048addec
JD
21850 * editfns.c (Fformat): Convert an unibyte char argument that is
21851 formatted by "%c" to multibyte if the total result must be a
21852 multibyte string.
cd7df9c0 21853
048addec 218542003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 21855
048addec
JD
21856 * process.c (set-process-filter): Document unibyte/multibyte-ness
21857 of string argument.
56210ecd 21858
048addec 218592003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 21860
048addec 21861 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 21862
048addec
JD
21863 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
21864 (re_search_2): Likewise.
6df8b9fe 21865
048addec 218662003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 21867
048addec
JD
21868 * xdisp.c (message_dolog): Fix bug of the case that *Message*
21869 buffer is unibyte.
292ddc31 21870
048addec 218712003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 21872
048addec 21873 * fns.c (Fsubstring): Clarify doc string.
292ddc31 21874
048addec
JD
21875 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
21876 (Fprevious_char_property_change)
21877 (Fnext_single_char_property_change)
21878 (Fprevious_single_char_property_change, Fnext_property_change)
21879 (Fnext_single_property_change, Fprevious_property_change)
21880 (Fprevious_single_property_change, Fadd_text_properties)
21881 (Fput_text_property, Fset_text_properties)
21882 (Fremove_text_properties, Fremove_list_of_text_properties)
21883 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 21884
048addec 218852003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 21886
048addec
JD
21887 * process.h (struct Lisp_Process): New member plist replaces old
21888 member private_vars. All uses changed.
63e4e4c6 21889
048addec 21890 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 21891 (QCplist): Rename from QCvars. Change all uses.
048addec 21892 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 21893 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 21894 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 21895 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 21896
048addec 218972003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 21898
6bdb309a 21899 * m/delta.h: Remove (obsolete).
e833850f 21900
048addec 219012003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 21902
048addec
JD
21903 * fileio.c (Fdelete_directory, Fdelete_file): Document the
21904 behaviour in front of symlinks.
21905 (Fdelete_file): Raise an error on directories.
817cb127 21906
048addec 219072003-01-13 Dave Love <fx@gnu.org>
817cb127 21908
048addec 21909 * fns.c (Freverse): Use QUIT.
3e8cf2ea 21910
048addec 219112003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 21912
048addec
JD
21913 * minibuf.c (minibuffer_completion_contents):
21914 Error if point is inside prompt.
3e8cf2ea 21915
048addec
JD
21916 * keyboard.c (command_loop_1): Don't redisplay directly
21917 if there's a post-command-hook.
3e8cf2ea 21918
048addec
JD
21919 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
21920 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 21921
048addec 219222003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 21923
048addec 21924 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 21925
048addec
JD
21926 * process.c (QCvars): New variable.
21927 (syms_of_process): Intern and staticpro it.
21928 (Fset_process_contact): Removed function.
21929 (Fprocess_variable, Fset_process_variable): New functions.
21930 (syms_of_process): Defsubr them.
21931 (Fstart_process): Initialize private_vars plist to nil.
21932 (Fmake_network_process): New arg :vars to setup the private
21933 variables for new network process.
21934 (server_accept_connection): Copy server's private variables to
21935 client process.
2c10f029 21936
048addec
JD
21937 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
21938 crashes). Code rewritten and simplified. Now directly aligns the
21939 pointer and recalculates pure_bytes_used, rather than aligning the
21940 size and adjusting the pointer.
b8a76c6c 21941
048addec 219422003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 21943
048addec
JD
21944 * process.c (Fset_process_contact): New function.
21945 (syms_of_process): defsubr it.
21946 (make-network-process): Update doc.
3a8d0899 21947
048addec 219482003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 21949
048addec
JD
21950 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
21951 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 21952
048addec 219532003-01-10 Dave Love <fx@gnu.org>
4abc7470 21954
048addec 21955 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 21956
048addec 219572003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 21958
048addec
JD
21959 * process.c (Fmake_network_process): Convert new port number
21960 to host byte order for `:service t' case. From Mario Lang.
bf338245 21961
048addec 219622003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 21963
048addec
JD
21964 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
21965 instead of XtAppProcessEvent.
bf338245 21966
048addec
JD
21967 * xterm.c (handle_one_xevent): New function.
21968 (x_dispatch_event): New function.
21969 (XTread_socket): Call handle_one_xevent.
bf338245 21970
048addec 21971 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 21972
048addec
JD
21973 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
21974 call XQueryPointer to get coordinates.
21975 (popup_get_selection): Do not set popup_activated_flag to zero,
21976 let popup_deactivate_callback do that. Needed for Motif.
21977 Call x_dispatch_event instead of XtDispatchEvent.
21978 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 21979
048addec 219802003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 21981
6bdb309a 21982 * process.c (server_accept_connection): Fix recording of new
048addec
JD
21983 connection's local address in :local property of contact info.
21984 (Fmake_network_process): Record local network address for new
21985 client processes in :local property of contact info.
6bdb309a 21986 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 21987
048addec 219882003-01-07 Dave Love <fx@gnu.org>
00e3ab56 21989
048addec 21990 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 21991
ddec2286
RS
219922003-01-06 Dave Love <fx@gnu.org>
21993
21994 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
21995 (Vlocale_coding_system): Declare.
21996 (Qcodeset, Qdays, Qmonths, Qpaper): New.
21997 (Flanginfo): New.
21998 (syms_of_fns): Initialize new stuff.
21999
048addec 220002003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 22001
048addec 22002 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 22003
048addec
JD
22004 * eval.c (Fuser_variable_p): Doc change. For custom variables,
22005 use the same test as for custom-variable-p.
8c6d74c6 22006
048addec 220072003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 22008
048addec
JD
22009 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
22010 Count LAST_LINE_MISFIT in scroll margin for end of window.
22011 Move label too_near_end before setting SCROLL_MARGIN_POS.
22012 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 22013
048addec
JD
22014 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
22015 scroll_conservatively case. If scrolling that much doesn't change
22016 STARTP, move it down one line.
e833850f 22017
048addec
JD
22018 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
22019 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 22020
048addec
JD
22021 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
22022 selected frame.
8c6d74c6 22023
048addec 22024 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 22025 (syms_of_keymap): Staticpro them.
048addec
JD
22026 (Fapropos_internal): Initialize them and clear them out.
22027 Don't GCPRO them.
8c6d74c6 22028
f5ecbcee 22029 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
8c6d74c6 22030
048addec
JD
22031 * lisp.h: New misc type Lisp_Save_Value.
22032 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
22033 (XSAVE_VALUE): New macro.
22034 (struct Lisp_Save_Value): New data type.
22035 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 22036 (make_save_value): Declare.
8c6d74c6 22037
048addec 22038 * alloc.c (make_save_value): New function.
8c6d74c6 22039
048addec
JD
22040 * xterm.c (x_catch_errors): Save dpy using make_save_value.
22041 (x_catch_errors_unwind): Call XSync.
8c6d74c6 22042
048addec 220432003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 22044
048addec 22045 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 22046
048addec
JD
22047 * keyboard.c (command_loop_1): Call adjust_point_for_property
22048 in direct action cases for Qforward_char and Qbackward_char.
22049 Set already_adjusted so it won't be done twice.
8c6d74c6 22050
b6189c3b 220512002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 22052
048addec
JD
22053 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
22054 type definition of size_t.
8c609cff 22055
048addec 220562003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 22057
048addec
JD
22058 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
22059 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 22060
048addec 220612002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 22062
048addec
JD
22063 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
22064 to default to t.
fa634a5e 22065
048addec 220662002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 22067
048addec 22068 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 22069
048addec 220702002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 22071
7e26f91b 22072 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
22073 allow building in a different directory than source. Uses some
22074 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 22075
048addec 220762002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 22077
048addec
JD
22078 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
22079 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
22080 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
22081 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 22082
048addec 220832002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 22084
048addec
JD
22085 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
22086 <scroll-down-aggressively>: Doc fix.
2155ecf3 22087
048addec
JD
22088 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
22089 string as pane name, if there is one.
22090 (set_frame_menubar): Save menu_items_n_panes from each call to
22091 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 22092
048addec
JD
22093 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
22094 Don't try to make last line fully visible if it is past end of window.
61f1d295 22095
048addec 220962002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 22097
048addec
JD
22098 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
22099 (mac_menu_show): Add support for hierarchical popup menus.
22100 (add_menu_item): Remove indentation support.
22101 (fill_submenu, fill_menu): Create hierarchical menus
22102 instead of using indentation.
0b17a217 22103
048addec 221042002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 22105
048addec
JD
22106 * xdisp.c (try_cursor_movement): Don't call try_window here.
22107 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 22108
048addec 22109 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 22110
048addec 221112002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 22112
048addec
JD
22113 * macterm.c (XTread_socket): Call KeyTranslate for control and
22114 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 22115 being treated like C-%. Do not look for shift key to deal
048addec 22116 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 22117
048addec 221182002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 22119
048addec
JD
22120 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
22121 If it is non-nil, run timers. Use an unwind-protect to requeue
22122 the events that were read ahead.
22123 (popup_get_selection_unwind): New subroutine.
22124 (popup_get_selection_queue): File-scope variable now holds that queue.
22125 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
22126 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
22127 Use an unwind-protect to pop down the dialog box.
22128 (xdialog_show_unwind): New subroutine implements that.
f02cac82 22129
048addec
JD
22130 * xdisp.c (row_containing_pos): Change exit test using last_y.
22131 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 22132
048addec
JD
22133 * lread.c (load_error_handler): New function.
22134 (Fload): Handle errors in Fsubstitute_in_file_name.
22135 Don't expect Fsignal to return.
f02cac82 22136
048addec
JD
22137 * eval.c: Errors and throws work right with interrupt blocking.
22138 (struct catchtag): New elt interrupt_input_blocked.
22139 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
22140 (internal_catch, Fcondition_case, internal_condition_case)
22141 (internal_condition_case_1, internal_condition_case_2): Save it.
22142 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 22143
048addec 22144 * editfns.c (Fformat): Add parens.
f02cac82 22145
048addec
JD
22146 * dired.c (file_name_completion): Fix that change.
22147 Delete special quit-handling code; just use QUIT.
f02cac82 22148
b6189c3b 221492002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 22150
048addec
JD
22151 * dired.c (file_name_completion): Close directory on error
22152 just as in directory_files_internal.
1a590729 22153
048addec 221542002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 22155
048addec
JD
22156 * window.c (Fset_window_configuration): Set old_point to correct
22157 value when new_current_buffer == current_buffer.
f02cac82 22158
048addec 221592002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 22160
048addec
JD
22161 Revisited my earlier fix for the following entry in etc/PROBLEMS:
22162 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
22163 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 22164
048addec
JD
22165 These changes were in part based upon suggestions made by Peter
22166 'Luna' Runestig [peter@runestig.com].
9785d95b 22167
f4a5a485
SM
22168 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
22169 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
22170 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 22171 global variables.
9785d95b 22172
048addec
JD
22173 * w32.c (globals_of_w32): New function. Used to initialize those
22174 global variables that must always be initialized on startup even
22175 when the global variable initialized is non zero. Its primary
22176 purpose at this time is to set the global variables
22177 g_b_init_is_windows_9x, g_b_init_open_process_token,
22178 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
22179 g_b_init_get_sid_identifier_authority to 0 on startup.
22180 Called from main.
9785d95b 22181
048addec
JD
22182 * w32.c (is_windows_9x): Perform initialization only if
22183 g_b_init_is_windows_9x is equal to 0. On initialization set
22184 g_b_init_is_windows_9x equal to 1.
2308af15 22185
048addec
JD
22186 * w32.c (open_process_token): Perform initialization only if
22187 g_b_init_open_process_token is equal to 0. On initialization set
22188 g_b_init_open_process_token equal to 1.
2308af15 22189
048addec
JD
22190 * w32.c (get_token_information): Perform initialization only if
22191 g_b_init_get_token_information is equal to 0. On initialization
22192 set g_b_init_get_token_information equal to 1.
9785d95b 22193
048addec
JD
22194 * w32.c (lookup_account_sid): Perform initialization only if
22195 g_b_init_lookup_account_sid is equal to 0. On initialization
22196 set g_b_init_lookup_account_sid equal to 1.
9785d95b 22197
048addec
JD
22198 * w32.c (get_sid_identifier_authority): Perform initialization
22199 only if g_b_init_get_sid_identifier_authority is equal to 0.
22200 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 22201
f63fd14e 22202 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
22203 those global variables that must always be initialized on startup
22204 even when the global variable initialized is non zero.
22205 Its primary purpose at this time is to initialize the global variable
22206 track_mouse_event_fn.
9785d95b 22207
a64387ee 22208 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 22209 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 22210
048addec 22211 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 22212
f63fd14e 22213 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
22214 initialize those global variables that must always be initialized
22215 on startup even when the global variable initialized is non zero.
22216 Its primary purpose at this time is to initialize the global
22217 variables get_menu_item_info and set_menu_item_info.
9785d95b 22218
048addec
JD
22219 * w32menu.c (initialize_frame_menubar): Remove initialization of
22220 get_menu_item_info and set_menu_item_info.
9785d95b 22221
048addec 22222 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 22223
048addec
JD
22224 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
22225 Declare them.
9785d95b 22226
048addec
JD
22227 * emacs.c (main): Call globals_of_w32 prior to calling
22228 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
22229 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
22230 is defined.
9785d95b 22231
048addec
JD
22232 * w32term.c (x_update_window_begin): Fix Windows API error
22233 detected by BoundsChecker. Test to determine if
22234 w32_system_caret_hwnd is NULL prior to attempting to use
22235 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 22236
048addec
JD
22237 * w32term.c (x_update_window_end): Fix Windows API error
22238 detected by BoundsChecker. Test to determine if
22239 w32_system_caret_hwnd is NULL prior to attempting to use
22240 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 22241
048addec 222422002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 22243
048addec
JD
22244 * coding.c (coding_system_require_warning): New variable.
22245 (syms_of_coding): DEFVAR it.
b6da19ef 22246
048addec 22247 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 22248
048addec
JD
22249 * fileio.c (choose_write_coding_system): Even if
22250 Vcoding_system_for_write is non-nil, if
22251 coding_system_require_warning is nonzero, call
22252 Vselect_safe_coding_system_function.
bfcf6dbe 22253
048addec 222542002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 22255
048addec
JD
22256 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
22257 (lisp): Add font-core.
2c568af5 22258
048addec 222592002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 22260
048addec
JD
22261 * textprop.c (text_read_only): New arg `propval'.
22262 (get_char_property_and_overlay): Remove unused var `next_overlay'.
22263 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 22264
048addec 222652002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 22266
048addec 22267 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 22268
048addec 222692002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 22270
048addec
JD
22271 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
22272 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
22273 Be more careful about when help_events are generated.
96720f09 22274
048addec 222752002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 22276
048addec
JD
22277 * macterm.c (mac_check_for_quit_char): Correctly set the
22278 modifiers of the event to 0.
22279 * mac.c (sys_select): Duplicate rfds before calling select to
22280 ensure that rfds survive the while loop.
e5ae1c49 22281
048addec 222822002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 22283
048addec
JD
22284 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
22285 row_containing_pos returned NULL.
2eb46b2d 22286
048addec 222872002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 22288
6bdb309a 22289 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 22290 non-blocking.
6bdb309a 22291 (sys_select): Fix sys_select to not use a timeout larger than
048addec 22292 the one given.
b11f1d8a 22293
048addec 222942002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 22295
048addec 22296 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 22297
048addec 222982002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 22299
048addec
JD
22300 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
22301 as the last thing.
a4ac5b17 22302
048addec 223032002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 22304
048addec 22305 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 22306
048addec 223072002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 22308
048addec
JD
22309 * editfns.c (Fformat): Handle precision in string conversion
22310 specifiers like libc functions do (ie, print at most that many
22311 characters).
85cce843 22312
048addec 223132002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 22314
048addec
JD
22315 * xdisp.c (row_containing_pos): Check more carefully
22316 whether charpos is really in the row before returning it.
0d4d26a7 22317
048addec 223182002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 22319
048addec 22320 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 22321
048addec
JD
22322 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
22323 each stack frame. This may change as it could be time consuming.
0d4d26a7 22324
048addec
JD
22325 * macterm.c (mac_check_for_quit_char, quit_char_comp)
22326 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 22327 (mac_initialize): Add code to check for pressing of quit_char
048addec 22328 in the OS event queue.
b11f1d8a 22329
048addec
JD
22330 * mac.c (sys_select): Call mac_check_for_quit_char every second
22331 while blocking on select.
0d4d26a7 22332
048addec
JD
22333 * mac.c (sys_read): Use sys_select to test for input first
22334 before calling read, to allow C-g to break.
9252f7bc 22335
048addec 223362002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 22337
048addec 22338 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 22339
048addec 22340 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 22341
048addec 22342 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 22343
048addec
JD
22344 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
22345 autoload.
9252f7bc 22346
048addec 22347 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 22348
048addec 22349 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 22350
c6605d63 223512002-12-06 Francesco Potort\e,Al\e(B <pot@gnu.org>
bfa261c0 22352
048addec 22353 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 22354
048addec 223552002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 22356
048addec 22357 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 22358
048addec 22359 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 22360
048addec 22361 * alloca.c: Don't use #error.
02d588e2 22362
048addec 223632002-12-03 Dave Love <fx@gnu.org>
02d588e2 22364
048addec
JD
22365 * buffer.c (Qucs_set_table_for_input): New.
22366 (Fget_buffer_create): Use it.
22367 (Qset_buffer_major_mode_hook): Deleted.
22368 (Fset_buffer_major_mode): Revert previous change.
22369 (init_buffer_once): Intern ucs-set-table-for-input.
22370 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
22371 Add &Qucs_set_table_for_input.
451e2697 22372
048addec 223732002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 22374
048addec
JD
22375 * callint.c (Fcall_interactively): Use next_event only if less
22376 than key_count.
72742a99 22377
048addec 223782002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 22379
048addec
JD
22380 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
22381 names to 255 characters.
72742a99 22382
048addec
JD
22383 * macterm.c (XTread_socket): If all frames have been collapsed,
22384 expand the first one before handling drag-and-drop events.
72742a99 22385
048addec
JD
22386 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
22387 which is detected by autoconf.
40e6ff95 22388
048addec 223892002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 22390
048addec
JD
22391 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
22392 offset in two hints table to allow prebinding to be redone and
22393 allow the executable to be stripped.
c02138c6 22394
048addec 223952002-11-29 Dave Love <fx@gnu.org>
c02138c6 22396
048addec
JD
22397 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
22398 already provided.
0e47bbf7 22399
048addec 224002002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 22401
048addec
JD
22402 * xdisp.c (start_display): Check more intelligently for
22403 whether the line is continued.
22404 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 22405
048addec 224062002-11-28 Dave Love <fx@gnu.org>
44129dcb 22407
048addec
JD
22408 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
22409 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 22410
048addec 224112002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 22412
048addec
JD
22413 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
22414 more descriptive error output from lread.c:Fload upon most require
22415 cycles during boostrapping.
1637fd2c 22416
048addec 224172002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 22418
048addec
JD
22419 * fileio.c (Finsert_file_contents): Give a more appropriate error
22420 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 22421
048addec
JD
22422 * dired.c (Ffile_attributes): Don't return negative file sizes for
22423 files bigger than 2Gb when off_t is 32 bit.
540c2788 22424
048addec 224252002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 22426
048addec 22427 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 22428
048addec
JD
22429 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
22430 Test GETPGRP_VOID instead.
22431 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 22432
048addec
JD
22433 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
22434 Don't define.
22435 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 22436
048addec 22437 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 22438
048addec 224392002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 22440
048addec
JD
22441 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
22442 supported.
4042a81a 22443
048addec 224442002-11-25 Dave Love <fx@gnu.org>
4042a81a 22445
048addec 22446 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 22447
048addec 22448 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 22449
048addec 224502002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 22451
048addec 22452 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 22453
048addec 224542002-11-24 Steven Tamm <steventamm@mac.com>
82122254 22455
048addec
JD
22456 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
22457 determine the size of pointers alloced in unexed space instead
22458 of using possibly invalid emacs_zone pointers. This fixes the
22459 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 22460
048addec 224612002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 22462
048addec 22463 * search.c (Fstring_match): Doc fix.
c1ee53bc 22464
048addec
JD
22465 * callint.c (Fcall_interactively): If a command fails because
22466 `*' detects a read-only buffer, but RECORD_FLAG is set,
22467 record it anyway if the args don't actually do tty input.
5598c32e 22468
048addec 224692002-11-22 Dave Love <fx@gnu.org>
5598c32e 22470
048addec 22471 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 22472
048addec
JD
22473 * keyboard.c (interrupt_signal): Provide forward declaration.
22474 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 22475
048addec 22476 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 22477
048addec 224782002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 22479
048addec
JD
22480 * eval.c (interactive_p): Skip any number of bytecode
22481 and special form frames, in any order.
516eea8e 22482
048addec 224832002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 22484
048addec
JD
22485 * w32fns.c (convert_mono_to_color_image): New function.
22486 (xbm_load, xbm_load_image): Use it when foreground or background
22487 is explicitly set.
04dbfa08 22488
048addec 224892002-11-19 Dave Love <fx@gnu.org>
04dbfa08 22490
048addec 22491 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 22492
048addec 224932002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 22494
048addec
JD
22495 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
22496 (XPutPixel): Swap blue and red.
22497 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
22498 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
22499 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
22500 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 22501
048addec 225022002-11-18 Dave Love <fx@gnu.org>
d824beee 22503
048addec 22504 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 22505
048addec 22506 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 22507
048addec 22508 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 22509
048addec
JD
22510 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
22511 malloc, realloc, calloc.
d824beee 22512
048addec
JD
22513 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
22514 (bcmp): Don't define.
d824beee 22515
048addec 22516 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 22517
048addec 22518 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 22519
048addec 22520 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 22521
048addec 22522 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 22523
048addec
JD
22524 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
22525 Don't include alloca.h.
d824beee 22526
048addec 22527 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 22528
048addec 22529 * regex.c (_GNU_SOURCE): Don't define.
1998560a 22530
048addec 22531 * process.c (_GNU_SOURCE): Don't define.
1998560a 22532
048addec 22533 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 22534
048addec 225352002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 22536
048addec 22537 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 22538
048addec 225392002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 22540
048addec
JD
22541 * dispextern.h (struct face): Add `overstrike' field.
22542 * xterm.c (x_draw_glyph_string_foreground)
22543 (x_draw_composite_glyph_string_foreground): Implement overstriking.
22544 * xfaces.c (load_face_font): Set `face->overstrike' based on
22545 result from choose_face_font.
22546 (best_matching_font, choose_face_font): Add `needs_overstrike'
22547 argument, and use it to return whether overstriking is desirable
22548 for this face/font combo.
22549 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 22550
048addec 225512002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 22552
048addec
JD
22553 This change is my fix for the following entry in etc/PROBLEMS:
22554 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
22555 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 22556
048addec
JD
22557 * w32.c: Added wrapper functions around the win32 API functions
22558 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
22559 GetSidIdentifierAuthority. These wrapper functions serve two
22560 purposes:
22561 1. They ensure that the wrapped function can never be called
22562 when Emacs is running on an operating system on which they are
22563 not supported (Microsoft Windows 95 / 98 / ME).
22564 2. They call the wrapped functions via function pointers rather
22565 than calling them directly. This avoids taking advantage of the
22566 undocumented fact that although these functions are not supported
22567 in the 9x branch of Microsoft Windows, the functions do exist in
22568 the version of advapi32.dll that is found in the 9x branch of
22569 Microsoft Windows.
f60ae425 22570
6bdb309a 22571 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
22572 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
22573 and GetSidIdentifierAuthority with calls to the newly added
22574 wrapper functions.
f60ae425 22575
048addec
JD
22576 * w32.h: Added extern declarations for the following functions:
22577 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
22578 syms_of_w32menu, and void syms_of_fontset.
f60ae425 22579
6bdb309a 22580 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
22581 function pointer track_mouse_event_fn in the handler for the
22582 WM_SETFOCUS message.
3582b6a3 22583
6bdb309a 22584 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
22585 reinitialize the function pointers set_menu_item_info and
22586 get_menu_item_info.
f60ae425 22587
048addec 225882002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 22589
048addec
JD
22590 * sound.c: Added a partial implementation of play-sound-internal
22591 for Microsoft Windows. Added various #ifdef / #else / #endif
22592 code blocks to separate the code that will compile under
9fed2905 22593 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 22594 Moved several blocks of code around to make this separation of code
9fed2905 22595 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 22596
048addec 22597 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 22598
048addec
JD
22599 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
22600 added support for play-sound-internal under Windows would be
22601 included in the build of Emacs.
517f42a0 22602
048addec 226032002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 22604
048addec 22605 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 22606
048addec 22607 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 22608
048addec 226092002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 22610
048addec
JD
22611 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
22612 (adjust_point_for_property): Move out of display and invisible even if
22613 we were already inside before (in case a property was added while
22614 we weren't looking). Be more careful when handling invisible props.
22615 Skip invisible text as if it really wasn't there at all.
aab83f91 22616
048addec 226172002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 22618
048addec
JD
22619 * w32term.c (x_draw_image_foreground)
22620 (w32_draw_image_foreground_1): Use standard copy and invert
22621 operations to draw images.
aab83f91 22622
048addec
JD
22623 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
22624 depth of 1.
22625 (xbm_read_bitmap_data): Invert bits as xbm is read in.
22626 (XPutPixel): Don't invert bits here.
a4478a76 22627
048addec 226282002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 22629
048addec
JD
22630 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
22631 (w32_draw_image_foreground_1): Handle image masks.
22632 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 22633
048addec
JD
22634 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
22635 (x_from_xcolors): Adjust RGB values for W32.
22636 (image_background, image_background_transparent)
22637 (postprocess_image, x_to_xcolors, x_disable_image)
22638 (x_build_heuristic_mask): Adapt for W32 and enable.
22639 (x_create_x_image_and_pixmap): Mark images with palettes as such.
22640 (xbm_load): Remove unused variable.
03670a65 22641
048addec 226422002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 22643
048addec 22644 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 22645
048addec 226462002-11-14 Dave Love <fx@gnu.org>
59daa29a 22647
048addec 22648 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 22649
048addec
JD
22650 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
22651 * xmenu.c (unuse_menu_items, digest_single_submenu):
22652 * xfns.c (x_put_x_image):
22653 * xdisp.c (message2_nolog, set_message):
22654 * undo.c (record_point):
22655 * terminfo.c (tparam):
22656 * syntax.c (scan_sexps_forward):
22657 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22658 * composite.c (update_compositions):
22659 * cm.c (calccost, cmgoto):
22660 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 22661
048addec 22662 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 22663
048addec
JD
22664 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
22665 Don't declare.
59daa29a 22666
048addec 22667 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 22668
048addec
JD
22669 * fns.c (Fcopy_sequence): Doc fix.
22670 (Fmap_char_table): Cast `call2'.
3947677c 22671
c6605d63 226722002-11-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
048addec
JD
22673
22674 * s/sol2-8.h: New file.
22675
226762002-11-14 Kim F. Storm <storm@cua.dk>
22677
22678 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
22679 dependency on `risky-local-variable' and the :propertize form.
22680
226812002-11-12 Stefan Monnier <monnier@cs.yale.edu>
22682
22683 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
22684
22685 * syntax.c (scan_sexps_forward): Undo last patch.
22686 Use a more obvious fix: check eob before updating the syntax table.
22687
226882002-11-09 Stefan Monnier <monnier@cs.yale.edu>
22689
22690 * syntax.c (scan_sexps_forward): Update syntax table before reading
22691 a char rather than after so we don't update the table past eob.
22692
226932002-11-09 Dave Love <fx@gnu.org>
22694
22695 * buffer.c (Fset_buffer_major_mode): Fix last change.
22696
22697 * regex.c (regexec): Fix pmatch declaration.
22698
22699 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
22700
22701 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
22702 to self-inserting characters.
22703 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
22704
22705 * coding.c (Vtranslation_table_for_input): New.
22706 (syms_of_coding): DEFVAR it.
22707
227082002-11-08 Juanma Barranquero <lektu@terra.es>
22709
22710 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
22711 window.
22712
227132002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22714
6bdb309a 22715 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
22716 cp, and i.
22717
227182002-11-06 Dave Love <fx@gnu.org>
22719
22720 * buffer.c (Qset_buffer_major_mode_hook): New.
22721 (Fset_buffer_major_mode): Use it.
22722
227232002-11-06 Richard M. Stallman <rms@gnu.org>
22724
22725 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
22726 and stop_polling.
22727
22728 * process.c (wait_reading_process_input):
22729 Test POLLING_PROBLEM_IN_SELECT, not hpux.
22730 Avoid initialization for auto Lisp_Object var.
22731
22732 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
22733
22734 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
22735
227362002-11-05 Richard M. Stallman <rms@gnu.org>
22737
22738 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
22739
22740 * callint.c (Fcall_interactively): New local filter_specs.
22741 (Fcall_interactively): Check for progn as well as let.
22742 Add a gcpro.
22743 (Qprogn): New variable.
22744 (syms_of_callint): Staticpro and init Qprogn.
22745
227462002-11-04 John Paul Wallington <jpw@shootybangbang.com>
22747
22748 * lread.c (Feval_buffer): Doc fix.
22749
227502002-11-04 Dave Love <fx@gnu.org>
22751
22752 * keyboard.c (read_char): Always translate iff
22753 Vkeyboard_translate_table is a char table and c is valid.
22754
22755 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22756 and fix C types.
22757
227582002-11-03 Stefan Monnier <monnier@cs.yale.edu>
22759
22760 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
22761
22762 * editfns.c (get_pos_property): Don't hardcode Qfield.
22763
22764 * keyboard.c (adjust_point_for_property): Handle `display' prop on
22765 overlays. Also handle `invisible' prop.
22766
227672002-11-02 Stefan Monnier <monnier@cs.yale.edu>
22768
22769 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
22770 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
22771
227722002-11-01 Andreas Schwab <schwab@suse.de>
22773
22774 * editfns.c (Fmessage): Revert last change to properly handle %%.
22775
227762002-11-01 Stefan Monnier <monnier@cs.yale.edu>
22777
22778 * xmenu.c (unuse_menu_items): New fun.
22779 (menu_items_inuse): New var.
22780 (syms_of_xmenu): Initialize it.
22781 (init_menu_items): Use it to detect re-entrance.
22782 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
22783 (Fx_popup_menu): Remove spurious XSETFRAME.
22784
22785 * editfns.c (find_field): Make an exception for nil fields.
22786
227872002-11-01 Dave Love <fx@gnu.org>
22788
22789 * m/gec63.h: Deleted.
22790
227912002-10-31 Dave Love <fx@gnu.org>
22792
22793 * xterm.c (XTread_socket): Fix last change.
22794 (xaw_scroll_callback): Cast call_data to long to avoid warning.
22795
227962002-10-31 Stefan Monnier <monnier@cs.yale.edu>
22797
22798 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
22799
228002002-10-30 Stefan Monnier <monnier@cs.yale.edu>
22801
22802 * editfns.c (overlays_around, get_pos_property): New funs.
22803 (find_field): Use them.
22804 Also be careful not to modify POS before its last use.
22805 (Fmessage): Don't Fformat if there's nothing to format.
22806
228072002-10-30 Dave Love <fx@gnu.org>
22808
22809 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
22810 [HAVE_PTY_H]; Include pty.h.
22811
22812 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
22813
22814 * xterm.c (Qeql): Declare.
22815 (Vx_keysym_table): New.
22816 (syms_of_xterm): Initialize it.
22817 (XTread_socket): Use it. Deal with ASCII keysyms.
22818 (XSetIMValues) [HAVE_X11R6]: Prototype.
22819
22820 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
22821 (lispy_kana_keys): Comment out.
22822 (make_lispy_event) [XK_kana_A]: Comment out.
22823 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
22824 Fix sprintf call.
22825
22826 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
22827 regexp.h change).
22828 (TERMINFO, LIBS_TERMCAP): Define.
22829
22830 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
22831 (bcmp): Define conditional on HAVE_BCMP.
22832 (NO_SIOCTL_H): Don't define.
22833 (TIOCSIGSEND): Don't make conditional on IRIX6.
22834
22835 * s/sol2-5.h: Don't include strings.h.
22836 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
22837
22838 * s/irix6-0.h (IRIX6): Don't define.
22839 (bcopy, bcmp, bzero): Don't undef.
22840
22841 * s/irix6-5.h: Don't include strings.h.
22842 (IRIX6): Don't define.
22843 (bcopy, bcmp, bzero): Don't undef.
22844
22845 * syntax.c (Fforward_comment): Doc fix.
22846
228472002-10-29 Kim F. Storm <storm@cua.dk>
22848
22849 * process.c (Fsignal_process): Allow PROCESS to be specified by
22850 name in addition to pid (as integer or string).
22851
228522002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
22853
22854 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
22855 environments.
22856
228572002-10-27 Kim F. Storm <storm@cua.dk>
22858
22859 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
22860
22861 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
22862
22863 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
22864
22865 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
22866
228672002-10-26 Richard M. Stallman <rms@gnu.org>
22868
22869 * editfns.c (Fformat): Detect invalid format letters for floats.
22870
228712002-10-25 Kenichi Handa <handa@m17n.org>
22872
22873 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
22874 (x_set_title): Likewise.
22875
228762002-10-25 Juanma Barranquero <lektu@terra.es>
22877
22878 * macgui.h:
22879 * w32gui.h: Remove definition of XColor.
22880
22881 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
22882
228832002-10-24 Kim F. Storm <storm@cua.dk>
22884
22885 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
22886 Callers changed (supply dummy arg).
22887
22888 * lisp.h (get_window_cursor_type): Update prototype.
22889
22890 * w32term.c (x_display_and_set_cursor): Get active_cursor from
22891 get_window_cursor_type to track system caret.
22892
228932002-10-24 Kim F. Storm <storm@cua.dk>
22894
22895 * process.c (Fformat_network_address): New function.
22896 (syms_of_process): Defsubr it.
22897 (list_processes_1): Use it to format :local/:remote address if
f9711de4 22898 service/host is not set; before Emacs would crash in that case.
048addec
JD
22899 (Fmake_network_process): Don't use Ffind_operation_coding_system
22900 to setup coding system if host or service is not set.
22901
229022002-10-23 Juanma Barranquero <lektu@terra.es>
22903
22904 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
22905
22906 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
22907 COLORREF.
22908
22909 * macgui.h:
22910 * w32gui.h: Add definition of XColor.
22911
22912 * macfns.c:
22913 * w32fns.c:
22914 * xfaces.c: Remove definition of XColor.
22915
229162002-10-22 Stefan Monnier <monnier@cs.yale.edu>
22917
22918 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
22919
22920 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
22921 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
22922 window if it is dedicated.
22923 (Fshrink_window): Add preserve_before as was done for enlarge_window.
22924 (Vspecial_display_function): Update docstring.
22925
22926 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
22927 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
22928 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
22929
229302002-10-21 Stefan Monnier <monnier@cs.yale.edu>
22931
22932 * casefiddle.c (casify_region): Don't treat a prefix char as part
22933 of a word when at the beginning.
22934
229352002-10-17 Juanma Barranquero <lektu@terra.es>
22936
22937 * lread.c (syms_of_lread): Fix typos.
22938
229392002-10-17 Dave Love <fx@gnu.org>
22940
22941 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
22942
229432002-10-16 Richard M. Stallman <rms@gnu.org>
22944
22945 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
22946
229472002-10-14 Juanma Barranquero <lektu@terra.es>
22948
22949 * w16select.c (syms_of_win16select): Fix docstring for
22950 `selection-coding-system'.
22951
22952 * w32select.c (syms_of_w32select): Likewise.
22953
229542002-10-14 Stefan Monnier <monnier@cs.yale.edu>
22955
22956 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
22957 a backslash-quoted char.
22958 (scan_lists, scan_sexps_forward): Pacify the compiler.
22959
229602002-10-13 Richard M. Stallman <rms@gnu.org>
22961
22962 * window.c (window_scroll): Set immediate_quit.
22963
22964 * print.c (print): When backquote form is the car of a list,
22965 output in old style. Use old_backquote_output to output all
22966 comma forms inside it in old style too.
22967
22968 * buffer.h (struct buffer): Move `undo_list' down below `name'.
22969
229702002-10-11 Markus Rost <rost@math.ohio-state.edu>
22971
22972 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
22973 batch mode).
22974
22975 * lread.c (Fload): Doc fix (load-suffixes).
22976
229772002-10-10 Steven Tamm <steventamm@mac.com>
22978
22979 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
22980 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
22981 Also switch the default to Qnil from Qt.
22982
229832002-10-08 Kenichi Handa <handa@m17n.org>
22984
22985 * coding.c (code_convert_region): When we need more GAP for
22986 conversion, pay attention to the case that coding->produced is not
22987 greater than coding->consumed.
22988
229892002-10-07 Richard M. Stallman <rms@gnu.org>
22990
22991 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
22992
229932002-10-06 Andrew Choi <akochoi@shaw.ca>
22994
22995 * macmenu.c (mac_menu_show): Add j to count menu items; match
22996 menu_item_selection to it to find selected item.
22997
229982002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22999
23000 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
23001 cases. The correct fix is to pass ReparentNotify to Xt.
23002 The shell widget interprets ConfigureNotify differently depending
23003 on if it has been reparented or not.
23004
230052002-10-05 Markus Rost <rost@math.ohio-state.edu>
23006
23007 * editfns.c (Fformat_time_string): Doc fix.
23008
230092002-10-05 John Paul Wallington <jpw@shootybangbang.com>
23010
23011 * fns.c (Flength): Doc fix.
23012
230132002-10-04 Stefan Monnier <monnier@cs.yale.edu>
23014
23015 * keyboard.c (keyremap): New struct.
23016 (read_key_sequence): Use it: globally replace keytran_foo with
23017 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
23018 keytran_next and fkey_next to just `next'.
23019
230202002-10-04 Steven Tamm <steventamm@mac.com>
23021
23022 * macterm.c (keycode_to_xkeysym_table): Change return to be
23023 treated like an X keysym.
23024
230252002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23026
23027 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
23028 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
23029 This is to also handle x/y changes that occur because of a resize.
23030
230312002-10-02 John Paul Wallington <jpw@shootybangbang.com>
23032
23033 * frame.c (Vdelete_frame_functions): New variable.
23034 (syms_of_frame): Initialize and defvar it.
23035 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
23036 it when frame's `tooltip' parameter is non-nil.
23037
23038 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
23039
23040 * w32fns.c (x_create_tip_frame): Likewise.
23041
23042 * macfns.c (x_create_tip_frame): Likewise.
23043
230442002-09-30 Kenichi Handa <handa@m17n.org>
23045
23046 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
23047 -1 before calling ccl_driver.
23048
23049 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
23050 Only when it is non-nil, handle composition sequence.
23051 (setup_coding_system) <0>: Don't force composition handling.
23052
14a56a1b 23053 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
048addec
JD
23054
230552002-09-29 Richard M. Stallman <rms@gnu.org>
23056
23057 * search.c (Freplace_match): Adjust match data for the substitution
23058 just made in the buffer.
23059
23060 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
23061 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
23062
230632002-09-27 Richard M. Stallman <rms@gnu.org>
23064
23065 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
23066 (read_char): Use them. Do all exits thru the end of the function.
23067
230682002-09-27 Kenichi Handa <handa@etl.go.jp>
23069
23070 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
23071 is nil.
23072
230732002-09-26 Richard M. Stallman <rms@gnu.org>
23074
23075 * regex.h (__restrict_arr): Don't define if already defined.
23076
23077 * coding.c (run_pre_post_conversion_on_str):
23078 Save and restore Vdeactivate_mark.
23079
230802002-09-26 John Paul Wallington <jpw@shootybangbang.com>
23081
23082 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
23083
230842002-09-26 Kenichi Handa <handa@etl.go.jp>
23085
23086 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
23087 nonzero, try face's family at first. Otherwise try FAMILY at first.
23088 (choose_face_font): If C is a single byte char or latin-1, call
23089 try_font_list with PREFER_FACE_FAMILY 1.
23090
230912002-09-21 Richard M. Stallman <rms@gnu.org>
23092
23093 * window.c (select_window_1): Don't select frame.
23094 Set frame's selected window only when frame itself is selected.
23095 (Fselect_window): Doc fix.
23096
230972002-09-18 Kim F. Storm <storm@cua.dk>
23098
23099 * process.c (make-network-process): Doc fix (there is no
23100 network-server-log-function hook).
23101
231022002-09-18 Richard M. Stallman <rms@gnu.org>
23103
23104 * print.c (print): Clear out the unused parts of Vprint_number_table.
23105 (syms_of_print): Doc fix for `print-number-table'.
23106
23107 * unexelf.c (unexec): Undo previous change.
23108
231092002-09-17 Andreas Schwab <schwab@suse.de>
23110
23111 * m/alpha.h [LINUX]: Don't define DATA_START.
23112
231132002-09-16 Dave Love <fx@gnu.org>
23114
23115 * unexelf.c (unexec): Deal with .got, reinstating change from
23116 25-08-1999.
23117
231182002-09-13 Richard M. Stallman <rms@gnu.org>
23119
23120 * s/sol2-6.h (UNEXEC): Comment out definition.
23121
23122 * unexsol.c (unexec): Don't downcase first letter of error msg.
23123
23124 * xfaces.c (Fcolor_supported_p): Just one arg is required.
23125
231262002-09-12 Markus Rost <rost@math.ohio-state.edu>
23127
23128 * unexsol.c: Include buffer.h, charset.h, coding.h.
23129
231302002-09-11 Richard M. Stallman <rms@gnu.org>
23131
23132 * unexsol.c: Don't use report_file_error; do it by hand
23133 using dlerror.
23134
23135 * process.c (wait_reading_process_input, both versions):
23136 Before calling turn_on_atimers, call stop_polling.
23137
23138 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
23139
23140 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
23141 we go to too_near_end, call clear_glyph_matrix.
23142 (redisplay_window): After make_cursor_line_fully_visible,
23143 call clear_glyph_matrix and bypass `goto done'.
23144
23145 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
23146 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
23147
231482002-09-10 Richard M. Stallman <rms@gnu.org>
23149
23150 * fileio.c (Fdo_auto_save): Catch error making directory.
23151 Only call push_message if we need to.
23152 At the same time, make an unwind-protect to pop it.
23153 Rename local message_p to old_message_p.
23154 (do_auto_save_make_dir, do_auto_save_eh): New functions.
23155 (do_auto_save_unwind): Don't call pop_message.
23156
23157 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
23158
23159 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
23160
23161 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
23162
23163 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
23164
231652002-09-10 Stefan Monnier <monnier@cs.yale.edu>
23166
23167 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
23168 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
23169 (re_match_2_internal): Be more careful with infinite loops.
23170
231712002-09-10 Kim F. Storm <storm@cua.dk>
23172
23173 * macros.c (end_kbd_macro): New function.
23174 (Fend_kbd_macro): Use it.
23175
23176 * macros.h (end_kbd_macro): Declare extern.
23177
23178 * keyboard.c (Fdiscard_input): If defining keyboard macro,
23179 end and save it instead of discarding it.
23180
231812002-09-09 Markus Rost <rost@math.ohio-state.edu>
23182
23183 * s/sol2-6.h: Fix typo. Add comment.
23184
231852002-09-09 Richard M. Stallman <rms@gnu.org>
23186
23187 * regex.c (regnum_t): Use signed int, not unsigned int.
23188
23189 * s/sol2-6.h: New file.
23190
23191 * s/sol2-5.h (UNEXEC): Definition deleted.
23192
231932002-09-08 Kim F. Storm <storm@cua.dk>
23194
23195 * macros.c (executing_macro_index): Change type to EMACS_INT.
9dd28cae 23196 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
048addec
JD
23197
23198 * macros.h (executing_macro_index): Change type to EMACS_INT.
23199
232002002-09-06 Richard M. Stallman <rms@gnu.org>
23201
23202 * casetab.c (set_case_table): Make canon table point to eqv table.
23203
232042002-09-06 Juanma Barranquero <lektu@terra.es>
23205
23206 * coding.c (syms_of_coding): Fix spacing.
23207
23208 * composite.c (Fcompose_region_internal)
23209 (Fcompose_string_internal): Likewise.
23210
23211 * data.c (Flsh): Likewise.
23212
23213 * fontset.c (Fset_fontset_font): Likewise.
23214
23215 * macfns.c (Fx_server_max_request_size): Likewise.
23216
23217 * w16select.c (syms_of_win16select): Likewise.
23218
23219 * w32select.c (syms_of_w32select): Likewise.
23220
23221 * xselect.c (syms_of_xselect): Likewise.
23222
232232002-09-05 Richard M. Stallman <rms@gnu.org>
23224
23225 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
23226 call EXTEND_RANGE_TABLE and return a proper value.
23227 (set_image_of_range): Don't call set_image_of_range_1
23228 if no TRANSLATE or if range includes all of Latin-1.
23229 Only call it for the Latin-1 part of the range.
23230 For other cases, make two separate ranges,
23231 one for the original specified characters and one for
23232 their case-conversions.
23233
232342002-09-04 Richard M. Stallman <rms@gnu.org>
23235
23236 * s/sol2-5.h (UNEXEC): Use unexsol.o.
23237
23238 * window.c (displayed_window_lines): Correct for one-off bug
23239 in HEIGHT on non-window displays.
23240
23241 * regex.c (set_image_of_range_1): New function.
23242 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
23243 Return a value to indicate running out of memory.
23244 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
23245 (extend_range_table_work_area): New subroutine.
23246 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
23247 Different calling conventions, and used from set_image_of_range{,_1}.
23248 (IMMEDIATE_QUIT_CHECK): Definitions moved.
23249
232502002-09-04 Juanma Barranquero <lektu@terra.es>
23251
23252 * makefile.w32-in: All dependencies updated.
23253
232542002-09-01 Richard M. Stallman <rms@gnu.org>
23255
23256 * unexsol.c: New file.
23257
23258 * xfns.c (Qbox): Declare external, don't define.
23259
23260 * xdisp.c (redisplay_window) <force-start case>:
23261 If point is on semi-visible last line, reposition
23262 it at previous line.
23263
23264 * alloc.c (display_malloc_warning): Use display-warning.
23265 (malloc_warning_1): Function deleted.
23266
23267 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
23268
23269 * lread.c (read1): Handle #! by skipping the line.
23270
232712002-08-31 Richard M. Stallman <rms@gnu.org>
23272
23273 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
23274 Don't include LDFLAGS.
23275 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
23276
232772002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
23278
23279 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
23280 member of x_display_info unless we compile for some window system.
23281
232822002-08-31 Kim F. Storm <storm@cua.dk>
23283
23284 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
23285 (get_window_cursor_type): Don't use them.
23286 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
23287
232882002-08-30 Kenichi Handa <handa@etl.go.jp>
23289
23290 * xdisp.c (get_next_display_element): Fix previous change.
23291
232922002-08-30 Andrew Choi <akochoi@shaw.ca>
23293
23294 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
23295 (expose_window): Use it to fix the display of overlapping
23296 rows (merge code from xterm.c).
23297
23298 * macfns.c (Qbox): Add extern declaration.
23299
233002002-08-30 Juanma Barranquero <lektu@terra.es>
23301
23302 * w32fns.c (Qbox): Make extern.
23303 (syms_of_w32fns): Remove initialization of Qbox.
23304
233052002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
23306
23307 * xfns.c (Fx_open_connection): Fix error message.
23308
233092002-08-30 Kim F. Storm <storm@cua.dk>
23310
23311 The following changes consolidates the handling of the cursor
23312 type in xdisp.c, moving duplicate code and functionality from
23313 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
23314
23315 * frame.h (enum text_cursor_kinds): Consolidated here.
23316 Added DEFAULT_CURSOR value.
23317 (struct frame) <desired_cursor, cursor_width>
23318 <blink_off_cursor, blink_off_cursor_width>: New fields.
23319 Consolidated from output_x, output_w32 and output_mac structs.
23320 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23321 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
23322
23323 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
23324 Variables consolidated here.
23325 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
23326 (Vcursor_in_non_selected_windows): Renamed from
23327 cursor_in_non_selected_windows and changed to Lisp_Object.
23328 (syms_of_xdisp): Define and staticpro new and moved variables.
23329 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
23330 consolidated here. Recognize Qhollow setting.
23331 (set_frame_cursor_types): New function to set frame cursor types
23332 based on the frame parameters.
23333 (get_window_cursor_type): New function to calculate new cursor
23334 type and width for the specified window. Based on duplicated
23335 code consolidated here.
23336 Enhancements: cursor-in-non-selected-windows may be a cursor type,
23337 check buffer-local alternate-cursor-type and blink-cursor-alist
23338 before using built-in blink off methods.
23339
23340 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
23341
23342 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
23343 (get_specified_cursor_type, get_window_cursor_type)
23344 (set_frame_cursor_types): Added prototypes.
23345
23346 * macfns.c (x_specified_cursor_type): Removed.
23347 (x_set_cursor_type): Use set_frame_cursor_types.
23348 (Qbar, Qbox): Removed.
23349 (syms_of_macfns): Don't intern or staticpro them.
23350
23351 * macterm.c (x_specified_cursor_type): Remove prototype.
23352 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23353 (x_display_and_set_cursor): Use get_window_cursor_type.
23354 Remove unused local variables cursor_non_selected, active_cursor.
23355 Redraw cursor if hbar cursor width changes.
23356 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
23357
23358 * macterm.h (enum text_cursor_kinds): Removed.
23359 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
23360 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23361 (FRAME_DESIRED_CURSOR): Macro removed.
23362
23363 * w32fns.c (Vblink_cursor_alist): Removed.
23364 (Qbar, Qhbar, Qbox, Qhollow): Removed.
23365 (syms_of_w32fns): Don't intern, staticpro, or define them.
23366 (x_specified_cursor_type): Removed.
23367 (x_set_cursor_type): Use set_frame_cursor_types.
23368
23369 * w32term.c (x_specified_cursor_type): Remove prototype.
23370 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23371 (x_display_and_set_cursor): Use get_window_cursor_type.
23372 Remove unused local variables cursor_off_state.
23373 Redraw cursor if hbar cursor width changes.
23374 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
23375
23376 * w32term.h (enum text_cursor_kinds): Removed.
23377 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
23378 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23379 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23380 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
23381 (struct w32_display_info) <x_highlight_frame>: Renamed member from
23382 w32_highlight_frame.
23383
23384 * xfns.c (Vblink_cursor_alist): Removed.
23385 (Qbar, Qhbar, Qbox, Qhollow): Removed.
23386 (syms_of_xfns): Don't intern, staticpro, or define them.
23387 (x_specified_cursor_type): Removed.
23388 (x_set_cursor_type): Use set_frame_cursor_types.
23389
23390 * xterm.c (x_specified_cursor_type): Remove prototype.
23391 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23392 (x_display_and_set_cursor): Use get_window_cursor_type.
23393 Remove unused local variables cursor_off_state.
23394 Redraw cursor if hbar cursor width changes.
23395
23396 * xterm.h (enum text_cursor_kinds): Removed.
23397 (struct output_x) <current_cursor, desired_cursor, cursor_width>
23398 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23399 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23400 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
23401 (x_specified_cursor_type): Remove prototype.
23402
234032002-08-28 Richard M. Stallman <rms@gnu.org>
23404
23405 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
23406 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
23407 (Vblink_cursor_alist): New variable.
23408 (syms_of_w32fns): Initialize and defvar it.
23409 (x_specified_cursor_type): Recognize Qbox for filled box.
23410 Exceptions are hollow boxes.
23411 (Qbox, Qhollow): New variables.
23412 (syms_of_w32fns): Initialize and staticpro them.
23413
23414 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
23415 New macros.
23416 (struct w32_output): New fields blink_off_cursor,
23417 blink_off_cursor_width.
23418 (FRAME_CURSOR_WIDTH): New macro.
23419
23420 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
23421 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
23422
23423 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
23424 for bar cursor.
23425
23426 * w32term.c (expose_overlaps): New function.
23427 (expose_window): Use it to fix the display of overlapping rows.
23428
234292002-08-28 Simon Josefsson <jas@extundo.com>
23430
23431 * xfns.c (Fx_open_connection): Improve help when X connection
23432 fails, xhost is insecure and xauth is better.
23433
234342002-08-28 Juanma Barranquero <lektu@terra.es>
23435
23436 * makefile.w32-in: Add missing dependencies on w32term.h and
23437 composite.h.
23438
23439 * emacs.c (USAGE1): Add missing newline.
23440
234412002-08-27 Andrew Choi <akochoi@shaw.ca>
23442
23443 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
23444
234452002-08-27 Richard M. Stallman <rms@gnu.org>
23446
23447 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
23448 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
23449 (Vblink_cursor_alist): New variable.
23450 (syms_of_xfns): Initialize and defvar it.
23451 (x_specified_cursor_type): Recognize Qbox for filled box.
23452 Exceptions are hollow boxes.
23453 (Qbox, Qhollow): New variables.
23454 (syms_of_xfns): Initialize and staticpro them.
23455
23456 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
23457 New macros.
23458 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
23459
23460 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
23461 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
23462
23463 * emacs.c (main): Handle --script.
23464 (USAGE1): Mention --script.
23465 (standard_args): Define sort order for --script.
23466
234672002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
23468
23469 * xdisp.c (redisplay_updating_p): Variable removed.
23470 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
23471 New variables.
23472 (init_iterator): Don't free realized faces if
23473 inhibit_free_realized_faces is set.
23474 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
23475 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
23476 initialize Qinhibit_free_realized_faces.
23477
23478 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
23479 when iterator is adding glyphs to a glyph matrix.
23480
234812002-08-27 Kenichi Handa <handa@etl.go.jp>
23482
23483 * xdisp.c (get_next_display_element): In unibyte case, don't use
23484 octal form for such eight-bit characters that can be converted to
23485 multibyte char.
23486
234872002-08-26 Kim F. Storm <storm@cua.dk>
23488
b6189c3b
KS
23489 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
23490 foreground and background colors. From Joe Buehler.
048addec
JD
23491
234922002-08-26 Miles Bader <miles@gnu.org>
23493
23494 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
23495
234962002-08-25 Andrew Choi <akochoi@shaw.ca>
23497
23498 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
23499 defined instead of MAC_OSX.
23500
23501 * s/darwin.h (select): Define select to sys_select only if
23502 HAVE_CARBON is defined.
23503 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
23504 (DONT_REOPEN_PTY): #def it.
23505
23506 * macterm.c (XTread_socket): Remove code to call
23507 SendEventToEventTarget for keys with command modifiers when
23508 mac_command_key_is_meta is nil.
23509
235102002-08-24 Andreas Schwab <schwab@suse.de>
23511
23512 * eval.c (Fdefvar): Fix last change.
23513
235142002-08-23 Richard M. Stallman <rms@gnu.org>
23515
23516 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
23517 Record variables in load history as (defvar . VAR).
23518 (Fdefvar): Don't record in load history if no initial value.
23519 (Qdefvar): New variable.
23520 (syms_of_eval): Init and staticpro it.
23521
23522 * lread.c (syms_of_lread): Doc fix.
23523 (build_load_history): Use Fmember to see if a definition
23524 is already in the Vload_history element.
23525
23526 * process.c (Fstart_process): Remove /: from program name.
23527
23528 * emacs.c (decode_env_path): Don't add /: if file name handler
23529 has a `safe-magic' property.
23530
23531 * callproc.c (Fcall_process): Remove /: from program name.
23532
235332002-08-23 Stefan Monnier <monnier@cs.yale.edu>
23534
23535 * regex.c (PATFETCH): Remove the translating fetch.
23536 (PATFETCH_RAW): Rename to PATFETCH.
23537 (set_image_of_range): New fun.
23538 (SET_RANGE_TABLE_WORK_AREA): Use it.
23539 (regex_compile): Don't translate the pattern chars so eagerly.
23540 Only do it when inserting an `exactn' bytecode or when handling
23541 a char-range.
23542 (mutually_exclusive_p): Avoid empty statement.
23543
235442002-08-22 Kim F. Storm <storm@cua.dk>
23545
23546 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
23547 end up on a partially visible line; this reverts a specific part
23548 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
23549 display error which has been reported several times now.
23550 However it introduces the problem that changes was supposed to fix.
23551 See my comments in the source if you want to debug this further.
23552
235532002-08-20 Kenichi Handa <handa@etl.go.jp>
23554
23555 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23556
235572002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
23558
23559 * msdos.c (croak): Add `void' to definition.
23560
c1380aa6 23561 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
23562 Don't define them, they are defined in msdos.c.
23563
23564 * mem-limits.h [MSDOS]: Declare etext.
23565
23566 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
23567 `const' since CORRECT_DIR_SEPS modifies its target.
23568
235692002-08-19 Kim F. Storm <storm@cua.dk>
23570
2fb0ce67 23571 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
23572 KEEP-RECORD to avoid clearing lossage when we just want to clear
23573 the current key sequence (kmacro needs this).
23574
235752002-08-19 Kenichi Handa <handa@localhost>
23576
23577 * composite.c (run_composition_function): Call FUNC if it is fboundp.
23578
23579 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
23580 cons, return Qnil.
23581
235822002-08-17 Richard M. Stallman <rms@gnu.org>
23583
23584 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
23585
23586 * sysdep.c [!VMS]: Include sys/files.h.
23587
23588 * editfns.c (save_restriction_restore): Defend from unchained marker.
23589
23590 * buffer.c (overlays_at): Handle extending vec uniformly.
23591 (overlays_in): Handle extending vec from length 0 as in overlays_at.
23592
235932002-08-15 Andrew Choi <akochoi@shaw.ca>
23594
23595 * mac.c (init_mac_osx_environment): New function.
23596
23597 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
23598
235992002-08-14 Kim F. Storm <storm@cua.dk>
23600
23601 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
23602 executing macro before appending to it (when used from Lisp).
23603 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
23604 which is called prior to each iteration of macro (for kmacro.el).
23605 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
23606
23607 * lisp.h (Fexecute_kbd_macro): Update prototype.
23608
23609 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
23610
236112002-08-14 Kenichi Handa <handa@etl.go.jp>
23612
23613 * xselect.c (QUTF8_STRING): New variable.
23614 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
23615 (x_atom_to_symbol): Likewise.
23616 (x_get_local_selection): New argument local_request. If it is
23617 nonzero, call handler_fn with the second arg nil.
23618 (x_handle_selection_request): Call x_get_local_selection with
23619 local_request 0.
23620 (lisp_data_to_selection_data): Don't encode the string here.
23621 (Fx_get_selection_internal): Call x_get_local_selection with
23622 local_request 1.
23623 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
23624
23625 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
23626
23627 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
23628
236292002-08-13 Richard M. Stallman <rms@gnu.org>
23630
23631 * minibuf.c (Fminibufferp): New function.
23632 (syms_of_minibuf): Defsubr it.
23633 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
23634
236352002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
23636
23637 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
23638
236392002-08-12 Richard M. Stallman <rms@gnu.org>
23640
23641 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
23642 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
23643 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
23644 already.
23645
23646 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
23647
236482002-08-11 Andrew Choi <akochoi@shaw.ca>
23649
23650 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
23651 (Vmac_pass_command_to_system): New variable.
23652 (Vmac_pass_control_to_system): New variable.
23653 (do_mouse_moved): Check wp with is_emacs_window.
23654 (XTread_socket): Check window_ptr with is_emacs_window.
23655 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
23656 events back to Mac Toolbox for processing, depending on values of
23657 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
23658 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
23659 Vmac_pass_control_to_system.
23660
236612002-08-10 Kenichi Handa <handa@etl.go.jp>
23662
23663 * coding.c (unencodable_char_position): New function.
23664 (Funencodable_char_position): New function.
23665 (syms_of_coding): Defsubr Funencodable_char_position.
23666
236672002-08-10 Andrew Choi <akochoi@shaw.ca>
23668
23669 * mac.c (sys_select) [MAC_OSX]: New function.
23670
23671 * macterm.c (MakeMeTheFrontProcess): New function.
23672 (mac_initialize): Call MakeMeTheFrontProcess.
23673
23674 * s/darwin.h: Define select to sys_select.
23675
236762002-08-09 Richard M. Stallman <rms@gnu.org>
23677
23678 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
23679
236802002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
23681
23682 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
23683 end of the buffer.
23684
88fde92a 236852002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
23686
23687 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
23688
23689 * puresize.h (BASE_PURESIZE): Increase to 910000.
23690
236912002-08-08 Kenichi Handa <handa@etl.go.jp>
23692
23693 * coding.c (Ffind_operation_coding_system): For write-region, if
23694 VISIT is a filename, make it the target.
23695
236962002-08-07 Richard M. Stallman <rms@gnu.org>
23697
23698 * alloc.c (mark_object): Detect long lists for debugging.
23699 (mark_object_loop_halt): New variable.
23700
23701 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
23702
23703 * data.c (Fmake_variable_frame_local): Doc fix.
23704
237052002-08-01 David Ponce <david@dponce.com>
23706
23707 * w32menu.c (local_heap, local_alloc, local_free): New macros.
23708 (malloc_widget_value, free_widget_value)
23709 (w32_free_submenu_strings): Use them.
23710
23711 (push_submenu_start, push_submenu_end, push_left_right_boundary)
23712 (push_menu_pane, push_menu_item, single_keymap_panes)
23713 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
23714 (single_submenu, set_frame_menubar)
23715 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
23716
23717 (Fx_popup_menu): Don't show pop up menu until preceding one is
23718 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
23719
23720 * w32menu.c: Changes adapted from xmenu.c
23721 (set_frame_menubar): First parse all submenus,
23722 then make widget_value trees from them.
23723 Don't allocate any widget_value objects
23724 until we are done with the parsing.
23725 (parse_single_submenu): New function.
23726 (digest_single_submenu): New function.
23727 (single_submenu): Function deleted, replaced by those two.
23728
237292002-08-04 Andrew Choi <akochoi@shaw.ca>
23730
23731 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
23732 returns a valid window pointer before proceeding for keyDown and
23733 autoKey events.
23734
237352002-08-03 Andrew Choi <akochoi@shaw.ca>
23736
23737 * macterm.c (USE_CARBON_EVENTS): New macro.
23738 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
23739 (x_iconify_frame): Call CollapseWindow.
23740 (Vmac_reverse_ctrl_meta): New variable.
23741 (Vmac_wheel_button_is_mouse_2): New variable.
23742 (init_mac_drag_n_drop): New function.
23743 (mac_do_receive_drag): New function.
23744 (mac_handle_service_event): New function.
23745 (init_service_handler): New function.
23746 (mac_to_emacs_modifiers): New function.
23747 (mac_event_to_emacs_modifiers): New function.
23748 (mac_get_mouse_btn): New function.
23749 (mac_convert_event_ref): New function.
23750 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
23751 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
23752 mac_get_mouse_btn.
23753 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
23754
23755 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
23756 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
23757 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
23758 TOOL_BAR_EVENT for MAC_OS as well.
23759 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
23760 as for WINDOWS_NT.
23761 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
23762
23763 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
23764
237652002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
23766
23767 * xdisp.c (forward_to_next_line_start): Fix a condition that
23768 lead to a newline being skipped.
23769
237702002-08-02 Andrew Choi <akochoi@shaw.ca>
23771
23772 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
23773
237742002-08-01 Richard M. Stallman <rms@gnu.org>
23775
23776 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
23777
237782002-07-31 Andrew Choi <akochoi@shaw.ca>
23779
23780 * macfns.c: #undef init_process before #define-ing it.
23781
23782 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
23783 HAVE_CARBON is defined.
23784
237852002-07-31 Richard M. Stallman <rms@gnu.org>
23786
23787 * xmenu.c (set_frame_menubar): First parse all submenus,
23788 then make widget_value trees from them.
23789 Don't allocate any widget_value objects
23790 until we are done with the parsing.
23791 (parse_single_submenu): New function.
23792 (digest_single_submenu): New function.
23793 (single_submenu): Function deleted, replaced by those two.
23794
237952002-07-30 Juanma Barranquero <lektu@terra.es>
23796
23797 * w32proc.c (syms_of_ntproc): Fix docstring of
23798 `w32-get-true-file-attributes'.
23799
238002002-07-28 Richard M. Stallman <rms@gnu.org>
23801
23802 * s/hpux8.h (HPUX8): Define this before including hpux.h.
23803 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
23804
23805 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
23806
23807 * keyboard.c (make_lispy_event):
23808 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
23809 Explicitly clear up_modifier in event->modifiers.
23810
238112002-07-27 Richard M. Stallman <rms@gnu.org>
23812
23813 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
23814
23815 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
23816 for bar cursor.
23817
238182002-07-26 Kenichi Handa <handa@etl.go.jp>
23819
23820 * coding.c (detect_coding_iso2022): While checking a byte sequence
23821 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
23822 it in the normal loop.
23823
238242002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
23825
23826 * xterm.c (expose_overlaps): New function.
23827 (expose_window): Use it to fix the display of overlapping rows.
23828
23829 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
23830
238312002-07-23 Ken Raeburn <raeburn@gnu.org>
23832
23833 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
23834 since it only depends on XUINT.
23835
23836 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
23837 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
23838 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
23839 Macros deleted.
3947677c 23840
77d1daf2
AS
23841 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
23842 its value over other approaches.
23843 * sysdep.c (start_of_data): Don't define the function if a macro
23844 form has been defined.
8a8e19a3 23845
048addec
JD
238462002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
23847
23848 * xdisp.c (redisplay_updating_p): New variable.
23849 (init_iterator): Don't free realized faces when
23850 redisplay_updating_p is set.
23851 (redisplay_internal): Set redisplay_updating_p while updating
23852 the display.
23853
238542002-07-23 Richard M. Stallman <rms@gnu.org>
23855
23856 * editfns.c (Fmessage): Treat "" like nil.
23857
238582002-07-23 Kenichi Handa <handa@etl.go.jp>
23859
23860 * xdisp.c (face_before_or_after_it_pos):
23861 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23862
238632002-07-22 Juanma Barranquero <lektu@terra.es>
23864
23865 * callproc.c (init_callproc) [DOS_NT]:
23866 Initialize Vshared_game_score_directory to nil.
23867 (syms_of_callproc) [DOS_NT]: Likewise.
23868
238692002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
23870
23871 * xdisp.c (display_line): Replace an abort with xassert.
23872
238732002-07-21 Richard M. Stallman <rms@gnu.org>
23874
23875 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
23876 and END_UNCHANGED when setting buffer_unchanged_p.
23877 Use current_matrix_up_to_date_p to decide whether to use
23878 try_cursor_movement.
23879
23880 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
23881
23882 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
23883
23884 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
23885 Set to nil if dir does not exist.
23886 (syms_of_callproc): Init unconditionally and simply.
23887
23888 * buffer.c (Fbuffer_list): Doc fix.
23889
238902002-07-21 Ken Raeburn <raeburn@gnu.org>
23891
23892 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
23893
23894 * buffer.c (mmap_realloc): When shrinking, make sure number of
23895 pages to unmap is rounded towards zero.
23896
23897 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
23898 (XSETINT): Deleted.
23899
23900 * m/att3b.h (XINT): Don't define.
23901 (VALBITS, VALMASK, XTYPE): Deleted.
23902 (DATA_SEG_BITS): Define.
23903 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
23904 ARRAY_MARK_FLAG): Deleted.
23905 (DATA_SEG_BITS): Define.
23906 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
23907 (DATA_SEG_BITS): Define.
23908
239092002-07-20 Richard M. Stallman <rms@gnu.org>
23910
23911 * print.c (print_error_message): New args CONTEXT and CALLER.
23912 Calls changed.
23913
23914 * lisp.h (print_error_message): Declare new args.
23915
23916 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
23917 and CONTEXT to print_error_message, don't print them here.
23918 For a Quit, don't use Vsignaling_function.
23919 Call message_log_maybe_newline.
23920
23921 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
23922
239232002-07-20 Kim F. Storm <storm@cua.dk>
23924
23925 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
23926
239272002-07-19 Ken Raeburn <raeburn@gnu.org>
23928
23929 * bytecode.c (struct byte_stack): Pointers into byte string now
23930 point to const.
23931 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
23932 const.
23933 * charset.h (BCOPY_SHORT): Source pointer now points to const.
23934 * coding.c (encode_eol, detect_coding, detect_eol):
23935 (decode_coding, encode_coding, detect_coding_system):
23936 Source strings now treated as const.
23937 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
23938 modify Lisp string contents.
23939 * coding.h (decode_coding, encode_coding, detect_coding,
23940 detect_eol): Declarations updated.
23941 * composite.c (compose_chars_in_text): Treat Lisp string contents
23942 as const.
23943 * dispnew.c (safe_bcopy): Source pointer now points to const.
23944 * lisp.h (STRING_COPYIN): New macro.
23945 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
23946 (internal_with_output_to_temp_buffer): Declarations updated.
23947 * print.c (temp_output_buffer_setup):
23948 (internal_with_output_to_temp_buffer): Buffer name argument is now
23949 pointer to const.
23950 * sound.c (struct sound_device): Function pointer field "write"
23951 buffer argument now points to const.
23952 (vox_write): Buffer argument points to const.
23953 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
23954 contents as const.
23955 * sysdep.c (emacs_write): Buffer pointer now const.
23956 * term.c (encode_terminal_code): Buffer pointer now const.
23957 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
23958 (x_face_list_fonts, x_update_menu_appearance):
23959 (hash_string_case_insensitive): Treat Lisp string contents as const.
23960
239612002-07-19 Juanma Barranquero <lektu@terra.es>
23962
048addec
JD
23963 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
23964
23965 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
23966 (Ffile_name_as_directory): Fix argument name in docstring.
23967 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
23968
239692002-07-18 Richard M. Stallman <rms@gnu.org>
23970
23971 * data.c (Fdefalias): Doc fix.
23972
239732002-07-17 Dave Love <fx@gnu.org>
23974
23975 * intervals.h (text_property_stickiness): Use P_.
23976
23977 * ccl.c: Remove `emacs' conditionals.
23978 (ccl_backtrace_table): Fix size spec.
23979 (ccl_driver): Fix type errors.
23980
239812002-07-16 Ken Raeburn <raeburn@gnu.org>
23982
23983 * alloc.c (xstrdup, make_string, make_unibyte_string)
23984 (make_multibyte_string, build_string): String pointer args now
23985 point to const.
23986 * charset.c (find_charset_in_text, c_string_width):
23987 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
23988 * fileio.c (report_file_error):
23989 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
23990 (count_combining_before, count_combining_after, insert_1_both):
23991 (insert, insert_and_inherit, insert_string):
23992 (insert_before_markers, insert_before_markers_and_inherit):
23993 * lread.c (intern, oblookup, hash_string):
23994 * minibuf.c (temp_echo_area_glyphs):
23995 * search.c (fast_c_string_match_ignore_case):
23996 * sysdep.c (emacs_open, set_file_times):
23997 * xfaces.c (xstricmp):
23998 * xdisp.c (store_frame_title, string_char_and_length):
23999 (message_dolog, message2, message2_nolog, set_message): Likewise.
24000 (set_message_1): Cast message string argument to const pointer.
24001 * editfns.c (general_insert_function): Insertion function now
24002 takes pointer to const for input data.
24003 * charset.h (find_charset_in_text, c_string_width):
24004 (parse_str_as_multibyte): Declarations updated.
24005 * dispextern.h (xstricmp): Declaration updated.
24006 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
24007 (count_size_as_multibyte, count_combining_before):
24008 (count_combining_after, insert_1, insert_1_both, message_dolog):
24009 (insert, insert_and_inherit, insert_before_markers)
24010 (insert_before_markers_and_inherit, set_message, message2):
24011 (message2_dolog, build_string, make_string, make_unibyte_string):
24012 (make_multibyte_string, intern, oblookup, report_file_error):
24013 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
24014 (emacs_open, xstrdup): Declarations updated.
24015 * systime.h (set_file_times): Declaration updated.
24016
24017 * charset.c (find_charset_in_text, lisp_string_width): Use const
24018 for pointer to lisp string data.
24019 * charset.h (FETCH_STRING_CHAR_ADVANCE):
24020 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
24021 * coding.c (Ffind_coding_systems_region_interval):
24022 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
24023 (Fmake_directory_internal, Fdelete_directory):
24024 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
24025 * fontset.c (font_family_registry, fs_query_fontset):
24026 (list_fontsets):
24027 * frame.c (Fframe_parameter):
24028 * keyboard.c (cmd_error_internal):
24029 * keymap.c (Fdescribe_buffer_bindings):
24030 * lread.c (complete_filename_p, openp):
24031 * minibuf.c (Fminibuffer_complete_word):
24032 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
24033 (face_before_or_after_it_pos, next_element_from_string):
24034 (get_overlay_arrow_glyph_row, display_mode_element):
24035 (decode_mode_spec_coding):
24036 * xterm.c (same_x_server): Likewise.
24037
24038 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
24039 settings of non-existent fields.
24040
24041 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
24042 copy a lisp value.
24043
24044 * lread.c (Fintern_soft): Use string macros instead of
24045 Lisp_String fields.
24046 * keyboard.c (echo_char, parse_modifiers_uncached):
24047 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
24048 * textprop.c (validate_interval_range, interval_of): Likewise.
24049
24050 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
24051
24052 * charset.h (FETCH_STRING_CHAR_ADVANCE)
24053 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
24054 XSTRING()->size_byte.
24055
24056 * lisp.h (SDATA, SREF): Produce rvalue.
24057 (SSET): New macro.
24058 * alloc.c (make_event_array): Use SSET for storing into a string.
24059 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
24060 a string.
24061 * casefiddle.c (casify_object): Use SSET.
24062 * charset.h (FETCH_STRING_CHAR_ADVANCE)
24063 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
24064 address of string contents.
24065 * data.c (Faref): Use SDATA.
24066 (Faset): Use SDATA, SSET.
24067 * dired.c (directory_files_internal): Use SSET.
24068 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
24069 (Fread_file_name): Use SREF, SSET.
24070 * fns.c (concat): Use SSET.
24071 (concat, Fdelete): Use SDATA.
24072 * insdel.c (insert_from_string_1): Use SDATA.
24073 * keyboard.c (Fevent_convert_list): Use SREF.
24074 * lread.c (Fload): Use SDATA, SSET.
24075 * macfns.c (validate_x_resource_name): Use SSET.
24076 * process.c (status_message): Use SSET.
24077 * search.c (wordify): Use SDATA.
24078 (Freplace_match): Use SREF.
24079 * w32fns.c (validate_x_resource_name): Use SSET.
24080 * xfns.c (validate_x_resource_name): Use SSET.
24081 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
24082
240832002-07-16 Richard M. Stallman <rms@gnu.org>
24084
24085 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
24086
24087 * xdisp.c (reconsider_clip_changes):
24088 Don't test prevent_redisplay_optimizations_p.
24089 (redisplay_internal): Test prevent_redisplay_optimizations_p
24090 along with clip_changed in some cases.
24091 (try_window_id): Likewise.
24092 (redisplay_window): New local var buffer_unchanged_p.
24093
24094 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
24095
24096 * process.c (create_process): Test USG_SUBTTY_WORKS.
24097 (process_send_signal): Clean up handling of GID.
24098 Detect errors in ioctls meant to set GID.
24099
24100 * window.c (temp_output_buffer_show):
24101 Don't set prevent_redisplay_optimizations_p.
24102
241032002-07-15 Juanma Barranquero <lektu@terra.es>
24104
24105 * eval.c (Fdefvaralias): Add docstring argument.
24106
241072002-07-15 Ken Raeburn <raeburn@gnu.org>
24108
24109 * lisp.h (STRING_INTERVALS): Produce rvalue.
24110 (STRING_SET_INTERVALS): New macro.
24111 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
24112 * fns.c (Fstring_as_multibyte): Likewise.
24113 * intervals.c (balance_possible_root_interval, delete_interval)
24114 (create_root_interval, copy_intervals_to_string): Likewise.
24115 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
24116 instead of 0.
24117
241182002-07-14 Ken Raeburn <raeburn@gnu.org>
24119
24120 * lisp.h (STRING_SET_CHARS): New macro.
24121 (SCHARS, SBYTES): Produce rvalues.
24122 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
24123 * fns.c (concat): Likewise.
24124 * lread.c (read_vector): Likewise.
24125
3419757d 24126 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 24127 (STRING_SET_UNIBYTE): New macro.
3419757d 24128 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
24129 length of -1) changed to use STRING_SET_UNIBYTE.
24130 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
24131 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
24132 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
24133 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
24134 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
24135 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
24136 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
24137 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
24138 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
24139 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
24140 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
24141 STRING_BYTES or indirection changed to SCHARS, SBYTES,
24142 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
24143 unchanged for now.
24144
241452002-07-13 Kim F. Storm <storm@cua.dk>
24146
24147 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
24148
241492002-07-12 Richard M. Stallman <rms@gnu.org>
24150
24151 * fileio.c (Fwrite_region): Doc fix.
24152
24153 * print.c (print_error_message): Don't handle Vsignaling_function here.
24154
24155 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
24156 (command_loop_1): Avoid certain actions after memory-full error.
24157
24158 * eval.c (Fsignal): Don't call cancel_hourglass.
24159 For a memory-full error, don't call Vsignal_hook_function
24160 and don't set Vsignaling_function.
24161
24162 * process.c (process_send_signal): Add abort call.
24163
241642002-07-11 Markus Rost <rost@math.ohio-state.edu>
24165
24166 * keymap.c (Fkey_binding): Fix typo.
24167
241682002-07-11 Richard M. Stallman <rms@gnu.org>
24169
24170 * alloc.c (Vmemory_full): New variable.
3419757d 24171 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
24172 Uses changed.
24173 (syms_of_alloc): Defvar them.
24174 (memory_full, buffer_memory_full): Set Vmemory_full.
24175
24176 * lisp.h (Vmemory_full): Add declaration.
24177 (current_column, indented_beyond_p): Change declaration.
24178
24179 * indent.c (last_known_column): Declare as double, not float.
24180 (current_column, current_column_1, string_display_width)
24181 (position_indentation): Return `double'.
24182 (indented_beyond_p): Arg `column' is `double'. Callers changed.
24183
24184 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
24185 (back_to_previous_visible_line_start)
24186 (reseat_at_next_visible_line_start, next_element_from_buffer):
24187 Use `double', not `float', when calling indented_beyond_p.
24188
3419757d 24189 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
24190
24191 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
24192
241932002-07-11 Juanma Barranquero <lektu@terra.es>
24194
24195 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
24196 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
24197 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
24198 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
24199 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
24200 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
24201
242022002-07-10 Juanma Barranquero <lektu@terra.es>
24203
d814862a
JB
24204 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
24205 All callers changed.
048addec
JD
24206
242072002-07-09 Stefan Monnier <monnier@cs.yale.edu>
24208
24209 * data.c (Fdefalias): Add an optional `docstring' argument.
24210 (set_internal, Fsetq_default): Use XCAR/XCDR.
24211
24212 * composite.c (HASH_VALUE, HASH_KEY):
24213 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
24214
242152002-07-09 Kenichi Handa <handa@etl.go.jp>
24216
24217 * callproc.c (Fcall_process): Fix previous change.
24218
242192002-07-07 Stefan Monnier <monnier@cs.yale.edu>
24220
24221 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
24222 Add support for hash-tables.
24223 (Ftry_completion): Return t even if the string appears multiple times.
24224
24225 * fns.c (Fnconc): Use XCDR.
24226 (Fprovide): Use CONSP and XCDR.
24227 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
24228 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
24229 (Fmake_hash_table): Accept `:size nil'.
24230 (Fmakehash): Delete: moved to subr.el.
24231 (syms_of_fns): Don't defsubr makehash.
24232
24233 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
24234 (HASH_TABLE_SIZE): Move from fns.c.
24235
242362002-07-07 Richard M. Stallman <rms@gnu.org>
24237
24238 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
24239 Instead just return 0 when there is something to be done.
24240 (try_scrolling): If make_cursor_line_fully_visible returns 0,
24241 retry scrolling as if cursor were off the bottom.
24242 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
24243 return CURSOR_MOVEMENT_MUST_SCROLL.
24244 (redisplay_window): If make_cursor_line_fully_visible returns 0,
24245 go to try_to_scroll.
24246
24247 * buffer.c (Fbuffer_local_value): Store current value into its binding
24248 so we get the up-to-date value for the binding that is loaded.
24249
24250 * eval.c (Fdefmacro): Doc fix.
24251
242522002-07-05 Dave Love <fx@gnu.org>
24253
24254 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
24255 correctly.
24256
24257 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
24258 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
24259 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
24260 CCL_LookupCharConstTbl.
24261 (syms_of_ccl): Defvar translation-hash-table-vector.
24262
242632002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24264
24265 * xdisp.c: Remove unused variable `face'.
24266
242672002-07-04 Juanma Barranquero <lektu@terra.es>
24268
24269 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
24270 obsolescence information.
24271
242722002-07-03 Andrew Choi <akochoi@shaw.ca>
24273
24274 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
24275 pattern. Search cache first.
24276 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
24277 for Japanese font.
24278 (XLoadQueryFont): Use it.
24279
242802002-07-02 Richard M. Stallman <rms@gnu.org>
24281
24282 * keymap.c (Fdefine_key): Doc fix.
24283
24284 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
24285
242862002-07-02 Juanma Barranquero <lektu@terra.es>
24287
24288 * keymap.c (syms_of_keymap): Fix typo.
24289
242902002-07-01 Andrew Choi <akochoi@shaw.ca>
24291
24292 * s/darwin.h: Define POSIX_SIGNALS.
24293
24294 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
24295 and FSRefMakePath to convert FSSpec returned with Apple Event to
24296 Posix pathname.
24297 (mac_initialize) [TARGET_API_MAC_CARBON]:
24298 Call init_required_apple_events and disable the `Quit' menu item
24299 provided automatically by the Carbon Toolbox.
24300
243012002-07-01 Dave Love <fx@gnu.org>
24302
24303 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24304 for K&R.
24305
24306 * xterm.c: Fix prototype for K&R.
24307
24308 * term.c (costs_set): Declare static, non-initialized for pcc.
24309
243102002-07-01 Richard M. Stallman <rms@gnu.org>
24311
24312 * keyboard.c (timer_last_idleness_start_time): New variable.
24313 (timer_start_idle): Set that.
24314 (read_key_sequence): Use that to reset timer_idleness_start_time
24315 to previous value.
24316
24317 * window.c (Frecenter): With arg, set optional_new_start.
24318
24319 * xdisp.c (redisplay_internal): Make optional_new_start really work.
24320
24321 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
24322 buffer for completion.
24323
243242002-06-29 Ken Raeburn <raeburn@gnu.org>
24325
24326 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
24327
243282002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24329
24330 * keyboard.c (readable_filtered_events): New function that filters
24331 FOCUS_IN_EVENT depending on parameter.
24332 (readable_events): Calls readable_filtered_events, not filtering
24333 FOCUS_IN_EVENT.
24334 (get_filtered_input_pending): New function, filtering parameter passed
24335 to readable_filtered_events.
24336 (get_input_pending): Calls get_filtered_input_pending, not filtering
24337 FOCUS_IN_EVENT.
24338 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
24339 FOCUS_IN_EVENT.
24340
24341 * xterm.h (struct x_output): Add focus_state.
24342
24343 * xterm.c (x_focus_changed): New function.
24344 (x_detect_focus_change): New function.
24345 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
24346 EnterNotify and LeaveNotify to track X focus changes.
24347
243482002-06-28 Andreas Schwab <schwab@suse.de>
24349
24350 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
24351
243522002-06-27 Kim F. Storm <storm@cua.dk>
24353
52eb0373 24354 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
24355 (mode_line_string_face_prop): New variables.
24356 (store_mode_line_string): New function.
24357 (display_mode_element): Use store_mode_line_string to
24358 add mode-line string elements to mode_line_string_list
24359 when mode_line_string_list is non-nil.
24360 (Fformat_mode_line): Now returns propertized string by
24361 default. New arg NO-PROPS to ignore properties.
24362 (decode_mode_spec): Only add two dashes for %- in propertized
24363 mode-line string.
24364 (syms_of_xdisp): Init and staticpro mode_line_string_list.
24365
243662002-06-27 Stefan Monnier <monnier@cs.yale.edu>
24367
24368 * minibuf.c (minibuffer_completion_contents): Add return type.
24369
243702002-06-27 Juanma Barranquero <lektu@terra.es>
24371
24372 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
24373
243742002-06-26 Juanma Barranquero <lektu@terra.es>
24375
24376 * fileio.c (read_file_name_cleanup): Add missing return.
24377
243782002-06-26 Richard M. Stallman <rms@gnu.org>
24379
24380 * window.c (Frecenter): Don't set force_start flag.
24381
24382 * minibuf.c (do_completion, Fminibuffer_complete_word)
24383 (Fminibuffer_completion_help): Complete just the text before point.
24384 (minibuffer_completion_contents): New function.
24385
24386 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
24387
24388 * frame.c (frames_bury_buffer): Function deleted.
24389
243902002-06-25 Miles Bader <miles@gnu.org>
24391
24392 * callint.c (Fcall_interactively): When checking to see if doprnt hit
24393 the end of callint_message, allow for a terminating '\0'.
24394
243952002-06-24 Juanma Barranquero <lektu@terra.es>
24396
52eb0373 24397 * w32select.c: Include composite.h.
048addec
JD
24398
24399 * w16select.c: Likewise.
24400
244012002-06-24 Kenichi Handa <handa@etl.go.jp>
24402
24403 * callproc.c (Fcall_process): If code detection is necessary,
24404 call detect_coding directly here.
24405
24406 * coding.c (detect_eol): Preserve coding->cmp_data.
24407
24408 * w16select.c (Fw16_get_clipboard_data):
24409 * w32fns.c (w32_to_x_font):
24410 * w32select.c (Fw32_get_clipboard_data):
24411 * xselect.c (selection_data_to_lisp_data):
24412 * xterm.c (XTread_socket): Disable composition handling.
24413
244142002-06-24 Stefan Monnier <monnier@cs.yale.edu>
24415
24416 * print.c (temp_output_buffer_setup): Kill all local variables.
24417
244182002-06-22 Stefan Monnier <monnier@cs.yale.edu>
24419
24420 * lread.c (Fread): Remove redundant and imprecise declaration.
24421
24422 * xfns.c (check_x_display_info): Use check_x_frame.
24423
24424 * .gdbinit (xprintsym): Use the new `xname' field.
24425 (xsymbol): Use it.
24426
244272002-06-22 Jason Rumney <jasonr@gnu.org>
24428
24429 * w32fns.c (file_dialog_callback): New function.
24430 (Fx_file_dialog): Allow selecting directories as well as files.
24431
244322002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24433
24434 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 24435 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
24436
244372002-06-17 Andrew Choi <akochoi@shaw.ca>
24438
24439 * macterm.c (mac_scroll_area): Set foreground and backcolor to
24440 black and white before scrolling. Restore frame background and
24441 foreground color after scrolling.
24442 (do_window_update): Call XClearWindow before calling expose_frame.
24443 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
24444 FRAME_FOREGROUND_PIXEL of frame.
24445
24446 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
24447 test Mac command key as <ALT> key.
24448
244492002-06-17 Stefan Monnier <monnier@cs.yale.edu>
24450
24451 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
24452
24453 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
24454 Lookup keys in function-key-map immediately so that key-translation-map
24455 can be applied earlier.
24456 Remove function_key_possible and key_translation_possible, replaced
24457 by checking `keytran_start < t'.
24458
24459 * .gdbinit (xsymbol): Use the new `xname' field.
24460
244612002-06-17 Andrew Choi <akochoi@shaw.ca>
24462
24463 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
24464 test Mac command key as <ALT> key.
24465
24466 * mac.c (do_applescript): Call initialize_applescript if necessary
24467 when first called. Dispose of result_desc only when there is no error.
24468 (Fdo_applescript): Use %d format specifier instead of %ld.
24469
244702002-06-16 Andrew Choi <akochoi@shaw.ca>
24471
24472 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
24473 of FrontWindow for cases keyDown and autoKey.
24474
24475 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
24476 Vdefault_fontset to Monaco with mac-roman coding.
24477
24478 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
24479 init_process before and after inclusion of Carbon/Carbon.h, resp.
24480
24481 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
24482 cursor_gc.
24483 (add_font_name_table_entry): New function.
24484 (init_font_name_table): Use add_font_name_table_entry; add italic,
24485 bold, and bold-italic entries for truetype fonts.
24486
24487 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
24488 for Mac too.
24489 (try_font_list) [MAC_OS]: If no font matches given registry, try
24490 fonts with any registry matching face_family.
24491 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
24492
24493 * s/darwin.h: If autoconf detects the Ncurses library, define
24494 LIBS_TERMCAP to -lncurses to use it.
24495
244962002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
24497
24498 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
24499
245002002-06-15 Richard M. Stallman <rms@gnu.org>
24501
24502 * window.c (Fset_window_configuration): Explicitly preserve
24503 the point value that new_current_buffer had at the start.
24504
245052002-06-14 Juanma Barranquero <lektu@terra.es>
24506
24507 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
24508 Fix typos.
24509
245102002-06-14 Kim F. Storm <storm@cua.dk>
24511
24512 * insdel.c (insert_1_both, insert_from_string_1)
24513 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
24514 insert happened in the end_unchanged region. Otherwise, the
24515 redisplay may be confused and duplicate the last line in the
24516 buffer [seen after save-buffer when require-final-newline==t].
24517
245182002-06-13 Jason Rumney <jasonr@gnu.org>
24519
24520 * w32.c (init_environment): Remove EMACSLOCKDIR.
24521 (stat): Swap _S_IFDIR and _S_IFREG.
24522
245232002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24524
24525 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
24526 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
24527 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
24528 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
24529 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
24530 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
24531 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
24532 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
24533 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
24534 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
24535 SELECTION_REQUEST_EVENT, selection_clear_event to
24536 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
24537 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
24538 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
24539 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
24540 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
24541 no_event to NO_EVENT.
24542
245432002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24544
24545 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
24546
245472002-06-12 Stefan Monnier <monnier@cs.yale.edu>
24548
24549 * intervals.c (textget): Don't forget to `return'.
24550 (lookup_char_property): Use XCAR/XCDR.
24551
245522002-06-12 Juanma Barranquero <lektu@terra.es>
24553
24554 * xdisp.c (Fformat_mode_line): Fix typo.
24555
245562002-06-12 Kim F. Storm <storm@cua.dk>
24557
24558 * xdisp.c (Fformat_mode_line): New function.
24559 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
24560 (store_frame_title_char, store_frame_title): Use unconditionally.
24561 (init_xdisp): Defsubr Fformat_mode_line.
24562 Initialize frame_title_buf etc. unconditionally.
24563
245642002-06-11 Stefan Monnier <monnier@cs.yale.edu>
24565
24566 * keyboard.c (read_key_sequence):
24567 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
24568 things through those maps after downcasing events.
24569 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
24570 applies after function-key-map.
24571 Make sure that keytran can be done in the middle in the sequence.
24572 Be careful not to throw away events past the one we downcase.
24573
24574 * lread.c (read_integer): Remove unused var `tem'.
24575 (read1): Fix int/Lisp_Object mixup.
24576
24577 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
24578
245792002-06-11 Richard M. Stallman <rms@gnu.org>
24580
24581 * keyboard.c (readable_events): Ignore any number of
24582 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
24583
245842002-06-09 Miles Bader <miles@gnu.org>
24585
24586 * xfaces.c (Ftty_supports_face_attributes_p): New function.
24587 (parse_rgb_list, tty_lookup_color): New functions.
24588 (tty_defined_color): Use `tty_lookup_color' to do all the work.
24589 (color_distance, Fcolor_distance): New functions.
24590 (TTY_SAME_COLOR_THRESHOLD): New macro.
24591 (Qtty_color_standard_values): New variable.
24592 (syms_of_xfaces): Initialize new vars & functions.
24593
245942002-06-08 Colin Walters <walters@verbum.org>
24595
24596 * textprop.c (Vchar_property_alias_alist): New variable.
24597 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
24598
24599 * intervals.c (lookup_char_property): New function for looking up
24600 overlay and text properties, created from textget.
24601 (textget): Use it.
24602
24603 * intervals.h (lookup_char_property): Declare.
24604 (Vchar_property_alias_alist): Declare.
24605
24606 * buffer.c (Foverlay_get): Use lookup_char_property.
24607
246082002-06-07 Sam Steingold <sds@gnu.org>
24609
24610 * xselect.c (lisp_data_to_selection_data): Fix last change:
24611 *data_ret is not a Lisp string, while unibyte_string is.
24612
246132002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
24614
24615 * xselect.c (lisp_data_to_selection_data): Fix last change:
24616 set size_ret.
24617
246182002-06-07 Andreas Schwab <schwab@suse.de>
24619
24620 * m/amdx86-64.h: New file.
24621
246222002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
24623
24624 * fns.c (Fstring_make_unibyte): Doc fix.
24625
24626 * xselect.c (lisp_data_to_selection_data): If the requested type
24627 is STRING, call string_make_unibyte to encode the selected text
24628 as a string.
24629
24630 * window.c (Fset_window_hscroll): Doc fix.
24631
246322002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24633
24634 * fileio.c (choose_write_coding_system):
24635 Call select-safe-coding-system properly.
24636
246372002-06-03 Richard M. Stallman <rms@gnu.org>
24638
24639 * xdisp.c (message_with_string): Error if STRING is not a string.
24640
24641 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
24642
24643 * fileio.c (choose_write_coding_system): Pass FILE arg to
24644 Vselect_safe_coding_system_function.
24645
246462002-06-03 Ken Raeburn <raeburn@gnu.org>
24647
24648 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
24649
246502002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
24651
24652 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
24653 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
24654 * keymap.c (describe_command): Likewise.
24655 * minibuf.c (read_minibuf): Likewise.
24656
24657 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
24658 Cast `current_column' return value to int.
24659 (back_to_previous_visible_line_start)
24660 (reseat_at_next_visible_line_start, next_element_from_buffer):
24661 Cast `indented_beyond_p' 3rd arg to float.
24662
24663 * indent.c (last_known_column): Now a float.
24664 (current_column_1, position_indentation, current_column)
24665 (string_display_width): Return float.
24666 (Fcurrent_column): Cast `current_column' return value to int.
24667 (Fcurrent_indentation): Cast `position_indentation' retval to int.
24668 (indented_beyond_p): Third arg now a float.
24669 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
24670
24671 * lisp.h (current_column): Now returns float.
24672 (indented_beyond_p): 3rd arg now a float.
24673
246742002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
24675
24676 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
24677 is Qcompound_text_with_extensions.
24678
24679 * xselect.c (lisp_data_to_selection_data): Always set selection
24680 type as string if x_encode_text returns streingp non-NULL.
24681
24682 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
24683
246842002-05-30 Richard M. Stallman <rms@gnu.org>
24685
24686 * window.c (Fset_window_configuration): Correct the handling
24687 of point in current buffer, to work with multiple windows.
24688
246892002-05-29 Colin Walters <walters@verbum.org>
24690
24691 * lread.c (Fread_from_string): Don't depend on order of evaluation
24692 for C function parameters.
24693
246942002-05-28 Richard M. Stallman <rms@gnu.org>
24695
24696 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
24697 way for blinked-off state and for a nonselected window.
24698
24699 * window.c (window_scroll_pixel_based): Don't call Fbolp;
24700 instead, see if the new start pos is at beginning of line.
24701
24702 * fileio.c (Fwrite_region): If START is a string, don't
24703 make any annotations.
24704
24705 * eval.c (syms_of_eval): Doc fix.
24706
247072002-05-28 Colin Walters <walters@debian.org>
24708
24709 * emacs.c (USAGE1): Add --no-splash.
24710 (standard_args): Ditto.
24711
247122002-05-28 Colin Walters <walters@gnu.org>
24713
24714 * lread.c (readchar_count): New variable.
24715 (readchar): Increment it.
24716 (unreadchar): Decrement it.
24717 (read_multibyte): Decrement it.
24718 (Vread_with_symbol_positions): New variable.
24719 (Vread_symbol_positions_list): New variable.
24720 (read_internal_start): New function, created from Fread and
24721 Fread_from_string. Handle Vread_symbol_positions_list and
24722 Vread_with_symbol_positions.
24723 (readevalloop, Fread, Fread_from_string): Use it.
24724 (read1): Use readchar_count to add symbol positions to
24725 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
24726 (syms_of_lread): DEFVAR_LISP and initialize them.
24727
24728 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
24729 (substitute_object_recurse, substitute_object_in_subtree)
24730 (substitute_in_interval): Prototype.
24731 (read_multibyte): Return c if it's less than zero.
24732
247332002-05-28 Kim F. Storm <storm@cua.dk>
24734
24735 * fileio.c (Fread_file_name_internal): Added brute-force
24736 speed up for using predicate file-directory-p.
24737
247382002-05-28 Kim F. Storm <storm@cua.dk>
24739
24740 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
24741 New variables.
24742 (syms_of_fileio): DEFVAR_LISP them.
24743 (read_file_name_cleanup): New unwind function.
24744 (Fread_file_name_internal): Only return completions satifying
24745 Vread_file_name_predicate. Temporarily unwind protect and rebind
24746 default-directory while checking completions against the predicate.
24747 (Fread_file_name): Added PREDICATE argument. Specbind it to
24748 Vread_file_name_predicate during completion.
24749 Call Vread_file_name_function to read the file name if non-nil.
24750
24751 * lisp.h (Fread_file_name): Now has 6 args.
24752
24753 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
24754 predicate for Fread_file_name when reading directory name.
24755 Supply Qnil for predicate in other calls to Fread_file_name.
24756
247572002-05-26 Miles Bader <miles@gnu.org>
24758
24759 * term.c (tty_capable_p): New function.
24760 * dispextern.h (tty_capable_p): New function declaration.
24761 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
24762 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
24763
247642002-05-23 Stefan Monnier <monnier@cs.yale.edu>
24765
24766 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
24767 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
24768 (Vwrite_region_annotate_functions): Docstring fix.
24769
247702002-05-23 Kim F. Storm <storm@cua.dk>
24771
24772 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
24773 phys_cursor's hpos is overwritten. This is still not completely
24774 correct, as it doesn't really make sense to use hpos at all to
24775 get the cursor glyph (as that is relative to the width of the
24776 characters on the line, which may have changed during the update).
24777
247782002-05-22 Jason Rumney <jasonr@gnu.org>
24779
24780 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
24781 Lisp_Object.
24782 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
24783 Use modified enumfont_t struct.
24784
24785 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
24786
24787 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
24788 Handle the `hbar' cursor type.
24789 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
24790
24791 * w32fns.c (Qhbar): New variable.
24792 (x_specified_cursor_type): Use it.
24793
247942002-05-21 Ken Raeburn <raeburn@gnu.org>
24795
24796 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
24797 now, when the address is needed.
24798
247992002-05-21 Colin Walters <walters@gnu.org>
24800
24801 * Makefile.in (shortlisp): Add font-core.el.
24802
248032002-05-20 Richard M. Stallman <rms@gnu.org>
24804
24805 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
24806
24807 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
24808 equivalent key bindings here.
24809
248102002-05-20 Ken Raeburn <raeburn@gnu.org>
24811
24812 Change symbol structure to contain a lisp object for the symbol
24813 name:
24814 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
24815 object field named "xname".
24816 (SYMBOL_NAME): New macro.
24817 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
24818 name field.
24819 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
24820 (mark_object, gc_sweep): Use symbol xname field and XSTRING
24821 instead of name field.
24822 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
24823 SYMBOL_NAME instead of XSYMBOL and name field.
24824 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
24825 instead of XSYMBOL and name field.
24826 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
24827 and SYMBOL_NAME instead of XSYMBOL and name field.
24828 * coding.c (Fread_coding_system, code_convert_region1)
24829 (code_convert_string1, code_convert_string_norecord)
24830 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
24831 XSYMBOL and name field.
24832 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
24833 (Fmake_variable_buffer_local, Fmake_local_variable)
24834 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
24835 of XSYMBOL and name field.
24836 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
24837 XSYMBOL and name field.
24838 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
24839 instead of XSYMBOL and name field.
24840 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
24841 XSYMBOL and name field.
24842 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
24843 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24844 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
24845 instead of XSYMBOL and name field.
24846 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
24847 (parse_modifiers, apply_modifiers, Fevent_convert_list)
24848 (parse_solitary_modifier, Fexecute_extended_command):
24849 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24850 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
24851 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
24852 of XSYMBOL and name field.
24853 (describe_command, describe_translation): Use SYMBOL_NAME and
24854 assignment instead of XSYMBOL and name field and XSETSTRING.
24855 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
24856 instead of XSYMBOL and name field.
24857 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
24858 name field and XSETSTRING.
24859 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
24860 of XSYMBOL and name field.
24861 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
24862 assignment instead of XSYMBOL and name field and XSETSTRING.
24863 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
24864 XSTRING instead of XSYMBOL and name field.
24865 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
24866 and XSTRING instead of XSYMBOL and name field.
24867 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
24868 and XSTRING instead of XSYMBOL and name field.
24869 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
24870 XSTRING instead of XSYMBOL and name field.
24871 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
24872 of XSYMBOL and name field.
24873 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
24874 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24875
248762002-05-19 Ken Raeburn <raeburn@gnu.org>
24877
24878 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
24879 and XCDR real rvalues in most configurations.
24880
24881 * buffer.c (fix_overlays_in_range, fix_overlays_before):
24882 Don't take the address of the cdr part of a cons cell; instead, track
24883 the parent cell and call XSETCDR, or set the variable for the head
24884 of the list if we haven't started down the list yet.
24885
248862002-05-19 Richard M. Stallman <rms@gnu.org>
24887
24888 * doc.c (reread_doc_file): Don't ask for confirmation.
24889
248902002-05-18 Jason Rumney <jasonr@gnu.org>
24891
24892 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
24893 (xbm_load_image): Use it.
24894 (xbm_load): Ditto.
24895 (xbm_read_bitmap_data): Reverted to xfns.c version.
24896 From David Ponce <david@dponce.com>.
24897
248982002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
24899
24900 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
24901 2.02 and later.
24902
249032002-05-16 Juanma Barranquero <lektu@terra.es>
24904
24905 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
24906
249072002-05-15 Stefan Monnier <monnier@cs.yale.edu>
24908
24909 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
24910 meaningful test.
24911 (read_char_minibuf_menu_prompt): Fix typo.
24912
249132002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
24914
24915 * eval.c (Fcommandp): Doc fix.
24916
249172002-05-13 Stefan Monnier <monnier@cs.yale.edu>
24918
24919 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
24920 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
24921 (Fset_keymap_parent): Gcpro a bit more.
24922 (access_keymap): Gcpro around meta_map call and around the main loop.
24923 (get_keyelt): Gcpro when following indirect references.
24924 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
24925 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
24926 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
24927 Remove useless ad-hoc remap code.
24928
249292002-05-13 Richard M. Stallman <rms@gnu.org>
24930
24931 * search.c (search_buffer): Give up boyer moore search if inverse
24932 translation change charset_base.
24933
249342002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
24935
24936 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
24937 characters is carried over from the previous block of text, adjust
24938 coding->produced to account for the extra character.
24939
249402002-05-11 Andreas Schwab <schwab@suse.de>
24941
24942 * coding.c (intersection): Keep the elements of the returned list
24943 in the same order as in the first list.
24944
249452002-05-11 Kim F. Storm <storm@cua.dk>
24946
3419757d 24947 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
24948 only update cmm_size if realloc actually succeeds.
24949 Testing with initial size of 2 elements revealed that using
24950 realloc on GNU/Linux would cause a random trap in xmalloc
24951 later on, so I rewrote the code to use malloc/bcopy/free instead
24952 of realloc.
24953
249542002-05-10 Jason Rumney <jasonr@gnu.org>
24955
24956 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
24957
249582002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
24959
24960 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
24961 parens, to ensure correct evaluation order.
24962
249632002-05-10 Kim F. Storm <storm@cua.dk>
24964
24965 * keymap.c (Vemulation_mode_map_alists): New variable.
24966 (syms_of_keymap): DEFVAR_LISP it.
24967 (current_minor_maps): Process keymap alists in that list before
24968 minor-mode-overriding-map-alist and minor-mode-map-alist.
24969
249702002-05-09 Richard M. Stallman <rms@gnu.org>
24971
24972 * search.c (Freplace_match): Doc fix.
24973
249742002-05-09 Kim F. Storm <storm@cua.dk>
24975
24976 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
24977 Enlarge cursor rectangle drawn around image with non-zero relief.
24978
24979 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
24980 Enlarge cursor rectangle drawn around image with non-zero relief.
24981
24982 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
24983 Enlarge cursor rectangle drawn around image with non-zero relief.
24984
249852002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
24986
24987 * xselect.c (lisp_data_to_selection_data): Don't set selection
24988 type if comes from the Lisp object's car. If the selection
24989 contains a pure ASCII text, always return QSTRING as its type.
24990
249912002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24992
24993 * mac.c (mac-cut-function): Doc fix.
24994
249952002-05-05 Richard M. Stallman <rms@gnu.org>
24996
24997 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
24998
249992002-05-04 Jason Rumney <jasonr@gnu.org>
25000
25001 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
25002 for event-click-count.
25003
25004 * process.c (init_process): Only add server subfeature if we can
25005 use non-blocking I/O.
25006
250072002-05-04 Andrew Choi <akochoi@shaw.ca>
25008
25009 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
25010 repeatedly.
25011
250122002-05-03 Jason Rumney <jasonr@gnu.org>
25013
25014 * process.c (Fmake_network_process): Only support server sockets
25015 when we can make them non-blocking.
25016
25017 * s/ms-w32.h (HAVE_SELECT): Define.
25018
25019 * w32.h (FILE_NDELAY): New flag.
25020
25021 * w32.c (sys_getpeername, fcntl): New functions.
25022 (_sys_read_ahead): Temporarily block on non-blocking sockets.
25023
2d4713aa 25024 * w32proc.c: Include sys/file.h.
048addec
JD
25025
250262002-05-03 Colin Walters <walters@verbum.org>
25027
25028 * callproc.c (Vgame_score_directory): Renamed to
25029 Vshared_game_score_directory.
25030
250312002-04-30 Richard M. Stallman <rms@gnu.org>
25032
25033 * s/gnu.h [emacs]: Include stdio.h.
25034 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
25035
25036 * eval.c (do_autoload): Error if called while preparing to dump.
25037
25038 * fns.c (Frequire): Error if need to load while preparing to dump.
25039
250402002-04-28 Colin Walters <walters@verbum.org>
25041
25042 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
25043 Default to "~/.emacs.d/games".
25044
250452002-04-29 Stefan Monnier <monnier@cs.yale.edu>
25046
25047 * lread.c (openp): Change arg exec_only to predicate.
25048 (build_load_history): Use XCAR/XCDR.
25049 (Flocate_file_internal): New fun.
25050 (syms_of_lread): Defsubr it.
25051 (Fload): Update call to openp.
25052
25053 * lisp.h (openp): Update prototype.
25054
25055 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
25056 * w32proc.c (sys_spawnve):
25057 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
25058 * w32.c (check_windows_init_file):
25059 * sound.c (Fplay_sound_internal):
25060 * process.c (Fstart_process):
25061 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
25062 * mac.c (run_mac_command):
25063 * emacs.c (init_cmdargs):
25064 * callproc.c (Fcall_process): Update call to openp.
25065
25066 * textprop.c (remove_properties): Don't use XCAR without CONSP.
25067
25068 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
25069
250702002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25071
25072 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
25073 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
25074
250752002-04-28 Richard M. Stallman <rms@gnu.org>
25076
25077 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
25078
25079 * eval.c (Fcommandp): New arg for_call_interactively.
25080 * lisp.h (Fcommandp): Declare new arg.
25081
250822002-04-28 Jason Rumney <jasonr@gnu.org>
25083
25084 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
25085
25086 * w32.c (stat, fstat): Use file index information to generate
25087 inodes for directories where available.
25088
250892002-04-26 Andrew Choi <akochoi@shaw.ca>
25090
25091 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
25092 [HAVE_CARBON]: Include Mac object files.
25093
25094 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
25095 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
25096 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
25097 MAC_OSX, and MAC_OS instead of macintosh.
25098
25099 * editfns.c [MAC_OS8]: Include stdio.h.
25100
25101 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
25102
25103 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
25104 Apple Monaco.
25105
78819ebb 25106 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
25107 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
25108 calling select.
25109
25110 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
25111
25112 * tparam.c [MAC_OSX]: Don't define BC and UP.
25113
25114 * config.in [HAVE_CARBON]: Add.
25115
25116 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
25117 Move here from mac/src and mac/inc.
25118
25119 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
25120
251212002-04-26 Gerd Moellmann <gerd@gnu.org>
25122
25123 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
25124 Compute phys_cursor_width from the x position returned
25125 by x_draw_glyhs, which is cheaper.
25126 (x_display_and_set_cursor): Compute the buffer-local value
25127 of `cursor-in-non-selected-windows' only when needed.
25128
251292002-04-25 Gerd Moellmann <gerd@gnu.org>
25130
25131 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
25132 cursor on a stretch glyph has a width that depends on
25133 x_stretch_cursor_p.
25134
251352002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25136
25137 * abbrev.c (abbrev-start-location): Doc fix.
25138
25139 * indent.c (Fvertical_motion): Fix last change.
25140
251412002-04-25 Gerd Moellmann <gerd@gnu.org>
25142
25143 * indent.c (Fvertical_motion): Move to the start of the line
25144 containing PT before moving up or down.
25145
251462002-04-24 Gerd Moellmann <gerd@gnu.org>
25147
25148 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
25149 case of writing a whole row, more or less analogous to the case of
25150 writing only parts of a row.
25151
25152 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
25153 0 for NO_CURSOR.
25154
25155 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
25156
251572002-04-23 Colin Walters <walters@verbum.org>
25158
25159 * buffer.c (syms_of_buffer): Doc fix.
25160
251612002-04-23 Gerd Moellmann <gerd@gnu.org>
25162
25163 * xterm.c (notice_overwritten_cursor): Handle the special case
25164 of the cursor being in the first blank non-text line at the
25165 end of a window.
25166
25167 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
25168 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
25169 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
25170 bar cursors only, to make phys_cursor_width contain what its name
25171 suggests.
25172 (notice_overwritten_cursor): Consider the cursor image erased if
25173 the output area intersects the cursor image in y-direction.
25174
251752002-04-23 Simon Marshall <simon@gnu.org>
25176
25177 * xfns.c (x_set_mouse_color): Change default for cross_cursor
25178 to XC_hand2.
25179
251802002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25181
25182 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
25183
251842002-04-22 Kim F. Storm <storm@cua.dk>
25185
25186 * textprop.c (remove_properties): Fixed trap for malformed plist.
25187
251882002-04-22 Richard M. Stallman <rms@gnu.org>
25189
25190 * cmds.c (Fend_of_line): Handle intangible text in mid line.
25191
25192 * window.c (make_window): Initialize height_fixed_p,
25193 last_cursor_off_p, and p->cursor_off_p slots.
25194
251952002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25196
25197 * fns.c (use-dialog-box): Doc fix.
25198
251992002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25200
25201 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
25202 variables `row', `i' and `area'.
25203 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
25204 toolkit library.
25205
252062002-04-19 Stefan Monnier <monnier@cs.yale.edu>
25207
25208 * xfaces.c (clear_font_table): Don't free the default font of
25209 a frame even if it's on another display.
25210 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
25211 that could be Qt.
25212
252132002-04-19 Juanma Barranquero <lektu@terra.es>
25214
25215 * indent.c (Fmove_to_column): Remove unused local variable
25216 `next_boundary_byte'.
25217 (current_column_1): Likewise.
25218
252192002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
25220
25221 * msdos.c (Qhbar): New variable.
25222 (syms_of_msdos): Intern and staticpro it.
25223 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
25224 cursor type.
25225
252262002-04-19 Dave Lambert <dlambert@acm.org>
25227
25228 Theses change implement an underscore-like (`hbar') cursor.
25229
25230 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
25231
25232 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
25233 Handle the `hbar' cursor type.
25234 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
25235
25236 * xfns.c (Qhbar): New variable.
25237 (syms_of_xfns): Intern and staticpro it.
25238 (x_specified_cursor_type): Handle `hbar' cursor.
25239
25240 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
25241 not defined.
25242
252432002-04-18 Richard M. Stallman <rms@gnu.org>
25244
25245 * textprop.c (remove_properties): New arg LIST allows scanning
25246 either a list or a plist.
25247 (interval_has_some_properties_list): New function, like
25248 interval_has_some_properties using list instead of plist.
25249 All callers changed.
25250 (Fremove_list_of_text_properties): New function.
25251 (syms_of_textprop): Defsubr it.
25252
252532002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
25254
25255 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
25256
252572002-04-17 Juanma Barranquero <lektu@terra.es>
25258
25259 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
25260
252612002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
25262
25263 * window.c (coordinates_in_window): Don't report on margin area
25264 if its width is zero.
25265
252662002-04-16 Jason Rumney <jasonr@gnu.org>
25267
25268 * w32fns.c (Fx_file_dialog): Decode file name before using.
25269
25270 * w32term.c (construct_drag_n_drop): Likewise.
25271
252722002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
25273
25274 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
25275 store load-history in pure space.
25276
25277 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
25278
252792002-04-16 Stefan Monnier <monnier@cs.yale.edu>
25280
25281 * xterm.c (Qlatin_1, Qutf_8): New vars.
25282 (syms_of_xterm): Initialize them.
25283 (XTread_socket): Eliminate incorrect optimization that tried to avoid
25284 decoding the output of X*LookupString.
25285 Always use latin-1 to decode the output of XLookupString.
25286 Try Xutf8LookupString if XmbLookupString failed.
25287
25288 * region-cache.c (new_region_cache): Use BEG.
25289
252902002-04-16 Gerd Moellmann <gerd@gnu.org>
25291
25292 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
25293 configuration files.
25294 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
25295 returns 0.
25296
252972002-04-15 Andreas Schwab <schwab@suse.de>
25298
25299 * config.in: Regenerated using autoheader.
25300
25301 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
25302 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
25303 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
25304 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
25305 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
25306 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
25307 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
25308 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
25309 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
25310 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
25311 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
25312 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
25313 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
25314 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
25315 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
25316 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
25317 STACK_DIRECTION, now set by autoconf.
25318
253192002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25320
25321 * dispnew.c (marginal_area_string): Sort arguments.
25322
25323 * dispextern.h (marginal_area_string): Add prototype.
25324
253252002-04-13 Richard M. Stallman <rms@gnu.org>
25326
25327 * fileio.c (Finsert_file_contents):
25328 Don't call temp_output_buffer_setup--do just part, by hand.
25329
25330 * coding.c (run_pre_post_conversion_on_str):
25331 Don't call temp_output_buffer_setup--do just part, by hand.
25332
25333 * keyboard.c (command_loop_1): Don't call start_hourglass
25334 or cancel_hourglass when executing a macro.
25335
25336 * marker.c (count_markers): New function.
25337
25338 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
25339 grow without limit. Move recently used elements to the front.
25340
253412002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
25342
25343 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
25344
253452002-04-12 Gerd Moellmann <gerd@gnu.org>
25346
25347 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
25348 rows marginal areas.
25349 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
25350 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
25351
25352 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
25353
253542002-04-12 Dave Love <fx@gnu.org>
25355
25356 * dispnew.c (marginal_area_string): New.
25357
25358 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
25359 (Qleft_margin, Qright_margin): Declare.
25360 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
25361
25362 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
25363 note_mode_line_highlight and extended.
25364
25365 * keyboard.c (Qleft_margin, Qright_margin): Declare.
25366 (make_lispy_event): Deal with mouse events in margins.
25367
253682002-04-12 Stefan Monnier <monnier@cs.yale.edu>
25369
25370 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
25371
25372 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
25373 than deactivating the mark if tmm is set to `lambda'.
25374 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
25375 Use a single event for HELP_EVENT.
25376 (Fexecute_extended_command): Save last_point_position.
25377
253782002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25379
25380 * lisp.h (Fpropertize): Add prototype.
25381
25382 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
25383
253842002-04-10 Colin Walters <walters@verbum.org>
25385
25386 * config.in: Add HAVE_SHARED_GAME_DIR.
25387
52eb0373 25388 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
25389 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
25390
253912002-04-10 Richard M. Stallman <rms@gnu.org>
25392
25393 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
25394
253952002-04-09 Stefan Monnier <monnier@cs.yale.edu>
25396
25397 * minibuf.c (read_minibuf): Use empty_string.
25398 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
25399 Short-circuit the search as soon as it "failed".
25400 (Fall_completions): Allow lambda forms and lists of strings for alist.
25401 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
25402 when require_match is nil.
25403 (Ftest_completion): Rename from `test_completion' and export to elisp.
25404 Call the predicate also when alist is a list.
25405 Obey Vcompletion_regexp_list.
25406 (do_completion, Fminibuffer_complete_and_exit): Use it.
25407 (Fassoc_string): Rename from `assoc_for_completion'.
25408 Allow list of strings as well and export to elisp.
25409
254102002-04-08 Stefan Monnier <monnier@cs.yale.edu>
25411
25412 * puresize.h (BASE_PURESIZE): Increase to 900KB.
25413
254142002-04-08 Juanma Barranquero <lektu@terra.es>
25415
25416 * w32.c (sys_accept): Don't hide variable `s'.
25417
254182002-04-05 Gerd Moellmann <gerd@gnu.org>
25419
25420 * callint.c (Fcall_interactively): Use INTEGERP instead of
25421 NUMBERP for checking Vhistory_length.
25422
254232002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25424
25425 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
25426 Doc fix to reflect it.
25427
254282002-04-04 Richard M. Stallman <rms@gnu.org>
25429
25430 * xdisp.c (display_mode_element): New arg RISKY.
25431 Disregard text props found or specified within a variable
25432 that isn't marked risky-local-variable.
25433 (Qrisky_local_variable): New variable.
25434 (syms_of_xdisp): Init and staticpro it.
25435
254362002-04-04 Stefan Monnier <monnier@cs.yale.edu>
25437
25438 * undo.c (record_point): New fun.
25439 (record_delete, record_insert): Use it.
25440
254412002-04-03 Juanma Barranquero <lektu@terra.es>
25442
25443 * doc.c (Fdocumentation): Add missing parentheses.
25444 (Fdocumentation_property): Likewise.
25445
254462002-04-03 Stefan Monnier <monnier@cs.yale.edu>
25447
25448 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
25449 data is 0, just return nil.
25450
254512002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
25452
25453 * msdos.c (syms_of_msdos): Fix last change with
25454 mouse_autoselect_window.
25455
254562002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25457
25458 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
25459 mouse_autoselect_window.
25460
254612002-04-02 Stefan Monnier <monnier@cs.yale.edu>
25462
25463 * keyboard.c (make_lispy_event): Handle unknown keysyms together
25464 with system-specific keysyms. Use it also for unknown function keys.
25465
25466 * doc.c (reread_doc_file): Return whether reload was attempted.
25467 (Fdocumentation, Fdocumentation_property): Don't try to reload
25468 if the doc is 0 and only ask once.
25469
25470 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
25471
254722002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
25473
25474 * keyboard.c (read_char): If the event was Qselect_window,
25475 restore timer_idleness_start_time to its previous value.
25476
25477 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
25478
254792002-04-01 Stefan Monnier <monnier@cs.yale.edu>
25480
25481 * region-cache.c (new_region_cache): Use BEG.
25482
25483 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
25484 Use BEG and BEG_BYTE.
25485
25486 * doc.c (get_doc_string): Return nil if the location is wrong.
25487 (reread_doc_file): New fun.
25488 (Fdocumentation, Fdocumentation_property):
25489 Call it if get_doc_string fails.
25490 (Fsnarf_documentation): Make it work for a dumped Emacs.
25491
25492 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
25493 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
25494
25495 * charset.c (Fstring): Allow 0 arguments.
25496
25497 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
25498
25499 * process.c (DATAGRAM_CONN_P, list_processes_1)
25500 (Fprocess_datagram_address, Fset_process_datagram_address)
25501 (Fset_network_process_options, server_accept_connection):
25502 Fix some int/Lisp_Object confusions (thank you union types).
25503
255042002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25505
25506 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
25507
25508 * w32term.c: Likewise.
25509 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
25510
25511 * keyboard.c (Qselect_window): New symbol.
25512 (head_table): Use it.
25513 (keys_of_keyboard): Bound select-window event to handle-select-window.
25514 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
25515
25516 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
25517 (last_window): New variable.
25518 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
25519 (note_mouse_movement): Remove reimplemented code in #if 0.
25520 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
25521 Emacs windows.
25522
25523 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
25524
255252002-03-31 Gerd Moellmann <gerd@gnu.org>
25526
25527 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
25528 Callers changed.
25529
255302002-03-30 Richard M. Stallman <rms@gnu.org>
25531
25532 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
25533 loop whenever it stops making progress.
25534
25535 * widget.c (set_frame_size): Don't call change_frame_size.
25536
255372002-03-30 Gerd Moellmann <gerd@gnu.org>
25538
25539 * dispnew.c (direct_output_for_insert):
25540 Call mark_window_display_accurate.
25541
255422002-03-29 Jason Rumney <jasonr@gnu.org>
25543
25544 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
25545
255462002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
25547
25548 * Makefile.in (lread.o): Depend on coding.h.
25549
25550 * lread.c (openp, Fload): Encode the file name before passing it
25551 to `stat', `access', and `emacs_open'.
25552 (openp): GCPRO the encoded file name. Don't recompute Lisp
25553 strings unnecessarily.
25554
255552002-03-29 Kim F. Storm <storm@cua.dk>
25556
25557 * fns.c (Flax_plist_put): Doc fix.
25558
255592002-03-28 Miles Bader <miles@gnu.org>
25560
25561 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
25562
255632002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25564
25565 * process.c (set-network-process-options): Add usage.
25566 (make-network-process): Doc fix.
25567
255682002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
25569
25570 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
25571
255722002-03-26 Richard M. Stallman <rms@gnu.org>
25573
25574 * fns.c (Fsubstring_no_properties): New function.
25575 (Flax_plist_get, Flax_plist_put): New functions.
25576 (syms_of_fns): defsubr them.
25577
25578 * xdisp.c (update_menu_bar): Test only update_mode_lines;
25579 don't test or alter w->update_mode_line.
25580
25581 * window.c (Fdisplay_buffer): Doc fix.
25582
255832002-03-24 Richard M. Stallman <rms@gnu.org>
25584
25585 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
25586
255872002-03-24 Gerd Moellmann <gerd@gnu.org>
25588
25589 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
25590 (Fdefmacro): Handle `(declare ...)'.
25591 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
25592 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
25593
255942002-03-24 Jason Rumney <jasonr@gnu.org>
25595
25596 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
25597 (xbm_file_p): Add prototypes.
25598 (xbm_format, xbm_image_p): Sync with xfns.c.
25599 (reflect_byte): New function.
25600 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
25601 (xbm_load_image): Create bitmaps with a depth of 1.
25602 (init_xfns): Enable XBM images.
25603
256042002-03-23 Jason Rumney <jasonr@gnu.org>
25605
25606 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
25607 correctly. Do not pass up_modifier to keyboard buffer.
25608
25609 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
25610
256112002-03-22 Stefan Monnier <monnier@cs.yale.edu>
25612
25613 * Makefile.in (bootstrapclean): New target.
25614 (bootstrap-temacs, bootstrap-doc): Remove.
25615 (bootstrap-emacs): Use a bog-standard `temacs'.
25616 Don't bother to build a DOC file.
25617
25618 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
25619
25620 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
25621 in temacs even if !CANNOT_DUMP.
25622 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
25623
25624 * alloc.c (check_pure_size): Only output a warning.
25625
256262002-03-22 Jason Rumney <jasonr@gnu.org>
25627
25628 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
25629 supported.
25630
25631 * w32term.c (zv_bits): Declare as short, for word alignment.
25632 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
25633 (syms_of_w32term): Define x-use-underline-position-properties.
25634
25635 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
25636 (clear_image_cache): Block input, fix logic, clear matrices in
25637 all frames that share this cache.
25638
256392002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
25640
25641 * emacs.c (main): Update the Copyright year in the blurb printed
25642 by "emacs --version".
25643
25644 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
25645
25646 * xterm.c (XTread_socket): If XK_ISO_Lock and
25647 XK_ISO_Last_Group_Lock are defined, handle keysyms between
25648 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
25649
256502002-03-21 Kim F. Storm <storm@cua.dk>
25651
25652 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
25653 menu-bar bindings in keymap and local-map properties _are_ used.
25654 But try keymap property first in accordance with 2002-01-03 patch.
25655 Added comment describing why this is not always reliable.
25656 (tool_bar_items): Ditto for tool-bar.
25657
256582002-03-21 Jason Rumney <jasonr@gnu.org>
25659
25660 * w32fns.c (x_clear_image_1): Disable color table code.
25661
256622002-03-21 Kim F. Storm <storm@cua.dk>
25663
25664 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
25665 removed the wrong version of the DEFUN macro; fixed it.
25666
25667 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
25668 Fmember rather than Fmemq).
25669 (Fprovide): Check that subfeatures is a list.
25670
25671 * process.c (QCfeature, QCdatagram): Removed variables.
25672 (QCtype, Qdatagram): New variables.
25673 (network_process_featurep): Removed function.
25674 (Fmake_network_process): Removed :feature check.
25675 Use :type 'datagram instead of :datagram t to create a datagram
25676 socket. This allows us to add other connection types (e.g. raw
25677 sockets) later in a consistent manner.
25678 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
25679 supported subfeatures for feature make-network-process.
25680 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
25681 Intern and staticpro QCtype and Qdatagram.
25682 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
25683
9dd28cae 25684 * xfns.c (QCtype): Remove duplicate declaration and
048addec
JD
25685 initialization (is now declared in process.c).
25686
9dd28cae 25687 * w32fns.c (QCtype): Remove duplicate declaration and
048addec
JD
25688 initialization (is now declared in process.c).
25689
256902002-03-21 Richard M. Stallman <rms@gnu.org>
25691
25692 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
25693 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
25694 when jumping to `fail' to avoid undoing reg changes in the
25695 last iteration of the loop.
25696 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
25697
25698 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
25699 Depend on process.h.
25700
257012002-03-20 Jason Rumney <jasonr@gnu.org>
25702
25703 Most of the following changes are still conditional on HAVE_IMAGES
25704 which is not set by default on Windows.
25705
25706 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
25707
25708 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
25709 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
25710 (four_corners_best, x_clear_image_1, x_clear_image)
25711 (x_alloc_image_color, postprocess_image)
25712 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
25713 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
25714 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
25715
25716 * w32gui.h (struct XImage): Define.
25717
25718 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
25719 extract mouse co-ordinates.
25720
257212002-03-20 Jason Rumney <jasonr@gnu.org>
25722
25723 * w32.c (init_winsock): Dynamically load new server and UDP
25724 socket functions.
25725 (socket_to_fd): New function.
25726 (sys_socket): Use it.
25727 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
25728 (sys_recvfrom, sys_sendto): New wrapper functions.
25729
25730 * process.c (QCfamily, QCfilter): Remove duplicate declaration
25731 and initialization.
25732
25733 * makefile.w32-in (LIBS): Remove $(WSOCK32).
25734
257352002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
25736
25737 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
25738 Don't use "sun" as a variable, it's a predefined constant on Sun
25739 machines.
25740
257412002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25742
25743 * bytecode.c (Fbyte_code): Revert last change.
25744
257452002-03-19 Kim F. Storm <storm@cua.dk>
25746
25747 * makefile.w32-in (LIBS): Add $(WSOCK32).
25748 From David Ponce <dponce@voila.fr>.
25749
257502002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25751
25752 * process.c (wait_reading_process_input): Move variables `pname'
25753 and `pnamelen' down where they are used.
25754
25755 * bytecode.c (Fbyte_code): Discard unused computed value to
25756 prevent gcc warning.
25757
25758 * lisp.h (Fplist_member): Add prototype.
25759
257602002-03-18 Kim F. Storm <storm@cua.dk>
25761
25762 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
25763 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
25764
25765 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
25766 Remove explicit GNU_LINUX settings for datagram support.
25767
257682002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25769
25770 * process.c (Fmake_network_process): Remove unused variable `sa'.
25771 Doc fix. Add usage:.
25772 (set_socket_options): Remove unused variables `optnum' and `opttype'.
25773
257742002-03-17 Richard M. Stallman <rms@gnu.org>
25775
25776 * xdisp.c (cursor_type_changed): New variable.
25777 (redisplay_internal): Redisplay all windows if cursor_type_changed.
25778 Clear it when clearing windows_or_buffers_changed.
25779 (try_cursor_movement, redisplay_window, try_window_id)
25780 (try_window_reusing_current_matrix): Test cursor_type_changed
25781 along with windows_or_buffers_changed.
25782
25783 * window.h (cursor_type_changed): New variable.
25784
25785 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
25786 not update_mode_lines, and always set it to 1.
25787
25788 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
25789 if no frames needed redrawing.
25790
257912002-03-17 Kim F. Storm <storm@cua.dk>
25792
25793 The following changes add support for network server processes,
25794 datagram connections, and local (unix) sockets.
25795
25796 * process.h (struct Lisp_Process): New member log.
25797 Doc fix: Member command used to indicate stopped network process.
25798 Doc fix: Member childp contains plist for network process.
25799 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
25800
25801 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
9dd28cae 25802 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
647b07d1
AS
25803 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
25804 variables.
048addec
JD
25805 (NETCONN1_P): New macro.
25806 (DATAGRAM_SOCKETS): New conditional symbol.
25807 (datagram_address): New array.
25808 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
25809 (status_message): Use concat3.
647b07d1
AS
25810 (Fprocess_status): Add `listen' status to doc string. Return
25811 `stop' for a stopped network process.
048addec
JD
25812 (Fset_process_buffer): Update contact plist for network process.
25813 (Fset_process_filter): Ditto. Don't enable input for stopped
25814 network processes. Server must listen, even if filter is t.
25815 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
25816 New functions.
25817 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
25818 (Fprocess_contact): Added KEY argument. Handle datagrams.
25819 (list_processes_1): Optionally show only processes with the query
25820 on exit flag set. Dynamically adjust column widths. Omit tty
647b07d1
AS
25821 column if not needed. Report stopped network processes. Identify
25822 server and datagram network processes.
048addec
JD
25823 (Flist_processes): New optional arg `query-only'.
25824 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
25825 (conv_lisp_to_sockaddr, set_socket_options)
647b07d1
AS
25826 (network_process_featurep, unwind_request_sigio): New helper
25827 functions.
048addec
JD
25828 (Fprocess_datagram_address, Fset_process_datagram_address):
25829 (Fset_network_process_options): New lisp functions.
25830 (Fopen_network_stream): Removed. Now defined in simple.el.
647b07d1
AS
25831 (Fmake_network_process): New lisp function. Code is based on
25832 previous Fopen_network_stream, but heavily reworked with new
25833 property list based argument list, support for datagrams, server
25834 processes, and local sockets in addition to old client-only
25835 functionality.
048addec
JD
25836 (server_accept_connection): New function.
25837 (wait_reading_process_input): Use it to handle incoming connects.
25838 Do not enable input on a new connection if process is stopped.
647b07d1
AS
25839 (read_process_output): Handle datagram sockets. Use 2k buffer for
25840 them.
048addec 25841 (send_process): Handle datagram sockets.
647b07d1
AS
25842 (Fstop_process, Fcontinue_process): Apply to network processes. A
25843 stopped network process is indicated by setting command field to t.
048addec
JD
25844 (Fprocess_send_eof): No-op if datagram connection.
25845 (Fstatus_notify): Don't read input for a stream server socket or a
25846 stopped network process.
25847 (init_process): Initialize datagram_address array.
25848 (syms_of_process): Intern and staticpro new variables, defsubr new
25849 functions.
25850
258512002-03-16 Jason Rumney <jasonr@gnu.org>
25852
25853 * w32fns.c (w32_to_all_x_charsets): Return correct type in
25854 startup case.
25855
258562002-03-16 Richard M. Stallman <rms@gnu.org>
25857
25858 * xdisp.c (redisplay_internal, redisplay_windows):
25859 Use list_of_error to call internal_condition_case_1.
25860 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
25861 so as to catch all errors with no possibility of debugger redisplay.
25862 (list_of_error): New variable.
25863 (syms_of_xdisp): Init and staticpro it.
25864
25865 * print.c (print_object): Delete `\ ' from printed rep of frame.
25866
258672002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
25868
25869 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
25870 until its implementation is fixed.
25871
258722002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25873
25874 * xfns.c (png_load): Remove unused variable `gamma_str'.
25875
258762002-03-14 Richard M. Stallman <rms@gnu.org>
25877
25878 * xfns.c (x_real_positions): Handle failure in XQueryTree.
25879
258802002-03-14 Miles Bader <miles@gnu.org>
25881
25882 * intervals.c (adjust_for_invis_intang): New function.
25883 (set_point_both): Use `adjust_for_invis_intang' to do most of the
25884 work for dealing with invisible+intangible regions. Do so before
25885 and after both forward and backward movements, to handle both
25886 front-sticky and rear-sticky cases.
25887 * textprop.c (text_property_stickiness): Function moved here from
25888 `editfns.c'.
25889 * intervals.h (text_property_stickiness): New declaration.
25890 * editfns.c (char_property_eq): Function removed.
25891 (text_property_stickiness): Function moved to `textprop.c'.
25892
258932002-03-13 Jason Rumney <jasonr@gnu.org>
25894
25895 * config.in: Add STRFTIME_NO_POSIX2.
25896
25897 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
25898 and %OX when underlying strftime does not.
25899
259002002-03-13 Stefan Monnier <monnier@cs.yale.edu>
25901
25902 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
25903 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
25904 line) to avoid annoying flicker.
25905 (xm_scroll_callback): Get rid of the now unnecessary kludge.
25906 (XTread_socket): Mark it static.
25907
25908 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
25909
259102002-03-13 Kim F. Storm <storm@cua.dk>
25911
25912 * puresize.h (BASE_PURESIZE): Increase to 775000.
25913
259142002-03-12 Juanma Barranquero <lektu@terra.es>
25915
25916 * editfns.c (syms_of_editfns): Fix typo.
25917
259182002-03-12 Gerd Moellmann <gerd@gnu.org>
25919
25920 * xsmfns.c: Include stdio.h because termhooks.h needs it.
25921 Include termopt.h for interrupt_input.
25922
259232002-03-11 Andreas Schwab <schwab@suse.de>
25924
25925 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
25926
259272002-03-11 Gerd Moellmann <gerd@gnu.org>
25928
25929 * xterm.c (note_mouse_movement): Put code for
25930 x_autoselect_window_p in #if 0.
25931
25932 * lread.c (Fload): Don't assume that message_with_string uses the
25933 string it is given like a C string.
25934
259352002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25936
78819ebb 25937 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 25938
52eb0373 25939 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
25940 x_session_have_connection.
25941 (x_initialize): Add call to x_session_initialize.
25942
25943 * termhooks.h (enum event_kind): Add save_session_event.
25944
25945 * keyboard.c: Add Emacs event save_session_event.
25946
25947 * emacs.c (main): Add call to syms_of_xsmfns.
25948
78819ebb 25949 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
25950
25951 * config.in: Add HAVE_X_SM.
25952
25953 * Makefile.in (LIBXT): Add -lSM -lICE
25954 if HAVE_X_SM and not USE_X_TOOLKIT.
25955 (XOBJ): New file xsmfns.c added.
25956
25957 * xsmfns.c: New file for X session management.
25958
259592002-03-09 Jason Rumney <jasonr@gnu.org>
25960
25961 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
25962 read-only when setting modified time.
25963
259642002-03-08 Gerd Moellmann <gerd@gnu.org>
25965
25966 * xdisp.c (move_it_vertically_backward): At the end of the function,
25967 when moving forward by lines, treat terminal frames specially.
25968
25969 * keyboard.c (echo_char): Make sure to add a separator between
25970 keys even if echo_dash hasn't been called.
25971
25972 * xdisp.c: Use new string macros.
25973 (update_echo_area): Pass number of bytes to message3 instead of
25974 number of chars.
25975 (set_message_1): Don't access a string's size_byte directly.
25976 (decode_mode_spec_coding): Use number of bytes of eoltype string
25977 instead number of chars.
25978
25979 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
25980
259812002-03-08 Juanma Barranquero <lektu@terra.es>
25982
25983 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
25984 24-bit.
25985
259862002-03-06 Jason Rumney <jasonr@gnu.org>
25987
25988 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
25989
259902002-03-06 Gerd Moellmann <gerd@gnu.org>
25991
25992 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
25993 (cancel_echoing, echo_length, echo_truncate): Changed to
25994 work with new kboard definition.
25995 (echo_now): Use message3_nolog instead of message2_nolog.
25996
25997 * alloc.c (mark_kboards): Mark echo_string.
25998
25999 * keyboard.h (ECHOBUFSIZE): Removed.
26000 (struct kboard): Member echoptr removed, member echobuf renamed
26001 to echo_string.
26002
26003 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
26004 message3 instead of message2 to display the message using STRING's
26005 text properties.
26006
260072002-03-05 Andreas Schwab <schwab@suse.de>
26008
26009 * xdisp.c (hscroll_margin): Change to EMACS_INT.
26010
260112002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
26012
26013 * frame.c (default-frame-alist): Explain that setting it doesn't
26014 affect existing frames.
26015
260162002-03-05 Stefan Monnier <monnier@cs.yale.edu>
26017
26018 * indent.c (skip_invisible): Fix my brain fart.
26019
26020 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
26021
260222002-03-04 Stefan Monnier <monnier@cs.yale.edu>
26023
26024 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
26025 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
26026 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
26027 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
26028 and variables to use EMACS_INT instead of just int.
26029
26030 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
26031
260322002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
26033
26034 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
26035 environment, pass it down with corrected value.
26036
260372002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26038
26039 * lread.c (read_filtered_event): Do not call start_hourglass
26040 before returning.
26041
260422002-03-04 Juanma Barranquero <lektu@terra.es>
26043
26044 * w32term.c (x_display_and_set_cursor): Fix typo.
26045
260462002-03-03 Richard M. Stallman <rms@gnu.org>
26047
26048 * fileio.c (Fmake_temp_name): Doc fix.
26049
260502002-03-03 Gary Wong <gtw@gnu.org>
26051
26052 * termcap.c [!emacs]: Replace ospeed for building standalone
26053 libtermcap, for binary compatibility.
26054
26055 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
26056
260572002-03-03 Richard M. Stallman <rms@gnu.org>
26058
26059 * xrdb.c (file_p): Rename arg `path' to `filename'.
26060
26061 * abbrev.c (Fexpand_abbrev): Increment plist as use count
26062 only if it is an integer.
26063
26064 * xfns.c (png_load): Set screen_gamma based on f->gamma.
26065 If png_get_sRGB gives an answer, call png_set_gamma
26066 using the default image gamma value.
26067
26068 * lread.c (read1): When reading from a file, default string to
26069 multibyte only if it has some multibyte characters.
26070
26071 * print.c (print_object): Output multibyte chars 128...255
26072 using \x even if ! print_escape_multibyte.
26073
26074 * xdisp.c (display_mode_element): Move the places where
26075 bytepos, charpos, this, and lisp_string are set.
26076 Use lisp_string to set bytepos.
26077
26078 * xdisp.c (redisplay_internal):
26079 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
26080
26081 * xdisp.c (display_mode_element): Merge properties specified with
26082 :propertize onto those that come with the string.
26083
260842002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
26085
26086 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
26087 automatic-hscrolling. Users changed.
26088 <hscroll-margin>: Renamed from automatic-hscroll-margin.
26089 Users changed.
26090 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
26091
260922002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
26093
26094 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
26095
260962002-03-02 Kim F. Storm <storm@cua.dk>
26097
26098 * window.c (Fminibuffer_selected_window): New function.
26099 (syms_of_window): Defsubr it.
26100
261012002-03-01 Kim F. Storm <storm@cua.dk>
26102
26103 * window.h (struct window): New member phys_cursor_width.
26104
26105 * window.c (make_window, replace_window): Init phys_cursor_width.
26106
26107 * xterm.c (x_display_and_set_cursor): Blink box cursor using
26108 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
26109
26110 * w32term.c (x_display_and_set_cursor): Blink box cursor using
26111 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
26112
26113 * lisp.h (GCPRO6): New macro.
26114
26115 * process.c (Fopen_network_stream): Use GCPRO6.
26116
261172002-03-01 Kim F. Storm <storm@cua.dk>
26118
26119 * process.c (Qconnect, Qfailed): New variables.
26120 (syms_of_process): Intern and staticpro them.
26121 (Fprocess_status): Document connect and failed return values.
26122 [NON_BLOCKING_CONNECT]: New conditional.
26123 (connect_wait_mask, num_pending_connects): New variables.
26124 (status_message): Convert Qfailed status.
26125 (Fopen_network_stream): Added support for non-blocking connect.
26126 New optional args: filter, sentinel, non_blocking. Doc updated.
26127 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
26128 (deactivate_process): Handle pending non-blocking connect.
26129 (wait_reading_process_input): Poll for status of non-blocking
26130 connects. Exec sentinel directly when connect succeeds.
26131 (status_notify): Don't read process output if not yet connected.
26132
261332002-02-28 Kim F. Storm <storm@cua.dk>
26134
9dd28cae 26135 * window.c (minibuf_selected_window): Renamed from
048addec
JD
26136 Vminibuf_selected_window. Users changed.
26137 (syms_of_window): Staticpro it.
26138
261392002-02-26 Kim F. Storm <storm@cua.dk>
26140
26141 The following changes add a new Vminibuf_selected_window variable
26142 which is similar to Vminibuf_scroll_window, but which is only set
26143 on entry to the minibuffer (from a non-minibuffer window):
26144
9dd28cae 26145 * window.c (Vminibuf_selected_window): New variable.
048addec
JD
26146 (struct save_window_data): New member minibuf_selected_window.
26147 (Fset_window_configuration): Restore Vminibuf_selected_window.
26148 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
26149 Set minibuf_scroll_window member to nil if minibuf_level is 0.
26150 (compare_window_configurations): Compare minibuf_selected_window.
26151
9dd28cae 26152 * window.h (Vminibuf_selected_window): Declare extern.
048addec
JD
26153
26154 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
26155 entry to minibuffer or on entry from a non-minibuffer window.
26156
26157 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
26158 Vminibuf_selected_window instead of Vminibuf_scroll_window.
26159
26160 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
26161 instead of Vminibuf_scroll_window when deciding in which window
26162 the region should be highlighted. Consequently, the region remains
26163 highlighteded even when a completion buffer is also displayed.
26164
261652002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
26166
26167 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
26168
26169 * xselect.c (Qcompound_text_with_extensions): Renamed from
26170 Qcompound_text_no_extensions.
26171 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
26172
261732002-02-26 Juanma Barranquero <lektu@terra.es>
26174
26175 * w32proc.c (syms_of_ntproc): Doc fix.
26176
261772002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26178
26179 * intervals.h: Include "dispextern.h" unconditionally.
26180
261812002-02-24 Jason Rumney <jasonr@gnu.org>
26182
26183 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
26184 and disp-table.elc.
26185 (lisp): Add emacs-lisp/backquote.elc.
26186
261872002-02-24 Kim F. Storm <storm@cua.dk>
26188
3419757d 26189 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
26190 The validation of the event type was too strict as it didn't
26191 allow string events; buffer names are used in bindings for
26192 menu-bar-select-buffer (see `menu-bar-update-buffers').
26193
261942002-02-23 Kim F. Storm <storm@cua.dk>
26195
26196 The following changes rework my patch of 2002-02-06 which
26197 added command remapping by entering the commands directly into
26198 the keymaps. Now, command remapping uses an explicit `remap'
26199 prefix in the keymaps, i.e. [remap COMMAND].
26200
26201 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 26202 (is_command_symbol): Remove function.
048addec
JD
26203 (Fdefine_key): No longer accept a symbol for KEY.
26204 Added validation of [remap COMMAND] argument for KEY.
26205 The DEF is no longer required to be a symbol when remapping a command.
26206 (Fremap_command): New function to remap command through keymaps.
26207 (Flookup_key): Perform command remapping initiated by
26208 Fremap_command directly for speed.
26209 (Fkey_binding): Use Fremap_command for command remapping.
26210 (where_is_internal): Handle new command remapping representation.
26211 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
26212 staticpro them. Defsubr Fremap_command.
26213
26214 * keymap.h (Fremap_command): Declare extern.
26215 (is_command_symbol): Remove extern.
26216
26217 * keyboard.c (command_loop_1): Use Fremap_command for command
26218 remapping; now try command remapping for all symbols.
26219
262202002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
26221
26222 * coding.h (run_pre_post_conversion_on_str): Add prototype.
26223
262242002-02-23 Jason Rumney <jasonr@gnu.org>
26225
26226 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
26227 on the string before encoding it.
26228 (Fw32_get_clipboard_data): Run post-read-conversion on the string
26229 after decoding it.
26230
26231 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
26232
262332002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26234
26235 * w32term.c (enter_timestamp): Remove unused static variable to
26236 prevent warning.
26237
26238 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
26239
262402002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
26241
26242 * w16select.c (Fw16_get_clipboard_data): Fix last change.
26243
26244 * xselect.c (selection_data_to_lisp_data): Fix last change.
26245
262462002-02-22 Jason Rumney <jasonr@gnu.org>
26247
26248 * w32term.h (struct w32_output): New member menu_command_in_progress.
26249
26250 * w32menu.c (menubar_selection_callback): Free the menu and
26251 clear the menu_command_in_progress flag.
26252
26253 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
26254 (menu_free_timer): New variable.
26255 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
26256 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
26257 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
26258 menu command is in progress.
26259 <WM_COMMAND>: Set the menu_command_in_progress flag.
26260 Kill any menu_free_timer that is running.
26261
26262 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
26263 Call ExtTextOutA rather than ExtTextOut.
26264
262652002-02-22 Eli Zaretskii <eliz@gnu.org>
26266
26267 * puresize.h (BASE_PURESIZE): Increase to 755000.
26268
262692002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
26270
26271 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
26272 on the string before encoding it.
26273 (Fw16_get_clipboard_data): Run post-read-conversion on the string
26274 after decoding it.
26275
262762002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
26277
9dd28cae 26278 Support for ICCCM Extended Segments in X selections:
048addec
JD
26279
26280 * xselect.c <Qcompound_text_no_extensions>: New variable.
26281 (syms_of_xselect): Intern and staticpro it.
26282 (selection_data_to_lisp_data): Run post-read-conversion on decoded
26283 selection text.
26284 (lisp_data_to_selection_data): If next-selection-coding-system is
26285 compound-text-no-extensions, set the type of selection to be
26286 compound-text.
26287
26288 * xterm.h (x_encode_text): Update prototype.
26289
26290 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
26291 callers changed. If SELECTIONP is non-zero, run the
26292 pre-write-conversion function before encoding the selection text.
26293
262942002-02-21 Kim F. Storm <storm@cua.dk>
26295
26296 * frame.c (syms_of_frame): Change mouse-highlight default to t.
26297
26298 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
26299 Correct composing of language-change event.
26300
263012002-02-20 Kim F. Storm <storm@cua.dk>
26302
26303 * keyboard.c (menu_bar_items): Don't include keymap or local-map
26304 bindings at PT when building menu (the menu is not updated often
26305 enough for this to work reliable).
26306 (tool_bar_items): Likewise.
26307 (current_active_maps): Removed unused (and buggy) function.
26308
263092002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26310
26311 * xfns.c (gif_load): Use correct width and height for GIF images.
26312
263132002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
26314
26315 * floatfns.c (Fatan): Accept an optional second arg and call
26316 atan2 if passed 2 args.
26317
263182002-02-18 Jason Rumney <jasonr@gnu.org>
26319
26320 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
26321
263222002-02-17 Jason Rumney <jasonr@gnu.org>
26323
26324 * w32term.c (x_autoselect_window_p): New variable.
26325 (syms_of_w32term): DEFVAR_BOOL and initialize it.
26326 (note_mouse_movement): Use it.
26327
26328 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
26329
26330 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
26331
26332 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
26333 New variables.
26334 (syms_of_w32fns): Intern and staticpro them.
26335 (x_frame_parms) <"fullscreen">: New parameter.
26336 (x_fullscreen_move, x_set_fullscreen): New functions.
26337 (x_set_frame_parameters): Support Qfullscreen.
26338 (x_real_positions): Save x/y_pixels_diff frame params.
26339 (x_figure_window_size): Support full-screen frames.
26340 (Fx_create_frame): Default the fullscreen parameter.
26341
26342 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
26343 (x_fullscreen_adjust): New functions.
5e1a6e32 26344 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
048addec
JD
26345 fullscreen. Call x_check_fullscreen_move, and set the
26346 want_fullscreen member of output_data.w32
26347 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
26348
26349 * w32term.h: New enum for FULLSCREEN_* constants.
26350 (struct w32_output): New members want_fullscreen, x_pixels_diff,
26351 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
26352 (x-fullscreen-adjust): New prototype.
26353
263542002-02-17 Kim F. Storm <storm@cua.dk>
26355
52eb0373 26356 * frame.c (Vmouse_highlight): New variable.
048addec
JD
26357 (syms_of_frame): DEFVAR_LISP it.
26358
52eb0373 26359 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 26360
048addec 26361 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 26362
048addec
JD
26363 * xterm.c (disable_mouse_highlight): Removed variable.
26364 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
5e1a6e32 26365 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
26366 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
26367 and on after keyboard input.
26368 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 26369
048addec 26370 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 26371
048addec 26372 * msdos.c (disable_mouse_highlight): Removed variable.
5e1a6e32 26373 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
26374 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
26375 (internal_terminal_init): Initialize mouse_face_hidden.
26376 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
26377 and on after keyboard input.
4f1b1854 26378
048addec 26379 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 26380
048addec
JD
26381 * w32term.c (disable_mouse_highlight): Removed variable.
26382 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
5e1a6e32 26383 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
048addec
JD
26384 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
26385 and on after keyboard input.
26386 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 26387
048addec 263882002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 26389
048addec
JD
26390 * msdos.c (last_mouse_window): New variable.
26391 (dos_rawgetc): Fix last change--if the mouse is in the same window
26392 as recorded in last_mouse_window, don't select this window.
5cb6905d 26393
048addec 26394 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 26395
048addec
JD
26396 * msdos.c (x_autoselect_window_p): New variable.
26397 (syms_of_msdos): Defvar it.
26398 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
26399 which the last mouse movement occured, unless it is already selected.
437dfb9f 26400
048addec
JD
26401 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
26402 New variables.
26403 (syms_of_xdisp): DEVFAR them.
26404 (hscroll_window_tree): Use automatic_hscroll_margin and
26405 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 26406
048addec 264072002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 26408
048addec
JD
26409 * xterm.c (x-autoselect-window): New variable.
26410 (note_mouse_movement): Use it.
9f696a00 26411
048addec 26412 * keyboard.c: Do not include "systime.h" twice.
d57966d7 26413
048addec 264142002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 26415
bfa02563 26416 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 26417
048addec 26418 * alloc.c (NSTATICS): Increase to 1280.
74779f52 26419
048addec 264202002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 26421
048addec 26422 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 26423
048addec
JD
26424 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
26425 (Vx_super_keysym): New variables.
26426 (syms_of_xterm): DEFVAR_LISP them.
26427 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
26428 variables to determine which keys to use for the various modifiers.
a474d59c 26429
048addec 264302002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 26431
9dd28cae 26432 * window.c (Vmode_line_in_non_selected_windows): Removed.
048addec
JD
26433 (mode_line_in_non_selected_windows): New variable.
26434 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 26435
048addec
JD
26436 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
26437 Use mode_line_in_non_selected_windows.
26438 (mode_line_in_non_selected_windows): Declare extern.
26439 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 26440
048addec 264412002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 26442
048addec
JD
26443 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
26444 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
26445 (Fclear_this_command_keys): Doc fixes.
2d10309f 26446
048addec
JD
26447 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
26448 (update_face_from_frame_parameter): Increment face_change_count
26449 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 26450
048addec
JD
26451 * xdisp.c (QCpropertize): New variable.
26452 (mode_line_proptrans_alist): New variable.
26453 (display_mode_element): New arg PROPS; all calls changed.
26454 Implement this, for strings.
26455 Handle literal output of strings by sharing the
26456 main-line code for strings, using local var `literal'.
26457 Handle :propertize feature.
26458 (syms_of_xdisp): Initialze and staticpro QCpropertize and
26459 mode_line_proptrans_alist.
0b1e6b54 26460
048addec 264612002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 26462
9dd28cae 26463 * window.c (Vmode_line_in_non_selected_windows): New variable.
048addec 26464 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 26465
048addec
JD
26466 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
26467 (CURRENT_MODE_LINE_FACE_ID): Use it.
26468 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 26469
048addec
JD
26470 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
26471 to get mode line face.
e17144de 26472
048addec 264732002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 26474
048addec
JD
26475 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
26476 variables; cus-start.el doesn't need them anymore.
44368f8f 26477
048addec 264782002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 26479
048addec
JD
26480 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
26481 reduction. This fixes a display problem where stray newlines were
26482 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 26483
048addec 264842002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 26485
048addec 26486 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 26487
048addec 26488 * xdisp.c (display_mode_lines): Fix last change.
453c5510 26489
048addec 264902002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 26491
048addec
JD
26492 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
26493 match each other.
26494 (w32_load_system_font): Prevent Cleartype fonts from loading.
26495 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 26496
048addec 264972002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 26498
048addec
JD
26499 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
26500 (CURRENT_MODE_LINE_HEIGHT): Use it.
26501 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 26502
048addec
JD
26503 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
26504 (pos_visible_p, handle_face_prop): Likewise.
26505 (display_mode_lines): Likewise, but for the real selected window.
26506 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 26507
048addec
JD
26508 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
26509 in non-selected windows.
26510 (realize_basic_faces): Realize it.
26511 (syms_of_term): Intern and staticpro it.
308dd672 26512
048addec 265132002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 26514
048addec
JD
26515 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
26516 Changed mail addresses to emacs-devel@gnu.org.
308dd672 26517
048addec 265182002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 26519
048addec
JD
26520 * fileio.c (Fsubstitute_in_file_name): If the file name includes
26521 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 26522
048addec 26523 * floatfns.c (Fround): Doc fix.
3c1e6b46 26524
048addec 265252002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 26526
048addec 26527 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 26528
048addec 265292002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 26530
048addec 26531 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 26532
048addec 265332002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 26534
048addec
JD
26535 * keymap.c (where_is_internal): Only check whether definition is
26536 remapped if it fulfills is_command_symbol.
0065bb74 26537
048addec 265382002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 26539
048addec 26540 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 26541
048addec 26542 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 26543
048addec 265442002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 26545
048addec
JD
26546 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
26547 defining command remapping. Doc updated.
26548 (Flookup_key): Remap command through keymap if KEY is a symbol.
26549 (is_command_symbol): New function.
26550 (Fkey_binding): Use it. New optional argument NO-REMAP.
26551 Doc updated. Callers changed. Perform command remapping via
26552 recursive call unless that arg is non-nil.
26553 (where_is_internal): New argument no_remap. Callers changed.
26554 Call recursively to find original key bindings for a remapped
26555 comand unless that arg is non-nil.
26556 (Fwhere_is_internal): New optional argument NO-REMAP.
26557 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 26558
048addec 26559 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 26560 (is_command_symbol): Add prototype.
0d8466cc 26561
048addec
JD
26562 * keyboard.c (Vthis_original_command): New variable.
26563 (syms_of_keyboard): DEFVAR_LISP it.
26564 (command_loop_1): Set it, and perform command remapping.
15fff01d 26565
048addec 265662002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 26567
048addec 26568 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 26569
048addec 265702002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 26571
048addec 26572 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 26573
048addec 265742002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 26575
048addec 26576 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 26577
048addec 265782002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 26579
048addec 26580 * filelock.c (S_ISLNK): Define if not defined.
3a232704 26581
048addec 265822002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 26583
048addec 26584 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 26585
048addec
JD
26586 * lread.c (read1): Redesign strategy for force_multibyte and
26587 force_singlebyte. Now is_multibyte records whether read_buffer
26588 is multibyte. Encountering any multibyte character makes it so.
4e02881b 26589
048addec 265902002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 26591
048addec
JD
26592 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
26593 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 26594
048addec 265952002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 26596
048addec
JD
26597 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
26598 latter never being defined on GNU/Linux.
749f499f 26599
048addec 266002002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 26601
048addec
JD
26602 * xfaces.c (realize_default_face): Don't set the weight and slant of
26603 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 26604
048addec 266052002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 26606
048addec
JD
26607 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
26608 Call cancel_hourglass unconditionally.
d0fd26dd 26609
048addec
JD
26610 * eval.c (Fsignal): Remove duplicated declaration of
26611 the variable `display_hourglass_p'.
b4c45162 26612
048addec 266132002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 26614
048addec 26615 * editfns.c (region_limit): Nicer error message.
c95eaa61 26616
048addec
JD
26617 * coding.c (decode_composition_emacs_mule):
26618 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 26619
048addec
JD
26620 * callint.c (check_mark): New arg to specify clearer error message.
26621 Callers changed.
c95eaa61 26622
048addec 266232002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 26624
048addec 26625 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 26626
048addec 266272002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 26628
048addec
JD
26629 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
26630 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
26631 Fix doc-strings.
c95eaa61 26632
048addec 266332002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 26634
048addec 26635 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 26636
048addec
JD
26637 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
26638 and scroll_up_aggressively.
c95eaa61 26639
048addec 266402002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 26641
048addec 26642 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 26643
048addec 266442002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 26645
048addec
JD
26646 * textprop.c (Fnext_property_change, Fnext_single_property_change)
26647 (Fprevious_property_change, Fprevious_single_property_change):
26648 Stay within the narrowed-buffer boundaries.
e2c3786a 26649
048addec 266502002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 26651
048addec
JD
26652 * term.c (Ftty_display_color_cells): New function.
26653 (syms_of_term): Defsubr it.
26654 (Ftty_display_color_cells, Ftty_display_color_p): Change the
26655 argument name to DISPLAY. Doc fix.
bf794306 26656
048addec
JD
26657 * dispextern.h: Add prototype for set_tty_color_mode and
26658 tty_setup_colors.
bf794306 26659
048addec 266602002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 26661
048addec
JD
26662 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
26663 If region left to draw is not what was expected, mark the frame as
26664 garbaged.
62582985 26665
048addec
JD
26666 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
26667 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 26668
048addec 266692002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 26670
048addec
JD
26671 * w32term.c (x_update_window_begin): Only hide caret if
26672 w32_use_visible_system_caret is set.
26673 (x_update_window_end): Only show caret if
26674 w32_use_visible_system_caret is set.
26675 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 26676
048addec 26677 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 26678
048addec 266792002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 26680
048addec
JD
26681 * unexelf.c (unexec): Define n so as to cause compilation error
26682 for the code where people have often written n instead of nn.
1e9a6186 26683
048addec 26684 * .gdbinit (hookpost-run): Defined.
1e9a6186 26685
048addec 266862002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 26687
048addec 26688 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 26689
048addec 266902002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 26691
048addec
JD
26692 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
26693 if fullscreen is being set.
7c75be36 26694
048addec 266952002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 26696
048addec
JD
26697 * minibuf.c (Fminibuffer_contents)
26698 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
26699 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 26700
048addec 267012002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 26702
048addec 26703 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 26704
048addec 267052002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 26706
048addec
JD
26707 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
26708 height before comparison.
26709 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 26710
048addec 267112002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 26712
048addec
JD
26713 * w32term.c (w32_system_caret_width): Remove.
26714 (w32_use_visible_system_caret): New user flag.
26715 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
26716 Windows reports a screen reader running.
26717 (x_update_window_begin): Hide the system caret.
26718 (x_update_window_end): Show the system caret.
26719 (x_display_and_set_cursor): Don't draw a cursor when
26720 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 26721
048addec
JD
26722 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
26723 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
26724 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
26725 the user requests it. Use system default width when creating.
26726 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 26727
048addec
JD
26728 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
26729 New window messages.
905cc05a 26730
048addec 267312002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 26732
048addec 26733 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 26734
048addec 267352002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 26736
048addec 26737 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 26738
048addec 267392002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 26740
048addec 26741 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 26742
048addec 267432002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 26744
048addec
JD
26745 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
26746 that Windows returns. If a double check fails, try to guess how
26747 ExtTextOut is going to act.
4d0fa4f3 26748
048addec
JD
26749 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
26750 in place of stricmp.
26751 (w32_list_synthesized_fonts): Removed.
26752 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
26753 (struct enumfont_t): New element; list.
26754 (enum_font_cb2): List all style and charset variations of a font.
26755 (Fw32_select_font): New optional argument; include_proportional.
26756 Exclude vertical fonts. Exclude proportional fonts unless
26757 include_proportional is non-nil.
26758 (w32_enable_synthesized_fonts): Change to a boolean.
26759 (Fw32_send_sys_command): Doc fix.
493faf20 26760
048addec 267612002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 26762
048addec
JD
26763 * dispnew.c (update_frame): Move the variable `tem' to the block
26764 where it is used.
4971e491 26765
048addec 267662002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 26767
048addec
JD
26768 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
26769 call to face-set-after-frame-default.
4971e491 26770
048addec 267712002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 26772
048addec
JD
26773 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
26774 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 26775
048addec 267762002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 26777
048addec
JD
26778 * window.c (enlarge_window): When exceeding size of parent,
26779 directly delete all the siblings instead of trying to resize it.
201c831a 26780
048addec 267812002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 26782
048addec 26783 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 26784
048addec 267852002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 26786
048addec 26787 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 26788
048addec 267892002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 26790
048addec
JD
26791 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
26792 is invisible. This can happen if cursor is on top line of a
26793 window, and we switch to a buffer with a header line.
d77fbc16 26794
048addec 26795 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 26796
048addec 267972002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 26798
048addec
JD
26799 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
26800 `dont_resize' only when used.
61e3b944 26801
048addec 26802 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 26803
048addec 268042002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 26805
048addec
JD
26806 * xdisp.c (display_mode_element): When computing charpos, depend
26807 on multibyteness of elt, not the text in field.
8af01033 26808
048addec 268092002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 26810
048addec
JD
26811 * buffer.c (Fkill_all_local_variables):
26812 Increment `update_mode_lines' only once.
7363986a 26813
048addec 268142002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 26815
048addec
JD
26816 * lisp.h (adjust_after_replace_noundo)
26817 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 26818
048addec 26819 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 26820
048addec 268212002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 26822
048addec
JD
26823 Support for the --color command-line argument and tty-color-mode
26824 frame parameter:
f1a85b89 26825
048addec
JD
26826 * term.c (tty_default_color_capabilities, tty_setup_colors)
26827 (set_tty_color_mode): New functions.
26828 (term_init): Call tty_default_color_capabilities.
26829 (Qtty_color_mode_alist): New variable.
26830 (syms_of_term): Intern and staticpro it.
f1a85b89 26831
048addec
JD
26832 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
26833 frames.
26834 (do_switch_frame): For termcap frames, switch the tty
26835 color mode as specified by the frame's parameters.
26836 (Qtty_color_mode): New variable.
26837 (syms_of_frame): Intern and staticpro it.
3a62677f 26838
048addec
JD
26839 * emacs.c (USAGE2): Add the --color option.
26840 (standard_args): Ditto.
72244db2 26841
048addec
JD
268422002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26843
26844 * xterm.h (struct x_output): New members want_fullscreen,
26845 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
26846 y_pixels_outer_diff.
26847 New enum for FULLSCREEN_* constants.
26848 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
26849 is NULL.
26850 (x_fullscreen_adjust): Add prototype.
3a62677f 26851
048addec
JD
26852 * emacs.c (USAGE2): Add the new full-screen arguments.
26853 (standard_args): Ditto.
3a62677f 26854
048addec
JD
26855 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
26856 New variables.
26857 (syms_of_xfns): Intern and staticpro them.
26858 (x_frame_parms) <"fullscreen">: New parameter.
26859 (x_fullscreen_move, x_set_fullscreen): New functions.
26860 (x_set_frame_parameters): Support for Qfullscreen.
26861 (x_real_positions): More accurate computation of the frame position.
26862 (x_figure_window_size): Support full-screen frames.
26863 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 26864
048addec
JD
26865 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
26866 (XTread_socket) <Expose>: Call x_check_fullscreen.
26867 <ConfigureNotify>: Don't resize to fullscreen.
26868 Call x_check_fullscreen_move, and set the want_fullscreen member of
26869 output_data.x.
3a62677f 26870
048addec 268712002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 26872
048addec
JD
26873 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
26874 for mice with more than 3 buttons.
b8523839 26875
048addec
JD
26876 * w32term.c (parse_button): New parameter xbutton. Callers changed.
26877 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 26878
048addec
JD
26879 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
26880 (syms_of_w32fns): DEFVAR_BOOL it.
26881 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 26882
048addec 268832002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 26884
048addec 26885 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 26886
048addec 268872002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 26888
048addec 26889 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 26890
048addec 268912002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 26892
048addec
JD
26893 * .gdbinit (xbuffer): Remove address operator since data is now a
26894 pointer.
c93674bb 26895
048addec 268962002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 26897
048addec 26898 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 26899
048addec 26900 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 26901
048addec 269022002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 26903
048addec
JD
26904 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
26905 when checking for multiple frames.
91175673 26906
048addec 269072002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 26908
048addec
JD
26909 * window.c (delete_window): Rewrite the code for changing the
26910 selected window to handle the case where WINDOW is not a leaf.
91175673 26911
048addec 269122002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 26913
048addec
JD
26914 * process.c (send_process): Set src_multibyte to 1 after the call
26915 top setup_coding_system, not before the call.
e0fead5d 26916
048addec 269172002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 26918
048addec 26919 * xmenu.c (set_frame_menubar, xmenu_show):
5e1a6e32 26920 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 26921
048addec
JD
26922 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
26923 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 26924
048addec 269252002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 26926
048addec 26927 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 26928
048addec 26929 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 26930
048addec 26931 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 26932
048addec 269332002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 26934
048addec
JD
26935 * insdel.c (make_gap_larger): Make sure buffer size does not
26936 overflow range of int.
62854fe2 26937
048addec 269382002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 26939
048addec
JD
26940 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
26941 OVERLAPS_P.
656f46bb 26942
048addec 26943 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 26944
048addec
JD
26945 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
26946 to the left or to the right of the pointer, put it against
26947 the left screen edge.
26948 (x_frame_parms): Add missing braces around initializer.
036e218d 26949
048addec
JD
26950 * w32term.c (x_setup_relief_colors): Don't compute an image's
26951 background color if it doesn't have a Pixmap.
26952 (notice_overwritten_cursor): Don't depend on
26953 output_cursor and updated_area. Compare pixel coordinates with
26954 window's cursor pixel coordinates.
26955 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
26956 Call notice_overwritten_cursor with new arg list.
26957 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
26958 unconditionally.
26959 (x_draw_image_relief): Use predefined macro instead of
26960 constant when the value of `tool_bar_button_relief' is negative.
036e218d 26961
048addec 26962 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 26963
048addec 269642002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 26965
048addec 26966 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 26967
048addec 269682002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 26969
048addec
JD
26970 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
26971 (Fkey_binding): Try the `keymap' property map first.
26972 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
26973 minor mode bindings.
90647b07 26974
048addec 269752002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 26976
3419757d 26977 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 26978
048addec 269792002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 26980
048addec
JD
26981 * keyboard.c (read_key_sequence): Handle the keymap property
26982 before minor mode maps.
9fbc32aa 26983
048addec
JD
26984 * editfns.c (Fformat): Update thissize from field_width
26985 based on the actual width, in the string case.
036e218d 26986
048addec 269872002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 26988
048addec
JD
26989 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
26990 when used as truth value to prevent gcc warnings.
9fbc32aa 26991
048addec
JD
26992 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
26993 * w32proc.c: Include <config.h>.
9fbc32aa 26994
048addec 269952002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 26996
048addec
JD
26997 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
26998 not EMACS_INT, to make them compatible with DEFVAR_INT.
26999 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 27000
048addec 270012002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 27002
048addec
JD
27003 * print.c (print_object): Test print_escape_nonascii only for
27004 unibyte strings.
27005 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
27006 when outputting to a multibyte buffer.
9fbc32aa 27007
048addec 270082001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 27009
048addec
JD
27010 * print.c (print_object): In multibyte string, use hex escapes.
27011 Use octal only for unibyte strings.
27012 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 27013
048addec
JD
27014 * lread.c (read_escape): New arg BYTEREP for reporting whether
27015 escape forces unibyte or multibyte.
27016 (read1): When reading a string, take note of that info.
0142178a 27017
048addec 270182001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 27019
048addec
JD
27020 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
27021 comparison to test lisp value returned by Fget.
d4824a5d 27022
048addec 270232001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 27024
048addec 27025 * lisp.h (max_specpdl_size): Add declaration.
b1356234 27026
048addec 27027 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 27028
048addec
JD
27029 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
27030 Handle modifier bits. Correct typo in error message.
99e380ee 27031
048addec 270322001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 27033
048addec
JD
27034 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
27035 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
27036 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27037 Update calls to Fdefine_abbrev.
27038 (write_abbrev): Update for changed data format.
27039 Don't list "system" abbrevs.
27040 (Fexpand_abbrev): Update use count with new data format.
27041 (describe_abbrev): Update for changed data format.
27042 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 27043
048addec 27044 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 27045
048addec 27046 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 27047
048addec
JD
27048 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
27049 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 27050
048addec
JD
27051 * keymap.c (Flookup_key): Error message if key has wrong data type.
27052 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
27053 (exclude_key): New variable.
59a86c99 27054
048addec 270552001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 27056
048addec
JD
27057 * xterm.c (x_setup_relief_colors): Don't compute an image's
27058 background color if it doesn't have a Pixmap.
eb77a5f4 27059
048addec
JD
27060 * xterm.c (notice_overwritten_cursor): Don't depend on
27061 output_cursor and updated_area. Compare pixel coordinates with
27062 window's cursor pixel coordinates.
27063 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
27064 Call notice_overwritten_cursor with new arg list.
27065 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
27066 unconditionally.
eb77a5f4 27067
048addec
JD
27068 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
27069 height of the cursor line to the amount to scroll.
eb77a5f4 27070
048addec 270712001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 27072
048addec
JD
27073 * intervals.c (set_point_both): The position after an invisible,
27074 intangible character is not an acceptable stopping point.
bb313871 27075
048addec 270762001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 27077
048addec
JD
27078 * window.c (enlarge_window): In new preserve_before code, convert
27079 CURBEG from lisp object to integer before doing arithmetic.
6052529b 27080
048addec 270812001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 27082
048addec 27083 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 27084
048addec 270852001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 27086
048addec
JD
27087 * keyboard.c (record_char): Ignore duplicate help-echo events only
27088 separated by mouse-movement. When tracking mouse, only record
27089 first and last mouse-movement event in same window.
27090 Don't record mouse-movement events in keyboard macros.
3ce081f5 27091
048addec 270922001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 27093
048addec
JD
27094 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
27095 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 27096
048addec
JD
27097 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
27098 instead of Fstring_as_unibyte.
9fabb2f5 27099
048addec 271002001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 27101
048addec 27102 The following changes remove mocklisp support:
9fabb2f5 27103
048addec 27104 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 27105
048addec
JD
27106 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
27107 `Qmocklisp' and `Qmocklisp_arguments'.
27108 Remove prototype of syms_of_mocklisp.
2fa0eedf 27109
048addec 27110 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 27111
048addec
JD
27112 * callint.c: Do not include mocklisp.h.
27113 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 27114
048addec
JD
27115 * eval.c: Remove variables `Qmocklisp_arguments',
27116 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
27117 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
27118 Do not test for mocklisp case.
27119 (Fwhile): Remove unused variable `tem'.
27120 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 27121
048addec 27122 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 27123
048addec 27124 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 27125
048addec 27126 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 27127
048addec 271282001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 27129
048addec
JD
27130 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
27131 to the left or to the right of the pointer, put it against
27132 the left screen edge.
6108b49c 27133
048addec 271342001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 27135
048addec
JD
27136 * Makefile.in (distclean): Remove .gdbinit if we are building
27137 outside the source tree.
5eea19a4 27138
048addec 271392001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 27140
048addec 27141 * w32.c (emacs_root_dir): New function.
5eea19a4 27142
048addec 27143 * msdos.c (emacs_root_dir): New function.
5eea19a4 27144
048addec
JD
27145 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
27146 of the current drive as the fallback for default_directory.
438e57dd 27147
048addec
JD
27148 * dired.c (file_name_completion): Run the elements of
27149 completion-ignored-extensions through ENCODE_FILE.
438e57dd 27150
048addec
JD
27151 * lisp.h (scmp): Remove prototype, since it's now a static
27152 function private to dired.c.
c88e5347 27153
048addec 271542001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 27155
048addec
JD
27156 * dired.c (scmp): Function moved from minibuf.c.
27157 Delete multibyte handling--used only on encoded strings.
59ce1461 27158
048addec 27159 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 27160
048addec 27161 * fns.c (merge): Add QUIT call.
59ce1461 27162
048addec 271632001-12-18 Dave Love <fx@gnu.org>
8727d588 27164
048addec
JD
27165 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
27166 language/georgian.el.
8727d588 27167
048addec 271682001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 27169
048addec
JD
27170 * Makefile.in (lisp, shortlisp): Synchronize with changes to
27171 lisp/Makefile.in:DONTCOMPILE.
cc63037e 27172
048addec 271732001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 27174
048addec
JD
27175 * xdisp.c (window_box_height): Do not return negative values.
27176 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 27177
048addec 27178 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 27179
048addec 27180 * term.c (keys): Likewise.
deece6f5 27181
048addec 27182 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 27183
048addec 271842001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 27185
048addec
JD
27186 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
27187 patch (COMPOSING_P, not COMPOSING).
28ff4293 27188
048addec 271892001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 27190
048addec 27191 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 27192
048addec
JD
27193 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
27194 before calling decode_coding.
9b46de40 27195
048addec 27196 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 27197
048addec
JD
27198 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
27199 instead of only for COMPOSITION_DISABLED.
9b46de40 27200
048addec 272012001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 27202
048addec 27203 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 27204
048addec 27205 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 27206
048addec
JD
27207 * buffer.h (struct buffer): New field `display_error_modiff'.
27208 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 27209
048addec 27210 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 27211
048addec
JD
27212 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
27213 Call redisplay_window, but not if display_error_modiff field says no.
27214 (redisplay_window_error): New function.
27215 (displayed_buffer): New variable.
27216 (redisplay_internal, redisplay_windows): Call the new functions
27217 instead of redisplay_window directly.
2cd23960 27218
048addec 272192001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 27220
048addec 27221 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 27222
048addec 272232001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 27224
048addec 27225 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 27226 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 27227 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 27228
048addec 272292001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 27230
048addec
JD
27231 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
27232 parameter have a numeric value all the time.
f6fa0866 27233
048addec 27234 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 27235
048addec 272362001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 27237
048addec 27238 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 27239
048addec
JD
27240 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
27241 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 27242
048addec 272432001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 27244
048addec
JD
27245 * xdisp.c (move_it_vertically_backward): Change heuristic
27246 for the case that we didn't move far enough initially.
91c153e2 27247
048addec
JD
27248 * window.c (Frecenter): Simplify computation in the case of window
27249 system frames and ARG < 0; use window_box_height.
65b7d3e7 27250
048addec 272512001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 27252
048addec
JD
27253 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
27254 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 27255
048addec 272562001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 27257
048addec
JD
27258 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
27259 arg is negative.
be676094 27260
048addec 272612001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 27262
048addec
JD
27263 * m/hp800.h: Split the __hpux conditional into the parts
27264 that are right for GNU/Linux too and the parts that are not.
27265 Use the former if GNU_LINUX.
27266 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 27267
048addec 27268 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 27269
048addec 272702001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 27271
048addec
JD
27272 * macros.c, msdos.c, w16select.c: Change doc-string comments to
27273 `new style' [w/`doc:' keyword].
032a857d 27274
048addec 272752001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 27276
048addec
JD
27277 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
27278 before using.
b6270150 27279
048addec 272802001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 27281
048addec
JD
27282 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
27283 keyword].
98cbb9fa 27284
048addec 272852001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 27286
048addec 27287 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 27288
048addec 27289 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 27290
048addec 272912001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 27292
048addec 27293 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 27294 Add comment to explain where the struct came from.
048addec
JD
27295 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
27296 (add_menu_item): Process pop-up menus first to avoid memory leak.
27297 (add_menu_item, w32_menu_display_help): Use `help' field as
27298 Lisp_Object.
27299 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 27300
048addec 273012001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 27302
048addec 27303 * COPYING: Moved back.
fa336b91 27304
048addec
JD
27305 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
27306 Add parentheses around && within ||.
077907d4 27307
048addec 27308 * indent.c (compute_motion): Likewise.
aa2af83a 27309
048addec 27310 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 27311
048addec
JD
27312 * coding.c (setup_coding_system, shrink_encoding_region)
27313 (Fdecode_sjis_char): Likewise.
60a653f1 27314
048addec 273152001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 27316
048addec
JD
27317 * xdisp.c (display_mode_element): Don't read past end of string if
27318 it ends with '%'.
60a653f1 27319
048addec
JD
27320 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
27321 can hold.
60a653f1 27322
048addec
JD
27323 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
27324 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
27325 type changed to Lisp_Object.
27326 (syms_of_data): DEFVAR_LISP them.
60a653f1 27327
048addec 273282001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 27329
048addec
JD
27330 * callproc.c (init_callproc): Set Vdata_directory based on the source
27331 location whenever Emacs was run uninstalled.
60a653f1 27332
048addec 273332001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 27334
048addec
JD
27335 * config.in (HAVE_WORKING_VFORK): New #undefs.
27336 * process.c (create_process):
27337 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
27338 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
27339 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
27340 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
27341 * m/intel386.h (HAVE_VFORK): Likewise.
27342 * m/mips-siemens.h (HAVE_VFORK): Likewise.
27343 * m/mips.h (HAVE_VFORK): Likewise.
27344 * s/freebsd.h (vfork): Remove #define.
27345 * s/lynxos.h (HAVE_VFORK): Remove #undef.
27346 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 27347
048addec 273482001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 27349
048addec
JD
27350 * s/hpux10.h (random): Add undef.
27351 (HAVE_RANDOM): Define it just once.
60a653f1 27352
048addec 273532001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27354
048addec 27355 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 27356
048addec 273572001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 27358
048addec
JD
27359 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
27360 scroll bars of the frame before deleting the frame itself. If the
27361 frame has a widget, delete the frame with XtDestroyWidget, and do
27362 not call XDestroyWindow before that.
60a653f1 27363
048addec 273642001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 27365
048addec 27366 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 27367
048addec 27368 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 27369
048addec 273702001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 27371
048addec
JD
27372 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
27373 excessively large.
60a653f1 27374
048addec
JD
27375 * insdel.c (make_gap_larger): New function.
27376 (make_gap_smaller): New function.
27377 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
27378 Call make_gap_smaller if arg is negative.
60a653f1 27379
048addec 273802001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27381
048addec
JD
27382 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
27383 Pass a dummy argument when calling interrupt_signal.
27384 (parse_menu_item): Mark disabled items before checking for empty def.
27385 (read_char_minibuf_menu_prompt): Make safety more visible.
27386 (read_key_sequence): Add a `first_unbound' variable.
27387 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
27388 unbound prefix as soon as we can detect it.
60a653f1 27389
048addec
JD
27390 * doc.c (Fsnarf_documentation): Add prototype.
27391 (get_doc_string): Handle negative arguments.
27392 (Fdocumentation): Use AREF and ASIZE.
27393 Move the calls to get_doc_string to a single place.
27394 Don't confuse an interactive-spec for a docstring reference.
27395 (Fdocumentation_property): Take advantage of the fact that
27396 get_doc_string now ignores the sign of the docstring position.
60a653f1 27397
048addec 27398 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 27399
048addec 274002001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 27401
a64387ee 27402 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 27403
048addec 274042001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 27405
048addec
JD
27406 * xterm.c (x_draw_image_relief): Use predefined macro instead of
27407 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 27408
048addec 274092001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 27410
048addec
JD
27411 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
27412 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 27413
048addec 27414 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 27415
048addec 274162001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27417
048addec 27418 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 27419
048addec 274202001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 27421
048addec 27422 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 27423
048addec 274242001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 27425
f63fd14e 27426 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 27427
048addec
JD
27428 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
27429 [!WM_MOUSELEAVE]: Define.
60a653f1 27430
048addec
JD
27431 * w32menu.c (current_popup_menu, get_menu_item_info):
27432 (set_menu_item_info): New vars.
27433 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
27434 (w32_menu_show): Set current_popup_menu.
27435 (add_menu_item): Allocate new strings for owner-drawn menu items
27436 and help strings.
27437 Use owner-draw for disabled menu items again.
27438 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
27439 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 27440
048addec
JD
27441 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
27442 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
27443 <WM_EXITMENULOOP>: Free menu strings.
27444 <WM_MOUSELEAVE>: Stop tracking mouse.
27445 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 27446
048addec
JD
27447 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
27448 and mouse face.
60a653f1 27449
048addec 274502001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 27451
048addec
JD
27452 The following changes add left-fringe and right-fringe
27453 frame parameters to adjust fringe widths, or remove one or
27454 both fringes.
60a653f1 27455
048addec
JD
27456 * frame.h (struct frame): Remove trunc_area_pixel_width and
27457 trunc_area_cols fields.
27458 (Qleft_fringe, Qright_fringe): Declare.
27459 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 27460
048addec
JD
27461 * frame.c (Qleft_fringe, Qright_fringe): New vars.
27462 (syms_of_frame): Initialize them.
60a653f1 27463
048addec
JD
27464 * window.c (coordinates_in_window): Handle separate left and right
27465 fringe widths.
60a653f1 27466
048addec
JD
27467 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
27468 and fringe_cols fields.
27469 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
27470 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
27471 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
27472 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
27473 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
27474 (x_compute_fringe_widths): Add prototype.
60a653f1 27475
048addec
JD
27476 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
27477 fill fringe evenly with small dashes.
f63fd14e 27478 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
27479 clip the new ZV bitmap to avoid jitter between rows.
27480 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
27481 background. Don't draw fringe bitmaps if fringe width is zero.
27482 (x_compute_fringe_widths): New function.
27483 (x_new_font, x_set_window_size_1): Use it.
60a653f1 27484
048addec
JD
27485 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
27486 (x_set_frame_parameters): Process `font' parameter before other
27487 parameters as fringe widths depend on it.
27488 (x_set_fringe_width): New function.
27489 (x_figure_window_size): Use x_compute_fringe_widths.
27490 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
27491 parameters.
60a653f1 27492
048addec
JD
27493 * widget.c (set_frame_size): Use x_compute_fringe_widths.
27494 (EmacsFrameSetCharSize): Ditto.
60a653f1 27495
048addec
JD
27496 * w32term.h: Merged changes from xterm.h.
27497 * w32term.c: Merged changes from xterm.c.
27498 * w32fns.c: Merged changes from xfns.c.
60a653f1 27499
048addec 275002001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 27501
048addec 27502 * COPYING: Removed.
60a653f1 27503
048addec 275042001-11-29 Dave Love <fx@gnu.org>
60a653f1 27505
048addec
JD
27506 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
27507 extra extra slot.
27508 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 27509
048addec 275102001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 27511
048addec
JD
27512 * fileio.c (file-name-coding-system)
27513 (default-file-name-coding-system): Doc fix (links to referenced
27514 variables added).
60a653f1 27515
048addec 275162001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27517
048addec
JD
27518 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
27519 Add dummy uses of gcproN variables.
60a653f1 27520
048addec
JD
27521 * category.c (describe_category, describe_category_1)
27522 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
27523 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 27524
048addec 275252001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 27526
048addec 27527 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 27528
048addec
JD
27529 * Makefile.in (lispdir): New variable, referring to build dir.
27530 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 27531
048addec 275322001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 27533
048addec
JD
27534 * w32menu.c (w32_menu_display_help): Actually add the new argument
27535 OWNER.
60a653f1 27536
048addec 275372001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 27538
048addec
JD
27539 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
27540 menu items. From David Ponce <dponce@wanadoo.fr>.
27541 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
27542 conditionally.
f63fd14e 27543 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 27544 help event in the owner frame's keyboard buffer.
60a653f1 27545
048addec
JD
27546 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
27547 (Fx_show_tip): Don't subtract last width from row width.
27548
27549 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
27550 (w32_read_socket): Use EQ to compare frames.
60a653f1 27551
048addec 275522001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 27553
048addec
JD
27554 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
27555 OVERLAPS_P.
60a653f1 27556
048addec 275572001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 27558
048addec
JD
27559 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
27560 `gcpro3' and `gcpro4'.
60a653f1 27561
048addec 27562 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 27563
048addec 275642001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27565
048addec 27566 * ccl.c: Use AREF and ASIZE.
60a653f1 27567
048addec 275682001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27569
048addec
JD
27570 * lisp.h (run_hook_list_with_args): Remove.
27571 (LIST_END_P): Fix call to wrong_type_argument.
27572 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 27573
048addec 275742001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27575
048addec
JD
27576 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
27577 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 27578
048addec
JD
27579 * eval.c: Use AREF and ASIZE.
27580 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 27581
048addec
JD
27582 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
27583 which match the end of the file-name.
27584 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
27585 is not a valid env var, but leave it as is instead.
60a653f1 27586
048addec
JD
27587 * keymap.c (access_keymap): Handle t bindings like nil bindings.
27588 Make nil bindings in char-tables transparent.
27589 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 27590
048addec 275912001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 27592
048addec
JD
27593 * textprop.c (set_text_properties_1): Allow START, END in either order.
27594 Do nothing if range is empty.
60a653f1 27595
048addec 27596 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 27597
048addec
JD
27598 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
27599 (clean): Not here.
60a653f1 27600
048addec 276012001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27602
048addec
JD
27603 * textprop.c (set_text_properties_1): Clearly mark that the
27604 interval should not be empty.
60a653f1 27605
048addec
JD
27606 * intervals.c (graft_intervals_into_buffer):
27607 Don't call set_text_properties_1 on an empty interval.
60a653f1 27608
048addec 276092001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 27610
048addec 27611 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 27612
048addec
JD
27613 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
27614 don't lose the data in it.
60a653f1 27615
048addec 276162001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 27617
048addec 27618 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 27619
c62aec78 27620 * buffer.c (Fkill_buffer): Likewise.
60a653f1 27621
c62aec78 27622 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 27623
048addec 276242001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27625
048addec 27626 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 27627
048addec 276282001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 27629
048addec
JD
27630 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
27631 Niemitalo <kon@iki.fi>.
60a653f1 27632
048addec 276332001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 27634
048addec 27635 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 27636
048addec
JD
27637 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
27638 (Fx_show_tip): Block input during frame creation.
27639 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 27640
048addec 276412001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 27642
048addec
JD
27643 * lread.c (Fload): Detect recursive load error for more than 3
27644 nestings of the same file.
27645 (Vrecursive_load_depth_limit): Variable deleted.
27646 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 27647
048addec 276482001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 27649
048addec
JD
27650 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
27651 mouse position if either left or top is not specified.
60a653f1 27652
048addec
JD
27653 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
27654 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
27655 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
27656 (my_create_tip_window): Assign tip_window.
27657 (x_create_tip_frame): Use same defaults as X.
27658 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 27659 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 27660
048addec
JD
27661 * w32term.c (x_after_update_window_line): Doc fix.
27662 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
27663 frames.
27664 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 27665
048addec
JD
27666 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
27667 for all Windowed systems.
60a653f1 27668
048addec 276692001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 27670
048addec
JD
27671 * msdos.c (IT_clear_screen): If the frame's faces are not yet
27672 realized, use the initial screen colors to clear the screen.
60a653f1 27673
048addec 276742001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 27675
048addec
JD
27676 * textprop.c (Fset_text_properties): Remove unused variables
27677 `unchanged', `prev_changed', `s' and `len'.
60a653f1 27678
048addec
JD
27679 * search.c (Freplace_match): Remove unused variable `inslen'.
27680
27681 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
27682
276832001-11-22 Jason Rumney <jasonr@gnu.org>
27684
27685 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
27686 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
27687 (my_create_tip_window): New function.
27688 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
27689 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
27690
276912001-11-20 Jason Rumney <jasonr@gnu.org>
27692
27693 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
27694 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
27695
27696 * w32fns.c (Vw32_system_coding_system): Remove.
27697 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
27698
276992001-11-19 Stefan Monnier <monnier@cs.yale.edu>
27700
27701 * fileio.c (Fwrite_region): Move choose_write_coding_system to
27702 after build_annotations.
27703
27704 * syntax.c (describe_syntax): Add dummy arg.
27705 (describe_syntax_1): Update call to describe_vector.
27706
27707 * category.c (describe_category): Add dummy arg.
27708 (describe_category_1): Update call to describe_vector.
27709
27710 * keymap.c (Fdescribe_vector): Add `describer' parameter.
27711 (describe_command, describe_translation): Add dummy second param.
27712 (describe_map): Call elt_describer with two arguments.
27713 (describe_vector_princ): Add `fun' parameter.
27714 Call it instead of the hardcoded `princ'.
27715 (describe_vector): Add arg `args'.
27716 Pass it as a new second argument to elt_describer.
60a653f1 27717
048addec 27718 * keymap.h (describe_vector): Update prototype.
60a653f1 27719
048addec
JD
27720 * frame.c: Don't include keymap.h any more.
27721 (keys_of_frame): Remove.
60a653f1 27722
048addec 27723 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 27724
048addec 27725 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 27726
048addec 277272001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 27728
048addec
JD
27729 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
27730 if defined, 0 otherwise.
27731 (MAP_FAILED): Define if not defined and use it to test mmap failure.
27732 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 27733
048addec 277342001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 27735
048addec 27736 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 27737
048addec 277382001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 27739
048addec
JD
27740 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
27741 (x_draw_bar_cursor): If the background color of the glyph under
27742 the cursor equals the frame's cursor color, use the glyph's
27743 foreground color for drawing the bar cursor.
27744 (x_after_update_window_line): Clear internal border in different
27745 circumstances.
27746 (w32_set_vertical_scroll_bar): Check for width and height > 0.
27747 (w32_draw_relief_rect): Correct relief by 1 pixel.
27748 (x_set_glyph_string_background_width):
27749 Set extends_to_end_of_line_p if the row's fill_line_p is set and
27750 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
27751 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
27752 if cursor_in_non_selected_windows is false.
27753 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
27754 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
27755 Notice if cursor gets overwritten.
27756 (notice_overwritten_cursor): Renamed from
27757 note_overwritten_text_cursor. Rewritten to take glyph widths
27758 into account, and to take X positions as parameters.
27759 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
27760 around call to x_draw_glyphs.
27761 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27762 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
27763 color to use for image glyph reliefs.
27764 (x_draw_image_relief): Accept zero tool_bar_button_relief.
27765 (glyph_rect): Remove unused variable `area'.
60a653f1 27766
048addec
JD
27767 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
27768 some items.
27769 (x_set_internal_border_width): Set frame garbaged when window
27770 doesn't exist yet.
27771 (Fx_create_frame): Accept zero tool_bar_button_relief.
27772 (x_clear_image_1, four_corners_best, image_background)
27773 (image_background_transparent): New functions.
27774 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
27775 (gs_format): Add `:background' entry.
27776 (lookup_image): Set IMG's background color if specified.
27777 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27778 when appropriate.
27779 (x_clear_image_1): Reset `background_valid' and
27780 `background_transparent_valid' fields.
27781 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27782 calculating it here. Set IMG's background_transparent field.
27783 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27784 (enum png_keyword_index): Add PNG_BACKGROUND.
27785 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
27786 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
27787 (enum gif_keyword_index): Add GIF_BACKGROUND.
27788 (enum gs_keyword_index): Add GS_BACKGROUND.
27789 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
27790 Pre-calculate image background color where necessary.
27791 (x_create_x_image_and_pixmap, xbm_load, gs_load):
27792 Use display info's n_cbits entry for screen depth.
27793 (Fx_show_tip): Remove unused variables `buffer', `top',
27794 `left', `max_width' and `max_height'.
60a653f1 27795
048addec 27796 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 27797
048addec 277982001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 27799
048addec 27800 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 27801
048addec 278022001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 27803
048addec 27804 * frame.c (Fframe_live_p): Doc fix.
60a653f1 27805
048addec 278062001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 27807
048addec
JD
27808 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
27809 (message_dolog_marker3): New static variables hold three markers.
27810 (syms_of_xdisp): Initialize and staticpro them.
27811 (message_dolog): Use message_dolog_marker1..3 instead of
27812 allocating markers each time. Unchain them when done.
60a653f1 27813
048addec 278142001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 27815
048addec 27816 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 27817
048addec 278182001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 27819
048addec 27820 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 27821
048addec 278222001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 27823
048addec 27824 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 27825
048addec 278262001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 27827
048addec 27828 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 27829
048addec 278302001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 27831
048addec
JD
27832 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
27833 with invalid position.
60a653f1 27834
048addec 278352001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 27836
048addec 27837 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 27838
048addec
JD
27839 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
27840 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
27841 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 27842
048addec 27843 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 27844
048addec 278452001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 27846
048addec
JD
27847 * fileio.c (build_annotations): Split off the tail.
27848 (build_annotations_2): New fun. Extracted from build_annotations.
27849 (Fwrite_region): Split the call to build_annotations into two
27850 calls to build_annotations and build_annotations_2.
077907d4 27851
048addec 278522001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 27853
048addec
JD
27854 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
27855 clear_waiting_for_input with argument.
1756e2fb 27856
048addec 27857 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 27858
048addec 27859 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 27860
048addec 27861 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 27862
048addec 27863 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 27864
048addec 278652001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 27866
048addec
JD
27867 * fileio.c (choose_write_coding_system): New fun, extracted
27868 from Fwrite_region.
27869 (Fwrite_region): Use it.
fa336b91 27870
048addec
JD
27871 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
27872 (funcall_lambda, run_hook_with_args): Make static and add prototype.
27873 (ml_apply, find_handler_clause): Add prototype.
fa336b91 27874
048addec 278752001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 27876
048addec 27877 * config.in: Add #undef HAVE_COFF_H.
fa336b91 27878
048addec
JD
27879 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
27880 Required for ISC 4.1.
fa336b91 27881
048addec 278822001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 27883
52eb0373 27884 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 27885 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 27886
048addec 278872001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 27888
048addec
JD
27889 The following changes are made to clean up the various internal
27890 references to the fringes to actually use the term `fringe' for
27891 them. Previously, they were called `flags areas', `bitmap areas',
27892 `left/right side of windows', or implicitly as `flags' or
27893 `bitmaps':
fa336b91 27894
048addec 27895 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 27896 Comments fixed. Use renamed symbols.
06e8f738 27897
f63fd14e 27898 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 27899
048addec
JD
27900 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
27901 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
27902 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 27903
048addec 27904 * msdos.c: Comment fix.
9ce647f4 27905
048addec 27906 * w32fns.c: Use renamed symbols.
9b784ab8 27907
f63fd14e 27908 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
27909 (fringe_bitmap_type): Renamed from bitmap_type.
27910 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
27911 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
27912 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 27913
f63fd14e 27914 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
27915 (fringes_extra): Renamed from flags_areas_extra.
27916 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
27917 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
27918 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
27919 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
27920 (FRAME_X_LEFT_FRINGE_WIDTH):
27921 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
27922 (FRAME_X_RIGHT_FRINGE_WIDTH):
27923 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 27924
048addec 27925 * widget.c: Use renamed symbols.
9f7e52b4 27926
f63fd14e 27927 * window.c: Comment fixes. Use renamed symbols.
048addec 27928 (coordinates-in-window-p): Doc fix.
fa336b91 27929
f63fd14e 27930 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 27931
048addec 27932 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 27933
048addec 27934 * xfns.c: Use renamed symbols.
89512fcd 27935
f63fd14e 27936 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
27937 (fringe_bitmap_type): Renamed from bitmap_type.
27938 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
27939 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
27940 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 27941
f63fd14e 27942 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
27943 (fringes_extra): Renamed from flags_areas_extra.
27944 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
27945 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
27946 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
27947 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
27948 (FRAME_X_LEFT_FRINGE_WIDTH):
27949 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
27950 (FRAME_X_RIGHT_FRINGE_WIDTH):
27951 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
27952
279532001-11-15 Jason Rumney <jasonr@gnu.org>
27954
27955 * w32menu.c (add-menu-item): Make help_echo and radio buttons
27956 work for most menu items. From David Ponce
27957 <david.ponce@wanadoo.fr>.
27958
279592001-11-15 Gerd Moellmann <gerd@gnu.org>
27960
27961 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
27962 Some x_set_* function expect to be called even if old and new
27963 value are equal.
27964
27965 * xdisp.c (build_desired_tool_bar_string): Accept zero
27966 tool_bar_button_relief.
27967
27968 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
27969
27970 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
27971
27972 * xterm.c (x_draw_bar_cursor): If the background color of the
27973 glyph under the cursor equals the frame's cursor color, use
27974 the glyph's foreground color for drawing the bar cursor.
27975
27976 * dispnew.c (direct_output_forward_char): Fix character/byte
27977 position comparison.
7d18891d 27978
048addec 279792001-11-15 Miles Bader <miles@gnu.org>
d2936d21 27980
048addec
JD
27981 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
27982 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
27983 Update arguments to find_field.
27984 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
27985 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
27986 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
27987 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 27988
048addec 279892001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 27990
048addec 27991 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 27992
048addec
JD
27993 * dispextern.h (image_background, image_background_transparent):
27994 Conditionalize on HAVE_X_WINDOWS.
7d18891d 27995
048addec 279962001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 27997
048addec 27998 * print.c (Fprin1_to_string): Doc fix.
7d18891d 27999
048addec 28000 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 28001
048addec 28002 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 28003
048addec 28004 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 28005
048addec 28006 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 28007
048addec 28008 * eval.c (syms_of_eval): Doc fix.
7d18891d 28009
048addec 28010 * coding.c (syms_of_coding): Doc fix.
7d18891d 28011
048addec 28012 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 28013
048addec 28014 * dispnew.c (syms_of_display): Doc fix.
9474c847 28015
048addec 28016 * category.c (Fget_unused_category): Doc fix.
9474c847 28017
048addec 28018 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 28019
048addec 280202001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 28021
048addec 28022 * print.c (prin1, print): Doc fix.
e3059a5d 28023
048addec 280242001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 28025
048addec
JD
28026 * fontset.h: Remove declarations of variables
28027 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 28028
048addec
JD
28029 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
28030 `Vclip_large_size_font'.
eae936e2 28031
048addec 280322001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 28033
048addec 28034 * w32fns.c: Doc fix.
ddb67bdc 28035
048addec 280362001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 28037
048addec 28038 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 28039
048addec 28040 * fns.c: Doc fix.
6e1b91d7 28041
048addec 28042 * emacs.c: Doc fix.
1c1d3d69 28043
048addec 28044 * coding.c: Doc fix.
1c1d3d69 28045
048addec
JD
28046 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
28047 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
28048 `new style' [w/`doc:' keyword].
b6f4c7ba 28049
048addec 280502001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 28051
048addec
JD
28052 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
28053 LeaveNotify events. Only FocusIn and FocusOut do that now.
28054 (x_display_and_set_cursor): Do display hollow cursors in active
28055 minibuffer windows when they are not selected.
b6f4c7ba 28056
048addec 280572001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 28058
048addec 28059 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
28060 * w32term.c: Change doc-string comments to `new style'
28061 [w/`doc:' keyword]. Doc fixes.
a89f435d 28062
048addec
JD
28063 * w32fns.c: Don't define max.
28064 (Fx_open_connection): Only execute once.
a4cd0cd7 28065
048addec 280662001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 28067
048addec
JD
28068 * ccl.c: Change macros to use do-while block instead of if-else.
28069 Use braces to follow GNU Coding Standards.
eafb659a 28070
048addec 280712001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 28072
048addec 28073 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 28074
048addec 28075 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 28076
048addec
JD
28077 * insdel.c (replace_range): Use adjust_markers_for_replace
28078 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 28079
78819ebb 28080 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 28081
048addec
JD
28082 * textprop.c (set_text_properties_1): New subroutine
28083 broken out of set_text_properties.
28084 (set_text_properties): Use set_text_properties_1.
91823618 28085
048addec
JD
28086 * intervals.c (graft_intervals_into_buffer):
28087 Use set_text_properties_1 to clear out properties.
91823618 28088
048addec
JD
28089 * search.c (Freplace_match): Use replace_range to insert
28090 and delete. Don't request property inheritance from
28091 surrounding text.
86928dfb 28092
048addec 280932001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 28094
048addec 28095 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 28096 vertical fonts. Allow them if face name is explicitly specified.
048addec 28097 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 28098
048addec 280992001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 28100
048addec
JD
28101 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
28102 instead of malloc/free.
a78e0303 28103
048addec 281042001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 28105
048addec
JD
28106 * xfaces.c (merge_face_vectors): Use braces to follow GNU
28107 Coding Standards.
28108 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 28109
048addec 28110 * buffer.c (Fbury_buffer): Likewise.
0c99b139 28111
048addec 28112 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 28113
048addec
JD
28114 * coding.c (encode_coding): Use precomputed value of `src'.
28115 (encode_coding): Remove unused variable `src_end'.
28116 (code_convert_region): Remove unused variables `count'.
830ddd77 28117
048addec 281182001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 28119
048addec
JD
28120 * w32term.c (x_display_and_set_cursor): Do not move system caret
28121 if cursor_glyph is NULL.
55c6d645 28122
048addec 281232001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 28124
048addec 28125 * keymap.c (access_keymap): Fix compilation error.
5de38842 28126
048addec 281272001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 28128
048addec 28129 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 28130
048addec 281312001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 28132
048addec
JD
28133 * intervals.c (graft_intervals_into_buffer):
28134 Remove #ifdef'd-out code.
28135 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 28136
048addec
JD
28137 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
28138 code (eval-current-buffer).
28139 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 28140
048addec 281412001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 28142
048addec 28143 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 28144
048addec 281452001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 28146
048addec 28147 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 28148
048addec
JD
28149 * keyboard.c (make_lispy_event): Check integerness and fix
28150 Lisp_Object/int mixup.
17893c65 28151
048addec 281522001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 28153
048addec 28154 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 28155
048addec
JD
28156 * fontset.c (fontset_font_pattern): Remove unused variable
28157 `family_registry'.
d5360cc7 28158
048addec 28159 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 28160
048addec 281612001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 28162
048addec 28163 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 28164
048addec
JD
28165 * buffer.c (Fkill_buffer): Don't delete auto save file
28166 if buffer is modified.
d9d54213 28167
048addec 281682001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 28169
048addec
JD
28170 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
28171 CHECK_NUMBER_CDR.
b116830b 28172
048addec 281732001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 28174
048addec 28175 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 28176
048addec 281772001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 28178
048addec 28179 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 28180
048addec 281812001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 28182
048addec 28183 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 28184
048addec 281852001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 28186
048addec
JD
28187 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
28188 the program image directly.
982f6c7e 28189
048addec 281902001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 28191
048addec 28192 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 28193
048addec 281942001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 28195
048addec
JD
28196 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
28197 and CHECK_BUFFER.
d31053f9 28198
048addec
JD
28199 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
28200 (record_char): Likewise.
d31053f9 28201
048addec
JD
28202 * keyboard.c (make_lispy_event): Don't insist a drag event must
28203 move to a different buffer position. Instead, check for moving at
28204 least double_click_fuzz.
982f6c7e 28205
048addec 28206 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 28207
048addec 28208 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 28209
048addec
JD
28210 * indent.c (current_column_1, Fmove_to_column): Separate the code
28211 for display-table glyphs from the code for buffer text, to fix
28212 bugs in the former.
830047fd 28213
048addec 282142001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 28215
048addec
JD
28216 * buffer.c (Fbuffer_local_value): New function.
28217 (syms_of_buffer): Defsubr it.
2df5238c 28218
048addec
JD
28219 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
28220 value of `cursor-in-non-selected-windows'.
4e397688 28221
048addec
JD
28222 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
28223 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
28224 (syms_of_xdisp): Initialize it.
48b0f3ae 28225
048addec 282262001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 28227
048addec 28228 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 28229
048addec
JD
28230 * coding.c: Change doc-string comments to `new style' [w/`doc:'
28231 keyword].
3ecaf7e5 28232
048addec
JD
28233 * eval.c (top_level_value, top_level_set): Remove commented and
28234 #ifdef'd-out code.
28235 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 28236
048addec 282372001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 28238
048addec 28239 * xfns.c: Include unistd.h, if it exists.
8db2e33b 28240
048addec 28241 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 28242
048addec 28243 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 28244
048addec 282452001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 28246
048addec
JD
28247 * lisp.h (CHECK_STRING_CAR): New macro.
28248 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
28249 treating XCAR and XCDR as lvalues.
28250 (openp): Use CHECK_STRING_CAR.
28251 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 28252
048addec 282532001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 28254
048addec
JD
28255 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
28256 (SIGMASKTYPE): Define.
1b1acc13 28257
048addec 28258 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 28259
048addec 282602001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 28261
048addec
JD
28262 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
28263 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
28264 Fix typos in comments.
6cb16f95 28265
048addec
JD
28266 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
28267 and #ifdef'd-out code.
28268 Fix and reindent comments.
6cb16f95 28269
048addec 28270 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 28271
048addec
JD
28272 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
28273 argument `i' in macros.
6cb16f95 28274
048addec
JD
28275 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
28276 `i' in macros.
7e9d3c2f 28277
048addec
JD
28278 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
28279 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
28280 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
28281 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
28282 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
28283 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
28284 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
28285 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
28286 in macros.
7e9d3c2f 28287
048addec
JD
28288 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
28289 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
28290 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
28291 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
28292 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
28293 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
28294 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
28295 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
28296 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
28297 (remove unused second argument).
7e9d3c2f 28298
048addec 282992001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 28300
048addec
JD
28301 * syntax.c (describe_syntax): New wrapper.
28302 (Finternal_describe_syntax_value): Rename from describe_syntax.
28303 Don't insert space at front and \n at the end.
28304 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 28305
048addec
JD
28306 * regex.c (re_wctype): Try to fix some warnings.
28307 (regcomp, regexec): Don't forget the __restrict.
9ba48103 28308
048addec 283092001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 28310
048addec 28311 * textprop.c (Fget_char_property): Doc fix.
9ba48103 28312
048addec 283132001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 28314
048addec 28315 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 28316
048addec 28317 * data.c (Fsetq_default): Ditto.
c22e59e1 28318
048addec 28319 * callint.c (Finteractive): Ditto.
9271ed2c 28320
048addec 283212001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 28322
048addec
JD
28323 * macros.c: Don't include keymap.h any more.
28324
283252001-11-01 Richard M. Stallman <rms@gnu.org>
28326
28327 * data.c (Fmake_local_variable): Doc fix.
28328
28329 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
28330 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 28331
048addec 28332 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
28333 bindings along with or instead of the buffer local map.
28334 Make the overriding maps override what they should.
28335
f00691a3 283362001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
28337
28338 * window.c (grow_mini_window): Fix typo in comment.
28339
27188d11
GM
283402001-11-01 Gerd Moellmann <gerd@gnu.org>
28341
7b49b9d2
GM
28342 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
28343 (XTset_vertical_scroll_bar): Likewise.
28344
43f7c3ea
GM
28345 * xfns.c (x_build_heuristic_mask): Use four_corners_best
28346 instead of IMAGE_BACKGROUND.
c22e59e1 28347
b350c2e5
GM
28348 * xfns.c (four_corners_best): Reindent.
28349
c22e59e1 28350 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
28351 Handle :box so that it is possible to specify sexprs.
28352
bf00d461
EZ
283532001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
28354
28355 * s/hpux11.h: New file.
28356
f00691a3 283572001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 28358
2b209b97
PJ
28359 * emacs.c (USAGE1): Show command line option --no-window-system
28360 instead of --no-windows in usage.
28361 (standard_args): Rename --no-windows to --no-window-system.
28362 (bug_reporting_address): Follow Emacs coding conventions.
28363
9dbc9081
PJ
28364 * eval.c (Fcommandp): Doc fix.
28365 Change doc-string comments to `new style' [w/`doc:' keyword].
28366
4e10df59
PJ
28367 * frame.c (Fframe_live_p): Doc fix.
28368
28369 * buffer.c (selective-display-ellipses): Doc fix.
28370
dd387b25
GM
283712001-10-31 Gerd Moellmann <gerd@gnu.org>
28372
fe957e65
GM
28373 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
28374
dd387b25
GM
28375 * xfaces.c (realize_x_face): If C is not a single-byte character,
28376 set the face's colors_copied_bitwise_p instead of the defaulted_p
28377 members which have a different meaning.
28378 (free_face_colors): Do nothing for a face whose colors have been
28379 copied bitwise.
28380
c22e59e1 28381 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 28382
f00691a3 283832001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 28384
687784e8
PJ
28385 * marker.c, mocklisp.c: Change doc-string comments to `new style'
28386 [w/`doc:' keyword].
2e1280f8 28387
b9d9a9b9
GM
283882001-10-31 Gerd Moellmann <gerd@gnu.org>
28389
28390 * fns.c (require_unwind): Return Lisp_Object.
28391
f00691a3 283922001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 28393
fa1361cb
PJ
28394 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
28395 (last-input-char): Revert doc-string to be the same as the
28396 doc-string of `last-input-event'.
28397
6c465a15 28398 * xdisp.c: Fix typos in comments.
48400103 28399
eafa3196
GM
284002001-10-31 Gerd Moellmann <gerd@gnu.org>
28401
28402 * window.c (grow_mini_window): Handle case that the root
28403 window is already smaller than the nominal mininum height.
28404
747d3f2a
SM
284052001-10-30 Stefan Monnier <monnier@cs.yale.edu>
28406
bf9bb76f
SM
28407 * emacs.c (main): Don't call keys_of_macros any more.
28408
28409 * lisp.h (keys_of_macros): Remove.
28410
28411 * macros.c (keys_of_macros): Remove.
28412
747d3f2a
SM
28413 * xfaces.c (Fface_attribute_relative_p): Declare args.
28414
5e905a57
JR
284152001-10-30 Jason Rumney <jasonr@gnu.org>
28416
28417 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
28418 (enum_font_cb2): Ignore fonts with vertical orientation.
28419
3a426197
RS
284202001-10-30 Richard M. Stallman <rms@gnu.org>
28421
28422 * keyboard.c (Finput_pending_p): Doc fix.
28423
a742d646
GM
284242001-10-30 Gerd Moellmann <gerd@gnu.org>
28425
259cf6bc
GM
28426 * xterm.c (x_after_update_window_line): Don't run the code
28427 clearing in borders for rows whose visible height is 0.
28428
3f99f948
GM
28429 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
28430 resized_p flag is set. If not set, use the much less flickering
28431 method previously used.
28432
28433 * dispnew.c (change_frame_size_1): Set frame's resized_p.
28434
28435 * frame.h (struct frame) <resized_p>: New member.
28436
b4a3be43
GM
28437 * lread.c (to_multibyte): Ensure read_buffer is at least twice
28438 as large as the number of bytes to convert.
747d3f2a 28439
a742d646
GM
28440 * lread.c (to_multibyte): New function.
28441 (read1): Use it.
28442
cacbb9e9
EZ
284432001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
28444
28445 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
28446
99cb6b2f
GM
284472001-10-30 Gerd Moellmann <gerd@gnu.org>
28448
327f42ee 28449 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
28450 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
28451 if the row's fill_line_p is set and drawing the last glyph with
28452 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 28453
99cb6b2f
GM
28454 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
28455
8e8223e2
SM
284562001-10-29 Stefan Monnier <monnier@cs.yale.edu>
28457
28458 * xmenu.c: Include coding.h and charset.h.
28459 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
28460 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
28461 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
28462 Explicitly set wv->help. Use `TRUE' rather than `True'.
28463 (menu_help_callback): Use empty_string.
28464
28465 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
28466 (Fx_popup_dialog): Explicitly init f.
28467 (w32_menu_display_help): Use empty_string.
28468
4d083a8f
RS
284692001-10-29 Richard M. Stallman <rms@gnu.org>
28470
b2304472
RS
28471 * fns.c (Frequire): Detect recursive try to require the same
28472 feature 3 or more levels deep, and get error.
28473 (require_unwind): New subroutine.
28474 (require_nesting_list): New variable.
28475 (syms_of_fns): Init and staticpro it.
28476
4d083a8f
RS
28477 * print.c (print_object): Clarify indication of insertion type.
28478
2fe41216
EZ
284792001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
28480
90480000
EZ
28481 * coding.c (syms_of_coding): Document that locale-coding-system is
28482 used for decoding input on X.
28483
2fe41216
EZ
28484 * window.c (Fscroll_left, Fscroll_right): Doc fix.
28485
f00691a3 284862001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
28487
28488 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
28489 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
28490
60ebcfe8
GM
284912001-10-29 Gerd Moellmann <gerd@gnu.org>
28492
9a7bdceb
GM
28493 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
28494 use NO_CURSOR if cursor_in_non_selected_windows is false.
28495
3f08fcd2
GM
28496 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
28497 the slant attribute if FRAME is t.
28498
0ccfdad2
GM
28499 * xfns.c (x_set_internal_border_width): Set frame garbaged
28500 when X window doesn't exist yet.
28501
ef253080
GM
28502 * xterm.c (x_after_update_window_line): Clear internal border
28503 in different circumstances.
b116830b 28504
60ebcfe8
GM
28505 * xterm.c (XTread_socket) <KeyPress>: Don't use
28506 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
28507 <handa@etl.go.jp>.
28508
73d25f9c
EZ
285092001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
28510
28511 * m/ibms390.h: New file. From Adam Thornton
28512 <athornton@sinenomine.net>.
28513
cac1daf0
GM
285142001-10-28 Gerd Moellmann <gerd@gnu.org>
28515
053b3256 28516 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 28517
cac1daf0
GM
28518 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
28519 a loop counter.
28520
f00691a3 285212001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 28522
f9711de4 28523 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 28524
4707d2d0
PJ
28525 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
28526 keyword].
28527 Fix typos in comments.
b116830b 28528
d883731c
PJ
28529 * emacs.c (bug_reporting_address): New function.
28530 Use it when displaying usage message.
28531
04012254
PJ
28532 * minibuf.c (read_minibuf): Remove unused external declaration of
28533 variable `Qread_only'.
28534
13b1a09c
PJ
28535 * keymap.c (access_keymap): Remove unused variable `charset'.
28536
5bbf4378
MB
285372001-10-28 Miles Bader <miles@gnu.org>
28538
28539 * xfaces.c (merge_face_heights): Handle TO being relative as well.
28540 Remove #ifdef'd-out code.
28541 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
28542 (syms_of_xfaces): Initialize them.
28543
1ce1e4ee
JR
285442001-10-27 Jason Rumney <jasonr@gnu.org>
28545
28546 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
28547 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
28548 position using the system caret.
28549
28550 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
28551 (w32_system_caret_height, w32_system_caret_x)
28552 (w32_system_caret_y): New variables for tracking system caret.
28553 (w32_initialize): Initialize them.
c2d53558 28554 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 28555
c2d53558
SM
28556 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
28557 New messages types.
1ce1e4ee
JR
28558
28559 * w32term.c (note_mouse_highlight): Clear old help_echo.
28560
f00691a3 285612001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 28562
bb4600a4
PJ
28563 * xterm.c: Fix typo in a comment.
28564
7db35a48
PJ
28565 * emacs.c: Fix typos in comments.
28566 Remove unnecessary spaces.
28567 Change doc-string comments to `new style' [w/`doc:' keyword].
28568 (USAGE2): Fix typos in usage string.
28569
a7248e4f
PJ
28570 * xterm.c: Fix typo in a comment.
28571
52eb0373 28572 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
28573 emacs.c.
28574
62725a92
GM
285752001-10-27 Gerd Moellmann <gerd@gnu.org>
28576
798dbe1f 28577 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 28578 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
28579 farther backward when target_y was not reached.
28580
62725a92
GM
28581 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
28582 Display errno only if non-zero.
28583 (sound_warning): New function.
28584 (vox_configure): Don't treat failing to set sample rate as error.
28585 (various places): Improve error messages.
28586
d4e34d24
EZ
285872001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
28588
944e6f60
EZ
28589 * fileio.c (Faccess_file): Run the argument filename through
28590 Fexpand_file_name, before using it.
28591
d4e34d24
EZ
28592 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
28593 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
28594
38d2af0c
GM
285952001-10-26 Gerd Moellmann <gerd@gnu.org>
28596
da80a8d5
GM
28597 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
28598
38d2af0c
GM
28599 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
28600 Fix clearing in the case of scroll bars on the right.
c2d53558 28601
45de4a6f 286022001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
28603
28604 * w32gui.h (XImage): Add a dummy typedef.
28605
fbd5ceb2
GM
286062001-10-26 Gerd Moellmann <gerd@gnu.org>
28607
c2d53558 28608 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 28609
b23236fb
EZ
286102001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
28611
28612 * frame.c (Fframe_parameter): Fix last change.
28613
5d991fc4
EZ
28614 * fileio.c: Revert last change (which removed old commented-out
28615 version of expand-file-name). Add a comment that explains why
28616 this old version should not be removed.
28617
879eadc3
GM
286182001-10-25 Gerd Moellmann <gerd@gnu.org>
28619
75700ff2
GM
28620 * frame.c (Fframe_parameter): Fix a bug whereby some
28621 ``artificial'' frame parameters, like `minibuffer' were not
28622 obtained by calling Fframe_parameters.
28623
dfe92a6a
GM
28624 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
28625 cursor differently.
28626
879eadc3
GM
28627 * xdisp.c (move_it_vertically_backward): Compute line height
28628 differently. Add heuristic to try to be more compatible to 20.x.
28629
e1010ebe
SM
286302001-10-25 Stefan Monnier <monnier@cs.yale.edu>
28631
d73a471b
SM
28632 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
28633
d6da5a06
GM
28634 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
28635 boolean.
e1010ebe 28636
f66bd220
MB
286372001-10-25 Miles Bader <miles@gnu.org>
28638
28639 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
28640 BG is a pointer to a structure, not a structure.
28641 (gif_format, png_format): Add missing commas.
28642
d436d538
RS
286432001-10-24 Richard M. Stallman <rms@gnu.org>
28644
28645 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 28646 (syms_of_xfaces): Defsubr it.
d436d538 28647
f00691a3 286482001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
28649
28650 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
28651 variable `area'.
28652
f00691a3 286532001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 28654
c2d53558 28655 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 28656
e2a57b34
MB
286572001-10-25 Miles Bader <miles@gnu.org>
28658
28659 * dispextern.h (struct image): Add `background',
28660 `background_valid', and `background_transparent' fields.
28661 (image_background, image_background_transparent): New declarations.
28662 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
28663 * xfns.c (image_background, image_background_transparent)
28664 (four_corners_best): New functions.
c2d53558 28665 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
28666 (gs_format): Add `:background' entry.
28667 (lookup_image): Set IMG's background color if specified.
28668 (pbm_load, xbm_load_image, png_load): Set IMG's background field
28669 when appropriate.
28670 (x_clear_image_1): Reset `background_valid' and
28671 `background_transparent_valid' fields.
28672 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
28673 calculating it here. Set IMG's background_transparent field.
28674 (enum xpm_keyword_index): Add XPM_BACKGROUND.
28675 (enum png_keyword_index): Add PNG_BACKGROUND.
28676 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
28677 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
28678 (enum gif_keyword_index): Add GIF_BACKGROUND.
28679 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 28680 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
28681 Pre-calculate image background color where necessary.
28682 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
28683 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
28684 color to use for image glyph reliefs.
28685
b547b6e8
GM
286862001-10-24 Gerd Moellmann <gerd@gnu.org>
28687
d9e3b8c6
GM
28688 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
28689 in full-width rows.
c2d53558 28690
b547b6e8
GM
28691 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
28692 Fix clearing of area not covered by scroll bar.
28693
f00691a3 286942001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 28695
52eb0373 28696 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 28697 and `real_start'.
c2d53558 28698 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
28699 (glyph_rect): Remove unused variable `area'.
28700
76cb5e06
GM
287012001-10-24 Gerd Moellmann <gerd@gnu.org>
28702
bdbdebff 28703 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
28704
28705 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
28706 (row_containing_pos): Take additional argument DY.
28707 Treat rows ending in middle of char differently.
62e33982
GM
28708 (display_line): Handle tabs on window systems differently.
28709
28710 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
28711 with additional argument.
28712
28713 * dispextern.h (row_containing_pos): Adjust prototype.
28714
76cb5e06
GM
28715 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
28716 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
28717 (try_window_id, try_window_reusing_current_matrix)
28718 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 28719 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 28720
f00691a3 287212001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 28722
c9e60620
PJ
28723 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
28724 gnuemacs).
28725 (HAVE_BOXES): Fix typo in comment.
28726 (push_menu_pane): Fix typo in comment.
28727
52eb0373 28728 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
28729 of `Qwhen'.
28730 (single_display_prop_string_p): Remove unused local declarations
28731 of `Qwhen' and `Qmargin'.
28732 (string_buffer_position): Remove unused variable `around'.
28733 (store_frame_title): Remove unused variable `width'.
28734
15c565ac
PJ
28735 * window.c: Don't define max.
28736 (coordinates_in_window): Remove unused variable `uy'.
28737
a8818eb9
PJ
28738 * widget.c: Don't define max.
28739
996fee11
PJ
28740 * process.c: Don't define max.
28741 (create_process): Remove unused variable `buffer'.
28742
496e1a5b
GM
287432001-10-23 Gerd Moellmann <gerd@gnu.org>
28744
c2d53558 28745 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 28746
5905ae8b
EZ
287472001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
28748
28749 * xfaces.c (Finternal_set_lisp_face_attribute)
28750 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
28751 frame is on a windowed display.
28752
24db49fb
GM
287532001-10-23 Gerd Moellmann <gerd@gnu.org>
28754
c2d53558
SM
28755 * dispnew.c (sync_window_with_frame_matrix_rows):
28756 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
28757 of marginal areas.
28758
c2d53558 28759 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 28760
f0487f05
EZ
287612001-10-23 Andreas Schwab <schwab@suse.de>
28762
28763 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
28764 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
28765
f0a48a01
GM
287662001-10-23 Gerd Moellmann <gerd@gnu.org>
28767
c2d53558 28768 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
28769 REAL_END. Notice if cursor gets overwritten.
28770 (notice_overwritten_cursor): Take X positions as parameters.
28771 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
28772 around call to x_draw_glyphs.
28773
f00691a3 287742001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 28775
fc11dff0
PJ
28776 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
28777 instead of C) and usage.
a50a10a0 28778
fc11dff0
PJ
28779 * editfns.c (char-to-string): Fix argument names (use CHAR instead
28780 of C) and usage.
a50a10a0
PJ
28781
28782 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
28783 `left', `max_width' and `max_height'.
28784
8738febd
GM
287852001-10-23 Gerd Moellmann <gerd@gnu.org>
28786
28787 * xdisp.c (display_line): For a tab continued to the next line,
28788 set row's ends_in_middle_of_char_p.
28789
653c329b
GM
287902001-10-22 Gerd Moellmann <gerd@gnu.org>
28791
28792 * xdisp.c (display_line): Fix computation of continuation lines
28793 width for TABs.
28794
f00691a3 287952001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 28796
7ba51063
PJ
28797 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
28798 `Qlaplace'.
28799
f958c5ac
PJ
28800 * fileio.c: Remove unused code.
28801
eb360291
MB
288022001-10-22 Miles Bader <miles@gnu.org>
28803
28804 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
28805 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
28806 Remove `DOC_STRINGS_IN_COMMENTS' cases.
28807
98515cf0
JR
288082001-10-21 Jason Rumney <jasonr@gnu.org>
28809
28810 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
28811
93026d88
EZ
288122001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
28813
28814 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
28815 (Finsert_string): Avoid the multi-line string literals warning.
28816
c9a95b79
MB
288172001-10-22 Miles Bader <miles@gnu.org>
28818
28819 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
28820 (Fdocumentation): Don't use it.
28821 (syms_of_doc): Don't initialize it.
28822
28823 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
28824 * print.c (Fwith_output_to_temp_buffer): Likewise.
28825 * window.c (Fsave_window_excursion): Likewise.
c2d53558 28826 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 28827 (Fsave_restriction): Likewise.
c2d53558
SM
28828 * eval.c (Frun_hooks, Frun_hook_with_args)
28829 (Frun_hook_with_args_until_failure)
28830 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
28831 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
28832 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
28833 (Funwind_protect, Fcondition_case): Likewise.
28834 * coding.c (Ffind_operation_coding_system): Likewise.
28835 * keyboard.c (Ftrack_mouse): Likewise.
28836
a3b10252
MB
288372001-10-21 Miles Bader <miles@gnu.org>
28838
c2d53558 28839 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
28840 (Fmake_hash_table): Add usage: string to doc string.
28841 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 28842 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
28843 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
28844 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
28845 (Fml_prefix_argument_loop): Likewise.
28846
f00691a3 288472001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 28848
c2d53558 28849 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 28850
c6f73eec
PJ
28851 * sysdep.c (init_sys_modes): Change doc-string comments to `new
28852 style' [w/`doc:' keyword].
28853
28854 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
28855 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
28856 comments to `new style' [w/`doc:' keyword].
28857
3cf3436e
JR
288582001-10-21 Jason Rumney <jasonr@gnu.org>
28859
28860 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
28861
c169b8f1
JR
28862 * w32term.c (remember_mouse_glyph): New function.
28863 (w32_mouse_position): Use it.
28864 (note_mouse_movement): If the mouse moved off the glyph, remember
28865 its new position.
c2d53558 28866
4fdd691b
JR
28867 * w32term.h (struct w32_output): Correct spelling of x_compatible.
28868 (w32_display_info): Add mouse_face_overlay.
28869
c169b8f1
JR
28870 * w32term.c (notice_overwritten_cursor): Renamed from
28871 note_overwritten_text_cursor. Rewritten to take glyph widths into
28872 account.
28873 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
28874 (fast_find_string_pos): New function.
28875 (fast_find_position): Return the correct vpos. Add parameter
28876 STOP. In the final row, stop before glyphs having STOP as object.
28877 Don't consider glyphs that are not from a buffer.
28878 (fast_find_position) [0]: Add a presumably more correct version
28879 for after 21.1.
28880 (expose_window_tree, expose_frame): Don't compute intersections here.
28881 (expose_window): Do it here instead.
28882 (expose_window_tree, expose_window, expose_line): Return 1 when
28883 overwriting mouse-face.
28884 (expose_window): If W is the window currently being updated, mark
28885 the frame garbaged.
28886 (expose_frame): If mouse-face was overwritten, redo it.
28887 (x_use_underline_position_properties): New variable.
28888 (syms_of_xterm): DEFVAR_BOOL it.
28889 (x_draw_glyph_string): Add comment to use it in future.
28890 (x_draw_glyph_string): Restore clipping after drawing box.
28891 Fix a computation of the underline position.
28892 (w32_get_glyph_string_clip_rect): Minor cleanup.
28893 (x_fill_stretch_glyph_string): Remove an assertion.
28894 (x_produce_glyphs): Don't convert multibyte characters
28895 to unibyte characters in unibyte buffers.
28896 (cursor_in_mouse_face_p): New function.
28897 (x_draw_stretch_glyph_string): Use it to choose a different GC
28898 when drawing a cursor within highlighted text. Don't draw
28899 background again if it has already been drawn.
28900 (x_draw_glyph_string_box): Don't draw a full-width
28901 box just because the glyph row's full_width_p flag is set.
28902 (x_draw_glyphs): Fix computation of rightmost x for
28903 full-width rows.
28904 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
28905 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 28906 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
28907 (x_update_window_end): Handle overwritten mouse face
28908 also for tool bar windows.
28909 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
28910 DRAW is DRAW_IMAGE_RAISED.
28911 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
28912 actually redrawn. Make the function static.
28913 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
28914 optimize away highlighting if we pass over that same overlay again.
28915 (note_mouse_highlight): Call mouse_face_overlay_overlaps
28916 to detect a case where we have to highlight a different region
28917 despite not having left the currently highlighted region.
28918 Set mouse_face_overlay in the x_display_info. Avoid changing the
28919 mouse pointer shape when show_mouse_face has already done it, or
28920 there is no need. Handle mouse-face and help-echo in strings.
28921 (glyph_rect): New function.
28922 (w32_mouse_position): Use it to raise the threshold for mouse
28923 movement event generation.
28924 (w32_initialize_display_info): Initialize the x_display_info's
28925 mouse_face_overlay.
28926 (w32_set_vertical_scroll_bar): Don't clear a zero height
28927 or width area.
28928 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
28929 a widget to zero height.
28930
3cf3436e 28931 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 28932 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
28933 equivalents in menu_items.
28934 (w32_menu_show): Don't overwrite an item's name with its key
28935 description in case the description is a multibyte string.
28936 (single_submenu): Some cleanup.
28937
28938 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
28939 (postprocess_image): New function.
28940 (lookup_image): Call it for all image types except PostScript.
28941 (x_kill_gs_process): Call postprocess_image.
28942 (tiff_error_handler, tiff_warning_handler): New functions.
28943 (tiff_load): Install them as handlers.
28944 (x_kill_gs_process): Recognize if someone has cleared the image
28945 cache under us.
28946 (valid_image_p): Protect better against invalid image
28947 specifications. Previous code could signal an error.
28948 (Fx_hide_tip, Fshow_tip): Doc fix.
28949 (Fv_max_tooltip_size): New variable.
28950 (syns_of_xfns): DEFVAR_LISP it.
28951 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 28952 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
28953 window_width. Use a maximum tooltip size specified by
28954 Vx_max_tooltip_size, if that has valid contents.
28955 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
28956 Make sure the tooltip is completely visible.
28957 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
28958 (Fx_create_frame): Adjust the frame's height for presence
28959 of the tool bar before calling x_figure_window_size.
28960 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
28961 when the window gets smaller.
28962 (x_set_foreground_color): Set frame's cursor_pixel.
28963 (x_set_foreground_color, x_set_background_color): Cleaned up.
28964 (x_set_font): Handle case of x_new_fontset returning the same name
28965 as before, although there was a change in fontsets.
28966
386ca361
MB
289672001-10-21 Miles Bader <miles@gnu.org>
28968
c2d53558 28969 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
28970 (Flogxor): Add usage: string to doc string.
28971 * charset.c (Fstring): Likewise.
28972 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
28973 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
28974
f00691a3 289752001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 28976
03be2694
PJ
28977 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
28978
28979 * alloc.c: Reindent DEFUNs with doc: keywords.
28980
28981 * abbrev.c (Finsert_abbrev_table_description): Reindent.
28982
14ff1ee0
PJ
28983 * frame.c: Change doc-string comments to `new style' [w/`doc:'
28984 keyword].
28985
2f147815 28986See ChangeLog.9 for earlier changes.
6922b018
KH
28987
28988;; Local Variables:
49b3bd82 28989;; coding: iso-2022-7bit
33462dfa 28990;; add-log-time-zone-rule: t
6922b018 28991;; End:
2a34a036 28992
aaef169d 28993 Copyright (C) 2001, 2002, 2003, 2004, 2005,
081f2203 28994 2006, 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
28995
28996 This file is part of GNU Emacs.
28997
28998 GNU Emacs is free software; you can redistribute it and/or modify
28999 it under the terms of the GNU General Public License as published by
684d6f5b 29000 the Free Software Foundation; either version 3, or (at your option)
7f6d64f8
GM
29001 any later version.
29002
29003 GNU Emacs is distributed in the hope that it will be useful,
29004 but WITHOUT ANY WARRANTY; without even the implied warranty of
29005 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29006 GNU General Public License for more details.
29007
29008 You should have received a copy of the GNU General Public License
29009 along with GNU Emacs; see the file COPYING. If not, write to the
29010 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29011 Boston, MA 02110-1301, USA.
ab5796a9
MB
29012
29013;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4