unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: florian@fsavigny.de (Florian v. Savigny)
To: help-gnu-emacs@gnu.org
Subject: fill-paragraph: cursor placement under cperl-mode
Date: Sat, 12 Oct 2013 03:33:50 -0400	[thread overview]
Message-ID: <E1VUthn-0006J7-BI@eggs.gnu.org> (raw)



Hi there,

let's say I have a paragraphs with a longer comment in cperl-mode,
such as:

 # a script that converts umlauts and ß in filenames to ascii
 # characters, sings a song on the way

and then I add something, e.g. like:

 # a script that converts umlauts and ß in filenames to ascii
 # characters, sings a song on the way, and dances various folk dances
                                                                      ^

(^ marks where the cursor is) and type M-q, Emacs will fill
the paragraph, and put the cursor at the beginning of the
reformatted paragraph:

 # a script that converts umlauts and ß in filenames to ascii characters, sings
^# a song on the way, and dances various folk dances

I find this somewhat annoying. It does not seem to happen
under any other mode, where the cursor is just left where it
was, i.e. at the end of the paragraph.

I have not been able to find any hint in the documentation,
or in my customisations of cperl-mode. Can anybody give me a
hint where the problem might lie?

Thanks a bunch!

Regards,

Florian






             reply	other threads:[~2013-10-12  7:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-12  7:33 Florian v. Savigny [this message]
2013-10-12  7:52 ` fill-paragraph: cursor placement under cperl-mode Andreas Röhler
2013-10-12 14:20   ` Florian v. Savigny

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=E1VUthn-0006J7-BI@eggs.gnu.org \
    --to=florian@fsavigny.de \
    --cc=help-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.
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).