delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/13/14:26:45

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=PAp
cx8GMY0kYQ0i9ulN9Ts7nAmlSXkmJgdoBcuiaI/TN/8wtPecTp6wlXXIBn/d78OT
hTkrvvzjjvozzY2KgGPFuWNJ/CRw2NOd2GglpMsowQAYXKWjWV719+mmoVqLPmhh
vGns/OjufvXeAkQsa4O0slGy4S9U+QwPYI3dVH0w=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=L2ryJ9GmE
KZfH6Iz0+v67N6Mo4w=; b=oNd44UsDSwp8bBIMfshoLUUyK+57MzIAOoV5sAn92
ukY55v9MPi/ue7651Edlg3YfMj1RSzpdBAJUA34RLys2SmMaTnZtSI4tLTSxihD6
tZdHOmuPA6oFkWVHlb7GAZK79s6ikMaAI0ebnUrxTenO7616FqPnNPt4t8OdMEAt
ho=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: USA7109MR006.ACS-INC.COM
From: "Nellis, Kenneth" <Kenneth DOT Nellis AT xerox DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: emacs auto-indentation bug
Date: Mon, 13 Oct 2014 18:26:23 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E83205B@USA7109MB022.na.xerox.net>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s9DIQf9I006322

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019