diff options
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c6102575cf6..cc9ee1d1f7a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-04-14 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-04-14 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * minibuffer.el (minibuffer-message): Make sure we can put-text-property. | ||
| 4 | |||
| 3 | * emacs-lisp/crm.el: Complete rewrite. | 5 | * emacs-lisp/crm.el: Complete rewrite. |
| 4 | 6 | ||
| 5 | * tmm.el (tmm-completion-delete-prompt): Don't hardcode point-min==1. | 7 | * tmm.el (tmm-completion-delete-prompt): Don't hardcode point-min==1. |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 7429af3248d..2fec4238230 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -172,8 +172,10 @@ Enclose MESSAGE in [...] if this is not yet the case. | |||
| 172 | If ARGS are provided, then pass MESSAGE through `format'." | 172 | If ARGS are provided, then pass MESSAGE through `format'." |
| 173 | ;; Clear out any old echo-area message to make way for our new thing. | 173 | ;; Clear out any old echo-area message to make way for our new thing. |
| 174 | (message nil) | 174 | (message nil) |
| 175 | (unless (and (null args) (string-match "\\[.+\\]" message)) | 175 | (setq message (if (and (null args) (string-match "\\[.+\\]" message)) |
| 176 | (setq message (concat " [" message "]"))) | 176 | ;; Make sure we can put-text-property. |
| 177 | (copy-sequence message) | ||
| 178 | (concat " [" message "]"))) | ||
| 177 | (when args (setq message (apply 'format message args))) | 179 | (when args (setq message (apply 'format message args))) |
| 178 | (let ((ol (make-overlay (point-max) (point-max) nil t t))) | 180 | (let ((ol (make-overlay (point-max) (point-max) nil t t))) |
| 179 | (unwind-protect | 181 | (unwind-protect |