GNU bug report logs -
#8989
keymap text property applies beyond the region it is set to
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8989 in the body.
You can then email your comments to 8989 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8989
; Package
emacs
.
(Sun, 03 Jul 2011 06:27:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dmitry Kurochkin <dmitry.kurochkin <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 03 Jul 2011 06:27:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8989
; Package
emacs
.
(Sun, 03 Jul 2011 14:59:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 8989 <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8989
; Package
emacs
.
(Sun, 03 Jul 2011 21:48:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 8989 <at> debbugs.gnu.org (full text, mbox):
On Sun, 03 Jul 2011 10:57:51 -0400, Stefan Monnier <monnier <at> iro.umontreal.ca> 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
bug closed, send any further explanations to
8989 <at> debbugs.gnu.org and Dmitry Kurochkin <dmitry.kurochkin <at> gmail.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Sat, 20 Aug 2011 22:48:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 18 Sep 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 334 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.