From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1458: marked as done (23.0.60; mouse-posn-property: Args out of range) Date: Tue, 2 Dec 2008 15:20:03 -0800 Message-ID: References: <87zlje41cn.fsf@cyd.mit.edu> <874p1qgtpt.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1228260003-387-0" X-Trace: ger.gmane.org 1228260649 16706 80.91.229.12 (2 Dec 2008 23:30:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2008 23:30:49 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 00:31:52 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7eiY-0004sU-HG for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 00:31:46 +0100 Original-Received: from localhost ([127.0.0.1]:45879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7ehO-0007Gh-3R for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 18:30:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7ehA-0007Cu-Kt for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 18:30:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7eh9-0007CS-4F for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 18:30:20 -0500 Original-Received: from [199.232.76.173] (port=33378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7eh8-0007CP-Sz for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 18:30:18 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48916) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7eh8-0007ei-BG for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 18:30:18 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2NUCfj003411; Tue, 2 Dec 2008 15:30:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB2NK314000475; Tue, 2 Dec 2008 15:20:03 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 1458 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22863 Archived-At: This is a multi-part message in MIME format... ------------=_1228260003-387-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Tue, 02 Dec 2008 18:13:44 -0500 with message-id <87zlje41cn.fsf@cyd.mit.edu> and subject line Re: bug#1458: 23.0.60; mouse-posn-property: Args out of ra= nge has caused the Emacs bug report #1458, regarding 23.0.60; mouse-posn-property: Args out of range to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 1458: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1458 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1228260003-387-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.6 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Nov 2008 20:34:53 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mATKYoAq021218 for ; Sat, 29 Nov 2008 12:34:51 -0800 Received: from mx10.gnu.org ([199.232.76.166]:39095) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L6WWJ-0002cO-SR for emacs-pretest-bug@gnu.org; Sat, 29 Nov 2008 15:34:27 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L6WWb-000622-VI for emacs-pretest-bug@gnu.org; Sat, 29 Nov 2008 15:34:49 -0500 Received: from mail.gmx.net ([213.165.64.20]:41800) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L6WWb-00061c-CJ for emacs-pretest-bug@gnu.org; Sat, 29 Nov 2008 15:34:45 -0500 Received: (qmail invoked by alias); 29 Nov 2008 20:34:43 -0000 Received: from i59F54CB8.versanet.de (EHLO escher.local.home) [89.245.76.184] by mail.gmx.net (mp067) with SMTP; 29 Nov 2008 21:34:43 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX19jRWpL3jRjGTYKBSxORCTZrtsEdqHLSFu02Hl63S r56CyEeGJS6oVd Received: by escher.local.home (Postfix, from userid 1000) id B426F7FF99; Sat, 29 Nov 2008 21:31:10 +0100 (CET) From: Stephen Berman To: emacs-pretest-bug@gnu.org Subject: 23.0.60; mouse-posn-property: Args out of range Sender: steve@escher.local.home Date: Sat, 29 Nov 2008 21:31:10 +0100 Message-ID: <874p1qgtpt.fsf@escher.local.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 1. emacs -Q 2. Eval this: (defun testme () (save-selected-window (switch-to-buffer "testme"))) If `testme' is not a fresh buffer, see observation (a) below. 3. Eval (run-at-time 3 nil 'testme) and wait 3 seconds. 4. When the `testme' buffer appears, move the mouse cursor over the mode line; as soon as it hits a position that has a help-echo property containing the string "mouse-2", the following error is raised: mouse-posn-property: Args out of range: 719 The out of range number is (point) in step 3. Backtrace: Debugger entered--Lisp error: (args-out-of-range 719) get-char-property(719 follow-link #) mouse-posn-property((# mode-line (467 . 644) 0 (#("-%-" 0 3 ...) . 2) 719 (58 . 46) nil (2 . 4) (8 . 16)) follow-link) (or (mouse-posn-property pos (quote follow-link)) (key-binding [follow-link] nil t pos)) (and (or (not ...) mouse-1-click-in-non-selected-windows (eq ... ...)) (or (mouse-posn-property pos ...) (key-binding [follow-link] nil t pos))) (let ((action ...)) (cond (... ...) (... ...) (t action))) mouse-on-link-p((# mode-line (467 . 644) 0 (#("-%-" 0 3 ...) . 2) 719 (58 . 46) nil (2 . 4) (8 . 16))) mouse-fixup-help-message("mouse-1: Select (drag to resize)\nmouse-2: Make current window occupy the whole frame\nmouse-3: Remove current window from display") Observations: a. The error only occurs when (point) of the the buffer that is current when step 3 is carried out, is greater than (point-max) of the buffer `testme'. b. The error only occurs when testme is called from a timer. c. The error only occurs when the function called from the timer contains a call to save-selected-window. d. The error only occurs with propertized text satisfying mouse-on-link-p in either the mode line or the header line, i.e., suitably propertized text inserted into the editing area of the buffer does not induce the error. In GNU Emacs 23.0.60.17 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-11-29 on escher Windowing system distributor `The X.Org Foundation', version 11.0.10400090 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t ------------=_1228260003-387-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1458-done) by emacsbugs.donarmstrong.com; 2 Dec 2008 23:13:46 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2NDhQk031604 for <1458-done@emacsbugs.donarmstrong.com>; Tue, 2 Dec 2008 15:13:44 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id D1E8257E1FC; Tue, 2 Dec 2008 18:13:44 -0500 (EST) From: Chong Yidong To: Stefan Monnier Cc: 1458-done@emacsbugs.donarmstrong.com Subject: Re: bug#1458: 23.0.60; mouse-posn-property: Args out of range References: <874p1qgtpt.fsf@escher.local.home> <87skp6jzv4.fsf@cyd.mit.edu> Date: Tue, 02 Dec 2008 18:13:44 -0500 In-Reply-To: (Stefan Monnier's message of "Tue, 02 Dec 2008 17:49:57 -0500") Message-ID: <87zlje41cn.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: > I think we need to track this bug further down. Maybe the problem is > that some code uses current_buffer (maybe to build the mouse events?) > rather than selected_window->buffer. I've made a change to make_lispy_position that should solve this. ------------=_1228260003-387-0--