From unknown Tue Jun 17 01:39:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6687: [24.0.50] end-of-buffer cursor position with an overlay Resent-From: Tetsuo Tsukamoto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2010 09:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6687@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12797039627236 (code B ref -1); Wed, 21 Jul 2010 09:20:03 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jul 2010 09:19:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObVST-0001sf-Qs for submit@debbugs.gnu.org; Wed, 21 Jul 2010 05:19:22 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObV8v-0001jm-OR for submit@debbugs.gnu.org; Wed, 21 Jul 2010 04:59:10 -0400 Received: from lists.gnu.org ([199.232.76.165]:53503) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ObV9L-0002Fu-Tt for submit@debbugs.gnu.org; Wed, 21 Jul 2010 04:59:35 -0400 Received: from [140.186.70.92] (port=34018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObV9K-0007kc-0I for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 04:59:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HK_RANDOM_ENVFROM, T_RP_MATCHES_RCVD,X_IP autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObV9I-00028g-Ie for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 04:59:33 -0400 Received: from mailv2.ecc.u-tokyo.ac.jp ([133.11.70.76]:36693) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObV9I-00028G-Aw for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 04:59:32 -0400 Received: from ms004.ecc.u-tokyo.ac.jp (ms004.ecc.u-tokyo.ac.jp [133.11.70.174]) by mailv2.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 557C86C004B for ; Wed, 21 Jul 2010 17:59:28 +0900 (JST) Received: from jitaku.ims.u-tokyo.ac.jp (126.101.169.56 [126.101.169.56]) by ms004.ecc.u-tokyo.ac.jp (deepsmtpd.stn.b 3.5.75) with ESMTP id for ; Wed, 21 Jul 2010 17:59:24 +0900 From: Tetsuo Tsukamoto Date: Wed, 21 Jul 2010 17:59:23 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IP: 126.101.169.56 X-FROM-DOMAIN: ims.u-tokyo.ac.jp X-FROM-EMAIL: czkmt@ims.u-tokyo.ac.jp X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.4 (---) X-Mailman-Approved-At: Wed, 21 Jul 2010 05:19:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) Hi, Emacs 24.0.50 displays end-of-buffer cursor at different position from where Emacs 23 does when there is an overlay at eob with before- or after-string. Emacs 24.0.50: o $ emacs -Q Then point is at eob. o M-: (overlay-put (make-overlay (point) (point)) 'before-string "?") Then cursor is placed on "?". (cursor position is indicated with [ and ]) 0) [?] o Typing x (or any other char) twice results in the following behavior. 1) [?]x 2) ?xx[] Emacs 24.0.50, point not at eob: 0) ?[] 1) ?x[] 2) ?xx[] Emacs 23.2, point at eob or not at eob: 0) ?[] 1) ?x[] 2) ?xx[] So only Emacs 24.0.50 with point at eob displays cursor differently relative to an overlay placed at eob. -- Tetsuo Tsukamoto From unknown Tue Jun 17 01:39:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6687: [24.0.50] end-of-buffer cursor position with an overlay References: In-Reply-To: Resent-From: Tetsuo Tsukamoto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2010 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6687@debbugs.gnu.org Received: via spool by 6687-submit@debbugs.gnu.org id=B6687.127972714225356 (code B ref 6687); Wed, 21 Jul 2010 15:46:01 +0000 Received: (at 6687) by debbugs.gnu.org; 21 Jul 2010 15:45:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObbUL-0006av-PN for submit@debbugs.gnu.org; Wed, 21 Jul 2010 11:45:42 -0400 Received: from mailv2.ecc.u-tokyo.ac.jp ([133.11.70.76]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObbLx-0006Vs-MY for 6687@debbugs.gnu.org; Wed, 21 Jul 2010 11:37:02 -0400 Received: from ms001.ecc.u-tokyo.ac.jp (ms001.ecc.u-tokyo.ac.jp [133.11.70.171]) by mailv2.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 98B196C004B for <6687@debbugs.gnu.org>; Thu, 22 Jul 2010 00:37:26 +0900 (JST) Received: from jitaku.ims.u-tokyo.ac.jp (59.157.29.214 [59.157.29.214]) by ms001.ecc.u-tokyo.ac.jp (deepsmtpd.stn.b 3.5.75) with ESMTP id for <6687@debbugs.gnu.org>; Thu, 22 Jul 2010 00:37:17 +0900 From: Tetsuo Tsukamoto Date: Thu, 22 Jul 2010 00:37:16 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IP: 59.157.29.214 X-FROM-DOMAIN: ims.u-tokyo.ac.jp X-FROM-EMAIL: czkmt@ims.u-tokyo.ac.jp X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: With further testings, I noticed that the condition where problem is reproduced is not (eobp) but (and (bolp) (eolp)), i.e. when point is at an empty line. In addition, I should correct the conclusion of my first message as follows. [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.2 X_IP Message has X-IP header -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 2.0 FAKE_REPLY_C FAKE_REPLY_C X-Mailman-Approved-At: Wed, 21 Jul 2010 11:45:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: With further testings, I noticed that the condition where problem is reproduced is not (eobp) but (and (bolp) (eolp)), i.e. when point is at an empty line. In addition, I should correct the conclusion of my first message as follows. [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.2 X_IP Message has X-IP header -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 2.0 FAKE_REPLY_C FAKE_REPLY_C With further testings, I noticed that the condition where problem is reproduced is not (eobp) but (and (bolp) (eolp)), i.e. when point is at an empty line. In addition, I should correct the conclusion of my first message as follows. Emacs 24.0.50 with point at an empty line displays cursor differently relative to an overlay placed at the point. In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-07-21 on t400s.localdomain Windowing system distributor `Fedora Project', version 11.0.10802000 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: ja_JP.utf8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8 default enable-multibyte-characters: t Major mode: Lisp Interaction -- Tetsuo Tsukamoto From unknown Tue Jun 17 01:39:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6687: [24.0.50] end-of-buffer cursor position with an overlay Resent-From: Tetsuo Tsukamoto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2010 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6687@debbugs.gnu.org Received: via spool by 6687-submit@debbugs.gnu.org id=B6687.127972953326474 (code B ref 6687); Wed, 21 Jul 2010 16:26:01 +0000 Received: (at 6687) by debbugs.gnu.org; 21 Jul 2010 16:25:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Obc6u-0006sx-Jo for submit@debbugs.gnu.org; Wed, 21 Jul 2010 12:25:32 -0400 Received: from mailv2.ecc.u-tokyo.ac.jp ([133.11.70.76]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Obc6s-0006sq-QE for 6687@debbugs.gnu.org; Wed, 21 Jul 2010 12:25:32 -0400 Received: from ms003.ecc.u-tokyo.ac.jp (ms003.ecc.u-tokyo.ac.jp [133.11.70.173]) by mailv2.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id AA51F6C004C for <6687@debbugs.gnu.org>; Thu, 22 Jul 2010 01:25:55 +0900 (JST) Received: from jitaku.ims.u-tokyo.ac.jp (59.157.29.214 [59.157.29.214]) by ms003.ecc.u-tokyo.ac.jp (deepsmtpd.stn.b 3.5.75) with ESMTP id for <6687@debbugs.gnu.org>; Thu, 22 Jul 2010 01:25:47 +0900 From: Tetsuo Tsukamoto References: Date: Thu, 22 Jul 2010 01:25:46 +0900 In-Reply-To: (Tetsuo Tsukamoto's message of "Thu, 22 Jul 2010 00:37:16 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IP: 59.157.29.214 X-FROM-DOMAIN: ims.u-tokyo.ac.jp X-FROM-EMAIL: czkmt@ims.u-tokyo.ac.jp X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sorry for many postings, With additional testings I found the following relationships between point positions and the cursor behaviors under Emacs 24.0.50. Invoked Emacs with emacs -Q. After I moved the point so as to meet one of the four conditions mentioned in results, I did the following. [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.2 X_IP Message has X-IP header -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0001] 1.0 AWL AWL: From: address is in the auto white-list X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sorry for many postings, With additional testings I found the following relationships between point positions and the cursor behaviors under Emacs 24.0.50. Invoked Emacs with emacs -Q. After I moved the point so as to meet one of the four conditions mentioned in results, I did the following. [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.2 X_IP Message has X-IP header -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.7 AWL AWL: From: address is in the auto white-list Sorry for many postings, With additional testings I found the following relationships between point positions and the cursor behaviors under Emacs 24.0.50. Invoked Emacs with emacs -Q. After I moved the point so as to meet one of the four conditions mentioned in results, I did the following. 0) M-: (overlay-put (make-overlay (point) (point)) 'before-string "?") 1) Type x. 2) Type additional x. Results were as follows (cursor position is indicated with [ and ]). initial point position : cursor behavior (and (eobp) (eolp)) : 0) [?] 1) [?]x 2) ?xx[] (and (not (eobp)) (eolp)): 0) [?] 1) ?x[] 2) ?xx[] (and (eobp) (not (eolp))): 0) ?[] 1) ?x[] 2) ?xx[] (not (or (eobp) (eolp))) : 0) ?[] 1) ?x[] 2) ?xx[] Suppose 1st result may not be expected. 2nd result is also different from what Emacs 23.2 produces. 3rd and 4th results seem OK. -- Tetsuo Tsukamoto From unknown Tue Jun 17 01:39:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6687: [24.0.50] end-of-buffer cursor position with an overlay Resent-From: Tetsuo Tsukamoto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2010 16:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6687@debbugs.gnu.org Received: via spool by 6687-submit@debbugs.gnu.org id=B6687.127973085327150 (code B ref 6687); Wed, 21 Jul 2010 16:48:01 +0000 Received: (at 6687) by debbugs.gnu.org; 21 Jul 2010 16:47:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObcSC-00073r-QU for submit@debbugs.gnu.org; Wed, 21 Jul 2010 12:47:32 -0400 Received: from mailv2.ecc.u-tokyo.ac.jp ([133.11.70.76]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObcSA-00073j-5d for 6687@debbugs.gnu.org; Wed, 21 Jul 2010 12:47:31 -0400 Received: from ms001.ecc.u-tokyo.ac.jp (ms001.ecc.u-tokyo.ac.jp [133.11.70.171]) by mailv2.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 18F826C004C for <6687@debbugs.gnu.org>; Thu, 22 Jul 2010 01:47:55 +0900 (JST) Received: from jitaku.ims.u-tokyo.ac.jp (59.157.29.214 [59.157.29.214]) by ms001.ecc.u-tokyo.ac.jp (deepsmtpd.stn.b 3.5.75) with ESMTP id for <6687@debbugs.gnu.org>; Thu, 22 Jul 2010 01:47:48 +0900 From: Tetsuo Tsukamoto References: Date: Thu, 22 Jul 2010 01:47:47 +0900 In-Reply-To: (Tetsuo Tsukamoto's message of "Thu, 22 Jul 2010 01:25:46 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IP: 59.157.29.214 X-FROM-DOMAIN: ims.u-tokyo.ac.jp X-FROM-EMAIL: czkmt@ims.u-tokyo.ac.jp X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Each (eobp) that appear in my previous message should be replaced with (bolp), as follows. initial point position : cursor behavior (and (bolp) (eolp)) : 0) [?] 1) [?]x 2) ?xx[] (and (not (bolp)) (eolp)): 0) [?] 1) ?x[] 2) ?xx[] (and (bolp) (not (eolp))): 0) ?[] 1) ?x[] 2) ?xx[] (not (or (bolp) (eolp))) : 0) ?[] 1) ?x[] 2) ?xx[] [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.2 X_IP Message has X-IP header -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.5 AWL AWL: From: address is in the auto white-list X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.0 (+) Each (eobp) that appear in my previous message should be replaced with (bolp), as follows. initial point position : cursor behavior (and (bolp) (eolp)) : 0) [?] 1) [?]x 2) ?xx[] (and (not (bolp)) (eolp)): 0) [?] 1) ?x[] 2) ?xx[] (and (bolp) (not (eolp))): 0) ?[] 1) ?x[] 2) ?xx[] (not (or (bolp) (eolp))) : 0) ?[] 1) ?x[] 2) ?xx[] -- Tetsuo Tsukamoto From unknown Tue Jun 17 01:39:14 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tetsuo Tsukamoto Subject: bug#6687: closed (Re: bug#6687: [24.0.50] end-of-buffer cursor position with an overlay) Message-ID: References: <83pqu1b78t.fsf@gnu.org> X-Gnu-PR-Message: they-closed 6687 X-Gnu-PR-Package: emacs Reply-To: 6687@debbugs.gnu.org Date: Fri, 19 Nov 2010 16:34:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1290184442-2616-1" This is a multi-part message in MIME format... ------------=_1290184442-2616-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6687: [24.0.50] end-of-buffer cursor position with an overlay which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6687@debbugs.gnu.org. --=20 6687: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6687 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1290184442-2616-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6687-done) by debbugs.gnu.org; 19 Nov 2010 16:33:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJTu0-0000fu-5m for submit@debbugs.gnu.org; Fri, 19 Nov 2010 11:33:32 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJTtx-0000fo-8D for 6687-done@debbugs.gnu.org; Fri, 19 Nov 2010 11:33:30 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LC500K004TLGV00@a-mtaout22.012.net.il> for 6687-done@debbugs.gnu.org; Fri, 19 Nov 2010 18:38:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.52.47]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LC500KY74W83020@a-mtaout22.012.net.il>; Fri, 19 Nov 2010 18:38:33 +0200 (IST) Date: Fri, 19 Nov 2010 18:36:34 +0200 From: Eli Zaretskii Subject: Re: bug#6687: [24.0.50] end-of-buffer cursor position with an overlay In-reply-to: X-012-Sender: halo1@inter.net.il To: Tetsuo Tsukamoto Message-id: <83pqu1b78t.fsf@gnu.org> References: X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 6687-done Cc: 6687-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > From: Tetsuo Tsukamoto > Date: Thu, 22 Jul 2010 01:25:46 +0900 > Cc: > > Invoked Emacs with emacs -Q. After I moved the point so as to meet > one of the four conditions mentioned in results, I did the > following. > > 0) M-: (overlay-put (make-overlay (point) (point)) 'before-string "?") > 1) Type x. > 2) Type additional x. > > Results were as follows (cursor position is indicated with [ and ]). > > initial point position : cursor behavior > (and (eobp) (eolp)) : 0) [?] 1) [?]x 2) ?xx[] > (and (not (eobp)) (eolp)): 0) [?] 1) ?x[] 2) ?xx[] > (and (eobp) (not (eolp))): 0) ?[] 1) ?x[] 2) ?xx[] > (not (or (eobp) (eolp))) : 0) ?[] 1) ?x[] 2) ?xx[] > > Suppose 1st result may not be expected. 2nd result is also > different from what Emacs 23.2 produces. 3rd and 4th results seem > OK. Sorry for such a long delay, but I finally fixed this (in revision 102440). Thanks for reporting this, and for a detailed test case. ------------=_1290184442-2616-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Jul 2010 09:19:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObVST-0001sf-Qs for submit@debbugs.gnu.org; Wed, 21 Jul 2010 05:19:22 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObV8v-0001jm-OR for submit@debbugs.gnu.org; Wed, 21 Jul 2010 04:59:10 -0400 Received: from lists.gnu.org ([199.232.76.165]:53503) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ObV9L-0002Fu-Tt for submit@debbugs.gnu.org; Wed, 21 Jul 2010 04:59:35 -0400 Received: from [140.186.70.92] (port=34018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObV9K-0007kc-0I for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 04:59:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HK_RANDOM_ENVFROM, T_RP_MATCHES_RCVD,X_IP autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObV9I-00028g-Ie for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 04:59:33 -0400 Received: from mailv2.ecc.u-tokyo.ac.jp ([133.11.70.76]:36693) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObV9I-00028G-Aw for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 04:59:32 -0400 Received: from ms004.ecc.u-tokyo.ac.jp (ms004.ecc.u-tokyo.ac.jp [133.11.70.174]) by mailv2.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 557C86C004B for ; Wed, 21 Jul 2010 17:59:28 +0900 (JST) Received: from jitaku.ims.u-tokyo.ac.jp (126.101.169.56 [126.101.169.56]) by ms004.ecc.u-tokyo.ac.jp (deepsmtpd.stn.b 3.5.75) with ESMTP id for ; Wed, 21 Jul 2010 17:59:24 +0900 From: Tetsuo Tsukamoto To: bug-gnu-emacs@gnu.org Subject: [24.0.50] end-of-buffer cursor position with an overlay Date: Wed, 21 Jul 2010 17:59:23 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IP: 126.101.169.56 X-FROM-DOMAIN: ims.u-tokyo.ac.jp X-FROM-EMAIL: czkmt@ims.u-tokyo.ac.jp X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 21 Jul 2010 05:19:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) Hi, Emacs 24.0.50 displays end-of-buffer cursor at different position from where Emacs 23 does when there is an overlay at eob with before- or after-string. Emacs 24.0.50: o $ emacs -Q Then point is at eob. o M-: (overlay-put (make-overlay (point) (point)) 'before-string "?") Then cursor is placed on "?". (cursor position is indicated with [ and ]) 0) [?] o Typing x (or any other char) twice results in the following behavior. 1) [?]x 2) ?xx[] Emacs 24.0.50, point not at eob: 0) ?[] 1) ?x[] 2) ?xx[] Emacs 23.2, point at eob or not at eob: 0) ?[] 1) ?x[] 2) ?xx[] So only Emacs 24.0.50 with point at eob displays cursor differently relative to an overlay placed at eob. -- Tetsuo Tsukamoto ------------=_1290184442-2616-1--