From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Feature request: CMake-mode Date: Fri, 2 Oct 2020 02:53:25 +0200 Message-ID: <20201002005325.xew6i3ypgdmnon5j@Ergus> References: <87mu15tw3d.fsf.ref@Ergus.i-did-not-set--mail-host-address--so-tickle-me> <87mu15tw3d.fsf@Ergus.i-did-not-set--mail-host-address--so-tickle-me> <87blhlfp7u.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1364"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?B?w5NzY2Fy?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 02 02:54:37 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO9LI-0000Fi-Ts for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Oct 2020 02:54:36 +0200 Original-Received: from localhost ([::1]:35374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kO9LH-0000zU-U0 for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Oct 2020 20:54:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kO9KX-0000ZC-OM for emacs-devel@gnu.org; Thu, 01 Oct 2020 20:53:49 -0400 Original-Received: from sonic309-15.consmr.mail.bf2.yahoo.com ([74.6.129.125]:41663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kO9KT-0007Pt-2b for emacs-devel@gnu.org; Thu, 01 Oct 2020 20:53:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1601600019; bh=aHnM/Za7xLJ5vpYA2ei+Vmuqb04Ads+gE7ZF+LeS+fg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=YKvhvlMFG8hWFXpoiRD4EkMSh099UHNMTcH9+ALFVqraP9ElW6WO3Ud+TYeBwOBRTnr0UP6dTGtWKO8C5VOzybusnB6eAgbp+lkaBndP6AYrdUFlb3L6oU+OaG31In/T0k2ODdy/UfYBAQ0IkDHE18nd1odfh6m2vYye0GZGsZVzensUgYxwhet+R/bjDT6M/coQhb9ZZ56HKGbd2Qj8KzOJRwV2tFyY0QDmuYJQieoo2xht7d7aQ/6U2Eb1GSvkZ7yp5SnEJdPvPMDJaPu5ug3u+1HOk59UcFKddnOJnS0uIJnXbz8+dPlNONkLfEJJEWPtl9pFpIbPgAiEYLkNnA== X-YMail-OSG: 6LWA8Q0VM1nfR4redyIlpoWMOMSgOq0xajPkl5tK6dmoaya_ySt07EM0U7K9saE XWrkiLRAFJ2nSOoQh0c2a6gDuuMLLp2geX9un2.bA4iMHB3U7GpxZ7kFZHuzwecIfS6AXuzd3qnY 4S.P_4XvjID.AvgEa_pLgVC1aH7MRFpa8svkQGV6pDpdgejtqP2bN8wskDoxAOnQtUPzTGzqN5KR fO1oCC2gseRQSt8n0wBU8E1SJnqr7Tnx2_a7aUZvUWJc9pyRzkbKo_3QqtikfWOssbhMprKJxHde hQ3oiXNwABKl0zSBbUqwvdZhcOZBEfQiqMLnM9vj8to6B0bw9_06Qyqnbfv2KFWcoZGI.NlI3nLr DKrB.V2HZ4DauP0Ezteh8zzMFB.HuJWvmdTxSU7aIfDAwwFuPtkLrhMPO9duV67xCWXGLtd_.Jx9 p8jrSIw0vHqhmKl7dJqfmxxmCkrkGj5pbOxkBTOykvjahDDTasng2PC1ImGWZWvsZiiHJMibYHDp d4nsqp3_ACHaf7.nYyQOqyjuEg2UKyHX7QyBI72boKFjUaHdC9k3UJb7vh6Ndxj8xVfXfkoovhqb 2d2Xw9nsgCNVoGGQAkflTj0kukP2XYqX4OhyHSVbLBqXairk8gkxqLKLG07TiUouuiX5KhoLjgYw FgxxUXDRgKjvxKAz773ktwGvkTVIjcwEQxhVuGgxcny5XbKkj9ry3YKhzxrXTLV1dgWjO_PERrn_ OZMTSHTQqZdLsLaV6R.OHAEwpe0_VAKLWUG0cyinJ9FDyojQanBEENwSl0PlhMRLtXj6n3elSI_R 4ZOCfdLtlhaKBnSWAE1Smdj7JblWyPCEMota6j0rKX Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Fri, 2 Oct 2020 00:53:39 +0000 Original-Received: by smtp422.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3cb3f5dd02867c7277003b0e5909225c; Fri, 02 Oct 2020 00:53:34 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87blhlfp7u.fsf@telefonica.net> X-Mailer: WebService/1.1.16718 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.129.125; envelope-from=spacibba@aol.com; helo=sonic309-15.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/01 20:53:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256905 Archived-At: On Fri, Oct 02, 2020 at 02:25:57AM +0200, �scar Fuentes wrote: >Ergus writes: > >> Hi: >> >> I have just noticed that Emacs does not have any native mode for cmake, >> not even in elpa. And cmake is becomming more and more popular these >> days. > >Yes. > >> There is a package in melpa which is very poorly maintained by the >> cmake community. >> >> https://melpa.org/packages/cmake-mode-20190710.1319.el >> https://github.com/Kitware/CMake/blob/master/Auxiliary/cmake-mode.el > >And you think that we would do better? :-) > The package seems not really very maintained. >> But it is indeed very poor and limited compared to others like: >> >> https://melpa.org/#/cmake-font-lock > >This one just adds advanced syntax highlighting, it does not provide >indentation, etc. > Well, it is indeed better than the other. Also the other one covers indentation decently fine. But also the implementation of this one is much more complete. >> and produces some conflicts when interacting. > >Those are bugs, because its README says > > This package is designed to be used together with a major mode for > editing CMake files. > >and then goes on explicitly mentioning Kitware's mode. > Actually the problem is that part of the work the package does is supposed to be implemented in the major mode not in a minor mode. Look at this issue and the final comments: https://github.com/Lindydancer/cmake-font-lock/issues/9 It has a similar issue with packages like rainbow. >> Could we consider to add a native cmake mode to vanilla or contact the >> Kitware people to add this one to elpa? Or in the worst case to change >> the name of their package in order to release the name and add a GPL >> versioned one to elpa? > >CMake releases new versions quite often, so an elpa package (not to >mention a vanilla one) would soon be outdated unless someone (TM) >commits to keeping it up to date. > That's true. But actually the Kitware file supports only the most basic keywords. Most of the new features, and syntax are not included there any way. >I've interacted with the Kitware guys on the distant past and I *guess* >that they would be glad to put their mode on elpa, but the relicensing >and paper signing are not straightforward because right now I see 11 >contributors to that source file and most of them are not Kitware >employees. Isn't there a new elpa repository for non-GNU packages? That >would make this issue irrelevant. >