unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22006: 24.5; Documentation string for while
@ 2015-11-24 20:55 phs
  2019-08-01 17:28 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: phs @ 2015-11-24 20:55 UTC (permalink / raw)
  To: 22006

M-h f while

returns:

"while is a special form in `C source code'.

(while TEST BODY...)

If TEST yields non-nil, eval BODY... and repeat.
The order of execution is thus TEST, BODY, TEST, BODY and so on
until TEST returns nil."

The documentation does not say that the form itself returns nil.



In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
  of 2015-04-10 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1404
Configured using:
  `configure --with-ns '--enable-locallisppath=/Library/Application
  Support/Emacs/${version}/site-lisp:/Library/Application 
Support/Emacs/site-lisp''

Important settings:
   value of $LC_ALL: en_US
   value of $LANG: en_US
   locale-coding-system: utf-8-unix

-- 
Philippe SCHNOEBELEN,       	                  www.lsv.ens-cachan.fr/~phs
LSV, CNRS UMR 8643 & ENS de Cachan   		  Tel: (+33/0) 147 407 530
"Algebraic symbols are used when you do not know what you are talking about"






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

* bug#22006: 24.5; Documentation string for while
  2015-11-24 20:55 bug#22006: 24.5; Documentation string for while phs
@ 2019-08-01 17:28 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-01 17:28 UTC (permalink / raw)
  To: phs; +Cc: 22006

phs <phs@lsv.fr> writes:

> M-h f while
>
> returns:
>
> "while is a special form in `C source code'.
>
> (while TEST BODY...)
>
> If TEST yields non-nil, eval BODY... and repeat.
> The order of execution is thus TEST, BODY, TEST, BODY and so on
> until TEST returns nil."
>
> The documentation does not say that the form itself returns nil.

(I'm going through old bug reports that have unfortunately not gotten
any responses.)

The manual does:

The value of a @code{while} form is always @code{nil}.

So I guess the doc string should, too.  I've now made this change in
Emacs 27.

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





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

end of thread, other threads:[~2019-08-01 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24 20:55 bug#22006: 24.5; Documentation string for while phs
2019-08-01 17:28 ` Lars Ingebrigtsen

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).