From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#6411: Ispell string or comment, bug#6411: Ispell string or comment Date: Thu, 09 Apr 2020 16:48:30 +0200 Message-ID: <87ftdck94x.fsf@gmail.com> References: <83r25ejvjm.fsf@gnu.org> <83r25ejvjm.fsf@gnu.org> <87k12pkcif.fsf@gmail.com> <834kttp4b5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78583"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: stefan@marxist.se, lennart.borgman@gmail.com, 6411@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 09 16:49:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMYUU-000KI3-DB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Apr 2020 16:49:14 +0200 Original-Received: from localhost ([::1]:51019 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMYUT-0002z5-Fc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Apr 2020 10:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42728) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMYUJ-0002vk-0V for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 10:49:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMYUH-00005b-Sx for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 10:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMYUH-00005D-Ox for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 10:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMYUH-0002zN-Ms for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 10:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Apr 2020 14:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6411 X-GNU-PR-Package: emacs Original-Received: via spool by 6411-submit@debbugs.gnu.org id=B6411.158644368611413 (code B ref 6411); Thu, 09 Apr 2020 14:49:01 +0000 Original-Received: (at 6411) by debbugs.gnu.org; 9 Apr 2020 14:48:06 +0000 Original-Received: from localhost ([127.0.0.1]:54295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMYTO-0002y1-7S for submit@debbugs.gnu.org; Thu, 09 Apr 2020 10:48:06 -0400 Original-Received: from mail-lj1-f196.google.com ([209.85.208.196]:43720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMYTM-0002xU-4N for 6411@debbugs.gnu.org; Thu, 09 Apr 2020 10:48:04 -0400 Original-Received: by mail-lj1-f196.google.com with SMTP id h25so1815217lja.10 for <6411@debbugs.gnu.org>; Thu, 09 Apr 2020 07:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=Tyr9jayDcHgEfaDtzsS9Jpn3sunanVuBb22tI4iT+sU=; b=ACzL/zx90GmTwbaAHIUTsqkaHUsSmYCUbFXeKcN0u4lvF682/xc/I+0A+j7ww7XX1B VWzIHFF6N0/BtBLREztsjD+H4haSvK2PXKbKgpCtkgvXFWZlnmqh8wZlSSYKO5jR3K1r ohjD2R+xZizkuBpdFejTg82dTWMbanXsLblunzy67mmtSscPAjvG6mZ5Wg6JtCxQqxLJ zH6I+WkpmZuKQMpZC/yVoes43nHyGexapVLLBI+PU38aPY9mEkdADcuMrpTzEDFdidrA OnkLbGx3e5A9IdO4aT4Y8meXVbdJgShVhOn6EpAcndFmLgR6pkA2O19JZTB3TIcj/wlS 4aZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=Tyr9jayDcHgEfaDtzsS9Jpn3sunanVuBb22tI4iT+sU=; b=FQR7GfPYeyhDCVK7hTeWbOXb7A8SlEAkb8Vry9K/1OWTuadEoSkA9jK0dKe3XTpP/X Ho4o4GsSvYNRw8WtQZG7zxjsr+v4OhoUp1DR+4VmJKpzjYvlxCgJqBqqR3qqgTwGJj2p E1PxdG9KTDw/+BUKl1lgbFlgsPY07JnPF2Tn+cNG2E8qYXCCNi/aB5Qy4QMoT78w0mgX GTij6/xYx0liAHvJQMTxEtXf8op4wSR/ymO52MsphzInYLCk0G/UW0+09hRLyhkmC0ZI oGtyRhGfxYKGWa6pYe99SHhu+8aWcr6QVzWFcfRe6dfZPZKbQsYiCaTynMQsac2c24bG Oitg== X-Gm-Message-State: AGi0PuZOVbQTvTuANI6g4WNG0fXNR6lZpnCe30gzZfYndFTwiSvX4/85 kyj/7p3iCSmLXV90fiE6k4w= X-Google-Smtp-Source: APiQypJgs//QWxNwZ1KHMWoiY6VqDJx2aDc9IOfgkiJsB63YwgPk/yVTHsdrEYZaGsvp1EIt0nNPrQ== X-Received: by 2002:a2e:9f43:: with SMTP id v3mr72153ljk.129.1586443678010; Thu, 09 Apr 2020 07:47:58 -0700 (PDT) Original-Received: from localhost ([185.112.167.47]) by smtp.gmail.com with ESMTPSA id m18sm1293939lfj.10.2020.04.09.07.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 07:47:57 -0700 (PDT) In-Reply-To: <834kttp4b5.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Apr 2020 09:21:34 +0300") 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178172 Archived-At: --=-=-= Content-Type: text/plain On Thu, 09 Apr 2020 09:21:34 +0300 Eli Zaretskii wrote: > I also wonder whether it's time to document > ispell-comments-and-strings in the user manual. Any opinions? I considered it, but from a skim through (info "(emacs) Spelling") it seemed that some other commands were missing, too, and the new commands should be easily discoverable anyway. But on second look I see that the only one really missing is `ispell-buffer-with-debug', which probably shouldn't be documented, and `ispell-continue', which _is_ actually documented in the UI explanation, only not by its name (as it is normally invoked as C-u M-$). So I now think it would be better to mention the comment/string commands, too, perhaps as follows: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Document-ispell-comment-string-checking-commands-in-.patch >From 5b1abf142d090d35d1b62ce45b1716c47fc0c667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Thu, 9 Apr 2020 16:17:57 +0200 Subject: [PATCH] Document ispell comment/string checking commands in the user manual * doc/emacs/fixit.texi (Spelling): Mention ispell-comments-and-strings and ispell-comment-or-string-at-point. --- doc/emacs/fixit.texi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/emacs/fixit.texi b/doc/emacs/fixit.texi index 2c268f14fb..c6a14c99c0 100644 --- a/doc/emacs/fixit.texi +++ b/doc/emacs/fixit.texi @@ -277,6 +277,10 @@ Spelling @item M-x ispell-message Check and correct spelling in a draft mail message, excluding cited material. +@item M-x ispell-comments-and-strings +Check and correct spelling of comments and strings in the buffer or region. +@item M-x ispell-comment-or-string-at-point +Check the comment or string at point. @item M-x ispell-change-dictionary @key{RET} @var{dict} @key{RET} Restart the spell-checker process, using @var{dict} as the dictionary. @item M-x ispell-kill-ispell @@ -304,6 +308,8 @@ Spelling @findex ispell @findex ispell-buffer @findex ispell-region +@findex ispell-comments-and-strings +@findex ispell-comment-or-string-at-point @cindex spell-checking the active region Similarly, the command @kbd{M-x ispell} performs spell-checking in the region if one is active, or in the entire buffer otherwise. The @@ -312,7 +318,10 @@ Spelling respectively. To check spelling in an email message you are writing, use @kbd{M-x ispell-message}; that command checks the whole buffer, except for material that is indented or appears to be cited from other -messages. @xref{Sending Mail}. +messages. @xref{Sending Mail}. When dealing with source code, you +can use @kbd{M-x ispell-comments-and-strings} or @kbd{M-x +ispell-comment-or-string-at-point} to check only comments or string +literals. When one of these commands encounters what appears to be an incorrect word, it asks you what to do. It usually displays a list of -- 2.26.0 --=-=-=--