From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: PICCA Frederic-Emmanuel Newsgroups: gmane.emacs.help Subject: How to write a mode for my binoculars-ng program Date: Tue, 30 Jan 2024 22:09:29 +0100 (CET) Message-ID: <1617405414.35934010.1706648969711.JavaMail.zimbra@synchrotron-soleil.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9456"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 31 13:09:20 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1rV9P5-0002CL-3G for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 31 Jan 2024 13:09:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rV9OQ-0001Op-Uo; Wed, 31 Jan 2024 07:08:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUvMR-0007dH-Qt for help-gnu-emacs@gnu.org; Tue, 30 Jan 2024 16:09:40 -0500 Original-Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUvMP-0006Ze-FC for help-gnu-emacs@gnu.org; Tue, 30 Jan 2024 16:09:39 -0500 Original-Received: from zmtaout06.partage.renater.fr (zmtaout06.partage.renater.fr [194.254.241.62]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 5BD9CC0E32 for ; Tue, 30 Jan 2024 22:09:30 +0100 (CET) Original-Received: from zmtaout06.partage.renater.fr (localhost [127.0.0.1]) by zmtaout06.partage.renater.fr (Postfix) with ESMTPS id 7F9571000B5 for ; Tue, 30 Jan 2024 22:09:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zmtaout06.partage.renater.fr (Postfix) with ESMTP id 7030A1000EF for ; Tue, 30 Jan 2024 22:09:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaout06.partage.renater.fr 7030A1000EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=9F6402A8-1C0B-4606-AB49-0E95EABF6935; t=1706648969; bh=3/fcbcslV9p8XBSvFDY++xMhlPoF3bQxzR9AcGfER9E=; h=Date:From:To:Message-ID:MIME-Version; b=P1B8lQUEXmKmTCx9CexNeOG6lGrp4Mm0dp1HW8Z6EH3wblOyICLXm0qawgYgEAXT9 A6xLy7zn5qwvDR7XgNXD7DaZZMDPUljt5heOs4Ku5Jf8YYcEoM9p2ti714AW5f925U I+gC3Q+HqUtvmpz9WHbwpEhS6UwPPpzdr1fFokCuWPxF8LWEK5QI0vV1H9A9XplzCS aMsYMY4MhEUvoD3nd5R2MESj7Acv+gfraQU8IH6wiAUyhzCMOOjjZsz/4pOlJdtLn6 dfmvhoDbaYePEF4KhBDMVSZe7d7BVN+FZ5N3LQPOVge+OemQyG71JmywBWGcpEFbcf vIzchpHDGnp0Q== Original-Received: from zmtaout06.partage.renater.fr ([127.0.0.1]) by localhost (zmtaout06.partage.renater.fr [127.0.0.1]) (amavis, port 10026) with ESMTP id KErN0BD02GA7 for ; Tue, 30 Jan 2024 22:09:29 +0100 (CET) Original-Received: from zstore-b3-012.partage.renater.fr (zstore-b3-012.partage.renater.fr [10.254.240.145]) by zmtaout06.partage.renater.fr (Postfix) with ESMTP id 5BED51000B5 for ; Tue, 30 Jan 2024 22:09:29 +0100 (CET) X-Mailer: Zimbra 8.8.15_GA_4562 (ZimbraWebClient - FF122 (Linux)/8.8.15_GA_3) Thread-Index: 7hktMIIhSeGMp7TMdqotfvUJ0dVniQ== Thread-Topic: How to write a mode for my binoculars-ng program X-Virus-Scanned: clamav-milter 0.103.8 at clamav01 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -10 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedtjedgjeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlqddutddmnecujfgurhepfffhvffkufggtgfgofhtsehtqhgttdiitdejnecuhfhrohhmpefrkfevveetucfhrhgvuggvrhhitgdqgfhmmhgrnhhuvghluceofhhrvgguvghrihgtqdgvmhhmrghnuhgvlhdrphhitggtrgesshihnhgthhhrohhtrhhonhdqshholhgvihhlrdhfrheqnecuggftrfgrthhtvghrnhepgfefgfetfeeugfeghfdvhfefudfhtdejffdtvddthfefffdutdehkeeifeetfeetnecuffhomhgrihhnpehnihhhrdhgohhvnecukfhppedutddrvdehgedrvdegtddrudegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedutddrvdehgedrvdegtddrudeghedphhgvlhhopeiishhtohhrvgdqsgefqddtuddvrdhprghrthgrghgvrdhrvghnrghtvghrrdhfrhdpmhgrihhlfhhrohhmpefrkfevveetucfhrhgvuggvrhhitgdqgfhmmhgrnhhuvghluceofhhrvgguvghrihgtqd gvmhhmrghnuhgvlhdrphhitggtrgesshihnhgthhhrohhtrhhonhdqshholhgvihhlrdhfrheqpdhnsggprhgtphhtthhopedu Received-SPF: permerror client-ip=194.254.241.31; envelope-from=frederic-emmanuel.picca@synchrotron-soleil.fr; helo=smtpout02-ext4.partage.renater.fr X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 31 Jan 2024 07:08:25 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145832 Archived-At: Hello, I am writing a program which use an ini file in order to configure it. binoculars-ng which is used in X-Ray surface diffaction. This is the next v= ersion of https://pubmed.ncbi.nlm.nih.gov/26306093/ I would like to use emacs in order to create a frontend to my program. So the idea is to write a dedicated mode. Here the thinks I think about. - I need a customize conf-unix-mode, where only a bunch of sections and key= s are allowed. in order to properly highlight my conf file. - a company backend in order to autocomplete the section, keys and values. - a dedicated menu in order to run the program with the current config file= . and the usual `C-c C-c` to run it :). - the process is quite long (a few minutes) so I would like to grab the out= put of my program in a buffer or display a progress bar. So I would like some help from your community in order to achieve this. I never wrote a single line of elisp. (I am more a C/Python/Haskell/Debian)= guy. thanks Fr=C3=A9d=C3=A9ric