diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/rect.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac591963c0f..a468cbfc801 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * rect.el (rectangle--string-preview): Don't assume there | ||
| 4 | a non-nil default (bug#17984). | ||
| 5 | |||
| 1 | 2014-07-16 Glenn Morris <rgm@gnu.org> | 6 | 2014-07-16 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * desktop.el (after-init-hook): Disable startup frame restoration | 8 | * desktop.el (after-init-hook): Disable startup frame restoration |
diff --git a/lisp/rect.el b/lisp/rect.el index 4c3aa08d7bd..e536e3e372c 100644 --- a/lisp/rect.el +++ b/lisp/rect.el | |||
| @@ -396,7 +396,7 @@ With a prefix (or a FILL) argument, also fill too short lines." | |||
| 396 | (when (equal str "") | 396 | (when (equal str "") |
| 397 | (setq str (or (car-safe minibuffer-default) | 397 | (setq str (or (car-safe minibuffer-default) |
| 398 | (if (stringp minibuffer-default) minibuffer-default)))) | 398 | (if (stringp minibuffer-default) minibuffer-default)))) |
| 399 | (setq str (propertize str 'face 'region)) | 399 | (when str (setq str (propertize str 'face 'region))) |
| 400 | (with-selected-window rectangle--string-preview-window | 400 | (with-selected-window rectangle--string-preview-window |
| 401 | (unless (or (null rectangle--string-preview-state) | 401 | (unless (or (null rectangle--string-preview-state) |
| 402 | (equal str (car rectangle--string-preview-state))) | 402 | (equal str (car rectangle--string-preview-state))) |