help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fill-paragraph: cursor placement under cperl-mode


From: Andreas Röhler
Subject: Re: fill-paragraph: cursor placement under cperl-mode
Date: Sat, 12 Oct 2013 09:52:59 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Am 12.10.2013 09:33, schrieb Florian v. Savigny:


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






This seems broken at recent builds. Something around point and markers. Build 
from 20130706 seems okay WRT that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]