From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Hacksaw Newsgroups: gmane.emacs.bugs Subject: Bug? Won't eval an 'if' sexp? Date: Sun, 26 Jan 2003 03:23:38 -0500 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200301260823.h0Q8NcHH016672@habitrail.home.fools-errant.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043569385 31094 80.91.224.249 (26 Jan 2003 08:23:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2003 08:23:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ci4E-00085B-00 for ; Sun, 26 Jan 2003 09:23:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ci5g-0002xu-02 for gnu-bug-gnu-emacs@m.gmane.org; Sun, 26 Jan 2003 03:24:32 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ci51-0001cD-00 for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2003 03:23:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ci4q-00013X-00 for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2003 03:23:42 -0500 Original-Received: from hacksaw.org ([216.41.5.170] helo=habitrail.home.fools-errant.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ci4p-00010c-00 for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2003 03:23:39 -0500 Original-Received: from habitrail.home.fools-errant.com (localhost [127.0.0.1]) h0Q8NcfB016676 for ; Sun, 26 Jan 2003 03:23:38 -0500 Original-Received: from habitrail.home.fools-errant.com (hacksaw@localhost) id h0Q8NcHH016672 for ; Sun, 26 Jan 2003 03:23:38 -0500 X-Mailer: exmh version 2.5 08/15/2002 with nmh-1.0.4 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4313 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4313 I added this to my .emacs under version 20.7: (if (eq (user-uid) 0) (message "You're uid 0, no desktop") (lambda () (message "setting up desktop") (custom-set-variables '(desktop-enable t nil (desktop))) (desktop-load-default) (desktop-read) ) ) It worked just fine. Under 21.2 it's not evaluated correctly. Doing a eval lst sexp, it returns the lamda, I guess implying that it's not evaluating it? [What I see in the *Message* buffer] (lambda nil (message "setting up desktop") (custom-set-variables (quote (desktop-enable t nil ...))) (desktop-load-default) (desktop-read)) Anyone know what's up? -- Life is too short to take on the unnecessary. http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD