[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36385: Missing delete-selection-mode annotations on some regions
From: |
Clément Pit-Claudel |
Subject: |
bug#36385: Missing delete-selection-mode annotations on some regions |
Date: |
Tue, 25 Jun 2019 21:29:51 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 |
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.
- bug#36385: Missing delete-selection-mode annotations on some regions,
Clément Pit-Claudel <=