From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "R. Diez" Newsgroups: gmane.emacs.bugs Subject: bug#32136: 26.1; Provide a customize variable to turn off spell-checking literal strings in flyspell-prog-mode Date: Thu, 12 Jul 2018 22:06:01 +0000 (UTC) Message-ID: <1856494893.5680179.1531433161731@mail.yahoo.com> References: <1856494893.5680179.1531433161731.ref@mail.yahoo.com> Reply-To: "R. Diez" NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1531433117 8169 195.159.176.226 (12 Jul 2018 22:05:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2018 22:05:17 +0000 (UTC) To: 32136@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 00:05:13 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdji4-00021q-Ug for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jul 2018 00:05:13 +0200 Original-Received: from localhost ([::1]:34243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdjkA-0004RO-AC for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jul 2018 18:07:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdjjw-0004MP-3x for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2018 18:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdjjq-00067W-H2 for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2018 18:07:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdjjq-00067L-CO for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2018 18:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fdjjq-0007d3-2Q for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2018 18:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "R. Diez" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jul 2018 22:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32136 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.153143318029256 (code B ref -1); Thu, 12 Jul 2018 22:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jul 2018 22:06:20 +0000 Original-Received: from localhost ([127.0.0.1]:57481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdjjA-0007bo-MA for submit@debbugs.gnu.org; Thu, 12 Jul 2018 18:06:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdjj8-0007bb-Tp for submit@debbugs.gnu.org; Thu, 12 Jul 2018 18:06:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdjj2-0005VH-QN for submit@debbugs.gnu.org; Thu, 12 Jul 2018 18:06:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36320) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdjj2-0005V8-M2 for submit@debbugs.gnu.org; Thu, 12 Jul 2018 18:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdjj1-0004E0-Ac for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2018 18:06:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdjix-0005Rn-4a for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2018 18:06:11 -0400 Original-Received: from sonic304-23.consmr.mail.ir2.yahoo.com ([77.238.179.148]:40321) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdjiw-0005Qz-SY for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2018 18:06:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1531433165; bh=IToPMWIXpYIKkZJLR8s5bnA7G8cmQxfVcPqGHPn/E94=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=hjGFAPGLAoS39MXMXd+KmmcQTJZ8oh+xVVUQGdO+TQpyKeIimLp6svjN+mQFEYpbP9t9YogcqPotpqASrFheA+LrdJNZcerZZBIut2TIDryKIdGs958Igka0XW410tDkxpk7pxIykBASsalYguwrPDAfZXrseLK20Byeq67T3c22KvIFtqJv76BcInkPVh0mzwNIX6KuKGunpjl3zTomcl1/HCp+cfvFqdRomTYKdXXJ4VAi51/Hr/asvI0ziuvC3ua0wDZ/KnfeTbXkWeS++mBtk+pKDVgrPXj/7D87R8FPsw6MFRLSfE0oBpOlYt3sFl5JuSYtx2nuiDWIrxskOQ== X-YMail-OSG: SY5E2a4VM1m_ni5PrBapUUfAKpVM3YPcdujblFy3GAIKhqohthLnuX5T5aKOy8b G1pHIX9_erb5RtMAlwJKz4X5y32B_uG9yfK1kAWxqIj_iY3lTR5xnRM7dDvWYz7GlNl8C0fN4g3U MJKkPlCcKlcdxSujiXGnG2esyqS5JG_kP2x48Werq7VBGAftpZAQ5WYcueYjkLTnWgbYU5FZ_VWd z6nI1RcvR1Ixzd7fWoo4xB22bx7cvymxRRQ_5RzZlQuC4EOPo1IjbkkEXXryJ3EmgZ9I4jfvvv9R fpBfPgWYyoe2tqQjN32ju2f83oWos18lLjExAyH8Zkx91_cDa5z4TaaVrNUzjKw9nYQRasLvhX61 eeABG0jJqW0Ze2_XyAA18jFUuAcLjAQC0cQdDrJiL4KYWap0BOkfgY0vPb_jdYQKVi9_O9jNnZLR _6RAiWMMyCtfKxUIk9SZK4wgIczgW7BKXvWS16474VbzDCNLo1Kf9sURUN15YdLLMm_iPDOhdI8d sCa72xPYD8R8JwmsytAcPKB7UH9sX18bKO6BIfy4oL3IPwM4OyR1lh4uTWaYtYGJbO.HMufzFAuC tqjTPxZl9GtA2MUbquVLlQ7XEm0MXZI91LF.V3FZk23W7heiN8D2Play8BM2PPh24Mtyy_teCuRu b_XSB1omtDnaLMXmxN6S8HWmMjvgoXJcg.cJDin91Dv28baEEUYK8UdObJTQYGLTjf1XRYNi3tkH sb2Fg91J89uTwKC0AaYlVvv9bu.N84PYqQIKMw94gEXufuUJBP1r.XD0bggQMaGHobgQ1rb7H6WK UhXjhR4WmhdUzMm392KlPC7rFyJ2CYN3gL1U9dxkyX Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Thu, 12 Jul 2018 22:06:05 +0000 X-Mailer: WebService/1.1.12062 YahooMailNeo Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148476 Archived-At: I wish I could easily turn off spell-checking of literal strings in flyspell-prog-mode . Some customize variable would probably be the best way. I mentioned it on the help-gnu-emacs mailing list here: https://lists.gnu.org/archive/html/help-gnu-emacs/2018-07/msg00100.html This is an excerpt from that discussion: > it checks > literal strings too, even the filenames inside C's #include > preprocessor directives, littering too much source code with error marks. They are strings, aren't they? How should Flyspell know that some string is a file name? > Trying to limit spell checking to just source-code comments is hard. I found > this page that explains how to do it: > > http://blog.binchen.org/posts/effective-spell-check-in-emacs.html > > But I haven't quite understood it yet (I am no Lisp expert). How about adding > a simple customizable variable to turn literal string checking on and off?