This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

emacs auto-indentation bug


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.

FWIW:

$ 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 24.3.93.1
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
$ 

--Ken Nellis

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]