From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: patch for woman (woman-topic-at-point) Date: Sun, 28 Aug 2005 21:35:34 +0200 Message-ID: <85d5nxx3ax.fsf@lola.goethe.zz> References: <38wtm926pt.fsf@tiscali.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125258126 14757 80.91.229.2 (28 Aug 2005 19:42:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Aug 2005 19:42:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 28 21:42:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9T16-0002oL-Hi for ged-emacs-devel@m.gmane.org; Sun, 28 Aug 2005 21:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9T2v-0001ES-2K for ged-emacs-devel@m.gmane.org; Sun, 28 Aug 2005 15:42:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E9T2B-00019N-IN for emacs-devel@gnu.org; Sun, 28 Aug 2005 15:41:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E9T24-00014C-3Z for emacs-devel@gnu.org; Sun, 28 Aug 2005 15:41:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9T24-00013w-0m for emacs-devel@gnu.org; Sun, 28 Aug 2005 15:41:32 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E9SyI-0002bJ-1b for emacs-devel@gnu.org; Sun, 28 Aug 2005 15:37:38 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1E9Svk-0000HD-6N; Sun, 28 Aug 2005 15:35:00 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 0B4D91C4CE15; Sun, 28 Aug 2005 21:35:35 +0200 (CEST) Original-To: Emilio Lopes In-Reply-To: (Emilio Lopes's message of "Sat, 27 Aug 2005 20:57:37 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:42467 Archived-At: Emilio Lopes writes: > Stefan Monnier writes: > >> Instead of assoc, I'd recommend you use test-completion. It's >> probably equivalent given the current code, but it makes the >> intention much more clear and will work if the completion table is >> ever changed to some other format. > > Thanks for the suggestion. I changed my local copy and will send a > new version of the patch if there's interest on the changes. > > 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. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum