From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Is `kbd' idempotent? Date: Mon, 30 Nov 2015 16:39:45 +0100 Message-ID: <87bnabv6m6.fsf@fencepost.gnu.org> References: <87a8pvqzij.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448898011 20165 80.91.229.3 (30 Nov 2015 15:40:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2015 15:40:11 +0000 (UTC) Cc: Emacs Development To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 30 16:40:05 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a3QYe-0004jS-Lq for ged-emacs-devel@m.gmane.org; Mon, 30 Nov 2015 16:40:04 +0100 Original-Received: from localhost ([::1]:41612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3QYe-0005ew-4Z for ged-emacs-devel@m.gmane.org; Mon, 30 Nov 2015 10:40:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3QYN-0005cD-5X for emacs-devel@gnu.org; Mon, 30 Nov 2015 10:39:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3QYM-0007Za-Fy for emacs-devel@gnu.org; Mon, 30 Nov 2015 10:39:47 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3QYM-0007ZG-Cj; Mon, 30 Nov 2015 10:39:46 -0500 Original-Received: from localhost ([127.0.0.1]:35246 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1a3QYM-00034a-0o; Mon, 30 Nov 2015 10:39:46 -0500 Original-Received: by lola (Postfix, from userid 1000) id 97F94DF3AD; Mon, 30 Nov 2015 16:39:45 +0100 (CET) In-Reply-To: <87a8pvqzij.fsf@web.de> (Michael Heerdegen's message of "Mon, 30 Nov 2015 16:26:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195609 Archived-At: Michael Heerdegen writes: > Hello, > > is `kbd' idempotent? > > I want to prompt the user for a key sequence in any common format. If > he enters a string and already uses the format that `kbd' outputs, can > it be bad to call `kbd' on the input? Uh, how is somebody going to input the format that `kbd' outputs? The input is a string, the output often a vector. And no, kbd does not accept such vectors as input. -- David Kastrup