# HG changeset patch # User Miles Bader # Date 974822254 0 # Node ID ec99a5f4085e977cb17a6844aad77cf4778cd304 # Parent a529db20a4d814451da289ef323af2dc522a9046 (Vminibuffer_prompt_properties): New variable. (syms_of_minibuf): Initialize it. (read_minibuf): Add properties from Vminibuffer_prompt_properties to prompt, don't make read-only. diff -r a529db20a4d8 -r ec99a5f4085e src/minibuf.c --- a/src/minibuf.c Tue Nov 21 15:53:02 2000 +0000 +++ b/src/minibuf.c Tue Nov 21 15:57:34 2000 +0000 @@ -86,6 +86,12 @@ Lisp_Object Vminibuffer_history_position; +/* Text properties that are added to minibuffer prompts. + These are in addition to the basic `field' property, and stickiness + properties. */ + +Lisp_Object Vminibuffer_prompt_properties; + Lisp_Object Qminibuffer_history, Qbuffer_name_history; Lisp_Object Qread_file_name_internal; @@ -521,8 +527,8 @@ Qrear_nonsticky, Qt, Qnil); Fput_text_property (make_number (BEG), make_number (PT), Qfield, Qt, Qnil); - Fput_text_property (make_number (BEG), make_number (PT), - Qread_only, Qt, Qnil); + Fadd_text_properties (make_number (BEG), make_number (PT), + Vminibuffer_prompt_properties, Qnil); } minibuf_prompt_width = current_column (); @@ -2437,6 +2443,15 @@ with completion; they always discard text properties."); minibuffer_allow_text_properties = 0; + DEFVAR_LISP ("minibuffer-prompt-properties", &Vminibuffer_prompt_properties, + "Text properties that are added to minibuffer prompts.\n\ +These are in addition to the basic `field' property, and stickiness\n\ +properties."); + /* We use `intern' here instead of Qread_only to avoid + initialization-order problems. */ + Vminibuffer_prompt_properties + = Fcons (intern ("read-only"), Fcons (Qt, Qnil)); + defsubr (&Sset_minibuffer_window); defsubr (&Sread_from_minibuffer); defsubr (&Seval_minibuffer);