all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: 10153@debbugs.gnu.org
Subject: bug#10153: 24.0.91; behavior of TAB in text modes is different
Date: Mon, 28 Nov 2011 16:13:34 +0800	[thread overview]
Message-ID: <87d3ccr7f5.fsf@gnu.org> (raw)

With latest trunk,

0. emacs -Q
1. M-x text-mode RET
2. M-<
3. C-SPC
4. M->
5. TAB

The text which was in the region remains unaltered by the TAB.  In Emacs
23, a tab character is inserted in front of each line in the region, as
per the manual:

  In text modes, TAB inserts some combination of space and tab
  characters to advance point to the next tab stop.  If the region is
  active and spans multiple lines, it advances the first character of
  each of those lines to the next tab stop.  For the purposes of this
  command, the position of the first non-whitespace character on the
  preceding line is treated as an additional tab stop.  Thus, you can
  use TAB to "align" point with the preceding line.

It appears that when the region is active, TAB in text mode now tries to
indent to the previous line, i.e. it behaves like TAB in programming
modes.  Is this is a new intended feature?  It's certainly not
documented in NEWS.


In GNU Emacs 24.0.91.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.2.0)
 of 2011-11-28 on furball





             reply	other threads:[~2011-11-28  8:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28  8:13 Chong Yidong [this message]
2011-11-28 20:09 ` bug#10153: 24.0.91; behavior of TAB in text modes is different Glenn Morris
2011-11-29 15:17   ` Chong Yidong
2011-11-29 15:39     ` Drew Adams
2011-11-29 20:15       ` Lennart Borgman
2011-11-29 21:56         ` Drew Adams
2011-11-29 21:59           ` Lennart Borgman
2011-11-29 22:18             ` Drew Adams
2011-11-29 22:22               ` Lennart Borgman

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

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

  git send-email \
    --in-reply-to=87d3ccr7f5.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=10153@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.