Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f0490a0b
Commit
f0490a0b
authored
Aug 29, 1996
by
Richard M. Stallman
Browse files
(Fcall_interactively): For `N' and `n',
if we don't get a number, try again.
parent
0819585c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
src/callint.c
src/callint.c
+21
-3
No files found.
src/callint.c
View file @
f0490a0b
...
...
@@ -563,9 +563,27 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
if
(
!
NILP
(
prefix_arg
))
goto
have_prefix_arg
;
case
'n'
:
/* Read number from minibuffer. */
do
args
[
i
]
=
Fread_minibuffer
(
build_string
(
callint_message
),
Qnil
);
while
(
!
NUMBERP
(
args
[
i
]));
{
int
first
=
1
;
do
{
Lisp_Object
tem
;
if
(
!
first
)
{
message
(
"Please enter a number."
);
sit_for
(
1
,
0
,
0
,
0
);
}
first
=
0
;
tem
=
Fread_from_minibuffer
(
build_string
(
callint_message
),
Qnil
,
Qnil
,
Qnil
,
Qnil
);
if
(
!
STRINGP
(
tem
)
||
XSTRING
(
tem
)
->
size
==
0
)
args
[
i
]
=
Qnil
;
else
args
[
i
]
=
Fread
(
tem
);
}
while
(
!
NUMBERP
(
args
[
i
]));
}
visargs
[
i
]
=
last_minibuf_string
;
break
;
...
...
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