From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#7253: comment-dwim should easily allow mid-line comments Date: Thu, 21 Oct 2010 13:20:38 +0200 Message-ID: <4CC02206.2060806@easy-emacs.de> References: <87k4lc42ly.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287661375 15054 80.91.229.12 (21 Oct 2010 11:42:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2010 11:42:55 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 21 13:42:53 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8tXo-0003e8-Qy for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Oct 2010 13:42:53 +0200 Original-Received: from localhost ([127.0.0.1]:33756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8tXo-0003lz-3o for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Oct 2010 07:42:52 -0400 Original-Received: from [140.186.70.92] (port=59294 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8tXe-0003k3-9j for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 07:42:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8tXc-0004Y7-Gr for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 07:42:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8tXc-0004Xs-FF for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 07:42:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P8t9l-0004hA-R9; Thu, 21 Oct 2010 07:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Oct 2010 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7253 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.128765987318042 (code B ref -1); Thu, 21 Oct 2010 11:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Oct 2010 11:17:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P8t9c-0004gx-6j for submit@debbugs.gnu.org; Thu, 21 Oct 2010 07:17:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P8t9a-0004gr-4v for submit@debbugs.gnu.org; Thu, 21 Oct 2010 07:17:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8tDI-0006rG-2m for submit@debbugs.gnu.org; Thu, 21 Oct 2010 07:21:41 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8tDH-0006rB-Vs for submit@debbugs.gnu.org; Thu, 21 Oct 2010 07:21:40 -0400 Original-Received: from [140.186.70.92] (port=38469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8tDF-0005uP-51 for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 07:21:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8tDD-0006lX-AL for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 07:21:37 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:63782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8tDC-0006ka-QM for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 07:21:35 -0400 Original-Received: from noname.home (brln-4dbc643a.pool.mediaWays.net [77.188.100.58]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MbJMy-1OsSp43vEK-00IoL4; Thu, 21 Oct 2010 13:21:31 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: <87k4lc42ly.fsf@jidanni.org> X-Provags-ID: V02:K0:bTAzdEycQi4VKVQsRNMujsRRLIlHe7VD96f0FOs4o4C 9B9TLO+sbP6Z92zTZnYJi1vb6FqSuB3UaN+AfF8R1RAhKIAb9j zgrUH1h7CK4a+eBdfr5Yygf0tXcSIJ184bepIROI4szAIn7civ 08zuUDE24R6EOHI8dO7+gwFmzHma8bJe6Y60XNr3Lh0ivS0zfp smzLTNIBfTmAunsm4jEkoolb2Mlo1rwpGu94e8c5uQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Oct 2010 07:18:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41031 Archived-At: Am 21.10.2010 06:00, schrieb jidanni@jidanni.org: >>>>>> "SM" == Stefan Monnier 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/