From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: indentation - always a pita Date: Wed, 25 Jun 2003 21:13:13 -0700 Organization: Still searching... Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <847k7afzu4.fsf@lucy.is.informatik.uni-duisburg.de> <844r2exepk.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1056601013 3885 80.91.224.249 (26 Jun 2003 04:16:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2003 04:16:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 26 06:16:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19VOBV-000103-00 for ; Thu, 26 Jun 2003 06:16:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19VOA2-0004UE-BW for gnu-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2003 00:15:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19VO8S-0002gc-1l for help-gnu-emacs@gnu.org; Thu, 26 Jun 2003 00:13:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19VO8M-0002Vy-Qj for help-gnu-emacs@gnu.org; Thu, 26 Jun 2003 00:13:19 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19VO8L-0002Sf-Qh for help-gnu-emacs@gnu.org; Thu, 26 Jun 2003 00:13:18 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19VO82-0000oq-00 for ; Thu, 26 Jun 2003 06:12:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19VO80-0000ob-00 for ; Thu, 26 Jun 2003 06:12:56 +0200 Original-Lines: 53 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:YX7eZuAC9uvsl12+Siphb2b4gX8= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11241 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11241 kai.grossjohann@gmx.net (Kai Großjohann) writes: > Harry Putnam writes: > >> 1) Put the two lines you suggest as sole entries in lisp.el then start >> a fresh emacs. (emacs -q -no-site-file -bg midnightblue -l ./lisp.el -l ./vi-list.el) >> (vi-list.el is some plaguerized code that allows one to display a >> buffer as if vi's `list' command had been run on it. (showing >> ^I = tab $= newline) > > Hm. When you are editing the shell script snippet, does C-h v say > that the two variables have the right values? Yup, they check out. The only noticable change is that the tabs are missing. C-h v sh-indentation sh-indentation's value is 2 C-h v indent-tabs-mode indent-tabs-mode's value is nil Automatically becomes buffer-local when set in any fashion. I thought I remembered this being a big pita and I guess it is... Actual formatted sample with those vars in place: ====================================== if [ ];then if [ ];then case $opt in t) cmd lf [ ];then cmd fi ;; h) cmd if [ ];then case $otheropt in a) cmd if [ ];then cmd fi ;; b) cmd :: esac fi esac if [];then cmd ii fi fi