bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57470: fill-column icon on the ruler is wrongly placed


From: Eli Zaretskii
Subject: bug#57470: fill-column icon on the ruler is wrongly placed
Date: Mon, 29 Aug 2022 14:26:27 +0300

> Date: Mon, 29 Aug 2022 05:09:32 +0000
> From:  uzibalqa via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]