[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh-script.el and magic numbers

From: Kevin Rodgers
Subject: Re: sh-script.el and magic numbers
Date: Wed, 22 Jan 2003 18:12:21 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Luc Teirlinck wrote:

I believe that defining a bunch of derived modes of sh-mode would
correspond to a substantial rewrite of sh-script.el and, actually a
radical change in style and philosophy.

I do not believe it is necessary to go that far.

It may not be necessary to go that far to fix this particular bug, but it is the
right thing to do in the long term.

What seems needed is
fixing a concrete bug in sh-get-indent-info, maybe some similar not
yet discovered bugs elsewhere in the indentation machinery (let us
hope not), making sh-shell-file a permanent local, adding a couple of
lines to the mode documentation and maybe make sh-mode add a small and
simple function to find-file-hook.  These are all small local changes,
whereas the change you propose would be a lot more radical.  Let us
also not forget that in most, be it definitely not all, situations the
implicit assumptions made by sh-script.el are actually satisfied.

<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]