[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/shell-command+ c395408 05/36: Re-added % substitution
From: |
Stefan Monnier |
Subject: |
[elpa] externals/shell-command+ c395408 05/36: Re-added % substitution |
Date: |
Fri, 25 Sep 2020 11:01:22 -0400 (EDT) |
branch: externals/shell-command+
commit c3954087c7858fbf496bd6bbd1b37fc9e46bef78
Author: Philip K <philip@warpmail.net>
Commit: Philip K <philip@warpmail.net>
Re-added % substitution
---
bang.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bang.el b/bang.el
index 068fed9..070018d 100644
--- a/bang.el
+++ b/bang.el
@@ -119,7 +119,13 @@ insert a literal % quote it using a backslash."
(has-< (match-string-no-properties 4 command))
(has-> (match-string-no-properties 5 command))
(has-| (match-string-no-properties 6 command))
- (rest (match-string-no-properties 7 command)))
+ (rest (condition-case nil
+ (replace-regexp-in-string
+ (rx (* ?\\ ?\\) (or ?\\ (group "%")))
+ buffer-file-name
+ (match-string-no-properties 7 command)
+ nil nil 1)
+ (error (match-string-no-properties 7 command)))))
(cond (arg-! (bang (bang--find-last-command arg-!)
beg end))
(num-! (bang (bang--get-command-number num-! rest)
- [elpa] externals/shell-command+ ab6bb0e 18/36: reworked `.' command, (continued)
- [elpa] externals/shell-command+ ab6bb0e 18/36: reworked `.' command, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 87b5ad3 21/36: version bump, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 339931d 36/36: rename bang to shell-command+, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ b5398d1 34/36: use eshell handler if available, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 9b28c60 12/36: added melpa link, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 49f3686 08/36: fixed package-lint issues, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 5c01598 09/36: fixed minor checkdoc complaints, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 5e3def9 04/36: Fixed packaging issues and mistakes, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 423c2af 15/36: updated README, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 3fcab36 20/36: only execute real command, not bang modifiers, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ c395408 05/36: Re-added % substitution,
Stefan Monnier <=
- [elpa] externals/shell-command+ 77989cf 26/36: renamed "Bang command" to "Shell command", Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ d60c01f 22/36: required rx while compiling, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 1fb0162 27/36: bumped version, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 0e0c725 35/36: simplify if-expressions where applicable, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ e023383 33/36: bumped version, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ f9e92f4 31/36: added two spaces after each period, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 51d6934 28/36: changed tag-line, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ 9350393 19/36: fixed critical bug when no path was specified, Stefan Monnier, 2020/09/25
- [elpa] externals/shell-command+ f0a8a95 30/36: Don't interpret local binary execution as a path, Stefan Monnier, 2020/09/25