unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* x-popup-menu - window object
@ 2006-09-27 12:34 martin rudalics
  2006-09-28  7:00 ` martin rudalics
       [not found] ` <mailman.7528.1159426927.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: martin rudalics @ 2006-09-27 12:34 UTC (permalink / raw)
  Cc: help-gnu-emacs

Try

(x-popup-menu
   (list '(50 50) (selected-window)) '("Title" ("--" ("Line One" .  1))))

^ permalink raw reply	[flat|nested] 5+ messages in thread
* x-popup-menu - window object
@ 2006-09-27  1:53 Tim Johnson
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Johnson @ 2006-09-27  1:53 UTC (permalink / raw)


Hi:
This works:
(x-popup-menu t '("Title" ("--" ("Line One" . 1))))

This:
(x-popup-menu 
  '((50 50) (selected-window)) '("Title" ("--" ("Line One" .  1))))

Throws the following:  
Lisp error: (wrong-type-argument windowp (selected-window))

Documentation for x-popup-menu says
""" POSITION is a position specification.  This is either a mouse button event
or a list ((XOFFSET YOFFSET) WINDOW) """

evaluating (windowp (selected-window)) returns t

So what is wrong the with the 'call' to selected-window?
Thanks
Tim

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

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

end of thread, other threads:[~2006-09-28 15:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.7492.1159360442.9609.help-gnu-emacs@gnu.org>
2006-09-27 15:53 ` x-popup-menu - window object Tim Johnson
2006-09-27 12:34 martin rudalics
2006-09-28  7:00 ` martin rudalics
     [not found] ` <mailman.7528.1159426927.9609.help-gnu-emacs@gnu.org>
2006-09-28 15:52   ` Tim Johnson
  -- strict thread matches above, loose matches on Subject: below --
2006-09-27  1:53 Tim Johnson

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 read-only IMAP folder(s) and NNTP newsgroup(s).