From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32788 Path: main.gmane.org!not-for-mail From: Emerick Rogul Newsgroups: gmane.emacs.gnus.general Subject: Citation formatting improvements Date: 05 Oct 2000 15:06:28 -0400 Organization: Boston Rotary Club Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169010 21708 80.91.224.250 (21 Oct 2002 02:56:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:56:50 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 6923AD051E for ; Thu, 5 Oct 2000 15:11:28 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAC01059; Thu, 5 Oct 2000 14:07:32 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 05 Oct 2000 14:06:21 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA22778 for ; Thu, 5 Oct 2000 14:06:10 -0500 (CDT) Original-Received: from quimby.gnus.org (quimby.gnus.org [195.204.10.139]) by mailhost.sclp.com (Postfix) with ESMTP id B5372D051E for ; Thu, 5 Oct 2000 15:06:30 -0400 (EDT) Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id UAA07322 for ding@gnus.org; Thu, 5 Oct 2000 20:08:52 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 47 Original-NNTP-Posting-Host: csa.bu.edu Original-X-Trace: quimby.gnus.org 970769331 23788 128.197.12.3 (5 Oct 2000 18:08:51 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 5 Oct 2000 18:08:51 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32788 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32788 The current citation formatting in message-mode doesn't always do the right thing (it seems like the paragraph-start and paragraph-end variables in particular could be improved a lot). I've been using the following bit of e-lisp (appears at the end of this message) from Gareth Rees, and it's been a great improvement, IMO. Is there any chance of getting some of these changes into CVS? I think it would really make filling in message-mode a lot more pleasant... :-) -Emerick ;; Better filling behaviour in Message mode (from Gareth Rees). (defvar gdr-message-quote-chars "|:>") (defun gdr-message-mode-vars () (let ((quote-prefix-regexp (concat "[ \t]*" ; possible initial space "\\(\\(" (regexp-quote message-yank-prefix) "\\|" ; user's prefix "\\w+>\\|" ; supercite-style prefix "[" gdr-message-quote-chars "]" ; standard prefix "\\)[ \t]*\\)+"))) ; possible space after each prefix (setq paragraph-start (concat (regexp-quote mail-header-separator) "$\\|" "[ \t]*$\\|" ; blank lines "-- $\\|" ; signature delimiter "---+$\\|" ; delimiters for forwarded messages page-delimiter "$\\|" ; spoiler warnings ".*wrote:$\\|" ; attribution lines quote-prefix-regexp "$")) ; empty lines in quoted text (setq paragraph-separate paragraph-start) (setq adaptive-fill-regexp (concat quote-prefix-regexp "\\|" adaptive-fill-regexp)) (setq adaptive-fill-first-line-regexp (concat quote-prefix-regexp "\\|" adaptive-fill-first-line-regexp)))) (add-hook 'message-mode-hook 'gdr-message-mode-vars) -- ------------------------------------------------------------------------- Emerick Rogul /\/ "i was going to take every drug known to the emerick@cs.bu.edu /\/ human race and shag anything that moved." ------------------------------------------------- 'ecstasy', irvine welsh