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 15:19:14 +0000 Message-ID: <9d8HOd29wT5W0-63VK1H6yFR5TP_Dj_c_PTSku11k8IOLFQqf5h8FQBIYBv_lb90pTumGlVvlcweq6_7PFxmL2yKIxsA_eVm72qvOeqjs8U=@protonmail.com> References: <86a5jdjvzw.fsf@gnu.org> <864j9li9sr.fsf@gnu.org> <86wmmhgsd9.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="7850"; 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 17:20:19 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 1sL2XL-0001ok-7M for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 22 Jun 2024 17:20:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sL2WU-0002nU-Vo; Sat, 22 Jun 2024 11:19:27 -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 1sL2WT-0002nH-Lz for help-gnu-emacs@gnu.org; Sat, 22 Jun 2024 11:19:25 -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 1sL2WR-0000Xk-Ez for help-gnu-emacs@gnu.org; Sat, 22 Jun 2024 11:19:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719069560; x=1719328760; bh=QQmwMEkhPzAlV7SYnqELzskvoLxBh5BLR+lgJZAtxs4=; 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=FbtF3Bpq4i4AH1kVmXQM1oJ2iZd+e+cOxMbpmRTz6i6wH0Mg9YSTIOatt3iv3nbOy X6T+Q+UDM4HmCj1jrgiZaFzAts00439eLR9L7n5s3QYacFggVMZQk8vjfauUXOEt70 mom3lqJ3/VsK238XgoQt6IrBOUpLS0Wq17XO5BLd7K36hopBAM2pMII5EAzdM7/MIT d0PjoswNHU4r1M4bmNRNs5xTH+NuzFMLO1PxhYfUfqLlKhxelUcE0EAIL8b6KjZkFl i4eQaXigsUP+cxOkwK2wopMlm0p7OlTSwEL9LKszKfy2aemC2bGQN/Fgraa5SPzytQ 8EXFRYluxBfrA== In-Reply-To: <86wmmhgsd9.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: da6845e7eb6f0c5877475aeb440ee5a8559f2245 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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:146936 Archived-At: Sent with Proton Mail secure email. On Saturday, June 22nd, 2024 at 10:54 AM, Eli Zaretskii wrot= e: > > Date: Sat, 22 Jun 2024 10:38:29 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=20 > > On Saturday, June 22nd, 2024 at 9:52 AM, Eli Zaretskii eliz@gnu.org wro= te: > >=20 > > > > > Interactively, use S-mouse-1. > > > > >=20 > > > > > In Lisp, use buffer-face-mode-invoke. > > > >=20 > > > > What command can I use to change the buffer face to URW Chancery ? > > >=20 > > > One of the above, as I just suggested. > >=20 > > What is the difference to using this instead ? > >=20 > > (set-face-attribute 'default nil :font "URW Chancery L-12") >=20 >=20 > It isn't buffer-local, and you wanted the change for a specific > buffer, AFAIU. Have looked at the docstring, but it is not very clear to me how to call it exactly. (buffer-face-mode-invoke "URW Chancery L-12" t)