help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I think the doc in emacs is too simple in someplaces


From: Robert D. Crawford
Subject: Re: I think the doc in emacs is too simple in someplaces
Date: Mon, 18 Dec 2006 10:03:54 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

Ronald <followait@163.com> writes:

> For example:
>
> c-toggle-electric-state
>
> c-toggle-electric-state is an interactive compiled Lisp function in
> cc-cmds.el'.
> It is bound to C-c C-l, <menu-bar> <C> <Toggle...> <Electric mode>.
> (c-toggle-electric-state &optional ARG)
>
> Toggle the electric indentation feature.
> Optional numeric ARG, if supplied, turns on electric indentation when
> positive, turns it off when negative, and just toggles it when zero or
> left out.
>
> It doesn't tell what the function does.

Yes it does.  It toggles the electric state.  Computers are very good at
answering the question you ask.  It is up to you to ask the right
question.  In this case, you have asked what a particular command does
and it has told you.  The next step is to ask what the electric state
does.  This information can be found in the info page for emacs.  The
place where you are looking, C-h f, will give you a place to start
looking but will not give you much information.  

Try this:

C-h i 

to get into info, then

m

and ask for emacs, then

s

to search the manual.  search for electric which will take you to a link
to the relevant section of the emacs info manual.

> 
> And the description about ARG is repeated everywhere, I supposed it's
> not good.

Not sure why you would think this.  What it means is that if you invoke
the command like so:

C-u M-x command-to-invoke

you are invoking the command with a 0 argument.  Therefore

C-u 1 M-x command 

is a positive arg and 

C-u -1 M-x command

is a negative arg.

Clearer?

> 

-- 
Robert D. Crawford                                      rdc1x@comcast.net

Linux - Das System fuer schlaue Maedchen ;)
                -- banshee


reply via email to

[Prev in Thread] Current Thread [Next in Thread]