From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: string-to-char Date: Mon, 27 Nov 2006 08:38:34 -0500 Message-ID: References: <456AB507.1060808@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164653305 3660 80.91.229.2 (27 Nov 2006 18:48:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2006 18:48:25 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 27 19:48:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GolWU-0004fK-27 for ged-emacs-devel@m.gmane.org; Mon, 27 Nov 2006 19:48:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GolWS-0004Qr-O6 for ged-emacs-devel@m.gmane.org; Mon, 27 Nov 2006 13:48:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gol3O-0006EP-GH for emacs-devel@gnu.org; Mon, 27 Nov 2006 13:18:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gol3L-0006Ce-EV for emacs-devel@gnu.org; Mon, 27 Nov 2006 13:18:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gol3L-0006CH-44 for emacs-devel@gnu.org; Mon, 27 Nov 2006 13:18:03 -0500 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GojWo-0004JG-TA for emacs-devel@gnu.org; Mon, 27 Nov 2006 11:40:22 -0500 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by mx20.gnu.org with esmtp (Exim 4.52) id 1Gogic-0005HT-Of for emacs-devel@gnu.org; Mon, 27 Nov 2006 08:40:22 -0500 Original-Received: from pastel.home ([70.53.194.10]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061127133835.GKFC16051.tomts20-srv.bellnexxia.net@pastel.home> for ; Mon, 27 Nov 2006 08:38:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id BFEB893FA; Mon, 27 Nov 2006 08:38:34 -0500 (EST) Original-To: martin rudalics In-Reply-To: <456AB507.1060808@gmx.at> (martin rudalics's message of "Mon\, 27 Nov 2006 10\:51\:03 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (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:62874 Archived-At: > 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. Stefan