From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Random832 Newsgroups: gmane.emacs.devel Subject: Re: Is `kbd' idempotent? Date: Mon, 30 Nov 2015 16:30:07 +0000 (UTC) Message-ID: References: <87a8pvqzij.fsf@web.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448901122 9102 80.91.229.3 (30 Nov 2015 16:32:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2015 16:32:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 30 17:31:56 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 1a3RMo-00026n-06 for ged-emacs-devel@m.gmane.org; Mon, 30 Nov 2015 17:31:54 +0100 Original-Received: from localhost ([::1]:41930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3RMn-00036b-Db for ged-emacs-devel@m.gmane.org; Mon, 30 Nov 2015 11:31:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3RLT-0001IZ-HW for emacs-devel@gnu.org; Mon, 30 Nov 2015 11:30:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3RLO-0002bK-G4 for emacs-devel@gnu.org; Mon, 30 Nov 2015 11:30:31 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3RLO-0002at-8p for emacs-devel@gnu.org; Mon, 30 Nov 2015 11:30:26 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a3RLH-0008Bc-W1 for emacs-devel@gnu.org; Mon, 30 Nov 2015 17:30:20 +0100 Original-Received: from c-68-39-146-59.hsd1.in.comcast.net ([68.39.146.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2015 17:30:19 +0100 Original-Received: from random832 by c-68-39-146-59.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2015 17:30:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: slrn/pre1.0.3-7 (Linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:195624 Archived-At: On 2015-11-30, Michael Heerdegen wrote: > is `kbd' idempotent? It occured to me after posting my previous reply, there is one obvious case where the output of kbd is a string, which is itself a valid string in keyboard macro format, representing a different key sequence. Consider the following: (kbd "C - x SPC S P C SPC C - c") "C-x SPC C-c" (kbd "C-x SPC C-c") "\C-x \C-c" (kbd "\C-x \C-c") "\C-x\C-c" So the answer is clearly not, even in cases where it looks like it might be.