From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Highlight tabulated and trailing whitespace Date: Mon, 28 Dec 2020 17:08:17 +0100 Message-ID: References: <87ft3qilf6.fsf@zoho.eu> <87tus6gywp.fsf@zoho.eu> 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="25313"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: steve-humphreys@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 28 17:08:57 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 1ktv4r-000680-DB for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 17:08:57 +0100 Original-Received: from localhost ([::1]:33714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktv4q-0002eG-FG for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 11:08:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktv4K-0002dc-Lu for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 11:08:24 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:51329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktv4H-0005FT-GB for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 11:08:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609171698; bh=RBwntdk40rutqZgXZ6P37nD4ZuFUfrxU9AikQJkPZeE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=OIIORZw5pjslS36+oYWb36di0ZVrBdvSP4wYfXKQ6Uqwvh4oQFzbh2HAY2EO7p8fM 1I9uAgGqkqxJQ60PVCWANr1/xLwA6u7X/OoPVQubzIDUyhNavtYUFX2OY+6Lj1Maa/ hMHRHLfkJbcEySyjFuWVzUQlBPLqHq17SEiTqX7A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Mon, 28 Dec 2020 17:08:17 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:aCOHKHCBZ3H+ox2PJCdSkgc/jNPyJ8rLQZ9LSirt1PjdJqD/PRXodl9zYYrv4mbuhsZKC MJKoWTLuqkUlE5Oow+hhJVbwI0D7dhmmJan7CVIwU9c8Sn3kqJ9hHlKInG1E6/0V3uYv0esqxv9i L1KyCj4AExDGoMib5omG8x4FseX5zOH5QbHdPx0xIxTCFvT2kVZGMWiTcsbjsBAZ+4L9Rrrj2Pyq pqOU6Xx6HHseVt98U4UEYNqKnBZHFDHP8u38mYjrSRa+zykxoRDq/z55jDVQLS8rCQparr2sM6MF jc= X-UI-Out-Filterresults: notjunk:1;V03:K0:FpFatumsrvw=:8Ler15w5XojGSmbgFgym3Y 7a6EVOGVppdvYUdHmSsUP3yh2ykSL69YhwylGuk0y9a//aGap9/TYlF6oly0tNopteE+zxET3 jVAQOt8PVLUIvlzGtgXv5j3mAOIXU6NxSZGkMEEQ1nUdJLfOavFwTb30dhmoUtGKZ2xTb5Wm7 Q0vu4Slqt1rXemn4BT7KaSOkIpx2LG/x6Sobf9vWbLfpktQCer4OmJxQMzx1ozG4P1XXDliRh R4MJstJNXEaKTZnXqs3xz7eUFK26Yk+8Di/eBsm6YsjLhgg580nRV2DvoLrCGBYoSXc0lfA0L h5uLUDQqVEuDJPLFby3Gb8+gEOiO5T8QcP0h+Lx9dM9tfOT7018QjggJpjHhlbbqCEcyWXPRS 0eAMv1bizLOP/axm3AejyJUeUe/3cMUjJuTyPizQIYMcYPMprYqcOl4xPvl6q05+rLZNmSzAw xLg8oC2HDvPsDmsQBcNMzlHhlbMNEvj7PUF21nv/muZ1dDQGXoy+wAOHXjpv+rKPpDqCUiuwq HakZnPzy5uv4AGgd+LGO/bacBODrE13gm5+etwRzdd/BqKZcA+SIZJdQHQpOz4toVYueSV57F TRMQASVQbicrU= Received-SPF: pass client-ip=212.227.17.22; envelope-from=steve-humphreys@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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:126860 Archived-At: The error is Debugger entered--Lisp error: (void-variable display-cycle-state) (let ((n display-cycle-state)) > I cannot understand why the following code is giving me a lisp error. > > (defun display-cycle () > "Toggle Display-Line-Numbers mode in all buffers." > (interactive) > > (let ((n display-cycle-state)) > > (pcase n > (1 (whitespace-mode) > (setq-local display-cycle-state 2)) > > (2 (ruler-mode 0) > (setq line-number-mode nil) > (setq column-number-mode nil) > (global-display-line-numbers-mode) > (setq-local display-cycle-state 3)) > > (_ (ruler-mode 1) > (setq line-number-mode t) > (setq column-number-mode t) > (global-display-line-numbers-mode) > (setq-local display-cycle-state 1))) )) > > > > > > > Sent: Monday, December 28, 2020 at 2:10 PM > > From: steve-humphreys@gmx.com > > To: moasenwood@zoho.eu > > Cc: help-gnu-emacs@gnu.org > > Subject: Re: Highlight tabulated and trailing whitespace > > > > Have tried the following two lines to no effect > > > > (require 'whitespace) > > (whitespace-mode) > > > > But then if I use "H-k" to toggle, the command works. What is happeni= ng??? > > > > (global-set-key (kbd "H-k") 'whitespace-mode) > > > > > > > > > > > Sent: Monday, December 28, 2020 at 1:11 PM > > > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > > > To: help-gnu-emacs@gnu.org > > > Subject: Re: Highlight tabulated and trailing whitespace > > > > > > steve-humphreys wrote: > > > > > > > I have tried to show tab marks, but the following commands > > > > are confusing me. One can use a backgrouund colour and > > > > introduce a tab mark. But I have no idea how to > > > > achieve them. > > > > > > > > (setq whitespace-style '(face tabs)) > > > > > > Then just set the `whitespace-tab' face, to some face other > > > than what the default face has, > > > > > > (insert "\t <-- this is a tab") > > > > > > and enable the mode. > > > > > > -- > > > underground experts united > > > http://user.it.uu.se/~embe8573 > > > https://dataswamp.org/~incal > > > > > > > > > > > > > >