all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* fill-paragraph: cursor placement under cperl-mode
@ 2013-10-12  7:33 Florian v. Savigny
  2013-10-12  7:52 ` Andreas Röhler
  0 siblings, 1 reply; 3+ messages in thread
From: Florian v. Savigny @ 2013-10-12  7:33 UTC (permalink / raw
  To: help-gnu-emacs



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






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fill-paragraph: cursor placement under cperl-mode
  2013-10-12  7:33 fill-paragraph: cursor placement under cperl-mode Florian v. Savigny
@ 2013-10-12  7:52 ` Andreas Röhler
  2013-10-12 14:20   ` Florian v. Savigny
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2013-10-12  7:52 UTC (permalink / raw
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fill-paragraph: cursor placement under cperl-mode
  2013-10-12  7:52 ` Andreas Röhler
@ 2013-10-12 14:20   ` Florian v. Savigny
  0 siblings, 0 replies; 3+ messages in thread
From: Florian v. Savigny @ 2013-10-12 14:20 UTC (permalink / raw
  To: Andreas Röhler; +Cc: help-gnu-emacs


Hi Andreas,

thanks for your reply!

  > Date: Sat, 12 Oct 2013 09:52:59 +0200
  > From: Andreas Röhler <andreas.roehler@easy-emacs.de>

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

Uh, OK. So no use bothering, 'cause I can just wait until the next
update?

Florian






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-12 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-12  7:33 fill-paragraph: cursor placement under cperl-mode Florian v. Savigny
2013-10-12  7:52 ` Andreas Röhler
2013-10-12 14:20   ` Florian v. Savigny

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.