unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual
@ 2011-06-20 17:08 Drew Adams
  2011-07-15 14:21 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2011-06-20 17:08 UTC (permalink / raw)
  To: 8904

Consider mentioning command `describe-prefix-bindings' in the Emacs
manual.  It is mentioned only in the Elisp manual, but it is for users
(interactive).
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-06-13 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/build/include'
 






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

* bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual
  2011-06-20 17:08 bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual Drew Adams
@ 2011-07-15 14:21 ` Lars Magne Ingebrigtsen
  2011-07-15 15:20   ` Andreas Schwab
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-15 14:21 UTC (permalink / raw)
  To: Drew Adams; +Cc: 8904

"Drew Adams" <drew.adams@oracle.com> writes:

> Consider mentioning command `describe-prefix-bindings' in the Emacs
> manual.  It is mentioned only in the Elisp manual, but it is for users
> (interactive).

Why is that function interactive?  I mean, how could it be used
interactively?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual
  2011-07-15 14:21 ` Lars Magne Ingebrigtsen
@ 2011-07-15 15:20   ` Andreas Schwab
  2011-07-15 15:26     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2011-07-15 15:20 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 8904

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Why is that function interactive?  I mean, how could it be used
> interactively?

Just how it is used now.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual
  2011-07-15 15:20   ` Andreas Schwab
@ 2011-07-15 15:26     ` Lars Magne Ingebrigtsen
  2011-07-15 15:40       ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-15 15:26 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 8904

Andreas Schwab <schwab@linux-m68k.org> writes:

>> Why is that function interactive?  I mean, how could it be used
>> interactively?
>
> Just how it is used now.

I've only used it once, and this is how that went:

`M-x describe-prefix-bindings'

Global Bindings Starting With M-x d e s c r i b e - p r e f i x - b i n d i n g s:
key             binding
---             -------

[back]

I was not enlightened.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual
  2011-07-15 15:26     ` Lars Magne Ingebrigtsen
@ 2011-07-15 15:40       ` Drew Adams
  2011-07-15 15:48         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2011-07-15 15:40 UTC (permalink / raw)
  To: 'Lars Magne Ingebrigtsen', 'Andreas Schwab'; +Cc: 8904

> I was not enlightened.

Lars, you need better doc for this command. ;-)  Seriously.

To enlighten yourself and thus help in coming up with that doc:

1. See what the Elisp manual says, as the bug report indicated.
2. Consult the code, in help.el.

In #2 you will see this:

;; Make C-h after a prefix, when not specifically bound,
;; run describe-prefix-bindings.
(setq prefix-help-command 'describe-prefix-bindings)

Maybe this will help you see why code comments are not substitutes for doc
strings.  Had appropriate info been available to you interactively via `C-h f
describe-prefix-bindings' you would not have needed to ask others or consult the
code.

Now try it:

C-x C-h
C-x RET C-h
M-s C-h
...

Another lesson learned: Not every command is designed to work best with `M-x'.






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

* bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual
  2011-07-15 15:40       ` Drew Adams
@ 2011-07-15 15:48         ` Lars Magne Ingebrigtsen
  2011-07-15 16:05           ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-15 15:48 UTC (permalink / raw)
  To: Drew Adams; +Cc: 8904, 'Andreas Schwab'

"Drew Adams" <drew.adams@oracle.com> writes:

> Lars, you need better doc for this command. ;-)  Seriously.

Or better bug reports.

I've now added `describe-prefix-bindings' to the "Misc Help" node in the
Emacs manual.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual
  2011-07-15 15:48         ` Lars Magne Ingebrigtsen
@ 2011-07-15 16:05           ` Drew Adams
  0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2011-07-15 16:05 UTC (permalink / raw)
  To: 'Lars Magne Ingebrigtsen'
  Cc: 8904,
	'8904@debbugs.gnu.org "'Andreas Schwab'"'

> > Lars, you need better doc for this command. ;-)  Seriously.
> 
> Or better bug reports.

It's not up to a bug report to teach what the function does or how it's
implemented or used.

This bug report was to say that this is not sufficiently documented.

> I've now added `describe-prefix-bindings' to the "Misc Help" 
> node in the Emacs manual.

Thanks.

Hopefully you added some of the info I provided that helped you understand, so
that other users will also understand.  Likewise for the doc string (and perhaps
for the text in the Elisp manual too).

The goal should be for someone like Lars to be able to understand this function
by reading its doc: what it's for, how to use it, what it does.






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

end of thread, other threads:[~2011-07-15 16:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 17:08 bug#8904: 24.0.50; describe `describe-prefix-bindings' in Emacs manual Drew Adams
2011-07-15 14:21 ` Lars Magne Ingebrigtsen
2011-07-15 15:20   ` Andreas Schwab
2011-07-15 15:26     ` Lars Magne Ingebrigtsen
2011-07-15 15:40       ` Drew Adams
2011-07-15 15:48         ` Lars Magne Ingebrigtsen
2011-07-15 16:05           ` Drew Adams

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).