From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wang Lei Newsgroups: gmane.emacs.help Subject: Re: Why emacsclient -e "(current-word nil t)" does not print ? Date: Tue, 21 Jul 2009 19:23:44 +0800 Message-ID: References: <87r5waa3t8.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248175462 3094 80.91.229.12 (21 Jul 2009 11:24:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2009 11:24:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 21 13:24:15 2009 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 1MTDSA-0005z7-Ti for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 13:24:15 +0200 Original-Received: from localhost ([127.0.0.1]:36386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTDSA-0004VM-41 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 07:24:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTDRm-0004Uu-W8 for help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 07:23:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTDRi-0004RT-4l for help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 07:23:50 -0400 Original-Received: from [199.232.76.173] (port=45774 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTDRh-0004RN-TB for help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 07:23:45 -0400 Original-Received: from mail-qy0-f183.google.com ([209.85.221.183]:36341) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTDRh-0005MF-DW for help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 07:23:45 -0400 Original-Received: by qyk13 with SMTP id 13so2428798qyk.14 for ; Tue, 21 Jul 2009 04:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rBXSWhylHqdqBp0oO3SicJk7TtEya5nJd98PfagTnUo=; b=uKD5a6RPZEQADdXAWnWsLI0zkvh62qZ+cP7ygqOjk7Yg58NviVbKeBDmH62HAuheu9 lhZNBJky41N9uwKuUpzMGSjRJjZoUL6cOk3tb/rGSS30wWhbVKy4S4FdTDC2PpFdVxff g1DAnBsM3+wR0kI5/qImJGxAmzRx/5TQgeUWg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XhGX+e9qzIQgsVAUvkd+IY/I/IDGAbkOTXBEOGtO+VH+flJil/0zUtIJ+E2x1XBPZX BM99arRc9rG5L5TMJJkixKUY1+2chK7PNdG7rm/oJidq6yDTZ9yy7S8HUss44x3KAiKX IO6Wz9LzdW6bcD5Zp5LAouXOqT4DNAXWgrF0g= Original-Received: by 10.220.73.77 with SMTP id p13mr6352038vcj.46.1248175424600; Tue, 21 Jul 2009 04:23:44 -0700 (PDT) In-Reply-To: <87r5waa3t8.fsf@galatea.local> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66293 Archived-At: On 7/21/09, Pascal J. Bourguignon wrote: > Wang Lei writes: > >> Hi, all. >> >> I'm doing a piece of code. What needs get the output of >> emacsclient -e "(current-word nil t)" >> >> and send it to an external command. But there was NO output. I don't >> understand. >> >> Could someone explain that? > > That's because -e prints the result only when it's not nil. > Try: > > emacsclient -e "(or (current-word nil t) :nil)" > Actually, what am i interested is the "current word", in this line, it's should print 't'. In emacs it does print 't'. But with emacsclient, nothing. Is this normal? > > -- > __Pascal Bourguignon__ > -- Regards Lei