From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Bock Newsgroups: gmane.emacs.help Subject: Re: Continuation of comments in f90-mode with auto-fill Date: Thu, 15 Jan 2015 14:25:57 -0700 Message-ID: References: <8761c92gci.fsf@deb.home.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1421357217 30661 80.91.229.3 (15 Jan 2015 21:26:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 21:26:57 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: John Mastro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 22:26:57 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YBrwN-0002ok-5u for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 22:26:55 +0100 Original-Received: from localhost ([::1]:52987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBrwL-0000Ce-Vq for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 16:26:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBrw7-0000Bi-Ph for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 16:26:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBrw6-0001xn-Vs for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 16:26:39 -0500 Original-Received: from mail-ig0-x230.google.com ([2607:f8b0:4001:c05::230]:35834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBrw6-0001xf-QF for help-gnu-emacs@gnu.org; Thu, 15 Jan 2015 16:26:38 -0500 Original-Received: by mail-ig0-f176.google.com with SMTP id b16so173247igk.3 for ; Thu, 15 Jan 2015 13:26:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=yNi9sOUq6aDZzSnzScUzUWX1bkA/pBfU+hbtq176TFg=; b=zjOpgZpTf1HiyvNIWh7O24focao5pwrZ4t8IEfomIFUh86IpS2N03VtRr8/5JW7kBB bpKYx2gIEPgv/jhyMvZ5bRbjUmXigF2qasGTbhlJ9rH0alSOjFW5mwV9qh3i0vESp0ga 6b+K7qtJwzrcQIa2IF7MWW6eHbAca1Fq4SgDUiIggVAz10F1JeRQkR7zwcgiY4XcEWGe 8iFkwOXq7oJ1ydgsNZUnylQCzHxmpO2PNOQAcMyyFzdB3ipv85053NnTLHm3FlYx3GRI 7WhHAu3CtNa1bzFZI0F+mf9lqKnZ5ngJsLHT7x7AWJe5Ut3lgI+RUabeCz/jZNJEDneS Mx0A== X-Received: by 10.107.128.87 with SMTP id b84mr12843878iod.42.1421357198156; Thu, 15 Jan 2015 13:26:38 -0800 (PST) Original-Received: by 10.107.14.136 with HTTP; Thu, 15 Jan 2015 13:25:57 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102106 Archived-At: On Thu, Jan 15, 2015 at 12:34 PM, John Mastro wrote: > Nicolas Bock wrote: >> Reading more in the manual I came across the key binding 'M-j'. When I type >> >> !> beginning... >> >> Press M-j, I get >> >> !> beginning... >> ! >> >> i.e. only a single '!' is inserted and not two as specified by >> comment-continue. I read through the implementation in >> newcomment.el::comment-indent-new-line() but I don't understand lisp >> sufficiently to see where the single '! ' comes from. Could someone >> give me a hint? > > I'm not familiar with Fortran or `f90-mode', so I could be missing > something, but this seems to work for me: > > (add-hook 'f90-mode-hook > (lambda () > (setq-local adaptive-fill-mode nil) > (setq-local fill-prefix "!! "))) > M-j is inserting "!! " now, but aligns it all the way to the left :( > -- > john