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: Display of "narrow no-break space" character Date: Sat, 17 Jun 2023 17:18:50 +0300 Message-ID: <83352qqiid.fsf@gnu.org> References: <9e785431-3ef1-8452-bab4-1f084fa1a304@magnaspesmeretrix.org> <83fs6qqsoo.fsf@gnu.org> <837cs2qlfx.fsf@gnu.org> <10782d5c-e33f-25d6-0be3-531c8fa2cf22@magnaspesmeretrix.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13206"; 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 Sat Jun 17 16:19:43 2023 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 1qAWmF-0003Cj-0d for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Jun 2023 16:19:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAWlR-0000Zl-MH; Sat, 17 Jun 2023 10:18:53 -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 1qAWlQ-0000Zb-Hu for help-gnu-emacs@gnu.org; Sat, 17 Jun 2023 10:18:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAWlQ-0004px-A3 for help-gnu-emacs@gnu.org; Sat, 17 Jun 2023 10:18:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PuDJ/TotxGBdqOSiRpOrtOJ3nDBKP4ksGXPRBlYmb9Q=; b=dvBVzX8N4Cy4 ZnN/CUSQB22bou7qP1P1RMadRPwc4/wj34tlaA+Ao/pWimNrWt20gCykQxS6BH4AkrXU1ftNVBDYN odnAOP2GM57MDN685CKNwf5afLcEhlKxlD/i1BS2zeevGQxl9lM+S2pcTV/C0R/4AOBhoQEYbVcyQ xBqkyULq5nwoBF9D2jEPS5diHJ0DZy3wxWfDpkklSquzYijf4o+6FTPFDZxKZbTE3GJYZouG1uQHF AJ6faNII+K2sAuBaGoNJCHWccCisrEuipP4sywXPKXwj6xeOZjRyp3hEany4BTit6e3e9ke+Yh/NU Wa+m00rAeAbpR25JpP7khA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAWlP-00056b-QT for help-gnu-emacs@gnu.org; Sat, 17 Jun 2023 10:18:52 -0400 In-Reply-To: <10782d5c-e33f-25d6-0be3-531c8fa2cf22@magnaspesmeretrix.org> (message from PierGianLuca on Sat, 17 Jun 2023 16:04:49 +0200) 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:143975 Archived-At: > Date: Sat, 17 Jun 2023 16:04:49 +0200 > From: PierGianLuca > > Hi Eli, thank you, actually I think I've managed now: > > (setq disptab (make-display-table)) > (aset disptab 8239 [729]) ;; upper dot for narrow no-break space > (setq buffer-display-table disptab) > > The question now is how to make this the standard display table on all future Emacs sessions. I tried adding > > (aset standard-display-table 8239 [729]) > > to my .init.el, but it yields a "wrong type argument" error. Still, it works if I call it after Emacs is started instead. standard-display-table is not guaranteed to be set, so you need to make sure it is first. Like this: (or standard-display-table (setq standard-display-table (make-display-table))) (aset standard-display-table 8239 [729]) Note that you can also specify a face for the glyphs in the display table, which could come in handy if you want them to stand out on display.