GNU bug report logs -
#7253
comment-dwim should easily allow mid-line comments
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Wed, 20 Oct 2010 11:39:02 UTC
Severity: wishlist
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7253 in the body.
You can then email your comments to 7253 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7253
; Package
emacs
.
(Wed, 20 Oct 2010 11:39:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
jidanni <at> jidanni.org
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 20 Oct 2010 11:39:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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".
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7253
; Package
emacs
.
(Wed, 20 Oct 2010 16:17:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7253 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7253
; Package
emacs
.
(Thu, 21 Oct 2010 03:57:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 7253 <at> debbugs.gnu.org (full text, mbox):
>>>>> "SM" == Stefan Monnier <monnier <at> 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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7253
; Package
emacs
.
(Thu, 21 Oct 2010 11:18:01 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
Am 21.10.2010 06:00, schrieb jidanni <at> jidanni.org:
>>>>>> "SM" == Stefan Monnier<monnier <at> 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/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7253
; Package
emacs
.
(Thu, 21 Oct 2010 18:37:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 7253 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7253
; Package
emacs
.
(Thu, 21 Oct 2010 19:25:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 7253 <at> debbugs.gnu.org (full text, mbox):
>>>>> "SM" == Stefan Monnier <monnier <at> 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'.
Reply sent
to
Lars Magne Ingebrigtsen <lmi <at> gnus.org>
:
You have taken responsibility.
(Thu, 21 Oct 2010 19:57:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
jidanni <at> jidanni.org
:
bug acknowledged by developer.
(Thu, 21 Oct 2010 19:57:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 7253-close <at> debbugs.gnu.org (full text, mbox):
jidanni <at> jidanni.org writes:
> M-; (translated from <escape> ;) runs the command comment-region,
> which is an interactive autoloaded Lisp function in `newcomment.el'.
I've now removed the binding from message-mode.
--
(domestic pets only, the antidote for overdose, milk.)
larsi <at> gnus.org * Lars Magne Ingebrigtsen
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 21 Oct 2010 20:18:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7253
; Package
emacs
.
(Thu, 21 Oct 2010 20:29:01 GMT)
Full text and
rfc822 format available.
Message #30 received at 7253 <at> debbugs.gnu.org (full text, mbox):
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'.
Thanks. It might make sense for message-mode to redefine the binding
somewhat since it's not really a programming mode, but this binding
means that M-; can't be used to un-quote, so it's not a good idea as
it stands.
Stefan
Added tag(s) wontfix.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 05 Mar 2012 21:19:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
7253 <at> debbugs.gnu.org and jidanni <at> jidanni.org
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 01 Feb 2014 08:32:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 01 Mar 2014 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 167 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.