Mercurial > emacs
comparison src/callint.c @ 11278:25b2219c415c
(Fcall_interactively): `+' is reserved for user changes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 07 Apr 1995 22:46:38 +0000 |
parents | 399469e5eb5b |
children | 5146fba1f75d |
comparison
equal
deleted
inserted
replaced
11277:d4547e4b0aab | 11278:25b2219c415c |
---|---|
365 if (EVENT_HAS_PARAMETERS | 365 if (EVENT_HAS_PARAMETERS |
366 (XVECTOR (this_command_keys)->contents[next_event])) | 366 (XVECTOR (this_command_keys)->contents[next_event])) |
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)) |
376 Fbarf_if_buffer_read_only (); | 379 Fbarf_if_buffer_read_only (); |
377 } | 380 } |
612 case 'X': /* Lisp expression read and evaluated */ | 615 case 'X': /* Lisp expression read and evaluated */ |
613 args[i] = Feval_minibuffer (build_string (prompt), Qnil); | 616 args[i] = Feval_minibuffer (build_string (prompt), Qnil); |
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 |
622 if (varies[i] == 0) | 628 if (varies[i] == 0) |
623 arg_from_tty = 1; | 629 arg_from_tty = 1; |