ChangeLog.7 383 KB
Newer Older
Dave Love's avatar
#  
Dave Love committed
1 2 3 4 5
1998-08-19  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* Version 20.3 released.

	* callproc.c (Fcall_process): Use malloc for decoding_buf.
Stefan Monnier's avatar
Stefan Monnier committed
6

Dave Love's avatar
#  
Dave Love committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
	* s/freebsd.h (LD_SWITCH_SYSTEM): Delete -dp.

	* s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increased.

1998-08-18  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* xselect.c (selection_data_to_lisp_data): Code-convert selections
	regardless of enable-multibyte-characters.
	(lisp_data_to_selection_data): Likewise for decoding.

1998-08-18  Ken'ichi Handa  <handa@delysid.gnu.org>

	* ccl.c (ccl_driver): In case
	ccl_read_multibyte_character_suspend:, if ccl->last_block is
	nonzero, jump to ccl_repeat.

1998-08-18  Kenichi Handa  <handa@etl.go.jp>

Juanma Barranquero's avatar
Juanma Barranquero committed
25
	* ccl.c (CCL_READ_CHAR): If eof is encountered while processing the
Dave Love's avatar
#  
Dave Love committed
26 27
	last block, don't just finish but processes eol block of the
	current CCL program.
Stefan Monnier's avatar
Stefan Monnier committed
28
	(ccl_driver): Add a new jump label ccl_repeat for the above change.
Dave Love's avatar
#  
Dave Love committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42

	* coding.c (ccl_coding_driver): Setup ccl->last_block properly.
	(setup_coding_system): Correctly setup `valid_codes' member.

	* term.c (write_glyphs): When terminal_coding require flushing,
	call encode_coding with "" as the SOURCE arg so that ccl_driver
	correctly processes eof block of a CCL program.

1998-08-18  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (read_char): If not reading a key sequence (MAPS is nil),
	bind input-method-exit-on-first-char and input-method-use-echo-area
	to t.
	(read_char): If PREV_EVENT is non-nil, don't run the input method.
Stefan Monnier's avatar
Stefan Monnier committed
43 44
	(read_key_sequence): Do not bind input-method-function.

Dave Love's avatar
#  
Dave Love committed
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
	* callint.c (Fcall_interactively): Pass new args to Fread_event
	and Fread_char.  Let Fread_char do the prompting.

	* lread.c (read_filtered_event): New arg INPUT_METHOD.  Calls changed.
	(Fread_event): New args PROMPT and SUPPRESS-INPUT-METHOD.
	(Fread_char, Fread_char_exclusive): Likewise.
	* lisp.h (Fread_event, Fread_char, Fread_char_exclusive):
	Update declarations.

	* fns.c (Fy_or_n_p): Don't bind input-method-function.
	Instead, pass 0 as INPUT_METHOD to read_filtered_event.

	* insdel.c (replace_range): Rename NOMARKERS arg to MARKERS.

	* editfns.c (Ftranspose_regions): Pass 0 as NOMARKERS to replace_range.

	* cmds.c (internal_self_insert): Pass 1 as NOMARKERS to replace_range.

	* fns.c (Fy_or_n_p): Bind input-method-function to nil.

1998-08-17  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (Freset_this_command_lengths): Return nil.
	(read_char): [Changes in the input method code.]
	Process and clear before_command_restore_flag before the input method.
	Save and restore ok_to_echo_at_next_pause and
	current_kboard->echo_after_prompt.
	Save, copy and empty this_command_keys, if it is not empty.
	Clear the echo area before the input method.
	Then in all cases restore this_command_keys, and reenable echoing
	if it was enabled before.

1998-08-16  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* charset.c (Fmultibyte_char_to_unibyte): New function.
Stefan Monnier's avatar
Stefan Monnier committed
80
	(syms_of_charset): Defsubr it.
Dave Love's avatar
#  
Dave Love committed
81 82 83 84 85

1998-08-15  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* xterm.c, xterm.h: x_display_unibyte_char_with_fontset renamed to
	unibyte_display_via_language_environment.
86

Dave Love's avatar
#  
Dave Love committed
87 88 89 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
	* xfns.c (unibyte_display_through_language_environment):
	Renamed from x_display_unibyte_char_with_fontset.

	* xterm.h (widget_store_internal_border): Conditionalize declaration.

1998-08-15  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (coding_category_name): Fix the order of initial
	contents.
	(detect_coding_mask): Fix previous change.

	* insdel.c (copy_text): Fix previous change, call
	multibyte_char_to_unibyte.

	* puresize.h (BASE_PURESIZE): Increased.

	* xfns.c (x_display_unibyte_char_with_fontset): New variable.
	(syms_of_xfns): Declare x-display-unibyte-char-with-fontset as a
	Lisp variable.

	* xterm.h (x_display_unibyte_char_with_fontset): Extern it.

	* xterm.c (dumpglyphs): If x_display_unibyte_char_with_fontset is
	nonzero, convert a unibyte 8-bit char to a multibyte char and
	display it by a font listed in the current fontset.

	* xselect.c (Vnext_selection_coding_system): New variable.
	(selection_data_to_lisp_data): If Vnext_selection_coding_system is
	non-nil, use it.
	(lisp_data_to_selection_data): Likewise.
	(syms_of_xselect): Declare next-selection-coding-system as a Lisp
	variable.

1998-08-13  Eli Zaretskii  <eliz@delysid.gnu.org>

	* msdos.c (dos_set_keyboard): Set up stack and flags before
	calling _go32_dpmi_simulate_int.

1998-08-13  Andrew Innes  <andrewi@harlequin.co.uk>

Glenn Morris's avatar
Glenn Morris committed
127
	* w32.c (stat): Fall-back to default behavior when we cannot get
Dave Love's avatar
#  
Dave Love committed
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
	accurate information on file attributes.

1998-08-12  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* indent.c (vmotion): Don't use WINDOW for Fget_char_property
	when it is not showing the right buffer.

1998-08-11  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* process.c (wait_reading_process_input): If a pty gives EIO,
	raise SIGCHLD just in case.

1998-08-10  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* syntax.c (scan_sexps_forward): Set up the syntax table scanning
	stuff before jumping into the loop.

1998-08-10  Eli Zaretskii  <eliz@delysid.gnu.org>

	* msdos.c (IT_cmgoto): In the echo area, only put the cursor at
	the end of text if it is beyond the displayed text end.

1998-08-10  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (read_char): Don't decrement this_command_key_count
	when saving it.

1998-08-09  Kenichi HANDA  <handa@etl.go.jp>

	* fileio.c (Fwrite_region): Reflect the eol conversion
	specification of default value of buffer-file-coding-system if
	any.

	* coding.c (default_buffer_file_coding): New variable.
	(init_coding_once): Initialize default_buffer_file_coding.

	* coding.h (default_buffer_file_coding): Extern it.

1998-08-09  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* s/freebsd.h (__FreeBSD_version): Define it, or else
	include osreldate.h to define it.
	(LIB_GCC): Unconditional definition deleted.
	[ELF] (LD_SWITCH_SYSTEM, START_FILES, UNEXEC, LIB_STANDARD, LIB_GCC):
	New alternative definitions.
	[! ELF] (START_FILES, LIB_GCC): New alternative definitions.

	* unexelf.c (unexec): Check for section names end and edata
	with no underscore.

	* coding.c (CHARSET_OK): Check that coding_system_table[IDX] != 0.

1998-08-08  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* coding.c: Avoid using initializers for Lisp_Object.

1998-08-07  Paul Eggert  <eggert@twinsun.com>

	* xterm.c (x_term_init): Don't reset LC_TIME to "C", since we
	want strftime to be localized.

1998-08-07  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* s/ptx4-2.h: New file.

	* xterm.c (x_list_fonts): Fix previous change.

	* callproc.c (Fcall_process): Check type of process cmd args
	earlier on.

	* process.c (Fprocess_send_eof): Transfer proc_encode_coding_system
	data to the new outfd.

	* commands.h (Vthis_command): Renamed from this_command.

203
	* minibuf.c (Fminibuffer_complete):
Dave Love's avatar
#  
Dave Love committed
204 205 206 207 208 209 210 211 212
	this_command renamed to Vthis_command.

	* macros.c (Fcall_last_kbd_macro):
	this_command renamed to Vthis_command.

	* keyboard.c (Vthis_command): Renamed from this_command.
	(real_this_command): New variable, but not a Lisp variable;
	updated like Vthis_command, but never altered by Lisp programs.
	(command_loop_1): Use real_this_command to set Vreal_last_command.
213

Dave Love's avatar
#  
Dave Love committed
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
1998-08-07  Kenichi Handa  <handa@etl.go.jp>

	* cmds.c (internal_self_insert): If enable-multibyte-characters is
	nil, convert a multibyte character to unibyte appropriately.

	* editfns.c (general_insert_function): Likewise.

	* charset.c (multibyte_char_to_unibyte): New function.
	(charset_id_internal): Avoid initializer for Lisp_Object.
	(init_charset_once): Likewise.

	* lisp.h (multibyte_char_to_unibyte): Extern it.

1998-08-06  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* window.c (Fsplit_window): Doc fix.

	* macros.c (Fexecute_kbd_macro): Fix error message.
	(Fend_kbd_macro): Fix error message.

	* coding.c (setup_coding_system): Avoid initializer for Lisp_Object.
	(setup_raw_text_coding_system, detect_coding): Likewise.
	(code_convert_region, code_convert_string): Likewise.
	(Fset_coding_priority_internal): Likewise.

1998-08-06  Kenichi Handa  <handa@etl.go.jp>

	* dired.c (Fdirectory_files): If MATCH is non-nil, decode filenames
	before checking them against MATCH.

1998-08-05  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (read_char): When input method returns no chars,
	call cancel_echoing.  Restore the previous echo area message
	and this_command_keys, too.

	* abbrev.c (Funexpand_abbrev): Add ADJUST instead of subtracting.

	* w32select.c (Vselection_coding_system):
	Renamed from Vclipboard_coding_system.
	(syms_of_w32select): No need to staticpro Vselection_coding_system.

1998-08-04  Eli Zaretskii  <eliz@delysid.gnu.org>

	* w16select.c (Vselection_coding_system):
	Renamed from Vclipboard_coding_system.
	(Fw16_set_clipboard_data): Don't count trailing zero in the string
	for the purposes of conversion.

1998-08-04  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* xterm.c (x_list_fonts): Call XFreeFont after the new call
	to XLoadQueryFont.
	(fast_find_position): Handle case where position is before
	an invisible character, thus not actually listed in charstarts.
269

Dave Love's avatar
#  
Dave Love committed
270 271 272 273 274 275 276 277 278 279 280
	* keyboard.c (Vinput_method_previous_message): New variable.
	(syms_of_keyboard): Set up lisp variable.
	(Qinput_method_exit_on_first_char, Qinput_method_use_echo_area):
	New variables.
	(syms_of_keyboard): Initialize them.
	(Fread_key_sequence): New arg COMMAND_LOOP.
	Bind those variables.

	* lisp.h (Fread_key_sequence): Update declaration.

	* callint.c (Fcall_interactively): Pass new arg to Fread_key_sequence.
281

Dave Love's avatar
#  
Dave Love committed
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
1998-08-03  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* window.c (Fmove_to_window_line): Doc fix.

	* xterm.h (FRAME_OUTER_WINDOW): New macro.

	* xterm.c (x_make_frame_visible): Use XGetGeometry to see if
	position has been changed by the window manager.  Use
	FRAME_OUTER_WINDOW.

	* insdel.c (replace_range): Don't assume PT is at the place
	where the change is being done.

	* editfns.c (Fsubst_char_in_region): Use replace_range in case
	where we may need to combine bytes.
	(Ftranslate_region): Likewise.

1998-08-01  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* lread.c (read1): In reading a string, treat Qlambda
	like Qget_file_char.

	* doc.c (Fdocumentation): Specify UNIBYTE = 0
	when calling get_doc_string for a compiled function.

1998-08-01  Kenichi HANDA  <handa@etl.go.jp>

	* ccl.h (ccl_spec): New member valid_codes.

	* coding.c (Qvalid_codes): New variable.
	(coding_category_name): Include "coding-category-ccl".
	(detect_coding_ccl): New function.
	(setup_coding_system): Setup coding->spec.ccl.valid_codes from the
Juanma Barranquero's avatar
Juanma Barranquero committed
315
	coding system priority `valid-codes' for CCL based coding systems.
Dave Love's avatar
#  
Dave Love committed
316 317 318 319 320 321 322
	(detect_coding_mask): Check also a CCL based coding system.
	(Fupdate_coding_systems_internal): Renamed from
	Fupdate_iso_coding_systems.
	(syms_of_coding): Change property char-table-extra-slot of
	translation-table to 1.  Initialize and static pro Qvalid_codes.

	* coding.h (CODING_CATEGORY_IDX_CCL): New macro.
Juanma Barranquero's avatar
Juanma Barranquero committed
323 324
	(CODING_CATEGORY_IDX_BIG5, CODING_CATEGORY_IDX_RAW_TEXT)
	(CODING_CATEGORY_IDX_BINARY, CODING_CATEGORY_IDX_MAX): Increased by one.
Dave Love's avatar
#  
Dave Love committed
325 326 327 328 329 330 331 332
	(CODING_CATEGORY_MASK_CCL): New macro.
	(CODING_CATEGORY_MASK_ANY): Include CODING_CATEGORY_MASK_CCL.

	* insdel.c (copy_text): In multibyte to unibyte conversion, take
	nonascii-translation-table and nonascii-insert-offset into
	account.

1998-07-30  Paul Eggert  <eggert@twinsun.com>
333

Glenn Morris's avatar
Glenn Morris committed
334
	* Makefile.in (widget.o, xfns.o, xmenu.o):
Dave Love's avatar
#  
Dave Love committed
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
	Prepend $(srcdir)/ to rule dependencies outside this dir.

1998-07-29  Kenichi Handa  <handa@etl.go.jp>

	* fns.c (concat): Fix previous change.

1998-07-29  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* process.c (create_process): For outchannel, set up
	proc_encode_coding_system, not proc_decode_coding_system.

1998-07-28  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keymap.c (push_key_description): Output multibyte char as itself.

1998-07-27  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (Fexecute_extended_command):
	Don't delay before displaying the suggestion message
	if the command did not display anything in the echo area.

1998-07-26  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* s/ultrix4-3.h (rint): Add declaration.

1998-07-25  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* s/aix3-2.h (HAVE_STRING_H): Move #undef here.
	* s/aix4.h (HAVE_STRING_H): Delete #undef here.

	* sysdep.c [AIXHFT] (hft_init, hft_reset): Add declarations.

1998-07-25  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (syms_of_coding): Mention auto-coding-alist in the
	docstring of file-coding-system-alist.

	* fileio.c (Finsert_file_contents): Call Vset_auto_coding_function
	with two arguments.
	(Fwrite_region): If buffer-file-coding-system is set locally, use
Juanma Barranquero's avatar
Juanma Barranquero committed
375
	the coding system without checking file-coding-system-alist.
Dave Love's avatar
#  
Dave Love committed
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
	(syms_of_fileio): Docstring of set-auto-coding-function adjusted
	for the change of argument number.

1998-07-20  Kenichi HANDA  <handa@etl.go.jp>

	* callproc.c (Fcall_process): Use alloca instead of
	get_conversion_buffer.

	* coding.c (init_coding): New function.
	(init_coding_once): Don't initialize conversion_buffer here.  It
	is done in init_coding.

	* emacs.c (main): Call init_coding.

	* lisp.h (init_coding): Extern it.

1998-07-19  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (Fdefine_charset): Fix doc-string.

	* xterm.c (dumpglyphs): After calling ccl_driver, set cp->byte1 to
	zero for 1-byte font.

1998-07-15  kenichi HANDA  <handa@kowloon.etl.go.jp>

	* process.c (read_process_output): Even if we read data without
	code conversion, calculate character counts.  If we insert the
	data into a unibyte buffer, treat the data as unibyte.

1998-07-14  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (Qinput_method_function): New variable.
	(syms_of_keyboard): Init and staticpro it.
	(read_key_sequence): Bind input-method-function,
	and set it to nil after reading the first event.
	(raw_keybuf, raw_keybuf_count): New variables, to record
	raw input events as they are read with read_char.
	(GROW_RAW_KEYBUF): New macro.
	(Fthis_single_command_raw_keys): New function.
	(syms_of_keyboard): defsubr it.

1998-07-13  Andrew Innes  <andrewi@delysid.gnu.org>

	* w32menu.c (add_menu_item): Draw menu items like titles if
	call_data is 0.

1998-07-13  Eli Zaretskii  <eliz@mescaline.gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
424 425 426
	* w16select.c (set_clipboard_data, get_clipboard_data)
	(Fw16_set_clipboard_data, Fw16_get_clipboard_data)
	(Fx_selection_exists_p): Use CF_OEMTEXT instead of CF_TEXT.
Dave Love's avatar
#  
Dave Love committed
427 428 429

1998-07-12  Andrew Innes  <andrewi@delysid.gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
430
	* w32select.c (Fw32_set_clipboard_data): Set Vlast_coding_system_used.
Dave Love's avatar
#  
Dave Love committed
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
	(Fw32_get_clipboard_data): Likewise.

1998-07-12  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* marker.c (Fcopy_marker): Make return from wrong_type_argument
	fall thru into normal case.

	* fileio.c (Finsert_file_contents): When replacing, in multibyte bfr,
	always extend the range to a character boundary.

1998-07-11  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (read_char): Call the input method if appropriate.
	Change logic for distinguishing rereads from new events;
	use local var `reread'.  Take events from
	Vunread_input_method_events and Vunread_post_input_method_events.
	(Vunread_input_method_events, Vunread_post_input_method_events)
	(Vinput_method_function): New variable.
	(syms_of_keyboard): Set up Lisp vars.
	(command_loop_1): Check Vunread_input_method_events and
	Vunread_post_input_method_events along with Vunread_command_events.
452

Dave Love's avatar
#  
Dave Love committed
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
1998-07-11  Andrew Innes  <andrewi@harlequin.co.uk>

	* w32menu.c (w32_menu_show): Set widget call_data to 0 if
	definition is nil.
	(add_menu_item): Gray menu entry if widget call_data is 0.

1998-07-11  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* xselect.c (Vselection_coding_system):
	Renamed from Vclipboard_coding_system.  All uses changed.
	(syms_of_xselect): Rename Lisp variable.

1998-07-09  Eli Zaretskii  <eliz@mescaline.gnu.org>

	* w16select.c (Vclipboard_coding_system): New variable.
	(set_clipboard_data, set_clipboard_data): New parameter Raw
	determines whether CRLF <-> NL translation needs to be done.  All
	callers changed.
	(Fw16_set_clipboard_data): Encode the text using
	Vclipboard_coding_system, if necessary.
	(Fw16_get_clipboard_data): Decode the text using
	Vclipboard_coding_system, if necessary.
	(syms_of_win16select): DEFVAR Vclipboard_coding_system and
	staticpro it.

1998-07-09  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (code_convert_string): Count characters again if we
	encounter some invalid code while decoding.

1998-07-09  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c: Typo in comments fixed.

	* coding.c (DECODE_ISO_CHARACTER): While decoding two-byte code,
Juanma Barranquero's avatar
Juanma Barranquero committed
488
	if the second byte is invalid, produce the first byte as is.
Dave Love's avatar
#  
Dave Love committed
489 490 491 492 493

	* fontset.c (fs_load_font): Typo in comments fixed.

	* xselect.c (selection_data_to_lisp_data): Set
	Vlast_coding_system_used.
494
	(lisp_data_to_selection_data): Likesize.
Dave Love's avatar
#  
Dave Love committed
495 496 497 498 499 500 501 502 503 504

1998-07-07  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* charset.c (Fchars_in_region): Coerce markers.

1998-07-08  Kenichi Handa  <handa@etl.go.jp>

	* editfns.c (Fformat): Replace explicit numeric constants with
	proper macros.

505
	* fns.c (concat): Likewise.
Dave Love's avatar
#  
Dave Love committed
506 507 508 509 510

1998-07-06  Kenichi Handa  <handa@etl.go.jp>

	* charset.h (MAX_CHAR_COMPOSITION): Defined as (GLYPH_MASK_CHAR - 1),
	one less than the previous value.
511
	(GENERIC_COMPOSITION_CHAR): New macro.
Dave Love's avatar
#  
Dave Love committed
512 513 514

	* charset.c (Vgeneric_character_list): New variable.
	(init_charset_once): Init and staticpro it.
515
	(Fgeneric_character_list): New function.
Dave Love's avatar
#  
Dave Love committed
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551
	(syms_of_charset): defsubr it.

	* fns.c (Fset_char_table_default): Check only if the charset of
	the arg CH is in the valid range or not.  Handle the case that CH
	is a generic character for composite characters.

1998-07-06  Kenichi Handa  <handa@etl.go.jp>

	* editfns.c (Fformat): Pay attention to the byte combining problem.

	* fileio.c (Finsert_file_contents): Cancel previous change.  Setup
	the variable coding even if the inserted bytes is zero.

	* fns.c (concat): Deal with combining bytes between two args.

1998-07-03  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* print.c (print_escape_multibyte, Qprint_escape_multibyte)
	(Qprint_escape_nonascii): New variables.
	(syms_of_print): Initialize them and set up Lisp variable.
	(PRINTPREPARE): Bind print-escape-multibyte to t if appropriate.
	Also bind print-escape-nonascii if appropriate.
	(print): Test print_escape_multibyte and print_escape_nonascii,
	rather than enable-multibyte-characters.

1998-06-29  Andrew Innes  <andrewi@harlequin.co.uk>

	* fileio.c (Ffile_regular_p) [WINDOWSNT]: Bind
	`w32-get-true-file-attributes' to t while calling stat.
	(Finsert_file_contents) [WINDOWSNT]: Likewise.
	(Fwrite_region): Don't try seeking to end of FILENAME for
	appending if not a regular file.

1998-07-03  Kenichi Handa  <handa@etl.go.jp>

	* editfns.c (Finsert): Typo in doc-string fixed.
Juanma Barranquero's avatar
Juanma Barranquero committed
552 553
	(Finsert_and_inherit, Finsert_before_markers)
	(Finsert_and_inherit_before_markers): Likewise.
Dave Love's avatar
#  
Dave Love committed
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 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

1998-07-02  Ken'ichi Handa  <handa@melange.gnu.org>

	* fileio.c (Finsert_file_contents): Do not set Vlast_coding_system
	if inserted bytes is zero.

1998-06-28  Eli Zaretskii  <eliz@is.elta.co.il>

	* unexec.c [COFF]: New variable coff_offset.
	(make_hdr) [MSDOS]: If a_name is a coff-go32-exe executable with a
	prepended stub, compute coff_offset.
	(make_hdr, copy_sym) [COFF]: Use coff_offset when seeking into temacs.

1998-06-29  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* editfns.c (Fbyte_to_position): New function.
	(syms_of_editfns): defsubr it.

1998-06-29  Eli Zaretskii  <eliz@delysid.gnu.org>

	* callproc.c (Fcall_process) [! subprocesses]: Balance parentheses
	in an if clause.

1998-06-28  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* fileio.c (Fread_file_name): Bind minibuffer-completing-file-name to t.

	* minibuf.c (Vminibuffer_completing_file_name): New var.
	(syms_of_minibuf): Set up Lisp variable.
	(Fminibuffer_complete_word): Test it, instead of checking
	specifically for Qread_file_name_internal.
	(Fcompleting_read): Likewise.

1998-06-27  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* xterm.c (x_list_fonts): Fix prev change: cast result of alloca.

1998-06-26  Ken'ichi Handa  <handa@melange.gnu.org>

	* coding.h (Qemacs_mule): Extern it.

Paul Eggert's avatar
Paul Eggert committed
595
	* process.c (init_process): Initialize Vdefault_process_coding_system.
Dave Love's avatar
#  
Dave Love committed
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631

1998-06-26  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (setup_raw_text_coding_system): New function.
	(decode_coding_sjis_big5): Bug for handling invalid code fixed.

	* coding.h (setup_raw_text_coding_system): Extern it.

	* fileio.c (Finsert_file_contents): Call
	setup_raw_text_coding_system.

	* process.c (Fstart_process): Check process-coding-system-alist
	and default-process-coding-system even in unibyte mode.
	(create_process): In unibyte mode, suppress character code
	conversion.

1998-06-25  Andrew Innes  <andrewi@harlequin.co.uk>

	* w32fns.c (Fx_list_fonts): Bring arglist into sync with xfns.c.
	(x_set_font): Call face-set-after-frame-default.
	(Qface_set_after_frame_default): New variable.
	(syms_of_w32fns): Initialize it.

1998-06-25  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* search.c (wordify): Fix i_byte even in unibyte case for copy loop.
	If input is unibyte, make the output unibyte.

1998-06-24  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* print.c (PRINTFINISH): Convert text to unibyte before
	inserting in a unibyte buffer.

	* doc.c (get_doc_string): Take both UNIBYTE and DEFINITION as args.
	All callers changed.
	* lisp.h (get_doc_string): Adjust declaration.
632

Dave Love's avatar
#  
Dave Love committed
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647
	* lread.c (read_list): Pass new arg to get_doc_string.

	* doc.c (get_doc_string): 2nd arg is now DEFINITION;
	if non-nil, read a dynamic function definition.
	(read_doc_string): Don't call read here.

1998-06-23  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* indent.c (indented_beyond_p): Return the right kind of value.

1998-06-22  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* emacs.c (sort_args): Discard duplicate options with no args.
	(main): With duplicate -d options, use the last one.  Likewise for -t.
	Check -d last, by checking for -nl earlier on.
648

Dave Love's avatar
#  
Dave Love committed
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709
1998-06-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* keyboard.c (command_loop): Reset executing_macro after
	command_loop_2 has returned, in case a throw to exit or top-level
	was executed as part of a keyboard macro.

	* callproc.c (Fcall_process): Handle third argument BUFFER
	consistently when it is an integer or a list.

1998-06-22  Kenichi Handa  <handa@etl.go.jp>

	* syntax.c (Fmodify_syntax_entry): Use macro STRING_BYTES to get
	byte size of a string.

1998-06-22  Andrew Innes  <andrewi@harlequin.co.uk>

	* w32select.c: Include buffer.h, charset.h, and coding.h.
	(Vclipboard_coding_system): New variable.
	(syms_of_w32select): DEF_VAR it.
	(Fw32_set_clipboard_data): Encode string using
	Vclipboard_coding_system if necessary.
	(Fw32_get_clipboard_data): Decode clipboard contents using
	Vclipboard_coding_system if necessary.

	* w32console.c (initialize_w32_display): Call init_crit to
	initialize interrupt_handle (referenced by sys_select).

1998-06-22  Richard Stallman  <rms@gnu.org>

	* print.c (print_string): Properly compute number of chars
	in multibyte case, before calling strout.

	* lisp.h (Qinhibit_redisplay): Declared.

	* keyboard.c (menu_item_eval_property): Bind Qinhibit_redisplay.

	* xdisp.c (Vinhibit_redisplay, Qinhibit_redisplay): New variables.
	(syms_of_xdisp): Set up Lisp var.
	(redisplay_internal): Test Vinhibit_redisplay.

1998-06-21  Ken'ichi Handa  <handa@melange.gnu.org>

	* process.c (read_process_output): While processing carryover,
	check the size of p->decoding_buf.

1998-06-21  Eli Zaretskii  <eliz@mescaline.gnu.org>

	* process.c (wait_reading_process_input) [! subprocesses]:
	Recompute timeout each time through the loop.  Check
	requeued_events_pending_p and exit the loop if there is unread
	keyboard input.

1998-06-20  Richard Stallman  <rms@gnu.org>

	* search.c (Freplace_match): Work by chars, not by bytes,
	for scanning the old text, and for inserting new string in buffer.

1998-06-20  Karl Heuer  <kwzh@gnu.org>

	* xterm.c (x_list_fonts): Keep alloca usage simple.

710
1998-06-20  Per Starbäck  <starback@strindberg.ling.uu.se>
Dave Love's avatar
#  
Dave Love committed
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725

	* xdisp.c, charset.h, coding.c, emacs.c: Doc fixes.

1998-06-20  Kenichi Handa  <handa@etl.go.jp>

	* print.c (strout): Show multibyte message correctly.

	* ccl.c: Comment for CCL_MapMultiple modified.

	* charset.c (find_charset_in_str): Do not set the value of
	charsets[LEADING_CODE_COMPOSITION].

	* process.c (read_process_output): Handle carryover correctly.

	* xterm.c (dumpglyphs): Check the case that FACE_FONT (face) is
Juanma Barranquero's avatar
Juanma Barranquero committed
726
	NULL.  While displaying cursor with non-default face, if the
Dave Love's avatar
#  
Dave Love committed
727 728 729 730 731 732 733 734 735 736 737 738
	variable `font' is NULL, don't set GCFont.

1998-06-19  Richard Stallman  <rms@gnu.org>

	* minibuf.c (syms_of_minibuf): Initialize buffer-name-history.

1998-06-18  Richard Stallman  <rms@gnu.org>

	* casefiddle.c (casify_object): Cope with modifier bits in character.

1998-06-17  Geoff Voelker  <voelker@cs.washington.edu>

Juanma Barranquero's avatar
Juanma Barranquero committed
739 740
	* w32.c (is_unc_volume, open_unc_volume, read_unc_volume)
	(close_unc_volume, unc_volume_file_attributes): New functions.
Dave Love's avatar
#  
Dave Love committed
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776
	(wnet_enum_handle): New variable.
	(opendir, readdir, closedir, sys_access, stat): Handle UNC volumes.

1998-06-16  Kenichi Handa  <handa@etl.go.jp>

	* xterm.c (x_list_fonts): If SIZE is zero and MAXNAMES is 1, use
	XLoadQueryFont instead of XListFonts.
	(x_load_fonts): Call x_list_fonts with MAXNAMES 1.

1998-06-16  Andrew Innes  <andrewi@harlequin.co.uk>

	* xdisp.c (message_dolog): GCPRO the oldpoint, oldbegv and oldzv
	markers, and old_deactivate_mark.

1998-06-15  Andrew Innes  <andrewi@harlequin.co.uk>

	* w32.c (sys_rename): On some network drives, rename fails with
	EACCES instead of EEXIST if target already exists.

	* coding.c (encode_eol): Fix typo that prevented converting to Mac
	line endings.  Always update dst_bytes to number of bytes actually
	copied.
	(decode_eol): Fix value of coding->produced when decoding Unix
	line endings (in case this function is ever used for that).

1998-06-14  Ken'ichi Handa  <handa@melange.gnu.org>

	* fileio.c (Finsert_file_contents): Redo the change for handling
	set-auto-coding while adding a kludgy code to avoid a compiler
	bug.
	(syms_of_fileio): Doc-string of the variable
	set-auto-coding-function modified for the change above.

1998-06-14  Eli Zaretskii  <eliz@mescaline.gnu.org>

	* msdos.c (dos_set_keyboard): Call Int 2Fh via the DPMI server,
777
	not directly.
Dave Love's avatar
#  
Dave Love committed
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810
	(dos_yield_time_slice): New function.
	(sys_select): Use it instead of __dpmi_yield.

1998-06-14  Erik Naggum  <erik@naggum.no>

	* minibuf.c (Fcompleting_read): Escape bare newline in doc string.

1998-06-14  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* fileio.c (Finsert_file_contents): Fix change to set INSERTED.

1998-06-13  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (parse_menu_item): Put a quote around DEF
	to pass it as an argument to the filter function.

	* syntax.c (skip_chars):
	Don't examine STRING before verifying that it is a string.

1998-06-13  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (detect_coding_system): Always return a list of HIGHEST
	is zero.
	(Fdetect_coding_region): Doc-string adjusted for the above change.
	(Fdetect_coding_string): Likewise.

1998-06-12  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* emacs.c (standard_args): Fix arg order to match code in `main'.

1998-06-12  Ken'ichi Handa  <handa@melange.gnu.org>

	* fileio.c (Finsert_file_contents): Undo the previous change for
Juanma Barranquero's avatar
Juanma Barranquero committed
811
	handling set-auto-coding.
Dave Love's avatar
#  
Dave Love committed
812 813 814 815 816 817 818 819 820 821 822 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 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896

1998-06-11  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* fileio.c (Finsert_file_contents): After calling handler,
	get INSERTED from the handler's value.

	* callint.c (Fcall_interactively) <k, K>: If sequence ends in a down
	event, discard following up event.

1998-06-12  Kenichi Handa  <handa@etl.go.jp>

	* fileio.c (set_auto_coding_unwind): New function.
	(Finsert_file_contents): If the current buffer is empty, decide
	the coding system after the file is inserted in the buffer.  If
	not, insert the head and tail of a file in a temporary buffer and
	call set-auto-coding-function.
	(e_write): If there are carryover bytes in encoding because of
	incomplete multibyte form, write them out as is.

1998-06-11  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* syntax.c (scan_lists): Use prev_char_comend_first, not ...comstart...

1998-06-11  Geoff Voelker  <voelker@cs.washington.edu>

	* makefile.nt (LINK_FLAGS): Place debug info in executable in
	unoptimized compile.  Link to run off of cd or network.

1998-06-10  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* syntax.c (Fforward_comment):
	Properly compute BYTEPOS arg to char_quoted.

1998-06-09  Andrew Innes  <andrewi@harlequin.co.uk>

	* w32.c (sys_rename): Don't examine errno if rename didn't fail.

	* s/ms-w32.h (getcwd): Remove define.
	(getdefdir) [emacs]: Redefine to always return root directory.

1998-06-09  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* lisp.h (Feval_region): Accept 4 args.

	* lread.c (readevalloop): New arg READFUN.  Callers changed.
	(Feval_region): New arg READ_FUNCTION.

1998-06-08  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* syntax.h (SETUP_SYNTAX_TABLE): Don't call update_syntax_table
	for FROM-1 if that's before BEGV.

1998-06-07  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* syntax.c (struct lisp_parse_state): New field, levelstarts.
	(scan_sexps_forward): Use 10th elt of STATE to set levelstarts.
	(parse-partial-sexp): Add 10th elt to return value.

	* keyboard.c (lispy_function_keys): Add kanji...eisu-toggle.

	* keyboard.c (cmd_error): Init Vlast_prefix_arg.
	(init_kboard, command_loop_1): Init Vlast_prefix_arg.
	(Fcommand_execute): Set Vlast_prefix_arg to prefix arg used.

	* callint.c (syms_of_callint): Set up Lisp variable.

	* alloc.c (mark_kboards): Mark all the Lisp_Object fields.

	* keyboard.c (command_loop_1):
	Set Vreal_last_command with Vlast_command.
	(init_kboard): Init Vreal_last_command field.
	(syms_of_keyboard): Set up Lisp var real-last-command.

	* keyboard.h (struct kboard): New elts Vreal_last_command
	and Vlast_prefix_arg.

1998-06-06  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* xterm.c (XTread_socket): Accept Japanese XK keysyms.

	* xdisp.c (redisplay_internal): If cursor's in the frame's echo area,
	make last_point invalid instead of setting it normally.
	(display_text_line): If cursor's in the frame's echo area,
	don't set this_line_endpos.
	(redisplay_window): Use Fwindow_end to find lower scroll margin.
897

Dave Love's avatar
#  
Dave Love committed
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915
	* syntax.c (scan_lists): Properly skip the comment-fence character
	that ends a comment, when moving forward.
	(Fbackward_prefix_chars): Return immediately if point is at BEGV.

	* callproc.c (init_callproc): Check Vinstallation_directory
	even if !initialized.

1998-06-06  Richard Stallman  <rms@sucrose.ai.mit.edu>

	* syntax.c (prev_char_comend_first): New function.
	(back_comment): Use that.  Carefully update syntax table position
	for each character that is fetched.
	(Fforward_comment): Likewise.
	(scan_lists): Likewise.
	(prev_char_comstart_first): New function.

1998-06-05  Andrew Innes  <andrewi@harlequin.co.uk>

Juanma Barranquero's avatar
Juanma Barranquero committed
916
	* w32.c: #include sys/file.h.
Dave Love's avatar
#  
Dave Love committed
917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949
	(sys_access): Provide our own implementation which recognizes D_OK.
	(is_exec): New function.
	(stat): Use it.
	(init_environment): Set TMPDIR to an existing directory.
	Abort if none of the usual places is available.
	(sys_rename): On Windows 95, choose a temp name that
	includes the original file's base name and use an explicit loop
	rather than calling mktemp.  Only attempt to unlink the newname if
	the rename fails, rather than second-guessing whether the old and
	new names refer to the same file.

	* fileio.c (Finsert_file_contents): Always update
	Vlast_coding_system_used when we actually perform IO.
	(Fwrite_region): Update documentation.

1998-06-03  Richard Stallman  <rms@gnu.org>

	* emacs.c (main): Don't implement --version if not initialized.

	* intervals.c (create_root_interval): Initialize position to 0
	for a string.
	(interval_start_pos): New function.
	(find_interval): Handle string positions starting at 0.
	(adjust_intervals_for_insertion): Likewise.
	(adjust_intervals_for_deletion): Likewise.
	(compare_string_intervals): Likewise.
	(graft_intervals_into_buffer): Set `position' in reproduce_tree value.
	(copy_intervals): Init `position' to 0.

	* textprop.c: Handle the new convention that `position' values
	in a string's intervals start from zero.
	(validate_interval_range, interval_of, Fnext_property_change)
	(property_change_between_p, Fnext_single_property_change)
Juanma Barranquero's avatar
Juanma Barranquero committed
950
	(Fprevious_property_change, Fprevious_single_property_change)
Dave Love's avatar
#  
Dave Love committed
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974
	(Ftext_property_any, Ftext_property_not_all): Implement that.

	* textprop.c: Undo previous change.

	* coding.c (code_convert_string_norecord): New function.
	Does encoding or decoding but doesn't set Vlast_coding_system_used.

	* coding.h (DECODE_FILE, ENCODE_FILE):
	Use code_convert_string_norecord.

1998-06-02  Richard Stallman  <rms@gnu.org>

	* sysdep.c (sys_subshell): Cast arg to chdir.
	(init_sys_modes): Cast arg to setbuf or setvbuf.

	* keyboard.c (syms_of_keyboard): Doc fix for suggest-key-bindings.

1998-06-02  Ken'ichi Handa  <handa@melange.gnu.org>

	* charset.c (string_to_non_ascii_char): Don't check the arg
	EXCLUDE_TAIL_GARBAGE for an invalid composite characters.

1998-06-01  Ken'ichi Handa  <handa@melange.gnu.org>

Paul Eggert's avatar
Paul Eggert committed
975
	* coding.c (detect_coding_mask): Initialize local variable C.
Dave Love's avatar
#  
Dave Love committed
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008

1998-06-01  Richard Stallman  <rms@gnu.org>

	* emacs.c (main): Test `initialized' before clearing *Messages*.

1998-06-01  Karl Heuer  <kwzh@gnu.org>

	* s/aix4.h (SOCKLEN_TYPE): Define as int.

	* callproc.c (Fcall_process): Avoid initializer on auto struct.

1998-06-01  Andrew Innes  <andrewi@mescaline.gnu.org>

	* s/ms-w32.h: Use 1 as explicit value of empty #defines.

	* makefile.nt (LOCAL_FLAGS): Define HAVE_NTGUI if appropriate.

1998-05-31  Karl Heuer  <kwzh@gnu.org>

	* doprnt.c (doprnt1): Fix char signedness mismatches.
	* fileio.c (Finsert_file_contents): Likewise.

1998-05-31  Richard Stallman  <rms@gnu.org>

	* dispnew.c (Fredraw_frame): Don't erase frame or its glyph records
	if it hasn't got any.

1998-05-30  Geoff Voelker  <voelker@cs.washington.edu>

	* w32proc.c (sys_spawnve): Place Emacs pid in EM_PARENT_PROCESS_ID.

	* w32.c (sys_rename): Handle filenames with accented characters.
	(stat): Handle "c:/.." and "/.." specially.
1009

Dave Love's avatar
#  
Dave Love committed
1010 1011 1012 1013 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
	* unexw32.c (w32_fatal_reload_error): Update error message.

1998-05-30  Karl Heuer  <kwzh@gnu.org>

	* Makefile.in (distclean): Delete config.stamp, stamp-oldxmenu.

	* window.c (Fscroll_up, Fscroll_down, Fscroll_other_window): Doc fix.
	* charset.c (syms_of_charset): Put \n\ at eol of docstring.

1998-05-29  Richard Stallman  <rms@gnu.org>

	* textprop.c (Fnext_property_change): Properly offset interval
	position for string when comparing with LIMIT.
	(property_change_between_p): Likewise.
	(Fnext_single_property_change, Fprevious_property_change): Likewise.
	(Fprevious_single_property_change): Likewise.

1998-05-28  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (command_loop_1): In shortcuts for forward-char etc.,
	use FETCH_CHAR not FETCH_BYTE.

1998-05-28  Andrew Innes  <andrewi@harlequin.co.uk>

	* lread.c (read1): Swap saved_doc_string_length and
	prev_saved_doc_string_length.
	(read_list): Negate docstring position if negative before checking
	against saved_doc_string_length et al.

1998-05-28  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* lread.c: Remember the last TWO strings skipped with #@.
	(prev_saved_doc_string*): New variables.
1043
	(Fload): Initialize prev_saved_doc_string.
Dave Love's avatar
#  
Dave Love committed
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065
	(read1): Copy saved_doc_string to prev_saved_doc_string
	before storing a new string in saved_doc_string.
	(read_list): Look in prev_saved_doc_string as well as
	in saved_doc_string.

1998-05-25  Andrew Innes  <andrewi@harlequin.co.uk>

	* doc.c (get_doc_string): Make non-static.

	* lisp.h: Add prototype for get_doc_string.

	* lread.c (read_vector): Add bytecodeflag parameter, which is
	nonzero when reading a bytecode object.  If
	`load-force-doc-strings' is t when reading a lazily-loaded
	bytecode vector, the loaded docstring must be treated as unibyte
	and passed to Fread to obtain the actual bytecode string and
	constants vector.
	(read1): Add extra parameter to read_vector calls.

	(read1): Enable saving of doc strings on WINDOWSNT.
	(read_list): Call get_doc_string instead of read_doc_string, when
	forced to load doc strings.
1066

Dave Love's avatar
#  
Dave Love committed
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130
1998-05-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* s/gnu-linux.h (setpgrp): Remove extra parens around parameters.

	* xterm.c (XTread_socket): Fix second argument of
	x_any_window_to_frame.

	* print.c (print) <Lisp_Cons>: Detect circular list.

1998-05-25  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (detect_coding_system): Treat CODING_EOL_INCONSISTENT
	like CODING_EOL_UNDECIDED.

	* coding.c (ascii_skip_code): New variable.
	(detect_coding_mask): Skip ASCII codes at the head according to
	ascii_skip_code.
	(coding_priorities): New variable.
	(Fset_coding_priority_internal): New function.
	(detect_coding): Call set_coding_mask with coding_priorities as
	arg CODING.
	(init_coding_once): Initialize ascii_skip_code.
	(syms_of_coding): Declare set-coding-priority-internal as a Lisp
	function.

1998-05-25  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* config.in (RE_TRANSLATE): Use CHAR_TABLE_TRANSLATE.

	* lisp.h (CHAR_TABLE_TRANSLATE): New macro.

1998-05-24  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* window.c (Fdelete_windows_on): For FRAME, change t to nil
	and nil to t, but don't change other values.

	* xdisp.c (message_dolog): Do set windows_or_buffers_changed,
	if *Messages* is displayed in a window.

1998-05-22  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* indent.c (compute_motion): Check for past vpos/hpos target
	before skipping invisible chars.

	* buffer.c (Fother_buffer): Doc fix.

	* window.c (window_loop): Pass new arg to Fother_buffer.

	* frame.c (frame_buffer_predicate): New arg FRAME.
	(frame_buffer_list, set_frame_buffer_list): Likewise.
	(make_frame): Pass new arg to Fother_buffer.

	* buffer.c (Fother_buffer): New arg FRAME.
	Pass it to frame_buffer_list, frame_buffer_predicate.
	Calls changed.
	(record_buffer): Pass selected frame to them
	and set_frame_buffer_list.

	* lisp.h (frame_buffer_predicate, frame_buffer_list)
	(set_frame_buffer_list, Fother_buffer): Decls changed.

	* window.c (select_window_1): New subroutine, from Fselect_window.
	(Fselect_window): Use select_window_1.
	(temp_output_buffer_show): Use select_window_1.
1131

Dave Love's avatar
#  
Dave Love committed
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198
1998-05-22  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c: Change term "character translation table" to "translation
	table".

	* charset.c: Change term "character translation table" to
	"translation table".
	(string_to_non_ascii_char): New arg EXCLUDE_TAIL_GARBAGE.  Caller
	changed.
	(Funibyte_char_to_multibyte): Doc-string fixed.
	(syms_of_charset): Doc-string fixed.

	* charset.h (STRING_CHAR_AND_CHAR_LENGTH): New macro.
	(string_to_non_ascii_char): Adjusted for the new arg.

	* coding.c: Change term "character translation table" to
	"translation table".

	* coding.h: Change term "character translation table" to
	"translation table".

	* print.c (print_string): Don't ignore garbage bytes following a
	multibyte characters.
	(print): Likewise.

1998-05-22  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* search.c (shrink_regexp_cache): New function.

	* alloc.c (Fgarbage_collect): Call shrink_regexp_cache.

1998-05-20  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* editfns.c (Fchar_after): Make nil fully equivalent to (point) as arg.
	(Fchar_before): Likewise.

1998-05-20  Eli Zaretskii  <eliz@is.elta.co.il>

	* fileio.c (Ffile_name_directory, Ffile_name_nondirectory)
	[DOS_NT]: Handle the special construct "/:" when followed by d:foo.

	* buffer.c (init_buffer): Support DOS_NT absolute file names.

1998-05-20  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (find_charset_in_str): New arg CMPCHARP.
	(Ffind_charset_region): Call find_charset_in_str with CMPCHARP 0.
	(Ffind_charset_string): Likewise.

	* charset.h (find_charset_in_str): Number of arguments fixed.

	* coding.c (shrink_decoding_region): No short cut by
	coding->heading_ascii if eol conversion is necessary.

	* fns.c (Fstring_make_multibyte): Call CHECK_STRING.
	(Fstring_make_unibyte, Fstring_as_unibyte, Fstring_as_multibyte):
	Likewise.

	* xselect.c (lisp_data_to_selection_data): Call
	find_charset_in_str with CMPCHARP 1 to encode Lisp string if it
	contains a composite character.

1998-05-19  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* minibuf.c (syms_of_minibuf): Doc fix.

	* window.c (Fscroll_up, Fscroll_down, Fscroll_other_window): Doc fixes.
1199

Dave Love's avatar
#  
Dave Love committed
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
	* frame.c (make_frame_visible_1): New function.
	(Fmake_frame_visible): Use that.

	* xdisp.c (redisplay_window): Don't use window->start
	if it is out of range of BEGV/ZV.

1998-05-18  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* minibuf.c (read_minibuf): If history list var is void, make it nil.

1998-05-18  Ken'ichi Handa  <handa@melange.gnu.org>

	* syntax.c (skip_chars): Fix previous change.

1998-05-17  Kenichi HANDA  <handa@etl.go.jp>

	* ccl.c: Change term translation to code conversion, then change
	terms unify/unification to translate/translation respectively
	throughtout the file.

	* charset.c: Change terms unify/unification to
	translate/translation respectively throughtout the file.
	(ONE_BYTE_CHAR_WIDTH): Delete unnecessary continuation line at the
	tail.

	* charset.h: Change terms unify/unification to
	translate/translation respectively throughtout the file.
	(GET_TRANSLATION_TABLE): Name changed from UNIFICATION_ID_TABLE.

	* coding.c: Change terms unify/unification to
	translate/translation respectively throughtout the file.
	(encode_coding_iso2022): Fix bug in encoding a text ending by a
	composite character.
	(check_composing_code): If we are decoding the last block of data,
	return 0 even if the source doesn't end by an escape sequence
	which terminates the current composing sequence.
	(decode_coding_iso2022): Decode correctly even if the source
	doesn't end by an escape sequence which terminates the current
	composing sequence.

	* coding.h: Change terms unify/unification to
	translate/translation respectively throughout the file.

Juanma Barranquero's avatar
Juanma Barranquero committed
1243
	* fns.c (concat): Fix bug in concatenating a list of multibyte and
Dave Love's avatar
#  
Dave Love committed
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275
	unibyte characters.

	* lisp.h (Vnonascii_translation_table): Name changed from
	Vnonascii_translate_table.

	* syntax.c (skip_chars): Fix bug in handling a range which
	contains multibyte characters.

1998-05-17  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* filelock.c (get_boot_time): Scan the whole wtmp file
	to find the most recent reboot.

	* window.c (Fselect_window): Doc fix.
	(temp_output_buffer_show): Make the temp buffer current
	before running Qtemp_buffer_show_hook.

	* fileio.c (Fexpand_file_name): Change conditional
	in previous change from WINDOWSNT to DOS_NT.

1998-05-16  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* buffer.h (struct buffer): New slot display_time.

	* buffer.c (syms_of_buffer): Set up Lisp variable buffer-display-time.
	Doc fixes.
	(reset_buffer): Initialize display_time slot.
	(init_buffer_once): Initialize display_time slot.

	* window.c (Fset_window_buffer): Update buffer's display_time.

	* insdel.c (insert_1_both, insert_from_string_1, replace_range)
1276
	(insert_from_buffer_1, adjust_before_replace, adjust_after_replace):
Dave Love's avatar
#  
Dave Love committed
1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380
	Don't copy text being deleted, if undo is disabled.

	* lread.c (readchar): Use readchar_backlog again
	to read a character byte by byte, if its byte sequence
	does not really match the character code.
	(unreadchar): Handle readchar_backlog.
	(readevalloop, Fread): Initialize readchar_backlog to -1.

1998-05-15  Geoff Voelker  <voelker@cs.washington.edu>

	* fileio.c (Fexpand_file_name) [WINDOWSNT]: Be careful not to
	concatenate the directory prefix and file name to accidentally
	create a network share name.

1998-05-14  Andrew Innes  <andrewi@harlequin.co.uk>

	* w32xfns.c (interrupt_handle): New variable.
	(init_crit): Initialize it.
	(delete_crit): Cleanup on exit.
	(signal_quit): New function.  Signal any threads that are blocked
	on a "system" call (provided they have been specially written to
	check for this), so the call can fail with EINTR as on Unix.

	* w32term.h (signal_quit): Add prototype.

	* w32fns.c (w32_wnd_proc): Call signal_quit when C-g is received.

	* w32proc.c (sys_select): Always wait on interrupt_handle, so that
	user can break out of `accept-process-input' (for instance) by
	typing C-g.

1998-05-14  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* keyboard.c (read_char): If redisplay is preempted,
	try swallow_events; if that clears input_pending,
	finish the redisplay.

1998-05-14  Geoff Voelker  <voelker@cs.washington.edu>

	* w32term.c (w32_ring_bell): Flash window correctly.

1998-05-13  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* fileio.c (Finsert_file_contents): Don't check non-regular
	files for a coding: specification.

1998-05-13  Inge Frick  <inge@nada.kth.se>

	* keyboard.c (parse_menu_item): Removed unnecessary gcproing.
	Fix a test of inmenubar.

1998-05-13  Eli Zaretskii  <eliz@mescaline.gnu.org>

	* msdos.c (init_environment): Set TMPDIR to an existing
	directory.  Abort if none of the usual places is available.

1998-05-13  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* syntax.c (skip_chars): When fetching char after \,
	don't fail to set c_leading_code.

1998-05-12  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* fileio.c (Finsert_file_contents): Check that a -*- coding: -*- spec
	or a local variables list exists, before Vset_auto_coding_function.

	* minibuf.c (Fminibuffer_complete_word):
	Fix the string-comparison loop.

	* search.c (search_buffer): Set search regs for all success
	with an empty string.
	(set_search_regs): Clear out all regs except 0.

	* minibuf.c (Fall_completions, Ftry_completion):
	Compare char sizes, not STRING_BYTES.

1998-05-12  Inge Frick  <inge@nada.kth.se>

	* keyboard.c (parse_menu_item): Argument inmenubar < 0 now means
	parsing a keyboard menu item.
	(read_char_minibuf_menu_prompt): Use `parse_menu_item' to understand
	new menu item format.

1998-05-12  Andrew Innes  <andrewi@harlequin.co.uk>

	* w32.c (stat, get_long_basename): Fail if filename contains any
	characters that are illegal in file names.

1998-05-11  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* minibuf.c (assoc_for_completion): Use Fcompare_strings.
	(test_completion): In obarray, try both unibyte and multibyte strings.
	(read_minibuf): Convert unibyte prompt to multi if minibuffer is multi.
	(Fdisplay_completion_list): Convert unibyte to strings to multibyte
	to conform to the buffer.

	* fileio.c (Finsert_file_contents): Don't use the fast replace code
	if coding needs eol conversion.
	(Finsert_file_contents) [DOS_NT]: When setting buffer_file_type,
	if code conversion is needed, file is not binary.

	* xdisp.c (redisplay_window): Handle scroll_step along with
	scroll_conservatively.  Fix 1-off error checking the limit for them.

1381
	* filelock.c (unlock_file): Encode the file name.
Dave Love's avatar
#  
Dave Love committed
1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482

1998-05-10  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* buffer.c (Fset_buffer_multibyte): Error if marker is put
	on buffer's marker-chain while we have temporarily put nil there.

	* marker.c (unchain_marker): Abort if the marker is not
	in its buffer's chain.
	(buf_bytepos_to_charpos): Fix assignment of `record'
	when scanning from below.
	Don't create a marker if buffer's marker chain is empty.

	* coding.c (code_convert_region1): Set Vlast_coding_system_used.
	(code_convert_string1): Likewise.
	(Fdecode_coding_region, Fencode_coding_region): Doc fixes.
	(Fdecode_coding_string, Fencode_coding_string): Doc fixes.

	* Makefile.in (TAGS): Specify directory when running etags.

1998-05-09  Richard Stallman  <rms@psilocin.ai.mit.edu>

	* bytecode.c (Fbyte_code): Don't use Bmark.

	* .gdbinit (xstring): Handle unibyte strings.
	(xchartable, xboolvector): New commands.

	* xdisp.c (redisplay_window): Don't use last_point_x and last_point_y
	if cursor_in_echo_area.

	* minibuf.c (Qbuffer_name_history): New variable.
	(syms_of_minibuf): Initialize it.
	(Fread_buffer): Use that history list.

1998-05-09  Richard Stallman  <rms@psilocin.gnu.org>

	* syntax.c (scan_lists, scan_sexps_forward): Move complex expressions
	outside of the switch statement.

1998-05-09  Ken'ichi Handa  <handa@melange.gnu.org>

	* indent.c (compute_motion): Fix previous change.

1998-05-08  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (detect_coding_mask): Check also coding-category-binary.

1998-05-08  Richard Stallman  <rms@psilocin.gnu.org>

	* doc.c (get_doc_string): New arg UNIBYTE
	Maybe use make_unibyte_string.  All callers changed.
	(read_doc_string): Specify 1 for UNIBYTE.

	* process.c (Fstart_process): Remove the special case for
	unibyte, for initializing the process coding systems.
	Instead, use the normal multibyte code, but check
	BUFFER's value and the default value of enable-multibyte-characters.
	(Fopen_network_stream): Likewise.

1998-05-08  Ken'ichi Handa  <handa@melange.gnu.org>

	* indent.c (compute_motion): Fix, in a different way, the bug of
	handling wide-column character around right margin.

1998-05-07  Richard Stallman  <rms@psilocin.gnu.org>

	* indent.c (compute_motion): Undo both May 7 changes.

	* doprnt.c (doprnt1): Cast arg to CHAR_STRING.

1998-05-07  Andrew Innes  <andrewi@harlequin.co.uk>

	* callproc.c (Fcall_process): Fix test for when to call
	Ffind_operation_coding_system.

1998-05-07  Ken'ichi Handa  <handa@melange.gnu.org>

	* indent.c (compute_motion): Fix previous change.

1998-05-07  Richard Stallman  <rms@psilocin.gnu.org>

	* search.c (Freplace_match): Fix the loop for copying text
	from a string, in handling lastpos and pos.

1998-05-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* data.c (set_internal): Properly compare lisp objects.
	(Fmakunbound): Likewise.
	* lread.c (Fintern): Properly compare lisp objects.

1998-05-07  Andrew Innes  <andrewi@harlequin.co.uk>

	* fileio.c (Fexpand_file_name) [DOS_NT]: Note when special escape
	prefix /: is present, and reinsert after name has been expanded.
	Only recognize drive specifier at beginning of name.

	* fileio.c (Fexpand_file_name):
	Don't strip trailing slash if newdir is just /.

1998-05-07  Eli Zaretskii  <eliz@mescaline.gnu.org>

	* process.c (init_process, syms_of_process) [not subprocesses]:
Juanma Barranquero's avatar
Juanma Barranquero committed
1483
	Make definition consistent with prototypes on lisp.h.
Dave Love's avatar
#  
Dave Love committed
1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517

1998-05-07  Kenichi Handa  <handa@etl.go.jp>

	* indent.c (compute_motion): Fix bug of handling wide-column
	character around right margin.

1998-05-07  Richard Stallman  <rms@psilocin.gnu.org>

	* buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.

1998-05-07  Kenichi Handa  <handa@etl.go.jp>

	* callproc.c (Fcall_process): If we must display received data on
	the fly, don't wait until a buffer is filled.

1998-05-05  Richard Stallman  <rms@psilocin.gnu.org>

	* fileio.c (barf_or_query_if_file_exists): Encode file name.

1998-05-04  Kenichi HANDA  <handa@etl.go.jp>

	* coding.c (encode_coding_iso2022): Don't skip a code following
	some invalid code.

1998-05-04  Richard Stallman  <rms@psilocin.gnu.org>

	* fileio.c (Finsert_file_contents): Don't use gap pos to set point
	if del_range_byte deleted 0 characters.

	* search.c (boyer_moore): Check more reliably for ptr[1] being
	out of range.  Use pat_end to point at the pattern's end.

	* emacs.c (main): Call the syms_of_... and keys_of_... functions
	earlier, before init_vms_input and init_display.
1518

Dave Love's avatar
#  
Dave Love committed
1519 1520 1521 1522 1523 1524 1525 1526 1527 1528
1998-05-04  E. Jay Berkenbilt  <ejb@ql.org>

	* window.h (WINDOW_RIGHT_MARGIN): Don't subtract 1 from width when
	there are no vertical scrollbars and this is the rightmost window
	in the frame.

1998-05-04  Eli Zaretskii  <eliz@mescaline.gnu.org>

	* lread.c (Fload): Rename dosmode to fmode and use it on all
	platforms.  Avoid calling fdopen only for WINDOWSNT, use fdopen
Pavel Janík's avatar
Pavel Janík committed
1529
	for the MSDOS version.
Dave Love's avatar
#  
Dave Love committed
1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583
	(read1): Avoid recording doc strings positions only for WINDOWSNT,
	not for MSDOS.

1998-05-04  Andreas Schwab  <schwab@delysid.gnu.org>

	* xterm.c: Include syssignal.h after lisp.h.

	* syssignal.h: Declare init_signals and add prototypes.

	* lisp.h: Declare init functions.

1998-05-03  Richard Stallman  <rms@psilocin.gnu.org>

	* s/sunos4shr.h (LIBXMU): Don't bother testing CANNOT_DUMP.

	* Makefile.in (TAGS-LISP): New target.
	(${lispsource}TAGS): Target deleted.
	(tags): Depend on TAGS-LISP.
	(TAGS): Generate the TAGS file in the build dir.
	(lisptagsfiles): Variable deleted.

	* Makefile.in (shortnamesdir, cppdir): Vars deleted.
	(shortnames): Target deleted.
	(temacs): Don't use $(SHORT).
	(SHORT): Var deleted.

1998-05-02  Richard Stallman  <rms@psilocin.gnu.org>

	* alloc.c (Fmake_bool_vector): Clear out extraneous bits at end.

	* lread.c (read1): Clear out extraneous bits at end of bool-vector.

	* search.c (compile_pattern_1): Declare raw_pattern as unsigned char *.
	Fix casts when assigning raw_pattern.
	Cast raw_pattern when calling re_compile_pattern.

1998-05-02  Hallvard B Furuseth  <h.b.furuseth@usit.uio.no>

	* process.c (create_process): Add cast when calling encode_coding
	and another when storing buf into new_argv.

	* search.c (search_buffer): Fix casts when assigning raw_pattern.

	* editfns.c (Fformat): Fix casts when assigning buf.

	* lread.c (isfloat_string): Don't look at bytes before the string.

1998-05-02  Richard Stallman  <rms@psilocin.gnu.org>

	* s/nextstep.h (HAVE_STRING_H): Add #undef.
	(NO_ABORT): Defined.

	* editfns.c (Finsert_char): Doc fix.

Paul Eggert's avatar
Paul Eggert committed
1584
1998-05-02  Hrvoje Nikšić  <hniksic@srce.hr>
Dave Love's avatar
#  
Dave Love committed
1585

1586
	* fileio.c (Fmake_temp_name): Improve randomness of generated file
Dave Love's avatar
#  
Dave Love committed
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599
	names.

1998-05-01  Richard Stallman  <rms@psilocin.gnu.org>

	* search.c (wordify): Do the second loop by chars, not by bytes.

1998-05-01  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (encode_coding_iso2022): If encoding a last block,
	reset graphic planes and registers.

1998-04-30  Geoff Voelker  <voelker@cs.washington.edu>

1600
	* keyboard.c (Qdrag_n_drop, drag_n_drop_syms, lispy_drag_n_drop_names)
Dave Love's avatar
#  
Dave Love committed
1601 1602 1603 1604 1605 1606 1607 1608 1609 1610
	New variables.
	(make_lispy_event): Handle drag_n_drop events.
	(syms_of_keyboard): Initialize new symbols.

	* w32fns.c (enum_font_cb2): Only ignore raster fonts when
	determining height and width.

	* termhooks.h (event_kind): New event type `drag_n_drop'.

	* makefile.nt (LIBS): Link in shell32.lib.
1611

Dave Love's avatar
#  
Dave Love committed
1612 1613 1614 1615 1616 1617 1618
	* w32fns.c: Include shellapi.h.
	(w32_createwindow): Enable drag-n-drop on new windows.
	(w32_wnd_proc): Handle WM_DROPFILES messages.
	Disable drag-n-drop on closing windows.

	* w32term.c: Include shellapi.h.
	(construct_drag_n_drop): New function.
1619
	(w32_read_socket): Handle WM_DROPFILES messages.
Dave Love's avatar
#  
Dave Love committed
1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637

1998-04-30  Skip Collins  <ColliBF1@APLMSG.JHUAPL.EDU>

	* w32fns.c (msh_mousewheel): New variable.
	(w32_msg_pump): Register that Emacs accepts mousewheel events.
	(w32_wnd_proc): Check for mousewheel events.

	* w32term.c (msh_mousewheel): Declare.
	(w32_read_socket): Check for mousewheel events.

	* w32term.h (WM_MOUSEWHEEL): Define relative to WM_MOUSELAST.
	(MSH_MOUSEWHEEL): New macro.

1998-04-29  Richard Stallman  <rms@psilocin.gnu.org>

	* indent.c (compute_motion): When invisible text cross TO,
	return TO, not the start of the invisible text.

1638
	* process.c (Fset_process_inherit_coding_system_flag, Fstart_process):
Dave Love's avatar
#  
Dave Love committed
1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650
	Store inherit_coding_system_flag as a Lisp_Object.
	(Fopen_network_stream): Likewise.
	(Fprocess_inherit_coding_system_flag): Access it as Lisp_Object.
	(read_process_output): Likewise.

	* process.h (struct Lisp_Process):
	Make inherit_coding_system_flag a Lisp_Object.

1998-04-29  David Mosberger-Tang  <David.Mosberger@acm.org>

	* unexelf.c [__alpha__ && !__NetBSD__ && !__OpenBSD__]:
	Include definition of HDRR structure that used to be in sym.h,
Juanma Barranquero's avatar
Juanma Barranquero committed
1651
	instead of sym.h.
Dave Love's avatar
#  
Dave Love committed
1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686

1998-04-29  Andreas Schwab  <schwab@delysid.gnu.org>

	* xfns.c: Fix -Wimplicit warnings.

	* xdisp.c (redisplay_window): Update STARTP_BYTE alongside with
	STARTP.  New variable scroll_margin_bytepos, to parallel
	scroll_margin_pos.  Fix arguments of pos_tab_offset to agree with
	the first argument of compute_motion.

	* window.c (make_window): Initialize last_point field.

	* sysdep.c (emacs_get_tty): Zero out termios structure before
	getting attributes to get consistent values for holes.
	(emacs_set_tty): Likewise.

	* lisp.h: Declare Fcompare_strings.

	* fns.c: Include <time.h> for time.

	* emacs.c (main): Use Vbuffer_alist instead of Fbuffer_list.
	(syms_of_emacs): Fix doc of Vsignal_USR1_hook and
	Vsignal_USR2_hook.

	* coding.c (setup_coding_system): Properly check for nil.

1998-04-29  Richard Stallman  <rms@psilocin.gnu.org>

	* editfns.c (Fcompare_buffer_substrings): Rewrite to loop by chars.

	* coding.h (Vfile_name_coding_system)
	(Vdefault_file_name_coding_system): Declarations added.

	* emacs.c (abort): Omit this definition, if NO_ABORT.
	End by calling exit, to avoid warning.
1687

Dave Love's avatar
#  
Dave Love committed
1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717
1998-04-28  Richard Stallman  <rms@psilocin.gnu.org>

	* filelock.c: Include coding.h.
	(lock_file): Encode the file name, to make lock file name.

	* editfns.c (Fgap_position, Fgap_size): New functions.
	(syms_of_editfns): defsubr them.

	* filelock.c (lock_file): gcpro `fn'.

	* insdel.c (insert_1_both): Call prepare_to_modify_buffer before
	moving or making gap.
	(insert_from_string_1): Don't check max buffer size here.

	* data.c (Flsh, Fash): Handle out-of-range shift counts reasonably.

1998-04-28  Dave Love  <d.love@dl.ac.uk>

	* s/aix4.h (HAVE_STRING_H): Add #undef.
	(HAVE_WAIT_HEADER): Defined.

1998-04-28  Richard Stallman  <rms@psilocin.gnu.org>

	* emacs.c (main): Fix bug report address in --help message.
	(main): Doc --multibyte and --unibyte in --help message.

	* fns.c [HAVE_MENUS]: Include xterm.h only if HAVE_X_WINDOWS.

1998-04-28  Eli Zaretskii  <eliz@mescaline.gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
1718 1719 1720 1721
	* Makefile.in (callproc.o, print.o, cmds.o, dispnew.o, fileio.o)
	(frame.o, keyboard.o, minibuf.o, process.o, scroll.o, sysdep.o)
	(term.o, w16select.o, window.o, xdisp.o, xfaces.o, lread.o):
	Depend on msdos.h.
Dave Love's avatar
#  
Dave Love committed
1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738
	(print.o): Depend on dispextern.h.

1998-04-28  Andreas Schwab  <schwab@delysid.gnu.org>

	* process.c (Fset_process_inherit_coding_system_flag):
	Fix test for non-nil FLAG.

	* lread.c: Fix -Wimplicit warnings.
	(readevalloop): Fix type of UNIBYTE parameter.

1998-04-27  Richard Stallman  <rms@psilocin.gnu.org>

	* xterm.c (XTwrite_glyphs): Don't advance cursor X beyond limit.
	(XTcursor_to): Likewise.

	* blockinput.h (reinvoke_input_signal): Don't use prototype decl.

Paul Eggert's avatar
Paul Eggert committed
1739
1998-04-27  Hrvoje Nikšić  <hniksic@srce.hr>
Dave Love's avatar
#  
Dave Love committed
1740 1741 1742 1743 1744 1745 1746 1747 1748 1749

	* fns.c (Fload_average): New arg USE_FLOATS.

1998-04-27  Eli Zaretskii  <eliz@mescaline.gnu.org>

	* fns.c [HAVE_MENUS]: Include xterm.h only if HAVE_WINDOW_SYSTEM
	is defined.

	* callproc.c, fileio.c: Include msdos.h after lisp.h.

Juanma Barranquero's avatar
Juanma Barranquero committed
1750 1751 1752 1753 1754 1755
	* msdos.c (IT_ring_bell, IT_write_glyphs, IT_clear_end_of_line)
	(IT_clear_screen, IT_clear_to_end, IT_clear_to_end, IT_cursor_to)
	(IT_cmgoto, IT_reassert_line_highlight, IT_change_line_highlight)
	(IT_update_begin, IT_update_end, IT_set_terminal_modes)
	(IT_reset_terminal_modes, IT_set_terminal_window)
	(pixel_to_glyph_coords, IT_menu_display): Bring definitions in
Dave Love's avatar
#  
Dave Love committed
1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767
	accordance with prototype declarations.

	* msdos.h [!HAVE_X_WINDOWS]: Add a dummy typedef for XRectangle
	and prototypes for external functions.

1998-04-26  Richard Stallman  <rms@psilocin.gnu.org>

	* fns.c (Fcompare_strings): Doc fix.

	* minibuf.c (minibuf_conform_representation): New function.
	(Ftry_completion): Use it to return multibyte string
	if and only if the completion table has a multibyte string.
1768
	(Fdisplay_completion_list):
Dave Love's avatar
#  
Dave Love committed
1769 1770 1771 1772 1773 1774 1775 1776 1777 1778
	Convert string to unibyte before displaying it, if default is unibyte.

	* eval.c (find_handler_clause): Cast Fbacktrace to proper type.

	* data.c (Fmakunbound): Test keywordness only in initial obarray.

1998-04-26  Erik Naggum  <erik@naggum.no>

	* emacs.c (standard_args): Apply --unibyte/multibyte after --nw.

Juanma Barranquero's avatar
Juanma Barranquero committed
1779
	* lisp.h: Include initial_obarray from lread.c.
Dave Love's avatar
#  
Dave Love committed
1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853

	* data.c (set_internal): Test keywordness only in initial obarray.

	* lread.c (Fintern): Initialize keywords only in initial obarray.

1998-04-25  Richard Stallman  <rms@psilocin.gnu.org>

	* sysdep.c (croak): Add forward declaration.

	* xfns.c (x_set_foreground_color, x_set_background_color)
	(x_set_mouse_color, x_set_cursor_color): Don't call unload_color
	if same pixel is used in another slot in the frame.

	* xterm.c (x_display_cursor): Use FRAME_CURSOR_X_LIMIT.

	* dispnew.c (change_frame_size_1): Use FRAME_CURSOR_X_LIMIT.
	(update_frame): Likewise.

	* frame.h (FRAME_CURSOR_X_LIMIT): New macro.

1998-04-25  Erik Naggum  <erik@naggum.no>

	* lread.c (Fread_from_string): Initialize startval and endval.

1998-04-24  Richard Stallman  <rms@psilocin.gnu.org>

	* lread.c (read1): Allow multibyte and unibyte together
	in one string.

	* xdisp.c (Qinhibit_point_motion_hooks): New variable.
	(syms_of_xdisp): Init and staticpro it.
	(redisplay_window): Bind the symbol to t.

1998-04-24  Geoff Voelker  <voelker@cs.washington.edu>

	* w32.c (sys_socket): Make sockets non-inheritable.

1998-04-23  Andrew Innes  <andrewi@harlequin.co.uk>

	* coding.c (shrink_decoding_region): Do not consider LF as ascii
	if preceded by CR, since that confuses eol decoding.
	(code_convert_region): When conversion fails with
	CODING_FINISH_INSUFFICIENT_SRC, was overwriting src with garbage
	from dst instead of copying from src to dst.

	* fileio.c (Fcopy_file): Skip dev/inode check on Windows.

	* lread.c (dir_warning): Don't log a warning if Emacs hasn't
	finished initializing.

	* s/ms-w32.h (utimbuf): New macro.

	* w32.c (fstat, utime): New functions; these are provided in
	conjunction with stat to make handling of file timestamps
	consistent.
	(convert_from_time_t): Fix calculation of low-order bits.
	(sys_unlink): Allow read-only files to be unlinked as on Unix.

	* w32fns.c (x_set_vertical_scroll_bars): Put scroll bars on the
	right, as is conventional on MS-Windows.
	(w32_wnd_proc): Add code to draw popup menu titles.
	Ensure mouse capture is released before running popup menu.

	* w32term.c (w32_read_socket): Don't misinterpret WM_PAINT message
	as an expose event if the repaint region is actually empty.  Also
	use the standard menubar_selection_callback routine.

	* w32menu.c: Replace code with a new version written from scratch
	based on xmenu.c; menu construction is now completely lazy.

	* w32proc.c (sys_kill): Fix indenting.

1998-04-23  Inge Frick  <inge@nada.kth.se>

Juanma Barranquero's avatar
Juanma Barranquero committed
1854
	* keyboard.c (parse_menu_item): Support keywords :keys and
Dave Love's avatar
#  
Dave Love committed
1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881
	:key-sequence.  Some changes to provide GC-protection. Some
	cosmetic changes.
	(syms_of_keyboard): Define new symbols `:keys' and `:key-sequence'.

1998-04-23  Richard Stallman  <rms@psilocin.gnu.org>

	* Makefile.in (emacs.o): Depend on buffer.h.

	* charset.c (syms_of_charset): Doc fix for nonascii-insert-offset.

	* editfns.c (Fbuffer_substring): Doc fix.
	(Finsert_and_inherit_before_markers): Doc fix.
	(Finsert_and_inherit, Finsert_before_markers, Finsert): Doc fixes.

	* fns.c (Fstring_make_multibyte): Doc fix.
	(Fstring_make_unibyte): Doc fix.

1998-04-22  Richard Stallman  <rms@psilocin.gnu.org>

	* charset.c (Funibyte_char_to_multibyte): Doc fix.

	* xfns.c (x_set_foreground_color): Call unload_color on the old color.
	(x_set_background_color, x_set_mouse_color): Likewise.
	(x_set_cursor_color, x_set_border_pixel): Likewise.

	* xfaces.c (unload_color): No longer static.

1882
	* insdel.c (insert_from_string, insert_from_string_before_markers):
Dave Love's avatar
#  
Dave Love committed
1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894
	Don't special case LENGTH = 0.
	(insert_from_buffer): Likewise.

1998-04-22  Erik Naggum  <erik@naggum.no>

	* filelock.c (get_boot_time): Remove extraneous semicolon.

	* lisp.h: Remove extraneous semicolon.

1998-04-22  Eli Zaretskii  <eliz@delysid.gnu.org>

	* w16select.c (Fwin16_set_clipboard_data): Call UNBLOCK_INPUT
1895
	before calling sit_for.
Juanma Barranquero's avatar
Juanma Barranquero committed
1896
	(Fwin16_get_clipboard_data, Fwin16_set_clipboard_data): Balance
Dave Love's avatar
#  
Dave Love committed
1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911
	the calls to BLOCK_INPUT and UNBLOCK_INPUT.
	(alloc_xfer_buf): If want_size is more than 1MB, return
	immediately with failure.
	(Fw16_set_clipboard_data, Fw16_get_clipboard_data): Replace win16
	with w16.

1998-04-21  Richard Stallman  <rms@psilocin.gnu.org>

	* eval.c (Fsignal): Unconditionally do TOTALLY_UNBLOCK_INPUT.

	* dispnew.c (update_frame): Move echo area cursor into range.

1998-04-21  Eli Zaretskii  <eliz@delysid.gnu.org>

	* callproc.c (Fcall_process) [MSDOS]: Call child_setup instead of
1912
	run_msdos_command.
Dave Love's avatar
#  
Dave Love committed
1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940
	(child_setup) [MSDOS]: Call run_msdos_command here.
	(child_setup) [DOS_NT]: Get past drive letter in pwd.  Don't call
	close_load_descs, since we are not in a vfork.

	* msdos.c (run_msdos_command): Don't construct process
	environment, it's already done in child_setup.
	(run_msdos_command): Add ENVV to argument list.

1998-04-20  Richard Stallman  <rms@psilocin.gnu.org>

	* emacs.c (main): Move the --unibyte code below
	the most basic initializations.
	Clear out *Messages* at that point.

	* lread.c (read_from_string_index_byte): New variable.
	(read_from_string_index): Now counts characters.
	(readchar, unreadchar, Fread_from_string): Changed accordingly.

	* lread.c (readchar): Read a multibyte char all at once
	from a buffer, marker or string.
	(unreadchar): Unread a multibyte char all at once.
	(read1): Properly handle non-escaped multibyte chars.
	They force a string to be multibyte.
	When reading direct from a file, any multibyte sequence means
	a multibyte string.
	Insist on MAX_LENGTH_OF_MULTI_BYTE_FORM bytes when checking
	for read_buffer full; this way need not check specially for multibyte.

Juanma Barranquero's avatar
Juanma Barranquero committed
1941
	* emacs.c: Include buffer.h.
Dave Love's avatar
#  
Dave Love committed
1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957
	(main): When handling --unibyte, mark all existing
	buffers as unibyte; but don't handle it when dumping.

	* alloc.c (Fgarbage_collect): Don't truncate command-history here.

	* callint.c (Fcall_interactively): Truncate command-history here.

	* keyboard.c (Fcommand_execute): Truncate command-history here.

	* lread.c (readevalloop): New arg UNIBYTE.  Callers changed.
	Use it to bind load_convert_to_unibyte.
	(Feval_buffer): New arg UNIBYTE.  Pass it to readevalloop.
	(readevalloop_1): New unwind-protect subroutine.
	(load_convert_to_unibyte): New variable.
	(syms_of_lread): Set up Lisp var.
	(read1): If load_convert_to_unibyte, convert strings to unibyte.
1958

Dave Love's avatar
#  
Dave Love committed
1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979
	* insdel.c (copy_text): Count down bytes_left properly
	in multibyte to unibyte case.

	* fns.c (Fcompare_strings): Require first 6 args.

1998-04-20  Kenichi HANDA  <handa@etl.go.jp>

	* Makefile.in (lisp): Add czech.elc, slovak.elc, and romanian.elc.
	(shortlisp): Likewise.

	* coding.c (setup_coding_system): For a type 4 coding system,
	FLAGS member of coding spec is a cons of CCL program symbols.

	* ccl.c (Fregister_ccl_program): Put ccl-program-idx property to
	NAME.

1998-04-19  Eli Zaretskii  <eliz@delysid.gnu.org>

	* process.h (struct Lisp_Process): Add inherit_coding_system_flag
	member.

Juanma Barranquero's avatar
Juanma Barranquero committed
1980 1981
	* process.c (Fset_process_inherit_coding_system_flag)
	(Fprocess_inherit_coding_system_flag): New functions.
Dave Love's avatar
#  
Dave Love committed
1982 1983 1984 1985 1986 1987
	(syms_of_process): Defsubr them.
	(Fstart_process, Fopen_network_stream): Initialize
	inherit_coding_system_flag.
	(read_process_output): If the process buffer isn't dead, call
	after-insert-file-set-buffer-file-coding-system.

Paul Eggert's avatar
Paul Eggert committed
1988
1998-04-18  Hrvoje Nikšić  <hniksic@srce.hr>
Dave Love's avatar
#  
Dave Love committed
1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038

	* fileio.c (Fmake_temp_name): Complete rewrite.

1998-04-18  Richard Stallman  <rms@psilocin.gnu.org>

	* minibuf.c (Ftry_completion): Use Fcompare_strings.
	(Fall_completions, Fminibuffer_complete_word): Likewise.

	* fns.c (Fcompare_strings): New function.
	(syms_of_fns): defsubr it.

	* xselect.c (Fx_get_cut_buffer_internal):
	If FORMAT is 0, cut buffer is empty.

	* emacs.c (main): --unibyte affects minibuffer too.

1998-04-17  Richard Stallman  <rms@psilocin.gnu.org>

	* emacs.c (syms_of_emacs): Fix patching error in previous change.

	* lread.c (read1): Compute NaN and infinities using 0.0 in a
	variable, to cope with compilers that think they are smarter than us.

	* lread.c (readchar): Find the previous byte's address properly
	for the buffer case, as for the marker case.

1998-04-17  Geoff Voelker  <voelker@cs.washington.edu>

	* emacs.c (Vpath_separator): New variable.
	(syms_of_emacs): Define Vpath_separator using SEPCHAR.

	* lastfile.c (_my_endbss, my_endbss_static): New variables.

	* term.c (reset_terminal_modes): Only invoke hook if defined.

	* makefile.nt (LINK_TYPE): Do not include debug info in optimized
	binary.
	(LIBS): Include mpr.lib.
	(clean): Delete patch generated files, optimized build directory.

	* s/ms-w32.h (HAVE_STRING_H, HAVE_STRFTIME): Define macros.
	(SYSTEM_PURESIZE_EXTRA): Increase to handle more dumped lisp files.

	* unexw32.c (my_begbss_static, my_endbss_static): Declare.
	(get_bss_info_from_map_file): Only define if SEPARATE_BSS_SECTION.
	(get_section_info): Use my_begbss_static, my_endbss_static to
	determine bounds of bss.
	(w32_fatal_reload_error): New function.
	(read_in_bss, map_in_heap): Invoke w32_fatal_reload_error upon error.

Juanma Barranquero's avatar
Juanma Barranquero committed
2039
	* w32.c (sys_read): Clear carriage return flag.
Dave Love's avatar
#  
Dave Love committed
2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062
	Report normal EOF when read fails if nothing in buffer.
	Only read more if more remaining.
	(check_windows_init_file): New function.
	(term_ntproc): Invoke check_windows_init_file.

	* w32.h (FILE_SEND_SIGCHLD): New macro.

	* w32faces.c (Qforeground_color, Qbackground_color): Declare.
	(compute_char_face, merge_face_list): Update from xterm.c.

	* w32fns.c (w32_msg_pump): Handle WM_EMACS_SETLOCALE.
	(w32_wnd_proc): Handle WM_EMACS_SETFOREGROUND.

	* w32heap.c (recreate_heap): Invoke w32_fatal_reload_error upon error.
	* w32heap.h (w32_fatal_reload_error): Declare.

	* w32inevt.c (Vw32_recognize_altgr): Declare.
	(w32_kbd_mods_to_emacs): Obey Vw32_recognize_altgr.
	Add more keys for Vw32_capslock_is_shiftlock.
	(w32_kbd_patch_key): Obey Vw32_recognize_altgr.
	(map_virt_key): Brazilian keyboards use 0xc1 for /(?) key.

	* w32menu.c (Vmenu_updating_frame): New variable.
2063
	(Fx_popup_menu, set_frame_menubar): Record frame whose menu is
Dave Love's avatar
#  
Dave Love committed
2064 2065 2066 2067 2068 2069 2070 2071 2072
	being updated.
	(syms_of_w32menu): Define Vmenu_updating_frame.

	* w32proc.c (w32_executable_type): Properly cast dos_header when
	making size comparison.
	(sys_spawnve): Update comments.
	(sys_select): Ignore children dead children with pending input.
	Delay sending SIGCHLD until all output has been read.
	(sys_kill): Sleep to allow focus change events to propagate.
2073
	Use TerminateProcess on Windows 95.
Dave Love's avatar
#  
Dave Love committed
2074 2075 2076 2077 2078 2079 2080 2081 2082
	(int_from_hex, enum_locale_fn, Fw32_get_valid_locale_ids):
	New functions.
	(Vw32_valid_locale_ids): New variable.
	(Fw32_set_current_locale): Send message to input thread.
	(syms_of_ntproc): defsubr Sw32_get_valid_locale_ids.

	* w32term.c (Vw32_recognize_altgr): New variable.
	(dumpglyphs): Update from xterm.c.
	(w32_ring_bell): Flash window, don't just reset its state.
2083
	(dumprectangle, show_mouse_face, x_draw_single_glyph): Use new
Dave Love's avatar
#  
Dave Love committed
2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176
	args to dumpglyphs.
	(my_set_foreground_window): New function.
	(w32_condemn_scroll_bars): Mark all as condemned scroll bars.
	(w32_redeem_scroll_bar): Look through all scroll bars.
	(w32_judge_scroll_bars): Don't clear out condemned list.
	(w32_read_socket): Clip window after frame has been restored.
	(x_focus_on_frame, x_raise_frame): Use my_set_foreground_window.
	(syms_of_w32term): Define Vw32_recognize_altgr.

	* w32term.h (WM_EMACS_SETFOREGROUND, WM_EMACS_SETLOCALE):
	New message macros.

1998-04-16  Richard Stallman  <rms@psilocin.gnu.org>

	* callproc.c (Fcall_process_region): Unbind coding-system-for-write
	after calling Fwrite_region.

	* eval.c (Fcatch): Doc fix.

	* mocklisp.c (Fml_if): Initialize val.

1998-04-16  Erik Naggum  <erik@naggum.no>

	* emacs.c (main): Fix typo, add --multibyte and --no-multibyte.
	(standard_args): Add --multibyte and --no-multibyte.

1998-04-16  Richard Stallman  <rms@psilocin.gnu.org>

	* fns.c (time): Declare it only if not HAVE_UNISTD_H.

	* emacs.c (standard_args): Add --no-unibyte.
	(main): Recognize --no-unibyte to inhibit EMACS_UNIBYTE.

	* fns.c (Frequire): Doc fix.

	* fileio.c (file_name_as_directory): For empty arg, return `./'.

1998-04-16  Eli Zaretskii  <eliz@gnu.org>

	* msdos.c (it_keyboard): New variable, supports Italian keyboard.
	(keyboard_layout_list): Add Italian keyboard.

1998-04-15  Ken'ichi Handa  <handa@melange.gnu.org>

	* coding.c (code_convert_region): If point in the conversion
	region, move it to FROM in advance.

1998-04-15  Eli Zaretskii  <eliz@delysid.gnu.org>

	* callproc.c (Fcall_process): Call
	after-insert-file-set-buffer-file-coding-system if
	inherit-process-coding-system is non-nil.

	* coding.c (syms_of_coding): Declare and define
	inherit-process-coding-system.

	* coding.h: Declare inherit-process-coding-system.

	* w32.c (sys_pipe): Use binary pipe I/O unconditionally.

	* callproc.c: Remove binary-process-{in,out}put.
	(syms_of_callproc): Likewise.
	(Fcall_process, Fcall_process_region): Don't use
	binary-process-{in,out}put.

1998-04-15  Andreas Schwab  <schwab@delysid.gnu.org>

	* config.in (RE_TRANSLATE_P): Define.

1998-04-15  Ken'ichi Handa  <handa@melange.gnu.org>

	* ccl.c (Fccl_execute_on_string): Put \n\ at eol of docstring.

	* xfns.c (x_set_font): Give 2nd arg nil to Fquery_fontset.
	(Fx_create_frame): Likewise.

1998-04-15  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c: Typo in comments fixed.
	(Qccl_program_idx, Qunification_table, Qunification_table_id): New
	variables.
	(syms_of_ccl): Initialize and staticpro them.
	(CCL_ReadMultibyteChar2): Macro name changed from
	CCL_ReadMultibyteCharacter.
	(CCL_WriteMultibyteChar2): Macro name changed from
	CCL_WriteMultibyteChar2.
	(MAX_TABLE_SET_LEVEL): New macro.
	(tr_stack): New type.
	(translate_stack, translate_stack_pointer): New variables.
	(PUSH_TRANSLATE_STACK, POP_TRANSLATE_STACK): New macros.
	(ccl_driver): Adjusted for the above changes.
	(resolve_symbol_ccl_program): New function.
	(Fccl_execute): The arg CCL-PROGRAM can be a symbol of CCL
Juanma Barranquero's avatar
Juanma Barranquero committed
2177
	program.  If CCL-PROGRAM is a vector, convert symbols in it to ID
Dave Love's avatar
#  
Dave Love committed
2178 2179
	numbers by resolve_symbol_ccl_program.
	(Fccl_execute_on_string): Likewise.
Juanma Barranquero's avatar
Juanma Barranquero committed
2180
	(Fregister_ccl_program): If the arg CCL-PROGRAM is a vector,
Dave Love's avatar
#  
Dave Love committed
2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192
	convert symbols in it to ID numbers by resolve_symbol_ccl_program.

	* ccl.h (Vccl_program_table, Qccl_program_idx): Extern them.

	* fontset.c (find_ccl_program_func): New variable.
	(fs_load_font): Call a function pointed by find_ccl_program_func
	instead of finding CCL program to encode a character by itself.
	(Fquery_fontset): New optional 2nd arg REGEXPP.  Callers changed.

	* fontset.h (FONT_ENCODING_NOT_DECIDED): The value is changed to 255.
	(find_ccl_program_func): Extern it.
	(Fquery_fontset): Args number changed to 2.
2193

Dave Love's avatar
#  
Dave Love committed
2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217
	* xfns.c (syms_of_xfns): Initialize find_ccl_program_func.

	* xterm.c (x_find_ccl_program): New function.

	* xterm.h (x_find_ccl_program): Extern it.

1998-04-14  Dave Love  <fx@gnu.org>

	* keymap.c: Revert erroneous 1998-04-07 change.

1998-04-14  Karl Heuer  <kwzh@gnu.org>

	* xfns.c (x_destroy_bitmap): Declare as void, not int.
	(x_report_frame_params, x_set_border_pixel): Likewise.
	(x_set_internal_border_width): widget_store_internal_border takes
	just one arg, not two.

1998-04-14  Andreas Schwab  <schwab@delysid.gnu.org>

	* xdisp.c (try_window): Fix mixing of Lisp_Object and int.

	* window.c (Fset_window_configuration): Fix mixing of Lisp_Object
	and int.

Juanma Barranquero's avatar
Juanma Barranquero committed
2218
	* sysdep.c (init_sys_modes): Fix mixing of Lisp_Object and int.
Dave Love's avatar
#  
Dave Love committed
2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240

	* search.c (compile_pattern, compile_pattern_1): Fix mixing of
	Lisp_Object and int.

	* process.c (read_process_output): Fix mixing of Lisp_Object and
	int.

	* minibuf.c (Fself_insert_and_exit): Fix mixing of Lisp_Object and
	int.

	* marker.c (set_marker_both): Remove bogus checks on charpos.

	* keyboard.c (parse_menu_item): Don't GCPRO non-lisp variables.

	* insdel.c (signal_after_change): Fix mixing of Lisp_Object and
	int.

	* indent.c (indented_beyond_p): Fix mixing of Lisp_Object and int.

	* frame.c (Fset_mouse_position, Fset_mouse_pixel_position): Fix
	mixing of Lisp_Object and int.

Juanma Barranquero's avatar
Juanma Barranquero committed
2241 2242
	* fns.c (Fsubstring, substring_both, Fchar_table_range)
	(Fset_char_table_range): Fix mixing of Lisp_Object and int.
Dave Love's avatar
#  
Dave Love committed
2243 2244 2245 2246

	* fileio.c (Fwrite_region): Fix mixing of Lisp_Object and int.

	* editfns.c (Fchar_after, Fchar_before): Fix mixing of Lisp_Object
Juanma Barranquero's avatar
Juanma Barranquero committed
2247
	and int.
Dave Love's avatar
#  
Dave Love committed
2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259

	* coding.c (code_convert_region): Fix mixing of Lisp_Object and
	int.

	* charset.c (Fchars_in_region): Fix mixing of Lisp_Object and int.

	* ccl.c (ccl_driver, syms_of_ccl): Fix mixing of Lisp_Object and
	int.

	* cm.h: Update return types of declarations.

	* xterm.h, puresize.h, termhooks.h, lisp.h, keyboard.h,
Juanma Barranquero's avatar
Juanma Barranquero committed
2260 2261
	* intervals.h, dispextern.h, blockinput.h, coding.h:
	Add more prototypes.
Dave Love's avatar
#  
Dave Love committed
2262 2263

	* xterm.c, xselect.c, xrdb.c, xmenu.c, xdisp.c, window.c,
Juanma Barranquero's avatar
Juanma Barranquero committed
2264 2265 2266 2267 2268 2269 2270 2271
	* widget.c, undo.c, terminfo.c, term.c, sysdep.c, syntax.c,
	* search.c, scroll.c, process.c, print.c, mocklisp.c, prefix-args.c,
	* marker.c, keymap.c, keyboard.c, intervals.c, insdel.c, indent.c,
	* frame.c, fontset.c, fns.c, floatfns.c, filelock.c, fileio.c,
	* eval.c, emacs.c, editfns.c, doprnt.c, doc.c, dispnew.c, dired.c,
	* data.c, coding.c, cmds.c, cm.c, charset.c, ccl.c, category.c,
	* casetab.c, casefiddle.c, callproc.c, callint.c, bytecode.c,
	* buffer.c, alloc.c, abbrev.c: Fix -Wimplicit warnings.
Dave Love's avatar
#  
Dave Love committed
2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292

	* buffer.c (Fset_buffer_multibyte): Do nothing if nothing actually
	changes.

	* coding.c (code_convert_region): Call adjust_after_insert also
	in unibyte mode.

	* fileio.c (Finsert_file_contents): Call adjust_after_insert also
	in unibyte mode.

1998-04-13  Ken'ichi Handa  <handa@melange.gnu.org>

	* coding.c (code_convert_string): Give decode_coding correct byte
	length of source text.

1998-04-13  Richard Stallman  <rms@gnu.org>

	* print.c (strout): Convert old echo area to multibyte, like printchar.
	(printchar, strout): If echo area text converted to multibyte
	does not all fit, truncate it at char boundary.

2293
	* marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
Dave Love's avatar
#  
Dave Love committed
2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366
	When calling set_marker_both, pass the right buffer.

	* indent.c (Fcompute_motion): Check that TO and FROM are in range.

1998-04-13  Eli Zaretskii  <eliz@delysid.gnu.org>

	* msdos.c (dosv_refresh_virtual_screen): Do not use negative
	arguments.
	(dos_direct_output): Fix the offset passed to
	dosv_refresh_virtual_screen.
	(IT_display_cursor): Don't call dosv_refresh_virtual_screen.
	(IT_reset_terminal_modes): Don't call dosv_refresh_virtual_screen
	when setting cursor.

1998-04-12  Richard Stallman  <rms@gnu.org>

	* print.c (temp_output_buffer_setup): Clear out overlays,
	visited file, undo list, etc.

	* syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): FROM counts chars.
	(SYNTAX_TABLE_BYTE_TO_CHAR): Handle the offset properly
	both before and after conversion.

	* syntax.h (UPDATE_SYNTAX_TABLE_FORWARD): Arg renamed to charpos.
	(UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE): Likewise.

	* xdisp.c (display_text_line): When handling selective > 0,
	update pos and pos_byte with results of calling scan_newline.

	* data.c (set_internal, Fmakunbound): Fix previous change.

1998-04-12  Hallvard B Furuseth  <h.b.furuseth@usit.uio.no>

	* print.c (print) <Lisp_String>: Fix "\ " handling.

1998-04-11  Richard Stallman  <rms@gnu.org>

	* s/netbsd.h (LINKER): Add definition.
	(LD_SWITCH_SYSTEM): Undo previous change.

	* data.c (set_internal, Fmakunbound): No error if setting
	a keyword to itself.

1998-04-09  Karl Heuer  <kwzh@gnu.org>

	* marker.c (Fbuffer_has_markers_at): Fix termination condition.

	* search.c (min, max): Make these macros, not functions.
	(scan_buffer, boyer_moore): Simplify args to those macros.
	* unexw32.c (min, max): Define as macros.
	* w32.c (min, max): Define as macros.
	* w32term.c (min, max): Define as macros.
	* callproc.c (relocate_fd): Avoid `min'/`max' as variable names.
	* print.c (print): Likewise.
	* dispnew.c (minmax): New macro.
	(update_frame): Use it.

	* w32proc.c: Delete incorrect prototype of report_file_error.
	* w32.c (unrequest_sigio, request_sigio): Fix prototype.

	* w32menu.c (set_frame_menubar): Call Fset_match_data, not
	Fstore_match_data.

	* emacs.c (abort): Don't redefine on DOS_NT.

1998-04-09  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (string_to_non_ascii_char): Include garbage bytes (if
	any) following a multibyte character in *ACTUAL_LEN.
	(Fcharset_after): New function.
	(syms_of_charset): Defsubr it.
	(multibyte_form_length): Modified to be consistent with
	string_to_non_ascii_char.
2367

Dave Love's avatar
#  
Dave Love committed
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476
	* charset.h (MULTIBYTE_FORM_LENGTH): Don't check LEN here.

	* xdisp.c (display_text_line): Code for displaying a character by
	octal form is modified.

1998-04-08  Richard Stallman  <rms@gnu.org>

	* data.c (keyword_symbols_constant_flag): New variable.
	(syms_of_data): Set up Lisp variable.
	(set_internal): Obey it and give error for :-symbols.
	(Fmakunbound): Likewise.

1998-04-08  Eli Zaretskii  <eliz@delysid.gnu.org>

	* dosfns.c (init_dosfns): Fix bug in passing segment address of
	the transfer buffer.

1998-04-08  Karl Heuer  <kwzh@gnu.org>

	* keymap.c (fix_submap_inheritance): Fix parens.

1998-04-07  Richard Stallman  <rms@gnu.org>

	* fileio.c (Fmake_temp_name): Detect error return from mktemp.

1998-04-07  Eli Zaretskii  <eliz@is.elta.co.il>

	* charset.c (string_to_non_ascii_char, multibyte_form_length)
	(split_non_ascii_string, str_cmpchar_id): Make the STR argument
	const unsigned char *.
	* charset.h: Update prototypes for the above.

	* filelock.c: Include <utmp.h> only if CLASH_DETECTION is
	defined.

	* process.c (kill_buffer_processes): Make consistent with
	prototype in lisp.h.

	* msdos.c (request_sigio, unrequest_sigio): Make consistent with
	prototypes in lisp.h.

	* charset.h (CHAR_STRING): Cast to unsigned char ** explicitly.

	* w16select.c (Fwin16_set_clipboard_data): Call message2 with 3
	arguments.

	* emacs.c (abort): Don't redefine on MSDOS.

1998-04-07  Dave Love  <fx@gnu.org>

	* keymap.c (describe_command): Use quotes around symbol name.

	* emacs.c (main): Obey environment variable EMACS_UNIBYTE as
	alternative to --unibyte.

1998-04-06  Jonathan I. Kamens  <jik@kamens.brookline.ma.us>

	* config.in (GSSAPI, HAVE_LIBGSSAPI_KRB5, HAVE_LIBGSSAPI)
	(HAVE_GSSAPI_H): Add undefs for GSS-API support in movemail.

1998-04-06  Richard Stallman  <rms@gnu.org>

	* dired.c (Fdirectory_files): Use make_uninit_multibyte_string.
	Use STRING_BYTES on encoded_directory.

1998-04-06  Andreas Schwab  <schwab@gnu.org>

	* fns.c (Flength): Doc fix.

	* unexelf.c (unexec): Account for possible padding before the old
	.bss section.

	* editfns.c (Ftranspose_regions): Fix order of parameters for
	replace_range.

	* dired.c (Fdirectory_files): GCPRO encoded_directory and list.
	Compute needsep only once.  Pass correct arg to chars_in_text.

	* alloc.c (gc_sweep): Avoid using two loop variables counting the
	same thing.

1998-04-06  Ken'ichi Handa  <handa@delysid.gnu.org>

	* fns.c (Fstring_as_unibyte): Set size_byte field to -1.

1998-04-05  Eli Zaretskii  <eliz@is.elta.co.il>

	* config.in: Don't include <string.h> when configuring.

1998-04-04  Richard Stallman  <rms@psilocin.gnu.org>

	* s/netbsd.h (LD_SWITCH_SYSTEM): Add -L/usr/lib.

1998-04-03  enami tsugutomo  <enami@but-b.or.jp>

	* editfns.c (Fmessage_box): Pass the missing third argument
	STRING_MULTIBYTE (val) to message2.

	* frame.c (make_frame_without_minibuffer): Conditionalize on
	HAVE_WINDOW_SYSTEM.
	(make_minibuffer_frame): Likewise.
	* frame.h: Ditto.

1998-04-03  Richard Stallman  <rms@psilocin.gnu.org>

	* intervals.c (set_intervals_multibyte):
	Function moved after set_intervals_multibyte_1.

	* xdisp.c (redisplay_window): If updating mode line,
Juanma Barranquero's avatar
Juanma Barranquero committed
2477
	temporarily change selected_frame.
Dave Love's avatar
#  
Dave Love committed
2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546

1998-04-02  Dave Love  <fx@gnu.org>

	* emacs.c (main): Add [--unibyte] to usage.

1998-04-02  Richard Stallman  <rms@psilocin.gnu.org>

	* print.c (print) <Lisp_String>: Follow a hex escape with `\ ' if nec.

	* data.c (Fmake_variable_frame_local): Doc fix.

	* fns.c (Fstring_as_multibyte): Never return unibyte string unchanged.

1998-04-02  NIIBE Yutaka  <gniibe@mri.co.jp>

	* fns.c (Fstring_as_multibyte): Set size_byte field.

1998-04-02  Richard Stallman  <rms@psilocin.gnu.org>

	* fns.c (char_table_translate): New function.
	* config.in (RE_TRANSLATE): Use char_table_translate.

1998-04-02  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (CHARSET_OK): Don't reject safe charsets.
	(DECODE_DESIGNATION): Likewise.
	(check_composing_code): Likewise.

	* marker.c (buf_charpos_to_bytepos): Delete local variable
	gapend_byte.

	* xselect.c (selection_data_to_lisp_data): Give
	make_string_from_bytes a correct char size.

1998-04-01  Richard Stallman  <rms@psilocin.gnu.org>

	* xdisp.c (redisplay_window): Fix computing pos from last_point.

1998-03-30  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (code_convert_region): Handle skipped ASCII characters
	at the head and tail of conversion region correctly when adjusting
	position keepers.  Call adjust_after_insert to record undo info
	and adjust markers when we don't have to change byte sequence of
	a buffer.

	* coding.h (struct coding_system): Comment for the member
	heading_ascii modified.

	* fileio.c (Finsert_file_contents): Call adjust_after_insert when
	a text is inserted in a multibyte buffer without any code
	conversion.

	* insdel.c (adjust_markers_for_replace): New function.
	(adjust_after_replace): Arguments changed.  Call
	adjust_markers_for_replace if this function is called after
	replacement.
	(adjust_after_insert): New function.

	* lisp.h (adjust_after_replace, adjust_after_insert): Extern them.

1998-03-28  Richard Stallman  <rms@psilocin.gnu.org>

	* xdisp.c (display_text_line): Handle overlay-arrow correctly.

1998-03-28  Richard Stallman  <rms@psilocin.gnu.org>

	* fileio.c (barf_or_query_if_file_exists): New arg QUICK.
	All calls changed.
2547

Dave Love's avatar
#  
Dave Love committed
2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567
1998-03-27  Richard Stallman  <rms@psilocin.gnu.org>

	* insdel.c (check_markers_debug_flag): New variable.
	(syms_of_insdel): Set up Lisp var.
	(CHECK_MARKERS): New macro.  Use it everywhere
	instead of calling check_markers directly.
	It tests check_markers_debug_flag.

1998-03-26  Richard Stallman  <rms@psilocin.gnu.org>

	* alloc.c (mark_buffer): Mark the undo_list slot specially;
	don't mark a marker just cause it is in this list.
	(Fgarbage_collect): Discard from all undo-lists
	all elements that adjust markers that were not marked.

	* buffer.h (struct buffer): Field `undo_list' moved before `name'
	so it won't get marked in the usual way.

	* coding.c (code_convert_region): Call adjust_before_replace
	in the no-conversion case.  Adjust GPT, ZV and Z in chars.
2568

Dave Love's avatar
#  
Dave Love committed
2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624
1998-03-25  Richard Stallman  <rms@psilocin.gnu.org>

	* lread.c (init_lread): Init Vstandard_input.

1998-03-25  Ken'ichi Handa  <handa@melange.gnu.org>

	* xdisp.c (redisplay_window): Fix previous change.

1998-03-25  Kenichi Handa  <handa@etl.go.jp>

	* indent.c (compute_motion): Call strwidth only when necessary.
	Set wide_column_end_hpos only when MULTIBYTE_BYTES_WIDTH set
	nonzero to wide_column.

	* xdisp.c (redisplay_window): Give byte position to FETCH_BYTE.
	Call pos_tab_offset appropriately.
	(try_window_id): Give byte position to FETCH_BYTE.  Set
	val.bytepos to pos_byte.

	* lisp.h (make_buffer_string, make_buffer_string_both): Extern
	them.

	* process.c (read_process_output): Count multibyte characters.  If
	received data is stored in p->decoding_buf, copy it to a temporary
	buffer and call insert_before_makers instead of
	insert_from_string_before_markers.

1998-03-24  Ken'ichi Handa  <handa@melange.gnu.org>

	* lisp.h (record_delete): The second arg is Lisp_Object.

1998-03-24  Kenichi Handa  <handa@etl.go.jp>

	* indent.c (MULTIBYTE_BYTES_WIDTH): Set wide_column only when we
	encounter a wide-column character.

	* undo.c (record_delete): Record last_point_position when there's
	no record other than marker adjustment before undo boundary.

	* insdel.c (del_range_2): Move gap again to a proper place just
	after calling make_buffer_string_both.

	* coding.c (shrink_decoding_region): If EOL_CONVERSION is nonzero,
	don't skip `\r' (instead of `\n').

1998-03-23  Andreas Schwab  <schwab@gnu.org>

	* xmenu.c (popup_get_selection): On receiving a KeyPress event
	only deactivate the menu when the key is not a modifier key.

	* xfns.c (Fx_create_frame): Use "borderWidth", not "borderwidth",
	as resource name, to be consistent with other X applications.

1998-03-21  Richard Stallman  <rms@delysid.gnu.org>

	* dired.c (Fdirectory_files):
Juanma Barranquero's avatar
Juanma Barranquero committed
2625
	In FULL case, compute number of characters.
Dave Love's avatar
#  
Dave Love committed
2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669

	* fns.c (substring_both, Fsubstring): Use make_specified_string.
	(concat): Make string result unibyte or multibyte as appropriate.

	* sunfns.c (syms_of_sunfns): Pass new arg to make_pure_string.

	* alloc.c (make_specified_string): New function.
	(make_string_from_bytes): New function.
	(compact_strings): Get byte size from size, if size_byte < 0.
	(Fmake_string): Use make_uninit_string for single-byte char.
	(make_unibyte_string): Mark string as unibyte.
	(make_uninit_string): Likewise.
	(make_string): Likewise, if size == size in bytes.
	(make_pure_string): New arg MULTIBYTE.
	(Fpurecopy): Pass new arg to make_pure_string.

	* editfns.c (Fchar_to_string): Use make_string_from_bytes.
	(Fformat): Use make_specified_string.
	(make_buffer_string_both): Use make_uninit_string if buffer is unibyte.

	* casefiddle.c (casify_object): Use make_specified_string.

	* charset.c (Fstring): Use make_string_from_bytes.
	(Fcompose_string): Likewise.

	* cmds.c (internal_self_insert): Use make_string_from_bytes.

	* coding.c (code_convert_string): Use make_string_from_bytes.

	* doc.c (Fsubstitute_command_keys): Use make_string_from_bytes.

	* lread.c (read1): Pass new arg to make_pure_string.
	(make_symbol): Likewise.
	(init_obarray): Likewise.
	(read1): Use make_specified_string.

	* print.c (PRINTPREPARE): Use make_string_from_bytes.

	* process.c (read_process_output): Use make_string_from_bytes.

	* search.c (Fregexp_quote): Use make_specified_string.

	* xselect.c (selection_data_to_lisp_data): Use make_string_from_bytes.

Juanma Barranquero's avatar
Juanma Barranquero committed
2670
	* insdel.c (insert_from_string_1, replace_range):
Dave Love's avatar
#  
Dave Love committed
2671 2672 2673 2674 2675 2676 2677
	Use STRING_MULTIBYTE to determine whether string is multibyte.

	* editfns.c: Use STRING_BYTES and SET_STRING_BYTES.

	(Ftranspose_regions): Try to handle combining bytes.

	* alloc.c, xterm.c, xselect.c, xmenu.c, xfns.c, xdisp.c, search.c,
Juanma Barranquero's avatar
Juanma Barranquero committed
2678 2679 2680 2681 2682
	* process.c, print.c, lread.c, keymap.c, insdel.c, keyboard.c,
	* frame.c, fns.c, filelock.c, doc.c, dispnew.c, data.c, coding.c,
	* charset.c, ccl.c, category.c, casefiddle.c, callproc.c, callint.c,
	* bytecode.c, abbrev.c, minibuf.c, buffer.c, fileio.c:
	Use STRING_BYTES and SET_STRING_BYTES.
Dave Love's avatar
#  
Dave Love committed
2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713

	* xmenu.c: Don't include puresize.h any more as code that needs it
	has moved to keyboard.c.
	(menu_item_equiv_key, menu_item_enabled_p_1, menu_item_enabled_p):
	Functions deleted; code moved to parse_menu_item in keyboard.c.
	(single_keymap_panes): Large part of code moved to single_menu_item.
	(single_menu_item): New function that uses parse_menu_item.
	(Qmenu_alias): Variable deleted.
	(QCtoggle, QCradio): New variables.
	(syms_of_xmenu): Change initializations of variables.

	* keymap.c (fix_submap_inheritance, get_keyelt, store_in_keymap)
	(copy-keymap, where_is_internal_1):
	Support new format for menu items.
	(syms_of_keymap): New symbol `menu-item'.

	* keyboard.c: Include puresize.h for CHECK_IMPURE.
	(parse_menu_item): New function.
	(menu_item_eval_property_1, menu_item_eval_property) New suroutines.
	(menu_bar_one_keymap): Moved some code to menu_bar_item.
	(menu_bar_item): Rewritten to use parse_menu_item.
	(menu_bar_item_1): Function deleted.
	(QCenable, QCvisible, QChelp, QCfilter, QCbutton, QCtoggle, QCradio):
	(Qmenu_alias): New variables.
	(syms_of_keyboard): Initialize them, and item_properties.

	* insdel.c (replace_range): New arg NOMARKERS.

1998-03-21  Richard Stallman  <rms@psilocin.gnu.org>

	* dired.c (Fdirectory_files): In FULL case,
Juanma Barranquero's avatar
Juanma Barranquero committed
2714
	compute number of characters.
Dave Love's avatar
#  
Dave Love committed
2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732

	* insdel.c (insert_from_string_1, replace_range):
	Use STRING_MULTIBYTE to determine whether string is multibyte.

	* lisp.h: Declarations changed.
	(STRING_MULTIBYTE, STRING_BYTES, SET_STRING_BYTES):
	New definitions treating negative size_byte as a flag for unibyte.

	* xselect.c (selection_data_to_lisp_data): Use make_string_from_bytes.

	* search.c (Fregexp_quote): Use make_specified_string.

	* process.c (read_process_output): Use make_string_from_bytes.

	* print.c (PRINTPREPARE): Use make_string_from_bytes.

	* fns.c (substring_both, Fsubstring): Use make_specified_string.
	(concat): Make string result unibyte or multibyte as appropriate.
2733

Dave Love's avatar
#  
Dave Love committed
2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747
	* doc.c (Fsubstitute_command_keys): Use make_string_from_bytes.

	* coding.c (code_convert_string): Use make_string_from_bytes.

	* cmds.c (internal_self_insert): Use make_string_from_bytes.

	* charset.c (Fstring): Use make_string_from_bytes.
	(Fcompose_string): Likewise.

	* casefiddle.c (casify_object): Use make_specified_string.

	* editfns.c (Fchar_to_string): Use make_string_from_bytes.
	(Fformat): Use make_specified_string.
	(make_buffer_string_both): Use make_uninit_string if buffer is unibyte.
2748

Dave Love's avatar
#  
Dave Love committed
2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768
	* sunfns.c (syms_of_sunfns): Pass new arg to make_pure_string.

	* lread.c (read1): Pass new arg to make_pure_string.
	(make_symbol): Likewise.
	(init_obarray): Likewise.
	(read1): Use make_specified_string.

	* alloc.c (make_specified_string): New function.
	(make_string_from_bytes): New function.
	(compact_strings): Get byte size from size, if size_byte < 0.
	(Fmake_string): Use make_uninit_string for single-byte char.
	(make_unibyte_string): Mark string as unibyte.
	(make_uninit_string): Likewise.
	(make_string): Likewise, if size == size in bytes.
	(make_pure_string): New arg MULTIBYTE.
	(Fpurecopy): Pass new arg.

	* lisp.h (STRING_BYTES, SET_STRING_BYTES): New macros.

	* All files: Use STRING_BYTES and SET_STRING_BYTES.
2769

Dave Love's avatar
#  
Dave Love committed
2770 2771
	* editfns.c (Ftranspose_regions): Try to handle combining bytes.
	* insdel.c (replace_range): New arg NOMARKERS.
2772

Dave Love's avatar
#  
Dave Love committed
2773 2774 2775
1998-03-20  Richard Stallman  <rms@psilocin.gnu.org>

	* cmds.c (internal_self_insert): Pass new arg to replace_range.
2776

Juanma Barranquero's avatar
Juanma Barranquero committed
2777 2778
	* insdel.c (insert_1_both, insert_from_string_1, insert_from_buffer_1)
	(adjust_before_replace, adjust_after_replace, replace_range)
Dave Love's avatar
#  
Dave Love committed
2779 2780 2781 2782 2783 2784 2785 2786
	(del_range_2): Call record_delete the new way.
	Use make_buffer_string_both to make the string to pass.

	* editfns.c (make_buffer_string_both): New function.
	(make_buffer_string): Use make_buffer_string_both.

	* undo.c (record_delete): Replace LENGTH arg with STRING.
	(record_change): Call record_delete the new way.
2787

Dave Love's avatar
#  
Dave Love committed
2788 2789 2790 2791 2792 2793 2794 2795
	* Makefile.in (keymap.o): Depend on puresize.h.
	(xmenu.o): Don't depend on puresize.h.

1998-03-20  Inge Frick  <inge@nada.kth.se>

	* keyboard.h (item_properties): New variable.
	(ITEM_PROPERTY_...): New macros.

Juanma Barranquero's avatar
Juanma Barranquero committed
2796 2797
	* keymap.c (fix_submap_inheritance, get_keyelt, store_in_keymap)
	(copy-keymap, where_is_internal_1): Support new format for menu items.
Dave Love's avatar
#  
Dave Love committed
2798
	(syms_of_keymap): New symbol `menu-item'.
2799

Dave Love's avatar
#  
Dave Love committed
2800 2801 2802 2803 2804 2805
	* keyboard.c: Include puresize.h for CHECK_IMPURE.
	(parse_menu_item): New function.
	(menu_item_eval_property_1, menu_item_eval_property) New suroutines.
	(menu_bar_one_keymap): Moved some code to menu_bar_item.
	(menu_bar_item): Rewritten to use parse_menu_item.
	(menu_bar_item_1): Function deleted.
Juanma Barranquero's avatar
Juanma Barranquero committed
2806
	(QCenable, QCvisible, QChelp, QCfilter, QCbutton, QCtoggle, QCradio)
Dave Love's avatar
#  
Dave Love committed
2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918
	(Qmenu_alias): New variables.
	(syms_of_keyboard): Initialize them, and item_properties.

	* xmenu.c: Don't include puresize.h any more as code that needs it
	has moved to keyboard.c.
	(menu_item_equiv_key, menu_item_enabled_p_1, menu_item_enabled_p):
	Functions deleted; code moved to parse_menu_item in keyboard.c.
	(single_keymap_panes): Large part of code moved to single_menu_item.
	(single_menu_item): New function that uses parse_menu_item.
	(Qmenu_alias): Variable deleted.
	(QCtoggle, QCradio): New variables.
	(syms_of_xmenu): Change initializations of variables.

1998-03-20  Richard Stallman  <rms@psilocin.gnu.org>

	* window.c (window_display_table): Don't look inside buffer if its nil.

	* insdel.c (del_range_2): Use adjust_markers_for_record_delete.

1998-03-19  Kenichi Handa  <handa@etl.go.jp>

	* editfns.c (Fgoto_char): If POSITION is a marker pointing a
	different buffer, don't rely on the byte position of the marker.

1998-03-19  Richard Stallman  <rms@psilocin.gnu.org>

	* editfns.c (Fformat): Handle padding before or after, for %s etc.
	Treat 0 like a multibyte char in %c.

1998-03-19  Erik Naggum  <erik@naggum.no>

	* filelock.c (get_boot_time): Conditionalize on BOOT_TIME.
	(lock_file_1): Add boot-time to lock only if available.

1998-03-19  Kenichi Handa  <handa@etl.go.jp>

	* fns.c (Fstring_as_multibyte): Call multibyte_chars_in_text
	instead of chars_in_text because we must ignore
	enable-multibyte-characters here.
	* lread.c (read1): Likewise.
	* marker.c (byte_char_debug_check): Likewise.

1998-03-19  Richard Stallman  <rms@psilocin.gnu.org>

	* filelock.c (current_lock_owner): If lock file data doesn't include
	the uptime, assume the lock is from this system boot.

1998-03-18  Richard Stallman  <rms@psilocin.gnu.org>

	* lread.c (read0): Swap args to Fmake_string.

1998-03-17  Richard Stallman  <rms@psilocin.gnu.org>

	* callproc.c (syms_of_callproc): Doc fixes.

	* insdel.c (adjust_markers_for_delete):
	Delete unused local coming_gap_size.
	(adjust_markers_for_record_delete): New function.
	(insert_1_both, insert_from_string_1, insert_from_buffer_1)
	(adjust_after_replace, replace_range):
	Use adjust_markers_for_record_delete.

	* editfns.c (Fsave_excursion): Doc fix.

	* window.c (Frecenter): Operate on window's buffer even
	if some other was current.

	* filelock.c (get_boot_time): New function.
	(lock_file_1): Include boot time in the lock text.
	(current_lock_owner): Parse and compare the boot time.

1998-03-16  Erik Naggum  <erik@naggum.no>

	* editfns.c (Fformat): Properly print floats.

1998-03-16  Kenichi Handa  <handa@etl.go.jp>

	* insdel.c (ADJUST_CHAR_POS): New macro.
	(combine_bytes): Use the macro ADJUST_CHAR_POS.
	(adjust_after_replace): New arg REPLACE.  If it is zero, give LEN
	as the arg LENGTH to offset_intervals.
	(del_range_2): Give correct args to count_combining_before and
	combine_bytes.  Adjust the gap position after record_delete if
	necessary.  Give character position to adjust_overlays_for_delete.

	* fileio.c (Finsert_file_contents):
	Give adjust_after_replace the new arg REPLACE as 0.

	* coding.c (code_convert_region): The 6th arg name is changed to
	REPLACE.  Even if there's no need of code conversion, call
	adjust_after_replace to handle bytes combining.

1998-03-15  Richard Stallman  <rms@psilocin.gnu.org>

	* syntax.h (SYNTAX_FLAGS_COMSTART_FIRST): New macro.
	(SYNTAX_FLAGS_COMSTART_SECOND): Likewise.
	(SYNTAX_FLAGS_COMEND_FIRST, SYNTAX_FLAGS_COMEND_SECOND): Likewise.
	(SYNTAX_FLAGS_PREFIX, SYNTAX_FLAGS_COMMENT_STYLE): Likewise.

	* syntax.c (Fbackward_prefix_chars): Set point properly while scanning.
	(scan_sexps_forward): Make INC_FROM do UPDATE_SYNTAX_TABLE_FORWARD.
	Delete the explicit calls to UPDATE_SYNTAX_TABLE_FORWARD.
	Also set prev_from_syntax (new local var).  Test that in the loop,
	instead of fetching syntax of the previous char.

	* editfns.c (Fchar_after, Fchar_before): Properly check arg type
	and whether in range, for all cases.

1998-03-14  Richard Stallman  <rms@psilocin.gnu.org>

	* process.c (exec_sentinel, read_process_output):
	Fstore_match_data => Fset_match_data.
2919

Dave Love's avatar
#  
Dave Love committed
2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017
	* xmenu.c (set_frame_menubar): Fstore_match_data => Fset_match_data.

	* xdisp.c (message_dolog): Save and restore Vdeactivate_mark.
	(prepare_menu_bars): Fstore_match_data => Fset_match_data.
	(update_menu_bar): Likewise.

1998-03-13  Richard Stallman  <rms@psilocin.gnu.org>

	* search.c (Fset_match_data): Renamed from Fstore_match_data.
	(syms_of_search): Corresponding change.

	* lisp.h: Fstore_match_data => Fset_match_data.

	* window.c (Fwindow_end): New arg UPDATE.

	* window.c (Fset_window_configuration): Don't call do_switch_frame
	or run Qwindow_configuration_change_hook if frame is dead.

	* cmds.c (internal_self_insert): Call Fforward_buffer to advance
	over the replacement characters.

1998-03-12  Richard Stallman  <rms@psilocin.gnu.org>

	* process.c (Fstart_process): Doc fix.

	* s/ptx4.h (SETUP_SLAVE_PTY): New definition.

	* buffer.c (init_buffer): Call Fset_buffer_multibyte for *scratch*.

1998-03-11  Richard Stallman  <rms@psilocin.gnu.org>

	* insdel.c (insert_1_both, insert_from_string_1, insert_from_buffer_1)
	(adjust_after_replace, replace_range):
	Account for combining bytes in args to record_insert.
	(del_range_2): Make undo records for combining bytes.
	Put second call to move_gap_both before setting beg_unchanged.

1998-03-12  Kenichi HANDA  <handa@etl.go.jp>

	* coding.c (code_convert_region): Adjusted for the change of
	adjust_after_replace.

	* fileio.c (Finsert_file_contents): Don't do position adjustments
	and handling post-read-conversion here, they are done in
	code_convert_region.  Even if a file is read by no-conversion,
	call adjust_after_replace to adjust positions.

	* insdel.c (adjust_before_replace): Call
	adjust_overlays_for_delete.
	(adjust_after_replace): Delete args COMBINED_BEFORE_BYTES and
	COMBINED_AFTER_BYTES.  This makes the newly generated text
	following GPT_ADDR a buffer contents.

1998-03-10  Richard Stallman  <rms@psilocin.gnu.org>

	* insdel.c (adjust_markers_for_insert): Don't leave a marker within
	the combined_after_bytes.  Use DEC than INC when leaving
	a marker before the insertion.
	(count_combining_before): Return number of bytes from start
	of insertion that will combine.
	(insert_1_both): Compensate for change in count_combining_before.
	Delete intervals for the combined_after_bytes.
	Compensate for that when updating other intervals.
	(insert_from_buffer_1, replace_range): Likewise.
	(adjust_after_replace): Likewise.
	(insert_from_string_1): Likewise.  Also handle intervals
	for inserting just part of string.

	* insdel.c (insert_1_both, insert_from_string_1, insert_from_buffer_1):
	Count all of combined_after_bytes, not just 1, when correcting
	nchars, and in related places.
	(adjust_after_replace, replace_range): Likewise.

1998-03-09  Gerd Moellmann  <gerd@gnu.org>

	* fontset.c (fontset_pattern_regexp): `==' was used instead of `='.

1998-03-09  Richard Stallman  <rms@psilocin.gnu.org>

	* insdel.c (combine_bytes): New function.
	(insert_1_both, insert_from_string_1, insert_from_buffer_1):
	Simplify greatly by using combine_bytes near the end
	to handle all aspects of combining except for undo-recording.
	This means most of the code deals with the text as if there were
	no combining.
	(replace_range): Likewise.  Also handle unibyte-multibyte conversion
	as in insert_from_string_1.
	(del_range_2): Handle combining of character before the deletion
	with strays after the deletion.
	(adjust_markers_for_delete): Delete debugging code for Z == Z_BYTE.
	(adjust_markers_for_insert): Move Z == Z_BYTE debugging code
	to before we relocate the marker.

1998-03-09  Richard Stallman  <rms@psilocin.gnu.org>

	* lisp.h (struct Lisp_Buffer_Local_Value):
	Field car renamed to realvalue.  New fields check_frame,
	found_for_buffer, found_for_frame, buffer, frame.
3018

Dave Love's avatar
#  
Dave Love committed
3019 3020 3021 3022 3023 3024
	* data.c (store_symval_forwarding, swap_in_symval_forwarding)
	(set_internal, default_value, Fset_default, Fmake_local_variable)
	(Fmake_variable_buffer_local, Fkill_local_variable):
	Handle new data structure for struct Lisp_Buffer_Local_Value.
	(Fmake_variable_frame_local): New function.

3025
	* buffer.c (set_buffer_internal_1)
Dave Love's avatar
#  
Dave Love committed
3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043
	(swap_out_buffer_local_variables): Handle new data structure
	for struct Lisp_Buffer_Local_Value.

	* print.c (print): Handle new data structure
	for struct Lisp_Buffer_Local_Value.

	* alloc.c (gc_sweep, mark_object): Handle new data structure
	for struct Lisp_Buffer_Local_Value.

1998-03-08  Richard Stallman  <rms@psilocin.gnu.org>

	* insdel.c (adjust_markers_for_insert): New arg COMBINED_BEFORE_BYTES.
	Calls changed.

	* search.c (simple_search): Don't count a character until it matches!
	Call set_search_regs differently in a forward search.
	(boyer_moore): Fix up the code that translates the pattern
	and loops thru equivalent characters.
3044

Dave Love's avatar
#  
Dave Love committed
3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077
1998-03-07  Richard Stallman  <rms@psilocin.gnu.org>

	* insdel.c (adjust_markers_for_insert): New arg COMBINED_AFTER_BYTES.
	Calls changed.
	(insert_1): Call insert_1_both.
	(count_combining_before): New function.
	(count_combining_after): New function.
	(insert_1_both, insert_from_string_1): Handle bytes that combine
	with chars adjacent to the inserted text.
	(insert_from_buffer_1, replace_range): Likewise.
	(adjust_after_replace):
	New args COMBINED_BEFORE_BYTES, COMBINED_AFTER_BYTES.

1998-03-06  Kenichi Handa  <handa@etl.go.jp>