1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-09 07:40:39 -08:00
Commit graph

2031 commits

Author SHA1 Message Date
Glenn Morris
b3d6003ee1 (pmail-show-message): Fix declaration. 2009-01-08 04:09:10 +00:00
Glenn Morris
619a0aaaa6 (pmail-output-read-pmail-file-name): Remove declaration. 2009-01-08 04:08:27 +00:00
Richard M. Stallman
85fed0a40a (mail-bury): Treat pmail-mode like rmail-mode. 2009-01-05 15:53:40 +00:00
Richard M. Stallman
f79e69b91f (basic-save-buffer): Protect buffer-modified flag around first swap.
(pmail-show-message): Protect buffer-modified flag around swap.
(pmail-change-major-mode-hook): Likewise.
(pmail-use-collection-buffer, pmail-swap-buffers-maybe): Likewise.

(pmail-error-bad-format): Always phrase the error as about an invalid message.
(pmail-convert-file-maybe): Don't use pmail-error-bad-format.
(pmail-mode-map): Move pmail-widen to C-c C-w.
(pmail-mode-1): Don't alter mode-line-modified.
(pmail-perm-variables): Turn off undo in view buffer.
(pmail-variables): Turn off undo.
(pmail-show-message): Delete useless calls to `widen'.
Avoid passing thru temp buffer if we don't need
base64 or quoted printable decoding for whole message.

(pmail-keywords): Variable deleted.
(pmail-last-label, pmail-last-multi-labels): Moved to pmailkwd.el.
(pmail-perm-variables): Don't mess with pmail-last-label.
Don't mess with pmail-keywords.
(pmail-copy-headers): Doc fix.
(pmail-set-header): New function.
(pmail-get-keywords): Doc fix.
(pmail-get-labels): New function.
(pmail-display-labels): Use pmail-get-labels.
(pmail-set-attribute): Mark pmail-buffer modified
if we change an attribute.

(pmail-apply-in-message): New function.
(pmail-message-labels-p): Function moved to pmailsum.el.
(pmail-message-recipients-p, pmail-message-regexp-p): Likewise.
(pmail-current-subject, pmail-current-subject-regexp): Fns deleted.
(pmail-simplified-subject, pmail-simplified-subject-regexp): New fns.
(pmail-next-same-subject): Fetch each msg's subject and compare.

(pmail-speedbar-move-message): Use pmail-output.
(pmail-construct-io-menu): Use pmail-output.
(pmail-default-pmail-file): Variable deleted.
(pmail-auto-file): Use pmail-output.
(pmail-mode-map): Remove pmail-output-to-babyl-file.
Add pmail-output-as-seen.
(pmail-mode): Update output commands in doc string.
2009-01-05 15:49:50 +00:00
Richard M. Stallman
4e756c2469 Require pmail; delete compiler defvars.
Delete most declare-function calls.
(pmail-keywords, pmail-deleted-label, pmail-attributes): Vars deleted.
(pmail-attribute-p, pmail-keyword-p): Fns deleted.
(pmail-keywords, pmail-parse-file-keywords, pmail-install-keyword):
(pmail-force-make-label, pmail-quote-label-name): Fns deleted.
(pmail-last-label, pmail-last-multi-labels): Vars moved from pmail.el.
(pmail-read-label): Don't switch buffers, don't parse file keywords.
(pmail-set-label): Major rewrite.
(pmail-next-labeled-message): Call pmail-get-labels and match it.
2009-01-05 15:48:15 +00:00
Richard M. Stallman
91552da9ad (pmail-message-labels-p): Function moved from pmail.el and rewritten.
(pmail-message-recipients-p): Likewise.
(pmail-message-regexp-p): Likewise.
(pmail-message-recipients-p-1): New subroutine.
(pmail-message-regexp-p-1): Likewise.
(pmail-summary-by-topic): Use pmail-simplified-subject.
Delete subject-re variable.
(pmail-message-subject-p): Total rewrite.
(pmail-message-senders-p): Total rewrite.
(pmail-new-summary-1): Call FUNCTION in the main Pmail buffer.
(pmail-get-summary): Doc fix.
(pmail-create-summary-line): Renamed from
pmail-get-create-summary-line, and major rewrite.
(pmail-get-summary-labels): Doc fix.
(pmail-create-summary): Major rewrite.  Construct line counts here.
(pmail-header-summary): Renamed from pmail-make-basic-summary-line.
Return list of two strings.
(pmail-summary-next-same-subject): Extract subjects and compare.
(pmail-summary-output): Renamed from pmail-summary-output-to-babyl-file.
Use pmail-output.
(pmail-summary-output-as-seen): Renamed from pmail-summary-output.
Use pmail-output-as-seen.
(pmail-summary-construct-io-menu): Use pmail-summary-output.
2009-01-05 15:41:36 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Chong Yidong
aae1ecbbc8 (buffer-swapped-with): New var, moved from files.el. Add advice to
basic-save-buffer to use it.
2008-12-31 02:44:00 +00:00
Chong Yidong
9b854b5c5e * pmail.el (buffer-swapped-with): New var, moved from files.el.
Add advice to basic-save-buffer to use it.
2008-12-31 02:43:13 +00:00
Richard M. Stallman
25f0137554 *** empty log message *** 2008-12-29 19:19:26 +00:00
Richard M. Stallman
0a45836335 (pmail-edit-mode): Bind buffer-swwapped-with to nil.
(pmail-edit-current-message): Save all of buffer as old text.
Clear undo list.
(pmail-cease-edit): Widen first.
Operate in the view buffer; copy edited text back to mbox buffer
and re-encode what was decoded to display the message.
(pmail-abort-edit): Widen first.
2008-12-29 19:19:15 +00:00
Richard M. Stallman
e1ebab6e8b (pmail-forwarded-attr-index): Doc fix.
(pmail-resent-attr-index): New variable.
(pmail-attr-array): Add r for resent.
(pmail-add-mbox-headers): Make 8 attributes.
(pmail-set-attribute): Extend attribute line if necessary.

(pmail-widen): New command.
(pmail-mode-map): o is pmail-output, C-o is pmail-output-as-seen,
(pmail-mode-map): c-w is pmail-widen.
(pmail-change-major-mode-hook): Do nothing unless buffer-swapped-with.
(pmail-show-message): Downcase character-coding.
2008-12-29 19:16:37 +00:00
Richard M. Stallman
5921f0a48c (pmail-output-decode-coding): New variable.
(pmail-delete-unwanted-fields): Greatly simplified.
(pmail-output-as-babyl): New function.
(pmail-convert-to-babyl-format): Considerably simplified:
assume just one message and don't worry about Content-Type.
(pmail-output-as-mbox): New function.
(pmail-output): Total rewrite.
(pmail-output-as-seen): New command.
(pmail-output-read-pmail-file-name): Function deleted.
(pmail-output-to-babyl-file): Function deleted.
(pmail-output-body-to-file): Don't set an attribute.
2008-12-29 19:12:22 +00:00
Richard M. Stallman
510ef92270 *** empty log message *** 2008-12-23 04:06:40 +00:00
Richard M. Stallman
08f66232d5 (pmail-cease-edit): Put >' before From ' lines in message. 2008-12-23 04:06:28 +00:00
Richard M. Stallman
0ff954c723 Comment change. 2008-12-23 04:03:35 +00:00
Richard M. Stallman
72bcfc733e *** empty log message *** 2008-12-23 04:02:49 +00:00
Richard M. Stallman
733dc362f6 (pmail-edit-current-message): Change error message. 2008-12-23 04:02:15 +00:00
Richard M. Stallman
759f544f5a (pmail-edit-saved-coding-system): Var deleted.
(pmail-edit-current-message, pmail-cease-edit):
Don't set it, or save-buffer-coding-system.
2008-12-23 03:56:30 +00:00
Richard M. Stallman
125d2ddf70 (pmail-variables): Don't set save-buffer-coding-system. 2008-12-23 03:56:10 +00:00
Richard M. Stallman
2e39660c56 *** empty log message *** 2008-12-23 03:50:34 +00:00
Richard M. Stallman
43d712632d (pmail-message-subject-p): Mark as broken.
(pmail-message-senders-p): Likewise.
(pmail-new-summary-1): Don't unswap -- search messages where they are.
2008-12-23 03:50:17 +00:00
Richard M. Stallman
4d1388b457 (pmail-display-labels): Doc fix.
(pmail-set-attribute): Deleted unused vars.
Bind inhibit-read-only, not buffer-read-only.
(pmail-message-attr-p): Doc fix.
(pmail-message-labels-p, pmail-message-recipients-p)
(pmail-message-regexp-p): Mark as broken.
2008-12-23 03:47:32 +00:00
Richard M. Stallman
d8a83a7edc (pmailhdr): Don't require it.
(pmail-edit-current-message): Don't call pmail-header-show-headers.
(pmail-cease-edit): Force a blank line at end of edited message.
Call pmail-set-attribute properly.
Don't set buffer-read-only.
2008-12-23 03:46:03 +00:00
Richard M. Stallman
45b696cd10 *** empty log message *** 2008-12-22 21:18:19 +00:00
Richard M. Stallman
273f29683f (pmail-retried-attr-index, pmail-forwarded-attr-index):
Renamed from pmail-resent-attr-index and pmail-stored-attr-index.
(pmail-attr-array): Change names to `retried' and `forwarded'

(pmail-get-header): Don't unswap, just look at the data where it is.
(pmail-set-attribute): Don't unswap, just set the data where it is.
(pmail-reply): Use pmail-answered-attr-index.
(pmail-forward): Use pmail-forwarded-attr-index.
(pmail-retry-failure): Use pmail-retried-attr-index.

(pmail-show-message): Call pmail-swap-buffers-maybe before reswapping.

(pmail-get-attr-names): Doc fix.
(pmail-is-text-p): Doc fix.
2008-12-22 21:16:43 +00:00
Richard M. Stallman
9f48700650 *** empty log message *** 2008-12-22 19:58:55 +00:00
Richard M. Stallman
dec3f55f38 (pmail-output): Use pmail-buffers-swapped-p as function. 2008-12-22 19:55:36 +00:00
Richard M. Stallman
dc8e167ff7 (pmail-swap-buffers-maybe): Variable deleted.
All uses call the function instead.

(pmail-save): Function deleted.
(pmail-mode-map): Don't bind C-x C-s.
(pmail-mode-1): Don't set up write-region-annotate-functions.
(pmail-write-region-annotate): Function deleted.
(pmail-change-major-mode-hook): Set buffer-swapped-with.
(pmail-use-collection-buffer): Likewise.
(pmail-show-message): Likewise.

(pmail-swap-buffers-maybe): Go to pmail-buffer before
testing anything.
(pmail): Call pmail-swap-buffers-maybe only if already in Pmail mode.
2008-12-22 19:54:59 +00:00
Chong Yidong
ea9c64a81a (pmail-save): New function. 2008-12-22 00:05:51 +00:00
Chong Yidong
0ee2fffa92 * pmail.el (pmail-save): New function. 2008-12-22 00:05:20 +00:00
Chong Yidong
5e1b5cde6f (pmail): Ensure that pmail-mode-hook is run. 2008-12-20 21:40:38 +00:00
Chong Yidong
8eb5f33cde * pmail.el (pmail): Ensure that pmail-mode-hook is run. 2008-12-20 21:40:19 +00:00
Chong Yidong
07be10d88f (pmail-add-header): Function deleted.
(pmail-add-mbox-headers): Insert header directly instead of
calling pmail-add-header.
(pmail-display-labels): Add leading space to attribute string.
(pmail-set-attribute): Call pmail-swap-buffers-maybe.  Insert
header directly instead of calling pmail-add-header.
2008-12-20 07:03:06 +00:00
Chong Yidong
bbf92dadcd * pmail.el (pmail-add-header): Function deleted.
(pmail-add-mbox-headers): Insert header directly instead of
calling pmail-add-header.
(pmail-display-labels): Add leading space to attribute string.
(pmail-set-attribute): Call pmail-swap-buffers-maybe.  Insert
header directly instead of calling pmail-add-header.
2008-12-20 07:02:49 +00:00
Chong Yidong
de16190387 * pmail.el (pmail-expunge-and-save): Call pmail-swap-buffers-maybe before
saving.
(pmail-quit): Handling expunging manually, instead of calling
pmail-expunge-and-save.
(pmail-next-undeleted-message): If no other message can be shown,
show the current one.
2008-12-20 04:30:04 +00:00
Chong Yidong
a8eed59f9a (pmail-expunge-and-save): Call pmail-swap-buffers-maybe before
saving.
(pmail-quit): Handling expunging manually, instead of calling
pmail-expunge-and-save.
(pmail-next-undeleted-message): If no other message can be shown,
show the current one.
2008-12-20 04:29:26 +00:00
Chong Yidong
2b8e6500ca (pmail-get-new-mail): Call pmail-swap-buffers-maybe.
(pmail-get-new-mail-1): Adjust restriction after calling
pmail-insert-inbox-text.
(pmail-add-mbox-headers): Use save-restriction.
2008-12-20 04:07:07 +00:00
Chong Yidong
8b176528f2 * pmail.el (pmail-get-new-mail): Call pmail-swap-buffers-maybe.
(pmail-get-new-mail-1): Adjust restriction after calling
pmail-insert-inbox-text.
(pmail-add-mbox-headers): Use save-restriction.
2008-12-20 04:06:31 +00:00
Glenn Morris
4c12073242 Header format fix. 2008-12-19 05:29:04 +00:00
Juanma Barranquero
2364df5cff * international/mule-cmds.el (select-safe-coding-system):
* mail/rmail.el (rmail-require-mime-maybe):
  Fix arguments of `display-warning'.
2008-12-15 15:44:13 +00:00
Juanma Barranquero
6d49b2d88f * pmail.el (pmail-require-mime-maybe): Fix arguments of `display-warning'. 2008-12-15 15:40:53 +00:00
Chong Yidong
97a424b858 (pmail-search): Call pmail-swap-buffers-maybe. 2008-12-15 15:06:50 +00:00
Chong Yidong
f520a2c629 * pmail.el (pmail-expunge): Save point if no expunging was done. 2008-12-15 15:06:44 +00:00
Chong Yidong
5136e31587 (pmail): Call pmail-swap-buffers-maybe.
(pmail-search): Call pmail-swap-buffers-maybe.
2008-12-15 14:56:06 +00:00
Chong Yidong
f343d373d3 * pmail.el (pmail): Call pmail-swap-buffers-maybe.
(pmail-search): Call pmail-swap-buffers-maybe.
2008-12-15 14:55:32 +00:00
Chong Yidong
7635ef3856 (pmail-output-to-babyl-file): Rewrite, assuming mbox
internal format.
(pmail-convert-to-babyl-format, pmail-nuke-pinhead-header): New
functions, moved from pmail.el.
2008-12-13 14:19:56 +00:00
Chong Yidong
f047d0db19 * pmailout.el (pmail-output-to-babyl-file): Rewrite, assuming mbox
internal format.
(pmail-convert-to-babyl-format, pmail-nuke-pinhead-header): New
functions, moved from pmail.el.
2008-12-13 14:19:24 +00:00
Chong Yidong
2c6ee63db5 All callers to pmail-output-to-pmail-file changed to
pmail-output-to-babyl-file.
2008-12-12 15:26:46 +00:00
Chong Yidong
c1589cbeac (pmail-output): Rewrite to handle mbox format.
(pmail-output-to-babyl-file): Renamed from pmail-output-to-pmail-file.
2008-12-12 15:26:28 +00:00