all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* I think the doc in emacs is too simple in someplaces
@ 2006-12-18 15:02 Ronald
  2006-12-18 16:03 ` Robert D. Crawford
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ronald @ 2006-12-18 15:02 UTC (permalink / raw)


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.
And the description about ARG is repeated everywhere,
I supposed it's not good.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I think the doc in emacs is too simple in someplaces
  2006-12-18 15:02 I think the doc in emacs is too simple in someplaces Ronald
@ 2006-12-18 16:03 ` Robert D. Crawford
  2006-12-19  0:15   ` Ronald
  2006-12-18 20:06 ` Eli Zaretskii
       [not found] ` <mailman.2081.1166472416.2155.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 7+ messages in thread
From: Robert D. Crawford @ 2006-12-18 16:03 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I think the doc in emacs is too simple in someplaces
  2006-12-18 15:02 I think the doc in emacs is too simple in someplaces Ronald
  2006-12-18 16:03 ` Robert D. Crawford
@ 2006-12-18 20:06 ` Eli Zaretskii
       [not found] ` <mailman.2081.1166472416.2155.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2006-12-18 20:06 UTC (permalink / raw)


> From: Ronald <followait@163.com>
> Date: Mon, 18 Dec 2006 23:02:04 +0800
> 
> 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.
> And the description about ARG is repeated everywhere,
> I supposed it's not good.

I agree, but please submit bug reports such as this one to the correct
forum; "M-x report-emacs-bug RET" will do that for you automatically.
Also, please report specifically each case of insufficient
documentation; ``for example'' is not good enough, because Emacs has
thousands of doc strings, and no one can possibly believe that all of
them are bad.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I think the doc in emacs is too simple in someplaces
  2006-12-18 16:03 ` Robert D. Crawford
@ 2006-12-19  0:15   ` Ronald
  2006-12-19  8:28     ` Tassilo Horn
  2006-12-19  9:33     ` Robert D. Crawford
  0 siblings, 2 replies; 7+ messages in thread
From: Ronald @ 2006-12-19  0:15 UTC (permalink / raw)


Robert D. Crawford wrote:
> 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.
> 
Opps, after installing emacs22, C-h i reports : Recursive `require' for 
feature `sb-info'...

>> 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?
> 
> 
I mean this can be true implicitly, and it's not good for maintaining. 
So any good reason?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I think the doc in emacs is too simple in someplaces
       [not found] ` <mailman.2081.1166472416.2155.help-gnu-emacs@gnu.org>
@ 2006-12-19  0:18   ` Ronald
  0 siblings, 0 replies; 7+ messages in thread
From: Ronald @ 2006-12-19  0:18 UTC (permalink / raw)


Eli Zaretskii wrote:
>> From: Ronald <followait@163.com>
>> Date: Mon, 18 Dec 2006 23:02:04 +0800
>>
>> 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.
>> And the description about ARG is repeated everywhere,
>> I supposed it's not good.
> 
> I agree, but please submit bug reports such as this one to the correct
> forum; "M-x report-emacs-bug RET" will do that for you automatically.
> Also, please report specifically each case of insufficient
> documentation; ``for example'' is not good enough, because Emacs has
> thousands of doc strings, and no one can possibly believe that all of
> them are bad.
> 
> 
Yes, I should try.
I'm a newbie in Linux.
Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I think the doc in emacs is too simple in someplaces
  2006-12-19  0:15   ` Ronald
@ 2006-12-19  8:28     ` Tassilo Horn
  2006-12-19  9:33     ` Robert D. Crawford
  1 sibling, 0 replies; 7+ messages in thread
From: Tassilo Horn @ 2006-12-19  8:28 UTC (permalink / raw)


Ronald <followait@163.com> writes:

Hi Ronald,

> Opps, after installing emacs22, C-h i reports : Recursive `require'
> for feature sb-info'...

The solution can be found here: 
 
  http://article.gmane.org/gmane.emacs.cedet/2233

Bye,
Tassilo
-- 
A morning without coffee is like something without something else.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: I think the doc in emacs is too simple in someplaces
  2006-12-19  0:15   ` Ronald
  2006-12-19  8:28     ` Tassilo Horn
@ 2006-12-19  9:33     ` Robert D. Crawford
  1 sibling, 0 replies; 7+ messages in thread
From: Robert D. Crawford @ 2006-12-19  9:33 UTC (permalink / raw)


Ronald <followait@163.com> writes:

> Opps, after installing emacs22, C-h i reports : Recursive `require'
> for feature `sb-info'...

Is this something that you have referenced in your .emacs file with a
'require'?  I am running emacs 22 and am having no such problems.  

If there is a possibility that this is caused by something in your
.emacs file, start emacs with the -q option to see if .emacs is the
culprit.  

>>> 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:

[snip]

> I mean this can be true implicitly, and it's not good for
> maintaining. So any good reason?

Because this is not the case with every command.  

Maybe I misunderstand what you are trying to say.  Eli Z. seemed to
agree with you that this is a problem that needs to be brought to the
attention of the devel team, and on the basis of his activity in this
group alone he seems to be a much more knowledgeable fellow than I.

rdc
-- 
Robert D. Crawford                                      rdc1x@comcast.net

<taniwha> i'd solve a windows key problem with fdisk :)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-12-19  9:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-18 15:02 I think the doc in emacs is too simple in someplaces Ronald
2006-12-18 16:03 ` Robert D. Crawford
2006-12-19  0:15   ` Ronald
2006-12-19  8:28     ` Tassilo Horn
2006-12-19  9:33     ` Robert D. Crawford
2006-12-18 20:06 ` Eli Zaretskii
     [not found] ` <mailman.2081.1166472416.2155.help-gnu-emacs@gnu.org>
2006-12-19  0:18   ` Ronald

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.