From: Drew Adams <drew.adams@oracle.com>
To: 17737@debbugs.gnu.org
Subject: bug#17737: 24.4.50; REGRESSION: `delete-selection-mode' broken by `electric-indent-mode' change
Date: Sun, 8 Jun 2014 08:30:14 -0700 (PDT) [thread overview]
Message-ID: <c28fdbc9-286d-4c77-8356-61250625306c@default> (raw)
emacs -Q
M-x delete-selection-mode ; turn it on
M-: (electric-indent-mode -1) ; turn it off
I was hoping that this would just restore the behavior present in Emacs
forever, prior to Emacs 24.4: C-j would insert a newline and indent, and
RET would insert a newline.
The regression is that C-j does not delete the active region. For
example, in `emacs-lisp-mode':
Select the text from the middle of a line through eol (the newline
char). Ensure that point is at the start of the selection, not the end.
Hit `C-j'. The rest of the line is indented on the next line, instead
of being killed. If point was instead at eol then the rest of the line
is intact and a newline is inserted and point indented. In sum, the
selected text is not killed.
A fix is to add this sexp to delsel.el:
(put 'electric-newline-and-maybe-indent 'delete-selection t)
I see that you have already added this sexp instead:
(put 'reindent-then-newline-and-indent 'delete-selection t)
I can't speak to whether that second sexp is correct or should be
removed. I don't use command `reindent-then-newline-and-indent'.
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-06-01 on ODIEONE
Bzr revision: 117212 michael.albinus@gmx.de-20140601104945-g88x0mwrxorz302h
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
next reply other threads:[~2014-06-08 15:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-08 15:30 Drew Adams [this message]
2014-06-17 13:40 ` bug#17737: 24.4.50; REGRESSION: `delete-selection-mode' broken by `electric-indent-mode' change Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c28fdbc9-286d-4c77-8356-61250625306c@default \
--to=drew.adams@oracle.com \
--cc=17737@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.