From: Charles Jackson <charles.b.jackson@protonmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "rms\\@gnu.org" <rms@gnu.org>,
"emacs-devel\\@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: arm-mode
Date: Tue, 20 Aug 2019 04:52:14 +0000 [thread overview]
Message-ID: <v4lVbhd_YdsaRKBQjb7Su7Jj3VQ-m4TpW-2GWLYA7kWa_BpOhezOZqF6Gj_oMQQy18H_wWzFUEUyl6D50hsH7E5pzi6rgnR9z0y4N4nbc2I=@protonmail.com> (raw)
In-Reply-To: <jwva7c4zxr4.fsf-monnier+emacs@gnu.org>
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 functionality. This how I got it to work for me.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, August 19, 2019 3:53 PM, Stefan Monnier <monnier@iro.umontreal.ca> 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 define
> > a help define what a word is for the \< and \> regexp. If it is left out
> > then registers names or anything else used in labels will be highlighted in
> > their own color.
>
> Ah, I see. You can probably solve this by using \< and \> which match
> symbol-boundaries instead of word-boundaries.
>
> Stefan
next prev parent reply other threads:[~2019-08-20 4:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-08 21:18 [ELPA] New package: arm-mode Charles Jackson
2019-08-09 21:54 ` Stefan Monnier
2019-08-10 16:10 ` Charles Jackson
2019-08-10 2:30 ` Richard Stallman
2019-08-10 16:02 ` Charles Jackson
2019-08-11 2:37 ` Richard Stallman
2019-08-11 2:58 ` Charles Jackson
2019-08-12 1:36 ` Richard Stallman
2019-08-18 6:12 ` Charles Jackson
2019-08-19 20:53 ` Stefan Monnier
2019-08-20 4:52 ` Charles Jackson [this message]
2019-08-20 8:55 ` Stefan Monnier
2019-08-20 16:23 ` Charles Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='v4lVbhd_YdsaRKBQjb7Su7Jj3VQ-m4TpW-2GWLYA7kWa_BpOhezOZqF6Gj_oMQQy18H_wWzFUEUyl6D50hsH7E5pzi6rgnR9z0y4N4nbc2I=@protonmail.com' \
--to=charles.b.jackson@protonmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).