all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yakov Nekritch <yasha@theory.cs.uni-bonn.de>
Subject: Emacs LISP Question
Date: Wed, 20 Aug 2003 18:04:36 +0200 (CEST)	[thread overview]
Message-ID: <200308201604.h7KG4aTt012968@theory.cs.uni-bonn.de> (raw)

Hello,

I have the following emacs lisp question. 
How can I implement a  mouse pop-up menu, for a menu defined with 
easy-menu-define?

I was thinking about something like this:


(require 'xcscope )

(defun mouse-popup-cscopemenu ( )
 "Popup a cscope menu."
 (popup-menu  cscope:menu ) )


(define-key c-mode-base-map [S-down-mouse-3]  'mouse-popup-cscopemenu)


And  cscope:menu is defined in  xcscope.el .


However this does not work. When I press Shift-RightMouse I get:

Wrong type argument: commandp, mouse-popup-cscopemenu



Can anybody tell me what is wrong with my approach and how this function should 
be realised?
Any help will be appreciated.


Regards,
Yakov


==========================================================================
Dr. Yakov Nekrich		Phone:  +49-(0)228-734209
Computer Science Department	Fax:    +49-(0)228-734440
University of Bonn		e-mail: yasha@cs.uni-bonn.de
Römerstrasse 164,		http://theory.cs.uni-bonn.de/~yasha
53117 Bonn
Germany
==========================================================================

             reply	other threads:[~2003-08-20 16:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-20 16:04 Yakov Nekritch [this message]
     [not found] <mailman.669.1061546874.29551.help-gnu-emacs@gnu.org>
2003-08-22 11:17 ` Emacs LISP Question Klaus Zeitler
  -- strict thread matches above, loose matches on Subject: below --
2004-01-09 15:55 Emacs Lisp question Gian Uberto Lauri
     [not found] <mailman.303.1073667340.928.help-gnu-emacs@gnu.org>
2004-01-09 16:48 ` Paolo Gianrossi
2009-06-26 23:05 Emacs & " Ben Badgley
2009-06-27 17:40 ` Johan Bockgård
     [not found] <mailman.1371.1246077688.2239.help-gnu-emacs@gnu.org>
2009-06-27  5:52 ` Tim X
2009-06-27 10:19 ` Richard Riley
2009-06-27 13:08 Ben Badgley
2011-02-06 23:04 Emacs lisp question Ben Key
2011-02-07  0:49 ` Perry Smith
2011-02-07  1:05 ` Drew Adams
2011-02-07  1:30   ` Ben Key
2011-02-06 23:19 Ben
2011-02-07  1:38 ` Barry Margolin
2013-06-27 13:11 Emacs Lisp Question drain
2013-06-27 13:25 ` Thorsten Jolitz
     [not found] <mailman.2559.1372339138.22516.help-gnu-emacs@gnu.org>
2013-06-27 15:33 ` Barry Margolin
2016-04-18 14:27 Emacs lisp question Matthias Pfeifer
2016-04-18 19:50 ` tomas
2016-04-19 10:39   ` Matthias Pfeifer
2016-04-19 11:59 ` Alexis
2016-04-22  9:05   ` Matthias Pfeifer
     [not found] <mailman.616.1460989677.7477.help-gnu-emacs@gnu.org>
2016-04-18 16:05 ` Barry Margolin

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=200308201604.h7KG4aTt012968@theory.cs.uni-bonn.de \
    --to=yasha@theory.cs.uni-bonn.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.