From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48250 Path: main.gmane.org!not-for-mail From: Raymond Scholz Newsgroups: gmane.emacs.gnus.general Subject: Re: Cry for help: deuglify.el - moving stuff in the Article Buffer Date: Sun, 29 Dec 2002 01:24:27 +0100 Organization: =?UTF-8?Q?/=CB=8C=C9=94=CB=90=C9=A1=C9=99na=C9=AA=CB=88ze=C9=AA=CA=83n/?= Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: Raymond Scholz NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1041136927 7587 80.91.224.249 (29 Dec 2002 04:42:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Dec 2002 04:42:07 +0000 (UTC) Return-path: Original-Received: from util1.math.uh.edu ([129.7.128.22]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SVH3-0001yD-00 for ; Sun, 29 Dec 2002 05:42:05 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by util1.math.uh.edu with esmtp (Exim 4.10) id 18SV9k-0004Dj-00; Sat, 28 Dec 2002 22:34:32 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 28 Dec 2002 22:35:25 -0600 (CST) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id WAA07770 for ; Sat, 28 Dec 2002 22:35:15 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id gBT4YHW16263 for ding@hpc.uh.edu; Sat, 28 Dec 2002 22:34:17 -0600 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id SAA07614 for ; Sat, 28 Dec 2002 18:27:32 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18SRHt-0008NT-00 for ; Sun, 29 Dec 2002 01:26:41 +0100 Original-To: ding@hpc.uh.edu Original-Path: mde1.zonix.de!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 112 Original-NNTP-Posting-Host: b7f65.pppool.de Original-X-Trace: quimby.gnus.org 1041121601 32087 213.7.127.101 (29 Dec 2002 00:26:41 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 29 Dec 2002 00:26:41 GMT X-Now-Playing: Sigur =?iso-8859-1?q?R=F3s'_=5F=C1g=E6tis?= byrjun_: "Olsen Olsen" X-Face: %.!RBc`e*wW)84O*\)VdkC}mU5c2Zh$y~ZRA3K594g/jp_&5bx\Oyes!/jK~4<<%KlaPn^\ 0 wrote: > Raymond Scholz writes: > >> If you're using `W k' to deuglify messages, you may have encountered >> the problem that messages with MIME parts (or format=flowed) >> completely disappear from the Article Buffer. This is due to the >> brain-dead implementation of `gnus-outlook-rearrange-article' > > Could you construct a message that displays this behavior? I've attached a real world example. I was tryig to fix this a few weeks ago but did not suceed in any way :( The call to `gnus-article-prepare-display' in `gnus-article-outlook-deuglify-article' is the cause of the disappearance but commenting it out means, no highlighting will be done after repairing the article. Another drawback of deuglify.el is that `gnus-outlook-rearrange-article' tempers the kill ring. I've tried to fix this (see the commented out function below). Again - no luck. --- lisp/deuglify.el 2002/12/28 23:54:45 6.4 +++ lisp/deuglify.el 2002/12/29 00:17:54 @@ -325,6 +325,30 @@ (yank) (insert "\n")))))) +;; Trying not to temper the kill ring - does not work... +;; +;; (defun gnus-outlook-rearrange-article (from-where) +;; "Put the text from `from-where' to the end of buffer at the top of +;; the article buffer." +;; (save-excursion +;; (let ((inhibit-read-only t) +;; (cite-marks gnus-outlook-deuglify-cite-marks)) +;; (gnus-with-article-buffer +;; (setq tmp-point (point)) +;; (beginning-of-buffer) +;; (setq body-point-min (point)) +;; (goto-char from-where) +;; (beginning-of-line) +;; (setq citation-min (point)) +;; (goto-char tmp-point) +;; (gnus-message 3 "%s-%s <-> %s-%s" +;; citation-min (point-max) body-point-min (- citation-min 1)) +;; (unless (search-forward-regexp +;; (concat "^[ \t]*[^" cite-marks "\n]") nil t) +;; (transpose-regions citation-min (point-max) +;; body-point-min (- citation-min 1))))))) + + ;; John Doe wrote in message ;; news:a87usw8$dklsssa$2@some.news.server... @@ -423,9 +447,9 @@ (defun gnus-article-outlook-deuglify-article () "Deuglify broken Outlook (Express) articles and redisplay." (interactive) - (gnus-outlook-deuglify-article) - (with-current-buffer (or gnus-article-buffer (current-buffer)) - (gnus-article-prepare-display))) + (gnus-outlook-deuglify-article)) +;; (with-current-buffer (or gnus-article-buffer (current-buffer)) +;; (gnus-article-prepare-display))) (provide 'deuglify) Cheers, Ray -- Q: What have american beer and sex in a canoe in common? A: Both are fucking close to water. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=format-flowed.msg Content-Transfer-Encoding: base64 UGF0aDogaW5mb3JtYXRpay51bmktYnJlbWVuLmRlIWNzLnR1LWJlcmxpbi5kZSFmdS1iZXJsaW4u ZGUhdW5pLWJlcmxpbi5kZSFwb3AtemgtMTItMS1kaWFsdXAtMy5mcmVlc3VyZi5DSCFub3QtZm9y LW1haWwKRnJvbTogc2NoZWlkZWdnZXIgPHJzY2hlaWRlZ2dlckBnbXguY2g+Ck5ld3Nncm91cHM6 IGFsdC5jb21wLnBlcmlwaHMubWFpbmJvYXJkLmFzdXMKU3ViamVjdDogUmU6IFAyQiBjcHUgVXBn cmFkZQpEYXRlOiBTYXQsIDI5IERlYyAyMDAxIDIzOjUwOjE3ICswMTAwCk1lc3NhZ2UtSUQ6IDwz QzJFNDhBOS44MDcwMTAwQGdteC5jaD4KUmVmZXJlbmNlczogPGEwa28wZCQ1YWUkMUBoZWxsZS5i dGludGVybmV0LmNvbT4KTk5UUC1Qb3N0aW5nLUhvc3Q6IHBvcC16aC0xMi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