emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17984: closed (24.4.50; Error in post-command-hook


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17984: closed (24.4.50; Error in post-command-hook (rectangle--string-preview))
Date: Sat, 19 Jul 2014 01:45:03 +0000

Your message dated Fri, 18 Jul 2014 21:44:10 -0400
with message-id <address@hidden>
and subject line Re: bug#17984: 24.4.50; Error in post-command-hook 
(rectangle--string-preview)
has caused the debbugs.gnu.org bug report #17984,
regarding 24.4.50; Error in post-command-hook (rectangle--string-preview)
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17984: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17984
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.4.50; Error in post-command-hook (rectangle--string-preview) Date: Thu, 10 Jul 2014 09:05:08 +0200
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)

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-07-09 on LEG570
Repository revision: 117503 address@hidden
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'

-- 
Dani Moncayo



--- End Message ---
--- Begin Message --- Subject: Re: 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  <address@hidden>
+
+       * rect.el (rectangle--string-preview): Don't assume there
+       a non-nil default (bug#17984).
+
 2014-07-16  Glenn Morris  <address@hidden>
 
        * 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)))



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]