From: Christopher Dimech <dimech@gmx.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: uzibalqa@proton.me, 57470-done@debbugs.gnu.org
Subject: bug#57470: fill-column icon on the ruler is wrongly placed
Date: Mon, 29 Aug 2022 14:17:11 +0200 [thread overview]
Message-ID: <trinity-f9215a0e-4c3b-487b-a9d3-2e259ec3f29d-1661775431282@3c-app-mailcom-bs10> (raw)
In-Reply-To: <YNVgrT4Zy7K8Ep9nEn0P2qY1ZLzQHr7fh2ImNIQ5WRWkjFdZ_SOpLXV0H_JIAYQib_iCGn4IZSbC-LZgXyOc9vVmbMJIleX1D_jRKKz5N8E=@proton.me>
> Sent: Tuesday, August 30, 2022 at 12:04 AM
> From: "uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> To: "Eli Zaretskii" <eliz@gnu.org>
> Cc: 57470-done@debbugs.gnu.org
> Subject: bug#57470: fill-column icon on the ruler is wrongly placed
>
> ------- Original Message -------
> On Monday, August 29th, 2022 at 11:26 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>
> > > 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.
I clash with the concept that text-mode-hook would affect tex-mode and latex-mode.
Can understand that prog-mode-hook is evidently trying to affect programming language
modes. But not so evident that users can naturally associate text-mode-hook as a hook
encompassing a category of internally text-mode derived modes.
> It is very confusing. I thought it was related to prog-mode-hook (reason I made request
> for way to list associated modes). Looks like there is ever greater need now for things
> that help us without excessive need to go into internals. Am quite sure that emacs internal
> design is rather atrocious for even experienced programmers to understand efficiently.
>
>
>
>
>
next prev parent reply other threads:[~2022-08-29 12:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 5:09 bug#57470: fill-column icon on the ruler is wrongly placed uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-29 11:26 ` Eli Zaretskii
2022-08-29 12:04 ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-29 12:17 ` Christopher Dimech [this message]
2022-08-29 13:13 ` Eli Zaretskii
2022-08-29 14:53 ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-29 16:17 ` Eli Zaretskii
2022-08-29 16:40 ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-f9215a0e-4c3b-487b-a9d3-2e259ec3f29d-1661775431282@3c-app-mailcom-bs10 \
--to=dimech@gmx.com \
--cc=57470-done@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=uzibalqa@proton.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).