aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-15 18:17:55 +0000
committerRichard M. Stallman1994-06-15 18:17:55 +0000
commit42bb2790f0d45bd45f8b2973d6ba7d68a21a75e5 (patch)
tree1b134ae79b33a772df1968754abd4b03bd2bf77c /src
parent825d6f08db6a8ea5cc28bf5f99c19883cb5529af (diff)
downloademacs-42bb2790f0d45bd45f8b2973d6ba7d68a21a75e5.tar.gz
emacs-42bb2790f0d45bd45f8b2973d6ba7d68a21a75e5.zip
(Fcall_interactively): Ignore `-' in string.
(Fcall_interactively): Don't call minibuffer-window-active-p; determine directly whether a minibuf window is active.
Diffstat (limited to 'src')
-rw-r--r--src/callint.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/callint.c b/src/callint.c
index 1a79cb06ec1..0f996e1b5f2 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -311,7 +311,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
311 (XVECTOR (this_command_keys)->contents[next_event])) 311 (XVECTOR (this_command_keys)->contents[next_event]))
312 break; 312 break;
313 313
314 /* Handle special starting chars `*' and `@'. */ 314 /* Handle special starting chars `*' and `@'. Also `-'. */
315 while (1) 315 while (1)
316 { 316 {
317 if (*string == '*') 317 if (*string == '*')
@@ -320,6 +320,9 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
320 if (!NILP (current_buffer->read_only)) 320 if (!NILP (current_buffer->read_only))
321 Fbarf_if_buffer_read_only (); 321 Fbarf_if_buffer_read_only ();
322 } 322 }
323 /* Ignore this for semi-compatibility with Lucid. */
324 else if (*string == '-')
325 string++;
323 else if (*string == '@') 326 else if (*string == '@')
324 { 327 {
325 Lisp_Object event; 328 Lisp_Object event;
@@ -331,8 +334,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
331 && XTYPE (event = XCONS (event)->car) == Lisp_Window) 334 && XTYPE (event = XCONS (event)->car) == Lisp_Window)
332 { 335 {
333 if (MINI_WINDOW_P (XWINDOW (event)) 336 if (MINI_WINDOW_P (XWINDOW (event))
334 && NILP (call1 (intern ("minibuffer-window-active-p"), 337 && ! (minibuf_level > 0 && EQ (event, minibuf_window)))
335 event)))
336 error ("Attempt to select inactive minibuffer window"); 338 error ("Attempt to select inactive minibuffer window");
337 Fselect_window (event); 339 Fselect_window (event);
338 } 340 }