From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thomas Lynch Newsgroups: gmane.emacs.bugs Subject: bug#22673: 24.5; global set key neg freaks out emacs Date: Mon, 15 Feb 2016 13:24:47 +0000 Message-ID: References: <87r3gervpm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bfe9fe8d1d293052bcef093 X-Trace: ger.gmane.org 1455542724 5338 80.91.229.3 (15 Feb 2016 13:25:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 13:25:24 +0000 (UTC) Cc: Alexis , 22673@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 14:25:14 2016 Return-path: Envelope-to: geb-bug-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 1aVJ9L-0004T6-KC for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 14:25:11 +0100 Original-Received: from localhost ([::1]:60408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVJ9K-0004DT-Um for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 08:25:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVJ9H-0004D0-By for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVJ9C-0006DN-C1 for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:25:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVJ9C-0006DJ-47 for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVJ9C-0005bE-0R for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Lynch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2016 13:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22673 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22673-submit@debbugs.gnu.org id=B22673.145554269421501 (code B ref 22673); Mon, 15 Feb 2016 13:25:01 +0000 Original-Received: (at 22673) by debbugs.gnu.org; 15 Feb 2016 13:24:54 +0000 Original-Received: from localhost ([127.0.0.1]:39496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVJ94-0005aj-BE for submit@debbugs.gnu.org; Mon, 15 Feb 2016 08:24:54 -0500 Original-Received: from mail-ig0-f182.google.com ([209.85.213.182]:32882) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVJ93-0005aX-0O for 22673@debbugs.gnu.org; Mon, 15 Feb 2016 08:24:53 -0500 Original-Received: by mail-ig0-f182.google.com with SMTP id y8so74849662igp.0 for <22673@debbugs.gnu.org>; Mon, 15 Feb 2016 05:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reasoningtechnology-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LpheKYlxr085k4IvoWd989bZzontNXCfwYpWD5d95ME=; b=ed+B5qeurWqwugGvqGq6JRRZ2IEXJV3XibfMpMoPN2F/DzafTOLMggZWgiMIlmxSoV /C02zfwEKYOQuSR8HCzTEXr2ExaqzHvsVagMDVpEwZiXAof+D/0IDJXplDUKMlgzWAt7 sAbc9QxDzYlqbEv5lPqDcHUcqIfYZC/zlxaJPRzVQrMWARmI9g7AyPgPnk7YmSMFprrV YPxf7n1gOoFEnP6jJrewf4mYDy/TCZSAWnX0i7GeIXmgWwpKFLJC4jEUJHFEfwvrYbwE Sq0IVzJvNqy2jATQV54TYye0Jarr+GqO+4IO9LEWcPL+9qoZvo+ZzsL/8Lk+BjN3NvIj SMow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=LpheKYlxr085k4IvoWd989bZzontNXCfwYpWD5d95ME=; b=EbudzY7qU3Qo+WyCm9Mrd5jYLdiOielz0HL588tGwiUOtQCW7PuHgVu1MkuGDIYeiq vkRzigQEImKHFvT/GhBueSHfMmagcygH2Hb/tiIrhXvLDeAakqUetwi7H0yYQKg0cslw sabnyyvvxEN2SIU3XvlRaDCNfYxvnOTIuqZfs/0nliRBmyWnzE9kPMvHQ+djhq6OM63e RaawBP6EL9qWJBdHuByzKhWfKoTjUf2FV5M7FPAjfht5Ggq1D9T7wAwb1loWmKw+oJMr 5P+pXKczlz2se2+qfy0uqgqALKN0eRbT7YZ1g/xY1eKR47ojrAFnMKrbJmPH6q3A3btu JMKQ== X-Gm-Message-State: AG10YOSOIs1rbHDg7STIpXZ87dJ4TNejoObOPRndHOg7f+N+qDhQXhLyvjt4DhCjhw0fjLkaXscPnyPrxUdG0g== X-Received: by 10.50.43.195 with SMTP id y3mr13049697igl.9.1455542687083; Mon, 15 Feb 2016 05:24:47 -0800 (PST) Original-Received: by 10.64.129.137 with HTTP; Mon, 15 Feb 2016 05:24:47 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113076 Archived-At: --047d7bfe9fe8d1d293052bcef093 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Note that every other character appears to work with this same syntax that neg doesn't, take for example: (global-set-key (kbd "C-x g > =3D") "=E2=89=A5") That and every other character in quotes that I have tried, works fine. Only neg is different. On Mon, Feb 15, 2016 at 1:03 PM, Andreas Schwab wrote: > Alexis writes: > > > The documentation for the `global-set-key` function, at least in 24.5.3 > > and in the emacs-25 branch as at d9ea7950, doesn't mention this > > possibility: > > > > (global-set-key KEY COMMAND) > > > > Give KEY a global binding as COMMAND. COMMAND is the command > > definition to use; usually it is a symbol naming an > > interactively-callable function. > > > > Perhaps it should be modified to refer to COMMAND-OR-VECTOR? > > A vector is a kind of command. It's a keyboard macro. > > ELISP> (commandp [?=C2=AC]) > t > > For non-interactive use, define-key is preferred, which has all details. > > Andreas. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D= 7 > "And now for something completely different." > --047d7bfe9fe8d1d293052bcef093 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Note that every other character appears to work with this = same syntax that neg doesn't, =C2=A0take for example:

(global-set-key (kbd = "C-x g > =3D") "=E2=89=A5")

That= and every other character in quotes that I have tried, works fine.=C2=A0 O= nly neg is different.

On Mon, Feb 15, 2016 at 1:03 PM, Andreas Schwab <schwab@suse.de= > wrote:
Alexi= s <flexibeast@gmail.com> = writes:

> The documentation for the `global-set-key` function, at least in 24.5.= 3
> and in the emacs-25 branch as at d9ea7950, doesn't mention this > possibility:
>
>=C2=A0 =C2=A0 (global-set-key KEY COMMAND)
>
>=C2=A0 =C2=A0 Give KEY a global binding as COMMAND.=C2=A0 COMMAND is th= e command
> definition to use; usually it is a symbol naming an
> interactively-callable function.
>
> Perhaps it should be modified to refer to COMMAND-OR-VECTOR?

A vector is a kind of command.=C2=A0 It's a keyboard macro.

ELISP> (commandp [?=C2=AC])
t

For non-interactive use, define-key is preferred, which has all details.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@suse.de=
GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE=C2=A0 1748 E4D4 88E3 0EEA = B9D7
"And now for something completely different."

--047d7bfe9fe8d1d293052bcef093--