From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: florian@fsavigny.de (Florian v. Savigny) Newsgroups: gmane.emacs.help Subject: fill-paragraph: cursor placement under cperl-mode Date: Sat, 12 Oct 2013 03:33:50 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381563246 17598 80.91.229.3 (12 Oct 2013 07:34:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Oct 2013 07:34:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 12 09:34:09 2013 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 1VUtiC-0001bp-0t for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Oct 2013 09:34:08 +0200 Original-Received: from localhost ([::1]:57286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUtiB-0002ki-Lo for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Oct 2013 03:34:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUthu-0002k0-T0 for help-gnu-emacs@gnu.org; Sat, 12 Oct 2013 03:33:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUthn-0006JV-HW for help-gnu-emacs@gnu.org; Sat, 12 Oct 2013 03:33:50 -0400 Original-Received: from srv4.ns-domain-hosting.de ([178.63.89.203]:36868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUthn-0006J7-BI for help-gnu-emacs@gnu.org; Sat, 12 Oct 2013 03:33:43 -0400 X-No-Relay: not in my network Original-Received: from bertrandrussell.Speedport_W_723V_1_28_000 (p4FECCE1E.dip0.t-ipconnect.de [79.236.206.30]) by srv4.ns-domain-hosting.de (Postfix) with ESMTPA id C67AE18642C for ; Sat, 12 Oct 2013 09:33:41 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.89.203 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:93951 Archived-At: Hi there, let's say I have a paragraphs with a longer comment in cperl-mode, such as: # a script that converts umlauts and =DF 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 =DF 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 =DF in filenames to ascii character= s, 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