From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#67665: 30.0.50; ispell-complete-word only suggests proper nouns Date: Wed, 6 Dec 2023 21:57:02 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: 67665@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 06 20:58:12 2023 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 1rAy27-0009Wk-4U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Dec 2023 20:58:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAy1p-0004uH-B8; Wed, 06 Dec 2023 14:57:53 -0500 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 1rAy1n-0004u3-7W for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 14:57:51 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAy1m-0006Xi-90 for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 14:57:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rAy1y-0008Sc-4X for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Dec 2023 19:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67665 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170189265132481 (code B ref -1); Wed, 06 Dec 2023 19:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Dec 2023 19:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:40462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAy1T-0008Rp-8F for submit@debbugs.gnu.org; Wed, 06 Dec 2023 14:57:31 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:49006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAy1Q-0008Rc-I1 for submit@debbugs.gnu.org; Wed, 06 Dec 2023 14:57:29 -0500 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 1rAy18-0004qm-NJ for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 14:57:10 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAy16-0006W9-IV for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 14:57:10 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D699D5C0096 for ; Wed, 6 Dec 2023 14:57:06 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 06 Dec 2023 14:57:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm3; t=1701892626; x=1701979026; bh=kI Ok80desrqyjZ3rIIQhAtGqFZxM9y6/hAfjvchZ38E=; b=Y0/rikYlAmD7waJCk2 +VglfY8BppGDi+pbx7JvBtkxzE/e3HDebYXDGShIUmcrLos1FuQccESRaNF9tH/I ygRW0F9VhEWJ3M7AzZctHbuLy58v/RoMLaubc6t3Y/TdtQxbdVtHtyN8xVWkXWkc dPNSiY93eSufpAJIB52hP3H9d0tWcyR5GtJqHZtQHVptyPcFLEc5GergWOnglhOF e/SArQSTpC+gCRARshbqOTELGix9nRVa3Lu2qRvGSSe9PKrglL4sk7Y+3kuYVyBg EgQgUV5uBIxGX6zRq/dHtWOUbMEtIiOS7aaGuo/iqdNc9lu23vKvFQFtrVRZ8tOx VOQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701892626; x=1701979026; bh=kIOk80desrqyj Z3rIIQhAtGqFZxM9y6/hAfjvchZ38E=; b=h/Foxl45yQrS6Qfp65EZsJjT1r6gB lCiG0GsTn1TFo0mlYM3zAXFc9rWNRPwFAzHlcILaG581SFFqBw77QyyqrLcGbZHO mzxhvN4Owxm2ML8M36GYM6uyFMBCLctUyXCymMiHuE1znG66AGil4hR4iAN74xZn pnKRlp9349B1onwbmaMvu3avV32ZCjC6vAvArFiSlucVzdjyAjr9KvXg6jCdq8e3 9ODcO+qSdWvXU146y6aa7aDd2rpg7jeB+B1BMUN0e+az1BkcMxqM/pCWMRsQojOA sWS79HomEfeiUlXTnsndYHrO3Behdp79jSI0dXvjwDlC28gYAAGXWjsyg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudektddgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfvffuhfgtgfesthejre dttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhht ohhvrdguvghvqeenucggtffrrghtthgvrhhnpedttdefieevhfejhfffudetfeehfedvke egueelvedvvdeiheduhefhuddthedvtdenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 6 Dec 2023 14:57:05 -0500 (EST) Content-Language: en-US Received-SPF: pass client-ip=66.111.4.29; envelope-from=dmitry@gutov.dev; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275619 Archived-At: Testing the new completion function using ispell, I've noticed the following problem. It's also easily reproducible on my system with 'M-x ispell-complete-word'. Only proper nouns (words originally capitalized in the dicitonary) are suggested. Examples: 1. Type 'aard', then 'M-x ispell-complete-word'. 2. No completions. 1. Type 'Az', then 'M-x ispell-complete-word'. 2. The full completions list starts with "Azana" and ends with "Aztlan's", with no "azimuth" in the list. Only geographic names in there. The full dictionary does contain the worth "azimuth", btw: (member "azimuth" (ispell-lookup-words "")) ;; => ("azimuth" "azimuth's" "azimuths" "azure" "azure's" ... or (member "azimuth" (ispell-lookup-words "a*")) ;; => ("azimuth" "azimuth's" "azimuths" "azure" "azure's" ... however: (member "azimuth" (ispell-lookup-words "a")) ;; => nil So it looks like the problem is in the use of the "look" program. /usr/share/dict/words (on my current system, at least) is sorted so that "a" comes after "Z", not after "A". Could be a distribution bug (is dict supposed to be generated compatibly with 'look'?) Otherwise, it seems best to avoid using 'look' altogether.