all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [gmane.emacs.devel] Re: [ELPA] New package: vcl-mode
@ 2018-11-29  7:50 Sergey Poznyakoff
  2018-11-29  8:13 ` Eli Zaretskii
  2018-11-29  8:28 ` Stig Sandbeck Mathisen
  0 siblings, 2 replies; 4+ messages in thread
From: Sergey Poznyakoff @ 2018-11-29  7:50 UTC (permalink / raw)
  To: emacs-devel; +Cc: Steve Purcell, Stig Sandbeck Mathisen

Hi Stefan,

> Not sure if you follow emacs-devel, so here's a separate copy,

Thanks a lot. I'm not subscribed to the list, indeed.
 
> Sounds good.  Do you have some branch with a VCS history we could
> include or should I add the file as-is, losing the history?

Yes, I do. The current repository for vcl-mode is available at

  http://git.gnu.org.ua/cgit/vcl-mode.git (to view online)
or
  git://git.gnu.org.ua/vcl-mode.git (to clone).

> BTW, I assume you intend to use the elpa.git version as the "upstream", right?

Yes, that's right.

> One more thing, while looking for a VCS history, I saw
> 
>     https://github.com/ssm/elisp/blob/master/vcl-mode.el
> 
> which apparently is the one advertised on
> 
>     https://varnish-cache.org/extras/index.html
> 
> How does your code compare to that one?

Yes, I'm aware of it. I tried to contact Stig a couple of years ago, but
unfortunately to no avail.

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. 

Regards,
Sergey



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-29 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-29  7:50 [gmane.emacs.devel] Re: [ELPA] New package: vcl-mode Sergey Poznyakoff
2018-11-29  8:13 ` Eli Zaretskii
2018-11-29 15:30   ` Stefan Monnier
2018-11-29  8:28 ` Stig Sandbeck Mathisen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.