Gnus development mailing list
 help / color / mirror / Atom feed
* 2 wishes
@ 1998-09-16 17:14 朱胜火
  1998-09-17  9:17 ` Kai Grossjohann
  1998-09-19 12:14 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: 朱胜火 @ 1998-09-16 17:14 UTC (permalink / raw)



1. gnus-mime-inline-part toggles the inline part.

Press "i" on mime button, the part shows. Press again, the part hides
instead of showing two copies.

2. make uu parts shown as mime buttons.

uuencode, ps, shar, and binhex texts will be shown as buttons in
article. I wish GNUS native decode functions be available to decode
them.

-- 
Shenghuo ZHU(朱胜火)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2 wishes
  1998-09-16 17:14 2 wishes 朱胜火
@ 1998-09-17  9:17 ` Kai Grossjohann
  1998-09-19 12:14 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Kai Grossjohann @ 1998-09-17  9:17 UTC (permalink / raw)
  Cc: ding

>>>>> On 16 Sep 1998-400, 朱胜火  said:

  ZSH> 1. gnus-mime-inline-part toggles the inline part.

  ZSH> Press "i" on mime button, the part shows. Press again, the part hides
  ZSH> instead of showing two copies.

Doesn't RET do what you want?

kai
-- 
OOP: object oriented programming;  OOPS: object oriented mistakes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2 wishes
  1998-09-16 17:14 2 wishes 朱胜火
  1998-09-17  9:17 ` Kai Grossjohann
@ 1998-09-19 12:14 ` Lars Magne Ingebrigtsen
  1998-09-20  4:53   ` Shenghuo ZHU
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-19 12:14 UTC (permalink / raw)


zsh@cs.rochester.edu (朱胜火) writes:

> 1. gnus-mime-inline-part toggles the inline part.
> 
> Press "i" on mime button, the part shows. Press again, the part hides
> instead of showing two copies.

Do you mean that it should do this, or that this is what it does, and
that's a bug?

> 2. make uu parts shown as mime buttons.

Yes, that would be nice, but I think we should get the real MIME
things under control first.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2 wishes
  1998-09-19 12:14 ` Lars Magne Ingebrigtsen
@ 1998-09-20  4:53   ` Shenghuo ZHU
  1998-09-23 17:35     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Shenghuo ZHU @ 1998-09-20  4:53 UTC (permalink / raw)


>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

LMI> zsh@cs.rochester.edu (Öìʤ»ð) writes:
>> 1. gnus-mime-inline-part toggles the inline part.
>> 
>> Press "i" on mime button, the part shows. Press again, the part hides
>> instead of showing two copies.

LMI> Do you mean that it should do this, or that this is what it does,
LMI> and that's a bug?

I thought it was not a bug. Unfortunately, it is. A patch attached.

>> 2. make uu parts shown as mime buttons.

LMI> Yes, that would be nice, but I think we should get the real MIME
LMI> things under control first.

I've made postscript parts and uuencoded parts shown as (MIME)
buttons. I am going to add "shar" and "binhex". When it is finished, I
will mail it to you.

What I did are
1. use gnus-article-display-hook 
2. elisp native uudecode function (steal lots code from base64.el)
3. modify mm-decode-content-transfer-encoding so that MIME button can
invoke uudecode. The following codes are the modified version. Any
suggestion?


(defun mm-decode-content-transfer-encoding (encoding)
  (cond
   ((eq encoding 'quoted-printable)
    (quoted-printable-decode-region (point-min) (point-max)))
   ((eq encoding 'base64)
    (condition-case ()
	(base64-decode-region (point-min) (point-max))
      (error nil)))
   ((memq encoding '(7bit 8bit binary))
    )
   ((null encoding)
    )
   ((fboundp encoding)                          ;;; modified
    (funcall encoding (point-min) (point-max))) ;;; modified
   (t
    (error "Can't decode encoding %s" encoding))))

-- 
Shenghuo

----------------------------------------------------------------
diff -ru pgnus-0.31/lisp/ChangeLog pgnus-0.32pre/lisp/ChangeLog
--- pgnus-0.31/lisp/ChangeLog	Mon Sep 14 12:55:34 1998
+++ pgnus-0.32pre/lisp/ChangeLog	Sun Sep 20 00:28:58 1998
@@ -1,3 +1,8 @@
+Sun Sep 20 00:27:55 1998  ZHU Shenghuo  <zsh@cs.rochester.edu>
+
+	* gnus-art.el (gnus-mime-inline-part): remove part if necessary
+	
+
 Mon Sep 14 18:55:38 1998  Lars Magne Ingebrigtsen  <larsi@menja.ifi.uio.no>
 
 	* gnus.el: Pterodactyl Gnus v0.31 is released.
diff -ru pgnus-0.31/lisp/gnus-art.el pgnus-0.32pre/lisp/gnus-art.el
--- pgnus-0.31/lisp/gnus-art.el	Mon Sep 14 12:55:35 1998
+++ pgnus-0.32pre/lisp/gnus-art.el	Sun Sep 20 00:29:39 1998
@@ -2199,9 +2199,11 @@
 	 (contents (mm-get-part data))
 	 (b (point))
 	 buffer-read-only)
-    (forward-line 2)
-    (mm-insert-inline data contents)
-    (goto-char b)))
+    (if (mm-handle-undisplayer data)
+	(mm-remove-part data)
+      (forward-line 2)
+      (mm-insert-inline data contents)
+      (goto-char b))))
 
 (defun gnus-insert-mime-button (handle)
   (let ((gnus-tmp-name (mail-content-type-get (mm-handle-type handle) 'name))


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2 wishes
  1998-09-20  4:53   ` Shenghuo ZHU
@ 1998-09-23 17:35     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-23 17:35 UTC (permalink / raw)


Shenghuo ZHU <zsh@cs.rochester.edu> writes:

> I've made postscript parts and uuencoded parts shown as (MIME)
> buttons. I am going to add "shar" and "binhex". When it is finished, I
> will mail it to you.

Thanks.

> What I did are
> 1. use gnus-article-display-hook 
> 2. elisp native uudecode function (steal lots code from base64.el)
> 3. modify mm-decode-content-transfer-encoding so that MIME button can
> invoke uudecode. The following codes are the modified version. Any
> suggestion?

[...]

>    ((fboundp encoding)                          ;;; modified
>     (funcall encoding (point-min) (point-max))) ;;; modified

Looks OK to me.


[...]

> +	* gnus-art.el (gnus-mime-inline-part): remove part if necessary

Thanks for the patch; I've applied it to Pterodactyl Gnus v0.32.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-09-23 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-16 17:14 2 wishes 朱胜火
1998-09-17  9:17 ` Kai Grossjohann
1998-09-19 12:14 ` Lars Magne Ingebrigtsen
1998-09-20  4:53   ` Shenghuo ZHU
1998-09-23 17:35     ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).