From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: Problem binding mouse-1 to Info-mouse-follow-nearest-node
Date: Mon, 11 Apr 2011 19:59:41 +0300 [thread overview]
Message-ID: <83r598raf6.fsf@gnu.org> (raw)
In-Reply-To: <4DA323FB.8010302@gmx.at>
> Date: Mon, 11 Apr 2011 17:53:31 +0200
> From: martin rudalics <rudalics@gmx.at>
> CC: emacs-devel@gnu.org
>
> > 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.
prev parent reply other threads:[~2011-04-11 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 9:35 Problem binding mouse-1 to Info-mouse-follow-nearest-node martin rudalics
2011-04-11 9:46 ` Eli Zaretskii
2011-04-11 12:36 ` martin rudalics
2011-04-11 13:44 ` Juanma Barranquero
2011-04-11 14:50 ` Eli Zaretskii
2011-04-11 15:53 ` martin rudalics
2011-04-11 16:59 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r598raf6.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.