From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.devel Subject: Re: ispell single word Date: Sun, 17 Feb 2019 17:36:37 +0100 Message-ID: <86k1hygyne.fsf@zoho.eu> References: <86sgwmholz.fsf@zoho.eu> <83lg2el99e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="91596"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 17:37:48 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvPRq-000Ngf-8t for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2019 17:37:46 +0100 Original-Received: from localhost ([127.0.0.1]:43481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvPRp-0005Tn-BP for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2019 11:37:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvPQy-0005TU-8w for emacs-devel@gnu.org; Sun, 17 Feb 2019 11:36:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvPQw-0003vp-AP for emacs-devel@gnu.org; Sun, 17 Feb 2019 11:36:52 -0500 Original-Received: from [195.159.176.226] (port=54260 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvPQs-0003rk-Ke for emacs-devel@gnu.org; Sun, 17 Feb 2019 11:36:48 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gvPQp-000MFR-AQ for emacs-devel@gnu.org; Sun, 17 Feb 2019 17:36:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Cancel-Lock: sha1:1DG28wuKo0o/jg2xL1a/OUWwan4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233428 Archived-At: Eli Zaretskii wrote: >> How do I spell a single word, from Lisp, >> with ispell? > > Can you describe a use case where one needs > to spell-check in Emacs a word that is given > as a string, and is not present in > any buffer? The base use case is being able to ask Emacs, is this the correct spelling of a particular word? One advanced use case can be in combination with this string permutation code [1] - you can feed a bunch of chars to it, get all possible strings, then feed the strings to the checker and thus filter out all possible words you can form with the letters. [1] http://user.it.uu.se/~embe8573/emacs-init/perm.el -- underground experts united http://user.it.uu.se/~embe8573