From 9daf9fca2deca3e77b51175ededc83c12bfcfc65 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Fri, 9 Mar 2001 00:38:36 +0000 Subject: [PATCH] * mu-cite.el (fill-column-for-fill-cited-region): New user option. (fill-cited-region): Prefer `fill-column-for-fill-cited-region' if it is an integer rather than `fill-column'. --- ChangeLog | 8 +++++++- NEWS | 8 ++++++++ mu-cite.el | 10 +++++++++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b90738b..231b98e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +2001-03-09 Katsumi Yamaoka + + * mu-cite.el (fill-column-for-fill-cited-region): New user option. + (fill-cited-region): Prefer `fill-column-for-fill-cited-region' if + it is an integer rather than `fill-column'. + 2001-02-23 Katsumi Yamaoka - * mu-cite.el: (char-category): Force redefine as a function because + * mu-cite.el (char-category): Force redefine as a function because it may have been defined by emu.el; don't use `int-char' for XEmacs if the function `char-category-list' returns a list of characters; enclose the whole form with `eval-and-compile'. diff --git a/NEWS b/NEWS index 82df4d1..f5bb536 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,14 @@ MU-CITE NEWS -- history of major-changes. Copyright (C) 1999 Free Software Foundation, Inc. +* Changes in MU-CITE 8.2 +======================== + +** New user option `fill-column-for-fill-cited-region' specifies an +integer value to override `fill-column' while `fill-cited-region' is +being executed. + + * Changes in MU-CITE 8.1 ======================== diff --git a/mu-cite.el b/mu-cite.el index aeb4337..d292937 100644 --- a/mu-cite.el +++ b/mu-cite.el @@ -455,6 +455,13 @@ TABLE defaults to the current buffer's category table." (buffer-substring (line-beginning-position)(point))) (t ""))))) +(defcustom fill-column-for-fill-cited-region nil + "Integer to override `fill-column' while `fill-cited-region' is being +executed." + :type (` (choice (const :tag "Off" nil) + (integer (, default-fill-column)))) + :group 'mu-cite) + ;;;###autoload (defun fill-cited-region (beg end) "Fill each of the paragraphs in the region as a cited text." @@ -468,7 +475,8 @@ TABLE defaults to the current buffer's category table." (let* ((fill-prefix (detect-paragraph-cited-prefix)) (fill-column (max (+ 1 (current-left-margin) (string-width fill-prefix)) - (current-fill-column))) + (or fill-column-for-fill-cited-region + (current-fill-column)))) (pat (concat fill-prefix "\n")) filladapt-mode) (goto-char (point-min)) -- 1.7.10.4