unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: arnaud.lechevallier@free.fr
To: 63718@debbugs.gnu.org
Subject: [bug#63718] [PATCH] gnu: Add package Substitute for Emacs.
Date: Thu, 25 May 2023 16:49:34 +0200 (CEST)	[thread overview]
Message-ID: <232298811.146997914.1685026174562.JavaMail.root@zimbra81-e14.priv.proxad.net> (raw)
In-Reply-To: <1495087376.146972658.1685025701265.JavaMail.root@zimbra81-e14.priv.proxad.net>

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

Hello,

I made a simple patch to add a package for Emacs called 'Substitute' developed by Protesilaos Stavrou.

Kind regards,

Arnaud.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-substitute.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-emacs-substitute.patch, Size: 2500 bytes --]

From d6cd1e4a889e5cdf64813a43b7facb77d1d395d1 Mon Sep 17 00:00:00 2001
Message-Id: <d6cd1e4a889e5cdf64813a43b7facb77d1d395d1.1685024695.git.arnaud.lechevallier@free.fr>
From: Arnaud Lechevallier <arnaud.lechevallier@free.fr>
Date: Thu, 25 May 2023 15:01:33 +0200
Subject: [PATCH 1/1] gnu: Add emacs-substitute.

* gnu/packages/emacs-xyz.scm (emacs-substitute): New variable.
---
 gnu/packages/emacs-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0ea9732bfa..da16f46e8b 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -130,6 +130,7 @@
 ;;; Copyright © 2023 Gabriel Wicki <gabriel@erlikon.ch>
 ;;; Copyright © 2022-2023 Simon Josefsson <simon@josefsson.org>
 ;;; Copyright © 2023 Fabio Natali <me@fabionatali.com>
+;;; Copyright © 2023 Arnaud Lechevallier <arnaud.lechevallier@free.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -9010,6 +9011,34 @@ (define-public emacs-mc-extras
 comparing characters, removing cursors, and more.")
       (license license:bsd-2))))
 
+(define-public emacs-substitute
+  (package
+    (name "emacs-substitute")
+    (version "0.1.8")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.sr.ht/~protesilaos/substitute")
+                    (commit "b81bb7789847f3d1645a60422fa080c48b93dd47")))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0s1lgpwmdjz17rd4r6qp41agmpqwa9976v1pb55p648zjh0p2vlz"))))
+    (build-system emacs-build-system)
+    (home-page "https://git.sr.ht/~protesilaos/substitute")
+    (synopsis "Efficiently replace targets in the buffer or context")
+    (description
+     "Substitute is a set of commands that perform text replacement (i) throughout
+      the buffer, (ii) limited to the current definition (per narrow-to-defun),
+      (iii) from point to the end of the buffer, and (iv) from point to the beginning
+       of the buffer.
+
+     These substitutions are meant to be as quick as possible and, as such, differ
+      from the standard query-replace (which I still use).  The provided commands
+       prompt for substitute text and perform the substitution outright.")
+
+    (license license:gpl1+)))
+
 (define-public emacs-typo
   (package
     (name "emacs-typo")

base-commit: 1be6baed2b58a75868cdcc9f51b78624c2fefc4f
-- 
2.38.1


       reply	other threads:[~2023-05-25 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1495087376.146972658.1685025701265.JavaMail.root@zimbra81-e14.priv.proxad.net>
2023-05-25 14:49 ` arnaud.lechevallier [this message]
2023-05-25 20:24   ` bug#63718: [PATCH] gnu: Add package Substitute for Emacs Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=232298811.146997914.1685026174562.JavaMail.root@zimbra81-e14.priv.proxad.net \
    --to=arnaud.lechevallier@free.fr \
    --cc=63718@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).