From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: python mode M-q fills code Date: Sat, 27 Jul 2002 20:42:47 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200207280242.g6S2glF11406@aztec.santafe.edu> References: <87n0se2bqu.fsf@fleche.redhat.com> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027824244 24864 127.0.0.1 (28 Jul 2002 02:44:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Jul 2002 02:44:04 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Ye2N-0006Sv-00 for ; Sun, 28 Jul 2002 04:44:03 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17YeIu-0007ul-00 for ; Sun, 28 Jul 2002 05:01:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Ye2i-00067f-00; Sat, 27 Jul 2002 22:44:24 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Ye1B-0005zK-00; Sat, 27 Jul 2002 22:42:49 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g6S2gvB22042; Sat, 27 Jul 2002 20:42:57 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g6S2glF11406; Sat, 27 Jul 2002 20:42:47 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: tromey@redhat.com In-Reply-To: <87n0se2bqu.fsf@fleche.redhat.com> (message from Tom Tromey on 26 Jul 2002 19:36:09 -0600) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6104 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6104 # This is a comment. # This is the second line of the comment. class q: Now move point to the first line and type M-q. I see this result: # This is a comment. This is the second line of the comment. class # q: That is indeed a bug. Python mode does not seem to be part of Emacs. Where did you find it? As for Perl mode, this can be fixed by adapting the function lisp-fill-paragraph or tcl-do-fill-paragraph to Perl syntax, and making that the local value of fill-paragraph-function in Perl mode. I don't know Perl; does someone who knows Perl want to work on this? What about CPerl mode? Does it do the job right? Right now the `_' character seems to have word syntax in python-mode. M-f and M-b don't stop at an underscore. I thought the standard in Emacs was that `_' ought to have "symbol constituent" syntax. Yes, that's correct.