From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seb Newsgroups: gmane.emacs.help Subject: checking for nil argument in interactive Date: Sun, 09 Nov 2008 14:57:22 -0600 Organization: Church of Emacs Message-ID: <87ej1kr51p.fsf@patagonia.sebmags.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1226264870 21600 80.91.229.12 (9 Nov 2008 21:07:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2008 21:07:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 09 22:08:53 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KzHWe-0006iw-Pa for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Nov 2008 22:08:53 +0100 Original-Received: from localhost ([127.0.0.1]:33566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzHVW-0002j6-Ue for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Nov 2008 16:07:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzHSV-0001xQ-M4 for help-gnu-emacs@gnu.org; Sun, 09 Nov 2008 16:04:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzHSJ-0001o0-FS for help-gnu-emacs@gnu.org; Sun, 09 Nov 2008 16:04:30 -0500 Original-Received: from [199.232.76.173] (port=40516 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzHSI-0001lH-LR for help-gnu-emacs@gnu.org; Sun, 09 Nov 2008 16:04:22 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:51594 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KzHLl-00065u-1Q for help-gnu-emacs@gnu.org; Sun, 09 Nov 2008 15:57:37 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KzHLe-000344-GC for help-gnu-emacs@gnu.org; Sun, 09 Nov 2008 20:57:30 +0000 Original-Received: from s01060015e975d7fb.wp.shawcable.net ([24.77.75.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Nov 2008 20:57:30 +0000 Original-Received: from spluque by s01060015e975d7fb.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Nov 2008 20:57:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: s01060015e975d7fb.wp.shawcable.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:IMSVf89lT4ccLBHo1zauSYmF4oY= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59593 Archived-At: Hi, I don't understand why the following arg symbol doesn't get set to "string": (defun funny-function (arg) (interactive "sarg: ") (if (not arg) (setq arg "string")) (message "arg: %s" arg)) To test: M-x funny-function RET RET I've also tried (eq "" arg) for the if boolean but get the same result. Any advice would be appreciated. Cheers, -- Seb