all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Interactive with two arguments
@ 2024-06-22 23:56 Heime
  2024-06-23  5:27 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Heime @ 2024-06-22 23:56 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

Why does the following give me 


wrong-number-of-arguments ((t) (face-family face-height)


(defun falfont (face-family face-height)

  (interactive
    (list
      (let ( (cseq '("Wargames" "URW Chancery L" "UnPilgia" "UnPilgi"
                     "Tibetan Machine Uni" "Lobster Two" "eufm10"
                     "Century Schoolbook L" "Bold Oblique")) )
        (completing-read " Face Family: " cseq nil t "Bold Oblique"))

      (let ( (hseq '("340" "320" "300" "280" "260" "240" "220" "200"
                     "180" "160" "140" "120" "100" "80")) )
        (completing-read "Face Height (in 1/10 pt): " hseq nil t "80")) )) )





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

* Re: Interactive with two arguments
  2024-06-22 23:56 Interactive with two arguments Heime
@ 2024-06-23  5:27 ` Eli Zaretskii
  2024-06-23  9:31   ` Heime
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-06-23  5:27 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sat, 22 Jun 2024 23:56:13 +0000
> From: Heime <heimeborgia@protonmail.com>
> 
> Why does the following give me 
> 
> 
> wrong-number-of-arguments ((t) (face-family face-height)
> 
> 
> (defun falfont (face-family face-height)
> 
>   (interactive
>     (list
>       (let ( (cseq '("Wargames" "URW Chancery L" "UnPilgia" "UnPilgi"
>                      "Tibetan Machine Uni" "Lobster Two" "eufm10"
>                      "Century Schoolbook L" "Bold Oblique")) )
>         (completing-read " Face Family: " cseq nil t "Bold Oblique"))
> 
>       (let ( (hseq '("340" "320" "300" "280" "260" "240" "220" "200"
>                      "180" "160" "140" "120" "100" "80")) )
>         (completing-read "Face Height (in 1/10 pt): " hseq nil t "80")) )) )

It doesn't signal an error here.  What did you type at the two
prompts?



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

* Re: Interactive with two arguments
  2024-06-23  5:27 ` Eli Zaretskii
@ 2024-06-23  9:31   ` Heime
  0 siblings, 0 replies; 3+ messages in thread
From: Heime @ 2024-06-23  9:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

On Sunday, June 23rd, 2024 at 5:27 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sat, 22 Jun 2024 23:56:13 +0000
> > From: Heime heimeborgia@protonmail.com
> > 
> > Why does the following give me
> > 
> > wrong-number-of-arguments ((t) (face-family face-height)
> > 
> > (defun falfont (face-family face-height)
> > 
> > (interactive
> > (list
> > (let ( (cseq '("Wargames" "URW Chancery L" "UnPilgia" "UnPilgi"
> > "Tibetan Machine Uni" "Lobster Two" "eufm10"
> > "Century Schoolbook L" "Bold Oblique")) )
> > (completing-read " Face Family: " cseq nil t "Bold Oblique"))
> > 
> > (let ( (hseq '("340" "320" "300" "280" "260" "240" "220" "200"
> > "180" "160" "140" "120" "100" "80")) )
> > (completing-read "Face Height (in 1/10 pt): " hseq nil t "80")) )) )
> 
> 
> It doesn't signal an error here. What did you type at the two
> prompts?

I figured there was an instance of a missing second argument when
the function was called.  So the error.



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

end of thread, other threads:[~2024-06-23  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-22 23:56 Interactive with two arguments Heime
2024-06-23  5:27 ` Eli Zaretskii
2024-06-23  9:31   ` Heime

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.