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 16:23:01 +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="77465"; 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 18:23:17 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 1i06ui-000K32-Tn for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2019 18:23:17 +0200 Original-Received: from localhost ([::1]:39488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i06uh-0006Qh-Di for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2019 12:23:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44501) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i06ua-0006Q6-Cw for emacs-devel@gnu.org; Tue, 20 Aug 2019 12:23:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i06uY-0007ai-Ij for emacs-devel@gnu.org; Tue, 20 Aug 2019 12:23:08 -0400 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]:18790) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i06uX-0007Z8-Vx; Tue, 20 Aug 2019 12:23:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1566318182; bh=bPRyI0YwH/JUQ69RxaEa0UkkSrkjIoPbkf1NCwFGquI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=glmyP1nqBQIFbrOjd2GxJg78aIiIbRs78xWil4ft6al2B5bYJA+oAM4y3CzkLa2Zz 6Yrj5f5g8c4BbJIkdvUfR21dEFzYicrJ/oCm6yJK/ilqdJOhkhqPioVpKP9GYUq4H6 UIm1nxE2mf30DiuoCDjnhznPlj3JwoP36EYdnh4s= 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.130 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:239478 Archived-At: Here is the bug number: bug#37099 =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 Tuesday, August 20, 2019 3:55 AM, Stefan Monnier wrote: > > 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 > > functionality. This how I got it to work for me. > > Oh, you mean you want comment-dwim to use @-comments for "end of line > comments", but to use /.../-comments for whole-line comments? > > The ;-vs-;; difference is obtained via the `comment-add` variable, but > indeed it doesn't cover your use case. > > Could you `M-x report-emacs-bug` to request this as a new feature? > [ And please send me the resulting bug-number. ] > > Stefan > > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Origina= l Message =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 monnier@iro.umontrea= l.ca wrote: > > > > > > Thank you for the code review Stefan. I have implemented most of th= e > > > > 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 woul= d > > > > 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 inse= rt > > > /.../. But I suspect you know that, so most likely I'm > > > misunderstanding something. > > > > > > > The reason that (modify-syntax-entry ?_ "w" st) is there is actuall= y define > > > > a help define what a word is for the \< and \> regexp. If it is lef= t out > > > > then registers names or anything else used in labels will be highli= ghted in > > > > their own color. > > > > > > Ah, I see. You can probably solve this by using \< and \> which match > > > symbol-boundaries instead of word-boundaries. > > > Stefan