ChangeLog 753 KB
Newer Older
1 2
2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
3 4
	* lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).

5 6 7 8 9 10 11
	* window.c (window_loop): For LRU and LARGEST, let the `mini' argument
	determine whether to consider dedicated windows as well.
	(Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
	(Fdisplay_buffer): Do consider dedicated windows in those cases where
	we will split the window rather than reuse it.
	Don't try to use windows on other displays.

12 13 14 15
2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>

	* puresize.h (BASE_PURESIZE): Increment to 1170000.

16 17 18 19 20
2005-10-31  Romain Francoise  <romain@orebokech.com>

	* macfns.c: Update copyright year.
	* m/gould.h: Likewise.

Kim F. Storm's avatar
Kim F. Storm committed
21 22 23 24 25 26 27
2005-10-30  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (display_line): Restore it->current_x and call
	extend_face_to_end_of_line when last glyph doesn't fit on line.
	(set_glyph_string_background_width): Remove specific tests  here
	to see if face background should extend to end of line.  Simplify.

28 29 30 31 32 33
2005-10-30  Richard M. Stallman  <rms@gnu.org>

	* alloc.c (BYTES_USED): Use uordblks, not arena.
	(bytes_used_when_reconsidered): New variable.
	(emacs_blocked_free): Set that.

34 35 36 37
2005-10-29  Chong Yidong  <cyd@stupidchicken.com>

	* alloc.c (emacs_blocked_free): Fix typo.

38 39
2005-10-29  Richard M. Stallman  <rms@gnu.org>

40 41
	* data.c (Fmake_variable_frame_local): Doc fix.

42 43 44 45 46 47 48 49 50 51 52
	* xdisp.c (handle_fontified_prop): Do nothing if memory full.
	(format_mode_line_unwind_data): New arg SAVE_PROPTRANS
	controls whether to save and restore mode_line_proptrans_alist.
	Callers changed.
	(unwind_format_mode_line): Work with that feature.
	(redisplay_internal): Don't call prepare_menu_bars if memory full.
	(move_elt_to_front): New function.
	(display_mode_element): Use move_elt_to_front.
	Don't bother munging text props on a null string.
	Delete obsolete elts from mode_line_proptrans_alist.
	(decode_mode_spec): Test Vmemory_full, not spare_memory.
53
	(Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78

	* lisp.h (memory_full_cons_threshold): Declared.
	(internal_lisp_condition_case): Declared.

	* alloc.c (syms_of_alloc) <memory-full>: Doc fix.
	(Fmemory_full_p): Function deleted.
	(syms_of_alloc): Don't defsubr it.
	(memory_full_cons_threshold): New variable.
	(spare_memory): Now a vector of 7 elts.
	(buffer_memory_full): Don't set Vmemory_full here.
	(xfree): Don't try to refill here.
	(emacs_blocked_free): Record BYTES_USED in local var.
	(memory_full): Now free all the slots in spare_memory.
	(refill_memory_reserve): Allocate each slot in spare_memory.
	(init_alloc_once): Call refill_memory_reserve.

	* keyboard.c (command_loop_1): Don't set Vmemory_full here.

	* eval.c (internal_lisp_condition_case): New function.
	(Fcondition_case): Use internal_lisp_condition_case.
	(Feval): Test Vmemory_full and memory_full_cons_threshold.
	(Ffuncall): Likewise.

	* bytecode.c (Fbyte_code): Use internal_lisp_condition_case.

Stefan Monnier's avatar
Stefan Monnier committed
79 80 81 82
2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (Fparse_partial_sexp): Fix docstring.

83 84
2005-10-28  Romain Francoise  <romain@orebokech.com>

Stefan Monnier's avatar
Stefan Monnier committed
85
	* puresize.h (BASE_PURESIZE): Increment to 1130000.
86

87 88 89 90 91 92 93 94 95 96 97 98
2005-10-28  Richard M. Stallman  <rms@gnu.org>

	* xfns.c (syms_of_xfns): Provide `x' as feature.

	* xdisp.c (decode_mode_spec): Define %e to indicate memory full.

	* editfns.c (Fformat): Don't include string padding
	between info[n].start and info[n].end.

	* alloc.c (spare_memory): No longer static.
	(xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.

Stefan Monnier's avatar
Stefan Monnier committed
99
	* puresize.h (BASE_PURESIZE): Increment to 1120000.
100

101 102
2005-10-27  Chong Yidong  <cyd@stupidchicken.com>

Stefan Monnier's avatar
Stefan Monnier committed
103
	* data.c (Fmake_variable_frame_local): Add clarification to docstring.
104

105 106 107
	* fringe.c (update_window_fringes): Handle case where buffer ends
	with a newline.

108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
2005-10-27  Kenichi Handa  <handa@m17n.org>

	* coding.h (DECODE_SYSTEM): Fix argument name; name->str.

2005-10-24  Kenichi Handa  <handa@m17n.org>

	* charset.h (charset_mule_unicode_0100_24ff)
	(charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
	Extern them.

	* charset.c (charset_mule_unicode_0100_24ff)
	(charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
	New variables.
	(Fsetup_special_charsets): Initialize them.

	* xterm.c (handle_one_xevent): Handle keysyms directly mapped to
	supported Unicode characters.

126 127 128 129
2005-10-25  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (w32_to_x_font): Avoid forcing font widths.

130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c [MAC_OS] (image_load_qt_1): Check image size.
	Use GraphicsImportGetImageDescription instead of
	GraphicsImportGetNaturalBounds.
	[MAC_OSX] (image_load_quartz2d): Check image size.
	[MAC_OS] (xpm_load_image): Likewise.

	* macterm.c (last_mouse_glyph_frame): New var.
	(note_mouse_movement): Say mouse moved if current frame differs
	from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
	(XTmouse_position): Set last_mouse_glyph_frame.
	(XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
	(mac_draw_string_common) [MAC_OSX && WORDS_BIG_ENDIAN]: Fix typo.
	Use EndianU16_BtoN.
	(mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
	(x_per_char_metric, XLoadQueryFont)
	[MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
	glyph bounds.
	(mac_to_x_fontname, mac_do_list_fonts)
	(mac_initialize_display_info): Change screen resolutions to 72dpi.

Masatake YAMATO's avatar
Masatake YAMATO committed
152 153 154 155
2005-10-25  Masatake YAMATO  <jet@gyve.org>

	* minibuf.c (Fdisplay_completion_list): Small doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
156 157
2005-10-24  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
158 159 160 161 162 163 164 165
	* xterm.c: Undo 2005-10-23 change.
	(last_mouse_glyph_frame): New var.
	(note_mouse_movement): Say mouse moved if current frame differs
	from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
	(XTmouse_position): Set last_mouse_glyph_frame.
	(handle_one_xevent): Clear last_mouse_glyph_frame [instead of
	last_mouse_glyph] on mouse up/down event.

Kim F. Storm's avatar
Kim F. Storm committed
166 167
	* editfns.c (Fcompare_buffer_substrings): Fix last change.

Stefan Monnier's avatar
Stefan Monnier committed
168 169 170 171
2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>

	* editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.

172 173 174 175 176
2005-10-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (note_mouse_movement): Always call note_mouse_highlight
	so tool tips don't interfere with press on tool bar button.

177 178 179 180 181 182 183 184
2005-10-23  Richard M. Stallman  <rms@gnu.org>

	* casetab.c (Fset_case_table): Doc fix.

	* lread.c (build_load_history): Replace STREAM arg with ENTIRE.
	(readevalloop): Compute ENTIRE properly.
	(syms_of_lread) <load-history>: Doc fix.

185 186 187 188 189 190 191 192
2005-10-21  Richard M. Stallman  <rms@gnu.org>

	* lread.c (Fload): Simplify gcpro structure.
	Gcpro FOUND as well as FILE, but not EFOUND.
	Unless preloading, record FOUND instead of FILE in Vload_history.
	Rename repeat local FILE to MSG_FILE.
	(syms_of_lread) <load-history>: Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
193 194
2005-10-21  Kenichi Handa  <handa@m17n.org>

Kim F. Storm's avatar
Kim F. Storm committed
195
	* search.c (boyer_moore): Add parens to fix and/or precedence bug.
Kenichi Handa's avatar
Kenichi Handa committed
196

Kim F. Storm's avatar
Kim F. Storm committed
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
2005-10-20  Kim F. Storm  <storm@cua.dk>

	* buffer.c (clone_per_buffer_values): Remove unused var tem.
	(init_buffer): Remove unused vars dotstat, pwdstat.

	* ccl.c (check_ccl_update): Remove unused var vp.

	* fileio.c (auto_save_error): Call SAFE_FREE.

	* fns.c (Fchar_table_range): Remove unused var i.

	* minibuf.c (display_completion_list_1): New wrapper function
	for Fdisplay_completion_list.
	(Fminibuffer_completion_help): Use it.

	* term.c (encode_terminal_code): Remove unused var src_start.

	* window.c (Fwindow_tree): Remove unused var alist.

	* xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.

Eli Zaretskii's avatar
Eli Zaretskii committed
218 219 220 221 222
2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)

	* unexelf.c (unexec): Fix calls to `fatal' with less than 3
	arguments.

Eli Zaretskii's avatar
Eli Zaretskii committed
223 224 225 226
2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)

	* syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.

227 228 229 230
2005-10-20  Andreas Schwab  <schwab@suse.de>

	* minibuf.c (Fdisplay_completion_list): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
231 232 233 234 235 236
2005-10-19  Kim F. Storm  <storm@cua.dk>

	* image.c (check_image_size): Handle integer Vmax_image_size value
	directly as max pixel value.  Use default frame size for null frame.
	(syms_of_image) <max-image-size>: Describe integer value.

237 238 239 240
2005-10-19  Romain Francoise  <romain@orebokech.com>

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

241 242 243 244 245 246 247 248 249 250 251 252
2005-10-18  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (Vmax_image_size): New variable.
	(check_image_size): New function.
	(xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
	(gif_load, gs_load): Use it.
	(lookup_image): Try loading again if previous load failed.
	(xbm_read_bitmap_data): Add a new argument, a pointer to the frame
	to display in, NULL if none.
	(xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
	argument.

253 254 255 256
2005-10-18  Richard M. Stallman  <rms@gnu.org>

	* search.c (Fstring_match): Doc fix.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
257 258 259 260 261 262 263
2005-10-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (note_mouse_movement): Use PtInRect.
	(XTread_socket): Also ignore mouse motion just before a button
	release event.  Don't process button release event when mouse is
	not grabbed.

264 265 266
2005-10-16  Masatake YAMATO  <jet@gyve.org>

	* minibuf.c (Fdisplay_completion_list): Add new optional
Stefan Monnier's avatar
Stefan Monnier committed
267
	argument COMMON_SUBSTRING.  Bind `completion-common-substring'
268 269
	to the optional argument during running `completion-setup-hook'.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
	Allow nil as argument.
	 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
	for encoding arguments as UTF-16 in native byte order, no BOM.

	* macfns.c (Fx_create_frame): Add debugging code.
	(Fx_show_tip): Set frame pixel width and height.

	* macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
	(FRAME_NORMAL_GC): New macro.
	(mac_draw_line, mac_clear_area, mac_clear_window)
	(mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
	(mac_draw_image_string, mac_draw_image_string_16): Rename from
	XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
	XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
	All uses changed.
	(mac_draw_line, mac_erase_rectangle, mac_clear_area)
	(mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
	(mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
	(mac_draw_string_16, mac_draw_image_string)
	(mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
	(mac_scroll_area): Drawing functions now take frame as destination.
	All uses changed.
	(mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
	(x_draw_fringe_bitmap): Set clipping area in face->gc.

	* macterm.h (mac_clear_area): Add extern.

300 301 302 303 304 305 306
2005-10-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
	changes for xterm.c.

	* w32term.c (note_mouse_movement, w32_read_socket): Likewise.

307 308 309 310 311 312 313 314 315
2005-10-14  Kenichi Handa  <handa@m17n.org>

	* search.c (search_buffer): Give up BM search on case-fold-search
	if one of a target character has a case-equivalence of different
	charset even if that target charcter is an ASCII.

	* casefiddle.c (casify_object): Fix for the case that case
	conversion change the byte length.

Kim F. Storm's avatar
Kim F. Storm committed
316 317 318 319 320 321 322 323 324 325 326 327 328
2005-10-14  Kim F. Storm  <storm@cua.dk>

	* xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
	(handle_one_xevent): Only clear help_echo_string; restore it if
	note_mouse_movement didn't record any mouse movement.

	* xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
	(remember_mouse_glyph): Clear RECT if mouse is over an image glyph.

	* keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
	(Fposn_at_x_y): Fix calculation of x coordinate.
	(Fposn_at_point): Return nil if point is hscrolled out of view.

329 330 331 332 333
2005-10-13  Andreas Schwab  <schwab@suse.de>

	* sysdep.c (request_sigio, unrequest_sigio): Do nothing in
	non-interactive mode.

334 335 336 337
2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.

Kim F. Storm's avatar
Kim F. Storm committed
338 339 340 341
2005-10-12  Kim F. Storm  <storm@cua.dk>

	* xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.

342 343 344 345
2005-10-12  Romain Francoise  <romain@orebokech.com>

	* buffer.c (init_buffer): Rename `rc' to `len' for clarity.

346 347 348 349 350
2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
	get end of text rows.  Obtain header-line/mode-line rows directly.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
351 352 353
	* xterm.c, w32term.c, macterm.c (note_mouse_movement): Restore
	help_echo_string if mouse is moved inside last_mouse_glyph.

Kim F. Storm's avatar
Kim F. Storm committed
354 355
2005-10-12  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
	* xdisp.c (remember_mouse_glyph): New generic version based on
	glyph_rect and remember_mouse_glyph from xterm.c enhanced to
	properly handle all different window areas.

	* dispextern.h (remember_mouse_glyph): Add prototype.

	* xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
	(note_mouse_movement, XTmouse_position): Use generic
	remember_mouse_glyph, add last_mouse_glyph arg.

	* w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
	(glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
	(note_mouse_movement, w32_mouse_position): Use generic
	remember_mouse_glyph, add last_mouse_glyph arg.

	* macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
	(glyph_rect, remember_mouse_glyph): Remove mac specific versions.
	(XTmouse_position): Adapt to use generic remember_mouse_glyph
	instead of pixel_to_glyph_coords.

Kim F. Storm's avatar
Kim F. Storm committed
376 377 378
	* window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
	Fix x position for ON_TEXT when left margin width > 0.

Kim F. Storm's avatar
Kim F. Storm committed
379 380
2005-10-11  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
381
	* window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
Kim F. Storm's avatar
Kim F. Storm committed
382 383 384 385

	* keyboard.c (make_lispy_position): Fix buffer calculations for
	mouse click or movement in right fringe and the margins.

Juanma Barranquero's avatar
Juanma Barranquero committed
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401
2005-10-11  Juanma Barranquero  <lekktu@gmail.com>

	* image.c (fn_jpeg_stdio_src): Don't define it.
	(init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
	(our_common_init_source): Rename from `our_init_source'.
	(our_common_term_source): Rename from `our_term_source'.
	(our_memory_fill_input_buffer): Rename from
	`our_fill_input_buffer'.
	(our_memory_skip_input_data): Rename from `our_skip_input_data'.
	(jpeg_memory_src): Use the new names.
	(struct jpeg_stdio_mgr): New struct.
	(JPEG_STDIO_BUFFER_SIZE): New constant.
	(our_stdio_fill_input_buffer, our_stdio_skip_input_data)
	(jpeg_file_src): New functions.
	(jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.

402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
2005-10-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (PER_CHAR_METRIC): Remove unused macro.
	(fm_font_family_alist): New variable.
	(syms_of_macterm): Initialize and staticpro it.
	(decode_mac_font_name): Replace '-' in family name with '_' if it
	occurs just once.  Lower family name.
	(parse_x_font_name): Rename from x_font_name_to_mac_font_name.
	All uses changed.  Remove argument MF and code conversion for it.
	Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
	to CHARSET.  Parse font size.  Lower family name.  Return integer
	value for status of parsing.
	(init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
	Don't use Fdowncase because family name is already lowered by
	decode_mac_font_name.
	(init_font_name_table): Always call decode_mac_font_name.  Add
	pair of family name and its reference to fm_font_family_alist.
	(mac_clear_font_name_table): Clear fm_font_family_alist.
	(XLoadQueryFont): Move font size parsing part to parse_x_font_name.
	Lookup fm_font_family_alist to get font family reference.
	(XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
	name is already lowered by parse_x_font_name.

Kim F. Storm's avatar
Kim F. Storm committed
425 426
2005-10-11  Kim F. Storm  <storm@cua.dk>

427 428
	* xterm.c (glyph_rect): Return 0 if position is outside text area.

Kim F. Storm's avatar
Kim F. Storm committed
429 430 431
	* keyboard.c (make_lispy_position): Fix buffer position calculation for
	mouse click or movement in fringe.

432 433 434
2005-10-10  Jason Rumney  <jasonr@gnu.org>

	* xterm.c (remember_mouse_glyph): New function.
Kim F. Storm's avatar
Kim F. Storm committed
435
	(note_mouse_movement): Use it to remember the current glyph if changed.
436
	(XTmouse_position): Fix calculation of fake glyph under mouse.
Kim F. Storm's avatar
Kim F. Storm committed
437
	Move code to calculate glyph under mouse into remember_mouse_glyph.
438

Jan Djärv's avatar
Jan Djärv committed
439 440
2005-10-10  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Kim F. Storm's avatar
Kim F. Storm committed
441
	* emacs.c (USAGE3, standard_args): -nb => -nbi.
Jan Djärv's avatar
Jan Djärv committed
442

Juanma Barranquero's avatar
Juanma Barranquero committed
443 444 445 446 447 448 449
2005-10-10  Juanma Barranquero  <lekktu@gmail.com>

	* frame.c (Fredirect_frame_focus): Fix typos in docstring.
	(next_frame, prev_frame, set_term_frame_name): Make static.

	* window.c (Fwindow_tree): Fix spelling.

450 451 452 453
2005-10-09  Romain Francoise  <romain@orebokech.com>

	* window.c (Fwindow_end): Don't try to redisplay if non-interactive.

454 455
2005-10-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Kim F. Storm's avatar
Kim F. Storm committed
456 457
	* emacs.c (standard_args): Remove options -i, -itype, --icon-type.
	Add options -nb, --no-bitmap-icon.
458 459 460

	* xfns.c (Fx_create_frame): Make bitmapIcon have default on.

461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
2005-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macgui.h (MAX_CLIP_RECTS): New define.
	(struct _XGC): New member clip_region.
	(struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
	clip_rects.

	* macterm.c (GC_CLIP_REGION): New macro.
	(saved_port_clip_region): New variable.
	(mac_begin_clip, mac_end_clip): New functions.
	(XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
	(mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
	(mac_copy_area_with_mask, mac_scroll_area): Use them.
	(mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
	[USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
	[MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
	(mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
	rectangles stored in gc.
479
	(XFreeGC): Dispose of clipping region.
480 481 482 483 484 485 486 487 488 489
	(mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
	(x_draw_fringe_bitmap, x_set_glyph_string_clipping)
	(x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
	(x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
	(x_draw_bar_cursor): Use them.
	(x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
	get multiple clipping rectangles.

	* macterm.h (mac_term_init): Add types to extern.
	(struct mac_output): Remove members mWP and pending_menu_activation.
Romain Francoise's avatar
Romain Francoise committed
490
	Put members scroll_bar_foreground_pixel and
491 492 493 494
	scroll_bar_background_pixel in #if 0.
	(FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.

	* xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
495
	Add debugging code.
496

Kim F. Storm's avatar
Kim F. Storm committed
497 498 499 500
2005-10-08  Kim F. Storm  <storm@cua.dk>

	* window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.

Kim F. Storm's avatar
Kim F. Storm committed
501 502 503 504 505 506
2005-10-07  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
	[!HAVE_WINDOW_SYSTEM]: Don't declare them...
	(update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.

507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
2005-10-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* dispextern.h (struct glyph_string): Rename member for_overlaps_p
	to for_overlaps.  Now occupy 3 bits.
	(OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
	(OVERLAPS_ERASED_CURSOR): New defines.
	(struct redisplay_interface): Add new OVERLAPS arg to member
	fix_overlapping_area.
	(x_fix_overlapping_area): Add new OVERLAPS arg.
	(get_glyph_string_clip_rects): Add extern.

	* dispnew.c (redraw_overlapping_rows): Call
	rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.

	* xdisp.c: Rename member for_overlaps_p in struct glyph_string to
	for_overlaps.
	(get_glyph_string_clip_rects): New function created from
Kim F. Storm's avatar
Kim F. Storm committed
524 525
	get_glyph_string_clip_rect.  Set clipping rectangles according to the
	value of for_overlaps.  Enable to store multiple clipping rectangles.
526 527 528
	(get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
	(fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
	Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
Romain Francoise's avatar
Romain Francoise committed
529
	(x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to draw_glyphs.
530
	(draw_phys_cursor_glyph): Set width of erased cursor to use it for
Kim F. Storm's avatar
Kim F. Storm committed
531 532
	calculating clipping rectangles later.  Call x_fix_overlapping_area
	with new OVERLAPS arg to draw only erased cursor area.
Romain Francoise's avatar
Romain Francoise committed
533
	(expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
Kim F. Storm's avatar
Kim F. Storm committed
534
	to draw overlaps in both preceding and succeeding rows.
535 536 537 538

	* xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
	struct glyph_string to for_overlaps.

539 540 541 542 543
2005-10-04  Richard M. Stallman  <rms@gnu.org>

	* alloc.c (refill_memory_reserve): Conditionalize the body,
	not the function's existence.

Kim F. Storm's avatar
Kim F. Storm committed
544 545 546 547 548 549
2005-10-04  Kim F. Storm  <storm@cua.dk>

	* window.c (window_split_tree): New function.
	(Fwindow_split_tree): New defun.
	(syms_of_window): Defsubr it.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
550 551 552 553 554
2005-10-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (mac_invert_rectangle): New function.
	(XTflash): Use it.

555 556
2005-10-04  Stefan Monnier  <monnier@iro.umontreal.ca>

557 558 559 560 561 562
	* regex.h (re_char): Don't expose it in the interface.
	(re_set_whitespace_regexp): Adjust the arg's type to not use it.

	* regex.c (re_char): Move it back here.
	(re_set_whitespace_regexp): Change the arg's type to not use it.

563 564 565 566
	* keyboard.c (make_lispy_event): If point has moved between down and up
	event, make it a drag, not a click, to mirror what
	mouse-drag-region expects.

567 568 569 570 571
2005-10-02  Dan Nicolaescu  <dann@ics.uci.edu>

	* lisp.h (fatal): Undo previous change.
	* term.c (fatal): Undo previous change.

572 573 574 575
2005-10-01  Richard M. Stallman  <rms@gnu.org>

	* xfaces.c (face_color_gray_p): Colors close to black count as gray.

Kim F. Storm's avatar
Kim F. Storm committed
576 577 578 579
2005-10-01  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (try_window): Skip scroll-margin check if ZV is visible.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
580 581 582 583 584
2005-10-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.

	* macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
585
	(x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
586 587
	(Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
	Try ATSUI-compatible 12pt Monaco font first.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607

	* macgui.h (struct _XCharStruct): New member valid_p.
	(STORE_XCHARSTRUCT): Set valid_p.
	(struct MacFontStruct) [USE_ATSUI]: New member mac_style.

	* macterm.c (mac_draw_string_common, x_per_char_metric)
	(mac_compute_glyph_string_overhangs, init_font_name_table)
	(XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
	(atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
	(x_draw_glyph_string_background)
	(x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
	XDrawImageString.  Always draw background and foreground separately.
	(x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
	functions for one-byte chars when using ATSUI-compatible fonts.
	(atsu_font_id_hash) [USE_ATSUI]: New variable.
	(syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
	(XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
	max_char_or_byte2 more in detail.
	(quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.

608 609
2005-09-30  Dan Nicolaescu  <dann@ics.uci.edu>

610
	* image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
611 612 613 614 615 616
	* xterm.c (handle_one_xevent, handle_one_xevent): Likewise.

	* unexelf.c (fatal): Fix prototype.

	* term.c (fatal): Implement using varargs.

Kim F. Storm's avatar
Kim F. Storm committed
617
	* regex.c (re_char): Move typedef ...
618
	* regex.h (re_char): ... here.
619
	(re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
620 621 622 623 624 625 626 627 628 629 630 631

	* emacs.c (malloc_set_state): Fix return type.
	(endif): Fix type.

	* lisp.h (fatal): Add argument types.

	* dispextern.h (fatal): Delete prototype.

	* systime.h: (make_time): Prototype moved from ...
	* editfns.c (make_time): ... here.

	* editfns.c: Move systime.h include after lisp.h.
Kim F. Storm's avatar
Kim F. Storm committed
632 633
	* dired.c:
	* xsmfns.c:
634
	* process.c: Likewise.
Kim F. Storm's avatar
Kim F. Storm committed
635

636 637 638 639 640
	* alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
	Add parameter types.
	(__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
	(emacs_blocked_free): Change definition to match __free_hook.
	(emacs_blocked_malloc): Change definition to match __malloc_hook.
641
	(emacs_blocked_realloc): Change definition to match __realloc_hook.
642

643 644 645 646 647
2005-09-30  Romain Francoise  <romain@orebokech.com>

	* minibuf.c (Fread_buffer): Follow convention for reading from the
	minibuffer with a default value.  Doc fix.

Juri Linkov's avatar
Juri Linkov committed
648 649 650 651 652 653
2005-09-29  Juri Linkov  <juri@jurta.org>

	* editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
	Rename argument name `string' to `format-string'.
	(Fformat): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
654 655 656 657 658 659
2005-09-28  Kim F. Storm  <storm@cua.dk>

	* image.c (gif_load): Fix size of allocated image buffer
	for images where a sub-image may be larger than the image's
	total height/width specifications.

660 661 662 663
2005-09-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macgui.h (struct _XCharStruct): Each member now takes short value.

664 665 666 667 668 669 670 671 672 673 674 675
2005-09-27  Dan Nicolaescu  <dann@ics.uci.edu>

	* xfaces.c (lookup_derived_face): Add parameter type.

	* xdisp.c (cursor_row_fully_visible_p): Add parameter type.

	* marker.c (verify_bytepos): Add parameter type.

	* process.c (get_operating_system_release): Move prototype ...

	* systime.h (get_operating_system_release): ... here.

Juanma Barranquero's avatar
Juanma Barranquero committed
676 677 678
	* xterm.c (handle_one_xevent): Refer to union field to match the
	type required by the function definition.
	(set_vertical_scroll_bar): Move prototype ...
679 680 681 682 683 684

	* xterm.h: ... here.

	* fns.c (internal_equal, seed_random): Fix prototypes.
	(internal_equal): Add missing parameter.

685 686 687 688 689 690
2005-09-25  Richard M. Stallman  <rms@gnu.org>

	* keyboard.c (update_menu_bindings): Variable deleted.
	(syms_of_keyboard): Don't defvar it.
	(parse_menu_item): Don't test it.

691 692 693 694 695
2005-09-23  Richard M. Stallman  <rms@gnu.org>

	* editfns.c (Fformat): Explicitly test for end of format string
	and don't use `index'.

696 697
2005-09-23  Dan Nicolaescu  <dann@ics.uci.edu>

698 699
	* s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
	Define BROKEN_GET_CURRENT_DIR_NAME.
700 701

	* sysdep.c (get_current_dir_name): Also define if
Kim F. Storm's avatar
Kim F. Storm committed
702
	BROKEN_GET_CURRENT_DIR_NAME.
703 704 705

	* m/ibmrs6000.h: Test for USG5, not USG5_4.

Kim F. Storm's avatar
Kim F. Storm committed
706 707 708 709 710 711 712
2005-09-22  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (message_dolog): Add warning about GC and Lisp strings.
	(message2): Fix commentary.  Ok to use alloca'ed memory.
	Still not ok to use Lisp string data (because of GC).
	(set_message): Add comment why GC cannot happen.

713 714 715 716 717 718
2005-09-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (xlfdpat_block_match_1): Fix assertion.
	(init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
	variants for a scalable font multiple times.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
719 720 721 722 723
2005-09-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
	Setup slave tty options before forking.

724 725 726 727 728 729
2005-09-20  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
	positions have been set for the frame (as is done for frames in
	special-display-buffer-names).

Kim F. Storm's avatar
Kim F. Storm committed
730 731 732 733 734
2005-09-19  Kim F. Storm  <storm@cua.dk>

	* editfns.c (Fformat): Don't scan past end of format string that
	ends in %.  Reported by: Johan Bockg,Ae(Brd.

735 736 737 738 739 740 741
2005-09-18  Andreas Schwab  <schwab@suse.de>

	* window.h (struct window): Remove height_fixed_p, no longer set.

	* window.c (make_window): Don't initialize height_fixed_p.
	(window_fixed_size_p): Don't use it.

742 743 744 745
2005-09-18  John Paul Wallington  <jpw@pobox.com>

	* data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
746 747 748 749 750 751 752 753 754 755 756
2005-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.

	* macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
	New variables.
	[TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
	file selection.

	* sysdep.c [MAC_OS8]: Don't include stdlib.h.  Include sys/param.h.

757 758 759 760 761
2005-09-17  Eli Zaretskii  <eliz@gnu.org>

	* Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
	(obj): Use XMENU_OBJ, not a literal xmenu.o.

762 763
2005-09-16  Romain Francoise  <romain@orebokech.com>

764
	* fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
765

766 767 768 769 770 771 772 773 774 775 776 777 778
2005-09-15  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
	(display_mode_element): Instead of `lisp_string' and `this',
	record `offset' and increment that.
	`last_offset' replaces `last'.

	* Makefile.in (XMENU_OBJ): Variable deleted.
	(obj): Use xmenu.o unconditionally.
	(SOME_MACHINE_OBJECTS): Delete xmenu.o.

	* emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.

Kim F. Storm's avatar
Kim F. Storm committed
779 780 781 782 783
2005-09-15  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
	(reseat_at_next_visible_line_start): Likewise (in xassert).

784 785 786 787 788 789
2005-09-14  Romain Francoise  <romain@orebokech.com>

	* fileio.c (write_region_inhibit_fsync): New variable.
	(Fwrite_region): Use it to skip call to fsync.
	(syms_of_fileio): Initialize it.

790 791
2005-09-14  Kenichi Handa  <handa@m17n.org>

792 793 794 795 796
	* coding.c (code_convert_region_unwind): Argument format changed.
	(run_pre_post_conversion_on_str): If pre-write-conversion function
	changed the current buffer, delete the new buffer.
	(run_pre_write_conversin_on_c_str): Likewise.

797 798 799
	* fileio.c (Fexpand_file_name): Check multibyteness of
	default_directory.

800 801 802 803 804 805
2005-09-13  Kenichi Handa  <handa@m17n.org>

	* composite.c (compose_chars_in_text): Delete it.

	* composite.h (compose_chars_in_text): Delete extern.

Kim F. Storm's avatar
Kim F. Storm committed
806 807 808 809
2005-09-13  Kim F. Storm  <storm@cua.dk>

	* print.c (print_error_message): Fix last change.

Kim F. Storm's avatar
Kim F. Storm committed
810 811
2005-09-12  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
812 813 814
	* composite.c (compose_chars_in_text): Fix setup of `pend'.
	Unconditionally reload `ptr' and `pend' after eval.

Kim F. Storm's avatar
Kim F. Storm committed
815 816 817 818 819 820 821
	* xdisp.c (message3): Pass copy of lisp string to message_dolog.

	* print.c (print_error_message): Pass copy of caller name to
	message_dolog.

	* fileio.c (auto_save_error): Pass copy of lisp string to message2.

822 823 824 825 826
2005-09-12  Kenichi Handa  <handa@m17n.org>

	* xdisp.c (display_mode_element): Be sure to make variables THIS
	and LISP_STRING point into a string data of ELT.

Kim F. Storm's avatar
Kim F. Storm committed
827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846
2005-09-12  Kim F. Storm  <storm@cua.dk>

	* editfns.c (Ftranslate_region_internal): Reload `tt' after
	signal_after_change that may have GC'ed.
	(Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.

	* keymap.c (Fdescribe_buffer_bindings): Reload `translate'
	after insert while runs signal_after_change.

	* minibuf.c (Fminibuffer_complete_word): Move `completion_string'
	declaration to where it is used.

	* w32.c (check_windows_init_file): Fix allocation of error buffer.

	* xfns.c (x_encode_text): Declare static.  Add FREEP arg.
	(x_set_name_internal): Call x_encode_text with new FREEP arg to
	know if xfree is needed instead of guessing.

	* xterm.h (x_encode_text): Remove prototype.

847 848 849 850
2005-09-11  Chris Prince  <cprince@gmail.com>  (tiny change)

	* w32term.c (x_bitmap_icon): Load small icons too.

851 852 853
2005-09-10  Romain Francoise  <romain@orebokech.com>

	* buffer.c (init_buffer): Grow buffer to add directory separator
Romain Francoise's avatar
Romain Francoise committed
854
	and terminal zero.  Fix typos.
855

Eli Zaretskii's avatar
Eli Zaretskii committed
856 857
2005-09-10  Eli Zaretskii  <eliz@gnu.org>

858 859 860 861 862 863 864 865 866
	* buffer.c (init_buffer): Fix error message for failed call to
	get_current_dir_name.
	(get_current_dir_name): Remove prototype.

	* xsmfns.c: (get_current_dir_name): Remove prototype.

	* lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add
	prototype.

Eli Zaretskii's avatar
Eli Zaretskii committed
867
	* sysdep.c [WINDOWSNT]: Add prototype for getwd.
868
	Don't #undef NULL after including blockinput.h.
Eli Zaretskii's avatar
Eli Zaretskii committed
869

Eli Zaretskii's avatar
Eli Zaretskii committed
870 871
	* config.in: Regenerated.

872 873 874 875
2005-09-10  Giuseppe Scrivano  <gscrivano@gmail.com>

	Remove the MAXPATHLEN limitations:

Eli Zaretskii's avatar
Eli Zaretskii committed
876 877
	* sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
	New function.
878 879 880 881 882

	* buffer.c (init_buffer): Use it.

	* xsmfns.c (smc_save_yourself_CB): Ditto.

Kim F. Storm's avatar
Kim F. Storm committed
883 884
2005-09-09  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
885 886 887
	* doc.c (Fsubstitute_command_keys): Lookup key binding for
	commands that are remapped from some other command.

Kim F. Storm's avatar
Kim F. Storm committed
888 889 890
	* xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
	flag in disabled rows below the window.

Kim F. Storm's avatar
Kim F. Storm committed
891 892 893 894 895
	* frame.h (struct frame): New member updated_p.

	* xdisp.c (redisplay_internal): Mark updated frames in new updated_p
	member.  Remove local `updated' array and associated variables.

Kim F. Storm's avatar
Kim F. Storm committed
896 897
2005-09-07  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
898 899
	* xdisp.c (handle_display_prop): Respect overlay window property.

Kim F. Storm's avatar
Kim F. Storm committed
900 901 902
	* xdisp.c (try_window): Remove superfluous cursor_height calculation.
	Fixes crash reported by YAMAMOTO Mitsuharu.

903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918
2005-09-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
	(xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
	(xlfdpat_block_match_1, xlfdpat_match): New functions.
	(xlfdpat_block_match): New macro.
	(mac_to_x_fontname): Don't use tolower for non-ASCII characters.
	(x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
	(add_font_name_table_entry): Increase font_name_table_size more
	rapidly.
	(mac_c_string_match): Remove function.
	(mac_do_list_fonts): Use XLFD pattern match instead of regular
	expression match.

	* xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.

919 920 921 922 923 924 925 926 927 928
2005-09-03  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (redisplay_internal): Make UPDATED as long as needed.
	(move_it_in_display_line_to): Stop after last char on line even
	on a windowing terminal, if that's the specified stop position.

	* fns.c (Fsort): Doc fix.

	* editfns.c (Fpropertize): Don't insist that properties be symbols.

Stefan Monnier's avatar
Stefan Monnier committed
929 930 931 932 933 934 935 936
2005-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>

	* dired.c (directory_files_internal_unwind, directory_files_internal)
	(file_name_completion): Use a Save_Value object rather than a cons of
	two 16bit ints to store the DIR*.
	(directory_files_internal, file_name_completion): Handle both EINTR and
	EAGAIN consistently after `readdir'.

Stefan Monnier's avatar
Stefan Monnier committed
937 938
2005-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
939 940
	* intervals.c (update_interval): Add position info in error.

Stefan Monnier's avatar
Stefan Monnier committed
941 942 943
	* dispnew.c (window_to_frame_hpos, update_window):
	Avoid gcc warning about unused variable `f'.

Jason Rumney's avatar
Jason Rumney committed
944 945 946 947 948
2005-08-31  Jason Rumney  <jasonr@gnu.org>

	* w32menu.c (add_menu_item): If unicode_append_menu returns an
	error, revert to using AppendMenu.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
949 950
2005-08-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

Stefan Monnier's avatar
Stefan Monnier committed
951 952
	* image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
	All uses changed.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
953 954 955
	[MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
	cases.
	(x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
Stefan Monnier's avatar
Stefan Monnier committed
956 957
	[MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
	Use posix_pathname_to_fsspec.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
958 959 960 961 962 963 964
	[MAC_OS] (xpm_load_image): Fill in background_transparent field
	while we have mask.

	* macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.

	* macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.

965 966 967 968 969 970
2005-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* syntax.c (update_syntax_table): Properly reproduce the special +1
	setting of e_property at the end of the buffer when bumping into the
	INTERVALS_AT_ONCE limit.

Eli Zaretskii's avatar
Eli Zaretskii committed
971 972 973 974
2005-08-27  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (USAGE1): Fix the description of the -Q option.

975 976 977 978
2005-08-26  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).

Kim F. Storm's avatar
Kim F. Storm committed
979 980 981 982 983
2005-08-26  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (resize_mini_window): Fix 2005-08-20 change.
	Don't move PT to new window start.

984 985 986 987 988
2005-08-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
	ICONIFY/DEICONIFY_EVENT.

989 990
	* macterm.c (mac_copy_area, mac_copy_area_with_mask):
	Restore background color.
991 992 993 994
	(mac_handle_visibility_change): New function.
	(x_make_frame_invisible, x_iconify_frame)
	(XTread_socket) [!USE_CARBON_EVENTS]: Use it.
	[USE_CARBON_EVENTS] (mac_handle_window_event)
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
995
	(install_window_handler): Handle visibility change events.
996 997 998 999 1000 1001 1002 1003 1004
	(x_make_frame_visible): Don't reposition window if it is iconified
	or asked for visible before.  Select and uncollapse window when it
	is made visible.
	(x_make_frame_invisible): Don't reset x_highlight_frame.
	(x_iconify_frame): Likewise.  Make invisible frame visible before
	it is iconified.
	(read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
	(do_window_update): Don't change visibility of invisible frame.

Juri Linkov's avatar
Juri Linkov committed
1005 1006 1007 1008 1009
2005-08-22  Juri Linkov  <juri@jurta.org>

	* term.c (turn_on_face): Check for TS_set_foreground and
	TS_set_background depending on standout_mode.  Simplify.

Kim F. Storm's avatar
Kim F. Storm committed
1010 1011
2005-08-21  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1012 1013 1014
	* fringe.c (update_window_fringes): Only put TOP and BOTTOM
	bitmaps on fully visible rows.

Kim F. Storm's avatar
Kim F. Storm committed
1015 1016 1017 1018 1019 1020 1021
	* fringe.c (update_window_fringes): Replace FORCE_P arg with
	KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
	and return 0.

	* xdisp.c (redisplay_window): Call update_window_fringes with
	KEEP_CURRENT_P non-0 if we are going to refresh fringes later.

1022 1023 1024 1025 1026 1027
2005-08-20  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (display_echo_area_1): Get display start pos from w->start.
	(resize_mini_window): Set w->start, and PT, so as to display the tail
	end of the buffer, if it doesn't all fit.

Kim F. Storm's avatar
Kim F. Storm committed
1028 1029 1030 1031 1032
2005-08-18  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (calc_pixel_width_or_height): Use actual display
	resolution when available instead of Vdisplay_pixels_per_inch.

Kim F. Storm's avatar
Kim F. Storm committed
1033 1034 1035 1036 1037 1038 1039
2005-08-17  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.

	* dispnew.c (buffer_posn_from_coords): Check that target row is
	within matrix.

1040 1041 1042 1043 1044 1045 1046
2005-08-16  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
	xg_set_frame_icon and call it.

	* gtkutil.c (xg_set_frame_icon): New function.

Kim F. Storm's avatar
Kim F. Storm committed
1047
	* gtkutil.h (xg_set_frame_icon): Declare it.
1048

Kim F. Storm's avatar
Kim F. Storm committed
1049 1050 1051 1052 1053 1054 1055
2005-08-16  Kim F. Storm  <storm@cua.dk>

	* dispnew.c (increment_row_positions): Skip non-enabled rows.

	* window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
	(Fcurrent_window_configuration): Use VECSIZE macro instead.

1056 1057 1058 1059
2005-08-15  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (message3_nolog): Clear echo_message_buffer.

Kim F. Storm's avatar
Kim F. Storm committed
1060 1061
2005-08-15  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1062 1063
	* lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.

Kim F. Storm's avatar
Kim F. Storm committed
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
	* process.c (deactivate_process, status_notify, read_process_output)
	(update_status, status_convert, decode_status, allocate_pty)
	(make_process, remove_process, list_processes_1)
	(create_process_1, unwind_request_sigio, read_process_output)
	(send_process, keyboard_bit_set): Declare static.
	(Fdelete_process): Simplify.  Pass process to status_notify, so we
	don't try to read output from it.
	(status_notify): New arg deleting_process--don't try to read
	output from that process.

	* lisp.h (deactivate_process, status_notify, read_process_output):
	Remove prototypes.

1077 1078
2005-08-14  Richard M. Stallman  <rms@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
1079 1080
	* image.c (syms_of_image): Init Qxbm, Qpbm before calling
	define_image_type.
1081

1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093
2005-08-13  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
	(xg_get_image_for_pixmap): Move some code to
	xg_get_pixbuf_from_pix_and_mask, and call it.

	* gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.

	* xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
	to get an GTK icon and set it with GTK functions to avoid having GTK
	override an icon set with just X functions.

1094 1095
2005-08-11  Richard M. Stallman  <rms@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
1096 1097
	* image.c (syms_of_image): Init image_types here, and call
	define_image_type.
1098 1099
	(init_image): Not here.

1100 1101 1102 1103 1104 1105
2005-08-09  Richard M. Stallman  <rms@gnu.org>

	* bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.

	* lisp.h (QUIT): Throw t to Vthrow_on_input.

1106 1107 1108 1109
2005-08-09  Thien-Thi Nguyen  <ttn@gnu.org>

	* floatfns.c (Fexpt): Use floats for negative exponent.

1110 1111 1112 1113 1114
2005-08-08  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
	should not be there, causing menu display errors with GTK 2.6.9.

1115 1116
2005-08-07  Richard M. Stallman  <rms@gnu.org>

1117 1118
	* floatfns.c (Fexpt): Undo previous change.

1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129
	* dispnew.c (Fframe_or_buffer_changed_p): Take an arg
	so it can be used with various state vectors.

	* emacs.c (endif): Convert -script into -scriptload.
	(standard_args): Add -scriptload.  Allow -basic-display with one dash.

	* fns.c (syms_of_fns): Add `emacs' to features.

	* term.c (set_terminal_modes): If no TS_termcap_modes string,
	output newlines to scroll the old screen contents off the screen.

1130 1131
2005-08-06  Thien-Thi Nguyen  <ttn@gnu.org>

1132 1133
	* floatfns.c (Fexpt): Use floats for negative exponent.
	Reported by D Goel.
1134

1135 1136 1137 1138
2005-08-02  Richard M. Stallman  <rms@gnu.org>

	* frame.c (Fframe_char_width): Doc fix.

1139 1140 1141 1142 1143
2005-07-30  Juanma Barranquero  <lekktu@gmail.com>

	* xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
	Defvar it.

1144 1145 1146 1147 1148 1149 1150 1151
2005-07-28  Juanma Barranquero  <lekktu@gmail.com>

	* w32fns.c (my_set_window_pos, my_show_window): Don't declare.
	(my_create_window, my_create_tip_window): Make static.

	* w32term.c (my_show_window, my_set_window_pos, my_set_focus)
	(my_set_foreground_window, my_destroy_window): Make static.

1152 1153 1154 1155 1156 1157 1158
2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>

	Merge gnulib getopt implementation into Emacs.

	* s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
	now part of lib-src.

1159 1160 1161 1162
2005-07-26  Stefan Monnier  <monnier@iro.umontreal.ca>

	* eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).

1163 1164 1165 1166 1167
2005-07-25  Jason Rumney  <jasonr@gnu.org>

	* w32menu.c (w32_menu_display_help): Suppress tooltip when
	navigating menus with the keyboard.

1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186
2005-07-23  Richard M. Stallman  <rms@gnu.org>

	* insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.

	* bytecode.c (MAYBE_GC): Test gc_cons_threshold and
	gc_relative_threshold, one by one.

	* keyboard.c (read_char): Test gc_cons_threshold.
	(syms_of_keyboard): staticpro Qecho_area_clear_hook.

	* eval.c (Feval, Ffuncall): Test gc_cons_threshold and
	gc_relative_threshold, one by one.

	* alloc.c (gc_cons_threshold): Not static.
	(gc_cons_combined_threshold): Var deleted.
	(gc_relative_threshold): New variable.
	(Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
	instead of gc_cons_combined_threshold.

1187
	* lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
1188 1189
	(gc_cons_combined_threshold): Declaration deleted.

1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219
2005-07-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c: Don't include stdlib.h or string.h.
	(Fdo_applescript, Fmac_file_name_to_posix)
	(Fmac_file_name_to_posix): Doc fixes.
	[TARGET_API_MAC_CARBON] (Fmac_get_preference)
	(Fmac_code_convert_string): Likewise.
	[MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
	if the executable is not contained in a bundle.

	* macfns.c: Don't include stdlib.h or string.h.  Include atimer.h.
	(gray_width, gray_height): Remove defines.
	(gray_bits, gray_bitmap_width, gray_bitmap_height)
	(gray_bitmap_bits): Remove variables.
	(lispy_function_keys): Remove extern.
	(free_frame_menubar): Add extern.
	(x_window_to_frame): Remove function.
	(unwind_create_tip_frame): Add declaration.
	(x_set_name_internal): New function.
	(x_set_name, x_set_title): Use it.
	(Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
	(Fx_display_pixel_height, Fx_display_planes)
	(Fx_display_color_cells, Fx_server_max_request_size)
	(Fx_server_vendor, Fx_server_version, Fx_display_screens)
	(Fx_display_mm_height, Fx_display_mm_width)
	(Fx_display_backing_store, Fx_display_visual_class)
	(Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.

	* macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.

Stefan Monnier's avatar
Stefan Monnier committed
1220
	* macselect.c (Fx_own_selection_internal): Follow error conventions.
1221 1222 1223 1224
	(Fx_get_selection_internal, Fx_selection_owner_p)
	(Fx_selection_exists_p): Doc fixes.
	(syms_of_macselect) <selection-converter-alist>: Likewise.

1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246
2005-07-21  Juanma Barranquero  <lekktu@gmail.com>

	* buffer.c (syms_of_buffer) <cursor-type>: Doc fix.

	* ccl.c (Fregister_ccl_program): Fix typos in docstring.
	(Fccl_execute_on_string): Likewise; add usage info.

	* composite.c (Fcompose_region_internal)
	(Fcompose_string_internal):
	Improve argument/docstring consistency.

	* minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
	Fix typos in docstrings.

	* textprop.c (Fnext_char_property_change)
	(Fprevious_char_property_change): Doc fixes.

	* window.c (Fset_window_margins, Fset_window_fringes):
	Improve argument/docstring consistency.

	* xfaces.c (Finternal_lisp_face_p): Doc fix.

1247 1248 1249 1250
2005-07-21  Andreas Schwab  <schwab@suse.de>

	* eval.c (restore_stack_limits): Return a value.

Juanma Barranquero's avatar
Juanma Barranquero committed
1251 1252 1253 1254
2005-07-20  Juanma Barranquero  <lekktu@gmail.com>

	* eval.c (Fdefvar): Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1255 1256
2005-07-20  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1257 1258 1259 1260 1261
	* fileio.c (Fdo_auto_save, do_auto_save_unwind):
	Use make_save_value to unwind protect stream.

	* lread.c (Fload, load_unwind):
	Use make_save_value to unwind protect stream.
Kim F. Storm's avatar
Kim F. Storm committed
1262

1263 1264 1265 1266 1267 1268 1269
2005-07-19  Juanma Barranquero  <lekktu@gmail.com>

	* eval.c (Fprog2, Fcalled_interactively_p),
	(syms_of_eval) <debug-on-quit>: Doc fixes.
	(syms_of_eval) <max-specpdl-size>:
	(Finteractive_p): Fix typos in docstrings.

Kim F. Storm's avatar
Kim F. Storm committed
1270 1271 1272 1273 1274
2005-07-19  Kim F. Storm  <storm@cua.dk>

	* w32fns.c (Vx_hand_shape): Variable removed.
	(syms_of_w32fns): Intern and staticpro Qw32_charset_default.

Kenichi Handa's avatar
Kenichi Handa committed
1275 1276
2005-07-19  Kenichi Handa  <handa@m17n.org>

Stefan Monnier's avatar
Stefan Monnier committed
1277
	* fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
Kenichi Handa's avatar
Kenichi Handa committed
1278

1279 1280 1281 1282
2005-07-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).

Kim F. Storm's avatar
Kim F. Storm committed
1283 1284 1285 1286 1287 1288 1289
2005-07-18  Kim F. Storm  <storm@cua.dk>

	* frame.h (struct frame): New member already_hscrolled_p.

	* xdisp.c (redisplay_internal): Only try to hscroll each frame once
	to avoid redisplay looping hscrolling back and forth ad infinitum.

Juri Linkov's avatar
Juri Linkov committed
1290 1291 1292 1293 1294 1295 1296
2005-07-18  Juri Linkov  <juri@jurta.org>

	* buffer.c (scroll-up-aggressively, scroll-down-aggressively):
	* keymap.c (Fminor_mode_key_binding):
	* macterm.c (mac-emulate-three-button-mouse):
	Delete duplicate duplicate words.

1297 1298 1299 1300
2005-07-18  Ken Raeburn  <raeburn@gnu.org>

	* minibuf.c (Ftest_completion): Fix odd syntax in test.

1301 1302
2005-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

1303
	* macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
1304 1305 1306 1307 1308 1309

	* macgui.h (struct _XGC): New struct.
	(GC): Use it.
	(GCForeground, GCBackground, GCFont): Use X11 mask values.
	(XCreateGC, XParseGeometry): Move externs to macterm.h.

1310
	* macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
1311
	(XSetFont): Add declaration.
1312 1313 1314 1315
	(mac_set_forecolor, mac_set_backcolor, mac_set_colors):
	Remove functions.
	(GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
	New defines.
1316 1317
	(XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
	(mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
1318 1319
	(mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
	Use them.
1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333
	(mac_erase_rectangle): New function.
	(XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
	(x_draw_stretch_glyph_string): Use it.
	(XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
	(XSetBackground, XSetFont): Adjust for new GC implementation.
	(x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
	(XTset_vertical_scroll_bar): Clear area under scroll bar.

	* macterm.h (struct mac_display_info): Change types of
	scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
	(XCreateGC, XParseGeometry): Move externs from macgui.h.

	* xfaces.c [MAC_OS] (XCreateGC): Remove extern.

1334 1335 1336 1337
2005-07-16  Richard M. Stallman  <rms@gnu.org>

	* buffer.c (Fmake_overlay): Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
1338 1339 1340 1341 1342
2005-07-16  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
	Vw32_valid_locale_ids, and Vw32_valid_codepages.

1343 1344
2005-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

1345 1346
	* mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
	Use Fstring_as_unibyte instead of string_make_unibyte.
1347

1348 1349 1350 1351
2005-07-15  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (select_frame_for_redisplay): Use find_symbol_value.

Kim F. Storm's avatar
Kim F. Storm committed
1352 1353 1354 1355 1356 1357
2005-07-15  Kim F. Storm  <storm@cua.dk>

	* xdisp.c: Fix redisplay loop in last change.
	(IT_POS_VALID_AFTER_MOVE_P): New macro.
	(move_it_vertically_backward, move_it_by_lines): Use it.

1358 1359 1360 1361 1362
2005-07-14  Jason Rumney  <jasonr@gnu.org>

	* w32.c (init_environment): Default HOME directory to user's
	appdata directory if possible.

Kim F. Storm's avatar
Kim F. Storm committed
1363 1364
2005-07-14  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1365 1366
	* .gdbinit (pitx): Fix output format.  Print string charpos.

Kim F. Storm's avatar
Kim F. Storm committed
1367 1368 1369 1370 1371 1372 1373
	* lread.c (syms_of_lread): Initialize seen_list.

	* search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.

	* syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
	Staticpro re_match_object.

1374 1375 1376 1377 1378 1379 1380
2005-07-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macselect.c (get_scrap_target_type_list): Avoid NULL pointer
	dereference.

	* macterm.c (mac_window_to_frame): Remove duplicate define.

1381 1382 1383
2005-07-14  Kenichi Handa  <handa@m17n.org>

	* coding.c (code_convert_region_unwind): ARG is changed to a cons.
1384
	(code_convert_region): Adjust for the above change.
1385 1386
	(set_conversion_work_buffer): If the work buffer is already in
	use, generate a new buffer and return it.  Otherwise return Qnil.
1387
	(run_pre_post_conversion_on_str): Adjust for the above change.
1388 1389
	(run_pre_write_conversin_on_c_str): Likewise.

Kim F. Storm's avatar
Kim F. Storm committed
1390 1391
2005-07-13  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1392 1393 1394 1395 1396 1397 1398 1399 1400
	* xdisp.c (start_display): Don't reseat to next visible line start
	if current start position is in a string or image.
	(move_it_vertically_backward): Be sure to move out of strings and
	images when moving it2 forward.
	(move_it_by_lines): When moving forward, move to next buffer
	position if we end up in a string or image.  When moving backward,
	count rows moved over when moving to start of current row in case
	row starts in middle of a string or image.  Also move further
	backward if we end up in a string or image.
1401
	(try_cursor_movement): If overlay string spans multiple lines,
Kim F. Storm's avatar
Kim F. Storm committed
1402 1403 1404 1405 1406 1407 1408 1409
	move backward to set cursor on start of an overlay string.
	(cursor_row_p): Row is ok if cursor is at newline from string, but
	string starts on this line (so we always position cursor at start
	of string).

	* indent.c (Fvertical_motion): If start position is on an image,
	don't move back if we move too far (that's almost certain to happen).

Kim F. Storm's avatar
Kim F. Storm committed
1410 1411 1412 1413
	* xdisp.c (cursor_row_fully_visible_p): Allow partially visible
	row in minibuffer windows.
	(try_window): Don't check margins in minibuffer windows.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429
2005-07-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c: Don't include stdlib.h or composite.h.
	(x_use_underline_position_properties, last_mouse_press_frame)
	(x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
	(syms_of_macterm, mac_initialize): Don't initialize them.
	(waiting_for_input, initial_argv, initial_argc)
	(Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
	(set_frame_menubar, path_from_vol_dir_name): Remove externs.
	(extra_keyboard_modifiers): Fix type in extern.
	(x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
	(x_scroll_bar_report_motion): Add argument types to declaration.
	(mac_compute_glyph_string_overhangs): Add declaration.
	(disable_mouse_highlight): Remove unused variable.
	[USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
	(x_scroll_bar_handle_press, x_scroll_bar_handle_release)
1430 1431
	(x_scroll_bar_handle_drag): Remove argument `timestamp'.
	All callers changed.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1432 1433 1434 1435 1436 1437
	[USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
	timestamp.
	[USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
	(x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
	only when its width is less than the height.
	(XTredeem_scroll_bar): Sync with xterm.c.
1438 1439
	(font_name_table, font_name_table_size, font_name_count):
	Make static.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1440 1441 1442 1443
	(drag_and_drop_file_list): Remove variable.  Previous use is now
	local to function.
	(do_ae_open_documents): Move DRAG_N_DROP event construction part
	from XTread_socket.
1444 1445
	(XTread_socket): Consolidate setting of event timestamp.
	Move DRAG_N_DROP event construction part to do_ae_open_documents.
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1446 1447 1448 1449 1450
	Support extra_keyboard_modifiers.

	* xfaces.c (try_font_list) [MAC_OS]: Try font family name
	beginning with that for ASCII.

Stefan Monnier's avatar
Stefan Monnier committed
1451 1452 1453 1454