all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harvey Chapman <hchapman@3gfp.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21340@debbugs.gnu.org
Subject: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Mon, 24 Aug 2015 13:49:33 -0400	[thread overview]
Message-ID: <70E8D053-E9ED-4E5A-8BB4-36BDA8B4BDA8@3gfp.com> (raw)
In-Reply-To: <831tesh9t6.fsf@gnu.org>


> On Aug 24, 2015, at 1:32 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> 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.

I guess I considered it a bug, because `system-move-file-to-trash` is
used by Emacs for Windows to put files in the correct location. If Emacs
can cater to Windows, surely it can cater to another very largely used
OS? Emacs putting files in ~/.local on OSX just makes it appear that it
doesn’t know what it is doing.

Thank you all the same.






  reply	other threads:[~2015-08-24 17:49 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
2015-08-24 17:49   ` Harvey Chapman [this message]
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

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

  git send-email \
    --in-reply-to=70E8D053-E9ED-4E5A-8BB4-36BDA8B4BDA8@3gfp.com \
    --to=hchapman@3gfp.com \
    --cc=21340@debbugs.gnu.org \
    --cc=eliz@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.