Mercurial > emacs
annotate lisp/gnus/mail-parse.el @ 73660:4a5c7b0a29cc
2006-11-03 Ken Manheimer <ken.manheimer@gmail.com>
* allout.el (allout-during-yank-processing): Cue for inhibiting
aberrance processing during yanks.
(allout-doublecheck-at-and-shallower): Reduce the limit to reduce
the amount of yanked topics that can be aberrant.
(allout-do-doublecheck): Encapsulate this multiply-used recipe in
a function, and supplement with inihibition of doublechecking
during yanks.
(allout-beginning-of-line, allout-next-heading)
(allout-previous-heading, allout-goto-prefix-doublechecked)
(allout-back-to-current-heading, allout-next-visible-heading)
(allout-next-sibling): Use new allout-do-doublecheck function.
(allout-next-sibling): Ensure we made progress when returning
other than nil.
(allout-rebullet-heading): Preserve text property annotations
indicating the text was hidden, if it was.
(allout-kill-line): Remove any added was-hidden annotations.
(allout-kill-topic): Remove any added was-hidden annotations.
(allout-annotate-hidden): Inhibit adding was-hidden text
properties to the undo list.
(allout-deannotate-hidden): New function to remove was-hidden
annotation.
(allout-hide-by-annotation): Use new allout-deannotate-hidden.
(allout-remove-exposure-annotation): Replaced by
allout-deannotate-hidden.
(allout-yank-processing): Signal that yank processing is happening
with allout-during-yank-processing. Also, wrap
allout-unprotected's closer to the text changes, for easier
debugging. We need to inhibit-field-text-motion explicitly, in
lieu of the encompassing allout-unprotected.
(outlineify-sticky): Adjust criteria for triggering new outline
decorations to presence or absence of any topics, not just a topic
at the beginning of the buffer.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 04 Nov 2006 00:48:31 +0000 |
parents | de654a6735da |
children | 183eba998a4d c358d0861b16 |
rev | line source |
---|---|
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1 ;;; mail-parse.el --- Interface functions for parsing mail |
64754
fafd692d1e40
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
2 |
fafd692d1e40
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
3 ;; Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, |
68633
1077b8039c32
Update copyright notices of all files in the gnus directory.
Romain Francoise <romain@orebokech.com>
parents:
64754
diff
changeset
|
4 ;; 2005, 2006 Free Software Foundation, Inc. |
31717 | 5 |
6 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | |
7 ;; This file is part of GNU Emacs. | |
8 | |
9 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
10 ;; it under the terms of the GNU General Public License as published by | |
11 ;; the Free Software Foundation; either version 2, or (at your option) | |
12 ;; any later version. | |
13 | |
14 ;; GNU Emacs is distributed in the hope that it will be useful, | |
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 ;; GNU General Public License for more details. | |
18 | |
19 ;; You should have received a copy of the GNU General Public License | |
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
64085 | 21 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 ;; Boston, MA 02110-1301, USA. | |
31717 | 23 |
24 ;;; Commentary: | |
25 | |
26 ;; This file contains wrapper functions for a wide range of mail | |
27 ;; parsing functions. The idea is that there are low-level libraries | |
28 ;; that impement according to various specs (RFC2231, DRUMS, USEFOR), | |
29 ;; but that programmers that want to parse some header (say, | |
30 ;; Content-Type) will want to use the latest spec. | |
31 ;; | |
32 ;; So while each low-level library (rfc2231.el, for instance) decodes | |
33 ;; faithfully according to that (proposed) standard, this library is | |
34 ;; the interface library. If some later RFC supersedes RFC2231, one | |
35 ;; would just have to write a new low-level library, adjust the | |
36 ;; aliases in this library, and the users and programmers won't notice | |
37 ;; any changes. | |
38 | |
39 ;;; Code: | |
40 | |
41 (require 'mail-prsvr) | |
42 (require 'ietf-drums) | |
43 (require 'rfc2231) | |
44 (require 'rfc2047) | |
45 (require 'rfc2045) | |
46 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
47 (defalias 'mail-header-parse-content-type 'rfc2231-parse-qp-string) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
48 (defalias 'mail-header-parse-content-disposition 'rfc2231-parse-qp-string) |
31717 | 49 (defalias 'mail-content-type-get 'rfc2231-get-value) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
50 ;(defalias 'mail-header-encode-parameter 'rfc2045-encode-string) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
51 (defalias 'mail-header-encode-parameter 'rfc2231-encode-string) |
31717 | 52 |
53 (defalias 'mail-header-remove-comments 'ietf-drums-remove-comments) | |
54 (defalias 'mail-header-remove-whitespace 'ietf-drums-remove-whitespace) | |
55 (defalias 'mail-header-strip 'ietf-drums-strip) | |
56 (defalias 'mail-header-get-comment 'ietf-drums-get-comment) | |
57 (defalias 'mail-header-parse-address 'ietf-drums-parse-address) | |
58 (defalias 'mail-header-parse-addresses 'ietf-drums-parse-addresses) | |
59 (defalias 'mail-header-parse-date 'ietf-drums-parse-date) | |
60 (defalias 'mail-narrow-to-head 'ietf-drums-narrow-to-header) | |
61 (defalias 'mail-quote-string 'ietf-drums-quote-string) | |
62 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
63 (defalias 'mail-header-fold-field 'rfc2047-fold-field) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
64 (defalias 'mail-header-unfold-field 'rfc2047-unfold-field) |
31717 | 65 (defalias 'mail-header-narrow-to-field 'rfc2047-narrow-to-field) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
66 (defalias 'mail-header-field-value 'rfc2047-field-value) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
67 |
31717 | 68 (defalias 'mail-encode-encoded-word-region 'rfc2047-encode-region) |
69 (defalias 'mail-encode-encoded-word-buffer 'rfc2047-encode-message-header) | |
70 (defalias 'mail-encode-encoded-word-string 'rfc2047-encode-string) | |
71 (defalias 'mail-decode-encoded-word-region 'rfc2047-decode-region) | |
72 (defalias 'mail-decode-encoded-word-string 'rfc2047-decode-string) | |
72605 | 73 (defalias 'mail-decode-encoded-address-region 'rfc2047-decode-address-region) |
74 (defalias 'mail-decode-encoded-address-string 'rfc2047-decode-address-string) | |
31717 | 75 |
76 (provide 'mail-parse) | |
77 | |
52401 | 78 ;;; arch-tag: 3e63d75c-c962-4784-ab01-7ba07ca9d2d4 |
31717 | 79 ;;; mail-parse.el ends here |