emacs-devel
[Top][All Lists]
Advanced

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

Re: Problem binding mouse-1 to Info-mouse-follow-nearest-node


From: Eli Zaretskii
Subject: Re: Problem binding mouse-1 to Info-mouse-follow-nearest-node
Date: Mon, 11 Apr 2011 19:59:41 +0300

> Date: Mon, 11 Apr 2011 17:53:31 +0200
> From: martin rudalics <address@hidden>
> CC: address@hidden
> 
>  > The immediate problem which triggers the error is that deactivate-mark
>  > is called after Info-mouse-follow-nearest-node already changed the
>  > node displayed in the *info* buffer, which involves narrowing the
>  > buffer to a different range of character positions, and that causes
>  > the region to reference the portion of the buffer outside the current
>  > restriction.
> 
> We could simply try doing
> 
> (buffer-substring-no-properties
>   (max (region-beginning) (point-min))
>   (min (region-end) (point-max)))
> 
> in `deactivate-mark'.  But I have no idea how the region should be
> defined when it's not entirely within the accessible portion of a
> buffer.

If it were up to me, I'd like first to understand (a) how come there's
an active region in this case, (b) why deactivate-mark doesn't try to
validate the region, and (c) why doesn't narrowing clip the region to
the accessible portion.



reply via email to

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