[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17984: 24.4.50; Error in post-command-hook (rectangle--string-previe
From: |
Stefan Monnier |
Subject: |
bug#17984: 24.4.50; Error in post-command-hook (rectangle--string-preview) |
Date: |
Fri, 18 Jul 2014 21:44:10 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> emacs -Q
> Select a couple of lines.
> C-x r t
> At that moment, I see this error in the echo area:
> Error in post-command-hook (rectangle--string-preview):
> (wrong-type-argument stringp nil)
Indeed, thanks. I installed the patch below which should fix this
problem,
Stefan
=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog 2014-07-16 17:06:12 +0000
+++ lisp/ChangeLog 2014-07-19 01:43:04 +0000
@@ -1,3 +1,8 @@
+2014-07-19 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * rect.el (rectangle--string-preview): Don't assume there
+ a non-nil default (bug#17984).
+
2014-07-16 Glenn Morris <rgm@gnu.org>
* desktop.el (after-init-hook): Disable startup frame restoration
=== modified file 'lisp/rect.el'
--- lisp/rect.el 2014-07-09 02:20:21 +0000
+++ lisp/rect.el 2014-07-19 01:41:57 +0000
@@ -396,7 +396,7 @@
(when (equal str "")
(setq str (or (car-safe minibuffer-default)
(if (stringp minibuffer-default) minibuffer-default))))
- (setq str (propertize str 'face 'region))
+ (when str (setq str (propertize str 'face 'region)))
(with-selected-window rectangle--string-preview-window
(unless (or (null rectangle--string-preview-state)
(equal str (car rectangle--string-preview-state)))