From unknown Sat Aug 09 15:56:25 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#14606 <14606@debbugs.gnu.org> To: bug#14606 <14606@debbugs.gnu.org> Subject: Status: 24.2; semantics of `backward-delete-char' changed in 24, breaking programs Reply-To: bug#14606 <14606@debbugs.gnu.org> Date: Sat, 09 Aug 2025 22:56:25 +0000 retitle 14606 24.2; semantics of `backward-delete-char' changed in 24, brea= king programs reassign 14606 emacs submitter 14606 Taylor R Campbell severity 14606 normal tag 14606 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 11:32:42 2013 Received: (at submit) by debbugs.gnu.org; 13 Jun 2013 15:32:42 +0000 Received: from localhost ([127.0.0.1]:41637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Un9Vw-0001hQ-Me for submit@debbugs.gnu.org; Thu, 13 Jun 2013 11:32:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35178) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Un9Vu-0001hE-9G for submit@debbugs.gnu.org; Thu, 13 Jun 2013 11:32:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un9Vk-0002Pw-FR for submit@debbugs.gnu.org; Thu, 13 Jun 2013 11:32:33 -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.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un9Vk-0002Ps-DS for submit@debbugs.gnu.org; Thu, 13 Jun 2013 11:32:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un9Vf-0000YA-Uo for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 11:32:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un9Vb-0002Nt-27 for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 11:32:23 -0400 Received: from jupiter.mumble.net ([74.50.56.165]:43222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un9Va-0002NL-Rk for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 11:32:19 -0400 Received: by jupiter.mumble.net (Postfix, from userid 1014) id 8AD1B604F4; Thu, 13 Jun 2013 15:26:34 +0000 (UTC) From: Taylor R Campbell To: bug-gnu-emacs@gnu.org Subject: 24.2; semantics of `backward-delete-char' changed in 24, breaking programs Date: Thu, 13 Jun 2013 15:26:33 +0000 Message-ID: <7t4nd2owuu.fsf@jupiter.mumble.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': In GNU Emacs 24, the semantics of `backward-delete-char' changed so that it sometimes does far, far more than just deleting a character backward. This needlessly breaks programs that assumed it would do just that, such as paredit. In particular, if the region is active and transient mark mode is enabled, it deletes the region, which, in the case of paredit, wreaks havoc with the buffer. If you want to change the semantics, change the name, just like with `backward-delete-char-untabify'. 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 /pkg/current/pkg/share/emacs/24.2/etc/DEBUG. In GNU Emacs 24.2.1 (x86_64--netbsd, X toolkit, Xaw scroll bars) of 2013-01-20 on manticore Configured using: `configure '--srcdir=/tmp/pkg/current/work/editors/emacs24/work/emacs-24.2' '--localstatedir=/pkg/current/pkg/var' '--without-dbus' '--x-includes=/usr/X11R7/include' '--x-libraries=/usr/X11R7/lib' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-x-toolkit=athena' '--prefix=/pkg/current/pkg' '--build=x86_64--netbsd' '--host=x86_64--netbsd' '--infodir=/pkg/current/pkg/info' '--mandir=/pkg/current/pkg/man' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'CC=cc' 'CFLAGS=-I/pkg/current/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2' 'LDFLAGS=-L/pkg/current/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/pkg/current/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib' 'LIBS=' 'CPPFLAGS=-DTERMINFO -I/pkg/current/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2'' 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: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x r e p o r t SPC e m a c s SPC b u g SPC DEL RET Recent messages: ("emacs") Loading term/xterm...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date 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 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 minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 13:48:51 2013 Received: (at 14606) by debbugs.gnu.org; 13 Jun 2013 17:48:51 +0000 Received: from localhost ([127.0.0.1]:41902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnBdi-0006XX-UV for submit@debbugs.gnu.org; Thu, 13 Jun 2013 13:48:51 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46657 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnBdh-0006XO-5Z for 14606@debbugs.gnu.org; Thu, 13 Jun 2013 13:48:49 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UnBdf-0002Iv-Q6; Thu, 13 Jun 2013 13:48:47 -0400 From: Glenn Morris To: Taylor R Campbell Subject: Re: bug#14606: 24.2; semantics of `backward-delete-char' changed in 24, breaking programs References: <7t4nd2owuu.fsf@jupiter.mumble.net> X-Spook: Cocaine M-14 Firefly CDC Etacs JSOFC3IP Saddam Hussein X-Ran: i1IXjVDfIU)m~)XhA26[LXr_P*[~ScwOG&L^qiV"_`#vfb)xt._;%8OaEK"}}ItWB,RTK2 X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 13 Jun 2013 13:48:47 -0400 In-Reply-To: <7t4nd2owuu.fsf@jupiter.mumble.net> (Taylor R. Campbell's message of "Thu, 13 Jun 2013 15:26:33 +0000") Message-ID: <6whah1aolc.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: 14606 Cc: 14606@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.4 (-----) Taylor R Campbell wrote: > In GNU Emacs 24, the semantics of `backward-delete-char' changed so > that it sometimes does far, far more than just deleting a character > backward. This needlessly breaks programs that assumed it would do > just that, such as paredit. In GNU Emacs 23.3 onwards: C-h f delete-backward-char This is meant for interactive use only; from Lisp, better use `delete-char' with a negated argument. And byte-compiling a file with contents: (defun foo () (delete-backward-char 1)) results in: foo.el:1:8:Warning: `delete-backward-char' used from Lisp code That command is designed for interactive use only So I think that ship has sailed and it's time to update your code. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 01 03:13:11 2014 Received: (at control) by debbugs.gnu.org; 1 Feb 2014 08:13:11 +0000 Received: from localhost ([127.0.0.1]:43859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9VhO-000720-Lo for submit@debbugs.gnu.org; Sat, 01 Feb 2014 03:13:10 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:45859) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W9VhK-00071p-Ev for control@debbugs.gnu.org; Sat, 01 Feb 2014 03:13:08 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1W9Vh4-0002eB-Lh for control@debbugs.gnu.org; Sat, 01 Feb 2014 09:12:51 +0100 Date: Sat, 01 Feb 2014 00:11:58 -0800 Message-Id: <87y51vmeup.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14606 X-MailScanner-ID: 1W9Vh4-0002eB-Lh X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1391847173.31654@rXyGU0KSgJ7K0LJ/AZki+w X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) close 14606 From unknown Sat Aug 09 15:56:25 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, 01 Mar 2014 12:24:04 +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