GNU bug report logs - #21340
24.5; trash-directory uses FreeDesktop location on OSX

Previous Next

Package: emacs;

Reported by: Harvey Chapman <hchapman <at> 3gfp.com>

Date: Mon, 24 Aug 2015 17:22:02 UTC

Severity: minor

Tags: moreinfo

Found in version 24.5

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21340 in the body.
You can then email your comments to 21340 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Mon, 24 Aug 2015 17:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Harvey Chapman <hchapman <at> 3gfp.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 24 Aug 2015 17:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Harvey Chapman <hchapman <at> 3gfp.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; trash-directory uses FreeDesktop location on OSX
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.
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")

I get emacs from http://emacsformacosx.com/



In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
of 2015-04-10 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1348
Configured using:
`configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp''

Important settings:
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  subword-mode: t
  show-paren-mode: t
  savehist-mode: t
  which-function-mode: t
  desktop-save-mode: t
  override-global-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Loading sh-script...done
Setting up indent for shell type sh
Indentation variables are now local.
Indentation setup for shell type sh
Loading ruby-mode...done
Wrote /Users/hchapman/.emacs.d/desktop/.emacs.desktop.lock
Desktop: 18 buffers restored.
For information about GNU Emacs and the GNU system, type C-h C-a.
Trashing...done
Making completion list...

Load-path shadows:
~/.emacs.d/lisp/go-mode.el/go-mode hides ~/.emacs.d/lisp/go-mode
~/.emacs.d/lisp/expand-region hides /Users/hchapman/.emacs.d/elpa/expand-region-20150525.205/expand-region
~/.emacs.d/lisp/helm/helm hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm
~/.emacs.d/lisp/helm/helm-utils hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-utils
~/.emacs.d/lisp/helm/helm-tags hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-tags
~/.emacs.d/lisp/helm/helm-sys hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-sys
~/.emacs.d/lisp/helm/helm-source hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-source
~/.emacs.d/lisp/helm/helm-semantic hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-semantic
~/.emacs.d/lisp/helm/helm-ring hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-ring
~/.emacs.d/lisp/helm/helm-regexp hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-regexp
~/.emacs.d/lisp/helm/helm-plugin hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-plugin
~/.emacs.d/lisp/helm/helm-pkg hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-pkg
~/.emacs.d/lisp/helm/helm-org hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-org
~/.emacs.d/lisp/helm/helm-net hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-net
~/.emacs.d/lisp/helm/helm-mode hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-mode
~/.emacs.d/lisp/helm/helm-misc hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-misc
~/.emacs.d/lisp/helm/helm-match-plugin hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-match-plugin
~/.emacs.d/lisp/helm/helm-man hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-man
~/.emacs.d/lisp/helm/helm-locate hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-locate
~/.emacs.d/lisp/helm/helm-info hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-info
~/.emacs.d/lisp/helm/helm-imenu hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-imenu
~/.emacs.d/lisp/helm/helm-help hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-help
~/.emacs.d/lisp/helm/helm-grep hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-grep
~/.emacs.d/lisp/helm/helm-font hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-font
~/.emacs.d/lisp/helm/helm-files hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-files
~/.emacs.d/lisp/helm/helm-external hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-external
~/.emacs.d/lisp/helm/helm-eval hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-eval
~/.emacs.d/lisp/helm/helm-eshell hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-eshell
~/.emacs.d/lisp/helm/helm-elscreen hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-elscreen
~/.emacs.d/lisp/helm/helm-elisp hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-elisp
~/.emacs.d/lisp/helm/helm-elisp-package hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-elisp-package
~/.emacs.d/lisp/helm/helm-dabbrev hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-dabbrev
~/.emacs.d/lisp/helm/helm-config hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-config
~/.emacs.d/lisp/helm/helm-command hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-command
~/.emacs.d/lisp/helm/helm-color hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-color
~/.emacs.d/lisp/helm/helm-buffers hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-buffers
~/.emacs.d/lisp/helm/helm-bookmark hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-bookmark
~/.emacs.d/lisp/helm/helm-autoloads hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-autoloads
~/.emacs.d/lisp/helm/helm-apt hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-apt
~/.emacs.d/lisp/helm/helm-aliases hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-aliases
~/.emacs.d/lisp/helm/helm-adaptive hides /Users/hchapman/.emacs.d/elpa/helm-20150622.857/helm-adaptive
~/.emacs.d/lisp/desktop hides /Users/hchapman/Applications/Emacs.app/Contents/Resources/lisp/desktop

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils help-mode ruby-mode
sh-script smie executable conf-mode vc-git cc-langs cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
dired vc-hg superword subword advice markdown-mode noutline outline
go-mode derived find-file ffap thingatpt etags metar url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util url-parse auth-source eieio byte-opt eieio-core gnus-util
mm-util mail-prsvr password-cache url-vars mailcap solar cal-dst
cal-menu calendar cal-loaddefs rx format-spec calc-units calc-ext calc
calc-loaddefs calc-macs paren savehist cus-start cus-load which-func
imenu xcscope ring easymenu desktop comint-scroll-to-bottom undo-tree
help-fns diff edmacro kmacro server use-package cl-macs cl gv diminish
bytecomp byte-compile cl-extra cconv bind-key easy-mmode cl-loaddefs
cl-lib package epg-config time-date tooltip electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process cocoa ns
multi-tty emacs)

Memory information:
((conses 16 271724 10178)
(symbols 48 33317 0)
(miscs 40 440 257)
(strings 32 58404 7719)
(string-bytes 1 1639691)
(vectors 16 22480)
(vector-slots 8 536265 7901)
(floats 8 439 229)
(intervals 56 1291 0)
(buffers 960 30))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Mon, 24 Aug 2015 17:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Harvey Chapman <hchapman <at> 3gfp.com>
Cc: 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Mon, 24 Aug 2015 20:32:05 +0300
> From: Harvey Chapman <hchapman <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Mon, 24 Aug 2015 17:50:04 GMT) Full text and rfc822 format available.

Message #11 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Harvey Chapman <hchapman <at> 3gfp.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Mon, 24 Aug 2015 13:49:33 -0400
> On Aug 24, 2015, at 1:32 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> From: Harvey Chapman <hchapman <at> 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.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Mon, 24 Aug 2015 18:05:02 GMT) Full text and rfc822 format available.

Message #14 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Harvey Chapman <hchapman <at> 3gfp.com>
Cc: 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Mon, 24 Aug 2015 21:03:59 +0300
> From: Harvey Chapman <hchapman <at> 3gfp.com>
> Date: Mon, 24 Aug 2015 13:49:33 -0400
> Cc: 21340 <at> debbugs.gnu.org
> 
> >  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?

It doesn't cater to Windows, it caters to any platform that has a
'system-move-file-to-trash' primitive (which is supposed to know the
location of trash internally), and Windows just happens to have it.
When such a primitive is not available, Emacs moves the file using the
"normal" file I/O, and then it has to know where to move it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Tue, 25 Aug 2015 01:56:02 GMT) Full text and rfc822 format available.

Message #17 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Harvey Chapman <hchapman <at> 3gfp.com>, 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Mon, 24 Aug 2015 21:55:26 -0400
I don't use OS X, but it sounds to like it would be better to change the
default value of trash-directory to

(if (eq system-type 'darwin) "~/.Trash/")




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Tue, 25 Aug 2015 22:19:01 GMT) Full text and rfc822 format available.

Message #20 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Harvey Chapman <hchapman <at> 3gfp.com>,
 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Tue, 25 Aug 2015 18:18:40 -0400
> I don't use OS X, but it sounds to like it would be better to change the
> default value of trash-directory to
> (if (eq system-type 'darwin) "~/.Trash/")

Or to define a system-move-file-to-trash, which defers to the
(presumably existing) system function that does that for us.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Thu, 02 Dec 2021 09:32:02 GMT) Full text and rfc822 format available.

Message #23 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Glenn Morris <rgm <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org>,
 Harvey Chapman <hchapman <at> 3gfp.com>, Alan Third <alan <at> idiocy.org>,
 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Thu, 02 Dec 2021 10:31:27 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> Or to define a system-move-file-to-trash, which defers to the
> (presumably existing) system function that does that for us.

Alan, do you know whether this would make sense on Macos?

If not, then I think Glenn's suggestion here makes sense, i.e., add:

(if (eq system-type 'darwin) "~/.Trash/")

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 02 Dec 2021 09:32:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Thu, 02 Dec 2021 21:59:02 GMT) Full text and rfc822 format available.

Message #28 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, Harvey Chapman <hchapman <at> 3gfp.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Thu, 2 Dec 2021 21:58:35 +0000
On Thu, Dec 02, 2021 at 10:31:27AM +0100, Lars Ingebrigtsen wrote:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> 
> > Or to define a system-move-file-to-trash, which defers to the
> > (presumably existing) system function that does that for us.
> 
> Alan, do you know whether this would make sense on Macos?
> 
> If not, then I think Glenn's suggestion here makes sense, i.e., add:
> 
> (if (eq system-type 'darwin) "~/.Trash/")

It looks like there's a method available to trash items on macOS 10.8
and above, so I suppose that's the logical thing to use.

https://developer.apple.com/documentation/foundation/nsfilemanager/1414306-trashitematurl?language=objc

macOS < 10.8 uses some Carbon API, which I'd rather not bother with,
and GNUstep doesn't support it at all, so I imagine it's as well using
the XDG location or whatever the default is.
-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Fri, 03 Dec 2021 16:17:01 GMT) Full text and rfc822 format available.

Message #31 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alan Third <alan <at> idiocy.org>
Cc: Glenn Morris <rgm <at> gnu.org>, Harvey Chapman <hchapman <at> 3gfp.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Fri, 03 Dec 2021 17:16:20 +0100
Alan Third <alan <at> idiocy.org> writes:

> It looks like there's a method available to trash items on macOS 10.8
> and above, so I suppose that's the logical thing to use.
>
> https://developer.apple.com/documentation/foundation/nsfilemanager/1414306-trashitematurl?language=objc
>
> macOS < 10.8 uses some Carbon API, which I'd rather not bother with,
> and GNUstep doesn't support it at all, so I imagine it's as well using
> the XDG location or whatever the default is.

Sounds good to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Fri, 03 Dec 2021 23:03:02 GMT) Full text and rfc822 format available.

Message #34 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, Harvey Chapman <hchapman <at> 3gfp.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Fri, 3 Dec 2021 23:02:31 +0000
[Message part 1 (text/plain, inline)]
On Fri, Dec 03, 2021 at 05:16:20PM +0100, Lars Ingebrigtsen wrote:
> Alan Third <alan <at> idiocy.org> writes:
> 
> > It looks like there's a method available to trash items on macOS 10.8
> > and above, so I suppose that's the logical thing to use.
> >
> > https://developer.apple.com/documentation/foundation/nsfilemanager/1414306-trashitematurl?language=objc
> >
> > macOS < 10.8 uses some Carbon API, which I'd rather not bother with,
> > and GNUstep doesn't support it at all, so I imagine it's as well using
> > the XDG location or whatever the default is.
> 
> Sounds good to me.

Well, I've written a patch but the function doesn't appear in lisp and
I don't know what I've done wrong.

Patch attached.
-- 
Alan Third
[0001-Make-use-of-Trash-on-macOS-bug-21340.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21340; Package emacs. (Fri, 03 Dec 2021 23:12:01 GMT) Full text and rfc822 format available.

Message #37 received at 21340 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alan Third <alan <at> idiocy.org>
Cc: Glenn Morris <rgm <at> gnu.org>, Harvey Chapman <hchapman <at> 3gfp.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 21340 <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Sat, 04 Dec 2021 00:11:04 +0100
Alan Third <alan <at> idiocy.org> writes:

> Well, I've written a patch but the function doesn't appear in lisp and
> I don't know what I've done wrong.

I think you're just missing the defsubr for the symbol:

  defsubr (&Ssystem_move_file_to_trash);


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Reply sent to Alan Third <alan <at> idiocy.org>:
You have taken responsibility. (Sat, 04 Dec 2021 10:47:02 GMT) Full text and rfc822 format available.

Notification sent to Harvey Chapman <hchapman <at> 3gfp.com>:
bug acknowledged by developer. (Sat, 04 Dec 2021 10:47:02 GMT) Full text and rfc822 format available.

Message #42 received at 21340-done <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, Harvey Chapman <hchapman <at> 3gfp.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 21340-done <at> debbugs.gnu.org
Subject: Re: bug#21340: 24.5; trash-directory uses FreeDesktop location on OSX
Date: Sat, 4 Dec 2021 10:45:53 +0000
On Sat, Dec 04, 2021 at 12:11:04AM +0100, Lars Ingebrigtsen wrote:
> Alan Third <alan <at> idiocy.org> writes:
> 
> > Well, I've written a patch but the function doesn't appear in lisp and
> > I don't know what I've done wrong.
> 
> I think you're just missing the defsubr for the symbol:
> 
>   defsubr (&Ssystem_move_file_to_trash);

That was it, thank you!

I've pushed this change to master.
-- 
Alan Third




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 01 Jan 2022 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 174 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.