From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Getting a key's read syntax as a string Date: Fri, 27 Mar 2015 19:22:54 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1427509411 16006 80.91.229.3 (28 Mar 2015 02:23:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 02:23:31 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 28 03:23:31 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 1YbgPH-00031o-E4 for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Mar 2015 03:23:27 +0100 Original-Received: from localhost ([::1]:52600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbgPF-0001dI-Up for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 22:23:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbgP6-0001dD-7U for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 22:23:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbgP5-0007E6-HZ for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 22:23:16 -0400 Original-Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:34943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbgP5-0007E1-Co for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 22:23:15 -0400 Original-Received: by obcjt1 with SMTP id jt1so84692411obc.2 for ; Fri, 27 Mar 2015 19:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=DNw2XyVNw4HA+UnIoilM0i8rZIhQbmshADMvZhhwUPU=; b=UqWjnhoD6y6oQm6t3tckJ/f0uACiqu4S/vzryhwT6ixf4Ix/5B2i7VC3Cex7G/EkFY mdOiJsrFp0wegzrXmro1sQry+JGIq4FeOEyYKneZ74ntzQmdV3Y9k7L3ys6nbD/am4q0 ddIR4hxpqwCGctT4Er+dwMtjJbVl6AIN9XUgYXiOD6pNTQtQF8txBhJFb1TDoD7bEVv6 d/vi1bnXOOQrje2FBJlObooHicEuVevjv9msYFc7o/NwEKFTLe56z+MZBUvq6BEs+Ihw KBGnC3dn8fxY5hLY07gVsEl+sc4I7bHnlCpP6Usw+OyXqxnWHlcgoFVyAiShzYr9JZ5J 3EHA== X-Received: by 10.182.117.198 with SMTP id kg6mr2041287obb.66.1427509394409; Fri, 27 Mar 2015 19:23:14 -0700 (PDT) Original-Received: by 10.76.173.2 with HTTP; Fri, 27 Mar 2015 19:22:54 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22f 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:103411 Archived-At: Hello Emacsers, Is there a programmatic way to get a string representing a key-with-modifier's read syntax, given its integer value? Perhaps more clearly, I'm looking for something that would work like this: (key-read-syntax ?\C-a) ;=> "?\C-a" or "C-a" (key-read-syntax ?\M-f) ;=> "?\M-f" or "M-f" I checked the manual but didn't come across anything. Thanks -- john