From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel Subject: a principle for lisp-fill-paragraph Date: Fri, 20 Apr 2007 17:03:17 +0200 (CEST) Message-ID: <8279891.653291177081397290.JavaMail.www@wwinf4105> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177081426 13593 80.91.229.12 (20 Apr 2007 15:03:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2007 15:03:46 +0000 (UTC) To: "Emacs Dev [emacs-devel]" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 20 17:03:40 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Heudy-00032U-EF for ged-emacs-devel@m.gmane.org; Fri, 20 Apr 2007 17:03:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Heuj2-0008Rm-GD for ged-emacs-devel@m.gmane.org; Fri, 20 Apr 2007 11:08:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Heuiy-0008QU-2c for emacs-devel@gnu.org; Fri, 20 Apr 2007 11:08:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Heuiw-0008Os-IT for emacs-devel@gnu.org; Fri, 20 Apr 2007 11:08:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Heuiw-0008Oj-8C for emacs-devel@gnu.org; Fri, 20 Apr 2007 11:08:34 -0400 Original-Received: from smtp2.voila.fr ([193.252.22.175] helo=smtp1.voila.fr) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Heudr-00017K-Ak for emacs-devel@gnu.org; Fri, 20 Apr 2007 11:03:19 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4112.voila.fr (SMTP Server) with ESMTP id 58B831C002D0 for ; Fri, 20 Apr 2007 17:03:17 +0200 (CEST) Original-Received: from wwinf4105 (wwinf4105 [172.22.152.32]) by mwinf4112.voila.fr (SMTP Server) with ESMTP id 494E01C002CF for ; Fri, 20 Apr 2007 17:03:17 +0200 (CEST) X-ME-UUID: 20070420150317300.494E01C002CF@mwinf4112.voila.fr X-Originating-IP: [89.34.170.37] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-REPLYTO: |~| X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69700 Archived-At: There is not normal always to bring 2 lines on a single line by fill-paragraph in lisp mode. ;; Indent each line of the list starting just after point. ;; A prefix argument specifies pretty-printing. by evaluation gives: ;; Indent each line of the list starting just after point. A prefix ;; argument specifies pretty-printing. Evaluating fill-paragraph will bring the 2 lines on a single line. I propose this principle: When we want to keep a paragraph on a new line, we must insert 3 spaces from the last comment symbol. Just in the the case of 1 or 2 spaces we merge 2 lines. So after evaluating (lisp-fill-paragraph) on ;; Indent each line of the list starting just after point. ;; A prefix argument specifies pretty-printing should keep the text the same. Can somebody else propose a new principle for this? If you agree, I will make this change.