From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Seibel Newsgroups: gmane.emacs.bugs Subject: Small patch for lisp-fill-paragraph Date: Tue, 21 Sep 2004 20:45:36 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095825058 22816 80.91.229.6 (22 Sep 2004 03:50:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2004 03:50:58 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 22 05:50:47 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C9y9X-0002jt-00 for ; Wed, 22 Sep 2004 05:50:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9yFU-0004Kb-Jt for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Sep 2004 23:56:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9yFT-0004KV-3r for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2004 23:56:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9yFS-0004Jt-EU for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2004 23:56:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9yFS-0004Jk-Bb for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2004 23:56:54 -0400 Original-Received: from [67.127.72.244] (helo=localhost.javamonkey.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9y98-0001KC-RC for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2004 23:50:23 -0400 Original-Received: by localhost.javamonkey.com (Postfix, from userid 500) id 39DA14008; Tue, 21 Sep 2004 20:45:36 -0700 (PDT) Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9054 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9054 This patch keeps lisp-fill-paragraph from filling code like the following: (defun foo (bar) "This is a doc string. Now is the time for all good men to come to the aid of their party." #'(lambda (a b) (stuff))) like this: (defun foo (bar) "This is a doc string. Now is the time for all good men to come to the aid of their party." #'(lambda (a b) (stuff))) -Peter Index: ChangeLog =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/ChangeLog,v retrieving revision 1.6387 diff -c -r1.6387 ChangeLog *** ChangeLog 21 Sep 2004 02:26:39 -0000 1.6387 --- ChangeLog 22 Sep 2004 03:44:29 -0000 *************** *** 1,3 **** --- 1,8 ---- + 2004-09-21 Peter Seibel + + * emacs-lisp/lisp-mode.el (lisp-fill-paragraph): Change + paragraph-start regexp so we don't fill code starting with #'( + 2004-09-21 Kenichi Handa * descr-text.el (describe-char): Checking of quail activation Index: emacs-lisp/lisp-mode.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/emacs-lisp/lisp-mode.el,v retrieving revision 1.165 diff -c -r1.165 lisp-mode.el *** emacs-lisp/lisp-mode.el 8 Sep 2004 11:09:14 -0000 1.165 --- emacs-lisp/lisp-mode.el 22 Sep 2004 03:44:30 -0000 *************** *** 1182,1188 **** ;; The `fill-column' is temporarily bound to ;; `emacs-lisp-docstring-fill-column' if that value is an integer. (let ((paragraph-start (concat paragraph-start ! "\\|\\s-*\\([\(;:\"]\\|`\(\\)")) (paragraph-separate (concat paragraph-separate "\\|\\s-*\".*[,\\.]$")) (fill-column (if (integerp emacs-lisp-docstring-fill-column) --- 1182,1188 ---- ;; The `fill-column' is temporarily bound to ;; `emacs-lisp-docstring-fill-column' if that value is an integer. (let ((paragraph-start (concat paragraph-start ! "\\|\\s-*\\([\(;:\"]\\|`\(\\|#'\(\\)")) (paragraph-separate (concat paragraph-separate "\\|\\s-*\".*[,\\.]$")) (fill-column (if (integerp emacs-lisp-docstring-fill-column) -- Peter Seibel peter@javamonkey.com Lisp is the red pill. -- John Fraser, comp.lang.lisp