From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Problem binding mouse-1 to Info-mouse-follow-nearest-node Date: Mon, 11 Apr 2011 17:53:31 +0200 Message-ID: <4DA323FB.8010302@gmx.at> References: <4DA2CB77.805@gmx.at> <4DA2F5BC.6040400@gmx.at> <83zknwrgds.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302537511 28237 80.91.229.12 (11 Apr 2011 15:58:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 15:58:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 11 17:58:27 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9JVS-0006WR-8C for ged-emacs-devel@m.gmane.org; Mon, 11 Apr 2011 17:58:26 +0200 Original-Received: from localhost ([127.0.0.1]:42378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9JVR-0004S3-91 for ged-emacs-devel@m.gmane.org; Mon, 11 Apr 2011 11:58:25 -0400 Original-Received: from [140.186.70.92] (port=52015 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9JQt-0001sx-JQ for emacs-devel@gnu.org; Mon, 11 Apr 2011 11:53:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9JQr-000740-Ia for emacs-devel@gnu.org; Mon, 11 Apr 2011 11:53:42 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:59388) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q9JQr-00073g-4X for emacs-devel@gnu.org; Mon, 11 Apr 2011 11:53:41 -0400 Original-Received: (qmail invoked by alias); 11 Apr 2011 15:53:39 -0000 Original-Received: from 62-47-42-226.adsl.highway.telekom.at (EHLO [62.47.42.226]) [62.47.42.226] by mail.gmx.net (mp014) with SMTP; 11 Apr 2011 17:53:39 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19FVx0M/tFFbyQ7dhMYY/kkaiQ87WvkeVrwqBjk5W YlVMrnCdQsxblm User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83zknwrgds.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138398 Archived-At: >> Could you reproduce the behavior I described on your machine? > > I couldn't try that where I wrote the previous message, but I can > now. Yes, I see it. And no, it wasn't introduced after the lex-bind > merge, because I see it in revision 103755 (I happen to have a binary > for that revision in one of my branches). For some reason I must have missed it all the time. > 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. martin