ChangeLog 548 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
2004-10-20  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
	New variables and constant.
	(main): Calculate heap_bss_diff.  If we are dumping and the
	heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
	and exec ourself again.
	(Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
	print a warning.

	* lastfile.c: Make my_endbss and my_endbss_static available on all
	platforms.

	* Makefile.in (RUN_TEMACS): Remove @SETARCH@.
	* config.in (HAVE_PERSONALITY_LINUX32): Regenerate.

17 18 19 20
2004-10-19  Luc Teirlinck  <teirllm@auburn.edu>

	* data.c (Flocal_variable_if_set_p): Doc fix.

21 22 23 24 25
2004-10-19  Jason Rumney  <jasonr@gnu.org>

	* w32.c (init_environment): Set emacs_dir correctly when running
	emacs from the build directory.

26 27 28 29 30
2004-10-19  Richard M. Stallman  <rms@gnu.org>

	* editfns.c (Fdelete_and_extract_region):
	If region is empty, return null string.

31 32
2004-10-19  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

33
	* gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
34 35 36 37 38 39 40 41 42 43 44 45 46 47
	and canon_width.
	(xg_frame_cleared): Removed.

	* gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose,
	xg_find_top_left_in_fixed): Removed.
	(xg_create_scroll_bar): Put an event box widget between
	the scroll bar widget and the edit widget.
	(xg_show_scroll_bar): Show the parent widget (the event box).
	(xg_remove_scroll_bar): Destroy parent (the event box) also.
	(xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
	Move the parent (the event box) widget inside the fixed widget.
	Move window clear to xterm.c.

	* gtkutil.h (xg_frame_cleared): Removed.
48

49 50 51 52 53
	* xterm.c (x_clear_frame): Remove call to xg_frame_cleared
	(x_scroll_bar_create, XTset_vertical_scroll_bar): Remove
	arguments left and width to xg_update_scrollbar_pos.
	(XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.

54
2004-10-19  Kenichi Handa  <handa@m17n.org>
Kim F. Storm's avatar
Kim F. Storm committed
55 56 57

	* xdisp.c (display_mode_element): Fix display of wide chars.

58 59 60 61 62 63
2004-10-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
	gdk_window_clear and move gdk_window_process_all_updates after
	clear so events are sent to the X server in correct order.

64 65 66 67
2004-10-18  Kenichi Handa  <handa@m17n.org>

	* fontset.c (fs_load_font): Use fast_string_match_ignore_case for
	comparing font names.
68
	(fs_query_fontset): Use fast_string_match for comparing fontset names.
69 70 71 72 73 74
	(list_fontsets): Likewise.

	* search.c (fast_string_match_ignore_case): New function.

	* lisp.h (fast_string_match_ignore_case): Extern it.

Kim F. Storm's avatar
Kim F. Storm committed
75 76 77 78 79 80 81
2004-10-17  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (overlay_arrow_at_row): Return overlay string rather
	than bitmap if there is not left fringe.
	(get_overlay_arrow_glyph_row): Also used on windows system.
	(display_line): Display overlay string if no left fringe.

Jason Rumney's avatar
Jason Rumney committed
82 83 84 85
2004-10-16  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (w32_font_match): Encode font name being matched.

86 87 88 89
2004-10-16  Richard M. Stallman  <rms@gnu.org>

	* window.c (Fspecial_display_p): Doc fix.

90 91 92 93 94
2004-10-15  Stefan  <monnier@iro.umontreal.ca>

	* doc.c (Fsubstitute_command_keys): Fix remap-handling.
	Don't ignore menus, because where-is-internal already does it for us.

Kim F. Storm's avatar
Kim F. Storm committed
95 96
2004-10-15  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
97 98
	* xdisp.c (redisplay_window): Only update fringes and vertical
	border on window frames.
Kim F. Storm's avatar
Kim F. Storm committed
99

100 101 102 103
2004-10-14  Andreas Schwab  <schwab@suse.de>

	* m/ia64.h (DATA_SEG_BITS): Don't define.

Kim F. Storm's avatar
Kim F. Storm committed
104 105 106
2004-10-14  Kim F. Storm  <storm@cua.dk>

	* xterm.h: Include Xutil.h after keysym.h to work around bug
Kim F. Storm's avatar
Kim F. Storm committed
107
	in some X versions.
Kim F. Storm's avatar
Kim F. Storm committed
108

Stefan Monnier's avatar
Stefan Monnier committed
109 110 111 112
2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fns.c (map_char_table): Add missing gcpros.

Stefan Monnier's avatar
Stefan Monnier committed
113 114 115 116 117 118
2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (get_keymap): An autoload form is not a keymap.

	* textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.

Kim F. Storm's avatar
Kim F. Storm committed
119 120
2004-10-13  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
121 122 123
	* callproc.c (Fcall_process): Simplify handling of display arg.
	Resume `display_on_the_fly' once a coding system is determined.

Kim F. Storm's avatar
Kim F. Storm committed
124 125
	* xdisp.c (redisplay_preserve_echo_area): Fix last change.

Kim F. Storm's avatar
Kim F. Storm committed
126 127 128 129 130 131 132 133
2004-10-12  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (redisplay_preserve_echo_area): Flush display in case
	caller, such as call-process, is not going to poll for input.
	(calc_line_height_property): Handle case where it->object is nil.

	* xterm.c (x_redisplay_interface): Fix flush_display_optional.

Kenichi Handa's avatar
Kenichi Handa committed
134 135
2004-10-12  Kenichi Handa  <handa@m17n.org>

Stefan Monnier's avatar
Stefan Monnier committed
136 137
	* xdisp.c (get_next_display_element):
	If unibyte_display_via_language_environment is zero, display 8-bit
Kenichi Handa's avatar
Kenichi Handa committed
138 139
	chars in octal in unibyte buffer.

Kim F. Storm's avatar
Kim F. Storm committed
140 141 142 143 144
2004-10-12  Kim F. Storm  <storm@cua.dk>

	* doc.c (Fsubstitute_command_keys): Ignore remappings unless there
	are no ordinary bindings.

145 146
2004-10-11  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Stefan Monnier's avatar
Stefan Monnier committed
147
	* xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
148

149 150
2004-10-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

Stefan Monnier's avatar
Stefan Monnier committed
151 152
	* macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
	(x_lower_frame): Add BLOCK_INPUT around SendBehind.
153
	(make_mac_frame): Add BLOCK_INPUT around the making of a
Stefan Monnier's avatar
Stefan Monnier committed
154 155 156
	terminal frame.
	(mac_initialize): Add BLOCK_INPUT around carbon initialization.
	* macgui.h (mktime): Use emacs_mktime.
157 158
	* macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
	Make a cancel file-open dialog be like C-g.
Stefan Monnier's avatar
Stefan Monnier committed
159 160 161
	* mac.c (mktime): Use emacs_mktime.
	(Fdo_applescript): Add BLOCK_INPUT around do_applescript.
	(Fmac_paste_function): Add better error handling for carbon cut/paste.
162

Kim F. Storm's avatar
Kim F. Storm committed
163 164 165 166 167 168 169 170 171 172
2004-10-10  Kim F. Storm  <storm@cua.dk>

	* keyboard.c (timer_resume_idle): New function to resume idle
	timer without resetting timers on the idle list.
	(read_char): Use timer_resume_idle. Remove local var last_idle_start.
	(timer_start_idle, timer_stop_idle): Declare static.
	(read_key_sequence): Use timer_resume_idle instead of timer_start_idle.

	* keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.

173 174
2004-10-08  Steven Tamm  <steventamm@mac.com>

Stefan Monnier's avatar
Stefan Monnier committed
175
	* config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
176
	* macterm.c (mac_check_for_quit_char): Remove warning for using
Stefan Monnier's avatar
Stefan Monnier committed
177
	NULL where 0 should be used.
178 179
	* unexmacosx.c: Use malloc/malloc.h on Tiger instead of
	objc/malloc.h
Stefan Monnier's avatar
Stefan Monnier committed
180
	* mac.c: Include time.h for Tiger compatibility.
181

Kim F. Storm's avatar
Kim F. Storm committed
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
2004-10-07  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (redisplay_window): Fix flicker on vertical line between
	windows.  Update vertical line after drawing window fringes, but
	only if actually drawing any bitmaps--or there is no fringe.

	* xterm.c (x_update_window_end): Likewise.
	* macterm.c (x_update_window_end): Likewise.
	* w32term.c (x_update_window_end): Likewise.

	* fringe.c (draw_window_fringes): Return value now indicates if
	any fringe bitmaps were redrawn (or there are no fringes).

	* dispextern.h (draw_window_fringes): Update prototype.

197 198 199 200 201 202 203
2004-10-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (mac_get_window_bounds): Add extern.
	(x_real_positions): Use mac_get_window_bounds.

	* macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
	xmenu.c (YAILOM).
Kim F. Storm's avatar
Kim F. Storm committed
204

205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
	* macterm.c [!MAC_OSX]: Include Windows.h.
	(front_emacs_window): Rename from mac_front_window.  All uses
	changed.  Return the frontmost non-tooltip emacs window.
	(mac_get_window_bounds): New function.
	(x_calc_absolute_position): Use the difference of width and height
	between the inner and outer window.
	(x_set_offset): Specify window position by the coordinae of the
	outer window.  Adjust the position if the title bar is completely
	outside the screen.
	(app_is_suspended, app_sleep_time): Remove unused variables.
	(do_app_resume, do_app_suspend): Remove their contents because
	window-activate/deactivate events will do the job.
	(do_zoom_window): Remove unused variables.  Make compliant to the
	standard way of zooming.  Set f->left_pos and f->top_pos.
	(XTread_socket): Don't use argument `expected'.  Don't use
	FrontWindow to determine the clicked window.  Exclude unprocessed
	mouseUp cases in the early stage.  Add parentheses to fix operator
	precedence.
	(XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.


226
2004-10-05  Jan Dj,Ad(Brv.  <jan.h.d@swipnet.se>
Jan Djärv's avatar
Jan Djärv committed
227 228 229 230 231 232

	* config.in: Regenerate.

	* Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
	HAVE_EXECSHIELD.

233 234 235 236 237 238
2004-10-05  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
	a row if Alt or Meta has been found for that row.  Also stop scanning
	for Keysyms for that row.

Kim F. Storm's avatar
Kim F. Storm committed
239 240
2004-10-04  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
241 242 243
	* fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
	to list.  Include overlay arrow bitmap in return value.

Kim F. Storm's avatar
Kim F. Storm committed
244 245 246 247 248 249
	* xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
	bars with fractional column width.  If scroll bar separates two
	windows, move it towards the window it belongs to.  Only update
	the padding area below the scroll bar widget when necessary,
	i.e. when scroll bar widget is created, moved, or resized.

250 251 252 253
	* xdisp.c (define_frame_cursor1): Do not change frame cursor
	while tracking/dragging mouse.
	(x_draw_vertical_border): Do not draw line if frame has scroll bars.

Kim F. Storm's avatar
Kim F. Storm committed
254 255 256 257 258
	* window.c (coordinates_in_window): Relax check for cursor
	on vertial border between mode lines.
	(Fset_window_fringes): Do not allow negative widths.
	(Fset_window_scroll_bars): Likewise.

Kim F. Storm's avatar
Kim F. Storm committed
259 260 261
	* .gdbinit (pp): Shorthand for p ARG + pr.
	(ff): New command: flush frame updates (X only).

262 263 264 265
2004-10-03  Michael Albinus  <michael.albinus@gmx.de>

	* fileio.c (auto_save_1) Call Ffile_modes for remote files.

266 267
2004-09-30  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
268
	* process.c (send_process): Free composition data.
269

Kenichi Handa's avatar
Kenichi Handa committed
270
	* fileio.c (Finsert_file_contents): Free composition data.
271 272

	* coding.c (code_convert_region): Don't skip ASCIIs if there are
Kenichi Handa's avatar
Kenichi Handa committed
273 274 275 276 277 278
	compositions to encode.
	(encode_coding_string): Likewise.  Free composition data.

2004-09-30  Florian Weimer <fw@deneb.enyo.de>	(tiny change)

	* coding.c (code_convert_region): Free composition data.
279

Kim F. Storm's avatar
Kim F. Storm committed
280 281
2004-09-29  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
	* fringe.c: Remove limit on number of bitmaps.
	(fringe_bitmaps, fringe_faces): Change to pointers.
	(max_fringe_bitmaps): New var.
	(Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
	(init_fringe): Allocate fringe_bitmaps and fringe_faces.

	* dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
	(struct glyph_row): Reorder fringe_bitmap related fields.
	(struct it): Likewise.

	* w32term.c (fringe_bmp): Change to pointer.
	(max_fringe_bmp): New var.
	(w32_define_fringe_bitmap): Expand fringe_bmp.
	(w32_draw_fringe_bitmap): Check max_fringe_bmp.
	(w32_destroy_fringe_bitmap): Likewise.

2004-09-29  Kim F. Storm  <storm@cua.dk>

	* fringe.c: Simplify last change.
Kim F. Storm's avatar
Kim F. Storm committed
301 302 303 304 305 306 307 308 309 310 311 312
	(lookup_fringe_bitmap): New function.
	(valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
	(Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
	Keep standard bitmaps in Vfringe_bitmaps.
	(Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
	(Fset_fringe_bitmap_face): Likewise.

	* dispextern.h (lookup_fringe_bitmap): Add prototype.
	(valid_fringe_bitmap_p): Remove prototype.

	* xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.

Kim F. Storm's avatar
Kim F. Storm committed
313 314
2004-09-29  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
315 316 317
	* fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
	(w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).

Kim F. Storm's avatar
Kim F. Storm committed
318 319 320 321 322 323 324 325
	* dispextern.h (valid_fringe_bitmap_p): Fix prototype.

	* fringe.c (Vfringe_bitmaps): New variable.
	(syms_of_fringe): DEFVAR_LISP it.
	(valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
	Change arg to Lisp_Object and fail if not an integer.
	(get_fringe_bitmap_name, resolve_fringe_bitmap)
	(destroy_fringe_bitmap): New functions.
Stefan Monnier's avatar
Stefan Monnier committed
326 327
	(Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
	Use destroy_fringe_bitmap.  Remove symbol from Vfringe_bitmaps and
Kim F. Storm's avatar
Kim F. Storm committed
328 329 330 331 332 333 334 335 336 337 338 339
	clear its fringe property.
	(init_fringe_bitmap): Use destroy_fringe_bitmap instead of
	Fdestroy_fringe_bitmap.
	(Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
	bitmap symbol; remove WHICH arg.  Add symbol to Vfringe_bitmaps
	and set fringe property.  Signal error if no free slots.
	(Fset_fringe_bitmap_face): Change arg to bitmap symbol.
	(Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.

	* xdisp.c (handle_single_display_prop): Fringe bitmaps are now
	symbols with a fringe property.

Kim F. Storm's avatar
Kim F. Storm committed
340 341 342 343 344 345 346 347 348 349
2004-09-27  Kim F. Storm  <storm@cua.dk>

	* buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
	Doc fix.  Format may now be a symbol or alist, not a cons.

	* fringe.c (update_window_fringes): Handle new formats of
	indicate-buffer-boundaries (symbol or alist).  No longer
	allow a simple cons.
	(Ffringe_bitmaps_at_pos): Use nil value for no bitmap.

Jan Djärv's avatar
Jan Djärv committed
350 351
2004-09-25  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Stefan Monnier's avatar
Stefan Monnier committed
352
	* config.in: Rebuild.
Jan Djärv's avatar
Jan Djärv committed
353

Jan Djärv's avatar
Jan Djärv committed
354 355 356 357
2004-09-24  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* config.in: Rebuild.

Kim F. Storm's avatar
Typo.  
Kim F. Storm committed
358
	* Makefile.in: Run setarch i386 ./temacs if exec-shield  is present.
Jan Djärv's avatar
Jan Djärv committed
359

360 361 362 363
2004-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xterm.c (x_term_init): Work around a bug in some X servers.

364 365
2004-09-18  Richard M. Stallman  <rms@gnu.org>

366 367
	* buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.

368 369 370 371
	* xdisp.c (try_window_reusing_current_matrix):
	Handle the case where we reach the old displayed text,
	out of sync with the old line boundary.

Stefan Monnier's avatar
Stefan Monnier committed
372
2004-09-14  Stefan Monnier  <monnier@iro.umontreal.ca>
373 374 375 376

	* fileio.c (Finsert_file_contents): Fix case of replacement in a
	narrowed buffer.

Kim F. Storm's avatar
Kim F. Storm committed
377 378
2004-09-14  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
379 380
	* puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.

Kim F. Storm's avatar
Kim F. Storm committed
381 382 383 384 385 386 387
	* xfaces.c (Qface_no_inherit): New var.
	(syms_of_xfaces): Intern and staticpro it.
	(Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
	(Finternal_copy_lisp_face, update_face_from_frame_parameter):
	Don't increment face_change_count when face has non-nil
	face-no-inherit property.

388 389
2004-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>

390 391 392
	* bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
	(Fbyte_code): Remove dead code after `wrong_type_argument'.

393
	* alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
Stefan Monnier's avatar
Stefan Monnier committed
394
	before doing the mark_stack_check_gcpros since they're not on the stack.
395

Kim F. Storm's avatar
Kim F. Storm committed
396 397 398 399 400 401
2004-09-12  Kim F. Storm  <storm@cua.dk>

	* editfns.c (Fformat): Handle format strings with multiple text
	properties.  Reverse text property list from the format string,
	so the positions are in increasing order.

402 403 404 405 406
2004-09-10  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xselect.c (x_reply_selection_request): XSync and UNBLOCK before
	x_uncatch_errors so that possible protocol errors are delivered.

407 408
2004-09-10  Eli Zaretskii  <eliz@gnu.org>

409 410 411 412
	* Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
	blockinput.h.
	(dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
	charset.h, and coding.h
Stefan Monnier's avatar
Stefan Monnier committed
413
	(w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
	(term.o): Depend on window.h and keymap.h.
	(abbrev.o): Depend on syntax.h.
	(callint.o): Depend on keymap.h.
	(casefiddle.o): Depend on charset.h and keymap.h.
	(category.o): Depend on keymap.h.
	(coding.o): Depend on dispextern.h.
	(cmds.o): Depend on keyboard.h and keymap.h.
	(dispnew.o): Depend on indent.h and intervals.h.
	(doc.o): Depend on keymap.h.
	(editfns.o): Depend on frame.h.
	(emacs.o): Depend on dispextern.h.
	(fileio.o): Don't depend on ccl.h.
	(filelock.o): Depend on charset.h and coding.h.
	(frame.o): Depend on w32term.h and macterm.h.
	(insdel.o): Depend on region-cache.h.
	(keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
	(minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
	(search.o): Depend on $(INTERVALS_SRC).
	(syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
	(window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
	xterm.h, w32term.h, and macterm.h.
	(xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
	w32term.h, and macterm.h.
	(xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
	region-cache.h, xterm.h, w32term.h, and macterm.h.
	(bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
	(data.o): Depend on frame.h.
	(fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
	(print.o): Depend on termchar.h and $(INTERVALS_SRC).
	(lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
	(intervals.o): Depend on keymap.h.

Stefan Monnier's avatar
Stefan Monnier committed
446 447
	* msdos.c (msdos_set_cursor_shape, IT_display_cursor):
	Add debugging print-out to termscript.
448

449 450 451 452
2004-09-09  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (decode_mode_spec): Use current buffer for most purposes.

453 454
2004-09-08  Richard M. Stallman  <rms@gnu.org>

455 456
	* window.c (Fset_window_buffer): Doc fix.

457 458
	* xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.

Juri Linkov's avatar
Juri Linkov committed
459 460 461 462 463 464
2004-09-08  Dan Nicolaescu  <dann@ics.uci.edu>

	* minibuf.c (history_delete_duplicates): New variable.
	(read_minibuf): Use it.
	(syms_of_minibuf): Create the corresponding lisp variable.

Kim F. Storm's avatar
Kim F. Storm committed
465 466 467 468 469
2004-09-08  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
	overlay just before point.

470 471 472
2004-09-07  Luc Teirlinck  <teirllm@auburn.edu>

	* buffer.h (struct buffer): Add auto_save_file_format field.
Stefan Monnier's avatar
Stefan Monnier committed
473 474
	* buffer.c (reset_buffer, init_buffer_once):
	Handle auto_save_file_format field.
475 476 477 478 479 480 481 482
	(syms_of_buffer): Add DEFVAR_PER_BUFFER for
	`buffer-auto-save-file-format'.
	* fileio.c: Delete declaration for removed Vauto_save_file_format.
	(build_annotations): Adapt to replacement of
	`auto-save-file-format' with the new buffer-local variable
	`buffer-auto-save-file-format'.
	(syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.

483 484 485 486
2004-09-07  Jason Rumney  <jasonr@gnu.org>

	* w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.

Stefan Monnier's avatar
Stefan Monnier committed
487 488
	* w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
	Handle Unicode menu titles.
489

Kim F. Storm's avatar
Kim F. Storm committed
490 491 492 493 494
2004-09-07  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (set_cursor_from_row): Fix last change.  Only use 'cursor'
	property from text property or overlay strings at point.

Stefan Monnier's avatar
Stefan Monnier committed
495
2004-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
496 497 498 499

	* xmenu.c (update_submenu_strings): YAILOM.
	(set_frame_menubar): Make sure last_i is initialized.

500 501
2004-09-03  Jason Rumney  <jasonr@gnu.org>

502
	* w32menu.c (_widget_value): Add lname and lkey.
503 504 505 506 507 508 509 510 511 512 513
	(digest_single_submenu): Set lname and lkey in widget_value
	instead of name and key.
	(update_submenu_strings): New function.
	(set_frame_menubar): Remove call to inhibit_garbage_collection,
	call update_submenu_strings.

	* w32menu.c (globals_of_w32menu): Check for Unicode API.
	(digest_single_submenu, w32_menu_show): Encode menu strings as
	UTF-8 if Unicode API is available.
	(utf8to16): New function.
	(add_menu_item): Use it when calling Unicode API.
514

Kim F. Storm's avatar
Kim F. Storm committed
515 516 517 518 519 520
2004-09-03  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
	in overlay or text-property strings; set cursor on corresponding
	glyph rather than at end of the string.

521
2004-09-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
Kim F. Storm's avatar
Kim F. Storm committed
522

523
	* macfns.c (x_real_positions): Save the current window port and
524 525 526 527
	set a new one before obtaining the global coordinate.
	Use FRAME_MAC_WINDOW.
	(x_set_name, x_set_title): Encode title to UTF8.
	Use SetWindowTitleWithCFString.
528 529
	(Fx_server_version): Get correct OS version.

530 531
	* macmenu.c (add_menu_item): Remove unused variable `i'.
	Don't let separator items destroy refence constants of other menu items.
532 533 534 535 536 537 538 539 540 541

	* macterm.c (x_update_end): Move SetPortWindowPort to inside
	BLOCK_INPUT.
	(x_set_offset): Use FRAME_MAC_WINDOW.

	* xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
	nontext_cursor if it is on a scroll bar.

	* s/darwin.h (LIBS_CARBON): New define to specify libraries for
	Carbon support.
542 543
	(LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
	Use LIBS_CARBON.
544

545 546 547 548 549 550
2004-09-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c (x_set_name_internal): New function.  Check if we shall call
	xfree before ENCODE_UTF_8.
	(x_set_name, x_set_title): Call x_set_name_internal.

Jason Rumney's avatar
Jason Rumney committed
551 552 553 554 555
2004-08-31  NAKAMURA Toshikazu  <nr-tkz@nifty.com>  (tiny change)

	* w32fns.c (w32_load_font): If a BDF font is already loaded, do not
	reload it.

556 557
2004-08-30  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

558
	* macmenu.c (_widget_value): Add lname and lkey.
559 560 561 562 563 564
	(single_submenu): Set lname and lkey in widget_value
	instead of name and key.
	(update_submenu_strings): New function.
	(set_frame_menubar): Remove call to inhibit_garbage_collection,
	call update_submenu_strings.

565 566 567 568
	* xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
	instead of name and key.
	(update_submenu_strings): New function.
	(set_frame_menubar): Remove call to inhibit_garbage_collection,
569
	call update_submenu_strings.
570 571 572

	* gtkutil.h (_widget_value): Added lname and lkey.

573 574 575 576 577
2004-08-30  Steven Tamm  <steventamm@mac.com>

	* macmenu.c (mac_menu_show): Remove shadowing of menu variable
	by using different names for inner loop variables.

578 579
2004-08-27  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

580 581 582
	* xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
	from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.

583 584 585
	* gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
	tool bar items is 0.

586 587 588 589 590 591 592 593 594
2004-08-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
	strings in menu items.
	(single_submenu): Use ENCODE_MENU_STRING
	(mac_menu_show): Use ENCODE_MENU_STRING.  Reset grabbed because
	button release isn't passed to event loop
	(add_menu_item): Use SetMenuItemWithCFString

595 596 597 598 599 600
2004-08-26  Steven Tamm  <steventamm@mac.com>

	* fileio.c (Fread_file_name): Call x_file_dialog on carbon on
	tool-bar/menu click
	* macfns.c (Fx_file_dialog): Implemented using NavServices

601 602
2004-08-24  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

603 604
	* xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.

605 606 607 608
	* xfns.c (x_window_to_frame, x_any_window_to_frame)
	(x_non_menubar_window_to_frame, x_menubar_window_to_frame)
	(x_top_window_to_frame): Return 0 if wdesc is None.

609 610 611 612 613 614 615 616
2004-08-22  Richard M. Stallman  <rms@gnu.org>

	* process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
	HAVE_TERMIOS]: If there's no char for this signal, drop through
	and use system calls.

	* bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.

Kim F. Storm's avatar
Kim F. Storm committed
617 618 619 620 621 622 623 624 625
2004-08-20  Kim F. Storm  <storm@cua.dk>

	* process.c (wait_reading_process_output): Rename from
	wait_reading_process_input.  All uses changed.
	(wait_reading_process_output_1): Rename from
	wait_reading_process_input_1.  All uses changed.

	* dispnew.c (Fsleep_for): Remove obsolete code.

Kenichi Handa's avatar
Kenichi Handa committed
626 627 628 629
2004-08-20  Kenichi Handa  <handa@m17n.org>

	* syntax.c (skip_chars): Fix for unibyte case.

Stefan Monnier's avatar
Stefan Monnier committed
630 631 632 633 634
2004-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (char_quoted): Mixup byte/char pos.
	(back_comment): Fixup globals in all cases.

635 636 637 638 639
2004-08-19  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
	passing it to gtk_window_set_title.

Kim F. Storm's avatar
Kim F. Storm committed
640 641
2004-08-19  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
642 643 644 645 646
	* process.c (wait_reading_process_input): Clean up.
	Add wait_for_cell, wait_proc, and just_wait_proc args
	to avoid overloading `read_kbd' and `do_display' args.
	Change read_kbd arg to int.  All callers changed.

Kim F. Storm's avatar
Kim F. Storm committed
647 648 649 650
	* process.c (process_send_signal): Use CDISABLE.

	* sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.

Kim F. Storm's avatar
Kim F. Storm committed
651 652 653 654 655 656 657 658
2004-08-18  Kim F. Storm  <storm@cua.dk>

	* process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
	forward to wait_reading_process_input via DO_DISPLAY arg.
	(wait_reading_process_input): If DO_DISPLAY < 0 for a process
	object, only process output from that process; also inhibit
	running timers if DO_DISPLAY==-2.

Kim F. Storm's avatar
Kim F. Storm committed
659 660 661 662 663
2004-08-17  Kim F. Storm  <storm@cua.dk>

	* process.c (process_send_signal): Fix last change--use
	_POSIX_VDISABLE instead of CVDISABLE when available.

664 665 666 667 668 669 670
2004-08-16  Richard M. Stallman  <rms@gnu.org>

	* sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
	Set VQUIT and VINTR chars to the standard ones if they are unset.
	[AIX]: Don't do that here.  And don't force VINTR to standard
	when SIGNALS_VIA_CHARACTERS.

Kim F. Storm's avatar
Kim F. Storm committed
671
	* process.c (process_send_signal)
672 673 674 675 676
	[SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]:	Clean up.
	Do nothing if the character is CVDISABLE.

	* xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.

Kim F. Storm's avatar
Kim F. Storm committed
677
	* intervals.c (move_if_not_intangible):
678 679
	Force POSITION to be between BEGV and ZV.

680 681 682 683 684 685 686 687
2004-08-14  John Paul Wallington  <jpw@gnu.org>

	* buffer.c (Frestore_buffer_modified_p): Doc fix.

	* fileio.c (Fread_file_name): Doc fix.

	* minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.

Luc Teirlinck's avatar
Luc Teirlinck committed
688 689 690 691
2004-08-09  Luc Teirlinck  <teirllm@auburn.edu>

	* keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.

Luc Teirlinck's avatar
Luc Teirlinck committed
692 693 694
2004-08-08  Luc Teirlinck  <teirllm@auburn.edu>

	* keyboard.c: Declare Qdisabled_command_function instead of
Luc Teirlinck's avatar
Luc Teirlinck committed
695
	Qdisabled_command_hook.
Luc Teirlinck's avatar
Luc Teirlinck committed
696
	(Fcommand_execute): Use Qdisabled_command_function instead of
Luc Teirlinck's avatar
Luc Teirlinck committed
697
	Qdisabled_command_hook.
Luc Teirlinck's avatar
Luc Teirlinck committed
698 699
	(syms_of_keyboard): Ditto.

Luc Teirlinck's avatar
Luc Teirlinck committed
700 701 702 703 704
2004-08-07  Luc Teirlinck  <teirllm@auburn.edu>

	* keymap.c (Flocal_key_binding, Fglobal_key_binding)
	(syms_of_keymap) <key-translation-map>: Doc fixes.

705 706
2004-08-07  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
707 708
	* window.c (window_list_1): YAILOM.

709 710
	* fileio.c (make_temp_name): Handle multibyte prefixes.

711 712 713 714 715
2004-08-06  Luc Teirlinck  <teirllm@auburn.edu>

	* keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
	Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
716 717 718 719 720
2004-08-03  Kenichi Handa  <handa@m17n.org>

	* coding.c (decode_coding_string): Adjust coding->consumed, and
	etc. with shrinked_bytes.

Kim F. Storm's avatar
Kim F. Storm committed
721 722 723 724 725 726
2004-08-03  Kim F. Storm  <storm@cua.dk>

	* indent.c (compute_motion): Fix check for full width window
	in non-window case.  Do not count left truncation glyph on
	window systems.

Luc Teirlinck's avatar
Luc Teirlinck committed
727 728 729 730
2004-08-02  Luc Teirlinck  <teirllm@auburn.edu>

	* data.c (Finteractive_form): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
731 732 733 734 735 736 737 738 739 740 741 742
2004-08-02  Kim F. Storm  <storm@cua.dk>

	* indent.c (compute_motion): Use actual window width if WIDTH is -1,
	properly accounting for continuation glyph on non-window systems.
	(Fcompute_motion): Use actual window width if WIDTH is nil, and
	actual window width/height if TOPOS is nil, properly accounting for
	continuation glyphs on non-window systems, and optional header lines.
	(vmotion): Let compute_motion calculate actual window width.

	* window.c (window_scroll_line_based): Let compute_motion
	calculate actual window width.

Kim F. Storm's avatar
Kim F. Storm committed
743 744 745 746 747
2004-08-02  Kim F. Storm  <storm@cua.dk>

	* process.c (read_process_output): Use whole read buffer.
	Don't trigger adaptive read buffering on errors.

Luc Teirlinck's avatar
Luc Teirlinck committed
748 749 750 751 752 753 754 755
2004-07-31  Luc Teirlinck  <teirllm@auburn.edu>

	* keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.

	* keyboard.c (syms_of_keyboard) <disable-point-adjustment>:  Doc fix.

	* callint.c (Fcall_interactively): Doc fix.

756 757 758 759
2004-07-30  Richard M. Stallman  <rms@gnu.org>

	* abbrev.c (Fexpand_abbrev): Undo previous change.

760 761 762 763
2004-07-30  Kim F. Storm  <storm@cua.dk>

	* editfns.c (Fformat): Allocate extra (dummy) element in info.

Luc Teirlinck's avatar
Luc Teirlinck committed
764 765 766 767
2004-07-28  Luc Teirlinck  <teirllm@auburn.edu>

	* eval.c (Fdefvar, Fdefconst): Doc fixes.

Kim F. Storm's avatar
Kim F. Storm committed
768 769 770 771 772 773
2004-07-27  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
	we have ensured that the glyph fits on the current line (or returned
	MOVE_LINE_CONTINUED otherwise).

Kim F. Storm's avatar
Kim F. Storm committed
774 775 776 777 778 779
2004-07-26  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
	is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
	if target position is at end of display line but char is not a newline.

780 781
2004-07-25  Richard M. Stallman  <rms@gnu.org>

782 783 784 785 786 787
	* window.c (coordinates_in_window): Return ON_SCROLL_BAR
	instead of ON_VERTICAL_BORDER, when on scroll bar.
	(Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.

	* dispextern.h (enum window_part): Add ON_SCROLL_BAR.

Kim F. Storm's avatar
Kim F. Storm committed
788
	* window.c (Fcoordinates_in_window_p):
789 790 791 792
	Take account of FRAME_INTERNAL_BORDER_WIDTH.

	* alloc.c (check_cons_list): New function (contents commented out).

Luc Teirlinck's avatar
Luc Teirlinck committed
793 794 795 796 797 798 799
2004-07-24  Luc Teirlinck  <teirllm@auburn.edu>

	* xfaces.c (Fcolor_supported_p): Doc fix.

	* frame.c (Fselect_frame, Fset_frame_selected_window)
	(Fframe_visible_p, Fraise_frame): Doc fixes.

Luc Teirlinck's avatar
Luc Teirlinck committed
800 801
2004-07-24  Richard M. Stallman  <rms@gnu.org>

802 803 804 805 806 807 808 809 810
	* keyboard.h (not_single_kboard_state): Declared.

	* fileio.c (Fwrite_region): Doc fix.

	* window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.

	* abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
	only when a real abbrev is present.

Luc Teirlinck's avatar
Luc Teirlinck committed
811 812 813
	* xfns.c (x_icon_verify): New function.
	(Fx_create_frame): Use it.

Kim F. Storm's avatar
Kim F. Storm committed
814 815 816 817
2004-07-22  Barry Fishman <barry_fishman@att.net>  (tiny change)

	* s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.

Kim F. Storm's avatar
Kim F. Storm committed
818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836
2004-07-21  Kim F. Storm  <storm@cua.dk>

	* window.h (struct glyph_matrix): New members nrows_scale_factor
	and ncols_scale_factor.

	* window.c (make_window): Initialize nrows_scale_factor and
	ncols_scale_factor members.

	* dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
	(allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
	(required_matrix_height): Apply nrows_scale_factor.
	(required_matrix_width): Apply ncols_scale_factor.

	* xdisp.c (display_line): Increment nrows_scale_factor and set
	fonts_changed_p if past last allocated row.
	(append_glyph, append_composite_glyph, produce_image_glyph)
	(append_stretch_glyph): Increment ncols_scale_factor and set
	fonts_changed_p if current area is full.

837 838 839 840
2004-07-21  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.

Luc Teirlinck's avatar
Luc Teirlinck committed
841 842 843 844 845 846 847 848 849
2004-07-19  Luc Teirlinck  <teirllm@auburn.edu>

	* window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
	(Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
	(Fset_window_start, Fscroll_up, Fscroll_down)
	(Fother_window_for_scrolling, Fscroll_other_window)
	(Fsave_window_excursion, Fset_window_vscroll)
	(syms_of_window) <window-size-fixed>: Doc fixes.

850 851 852 853 854
2004-07-19  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>  (tiny change)

	* w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
	ENCODE_SYSTEM for filenames.

855 856 857 858 859 860 861 862 863
2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (sys_select): Block input around call to
	ReceiveNextEvent to prevent breakage.  Correctly handle
	blocking on event queue only by calling ReceiveNextEvent
	instead of select (since GUI events aren't on an fd).
	(sys_read): Remove function
	* sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON

864 865 866
2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (sys_select): Redo sys_select to use alarm-based
Luc Teirlinck's avatar
Luc Teirlinck committed
867
	polling instead of 1 sec timeouts (like solaris).
868

Luc Teirlinck's avatar
Luc Teirlinck committed
869
	* macterm.c (x_make_frame_visible): Comment in polling on
870 871 872 873 874 875 876 877 878 879 880 881
	frame creation.

	* keyboard.c: Undef SIGIO on Carbon

	* atimer.c (alarm_signal_handler): Call alarm handlers after
	scheduling.

	* eval.c (Feval): Remove quit_char test

	* process.c (wait_reading_process_input): Remove clearing
	stdin for select call on process input.

882 883
2004-07-18  Luc Teirlinck  <teirllm@auburn.edu>

Luc Teirlinck's avatar
Luc Teirlinck committed
884 885
	* xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
	capitalization error in docstring.
886

887 888 889 890 891
2004-07-17  Juanma Barranquero  <lektu@terra.es>

	* keyboard.c (not_single_kboard_state): Do nothing unless
	MULTI_KBOARD is defined.

892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908
2004-07-17  Richard M. Stallman  <rms@gnu.org>

	* window.c (coordinates_in_window): Inside the window but outside
	its box to the L or R, return ON_VERTICAL_BORDER.
	(window_list_1): Rotate the list to start with WINDOW.

	* print.c (print_preprocess): Test for print_depth at limit
	before entering in being_printed.

	* keyboard.c (not_single_kboard_state): New function.
	(stuff_buffered_input): Now no-op only if no SIGTSTP.

	* frame.c (Fdelete_frame): If we're in single_bboard_state on
	this kboard, and we delete its last frame, go to any_kboard_state.

	* buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.

Jason Rumney's avatar
Jason Rumney committed
909 910 911 912 913
2004-07-15  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>  (tiny change)

	* w32fns.c (Fx_file_dialog): Encode strings in system coding
	system before passing them to OS functions for display.

David Kastrup's avatar
David Kastrup committed
914 915
2004-07-15  David Kastrup  <dak@gnu.org>

Kim F. Storm's avatar
Kim F. Storm committed
916 917
	* search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
	Apparently fixes an abort condition.
David Kastrup's avatar
David Kastrup committed
918

Luc Teirlinck's avatar
Luc Teirlinck committed
919 920 921 922 923
2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>

	* fileio.c (Fvisited_file_modtime): Return a list of two integers,
	instead of a cons.

924 925 926 927 928
2004-07-14  K,Ba(Broly L,Bu(Brentey  <lorentey@elte.hu>

	* keyboard.c (echo_dash): Do nothing if there already is a dash
	at the end of the echo string.

Kim F. Storm's avatar
Kim F. Storm committed
929 930 931 932 933
2004-07-12  Kim F. Storm  <storm@cua.dk>

	* alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
	if GC_MARK_STACK.

Luc Teirlinck's avatar
Luc Teirlinck committed
934 935
2004-07-10  Luc Teirlinck  <teirllm@auburn.edu>

Luc Teirlinck's avatar
Luc Teirlinck committed
936 937
	* buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.

Luc Teirlinck's avatar
Luc Teirlinck committed
938 939 940 941 942 943
	* window.c (Fwindow_buffer, Fother_window,  Fget_lru_window)
	(Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
	(Freplace_buffer_in_windows, Fset_window_buffer)
	(Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
	(syms_of_window): Expand docstring of `display-buffer-function'.

944 945 946 947 948 949
2004-07-09  Luc Teirlinck  <teirllm@auburn.edu>

	* editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
	(Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
	that time values of the type (HIGH . LOW) are considered obsolete.

950 951
2004-07-06  Luc Teirlinck  <teirllm@auburn.edu>

952 953 954
	* keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
	docstring.

Luc Teirlinck's avatar
Luc Teirlinck committed
955
	* fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
956

957 958 959 960
2004-07-06  John Paul Wallington  <jpw@gnu.org>

	* eval.c (Fdefmacro): Signal an error if NAME is not a symbol.

961 962
	* fns.c (Fclear_string): Signal an error if STRING is not a string.

963 964 965 966 967
2004-07-05  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
	instead of CGMainDisplayID (only in OSX 10.2 and later).

968 969 970 971 972 973
2004-07-04  John Paul Wallington  <jpw@gnu.org>

	* fileio.c (read_file_name_completion_ignore_case): New variable.
	(syms_of_fileio): Declare and initialise it.
	(Fread_file_name): Bind `completion-ignore-case' to respect it.

Eli Zaretskii's avatar
Eli Zaretskii committed
974 975 976 977 978
2004-07-03  Eli Zaretskii  <eliz@gnu.org>

	* msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
	for event.x and event.y.

Kenichi Handa's avatar
Kenichi Handa committed
979 980 981 982 983
2004-07-01  Kenichi Handa  <handa@m17n.org>

	* w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
	after getting a new string by pre-write-conversion.

Stefan Monnier's avatar
Stefan Monnier committed
984
2004-06-30  Stefan Monnier  <monnier@iro.umontreal.ca>
985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001

	* xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
	(x_calc_absolute_position): Remove unused var `child'.

	* xfaces.c (x_supports_face_attributes_p)
	(Fdisplay_supports_face_attributes_p): YAILOM.
	(tty_supports_face_attributes_p): Remove unused var `i'.

	* syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
	back_unibyte_ok.

	* search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.

	* fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.

	* Makefile.in (${etc}DOC): Fix file name of make-docfile.

Andreas Schwab's avatar
Andreas Schwab committed
1002 1003 1004 1005 1006 1007 1008 1009 1010 1011
2004-06-30  Andreas Schwab  <schwab@suse.de>

	* image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
	(Finit_image_library): Pass LIBRARIES through to
	CHECK_LIB_AVAILABLE.  Declare parameters.  Doc fix.
	(lookup_image_type): Pass Qnil as second argument to
	Finit_image_library.

	* lisp.h: Declare Finit_image_library.

1012
2004-06-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
Stefan Monnier's avatar
Stefan Monnier committed
1013

Andreas Schwab's avatar
Andreas Schwab committed
1014 1015 1016 1017 1018 1019
	* macterm.c (do_window_activate, do_window_deactivate): Remove.
	(XTread_socket): Send mouse button events to the toolbox
	dispatcher even when the mouse is grabbed.  Don't process window
	activate events for non-Emacs windows.	Replace function calls to
	do_window_activate and do_window_deactivate with their contents.
	Reset mouse grabbing status when a window is deactivated.
1020

Steven Tamm's avatar
Steven Tamm committed
1021 1022 1023 1024 1025 1026
2004-06-29  Steven Tamm  <steventamm@mac.com>

	* macterm.c (mac_get_emulated_btn)
	(mac_event_to_emacs_modifiers): Fix emulated mouse button
	support to correctly mask out modifiers.

1027 1028 1029 1030 1031
2004-06-29  David Kastrup  <dak@gnu.org>

	* search.c (Fset_match_data): Allow buffer before end of list
	which can happen if set-match-data is using a pre-consed list.

Steven Tamm's avatar
Steven Tamm committed
1032
2004-06-28  Steven Tamm  <steventamm@mac.com>
1033 1034 1035 1036

	* macterm.c (XTread_socket): Correctly set the frame position
	after the window is moved.

1037 1038 1039 1040
2004-06-28  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
	gpix and gmask just before return to avoid memory leak.
1041 1042
	(xg_get_image_for_pixmap): Add workaround for monochrome displays
	so insensitive and activated icons look ok.
1043

1044 1045 1046 1047 1048 1049 1050
2004-06-27  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (file_dialog_callback): Disable edit control if set
	to directories only on CDN_INITDONE message.
	(Fx_file_dialog): Default to directories only when prompt starts
	with "Dired".

1051 1052 1053 1054 1055 1056 1057 1058 1059 1060
2004-06-25  Kim F. Storm  <storm@cua.dk>

	* alloc.c (allocate_misc): Update total_free_markers.
	(free_misc): New function.
	(safe_alloca_unwind, free_marker): Use it.

	* lisp.h (free_misc): Add prototype.

	* fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.

1061 1062 1063 1064 1065
2004-06-24  Richard M. Stallman  <rms@gnu.org>

	* emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
	(syms_of_emacs): Lisp variables deleted.

1066 1067
2004-06-23  David Kastrup  <dak@gnu.org>

David Kastrup's avatar
David Kastrup committed
1068 1069 1070 1071 1072 1073
	* search.c (Freplace_match): Adjust the match-data more thoroughly
	when replacing strings in the buffer.
	(Fmatch_data): When INTEGERS is non-nil and the last match was in
	a buffer, add the buffer as last element to the match data.
	(Fset_match_data): If an additional element of the match-data is a
	buffer, restore it to last_thing_searched.
Stefan Monnier's avatar
Stefan Monnier committed
1074
	(save_search_regs): Save last_thing_searched as part of the match data.
1075 1076
	(restore_match_data): Restore it again.

Luc Teirlinck's avatar
Luc Teirlinck committed
1077 1078 1079 1080 1081
2004-06-23  Luc Teirlinck  <teirllm@auburn.edu>

	* keymap.c (Ftext_char_description): Doc fix.
	* doc.c (Fsnarf_documentation): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1082 1083
2004-06-22  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1084 1085
	* fns.c (Fmapcar, Fmapconcat): GCPRO the args array.

Kim F. Storm's avatar
Kim F. Storm committed
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
	* lisp.h (struct Lisp_Save_Value): New member dogc.
	(SAFE_ALLOCA_LISP): Change second arg to number of elements.
	Set dogc member in Lisp_Save_Value object so it will be GC'ed.
	(SAFE_FREE_LISP): New macro.

	* alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
	(make_save_value): Init new dogc member.
	(mark_object): Mark Lisp_Save_Value pointer array if dogc is set.

	* fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
	SAFE_FREE_LISP macros.

Kim F. Storm's avatar
Kim F. Storm committed
1098 1099 1100 1101 1102 1103 1104 1105
2004-06-22  Kim F. Storm  <storm@cua.dk>

	* lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
	Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
	in that memory area are unknown to GC.  Add comments.

	* fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.

Kim F. Storm's avatar
Kim F. Storm committed
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134
2004-06-21  Kim F. Storm  <storm@cua.dk>

	* lisp.h (MAX_ALLOCA): Define here.
	(safe_alloca_unwind): Add prototype.
	(USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.

	* alloc.c (safe_alloca_unwind): New function.

	* casefiddle.c (casify_object): Use SAFE_ALLOCA.

	* charset.c (Fstring): Use SAFE_ALLOCA.

	* coding.c (MAX_ALLOCA): Remove define.

	* data.c (MAX_ALLOCA): Remove define.
	(Faset): Use SAFE_ALLOCA.

	* editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.

	* fns.c (string_make_multibyte, string_to_multibyte)
	(string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
	(MAX_ALLOCA): Remove define.
	(Fbase64_encode_region, Fbase64_encode_string)
	(Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
	(Fbase64_encode_region, Fbase64_encode_string): Fix potential
	memory leak if encoding fails.

	* xdisp.c (add_to_log): Use SAFE_ALLOCA.

1135 1136 1137 1138
2004-06-21  Eli Zaretskii  <eliz@gnu.org>

	* print.c (Fwith_output_to_temp_buffer): Doc fix.

1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151
2004-06-20  Richard M. Stallman  <rms@gnu.org>

	* xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.

	* search.c (match_limit): Cleaner err msg when no match data available.

	* window.c (syms_of_window): Doc fix.

	* keyboard.c (command_loop_1): Handle values `only' and `identity'
	for Vtransient_mark_mode.

	* buffer.c (syms_of_buffer): Doc fix.

1152 1153 1154 1155 1156 1157 1158 1159
2004-06-21  David Kastrup  <dak@gnu.org>

	* minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
	and unbinding of `case-fold-search' according to
	`completion-ignore-case' around calls of string-match and
	predicates, respectively.  Should give satisfactory performance
	in all relevant cases.

1160 1161
2004-06-17  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

1162 1163 1164
	* xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
	clip_x/y_origin.

1165 1166
	* fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.

1167 1168 1169 1170 1171
	* macfns.c (Fx_display_color_cells): Do not limit return value to 256.

	* macterm.c (mac_initialize_display_info): Initialize n_planes correctly
	on Mac OSX.

Luc Teirlinck's avatar
Luc Teirlinck committed
1172 1173 1174 1175
2004-06-16  Luc Teirlinck  <teirllm@auburn.edu>

	* buffer.c (syms_of_buffer): Clarify `fill-column' docstring.

Kim F. Storm's avatar
Kim F. Storm committed
1176 1177 1178 1179
2004-06-16  Kim F. Storm  <storm@cua.dk>

	* dispextern.h (Vimage_types): Remove extern.

1180 1181 1182 1183
2004-06-16  Miles Bader  <miles@gnu.org>

	* image.c (lookup_image_type): Initialize image type if necessary.

Kim F. Storm's avatar
Kim F. Storm committed
1184 1185
2004-06-15  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1186 1187 1188 1189 1190 1191 1192 1193
	* xdisp.c (try_cursor_movement): Exclude header line from scroll
	margin at top of window.
	(try_window_reusing_current_matrix): Calculate proper cursor position
	after scrolling up with non-zero scroll margin, as the old cursor
	position corresponds to value of PT before executing this command.
	(try_window_id): Consider scroll margin at bottom of window too;
	otherwise we fail to scroll when hl-line-mode is enabled.

Kim F. Storm's avatar
Kim F. Storm committed
1194 1195 1196
	* syntax.c (skip_chars): Only recognize [:class:] when it has the
	proper format and class is a lower-case word.

1197 1198 1199
2004-06-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_image_for_pixmap): New function.
Stefan Monnier's avatar
Stefan Monnier committed
1200
	(xg_get_gdk_pixmap_and_mask): Remove.
1201 1202
	(update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
	xg_get_gdk_pixmap_and_mask.
Kim F. Storm's avatar
Kim F. Storm committed
1203

1204 1205
	* xterm.h (struct x_display_info): Typo in comment fixed.

Juanma Barranquero's avatar
Juanma Barranquero committed
1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220
2004-06-14  Juanma Barranquero  <lektu@terra.es>

	* dispextern.h (Vimage_types): Make it conditional on
	HAVE_WINDOW_SYSTEM.

	* image.c (Vimage_types): Move from xdisp.c.
	(Vimage_type_cache): New variable.
	(define_image_type): New argument indicating whether an image
	library was loaded; cache loaded status and return t on success,
	nil otherwise.
	(CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
	(w32_delayed_load): New function to load an image library from a
	list of possible filenames.
	(init_xpm_functions, init_png_functions, init_jpeg_functions)
	(init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
Stefan Monnier's avatar
Stefan Monnier committed
1221
	(CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
Juanma Barranquero's avatar
Juanma Barranquero committed
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232
	(Finit_image_library): New function, extracted from `init_image'.
	Try to initialize an image library on demand and cache whether we
	were successful or not.
	(syms_of_image): Initialize `Vimage_types' and
	`Vimage_type_cache'.  Add recognized image types to Vimage_types.
	Export `init-image-library'.
	(init_image): Remove initialization of all image types, except xbm
	and pbm.

	* xdisp.c (Vimage_types): Delete (moved to image.c).

Andreas Schwab's avatar
Andreas Schwab committed
1233 1234 1235 1236 1237
2004-06-14  Andreas Schwab  <schwab@suse.de>

	* minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
	Avoid calling specbind when completion-regexp-list is empty.

1238 1239 1240 1241 1242
2004-06-13  Richard M. Stallman  <rms@gnu.org>

	* regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
	(re_wctype, re_iswctype, re_wctype_to_bit):
	Non-function definitions moved here from regex.c.
Juanma Barranquero's avatar
Juanma Barranquero committed
1243

1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265
	* regex.c (re_wctype, re_iswctype): Function defs longer static.
	(CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
	(re_wctype, re_iswctype, re_wctype_to_bit):
	Non-function definitions moved to regex.h.

	* window.c (Fselect_window): Doc fix.

	* syntax.c: Include regex.h.
	(skip_chars): New arg HANDLE_ISO_CLASSES.  Callers changed.
	If requested, make a list of classes, then check the scanned
	chars for membership in them.
	(in_classes): New function.
	Doc fix.

	* keyboard.c (cmd_error): Don't call any_kboard_state
	if inside a recursive edit level.

2004-06-13  Lorentey K,Aa(Broly  <lorentey@elte.hu>

	* keyboard.c (command_loop): Call any_kboard_state before
	command_loop_2 when at top level.

1266 1267
2004-06-13  Andreas Schwab  <schwab@suse.de>

1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285
	* print.c (print_object): Always use %ld for printing EMACS_INT.

	* keyboard.c (cancel_hourglass_unwind): Return a value.
	(modify_event_symbol): Always use %ld for printing EMACS_INT.
	(Fexecute_extended_command): Likewise.

	* syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
	avoid clashes.
	(SYNTAX): Likewise.
	(SYNTAX_WITH_FLAGS): Likewise.
	(SYNTAX_MATCH): Likewise.

	* syntax.c (char_quoted): Avoid warning about undefined operation.
	(find_defun_start): Likewise.
	(scan_lists): Likewise.
	(INC_FROM): Likewise.
	(scan_sexps_forward): Likewise.

Andreas Schwab's avatar
Andreas Schwab committed
1286 1287
	* image.c: Include <ctype.h>.

1288 1289
	* xfaces.c (face_attr_equal_p): Declare parameters.

Kenichi Handa's avatar
Kenichi Handa committed
1290 1291 1292 1293
2004-06-13  Kenichi Handa  <handa@m17n.org>

	* ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.

Eli Zaretskii's avatar
Eli Zaretskii committed
1294 1295 1296 1297
2004-06-12  Matthew Mundell  <matt@mundell.ukfsn.org>

	* eval.c (Fdefun): Signal an error if NAME is not a symbol.

Kenichi Handa's avatar
Kenichi Handa committed
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312
2004-06-12  Kenichi Handa  <handa@m17n.org>

	* ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
	ccl_prog_stack_struct and update it.
	(CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
	(CCL_READ_CHAR): Get instruction counter from eof_ic, not from
	ccl->eof_ic on EOF.
	(ccl_debug_hook): New function.
	(struct ccl_prog_stack): New member eof_ic.
	(ccl_driver): Handle EOF in subrountine call correctly.

2004-06-11  Kenichi Handa  <handa@m17n.org>

	* coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.

Kim F. Storm's avatar
Kim F. Storm committed
1313 1314 1315 1316
2004-06-11  Kim F. Storm  <storm@cua.dk>

	* emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.

Juanma Barranquero's avatar
Juanma Barranquero committed
1317 1318 1319 1320
2004-06-11  Juanma Barranquero  <lektu@terra.es>

	* keyboard.c (Fposn_at_point): Doc fix.

1321 1322 1323 1324 1325 1326
2004-06-11  David Kastrup  <dak@gnu.org>

	* search.c (match_limit): Don't flag an error if match-data
	exceeding the allocated search_regs.num_regs gets requested, just
	return Qnil.

1327 1328 1329 1330
2004-06-08  Miles Bader  <miles@gnu.org>

	* xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.

Juanma Barranquero's avatar
Juanma Barranquero committed
1331 1332 1333 1334 1335 1336
2004-06-07  Juanma Barranquero  <lektu@terra.es>

	* editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
	(Fcurrent_time_string, Fcurrent_time_zone)
	(Finsert_buffer_substring, Ftranspose_regions): Doc fixes.

1337 1338
2004-06-07  Miles Bader  <miles@gnu.org>

Kim F. Storm's avatar
Typo.  
Kim F. Storm committed
1339
	* xfaces.c (struct named_merge_point): New type.
1340 1341 1342 1343 1344
	(push_named_merge_point): New function.
	(merge_named_face): New function.
	(merge_face_ref, face_at_buffer_position, face_at_string_position):
	Use `merge_named_face'.
	(merge_face_inheritance): Function removed.
Stefan Monnier's avatar
Stefan Monnier committed
1345
	(merge_face_ref): Rename from `merge_face_vector_with_property'.
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356
	Add new `err_msgs' and `named_merge_points' args.  Return error
	status.  Only print error messages if ERR_MSGS is true.  Don't try to
	do :inherit attribute validation.
	(merge_face_heights): Handle `unspecified' in both directions.
	(merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
	Call `merge_face_ref' instead of `merge_face_inheritance'.
	(Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
	(compute_char_face, face_at_buffer_position)
	(face_at_string_position): Call `merge_face_ref' instead of
	`merge_face_vector_with_property'.

1357 1358 1359 1360 1361
2004-06-07  Kenichi Handa  <handa@m17n.org>

	* coding.c (find_safe_codings): Check NILP (safe_codings) only at
	the necessary places.

Kim F. Storm's avatar
Kim F. Storm committed
1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372
2004-06-07  Kim F. Storm  <storm@cua.dk>

	* process.c (Fdelete_process): Undo 2004-05-28 change.
	Instead, call status_notify also for network process.
	(status_message): Use process instead of status as arg.
	Give messages "deleted" or "connection broken by remote peer" for
	an exited network process.
	(status_notify): Change call to status_message.
	(read_process_output): Increase readmax to 4096.  Do not increase
	buffer size for datagram channels (default is now large enough).

1373 1374 1375 1376 1377
2004-06-06  Steven Tamm  <tamm@Steven-Tamms-Computer.local>

	* macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
	problem due to newly defined variable.

1378 1379 1380 1381 1382
2004-06-06  Miles Bader  <miles@gnu.org>

	* xfaces.c (Fdisplay_supports_face_attributes_p): Give up
	immediately if non-interactive or not initialized.

1383 1384 1385 1386
2004-06-05  Richard M. Stallman  <rms@gnu.org>

	* minibuf.c (Fcompleting_read): Doc fix.

Andreas Schwab's avatar
Andreas Schwab committed
1387 1388 1389 1390
2004-06-05  Andreas Schwab  <schwab@suse.de>

	* macfns.c (x_create_tip_frame): Fix declaration after statement.

1391 1392 1393 1394 1395
2004-06-05  Juanma Barranquero  <lektu@terra.es>

	* keymap.c (Fdescribe_vector): Fix docstring.
	(Fkey_description, Fglobal_key_binding): Fix typo in docstring.

1396 1397 1398 1399 1400
2004-06-05  Miles Bader  <miles@gnu.org>

	* xfaces.c (tty_supports_face_attributes_p): Make sure the specified
	attributes have different values than the default face.

Eli Zaretskii's avatar
Eli Zaretskii committed
1401 1402 1403 1404
2004-06-04  Eli Zaretskii  <eliz@gnu.org>

	* xfaces.c (x_supports_face_attributes_p): Make this function
	conditional on HAVE_WINDOW_SYSTEM.
Stefan Monnier's avatar
Stefan Monnier committed
1405 1406
	(Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
	Don't call x_supports_face_attributes_p if it was not compiled in.
Eli Zaretskii's avatar
Eli Zaretskii committed
1407

1408 1409 1410 1411 1412 1413 1414 1415
2004-06-04  Miles Bader  <miles@gnu.org>

	* xfaces.c (tty_supports_face_attributes_p): New function, mostly
	from Ftty_supports_face_attributes_p.
	(x_supports_face_attributes_p): New function.
	(Ftty_supports_face_attributes_p): Function deleted.
	(Fdisplay_supports_face_attributes_p): New function.
	(syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
Juanma Barranquero's avatar
Juanma Barranquero committed
1416
	(face_attr_equal_p): New function.
1417 1418
	(lface_equal_p): Use it.

1419 1420 1421 1422 1423 1424 1425 1426
2004-06-03  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
	(Vw32_color_map): Fix typo in docstring.
	(Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
	(Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
	Make argument names match their use in docstring.

Juanma Barranquero's avatar
Juanma Barranquero committed
1427 1428 1429 1430 1431 1432 1433 1434
2004-06-02  Juanma Barranquero  <lektu@terra.es>

	Work around bugs/problems with MinGW builds of graphics libraries
	called from MSVC builds of Emacs.

	* image.c (lookup_image): Make pointer to img static.
	(png_read_from_memory): Disable "global" optimization.

1435 1436
2004-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
1437 1438
	* eval.c (Fcondition_case): Fix usage.  Simplify.

1439 1440
	* mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.

1441 1442 1443 1444
2004-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c: Don't include ccl.h.
	[MAC_OSX]: Don't include QuickTime/QuickTime.h.
Juanma Barranquero's avatar
Juanma Barranquero committed
1445 1446
	[!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
	TextUtils.h.
Stefan Monnier's avatar
Stefan Monnier committed
1447
	(Fx_create_frame): Sync with xfns.c.  Initialize cursor descriptors.
1448 1449 1450 1451 1452 1453 1454
	(Fx_display_mm_height, Fx_display_mm_width): Calculate length from
	display height/width.
	(compute_tip_xy, Vx_max_tooltip_size): Declare.
	(unwind_create_tip_frame, compute_tip_xy): New functions.
	(x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
	(syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
	and last_show_tip_args.
1455

1456 1457
	* macgui.h [!MAC_OSX]: Include Gestalt.h.
	(Cursor, No_Cursor): New defines.
Stefan Monnier's avatar
Stefan Monnier committed
1458
	[!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485
	[!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.

	* macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.

	* macterm.c: Don't include Gestalt.h.
	(enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
	(XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
	(mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
	(XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
	(mac_copy_area, mac_copy_area_with_mask, x_update_end)
	(construct_mouse_click, XTmouse_position)
	(x_scroll_bar_report_motion, x_calc_absolute_position)
	(do_mouse_moved, do_zoom_window, mac_do_receive_drag)
	(XTread_socket, make_mac_frame): Use SetPortWindowPort.
	(note_mouse_movement): Clear the mouse face and reset the pointer
	shape when the pointer goes outside the frame without grabbing.
	(mac_front_window): New function.
	(mac_window_to_frame): New macro.
	(XTmouse_position, x_scroll_bar_report_motion, do_window_update)
	(do_window_activate, do_window_deactivate, do_app_resume)
	(do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
	(do_zoom_window, mac_do_receive_drag, XTread_socket)
	(mac_check_for_quit_char): Use mac_front_window and/or
	mac_window_to_frame.
	(x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
	scroll-bar click event.
	(mac_define_frame_cursor): Change the pointer shape.
Stefan Monnier's avatar
Stefan Monnier committed
1486
	(x_free_frame_resources): Reset tip_window to NULL when it is disposed.
1487
	[!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
Stefan Monnier's avatar
Stefan Monnier committed
1488
	[!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
1489 1490 1491 1492 1493 1494 1495
	(do_window_update): Don't do anything if the updated window is the
	tooltip window.
	(do_mouse_moved): Handle mouse movement events here (previously in
	XTread_socket).  Clear the mouse face if
	dpyinfo->mouse_face_hidden is set.
	(do_os_event, do_events): Remove (now in XTread_socket).
	(XTread_socket): Immediately return if interrupt_input_blocked.
Stefan Monnier's avatar
Stefan Monnier committed
1496 1497
	Loop until all the events in the queue are processed.
	Rearrange codes for mouse grabbing.  Add tooltip support.  Include the
1498 1499 1500 1501 1502 1503 1504 1505
	contents of do_os_event and do_events.  Remove mouse movement
	handling (now in do_mouse_moved).  Add the case where
	Vmouse_highlight has an integer value.
	(NewMacWindow): Remove.
	(make_mac_frame): Do what NewMacWindow previously did.  Don't do
	excess initializations.
	(make_mac_terminal_frame): Previous initializations in
	make_mac_frame are moved here.
Stefan Monnier's avatar
Stefan Monnier committed
1506 1507
	(mac_initialize_display_info):
	Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
1508 1509 1510 1511

	* xdisp.c [MAC_OS] (No_Cursor): Remove variable.
	(define_frame_cursor1): Don't treat HAVE_CARBON as a special case.

1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525
2004-05-29  Richard M. Stallman  <rms@gnu.org>

	* lisp.h (truncate_undo_list): Update decl.

	* alloc.c (undo_outer_limit): New variable.
	(syms_of_alloc): Defvar it.
	(Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.

	* undo.c (truncate_undo_list): New arg LIMITSIZE.

	* alloc.c (lisp_align_malloc): Check for base == 0
	regardless of HAVE_POSIX_MEMALIGN.
	Clean up HAVE_POSIX_MEMALIGN handling of `err'.

Stefan Monnier's avatar
Stefan Monnier committed
1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536
2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* alloc.c: Undo Kim's recent changes and fix the same bug differently.
	(marker_blocks_pending_free): Remove.
	(Fgarbage_collect): Sweep after cleaning up undo-lists.
	Mark the undo lists after claning them up.
	Don't free block in marker_blocks_pending_free.
	(mark_buffer): Don't mark undo_list.
	(gc_sweep): Sweep hash-tables and strings first.
	Do free marker blocks that are empty.

Stefan Monnier's avatar
Stefan Monnier committed
1537 1538 1539 1540 1541 1542
2004-05-28  Jim Blandy  <jimb@redhat.com>

	* regex.c (print_partial_compiled_pattern): Add missing 'break'
	after 'case wordend'.  For symbeg and symend, print to stderr,
	like the other cases.

1543 1544 1545 1546
2004-05-28  Noah Friedman  <friedman@splode.com>

	* process.c (Fdelete_process): Do not call remove_process.

Stefan Monnier's avatar
Stefan Monnier committed
1547 1548 1549 1550 1551 1552 1553 1554