all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Cc: Nicolas Bock <nicolasbock@gmail.com>
Subject: Re: Continuation of comments in f90-mode with auto-fill
Date: Thu, 15 Jan 2015 11:34:50 -0800	[thread overview]
Message-ID: <CAOj2CQQp3EoQ5-6sBJ_CcV6UshtY-zan7t3-J_QTS_epAajunQ@mail.gmail.com> (raw)
In-Reply-To: <CAPMKG4B=79NXBhm6q8K5LTNBXsAPWkBarEYgej12UEK5s30V4Q@mail.gmail.com>

Nicolas Bock <nicolasbock@gmail.com> 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 "!! ")))

-- 
john



  reply	other threads:[~2015-01-15 19:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-14 21:38 Continuation of comments in f90-mode with auto-fill Bernardo
2015-01-15  1:15 ` Nicolas Bock
2015-01-15 18:43   ` Nicolas Bock
2015-01-15 19:34     ` John Mastro [this message]
2015-01-15 21:25       ` Nicolas Bock
  -- strict thread matches above, loose matches on Subject: below --
2015-01-14 12:39 Nicolas Bock

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOj2CQQp3EoQ5-6sBJ_CcV6UshtY-zan7t3-J_QTS_epAajunQ@mail.gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=nicolasbock@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.