Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c838bca9
Commit
c838bca9
authored
Feb 08, 2014
by
Lars Ingebrigtsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cmds.c (Fself_insert_command): Output a clearer error message on negative repetitions.
Fixes: debbugs:9476
parent
438241f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/ChangeLog
src/ChangeLog
+3
-0
src/cmds.c
src/cmds.c
+6
-1
No files found.
src/ChangeLog
View file @
c838bca9
2014-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* cmds.c (Fself_insert_command): Output a clearer error message on
negative repetitions (bug#9476).
* macros.c (Fexecute_kbd_macro): Doc fix (bug#14206).
2014-02-08 Lars Ingebrigtsen <larsi@gnus.org>
...
...
src/cmds.c
View file @
c838bca9
...
...
@@ -268,6 +268,7 @@ static int nonundocount;
DEFUN
(
"self-insert-command"
,
Fself_insert_command
,
Sself_insert_command
,
1
,
1
,
"p"
,
doc
:
/* Insert the character you type.
Whichever character you type to run this command is inserted.
The numeric prefix argument N says how many times to repeat the insertion.
Before insertion, `expand-abbrev' is executed if the inserted character does
not have word syntax and the previous character in the buffer does.
After insertion, the value of `auto-fill-function' is called if the
...
...
@@ -276,7 +277,11 @@ At the end, it runs `post-self-insert-hook'. */)
(
Lisp_Object
n
)
{
bool
remove_boundary
=
1
;
CHECK_NATNUM
(
n
);
CHECK_NUMBER
(
n
);
if
(
XFASTINT
(
n
)
<
1
)
error
(
"Repetition argument is %d, but must be higher than 0."
,
XFASTINT
(
n
));
if
(
!
EQ
(
Vthis_command
,
KVAR
(
current_kboard
,
Vlast_command
)))
nonundocount
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment