From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: process communication help Date: Tue, 29 May 2007 17:08:23 +0200 Organization: sometimes Message-ID: <87tztvk6qg.fsf@ambire.localdomain> References: <878xb8kqje.fsf@ambire.localdomain> <871wh0kjzg.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180453232 26174 80.91.229.12 (29 May 2007 15:40:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 May 2007 15:40:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 29 17:40:30 2007 Return-path: Envelope-to: geh-help-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 1Ht3oE-00078N-KM for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2007 17:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ht3oE-0007se-8E for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2007 11:40:30 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: ppp-222-38.21-151.libero.it Original-X-Trace: quimby.gnus.org 1180451296 7797 151.21.38.222 (29 May 2007 15:08:16 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Tue, 29 May 2007 15:08:16 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:Li1uqLO83AydG6oXVnXLgL3PU8k= Original-Xref: shelby.stanford.edu gnu.emacs.help:148944 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44532 Archived-At: () "Yu,Gang" () Tue, 29 May 2007 19:57:42 +0800 Where can I get resources on elisp's idiomatic programming style? one way is to read a lot of elisp. this is particularly easy to do since emacs itself is distributed with a lot of elisp. How about these macros?? I rewrite the function like this, [...] these are ugly. i don't even know if they are correct, i could not force myself to read them. why don't you try this: (0) make sure your emacs is properly installed, in other words, with full source code (for each .elc file there should be a corresponding .el file in the same directory). (1) evaluate the forms: (require 'cl) (dolist (dir load-path) (ignore-errors (dired dir))) (2) in each" dired buffer, evaluate the form: (grep "egrep -nH -e '(call|start)-process' *.el") by "evaluate the form", i mean type `M-:' and then the form and then RET. for step (2) you can recall previous forms into the minibuffer by typing `M-p'. further exploration is up to you. have fun! thi