From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Imroving deleting/stripping MIME parts
Date: Wed, 31 Aug 2005 12:26:40 +0200 [thread overview]
Message-ID: <v9ek8al7vj.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <b4mu0h6zqm7.fsf@jpl.org>
On Wed, Aug 31 2005, Katsumi Yamaoka wrote:
> I'd like to propose adding two features. The following
> definition displays all the MIME buttons even if
> `gnus-inhibit-mime-unbuttonizing' is nil (which is the default),
> and specifies which part the user is going to manipulate. How
> about it?
> (defun gnus-article-part-wrapper (n function &optional no-handle)
> (let (window redisplay)
> ;; Check whether the article is displayed.
> (unless (and (gnus-buffer-live-p gnus-article-buffer)
> (setq window (get-buffer-window gnus-article-buffer t))
> (frame-visible-p (window-frame window)))
> (error "No article is displayed"))
> ;; Check whether the article displays the right contents.
> (unless (with-current-buffer gnus-article-buffer
> (with-current-buffer gnus-summary-buffer
> (eq gnus-current-article (gnus-summary-article-number))))
> (error "You should select the right article first"))
> ;; Make sure all the MIME buttons are visible.
> (unless gnus-inhibit-mime-unbuttonizing
> (setq redisplay t)
> (let ((gnus-inhibit-mime-unbuttonizing t))
> (gnus-summary-show-article)))
> (save-window-excursion
> (select-window window)
> (when (> n (length gnus-article-mime-handle-alist))
> (error "No such part"))
> (gnus-article-goto-part n)
> (let ((cursor-in-non-selected-windows t) ;; Display cursor.
> (overlay-arrow-string "=>") ;; Display arrow.
> (overlay-arrow-position (point-marker)))
Could you explain why these variables are useful here? (I don't see
any arrows.)
> (unwind-protect
> (if no-handle
> (funcall function)
> (let ((handle (cdr (assq n gnus-article-mime-handle-alist))))
> (funcall function handle)))
> (set-marker overlay-arrow-position nil)
> (when redisplay
> (gnus-summary-show-article)))))))
This additional `gnus-summary-show-article' after the funcall breaks
commands like `3 K i'. See
e.g. <news:v9ll2il854.fsf@marauder.physik.uni-ulm.de> in gmane.test.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2005-08-31 10:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-26 12:23 Not prompting user in gnus-mime-delete-part and gnus-mime-save-part-and-strip Reiner Steib
2005-08-27 20:57 ` Not prompting user in gnus-mime-delete-part and Dan Christensen
2005-08-28 0:32 ` Katsumi Yamaoka
2005-08-28 12:49 ` Reiner Steib
2005-08-29 0:19 ` Katsumi Yamaoka
2005-08-29 14:53 ` Reiner Steib
2005-08-30 1:36 ` Katsumi Yamaoka
2005-08-30 2:25 ` Dan Christensen
2005-08-30 6:07 ` Katsumi Yamaoka
2005-08-28 12:40 ` Imroving deleting/stripping MIME parts (was: Not prompting user in gnus-mime-delete-part and) Reiner Steib
2005-08-29 14:57 ` Imroving deleting/stripping MIME parts Reiner Steib
2005-08-30 2:22 ` Dan Christensen
2005-08-30 13:04 ` Reiner Steib
2005-08-30 15:25 ` Dan Christensen
2005-08-30 16:44 ` Reiner Steib
2005-08-31 4:18 ` Katsumi Yamaoka
2005-08-31 10:26 ` Reiner Steib [this message]
2005-08-31 11:11 ` Katsumi Yamaoka
2005-09-01 5:29 ` Katsumi Yamaoka
2005-09-01 18:41 ` Reiner Steib
2005-09-02 7:07 ` Katsumi Yamaoka
2005-09-02 16:17 ` Reiner Steib
2005-09-05 5:39 ` Katsumi Yamaoka
2005-09-05 13:15 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9ek8al7vj.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).