From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#12758: letf no longer allows unbound variables Date: Mon, 29 Oct 2012 03:42:28 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1351496566 6687 80.91.229.3 (29 Oct 2012 07:42:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2012 07:42:46 +0000 (UTC) To: 12758@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 08:42:55 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TSjzm-0006Ts-Kt for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2012 08:42:50 +0100 Original-Received: from localhost ([::1]:40713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSjze-0002hh-Fv for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2012 03:42:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSjzb-0002b8-6J for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 03:42:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSjza-0001ZX-4d for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 03:42:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSjza-0001ZT-1h for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 03:42:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TSk1u-0007Ft-6g for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2012 03:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Oct 2012 07:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12758 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135149669827863 (code B ref -1); Mon, 29 Oct 2012 07:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2012 07:44:58 +0000 Original-Received: from localhost ([127.0.0.1]:37315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSk1p-0007FL-7M for submit@debbugs.gnu.org; Mon, 29 Oct 2012 03:44:57 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:42229) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSk1n-0007FE-1C for submit@debbugs.gnu.org; Mon, 29 Oct 2012 03:44:55 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TSjzQ-0004lv-Me; Mon, 29 Oct 2012 03:42:28 -0400 X-Spook: Al-Qaeda Arnett John Kerry oil Montenegro S Key espionage X-Ran: WY1?:Iuy`,j List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66167 Archived-At: Package: emacs Version: 24.2.50 In Emacs 24.2, this works: emacs -Q -l cl (letf ((b)) (setq b 99)) Evaluating this returns `99', and leaves `b' unbound. This behaviour is documented in cl.texi: In most cases, the @var{place} must have a well-defined value on entry to the @code{letf} form. The only exceptions are plain variables and calls to @code{symbol-value} and @code{symbol-function}. If the symbol is not bound on entry, it is simply made unbound by @code{makunbound} or @code{fmakunbound} on exit. In current trunk, it throws an error: Symbol's value as variable is void: b cl-letf does no better than letf.