ChangeLog 280 KB
Newer Older
1 2 3 4
2003-03-21  Kenichi Handa  <handa@etlken2>

	* fileio.c (Fexpand_file_name): Fix previous change.

Kenichi Handa's avatar
Kenichi Handa committed
5 6 7 8 9 10 11 12 13 14 15 16 17
2003-03-19  Kenichi Handa  <handa@etlken2>

	* fileio.c (Ffile_name_directory): Reconstruct file name by
	make_specified_string.
	(Ffile_name_nondirectory, Ffile_name_as_directory)
	(Fdirectory_file_name, Fexpand_file_name)
	(Fsubstitute_in_file_name): Likewise.
	(Fread_file_name): Compare decoded homedir with DIR and
	DEFAULT_FILENAME.

	* alloc.c (make_specified_string): If NCHARS is negative, count
	the number of characters.

18 19
2003-03-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

20 21 22
	* gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
	all widgets.

23 24
	* gtkutil.h: Removed xg_ignore_next_thumb.

Kenichi Handa's avatar
Kenichi Handa committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38
2003-03-18  Kenichi Handa  <handa@etlken2>

	* coding.c (Vchar_coding_system_table): Remove this variable.
	(Vcoding_system_safe_chars): New variable.
	(intersection): Remove this function.
	(find_safe_codings): Don't use Vchar_coding_system_table, but try
	all codings in SAFE_CODINGS.
	(Ffind_coding_systems_region_internal): Adjusted for the change of
	find_safe_codings.  Get generic coding systems from
	Vcoding_system_safe_chars.
	(Fdefine_coding_system_internal): New function.
	(syms_of_coding): Defsubr Sdefine_coding_system_internal.
	Initialize and staticpro Vcoding_system_safe_chars.

39 40
2003-03-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

41 42 43
	* gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
	equal old values before updating.

44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
	* xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.

	* gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.

2003-03-17  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
	(xg_resize_widgets): Don't call foreach(handle_fixed_child).
	(xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
	(scroll_bar_button_cb): Set bar->dragging to NIL on button release.
	(xg_create_scroll_bar): Pass bar to button event callback.
	(xg_find_top_left_in_fixed): New function.
	(xg_update_scrollbar_pos): Don't call gdk_window_clear on
	whole scroll bar area.  Get old position with
	xg_find_top_left_in_fixed, calculate and only clear needed areas.
	(xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
	dragging is in progress.  Calculate whole as for Motif.
	Remove code that saved last values.  Call gtk_range functions to
	set scroll bar sizes.

	* gtkutil.h: Removed xg_ignore_next_thumb.

66 67 68 69 70
2003-03-17  Juanma Barranquero  <lektu@terra.es>

	* makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
	and files included from it.

71 72 73 74 75 76 77 78 79 80
2003-03-16  Jason Rumney  <jasonr@gnu.org>

	* w32gui.h: Use HDC for Display.

	* w32term.c (w32_encode_char): Prevent double-byte chars from
	crashing Emacs.

	* w32fns.c (jpeg_load, png_load, slurp_file): Read image files
	as binary.

81 82 83 84
2003-03-16  Juanma Barranquero  <lektu@terra.es>

	* xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.

85 86 87 88 89
2003-03-16  Kim F. Storm  <storm@cua.dk>

	The following changes consolidate some of the gui-independent
	parts of the processing and drawing of "glyph strings" from
	xterm.c, w32term.c, and macterm.c into xdisp.c.
90

91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
	* dispextern.h (struct glyph): Reduce face_id member from 22 to
	21 bits (this reduces number of faces from 4M to 2M).
	Replace W32 specific w32_font_type member (2 bits) by generic
	font_type member (3 bits) for portability.
	(FONT_TYPE_UNKNOWN): New define, default for font_type member.
	(enum draw_glyphs_face): Define here.
	(struct glyph_string): Define here.  Merge W32 and X versions.
	(struct redisplay_interface): New members per_char_metric,
	encode_char, compute_glyph_string_overhangs, draw_glyph_string.
	(VCENTER_BASELINE_OFFSET): Define here.
	(dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
	(x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.

	* xdisp.c: Consolidate gui-independent "glyph string" code here.
	(dump_glyph_string): Moved here.
	(init_glyph_string, append_glyph_string_lists, append_glyph_string)
	(prepend_glyph_string_lists, get_glyph_face_and_encoding)
	(fill_composite_glyph_string, fill_glyph_string)
	(fill_image_glyph_string, fill_stretch_glyph_string)
	(left_overwritten, left_overwriting, right_overwritten)
	(right_overwriting, get_char_face_and_encoding)
	(set_glyph_string_background_width, compute_overhangs_and_x)
	(append_glyph, append_composite_glyph, produce_image_glyph)
	(take_vertical_position_into_account, append_stretch_glyph)
	(produce_stretch_glyph): New generic functions (based on X version).
	Call platform specific functions through rif.
	(INIT_GLYPH_STRING): New macro, hides W32 details.
	(BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
	(BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
	(BUILD_GLYPH_STRINGS): Generic macros (based on X version).
	(x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
	(notice_overwritten_cursor):
	Generic functions exported to platform modules.  Users changed.

	* xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
	(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
	(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
Kim F. Storm's avatar
Kim F. Storm committed
128
	New macros for consolidated code.
129

130 131 132 133 134 135 136 137 138 139
	* xterm.c: Remove consolidated defines and code.
	(x_per_char_metric, x_encode_char)
	(x_compute_glyph_string_overhangs): Adapt to RIF requirements.
	(x_redisplay_interface): Add new members.

	* w32gui.h (Display): Add dummy typedef for consolidation.
	(XChar2b): Define alias for wchar_t for consolidation.
	(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.

	* w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
140
	(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
141 142
	New macros for consolidation.

Kim F. Storm's avatar
Kim F. Storm committed
143
	* w32term.c: Remove consolidated defines and code.
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
	(BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
	to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
	(w32_per_char_metric): Change font_type arg to int for RIF.
	(w32_encode_char): Return int according to RIF requirements.
	(w32_compute_glyph_string_overhangs): Adapt to RIF.
	(w32_get_glyph_overhangs): New function for RIF.  Uses generic
	x_get_glyph_overhangs.
	(w32_redisplay_interface): Add new members.

	* macgui.h (XChar2b): Move typedef here for consolidation.
	(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.

	* macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
	(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
	consolidation.

	* macterm.c: Remove consolidated defines and code.
	(mac_per_char_metric): New function for RIF.
	(mac_encode_char): Adapted to new RIF requirements.
	(mac_compute_glyph_string_overhangs): Adapt for RIF.
	(x_redisplay_interface): Add new members.

166 167 168 169
2003-03-14  Richard M. Stallman  <rms@gnu.org>

	* lread.c (read1): After #!, exit loop on eof.

Jan Djärv's avatar
Jan Djärv committed
170 171
2003-03-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

172 173
	* gtkutil.h: Add declaration for xg_frame_cleared.

174 175
	* xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.

Jan Djärv's avatar
Jan Djärv committed
176 177 178 179 180 181 182 183 184 185 186
	* gtkutil.c (struct xg_last_sb_pos): New structure.
	(handle_fixed_child): New function.
	(xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
	and force a redraw on them.
	(xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
	(xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
	so we can avoid unneeded redraws.
	(xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
	and force a redraw on the scroll bar.
	(xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
	if xg_last_sb_pos shows the positions are up to date.
187
	(xg_frame_cleared): New function.
Jan Djärv's avatar
Jan Djärv committed
188

Kenichi Handa's avatar
Kenichi Handa committed
189 190 191 192 193
2003-03-13  Kenichi Handa  <handa@m17n.org>

	* coding.c (Fdetect_coding_region): Fix docstring.
	(Fdetect_coding_string): Fix docstring.

Andreas Schwab's avatar
.  
Andreas Schwab committed
194 195
2003-03-13  Andreas Schwab  <schwab@suse.de>

Andreas Schwab's avatar
.  
Andreas Schwab committed
196 197
	* gtkutil.c: Add prototype for create_menus.

Andreas Schwab's avatar
.  
Andreas Schwab committed
198 199 200 201 202
	* data.c (long_to_cons): Fix type of top.

	* xselect.c (selection_data_to_lisp_data): Use int instead of
	long for an integer of size 4.

Andreas Schwab's avatar
.  
Andreas Schwab committed
203
	* gtkutil.c (xg_update_frame_menubar): Add missing return value.
Andreas Schwab's avatar
.  
Andreas Schwab committed
204
	(xg_tool_bar_help_callback): Likewise.
Andreas Schwab's avatar
.  
Andreas Schwab committed
205

206 207 208 209
2003-03-12  Andreas Schwab  <schwab@suse.de>

	* xterm.c (x_term_init) [USE_GTK]: Fix typo.

Kim F. Storm's avatar
Kim F. Storm committed
210 211
2003-03-12  Kim F. Storm  <storm@cua.dk>

212
	The following changes consolidate the fringe handling from
Kim F. Storm's avatar
Kim F. Storm committed
213
	xterm.c, w32term.c, and macterm.c into xdisp.c.
Stefan Monnier's avatar
Stefan Monnier committed
214

Kim F. Storm's avatar
Kim F. Storm committed
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
	* xdisp.c: Consolidate fringe handling code here.
	(left_bits, right_bits, continued_bits, continuation_bits)
	(ov_bits, zv_bits): Define fringe bitmaps.
	(fringe_bitmaps): New array holding fringe bitmaps.
	(draw_fringe_bitmap): Draw a specific bitmap; call display
	specific drawing routine via rif->draw_fringe_bitmap.
	(draw_row_fringe_bitmaps): Generic replacement for
	x_draw_row_fringe_bitmaps; all callers changed.
	(compute_fringe_widths): Generic replacement for
	x_compute_fringe_widths; all callers changed.

	* dispextern.h (enum fringe_bitmap_type): Define here.
	(struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
	(fringe_bitmaps): Declare extern.
	(struct redisplay_interface): New member draw_fringe_bitmap.
	(draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.

	* xterm.c: Remove generic fringe code.
	(x_draw_fringe_bitmap): Only perform actual fringe drawing.
	(x_redisplay_interface): Add x_draw_fringe_bitmap member.

	* w32term.c: Remove generic fringe code.
	(w32_draw_fringe_bitmap): Only perform actual fringe drawing.
	(w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
Stefan Monnier's avatar
Stefan Monnier committed
239

Kim F. Storm's avatar
Kim F. Storm committed
240 241 242 243
	* macterm.c: Remove generic fringe code.
	(x_draw_fringe_bitmap): Only perform actual fringe drawing.
	(x_redisplay_interface): Add x_draw_fringe_bitmap member.

Stefan Monnier's avatar
Stefan Monnier committed
244 245 246 247
2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>

	* print.c (Fprin1_to_string): Return unibyte string if possible.

David Kastrup's avatar
David Kastrup committed
248 249 250 251 252
2003-03-09  David Kastrup  <dak@gnu.org>

	* process.c (read_process_output): We have allocated enough space
	for readmax and carryover, so actually use the alloted space.

253 254 255 256 257 258 259 260 261 262 263
2003-03-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c (make_lispy_event): Extend mouse_syms if needed for
	toolkit scrollbar click.

	* xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
	for USE_GTK.
	(x_scroll_bar_handle_click): Use this function for toolkit scrollbars
	also.
	(handle_one_xevent): ButtonPress/Release:  If event is for a toolkit
	scrollbar and control is pressed, call x_scroll_bar_handle_click.
Stefan Monnier's avatar
Stefan Monnier committed
264

265 266 267 268 269 270 271 272 273 274
	* gtkutil.h: Declare xg_get_scroll_id_for_window.

	* gtkutil.c (xg_get_scroll_id_for_window): New function.
	(xg_tool_bar_item_expose_callback): New function.
	(xg_tool_bar_expose_callback): Call update_frame_tool_bar.
	(xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
	on the tool bar widget.
	(update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
	to expose on the tool bar item widgets.

275 276
2003-03-08  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

277
	* gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
Stefan Monnier's avatar
Stefan Monnier committed
278
	struct image* when deciding to update (struct image* may have been
279 280
	deleted from the image cache).

281 282 283
	* xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
	the event isn't for a frame (i.e. for dialogs).

Kenichi Handa's avatar
Kenichi Handa committed
284
2003-03-07  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
285 286 287 288

	* coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
	composition components reaches the limit, terminate composing.
	(COMPOSITION_OK): New macro.
Stefan Monnier's avatar
Stefan Monnier committed
289
	(detect_coding_iso2022): Use it if an escape sequence for
Kenichi Handa's avatar
Kenichi Handa committed
290 291 292 293
	composition is found.
	(coding_restore_composition): Adjust the number of composition
	components if it is not sane.

294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
2003-03-06  Juanma Barranquero  <lektu@terra.es>

	* w32term.h (struct w32_display_info): Add xrdb member to support
	passing resources via -xrm on Windows.

	* w32term.c (w32_make_rdb): New function.
	(w32_term_init): Use it to initialize xrdb member of w32_display_info
	struct.  Delete leftover code.

	* w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
	for resources passed on the command line.

	* w32reg.c (w32_get_rdb_resource): New function.
	(x_get_string_resource): Use it, so resources passed with -xrm
	supercede the ones in the registry.

310 311 312 313 314
2003-03-04  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_detect_focus_change): Call x_any_window_to_frame
	instead of x_top_window_to_frame.

315 316 317 318 319
2003-03-03  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
	when restarting Emacs.

320 321 322 323 324 325 326
2003-03-03  Richard M. Stallman  <rms@gnu.org>

	* buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
	to run kill-buffer-query-functions.
	(Qkill_buffer_query_functions): New var.
	(syms_of_buffer): Init and staticpro it.

327 328 329 330
2003-03-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.

331 332 333 334 335 336 337 338
2003-02-25  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (redisplay_window): Fix infinite loop in redisplay.
	If centering point failed to make whole line visible and vscroll
	is non-zero, disable vscroll and try centering point again.

	* lread.c (read1): Accept `single space' syntax like (? x).

339 340 341 342 343
2003-02-25  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c (cancel_hourglass_unwind): Surround with
	#ifdef HAVE_X_WINDOWS

Kenichi Handa's avatar
Kenichi Handa committed
344 345 346 347 348
2003-02-25  Kenichi Handa  <handa@m17n.org>

	* buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
	process only when "subprocesses" is defined.

Stefan Monnier's avatar
Stefan Monnier committed
349 350 351 352
2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (back_comment): Only check nestedness of 2nd char if needed.

353 354
2003-02-24  Juanma Barranquero  <lektu@terra.es>

355 356 357
	* callint.c (fix_command): Declare as static void and move before
	Fcall_interactively.

358 359 360
	* xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
	(syms_of_xdisp): Don't initialize Qwhen.

361 362 363 364 365
2003-02-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c (cancel_hourglass_unwind): New function.
	(command_loop_1): Cancel hourglass with unwind-protect.

366 367 368 369 370 371 372
2003-02-23  Richard M. Stallman  <rms@gnu.org>

	* callint.c (fix_command): New subroutine, from Fcall_interactively.
	Detect (when ... (region-beginning)) etc.
	(Fcall_interactively): Call fix_command.
	(Qif, Qwhen): New variables.
	(syms_of_callint): Init and staticpro them.
373

374 375
	* regex.c (print_partial_compiled_pattern): Output to stderr.

376 377 378 379 380 381
2003-02-23  Kai Gro,A_(Bjohann  <kai.grossjohann@uni-duisburg.de>

	* dired.c (directory_files_internal): Don't expand directory.
	(Fdirectory_files, Fdirectory_files_and_attributes): Do it here
	instead.  From Lars Hansen <larsh@math.ku.dk>.

382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>

	* fns.c (string_to_multibyte): Remove unused var i.
	(Flanginfo): Fix int/Lisp_Object mixup.
	(void_call2): New fun.
	(Fmap_char_table): Use it in place of call2.

	* xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.

	* macros.c (Fstart_kbd_macro): Remove redundant assignment.

	* keymap.c (copy_keymap_1): Make it static.

	* alloc.c (Fgarbage_collect): Don't use XSETFLOAT.

397 398 399 400
2003-02-22  David Ponce  <david@dponce.com>

	* lread.c (Fload): Don't check STRING_MULTIBYTE.

401 402 403 404 405 406
2003-02-21  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* process.h: Removed subtty field from struct Lisp_Process.

	* process.c (create_process): Remove setting of subtty.
	(emacs_get_tty_pgrp): New function.
407 408
	(Fprocess_running_child_p, process_send_signal):
	Call emacs_get_tty_pgrp instead of ioctl.
409 410
	(process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.

Kai Großjohann's avatar
Kai Großjohann committed
411 412 413 414
2003-02-21  Kai Gro,A_(Bjohann  <kai.grossjohann@uni-duisburg.de>

	* keymap.c (Fdefine_key): Doc fix.

Juanma Barranquero's avatar
Juanma Barranquero committed
415 416 417 418 419 420 421 422 423 424 425 426
2003-02-21  Juanma Barranquero  <lektu@terra.es>

	Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.

	* s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
	POLLING_PROBLEM_IN_SELECT.

	* s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
	Delete #undef of POLLING_PROBLEM_IN_SELECT.

	* s/hpux10-20.h: New file.

427 428
	* process.c (wait_reading_process_input):
	Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
Juanma Barranquero's avatar
Juanma Barranquero committed
429

430 431
2003-02-20  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
432 433 434
	* fontset.c (check_fontset_name): If NAME is nil, return the
	default fontset.
	(override_font_info): New function.
435
	(Fset_fontset_font): Document that NAME nil means the default fontset.
Kenichi Handa's avatar
Kenichi Handa committed
436 437 438 439 440
	(Ffontset_info): If FONTSET is not the default fontset, merge
	FONTSET onto the copy of the default fontset, and work on that
	copy.  Document that NAME nil means the default fontset.
	(Ffontset_font): Document that NAME nil means the default fontset.

441 442 443
	* process.c (setup_process_coding_systems): If the process's
	in/out descriptor is -1, do nothing.

Andreas Schwab's avatar
.  
Andreas Schwab committed
444 445
2003-02-19  Andreas Schwab  <schwab@suse.de>

446 447
	* lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
	Add prototypes.
Andreas Schwab's avatar
.  
Andreas Schwab committed
448

449 450 451 452 453
2003-02-19  Kenichi Handa  <handa@m17n.org>

	* xfaces.c (try_alternative_families): Try all scalable fonts if
	Vscalable_fonts_allowed is not Qt.

454 455 456 457
2003-02-19  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.

458 459 460 461 462 463
2003-02-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_list_fonts): If maxnames is less than 0, get all font
	names.

	* xfaces.c (x_face_list_fonts): Allocate struct font_name here.
464
	(sorted_font_list): Move allocation of struct font_name to
465 466 467 468
	x_face_list_fonts.
	(Fx_font_family_list): Set font-list-limit to -1 to get all font names.
	(Fx_list_fonts): Set maxnames to -1 to get all font names.

Kim F. Storm's avatar
Kim F. Storm committed
469 470
2003-02-18  Kim F. Storm  <storm@cua.dk>

471 472
	* lread.c (read1): Fix last change.
	"`" is not always special.  Allow "?" after a character constant.
Kim F. Storm's avatar
Kim F. Storm committed
473

474 475 476 477
2003-02-18  Andrew Choi  <akochoi@shaw.ca>

	* unexmacosx.c (copy_data_segment): Also copy __cfstring section.

Andreas Schwab's avatar
.  
Andreas Schwab committed
478 479 480 481 482 483 484 485
2003-02-18  Andreas Schwab  <schwab@suse.de>

	* window.c (window_scroll_pixel_based): Move outside a
	multi-glyph character before setting new window start.

	* xdisp.c (in_display_vector_p): New function.
	* dispextern.h (in_display_vector_p): Declare.

Kim F. Storm's avatar
Kim F. Storm committed
486 487 488 489 490 491 492 493
2003-02-18  Kim F. Storm  <storm@cua.dk>

	* lread.c (read1): Fix and relax read syntax.
	Recognize "[", ";", "#", and "?" after a dotted-pair dot.
	Only recognize "," after dotted-pair dot if inside backquote.
	Never include "`" or "," (inside backquote) in a symbol.
	Allow dotted-pair dot after a character constant.
	Allow "`" and "," (inside backquote) after a character constant.
Juanma Barranquero's avatar
Juanma Barranquero committed
494

495 496 497 498 499 500 501 502
2003-02-17  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_tool_bar_expose_callback): New function.
	(xg_create_tool_bar): Force style of tool bar to be horizontal with
	icons.	Set name of tool bar to emacs-toolbar.
	(update_frame_tool_bar): Connect expose event to
	xg_tool_bar_expose_callback.

503 504 505 506 507 508 509 510 511
2003-02-17  Richard M. Stallman  <rms@gnu.org>

	* keyboard.c (this_command_key_count_reset): New variable.
	Initiatize to 0 where this_command_key_count is set.
	(read_char): Save and restore this_command_key_count_reset
	around input method code.
	(read_char): If this_command_key_count_reset, echo reread commands.
	(Freset_this_command_lengths): Set this_command_key_count_reset to 1.

512 513 514 515
2003-02-17  Kenichi Handa  <handa@m17n.org>

	* fns.c (string_to_multibyte): Always return a multibyte string.

516 517
2003-02-16  Jason Rumney  <jasonr@gnu.org>

518 519
	* w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
	Negative max_fonts parameter means list all.
520

Dave Love's avatar
Dave Love committed
521 522 523 524
2003-02-14  Dave Love  <fx@gnu.org>

	* fns.c (Flanginfo): Doc fix.

525 526
2003-02-13  Kim F. Storm  <storm@cua.dk>

527 528 529 530 531
	* lread.c (read_escape): Interpret \s as a SPACE character, except
	for \s-X in a character constant which still is the super modifier.
	(read1): Signal an `invalid read syntax' error if a character
	constant is immediately followed by a digit or symbol character.

532 533 534
	* search.c (Fmatch_data): Doc fix.  Explicitly state that
	match-data is undefined if last search failed.

535 536 537
	* keymap.c (Fcommand_remapping): Renamed from Fremap_command.
	All uses changed.

Juanma Barranquero's avatar
Juanma Barranquero committed
538 539 540 541
2003-02-12  Juanma Barranquero  <lektu@terra.es>

	* eval.c (Fdefmacro): Fix typo.

542 543 544 545 546 547
2003-02-12  Kim F. Storm  <storm@cua.dk>

	* macros.c (Fstart_kbd_macro): If appending, and last keyboard
	macro is a string, convert meta modifiers in string when copying
	the string into a vector.

Kim F. Storm's avatar
Kim F. Storm committed
548 549 550 551
2003-02-11  Kim F. Storm  <storm@cua.dk>

	* keymap.c (Fremap_command): Return nil if arg is not a symbol.

Kenichi Handa's avatar
Kenichi Handa committed
552 553 554 555
2003-02-11  Kenichi Handa  <handa@m17n.org>

	* Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.

Kim F. Storm's avatar
Kim F. Storm committed
556 557 558 559 560
2003-02-10  Kim F. Storm  <storm@cua.dk>

	* process.c: Doc fixes.
	(syms_of_process): Add `:' prefix to QCfilter_multibyte.

Kenichi Handa's avatar
Kenichi Handa committed
561 562
2003-02-10  Kenichi Handa  <handa@m17n.org>

563 564
	* fns.c (Fstring_to_multibyte): Fix typo in the docstring.

Kenichi Handa's avatar
Kenichi Handa committed
565 566
	* process.c (QCfilter_multibyte): New variable.
	(setup_process_coding_systems): New function.
567 568
	(Fset_process_buffer, Fset_process_filter):
	Call setup_process_coding_systems.
Kenichi Handa's avatar
Kenichi Handa committed
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595
	(Fstart_process): Initialize the member `filter_multibyte' of
	struct Lisp_Process.
	(create_process): Call setup_process_coding_systems.
	(Fmake_network_process): New keyward `:filter-multibyte'.
	Initialize the member `filter_multibyte' of struct Lisp_Process.
	Call setup_process_coding_systems.
	(server_accept_connection): Call setup_process_coding_systems.
	(read_process_output): If the process has a filter, decide the
	multibyteness of a string to given to the filter by
	`filter_multibyte' member of the process.  If the process doesn't
	have a filter and the result of conversion is unibyte, use
	Fstring_to_multibyte (not Fstring_make_multibyte) to get the
	multibyte form.
	(Fset_process_coding_system): Call setup_process_coding_systems.
	(Fset_process_filter_multibyte): New function.
	(Fprocess_filter_multibyte_p): New function.
	(syms_of_process): Intern and staticpro QCfilter_multibyte.
	Defsubr Sset_process_filter_multibyte and
	Sprocess_filter_multibyte_p.

	* process.h (struct Lisp_Process): New member filter_multibyte.

	* lisp.h (setup_process_coding_systems): Add prototype.

	* buffer.c (Fset_buffer_multibyte): If the current buffer has a
	process, update coding systems for the process.

Kenichi Handa's avatar
Kenichi Handa committed
596 597 598 599 600 601
2003-02-09  Kenichi Handa  <handa@m17n.org>

	* fns.c (string_to_multibyte): New function.
	(Fstring_to_multibyte): New function.
	(syms_of_fns): Defsubr it.

Andreas Schwab's avatar
Andreas Schwab committed
602 603 604 605 606
2003-02-08  Andreas Schwab  <schwab@suse.de>

	* Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
	instead of the substitution.

607 608 609 610 611 612 613
2003-02-08  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_make_frame_visible): Call gtk_window_deiconify.

	* xmenu.c (menu_position_func): Adjust menu popup position so that
	the menu is fully visible.

614 615 616
2003-02-07  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
617 618
	(x_make_frame_invisible, x_wm_set_icon_position):
	Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
619 620 621

	* xfns.c (x_set_name, x_set_title): Ditto.

622 623 624 625 626 627 628 629 630 631 632 633 634 635 636
2003-02-04  Richard M. Stallman  <rms@gnu.org>

	* keyboard.c (echo_now): Update before_command_echo_length.
	(Freset_this_command_lengths): Reset this_command_key_count etc.
	immediately rather than arranging to do it later.
	(before_command_key_count_1, before_command_echo_length_1)
	(before_command_restore_flag): Vars deleted.
	(add_command_key): Don't handle before_command_restore_flag.
	(read_char, record_menu_key): Don't update before_command_key_count or
	before_command_echo_length.
	(read_char): Don't handle before_command_restore_flag.

	* keyboard.c (command_loop_1): Don't call adjust_point_for_property
	in direct-output clauses if it wouldn't be called in the ordinary case.

Kim F. Storm's avatar
Kim F. Storm committed
637 638 639 640
2003-02-04  Kim F. Storm  <storm@cua.dk>

	* keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.

Jan Djärv's avatar
Jan Djärv committed
641 642 643 644 645 646 647
2003-02-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (remove_from_container): Copying list is not needed.
	(xg_update_menubar, xg_update_menu_item, xg_update_submenu)
	(xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
	on list returned from gtk_container_get_children to avoid memory leak.

648 649
2003-02-01  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
650 651 652 653 654 655 656 657
	* w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
	local malloc.
	[HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
	definitions in xpm.h.
	(init_xpm_functions): New function.
	(xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
	(init_external_image_libraries): Try to load libXpm.dll.

658 659 660
	* fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
	timestamp.

Dave Love's avatar
Dave Love committed
661 662 663 664 665
2003-01-31  Dave Love  <fx@gnu.org>

	* syntax.c (Fskip_chars_forward)
	(open-paren-in-column-0-is-defun-start): Doc fix.

Juanma Barranquero's avatar
Juanma Barranquero committed
666 667 668 669 670 671 672 673 674 675 676 677 678
2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>

	* fileio.c: Support // at start of name for Cygwin (just added proper
	preprocessor tests).

	* keyboard.c: Port to Cygwin (just added proper preprocessor tests).

	* Makefile.in: Use @EXEEXT@ for Cygwin.

	* mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.

	* s/cygwin.h: Added for Cygwin port.

Juanma Barranquero's avatar
Juanma Barranquero committed
679 680 681 682
2003-01-31  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
	when including gif_lib.h.
Juanma Barranquero's avatar
Juanma Barranquero committed
683 684 685
	(init_gif_functions, init_tiff_functions): New functions.
	(gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
	Windows. Disable color table lookups. Call library functions
Juanma Barranquero's avatar
Juanma Barranquero committed
686
	through pointers determined at runtime.
Juanma Barranquero's avatar
Juanma Barranquero committed
687 688
	(init_external_image_libraries): Try to load libungif.dll and
	libtiff.dll.
Juanma Barranquero's avatar
Juanma Barranquero committed
689

Kenichi Handa's avatar
Kenichi Handa committed
690 691 692
2003-01-31  Kenichi Handa  <handa@m17n.org>

	* xdisp.c (SKIP_GLYPHS): New macro.
693
	(set_cursor_from_row): Skip all glyphs that comes from overlay string.
Kenichi Handa's avatar
Kenichi Handa committed
694

695 696
2003-01-30  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

697
	* gtkutil.c (free_frame_tool_bar): Remove debug printf.
698

Dave Love's avatar
Dave Love committed
699 700 701 702 703 704
2003-01-30  Dave Love  <fx@gnu.org>

	* alloc.c (Vgc_elapsed, gcs_done): New variables.
	(Fgarbage_collect): Use them.
	(init_alloc, syms_of_alloc): Set them up.

705 706 707 708
2003-01-30  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (init_external_image_libraries): Add missing operator.

Jason Rumney's avatar
Jason Rumney committed
709 710 711 712 713
2003-01-29  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
	an alternative name for jpeg.dll.

Kenichi Handa's avatar
Kenichi Handa committed
714 715 716 717 718
2003-01-29  Kenichi Handa  <handa@m17n.org>

	* xdisp.c (set_cursor_from_row): Pay attention to string display
	properties.

719 720 721 722 723 724 725
2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>

	* macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
	<escape>.
	(keycode_to_xkeysym_table): Reformat and add more comments.
	(XTread_socket): Drop special case for backspace.

726 727 728 729 730
2003-01-28  Andrew Choi  <akochoi@shaw.ca>

	* macfns.c (x_to_mac_color): Correct the order for parsing the RGB
	values in old-style RGB specs.

731 732 733 734 735
2003-01-27  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (init_external_image_libraries): Try alternate names for the
	jpeg dll.

736 737 738 739 740 741
2003-01-27  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (create_dialog, xg_separator_p)
	(xg_item_label_same_p, xg_update_menu_item): Check for NULL string
	before calling strcmp or strlen.

742
2003-01-26  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
743 744 745 746

	* gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
	and handle image load failure.

Jason Rumney's avatar
Jason Rumney committed
747 748 749 750 751 752 753 754 755
2003-01-26  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
	New functions.
	(jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
	Disable color table lookups. Call jpeg library functions
	through pointers determined at runtime.
	(init_external_image_libraries): Try to load jpeg.dll.

756 757 758 759 760 761 762 763 764 765 766 767
2003-01-25  Richard M. Stallman  <rms@gnu.org>

	* lisp.h: Declare format2 instead of format1.

	* fileio.c (barf_or_query_if_file_exists):
	Call format2 instead of format1.

	* editfns.c (format2): New function, replaces format1
	but takes exactly two Lisp Objects as format args.

	* buffer.c (Fkill_buffer): Call format2 instead of format1.

768
2003-01-25  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
Jan Djärv's avatar
Jan Djärv committed
769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784

	* xterm.h: Change to return value of x_dispatch_event to int.

	* xterm.c (x_filter_event): New function.
	(event_handler_gdk, XTread_socket): Call x_filter_event.
	(x_dispatch_event): Change to return value of finish.
	(event_handler_gdk): Use return value from x_dispatch_event.

	* xfns.c (x_window): Call create_frame_xic for GTK version to
	initialize input methods.

	* gtkutil.h: Add (void) prototypes.

	* gtkutil.c (create_menus): Remove code that puts the help menu to
	the right.

785 786 787 788 789 790
2003-01-25  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (XPutPixel): Handle monochrome images; used for masks.
	[HAVE_PNG]: Sync with xfns.c version.
	(png_load): Adjust colors for Windows. Use Windows
	bitmaps. Disable color table lookups.
Jason Rumney's avatar
Jason Rumney committed
791 792 793 794 795 796 797
	(DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
	(init_png_functions): New function.
	(png_read_from_memory, png_load): Call png library functions
	through pointers determined at runtime.
	(QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
	(init_external_image_libraries): New function.
	(init_xfns): Call it.
798

799 800 801 802
2003-01-24  Andreas Schwab  <schwab@suse.de>

	* minibuf.c (Fminibuffer_message): Verify type of parameter.

803
2003-01-24  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
804 805 806 807

	* gtkutil.c (xg_initialize): Initialize id_to_widget here instead
	of static initializer.

808 809 810 811 812 813 814 815
2003-01-24  Dave Love  <fx@gnu.org>

	* s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
	architectures.

	* alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
	Use __alignof__.

816 817 818
2003-01-24  Kenichi Handa  <handa@m17n.org>

	* keyboard.c (adjust_point_for_property): New second arg MODIFIED.
819
	It it is nonzero, don't pretend that an invisible area doesn't exist.
820 821 822
	(command_loop_1): Call adjust_point_for_property with proper
	second arg.

823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849
2003-01-22  Jason Rumney  <jasonr@gnu.org>

	Sync changes with xterm.c and xfns.c.

	* w32term.c (x_draw_glyph_string_foreground)
	(x_draw_composite_glyph_string_foreground): Implement overstriking.

	* w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
	phys_cursor's hpos is overwritten.  This is still not completely
	correct, as it doesn't really make sense to use hpos at all to
	get the cursor glyph (as that is relative to the width of the
	characters on the line, which may have changed during the update).

	* w32term.c (notice_overwritten_cursor): Handle the special case
	of the cursor being in the first blank non-text line at the
	end of a window.

	* w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
	(x_draw_phys_cursor_glyph): Set phys_cursor_width here.
	Compute from the x position returned by x_draw_glyphs.

	(x_display_and_set_cursor): Don't set phys_cursor_width here,
	except for NO_CURSOR and system caret, to make phys_cursor_width
	contain what its name suggests.
	(notice_overwritten_cursor): Consider the cursor image erased if
	the output area intersects the cursor image in y-direction.

Stefan Monnier's avatar
Stefan Monnier committed
850 851
	* w32term.c (note_mode_line_or_margin_highlight): Rename from
	note_mode_line_highlight and extend.
852 853 854 855 856 857 858 859

	* w32term.c (last_window): New variable.
	(w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
	(note_mouse_movement): Remove reimplemented code in #if 0.

	* w32fns.c (x_set_cursor_type): Set cursor_type_changed,
	not update_mode_lines, and always set it to 1.

Jason Rumney's avatar
Jason Rumney committed
860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875
2003-01-21  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (IDC_HAND): Define it if system headers don't.

2003-01-21  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>

	* w32term.h (struct w32_output): New member hand_cursor.
	(WM_EMACS_SETCURSOR): New message definition.

	* w32term.c (note_mode_line_highlight): Delete #if 0 to enable
	function w32_define_cursor.
	(note_mouse_highlight): Initialize, setup cursor accoding to mouse
	position, change member name output_data.x to output_data.w32 and
	add function w32_define_cursor.
	(show_mouse_face): Delete #if 0 to enable function w32_define_cursor
	and change member name output_data.x to output_data.w32.
876 877
	(w32_initialize_display_info):
	Setup dpyinfo->vertical_scroll_bar_cursor.
Jason Rumney's avatar
Jason Rumney committed
878 879 880 881 882 883

	* w32fns.c (Vx_hand_shape): New variable.
	(w32_wnd_proc): Add message entries for WM_SETCURSOR and
	WM_EMACS_SETCURSOR.
	(x-create-frame): Setup Cursor types.

Juanma Barranquero's avatar
Juanma Barranquero committed
884 885
2003-01-21  David Ponce  <david@dponce.com>

Jason Rumney's avatar
Jason Rumney committed
886 887 888
	* w32term.c (w32_encode_char): For DIM=1 charset, set
	ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
	x_encode_char change by Kenichi Handa <handa@m17n.org> on
Juanma Barranquero's avatar
Juanma Barranquero committed
889
	2002-09-30.)
Jason Rumney's avatar
Jason Rumney committed
890 891 892 893 894 895 896
	(w32_draw_relief_rect): Declare all args.
	(w32_define_cursor): New.

	* w32fns.c (w32_load_cursor): New function.
	(w32_init_class): Use it.
	(x_put_x_image): Declare all args.

897 898 899 900
2003-01-21  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)

	* Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.

901
2003-01-21  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
902 903 904

	* gtkutil.c: Must include stdio.h before termhooks.h

Dave Love's avatar
Dave Love committed
905 906 907 908 909 910 911 912 913 914 915 916
2003-01-21  Dave Love  <fx@gnu.org>

	* alloc.c (Fgc_status): Print zombie list.
	(mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
	Fix assignment of zombies.
	(Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
	Don't take car of non-cons.

	* s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.

	* s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.

917 918 919 920 921 922 923 924 925 926 927 928
2003-01-20  David Ponce  <david@dponce.com>

	* w32menu.c (digest_single_submenu): Declare all args.

	Sync with 2002-12-23  Richard M. Stallman  <rms@gnu.org>
	changes in xmenu.c:

	(parse_single_submenu): Use individual keymap's prompt
	string as pane name, if there is one.
	(set_frame_menubar): Save menu_items_n_panes from each call to
	parse_single_submenu and use it when calling digest_single_submenu.

929 930 931 932 933
2003-01-20  Steven Tamm  <steventamm@mac.com>

	* macterm.c (XTread_socket): Checks for valid, visible window
	before sending a scroll-wheel event.

934 935 936 937 938
2003-01-20  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (redisplay_window): If mini window's buffer is not
	a minibuffer, then redisplay it like other windows.

939
2003-01-20  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
Jan Djärv's avatar
Jan Djärv committed
940 941 942 943

	* gtkutil.c (xg_create_frame_widgets): Check if there is an
	external tool bar before setting tool bar height.

944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995
2003-01-19  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (handle_one_xevent): Surround popup_activated
	with #ifdef:s for non-toolkit version.

	* Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
	(gtkutil.o): New file.
	(TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
	(LIBW): Set to @GTK_LIBS@ if USE_GTK.

	* gtkutil.c: New file for GTK version.

	* gtkutil.h: New file for GTK version.

	* xterm.h: Add xt_or_gtk_widget.
	Include gtk files for USE_GTK.
	(struct x_output): Add toolbar_height.
	(struct x_output): Add GTK widgets and Gdk size_hints.
	(GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
	(FRAME_OUTER_WINDOW): New macros for USE_GTK.
	(FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.

	* xterm.c: Include gtkutil.h for USE_GTK.
	Declare extern void free_frame_menubar for USE_GTK.
	(note_mouse_highlight): Check popup_activated for USE_GTK.
	(xt_action_hook): Don't compile if USE_GTK.
	(x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
	(xg_scroll_callback): New function.
	(x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
	(x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
	for USE_GTK.
	(x_scroll_bar_create): Call xg_update_scrollbar_pos and
	xg_show_scroll_bar for USE_GTK.
	(x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
	(XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
	(event_handler_gdk): New function for USE_GTK.
	(handle_one_xevent): Call xg_resize_widgets for USE_GTK.
	(handle_one_xevent): Make sure widget is mapped before
	calling x_real_positions for USE_GTK.
	(XTread_socket): Add GTK event loop for USE_GTK.
	(x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
	(x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
	(x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
	(x_iconify_frame): Add code for USE_GTK.
	(x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
	(x_wm_set_size_hint): Only compile if not USE_GTK.  GTK version
	is in gtkutil.c.
	(x_term_init): Add initialization for GTK.
	(syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.

	* xmenu.c: Include gtkutil.h for USE_GTK.
	(Fx_popup_menu): Use current position if x and y is NIL.
Stefan Monnier's avatar
.  
Stefan Monnier committed
996 997
	(single_menu_item, single_menu_item, Fx_popup_dialog):
	Check for USE_GTK.
998 999 1000
	(popup_widget_loop): New function for USE_GTK.
	(x_activate_menubar): Add code for USE_GTK.
	(popup_activate_callback, popup_deactivate_callback)
Stefan Monnier's avatar
.  
Stefan Monnier committed
1001 1002
	(menu_highlight_callback, menubar_selection_callback):
	Add USE_GTK versions.
1003 1004 1005 1006 1007 1008
	(update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
	(set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
	(free_frame_menubar): Only compile if not USE_GTK.  GTK version
	is in gtkutil.c.
	(popup_selection_callback): New version for USE_GTK.
	(create_and_show_popup_menu): New fuction, one USE_GTK version and
Stefan Monnier's avatar
.  
Stefan Monnier committed
1009
	one USE_X_TOOLKIT version.
1010 1011 1012
	(xmenu_show): Call create_and_show_popup_menu.
	(dialog_selection_callback): New version for USE_GTK.
	(create_and_show_dialog): New fuction, one USE_GTK version and
Stefan Monnier's avatar
.  
Stefan Monnier committed
1013
	one USE_X_TOOLKIT version.
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048
	(xdialog_show): Call create_and_show_dialog.

	* xfns.c: Include gtkutil for USE_GTK.
	(x_window_to_frame, x_any_window_to_frame)
	(x_non_menubar_window_to_frame, x_menubar_window_to_frame)
	(x_top_window_to_frame): Add code for USE_GTK.
	(x_set_background_color): Call xg_set_background_color for GTK.
	(x_set_menu_bar_lines): Check for USE_GTK.
	(x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
	(x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
	(x_window): Call xg_create_frame_widgets for USE_GTK.
	(Fx_create_frame): Check for USE_GTK
	(Fx_file_dialog): New implementation for USE_GTK.

	* xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
	(update_menu_bar): Add check for USE_GTK.
	(update_tool_bar): Add check for USE_GTK and external tool bar.
	(redisplay_tool_bar): Add check for USE_GTK and external tool bar.
	(redisplay_internal): Add check for USE_GTK and popup_activated.
	(redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
	(redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
	(display_menu_bar): Add check for USE_GTK

	* lisp.h: Declare Vx_resource_name extern.

	* keyboard.c (kbd_buffer_get_event):  Check MENU_BAR_ACTIVATE_EVENT
	for USE_GTK.
	(make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.

	* frame.h (struct frame): Add external_tool_bar.  Check for USE_GTK.
	(FRAME_EXTERNAL_TOOL_BAR): New macro.
	(FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.

	* fileio.c (Fread_file_name): Add check for USE_GTK.

Stefan Monnier's avatar
.  
Stefan Monnier committed
1049 1050
	* dispnew.c (adjust_frame_glyphs_for_window_redisplay):
	Add check for USE_GTK.
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073

	* config.in: Added HAVE_GTK

	* alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.

2003-01-18  Stefan Monnier  <monnier@cs.yale.edu>

	* charset.h (Funibyte_char_to_multibyte): Export.

2003-01-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xmenu.c (mouse_position_for_popup): New function.
	(Fx_popup_menu): Call mouse_position_for_popup for X and
	mouse_position_hook for others.

2003-01-17  Kim F. Storm  <storm@cua.dk>

	* editfns.c (Finsert): Mention `string-make-multibyte' and
	`string-as-multibyte' in doc string.

2003-01-17  Kenichi Handa  <handa@m17n.org>

	* fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
Kenichi Handa's avatar
Kenichi Handa committed
1074

1075 1076 1077
	* editfns.c (Fformat): Convert an unibyte char argument that is
	formatted by "%c" to multibyte if the total result must be a
	multibyte string.
Kim F. Storm's avatar
Kim F. Storm committed
1078

1079
2003-01-16  Kim F. Storm  <storm@cua.dk>
Kim F. Storm's avatar
Kim F. Storm committed
1080

1081 1082
	* process.c (set-process-filter): Document unibyte/multibyte-ness
	of string argument.
Kenichi Handa's avatar
Kenichi Handa committed
1083

1084
2003-01-16  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
1085

1086
	* charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
Kenichi Handa's avatar
Kenichi Handa committed
1087

1088 1089
	* regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
	(re_search_2): Likewise.
Kenichi Handa's avatar
Kenichi Handa committed
1090

1091
2003-01-15  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
1092

1093 1094
	* xdisp.c (message_dolog): Fix bug of the case that *Message*
	buffer is unibyte.
Francesco Potortì's avatar
Francesco Potortì committed
1095

1096
2003-01-15  Francesco Potort,Al(B  <pot@gnu.org>
Francesco Potortì's avatar
Francesco Potortì committed
1097

1098
	* fns.c (Fsubstring): Clarify doc string.
Francesco Potortì's avatar
Francesco Potortì committed
1099

1100 1101 1102 1103 1104 1105 1106 1107 1108
	* textprop.c (Ftext_properties_at, Fnext_char_property_change)
	(Fprevious_char_property_change)
	(Fnext_single_char_property_change)
	(Fprevious_single_char_property_change, Fnext_property_change)
	(Fnext_single_property_change, Fprevious_property_change)
	(Fprevious_single_property_change, Fadd_text_properties)
	(Fput_text_property, Fset_text_properties)
	(Fremove_text_properties, Fremove_list_of_text_properties)
	(Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
Kim F. Storm's avatar
Kim F. Storm committed
1109

1110
2003-01-14  Kim F. Storm  <storm@cua.dk>
Kim F. Storm's avatar
Kim F. Storm committed
1111

1112 1113
	* process.h (struct Lisp_Process): New member plist replaces old
	member private_vars.  All uses changed.
Kim F. Storm's avatar
Kim F. Storm committed
1114

1115
	* process.c: Reworked 2003-01-12 change -- call a plist a plist!
Stefan Monnier's avatar
.  
Stefan Monnier committed
1116
	(QCplist): Rename from QCvars.  Change all uses.
1117
	(Fprocess_plist): Replaces Fprocess_variable.  Simplified.
Stefan Monnier's avatar
.  
Stefan Monnier committed
1118
	(Fset_process_plist): Replaces Fset_process_variable.  Simplify.
1119
	(syms_of_process): Intern, staticpro, defsubr these.
Stefan Monnier's avatar
.  
Stefan Monnier committed
1120
	(Fmake_network_process): Describe :plist arg.  Remove :vars arg.
Francesco Potortì's avatar
Francesco Potortì committed
1121

1122
2003-01-14  Francesco Potort,Al(B  <pot@gnu.org>
Francesco Potortì's avatar
Francesco Potortì committed
1123

Stefan Monnier's avatar
.  
Stefan Monnier committed
1124
	* m/delta.h: Remove (obsolete).
Francesco Potortì's avatar
Francesco Potortì committed
1125

1126
2003-01-13  Francesco Potort,Al(B  <pot@gnu.org>
Francesco Potortì's avatar
Francesco Potortì committed
1127

1128 1129 1130
	* fileio.c (Fdelete_directory, Fdelete_file): Document the
	behaviour in front of symlinks.
	(Fdelete_file): Raise an error on directories.
Dave Love's avatar
Dave Love committed
1131

1132
2003-01-13  Dave Love  <fx@gnu.org>
Dave Love's avatar
Dave Love committed
1133

1134
	* fns.c (Freverse): Use QUIT.
1135

1136
2003-01-13  Richard M. Stallman  <rms@gnu.org>
1137

1138 1139
	* minibuf.c (minibuffer_completion_contents):
	Error if point is inside prompt.
1140

1141 1142
	* keyboard.c (command_loop_1): Don't redisplay directly
	if there's a post-command-hook.
1143

1144 1145
	* fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
	(Fdo_auto_save): Add gcpros around Ffile_name_directory.
Kim F. Storm's avatar
Kim F. Storm committed
1146

1147
2003-01-12  Kim F. Storm  <storm@cua.dk>
1148

1149
	* process.h (struct Lisp_Process): New member private_vars.
1150

1151 1152 1153 1154 1155 1156 1157 1158 1159 1160
	* process.c (QCvars): New variable.
	(syms_of_process): Intern and staticpro it.
	(Fset_process_contact): Removed function.
	(Fprocess_variable, Fset_process_variable): New functions.
	(syms_of_process): Defsubr them.
	(Fstart_process): Initialize private_vars plist to nil.
	(Fmake_network_process): New arg :vars to setup the private
	variables for new network process.
	(server_accept_connection): Copy server's private variables to
	client process.
Kim F. Storm's avatar
Kim F. Storm committed
1161

1162 1163 1164 1165
	* alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
	crashes).  Code rewritten and simplified.  Now directly aligns the
	pointer and recalculates pure_bytes_used, rather than aligning the
	size and adjusting the pointer.
Kim F. Storm's avatar
Kim F. Storm committed
1166

1167
2003-01-11  Kim F. Storm  <storm@cua.dk>
Kim F. Storm's avatar
Kim F. Storm committed
1168

1169 1170 1171
	* process.c (Fset_process_contact): New function.
	(syms_of_process): defsubr it.
	(make-network-process): Update doc.
1172

1173
2003-01-10  Andreas Schwab  <schwab@suse.de>
1174

1175 1176
	* alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
	Reported by Berthold Gunreben <b.gunreben@web.de>.
1177

1178
2003-01-10  Dave Love  <fx@gnu.org>
1179

1180
	* composite.c (syms_of_composite): Make composition_hash_table weak.
Kim F. Storm's avatar
Kim F. Storm committed
1181

1182
2003-01-09  Kim F. Storm  <storm@cua.dk>
Kim F. Storm's avatar
Kim F. Storm committed
1183

1184 1185
	* process.c (Fmake_network_process): Convert new port number
	to host byte order for `:service t' case.  From Mario Lang.
Jan Djärv's avatar
Jan Djärv committed
1186

1187
2003-01-08  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
Jan Djärv's avatar
Jan Djärv committed
1188

1189 1190
	* xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
	instead of XtAppProcessEvent.
Jan Djärv's avatar
Jan Djärv committed
1191

1192 1193 1194
	* xterm.c (handle_one_xevent): New function.
	(x_dispatch_event): New function.
	(XTread_socket): Call handle_one_xevent.
Jan Djärv's avatar
Jan Djärv committed
1195

1196
	* xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
Francesco Potortì's avatar
Francesco Potortì committed
1197

1198 1199 1200 1201 1202 1203
	* xmenu.c (Fx_popup_menu): If popping up at mouse position,
	call XQueryPointer to get coordinates.
	(popup_get_selection): Do not set popup_activated_flag to zero,
	let popup_deactivate_callback do that.  Needed for Motif.
	Call x_dispatch_event instead of XtDispatchEvent.
	(xmenu_show): Calculate root coordinate from frame top/left position.
Kim F. Storm's avatar
Kim F. Storm committed
1204

1205
2003-01-08  Kim F. Storm  <storm@cua.dk>
Kim F. Storm's avatar
Kim F. Storm committed
1206

Stefan Monnier's avatar
.  
Stefan Monnier committed
1207
	* process.c (server_accept_connection): Fix recording of new
1208 1209 1210
	connection's local address in :local property of contact info.
	(Fmake_network_process): Record local network address for new
	client processes in :local property of contact info.
Stefan Monnier's avatar
.  
Stefan Monnier committed
1211
	(format-network-address): Add arg OMIT-PORT.  Change callers.
Dave Love's avatar
Dave Love committed
1212

1213
2003-01-07  Dave Love  <fx@gnu.org>
Dave Love's avatar
Dave Love committed
1214

1215
	* Makefile.in (fns.o): Depend on coding.h.
Markus Rost's avatar
Markus Rost committed
1216

1217
2003-01-07  Markus Rost  <rost@math.ohio-state.edu>
Markus Rost's avatar
Markus Rost committed
1218

1219
	* minibuf.c (Fread_variable): Doc fix.
Markus Rost's avatar
Markus Rost committed
1220

1221 1222
	* eval.c (Fuser_variable_p): Doc change.  For custom variables,
	use the same test as for custom-variable-p.
1223

1224
2003-01-05  Richard M. Stallman  <rms@gnu.org>
Francesco Potortì's avatar
Francesco Potortì committed
1225

1226 1227 1228 1229
	* xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
	Count LAST_LINE_MISFIT in scroll margin for end of window.
	Move label too_near_end before setting SCROLL_MARGIN_POS.
	Set LAST_LINE_MISFIT before jumping there.
1230

1231 1232 1233
	* xdisp.c (try_scrolling): Calculate amount_to_scroll better in
	scroll_conservatively case.  If scrolling that much doesn't change
	STARTP, move it down one line.
Francesco Potortì's avatar
Francesco Potortì committed
1234

1235 1236
	* xdisp.c (redisplay_window): Pass last_line_misfit arg to
	try_scrolling.  Make it 1 after make_cursor_line_fully_visible fails.
1237

1238 1239
	* xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
	selected frame.
1240

1241 1242 1243 1244
	* keymap.c (apropos_predicate, apropos_accumulate): Make them static.
	(syms_of_keymap): staticpro them.
	(Fapropos_internal): Initialize them and clear them out.
	Don't GCPRO them.
1245

1246 1247
	* buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
	Doc fixes.
1248

1249 1250 1251 1252 1253 1254
	* lisp.h: New misc type Lisp_Save_Value.
	(enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
	(XSAVE_VALUE): New macro.
	(struct Lisp_Save_Value): New data type.
	(union Lisp_Misc): Add u_save_value alternative.
	(make_save_value): Declared.
1255

1256
	* alloc.c (make_save_value): New function.
1257

1258 1259
	* xterm.c (x_catch_errors): Save dpy using make_save_value.
	(x_catch_errors_unwind): Call XSync.
1260

1261
2003-01-01  Richard M. Stallman  <rms@gnu.org>
1262

1263
	* window.c (window_scroll_pixel_based): Partially undo last change.
1264

1265 1266 1267
	* keyboard.c (command_loop_1): Call adjust_point_for_property
	in direct action cases for Qforward_char and Qbackward_char.
	Set already_adjusted so it won't be done twice.
1268

1269
2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
1270

1271 1272
	* src/config.in (!HAVE_SIZE_T): Fix order of arguments in
	type definition of size_t.
1273

1274
2003-01-02  Steven Tamm  <steventamm@mac.com>
1275

1276 1277
	* macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
	distinguish Carbon GUI builds from X11 builds on darwin.