From: mafeusek@gmail.com
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 'emacs mailing list' <help-gnu-emacs@gnu.org>
Subject: Re: To Drew Adams?: `dired-get-marked-files' returns error when not onfile
Date: Thu, 08 Jul 2010 09:27:30 +0200 [thread overview]
Message-ID: <umt47hl6fn6l.fsf@gmail.com> (raw)
In-Reply-To: <FC6BBF10F49044C8A8F9F1F2A5AB7A6A@us.oracle.com> (Drew Adams's message of "Tue, 6 Jul 2010 14:10:05 -0700")
"Drew Adams" <drew.adams@oracle.com> 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
next prev parent reply other threads:[~2010-07-08 7:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 20:46 To Drew Adams?: `dired-get-marked-files' returns error when not on file mafeusek
2010-07-06 20:58 ` Deniz Dogan
2010-07-06 21:10 ` To Drew Adams?: `dired-get-marked-files' returns error when not onfile Drew Adams
2010-07-07 16:39 ` To Drew Adams?: `dired-get-marked-files' returns error when notonfile Drew Adams
2010-07-08 7:27 ` mafeusek [this message]
2010-07-08 13:32 ` To Drew Adams?: `dired-get-marked-files' returns error when not onfile Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=umt47hl6fn6l.fsf@gmail.com \
--to=mafeusek@gmail.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.