GNU bug report logs -
#8452
24.0.50; doc of `pp' and related functions
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Fri, 8 Apr 2011 17:31:02 UTC
Severity: minor
Tags: fixed
Found in version 24.0.50
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8452 in the body.
You can then email your comments to 8452 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8452
; Package
emacs
.
(Fri, 08 Apr 2011 17:31:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 08 Apr 2011 17:31:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
1. Please add to the doc (e.g. doc strings) for `pp' and similar
functions a mention of the various `print-*' variables that are
respected and (if any) not respected. In particular, `print-circle'.
2. Please document `pp' and its relatives in the Elisp manual, and index
them.
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2011-04-04 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/imagesupport/include'
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 02 Jul 2011 13:09:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
8452 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 02 Jul 2011 13:09:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8452
; Package
emacs
.
(Sat, 02 Jul 2011 13:18:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 8452 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 1. Please add to the doc (e.g. doc strings) for `pp' and similar
> functions a mention of the various `print-*' variables that are
> respected and (if any) not respected. In particular, `print-circle'.
I've had a look at the source code, and as far as I can see, it doesn't
handle any of the `print-*' variables explicitly, but leaves that to
princ and friends.
So I don't think there's anything there much to add to the doc strings.
> 2. Please document `pp' and its relatives in the Elisp manual, and index
> them.
Ok; done.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8452
; Package
emacs
.
(Sat, 02 Jul 2011 15:11:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 8452 <at> debbugs.gnu.org (full text, mbox):
> > 1. Please add to the doc (e.g. doc strings) for `pp' and similar
> > functions a mention of the various `print-*' variables that are
> > respected and (if any) not respected. In particular,
> > `print-circle'.
>
> I've had a look at the source code, and as far as I can see,
> it doesn't handle any of the `print-*' variables explicitly,
> but leaves that to princ and friends.
>
> So I don't think there's anything there much to add to the
> doc strings.
1. Users should not need to dive into the `pp' source code to discover its
behavior. The doc string should describe that. And its behavior is designed to
change with these vars. Those behavior differences need to be pointed out.
Those print-* vars are specifically designed to influence the behavior of the
print functions, and the doc for the print functions should call that out. It's
about the behavior ("interface") of the function, not its implementation.
2. That `pp' does its work using `princ' etc. is irrelevant to describing its
behavior. Unless, that is, we must punt for some reason and explicitly say "see
XYZ for how `pp' behaves with respect to variables A, B, C".
If you do that, OK. But that would likely be more long-winded than to just say
directly that the behavior of `pp' depends on those vars. In general, it is
better for the behavior of `pp' to be called out in its own doc, rather than to
refer to the behavior of other functions. It's about user convenience - why add
indirection?
3. This bug is not just about `pp'. It is about (the doc of)
"`pp' and similar functions":
pp
pp-buffer
pp-display-expression
pp-eval-expression
pp-eval-last-sexp
pp-last-sexp
pp-macroexpand-expression
pp-macroexpand-last-sexp
pp-to-string
Some of these are even commands. Users should especially know about the command
behaviors wrt the print-* vars. Variable `print-circle' is even
`user-variable-p': a variable intended to be modified by users.
> > 2. Please document `pp' and its relatives in the Elisp
> > manual, and index them.
>
> Ok; done.
Thanks.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8452
; Package
emacs
.
(Sat, 02 Jul 2011 15:49:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 8452 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 1. Users should not need to dive into the `pp' source code to discover
> its behavior. The doc string should describe that. And its behavior
> is designed to change with these vars. Those behavior differences
> need to be pointed out.
Not even `princ' describes what is does with the myriad `print-*'
variables. I think the assumption is that someone who uses the Lisp
printer are aware that these things exist, and repeating it in all the
print-related function is unnecessary.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 31 Jul 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 333 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.