all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Drew Adams <drew.adams@oracle.com>,
	Tim Johnson <tim@akwebsoft.com>, Emacs <Help-gnu-emacs@gnu.org>
Subject: RE: bundling C-u C-space
Date: Sat, 10 Oct 2015 13:36:08 -0700 (PDT)	[thread overview]
Message-ID: <628afed9-4639-4357-b0ee-9ee3c998228e@default> (raw)
In-Reply-To: <92e61c97-c2c5-46e5-a5c7-cfe3b08a9e40@default>

> > I'd like to get the functionality of Control-u Control-space in
> > one keystroke (for instance, Control-,)
> 
> (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.



  reply	other threads:[~2015-10-10 20:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-10 20:03 bundling C-u C-space Tim Johnson
2015-10-10 20:30 ` Drew Adams
2015-10-10 20:36   ` Drew Adams [this message]
2015-10-10 21:24     ` Tim Johnson
2015-10-10 21:51       ` Drew Adams
2015-10-10 22:51         ` Tim Johnson
2015-10-11 22:44 ` Emanuel Berg
2015-10-12  0:51   ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=628afed9-4639-4357-b0ee-9ee3c998228e@default \
    --to=drew.adams@oracle.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=tim@akwebsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.