unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Harvey Chapman <hchapman@3gfp.com>
Cc: 21340@debbugs.gnu.org
Subject: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Mon, 24 Aug 2015 20:32:05 +0300	[thread overview]
Message-ID: <831tesh9t6.fsf@gnu.org> (raw)
In-Reply-To: <A3F18666-3FD9-4A83-87F8-F94AC311DE15@3gfp.com>

> From: Harvey Chapman <hchapman@3gfp.com>
> Date: Mon, 24 Aug 2015 12:55:19 -0400
> 
> I set "(setq delete-by-moving-to-trash t)", and emacs moved
> deleted files to ~/.local/share/Trash, the FreeDesktop location.

As expected.

> The files should have been moved to ~/.Trash, the standard OSX
> location. I was deleting files in my home directory using dired.
> 
> Work around: (setq trash-directory "~/.Trash")

You need to customize that variable to point to the directory where
you want your trash.  The doc string says:

    Directory for `move-file-to-trash' to move files and directories to.
  This directory is only used when the function `system-move-file-to-trash'
  is not defined.
  Relative paths are interpreted relative to `default-directory'.
  If the value is nil, Emacs uses a freedesktop.org-style trashcan.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The default is nil, so what you see is Emacs functioning as designed.





  reply	other threads:[~2015-08-24 17:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 16:55 bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX Harvey Chapman
2015-08-24 17:32 ` Eli Zaretskii [this message]
2015-08-24 17:49   ` Harvey Chapman
2015-08-24 18:03     ` Eli Zaretskii
2015-08-25  1:55       ` Glenn Morris
2015-08-25 22:18         ` Stefan Monnier
2021-12-02  9:31           ` Lars Ingebrigtsen
2021-12-02 21:58             ` Alan Third
2021-12-03 16:16               ` Lars Ingebrigtsen
2021-12-03 23:02                 ` Alan Third
2021-12-03 23:11                   ` Lars Ingebrigtsen
2021-12-04 10:45                     ` Alan Third

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831tesh9t6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21340@debbugs.gnu.org \
    --cc=hchapman@3gfp.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).