From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mafeusek@gmail.com Newsgroups: gmane.emacs.help Subject: Re: To Drew Adams?: `dired-get-marked-files' returns error when not onfile Date: Thu, 08 Jul 2010 09:27:30 +0200 Organization: education Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278574098 26693 80.91.229.12 (8 Jul 2010 07:28:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Jul 2010 07:28:18 +0000 (UTC) Cc: 'emacs mailing list' To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 08 09:28:15 2010 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.69) (envelope-from ) id 1OWlWp-0006b5-4N for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jul 2010 09:28:15 +0200 Original-Received: from localhost ([127.0.0.1]:36248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWlWn-00077m-TS for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jul 2010 03:28:13 -0400 Original-Received: from [140.186.70.92] (port=34784 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWlW5-00077g-9x for help-gnu-emacs@gnu.org; Thu, 08 Jul 2010 03:27:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWlW4-0005IU-B9 for help-gnu-emacs@gnu.org; Thu, 08 Jul 2010 03:27:29 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:53414) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWlW4-0005IK-5Y for help-gnu-emacs@gnu.org; Thu, 08 Jul 2010 03:27:28 -0400 Original-Received: by fxm20 with SMTP id 20so234335fxm.0 for ; Thu, 08 Jul 2010 00:27:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:x-mailer :organization:references:from:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=mSsyWC0uVYdBAY+3OtzDYBCE7cOMuWoDo7j3FEuT+gM=; b=VBZUhQXIncxSTyPhlqQOWZO2Ce7q7M1SwuuT4hNZwkkNoNskLOaflwY1bwwEMk90r7 b6bw2JUWnpcku/1sNjp5B4wOTenskFEW+zg2SvU6Gm1C03O6mlMYUzA5jCM1NjsYvoBz VswvTy1Pi1D8LZcjB5zzQdDeCZQWsnrYuD4bU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:x-mailer:organization:references:from:date :in-reply-to:message-id:user-agent:mime-version:content-type; b=JxOE0lfTP6DUkohnU1FvPl6RqNsoUsIIlRPNIy3mJqEo2YtzSL8T97847WiNdHonKy sB1HaBt0tq3IULQHv+k6fWHltZLCrLbJZW7STN2y9qnKBakAel2j1bG9IAML4FHMezZh LE3mO/FYboAfqM8Stdu5H14gdpIdEqFeT+MQM= Original-Received: by 10.223.104.212 with SMTP id q20mr363873fao.18.1278574044527; Thu, 08 Jul 2010 00:27:24 -0700 (PDT) Original-Received: from localhost.localdomain (chello089072240053.chello.pl [89.72.240.53]) by mx.google.com with ESMTPS id z16sm16348644fan.24.2010.07.08.00.27.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Jul 2010 00:27:23 -0700 (PDT) X-MAILER: KMail/1.7.1 In-Reply-To: (Drew Adams's message of "Tue, 6 Jul 2010 14:10:05 -0700") User-Agent: mozilla news reader X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:74131 Archived-At: "Drew Adams" writes: > However, the particular error you are concerned about is not distinguished from > any other errors this way: any error condition here will return nil instead of > raising an error. Hallo Drew. The above is what concerns me most. I'd consider pointer not on file is not an error, esspecialy not in non-interactive invocations. What I am trying to do: I am going to write a function that invokes command on: a) files marked explicitly (ie. by `m') or, b) all files in directory if there are not marked files. while acting non-interactivelly, it is hard to do it, unless I want to hide all the errors with `condition-case' which I think is not reasoanble. On the other hand in interactive invocation, error is helpful, thus maybe good enough choice would be to have optional pointer-away-no-error flag? best regards, Pawel