[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Interpret #r"..." as a raw string
From: |
Aurélien Aptel |
Subject: |
Re: [PATCH] Interpret #r"..." as a raw string |
Date: |
Tue, 2 Mar 2021 17:07:22 +0100 |
On Tue, Mar 2, 2021 at 4:11 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> I'm sorry, but I can't quite see what you're talking about. Can you
> point to existing code where there is such embedded "conf files or
> source files" so we can better judge the potential benefit?
Just from my init.el:
(:name "newbug" :query "to:samba-maintainers subject:\"New:\" " :key "n")
...
(shell-command-to-string "perl -i -pE 's/(li><a
href=\"#\\S+?\">)(\\d|\\.)+ /$1/' ~/TODO.html")
...
(shell-command-to-string "notmuch search --limit=1
--sort=newest-first --output=messages 'tag:sent subject:\"work
report\"'")))
...
(shell-command-to-string
(format (concat "cd %s && git show -s '--pretty=format:%%h
(\"%%s\")' %s;"
"echo -e '\n'$?")
...
(defvar moz-useful-functions "
function add_or_reload_url (url) {
var i = find_tab_with_url(url)
var t = \"\"
if (i < 0) {
t = gBrowser.addTab(url)
} else {
gBrowser.browsers[i].reload()
t = gBrowser.tabs[i]
}
select_tab(t)
}
")
...
(moz-send-string (concat "add_or_reload_url(\"file://"
(expand-file-name fn) "\");\n"))))
...
(insert "<style type=\"text/css\">\n<!--/*--><![CDATA[/*><!--*/\n")
...
> If you don't see the cons, then indeed the tradeoff is clear ;-)
I've given a list of my use cases and I genuinely don't see cons,
assuming it gets properly implemented. I'm sorry if you listed them
earlier I must have skipped over.
Cheers,
Re: [PATCH] Interpret #r"..." as a raw string, Aurélien Aptel, 2021/03/02
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/02
Re: [PATCH] Interpret #r"..." as a raw string, Stefan Monnier, 2021/03/02
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/02
Re: [PATCH] Interpret #r"..." as a raw string, Andreas Schwab, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Andreas Schwab, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03
Re: [PATCH] Interpret #r"..." as a raw string, Daniel Brooks, 2021/03/03