help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 24.5 and external-abook


From: Thomas S. Dye
Subject: Re: Emacs 24.5 and external-abook
Date: Tue, 09 Jun 2015 09:44:55 -1000

Nicolas Richard <youngfrog@members.fsf.org> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]