unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Edi Weitz <spamtrap@agharta.de>
Subject: Re: (frame-parameters nil 'font) don't work in WinXP!
Date: Tue, 02 Nov 2004 22:30:27 +0100	[thread overview]
Message-ID: <uk6t4hrbg.fsf@agharta.de> (raw)
In-Reply-To: cm8thj$aoa$1@news.net.uni-c.dk

On Tue, 2 Nov 2004 22:21:21 +0100, "JS" <dsa.@asdf.com> wrote:

> When I try to use the commando:
>
> (frame-parameters nil 'font) C-j
>
> in my WinXP version of emacs I get the followin error:
>
> Debugger entered--Lisp error: (wrong-number-of-arguments #<subr
> frame-parameters> 2)
>   (frame-parameters nil (quote font))
>   eval((frame-parameters nil (quote font)))
>   eval-last-sexp-1(t)
>   eval-last-sexp(t)
>   eval-print-last-sexp()
> * call-interactively(eval-print-last-sexp)
>
> Does anybod know why??

Try

  C-h f frame-parameters RET

and you'll see that frame-parameters doesn't take two
arguments. That's also what the error message is telling you.

What you probably want is

  (assoc 'font (frame-parameters))

or

  (assoc 'font (frame-parameters my-frame))

where my-frame is the frame you want the information for.

And please don't crosspost the same question to several newsgroups
without indicating this.

Edi.

-- 

Lisp is not dead, it just smells funny.

Real email: (replace (subseq "spamtrap@agharta.de" 5) "edi")

  reply	other threads:[~2004-11-02 21:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-02 21:21 (frame-parameters nil 'font) don't work in WinXP! JS
2004-11-02 21:30 ` Edi Weitz [this message]
2004-11-02 21:35   ` Johan Bockgård

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=uk6t4hrbg.fsf@agharta.de \
    --to=spamtrap@agharta.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.
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).