emacs-devel
[Top][All Lists]
Advanced

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

Re: Specifying mode in file variables trouble


From: Richard M. Stallman
Subject: Re: Specifying mode in file variables trouble
Date: Wed, 24 Sep 2008 09:47:36 -0400

    > I'm not sure whether majmodpri is a useful feature, because I am not
    > convinced there is a real problem to be solved.  What is a real case
    > of the problem, and is there another solution?

    I tried to describe the problem in the comment in majmodpri.el. Is that
    comment not clear?

I can see what feature the file implements, for controlling the order
of `auto-mode-alist' and a few other variables.  I do not see that the
feature is useful.

If you show me a REAL case in which this is useful, that might convice me.

I am not impressed by imaginary hypothetical cases.

    > But if we want such a facility, we should implement it right.  The
    > right way is to insert these elements in the proper position the first
    > time.

    Unfortunately that can't be done. Please see the comment above.

Of course it can be done.  It is easy to write a function that would
add an item to `auto-mode-alist' and choose where to put it based on
whatever criteria we like.  It could take four three arguments, one
being the major mode that the elements are for, and the other three
being elements to add to the three variables that majmodpri sorts.
And it could insert them in the proper order.

I don't know if it is useful, but it is not hard.




reply via email to

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