unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: # is no longer electric in C mode?
Date: Thu, 21 Jan 2016 17:01:25 +0000	[thread overview]
Message-ID: <20160121170125.GB1795@acm.fritz.box> (raw)
In-Reply-To: <83twm699l9.fsf@gnu.org>

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).



  reply	other threads:[~2016-01-21 17:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 16:32 # is no longer electric in C mode? Eli Zaretskii
2016-01-21 17:01 ` Alan Mackenzie [this message]
2016-01-21 17:43   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160121170125.GB1795@acm.fritz.box \
    --to=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).