From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Gesthuizen Subject: Re: emacs irony-mode Date: Mon, 13 Aug 2018 21:48:57 +0200 Message-ID: <4898a12d-7987-8ddb-f12b-a10d76822deb@yahoo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpIpr-00039C-J2 for guix-devel@gnu.org; Mon, 13 Aug 2018 15:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpIpo-0001x4-He for guix-devel@gnu.org; Mon, 13 Aug 2018 15:49:03 -0400 Received: from sonic310-13.consmr.mail.ir2.yahoo.com ([77.238.177.34]:46766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fpIpo-0001ww-9h for guix-devel@gnu.org; Mon, 13 Aug 2018 15:49:00 -0400 In-Reply-To: Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: fis trivial Cc: "guix-devel@gnu.org" On 13.08.2018 21:23, fis trivial wrote: > Tim Gesthuizen writes: > >> Hi, >> >> I am trying to package irony-mode for emacs and quickly >> >> noticed that I need more input on how packages like this should >> >> be seperated or handled. >> >> Maybe somebody wants to take my approach and integrate the >> >> package definition(s) into guix or provide some information >> >> towards how such packages should be integrated. >> >> You find the script with my package definition attached. >> >> Mentioning packages with similar problems would also be helpful. >> >> >> Best regards, >> >> Tim Gesthuizen > I'm not helping. But there are other candidates than irony-mode now. Fo= r two > scenarios: > > 1. You have a way to generate compilation database: > > Use cquery with lsp-mode. cquery is a fully featured c/c++/objec= tive-c > language server. > > or > > Use rtags. The server is packaged in Guix. Personal experience = tells > that cquery is better at its job. But you can be the judge. :) > > 2. You can't generate a compilation database: > > Just use company-clang and flycheck, which combined should do ev= erything > irony could. > > If this doesn't convince you to give up irony-mode. Then your packaging= looks > good to me. If there really is room to improve, maybe you can extract = the > "source" part out? Note that I'm not proficient as others here. > > -- > Jiaming Hi, thank you for mentioning lsp. I did not know that it is that feature rich so I will definitely give it a try. When it does not convince me to be a proper replacement I will keep packaging irony-mode. The "source" part will be gone when I pick up the tips from Pierre: > I think what you want here is a single package, maybe with several outp= uts. For > instance, the server would be the "out" output while the Emacs mode wou= ld be the > "emacs" output.=20 It was just an attempt to show that both packages use the same source. For now I will stop working on irony-mode and maybe pick it up at a later= point. Also I do not know how many other people are using irony-mode so maybe it's just me and packaging it is pointless anyway.