From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Why different behaviour of concat on OSX and on Lubuntu Date: Tue, 28 May 2013 20:27:15 +0200 Message-ID: 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 1369765683 1934 80.91.229.3 (28 May 2013 18:28:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 May 2013 18:28:03 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 28 20:28:03 2013 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 1UhOcn-00087s-0p for geh-help-gnu-emacs@m.gmane.org; Tue, 28 May 2013 20:27:57 +0200 Original-Received: from localhost ([::1]:55516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOcm-0001aD-GM for geh-help-gnu-emacs@m.gmane.org; Tue, 28 May 2013 14:27:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOcX-0001ZD-6c for help-gnu-emacs@gnu.org; Tue, 28 May 2013 14:27:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhOcS-0001gs-I7 for help-gnu-emacs@gnu.org; Tue, 28 May 2013 14:27:41 -0400 Original-Received: from mail-ve0-x22a.google.com ([2607:f8b0:400c:c01::22a]:36211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOcS-0001gd-BK for help-gnu-emacs@gnu.org; Tue, 28 May 2013 14:27:36 -0400 Original-Received: by mail-ve0-f170.google.com with SMTP id 15so6270628vea.29 for ; Tue, 28 May 2013 11:27:35 -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 :content-transfer-encoding; bh=wfleXYJjN81rJD63laBJ6kO1qiCBhdM/Yh4jjmiUwTY=; b=g9L69LP95jTM55E1WUgv3jO7aRafmnxiuC8kATXPy9BRSh2BpYkIifVxQj1uG47SQi zK+SMUtGapQyuAOjPfZELQK7ylDy81+xIjI6VjIlokJ7Xvm3q2Rv45RVDxGPQHfXBnhs Yxin7AbI3IZHBovLrqHUKPpWrl+wnQMFzJiy7aKOLp/T59vKtZrc4nbNbtAhE4Kbu2dc 0xuDaiU2nIxutR7FmDbkM2DQ7AyJUDdEJFg/7MHSkNyKrAnVDQG0Xd9tc+uZ3VugjMUv 4xES6tlWmi46/TSNOBszSyByMAHDYswLrQA8+bfH38yA/7dmq/k3i53r7AcrVxYvWla5 kN6g== X-Received: by 10.52.93.233 with SMTP id cx9mr15848261vdb.112.1369765655209; Tue, 28 May 2013 11:27:35 -0700 (PDT) Original-Received: by 10.52.120.83 with HTTP; Tue, 28 May 2013 11:27:15 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c01::22a 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:91108 Archived-At: Hi, My main machine is an iMAC (querty keyboard) running GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1187.37) I have to use temporarily an old notbook (belgian azerty keyboard) running Lubuntu GNU Emacs 24.2.1 (i686-pc-linux-gnu, GTK+ Version 3.6.4) of 2013-04-09 on komainu, modified by Debian. I use a seldom used key to create some mappings. Part of the code looks like this: ;; check whether running on OSX (setq isOSX (equal (expand-file-name "~/") "/Users/guivho/")) (if isOSX (setq leader "=C2=A7") (setq leader "=C2=B2")) (global-set-key (kbd (concat "M-" leader)) 'overwrite-mode) The last statement maps overwrite-mode to the M-=C2=A7 sequence on my iMac. On the Lubuntu machine, it does not map M-=C2=B2 to overwrite-mode, It bark= s: (wrong-type-argument integer-or-marker-p (concat "M-" leader)) read-kbd-macro((concat "M-" leader) On the other hand, the following commands do work on both machines: (define-prefix-command 'guivho-map nil "guivho-") (define-key guivho-map leader 'guivho-save-and-kill-buffer) (define-key guivho-map "-" 'hl-line-mode) (define-key guivho-map "=3D" 'vc-diff) (define-key guivho-map "0" 'delete-window) ... (define-key guivho-map "z" (lambda() (interactive) (switch-to-buffer-other-window "*scratch*" t))) (global-set-key leader guivho-map) I am puzzled why the concat does not work on lubuntu, and would like to know how to code it to achieve the desired effect. Thanks in advance, Guivho.