From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tsd@tsdye.com (Thomas S. Dye) Newsgroups: gmane.emacs.help Subject: Re: Emacs 24.5 and external-abook Date: Tue, 09 Jun 2015 09:44:55 -1000 Message-ID: References: <87k2vvxu1j.fsf@yahoo.fr> <867frcvlbv.fsf@members.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1433879143 7254 80.91.229.3 (9 Jun 2015 19:45:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2015 19:45:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Nicolas Richard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 09 21:45:31 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z2PSj-0006fZ-BJ for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2015 21:45:29 +0200 Original-Received: from localhost ([::1]:36709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2PSi-0000iY-GE for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2015 15:45:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2PSX-0000iH-Fb for help-gnu-emacs@gnu.org; Tue, 09 Jun 2015 15:45:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2PSS-00051d-CO for help-gnu-emacs@gnu.org; Tue, 09 Jun 2015 15:45:17 -0400 Original-Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:55446) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Z2PSS-0004zR-6F for help-gnu-emacs@gnu.org; Tue, 09 Jun 2015 15:45:12 -0400 Original-Received: (qmail 23938 invoked by uid 0); 9 Jun 2015 19:45:08 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy6.mail.unifiedlayer.com with SMTP; 9 Jun 2015 19:45:08 -0000 Original-Received: from box472.bluehost.com ([74.220.219.72]) by CMOut01 with id eKae1q00R1aK6lW01KahFz; Tue, 09 Jun 2015 13:34:46 -0600 X-Authority-Analysis: v=2.1 cv=erdMkOZX c=1 sm=1 tr=0 a=gGnFYiqMEzpiCoLqAtcLRw==:117 a=gGnFYiqMEzpiCoLqAtcLRw==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=vuRWWKdDAAAA:8 a=3XNfdKDVc2EA:10 a=xVRFku4npZAA:10 a=XAFQembCKUMA:10 a=inoG4m36AAAA:8 a=V7hYKok93RVUzzeux8IA:9 a=Rn1w2Aj4J60A:10 a=2vPiiz7Yj48A:10 Original-Received: from [72.253.173.33] (port=50469 helo=manifi) by box472.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1Z2PSF-0001QY-5j; Tue, 09 Jun 2015 13:44:59 -0600 In-Reply-To: <867frcvlbv.fsf@members.fsf.org> (Nicolas Richard's message of "Tue, 09 Jun 2015 19:32:52 +0200") X-Identified-User: {2627:box472.bluehost.com:tsdyetwo:tsdye2.com} {sentby:smtp auth 72.253.173.33 authed with tsd+tsdye2.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.39.168 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104878 Archived-At: Nicolas Richard writes: > tsd@tsdye.com (Thomas S. Dye) writes: >> A mystery to me is the return from (shell-command-to-string), which is >> called by (external-abook-search). I'm expecting the result of >> (shell-command-to-string) to reflect output I get on the command line, >> not "error: no one found". > > Reasonable expectation, indeed. > > Could you try > (shell-command-to-string "contacts -lSf '%we\\\"%n\\\"' 'Krickette'") ,---------------------------------------------------------------------- | (shell-command-to-string "contacts -lSf '%we\\\"%n\\\"' 'Krickette'") | "error: no one found | " `---------------------------------------------------------------------- > and (in emacs) > M-! contacts -lSf '%we\"%n\"' 'Krickette' ,-------------------- | error: no one found `-------------------- > then, in a shell : > contacts -lSf '%we\"%n\"' 'Krickette' > (perhaps try the above both in a M-x shell and outside emacs). M-x shell ,------------------------------------------------ | Reading ~/.bashrc | bash-3.2$ contacts -lSf '%we\"%n\"' 'Krickette' | error: no one found `------------------------------------------------ Outside emacs ,--------------------------------------------------- | Last login: Mon Jun 8 16:04:33 on ttys000 | Reading ~/.bash_profile | Reading ~/.bashrc | manifi:~ dk$ contacts -lSf '%we\"%n\"' 'Krickette' | WORK\"NAME\" | kmu@tsdye.com\"Krickette Murabayashi\" `--------------------------------------------------- In summary, no contacts from any of the paths through emacs. Thanks, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com