[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/wgrep b7be61fdfc 02/11: merge to the latest master
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/wgrep b7be61fdfc 02/11: merge to the latest master |
Date: |
Fri, 3 Feb 2023 08:00:43 -0500 (EST) |
branch: elpa/wgrep
commit b7be61fdfc5b8e48b1097b1421a5f043e481a2e2
Merge: 712cfff548 94a6e624e2
Author: Masahiro Hayashi <mhayashi1120@gmail.com>
Commit: Masahiro Hayashi <mhayashi1120@gmail.com>
merge to the latest master
---
wgrep-ack.el | 2 +-
wgrep-ag.el | 2 +-
wgrep-helm.el | 2 +-
wgrep-pt.el | 2 +-
wgrep.el | 19 ++++++-------------
5 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/wgrep-ack.el b/wgrep-ack.el
index ed5344cf88..019c3023e6 100644
--- a/wgrep-ack.el
+++ b/wgrep-ack.el
@@ -1,4 +1,4 @@
-;;; wgrep-ack.el --- Writable ack-and-a-half buffer and apply the changes to
files
+;;; wgrep-ack.el --- Writable ack-and-a-half buffer and apply the changes to
files -*- lexical-binding: t -*-
;; Copyright (C) 2010-2020 Masahiro Hayashi
diff --git a/wgrep-ag.el b/wgrep-ag.el
index 339c026757..48b6994939 100644
--- a/wgrep-ag.el
+++ b/wgrep-ag.el
@@ -1,4 +1,4 @@
-;;; wgrep-ag.el --- Writable ag buffer and apply the changes to files
+;;; wgrep-ag.el --- Writable ag buffer and apply the changes to files -*-
lexical-binding: t -*-
;; Copyright (C) 2010-2020 Masahiro Hayashi
diff --git a/wgrep-helm.el b/wgrep-helm.el
index f4db3bb697..825914d0e0 100644
--- a/wgrep-helm.el
+++ b/wgrep-helm.el
@@ -1,4 +1,4 @@
-;;; wgrep-helm.el --- Writable helm-grep-mode buffer and apply the changes to
files
+;;; wgrep-helm.el --- Writable helm-grep-mode buffer and apply the changes to
files -*- lexical-binding: t -*-
;; Copyright (C) 2010-2020 Masahiro Hayashi
diff --git a/wgrep-pt.el b/wgrep-pt.el
index 188733c9a2..cd2a90f2f8 100644
--- a/wgrep-pt.el
+++ b/wgrep-pt.el
@@ -1,4 +1,4 @@
-;;; wgrep-pt.el --- Writable pt buffer and apply the changes to files
+;;; wgrep-pt.el --- Writable pt buffer and apply the changes to files -*-
lexical-binding: t -*-
;; Copyright (C) 2010-2020 Masahiro Hayashi
diff --git a/wgrep.el b/wgrep.el
index f5312d855d..e5284eccdc 100644
--- a/wgrep.el
+++ b/wgrep.el
@@ -1,4 +1,4 @@
-;;; wgrep.el --- Writable grep buffer and apply the changes to files
+;;; wgrep.el --- Writable grep buffer and apply the changes to files -*-
lexical-binding: t -*-
;; Copyright (C) 2010-2020 Masahiro Hayashi
@@ -488,10 +488,6 @@ non editable region.")
(line (string-to-number (match-string 3)))
(start (match-beginning 0))
(end (match-end 0))
- (fstart (match-beginning 1))
- (fend (match-end 1))
- (lstart (match-beginning 3))
- (lend (match-end 3))
(fprop (wgrep-construct-filename-property fn))
(flen (length fn)))
;; check relative path grep result
@@ -651,7 +647,7 @@ non editable region.")
(overlay-put ov 'wgrep-edit-text value))))
ov))
-(defun wgrep-after-change-function (beg end leng-before)
+(defun wgrep-after-change-function (beg end _leng-before)
(cond
(wgrep-inhibit-modification-hook nil)
((= (point-min) (point-max))
@@ -729,15 +725,14 @@ non editable region.")
(dolist (prop '(modification-hooks insert-in-front-hooks
insert-behind-hooks))
(overlay-put
ov prop
- `((lambda (ov after-p &rest ignore)
- (when after-p
- (delete-overlay ov)))))))
+ `(,(lambda (ov after-p &rest _ignore)
+ (when after-p
+ (delete-overlay ov)))))))
(defun wgrep-replace-to-new-line (new-text)
;; delete grep extracted region (restricted to a line)
(delete-region (line-beginning-position) (line-end-position))
- (let ((beg (point))
- end)
+ (let ((beg (point)))
(insert new-text)
(let* ((end (point))
;; highlight the changed line
@@ -767,7 +762,6 @@ non editable region.")
(start (next-single-property-change
(point) 'wgrep-line-filename nil (line-end-position)))
(file (expand-file-name name default-directory))
- (file-error nil)
(old (overlay-get edit-field 'wgrep-old-text))
(new (overlay-get edit-field 'wgrep-edit-text))
result)
@@ -859,7 +853,6 @@ non editable region.")
;; Apply EDITOR to file/buffer. See `wgrep-compute-transaction'.
;; Return succeeded count and first result overlay in *grep* buffer.
(let* ((file (car editor))
- (edits (cdr editor))
(open-buffer (get-file-buffer file))
(buffer
(cond
- [nongnu] elpa/wgrep updated (712cfff548 -> b4d69280d8), ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep 2d1c050921 04/11: upgrade version since `lexical-binding` is on, ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep b7be61fdfc 02/11: merge to the latest master,
ELPA Syncer <=
- [nongnu] elpa/wgrep 3864cf807e 07/11: introduce batch lint, ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep b4d69280d8 11/11: fix copyright, ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep a5d95f410b 05/11: cleanup make rule, ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep 76cfb5150d 06/11: prepare to improve make rule, ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep 3cffd82366 08/11: apply package-lint, ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep 66538a1ac5 09/11: after a consideration, considered as major release ack and pt version., ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep ff3cf631b6 10/11: add message after build (Not working yet), ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep 7184378613 03/11: prepare to improve make, ELPA Syncer, 2023/02/03
- [nongnu] elpa/wgrep 94a6e624e2 01/11: Turn on lexical-binding, ELPA Syncer, 2023/02/03