aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-07 22:46:38 +0000
committerRichard M. Stallman1995-04-07 22:46:38 +0000
commite92d107bce1b1375a6d9f3c3b3bb479af2a810ed (patch)
treed0bb6b9bbeb21b0c3448e180c74a8e9af12cd8e5 /src
parent833ba34267260ed0fcf5d6964a5b45b583259e98 (diff)
downloademacs-e92d107bce1b1375a6d9f3c3b3bb479af2a810ed.tar.gz
emacs-e92d107bce1b1375a6d9f3c3b3bb479af2a810ed.zip
(Fcall_interactively): `+' is reserved for user changes.
Diffstat (limited to 'src')
-rw-r--r--src/callint.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/callint.c b/src/callint.c
index c0787ce2913..724e37f6b38 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -367,9 +367,12 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
367 break; 367 break;
368 368
369 /* Handle special starting chars `*' and `@'. Also `-'. */ 369 /* Handle special starting chars `*' and `@'. Also `-'. */
370 /* Note that `+' is reserved for user extensions. */
370 while (1) 371 while (1)
371 { 372 {
372 if (*string == '*') 373 if (*string = '+')
374 error ("`+' is not used in `interactive' for ordinary commands");
375 else if (*string == '*')
373 { 376 {
374 string++; 377 string++;
375 if (!NILP (current_buffer->read_only)) 378 if (!NILP (current_buffer->read_only))
@@ -614,8 +617,11 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
614 visargs[i] = last_minibuf_string; 617 visargs[i] = last_minibuf_string;
615 break; 618 break;
616 619
620 /* We have a case for `+' so we get an error
621 if anyone tries to define one here. */
622 case '+':
617 default: 623 default:
618 error ("Invalid control letter \"%c\" (%03o) in interactive calling string", 624 error ("Invalid control letter `%c' (%03o) in interactive calling string",
619 *tem, *tem); 625 *tem, *tem);
620 } 626 }
621 627