From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: set-face-attribute: apparent bug or doc error Date: Wed, 26 Aug 2020 15:19:31 -0400 Message-ID: References: <832a7d52-6629-a9f3-c594-ddc6f0966374@mousecar.com> <87eent5ztw.fsf@gnu.org> Reply-To: gebser@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="32218"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 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 21:19:55 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 1kB0xd-0008Gp-VC for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 21:19:53 +0200 Original-Received: from localhost ([::1]:52592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB0xd-00031x-1N for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 15:19:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB0xM-00031m-Bd for help-gnu-emacs@gnu.org; Wed, 26 Aug 2020 15:19:36 -0400 Original-Received: from mout.perfora.net ([74.208.4.197]:55391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB0xK-0005an-Oe for help-gnu-emacs@gnu.org; Wed, 26 Aug 2020 15:19:36 -0400 Original-Received: from [192.168.0.17] ([96.27.75.237]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MEVeQ-1kPp542XW6-00G2Er for ; Wed, 26 Aug 2020 21:19:32 +0200 In-Reply-To: <87eent5ztw.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:vCff6KeGngj8KefC7PVZy+b1QsUMgP+/y2fdmyTin3iey9d0PLV cEAPuvgKBi2elabhmwGtE3Wpe2kPg7ppQtuWZtosmrWpgrBv3LZNDFVOby1hojisaRdS7HN ZzIW5JzAoRF+x/rigLDbLgxeO4MzLOEKAMVNSaX3pWQi6Jc+NUVoIuiGyD0rzmui3Vf7Pcg g8hm5l5Hez2NoOKiYKkEg== X-UI-Out-Filterresults: notjunk:1;V03:K0:6ORVOiZf+FE=:RoxisIq+UtK00vNhPHnJfW mZr9HK5m3B3DYjxw9qNokcAfxDoDPLma5jbXe6E3ZkGRcPPAqgBoOL8FiAVg4q/qlUM9WecIG JRiHkQkoW9YFnPh1MHQbgKxOhCOcHWa9XZURJ8elwS/JUC+ydgvIIWcZnYzFKF2q6jci0MNaz ozpi1IWAQ7u0yGHFOkrrKIla4e2A9if7RSQhN0k9gcpB7wuwLSPQUpTyloGWzVP1AcCH3Uf3S 9yMzonJsFUuzaXQx4XOgsb0HEyGfefAxhHCpkQ/A7rfjg/liI9YFn5g+3O2smRcVaNiah+Frt x7hEYrqB56dSod9N0gYiPXfsTSX0wGmdhgBR4nRUN9o9/0mmXEZqpsyJEzJXDyHwz38wXVKRh +RTtj3U4r8iCd6jnNMtA7Ep6ibZ2bhXwtUZ6nrBeUw18edQIblGariwy3NMlEoSDLoIlV8S7j m9A2QQhQoX83JAafhK+PzojVs9Guwf+R09CkcBlgO7ZfsLLlu+KbNFRHyETWYSS+MYSWHR/Cn yYr2CyV/xxtue9udsSIVKeW4kxp1SOFDVlbq1PtCDKY3jqdVS1RYY1e+2XEiAdzJ78xzp5GqZ 86ZrZSKC4Y6uFJlIz+M1g+H1USIGsBIQ0XnEyGcWlCST5leEJPWxVOlTKUfRdb6gJWgaXJUbn lzp9AURy0ufE0GjcP63QEAqBWGPG8nJrLONa9bn5KsF7F4nbTufl59KKxzpIduVc6dLGIIpDe 9ooYipMcEkDifWb7RXgbxT4TbYD5vKRAS4WO4mP4/jvIYZjZS7/bONsgL14OYQNEwy45O525 Received-SPF: none client-ip=74.208.4.197; envelope-from=gebser@mousecar.com; helo=mout.perfora.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/26 15:19:32 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.239, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:123774 Archived-At: On 8/26/20 8:58 AM, Tassilo Horn wrote: > ken writes: > >> (set-face-attribute 'default nil :family "alegreya" :foundry "misc" >> :slant normal :weight "medium" :height 258 :width "normal") > ^^^^^^ >> yields error: >> >> Debugger entered--Lisp error: (void-variable normal) >>   (set-face-attribute 'default nil :family "alegreya" :foundry "misc" >> :slant normal :weight "medium" :height 258 :width "normal") >> .... >> >> The doc string, however, says: >> >> ‘:slant’ >> >> VALUE specifies the slant of the font to use.  It must be one of the >> symbols ‘italic’, ‘oblique’, ‘normal’, ‘reverse-italic’, or >> ‘reverse-oblique’. > Exactly, it must be a symbol, so use :slant 'normal. > > Bye, > Tassilo Great!  That did it!! I wish the doc string would be more explicit, like "since the VALUE is a symbol, it must begin with an apostrophe", pretty much what you and Eli said... and/or give some example usages.  That would be a big help to elisp dummies like myself. Also, I copy-and-pasted the whole of the variables and values from a line put into my ~/.gnu-emacs-custom automatically when I used the emacs menu (Options -> Set Default Font) to configure emacs with a larger font.  When it worked there, it surprised me when it didn't work when I put it into my ~/.emacs ... the line in ~/.gnu-emacs-custom looks like this: '(default ((t (:family "alegreya" :foundry "misc" :slant normal :weight normal :height 158 :width normal))))) Thanks again, guys.  My whole .emacs seems to be working now.