From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Getting a key's read syntax as a string Date: Fri, 27 Mar 2015 21:50:21 -0700 (PDT) Message-ID: <7b185188-bc6c-47f7-8165-95f42dad337d@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1427518261 5924 80.91.229.3 (28 Mar 2015 04:51:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 04:51:01 +0000 (UTC) To: John Mastro , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 28 05:50:48 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ybihr-0007Xt-Hg for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Mar 2015 05:50:47 +0100 Original-Received: from localhost ([::1]:52779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybihq-00010T-QI for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Mar 2015 00:50:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybiha-00010A-Se for help-gnu-emacs@gnu.org; Sat, 28 Mar 2015 00:50:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbihV-0006o5-Oi for help-gnu-emacs@gnu.org; Sat, 28 Mar 2015 00:50:30 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:23879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbihV-0006nl-I7 for help-gnu-emacs@gnu.org; Sat, 28 Mar 2015 00:50:25 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t2S4oMjK017918 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 28 Mar 2015 04:50:23 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t2S4oLKt025419 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 28 Mar 2015 04:50:22 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t2S4oLEM029218; Sat, 28 Mar 2015 04:50:21 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103412 Archived-At: > Is there a programmatic way to get a string representing a > key-with-modifier's read syntax, given its integer value? >=20 > Perhaps more clearly, I'm looking for something that would work like > this: > (key-read-syntax ?\C-a) ;=3D> "?\C-a" or "C-a" > (key-read-syntax ?\M-f) ;=3D> "?\M-f" or "M-f" > I checked the manual but didn't come across anything. Not sure what you're asking, but does `single-key-description' or `key-description' fit? (single-key-description ?\C-a) ;=3D> "C-a" etc.