From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#22673: 24.5; global set key neg freaks out emacs Date: Mon, 15 Feb 2016 14:03:00 +0100 Message-ID: References: <87r3gervpm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1455541466 17468 80.91.229.3 (15 Feb 2016 13:04:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 13:04:26 +0000 (UTC) Cc: Thomas Lynch , 22673@debbugs.gnu.org To: Alexis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 14:04:16 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 1aVIp3-0002yp-1h for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 14:04:13 +0100 Original-Received: from localhost ([::1]:60211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVIp2-0005ts-CG for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 08:04:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVIoz-0005tk-2Y for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:04:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVIov-0001B6-Rw for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:04:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVIov-0001Am-On for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:04:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVIos-00055B-B6 for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 08:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2016 13:04:02 +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.145554138319465 (code B ref 22673); Mon, 15 Feb 2016 13:04:02 +0000 Original-Received: (at 22673) by debbugs.gnu.org; 15 Feb 2016 13:03:03 +0000 Original-Received: from localhost ([127.0.0.1]:39481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVInv-00053t-2l for submit@debbugs.gnu.org; Mon, 15 Feb 2016 08:03:03 -0500 Original-Received: from mx2.suse.de ([195.135.220.15]:51734) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVInt-00053U-KZ for 22673@debbugs.gnu.org; Mon, 15 Feb 2016 08:03:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BD47AADEA; Mon, 15 Feb 2016 13:03:00 +0000 (UTC) X-Yow: I'm RELIGIOUS!! I love a man with a HAIRPIECE!! Equip me with MISSILES!! In-Reply-To: <87r3gervpm.fsf@gmail.com> (Alexis's message of "Mon, 15 Feb 2016 23:42:29 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) 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:113073 Archived-At: 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 [?¬]) t For non-interactive use, define-key is preferred, which has all details. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."