all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Albrecht Mehl <AlbrechtMehl.spamgrab@iesy.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Global keymap not found
Date: Wed, 07 Oct 2015 17:01:44 +0200	[thread overview]
Message-ID: <87k2qy4t9j.fsf@gnu.org> (raw)
In-Reply-To: <mv2jjn$6ri$1@news.albasani.net> (Albrecht Mehl's message of "Wed, 7 Oct 2015 10:03:00 +0200")

Albrecht Mehl <AlbrechtMehl.spamgrab@iesy.net> writes:

Hi Albrecht,

> This is my first day with emacs and I am struggling with the manual.
> At a certain point the key 'C-u' is used in an example ... but I do
> not know what command it is bound to as I am reading the manual not
> chapter by chapter,

Welcome to Emacs which describes itself as self-documenting.  You can
always ask it to tell you what commant is bound to a given key using
`C-h k' followed by the key.

,----[ C-h k C-u ]
| C-u runs the command universal-argument (found in global-map), which is an
| interactive compiled Lisp function in ‘simple.el’.
| 
| It is bound to C-u.
| 
| (universal-argument)
| 
| Begin a numeric argument for the following command.
| Digits or minus sign following C-u make up the numeric argument.
| C-u following the digits or minus sign ends the argument.
| C-u without digits or minus sign provides 4 as argument.
| Repeating C-u without digits or minus sign
|  multiplies the argument by 4 each time.
| For some commands, just C-u by itself serves as a flag
| which is different in effect from any particular numeric argument.
| These commands include C-SPC and M-x start-kbd-macro.
`----

There are many other such commands describing different aspects of
emacs.  For an overview, just type `C-h C-h', the help for the help.

> but look for topics important for me. So I look for the global key
> map. In 48.3.1 Keymaps the global keymap is mentioned, but no link to
> it given.
>
>   Where can I find the global keymap?

You can use the `describe-variable' (C-h v) to get the value and
documentation for a variable such as `global-map'.  However, the value
of keymaps is not really meant for human consumption.  Instead, type
`C-h b' to get the list of all keybindings which are available in the
current buffer right now in the order of precedence.  Alternatively,
`C-h m' describes all the current major-mode and all minor-modes active
in the current buffer.  The description include also all the key
bindings.

> This question seems to be quite simple compared to the other ones in
> this group, maybe it is embarassing to ask it; but better asking than
> not knowing how to go on.

No, not embarassing at all.  Emacs given you everything you can possibly
want for helping yourself, so learning Emacs' interactive help system as
early as possible will save you hours over hours of google searches and
searches in the manual.  It is documented in

  (info "(emacs)Help") ;; <-- C-x C-e here!

You can copy that expression above somewhere into an emacs buffer, e.g.,
*scratch*, and press `C-x C-e' after the closing paren.  That will bring
you to the info docs on the help system.

Bye,
Tassilo



  parent reply	other threads:[~2015-10-07 15:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07  8:03 Global keymap not found Albrecht Mehl
2015-10-07  8:46 ` Marco Wahl
2015-10-07  9:28   ` Michael Heerdegen
     [not found]   ` <mailman.45.1444210137.916.help-gnu-emacs@gnu.org>
2015-10-07 11:19     ` Marco Wahl
2015-10-07 15:01 ` Tassilo Horn [this message]
2015-10-07 15:12   ` Drew Adams
2015-10-08  6:27 ` Albrecht Mehl
2015-10-08  8:53   ` Michael Heerdegen
     [not found]   ` <mailman.7.1444294440.4386.help-gnu-emacs@gnu.org>
2015-10-08 14:36     ` Thanks " Albrecht Mehl
2015-10-08 14:46       ` Loris Bennett
2015-10-08 15:08         ` Michael Heerdegen
     [not found]         ` <mailman.69.1444347042.4386.help-gnu-emacs@gnu.org>
2015-10-09  9:13           ` Marco Wahl
2015-10-08 17:09       ` Drew Adams
2015-10-09  9:07       ` Albrecht Mehl
2015-10-09 20:12         ` Tassilo Horn
2015-10-09 20:21           ` Emanuel Berg
2015-10-09 20:18         ` Emanuel Berg
2015-10-09 20:45         ` Drew Adams
2015-10-10  9:09         ` Eli Zaretskii
2015-10-10  9:32         ` Michael Heerdegen
2015-10-10 12:02           ` Kaushal Modi

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=87k2qy4t9j.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=AlbrechtMehl.spamgrab@iesy.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.