Emilio Lopes <[EMAIL PROTECTED]> 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


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to