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: Re: Change font for buffer Date: Sat, 22 Jun 2024 19:47:07 +0000 Message-ID: References: <86a5jdjvzw.fsf@gnu.org> <864j9li9sr.fsf@gnu.org> <86wmmhgsd9.fsf@gnu.org> <9d8HOd29wT5W0-63VK1H6yFR5TP_Dj_c_PTSku11k8IOLFQqf5h8FQBIYBv_lb90pTumGlVvlcweq6_7PFxmL2yKIxsA_eVm72qvOeqjs8U=@protonmail.com> <868qyxgdts.fsf@gnu.org> 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="34628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 22 21:47:48 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 1sL6iC-0008q9-JJ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 22 Jun 2024 21:47:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sL6hi-0002KM-UN; Sat, 22 Jun 2024 15:47:18 -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 1sL6hh-0002K9-Hh for help-gnu-emacs@gnu.org; Sat, 22 Jun 2024 15:47:17 -0400 Original-Received: from mail-0201.mail-europe.com ([51.77.79.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sL6hf-0002Qk-Ss for help-gnu-emacs@gnu.org; Sat, 22 Jun 2024 15:47:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719085630; x=1719344830; bh=BhV5cVq5y8CfkHMDNo/Uv6k1/6H507NIXTbfudG3KS8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=MXbdtJyS54Ymjt0okHrYgf5GQ5o2B/FXHqFgQBfSsqpJGenhiSDbs1xUdXKx31aYt xM9Tpn9u19c7oehIReRyGbfV72R0EIGyipNk91AkjYZjf6Ky5ht3BiXonyh6NY0Nj2 0GOhE07SfT+IxQ5L3sdf9JRnUKCxtQ+tl27XvW0IB3omWbHYCGlaXPtCxKvjy4OYEb ERM3XzptK55hsLodDsv0s5YLTdzMYiEYDks3pE0QabaMTAe1JTBqU2BWBNLkcQ/j5+ iDWvoOGOwXzJSTup7XDHAWXWqEdNeDAbp/3w1y9288GMosS1rPw8muHPA7aOw2HbIK armiqweJB/90w== In-Reply-To: <868qyxgdts.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 5f4aaed3f06f1abd4b96797d158b0f503fffb303 Received-SPF: pass client-ip=51.77.79.158; envelope-from=heimeborgia@protonmail.com; helo=mail-0201.mail-europe.com 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, SPF_HELO_NONE=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:146938 Archived-At: On Saturday, June 22nd, 2024 at 4:08 PM, Eli Zaretskii wrote= : > > Date: Sat, 22 Jun 2024 15:19:14 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=20 > > > > What is the difference to using this instead ? > > > >=20 > > > > (set-face-attribute 'default nil :font "URW Chancery L-12") > > >=20 > > > It isn't buffer-local, and you wanted the change for a specific > > > buffer, AFAIU. > >=20 > > Have looked at the docstring, but it is not very clear to me how to cal= l it > > exactly. > >=20 > > (buffer-face-mode-invoke "URW Chancery L-12" t) >=20 >=20 > Try >=20 > (buffer-face-mode-invoke '(:family "URW Chancery L-12") t) The command=20 (buffer-face-mode-invoke '(:family "URW Chancery L-12") t) gives me=20 Debugger entered--Lisp error: (void-function buffer-face-mode-invoke) (buffer-face-mode-invoke '(:family "URW Chancery L-12") t) Have used the command=20 fc-list | sort | uniq | grep -i Chancery to give me the list /usr/share/fonts/type1/gsfonts/z003034l.pfb: URW Chancery L:style=3DMedium = Italic /usr/share/fonts/X11/Type1/z003034l.pfb: URW Chancery L:style=3DMedium Ital= ic