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.bugs Subject: bug#58804: Inconsistency between ruler-mode, fill-column and whitespace-mode Date: Thu, 27 Oct 2022 08:38:22 +0300 Message-ID: <83lep1n7w1.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2715"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58804@debbugs.gnu.org To: Heime Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 27 07:40:15 2022 Return-path: Envelope-to: geb-bug-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 1onvck-0000Kg-4R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Oct 2022 07:40:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onvbg-00052x-6B; Thu, 27 Oct 2022 01:39:09 -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 1onvba-0004jU-PR for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 01:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onvba-0002DP-EE for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 01:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onvba-0005Ct-4X for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 01:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2022 05:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58804 X-GNU-PR-Package: emacs Original-Received: via spool by 58804-submit@debbugs.gnu.org id=B58804.166684912219984 (code B ref 58804); Thu, 27 Oct 2022 05:39:02 +0000 Original-Received: (at 58804) by debbugs.gnu.org; 27 Oct 2022 05:38:42 +0000 Original-Received: from localhost ([127.0.0.1]:55927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onvbF-0005CG-T7 for submit@debbugs.gnu.org; Thu, 27 Oct 2022 01:38:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onvbA-0005Bw-AJ for 58804@debbugs.gnu.org; Thu, 27 Oct 2022 01:38:40 -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 1onvb4-0002Ar-DS; Thu, 27 Oct 2022 01:38:30 -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=vtFaDV5sBwWdRJr+eDhh45sss7Sz+AbP4HcLCCLm+Vw=; b=ZTKjXBrQvixGJc6ud9vN ENDrVbh4LFzDLFBfyyS9mcvrp570R02ynKdaM96/G0a/W6S7I3+99mw+lRGTdu21nyFZwAYcwcMZ4 7+XG2/W+H7VheBUFOgBR2unTRPKspkWoNNydzZVYQ4Zj4CHwMj+QEevJdJ6cYvxs86YXdCqTpTHVY ysk4SSj8PCbLWhzXcAjqFYEcsUjKu51R7zXpvqjvpnglQiSeFbHI5UpRF6aYsBR7WE2fo+S2pu/e3 8C89vUmQrBRY81UAJwcadBNoupLrgNTj4/UxxTiyVKbH6xrvlUiXGeXxgpmXoSWsqM+ZQyGRLlFl2 4HIlykjLy1q2DQ==; 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 1onvb3-0003MI-AM; Thu, 27 Oct 2022 01:38:29 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246270 Archived-At: > Date: Wed, 26 Oct 2022 20:22:37 +0000 > From: Heime via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Having set both fill-column and whitespace-line-column to 72, I noticed the following. > > ruler-mode has the left end marker at column 72 Do you mean "right end marker"? I see no end marker at the left part of the display here, only the ΒΆ marker at the right. > but it should be at column 71 because column numbers start from 0. I don't follow: ruler-mode counts columns starting from zero, as everything in Emacs. If you move point to a column other than the leftmost one, you will see "0" at the left edge of the ruler display. So having the marker at column 72 is exactly right. Are you seeing this in "emacs -Q"? > Here an improvement would be appreciated. That is, having > the ability to show a ruler variant that starts from value 1. When one uses a block cursor, > the ruler left marker would then mark exactly column 72. The user will knew that if he inputs > the next character he would have reached the line limit and the ruler left marker would coincide > with that position. It sounds like you want column numbers that start from 1, not zero? That should be a session-wide mode (if we want such an enhancement), since otherwise there could be confusion. We currently support one-based column only in the mode-line display under column-number-mode. Maybe you have turned that on, which is why you think there's a mismatch in ruler-mode?