From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 10 problems with Elisp, part 10 Date: Sat, 10 Aug 2024 09:09:25 +0300 Message-ID: <86r0awkiy2.fsf@gnu.org> References: <87sevj9b50.fsf@jeremybryant.net> <871q33rj7v.fsf@dataswamp.org> <86ed73qhly.fsf@gnu.org> <87frrjoryg.fsf_-_@dataswamp.org> <86wmkuq60j.fsf@gnu.org> <87a5hqq4v3.fsf@dataswamp.org> <87mslqes7m.fsf@web.de> <874j7ypvr4.fsf@dataswamp.org> <87mslqceby.fsf@web.de> <86bk25q33b.fsf@gnu.org> <87o7611fi6.fsf@dataswamp.org> <875xs90w9w.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8375"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 10 08:10:17 2024 Return-path: Envelope-to: ged-emacs-devel@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 1scfIv-0001zx-DC for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Aug 2024 08:10:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scfIH-0002Ha-Ea; Sat, 10 Aug 2024 02:09:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scfIE-0002HP-5S for emacs-devel@gnu.org; Sat, 10 Aug 2024 02:09:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scfIA-0006qQ-LT; Sat, 10 Aug 2024 02:09:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=t1mHj+lMcuyC5lDiUCAtG2TrpN2YcjqxUr9lV4xZFmE=; b=d3A4jDop5iVo WRUEQLZzKMIwAKSD4NSu2rNcFdMer5BNkkvg4G9pM9lNb70bT/J3NiB7jHL6bfM8rS7O6lDMJZO0n Ea4r9TrPT9Bmz9gyIOrTHqfFPQq+Dlb8vvRqSpYL3x0kkLYRBNSJXO3hrKIv+IFhBLRhT/AGW24Yk NNuxB0HuG3bzsW7Dn5cXvp6tmgXHvUW/Gr3knvy4zlPcKbSK9nQ8XqwYEu9Xt7yZG+HuKtVlJzMhv RnC0OlEYNaa/y330YbLhGL0tgiGpe9ge85AQwZKbHXexlscsgPNXhl99DvkIel+Qa3wiW6sQFlCbQ 9JLJlPGmTF7oC9sgwRh19Q==; In-Reply-To: <875xs90w9w.fsf@dataswamp.org> (message from Emanuel Berg on Sat, 10 Aug 2024 07:41:47 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322610 Archived-At: > From: Emanuel Berg > Date: Sat, 10 Aug 2024 07:41:47 +0200 > > > The buffer is good for editing text and can be used for > > various purposes, but for computing as in data-processing in > > general, you don't want to retrieve and insert data with > > editing commands in a buffer. > > Grep ispell.el: "excursion" is mentioned 27 times, "goto-char" > 56 times, and "point" 161 times. In 4 323 lines of Elisp. > > Yet it doesn't have a (spell "word") even. ispell.el is an interactive front-end to spell-checking programs, so its main purpose is interactive invocation to spell-check text in a buffer. If you want noninteractive spell-checking, ispell.el is not for you. That said, ispell.el does have ispell--run-on-word, which does what you want (but it requires some setup, see ispell-word). > To me that is completely backwards, as (spell "word") is the > _first_ thing I would setup before even thinking about moving > around in the buffer, any buffer or anywhere else for > that matter. That's because you evidently misunderstand the purpose of ispell.el, see above.