GNU bug report logs - #36385
Missing delete-selection-mode annotations on some regions

Previous Next

Package: auctex;

Reported by: Clément Pit-Claudel <cpitclaudel <at> gmail.com>

Date: Wed, 26 Jun 2019 01:31:01 UTC

Severity: normal

Tags: fixed

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36385 in the body.
You can then email your comments to 36385 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#36385; Package auctex. (Wed, 26 Jun 2019 01:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Clément Pit-Claudel <cpitclaudel <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Wed, 26 Jun 2019 01:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit-Claudel <cpitclaudel <at> gmail.com>
To: bug-auctex <bug-auctex <at> gnu.org>
Subject: Missing delete-selection-mode annotations on some regions
Date: Tue, 25 Jun 2019 21:29:51 -0400
Hi there,

AucTeX rebinds some keys normally bound to self-insert-command, but doesn't put the appropriate 'delete-selection properties on the corresponding commands.  As a result, when in delete-selection-mode, selecting some text and pressing '{' doesn't replace the selected text (instead, it inserts '{' next to it).

Here is what delsel.el says:
  
;; Commands which will delete the selection need a 'delete-selection
;; property on their symbols; commands which insert text but don't
;; have this property won't delete the selection.  It can be one of
;; the values:
;;  `yank'
;;      For commands which do a yank; ensures the region about to be
;;      deleted isn't immediately yanked back, which would make the
;;      command a no-op.
;;  `supersede'
;;      Delete the active region and ignore the current command,
;;      i.e. the command will just delete the region.  This is for
;;      commands that normally delete small amounts of text, like
;;      a single character -- they will instead delete the whole
;;      active region.
;;  `kill'
;;      `kill-region' is used on the selection, rather than
;;      `delete-region'.  (Text selected with the mouse will typically
;;      be yankable anyhow.)
;;  t
;;      The normal case: delete the active region prior to executing
;;      the command which will insert replacement text.
;;  FUNCTION
;;      For commands which need to dynamically determine this behavior.
;;      FUNCTION should take no argument and return one of the above
;;      values, or nil.  In the latter case, FUNCTION should itself
;;      do with the active region whatever is appropriate."

Emacs  : GNU Emacs 27.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2019-05-14
Package: 12.1.2

current state:
==============
(setq
 AUCTeX-date "2019-02-08"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex" "/home/clement/.emacs.d/.cask/27.0/elpa/auctex-12.1.2/style" "/home/clement/.emacs.d/auctex/auto"
                  "/home/clement/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t)

Cheers,
Clément.




Information forwarded to bug-auctex <at> gnu.org:
bug#36385; Package auctex. (Thu, 27 Jun 2019 13:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 36385 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Clément Pit-Claudel <cpitclaudel <at> gmail.com>
Cc: 36385 <at> debbugs.gnu.org
Subject: Re: bug#36385: Missing delete-selection-mode annotations on some
 regions
Date: Thu, 27 Jun 2019 22:22:44 +0900
Hi Clément,

>>>>> Clément Pit-Claudel <cpitclaudel <at> gmail.com> writes:
> AucTeX rebinds some keys normally bound to self-insert-command, but
> doesn't put the appropriate 'delete-selection properties on the
> corresponding commands.  As a result, when in delete-selection-mode,
> selecting some text and pressing '{' doesn't replace the selected text
> (instead, it inserts '{' next to it).

I assume you are talking about the behavior in LaTeX mode buffers.  I
have just pushed fix to the git repository for the command
`LaTeX-insert-left-brace', to which '{', '(' and '[' are bound.  Other
keys normally bound to `self-insert-command' are not affected by this
commit.

Regards,
Ikumi Keita




Added tag(s) fixed. Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Fri, 28 Jun 2019 12:23:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 36385 <at> debbugs.gnu.org and Clément Pit-Claudel <cpitclaudel <at> gmail.com> Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Fri, 28 Jun 2019 12:23:03 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. (Sat, 27 Jul 2019 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 326 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.