all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Tassilo Horn <tassilo@member.fsf.org>,
	Lennart Borgman <lennart.borgman@gmail.com>,
	Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: # in my waste basket
Date: Wed, 14 Oct 2009 09:18:03 -0400	[thread overview]
Message-ID: <jwv7huy86cf.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87vdiiff5m.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Wed, 14 Oct 2009 19:23:01 +0900")

> `delete-file' should make the decision based on whether it is
> called-interactively-p.  `dired-remove-file' can use
> `call-interactively' to pass that information to it.

But with call-interactively, it can't specify the file to delete.

Maybe a better way is to have 2 functions.  A low-level one (what used
to be `delete-file') that is not meant for interactive use and that is
a file operation, and a higher-level one for interactive use which is
not a file operation and which uses the Trash if applicable.


        Stefan




  reply	other threads:[~2009-10-14 13:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13 21:24 # in my waste basket Lennart Borgman
2009-10-14  7:09 ` Tassilo Horn
2009-10-14 10:23   ` Stephen J. Turnbull
2009-10-14 13:18     ` Stefan Monnier [this message]
2009-10-14 16:50       ` Wild idea for call-interactively [was: # in my waste basket] Stephen J. Turnbull

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=jwv7huy86cf.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --cc=stephen@xemacs.org \
    --cc=tassilo@member.fsf.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.