* bug#7253: comment-dwim should easily allow mid-line comments
@ 2010-10-20 10:06 jidanni
2010-10-20 16:20 ` Stefan Monnier
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: jidanni @ 2010-10-20 10:06 UTC (permalink / raw)
To: 7253
Sometimes I want to make a comment in the middle of a line, not at the
end, but whenever I hit M-;, prefix or not, comment-dwim insists on
putting it at the end of line, at least in html-helper mode.
emacs-version "24.0.50.1".
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#7253: comment-dwim should easily allow mid-line comments
2010-10-20 10:06 bug#7253: comment-dwim should easily allow mid-line comments jidanni
@ 2010-10-20 16:20 ` Stefan Monnier
2010-10-21 4:00 ` jidanni
2010-10-21 19:28 ` jidanni
2 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2010-10-20 16:20 UTC (permalink / raw)
To: jidanni; +Cc: 7253
> Sometimes I want to make a comment in the middle of a line, not at the
> end, but whenever I hit M-;, prefix or not, comment-dwim insists on
> putting it at the end of line, at least in html-helper mode.
> emacs-version "24.0.50.1".
How would you tell Emacs that your intention is to make it in
the middle?
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#7253: comment-dwim should easily allow mid-line comments
2010-10-20 10:06 bug#7253: comment-dwim should easily allow mid-line comments jidanni
2010-10-20 16:20 ` Stefan Monnier
@ 2010-10-21 4:00 ` jidanni
2010-10-21 11:20 ` Andreas Röhler
2010-10-21 18:40 ` Stefan Monnier
2010-10-21 19:28 ` jidanni
2 siblings, 2 replies; 8+ messages in thread
From: jidanni @ 2010-10-21 4:00 UTC (permalink / raw)
To: monnier; +Cc: 7253
>>>>> "SM" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Sometimes I want to make a comment in the middle of a line, not at the
>> end, but whenever I hit M-;, prefix or not, comment-dwim insists on
>> putting it at the end of line, at least in html-helper mode.
>> emacs-version "24.0.50.1".
SM> How would you tell Emacs that your intention is to make it in
SM> the middle?
Excellent question. One would think adding a prefix argument to M-;
would be good... but that probably already is taken... and wait, M-; is
bound to different commands in different modes... Yuck. E.g., as I write
this it is bound to comment-region.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#7253: comment-dwim should easily allow mid-line comments
2010-10-21 4:00 ` jidanni
@ 2010-10-21 11:20 ` Andreas Röhler
2010-10-21 18:40 ` Stefan Monnier
1 sibling, 0 replies; 8+ messages in thread
From: Andreas Röhler @ 2010-10-21 11:20 UTC (permalink / raw)
To: bug-gnu-emacs
Am 21.10.2010 06:00, schrieb jidanni@jidanni.org:
>>>>>> "SM" == Stefan Monnier<monnier@iro.umontreal.ca> writes:
>>> Sometimes I want to make a comment in the middle of a line, not at the
>>> end, but whenever I hit M-;, prefix or not, comment-dwim insists on
>>> putting it at the end of line, at least in html-helper mode.
>>> emacs-version "24.0.50.1".
>
> SM> How would you tell Emacs that your intention is to make it in
> SM> the middle?
>
> Excellent question. One would think adding a prefix argument to M-;
> would be good... but that probably already is taken... and wait, M-; is
> bound to different commands in different modes... Yuck. E.g., as I write
> this it is bound to comment-region.
>
>
>
>
Hi,
as per chance played with commenting a little bit:
do you may present a show-case, where such a feature makes sense?
See a lot of difficulties beside: does "in the middle" mean splitting
words if existing there?
Andreas
--
https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
https://code.launchpad.net/s-x-emacs-werkstatt/
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#7253: comment-dwim should easily allow mid-line comments
2010-10-21 4:00 ` jidanni
2010-10-21 11:20 ` Andreas Röhler
@ 2010-10-21 18:40 ` Stefan Monnier
[not found] ` <mailman.9.1287690198.32629.bug-gnu-emacs@gnu.org>
[not found] ` <877hhb2vmj.fsf_-_@jidanni.org>
1 sibling, 2 replies; 8+ messages in thread
From: Stefan Monnier @ 2010-10-21 18:40 UTC (permalink / raw)
To: jidanni; +Cc: 7253
> Excellent question. One would think adding a prefix argument to M-;
> would be good... but that probably already is taken... and wait, M-; is
> bound to different commands in different modes...
No, M-; should usually not be rebound in major-mods.
> Yuck. E.g., as I write this it is bound to comment-region.
Sounds like a misfeature of the major mode you're using. Can you give
us some details?
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#7253: M-; rebound in message-mode
2010-10-20 10:06 bug#7253: comment-dwim should easily allow mid-line comments jidanni
2010-10-20 16:20 ` Stefan Monnier
2010-10-21 4:00 ` jidanni
@ 2010-10-21 19:28 ` jidanni
2 siblings, 0 replies; 8+ messages in thread
From: jidanni @ 2010-10-21 19:28 UTC (permalink / raw)
To: monnier; +Cc: 7253, ding
>>>>> "SM" == Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
SM> No, M-; should usually not be rebound in major-mods.
>> Yuck. E.g., as I write this it is bound to comment-region.
SM> Sounds like a misfeature of the major mode you're using. Can you give
SM> us some details?
major-mode ^U^X^E message-mode
M-; (translated from <escape> ;) runs the command comment-region,
which is an interactive autoloaded Lisp function in `newcomment.el'.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-10-21 20:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-20 10:06 bug#7253: comment-dwim should easily allow mid-line comments jidanni
2010-10-20 16:20 ` Stefan Monnier
2010-10-21 4:00 ` jidanni
2010-10-21 11:20 ` Andreas Röhler
2010-10-21 18:40 ` Stefan Monnier
[not found] ` <mailman.9.1287690198.32629.bug-gnu-emacs@gnu.org>
2010-10-21 19:59 ` bug#7253: M-; rebound in message-mode Lars Magne Ingebrigtsen
[not found] ` <877hhb2vmj.fsf_-_@jidanni.org>
2010-10-21 20:31 ` Stefan Monnier
2010-10-21 19:28 ` jidanni
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.