From 3ea137e95cfaeb34dd6fe755bbfe3486bea88ddc Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 13 Jan 2003 08:22:44 +0000 Subject: [PATCH] (minibuffer_completion_contents): Error if point is inside prompt. --- src/minibuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/minibuf.c b/src/minibuf.c index 7471a14bb4c..160b36188e7 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -399,6 +399,8 @@ Lisp_Object minibuffer_completion_contents () { int prompt_end = XINT (Fminibuffer_prompt_end ()); + if (PT < prompt_end) + error ("Cannot do completion in the prompt"); return make_buffer_string (prompt_end, PT, 1); } -- 2.39.2