aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-09-08 21:14:25 +0000
committerRichard M. Stallman1999-09-08 21:14:25 +0000
commitfbd1209a4ab786a3f97bf73bbd894574490c9e1b (patch)
tree3099cdad3265fcd33f0963f3a964438011e27f3a
parent63f4d579144e66fbe789262347bd6b53217e372d (diff)
downloademacs-fbd1209a4ab786a3f97bf73bbd894574490c9e1b.tar.gz
emacs-fbd1209a4ab786a3f97bf73bbd894574490c9e1b.zip
(read_minibuf): Put all three properties on the same range--the whole prompt.
-rw-r--r--src/minibuf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 99368824a31..b056c379d8b 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -241,6 +241,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
241 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; 241 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
242 Lisp_Object enable_multibyte; 242 Lisp_Object enable_multibyte;
243 extern Lisp_Object Qinvisible, Qintangible, Qread_only, Qfront_sticky; 243 extern Lisp_Object Qinvisible, Qintangible, Qread_only, Qfront_sticky;
244 extern Lisp_Object Qrear_nonsticky;
244 245
245 specbind (Qminibuffer_default, defalt); 246 specbind (Qminibuffer_default, defalt);
246 247
@@ -396,12 +397,12 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
396 XSETFASTINT (current_buffer->minibuffer_prompt_length, PT); 397 XSETFASTINT (current_buffer->minibuffer_prompt_length, PT);
397 if (PT > BEG) 398 if (PT > BEG)
398 { 399 {
399 Fput_text_property (make_number (BEG), make_number (PT - 1), 400 Fput_text_property (make_number (BEG), make_number (PT),
400 Qfront_sticky, Qt, Qnil); 401 Qfront_sticky, Qt, Qnil);
401 Fput_text_property (make_number (BEG), make_number (PT - 1), 402 Fput_text_property (make_number (BEG), make_number (PT),
402 Qread_only, Qt, Qnil);
403 Fput_text_property (make_number (PT - 1), make_number (Z),
404 Qrear_nonsticky, Qt, Qnil); 403 Qrear_nonsticky, Qt, Qnil);
404 Fput_text_property (make_number (BEG), make_number (PT),
405 Qread_only, Qt, Qnil);
405 } 406 }
406 407
407 /* If appropriate, copy enable-multibyte-characters into the minibuffer. */ 408 /* If appropriate, copy enable-multibyte-characters into the minibuffer. */