From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Charles Jackson Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: arm-mode Date: Tue, 20 Aug 2019 04:52:14 +0000 Message-ID: References: Reply-To: Charles Jackson Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="102186"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "rms\\@gnu.org" , "emacs-devel\\@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 20 06:53:27 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hzw98-000QGx-Re for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2019 06:53:27 +0200 Original-Received: from localhost ([::1]:32976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzw97-0000Iq-1x for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2019 00:53:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55462) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzw8E-0000Hp-3m for emacs-devel@gnu.org; Tue, 20 Aug 2019 00:52:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzw8C-0005qs-TH for emacs-devel@gnu.org; Tue, 20 Aug 2019 00:52:29 -0400 Original-Received: from mail-40136.protonmail.ch ([185.70.40.136]:51207) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzw8C-0005nX-Dq; Tue, 20 Aug 2019 00:52:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1566276740; bh=uFvSPuCPvk3W5CjXZ1u7vHlqNpFygZcaDc7fjmR3dOQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=DyyjVWPBL+IM+bc1mwwZ0G1nOBVervlb4jz7ovDAT17OZIN2pW3qVR8JrOu7I2YTv AgcLfk1EV6drjayM6oIbPAHSu5MAYcvmMGqw/VIzxe1FSUZFrRWu/ysOOUbp41UuSN FsxL+EEJ5xZwJUrBqeRwU3kIHcGMYjj2FuLf9wUQ= In-Reply-To: Feedback-ID: p83t8gvtwwvEnDE9c_Yw65bccluM3oRviDMKpc2tgQfCvUp_cnOnhI2azb4pGx1ROQUEh05HOUWLjr8vTaxtfg==:Ext:ProtonMail X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.70.40.136 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239472 Archived-At: I have fixed the regexp. In Arm "@" is equivilent to ";" in lisp, and "/* */" is equivilent to ";;" = in lisp. I don't understand how comment-dwim knows to put ";;" when on an empty line= and only ";" for in-line comments but I'm looking for a similar functional= ity. This how I got it to work for me. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Monday, August 19, 2019 3:53 PM, Stefan Monnier wrote: > > Thank you for the code review Stefan. I have implemented most of the > > fixed you suggested. Following is what I have a few questions about. > > I need that M-; key binding because a /* */ style comment should be > > inserted if on an empty line. To my understanding comment-dwim would > > only insert @ style comments. > > Hmm... comment-dwim doesn't care, AFAIK, it just inserts whatever you > have set for comment-start and comment-end, so it can definitely insert > /.../. But I suspect you know that, so most likely I'm > misunderstanding something. > > > The reason that (modify-syntax-entry ?_ "w" st) is there is actually de= fine > > a help define what a word is for the \< and \> regexp. If it is left ou= t > > then registers names or anything else used in labels will be highlighte= d in > > their own color. > > Ah, I see. You can probably solve this by using \< and \> which match > symbol-boundaries instead of word-boundaries. > > Stefan