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

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

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


From: GNU bug Tracking System
Subject: bug#57470: closed (fill-column icon on the ruler is wrongly placed)
Date: Mon, 29 Aug 2022 11:27:01 +0000

Your message dated Mon, 29 Aug 2022 14:26:27 +0300
with message-id <834jxvxpcs.fsf@gnu.org>
and subject line Re: bug#57470: fill-column icon on the ruler is wrongly placed
has caused the debbugs.gnu.org bug report #57470,
regarding fill-column icon on the ruler is wrongly placed
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
57470: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57470
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: fill-column icon on the ruler is wrongly placed Date: Mon, 29 Aug 2022 05:09:32 +0000
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.



--- End Message ---
--- Begin Message --- Subject: Re: 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.


--- End Message ---

reply via email to

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