unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Interactive option for command application
@ 2024-06-24 20:52 Heime
  2024-06-24 21:36 ` [External] : " Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Heime @ 2024-06-24 20:52 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

What would be a convenient way for the user to select whether a change is to be made to
a buffer or to a frame?  Currently the user has to enter "yes" or "no' to the question
to set the boolean flag.  Generally, users would perform the change only upon the buffer,
and only occasionally upon the frame.

(defun monfont (face-family face-height okvir)

  (interactive

    (list

      (let ( (cseq '("Wargames" "URW Chancery L" "Century Schoolbook L")) )

        (completing-read " Family Name: " cseq nil t "Century Schoolbook L"))


      (let ( (hseq '("260" "220" "180")) )

        (completing-read " Face Height: " hseq nil t "180")) 


      (yes-or-no-p "Apply to Frame ? ") )) 

  (if okvir
      (do-this)
    (do-that)) )





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

end of thread, other threads:[~2024-06-25 10:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 20:52 Interactive option for command application Heime
2024-06-24 21:36 ` [External] : " Drew Adams
2024-06-24 21:51   ` Heime
2024-06-24 23:53     ` Drew Adams
2024-06-25  0:11       ` Heime
2024-06-25  0:22         ` Drew Adams
2024-06-25 10:11           ` Heime

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