From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Changing string from completing-read to height for buffer-face-mode-invoke Date: Sun, 23 Jun 2024 10:36:30 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8089"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 12:37:17 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sLKaz-0001ra-7B for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 12:37:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLKaP-0002Q1-Iv; Sun, 23 Jun 2024 06:36:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLKaO-0002Pq-Fe for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:36:40 -0400 Original-Received: from mail-40137.protonmail.ch ([185.70.40.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLKaM-0004V0-Ia for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 06:36:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719138995; x=1719398195; bh=tnTAKmCnHCrSkcaaP9Y0TIpdVQ5LFpfdbYAhrzKC/PU=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=xYIJAZk/f15s27r4s5RivE6KL7SM9vKuMkDGuhEEo71hKvGbJE3+0Tx8mRHFYivfy kGAtWl+lKaLDven7ApgXDgrIfwbZDt+3KCN2LjMFYEMcDIyRvAvWNtoZRvi7cp4lF6 6NK28gjvMoe91RHW3C/Pkl9jkDOeIQhg7HCGqRLCXIXLDFPNEq6ARwy0SD+DxoUBr8 WXYHDruj49fxX1H6cVC2qIL/HZStYhDC7z1QrCjZx+7B8oLgSlITi6PQGiI3gGwSx+ YATfRLCBrhxHSKsWRM735jSrEwOUV+xtSliJigUspPkVNOX2/jfbMYgCDnpN7vKGI8 RSJqungHrLFjg== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: a5ee6b39fcd0490c978a8bf5ef81ee2f2bbf1eaf Received-SPF: pass client-ip=185.70.40.137; envelope-from=heimeborgia@protonmail.com; helo=mail-40137.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146952 Archived-At: I am using the function falfont to change the font of a buffer or frame. Do I need to change face-height to an integer rather than keeping it as a s= tring ? (require 'face-remap) (defvar faljura t "A boolean variable that is true by default.") (defun falfont (face-family face-height) (interactive (list (let ( (cseq '("Wargames" "URW Chancery L")) ) (completing-read " Family Name: " cseq nil t "URW Chancery L")) (let ( (hseq '("220" "120")) ) (completing-read " Face Height: " hseq nil t "80")) )) (pcase face-family ("Wargames" (if faljura (buffer-face-mode-invoke '(:family face-family :height face-he= ight) t) (set-face-attribute 'default nil :family face-family :height fac= e-height))) ("URW Chancery L" (if faljura (buffer-face-mode-invoke '(:family face-family :height face-he= ight) t) (set-face-attribute 'default nil :family face-family :height fac= e-height)))))