[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bundling C-u C-space
From: |
Tim Johnson |
Subject: |
Re: bundling C-u C-space |
Date: |
Sat, 10 Oct 2015 13:24:04 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* Drew Adams <drew.adams@oracle.com> [151010 12:47]:
> > > 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.
As I expected ... additional edification.
Do I understand correctly that 4 is the default value when C-u is
used without a value
as in C-u C-@
?
Thanks, Drew
--
Tim
http://www.akwebsoft.com, http://www.tj49.com
Re: bundling C-u C-space, Emanuel Berg, 2015/10/11