all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: doc strings of reverse and nreverse.
Date: Wed, 19 Nov 2003 22:29:25 -0600 (CST)	[thread overview]
Message-ID: <200311200429.hAK4TPj07755@raven.dms.auburn.edu> (raw)
In-Reply-To: <200311200410.hAK4Axt07727@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 19 Nov 2003 22:10:59 -0600 (CST))

I took a look at the C code of Freverse and Fnreverse and they do
indeed always return the entire reversed list (except when they throw
an error, of course).  So why those confusing doc strings?  The
following would get rid of them.  I could commit if desired.


===File ~/fns-diff==========================================
cd ~/emacscvsdir/emacs/src/
diff -c /home/teirllm/fns.old.c /home/teirllm/emacscvsdir/emacs/src/fns.c
*** /home/teirllm/fns.old.c	Mon Nov 17 21:24:17 2003
--- /home/teirllm/emacscvsdir/emacs/src/fns.c	Wed Nov 19 22:22:57 2003
***************
*** 1840,1846 ****
  
  DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0,
         doc: /* Reverse LIST by modifying cdr pointers.
! Returns the beginning of the reversed list.  */)
       (list)
       Lisp_Object list;
  {
--- 1840,1846 ----
  
  DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0,
         doc: /* Reverse LIST by modifying cdr pointers.
! Return the reversed list.  */)
       (list)
       Lisp_Object list;
  {
***************
*** 1863,1869 ****
  }
  
  DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0,
!        doc: /* Reverse LIST, copying.  Returns the beginning of the reversed list.
  See also the function `nreverse', which is used more often.  */)
       (list)
       Lisp_Object list;
--- 1863,1869 ----
  }
  
  DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0,
!        doc: /* Reverse LIST, copying.  Return the reversed list.
  See also the function `nreverse', which is used more often.  */)
       (list)
       Lisp_Object list;

Diff finished at Wed Nov 19 22:23:49
============================================================

  reply	other threads:[~2003-11-20  4:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20  4:10 doc strings of reverse and nreverse Luc Teirlinck
2003-11-20  4:29 ` Luc Teirlinck [this message]
2003-11-20 10:42 ` Kim F. Storm
2003-11-21  5:12   ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311200429.hAK4TPj07755@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.