>>>>> Arash Esbati <ar...@gnu.org> writes:

>> Ah, it's there, in reftex.el after all.
>> 
>> (defun reftex-uniquify (list &optional sort)
>> ;; Return a list of all strings in LIST, but each only once, keeping order
>> ;; unless SORT is set (faster!).
>> [...]
>> 
>> But that's specialized on strings, and a different package anyway.

> Great, thanks.  I tested it briefly and it seems to do the job.  I will
> do some more testing and add it as `TeX-uniquify-strings' (?) to the
> compat branch in order to replace `delete-dups'.

FYI, If the order of the output is irrelavant (i.e., it is OK to give
non-nil value for SORT), the essentially same function exists already in
AUCTeX: `TeX-delete-duplicate-strings'.

Best,
Ikumi Keita

_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to