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: Tue, 23 Sep 2008 15:47:24 -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> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1222199401 11439 80.91.229.12 (23 Sep 2008 19:50:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2008 19:50:01 +0000 (UTC) Cc: dmhouse@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, aaron.s.hawley@gmail.com To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 23 21:50:55 2008 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 1KiDu9-0001xh-Hi for ged-emacs-devel@m.gmane.org; Tue, 23 Sep 2008 21:50:37 +0200 Original-Received: from localhost ([127.0.0.1]:44753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiDt7-0002mr-N8 for ged-emacs-devel@m.gmane.org; Tue, 23 Sep 2008 15:49:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KiDt4-0002mK-0q for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KiDt3-0002l8-23 for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:29 -0400 Original-Received: from [199.232.76.173] (port=34474 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiDt2-0002l0-VF for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:28 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58039) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KiDt2-0004d9-VS for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:29 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KiDr2-0007KY-Dx; Tue, 23 Sep 2008 15:47:24 -0400 In-reply-to: <48D8BB40.6060806@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:104070 Archived-At: I am not sure. I liked html+php-mode better. Maybe using the name php-mode would also create confusion since the name is already in use. I don't see the problem. Would anyone now in the habit of running `pho-mode' be disappointed after this change? I have suggested a different solution to this quite general problem. I think a list of major mode priorities would be better. I have implemented that in majmodpri.el which I am resending here. I do not see how majmodpri would help solve this problem. It does not seem relevant. Here's the scenario: the user visits a file called foo.php which contains code in various languages. How do you propose for Emacs to pick the right major mode? I proposed two solutions: * Always call `php-mode', and define `php-mode' using mumamo to handle all the languages that can be in a PHP file. * Always call `php-mode', and define `php-mode' to handle all the languages that are found in this PHP file.