From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: set-default-font Date: Wed, 26 Aug 2020 08:40:48 +0300 Message-ID: <83eenu3qxr.fsf@gnu.org> References: <855b886e-8bb5-caad-ebc5-4f14b7da5765@mousecar.com> <83k0xm4m34.fsf@gnu.org> <83imd64luu.fsf@gnu.org> <69cb6867-47c2-fd29-756e-9511f59fd4f2@mousecar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11555"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 26 07:41:38 2020 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 1kAoBl-0002ud-0p for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 07:41:37 +0200 Original-Received: from localhost ([::1]:59234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAoBk-00085R-3V for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 01:41:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAoBF-00085L-2B for help-gnu-emacs@gnu.org; Wed, 26 Aug 2020 01:41:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54536) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAoBD-00049c-Cu for help-gnu-emacs@gnu.org; Wed, 26 Aug 2020 01:41:03 -0400 Original-Received: from [176.228.60.248] (port=2189 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kAoBC-0006T6-Tk for help-gnu-emacs@gnu.org; Wed, 26 Aug 2020 01:41:03 -0400 In-Reply-To: <69cb6867-47c2-fd29-756e-9511f59fd4f2@mousecar.com> (message from ken on Tue, 25 Aug 2020 16:38:16 -0400) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:123768 Archived-At: > From: ken > Date: Tue, 25 Aug 2020 16:38:16 -0400 > > >>> set-default-font "-*-*-regular-r-*-*-*-180-*-75-*-*-iso8859-1") > >> This setting is redundant, because Emacs does that by default. I > >> suggest that you simply delete it, you shouldn't see any difference. > > It's part of a larger function, so that I can change the font size > (small, medium, large) from a menu. If all you need is to change the font size, then specify only the size: (set-face-attribute 'default nil :height 180) > > Or, if you did that to get a larger font, use set-face-attribute > > instead to request a larger font without specifying it in XLFD format > > (which requires too much information you don't want to provide). > > > > Changing to: > >   (set-face-attribute > "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard") > > errors out. Of course, it will: that's not how you call set-face-attribute. Please consult its doc string for how to use it correctly.