unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: No GCPRO in directory-files and directory-files-and-attributes
Date: Tue, 09 Dec 2003 16:49:46 -0500	[thread overview]
Message-ID: <E1ATpjm-0000NV-Mz@fencepost.gnu.org> (raw)
In-Reply-To: <3FCBC193.2080509@math.ku.dk> (message from Lars Hansen on Mon, 01 Dec 2003 23:32:51 +0100)

    In dired.c I have noticed that file name handlers are called using the
    function call<n> from eval.c. However, there are two exceptions, the
    calls in functions Fdirectory-files and Fdirectory-files-and-attributes
    where Ffuncall is used instead. This means that the arguments are not
    protected with GCPRO.

Calling call1 etc. does not GCPRO the variables from which the
argument values are obtained, any more than calling Ffuncall does.
When calling Ffuncall, you need to GCPRO the vector of arguments,
but only if the values are live.

			  Is this intensional or is it a bug?

I don't think there is a bug.  Those values will never be used again,
so they don't need to be GCPRO'd.

  reply	other threads:[~2003-12-09 21:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-01 22:32 No GCPRO in directory-files and directory-files-and-attributes Lars Hansen
2003-12-09 21:49 ` Richard Stallman [this message]
2003-12-10 18:45   ` Lars Hansen
2003-12-22  4:08     ` Richard Stallman
2003-12-22  7:22       ` Lars Hansen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1ATpjm-0000NV-Mz@fencepost.gnu.org \
    --to=rms@gnu.org \
    --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 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).