unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: bug-gnu-emacs@gnu.org
Subject: bug#7253: comment-dwim should easily allow mid-line comments
Date: Thu, 21 Oct 2010 13:20:38 +0200	[thread overview]
Message-ID: <4CC02206.2060806@easy-emacs.de> (raw)
In-Reply-To: <87k4lc42ly.fsf@jidanni.org>

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/







  reply	other threads:[~2010-10-21 11:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=4CC02206.2060806@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=bug-gnu-emacs@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).