all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* 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.
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.