From unknown Mon Jun 16 23:39:40 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#36385 <36385@debbugs.gnu.org> To: bug#36385 <36385@debbugs.gnu.org> Subject: Status: Missing delete-selection-mode annotations on some regions Reply-To: bug#36385 <36385@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:39:40 +0000 retitle 36385 Missing delete-selection-mode annotations on some regions reassign 36385 auctex submitter 36385 Cl=C3=A9ment Pit-Claudel severity 36385 normal tag 36385 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 25 21:30:05 2019 Received: (at submit) by debbugs.gnu.org; 26 Jun 2019 01:30:05 +0000 Received: from localhost ([127.0.0.1]:33936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfwl9-0006bz-Ti for submit@debbugs.gnu.org; Tue, 25 Jun 2019 21:30:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:49614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfwl6-0006b1-SC for submit@debbugs.gnu.org; Tue, 25 Jun 2019 21:30:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55439) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfwl5-0001eA-D9 for bug-auctex@gnu.org; Tue, 25 Jun 2019 21:30:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfwl1-0004MJ-3H for bug-auctex@gnu.org; Tue, 25 Jun 2019 21:29:57 -0400 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:35192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfwl0-0004LA-RN for bug-auctex@gnu.org; Tue, 25 Jun 2019 21:29:54 -0400 Received: by mail-qk1-x72e.google.com with SMTP id l128so349762qke.2 for ; Tue, 25 Jun 2019 18:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Wk9RltrXkG7H0jv/3+HOsXgDu5GMXb7ndURivSRxYU4=; b=MOVn8GGW0hR9Y+c6uoX7jakAouk4UYf996Za7HOI4+Xcitwe5oSZ9fygJiYoWOCZQW p5lpjECouICZb3b9A+AJKp2Av0q/EI7F6blGSzcMRRQBEayVgrum6W7Hx9mCVWJS+kO5 mdXRsA7BpOWLgMdHymD3pgXpGSA785VQQttA7ZfPcDcdI997iF454ublxPB5eDmdg4QY 3LVRiM6uSTPYQb/w2qR6AkhbNIibhPrzIroSwAf+Sja9IMeKwEC7tBcUG734BnLrYT3W F6ahrR0jO2yEZgP61g9aOAo48VVaMtvE2dJHEoODH9q0+1h7tynSUprwueQhdKpezt1u T7/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=Wk9RltrXkG7H0jv/3+HOsXgDu5GMXb7ndURivSRxYU4=; b=dTh22l9CS5bH2rztw+D+/DmfFZmCp343Xjf17YrAHjYFGKXmeceywTgO4U5u3F+fWU LlqEaKnToh0LLsrZSFYLjG5NUCIegdM/em+2k1P52LEssivkFEe5X0QubHnTyiuHPh7K d+goCwfriVbkU6fNB+MSYNJRpCLMx8RdBHWPDTFYMv6hGathmThJV7SMncxZfJcPen5b xQDw47t6KYI9+Lsm6FxhRQLX6Mp23wbwVU1hx+y9BiDRIMOaoteft3ggmhCBJpwptT9B 5d3699K80T/DM9YSXIbse5oS0jhhvCUIgKOmjyAUDQQmTkaFdyaAWRGiQy2A960D/0/t jWZw== X-Gm-Message-State: APjAAAW5DPP1LaJzhVQg+nktKr9V8RljQZB5iya2Tz2v65NX7/reu/34 tvsmBSNYQwSlGCqLjEB12CpKT8no X-Google-Smtp-Source: APXvYqyyVbeO/pk6oLWs2u7rJ8qE16JS08SjUuUUK1hJKnEFbsqUt9EbnwHeO3Zs/a6bUGFTxdmiUQ== X-Received: by 2002:a37:9144:: with SMTP id t65mr1595886qkd.367.1561512593450; Tue, 25 Jun 2019 18:29:53 -0700 (PDT) Received: from ?IPv6:2601:184:4180:66e7:f973:3492:737c:7cdc? ([2601:184:4180:66e7:f973:3492:737c:7cdc]) by smtp.googlemail.com with ESMTPSA id w9sm7967999qki.81.2019.06.25.18.29.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jun 2019 18:29:52 -0700 (PDT) To: bug-auctex From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Subject: Missing delete-selection-mode annotations on some regions Message-ID: <28d9dd50-d217-90ea-304d-e56a7556d9e9@gmail.com> 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72e X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 27 09:22:50 2019 Received: (at 36385) by debbugs.gnu.org; 27 Jun 2019 13:22:50 +0000 Received: from localhost ([127.0.0.1]:37667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgUMU-0000K1-9k for submit@debbugs.gnu.org; Thu, 27 Jun 2019 09:22:50 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:38996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgUMR-0000Jr-Vv for 36385@debbugs.gnu.org; Thu, 27 Jun 2019 09:22:49 -0400 Received: from localhost (210-20-196-114.rev.home.ne.jp [210.20.196.114]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 72BF69B; Thu, 27 Jun 2019 22:22:45 +0900 (JST) From: Ikumi Keita To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Subject: Re: bug#36385: Missing delete-selection-mode annotations on some regions In-reply-to: <28d9dd50-d217-90ea-304d-e56a7556d9e9@gmail.com> References: <28d9dd50-d217-90ea-304d-e56a7556d9e9@gmail.com> Comments: In-reply-to =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel message dated "Tue, 25 Jun 2019 21:29:51 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Thu, 27 Jun 2019 22:22:44 +0900 Message-ID: <5496.1561641764@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36385 Cc: 36385@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Cl=E9ment, >>>>> Cl=E9ment Pit-Claudel 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 28 08:22:15 2019 Received: (at control) by debbugs.gnu.org; 28 Jun 2019 12:22:15 +0000 Received: from localhost ([127.0.0.1]:40482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgptO-0007WO-RR for submit@debbugs.gnu.org; Fri, 28 Jun 2019 08:22:15 -0400 Received: from smtp1.inetd.co.jp ([210.129.88.11]:57690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgptN-0007WF-5Z for control@debbugs.gnu.org; Fri, 28 Jun 2019 08:22:13 -0400 Received: from localhost (210-20-196-114.rev.home.ne.jp [210.20.196.114]) by smtp1.inetd.co.jp (Postfix) with ESMTPA id 7739F96 for ; Fri, 28 Jun 2019 21:22:11 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #36385 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3565.1561724530.1@localhost> Date: Fri, 28 Jun 2019 21:22:11 +0900 Message-ID: <3566.1561724531@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36385 fixed close 36385 quit From unknown Mon Jun 16 23:39:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 27 Jul 2019 11:24:08 +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