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:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=gJ8K2 N+zdX3Igxc3LkdJnilqU1nQtcto8cMOCVzwOI0ILitKn8xMmmEYrQrrIsPbWEjU0 wtRDfAvb21mlIiTsOpG5MEzV9r5hretn+WnlcmeykLoeVAgU6Xw+3h+0DRdW6hvD I2Nkd6bGdHdxgtrZ0IZ75yzgbLQpXCAiD3tSPg= 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:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=Sa2K9J3AlEL 236QAdOD5sdebOUE=; b=mb6iRRwEajft3wHMladsxnIK28UBkbmA+Glu3b0IZJy Lu+A36D4lGJXzLEy0/H7MFm3QvMjabXeGsNGolG9NMxrA69YZA+QN+eKA2536aLd dwnFbjE6Tfzh47CDBsgbzVG0TmyaaAQAVcpCNdaULSJxD4vs3CS1dVM1CB0xBNu4 = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-16.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net 4255E9BE0F From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: emacs auto-indentation bug References: <0D835E9B9CD07F40A48423F80D3B5A702E83205B AT USA7109MB022 DOT na DOT xerox DOT net> Date: Mon, 13 Oct 2014 20:59:02 +0200 In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E83205B@USA7109MB022.na.xerox.net> (Kenneth Nellis's message of "Mon, 13 Oct 2014 18:26:23 +0000") Message-ID: <87r3ybeqyx.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Nellis, Kenneth writes: > 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. Yes electric-indent-mode is now being on by default. You can switch it off globally or just for some modes. > 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. Make sure indent-tabs-mode is nil (it has been non-nil by default for quite some time). > I perused the ChangeLog, but didn't see anything relevant since > 2012. Curious about this change. You'd be better off looking in NEWS (type C-h C-n). > 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. You can "fix" this "bug" by customizing the two variables I mentioned. And since these were both deliberate -- if somewhat contentious -- changes, reporting it as a bug upstream isn't going to help, but you can try. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra -- 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