From unknown Tue Jun 24 01:41:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2010 06:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6348@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127563339722916 (code B ref -1); Fri, 04 Jun 2010 06:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jun 2010 06:36:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKQWC-0005xZ-Hn for submit@debbugs.gnu.org; Fri, 04 Jun 2010 02:36:37 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKQWA-0005xU-OF for submit@debbugs.gnu.org; Fri, 04 Jun 2010 02:36:35 -0400 Received: from lists.gnu.org ([199.232.76.165]:60611) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OKQW7-00039A-PF for submit@debbugs.gnu.org; Fri, 04 Jun 2010 02:36:31 -0400 Received: from [140.186.70.92] (port=34907 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKQW4-0003El-Gu for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 02:36:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKQW3-0003oL-Cn for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 02:36:28 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]:35393) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKQW3-0003nr-0T for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 02:36:27 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 8AA21C3C2 for ; Fri, 4 Jun 2010 08:36:23 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhdDAOo7CExV4S0jPGdsb2JhbACHbZZKDAEBAQE1Lb45hRYE X-IronPort-AV: E=Sophos;i="4.53,360,1272837600"; d="scan'208";a="87603753" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 04 Jun 2010 08:36:23 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 8395D7FA05A for ; Fri, 4 Jun 2010 08:36:22 +0200 (CEST) Message-ID: <4C089EE5.80700@swipnet.se> Date: Fri, 04 Jun 2010 08:36:21 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.8 (----) 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: -4.8 (----) % emacs -Q M-x delete-selection-mode C-x h C-x r i Notice that the whole text is deleted when i is pressed. If you then press a key, say a, it states that register does not conatin text, which is correct. But the text of the buffer is deleted, even though nothing replaced it. Undo gets you the text back, but it is inconvinient. Jan D. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /opt/emacs-trunk/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-06-04 on f12.localdomain Windowing system distributor `Fedora Project', version 11.0.10706000 configured using `configure '--prefix=/opt/emacs-trunk' '--verbose' '--enable-asserts' '--with-x-toolkit=lucid' 'CFLAGS=-O2 -g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t scroll-bar-mode: left global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x d e l e t e - s e l C-x h C-x r i a x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Delete-Selection mode enabled Mark set [3 times] insert-register: Register does not contain text Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message sendmail regexp-opt rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug cus-start cus-load delsel tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) From unknown Tue Jun 24 01:41:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2010 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 6348@debbugs.gnu.org Received: via spool by 6348-submit@debbugs.gnu.org id=B6348.127566995810167 (code B ref 6348); Fri, 04 Jun 2010 16:46:02 +0000 Received: (at 6348) by debbugs.gnu.org; 4 Jun 2010 16:45:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKa1u-0002dw-3J for submit@debbugs.gnu.org; Fri, 04 Jun 2010 12:45:58 -0400 Received: from smtp-out1.starman.ee ([85.253.0.3] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKa1q-0002dq-Qm for 6348@debbugs.gnu.org; Fri, 04 Jun 2010 12:45:56 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.96.205.cable.starman.ee [82.131.96.205]) by mx1.starman.ee (Postfix) with ESMTP id F2B553F40A1; Fri, 4 Jun 2010 19:45:45 +0300 (EEST) From: Juri Linkov Organization: JURTA References: <4C089EE5.80700@swipnet.se> Date: Fri, 04 Jun 2010 19:43:10 +0300 In-Reply-To: <4C089EE5.80700@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Fri, 04 Jun 2010 08:36:21 +0200") Message-ID: <878w6u3g0x.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) 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 (---) > % emacs -Q > M-x delete-selection-mode > C-x h C-x r i > > Notice that the whole text is deleted when i is pressed. If you then > press a key, say a, it states that register does not conatin text, which > is correct. But the text of the buffer is deleted, even though > nothing replaced it. Undo gets you the text back, but it is > inconvinient. What do you need undo when after deleting the selected region, you can type again `C-x r i' with the correct key and get the same result as you wanted before typing an incorrect key (i.e. the region gets deleted and text from the correct register still inserted into the buffer)? -- Juri Linkov http://www.jurta.org/emacs/ From unknown Tue Jun 24 01:41:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2010 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 6348@debbugs.gnu.org Received: via spool by 6348-submit@debbugs.gnu.org id=B6348.127568683018592 (code B ref 6348); Fri, 04 Jun 2010 21:28:02 +0000 Received: (at 6348) by debbugs.gnu.org; 4 Jun 2010 21:27:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKeQ2-0004pp-3x for submit@debbugs.gnu.org; Fri, 04 Jun 2010 17:27:10 -0400 Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKeQ0-0004pk-6U for 6348@debbugs.gnu.org; Fri, 04 Jun 2010 17:27:09 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 92C27CDF0 for <6348@debbugs.gnu.org>; Fri, 4 Jun 2010 23:27:03 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AudTAL4MCUxV4S0jPGdsb2JhbACHb5ZWDAEBAQE1Lb56hRcE X-IronPort-AV: E=Sophos;i="4.53,363,1272837600"; d="scan'208";a="87797600" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 04 Jun 2010 23:27:03 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 4AAC27FA05A; Fri, 4 Jun 2010 23:27:02 +0200 (CEST) Message-ID: <4C096FA6.1040904@swipnet.se> Date: Fri, 04 Jun 2010 23:27:02 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 References: <4C089EE5.80700@swipnet.se> <878w6u3g0x.fsf@mail.jurta.org> In-Reply-To: <878w6u3g0x.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.3 (---) 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.3 (---) Juri Linkov skrev 2010-06-04 18.43: >> % emacs -Q >> M-x delete-selection-mode >> C-x h C-x r i >> >> Notice that the whole text is deleted when i is pressed. If you then >> press a key, say a, it states that register does not conatin text, which >> is correct. But the text of the buffer is deleted, even though >> nothing replaced it. Undo gets you the text back, but it is >> inconvinient. > > What do you need undo when after deleting the selected region, > you can type again `C-x r i' with the correct key and get the > same result as you wanted before typing an incorrect key > (i.e. the region gets deleted and text from the correct register > still inserted into the buffer)? > Well, sometimss that works. But sometimss I think I have text in a register, but I have overwritten it with something else, or after C-x r i I descide to not do it that way and type C-g. Or I see thst the selection is just not the right selection to replace and want to abort the command for that reason. The point is that C-x r i C-g should leave stuff as they where, like they do with delsel off. Jan D. From unknown Tue Jun 24 01:41:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Jun 2010 20:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 6348@debbugs.gnu.org Received: via spool by 6348-submit@debbugs.gnu.org id=B6348.127576867523004 (code B ref 6348); Sat, 05 Jun 2010 20:12:01 +0000 Received: (at 6348) by debbugs.gnu.org; 5 Jun 2010 20:11:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKzi7-0005yz-0m for submit@debbugs.gnu.org; Sat, 05 Jun 2010 16:11:15 -0400 Received: from smtp-out1.starman.ee ([85.253.0.3] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKzi3-0005yu-5y for 6348@debbugs.gnu.org; Sat, 05 Jun 2010 16:11:13 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.52.94.cable.starman.ee [82.131.52.94]) by mx1.starman.ee (Postfix) with ESMTP id 5B6F53F41A8; Sat, 5 Jun 2010 23:11:04 +0300 (EEST) From: Juri Linkov Organization: JURTA References: <4C089EE5.80700@swipnet.se> <878w6u3g0x.fsf@mail.jurta.org> <4C096FA6.1040904@swipnet.se> Date: Sat, 05 Jun 2010 23:02:10 +0300 In-Reply-To: <4C096FA6.1040904@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Fri, 04 Jun 2010 23:27:02 +0200") Message-ID: <87hblhl03p.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) 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 (---) > The point is that C-x r i C-g should leave stuff as they where, like they > do with delsel off. delsel deletes the selection using pre-command-hook before the command is executed. I see no way to fix this for the current delsel mode. Maybe with the core support for delsel mode this would be possible. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Tue Jun 24 01:41:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Subject: bug#6348: closed (Re: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon.) Message-ID: References: <4C24582C.10504@swipnet.se> <4C089EE5.80700@swipnet.se> X-Gnu-PR-Message: they-closed 6348 X-Gnu-PR-Package: emacs Reply-To: 6348@debbugs.gnu.org Date: Fri, 25 Jun 2010 07:20:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1277450403-19393-1" This is a multi-part message in MIME format... ------------=_1277450403-19393-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6348: 24.0.50; delsel mode (or register insert) deletes text too soon. which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6348@debbugs.gnu.org. --=20 6348: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6348 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1277450403-19393-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6348-done) by debbugs.gnu.org; 25 Jun 2010 07:19:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OS3Bz-00052X-1i for submit@debbugs.gnu.org; Fri, 25 Jun 2010 03:19:15 -0400 Received: from smtprelay-h22.telenor.se ([195.54.99.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OS3Bw-00052S-UU for 6348-done@debbugs.gnu.org; Fri, 25 Jun 2010 03:19:13 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 8ECE0EB169 for <6348-done@debbugs.gnu.org>; Fri, 25 Jun 2010 09:18:06 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao81AI70I0xV4S0jPGdsb2JhbACHb5dRDAEBAQE1LcELhSEE X-IronPort-AV: E=Sophos;i="4.53,479,1272837600"; d="scan'208";a="537795434" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 25 Jun 2010 09:18:06 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 639E47FA05A; Fri, 25 Jun 2010 09:18:05 +0200 (CEST) Message-ID: <4C24582C.10504@swipnet.se> Date: Fri, 25 Jun 2010 09:18:04 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. References: <4C089EE5.80700@swipnet.se> <878w6u3g0x.fsf@mail.jurta.org> <4C096FA6.1040904@swipnet.se> <87hblhl03p.fsf@mail.jurta.org> In-Reply-To: <87hblhl03p.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 6348-done Cc: 6348-done@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.8 (--) I made some experiments, but you are correct, we need core delsel support to fix this. Closing as wontfix. Jan D. Juri Linkov skrev 2010-06-05 22.02: >> The point is that C-x r i C-g should leave stuff as they where, like they >> do with delsel off. > > delsel deletes the selection using pre-command-hook before the command > is executed. I see no way to fix this for the current delsel mode. > Maybe with the core support for delsel mode this would be possible. > ------------=_1277450403-19393-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jun 2010 06:36:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKQWC-0005xZ-Hn for submit@debbugs.gnu.org; Fri, 04 Jun 2010 02:36:37 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKQWA-0005xU-OF for submit@debbugs.gnu.org; Fri, 04 Jun 2010 02:36:35 -0400 Received: from lists.gnu.org ([199.232.76.165]:60611) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OKQW7-00039A-PF for submit@debbugs.gnu.org; Fri, 04 Jun 2010 02:36:31 -0400 Received: from [140.186.70.92] (port=34907 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKQW4-0003El-Gu for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 02:36:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKQW3-0003oL-Cn for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 02:36:28 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]:35393) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKQW3-0003nr-0T for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 02:36:27 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 8AA21C3C2 for ; Fri, 4 Jun 2010 08:36:23 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhdDAOo7CExV4S0jPGdsb2JhbACHbZZKDAEBAQE1Lb45hRYE X-IronPort-AV: E=Sophos;i="4.53,360,1272837600"; d="scan'208";a="87603753" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 04 Jun 2010 08:36:23 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 8395D7FA05A for ; Fri, 4 Jun 2010 08:36:22 +0200 (CEST) Message-ID: <4C089EE5.80700@swipnet.se> Date: Fri, 04 Jun 2010 08:36:21 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.0.50; delsel mode (or register insert) deletes text too soon. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.8 (----) 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: -4.8 (----) % emacs -Q M-x delete-selection-mode C-x h C-x r i Notice that the whole text is deleted when i is pressed. If you then press a key, say a, it states that register does not conatin text, which is correct. But the text of the buffer is deleted, even though nothing replaced it. Undo gets you the text back, but it is inconvinient. Jan D. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /opt/emacs-trunk/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-06-04 on f12.localdomain Windowing system distributor `Fedora Project', version 11.0.10706000 configured using `configure '--prefix=/opt/emacs-trunk' '--verbose' '--enable-asserts' '--with-x-toolkit=lucid' 'CFLAGS=-O2 -g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t scroll-bar-mode: left global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x d e l e t e - s e l C-x h C-x r i a x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Delete-Selection mode enabled Mark set [3 times] insert-register: Register does not contain text Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message sendmail regexp-opt rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug cus-start cus-load delsel tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) ------------=_1277450403-19393-1-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 25 03:21:16 2010 Received: (at control) by debbugs.gnu.org; 25 Jun 2010 07:21:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OS3Dw-00053g-Bg for submit@debbugs.gnu.org; Fri, 25 Jun 2010 03:21:16 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OS3Du-00053Y-PS for control@debbugs.gnu.org; Fri, 25 Jun 2010 03:21:15 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 0D2D1F8AD for ; Fri, 25 Jun 2010 09:21:10 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Amk2ALr1I0xV4S0jPGdsb2JhbACHb4sgjDEMAQEBATUtwROFIQQ X-IronPort-AV: E=Sophos;i="4.53,479,1272837600"; d="scan'208";a="537796099" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 25 Jun 2010 09:21:10 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 37F8B7FA05A for ; Fri, 25 Jun 2010 09:21:10 +0200 (CEST) Message-ID: <4C2458E6.6060805@swipnet.se> Date: Fri, 25 Jun 2010 09:21:10 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: Re: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) 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.8 (--) severity 6348 minor tags 6348 wontfix From unknown Tue Jun 24 01:41:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Jun 2010 22:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix To: 6348@debbugs.gnu.org Cc: jan.h.d@swipnet.se Received: via spool by 6348-submit@debbugs.gnu.org id=B6348.127759107823546 (code B ref 6348); Sat, 26 Jun 2010 22:25:01 +0000 Received: (at 6348) by debbugs.gnu.org; 26 Jun 2010 22:24:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSdnh-00067j-Ku for submit@debbugs.gnu.org; Sat, 26 Jun 2010 18:24:37 -0400 Received: from smtp-04.vtx.ch ([194.38.175.93]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSdne-00067e-Qe for 6348@debbugs.gnu.org; Sat, 26 Jun 2010 18:24:35 -0400 Received: from ceviche.home (dyn.144-85-136-075.dsl.vtx.ch [144.85.136.75]) by smtp-04.vtx.ch (VTX Services SA) with ESMTP id 4430129ACC9; Sun, 27 Jun 2010 00:24:30 +0200 (CEST) Received: by ceviche.home (Postfix, from userid 20848) id 47C38660F2; Sun, 27 Jun 2010 00:24:30 +0200 (CEST) From: Stefan Monnier Message-ID: References: <4C089EE5.80700@swipnet.se> <878w6u3g0x.fsf@mail.jurta.org> <4C096FA6.1040904@swipnet.se> <87hblhl03p.fsf@mail.jurta.org> <4C24582C.10504@swipnet.se> Date: Sun, 27 Jun 2010 00:24:30 +0200 In-Reply-To: <4C24582C.10504@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Fri, 25 Jun 2010 09:18:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.5 (--) 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.7 (--) > I made some experiments, but you are correct, we need core delsel support to > fix this. Closing as wontfix. Actually, I'm not opposed to adding core support for delsel. Stefan