This is the mail archive of the
mailing list for the Cygwin project.
emacs auto-indentation bug
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 13 Oct 2014 18:26:23 +0000
- Subject: emacs auto-indentation bug
- Authentication-results: sourceware.org; auth=none
I haven't changed my ~/.emacs file since 2012, but sometime in the last several weeks I've noticed changes in emacs behavior.
1. I've never turned on automatic indentation--don't actually know how--yet if I indent a new line by pressing the tab key, when I hit the enter key, the next line has been automatically indented to align with the previous one. This happens even if I start emacs with the -q option.
2. What makes this worse is the fact that it inserts tab characters rather than spaces for this automatic indentation. I specifically have "(setq-default tab-width 4)" in .emacs, and my manual indentation is indeed created with space characters, but subsequent auto-indented lines are indented with tab characters.
I perused the ChangeLog, but didn't see anything relevant since 2012. Curious about this change.
Googling, I found this reference (http://www.emacswiki.org/emacs/AutoIndentation):
"NOTE: Recent changes, I think during Emacs 24.3, have swapped effects of RET and C-j, so RET typically does newline-and-indent."
So, that pretty much explains it. Sounds like an upstream bug, but affecting this community as well. I was wondering if anyone can offer a workaround to restore the previous behavior. Also wondering if anyone has insight into this "bug" being possibly fixed upstream.
$ uname uname -srvmo
CYGWIN_NT-6.1 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64 Cygwin
$ type emacs
emacs is hashed (/usr/bin/emacs)
$ emacs --version
GNU Emacs 184.108.40.206
Copyright (C) 2014 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
$ ls -ld ~/.emacs
-rwxr-xr-x 1 Administrators Domain Users 14090 Aug 1 2012 /home/knellis/.emacs
$ cygcheck -c cygwin emacs
Cygwin Package Information
Package Version Status
cygwin 1.7.32-1 OK
emacs 24.3.93-1 OK
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple