unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
  • * bug#16763: 24.3.50; electric-indent annoyance: C-j doesn't indent
           [not found] <<87fvnkbbqx.fsf@gmail.com>
           [not found] ` <mailman.15193.1392492502.10748.bug-gnu-emacs@gnu.org>
    @ 2014-02-15 19:27 ` Drew Adams
      2014-02-15 19:50   ` Andreas Röhler
      2014-02-15 21:48   ` T. V. Raman
      1 sibling, 2 replies; 6+ messages in thread
    From: Drew Adams @ 2014-02-15 19:27 UTC (permalink / raw)
      To: raman, 16763
    
    > This has been bothering me for a while when writing lisp code --
    > started happening roughly a few months ago.
    
    Yup.
    
    > I always hit C-j for newline, and a couple of months ago, this
    > stopped indenting -- by default C-j runs control j  runs the
    > command electric-indent-just-newline when electric-indent-mode
    > is on.
    > 
    > The documentation for electric-mode indicates that indentation
    > will be invoked when you type any of the chars in
    > electric-indent-chars  -- and that variable is set to a list
    > containing ?\n which is  ascii 10; yet, C-j invokes a command
    > that explicitly only inserts a newline? (feeling very confused)
    
    It is not yet reflected in NEWS or the manuals, but `C-j' and
    `RET' have been effectively swapped: `RET' now indents and `C-j'
    does not indent.
    
    The new behavior was apparently adopted to make Emacs correspond
    better with what newbie users expect, based on their experience
    with other editors and IDEs.
    
    You are not alone in "feeling very confused".  Hopefully, the
    NEWS entry covering this, and perhaps the manuals, will explain
    the best and simplest way to restore the previous, longstanding
    behavior for those who might prefer it.  Otherwise, you can
    just retrain your fingers. ;-)
    
    
    
    
    
    ^ permalink raw reply	[flat|nested] 6+ messages in thread

  • end of thread, other threads:[~2014-02-17  3:16 UTC | newest]
    
    Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <<87fvnkbbqx.fsf@gmail.com>
         [not found] ` <mailman.15193.1392492502.10748.bug-gnu-emacs@gnu.org>
    2014-02-15 16:07   ` bug#16763: 24.3.50; electric-indent annoyance: C-j doesn't indent raman
    2014-02-15 22:18     ` Alan Mackenzie
    2014-02-17  3:16     ` Stefan Monnier
    2014-02-15 19:27 ` Drew Adams
    2014-02-15 19:50   ` Andreas Röhler
    2014-02-15 21:48   ` T. V. Raman
    

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