? cite-patch.diff Index: gnus-art.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-art.el,v retrieving revision 7.283 diff -u -r7.283 gnus-art.el --- gnus-art.el 3 Oct 2008 04:21:54 -0000 7.283 +++ gnus-art.el 4 Oct 2008 13:26:26 -0000 @@ -1679,9 +1679,9 @@ (gnus-treat-capitalize-sentences gnus-article-capitalize-sentences) (gnus-treat-wash-html gnus-article-wash-html) (gnus-treat-emphasize gnus-article-emphasize) + (gnus-treat-highlight-citation gnus-article-highlight-citation) (gnus-treat-hide-citation gnus-article-hide-citation) (gnus-treat-hide-citation-maybe gnus-article-hide-citation-maybe) - (gnus-treat-highlight-citation gnus-article-highlight-citation) (gnus-treat-body-boundary gnus-article-treat-body-boundary) (gnus-treat-play-sounds gnus-earcon-display))) Index: gnus-cite.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-cite.el,v retrieving revision 7.40 diff -u -r7.40 gnus-cite.el --- gnus-cite.el 19 May 2008 08:47:42 -0000 7.40 +++ gnus-cite.el 4 Oct 2008 13:26:26 -0000 @@ -42,12 +42,12 @@ :link '(custom-manual "(gnus)Article Highlighting") :group 'gnus-article) -(defcustom gnus-cited-opened-text-button-line-format "%(%{[-]%}%)\n" +(defcustom gnus-cited-opened-text-button-line-format "%(%{[-]%}%)" "Format of opened cited text buttons." :group 'gnus-cite :type 'string) -(defcustom gnus-cited-closed-text-button-line-format "%(%{[+]%}%)\n" +(defcustom gnus-cited-closed-text-button-line-format "%(%{[+]%}%)" "Format of closed cited text buttons." :group 'gnus-cite :type 'string) @@ -600,7 +600,8 @@ ;; We use markers for the end-points to facilitate later ;; wrapping and mangling of text. (setq beg (set-marker (make-marker) beg) - end (set-marker (make-marker) end)) + end (set-marker (make-marker) (1- end))) + (set-marker-insertion-type beg t) (gnus-add-text-properties-when 'article-type nil beg end props) (goto-char beg) (when (and gnus-cite-blank-line-after-header @@ -651,8 +652,8 @@ (let ((gnus-article-mime-handle-alist-1 gnus-article-mime-handle-alist)) (gnus-set-mode-line 'article)) (save-excursion + (delete-region start beg) (goto-char start) - (gnus-delete-line) (put-text-property (point) (progn @@ -666,7 +667,9 @@ `gnus-article-toggle-cited-text args) (point)) - 'article-type 'annotation))))) + 'article-type 'annotation) + (when hidden + (insert "\n")))))) (defun gnus-article-hide-citation-maybe (&optional arg force) "Toggle hiding of cited text that has an attribution line.