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 16:23:01 +0000 [thread overview]
Message-ID: <z1M7lHgdR3-avHS_d5AC-wcybpKwmYy6IMShRhGnEzlSfXCWn5EOZPMihBnNlwIPClaZNZ90okz1Jq5kgxz8tpIf4cTgdmBWSc7QzGmATU4=@protonmail.com> (raw)
In-Reply-To: <jwvtvacw792.fsf-monnier+emacs@gnu.org>
Here is the bug number: bug#37099
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, August 20, 2019 3:55 AM, Stefan Monnier <monnier@iro.umontreal.ca> 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
>
> > ‐‐‐‐‐‐‐ 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
prev parent reply other threads:[~2019-08-20 16:23 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
2019-08-20 8:55 ` Stefan Monnier
2019-08-20 16:23 ` Charles Jackson [this message]
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='z1M7lHgdR3-avHS_d5AC-wcybpKwmYy6IMShRhGnEzlSfXCWn5EOZPMihBnNlwIPClaZNZ90okz1Jq5kgxz8tpIf4cTgdmBWSc7QzGmATU4=@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).