From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: xdg-directories.el
Date: Wed, 07 Sep 2016 11:21:16 -0400 [thread overview]
Message-ID: <jwv4m5r690k.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CACwYkzxg=Q9RYJ=7a5i9tTZ=2pQSjMBTXJNx4yd0f4V5FC8VGg@mail.gmail.com
> - s-chomp does replace a longer elisp call chain.
It's probably (replace-regexp-in-string "\n\\'" "" str) or something
like that. I expect you need it because you're using a sub-process
script and need to get rid of its final newline. Once you replace this
script with Elisp code the need should disappear since the data you'll
get will already be properly "chomp'd".
BTW, rather than shell-command* you're usually better off using
`call-process' when the command you run doesn't need any of shell's
features (e.g. doesn't use pipes, etc...). The benefit is that you
won't have to worry about the need to shell-quote-argument.
> That is why a few months ago I made the choice to use s, which I can
> tell is a good library.
Yes, we'd like to have it in GNU ELPA. Help would be welcome for that.
Stefan
next prev parent reply other threads:[~2016-09-07 15:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 15:24 xdg-directories.el francisco.colaco
2016-09-06 21:49 ` xdg-directories.el Noam Postavsky
2016-09-06 22:37 ` xdg-directories.el francisco.colaco
2016-09-07 0:35 ` xdg-directories.el Stefan Monnier
2016-09-07 14:18 ` xdg-directories.el Eli Zaretskii
2016-09-07 14:59 ` xdg-directories.el francisco.colaco
2016-09-07 15:21 ` Stefan Monnier [this message]
2016-09-07 15:31 ` xdg-directories.el francisco.colaco
2016-09-07 15:54 ` xdg-directories.el Eli Zaretskii
2016-09-07 16:13 ` xdg-directories.el francisco.colaco
2016-09-07 16:28 ` xdg-directories.el francisco.colaco
2016-09-07 17:32 ` xdg-directories.el Eli Zaretskii
[not found] ` <CACwYkzyjV2jsTX3Cb0Us4tz1WsUP=avurw04Kgq8k52oBZRg_Q@mail.gmail.com>
2016-09-07 18:21 ` xdg-directories.el Eli Zaretskii
2016-09-07 16:46 ` xdg-directories.el Stefan Monnier
2016-09-07 17:24 ` xdg-directories.el Eli Zaretskii
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=jwv4m5r690k.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--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).