From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: # is no longer electric in C mode? Date: Thu, 21 Jan 2016 17:01:25 +0000 Message-ID: <20160121170125.GB1795@acm.fritz.box> References: <83twm699l9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1453395599 20343 80.91.229.3 (21 Jan 2016 16:59:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 16:59:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 21 17:59:50 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aMIaI-0002Jb-Dh for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 17:59:46 +0100 Original-Received: from localhost ([::1]:48781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMIaH-0001BY-R1 for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 11:59:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMIZd-0000TR-Rg for emacs-devel@gnu.org; Thu, 21 Jan 2016 11:59:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMIZZ-0000xp-KI for emacs-devel@gnu.org; Thu, 21 Jan 2016 11:59:05 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:44111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMIZZ-0000xE-BT for emacs-devel@gnu.org; Thu, 21 Jan 2016 11:59:01 -0500 Original-Received: (qmail 9660 invoked by uid 3782); 21 Jan 2016 16:58:59 -0000 Original-Received: from acm.muc.de (p5B146A47.dip0.t-ipconnect.de [91.20.106.71]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 21 Jan 2016 17:58:58 +0100 Original-Received: (qmail 3809 invoked by uid 1000); 21 Jan 2016 17:01:25 -0000 Content-Disposition: inline In-Reply-To: <83twm699l9.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198502 Archived-At: Hello, Eli. On Thu, Jan 21, 2016 at 06:32:50PM +0200, Eli Zaretskii wrote: > I've noticed that typing a preprocessor directive in C mode no longer > reindents the line to begin at column zero when I type '#'. Is this a > deliberate change? (I think it's a recent change.) I can't find > anything in NEWS about this. > What did I miss? There's a customisable variable c-electric-pound-behavior which can be given the value '(alignleft) to reindent the # to column zero. This has had the value nil since, at the latest, 1997-07-10 (using git blame on cc-vars.el). That hardly counts as recent. ;-) Do you have a setting for c-electric-pound-behavior in your .emacs? If so, then it's possible something has gone wrong with the function c-electric-pound. If you haven't then please try such a setting. Or perhaps I'm missing something, too. -- Alan Mackenzie (Nuremberg, Germany).