ChangeLog 522 KB
Newer Older
1 2 3 4
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
5 6 7 8
2004-07-28  Luc Teirlinck  <teirllm@auburn.edu>

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

Kim F. Storm's avatar
Kim F. Storm committed
9 10 11 12 13 14
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
15 16 17 18 19 20
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.

21 22
2004-07-25  Richard M. Stallman  <rms@gnu.org>

23 24 25 26 27 28
	* 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
29
	* window.c (Fcoordinates_in_window_p):
30 31 32 33
	Take account of FRAME_INTERNAL_BORDER_WIDTH.

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

Luc Teirlinck's avatar
Luc Teirlinck committed
34 35 36 37 38 39 40
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
41 42
2004-07-24  Richard M. Stallman  <rms@gnu.org>

43 44 45 46 47 48 49 50 51
	* 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
52 53 54
	* xfns.c (x_icon_verify): New function.
	(Fx_create_frame): Use it.

Kim F. Storm's avatar
Kim F. Storm committed
55 56 57 58
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
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
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.

78 79 80 81
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
82 83 84 85 86 87 88 89 90
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.

91 92 93 94 95
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.

96 97 98 99 100 101 102 103 104
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

105 106 107
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
108
	polling instead of 1 sec timeouts (like solaris).
109

Luc Teirlinck's avatar
Luc Teirlinck committed
110
	* macterm.c (x_make_frame_visible): Comment in polling on
111 112 113 114 115 116 117 118 119 120 121 122
	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.

123 124
2004-07-18  Luc Teirlinck  <teirllm@auburn.edu>

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

128 129 130 131 132
2004-07-17  Juanma Barranquero  <lektu@terra.es>

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

133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
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
150 151 152 153 154
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
155 156
2004-07-15  David Kastrup  <dak@gnu.org>

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

Luc Teirlinck's avatar
Luc Teirlinck committed
160 161 162 163 164
2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>

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

165 166 167 168 169
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
170 171 172 173 174
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
175 176
2004-07-10  Luc Teirlinck  <teirllm@auburn.edu>

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

Luc Teirlinck's avatar
Luc Teirlinck committed
179 180 181 182 183 184
	* 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'.

185 186 187 188 189 190
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.

191 192
2004-07-06  Luc Teirlinck  <teirllm@auburn.edu>

193 194 195
	* keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
	docstring.

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

198 199 200 201
2004-07-06  John Paul Wallington  <jpw@gnu.org>

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

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

204 205 206 207 208
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).

209 210 211 212 213 214
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
215 216 217 218 219
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
220 221 222 223 224
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.

225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
2004-06-30  Stefan  <monnier@iro.umontreal.ca>

	* 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
243 244 245 246 247 248 249 250 251 252
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.

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

Andreas Schwab's avatar
Andreas Schwab committed
255 256 257 258 259 260
	* 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.
261

Steven Tamm's avatar
Steven Tamm committed
262 263 264 265 266 267
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.

268 269 270 271 272
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
273
2004-06-28  Steven Tamm  <steventamm@mac.com>
274 275 276 277

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

278 279 280 281
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.
282 283
	(xg_get_image_for_pixmap): Add workaround for monochrome displays
	so insensitive and activated icons look ok.
284

285 286 287 288 289 290 291
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".

292 293 294 295 296 297 298 299 300 301
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.

302 303 304 305 306
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.

307 308
2004-06-23  David Kastrup  <dak@gnu.org>

David Kastrup's avatar
David Kastrup committed
309 310 311 312 313 314
	* 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
315
	(save_search_regs): Save last_thing_searched as part of the match data.
316 317
	(restore_match_data): Restore it again.

Luc Teirlinck's avatar
Luc Teirlinck committed
318 319 320 321 322
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
323 324
2004-06-22  Kim F. Storm  <storm@cua.dk>

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

Kim F. Storm's avatar
Kim F. Storm committed
327 328 329 330 331 332 333 334 335 336 337 338
	* 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
339 340 341 342 343 344 345 346
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
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
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.

376 377 378 379
2004-06-21  Eli Zaretskii  <eliz@gnu.org>

	* print.c (Fwith_output_to_temp_buffer): Doc fix.

380 381 382 383 384 385 386 387 388 389 390 391 392
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.

393 394 395 396 397 398 399 400
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.

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

403 404 405
	* xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
	clip_x/y_origin.

406 407
	* fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.

408 409 410 411 412
	* 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
413 414 415 416
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
417 418 419 420
2004-06-16  Kim F. Storm  <storm@cua.dk>

	* dispextern.h (Vimage_types): Remove extern.

421 422 423 424
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
425 426
2004-06-15  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
427 428 429 430 431 432 433 434
	* 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
435 436 437
	* syntax.c (skip_chars): Only recognize [:class:] when it has the
	proper format and class is a lower-case word.

438 439 440
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
441
	(xg_get_gdk_pixmap_and_mask): Remove.
442 443
	(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
444

445 446
	* xterm.h (struct x_display_info): Typo in comment fixed.

Juanma Barranquero's avatar
Juanma Barranquero committed
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461
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
462
	(CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
Juanma Barranquero's avatar
Juanma Barranquero committed
463 464 465 466 467 468 469 470 471 472 473
	(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
474 475 476 477 478
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.

479 480 481 482 483
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
484

485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506
	* 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.

507 508
2004-06-13  Andreas Schwab  <schwab@suse.de>

509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
	* 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
527 528
	* image.c: Include <ctype.h>.

529 530
	* xfaces.c (face_attr_equal_p): Declare parameters.

Kenichi Handa's avatar
Kenichi Handa committed
531 532 533 534
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
535 536 537 538
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
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553
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
554 555 556 557
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
558 559 560 561
2004-06-11  Juanma Barranquero  <lektu@terra.es>

	* keyboard.c (Fposn_at_point): Doc fix.

562 563 564 565 566 567
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.

568 569 570 571
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
572 573 574 575 576 577
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.

578 579
2004-06-07  Miles Bader  <miles@gnu.org>

Kim F. Storm's avatar
Typo.  
Kim F. Storm committed
580
	* xfaces.c (struct named_merge_point): New type.
581 582 583 584 585
	(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
586
	(merge_face_ref): Rename from `merge_face_vector_with_property'.
587 588 589 590 591 592 593 594 595 596 597
	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'.

598 599 600 601 602
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
603 604 605 606 607 608 609 610 611 612 613
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).

614 615 616 617 618
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.

619 620 621 622 623
2004-06-06  Miles Bader  <miles@gnu.org>

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

624 625 626 627
2004-06-05  Richard M. Stallman  <rms@gnu.org>

	* minibuf.c (Fcompleting_read): Doc fix.

Andreas Schwab's avatar
Andreas Schwab committed
628 629 630 631
2004-06-05  Andreas Schwab  <schwab@suse.de>

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

632 633 634 635 636
2004-06-05  Juanma Barranquero  <lektu@terra.es>

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

637 638 639 640 641
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
642 643 644 645
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
646 647
	(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
648

649 650 651 652 653 654 655 656
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
657
	(face_attr_equal_p): New function.
658 659
	(lface_equal_p): Use it.

660 661 662 663 664 665 666 667
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
668 669 670 671 672 673 674 675
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.

676 677
2004-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>

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

680 681
	* mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.

682 683 684 685
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
686 687
	[!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
	TextUtils.h.
Stefan Monnier's avatar
Stefan Monnier committed
688
	(Fx_create_frame): Sync with xfns.c.  Initialize cursor descriptors.
689 690 691 692 693 694 695
	(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.
696

697 698
	* macgui.h [!MAC_OSX]: Include Gestalt.h.
	(Cursor, No_Cursor): New defines.
Stefan Monnier's avatar
Stefan Monnier committed
699
	[!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726
	[!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
727
	(x_free_frame_resources): Reset tip_window to NULL when it is disposed.
728
	[!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
Stefan Monnier's avatar
Stefan Monnier committed
729
	[!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
730 731 732 733 734 735 736
	(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
737 738
	Loop until all the events in the queue are processed.
	Rearrange codes for mouse grabbing.  Add tooltip support.  Include the
739 740 741 742 743 744 745 746
	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
747 748
	(mac_initialize_display_info):
	Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
749 750 751 752

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

753 754 755 756 757 758 759 760 761 762 763 764 765 766
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
767 768 769 770 771 772 773 774 775 776 777
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
778 779 780 781 782 783
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.

784 785 786 787
2004-05-28  Noah Friedman  <friedman@splode.com>

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

Stefan Monnier's avatar
Stefan Monnier committed
788 789 790 791 792 793 794 795 796 797 798
2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* alloc.c (struct backtrace): Remove.
	(Fgarbage_collect): Use the new mark_backtrace.

	* eval.c (mark_backtrace): New function.

	* minibuf.c (run_exit_minibuf_hook): New function.
	(read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
	(read_minibuf): Use separate unwind handler to run exit-minibuf-hook.

Kim F. Storm's avatar
Kim F. Storm committed
799 800 801 802 803
2004-05-27  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (back_to_previous_visible_line_start): Skip backwards
	over display properties, e.g. images, that replace buffer text.

Kim F. Storm's avatar
Kim F. Storm committed
804 805 806 807 808 809 810 811 812 813
2004-05-25  Kim F. Storm  <storm@cua.dk>

	* alloc.c (marker_blocks_pending_free): New var.
	(gc_sweep): Store free marker blocks on that list.
	(Fgarbage_collect): Free them after undo-list cleanup.

	* process.c (wait_reading_process_input): Check connect_wait_mask
	before actually accepting connection in case it has already been
	accepted due to recursion.

814 815
2004-05-23  K,Ba(Broly L,Bu(Brentey  <lorentey@elte.hu>  (tiny change)

Stefan Monnier's avatar
Stefan Monnier committed
816 817
	* coding.c (Fset_safe_terminal_coding_system_internal):
	Set suppress_error in safe_terminal_coding, not terminal_coding.
818

819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
2004-05-22  Richard M. Stallman  <rms@gnu.org>

	* alloc.c (Fmake_string): Doc fix.

	* buffer.c (clone_per_buffer_values): Copy the alist of local vars,
	and the alist pairs too.

	* casefiddle.c (casify_object): Return OBJ unchanged if not real char.

	* emacs.c (main): Update copyright year.

	* fileio.c (Fread_file_name): Expand DIR if not absolute.

	* insdel.c (del_range_2, replace_range): Don't write an anchor
	if the gap is empty.

	* xdisp.c (try_scrolling): If scroll-up-aggressively or
	scroll-down-aggressively is small but positive, put point
	near the screen edge.

Juanma Barranquero's avatar
Juanma Barranquero committed
839 840 841 842
2004-05-22  Juanma Barranquero  <lektu@terra.es>

	* keymap.c (Fdefine_key): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857
2004-05-22  Kim F. Storm  <storm@cua.dk>

	* alloc.c (struct backtrace): Add debug_on_exit member.
	(Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
	Identify those markers as Lisp_Misc_Free objects.  Clear car and cdr of
	the removed cons cells.
	(mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
	(gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
	any cons cells pointing to unallocated stings.
	Do not lisp_free any marker blocks, as there may still be pointers
	to them from buffer undo lists at this stage of GC.

	* keyboard.c (struct backtrace): Add debug_on_exit member.
	(Fcommand_execute): Clear it.

858 859 860 861
2004-05-20  Luc Teirlinck  <teirllm@auburn.edu>

	* intervals.c (lookup_char_property): Do not prematurely return nil.

862 863 864
2004-05-19  Jim Blandy  <jimb@redhat.com>

	Add support for new '\_<' and '\_>' regexp operators, matching the
Juanma Barranquero's avatar
Juanma Barranquero committed
865
	beginning and end of symbols.
Kim F. Storm's avatar
Kim F. Storm committed
866

867 868 869 870 871
	* regex.c (enum syntaxcode): Add Ssymbol.
	(init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
	(re_opcode_t): New opcodes `symbeg' and `symend'.
	(print_partial_compiled_pattern): Print the new opcodes properly.
	(regex_compile): Parse the new operators.
Stefan Monnier's avatar
Stefan Monnier committed
872
	(analyse_first): Skip sym(beg|end) (they match only the empty string).
873 874 875 876 877 878
	(mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
	\sw; `symbeg' is mutually exclusive with \S_ and \Sw.
	(re_match_2_internal): Match symbeg and symend.

	* search.c (trivial_regexp_p): \_ is no longer a trivial regexp.

Kim F. Storm's avatar
Kim F. Storm committed
879 880 881 882
2004-05-19  Kim F. Storm  <storm@cua.dk>

	* .gdbinit (xsymbol): Fix last change.

883 884 885 886 887 888 889 890 891 892
2004-05-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* .gdbinit (xprintstr): New fun.
	(xstring, xprintsym): Use it.

	* w32proc.c (create_child): Use INTMASK.

	* alloc.c (Fgarbage_collect): Do all the marking before flushing
	unmarked elements of the undo list.

893 894 895 896
2004-05-18  David Ponce  <david@dponce.com>

	* print.c (print): Reset print_depth before to call print_object.

897 898 899 900 901 902 903 904
2004-05-18  Jason Rumney  <jasonr@gnu.org>

	* w32console.c: Prefix RIF functions with w32con_ to avoid
	namespace clash with functions in term.c and w32term.c.

	* w32menu.c (add_menu_item, w32_menu_display_help)
	[USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.

Kim F. Storm's avatar
Kim F. Storm committed
905
	* w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
906

907 908
2004-05-18  Eli Zaretskii  <eliz@gnu.org>

909 910
	* lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.

911 912 913 914 915
	* msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
	with make_number.
	(IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
	with XINT.

916 917
2004-05-18  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
918 919 920 921 922
	* blockinput.h (INPUT_BLOCKED_P): New macros.

	* keyboard.c (Frecursive_edit): Return immediately if input blocked.
	(Ftop_level): Unblock input if blocked.

923 924 925 926 927 928 929 930
	* buffer.h (GET_OVERLAYS_AT): New macro.
	* msdos.c (IT_note_mouse_highlight): Use it.
	* textprop.c (get_char_property_and_overlay): Use it.
	* xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
	* xfaces.c (face_at_buffer_position): Use it.

	* print.c (print_object): Increase buf size.

Jason Rumney's avatar
Jason Rumney committed
931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970
2004-05-17  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
	(Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
	Lisp_Object using i member.
	(w32_quit_key): Rename from Vw32_quit_key, and make an int.
	(syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
	consistently.

	* w32proc.c (create_child): Use make_number instead of masking pid.

	* w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
	(x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
	Use EQ to compare Lisp_Objects.
	(w32_parse_hot_key): Use int for lisp_modifiers consistently.

	* w32term.c (w32_num_mouse_buttons): Rename from
	Vw32_num_mouse_buttons and make it an int.

	* w32.c (init_environment): Use it.

	* w32fns.c (w32_wnd_proc): Likewise.

	* w32proc.c (w32_pipe_read_delay): Rename from
	Vw32_pipe_read_delay and make it an int.

	* w32.c (_sys_read_ahead): Use it.

	* lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.

	* w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.

	* w32inevt.c (w32_console_mouse_position, do_mouse_event)
	(key_event): Don't mix Lisp_Object and int.

	* w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.

	* keyboard.c (kbd_buffer_get_event): Don't use event->code and
	modifiers in language change event.

Kim F. Storm's avatar
Kim F. Storm committed
971 972 973 974 975
2004-05-17  Kim F. Storm  <storm@cua.dk>

	* alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
	Such objects may be freed markers which still exist on an undo list.

976 977 978 979 980
2004-05-16  Juanma Barranquero  <lektu@terra.es>

	* data.c (Fset_default): Make argument names match their use in
	docstring.

981 982 983 984 985
2004-05-15  Andreas Schwab  <schwab@suse.de>

	* emacs.c (gdb_array_mark_flag): Define.
	* .gdbinit: Mask off gdb_array_mark_flag from vector sizes.

Eli Zaretskii's avatar
Eli Zaretskii committed
986 987 988 989 990 991
2004-05-15  Eli Zaretskii  <eliz@gnu.org>

	* lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
	__attribute__((__aligned__)), so that USE_LSB_TAG would not become
	defined for the MS-DOS build.

992 993 994 995
2004-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>

	* w32fns.c (Fw32_define_rgb_color): Avoid XSET.

Kenichi Handa's avatar
Kenichi Handa committed
996 997 998 999
2004-05-14  Kenichi Handa  <handa@m17n.org>

	* ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.

1000 1001 1002 1003 1004
2004-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
	section to frame.c section.
	(Fxw_display_color_p, Fx_file_dialog): Declare if
1005
	HAVE_WINDOW_SYSTEM defined.
Kim F. Storm's avatar
Kim F. Storm committed
1006

1007
	* macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
Kim F. Storm's avatar
Kim F. Storm committed
1008

1009
	* macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
Kim F. Storm's avatar
Kim F. Storm committed
1010

1011 1012 1013 1014
	* macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
	(mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
	(XTread_socket): Fix int/Lisp_Object mixup.
	(mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
Kim F. Storm's avatar
Kim F. Storm committed
1015

1016 1017
	* macterm.h (struct frame, struct face, struct image)
	(display_x_get_resource, Fx_display_color_p)
1018 1019
	(Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
	Add prototypes.
1020

Kim F. Storm's avatar
Kim F. Storm committed
1021 1022 1023 1024 1025 1026
2004-05-14  Kim F. Storm  <storm@cua.dk>

	* process.c (wait_reading_process_input): Make reentrant.
	Make Available and Connecting non-static.  Save and restore value
	of waiting_for_user_input_p.

Kim F. Storm's avatar
Kim F. Storm committed
1027 1028 1029 1030 1031
2004-05-13  Kim F. Storm  <storm@cua.dk>

	* keyboard.c (mark_kboards): Don't mark x and y members
	that are overloaded in selection request events.

Stefan Monnier's avatar
Stefan Monnier committed
1032 1033 1034 1035
2004-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lisp.h (USE_LSB_TAG): Make it the default when it is known to work.

Glenn Morris's avatar
Glenn Morris committed
1036 1037 1038 1039 1040
2004-05-13  Glenn Morris  <gmorris@ast.cam.ac.uk>

	* window.c (Fdisplay_buffer, Fsplit_window)
	(split-height-threshold): Doc fix.

1041 1042 1043 1044 1045 1046
2004-05-13  Juanma Barranquero  <lektu@terra.es>

	* xfaces.c (Ftty_supports_face_attributes_p)
	(Finternal_copy_lisp_face): Fix typo in docstring.
	(Finternal_get_lisp_face_attribute): Fix docstring.

1047 1048 1049 1050
2004-05-12  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.

1051 1052 1053 1054 1055 1056
2004-05-11  Steven Tamm  <steventamm@mac.com>

	* macfns.c (Fx_create_frame): Default to using tool-bar by
	setting tool-bar-lines to 1 in default-frame-alist.

2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1057 1058 1059 1060 1061 1062

	* image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
	(xpm_get_color_table_v, xpm_make_color_table_h)
	(xpm_put_color_table_h, xpm_get_color_table_h)
	(xpm_str_to_color_key, xpm_load_image, xpm_load)
	(syms_of_image): Support XPM on Carbon Emacs.  Does not
Stefan Monnier's avatar
Stefan Monnier committed
1063
	depend on libXpm, but only supports XPM version 3 without extensions.
1064

1065 1066
2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

Stefan Monnier's avatar
Stefan Monnier committed
1067
	* macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
1068 1069
	instead of FRAME_X_P

Kim F. Storm's avatar
Kim F. Storm committed
1070 1071 1072 1073 1074
2004-05-11  Kim F. Storm  <storm@cua.dk>

	* process.c (read_process_output): Grow decoding_buf when needed;
	this could cause a crash in allocate_string and compact_small_strings.

Eli Zaretskii's avatar
Eli Zaretskii committed
1075 1076 1077 1078 1079
2004-04-29  Jim Blandy  <jimb@redhat.com>

	* regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
	against proper opcode.

Juanma Barranquero's avatar
Juanma Barranquero committed
1080 1081 1082 1083 1084 1085 1086 1087 1088
2004-05-10  Juanma Barranquero  <lektu@terra.es>

	* process.c (Fstart_process): Fix docstring.

	* charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
	(Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
	(Fsplit_char, Fchar_charset): Make argument names match their use
	in docstring.

1089 1090 1091 1092 1093
2004-05-10  Richard M. Stallman  <rms@gnu.org>

	* print.c (print_preprocess): Use being_printed, loop_count and
	halftail to detect overdeep nesting and cyclic cdr chains.

Andreas Schwab's avatar
Andreas Schwab committed
1094 1095 1096 1097 1098 1099 1100
2004-05-10  Andreas Schwab  <schwab@suse.de>

	* lisp.h: Declare Fmake_symbolic_link.

	* fileio.c (Frename_file): Remove extra argument in call to
	Fmake_symbolic_link.

Kim F. Storm's avatar
Kim F. Storm committed
1101 1102 1103 1104 1105
2004-05-10  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (calc_line_height_property): Use string position when
	object is a string.

Kenichi Handa's avatar
Kenichi Handa committed
1106 1107
2004-05-10  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119
	* print.c (temp_output_buffer_setup): Bind inhibit-read-only and
	inhibit-modification-hooks to t temporarily before calling
	Ferase_buffer.

	* xfns.c (x_create_tip_frame): Bind inhibit-read-only and
	inhibit-modification-hooks to t temporarily before calling
	Ferase_buffer.

	* w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
	inhibit-modification-hooks to t temporarily before calling
	Ferase_buffer.

Kenichi Handa's avatar
Kenichi Handa committed
1120 1121 1122
	* fns.c (count_combining): Delete it.
	(concat): Don't check combining bytes.

Jason Rumney's avatar
Jason Rumney committed
1123 1124 1125 1126 1127
2004-05-09  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Vw32_ansi_code_page): New Lisp variable.
	(globals_of_w32fns): Set it.

Juanma Barranquero's avatar
Juanma Barranquero committed
1128 1129 1130 1131
2004-05-09  Piet van Oostrum  <piet@cs.uu.nl>  (tiny change)

	* data.c (Fquo): Simplify.

1132 1133 1134 1135 1136
2004-05-08  Peter Whaite  <emacs@whaite.ca>  (tiny change)

	* data.c (Fquo): If any argument is float, do the computation in
	floating point.

Juanma Barranquero's avatar
Juanma Barranquero committed
1137 1138
2004-05-08  Juanma Barranquero  <lektu@terra.es>

Juanma Barranquero's avatar
Juanma Barranquero committed
1139 1140 1141 1142 1143 1144 1145 1146 1147
	* process.c (Fwaiting_for_user_input_p, Fmake_network_process)
	(Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
	Fix spelling of Emacs on docstring.
	(Fset_process_coding_system, Fprocess_coding_system)
	(Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
	Make argument names match their use in docstring.
	(Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
	Fix docstring.

Juanma Barranquero's avatar
Juanma Barranquero committed
1148 1149 1150 1151 1152
	* editfns.c (Finsert_buffer_substring): Make argument names match their
	use in docstring.

	* syntax.c (Fmodify_syntax_entry): Fix docstring.

1153 1154 1155 1156 1157 1158
2004-05-07  Steven Tamm  <steventamm@mac.com>

	* macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
	around call to ReceiveEvent to avoid certain crashes.

2004-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
Kim F. Storm's avatar
Kim F. Storm committed
1159

1160 1161 1162 1163 1164 1165 1166 1167 1168
	* macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
	(mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
	(mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
	Save/restore the current graphics port and device handle when
	drawing into an offscreen graphics world.

	* image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
	(gif_load): Likewise.

1169 1170 1171 1172
2004-05-07  Juanma Barranquero  <lektu@terra.es>

	* window.c (Fset_window_buffer): Fix docstring.

Thien-Thi Nguyen's avatar
Thien-Thi Nguyen committed
1173 1174 1175 1176
2004-05-06  Thien-Thi Nguyen  <ttn@gnu.org>

	* emacs.c (main) [VMS]: Fix var ref.

Juanma Barranquero's avatar
Juanma Barranquero committed
1177 1178 1179 1180
2004-05-06  Romain Francoise  <romain@orebokech.com>  (tiny change)

	* data.c (Fsetq_default): Fix docstring.

1181 1182 1183 1184 1185
2004-05-06  Jason Rumney  <jasonr@gnu.org>

	* image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
	to avoid name clash.

1186 1187 1188 1189
2004-05-04  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* fileio.c (barf_or_query_if_file_exists): Use lstat.
	(Frename_file): Handle renaming of symlinks across file systems.
1190
	(Frename_file): Put symlink handling inside #ifdef S_IFLNK.
1191

Kim F. Storm's avatar
Kim F. Storm committed
1192 1193 1194 1195 1196 1197 1198 1199 1200
2004-05-04  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (Qtotal): New var.
	(syms_of_xdisp): Intern and staticpro it.
	(calc_line_height_property): New arg total.  Set it if
	line-spacing property has format (total . VALUE).
	(x_produce_glyphs): Ignore line-spacing if line-height is 0.
	Handle total line-spacing property.

1201 1202 1203 1204 1205
2004-05-03  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
	"under" scroll bar when size/position changes.

1206 1207 1208 1209
2004-05-03  Jason Rumney  <jasonr@gnu.org>

	* makefile.nt: Remove.

1210 1211
2004-05-02  Eli Zaretskii  <eliz@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
1212 1213
	* syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
	Avoid compiler warnings.
Eli Zaretskii's avatar
Eli Zaretskii committed
1214

1215 1216
	* Makefile.in (region-cache.o): Depend on config.h.

1217 1218 1219 1220 1221
2004-05-02  Romain Francoise  <romain@orebokech.com>  (tiny change)

	* indent.c (compute_motion): Save vpos in prev_vpos when dealing
	with continuation lines, too.

1222 1223 1224 1225
2004-05-02  Thien-Thi Nguyen  <ttn@gnu.org>

	* syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.

1226 1227 1228 1229 1230
2004-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c (calc_line_height_property): YAILOM (yet another
	int/Lisp_Object mixup).

1231 1232 1233 1234 1235
2004-05-01  Eli Zaretskii  <eliz@gnu.org>

	* msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
	undo bad effect of pack(4) in some versions of system headers.

1236 1237 1238 1239
2004-05-01  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_draw_hollow_cursor): Sync with xterm.c

Kim F. Storm's avatar
Kim F. Storm committed
1240 1241 1242
2004-04-30  Kim F. Storm  <storm@cua.dk>

	* buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
Kim F. Storm's avatar
Kim F. Storm committed
1243
	(syms_of_buffer) <cursor-type>: Doc fix.
Kim F. Storm's avatar
Kim F. Storm committed
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263

	* dispextern.h (struct it): Remove member use_default_face.
	Add members override_ascent, override_descent, override_boff.

	* xdisp.c (init_iterator): Handle line-spacing float value.
	Initialize override_ascent member.
	(append_space_for_newline): Reset override_ascent.
	Remove use_default_face.
	(calc_line_height_property): New function to calculate value of
	line-height and line-spacing properties.  Look at overlays, too.
	Set override_ascent, override_descent, override_boff members when
	using another face than the current face.  Float values are now
	relative to the frame default font, by default; accept a cons
	of ratio and face name to specify value relative to a specific face.
	(x_produce_glyphs): Use calc_line_height_property.
	Use override_ascent etc. when set to handle different face heights.
	A negative line-spacing property value is interpreted as a total
	line height, rather than inter-line spacing.
	(note_mouse_highlight): Allocate room for 40 overlays initially.

Stefan Monnier's avatar
Stefan Monnier committed
1264 1265 1266 1267 1268
2004-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* data.c (Fsubr_name): New fun.
	(syms_of_data): Defsubr it.

Kim F. Storm's avatar
Kim F. Storm committed
1269 1270 1271 1272 1273 1274
2004-04-29  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (null_glyph_slice): New var.
	(append_glyph, append_composite_glyph, append_stretch_glyph):
	Use it to initialize glyph slice.

Stefan Monnier's avatar
Stefan Monnier committed
1275 1276 1277 1278 1279 1280 1281
2004-04-27  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
	(on_hot_spot_p): Make sure we always return a value.
	(Flookup_image_map): Remove unused var ix and iy.
	(note_mode_line_or_margin_highlight): Remove unused var `image'.

Eli Zaretskii's avatar
Eli Zaretskii committed
1282 1283 1284 1285 1286 1287
2004-04-27  Eli Zaretskii  <eliz@gnu.org>

	* msdos.c (init_environment): If one of the TMP... environment
	variables is set to a drive letter without a trailing slash,
	append a slash.

Eli Zaretskii's avatar
Eli Zaretskii committed
1288 1289 1290 1291 1292 1293 1294
2004-04-27  Matthew Mundell  <matt@mundell.ukfsn.org>

	* editfns.c (lisp_time_argument): Provide externally.

	* fileio.c (Fset_file_times): New function.
	(syms_of_fileio): Intern and staticpro it.

Kim F. Storm's avatar
Kim F. Storm committed
1295 1296
2004-04-27  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1297 1298 1299
	* xdisp.c (x_produce_glyphs): Fix last change; handle newline in
	header line strings.

Kim F. Storm's avatar
Kim F. Storm committed
1300 1301
	* dispextern.h (struct it): New member use_default_face.

Kim F. Storm's avatar
Kim F. Storm committed
1302 1303 1304 1305 1306 1307 1308 1309 1310
	* xdisp.c (Qline_height): New variable.
	(syms_of_xdisp): Intern and staticpro it.
	(append_space_for_newline): Partially undo 2004-04-25 change;
	add default_face_p arg, and restore callers.
	Clear it->use_default_face after use.
	(x_produce_glyphs): Set default font for ascii char if
	it->use_default_font is set.  Change line-spacing property to set
	just extra line spacing.  Handle new line-height property.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323
2004-04-26  Andreas Schwab  <schwab@suse.de>

	* print.c (print_object): Print non-ascii characters in bool
	vector representation as octal escapes.

	* lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
	* print.c (print_object): Use it instead of BITS_PER_CHAR for
	bool vectors.
	* lread.c (read1): Likewise.
	* alloc.c (Fmake_bool_vector): Likewise.
	* data.c (Faref, Faset): Likewise.
	* fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
	(mapcar1): Likewise.
Kim F. Storm's avatar
Kim F. Storm committed
1324

1325 1326 1327 1328
2004-04-26  Steven Tamm  <tamm@Steven-Tamms-Computer.local>

	* lread.c (init_lread): Fixing typo HAVE_CARBON test logic

1329 1330 1331 1332
2004-04-26  Miles Bader  <miles@gnu.org>

	* lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.

1333 1334 1335 1336
2004-04-26  Juanma Barranquero  <lektu@terra.es>

	* buffer.c (Fpop_to_buffer): Fix docstring.

1337
2004-04-26  Steven Tamm  <steventamm@mac.com>
1338

1339 1340
	* lread.c (init_lread): Don't display missing lisp directory
	warnings with Carbon Emacs because self-contained bundled Emacs
1341
	may be built without correct installation path.
1342

1343 1344
2004-04-25  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1345 1346 1347 1348
	* macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.

	* xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.

1349 1350 1351 1352 1353 1354 1355
	* xdisp.c (append_space_for_newline): Rename from append_space.
	Remove DEFAULT_FACE_P arg; always use current face.  Callers changed.
	(x_produce_glyphs): Handle line-spacing property on newline char.
	If value is t, adjust ascent and descent to fit current row height.
	If value is an integer or float, set extra_line_spacing to integer
	value, or to float value x current line height.

Kenichi Handa's avatar
Kenichi Handa committed
1356 1357 1358 1359 1360
2004-04-23  Kenichi Handa  <handa@m17n.org>

	* fontset.c (Finternal_char_font): If POSITION is nil, return
	font for displaying CH with the default face.

Juanma Barranquero's avatar
Juanma Barranquero committed
1361 1362 1363 1364
2004-04-23  Juanma Barranquero  <lektu@terra.es>

	* makefile.w32-in: Add "-*- makefile -*-" mode tag.

Stefan Monnier's avatar
Stefan Monnier committed
1365 1366 1367 1368 1369 1370
2004-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
	Don't make assumptions about the relative place of i and val.
	(EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.

Kim F. Storm's avatar
Kim F. Storm committed
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394
2004-04-21  Kim F. Storm  <storm@cua.dk>

	* dispextern.h (struct glyph_slice): New struct.
	(struct glyph): New member slice.
	(GLYPH_SLICE_EQUAL_P): New macro.
	(GLYPH_EQUAL_P): Use it.
	(struct glyph_string): New member slice.
	(struct it_slice): New struct.
	(struct it): New member slice, add member to stack too.
	New member constrain_row_ascent_descent_p.
	(image_ascent): Add prototype.

	* dispnew.c (buffer_posn_from_coords): Return full image width
	and height even for image slices (posn is relative to full image).
	(marginal_area_string): Adjust x0,y0 for image slice.

	* image.c (image_ascent): Add slice arg; calculate ascent for
	image slice (or full image).

	* keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
	(syms_of_keyboard): Defsubr them.

	* lisp.h (pos_visible_p): Fix prototype.

Juanma Barranquero's avatar
Juanma Barranquero committed
1395
	* macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
Kim F. Storm's avatar
Kim F. Storm committed
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447
	(x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
	(x_draw_image_foreground, x_draw_image_relief)
	(x_draw_image_foreground_1, x_draw_image_glyph_string):
	Draw sliced images.

	* w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
	(x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
	(x_draw_image_foreground, x_draw_image_relief)
	(w32_draw_image_foreground_1, x_draw_image_glyph_string):
	Draw sliced images.

	* w32term.h (image_ascent): Remove prototype.

	* window.c (Fpos_visible_in_window_p): Return pixel position if
	PARTIALLY arg is non-nil.  Simplify.  Doc fix.
	(Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
	to return/set vscroll in pixels.

	* window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.

	* xdisp.c (Qslice): New variable.
	(syms_of_xdisp): Intern and staticpro it.
	(pos_visible_p): Return pixel position in new x and y args.
	(init_iterator): Reset it->slice info.
	(handle_display_prop): Parse (slice ...) property.
	(push_it, pop_it): Save/restore slice info.
	(make_cursor_line_fully_visible): Fix 2004-04-14 change.  Do not
	force repositioning of tall row if window is vscrolled, as that
	would reset vscroll.
	(append_space): Set it->constrain_row_ascent_descent_p to avoid
	increasing row height if row is non-empty.
	(fill_image_glyph_string): Copy slice info.
	(take_vertical_position_into_account): Simplify.
	(produce_image_glyph): Handle iterator slice info, setup glyph
	slice info.  Do not force minimum line height.
	(x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
	do not increase height (ascent/descent) of non-empty row when
	adding normal character glyph; instead reduce glyph ascent/descent
	appropriately; if row is higher than current glyph, adjust glyph
	descent/ascent to reposition glyph within the existing row.
	Likewise, when char is newline, only set ascent/descent if row is
	currently empty.
	(note_mouse_highlight): Handle hotspots with sliced image.

	* xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
	(x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
	(x_draw_image_foreground, x_draw_image_relief)
	(x_draw_image_foreground_1, x_draw_image_glyph_string):
	Draw sliced images.

	* xterm.h (image_ascent): Remove prototype.

Stefan Monnier's avatar
Stefan Monnier committed
1448 1449 1450 1451
2004-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.

1452 1453 1454 1455
2004-04-20  John Paul Wallington  <jpw@gnu.org>

	* fns.c (Fassoc, Feql): Fix indentation.

Stefan Monnier's avatar
Stefan Monnier committed
1456
	* fontset.c (regularize_fontname): Rename from regulalize_fontname.
1457

John Paul Wallington's avatar
John Paul Wallington committed
1458 1459 1460
2004-04-19  John Paul Wallington  <jpw@gnu.org>

	* fns.c (Feql): New function.
Stefan Monnier's avatar
Stefan Monnier committed
1461
	(syms_of_fns): Defsubr it.
John Paul Wallington's avatar
John Paul Wallington committed
1462

Jason Rumney's avatar
Jason Rumney committed
1463 1464 1465 1466 1467
2004-04-18  Jason Rumney  <jasonr@gnu.org>

	* w32select.c (Fw32_set_clipboard_data): Get sequence number
	after closing the clipboard.

1468 1469 1470 1471
2004-04-16  Luc Teirlinck  <teirllm@auburn.edu>

	* buffer.c (Fbuffer_base_buffer): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1472 1473
2004-04-17  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488
	* keymap.c (Fkey_description): Add optional PREFIX arg.
	Combine prefix with KEYS to make up the full key sequence to describe.
	Correlate meta_prefix_char and following (simple) key to describe
	as meta modifier.  All callers changed.
	(describe_map): Rename arg `keys' to `prefix'.  Remove local
	`elt_prefix' var.  Use Fkey_description with prefix instead of
	elt_prefix combined with Fsingle_key_description.
	(describe_vector): Declare static.  Replace arg `elt_prefix' with
	`prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
	if !KEYMAP_P. Use Fkey_description with prefix instead of
	Fsingle_key_description.

	* keymap.h (Fkey_description): Fix prototype.
	(describe_vector): Remove prototype.

1489 1490
	* xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.

Kim F. Storm's avatar
Kim F. Storm committed
1491 1492 1493 1494
	* image.c (PNG_BG_COLOR_SHIFT): Remove.
	(png_load): Fix calculation of tr