all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 44217@debbugs.gnu.org
Subject: bug#44217: bug#44216: 28.0.50; Incorret during delete in Tramp: Trashing...done
Date: Wed, 28 Oct 2020 13:54:20 +0300	[thread overview]
Message-ID: <X5lN3ATyPNbp6lzT@protected.rcdrun.com> (raw)
In-Reply-To: <87r1pjtolo.fsf@gmx.de>

* Michael Albinus <michael.albinus@gmx.de> [2020-10-27 23:13]:
> Jean Louis <bugs@gnu.support> writes:
> 
> Hi Jean,
> 
> >> The Trash specification
> >> <https://specifications.freedesktop.org/trash-spec/trashspec-latest.html>
> >> says
> >
> > Not universal for every OSs. Freedesktop specification is exclusively
> > for GNU/Linux which accept parts or whole of Freedesktop, yet there
> > are those which do not.
> 
> GNU/Linux is the primary target for Emacs. It is perfect to support its spec.

Freedesktop.org is not equivalent to GNU/Linux.

It is maybe popular but it is not and need not be standard.

From: https://www.freedesktop.org/wiki/Specifications/

Interoperability specifications

freedesktop.org produces specifications for interoperability, but we
are not an official standards body. There is no requirement for
projects to implement all of these specifications, nor certification.

so

GNU/Linux distributions may decide to adhere or may not.

I hope you that Emacs should NOT be exclusively target for GNU/Linux
distributions adopting some of specifications from Freedesktop.org as
Emacs is widely used for example on BSD systems. 

Tramp is supporting various file systems and those file systems are
not necessarily on GNU/Linux and thus I do not think it is necessary
to include that support for Tramp considering wild range of file
systems that can be accessed and those file system yet to come.

Tramp should not target Freedesktop.org specification on remote file
systems when variable `delete-by-moving-to-trash' is set, this
variable should be local only.

- If it is not set, I see no message from Tramp related to trashing
  when file is being deleted.

- If it is set, then I see that Tramp is trashing the file, although
  it is not trashing the file in this context.

- my remote system does not have any trash nor Freedesktop.org
  specification.

- And I am using LineageOS/Replicant/Android remote file systems

Let us also note that Freedesktop.org is for "desktop" so it is not
specification for servers. Tramp accessing remote SSH or other servers
should not assume automatically it is accessing remote desktops.

Tramp may access remote files by using FTP, rsync, scp, and other
protocols, I just hope that trash inclusion is not intertwined in
those protocols where remote command execution would not even work.

OpenSSH was targeting primarily OpenBSD and we use it wildly in
GNU/Linux, it would be somehow unfair to say that Emacs with the Tramp
which is using OpenSSH coming from OpenBSD is targeting only
GNU/Linux. Emacs is widely used on all *BSD derivates and other OSes
not being GNU/Linux. 

Documentation:
Specifies whether to use the system’s trash can.
When non-nil, certain file deletion commands use the function
‘move-file-to-trash’ instead of deleting files outright.
This includes interactive calls to ‘delete-file’ and
‘delete-directory’ and the Dired deletion commands.

I think that variable shall be local only, so that Tramp does not even
attempt moving anything to Trash remotely.

While that Trash thing would be convenient for me personally, I think
it would be badly designed for above reasons.


-- 
Jean Louis





  reply	other threads:[~2020-10-28 10:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-25 19:38 bug#44217: 28.0.50; Incorret during delete in Tramp: Trashing...done Jean Louis
2020-10-26 11:14 ` bug#44217: bug#44216: " Lars Ingebrigtsen
2020-10-26 11:51   ` Jean Louis
2020-10-26 16:56     ` Michael Albinus
2020-10-26 17:01     ` Eli Zaretskii
2020-10-26 13:11   ` Michael Albinus
2020-10-26 13:17     ` Lars Ingebrigtsen
2020-10-26 15:35       ` Michael Albinus
2020-10-27  7:42         ` Lars Ingebrigtsen
2020-10-27 15:32           ` Michael Albinus
2020-10-27 17:17             ` Jean Louis
2020-10-27 20:12               ` Michael Albinus
2020-10-28 10:54                 ` Jean Louis [this message]
2020-11-01 11:59                   ` Michael Albinus
2020-11-01 12:36                     ` Jean Louis
2020-11-01 13:03                       ` bug#44217: " Michael Albinus
2020-11-01 13:33                         ` Jean Louis
2020-11-01 14:48                           ` Michael Albinus
2020-10-27 17:42             ` bug#44217: (no subject) Lars Ingebrigtsen
2020-10-27 20:20               ` bug#44217: none Michael Albinus
2020-10-28  9:27                 ` Lars Ingebrigtsen

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=X5lN3ATyPNbp6lzT@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=44217@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=michael.albinus@gmx.de \
    /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.