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

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

bug#21168: 25.0.50; ffap-string-at-point-region gets raw cons value, bre


From: Eli Zaretskii
Subject: bug#21168: 25.0.50; ffap-string-at-point-region gets raw cons value, breaking ffap-string-at-point
Date: Sat, 01 Aug 2015 12:35:04 +0300

> From: Rupert Swarbrick <ruperts@broadcom.com>
> Date: Fri, 31 Jul 2015 17:42:31 +0100
> 
> My Emacs session has got into a situation where the
> ffap-string-at-point-region is the raw cons
> 
>   (14812 . 2284)
> 
> As a result, the line at the bottom of ffap-string-at-point fails
> when it tries to run
> 
>   (setcar (cdr ffap-string-at-point-region) end)
> 
> 
> I'm running Emacs compiled from commit 123c82e, plus an unrelated commit
> to fix the scheme lexer for semantic (hence the weird looking repository
> version below).
> 
> 
> I think the problem is probably caused by commit e48a116780d (from last
> Wednesday), which changes line 1137 of ffap.el to:
> 
>             (setcdr ffap-string-at-point-region (point))
> 
> because the rest of ffap.el expects the variable to be a list with two
> elements rather than a cons pair.
> 
> 
> I've changed the line to 
> 
>             (setcar (cdr ffap-string-at-point-region) (point))
> 
> and stuff seems to work fine.

Thanks, I fixed that in a slightly different way.





reply via email to

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