all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Philip Kaludercic <philipk@posteo.net>
Cc: Jay Kamat <jaygkamat@gmail.com>,
	 Jeremy Bryant <jb@jeremybryant.net>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: NonGNU ELPA: Conditions for accepting a potential new package 'rmsbolt' ?
Date: Tue, 27 Feb 2024 12:49:51 -0500	[thread overview]
Message-ID: <jwvv869n74n.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87h6htu89t.fsf@posteo.net> (Philip Kaludercic's message of "Tue,  27 Feb 2024 17:27:58 +0000")

>> I haven't looked at the code but I'll point out that
>> `convert-standard-filename` is meant to *define* the name of a "standard"
>> file, so its argument is usually very static.
>> It doesn't make sense to apply it to something like `buffer-file-name`
>> which is already supposed to be a valid filename.
>
> In that case I must have misunderstood something, my intention was to
> find a function that would convert file names with forwards slashes to
> the proper file delimiters on the current system.

No, `convert-standard-filename` is useful when you got some string from
somewhere and you'd like to generate a valid file name from that.
Usually the string is an almost constant like "~/.emacs" and the purpose
is to deal with quirks like when file names can't start with a dot or can't
include a colon.

I can't help much more on if/when/how to convert an internal filename
into one that works in a win32 shell, 'cause I have no experience with
that.  AFAICT most ELisp code doesn't do anything special for that
(whereas they sometimes do such things for Tramp purposes), so I'd
naively expect that it "just works".

>> Also I think `shell-quote-argument` should be applied to most parts of
>> `rmsbolt--demangle-command`.  This function is also odd in that it
>> calls `rmsbolt--convert-file-name-to-system-type` on the files
>> of the demangler but not those of the `mv`.
>
> IIUC shell-quote-argument cannot be used,

Of course it can.  You can't just replace the #'identity with
#'shell-quote-argument, indeed, but still `shell-quote-argument` should
be used on *most* parts that appear in the function.


        Stefan




  reply	other threads:[~2024-02-27 17:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-25 21:07 NonGNU ELPA: Conditions for accepting a potential new package 'rmsbolt' ? Jeremy Bryant
2024-02-26  7:44 ` Philip Kaludercic
2024-02-26 22:40   ` Jeremy Bryant
2024-02-27  7:47     ` Philip Kaludercic
2024-02-27 16:13       ` Jay Kamat
2024-02-27 17:10         ` Philip Kaludercic
2024-02-27 17:14           ` Jay Kamat
2024-02-27 17:21             ` Philip Kaludercic
2024-02-27 17:21         ` Stefan Monnier
2024-02-27 17:27           ` Philip Kaludercic
2024-02-27 17:49             ` Stefan Monnier [this message]
2024-02-27 18:42               ` Philip Kaludercic
2024-02-27 19:43                 ` Stefan Monnier
2024-02-27 18:46               ` Eli Zaretskii
2024-03-01 17:37           ` Jay Kamat

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=jwvv869n74n.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=jaygkamat@gmail.com \
    --cc=jb@jeremybryant.net \
    --cc=philipk@posteo.net \
    /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.