Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: hide citation
Date: Mon, 15 Oct 2007 10:51:45 +0900	[thread overview]
Message-ID: <b4mabqlm9fy.fsf@jpl.org> (raw)
In-Reply-To: <m2lka64ryd.fsf@cam.ac.uk>

>>>>> Leo wrote:

> With the following setting,

> (setq gnus-treat-hide-citation t
>       gnus-cited-lines-visible '(3 . 3))

> articles with inline patch will also be hidden, for example this
> article: <jwvfy0g73zg.fsf-monnier+emacs@gnu.org>

This is the case where a patch is in the text/plain body.
Because of the value of `gnus-article-treat-types', gnus-treat-*
is performed on it.

> Now if I try to apply the patch with 'M-x ediff-patch-file' to apply the
> patch in the Article buffer to the file, it will fail because of the
> extra [+] or [-].

> So what's the solution? is there a command to toggle hidden citation?

One is to improve `message-cite-prefix-regexp' so that it doesn't
match a single `+' or `-' in the beginning of lines.  (Maybe I've
never seen replies in which a single `+' or `-' is used for the
citation.)  For example:

--8<---------------cut here---------------start------------->8---
(setq message-cite-prefix-regexp
      "[\t ]*\\(?:[[:word:]]+[-._[:word:]]*\\(?:[\t ]*[]+>|}]+\\)+\
\\|\\(?:[]>|}][\t ]+\\|[]+>|}][]+>|}]+[\t ]*\\)\\(?:[]+>|}]+[\t ]*\\)*\\)")
--8<---------------cut here---------------end--------------->8---

Another is to pull "text/x-patch" from `gnus-article-treat-types'
and to make mm-uu.el dissect a patch in the text/plain body as a
text/x-patch part.  I have currently no concrete idea to do that,
though.



  reply	other threads:[~2007-10-15  1:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-13 21:36 Leo
2007-10-15  1:51 ` Katsumi Yamaoka [this message]
2007-10-15  2:37   ` Katsumi Yamaoka
2007-11-18 10:14 ` Leo
2007-11-18 11:36   ` Reiner Steib
2007-12-01  6:03     ` Leo
2007-12-01  9:28     ` Tassilo Horn
2007-12-01 17:59       ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mabqlm9fy.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).