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: New line and trailing whitespaces Date: Wed, 24 Apr 2024 10:05:55 +0300 Message-ID: <86v8472qb0.fsf@gnu.org> References: <86sezg87oh.fsf@gnu.org> <86o7a486gq.fsf@gnu.org> <86cyqj8f1a.fsf@gnu.org> <86h6fu6jn0.fsf@gnu.org> <86le544i6t.fsf@gnu.org> <86h6fs3vd5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3356"; 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 Apr 24 09:06:41 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 1rzWiG-0000hp-Pf for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 24 Apr 2024 09:06:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzWhd-0006ih-Ng; Wed, 24 Apr 2024 03:06:01 -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 1rzWhb-0006iQ-9k for help-gnu-emacs@gnu.org; Wed, 24 Apr 2024 03:05:59 -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 1rzWhb-0002WV-0T for help-gnu-emacs@gnu.org; Wed, 24 Apr 2024 03:05:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Vl1ZoFN9M1C01gklJaeg+8jmFrdPegjc8Vf8D9iZPFI=; b=EE/rfd/lCbp7VwsG4cBc XftGht/IvCxjee6tpV/eoJ04u5toJ+4Vatf7iRSDSxrLmr665I9xw6Lk+XvX+my/q2aGp8TG5MOQP Lzn8fPMNbKzqXuUbiHEQGOe/gM+WRu+5kPt1LczDPfzveeRV0Q+mrZC6kHKbtKMy2HPXyFQIdzrpx l9V9zkePHt8poLb5Tt0U7nnpR7p/llYJJZB7YUWGBozTeQeBT7aEVzEWDY7KqPAo5EyaiGbbqUJjY cBt+KXLaTacc+BqZlHP4gzUYaukEolZfV/OVy/8X2SkVWj/tCBaSLCrHbkqJRbCDkz0emXJA9gcY7 c5dmlR4erU7W3g==; In-Reply-To: (message from Ergus on Wed, 24 Apr 2024 04:41:26 +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:146465 Archived-At: > Date: Wed, 24 Apr 2024 04:41:26 +0200 > From: Ergus > Cc: help-gnu-emacs@gnu.org > > I tried this. > > (with-eval-after-load 'whitespace > (setq whitespace-style '(faces tab-mark) > whitespace-display-mappings `((tab-mark ?\t [,(make-glyph-code ?» 'whitespace-tab) ?\t] )) > )) > (whitespace-mode 1) > > But I only get the error: > > wrong-type-argument number-or-marker-p (187 . 235) > > Some idea what I am doing wrong? It's a bug in whitespace.el, which I just fixed on the master branch: it didn't work correctly with glyph codes. You seem to have a lot of faces defined (more than 64 of them), so you bumped into this corner case.