all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Charles Jackson <charles.b.jackson@protonmail.com>
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:55:14 -0400	[thread overview]
Message-ID: <jwvtvacw792.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <v4lVbhd_YdsaRKBQjb7Su7Jj3VQ-m4TpW-2GWLYA7kWa_BpOhezOZqF6Gj_oMQQy18H_wWzFUEUyl6D50hsH7E5pzi6rgnR9z0y4N4nbc2I=@protonmail.com> (Charles Jackson's message of "Tue, 20 Aug 2019 04:52:14 +0000")

> 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




  reply	other threads:[~2019-08-20  8:55 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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtvacw792.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=charles.b.jackson@protonmail.com \
    --cc=emacs-devel@gnu.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.