unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jean Louis <bugs@gnu.support>
Cc: emacs-devel@gnu.org
Subject: Re: Is it expected to have reserved "system.el"?
Date: Mon, 02 Jan 2023 19:05:12 +0200	[thread overview]
Message-ID: <83k02427g7.fsf@gnu.org> (raw)
In-Reply-To: <Y7MHzltt3XltjXn6@protected.localdomain> (message from Jean Louis on Mon, 2 Jan 2023 19:35:26 +0300)

> Date: Mon, 2 Jan 2023 19:35:26 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: emacs-devel@gnu.org
> 
> > move-file-to-trash is an interactive byte-compiled Lisp function in
> > ‘files.el’.
> 
> > (move-file-to-trash FILENAME)
> 
> > Move the file (or directory) named FILENAME to the trash.
> > When ‘delete-by-moving-to-trash’ is non-nil, this function is
> > called by ‘delete-file’ and ‘delete-directory’ instead of
> > deleting files outright.
> 
> > If the function ‘system-move-file-to-trash’ is defined, call it
> >  with FILENAME as an argument.
> > Otherwise, if ‘trash-directory’ is non-nil, move FILENAME to that
> >  directory.
> > Otherwise, trash FILENAME using the freedesktop.org conventions,
> >  like the GNOME, KDE and XFCE desktop environments.  Emacs moves
> >  files only to "home trash", ignoring per-volume trashcans.
> 
> >   Probably introduced at or before Emacs version 23.2.
> 
> As you may see Emacs expects users to define function
> `system-move-file-to-trash' and based on that, is there notion that
> package named "system.el" is reserved for users on specific computer?

No and no.  What the above says is that if the function by that name
is defined, it will be used.  We have 2 platforms which define such a
function: MS-Windows and macOS.  On other platforms, we use our own
Lisp code in move-file-to-trash.  We don't _expect_ users to define
such a function.  And there's no claim here that no other function can
be called system-SOMETHING.

> Is prefix `system-' maybe reserved from Emacs for every specific
> system (computer)?

No.



  reply	other threads:[~2023-01-02 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-02  9:49 Is it expected to have reserved "system.el"? Jean Louis
2023-01-02 12:34 ` Eli Zaretskii
2023-01-02 16:35   ` Jean Louis
2023-01-02 17:05     ` Eli Zaretskii [this message]
2023-01-03 21:30       ` Jean Louis

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=83k02427g7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=bugs@gnu.support \
    --cc=emacs-devel@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 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).