GNU bug report logs -
#79047
Add some multi-character pairs to some major modes.
Previous Next
Full log
View this message in rfc822 format
Alan Mackenzie <acm <at> muc.de> writes:
>> > Elijah, I'm speaking here from the point of view of CC Mode.
>
>> > What exactly do you mean by "adding" these multi-character pairs? What
>> > would the user see that she doesn't already see?
>
>> These pairs are meant to be used in for auto-close block comments, after
>> the user types "/*", the corresponding "*/" will be inserted, packages
>> such as smartparens provide this behavior to most C-like modes.
>
> OK, thanks.
>
> But who's going to want to do this when there's M-; `comment-dwim' which
> inserts both the comment opener and comment closer in a single key
> stroke?
comment-dwim sometimes doesn't insert the comments where i want, it
mostly insert the comments at the end of the line, or indent them
according to `comment-column` (which ofc can be configured, but in most
the cases, it will not work as expected).
> Surely anybody typing /* explicitly will being doing so on a
> rare occasion when she _doesn't_ want the closing */ also inserted.
The feature can be optional, enabled via an user option or command,
similar to `c-toggle-auto-newline`.
>> > Or are you talking about doing something we already do, but in a
>> > different way?
>
>> I don't know if CC Mode have something similar.
>
> M-; is common to most (?all) programming and text modes.
Right, but calling comment-dwim in some modes doesn't insert a block
comment, even if those modes supports block comments, (e.g. js-mode)
--
- E.G via GNU Emacs and Org.
This bug report was last modified 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.