From: Richard M. Stallman Date: Mon, 13 Jan 2003 08:22:44 +0000 (+0000) Subject: (minibuffer_completion_contents): Error if point is inside prompt. X-Git-Tag: ttn-vms-21-2-B4~11699 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ea137e95cfaeb34dd6fe755bbfe3486bea88ddc;p=emacs.git (minibuffer_completion_contents): Error if point is inside prompt. --- 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); }