all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: string-to-char
Date: Mon, 27 Nov 2006 08:38:34 -0500	[thread overview]
Message-ID: <jwvmz6dgge2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <456AB507.1060808@gmx.at> (martin rudalics's message of "Mon\, 27 Nov 2006 10\:51\:03 +0100")

>      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

      parent reply	other threads:[~2006-11-27 13:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-27  9:51 string-to-char martin rudalics
2006-11-27 10:52 ` string-to-char Juanma Barranquero
2006-11-27 19:32   ` string-to-char Nick Roberts
2006-11-27 20:13     ` string-to-char Juanma Barranquero
2006-11-27 20:59       ` string-to-char Nick Roberts
2006-11-29  3:28       ` string-to-char Richard Stallman
2006-11-29  9:09         ` string-to-char Juanma Barranquero
2006-11-30  3:20           ` string-to-char Richard Stallman
2006-11-27 23:43   ` string-to-char Richard Stallman
2006-11-28  0:36   ` string-to-char Glenn Morris
2006-11-27 13:38 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmz6dgge2.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.