From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: arm-mode Date: Tue, 20 Aug 2019 04:55:14 -0400 Message-ID: References: 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="23411"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "rms@gnu.org" , "emacs-devel@gnu.org" To: Charles Jackson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 20 10:55:34 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 1hzzvR-0005wr-UE for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2019 10:55:34 +0200 Original-Received: from localhost ([::1]:34916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzzvQ-00019b-BE for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2019 04:55:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59496) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzzvJ-00016u-EP for emacs-devel@gnu.org; Tue, 20 Aug 2019 04:55:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzzvG-0001uT-EK for emacs-devel@gnu.org; Tue, 20 Aug 2019 04:55:24 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:48406) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzzvF-0001tc-Ri; Tue, 20 Aug 2019 04:55:22 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1D7C081269; Tue, 20 Aug 2019 04:55:19 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D089380E08; Tue, 20 Aug 2019 04:55:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1566291316; bh=bVpZ57v2y+yiBMZTQt8mucTBNp81TRDchQxguV1RkgQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mnZYK+cd48amCbcMeApo9rSSQ5ryistczW7F3t2YgX9B+CLhPA7QantNFVxISLqoq rJ/n+V5fdLno8Nacjm2kdYU+xVczM5759NDmlwuCUc3nuxjorSEiTu40oDrigsNuYv Rhhw45o1IGh40n18RSLSRRSZICLEEsBhsknaBrGDY5H4z5EaJbOsG5/zHWKeFBCSlw kXjCF2lQlgjMWFOTysauCuTMD+sAAXQy/KcWJwFrVSx0wZLZ254+C7CwTAY+o1BnH3 8LsRLtxHQ93+nHbgAXsqJfLkaDVSyOslUvHf0ULreEAVi6SGGXxhTQPNKz1u3iJpXe +NX28HPato/dg== Original-Received: from alfajor (port-87-193-132-138.static.qsc.de [87.193.132.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0ABF41202FE; Tue, 20 Aug 2019 04:55:15 -0400 (EDT) In-Reply-To: (Charles Jackson's message of "Tue, 20 Aug 2019 04:52:14 +0000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:239474 Archived-At: > 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 li= ne > 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 Original = 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 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 d= efine >> > a help define what a word is for the \< and \> regexp. If it is left o= ut >> > then registers names or anything else used in labels will be highlight= ed in >> > their own color. >> >> Ah, I see. You can probably solve this by using \< and \> which match >> symbol-boundaries instead of word-boundaries. >> >> Stefan