emacs-devel
[Top][All Lists]
Advanced

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

Re: patch for woman (woman-topic-at-point)


From: David Kastrup
Subject: Re: patch for woman (woman-topic-at-point)
Date: Sun, 28 Aug 2005 21:35:34 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Emilio Lopes <address@hidden> 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




reply via email to

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