From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Specifying mode in file variables trouble Date: Wed, 24 Sep 2008 09:47:36 -0400 Message-ID: References: <48D44761.6000809@gmail.com> <87ljxny6n8.fsf@catnip.gol.com> <48D44C79.9020004@gmail.com> <48D63F30.8060102@gmail.com> <48D6E8FB.4070108@gmail.com> <48D79A25.7050000@gmail.com> <48D8BB40.6060806@gmail.com> <48D9536D.50004@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1222264340 32210 80.91.229.12 (24 Sep 2008 13:52:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2008 13:52:20 +0000 (UTC) Cc: dmhouse@gmail.com, monnier@iro.umontreal.ca, aaron.s.hawley@gmail.com, emacs-devel@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 24 15:53:17 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KiUnf-0002X7-Hf for ged-emacs-devel@m.gmane.org; Wed, 24 Sep 2008 15:53:03 +0200 Original-Received: from localhost ([127.0.0.1]:52813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiUmd-0007hD-L2 for ged-emacs-devel@m.gmane.org; Wed, 24 Sep 2008 09:51:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KiUkS-0006WE-NO for emacs-devel@gnu.org; Wed, 24 Sep 2008 09:49:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KiUkP-0006Ur-Uk for emacs-devel@gnu.org; Wed, 24 Sep 2008 09:49:43 -0400 Original-Received: from [199.232.76.173] (port=48564 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiUkP-0006Um-Ms for emacs-devel@gnu.org; Wed, 24 Sep 2008 09:49:41 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48584) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KiUkP-0008Fg-Bk for emacs-devel@gnu.org; Wed, 24 Sep 2008 09:49:41 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KiUiO-0004I1-7T; Wed, 24 Sep 2008 09:47:36 -0400 In-reply-to: <48D9536D.50004@gmail.com> (lennart.borgman@gmail.com) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:104096 Archived-At: > 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.