1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-01 03:11:09 -08:00
Commit graph

20567 commits

Author SHA1 Message Date
Richard M. Stallman
5f1cd180aa (code_convert_string): Maybe use make_unibyte_string. 1998-01-09 23:05:12 +00:00
Richard M. Stallman
216b9443d5 (internal_self_insert): Simplify handling of c2;
avoid testing enable-multibyte-characters.
(internal_self_insert): Use make_multibyte_string.
1998-01-09 23:04:20 +00:00
Richard M. Stallman
87b089add4 (multibyte_chars_in_text): New function.
(Fstring): Use make_multibyte_string.
(Fcompose_string): Likewise.
(Ffind_charset_string): Handle bytes vs chars in string.
Special case for single-byte strings.
(Fchars_in_string): Function deleted.
(Fstring): Renamed from Fconcat_chars.
Handle bytes vs chars in string.
(syms_of_charset): Corresponding changes.
1998-01-09 23:03:25 +00:00
Richard M. Stallman
bff2601e52 (Fccl_execute_on_string): Use size_byte. 1998-01-09 23:00:30 +00:00
Richard M. Stallman
115afec319 (Fmake_category_set): Don't allow multibyte string.
(describe_category): Pass new args to insert_from_string.
(describe_category_1): Likewise.
1998-01-09 22:59:31 +00:00
Richard M. Stallman
5245463a5c (casify_object): Scan string by bytes and chars.
Use make_multibyte_string.
1998-01-09 22:58:16 +00:00
Richard M. Stallman
7b935f718b (BASE_PURESIZE): Increased. 1998-01-09 22:55:18 +00:00
Richard M. Stallman
e28552a46a (read_escape): `\ ' stands for nothing at all.
(oblookup): Take args SIZE and SIZE_BYTE.  Callers changed.
(init_obarray, read1, make_symbol):
Pass new arg to make_pure_string.
(Fintern, oblookup, Fintern_soft, intern): Handle size_byte.
(dir_warning): Pass new arg to message_dolog.
(read1): PCH is now int *.
Declare ch as int.
(read0): Declare c as int.
(read_list): Declare ch as int.
(read0): Use Fmake_string not make_string.
(read1): When reading a string, maybe use make_unibyte_string.
(Fread_from_string): Convert string indices to/from bytes.
1998-01-09 22:52:08 +00:00
Richard M. Stallman
2b08380873 (count_size_as_multibyte): New function.
(insert_from_string_1, insert_from_buffer_1): Use it.
(copy_text): New function.
(insert_from_buffer_1): Call copy_text to convert between
single-byte and multibyte text.
(insert_from_string_1): Likewise.
(insert_1_both): New function.
(insert_from_string): New args POS_BYTE, LENGTH.
(insert_from_string_before_markers):
(insert_from_string_1): New arg POS_BYTE.  Swap args NCHARS, NBYTES.
Don't fail to use POS_BYTE!
(insert_from_buffer_1): Get both inschars and insbytes from NEW.
1998-01-09 22:46:07 +00:00
Richard M. Stallman
ea35ce3d99 (map_char_table): Unconditionally consider non-ASCII charsets.
(Fsubstring): Use make_multibyte_string.
(concat, Fsubstring, internal_equal, mapcar1):
Distinguish bytes and chars when indexing strings.
(Fstring_equal, Fstring_lessp): Likewise.
(substring_both): New function.
(string_make_multibyte, string_make_unibyte): New functions.
(string_char_to_byte, string_byte_to_char): New functions.
1998-01-09 22:41:43 +00:00
Richard M. Stallman
1f24f4fdd2 (Fformat): Do all the work directly--don't use doprnt.
Calculate the right size the first time, so no need to retry.
Count chars and bytes in the result.
Convert single-byte strings to multibyte as needed.
1998-01-09 22:34:48 +00:00
Richard M. Stallman
6bb762b324 (sref): Defined. 1998-01-09 22:13:08 +00:00
Richard M. Stallman
7bd9ba7033 (dabbrev-ignored-buffer-names): New variable.
(dabbrev--find-expansion): Ignore those buffers
unless they get specifically preferred.
1998-01-09 22:12:10 +00:00
Eric M. Ludlam
0a0a3dee18 Added some more comments in the commentary.
You can now `quote' symbols that look like keystrokes
When spell checking, meta variables can end in `th' or `s'.
1998-01-08 23:35:34 +00:00
André Spiegel
f8791ebe79 (vc-resynch-window): Behave properly when view-read-only is non-nil. 1998-01-07 14:33:37 +00:00
Dave Love
8b877ecddf Move change log comment block so lm-commentary doesn't lose. 1998-01-07 12:39:59 +00:00
Andreas Schwab
1edec9cfea (custom-browse-visibility): Doc fix. 1998-01-07 10:45:56 +00:00
Andreas Schwab
5e5e5b54ed (defgroup): Doc fix. 1998-01-07 10:45:33 +00:00
Andreas Schwab
3d98a37401 (pp-to-string): Greatly simplify by letting the
Emacs printer do the (quote x) to 'x conversion.  Better handle
the # print syntax in all its forms.
1998-01-07 10:40:25 +00:00
Andreas Schwab
33933d45be Customized. 1998-01-07 10:31:09 +00:00
Eli Zaretskii
9263121691 (delete-auto-save-files): Say in the doc string that
auto-save file will not be deleted if the buffer has unsaved
changes.
1998-01-07 09:41:30 +00:00
Richard M. Stallman
30d57b8e6e (Fcall_process): When deciding whether to encode args,
check them for multibyteness, don't check enable-multibyte-characters.

(Fcall_process): Use size_byte for the args.
(Fcall_process_region): Likewise for temp file.
(child_setup, getenv_internal, Fgetenv): Likewise.
1998-01-05 17:39:32 +00:00
Richard M. Stallman
1d2fc6120d (read_process_output): Use insert_1_both.
(read_process_output): New var `multibyte'.
Set it according to which coding system was used.

(read_process_output): Handle bytes vs chars.
(send_process): Use size_byte of OBJECT.
(Fprocess_send_string): Pass size_byte to send_process.
1998-01-05 17:33:41 +00:00
Richard M. Stallman
797ddf5794 (MAKE_LOCK_NAME): Use size_byte. 1998-01-05 17:32:08 +00:00
Richard M. Stallman
10d0774210 (Fbyte_code): Use size_byte. 1998-01-05 17:30:19 +00:00
Richard M. Stallman
dc2a0b79d6 (print_string): Now static.
(print): When multibyte is disabled,
print multibyte string chars using hex escapes.

(printchar): Pass new arg to message_dolog.
(strout): New arg MULTIBYTE.  Callers changed.

(strout): Take args SIZE and SIZE_BYTE;
operate on both chars and bytes.
(print_string): Pass new arg to strout.
If not using strout, fetch a whole multibyte char at once.
(write_string): Pass new arg to strout.
(write_string_1): Likewise.
(print) <case Lisp_String>: Scan by chars and bytes.
(print) <case Lisp_Symbol>: Scan name by chars and bytes.

(PRINTPREPARE): Use make_multibyte_string.
Initialize print_buffer_pos_byte.  Use insert_1_both.
(printchar): Update print_buffer_pos_byte and print_buffer_pos.
(print_buffer_pos_byte): New variable.
1998-01-05 17:29:16 +00:00
Richard M. Stallman
fc41268605 (Fexpand_abbrev): Pass both kinds of size to oblookup.
(Fexpand_abbrev): Pass new args to insert_from_string.
(Funexpand_abbrev): Likewise.  Use size_byte.
1998-01-05 17:25:39 +00:00
Richard M. Stallman
520afed181 (FETCH_STRING_CHAR_ADVANCE): New macro. 1998-01-05 17:23:54 +00:00
Richard M. Stallman
0c8533c604 (search_buffer): Handle bytes vs chars in non-RE case.
Have two locals len and len_byte.

(fast_c_string_match_ignore_case): Use string_make_unibyte.

(compile_pattern): New arg MULTIBYTE.  Callers changed.

(wordify): Use make_uninit_multibyte_string.
Scan by chars and bytes.

(string_match_1): Convert string indices to/from bytes.
(Freplace_match): Convert string indices to/from bytes.
(Fregexp_quote): Convert string indices to/from bytes.
1998-01-05 17:22:52 +00:00
Richard M. Stallman
3f25e18310 (make_pure_string): New arg length_byte.
Take account of size used by size_byte; store both sizes.
(Fpurecopy): Call make_pure_string the new way.
(compact_strings): Use size_byte field to compute string's size.

(make_uninit_multibyte_string): New function.
(make_uninit_string): Use make_uninit_multibyte_string.
(make_multibyte_string): New function.
(make_unibyte_string): New function.
(make_string): Compute number of chars from the data.
1998-01-05 17:17:27 +00:00
Richard M. Stallman
43d27a7200 (record_overlay_string): Totalize sizes assuming
strings are converted to match buffer in multibyteness.
(overlay_strings): Convert strings to match buffer in multibyteness.
1998-01-05 17:15:53 +00:00
Richard M. Stallman
82d6226f4e (read_minibuf): Handle bytes vs chars
when checking for junk at end of expression.
1998-01-05 17:14:29 +00:00
Richard M. Stallman
af2b7cd5d6 (test_completion): Pass both kinds of size to oblookup.
(Fminibuffer_complete_word): Scan string bytes and chars.
Pass new args to insert_from_string.
(Ftry_completion): Use size_byte while comparing.
(Fall_completions): Use size_byte while comparing.
1998-01-05 06:58:06 +00:00
Richard M. Stallman
e419198751 (display-time-mode): Set the variable display-time-mode.
(display-time-mode): New customize variable to
automatically load the package.
1998-01-05 06:04:35 +00:00
Richard M. Stallman
79f6bf6a93 (xstring): Use size_byte. 1998-01-04 20:41:17 +00:00
Richard M. Stallman
6fc7e03774 (resize-minibuffer-mode): Variable customized to
automatically load the package.
1998-01-03 07:17:25 +00:00
Richard M. Stallman
835766b6ed (redisplay_window): Set pos.bytepos along with pos.bufpos. 1998-01-03 07:07:02 +00:00
Richard M. Stallman
aeab5be0a8 (occur): Pass default to read-from-minibuffer so that
M-n can insert default value into minibuffer.
1998-01-03 07:06:18 +00:00
Richard M. Stallman
13161e8bd9 (file-cache-minibuffer-complete): Accept a prefix arg. 1998-01-03 00:04:35 +00:00
Richard M. Stallman
977101145a (minor-mode-overriding-map-alist):
Call make-variable-buffer-local.
1998-01-02 23:52:11 +00:00
Richard M. Stallman
64dd362982 (current_minor_maps):
If a variable has an entry in Vminor_mode_overriding_map_alist,
and also an entry in Vminor_mode_map_alist, ignore the latter.
1998-01-02 23:37:19 +00:00
Richard M. Stallman
f171f7c363 (Fchar_boundary_p): Function deleted.
(syms_of_charset): defsubr deleted.
1998-01-02 23:23:21 +00:00
Richard M. Stallman
7d92db5882 (make_gap): Set GPT_BYTE along with GPT. 1998-01-02 23:12:03 +00:00
Richard M. Stallman
c5059c2cf2 (which-func-update): Fix paren error. 1998-01-02 23:04:39 +00:00
Richard M. Stallman
5303ab61e0 Initial revision 1998-01-02 21:48:33 +00:00
Richard M. Stallman
fe0066f50f (current_column_1, Fmove_to_column):
Update call to CHAR_HEAD_P.

(indented_beyond_p): Take POS in bytes and chars.  Callers changed.
(pos_tab_indent): Function moved to xdisp.c.

(Fcurrent_indentation): Use scan_newline and SET_PT_BOTH.
(indented_beyond_p, current_column_1): Likewise.

(vmotion, compute_motion): Set up bytepos value to return it.
(current_column): Handle bytepos and charpos.
(position_indentation): Take bytepos as arg, and scan with it.  Calls changed.
(Fmove_to_column): Scan with bytepos and charpos.
(pos_tab_offset): Use bytepos to do FETCH_BYTE.
(skip_invisible): Don't worry about position in middle of character.
1998-01-02 21:43:42 +00:00
Richard M. Stallman
4356f22179 (Fcompleting_read): Doc fix. 1998-01-02 21:31:46 +00:00
Richard M. Stallman
363aa82029 (struct Lisp_Marker): Rename bufpos' to bytepos'.
Its value no longer includes the gap space.
1998-01-02 21:30:28 +00:00
Richard M. Stallman
80f6e77c70 (adjust_markers_gap_motion): Now a no-op.
(adjust_markers_for_delete): Update ->bytepos instead of ->bufpos,
but don't adjust for the gap.
(adjust_markers_for_insert): Likewise.
1998-01-02 21:29:48 +00:00
Richard M. Stallman
6ced1284f3 (internal_equal): For markers, use bytepos instead of bufpos. 1998-01-02 21:28:56 +00:00