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

57 commits

Author SHA1 Message Date
Richard M. Stallman
e744155a80 (internal_self_insert): When overwriting, use replace_range. 1997-07-15 19:22:53 +00:00
Richard M. Stallman
cac557491c (Fdelete_backward_char): Convert Finsert_char argument to
Lisp_Integer and add missing argument.
(internal_self_insert): Convert Fmove_to_column argument to
Lisp_Integer and add missing argument.
1997-07-12 06:45:55 +00:00
Karl Heuer
5bfb66e31d (internal_self_insert): Use PT, not point. 1997-06-14 04:50:37 +00:00
Richard M. Stallman
a22ca1e0d0 (nonascii_insert_offset): New variable.
(Fself_insert_command, internal_self_insert):
Add nonascii_insert_offset to what we insert, when appropriate.
(syms_of_cmds): Set up Lisp variable.
1997-05-16 08:08:49 +00:00
Karl Heuer
6787d111ea (internal_self_insert): Fix return value. 1997-04-10 22:45:03 +00:00
Karl Heuer
9e4fd67ba1 Include charset.h.
(forward_point, Fforward_point): New functions.
(Fforward_char, Fdelete_char): Handle multibyte characters by
calling forward_point.
(Fdelete_backward_char): Pay attention to multibyte characters
in overwrite-mode.
(internal_self_insert): Handle self inserting a multibyte
character.
(syms_of_cmds): Handle the new function Fforward_point.
1997-02-20 06:46:40 +00:00
Richard M. Stallman
9317a902a2 (internal_self_insert): Check the property
on the hook, not on the abbrev symbol.
1997-01-02 02:30:33 +00:00
Richard M. Stallman
e57640c004 (internal_self_insert): If the abbrev has no expansion,
just a hook, inhibit the insertion of the character.
1996-12-26 20:54:22 +00:00
Richard M. Stallman
38b294ca29 (Fend_of_line, Fbeginning_of_line):
Use Fline_beginning_position, Fline_end_position.
1996-12-10 23:25:45 +00:00
Karl Heuer
6ec8bbd20d Change all references from point to PT. 1996-09-01 19:15:05 +00:00
Karl Heuer
7c98317117 (Fdelete_backward_char): Fix off-by-one error.
Treat deleted newline specially.
1996-08-16 23:14:09 +00:00
Karl Heuer
76bb6dbb3e (internal_self_insert): Don't return 2 for auto-fill
unless the auto_fill_function returns non-nil.
1996-05-21 14:29:56 +00:00
Richard M. Stallman
aa970069e0 (Fdelete_backward_char): In overwrite mode,
insert spaces, unless we deleted a tab.
1996-01-29 23:27:09 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Erik Naggum
72d5f589b6 (Fforward_line, Fbeginning_of_line, Fend_of_line, Fdelete_char,
Fdelete_backward_char): Harmonize arguments with documentation.
1996-01-09 00:30:54 +00:00
Richard M. Stallman
af39ac8ca3 (internal_self_insert): Declare arg c1 as unsigned char. 1995-12-23 07:46:41 +00:00
Karl Heuer
e5443bab69 (Fbackward_char, Fforward_char): Rename arg to ARG. 1995-12-21 16:57:16 +00:00
Richard M. Stallman
2718dfa4b8 (Fself_insert_command): Optimize the case with arg > 2
to avoid running change hooks lots of times.
1995-08-16 15:00:57 +00:00
Karl Heuer
346e0c2d17 (internal_self_insert): Make last_command be kboard-local. 1995-06-09 03:05:04 +00:00
Karl Heuer
f8c25f1b67 Update copyright. 1995-04-07 02:21:52 +00:00
Karl Heuer
38d404db17 (internal_self_insert): Do face code only if HAVE_FACES. 1995-03-15 21:53:53 +00:00
Boris Goldowsky
2e16553ccc (use_hard_newlines): Variable definition moved to paragraphs.el.
(newline): Function moved to simple.el.
(internal_self_insert): Insert newline BEFORE calling
auto-fill-function, so centering & right-justify can work.
1995-03-01 15:29:37 +00:00
Richard M. Stallman
189fad68dd (Vself_insert_face, Vself_insert_face_command): New variables.
(syms_of_cmds): Set up Lisp variables.  Doc syntax fix.
(internal_self_insert): Handle Vself_insert_face.
1995-02-13 16:54:58 +00:00
Richard M. Stallman
3de15b7ad1 (internal_self_insert): Don't test current_column
when deciding to call auto_fill_function.
1995-01-19 04:34:02 +00:00
Richard M. Stallman
cbf651156b (Vuse_hard_newlines): New variable.
(Fnewline): If use_hard_newlines is on, mark inserted
newline(s) with `hard' property, marked rear-nonsticky.
1995-01-13 08:45:07 +00:00
Richard M. Stallman
dfb756b7d3 (Fnewline): Always use insert_and_inherit. 1994-11-10 18:51:12 +00:00
Jim Blandy
4f5d0c3c26 * cmds.c (Fforward_line): Call scan_buffer with new args.
(Fend_of_line): Replace call to Fforward_line and search loop with
call to find_before_next_newline.
1994-10-08 22:13:15 +00:00
Karl Heuer
f58dd69bcf (Fself_insert_command, Fnewline): Don't use XFASTINT as an lvalue. 1994-10-04 17:22:08 +00:00
Karl Heuer
48c7cef2b6 (Fforward_char, Fbackward_char, Fbeginning_of_line, Fend_of_line): Don't use
XFASTINT as an lvalue.
1994-10-04 15:43:31 +00:00
Karl Heuer
ed76f667fc (Fself_insert_command): Use type test macros. 1994-09-27 03:08:20 +00:00
Richard M. Stallman
f109dfa278 Include window.h.
(Fnewline): Inhibit the insert-at-end-of-line hack
when at the top of the window.
1994-09-15 04:06:55 +00:00
Richard M. Stallman
b9a7407ff9 (internal_self_insert): Use insert_and_inherit. 1994-08-28 06:48:56 +00:00
Richard M. Stallman
aa52fef958 (internal_self_insert): Now can return 2. 1994-06-29 19:51:33 +00:00
Karl Heuer
3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Richard M. Stallman
166a426310 (internal_self_insert): Test Vafter_change_functions,
Vbefore_change_functions.
1994-04-10 02:34:21 +00:00
Karl Heuer
e7aacab75f (internal_self_insert): Use assignment, not initialization. 1994-03-23 22:27:12 +00:00
Richard M. Stallman
0132c70c04 (Fforward_line): Pass new arg to scan_buffer. 1994-02-03 05:05:12 +00:00
Richard M. Stallman
cf9cdc11ac (keys_of_cmds) [MSDOS]: Chars 0200 to 0237 self-insert. 1994-01-08 08:45:19 +00:00
Richard M. Stallman
94748cb937 (keys_of_cmds): Make 0377 self-inserting. 1993-11-17 11:01:21 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
dbf8da3952 (Fnewline): If we don't do the first SET_PT,
clear flag, so we don't do the second SET_PT.
1993-08-11 19:09:15 +00:00
Richard M. Stallman
7c011261b7 (Fnewline): Disable the "insert one position before"
optimization if it would screw up text property behavior.
1993-07-31 05:53:23 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
69f19f89f7 (Fnewline): Use Fbarf_if_buffer_read_only. 1993-06-04 18:01:53 +00:00
Richard M. Stallman
eb46da6a12 (keys_of_cmds): Predefined 0240-0376 as self-insert. 1993-05-28 22:29:10 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Jim Blandy
7b502dc326 * cmds.c (Fforward_char): Check proposed new position, and then
set point, instead of setting point to a potentially invalid
	position.
1993-05-14 14:37:53 +00:00
Jim Blandy
6bbb0d4aaa * cmds.c (overwrite_binary_mode): Deleted; this implements the
wrong feature.
	(Qoverwrite_mode_binary): New variable.
	(internal_self_insert): If current_buffer->overwrite_mode is
	`overwrite-mode-binary', do as overwrite_binary_mode used to.
	(syms_of_cmds): Remove defvar of overwrite_binary_mode; initialize
	Qoverwrite_mode_binary.
	* buffer.c (syms_of_buffer): Doc fix for overwrite_mode.
	* buffer.h (struct buffer): Doc fix.
1993-03-16 18:18:05 +00:00
Richard M. Stallman
2234dd63ea (internal_self_insert): Check that tab_width does not
exceed 20, to be consistent with indent.c and xdisp.c.
1993-03-12 21:42:58 +00:00
Jim Blandy
c39e6cc261 * cmds.c (Fnewline): Doc fix. 1993-03-02 08:10:24 +00:00