From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.devel Subject: Re: web-mode.el Date: Tue, 31 Jul 2012 10:41:14 +0200 Organization: Probably a good idea Message-ID: <87zk6gtj9x.fsf@dod.no> References: <874nqfslig.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343724100 21253 80.91.229.3 (31 Jul 2012 08:41:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2012 08:41:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 31 10:41:40 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sw81M-0002A8-78 for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 10:41:40 +0200 Original-Received: from localhost ([::1]:35083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw81L-0008Gi-JT for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 04:41:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw81G-0008Es-3A for emacs-devel@gnu.org; Tue, 31 Jul 2012 04:41:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sw81A-00064E-CT for emacs-devel@gnu.org; Tue, 31 Jul 2012 04:41:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw81A-000646-5h for emacs-devel@gnu.org; Tue, 31 Jul 2012 04:41:28 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sw816-00021o-Me for emacs-devel@gnu.org; Tue, 31 Jul 2012 10:41:24 +0200 Original-Received: from cm-84.208.231.161.getinternet.no ([84.208.231.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Jul 2012 10:41:24 +0200 Original-Received: from sb by cm-84.208.231.161.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Jul 2012 10:41:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.231.161.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:xa36/l5yh8XdtEjudXi/wMOkzUo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151992 Archived-At: >>>>> Bois Francois-Xavier : > On Wed, Jun 13, 2012 at 9:45 AM, Chong Yidong wrote: >> The major mode should derive from either prog-mode or text-mode (not >> sure which is better), rather than fundamental mode. > Ok. But I have a question. Is it a convention ? Is it necessary ? Your mode will then inherit settings for text-mode. Ie. it will run text-mode-hook and respect all text-mode variables. For me this is currently just setting auto-fill-mode to "1", but it used to include iso-accents-mode. It is convenient to set common settings like this for all modes used to write human readable text (text-mode, XML mode(s), email buffers, and version control commit buffers).