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 14:09:56 +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="35116"; 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 14:10:41 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 1ktsIH-0008wT-ML for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 14:10:37 +0100 Original-Received: from localhost ([::1]:48984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktsIG-0003Va-Oa for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 08:10:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktsHj-0003VS-Bs for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 08:10:03 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:58517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktsHf-0003K3-1V for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 08:10:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609160996; bh=4VA9GL0OhFMGCdSSobutSJmSzSnKRzii8YlTr2AtxQs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fEvxpCBwrayfVCqPzEEKie8pgoL1gptWVVV+5ANp6My6pyb8a+nNkVtntvXuvNKkv 7D5XKqV2TZKeQFo/BZ3h1aY9FkhZsI5bqOJpd/YEJYbzadznarHmvccfMbgDb9m01m YMQR5gZcFmTV1BuQFLmcbj1v6LvhcSxvPG2TLF+w= 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 14:09:56 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:rqOGlQD5Xt00mquubLA243Fn3Q05ouvovhP9u7GaBupCsDT0uwF3sGdNXugv7VSkrSrN3 kOtFw4mkQC4xn1Dz7lK2gI3a2bdvUX0I1yrK6zyPuXnz2HTEnyjELs0mInerWOdrj1DNjYGv3hx+ EokMTYLrP05ThkISOGqVLvkWyS7wFLSZ8Jxqt6sRv1Sfiwpjt1E3HCquykeBodxzXq4kjXNzpwcW ZQcLyyQ06Z5TDvkOxd7zEqa/H9DIBOrCCmrLZZtSAEiuXwOvCWEjYmq3PDjVC1VHKDck7JuGTcd8 k8= X-UI-Out-Filterresults: notjunk:1;V03:K0:HKCHOI3YLe8=:V6nyKjq+sXnFmOXGhswfGz IFCxWdrLaF2snSZnaW8cxjCct/aWikPDbW/PYZ4V5cqsJIs/ql13BcqxDi9Ww641eZ6Z4p2kJ qLDyBPYGeG887uJPGdPi5gInziM5WbG1c3LioHZi0E7RJBR40iI17LIvcsrwsobmeeuQ2CIxW b9T7xYSUGBcz4uA0r7tqVaq6j9bqd4gEM7xwr9LgUruWY689lXwfDnKx3SB3c+8wO2Thd2DS1 ohbgGKF4WfbyPNTcxQ0XeNENk93xIGrszjzQB9wY6jc0oebcXROL8ELO+nfSXYcckCvk5ye1o X1P6l33oS9sjMSM9uDORO1Blpo+iJNUeKOU6JEMdGxGjyrd12+JXkBc17jEXQOzbHJTfXkw0G QGRowe4CCEM4WdRd07INnBIuchWUpZknmtm92H5NVh0/HGXYS0Zvv6yeluvugXBSvcOw70w9D TSr57jeuAUyNHFgmcVMczz8ylYIe/vYtiMpuC5V/k68AvRtIu/RWEuk73NURVlvByaAm9xIyb 3M2DwlO3sI8Vjz7zxY/qGSxrjiEucmiPIHo69p4BaWnydDLJC9QItnqTCa483QLbEeRWE7XnS uFM4XZiep25ug= 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:126851 Archived-At: 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 happening= ??? > > (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 > > > > > > > >