ChangeLog 824 KB
Newer Older
<
1 2 3 4
2006-04-09  Dan Nicolaescu  <dann@ics.uci.edu>

	* puresize.h (pure_write_error): Mark as NO_RETURN.

5
	* lisp.h (args_out_of_range, args_out_of_range_3)
Eli Zaretskii's avatar
Eli Zaretskii committed
6
	(Fkill_emacs): Likewise.
7

8 9 10 11 12
2006-04-08  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
	if a menu is active on this frame.

13 14 15 16
2006-04-08  Dan Nicolaescu  <dann@ics.uci.edu>

	* lisp.h (report_file_error): Mark as NO_RETURN.

17 18
2006-04-08  Eli Zaretskii  <eliz@gnu.org>

19 20
	* alloc.c [STDC_HEADERS]: Include stddef.h.

21 22
	* lisp.h (PSEUDOVECSIZE): Fix last change.

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
2006-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>

	* process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
	`raw_status_high', and `raw_status_low' with plain integers, and move
	them to the end of the structure.

	* alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
	pseudovector's size field so only the Lisp_Object fields get GC'd.

	* process.c (update_status, make_process, Fdelete_process)
	(Fprocess_status, list_processes_1, start_process_unwind)
	(create_process, Fmake_network_process, server_accept_connection)
	(wait_reading_process_output, send_process, Fprocess_running_child_p)
	(process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
	(sigchld_handler, status_notify): Adjust to new non-Lisp fields for
	`pid' and `raw_status'.
	(Fprocess_id, Fsignal_process): Same, and additionally use floats when
	representing PIDs that are larger than most-positive-fixnum.

	* keymap.c (describe_map): Only use XINT if we checked INTEGERP.

	* lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.

46 47 48 49
2006-04-08  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.

50 51 52 53 54 55 56 57 58 59
2006-04-03  Paul Eggert  <eggert@cs.ucla.edu>

	* editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
	../lib-src/b2m.c and ../lib-src/editfns.c.
	(Fcurrent_time_string): Use it.
	Document that the year might not consume 4 columns if it's outside
	the range 1000-9999.
	Check for asctime failure.
	Don't assume that the output string length is always exactly 24.

60 61 62 63
2006-04-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (XTread_socket): Initialize variable `f' before its use.

64 65 66 67 68
2006-04-03  Kenichi Handa  <handa@m17n.org>

	* image.c: Include "charset.h" and "coding.h".
	(x_find_image_file): Return an encoded file name.

Eli Zaretskii's avatar
Eli Zaretskii committed
69 70 71 72
2006-04-01  Eli Zaretskii  <eliz@gnu.org>

	* configure: Regenerated.

73 74 75 76
2006-03-31  Kenichi Handa  <handa@m17n.org>

	* xfns.c (xg_set_icon): Delete superfluous UNGCPRO.

77 78 79 80
2006-03-30  Dan Nicolaescu  <dann@ics.uci.edu>

	* xdisp.c (syms_of_xdisp): Fix variable name.

81 82 83 84
2006-03-30  Kenichi Handa  <handa@m17n.org>

	* xterm.c (x_term_init): Delete superfluous UNGCPRO.

Juanma Barranquero's avatar
Juanma Barranquero committed
85 86 87 88
2006-03-29  Juanma Barranquero  <lekktu@gmail.com>

	* keyboard.c (process_tool_bar_item): Reorder dummy args.

89 90 91 92 93
2006-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (tool_bar_items): Use map_keymap.
	(process_tool_bar_item): Add dummy args to fit the required interface.

94 95 96 97 98 99 100 101 102
2006-03-25  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
	to zero before calling debug_print or safe_debug_print.

	* print.c (print_output_debug_flag): New global variable.
	(Fexternal_debugging_output) [WINDOWSNT]: Don't call
	OutputDebugString if print_output_debug_flag is zero.

103 104
2006-03-24  Paul Eggert  <eggert@cs.ucla.edu>

105
	* editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
106
	(Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
107 108
	(Fdecode_time): Cast tm_year to EMACS_INT.
	(Fcurrent_time_string): Report an invalid time specification if
109
	the argument is invalid.  Also, check for out-of-range time stamps.
110

Kim F. Storm's avatar
Kim F. Storm committed
111 112
2006-03-24  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
113 114 115 116 117
	* xterm.c (handle_one_xevent):
	* w32term.c (w32_read_socket):
	* macterm.c (XTread_socket): Don't let key-press clear mouse face
	on in toolbar window if mouse-highlight is an integer.

Kim F. Storm's avatar
Kim F. Storm committed
118 119
	* fns.c (sxhash_list): Include last non-nil CDR in hash.

120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
2006-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macmenu.c (enum mac_menu_kind): New enum.
	(min_menu_id): New variable.
	(POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
	(MIN_SUBMENU_ID): Remove defines.  All uses are replaced with
	min_menu_id and enumerators in enum mac_menu_kind.
	(fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
	All uses changed.  Add range check for menu ID.
	(fill_menubar): Add range check for menu ID.
	[HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
	GetEventParameter.
	(set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
	for each menu kind.

Kim F. Storm's avatar
Kim F. Storm committed
135 136
2006-03-22  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
137 138 139 140 141
	* xdisp.c: Undo 2006-03-21 change.

	* term.c: Define aliases for append_glyph and produce_stretch_glyph
	when `static' is defined to avoid name clash with those in xdisp.c.

Kim F. Storm's avatar
Kim F. Storm committed
142 143 144 145 146
	* process.c (Faccept_process_output): Fix to comply with lisp reference.
	Change arg "timeout" to "seconds" and allow both integer and float value.
	Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
	rather than microseconds.  Fix doc string accordingly.

147 148
2006-03-21  Ken Raeburn  <raeburn@raeburn.org>

149 150
	* xdisp.c (store_next_glyph): Rename from append_glyph.
	(generate_stretch_glyph): Rename from produce_stretch_glyph.
151 152
	All callers changed accordingly.

153 154 155 156 157 158 159
2006-03-21  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c: x_session_initialized new variable.
	(x_term_init): Use x_session_initialized to check if
	x_session_initialize should be called.
	(x_initialize): Initialize x_session_initialized.

Kim F. Storm's avatar
Kim F. Storm committed
160 161 162 163 164 165
2006-03-21  Kim F. Storm  <storm@cua.dk>

	* fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
	bitmap here, but ...
	(update_window_fringes): ... here, so we can test if it has changed.

166 167 168 169 170 171 172 173
2006-03-20  Andreas Schwab  <schwab@suse.de>

	* dispnew.c (init_display): Check DISPLAY here.

	* emacs.c (main): Don't check here.

	* xterm.c (x_display_ok): Don't use DISPLAY env var.

174 175 176 177 178
2006-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
	mixup (YAILOM).

Eli Zaretskii's avatar
Eli Zaretskii committed
179 180 181 182
2006-03-20  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (main): Fix last change.

183 184
2006-03-20  Kenichi Handa  <handa@m17n.org>

185
	* fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
186 187 188 189 190 191 192

	* keymap.c (map_keymap): Set tail to Qnil before GCPRO it.

	* xfns.c (xg_set_icon): Remove unnecessary GCPRO.

	* xterm.c (x_term_init): Remove unnecessary GCPRO.

Kim F. Storm's avatar
Kim F. Storm committed
193 194 195 196 197 198 199
2006-03-19  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (set_cursor_from_row): Fix cursor property on overlay	string,
	so it doesn't associate overlay string with following glyph by default.
	Allow integer property value to specify explicit number of buffer
	positions associate with overlay string.

200 201 202 203
2006-03-18  Chong Yidong  <cyd@stupidchicken.com>

	* xterm.c (x_display_ok): Fix minor bug and compilation warnings.

Eli Zaretskii's avatar
Eli Zaretskii committed
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
2006-03-18  Nozomu Ando  <nand@mac.com>

	* m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
	(LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
	(START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
	Don't redefine.

	* m/mips.h: Don't use unexmips on NetBSD.
	(LIBS_MACHINE): Move definition lower, so it doesn't use
	LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
	C_SWITCH_MACHINE, and C_DEBUG_SWITCH.

	* unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
	(unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
	option is broken (e.g., MIPS/NetBSD).

220 221 222
2006-03-18  Craig McDaniel  <craigmcd@gmail.com>  (tiny change)

	* sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
Eli Zaretskii's avatar
Eli Zaretskii committed
223
	Remove the HAVE_X_WINDOWS conditional.
224

Eli Zaretskii's avatar
Eli Zaretskii committed
225 226 227 228 229 230 231 232 233
2006-03-18  Vivek Dasmohapatra  <vivek@etla.org>  (tiny change)

	* emacs.c (main): If user asks for a display that is unavailable,
	simulate -nw.

	* xterm.c (x_display_ok): New function.

	* xterm.h: Add prototype for x_display_ok.

Eli Zaretskii's avatar
Eli Zaretskii committed
234 235 236 237
2006-03-18  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (Fw32_select_font): Doc fix.

238 239 240 241 242
2006-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c [MAC_OS] (XPutPixel, XGetPixel)
	[!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
	version when depth is 32.
243 244
	(mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
	New function.
245 246 247 248 249
	(prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
	(x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.

	* macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
	Create GWorld in ARGB pixel format.
250 251
	(mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
	Remove functions.
252 253 254
	(x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
	instead of mac_copy_area/mac_copy_area_with_mask.

Kim F. Storm's avatar
Kim F. Storm committed
255 256 257 258 259 260 261 262 263
2006-03-15  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (extend_face_to_end_of_line): Always add space glyph to
	empty row.  Fixes memory corruption revealed by 2006-03-02 change.
	(display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
	(tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
	width is exactly the same as the window width.  Don't count a final
	empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).

Juanma Barranquero's avatar
Juanma Barranquero committed
264 265
2006-03-15  Juanma Barranquero  <lekktu@gmail.com>

Juanma Barranquero's avatar
Juanma Barranquero committed
266
	* fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
Juanma Barranquero's avatar
Juanma Barranquero committed
267 268
	conditional on HAVE_NTGUI, not WINDOWS_NT.

269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
2006-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.

	* fringe.c (mac_init_fringe) [MAC_OS]: New function.

	* macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
	(max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
	(mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
	(mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
	(mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
	(x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
	instead of mac_draw_bitmap.
	(x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
	define_fringe_bitmap and destroy_fringe_bitmap.

285 286 287 288
2006-03-14  Chong Yidong  <cyd@stupidchicken.com>

	* xterm.c (x_uncatch_errors): Block input for entire function.

Jason Rumney's avatar
Jason Rumney committed
289 290
2006-03-12  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
291
	* w32fns.c (Fx_create_frame): Remove call to
Juanma Barranquero's avatar
Juanma Barranquero committed
292
	Qface_set_after_frame_default (from xfns.c 2003-05-26).
Jason Rumney's avatar
Jason Rumney committed
293

Jason Rumney's avatar
Jason Rumney committed
294 295 296
	* w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
	finished with the menu.

Jason Rumney's avatar
Jason Rumney committed
297 298 299 300 301
	* w32term.c: Sync 2005-10-24 xterm.c changes.
	(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.
	(w32_mouse_position): Set last_mouse_glyph_frame.
Romain Francoise's avatar
Romain Francoise committed
302
	Remove OLD_REDISPLAY_CODE block.
Jason Rumney's avatar
Jason Rumney committed
303

304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
2006-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.

	* macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
	(mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.

	* mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.

	* macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.

	* macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
	(x_draw_composite_glyph_string_foreground)
	(x_draw_image_foreground): Undo previous changes.
	(x_draw_hollow_cursor): Likewise.  Subtract 1 from the last
	argument of mac_draw_rectangle.
	(CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
	(mac_draw_string_common, mac_draw_image_string_cg): Use them.
	(FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
	(mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
	[USE_CG_DRAWING]: New functions.
	(mac_draw_line, mac_erase_rectangle, mac_clear_window)
	(mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
	(mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
	(mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
	(mac_copy_area, mac_scroll_area, x_scroll_bar_create)
	(x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
	(XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.

333 334 335 336
2006-03-12  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

	* xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.

Jason Rumney's avatar
Jason Rumney committed
337 338 339 340 341 342
2006-03-11  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (signal_user_input): New function.
	(post_character_message): Use it for keyboard input.
	(w32_msg_pump): Use it for mouse input.

Luc Teirlinck's avatar
Luc Teirlinck committed
343 344 345 346 347
2006-03-11  Luc Teirlinck  <teirllm@auburn.edu>

	* window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
	(window_scroll_pixel_based, syms_of_window): Adapt to above change.

Eli Zaretskii's avatar
Eli Zaretskii committed
348 349 350 351 352
2006-03-11  Eli Zaretskii  <eliz@gnu.org>

	* w32fns.c (w32_wnd_proc): Ignore middle and extra button events
	if a menu is already active (the menubar_active flag is on).

Eli Zaretskii's avatar
Eli Zaretskii committed
353 354
2006-03-11  David Ponce  <david@dponce.com>

355
	* xfns.c (x_create_tip_frame): Preserve received parms by copying them.
Eli Zaretskii's avatar
Eli Zaretskii committed
356

Eli Zaretskii's avatar
Eli Zaretskii committed
357 358
2006-03-11  Eli Zaretskii  <eliz@gnu.org>

Eli Zaretskii's avatar
Eli Zaretskii committed
359 360 361
	* w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
	the list of unused display error handling functions.

Eli Zaretskii's avatar
Eli Zaretskii committed
362 363 364 365 366 367
	* eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
	HAVE_X_WINDOWS.
	(internal_condition_case, internal_condition_case_1)
	(internal_condition_case_2): Call x_catching_errors only if
	HAVE_X_WINDOWS.

Eli Zaretskii's avatar
Eli Zaretskii committed
368 369 370
	* vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
	Don't include sys/resource.h unless defined.

371 372
2006-03-11  Richard Stallman  <rms@gnu.org>

373 374
	* keymap.c (describe_map): Shorten string to indicate shadowed binding.

375
	* vm-limit.c (get_lim_data, lim_data, data_space_start):
376
	Move from mem-limits.h.
377 378 379 380 381 382
	(enum warnlevel): New data type.
	(check_memory_limits): Rewrite the logic about warnings.
	Use standard `struct rlimit'.  Check return values for nonsense.
	(memory_warnings): Always clear lim_data.

	* mem-limits.h (get_lim_data, lim_data, data_space_start):
383
	Move to vm-limit.c.
384 385 386 387

	* xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.

	* eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
Luc Teirlinck's avatar
Luc Teirlinck committed
388
	(internal_condition_case_1, internal_condition_case_2):
389 390
	Abort if within unclosed x_catch_errors.

391 392 393 394
2006-03-11  Romain Francoise  <romain@orebokech.com>

	* process.c (Vprocess_adaptive_read_buffering): Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
395 396 397 398 399
2006-03-11  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)

	* lisp.h: Remove duplicate prototypes.  Make the prototype of
	getloadavg be conditioned on HAVE_GETLOADAVG being undefined.

400 401
2006-03-11  Eli Zaretskii  <eliz@gnu.org>

Eli Zaretskii's avatar
Eli Zaretskii committed
402 403 404
	* xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
	argument of XDrawRectangle.

405 406 407 408 409 410 411 412 413
	* xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.

	* macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
	(x_draw_glyph_string_foreground)
	(x_draw_composite_glyph_string_foreground)
	(x_draw_image_foreground): Don't subtract 1 from width and height
	arguments to mac_draw_rectangle.
	(x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.

Kim F. Storm's avatar
Kim F. Storm committed
414 415 416 417
2006-03-10  Kim F. Storm  <storm@cua.dk>

	* alloc.c (USE_POSIX_MEMALIGN): Fix last change.

418 419 420 421 422
2006-03-09  Stefan Monnier  <monnier@iro.umontreal.ca>

	* alloc.c (USE_POSIX_MEMALIGN): New macro.
	(ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.

Kenichi Handa's avatar
Kenichi Handa committed
423 424 425 426 427
2006-03-09  Kenichi Handa  <handa@m17n.org>

	* coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
	ASCII component of a composition.

Luc Teirlinck's avatar
Luc Teirlinck committed
428 429 430 431 432
2006-03-08  Luc Teirlinck  <teirllm@auburn.edu>

	* window.c: Declare preserve_y as a static global variable.
	(window_scroll_pixel_based): No longer declare preserve_y;
	it is global now.
Luc Teirlinck's avatar
Luc Teirlinck committed
433
	(syms_of_window): Set preserve_y to -1.
Luc Teirlinck's avatar
Luc Teirlinck committed
434

435 436 437 438
2006-03-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
	depth is 32.
439
	[MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
440 441
	depth is 32.

442 443 444 445 446
2006-03-06  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (handle_invisible_prop): Don't update it->position with
	a buffer position if we're in a display string.

447 448 449 450 451 452
2006-03-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
	(MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.

	* macfns.c (x_default_scroll_bar_color_parameter)
453 454 455 456
	(x_set_scroll_bar_foreground, x_set_scroll_bar_background):
	Remove unnecessary prototypes.
	(x_set_scroll_bar_default_width):
	Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
457 458 459 460 461 462 463 464 465 466 467
	(mac_set_scroll_bar_width): New function.
	(mac_frame_parm_handlers): Set it as handler for scroll-bar-width.

	* macterm.c (get_control_part_bounds): Fix type of return value.
	(x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
	(XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
	scroll bar if it is not tall enough to display scroll bar thumb.
	[USE_CARBON_EVENTS] (mac_convert_event_ref)
	(mac_handle_command_event, mac_handle_window_event)
	(mac_handle_mouse_event): Check error code of GetEventParameter.
	(convert_fn_keycode) [MAC_OSX]: Likewise.
Luc Teirlinck's avatar
Luc Teirlinck committed
468

469 470 471 472
2006-03-05  Andreas Schwab  <schwab@suse.de>

	* xselect.c (x_catch_errors_unwind): Fix missing return value.

Kim F. Storm's avatar
Kim F. Storm committed
473 474 475 476 477 478
2006-03-02  Kim F. Storm  <storm@cua.dk>

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

	* xdisp.c: Minimize the unpleasent visual impact of the requirement
	that non-toolkit tool-bars must occupy an integral number of screen
Romain Francoise's avatar
Romain Francoise committed
479
	lines, by distributing the rows evenly over the tool-bar screen area.
Kim F. Storm's avatar
Kim F. Storm committed
480 481
	(Vtool_bar_border): New variable.
	(syms_of_xdisp): DEFVAR_LISP it.
482 483 484
	(display_tool_bar_line): Add HEIGHT arg for desired row height.
	Make tool-bar row the desired height.  Use default face for border
	below tool-bar.
Kim F. Storm's avatar
Kim F. Storm committed
485 486 487 488 489 490 491
	(tool_bar_lines_needed): Add N_ROWS arg.  Use it to return number of
	actual tool-bar rows.
	(redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
	Adjust the height of the tool-bar rows to fill tool-bar screen area.
	(redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
	is resized.

Luc Teirlinck's avatar
Luc Teirlinck committed
492 493 494 495 496 497 498
2006-03-01  Luc Teirlinck  <teirllm@auburn.edu>

	* search.c (Fregexp_quote): Do not precede a literal `]' with two
	backslashes to try to make clear that it has a literal meaning; it
	does not do that.  (It could close a character alternative
	containing a backslash.)

499 500 501 502 503 504 505 506 507 508
2006-02-28  Chong Yidong  <cyd@stupidchicken.com>

	* xselect.c (x_catch_errors_unwind): New function.
	(x_reply_selection_request): Put x_uncatch_errors in an unwind.
	(Fx_get_atom_name): Call x_uncatch_errors earlier.

	* window.c (Qscroll_up, Qscroll_down): New syms.
	(window_scroll_pixel_based): Make preserve_y static to avoid
	getting point stuck when scrolling 1 line.

509 510
2006-02-26  Chong Yidong  <cyd@stupidchicken.com>

511
	* xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
512

Juanma Barranquero's avatar
Juanma Barranquero committed
513 514 515
	* xterm.c (x_load_font, x_term_init, XTmouse_position)
	(handle_one_xevent, x_connection_closed, x_list_fonts):
	No arg for x_uncatch_errors.
516 517 518 519 520 521 522 523

	* xselect.c (x_own_selection, x_decline_selection_request)
	(x_reply_selection_request, x_get_foreign_selection)
	(Fx_get_atom_name, Fx_send_client_event): Likewise.

	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
	Likewise.

Luc Teirlinck's avatar
Luc Teirlinck committed
524 525
2006-02-26  Luc Teirlinck  <teirllm@auburn.edu>

Luc Teirlinck's avatar
Luc Teirlinck committed
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541
	* lread.c: Declare Vload_file_rep_suffixes instead of
	deleted variable default_suffixes.
	(Fget_load_suffixes): New function.
	(Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
	No longer use deleted variable default_suffixes.  Update docstring.
	(syms_of_lread): defsubr Sget_load_suffixes.
	Expand `load-suffixes' docstring.
	Delete default_suffixes and DEFVAR_LISP the new variable
	`load-file-rep-suffixes'.

	* w32.c (check_windows_init_file): Use Fget_load_suffixes instead
	of Vload_suffixes.

	* lisp.h: EXFUN Fget_load_suffixes.
	Extern Vload_file_rep_suffixes.

Luc Teirlinck's avatar
Luc Teirlinck committed
542 543 544
	* eval.c (specpdl_ptr): Remove volatile qualifier for consistency
	with lisp.h.

545 546 547 548 549 550
2006-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>

	* lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
	qualifier which was trying to avoid the bug that was fixed by
	yesterday's changes to xterm.c.

551 552 553
2006-02-25  Chong Yidong  <cyd@stupidchicken.com>

	* xterm.h (x_catch_errors) Return value changed to void.
554
	(x_uncatch_errors): Delete unused count argument.
555

556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574
	* xterm.c (x_catch_errors): Don't use record_unwind_protect, since
	it can be called in a signal handler.
	(x_catch_errors_unwind): Function deleted.
	(x_uncatch_errors): Deallocate last x_error_message_stack struct.
	(x_check_errors): Call x_uncatch_errors before signalling error.

	(x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
	(x_connection_closed, x_list_fonts): Use new versions of
	x_catch_errors and x_uncatch_errors.

	* xselect.c (x_own_selection, x_decline_selection_request)
	(x_reply_selection_request, x_get_foreign_selection)
	(Fx_get_atom_name, Fx_send_client_event): Likewise.

	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
	Likewise.

	* eval.c (record_unwind_protect): Add an assertion.

575 576 577 578
2006-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>

	* process.c (Fmake_network_process): Init the process's mark.

Kim F. Storm's avatar
Kim F. Storm committed
579 580 581 582 583
2006-02-25  Kim F. Storm  <storm@cua.dk>

	* buffer.c (modify_overlay): Force redisplay if we modify an
	overlay at the end of the buffer.

584 585 586 587 588 589
2006-02-24  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
	nil the image file has been removed, in that case use the (cached)
	pixmap.

590 591 592 593 594
2006-02-24  Kenichi Handa  <handa@m17n.org>

	* fileio.c (Finsert_file_contents): When a text is replaced
	partially, be sure to set point before the inserted characters.

Kenichi Handa's avatar
Kenichi Handa committed
595 596 597 598
2006-02-23  Zhang Wei  <id.brep@gmail.com>  (tiny change)

	* xfns.c (Fx_file_dialog): Return a decoded file name.

599 600 601 602 603
2006-02-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* dispnew.c (update_text_area): Avoid needless redraw of rightmost
	glyph whose face is extended to the text area end.

604 605 606
	* macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
	values if control is not visible or values are not changed.

607 608 609 610 611
2006-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* window.c (Fwindow_list): Check `window' before doing XWINDOW.
	The default `window' should not be "on a different frame".

Kim F. Storm's avatar
Kim F. Storm committed
612 613 614 615
2006-02-22  Kim F. Storm  <storm@cua.dk>

	* indent.c (Fvertical_motion): Only try to move back if we can.

616 617 618 619 620 621 622 623 624 625 626
2006-02-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
	n_clip_rects.

	* macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
	xmenu.c.

	* macterm.c (GC_CLIP_REGION): Remove macro.
	(mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
	All uses changed.  Don't do clipping if n_clip_rects is zero.
627 628
	(mac_set_clip_rectangles): Use xassert instead of abort.
	Set n_clip_rects.  Don't make clip_region empty when number of
629 630 631 632 633 634
	clipping rectangles is zero.
	(mac_reset_clip_rectangles): Set n_clip_rects directly instead of
	calling mac_set_clip_rectangles.
	(x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
	avoid multiple redraws.

Kim F. Storm's avatar
Kim F. Storm committed
635 636 637 638
2006-02-22  Kim F. Storm  <storm@cua.dk>

	* fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.

Kim F. Storm's avatar
Kim F. Storm committed
639 640 641 642
2006-02-21  Kim F. Storm  <storm@cua.dk>

	* fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.

Juanma Barranquero's avatar
Juanma Barranquero committed
643
2006-02-21  Zhang Wei  <brep@newsmth.org>
644 645 646 647

	* xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
	returning it.

Kim F. Storm's avatar
Kim F. Storm committed
648
2006-02-21  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
Juanma Barranquero's avatar
Juanma Barranquero committed
649 650 651 652

	* fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
	(standard_bitmaps): Use it.

653 654 655 656 657 658
2006-02-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (mac_draw_string_common): Remove arg MODE.  New arg
	BG_WIDTH.  All uses changed.  Draw background if BG_WIDTH is not zero.
	(mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
	[USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
659 660
	mac_draw_string_cg.  New arg BG_WIDTH.  All uses changed.
	Draw background if BG_WIDTH is not zero.  Use float constants as
661 662 663 664 665 666 667 668 669 670
	divisors instead of double.  Use alloca instead of xmalloc/xfree.
	(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
	[!MAC_OS8 || USE_ATSUI]: Background may be drawn using
	mac_draw_image_string* functions.
	(XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
	some fonts when srcCopy text transfer mode might be used.
	(mac_begin_clip, mac_end_clip): Check if region is empty.
	(mac_set_clip_rectangles): When resetting clip region, make it
	empty instead of disposing of it.

671 672 673 674 675
2006-02-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (store_in_keymap): Change `def' arg to not be `register'.
	Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8).

Kim F. Storm's avatar
Kim F. Storm committed
676 677 678 679 680 681 682 683 684 685 686 687
2006-02-20  Kim F. Storm  <storm@cua.dk>

	* Makefile.in: Add fringe.elc to WINDOW_SUPPORT.

	* buffer.h (struct buffer): New members fringe_indicator_alist and
	fringe_cursor_alist.

	* buffer.c (init_buffer_once): Set dummy default values for
	fringe-indicator-alist and fringe-cursor-alist.  The proper
	default values are set by pre-loading fringe.el.
	(syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
	fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
Juanma Barranquero's avatar
Juanma Barranquero committed
688
	corresponding default- variables.
Kim F. Storm's avatar
Kim F. Storm committed
689 690 691 692 693 694 695 696 697 698 699 700

	* fringe.c (enum fringe_bitmap_type): Remove.  Change all uses
	to use `int'.
	(NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
	Define explicitly.
	(Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
	(Qhollow_small): New variables.
	(syms_of_fringe): Intern and staticpro them.
	(question_mark_bits): Rename from unknown_bits.
	(left_curly_arrow_bits): Rename from continuation_bits.
	(right_curly_arrow_bits): Rename from continued_bits.
	(left_triangle_bits): Rename from ov_bits.
701
	(right_triangle_bits): Add.
Kim F. Storm's avatar
Kim F. Storm committed
702 703
	(filled_rectangle_bits): Rename from filled_box_cursor_bits.
	(hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
704
	(filled_square_bits): Add.
Kim F. Storm's avatar
Kim F. Storm committed
705
	(vertical_bar_bits): Rename from bar_cursor_bits.
Juanma Barranquero's avatar
Juanma Barranquero committed
706
	(horizontal_bar_bits): Rename from hbar_cursor_bits.
Kim F. Storm's avatar
Kim F. Storm committed
707 708 709 710 711
	(empty_line_bits): Rename from zv_bits.
	(standard_bitmaps): Update to use new names.
	(draw_fringe_bitmap_1): Make static.
	(get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
	to map from logical cursors and indicators to physical bitmaps.
Romain Francoise's avatar
Romain Francoise committed
712
	(draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
Kim F. Storm's avatar
Kim F. Storm committed
713 714 715 716 717
	bitmaps using symbol names instead of bitmap numbers.
	(update_window_fringes): Use logical indicator symbol names
	instead of bitmap numbers for logical.  Add bitmap cache.
	(LEFT_FRINGE, RIGHT_FRINGE): New helper macros.

718 719
2006-02-20  Chong Yidong  <cyd@stupidchicken.com>

720 721 722
	* regex.c: Revert 2006-02-19 change.
	(xmalloc, xrealloc): Define these when not linked to Emacs.
	Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
723

Luc Teirlinck's avatar
Luc Teirlinck committed
724 725 726 727
2006-02-19  Luc Teirlinck  <teirllm@auburn.edu>

	* regex.c (extend_range_table_work_area): Fix typo.

728 729
2006-02-19  Richard M. Stallman  <rms@gnu.org>

730 731 732 733 734 735 736 737
	* xterm.c (x_catch_errors): Use xmalloc.

	* regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
	(regex_compile): Likewise.
	(regcomp): Use xmalloc.

	* gtkutil.c (malloc_widget_value): Use xmalloc.

738 739 740 741 742 743
	* vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
	(check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.

	* xmenu.c (digest_single_submenu): When pane_string is empty,
	do initialize save_wv.

744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763
2006-02-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* xdisp.c (update_menu_bar) [MAC_OS]: Don't set
	w->update_mode_line if arg F is not the selected frame.

	* macmenu.c (popup_activated_flag, submenu_id)
	(next_menubar_widget_id): Remove variables.
	(initialize_frame_menubar): Remove function.
	(pop_down_menu, mac_menu_show): Simplify save value.
	(dispose_menus): New function.
	(pop_down_menu, fill_menubar): Use it.
	(fill_submenu): Remove function.  All uses changed to fill_menu.
	(add_menu_item): Remove args SUBMENU and FORCE_DISABLE.  New arg
	POS.  Don't call SetMenuItemHierarchicalID here.
	(fill_menu): Add arg SUBMENU_ID.  Return submenu_id that is to be
	used next.  Call SetMenuItemHierarchicalID here.
	(fill_menubar): Add arg DEEP_P.  All uses changed.  Clean up menu
	objects if needed.  Reuse existing menu bar titles if possible.
	(set_frame_menubar): Don't clean up menu objects here.

764 765 766 767 768
2006-02-18  Chong Yidong  <cyd@stupidchicken.com>

	* window.c (window_min_size_1): Ensure room for the scroll bar and
	fringes.

769 770 771 772
2006-02-17  Romain Francoise  <romain@orebokech.com>

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

773 774 775 776 777
2006-02-17  Stefan Monnier  <monnier@iro.umontreal.ca>

	* alloc.c (Fmake_symbol): Comment-out left-over assert from before the
	addition of the BLOCK_INPUTs.

Juanma Barranquero's avatar
Juanma Barranquero committed
778 779 780 781
2006-02-17  Juanma Barranquero  <lekktu@gmail.com>

	* window.c (Fset_window_scroll_bars): Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
782 783 784 785 786
2006-02-17  Kenichi Handa  <handa@m17n.org>

	* xdisp.c (display_mode_element): Call display_string with correct
	PREC arg (which must be a number of characters, not column width).

787 788 789 790 791 792 793 794
2006-02-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.

	* macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.

	* macmenu.c (set_frame_menubar): Don't call DrawMenuBar.

795 796
2006-02-14  Richard M. Stallman  <rms@gnu.org>

797 798
	* frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.

799 800
	* m/ibms390x.h: New file.

801 802 803 804
2006-02-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
	value of x-gtk-whole-detached-tool-bar.
Jan Djärv's avatar
Jan Djärv committed
805
	(xg_tool_bar_attach_callback): Set show-arrow to TRUE.
806 807 808

	* xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.

Jan Djärv's avatar
Jan Djärv committed
809
2006-02-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
810 811 812 813 814 815 816 817 818 819 820

	* xterm.c (x_x_to_emacs_modifiers): Make non-static.

	* xterm.h: Declare x_x_to_emacs_modifiers.

	* gtkutil.c (xg_tool_bar_button_cb): New function.
	(xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
	store modifiers in event.
	(update_frame_tool_bar): Connect button-release-event to
	xg_tool_bar_button_cb.

821 822 823 824
2006-02-13  Richard M. Stallman  <rms@gnu.org>

	* .gdbinit (xwindow): Update the code to show the window box.

825 826 827 828
2006-02-13  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).

829 830 831 832
2006-02-12  Richard M. Stallman  <rms@gnu.org>

	* cmds.c (internal_self_insert): Handle weird auto-fill-function.

Eli Zaretskii's avatar
Eli Zaretskii committed
833 834 835 836 837 838 839
2006-02-11  Eli Zaretskii  <eliz@gnu.org>

	* keyboard.c (Venable_disabled_menus_and_buttons): New variable.
	(syms_of_keyboard): DEVFAR_LISP and initialize it.
	(parse_tool_bar_item, parse_menu_item): If that variable is
	non-nil, don't disable menu items and tool-bar buttons.

Juanma Barranquero's avatar
Juanma Barranquero committed
840 841 842 843
2006-02-11  Juanma Barranquero  <lekktu@gmail.com>

	* doc.c (Fsubstitute_command_keys): Doc fix.

844 845 846 847 848
2006-02-10  Thien-Thi Nguyen  <ttn@gnu.org>

	* data.c (Findirect_function): Rewrite docstring.
	Fix omission bug: Declare new arg NOERROR.

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870
2006-02-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
	if window_desc is not set yet.
	(Fx_create_frame): Remove variable x_frame_name.  Apply 2005-12-07
	and 2006-01-26 changes for xfns.c.  Call x_iconify_frame if frame
	parameter `visibility' is `icon'.
	(Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
	instead of "fontset-mac".
	(Fx_focus_frame): New defun.
	(syms_of_macfns): Defsubr it.

	* macterm.c (mac_define_frame_cursor): Don't change pointer shape
	for unfocused frame.
	(x_raise_frame): Call BringToFront instead of SelectWindow.
	(x_lower_frame): Use NULL instead of nil.
	(x_make_frame_visible): Don't call SelectWindow.
	(XTread_socket): Increment handling_signal at the start, decrement
	it at the end.
	[USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
	CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.

871 872 873 874 875 876 877 878 879
2006-02-10  Kim F. Storm  <storm@cua.dk>

	* data.c (Findirect_function): Add NOERROR arg.  All callers changed
	to pass Qnil for NOERROR.

	* keymap.c (current_minor_maps_error): Remove.
	(current_minor_maps): Pass Qt for NOERROR to Findirect_function
	instead of using internal_condition_case_1+current_minor_maps_error.

880 881 882 883 884 885
2006-02-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (handle_one_xevent): Must note mouse movement even for nil
	frames for GTK, in that case it is the tool bar.  This is so that
	highlighted text get reset properly.

Juanma Barranquero's avatar
Juanma Barranquero committed
886 887 888 889
2006-02-09  Juanma Barranquero  <lekktu@gmail.com>

	* alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.

890 891 892 893 894
2006-02-08  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* window.c (adjust_window_trailing_edge): Check that shrinking
	does not set a window to size zero or less.

895 896 897
2006-02-08  Miles Bader  <miles@gnu.org>

	* editfns.c (Fconstrain_to_field): Use Fget_char_property instead
Juanma Barranquero's avatar
Juanma Barranquero committed
898
	of Fget_text_property (other field functions work with overlays as
899 900
	well as text-properties).

901 902
2006-02-07  Kenichi Handa  <handa@m17n.org>

Kim F. Storm's avatar
Kim F. Storm committed
903
	* dispextern.h (unibyte_display_via_language_environment): Extern it.
904

Kim F. Storm's avatar
Kim F. Storm committed
905 906 907
	* xterm.h (unibyte_display_via_language_environment):
	* w32term.h (unibyte_display_via_language_environment):
	* macterm.h (unibyte_display_via_language_environment): Delete extern.
908

909 910
2006-02-07  Kenichi Handa  <handa@m17n.org>

Kim F. Storm's avatar
Kim F. Storm committed
911
	* term.c (append_glyph): Refer to it->char_to_display instead of it->c.
912
	(produce_glyphs): Set the character to print in
Kim F. Storm's avatar
Kim F. Storm committed
913 914
	it->char_to_display.  Handle unibyte-display-via-language-environment.
	(produce_stretch_glyph): Set character to print in it->char_to_display.
915

916 917
2006-02-06  Kenichi Handa  <handa@m17n.org>

Kim F. Storm's avatar
Kim F. Storm committed
918
	* lread.c (openp): Initialize encoded_fn before GCPRO it.
919

920 921 922 923
2006-02-05  Ken Raeburn  <raeburn@raeburn.org>

	* editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.

924 925 926
	* lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
	Cast bitfield value to EMACS_INT, to suppress gcc warning.

927 928 929
	* xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
	defining.

Kim F. Storm's avatar
Kim F. Storm committed
930 931 932 933 934 935 936 937 938 939 940
2006-02-03  Kim F. Storm  <storm@cua.dk>

	* xdisp.c: Cache last merged escape glyph face.
	(last_escape_glyph_frame, last_escape_glyph_face_id)
	(last_escape_glyph_merged_face_id): New variables.
	(get_next_display_element): Use/update them.
	(redisplay_internal): Reset them before redisplay.

	* xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
	Only recheck faces after displaying ellipsis.

941 942 943 944 945
2006-02-02  Kenichi Handa  <handa@m17n.org>

	* coding.c (decode_composition_emacs_mule): Fix handling of
	incorrect format data.

946 947 948 949 950
2006-01-31  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (update_frame_tool_bar): Use new tool bar functions
	(gtk_toolbar_insert) so we can have tool bars of different sizes.

Luc Teirlinck's avatar
Luc Teirlinck committed
951 952 953 954
2006-01-30  Luc Teirlinck  <teirllm@auburn.edu>

	* data.c (Flistp): Doc fix.

Juanma Barranquero's avatar
Juanma Barranquero committed
955 956 957 958 959
2006-01-30  Juanma Barranquero  <lekktu@gmail.com>

	* window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
	Fix typos in docstrings.

Luc Teirlinck's avatar
Luc Teirlinck committed
960 961
2006-01-28  Luc Teirlinck  <teirllm@auburn.edu>

Luc Teirlinck's avatar
Luc Teirlinck committed
962
	* data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
Luc Teirlinck's avatar
Luc Teirlinck committed
963

964 965 966 967 968 969 970
2006-01-27  Chong Yidong  <cyd@stupidchicken.com>

	* alloc.c (make_interval, allocate_string)
	(allocate_string_data, make_float, Fcons, allocate_vectorlike)
	(Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
	global variables.

Eli Zaretskii's avatar
Eli Zaretskii committed
971 972 973 974 975
2006-01-27  Eli Zaretskii  <eliz@gnu.org>

	* dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
	the MSDOS definition.

976 977 978 979 980 981 982 983 984 985 986
2006-01-26  Richard M. Stallman  <rms@gnu.org>

	* alloc.c (check_pure_size): Make overflow message an "error message".

	* keymap.c (Fmap_keymap): Doc fix.

	* xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
	unless they were cleared out.

	* frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.

987 988
2006-01-26  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

989 990
	* editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
	(find_field): Set before_field to after_field when pos is at BEGV.
991 992
	(Fline_beginning_position, Fline_end_position):
	Clarify confusing doc string.
993 994 995 996

	* cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
	string.

997 998 999 1000 1001 1002
2006-01-26  Kenichi Handa  <handa@m17n.org>

	* callproc.c (Fcall_process): GCPRO error_file.  Encode infile,
	current_dir, and error_file.  On reporting an error, decode them
	back.

1003 1004 1005 1006 1007 1008
2006-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>

	* regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
	(re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
	Don't check for quit, since any loop will go through fail or jump.

1009 1010 1011 1012 1013
2006-01-24  Chong Yidong  <cyd@stupidchicken.com>

	* alloc.c (allocate_string_data): Update next_free immediately, to
	reduce risk of memory clobberage.

1014 1015 1016 1017 1018 1019 1020
2006-01-24  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

	* xdisp.c (handle_invisible_prop): Set it->position to fix cursor
	display when point moves across an ellipsis.  If there are
	adjacent invisible texts, don't lose the second one's ellipsis.
	(x_produce_glyphs): Doc fix.

1021 1022 1023 1024
2006-01-23  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.

Kim F. Storm's avatar
Kim F. Storm committed
1025 1026 1027 1028 1029 1030 1031 1032
2006-01-23  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (handle_single_display_spec): Fix handling of space
	property on char from string: set *position rather than
	it->current.pos.
	(produce_stretch_glyph): Reduce width of stretch glyphs so they
	don't get wider than the window (unless truncate-lines is on).

1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045
2006-01-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xterm.c: Avoid allocating Lisp data from a signal handler.
	(x_error_message): New var to replace x_error_message_string.
	(x_error_catcher, x_catch_errors, x_catch_errors_unwind)
	(x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
	(syms_of_xterm): Use it instead of x_error_message_string.

	* alloc.c (lisp_align_free): Add an assertion.
	(make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
	(allocate_misc): If ENABLE_CHECKING is on, check we're not called from
	a signal handler.

Luc Teirlinck's avatar
Luc Teirlinck committed
1046 1047 1048 1049
2006-01-21  Luc Teirlinck  <teirllm@auburn.edu>

	* dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.

1050 1051 1052 1053 1054
2006-01-21  Romain Francoise  <romain@orebokech.com>

	* xdisp.c (get_window_cursor_type): Fix last change.
	Update copyright year.

1055 1056
2006-01-20  Eli Zaretskii  <eliz@gnu.org>

1057 1058 1059
	* lread.c (Fload): Don't leak the file descriptor returned by
	openp if we are going to signal an error.

1060 1061 1062 1063 1064
	* w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
	directly to _close.
	(sys_dup): Protect against new_fd larger than fd_info[] can handle.
	(sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
	to _read.
1065
	(sys_write): If FD is outside [0..MAXDESC) limits, pass it
1066 1067
	directly to _write.

1068 1069 1070
	* .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
	if it is NULL.

1071 1072 1073 1074
2006-01-20  Kenichi Handa  <handa@m17n.org>

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

1075 1076 1077 1078 1079
2006-01-19  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (get_window_cursor_type): Use cursor type specified by
	the selected buffer for the echo area too.

1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
2006-01-19  Richard M. Stallman  <rms@gnu.org>

	* keymap.c (Fmap_keymap): Doc fix.

	* s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.

	* keyboard.c (echo_char): Don't omit the space between first two
	echoed chars.

	* minibuf.c (read_minibuf): Fix previous change.

1091 1092 1093 1094
2006-01-19  Kenichi Handa  <handa@m17n.org>

	* xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.

1095 1096 1097 1098 1099
2006-01-17  Richard M. Stallman  <rms@gnu.org>

	* frame.c (x_frame_get_and_record_arg): Don't record Qunbound
	value in f->param_alist.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1100 1101 1102 1103
2006-01-15  Andreas Schwab  <schwab@suse.de>

	* search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.

Nick Roberts's avatar
Nick Roberts committed
1104 1105 1106 1107 1108 1109
2006-01-13  Richard M. Stallman  <rms@gnu.org>

	* Makefile.in: Define new macro WINDOW_SUPPORT.
	(lisp): Use it.
	(SOME_MACHINE_LISP): Add conditionally loaded files.

1110 1111 1112
2006-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
Romain Francoise's avatar
Romain Francoise committed
1113
	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
1114 1115 1116 1117 1118 1119 1120 1121
	(XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
	decomposed form.

	* process.c [HAVE_INTTYPES_H]: Include inttypes.h.
	(ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
	(Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
	macro.  Also try member ifr_addr when getting netmask.

1122 1123 1124 1125 1126 1127
2006-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (Fexpand_file_name): Remove redundant tests.
	Fix elimination of // so that it doesn't prevent elimination of an
	immediately following /. or /..

1128 1129 1130 1131 1132 1133 1134 1135
2006-01-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_toggle_notify_cb): New function.
	(xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
	xg_toggle_notify_cb.
	(xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
	parameter value changes so the toggle button gets updated.

Nick Roberts's avatar
Nick Roberts committed
1136 1137 1138 1139
2006-01-06  Nick Roberts  <nickrob@snap.net.nz>

	* .gdbinit: Fix typo.

Eli Zaretskii's avatar
Eli Zaretskii committed
1140 1141 1142 1143
2006-01-05  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit: Fix last change.

Kim F. Storm's avatar
Kim F. Storm committed
1144 1145 1146
2006-01-05  Kim F. Storm  <storm@cua.dk>

	* process.c (Fmake_network_process): Use AF_INET instead of
Romain Francoise's avatar
Romain Francoise committed
1147
	AF_UNSPEC when AF_INET6 is not defined.
Kim F. Storm's avatar
Kim F. Storm committed
1148

YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1149 1150 1151 1152 1153 1154 1155 1156 1157
2006-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
	Don't check that the other type is known file-related one.

	* macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
	gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
	OS X 10.4 and later.

1158 1159 1160 1161 1162 1163
2006-01-04  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
	let GTK do all image processing.  Importing Emacs own pixmaps to GTK
	looks bad for inactive tool bar items with some Gnome themes.

1164 1165
2006-01-04  Eli Zaretskii  <eliz@gnu.org>

1166 1167 1168
	* .gdbinit: Avoid a warning message when x_error_quitter is not
	compiled in.

1169 1170 1171
	* process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
	for w32.

1172 1173
2006-01-04  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188
	* process.c: Add IPv6 support.
	(Qipv4, Qipv6): New vars.
	(syms_of_process): Intern and staticpro them.
	(Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
	with or without port number.  Handle 4 element vector as IPv4 address
	without port number.
	(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
	(conv_lisp_to_sockaddr): Handle IPv6 addresses.
	(Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
	request that address family only.  :family nil or omitted means to
	determine address family from the specified :host and :service.
	(ifflag_table): Add missing OpenBSD IFF_ flags.
	(server_accept_connection): Handle IPv6 addresses.
	(init_process): Add (:family ipv4) and (:family ipv6) sub-features.

1189 1190 1191
	* .gdbinit: Undo last change.  Instead, look at Vsystem_type to
	determine which breakpoints to set.

1192 1193 1194 1195 1196 1197
2006-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.

	* window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).

1198 1199 1200 1201
2006-01-03  Romain Francoise  <romain@orebokech.com>

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

Ken Raeburn's avatar
Ken Raeburn committed
1202
2006-01-03  Ken Raeburn  <raeburn@gnu.org>
1203 1204 1205 1206

	* callproc.c (delete_temp_file): Bind file-name-handler-alist to
	nil for the call to internal_delete_file.

1207 1208 1209 1210 1211
2006-01-01  Ken Raeburn  <raeburn@gnu.org>

	* callproc.c (Fcall_process_region): Bind file-name-handler-alist
	to nil for the call to Fwrite_region.

1212 1213 1214 1215
2005-12-31  Richard M. Stallman  <rms@gnu.org>

	* minibuf.c (read_minibuf): Clear out all other minibuffer windows.

Eli Zaretskii's avatar
Eli Zaretskii committed
1216 1217 1218 1219
2005-12-31  Eli Zaretskii  <eliz@gnu.org>

	* emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.

Luc Teirlinck's avatar
Luc Teirlinck committed
1220 1221 1222 1223 1224 1225
2005-12-30  Luc Teirlinck  <teirllm@auburn.edu>

	* textprop.c (set_text_properties): Reword description of return value.
	Return Qnil if caller wants to remove all text properties from a
	string and the string already has no intervals.

1226 1227 1228 1229 1230 1231 1232
2005-12-30  Stefan Monnier  <monnier@iro.umontreal.ca>

	* term.c (visible_cursor): New boolean var.
	(set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
	visible_cursor.
	(syms_of_term): Export the new var as "visible-cursor".

Eli Zaretskii's avatar
Eli Zaretskii committed
1233 1234 1235 1236 1237
2005-12-30  Eli Zaretskii  <eliz@gnu.org>

	* .gdbinit: Tell users not to worry about GDB warnings that some
	functions do not exist in the binary.

1238 1239 1240 1241 1242
2005-12-30  Andreas Schwab  <schwab@suse.de>

	* process.c (Fnetwork_interface_info): Correctly terminate the
	loop over ifflag_table.

1243 1244
2005-12-29  Richard M. Stallman  <rms@gnu.org>

1245 1246 1247 1248 1249
	* lread.c (readevalloop): Test for reading a whole buffer
	before actually reading anything.  Handle all cases, including
	START = END = nil and an already-narrowed buffer.
	Convert END to a marker if it is a number.

1250 1251 1252 1253 1254
	* keymap.c (describe_map): Put sparse map elements into an array,
	sort them, then output a sequence of identical bindings on one line.
	(struct describe_map_elt): New data type.
	(describe_map_compare): New function.

1255 1256
2005-12-28  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

1257
	* gtkutil.c (xg_get_file_with_chooser): Change message shown
1258 1259
	in file chooser.

1260 1261
2005-12-27  Richard M. Stallman  <rms@gnu.org>

1262 1263 1264 1265 1266 1267
	* lread.c (readevalloop): Set PT and ZV in the proper buffer,
	not the current one.

	* minibuf.c (Fminibuffer_message): Doc fix.
	(read_minibuf): Set current_buffer->enable_multibyte_characters sooner.

1268 1269 1270
	* eval.c (do_autoload): Ignore elements of Vautoload_queue
	where car is not symbol.

Kenichi Handa's avatar
Kenichi Handa committed
1271 1272 1273 1274
2005-12-27  Kenichi Handa  <handa@m17n.org>

	* charset.c (lisp_string_width): Check multibyteness of STRING.

1275 1276 1277 1278 1279 1280 1281 1282 1283 1284
2005-12-27  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c: x_show_hidden_files, new variable.
	(syms_of_xfns): Defvar it.

	* gtkutil.c (xg_toggle_visibility_cb): New function.
	(xg_get_file_with_chooser): Add toggle hidden files and a message
	to the new file chooser dialog.  Show hidden files if
	x_show_hidden_files is non-zero.

1285 1286 1287 1288 1289 1290 1291 1292
2005-12-26  Richard M. Stallman  <rms@gnu.org>

	* keyboard.h: Undo previous change.

	* Makefile.in (undo.o): Undo previous change.

	* undo.c: Undo previous change.

Luc Teirlinck's avatar
Luc Teirlinck committed
1293 1294
2005-12-26  Luc Teirlinck  <teirllm@auburn.edu>

Luc Teirlinck's avatar
Luc Teirlinck committed
1295 1296
	* keyboard.h: extern last_point_position_window.

Luc Teirlinck's avatar
Luc Teirlinck committed
1297 1298
	* undo.c: include keyboard.h.

Luc Teirlinck's avatar
Luc Teirlinck committed
1299
	* Makefile.in (undo.o): Depend on keyboard.h.
Luc Teirlinck's avatar
Luc Teirlinck committed
1300

Richard M. Stallman's avatar
Richard M. Stallman committed
1301 1302
2005-12-26  Richard M. Stallman  <rms@gnu.org>

1303 1304
	* commands.h (last_point_position_window): Declare.

Richard M. Stallman's avatar
Richard M. Stallman committed
1305 1306 1307 1308 1309 1310 1311 1312 1313
	* undo.c: Depend on window.h.
	(record_point): Save old point from the correct window.

	* keyboard.c (last_point_position_window): New variable.
	(command_loop_1): Set last_point_position_window.
	(syms_of_keyboard): Init it.

	* Makefile.in (undo.o): Depend on window.h.

1314 1315 1316 1317 1318 1319 1320
2005-12-25  Richard M. Stallman  <rms@gnu.org>

	* eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
	to undo a `provide'.

	* fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.

Karl Berry's avatar
Karl Berry committed
1321 1322 1323 1324 1325
2005-12-25  Giorgos Keramidas  <keramida@ceid.upatras.gr>

	* m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
	define for FreeBSD on this platform.

1326 1327 1328 1329 1330
2005-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.h (TYPE_FILE_NAME): New define.
	(posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.

1331 1332
	* mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
	Add prototypes.  Make static.
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349
	(mac_aedesc_to_lisp): Initialize err to noErr.
	(mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
	(init_coercion_handler): New functions.
	(Fmac_coerce_ae_data): Use coercion of Apple event data for
	translation from/to file names.

	* macterm.c: Don't include sys/param.h.
	(init_coercion_handler): Add extern.
	[MAC_OS8] (main): Call init_coercion_handler.
	(mac_initialize) [MAC_OSX]: Likewise.
	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
	Apple event data for translation from/to file names.

	* macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.

	* image.c [MAC_OS] (find_image_fsspec): Likewise.

1350 1351 1352 1353 1354 1355
2005-12-23  Martin Rudalics  <rudalics@gmx.at>  (tiny change)

	* insdel.c (insert, insert_and_inherit, insert_before_markers)
	(insert_before_markers_and_inherit): Make sure FROM is correct
	when `after-change-functions' are called.

1356 1357 1358 1359 1360 1361 1362 1363 1364
2005-12-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfns.c (Fx_uses_old_gtk_dialog): New function.

	* gtkutil.c (xg_uses_old_file_dialog): New function.
	(xg_get_file_name): Use xg_uses_old_file_dialog.

	* gtkutil.h: Declare xg_uses_old_file_dialog.

1365 1366 1367 1368
2005-12-22  Richard M. Stallman  <rms@gnu.org>

	* xmenu.c (xmenu_show): Call inhibit_garbage_collection.

1369 1370 1371 1372 1373 1374 1375
2005-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.

	* macgui.h (XCharStruct): Remove member `valid_p'.
	(STORE_XCHARSTRUCT): Don't set member `valid_p'.
	(XCharStructRow): New typedef.
1376 1377
	(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
	New macros.
1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388
	(struct MacFontStruct): Add member `bounds'.  Remove member
	`per_char'.  All uses for QuichDraw Text fonts are changed to
	`bounds.per_char'.  ATSUI font bounds are represented as an array
	`bounds.rows' of XCharStructRow's, each of which consists of a
	bitmap of valid entries and an array of char bounds.

	* macterm.c (mac_per_char_metric): Add prototype.
	(x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
	(mac_query_char_extents): New function.
	(x_per_char_metric): Use it.
	(XLoadQueryFont): Likewise.  Consolidate min/max_bounds calculations.
1389 1390
	[USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
	Use mac_per_char_metric instead of x_per_char_metric.
1391 1392 1393 1394
	(mac_text_extents_16): New function.
	(mac_compute_glyph_string_overhangs): Use it.
	(mac_unload_font): Free member `bounds' in struct MacFontStruct.

1395 1396 1397 1398 1399
2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
	(Fminibuffer_completion_help): Remove duplicates before display.