From be857c5177662d1660e785bbc07185343013a8a3 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 24 Apr 2007 00:04:09 +0000 Subject: [PATCH] (turn-on-mime-edit): Make paragraph-start and paragraph-separate buffer-local. --- ChangeLog | 5 +++++ mime-edit.el | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2cfce22..a2f9d51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-24 Katsumi Yamaoka + + * mime-edit.el (turn-on-mime-edit): Make paragraph-start and + paragraph-separate buffer-local. + 2006-12-20 MORIOKA Tomohiko * README.ja, README.en (Required environment): Update required diff --git a/mime-edit.el b/mime-edit.el index 26938e9..2347dac 100644 --- a/mime-edit.el +++ b/mime-edit.el @@ -1067,13 +1067,14 @@ User customizable variables (not documented all of them): (enable-invisible) - ;; I don't care about saving these. - (setq paragraph-start - (regexp-or mime-edit-single-part-tag-regexp - paragraph-start)) - (setq paragraph-separate - (regexp-or mime-edit-single-part-tag-regexp - paragraph-separate)) + ;; Make `paragraph-start' and `paragraph-separate' buffer-local + ;; and have a value to recognize part tags. + (set (make-local-variable 'paragraph-start) + (regexp-or mime-edit-single-part-tag-regexp + (default-value 'paragraph-start))) + (set (make-local-variable 'paragraph-separate) + (regexp-or mime-edit-single-part-tag-regexp + (default-value 'paragraph-separate))) (run-hooks 'mime-edit-mode-hook) (message "%s" -- 1.7.10.4