From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mccormick.bob@gmail.com Newsgroups: gmane.emacs.help Subject: Plain text indentation problem Date: Sun, 13 Jan 2008 21:17:37 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200293224 23025 80.91.229.12 (14 Jan 2008 06:47:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 06:47:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 07:47:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JEJ6S-0003S9-2i for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2008 07:47:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEJ63-0000vW-V0 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2008 01:46:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d21g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 24.9.163.205 Original-X-Trace: posting.google.com 1200287858 6940 127.0.0.1 (14 Jan 2008 05:17:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 14 Jan 2008 05:17:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d21g2000prf.googlegroups.com; posting-host=24.9.163.205; posting-account=2QmtOAoAAAD6drnKnc5Ky9fI7oS10V1t User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155293 X-Mailman-Approved-At: Mon, 14 Jan 2008 01:46:46 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50705 Archived-At: I'm having an odd problem with auto-indentation in Emacs in text-mode that I'm hoping someone here can help me with. I'm trying to edit a file whose format needs to be similar to this: -------------------------------------- Story: simple addition Scenario: add one plus one Given an addend of 1 And an addend of 1 When the addends are added Then the sum should be 2 Scenario: add two plus five Given an addend of 2 And an addend of 5 ------------------------------------------------ The problem is, when I get to the second "Scenario" line that needs to be indented less than the line before it. Emacs automatically indents it the same as the previous line (which I'd expect), but what's the best way to get the line back to the same indentation as the previous line? I've been doing M-b's until I get to the beginning of the first word ("Scenario"), then backspacing. The problem is if I backspace back to the beginning of the line, then hit tab again, emacs indents the line in one space more than the first "Scenario" line. In other words, it looks kind of like this: ---------------------------- Scenario: add one plus one Given an addend of 1 Scenario: add two plus five Given an addend of 2 ---------------------------------- Any ideas what I'm doing wrong? Is there an easier way to move a line back one TAB width? (BTW.. For anyone whose interested, the file format in question is for the Ruby Rspec Story Runner tool)