From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add json-sexp-mode. Date: Sat, 17 Oct 2015 20:10:06 +0200 Message-ID: <8737x9wem9.fsf@T420.taylan> References: <87wpulwje2.fsf@T420.taylan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445105440 6975 80.91.229.3 (17 Oct 2015 18:10:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2015 18:10:40 +0000 (UTC) Cc: emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 17 20:10:39 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 1ZnVvq-0001qJ-Pc for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 20:10:14 +0200 Original-Received: from localhost ([::1]:59367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVvq-0003Sz-1a for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 14:10:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVvm-0003Sb-3y for emacs-devel@gnu.org; Sat, 17 Oct 2015 14:10:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnVvl-0002hB-8b for emacs-devel@gnu.org; Sat, 17 Oct 2015 14:10:10 -0400 Original-Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:34670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVvl-0002gr-2Y for emacs-devel@gnu.org; Sat, 17 Oct 2015 14:10:09 -0400 Original-Received: by wikq8 with SMTP id q8so1259021wik.1 for ; Sat, 17 Oct 2015 11:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=X3l3XX6Xb44V0MKxGROYO67aGNyKCIQusuAe1TE7OO8=; b=ZIV7QlU22rhrnP57Fwdo/EA7wxGl5K0/vy26Tc4ZOIB0jVbr88XAFmQNJzFxXHQtVD AnxdtRMWDZ/vSG5ZpC10Fm1gzu3CFBVq/JhRns/unQ7mBtdKJDa8qSrmX/lMEarfjtOO X4551Qcc5WMdUBegwtFb7ez0ko4VZjOMKrk0t3PjiYstMz/vf7S9YMZVkVFi0VQdUSsb Jj4XtrVxnpWH6vSatvwGCX5kkh1buJ/xMWGEAgruZUpthlh/auGO5A+88YiVbY4O4rqd l4I1BHWFKzEe05H17Fq+OSN52N2LsJTZvl0aDUid0MCSxfTkCM+CbWk/EsV3gDInlmaj IG6w== X-Received: by 10.180.8.5 with SMTP id n5mr12174340wia.94.1445105408271; Sat, 17 Oct 2015 11:10:08 -0700 (PDT) Original-Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id gl4sm29630214wjd.49.2015.10.17.11.10.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 11:10:07 -0700 (PDT) In-Reply-To: (Artur Malabarba's message of "Sat, 17 Oct 2015 18:19:09 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22f 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:191867 Archived-At: Artur Malabarba writes: >> +;; Note that `json-sexp-mode' inherits from `emacs-lisp-mode' since > it's for >> +;; editing JSON data as Elisp s-expressions. > > It might be more appropriate to inherit from lisp-mode, which is > parent to emacs-lisp-mode. It should still provide all of the syntax > definitions you need without carrying a lot of key binds that don't > make sense for your mode (like eval-defun or eval-last-sexp). > > I'm not sure which version of emacs added this mode, so you might have > to add a dependency on emacs 24.3 or something like that. json.el yields Elisp s-expressions though. The closest approximation to an "Elisp s-expression editing mode" is emacs-lisp-mode. Taylan