From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lee Duhem Newsgroups: gmane.emacs.devel Subject: Why do Fdefvar not protect its argument and temporaries with GCPRO? Date: Wed, 19 Nov 2014 10:48:44 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1416365344 30622 80.91.229.3 (19 Nov 2014 02:49:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2014 02:49:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 19 03:48:53 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XqvK9-0003Yw-AR for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 03:48:53 +0100 Original-Received: from localhost ([::1]:56268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqvK8-00027x-NP for ged-emacs-devel@m.gmane.org; Tue, 18 Nov 2014 21:48:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqvK4-00027o-R4 for emacs-devel@gnu.org; Tue, 18 Nov 2014 21:48:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqvK1-0006ju-O0 for emacs-devel@gnu.org; Tue, 18 Nov 2014 21:48:48 -0500 Original-Received: from mail-qg0-x233.google.com ([2607:f8b0:400d:c04::233]:63362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqvK1-0006jn-Jy for emacs-devel@gnu.org; Tue, 18 Nov 2014 21:48:45 -0500 Original-Received: by mail-qg0-f51.google.com with SMTP id l89so3867784qgf.38 for ; Tue, 18 Nov 2014 18:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HG2OzTX6D6fA9PzK5OJZhzPgJ2S3RXKaNB/rFD2hpRg=; b=GMQ43jbVzxT2/+q8kj0I1Gq3jF9yk39QUalVQOR9/Aeekl+ipvDptLETV84ZjyJTBy ncSPia9ZB4k9L4jCnBClnzgH5rVWgoRC6pxuD8yQJc/o1dscsaZLLYM5fk9dgsa/aibe 5eOhOtCCI8mJFXadm1kxDLw9k4zkD2P13QtIgYJty3W6tB4zOrq9xZYEEWyFvffhRIGy SRtt8q8h0wmwZ7HMGvLDi1aEhfRqkZRv+QFfV514SmwYYqBhOSrA+Ujb74LUWALSJClB MJT8i2uLUdioH9w6WOjyCJaxdm7SIUj+YSoxw8k+U/+riO8uvgKALiH61/nw1WZrTTMM 8ouQ== X-Received: by 10.224.223.129 with SMTP id ik1mr5365980qab.68.1416365324863; Tue, 18 Nov 2014 18:48:44 -0800 (PST) Original-Received: by 10.140.37.37 with HTTP; Tue, 18 Nov 2014 18:48:44 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177703 Archived-At: Hi all, In the definition of `Fdefvar`, it calls `eval_sub`, and its temporary variable `tail` is used after that call. So why do `Fdefvar` not protect `tail` and other temporaries from GC with GCPRO? As other functions in `src/eval.c` did. Is this a bug? Or did I overlook something? Sincerely, lee