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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=kdD8Uhgednf84G2FsZyFbriDdn2tjyHp8RSaSSg4eRw 7QS+Qh94FtQeyEOsavpXrUa7ASEn8Gi9HSCeEhHccQ0bkmsOrFqhy87iiYeE/AD5 kZYLEKW0mhv3pCgXAbj5bWYZoWWL9w6pFOxOqUYYMjjoio1yB4v2qagpgWKC7gJo = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=wg/begj6ujtYtCtPvor8uCPn4iM=; b=xUT7I7+Kws6Tb/W/e dyKsKL48a4qb1XUnwMO8tqw6chUa2BmamTM5ovtbhAn74AxWQ0K/JfgytLUG3Dvc MNbZQYAeKMVP6JO+xuFLLMMd7yCUGJQJAFnaAsSmHVV0du3jXmyufJkAgDFqYRS1 3Di9Mnnv7nabjqn300Wj+LB6pg= 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=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: limerock01.mail.cornell.edu X-CornellRouted: This message has been Routed already. Message-ID: <543C1F99.6000203@cornell.edu> Date: Mon, 13 Oct 2014 14:53:13 -0400 From: Ken Brown <kbrown AT cornell DOT edu> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: emacs auto-indentation bug References: <0D835E9B9CD07F40A48423F80D3B5A702E83205B AT USA7109MB022 DOT na DOT xerox DOT net> In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E83205B@USA7109MB022.na.xerox.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 10/13/2014 2:26 PM, Nellis, Kenneth wrote: > 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. This is not a bug. It's a deliberate upstream change. Browse the NEWS file ('C-h n' from within emacs), and read the section entitled "** Indentation". Ken -- 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