X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mime-view.el;h=81386cbd6aa441a320bd52fcfd33f692c6d8a3f1;hb=5a737ec4d697ec1f1e6db68fed815669d8cd4bbd;hp=517be3861a797c3f4eb617cfab4b355a24ca4ac0;hpb=161121661bccbbf008d3153520a3a76dfdd34b9f;p=elisp%2Fsemi.git diff --git a/mime-view.el b/mime-view.el index 517be38..81386cb 100644 --- a/mime-view.el +++ b/mime-view.el @@ -421,7 +421,8 @@ mother-buffer." (defun mime-save-situation-examples () (if (or mime-preview-situation-example-list mime-acting-situation-example-list) - (let ((file mime-situation-examples-file)) + (let ((file mime-situation-examples-file) + print-length print-level) (with-temp-buffer (insert ";;; " (file-name-nondirectory file) "\n") (insert "\n;; This file is generated automatically by " @@ -438,7 +439,7 @@ mother-buffer." (insert "\n;;; " (file-name-nondirectory file) " ends here.\n") - (static-cond + (static-cond ((boundp 'buffer-file-coding-system) (setq buffer-file-coding-system mime-situation-examples-file-coding-system)) @@ -446,7 +447,7 @@ mother-buffer." (setq file-coding-system mime-situation-examples-file-coding-system))) ;; (setq buffer-file-coding-system - ;; mime-situation-examples-file-coding-system) + ;; mime-situation-examples-file-coding-system) (setq buffer-file-name file) (save-buffer))))) @@ -1472,9 +1473,9 @@ button-2 Move to point under the mouse cursor ;;; @@ utility ;;; -(defun mime-preview-find-boundary-info (&optional get-mother) +(defun mime-preview-find-boundary-info (&optional with-children) "Return boundary information of current part. -If GET-MOTHER, refer boundary surrounding current part and its branches." +If WITH-CHILDREN, refer boundary surrounding current part and its branches." (let (entity p-beg p-end entity-node-id len) @@ -1503,7 +1504,7 @@ If GET-MOTHER, refer boundary surrounding current part and its branches." ((null entity-node-id) (setq p-end (point-max)) ) - (get-mother + (with-children (save-excursion (catch 'tag (let (e i) @@ -1626,9 +1627,8 @@ It calls following-method selected from variable (if (functionp f) (funcall f new-buf) (message - (format - "Sorry, following method for %s is not implemented yet." - mode)) + "Sorry, following method for %s is not implemented yet." + mode) )) ))) @@ -1805,7 +1805,7 @@ If LINES is negative, scroll up LINES lines." ;;; (defun mime-preview-toggle-display (type &optional display) - (let ((situation (mime-preview-find-boundary-info)) + (let ((situation (mime-preview-find-boundary-info t)) (sym (intern (concat "*" (symbol-name type)))) entity p-beg p-end) (setq p-beg (aref situation 0)