From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: RE: No such program, egrep error in Customize Date: Wed, 26 Dec 2007 12:02:15 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198699409 717 80.91.229.12 (26 Dec 2007 20:03:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2007 20:03:29 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Eli Zaretskii" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 26 21:03:42 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J7cTY-00039z-OR for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Dec 2007 21:03:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7cTE-000790-12 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Dec 2007 15:03:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7cT9-00078s-ET for bug-gnu-emacs@gnu.org; Wed, 26 Dec 2007 15:03:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7cT7-00078X-OW for bug-gnu-emacs@gnu.org; Wed, 26 Dec 2007 15:03:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7cT7-00078U-CQ for bug-gnu-emacs@gnu.org; Wed, 26 Dec 2007 15:03:09 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J7cT3-0001Dz-Ds; Wed, 26 Dec 2007 15:03:05 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id lBQK33pJ014370; Wed, 26 Dec 2007 13:03:03 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id lBQGAwv3006788; Wed, 26 Dec 2007 13:03:02 -0700 Original-Received: from dhcp-amer-csvpn-gw1-141-144-65-104.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3464533431198699325; Wed, 26 Dec 2007 12:02:05 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17254 Archived-At: > > Still, the error message is perhaps a bit strange. ispell is > > apparently used for completion of strings, but if ispell is > > not installed, then that's not TRT. > > No, ispell (the program) is not used for completion. Instead, you > will see that ispell.el invokes the program that is the value of > ispell-grep-command directly, as this backtrace you posted clearly > shows: > > ispell-call-process("egrep" nil t nil "-i" "^blu.*$" "/usr/dict/words") > > (`ispell-call-process' is a simple wrapper for call-process-region, it > does NOT invoke ispell the program.) Thanks for the clarification. Let me rephrase it then. The code that calls ispell-call-process with "egrep", or some higher-level code, should perhaps provide a better error message for a Customize user. And see my other mail. It is better for such a failure to find egrep not to raise an error and instead call some default text-completion function. There are perhaps other, and better ways to handle this, but I don't think the current approach is very user-friendly, in any case. Especially for a Customize user. At the limit, it is better to punt and say completion is not available than to send the user googling to figure out what egrep and ispell-call-process might be all about.