From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8989: keymap text property applies beyond the region it is set to Date: Sun, 03 Jul 2011 10:57:51 -0400 Message-ID: References: <87boxbg9sa.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309705171 9218 80.91.229.12 (3 Jul 2011 14:59:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2011 14:59:31 +0000 (UTC) Cc: 8989@debbugs.gnu.org To: Dmitry Kurochkin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 03 16:59:25 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdO8r-0004sD-Ig for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 16:59:25 +0200 Original-Received: from localhost ([::1]:34946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdO8q-00038n-94 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 10:59:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdO8W-00038M-As for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 10:59:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdO8V-0003MT-8s for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 10:59:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdO8U-0003MI-IG for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 10:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdO8T-0000w9-KN; Sun, 03 Jul 2011 10:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jul 2011 14:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8989 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8989-submit@debbugs.gnu.org id=B8989.13097050833533 (code B ref 8989); Sun, 03 Jul 2011 14:59:01 +0000 Original-Received: (at 8989) by debbugs.gnu.org; 3 Jul 2011 14:58:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdO7V-0000ul-NM for submit@debbugs.gnu.org; Sun, 03 Jul 2011 10:58:02 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdO7T-0000uP-UI; Sun, 03 Jul 2011 10:58:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAACDEE5FxIxr/2dsb2JhbABSp3x4iHrAWoY2BJ5chCw X-IronPort-AV: E=Sophos;i="4.65,468,1304308800"; d="scan'208";a="120013229" Original-Received: from 69-196-140-107.dsl.teksavvy.com (HELO ceviche.home) ([69.196.140.107]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 03 Jul 2011 10:57:52 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D6C2D66112; Sun, 3 Jul 2011 10:57:51 -0400 (EDT) In-Reply-To: <87boxbg9sa.fsf@gmail.com> (Dmitry Kurochkin's message of "Sun, 03 Jul 2011 10:25:57 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 03 Jul 2011 10:59:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47838 Archived-At: tags 8989 +notabug thanks > When keymap text property is set, it changes key binding for one > character after the region it is set to. The following code > demonstrates the problem: No: in your case, the text property covers characters between positions 1 to 4, and point is at position 4 (right in front of the char at position 4 and right after the char at position 3), i.e. right on the boundary of the text-property. When on the boundary, the behavior will depend on whether the property is sticky or not, so you can control it by twiddling the "front-advance, read-advance" settings of your overlays or the rear-non-stick and front-sticky text-properties. Stefan