From e48c60e7c9b4d6e5a11fc11cdd5dded868321b80 Mon Sep 17 00:00:00 2001 From: =?utf8?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'. (bug#6411) --- doc/emacs/fixit.texi | 11 ++++++++++- etc/NEWS | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/emacs/fixit.texi b/doc/emacs/fixit.texi index 6633848716e..db77ae4ec26 100644 --- a/doc/emacs/fixit.texi +++ b/doc/emacs/fixit.texi @@ -277,6 +277,10 @@ Check and correct spelling in the region. @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 @@ region; @pxref{Disabled Transient Mark}.) @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 @@ explicitly perform spell-checking on the entire buffer or the region respectively. To check spelling in an email message you are writing, use @w{@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 @w{@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 diff --git a/etc/NEWS b/etc/NEWS index 05105a1e68e..5cb6fcb9345 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -383,11 +383,11 @@ The menu-bar Help menu now has a "Show Recent Inputs" item under the ** Ispell ---- ++++ *** 'ispell-comments-and-strings' now accepts START and END arguments, defaulting to active region when used interactively. ---- ++++ *** New command 'ispell-comment-or-string-at-point' is provided. --- -- 2.39.2