From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add json-sexp-mode. Date: Sat, 17 Oct 2015 22:47:16 +0100 Message-ID: References: <87wpulwje2.fsf@T420.taylan> <8737x9wem9.fsf@T420.taylan> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445118456 26920 80.91.229.3 (17 Oct 2015 21:47:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2015 21:47:36 +0000 (UTC) Cc: emacs-devel To: =?UTF-8?B?VGF5bGFuIFVscmljaCBCYXnEsXJsxLEvS2FtbWVy?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 17 23:47:26 2015 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 1ZnZJz-00043K-Vj for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 23:47:24 +0200 Original-Received: from localhost ([::1]:59873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnZJz-0001pS-26 for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 17:47:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnZJv-0001p6-IO for emacs-devel@gnu.org; Sat, 17 Oct 2015 17:47:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnZJt-0000Ok-G0 for emacs-devel@gnu.org; Sat, 17 Oct 2015 17:47:18 -0400 Original-Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:34101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnZJt-0000Og-83 for emacs-devel@gnu.org; Sat, 17 Oct 2015 17:47:17 -0400 Original-Received: by lbbwb3 with SMTP id wb3so58735309lbb.1 for ; Sat, 17 Oct 2015 14:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=0bX7av1S1fdsjnGBJFwUEqFAVngqidmif6KVSNMfzWk=; b=pPVv6e02Kzllh4vEkpwY+ya27FN71E+eBUjWnEw7TTrJIGiPXiI7jIAhDdqv7Jhzy9 WMG71QEKtRXrnq6HHy2W7MAz0n6oeSaXjIS62mO3AfRlZvoOen3I7E6urhvUTrXPLPSZ z144iRFu24FSNJc5dhx9ICptD2jwcQJ9c8oIkZeTyEhE8rIX27Votr/zcIMZWEUdpS6m mfL+fR0RE3KDS6Tc6Otiw67jSiX+m3q9TE7T3gGuPN3K3Fu38qWg8tSwNTJhTdqsyh9y 7brdzmOc8zQVtocLJZz7+ecklOoypxJH78kkwACRw6TAg4MVWi7R+INDMibMOc8Ww+sX tPqg== X-Received: by 10.112.54.169 with SMTP id k9mr10901139lbp.95.1445118436441; Sat, 17 Oct 2015 14:47:16 -0700 (PDT) Original-Received: by 10.25.22.197 with HTTP; Sat, 17 Oct 2015 14:47:16 -0700 (PDT) In-Reply-To: <8737x9wem9.fsf@T420.taylan> X-Google-Sender-Auth: S6YxDKeSB15OS9Xc9QL2No3PP0I X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22a 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:191890 Archived-At: 2015-10-17 19:10 GMT+01:00 Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer : > > json.el yields Elisp s-expressions though. The closest approximation to > an "Elisp s-expression editing mode" is emacs-lisp-mode. I've got something even better for you then. You can change your mode to inherit from prog-mode and add this line: (lisp-mode-variables nil nil 'elisp) This should make sure it has all the syntax definitions of emacs-lisp-mode, without carrying its keybinds, eldoc, completion functions, xref definitions, search-path, menu-bars, etc, which (IIUC) wouldn't make sense for this json-sexp-mode. Of course, it's up to you. I'm just recommending what I would do. Cheers, Artur