From unknown Sat Aug 16 10:50:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8989 <8989@debbugs.gnu.org> To: bug#8989 <8989@debbugs.gnu.org> Subject: Status: keymap text property applies beyond the region it is set to Reply-To: bug#8989 <8989@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:50:36 +0000 retitle 8989 keymap text property applies beyond the region it is set to reassign 8989 emacs submitter 8989 Dmitry Kurochkin severity 8989 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 03 02:26:11 2011 Received: (at submit) by debbugs.gnu.org; 3 Jul 2011 06:26:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdG8B-00024h-8Y for submit@debbugs.gnu.org; Sun, 03 Jul 2011 02:26:11 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdG8A-00024V-3O for submit@debbugs.gnu.org; Sun, 03 Jul 2011 02:26:10 -0400 Received: by bwb17 with SMTP id 17so3615660bwb.3 for ; Sat, 02 Jul 2011 23:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=XUHDz1Rli6u75lAb2WTIznd1jC3kxYMIbXyEWsxTtvY=; b=KGhpNxEIcTSh0PegMUuDYk1ooj8HddDlux/6jw1eERNV+EJaoJmfCFczX2wPLPRZ0p zWiBIL6cFUplo5U+Ic3P7Js+eoRSVNdel5vanxDhv5PXMd/5WJdtcn0W+PDZmpItQZ/U tFye5ZR8ZcHQR9nYOHSLKDNIH5MuOU6L6Fa2I= Received: by 10.204.48.88 with SMTP id q24mr1166732bkf.31.1309674364002; Sat, 02 Jul 2011 23:26:04 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id g13sm4434919bkd.22.2011.07.02.23.26.02 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Jul 2011 23:26:03 -0700 (PDT) From: Dmitry Kurochkin To: submit@debbugs.gnu.org Subject: keymap text property applies beyond the region it is set to User-Agent: Notmuch/0.5-321-g41686e2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sun, 03 Jul 2011 10:25:57 +0400 Message-ID: <87boxbg9sa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: submit 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.6 (---) Package: emacs Version: 23.3.1 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: (let ((map (make-sparse-keymap))) (define-key map (kbd "RET") 'bug) (switch-to-buffer "test") (insert "123456") (put-text-property 1 4 'keymap map) (goto-char 4) (message "keymap: %s" (get-text-property (point) 'keymap)) ; no keymap property here (message "key-binding: %s" (key-binding (kbd "RET")))) ; but the key binding is changed Regards, Dmitry From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 03 10:58:02 2011 Received: (at 8989) by debbugs.gnu.org; 3 Jul 2011 14:58:03 +0000 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 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" 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 Received: by ceviche.home (Postfix, from userid 20848) id D6C2D66112; Sun, 3 Jul 2011 10:57:51 -0400 (EDT) From: Stefan Monnier To: Dmitry Kurochkin Subject: Re: bug#8989: keymap text property applies beyond the region it is set to Message-ID: References: <87boxbg9sa.fsf@gmail.com> Date: Sun, 03 Jul 2011 10:57:51 -0400 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8989 Cc: 8989@debbugs.gnu.org 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.1 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 03 17:48:02 2011 Received: (at 8989) by debbugs.gnu.org; 3 Jul 2011 21:48:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdUWH-0002j4-Mm for submit@debbugs.gnu.org; Sun, 03 Jul 2011 17:48:01 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdUWF-0002im-HC for 8989@debbugs.gnu.org; Sun, 03 Jul 2011 17:48:00 -0400 Received: by bwb17 with SMTP id 17so3852395bwb.3 for <8989@debbugs.gnu.org>; Sun, 03 Jul 2011 14:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=kTZ3/3Vn7PabWzJNSq0eubSv1IxHRqMJv6N6w6DOK3U=; b=I/t0jwNGeQiamzmTt1Z4iXEtBKgYRu0KRMrzFLElIOKIMSPUnQ7liLbSgFrqmUUBI9 GwO6iIrDlOLm1q4fNmTKGRRIrbldz5MGQfuodEe2GHEO4x9bSrYZIBuaoybQ3SSlkuYB PD5XMa+Hid1+nbMDaX9gAadViSHGsKcMz8it8= Received: by 10.204.26.200 with SMTP id f8mr4815936bkc.99.1309729673371; Sun, 03 Jul 2011 14:47:53 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id g13sm4973511bkd.10.2011.07.03.14.47.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 14:47:52 -0700 (PDT) From: Dmitry Kurochkin To: Stefan Monnier Subject: Re: bug#8989: keymap text property applies beyond the region it is set to In-Reply-To: References: <87boxbg9sa.fsf@gmail.com> User-Agent: Notmuch/0.5-321-g41686e2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Mon, 04 Jul 2011 01:47:46 +0400 Message-ID: <87fwmn3ukd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8989 Cc: 8989@debbugs.gnu.org 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.6 (---) On Sun, 03 Jul 2011 10:57:51 -0400, Stefan Monnier wrote: > 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, thank you for the explanation and sorry for a false but report! Regards, Dmitry > > Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 20 18:47:42 2011 Received: (at control) by debbugs.gnu.org; 20 Aug 2011 22:47: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 1QuuKM-0005Jw-61 for submit@debbugs.gnu.org; Sat, 20 Aug 2011 18:47:42 -0400 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QuuKJ-0005Jp-LO for control@debbugs.gnu.org; Sat, 20 Aug 2011 18:47:40 -0400 Received: from furball ([64.134.100.139]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7KMjPcS019728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 20 Aug 2011 18:45:26 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8989 Date: Sat, 20 Aug 2011 18:45:24 -0400 Message-ID: <8762lrwvln.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control 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 (--) close 8989 thanks From unknown Sat Aug 16 10:50:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Sep 2011 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator