From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: bundling C-u C-space Date: Sat, 10 Oct 2015 13:36:08 -0700 (PDT) Message-ID: <628afed9-4639-4357-b0ee-9ee3c998228e@default> References: <20151010200341.GI3342@mail.akwebsoft.com> <92e61c97-c2c5-46e5-a5c7-cfe3b08a9e40@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1444509438 1643 80.91.229.3 (10 Oct 2015 20:37:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2015 20:37:18 +0000 (UTC) To: Drew Adams , Tim Johnson , Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 10 22:37:03 2015 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 1Zl0sx-000790-3z for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2015 22:36:55 +0200 Original-Received: from localhost ([::1]:46297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zl0sw-0001oQ-8K for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2015 16:36:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zl0sP-0001nN-9r for Help-gnu-emacs@gnu.org; Sat, 10 Oct 2015 16:36:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zl0sM-0008Fs-2l for Help-gnu-emacs@gnu.org; Sat, 10 Oct 2015 16:36:21 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:45287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zl0sL-0008FD-Rz for Help-gnu-emacs@gnu.org; Sat, 10 Oct 2015 16:36:17 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9AKaA4x022804 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 10 Oct 2015 20:36:11 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t9AKa9xt010314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 10 Oct 2015 20:36:10 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t9AKa9LY002105; Sat, 10 Oct 2015 20:36:09 GMT In-Reply-To: <92e61c97-c2c5-46e5-a5c7-cfe3b08a9e40@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:107573 Archived-At: > > I'd like to get the functionality of Control-u Control-space in > > one keystroke (for instance, Control-,) >=20 > (global-set-key (kbd "C-,") 'pop-to-mark-command) BTW, you could discover `pop-to-mark-command' (it is not mentioned in the manual) this way: C-h k C-@ tells you that that command is `set-mark-command'. Click the link in buffer *Help* that takes you to the command definition in `simple.el'. M-x debug-on-entry set-mark-command C-u C-@ and walk through the debugger, to see what functions are used to provide the behavior. You'll see that only function `pop-to-mark-command' is invoked. It's name suggests that it might be a command, but `C-h f pop-to-mark-command' confirms this. It is all you need.