From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [jidanni@jidanni.org: shell-script-mode case indenting] Date: Tue, 03 Oct 2006 15:41:29 -0400 Message-ID: References: <87k63wc0pn.fsf@cs.cmu.edu> <87odsvop8k.fsf@cs.cmu.edu> <87bqot19xs.fsf@cs.cmu.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159904553 8521 80.91.229.2 (3 Oct 2006 19:42:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2006 19:42:33 +0000 (UTC) Cc: Glenn Morris , jidanni@jidanni.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 03 21:42:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GUq9n-0006UA-OA for ged-emacs-devel@m.gmane.org; Tue, 03 Oct 2006 21:42:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUq9n-0004VG-9q for ged-emacs-devel@m.gmane.org; Tue, 03 Oct 2006 15:42:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GUq9C-0004NA-PN for emacs-devel@gnu.org; Tue, 03 Oct 2006 15:41:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GUq97-0004Kn-Tg for emacs-devel@gnu.org; Tue, 03 Oct 2006 15:41:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUq97-0004Kh-Mv for emacs-devel@gnu.org; Tue, 03 Oct 2006 15:41:41 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GUqFM-0001kN-3X; Tue, 03 Oct 2006 15:48:08 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 743A72CEA99; Tue, 3 Oct 2006 15:41:38 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 1BC173FE0; Tue, 3 Oct 2006 15:41:30 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 096BF6C8CC; Tue, 3 Oct 2006 15:41:29 -0400 (EDT) Original-To: Michael Welsh Duggan In-Reply-To: <87bqot19xs.fsf@cs.cmu.edu> (Michael Welsh Duggan's message of "Tue\, 03 Oct 2006 15\:22\:23 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60399 Archived-At: >> In your new code, what is the purpose of the following line in the loop: >> (unless (eobp) (forward-char 1)) > Don't move forward by a character if at the end of a (narrowed) > buffer. Well, that's the result, not the purpose :-( > The need to move forward a character was experimentally > determined, I am afraid. That's the part I'm interested in. Could you give us some idea of the case(s) you've encountered where it was found necessary? Stefan