[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/agitate 6c89d23954 47/67: Remove agitate-diff-kill-dwim
From: |
ELPA Syncer |
Subject: |
[elpa] externals/agitate 6c89d23954 47/67: Remove agitate-diff-kill-dwim (doesn't work) |
Date: |
Wed, 28 Sep 2022 16:57:29 -0400 (EDT) |
branch: externals/agitate
commit 6c89d239549e06b5e3753975e54d1a5a27464c2d
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Remove agitate-diff-kill-dwim (doesn't work)
The idea is neat and we could also leverage the built-in method to
split a diff hunk, but it ultimately fails to apply the patch...
---
README.org | 10 ----------
agitate.el | 29 -----------------------------
2 files changed, 39 deletions(-)
diff --git a/README.org b/README.org
index 6cebf5132f..97bbc9b5ec 100644
--- a/README.org
+++ b/README.org
@@ -83,16 +83,6 @@ The following sections document the extras per their scope.
With optional =NARROW-FILE= as a prefix argument, operate on the
current file instead.
-#+findex: agitate-diff-kill-dwim
-+ ~agitate-diff-kill-dwim~ :: PROTOTYPE!!! Kill hunk or remove the
- plus/minus signs in current line/region. When the region is active,
- remove the plus or minus sign at the start of each line. When the
- region is not active but point is on a line that starts with a plus
- or minus sign, remove that sign. Removing the plus or minus sign
- means any subsequent commit will not account for them. If no region
- is active and the point is not on a line that starts with the plus
- or minus sign, call ~diff-hunk-kill~ interactively.
-
#+findex: agitate-diff-enable-outline-minor-mode
+ ~agitate-diff-enable-outline-minor-mode~ :: Enable
~outline-minor-mode~ with appropriate tweaks for diffs. This
diff --git a/agitate.el b/agitate.el
index 249efae604..951e5b7976 100644
--- a/agitate.el
+++ b/agitate.el
@@ -137,35 +137,6 @@ instead."
(diff-restrict-view)
(message "Narrowed to diff HUNK")))))
-;;;###autoload
-(defun agitate-diff-kill-dwim ()
- "PROTOTYPE.
-
-Kill hunk or remove the plus/minus signs in current line/region.
-
-When the region is active, remove the plus or minus sign at the
-start of each line.
-
-When the region is not active but point is on a line that starts
-with a plus or minus sign, remove that sign.
-
-Removing the plus or minus sign means any subsequent commit will
-not account for them.
-
-If no region is active and the point is not on a line that starts
-with the plus or minus sign, call `diff-hunk-kill' interactively."
- (interactive nil diff-mode)
- (unless mark-ring ; needed when entering a new buffer
- (push-mark (point) t nil))
- (when-let (((derived-mode-p 'diff-mode))
- (inhibit-read-only t))
- (cond
- ((region-active-p)
- (replace-regexp-in-region "^[+-]" " " (region-beginning) (region-end)))
- ((progn (goto-char (line-beginning-position)) (looking-at "^[+-]"))
- (replace-match " "))
- (t (call-interactively #'diff-hunk-kill)))))
-
(defvar outline-minor-mode-highlight)
;;;###autoload
- [elpa] externals/agitate 43027aefb9 16/67: Add agitate-diff-narrow-dwim command, (continued)
- [elpa] externals/agitate 43027aefb9 16/67: Add agitate-diff-narrow-dwim command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 4baa368ffd 02/67: Depend on Emacs 29, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 417539dc73 03/67: Add agitate-log-edit-insert-file-name command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 1f35cecc20 17/67: Add agitate-diff-kill-dwim prototype, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 839892328b 28/67: Add missing backronym, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 4ed8d553ba 22/67: Record TODO for vc-git-push replacements, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate bb94713469 40/67: Fix formatting of inline code in the manual, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 475b75a91a 26/67: Add skeleton of README.org, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate cbe4eed8b2 23/67: Add agitate-log-edit-emoji-commit command+option, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate c54fe94ac1 55/67: Add agitate-vc-git-prompt-format-patch-single cmd, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 6c89d23954 47/67: Remove agitate-diff-kill-dwim (doesn't work),
ELPA Syncer <=
- [elpa] externals/agitate 91e685d0fb 37/67: Add dir-locals.el, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate a5ee057fd5 65/67: Add sample configuration to the manual, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 052d3e3570 61/67: Simplify agitate--vc-git-commit-prompt, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 51fd96aba6 56/67: Tweak format of quote in the README.org, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate dce39b452c 63/67: Make agitate-vc-git-kill-commit-message use completion, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate da4a2bb77a 34/67: Update agitate.el headers and Commentary, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 7564713208 29/67: Rewrite outline heading for diffs, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate f736eb51a7 67/67: Tweak markup of "git-grep(1)", ELPA Syncer, 2022/09/28
- [elpa] externals/agitate b6e5cdbdda 14/67: Add agitate-enable-outline-minor-mode function, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate d1de59188d 08/67: Set minimum Emacs to 28.1, ELPA Syncer, 2022/09/28