[Top][All Lists]

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

Re: string-to-char

From: Stefan Monnier
Subject: Re: string-to-char
Date: Mon, 27 Nov 2006 08:38:34 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

>      This function may be eliminated in the future if it does not seem
>      useful enough to retain.

> Given that some 60 files of current Emacs use `string-to-char' these
> lines appear incongruous and should be eliminated.

I think (aref STR 0) is just as good.  And as someone else mentioned,
string-to-char is surprisingly often used in odd cases where the whole thing
could be completely removed.


reply via email to

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