all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: flyspell-prog-mode, flyspell-mode and different dictionary
Date: Wed, 24 Jul 2024 14:56:41 +0200	[thread overview]
Message-ID: <87y15r0wza.fsf@web.de> (raw)
In-Reply-To: 86sevzzkqf.fsf@gmail.com

Joel Reicher <joel.reicher@gmail.com> writes:

> Sébastien Gendre <seb@k-7.ch> writes:
>
> > I checked for variable `flyspell-prog-mode-hook` with
> > `describe-variable`, with no success.
>
> Undefined variables won't show up there, which is why I asked if you
> checked the definition of the flyspell-prog-mode *function*.
>
> If you setq an undefined variable, it will define it, and if your
> version of the mode references this (previously undefined) variable,
> it will work as you expect.

With other words: You can (add-hook 'flyspell-prog-mode-hook ...) even
when flyspell-prog-mode-hook is void, without error.  And enabling
`flyspell-prog-mode' _will_ look at and use the binding.


Michael.




  reply	other threads:[~2024-07-24 12:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 10:45 flyspell-prog-mode, flyspell-mode and different dictionary Sébastien Gendre
2024-07-23 11:41 ` Eli Zaretskii
2024-07-23 12:29 ` Joel Reicher
2024-07-23 12:49   ` Sébastien Gendre
2024-07-24  0:39     ` Joel Reicher
2024-07-24 12:56       ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]
2024-07-24 13:42         ` Sébastien Gendre
2024-07-23 14:56 ` Stefan Monnier via Users list for the GNU Emacs text editor

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y15r0wza.fsf@web.de \
    --to=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.