www.delorie.com/gnu/docs/emacs/gnus_96.html   search  
Buy the book!

Gnus Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.16.3 Article Hiding

Or rather, hiding certain things in each article. There usually is much too much cruft in most articles.

W W a
Do quite a lot of hiding on the article buffer (gnus-article-hide). In particular, this function will hide headers, PGP, cited text and the signature.

W W h
Hide headers (gnus-article-hide-headers). See section 4.1 Hiding Headers.

W W b
Hide headers that aren't particularly interesting (gnus-article-hide-boring-headers). See section 4.1 Hiding Headers.

W W s
Hide signature (gnus-article-hide-signature). See section 3.16.7 Article Signature.

W W l
Strip list identifiers specified in gnus-list-identifiers. These are strings some mailing list servers add to the beginning of all Subject headers--for example, `[zebra 4711]'. Any leading `Re: ' is skipped before stripping. gnus-list-identifiers may not contain \\(..\\).

A regular expression that matches list identifiers to be removed from subject. This can also be a list of regular expressions.

W W p
Hide PGP signatures (gnus-article-hide-pgp). The gnus-article-hide-pgp-hook hook will be run after a PGP signature has been hidden. For example, to automatically verify articles that have signatures in them do:
;;; Hide pgp cruft if any.

(setq gnus-treat-strip-pgp t)

;;; After hiding pgp, verify the message;
;;; only happens if pgp signature is found.

(add-hook 'gnus-article-hide-pgp-hook
          (lambda ()
              (set-buffer gnus-original-article-buffer)

Hide PEM (privacy enhanced messages) cruft (gnus-article-hide-pem).

Strip the banner specified by the banner group parameter (gnus-article-strip-banner). This is mainly used to hide those annoying banners and/or signatures that some mailing lists and moderated groups adds to all the messages. The way to use this function is to add the banner group parameter (see section 2.10 Group Parameters) to the group you want banners stripped from. The parameter either be a string, which will be interpreted as a regular expression matching text to be removed, or the symbol signature, meaning that the (last) signature should be removed, or other symbol, meaning that the corresponding regular expression in gnus-article-banner-alist is used.

W W c
Hide citation (gnus-article-hide-citation). Some variables for customizing the hiding:

Gnus adds buttons to show where the cited text has been hidden, and to allow toggle hiding the text. The format of the variable is specified by these format-like variable (see section 8.4 Formatting Variables). These specs are valid:

Starting point of the hidden text.
Ending point of the hidden text.
Number of characters in the hidden region.
Number of lines of hidden text.

The number of lines at the beginning of the cited text to leave shown. This can also be a cons cell with the number of lines at the top and bottom of the text, respectively, to remain visible.

W W C-c

Hide citation (gnus-article-hide-citation-maybe) depending on the following two variables:

If the cited text is of a bigger percentage than this variable (default 50), hide the cited text.

The cited text must have at least this length (default 10) before it is hidden.

Hide cited text in articles that aren't roots (gnus-article-hide-citation-in-followups). This isn't very useful as an interactive command, but might be a handy function to stick have happen automatically (see section 4.3 Customizing Articles).

All these "hiding" commands are toggles, but if you give a negative prefix to these commands, they will show what they have previously hidden. If you give a positive prefix, they will always hide.

Also see section 3.16.1 Article Highlighting for further variables for citation customization.

See section 4.3 Customizing Articles, for how to hide article elements automatically.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003