From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: cobol-mode Date: Sat, 14 Jan 2017 12:53:04 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484416406 13354 195.159.176.226 (14 Jan 2017 17:53:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2017 17:53:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: joakim.jalap@fastmail.com, Simon Sobisch , emacs-devel@gnu.org To: Edward Hart Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 14 18:53:21 2017 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 1cSSVw-0002je-Rq for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2017 18:53:16 +0100 Original-Received: from localhost ([::1]:48904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSSW1-0004Jl-F1 for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2017 12:53:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSSVs-0004IW-3Z for emacs-devel@gnu.org; Sat, 14 Jan 2017 12:53:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSSVn-0003Ty-9y for emacs-devel@gnu.org; Sat, 14 Jan 2017 12:53:12 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54022) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cSSVn-0003Tj-2h for emacs-devel@gnu.org; Sat, 14 Jan 2017 12:53:07 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AwKQAu3EVY/8CvSC1dGgEBAQECAQEBAQgBAQEBgzgBAQEBAR9ahAGFVJwCJgGSR4QXKYVzBAICghFEEAECAQEBAQEBAWIohGkBBAFWIwULCzQSFBgNJIh6CA6tBotEAQEBAQYCAR8FixmKKQWPfIpqhkuDEQWJKIR9gxSGOpIPNiB4Ew6FcyCJLQEBAQ X-IPAS-Result: A0AwKQAu3EVY/8CvSC1dGgEBAQECAQEBAQgBAQEBgzgBAQEBAR9ahAGFVJwCJgGSR4QXKYVzBAICghFEEAECAQEBAQEBAWIohGkBBAFWIwULCzQSFBgNJIh6CA6tBotEAQEBAQYCAR8FixmKKQWPfIpqhkuDEQWJKIR9gxSGOpIPNiB4Ew6FcyCJLQEBAQ X-IronPort-AV: E=Sophos;i="5.33,749,1477972800"; d="scan'208";a="286094924" Original-Received: from 45-72-175-192.cpe.teksavvy.com (HELO pastel.home) ([45.72.175.192]) by smtp.teksavvy.com with ESMTP; 14 Jan 2017 12:53:04 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D1C5E64DF6; Sat, 14 Jan 2017 12:53:04 -0500 (EST) In-Reply-To: (Edward Hart's message of "Fri, 13 Jan 2017 23:17:30 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:211291 Archived-At: > I'd like to submit cobol-mode.el, a major mode for COBOL, everyone's > favourite legacy programming language. It features syntax highlighting for > most modern COBOL dialects, indentation, code skeletons, rulers and basic > formatting functions. It works with both fixed and free source format code. > It is currently hosted at > https://gist.github.com/Edward-H/6768e7dc53ea3dd2adca. I pushed it to elpa.git along with a few tweaks (you hopefully received the corresponding commit-diffs). I had to add a whole bunch of `eval-and-compile` to get the code to compile (because `syntax-propertize-rules` needs to compute the regexps during macro-expansion, and hence during compilation), and I'm pretty sure the result is not really correct, since some of those eval-and-compile are around defcustoms, which means that the code is compiled using a specific value of those defcustoms and won't be re-compiled to accommodate the user's later preferences. Please take a look at it (as well as a few other FIXMEs I've added such as one for `in-string-p` which doesn't exist (well there's one defined in thingatpt.el but you don't require that package)). Feel free to ask further questions to solve those problems, Stefan