Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Welsh Duggan <md5i@cs.cmu.edu>
Subject: Re: MIME popup menus
Date: Mon, 26 Oct 1998 17:19:33 GMT	[thread overview]
Message-ID: <v1tyaq31brw.fsf@peoria.mt.cs.cmu.edu> (raw)
In-Reply-To: <m3zpalr220.fsf@sparky.gnus.org>


Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:

> I don't really use menus and mice and stuff, so could someone (else)
> write `gnus-mime-button-menu' for Emacs 20?  The stub for this
> function is in gnus-art.el, and the XEmacs implementation is
> `gnus-xmas-mime-button-menu' in gnus-xmas.el.

Does the following work?

(defun gnus-mime-button-menu (event)
  "Construct a context-sensitive menu of MIME commands."
  (interactive "e")
  (let ((reponse (x-popup-menu 
                  t `("MIME Part" 
                      ("" ,@(mapcar (lambda (c)
                                      (cons (caddr c) (car c)))
                                    gnus-mime-button-commands)))))
        (pos (event-start event)))
    (set-buffer (window-buffer (posn-window pos)))
    (goto-char (posn-point pos))
    (funcall response)))  

-- 
Michael Duggan
(md5i@cs.cmu.edu)
.



  reply	other threads:[~1998-10-26 17:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-24 23:08 Lars Magne Ingebrigtsen
1998-10-26 17:19 ` Michael Welsh Duggan [this message]
1998-10-26 18:34   ` Michael Welsh Duggan
1998-10-26 21:09   ` Lars Magne Ingebrigtsen

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=v1tyaq31brw.fsf@peoria.mt.cs.cmu.edu \
    --to=md5i@cs.cmu.edu \
    /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).