From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: .json files - should they be associated with som Emacs mode by default? Date: Sat, 14 Jan 2012 00:10:33 +0000 Message-ID: <4F10C7F9.3060309@harpegolden.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326499856 23614 80.91.229.12 (14 Jan 2012 00:10:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2012 00:10:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 14 01:10:50 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RlrCl-0001GJ-Cd for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2012 01:10:43 +0100 Original-Received: from localhost ([::1]:49461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlrCk-0004EL-P3 for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2012 19:10:42 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlrCh-0004EG-2k for emacs-devel@gnu.org; Fri, 13 Jan 2012 19:10:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlrCf-0008Mf-Ox for emacs-devel@gnu.org; Fri, 13 Jan 2012 19:10:39 -0500 Original-Received: from harpegolden.net ([65.99.215.13]:52162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlrCf-0008MV-L3 for emacs-devel@gnu.org; Fri, 13 Jan 2012 19:10:37 -0500 Original-Received: from [87.198.47.210] (87-198-47-210.ptr.magnet.ie [87.198.47.210]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 8EB94683CB for ; Sat, 14 Jan 2012 00:10:35 +0000 (GMT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 65.99.215.13 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:147653 Archived-At: On 13/01/12 21:33, Tekk wrote: > > > On Fri, 13 Jan 2012, Lennart Borgman wrote: > >> Maybe this is already done in Emacs 24? >> >> > > javascript seems appropriate for this, since json is valid js > ...but not necessarily vice-versa [1]. Perhaps there should be a strict json-mode. Currently you can open a .json file and emacs trunk, using javascript-mode, is okay with it having {a: 'b'}, say, when it should really be highlighting that as a json syntax error (unquoted key, single quoted value). [1] http://stackoverflow.com/questions/3975859/what-are-the-differences-between-json-and-javascript-object