From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: comment-dwim on blank lines Date: Thu, 01 Nov 2007 21:09:53 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193965818 16901 80.91.229.12 (2 Nov 2007 01:10:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2007 01:10:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 02:10:20 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Inl33-000115-Hy for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2007 02:10:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Inl2t-0003en-F6 for ged-emacs-devel@m.gmane.org; Thu, 01 Nov 2007 21:09:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Inl2q-0003dO-9N for emacs-devel@gnu.org; Thu, 01 Nov 2007 21:09:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Inl2o-0003at-Nw for emacs-devel@gnu.org; Thu, 01 Nov 2007 21:09:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Inl2o-0003al-La for emacs-devel@gnu.org; Thu, 01 Nov 2007 21:09:54 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Inl2o-0003k3-Ge for emacs-devel@gnu.org; Thu, 01 Nov 2007 21:09:54 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Inl2o-0006ne-0B; Thu, 01 Nov 2007 21:09:54 -0400 X-Spook: JUWTF Exon Shell Becker TELINT Saddam Hussein Roswell IRA X-Ran: 0K20'pVHkyI_y&P@qzIo1Y`k{W@tJu}[#ua|GYYU-{EgjkuZ}E7RyfQ)I,u_SKqBVQ+L0W X-Hue: white X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82331 Archived-At: If comment-dwim is called on a non-blank line, it calls comment-indent to do the work of either inserting or indenting a comment. On a blank line, it does the work of inserting a new comment itself. Is there a reason for this difference in behaviour? It means that there isn't really any way for modes to customize what comment-dwim does on blank lines, other than by abusing indent-line-function. In particular, comment-insert-comment-function does not get called, which seems to contradict its doc-string.