all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24316: Mistake in GNU Emacs Lisp Reference Manual, Section 5.3
@ 2016-08-26 20:53 Eric Wayman
  2016-08-26 21:04 ` Ken Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wayman @ 2016-08-26 20:53 UTC (permalink / raw)
  To: 24316

With respect to

 -- Function: safe-length list

the text says

    "If LIST is not ‘nil’ or a cons cell, ‘safe-length’ returns 0."

But running

    (safe-length nil)

gives 0.

Best regards,
Eric Alan Wayman





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

* bug#24316: Mistake in GNU Emacs Lisp Reference Manual, Section 5.3
  2016-08-26 20:53 bug#24316: Mistake in GNU Emacs Lisp Reference Manual, Section 5.3 Eric Wayman
@ 2016-08-26 21:04 ` Ken Brown
       [not found]   ` <20160826170517.71887c34@debian>
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Brown @ 2016-08-26 21:04 UTC (permalink / raw)
  To: Eric Wayman, 24316

On 8/26/2016 4:53 PM, Eric Wayman wrote:
> With respect to
>
>  -- Function: safe-length list
>
> the text says
>
>     "If LIST is not ‘nil’ or a cons cell, ‘safe-length’ returns 0."
>
> But running
>
>     (safe-length nil)
>
> gives 0.

That case is covered by the first paragraph of the documentation, which 
you didn't quote:

      This function returns the length of LIST, with no risk of either an
      error or an infinite loop.  It generally returns the number of
      distinct cons cells in the list.  However, for circular lists, the
      value is just an upper bound; it is often too large.

Ken





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

* bug#24316: Mistake in GNU Emacs Lisp Reference Manual, Section 5.3
       [not found]   ` <20160826170517.71887c34@debian>
@ 2016-08-26 22:20     ` Ken Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Brown @ 2016-08-26 22:20 UTC (permalink / raw)
  To: Eric Wayman; +Cc: 24316-done

On 8/26/2016 5:05 PM, Eric Wayman wrote:
> Dear Ken,
>
> I misunderstood; excuse me for taking your time!

No problem.  I'm closing the bug.

Ken






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

end of thread, other threads:[~2016-08-26 22:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-26 20:53 bug#24316: Mistake in GNU Emacs Lisp Reference Manual, Section 5.3 Eric Wayman
2016-08-26 21:04 ` Ken Brown
     [not found]   ` <20160826170517.71887c34@debian>
2016-08-26 22:20     ` Ken Brown

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.