all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#5267: 23.1; doc string of defstruct
@ 2009-12-25  7:50 Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2009-12-25  7:50 UTC (permalink / raw)
  To: bug-gnu-emacs

Doc string says:

"(defstruct (NAME OPTIONS...) (SLOT SLOT-OPTS...)...)"

That's not correct (not complete):
 (NAME OPTIONS...) can also be just NAME.
 (SLOT SLOT-OPTS...) can also be just SLOT.

Also, the rest of the doc string is not understandable:

"This macro defines a new Lisp data type called NAME, which contains data
stored in SLOTs.  This defines a `make-NAME' constructor, a `copy-NAME'
copier, a `NAME-p' predicate, and setf-able `NAME-SLOT' accessors."

NAME and SLOT are not described before this paragraph, and they are
not adequately described by the (incorrect) syntax description.
"Stored in SLOTs" should be "Stored in slots" (cannot substitute for
the parameter name to get anything that makes sense).  And what a slot
is needs to be explained a bit (minimal description).


In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'









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

* bug#5267: 23.1; doc string of defstruct
  2009-10-06 18:46 bug#4655: 23.1.50; buffer-swap-text oddity Markus Rost
@ 2010-01-16 20:05 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2010-01-16 20:05 UTC (permalink / raw)
  To: Drew Adams; +Cc: 5267

> Doc string says:
>
> "(defstruct (NAME OPTIONS...) (SLOT SLOT-OPTS...)...)"
>
> That's not correct (not complete):
>  (NAME OPTIONS...) can also be just NAME.
>  (SLOT SLOT-OPTS...) can also be just SLOT.
>
> Also, the rest of the doc string is not understandable:

I have tweaked the docstring to make it more understandable.  Thanks.






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

end of thread, other threads:[~2010-01-16 20:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-25  7:50 bug#5267: 23.1; doc string of defstruct Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2009-10-06 18:46 bug#4655: 23.1.50; buffer-swap-text oddity Markus Rost
2010-01-16 20:05 ` bug#5267: 23.1; doc string of defstruct Chong Yidong

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.