[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/shell-command+ 3fffa5c13d 08/13: Fall back to point-min
From: |
ELPA Syncer |
Subject: |
[elpa] externals/shell-command+ 3fffa5c13d 08/13: Fall back to point-min/max if BEG and END are nil |
Date: |
Thu, 25 Aug 2022 09:57:59 -0400 (EDT) |
branch: externals/shell-command+
commit 3fffa5c13d8dd9a7a07e6cd1668b8e8f9b33e98f
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Fall back to point-min/max if BEG and END are nil
---
shell-command+.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/shell-command+.el b/shell-command+.el
index ef5b487863..c8e643638d 100644
--- a/shell-command+.el
+++ b/shell-command+.el
@@ -461,11 +461,9 @@ between BEG and END. Otherwise the whole buffer is
processed."
(abbreviate-file-name default-directory))
shell-command+-prompt))
(cond ((use-region-p) (region-beginning))
- (bounds (car bounds))
- ((point-min)))
+ (bounds (car bounds)))
(cond ((use-region-p) (region-end))
- (bounds (cdr bounds))
- ((point-max))))))
+ (bounds (cdr bounds))))))
;; Make sure in case there is a previous output buffer, that it has
;; the same `default-directory' as the `default-directory' caller.
(let ((shell-command-buffer (get-buffer (or (bound-and-true-p
shell-command-buffer-name)
@@ -489,7 +487,9 @@ between BEG and END. Otherwise the whole buffer is
processed."
form (nth 1 step)
context (nth 2 step))))
(save-excursion
- (funcall context form (nth 3 parse) beg end))))
+ (funcall context form (nth 3 parse)
+ (or beg (point-min))
+ (or end (point-max))))))
(provide 'shell-command+)
- [elpa] externals/shell-command+ updated (f67986b85d -> f16fe34ce3), ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 4cab97e97b 02/13: Note why shell-command+-features is rebound, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 7b47ed86ed 05/13: Add a FIXME comment to 'shell-command+-command-substitution', ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 191435e6c5 04/13: Fix bug in 'shell-command+-command-substitution', ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 8b9d2b20bc 11/13: Bump minimal version to 24.3, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ f16fe34ce3 13/13: Add .elpaignore, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 83f9c3d0a6 01/13: Remove obsolete CHANGEME comment, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 3fffa5c13d 08/13: Fall back to point-min/max if BEG and END are nil,
ELPA Syncer <=
- [elpa] externals/shell-command+ 604c0915a2 03/13: Update 'shell-command+-features' docstring, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 595f9724ab 06/13: Remove a stray quote, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 1c32e73e4f 12/13: Add a FIXME comment to re-enable the disabled tests, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 795f4598d1 07/13: Only require diff and info if necessary, ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 3c9016b630 09/13: Dynamically generate the documentation string for 'shell-command+', ELPA Syncer, 2022/08/25
- [elpa] externals/shell-command+ 39b753f5a4 10/13: Thank Visuwesh in the NEWS section, ELPA Syncer, 2022/08/25