# HG changeset patch # User Stefan Monnier # Date 1208210678 0 # Node ID 14fafab62797627338a091de7a95e149d91550c7 # Parent 6027fc6333c95f3b612a2d8dbd5d4566f13699a9 (minibuffer-message): Make sure we can put-text-property. diff -r 6027fc6333c9 -r 14fafab62797 lisp/ChangeLog --- a/lisp/ChangeLog Mon Apr 14 19:54:30 2008 +0000 +++ b/lisp/ChangeLog Mon Apr 14 22:04:38 2008 +0000 @@ -1,5 +1,7 @@ 2008-04-14 Stefan Monnier + * minibuffer.el (minibuffer-message): Make sure we can put-text-property. + * emacs-lisp/crm.el: Complete rewrite. * tmm.el (tmm-completion-delete-prompt): Don't hardcode point-min==1. diff -r 6027fc6333c9 -r 14fafab62797 lisp/minibuffer.el --- a/lisp/minibuffer.el Mon Apr 14 19:54:30 2008 +0000 +++ b/lisp/minibuffer.el Mon Apr 14 22:04:38 2008 +0000 @@ -172,8 +172,10 @@ If ARGS are provided, then pass MESSAGE through `format'." ;; Clear out any old echo-area message to make way for our new thing. (message nil) - (unless (and (null args) (string-match "\\[.+\\]" message)) - (setq message (concat " [" message "]"))) + (setq message (if (and (null args) (string-match "\\[.+\\]" message)) + ;; Make sure we can put-text-property. + (copy-sequence message) + (concat " [" message "]"))) (when args (setq message (apply 'format message args))) (let ((ol (make-overlay (point-max) (point-max) nil t t))) (unwind-protect