From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.devel Subject: Re: patch for woman (woman-topic-at-point) Date: Mon, 29 Aug 2005 20:08:50 +0200 Organization: private Message-ID: References: <38wtm926pt.fsf@tiscali.de> <85d5nxx3ax.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125342249 15405 80.91.229.2 (29 Aug 2005 19:04:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2005 19:04:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 29 21:04:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9os2-0006xH-0x for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2005 21:00:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9ow7-0006BX-V7 for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2005 15:04:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E9ov0-000677-PL for emacs-devel@gnu.org; Mon, 29 Aug 2005 15:03:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E9oug-0005xV-0t for emacs-devel@gnu.org; Mon, 29 Aug 2005 15:03:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9ouf-0005ug-Bs for emacs-devel@gnu.org; Mon, 29 Aug 2005 15:03:21 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E9ooZ-0001VW-BT for emacs-devel@gnu.org; Mon, 29 Aug 2005 14:57:03 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1E9oF3-00049i-TO for emacs-devel@gnu.org; Mon, 29 Aug 2005 20:20:21 +0200 Original-Received: from p62.246.45.183.tisdip.tiscali.de ([62.246.45.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2005 20:20:21 +0200 Original-Received: from eclig by p62.246.45.183.tisdip.tiscali.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2005 20:20:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p62.246.45.183.tisdip.tiscali.de User-Agent: Emacs Gnus Cancel-Lock: sha1:Tlxg9sM9+3JukCRZh/xX05Gdwx4= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42480 Archived-At: David Kastrup writes: > Emilio Lopes writes: >> BTW, is there a more elegant way of writing the following? I have >> the feeling I'm missing obvious something here... >> >> (and word-at-point (test-completion word-at-point >> woman-topic-all-completions) word-at-point) > (when (and word-at-point > (test-completion word-at-point > woman-topic-all-completions)) > word-at-point) > It's more verbose, but brings across the purpose somewhat better. OTOH at a first glance *I* don't expect a control structures such as `when' to return any useful value when the conditional clause fails. But maybe I've been doing too much Scheme these days. (no, surely not ;-) I'll use your suggestion, thanks.