all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: emacs-devel@gnu.org
Subject: Re: bug: epg send unencrypted data in trash
Date: Sat, 12 Feb 2011 13:49:40 -0500	[thread overview]
Message-ID: <874o89nl4r.fsf@stupidchicken.com> (raw)
In-Reply-To: <8762spo1gw.fsf@lifelogs.com> (Ted Zlatanov's message of "Sat, 12 Feb 2011 06:56:47 -0600")

Ted Zlatanov <tzz@lifelogs.com> writes:

> How does TRASH get set based on called-interactively-p, as claimed by
> the docstring?
>
> DEFUN ("delete-file", Fdelete_file, Sdelete_file, 1, 2,
>        "(list (read-file-name \
>                 (if (and delete-by-moving-to-trash (null current-prefix-arg)) \
>                     \"Move file to trash: \" \"Delete file: \") \
>                 nil default-directory (confirm-nonexistent-file-or-buffer)) \
>               (null current-prefix-arg))",
>        doc: /* Delete file named FILENAME.  If it is a symlink, remove the symlink.
> If file has multiple names, it continues to exist with the other names.
> TRASH non-nil means to trash the file instead of deleting, provided
> `delete-by-moving-to-trash' is non-nil.
>
> When called interactively, TRASH is t if no prefix argument is given.
> With a prefix argument, TRASH is nil.  */)
>
> I don't see anything in the body of the function to set TRASH, either.
> Is it claimed because we assume `current-prefix-arg' is always null
> non-interactively and `universal-arg' is always called interactively?

Er, I'm not sure I understand what the confusion is about.  The above
interactive spec is run if and only if delete-file is called
interactively.  That's what interactive specs do---provide the arguments
for an interactive call.



  reply	other threads:[~2011-02-12 18:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-11  7:29 bug: epg send unencrypted data in trash Thierry Volpiatto
2011-02-11 18:16 ` Thierry Volpiatto
2011-02-11 19:54   ` Ted Zlatanov
2011-02-11 21:05     ` Thierry Volpiatto
2011-02-11 22:14       ` Ted Zlatanov
2011-02-12  0:23         ` Chong Yidong
2011-02-12  7:08           ` Thierry Volpiatto
2011-02-12 12:56           ` Ted Zlatanov
2011-02-12 18:49             ` Chong Yidong [this message]
2011-02-12 19:06               ` Ted Zlatanov

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=874o89nl4r.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=tzz@lifelogs.com \
    /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.