all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#35023] [PATCH] Silence byte-compiler for emacs-zones.
@ 2019-03-27 20:44 Brian Leung
  2019-03-31 21:33 ` bug#35023: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Leung @ 2019-03-27 20:44 UTC (permalink / raw)
  To: 35023


[-- Attachment #1.1: Type: text/plain, Size: 14 bytes --]

See attached.

[-- Attachment #1.2: Type: text/html, Size: 39 bytes --]

[-- Attachment #2: 0001-gnu-emacs-zones-silence-byte-compiler.patch --]
[-- Type: text/x-patch, Size: 3025 bytes --]

From 3d80fb0c50ee6c5bcbfb93533575756ebf93cb7b Mon Sep 17 00:00:00 2001
From: Brian Leung <bkleung89@gmail.com>
Date: Wed, 27 Mar 2019 21:41:58 +0100
Subject: [PATCH] gnu: emacs-zones: silence byte-compiler.

* gnu/packages/patches/emacs-zones-called-interactively.patch: New file.
---
 gnu/packages/emacs-xyz.scm                    |  5 ++-
 .../emacs-zones-called-interactively.patch    | 43 +++++++++++++++++++
 2 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/emacs-zones-called-interactively.patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7dd3c079b2..beb69858d4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5991,7 +5991,10 @@ customizable by the user.")
          (file-name (git-file-name name version))
          (sha256
           (base32
-           "0gwnw2giii2a14nlh62xp45f47cw6ikqphhzpmcw6c7mn9x5z2ar"))))
+           "0gwnw2giii2a14nlh62xp45f47cw6ikqphhzpmcw6c7mn9x5z2ar"))
+         (patches
+          (search-patches
+           "emacs-zones-called-interactively.patch"))))
       (build-system emacs-build-system)
       (home-page "https://www.emacswiki.org/emacs/Zones")
       (synopsis "Define and act on multiple zones of buffer text")
diff --git a/gnu/packages/patches/emacs-zones-called-interactively.patch b/gnu/packages/patches/emacs-zones-called-interactively.patch
new file mode 100644
index 0000000000..b60f390a7e
--- /dev/null
+++ b/gnu/packages/patches/emacs-zones-called-interactively.patch
@@ -0,0 +1,43 @@
+From fb56fbb706804215ef9af0cc575db97c373046c6 Mon Sep 17 00:00:00 2001
+From: Brian Leung <bkleung89@gmail.com>
+Date: Sun, 17 Mar 2019 01:32:04 +0100
+Subject: [PATCH] This patch silences the byte-compiler.
+
+---
+ zones.el | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/zones.el b/zones.el
+index 1bf94f0..94fa9a6 100644
+--- a/zones.el
++++ b/zones.el
+@@ -1031,7 +1031,7 @@ You can use `C-x n x' to widen to a previous buffer restriction.
+ 
+ This is a destructive operation. The list structure of the variable
+ value can be modified."
+-  (zz-narrow-advice (interactive-p)))
++  (zz-narrow-advice (called-interactively-p)))
+ 
+ (defadvice narrow-to-defun (after zz-add-zone--defun activate)
+   "Push the defun limits to the current `zz-izones-var'.
+@@ -1039,7 +1039,7 @@ You can use `C-x n x' to widen to a previous buffer restriction.
+ 
+ This is a destructive operation. The list structure of the variable
+ value can be modified."
+-  (zz-narrow-advice (interactive-p)))
++  (zz-narrow-advice (called-interactively-p)))
+ 
+ ;; Call `zz-add-zone' if interactive or `zz-add-zone-anyway-p'.
+ ;;
+@@ -1049,7 +1049,7 @@ You can use `C-x n x' to widen to a previous buffer restriction.
+ 
+ This is a destructive operation. The list structure of the variable
+ value can be modified."
+-  (zz-narrow-advice (interactive-p)))
++  (zz-narrow-advice (called-interactively-p)))
+ \f
+ ;;(@* "General Commands")
+ 
+-- 
+2.21.0
+
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#35023: [PATCH] Silence byte-compiler for emacs-zones.
  2019-03-27 20:44 [bug#35023] [PATCH] Silence byte-compiler for emacs-zones Brian Leung
@ 2019-03-31 21:33 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2019-03-31 21:33 UTC (permalink / raw)
  To: Brian Leung; +Cc: 35023-done

Hi,

Brian Leung <bkleung89@gmail.com> skribis:

> From 3d80fb0c50ee6c5bcbfb93533575756ebf93cb7b Mon Sep 17 00:00:00 2001
> From: Brian Leung <bkleung89@gmail.com>
> Date: Wed, 27 Mar 2019 21:41:58 +0100
> Subject: [PATCH] gnu: emacs-zones: silence byte-compiler.
>
> * gnu/packages/patches/emacs-zones-called-interactively.patch: New file.

I added the patch to gnu/local.mk and committed, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-31 21:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-27 20:44 [bug#35023] [PATCH] Silence byte-compiler for emacs-zones Brian Leung
2019-03-31 21:33 ` bug#35023: " Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.