* (frame-parameters nil 'font) don't work in WinXP!
@ 2004-11-02 21:21 JS
2004-11-02 21:30 ` Edi Weitz
0 siblings, 1 reply; 3+ messages in thread
From: JS @ 2004-11-02 21:21 UTC (permalink / raw)
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??
Johs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (frame-parameters nil 'font) don't work in WinXP!
2004-11-02 21:21 (frame-parameters nil 'font) don't work in WinXP! JS
@ 2004-11-02 21:30 ` Edi Weitz
2004-11-02 21:35 ` Johan Bockgård
0 siblings, 1 reply; 3+ messages in thread
From: Edi Weitz @ 2004-11-02 21:30 UTC (permalink / raw)
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")
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (frame-parameters nil 'font) don't work in WinXP!
2004-11-02 21:30 ` Edi Weitz
@ 2004-11-02 21:35 ` Johan Bockgård
0 siblings, 0 replies; 3+ messages in thread
From: Johan Bockgård @ 2004-11-02 21:35 UTC (permalink / raw)
Edi Weitz <spamtrap@agharta.de> writes:
> 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:
>> [...]
> What you probably want is
>
> (assoc 'font (frame-parameters))
I think what he wanted was
(frame-parameter nil 'font)
--
Johan Bockgård
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-02 21:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-02 21:21 (frame-parameters nil 'font) don't work in WinXP! JS
2004-11-02 21:30 ` Edi Weitz
2004-11-02 21:35 ` Johan Bockgård
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).