Subject: bug#12767: 24.1; ispell-buffer checks code as well as comments when in flyspell-prog-mode

From: Agustin Martin <[email-masked]>
Date: Wed, 31 Oct 2012 17:04:28 +0100

On Tue, Oct 30, 2012 at 01:19:48PM +0000, Reuben Thomas wrote:
> Although I've selected flyspell-prog-mode so that only comments are
> checked by flyspell, ispell-buffer checks everything,
> counter-intuitively and annoyingly.
> 
> I sympathise with this from the point of view of the underlying code's
> structure, but it's odd from a user-interface point of view.

ispell.el and flyspell.el control this separately, see
`ispell-check-comments'.

You may want to add `ispell-check-comments' setting to
`flyspell-prog-mode-hook'. 

-- 
Agustin