From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stig Sandbeck Mathisen Newsgroups: gmane.emacs.devel Subject: Re: [gmane.emacs.devel] Re: [ELPA] New package: vcl-mode Date: Thu, 29 Nov 2018 09:28:24 +0100 Message-ID: <878t1c2spj.fsf@fnord.no> References: <20181129095026.8236@ulysses.gnu.org.ua> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543482921 31239 195.159.176.226 (29 Nov 2018 09:15:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2018 09:15:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: Steve Purcell , Stig Sandbeck Mathisen , emacs-devel@gnu.org To: Sergey Poznyakoff Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 29 10:15:17 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSIPk-0007zI-D8 for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2018 10:15:16 +0100 Original-Received: from localhost ([::1]:53009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSIRq-0005jD-4D for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2018 04:17:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSHgZ-0008Ok-1p for emacs-devel@gnu.org; Thu, 29 Nov 2018 03:28:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSHgU-0005Lz-Qd for emacs-devel@gnu.org; Thu, 29 Nov 2018 03:28:34 -0500 Original-Received: from shambler.fnord.no ([172.104.148.164]:46424) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSHgU-00058N-AZ for emacs-devel@gnu.org; Thu, 29 Nov 2018 03:28:30 -0500 Original-Received: from dhole.fnord.no (ti0146a400-1290.bb.online.no [88.88.147.17]) by shambler.fnord.no (Postfix) with ESMTPSA id A8DF91EF1D; Thu, 29 Nov 2018 08:28:25 +0000 (UTC) Original-Received: by dhole.fnord.no (Postfix, from userid 1000) id E345F3401E6FC; Thu, 29 Nov 2018 09:28:24 +0100 (CET) In-Reply-To: <20181129095026.8236@ulysses.gnu.org.ua> (sfid-20181129_075034_439289_F494CEA3) (Sergey Poznyakoff's message of "Thu, 29 Nov 2018 09:50:26 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 172.104.148.164 X-Mailman-Approved-At: Thu, 29 Nov 2018 04:15:52 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:231508 Archived-At: Sergey Poznyakoff writes: > Stig's vcl-mode was written for VCL 2.0. It was last modified in > November, 2012. Since then the language has changed quite > considerably, especially with transition from v3.0 to v4.0. > > The proposed vcl-mode.el was written from scratch. It supports VCL > 4.0, which is the version of the language used by the recent Varnish > releases. In fact, I've been using it since 2015 in my work, before > finally deciding to submit it. > > Technically. it differs from Stig's version in that it delegates > indentation tasks to c-mode, instead of calculating indentation > directly. The syntax table was designed to closely match the > language. Finally, special parenthesis-matching function is provided, > which takes into account the VCL-specific {" ... "} multi-line string > delimiters. > >> The name conflict between the two packages could be a source of >> problems if both packages keep on living their own life. > > Yes, indeed. This can be solved by naming my version vcl4-mode.el. > However, this can become misleading in the long run, e.g. if/when VCL > 5 appears, since I'm going to keep the mode in synch with any changes > in the language. As Sergey writes, my "vcl-mode.el" from https://github.com/ssm/elisp/blob/master/vcl-mode.el is out of date with regards to the current VCL specification in Varnish, and indeed also several past ones. I do not intend to spend much more time on it. I recommend that you use the much more modern "vcl-mode.el" from http://git.gnu.org.ua/cgit/vcl-mode.git/tree/vcl-mode.el -- Regards, Stig Sandbeck Mathisen