From unknown Tue Jun 17 01:31:46 2025 X-Loop: don@donarmstrong.com Subject: bug#1458: 23.0.60; mouse-posn-property: Args out of range Reply-To: Stephen Berman , 1458@debbugs.gnu.org Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 29 Nov 2008 20:40:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1458 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122799089321228 (code B ref -1); Sat, 29 Nov 2008 20:40:05 +0000 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 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 From unknown Tue Jun 17 01:31:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Stephen Berman Subject: bug#1458 closed by Chong Yidong (Re: 23.0.60; mouse-posn-property: Args out of range) Message-ID: References: <87k5alru8r.fsf@cyd.mit.edu> <874p1qgtpt.fsf@escher.local.home> X-Emacs-PR-Message: they-closed 1458 X-Emacs-PR-Package: emacs Reply-To: 1458@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1228067104-23558-1" This is a multi-part message in MIME format... ------------=_1228067104-23558-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1458: 23.0.60; mouse-posn-property: Args out of range It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 1458: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1458 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1228067104-23558-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sun Nov 30 09:36:38 2008 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=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1458-done) by emacsbugs.donarmstrong.com; 30 Nov 2008 17:36:38 +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 mAUHaZtD022192 for <1458-done@emacsbugs.donarmstrong.com>; Sun, 30 Nov 2008 09:36:36 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 6230E57E09E; Sun, 30 Nov 2008 12:36:36 -0500 (EST) From: Chong Yidong To: Stephen Berman Cc: 1458-done@debbugs.gnu.org Subject: Re: 23.0.60; mouse-posn-property: Args out of range Date: Sun, 30 Nov 2008 12:36:36 -0500 Message-ID: <87k5alru8r.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 1. emacs -Q > > 2. Eval this: > > (defun testme () > (save-selected-window > (switch-to-buffer "testme"))) > > 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 I've checked in a fix. Thanks. ------------=_1228067104-23558-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From stephen.berman@gmx.net Sat Nov 29 12:34:53 2008 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 ------------=_1228067104-23558-1-- From unknown Tue Jun 17 01:31:46 2025 X-Loop: don@donarmstrong.com Subject: bug#1458: 23.0.60; mouse-posn-property: Args out of range Reply-To: Stefan Monnier , 1458@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Dec 2008 15:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1458 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1458-submit@emacsbugs.donarmstrong.com id=B1458.12282307146835 (code B ref 1458); Tue, 02 Dec 2008 15:20:03 +0000 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.7 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1458) by emacsbugs.donarmstrong.com; 2 Dec 2008 15:11:54 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2FBorU006829 for <1458@emacsbugs.donarmstrong.com>; Tue, 2 Dec 2008 07:11:51 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEABrfNEnO+Jkl/2dsb2JhbACBbdEWgn+BIw X-IronPort-AV: E=Sophos;i="4.33,702,1220241600"; d="scan'208";a="30538172" Received: from 206-248-153-37.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.37]) by ironport2-out.teksavvy.com with ESMTP; 02 Dec 2008 10:11:39 -0500 Received: by pastel.home (Postfix, from userid 20848) id 3153C8BAF; Tue, 2 Dec 2008 10:11:39 -0500 (EST) From: Stefan Monnier To: Chong Yidong Cc: 1458@debbugs.gnu.org Message-ID: References: <874p1qgtpt.fsf@escher.local.home> Date: Tue, 02 Dec 2008 10:11:39 -0500 In-Reply-To: <874p1qgtpt.fsf@escher.local.home> (Stephen Berman's message of "Sat, 29 Nov 2008 21:31:10 +0100") 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 You patch to timer_check doesn't seem right: it may cause the current-buffer to be changed even if the timer doesn't do anything, just because the current-buffer before running the timer wasn't the selected-window's buffer. It causes no end of trouble in Gnus (e.g. when connecting to an IMAP server, it calls read-passwd during which calls to read-event can run timers, so we start read-passwd in the IMAP process's buffer and we finish it in the *Group* buffer or which ever buffer is currently displayed, after which send-process-string fails because it can't find the process). Stefan From unknown Tue Jun 17 01:31:46 2025 X-Loop: don@donarmstrong.com Subject: bug#1458: 23.0.60; mouse-posn-property: Args out of range Reply-To: Chong Yidong , 1458@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Dec 2008 16:45:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1458 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1458-submit@emacsbugs.donarmstrong.com id=B1458.122823595328444 (code B ref 1458); Tue, 02 Dec 2008 16:45:02 +0000 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.4 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1458) by emacsbugs.donarmstrong.com; 2 Dec 2008 16:39:13 +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 mB2GdA2r028438 for <1458@emacsbugs.donarmstrong.com>; Tue, 2 Dec 2008 08:39:11 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 75D9157E1FC; Tue, 2 Dec 2008 11:39:11 -0500 (EST) From: Chong Yidong To: Stefan Monnier Cc: 1458@debbugs.gnu.org References: <874p1qgtpt.fsf@escher.local.home> Date: Tue, 02 Dec 2008 11:39:11 -0500 In-Reply-To: (Stefan Monnier's message of "Tue, 02 Dec 2008 10:11:39 -0500") Message-ID: <87skp6jzv4.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: > You patch to timer_check doesn't seem right: it may cause the > current-buffer to be changed even if the timer doesn't do anything, just > because the current-buffer before running the timer wasn't the > selected-window's buffer. It causes no end of trouble in Gnus > (e.g. when connecting to an IMAP server, it calls read-passwd during > which calls to read-event can run timers, so we start read-passwd in > the IMAP process's buffer and we finish it in the *Group* buffer or > which ever buffer is currently displayed, after which > send-process-string fails because it can't find the process). I see. The change is reverted. Now I'm not certain how to deal with the problem described in bug#1458. Perhaps we should make the selected window's buffer current only if the selected window's buffer was current before running the timer. WDYT? From unknown Tue Jun 17 01:31:46 2025 X-Loop: don@donarmstrong.com Subject: bug#1458: 23.0.60; mouse-posn-property: Args out of range Reply-To: Stefan Monnier , 1458@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Dec 2008 22:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1458 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1458-submit@emacsbugs.donarmstrong.com id=B1458.122825820224720 (code B ref 1458); Tue, 02 Dec 2008 22:55:03 +0000 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=-6.5 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1458) by emacsbugs.donarmstrong.com; 2 Dec 2008 22:50:02 +0000 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2Mnwpc024714 for <1458@emacsbugs.donarmstrong.com>; Tue, 2 Dec 2008 14:49:59 -0800 Received: from alfajor.home (vpn-132-204-232-176.acd.umontreal.ca [132.204.232.176]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mB2MoX9J023559; Tue, 2 Dec 2008 17:50:34 -0500 Received: by alfajor.home (Postfix, from userid 20848) id 5D76E1C1D9; Tue, 2 Dec 2008 17:49:57 -0500 (EST) From: Stefan Monnier To: Chong Yidong Cc: 1458@debbugs.gnu.org Message-ID: References: <874p1qgtpt.fsf@escher.local.home> <87skp6jzv4.fsf@cyd.mit.edu> Date: Tue, 02 Dec 2008 17:49:57 -0500 In-Reply-To: <87skp6jzv4.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 02 Dec 2008 11:39:11 -0500") 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-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3160=0 >> You patch to timer_check doesn't seem right: it may cause the >> current-buffer to be changed even if the timer doesn't do anything, just >> because the current-buffer before running the timer wasn't the >> selected-window's buffer. It causes no end of trouble in Gnus >> (e.g. when connecting to an IMAP server, it calls read-passwd during >> which calls to read-event can run timers, so we start read-passwd in >> the IMAP process's buffer and we finish it in the *Group* buffer or >> which ever buffer is currently displayed, after which >> send-process-string fails because it can't find the process). > I see. The change is reverted. > Now I'm not certain how to deal with the problem described in bug#1458. > Perhaps we should make the selected window's buffer current only if the > selected window's buffer was current before running the timer. WDYT? I don't think so. 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. Stefan From unknown Tue Jun 17 01:31:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Stephen Berman Subject: bug#1458 closed by Chong Yidong (Re: bug#1458: 23.0.60; mouse-posn-property: Args out of range) Message-ID: References: <87zlje41cn.fsf@cyd.mit.edu> <874p1qgtpt.fsf@escher.local.home> X-Emacs-PR-Message: they-closed 1458 X-Emacs-PR-Package: emacs Reply-To: 1458@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1228260003-387-1" This is a multi-part message in MIME format... ------------=_1228260003-387-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1458: 23.0.60; mouse-posn-property: Args out of range It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 1458: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1458 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1228260003-387-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Tue Dec 2 15:13:46 2008 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@debbugs.gnu.org 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-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From stephen.berman@gmx.net Sat Nov 29 12:34:53 2008 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-1--