unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: martin rudalics <rudalics@gmx.at>
Cc: help-gnu-emacs@gnu.org
Subject: Re: x-popup-menu - window object
Date: Thu, 28 Sep 2006 09:00:40 +0200	[thread overview]
Message-ID: <451B7318.4070501@gmx.at> (raw)
In-Reply-To: <451A6FCC.8040402@gmx.at>

 >  I guess I have a larger question:
 >  When should one use 'list?

At the very moment, evaluating

'((50 50) (selected-window))

in buffer *scratch* gets me

((50 50) (selected-window))

while evaluating

(list '(50 50) (selected-window))

gets me

((50 50) #<window 42 on *scratch*>)

because in Elisp "cons evaluates its arguments" and `list' is based on
`cons'.

`x-popup-menu' expects, according to its doc-string, as first argument
something like "list ((XOFFSET YOFFSET) WINDOW)" where WINDOW denotes an
object of type window.  In practice, this means that you have to find a
function (like `selected-window') that returns a window object and feed
`x-popup-menu' with the _return value_ of that function.  It's not
sufficient to feed `x-popup-menu' just with the reference to a function
that would tell it how to find such a window.

  reply	other threads:[~2006-09-28  7:00 UTC|newest]

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

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=451B7318.4070501@gmx.at \
    --to=rudalics@gmx.at \
    --cc=help-gnu-emacs@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).