From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: display line and column numbers together with ruler and whitespace highlighting Date: Sat, 30 Jan 2021 22:15:39 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34655"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 30 22:16:28 2021 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 1l5xbX-0008ul-6S for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 22:16:27 +0100 Original-Received: from localhost ([::1]:52310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5xbW-00052r-95 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 16:16:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5xar-00050w-2w for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 16:15:45 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:54857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5xao-0006za-Vx for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 16:15:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612041339; bh=gCjRFPvzY21cpmV2cZduRvkdBsVCMe+9/mKhpVkCfZI=; h=X-UI-Sender-Class:From:To:Subject:Date; b=AW3gtVzSTgeEaYG2OA1gK/aJajjBR125u6eH8spCZAraXJqqvu6JAvQj4+AVUOdvh x4VPJrHY55Eamv+6316JYlUTDtP+GgF9QbNWc/AG3Qh7QBByYFk0+naUleB3lWE1+L KLiqKA5wA4Fwd7p/n0mNw1PlB78vVEZvEt/syjAE= 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); Sat, 30 Jan 2021 22:15:39 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:rT+qrVEDxVnMcv4sqJPRGJHtINXZ8zJhcafjpLGS1/6FSlXx3U4MbRtg3t8j4YAAQac8u Abv8Zdp2D/pXGP13ByfCaz8rM5iSS37c4eSXfcifHvZrI9XHdsAg+ZsfQf2Gw5mCtGOxrahiqVQ+ GBR69YO0XY5lSNTJJXZyYpR+zM81vEgdOHQrO9buoEFuID5KPDZqFCaqoz3bLdOc+r7eVosW+WJs QuxLF0AM5b5Z9HichK/LV0lD1g4Pa++MWOWalgSyLgG11lygVt5wgOEpjUnQGVcNL80JaY0XZUJo mo= X-UI-Out-Filterresults: notjunk:1;V03:K0:ySTSrW2oUR0=:391ITfbhewJfpSPXUawiDV ReELU3H+5cB9mY+1c63I+KJheUI//WxW8ntY1U0kPL9CE/XRGNKMoSewmhgP9BUiIGFovc6/O QbwjswKEXlQCwqT/Mr1kvG85zizEo/dnI9LZJQ2mTWvUxSLcUKRxBkdkl7al1DF2jM4XbGCBw lACQ30qnsK8628p/YcSK19/OX4nN8wbDGJ/pI4vgRMFIusIweMnGQMLtK56INoKMY3nRewL/Q DyBM/jTJck3uICMt/9NkAHnFdy2WCA7L8RTqNfYvFkMQ0UsT0neWx5LEvQWrTMjc+/+eHbdJN U6oF+bAXHShaGzG9nFKiZPB7XG2G4RmpDFJCFQL8cP8frDi24Sw7mIPYMl7y4x+fOy8wWa3bJ F1nS8Z1L+Y6LLkShbf21zOkCSTklKyRD2ns0gzBiyMqTdBhC4pIucda+u/n2whKsNdMfhsv41 RNueCyeYZkFnEP0+a+DGVlPRwXOThQjo/pr6FIjLBcfedBXF3rxWDXOqcZtw9uj4gyU59LN9/ 6mhZlFQ5OYYx1TE1p4a7LefSCKSWceLqsLBo9cHsbDBeBgracFq3oppD930Zg8x9yWu/IuOQd qTLoRhkkFzNs4Q7rLs0SccoGDrnWDd4RDl Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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:127461 Archived-At: I have a problem on the correct way to display line and column numbers together with a ruler and whitespace highlighting, with the ability to cycle through the different options. (defvar dfv-highlight-spaces-state nil) (defun cycle-highlight-spaces () "Cycle though character highlighting (tabs and trailing spaces)." (interactive) (pcase dfv-highlight-spaces-state (2 (display-line-numbers-mode 0) (setq line-number-mode nil) (setq column-number-mode nil) (ruler-mode 1) (whitespace-mode 0) (message "%s" "Enable: Ruler only") (setq dfv-highlight-spaces-state 3)) (3 (ruler-mode 0) (setq line-number-mode nil) (setq column-number-mode nil) (display-line-numbers-mode 0) (whitespace-mode 0) (message "%s" "Disable: Show spaces & cursor position") (setq dfv-highlight-spaces-state 1)) (_ (ruler-mode 1) (setq line-number-mode t) (setq column-number-mode t) (display-line-numbers-mode 1) (whitespace-mode 1) (message "%s" "Enable: Show spaces & cursor position") (setq dfv-highlight-spaces-state 2)) ))