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#57470: fill-column icon on the ruler is wrongly placed Date: Mon, 29 Aug 2022 14:26:27 +0300 Message-ID: <834jxvxpcs.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="11582"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57470-done@debbugs.gnu.org To: uzibalqa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 29 13:27:18 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 1oScvF-0002nJ-Pq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 13:27:18 +0200 Original-Received: from localhost ([::1]:35480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oScvE-00076l-4A for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 07:27:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oScv0-00073V-Na for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 07:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42251) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oScv0-0001yb-Di for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 07:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oScuz-0000vS-VB for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 07:27:01 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Aug 2022 11:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 57470 X-GNU-PR-Package: emacs Mail-Followup-To: 57470@debbugs.gnu.org, eliz@gnu.org, uzibalqa@proton.me Original-Received: via spool by 57470-done@debbugs.gnu.org id=D57470.16617723763502 (code D ref 57470); Mon, 29 Aug 2022 11:27:01 +0000 Original-Received: (at 57470-done) by debbugs.gnu.org; 29 Aug 2022 11:26:16 +0000 Original-Received: from localhost ([127.0.0.1]:60232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oScuF-0000uP-RA for submit@debbugs.gnu.org; Mon, 29 Aug 2022 07:26:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oScuD-0000uC-OE for 57470-done@debbugs.gnu.org; Mon, 29 Aug 2022 07:26:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oScu7-0001r1-9q; Mon, 29 Aug 2022 07:26:07 -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=wYfdaFg4XuSwumxg0Lo5TLDy0NGQJTpUqWVf4bhOJig=; b=j7Z4p+OhhUpmEQRDDbIs 8vbKB9MU8tqx4qLAIHzm1wvDe2t3eDKnp/TCPEyK4n9TgOvukSt9lBJRKN+W9NBGzJIhHHFXCWpcL nhCQ7W+HsX58ATo2SxF1in+Lje155Z0YWqRN1vBEWrNO/v1xXq3q096dX+t80CRF3JZlUgeTF9RTD LRNEDJs+4lKiWHvP9iHB1Fx1kX49FW+rcAlgbd6sd8neQxFyIU6l+gfiLR8ndql8dhHYDrNNDa46R H/Rrp9y3lcWhLnadQaCGEiYwE2uvfMCcEXL8aBhKzEGVg5nxMQW8mbFTWMazNSwRRdCmQPx7rjMNe tAV62r31HUG3CQ==; Original-Received: from [87.69.77.57] (port=1354 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 1oScu6-0003AT-Oh; Mon, 29 Aug 2022 07:26:07 -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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241015 Archived-At: > Date: Mon, 29 Aug 2022 05:09:32 +0000 > From: uzibalqa via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Have changed fill-column through mode-hooks for org-mode and text-mode only as follows > > (defun colum-property () (setq fill-column 72)) > > (add-hook 'org-mode-hook #'colum-property) > > (add-hook 'text-mode-hook #'colum-property) > > But when I load a "tex" or "texi" file, then call "M-x ruler-mode", the ruler takes the > value 72 for fill-column when displaying the fill-column icon on the ruler. Because the modes for TeX and Texinfo files inherit from Text mode. For example, the doc string for latex-mode says, inter alia: Entering Latex mode runs the hook ‘text-mode-hook’, then ‘tex-mode-hook’, and finally ‘latex-mode-hook’. When the special subshell is initiated, ‘tex-shell-hook’ is run. Note the reference to text-mode-hook. This is not a bug.