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 10:54:07 -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 1198695288 21989 80.91.229.12 (26 Dec 2007 18:54:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2007 18:54:48 +0000 (UTC) To: "Bug-Gnu-Emacs" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 26 19:55:02 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 1J7bPB-0001MY-5f for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Dec 2007 19:55:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7bOq-0005rD-9M for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Dec 2007 13:54:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7bOV-0005dr-3a for bug-gnu-emacs@gnu.org; Wed, 26 Dec 2007 13:54:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7bOS-0005c9-2i for bug-gnu-emacs@gnu.org; Wed, 26 Dec 2007 13:54:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7bOR-0005c3-Tv for bug-gnu-emacs@gnu.org; Wed, 26 Dec 2007 13:54:15 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J7bOR-0003wL-DF for bug-gnu-emacs@gnu.org; Wed, 26 Dec 2007 13:54:15 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id lBQIsDF2019205 for ; Wed, 26 Dec 2007 12:54:13 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lBQFaaBY005616 for ; Wed, 26 Dec 2007 11:54:12 -0700 Original-Received: from dhcp-amer-csvpn-gw1-141-144-65-104.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3464460191198695239; Wed, 26 Dec 2007 10:53:59 -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:17245 Archived-At: > emacs -Q > > Define a defcustom with a color value. > M-x customize-variable for the option. > Edit the color value field a bit and use `M-TAB' to try to complete. > > I get these messages (error): > > Starting "egrep" process... > apply: Searching for program: no such file or directory, egrep > > > In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) > of 2007-06-02 on RELEASE > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (3.4) --cflags > -Ic:/gnuwin32/include' The backtrace is below. `widget-complete' (`M-TAB') is calling `ispell-complete-word' instead of `widget-color-complete', which is the :complete value of the `color' widget. When I do debug-on-entry widget-complete, I see that it does this: Debugger entered--returning value: ispell-complete-word widget-get((string :format " %v" :value "lightgoldenrod2" :parent (custom-variable :documentation-shown t :custom-state modified :tag "Icicle Region Background" :value icicle-region-background :custom-form edit :custom-magic (custom-magic :args ... :parent #1 :indent 0 :children ... :from # :to # :buttons nil :value nil) :buttons (... ... ... ... ...) :comment-widget (custom-comment :parent #1 :value "" :indent 0 :from # :to #) :children (#0 ...) :from # :to #) :indent 0 :field-overlay # :from # :to #) :complete-function) * (or (widget-get widget :complete-function) widget-complete-field) * (call-interactively (or (widget-get widget :complete-function) widget-complete-field)) * widget-default-complete((string :format " %v" :value "lightgoldenrod2" :parent (custom-variable :documentation-shown t :custom-state modified :tag "Icicle Region Background" :value icicle-region-background :custom-form edit :custom-magic (custom-magic :args ... :parent #1 :indent 0 :children ... :from # :to # :buttons nil :value nil) :buttons (... ... ... ... ...) :comment-widget (custom-comment :parent #1 :value "" :indent 0 :from # :to #) :children (#0 ...) :from # :to #) :indent 0 :field-overlay # :from # :to #)) * widget-apply((string :format " %v" :value "lightgoldenrod2" :parent (custom-variable :documentation-shown t :custom-state modified :tag "Icicle Region Background" :value icicle-region-background :custom-form edit :custom-magic (custom-magic :args ... :parent #1 :indent 0 :children ... :from # :to # :buttons nil :value nil) :buttons (... ... ... ... ...) :comment-widget (custom-comment :parent #1 :value "" :indent 0 :from # :to #) :children (#0 ...) :from # :to #) :indent 0 :field-overlay # :from # :to #) :complete) * (save-restriction (widget-narrow-to-field) (widget-apply field :complete)) * (if field (save-restriction (widget-narrow-to-field) (widget-apply field :complete)) (error "Not in an editable field")) * (let ((field ...)) (if field (save-restriction ... ...) (error "Not in an editable field"))) * widget-complete() call-interactively(widget-complete) IOW, the :complete value of the `color' widget, `widget-color-complete', never gets used. Both parts of the `or' in `widget-default-complete' are inappropriate here: (or (widget-get widget :complete-function) widget-complete-field) The first part returns `ispell-complete-word'. The second part returns `complete-symbol'. My guess would be that (widget-apply... :complete) is not picking up the :complete value from widget `color'. ---8<---- error backtrace ---- call-process("egrep" nil t nil "-i" "^blu.*$" "/usr/dict/words") apply(call-process ("egrep" nil t nil "-i" "^blu.*$" "/usr/dict/words")) ispell-call-process("egrep" nil t nil "-i" "^blu.*$" "/usr/dict/words") apply(ispell-call-process "egrep" nil t nil ("-i" "^blu.*$" "/usr/dict/words")) byte-code(...) lookup-words("blu*" "/usr/dict/words") ispell-complete-word(nil) call-interactively(ispell-complete-word) widget-default-complete((string :format " %v" :value "lightgoldenrod2" :parent (custom-variable :documentation-shown t :custom-state modified :tag "Icicle Region Background" :value icicle-region-background :custom-form edit :custom-magic (custom-magic :args ... :parent #1 :indent 0 :children ... :from # :to # :buttons nil :value nil) :buttons (... ... ... ... ...) :comment-widget (custom-comment :parent #1 :value "" :indent 0 :from # :to #) :children (#0 ...) :from # :to #) :indent 0 :field-overlay # :from # :to #)) widget-apply((string :format " %v" :value "lightgoldenrod2" :parent (custom-variable :documentation-shown t :custom-state modified :tag "Icicle Region Background" :value icicle-region-background :custom-form edit :custom-magic (custom-magic :args ... :parent #1 :indent 0 :children ... :from # :to # :buttons nil :value nil) :buttons (... ... ... ... ...) :comment-widget (custom-comment :parent #1 :value "" :indent 0 :from # :to #) :children (#0 ...) :from # :to #) :indent 0 :field-overlay # :from # :to #) :complete) widget-complete() call-interactively(widget-complete)