From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Brenner Newsgroups: gmane.emacs.help Subject: [ELISP] How do you turn an array of chars into a string? Date: Sun, 01 Aug 2010 10:01:31 -0700 Message-ID: <87wrsae07o.fsf@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291856049 29300 80.91.229.12 (9 Dec 2010 00:54:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 00:54:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 01:54:05 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQUln-0006z2-8p for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 01:54:03 +0100 Original-Received: from localhost ([127.0.0.1]:50376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQUlm-0002BT-MI for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:54:02 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.rawbandwidth!news.posted.rawbandwidth.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 01 Aug 2010 12:00:22 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Y7eHH5RTlmF+9SftyTEQabLuOz4= Original-Lines: 17 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 198.144.208.84 Original-X-Trace: sv3-mguqA83Jttf6OXK8LArL+d2KvurYUg6r+wCdFwjRS4YI/gzIMwpShHdQxIPEECqubBrPMIh1W3yWM8c!fRJGZEd+4hGZE0G72QGgnKptH8A1MJWtJDaoXYWyNqmtb28v+d0xhIrcScYGf9XAGEiU0aA17Q8= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:180255 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76332 Archived-At: The elisp manual has this example, using "kbd" to convert a (relatively) readable string into the "internal Emacs key representation": (global-set-key (kbd "C-x C-\\") 'next-line) (global-set-key [?\C-x ?\C-\\] 'next-line) What's the inverse of kbd? What if you want to convert an array-of-chars into a string? Things like this seem to work, but only for very simple chars: (mapconcat 'string [?c ?a ?t] "") ;; => "cat" Motivation: see the first FIXME in footnote.el, on footnote-prefix.