[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 3d71392852 276/301: Fix as well issue #118
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 3d71392852 276/301: Fix as well issue #118 |
Date: |
Mon, 10 Jan 2022 22:59:10 -0500 (EST) |
branch: elpa/iedit
commit 3d7139285291c4273d5bffb91b8e6811b3074e2d
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Victor <victorhge@gmail.com>
Fix as well issue #118
Fix warnings, use cl-rotatef and not rotatef, add a makefile to easily
detect
warnings errors etc... in a clean environment.
---
Makefile | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
iedit-lib.el | 2 ++
iedit-rect.el | 2 +-
iedit-tests.el | 1 +
4 files changed, 60 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..e957d8f7a1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,56 @@
+# makefile for iedit.
+
+
+# Emacs invocation
+EMACS_COMMAND := emacs
+
+EMACS := $(EMACS_COMMAND) -Q -batch
+
+EVAL := $(EMACS) --eval
+
+PKGDIR := .
+
+# Additional emacs loadpath
+LOADPATH := -L .
+
+# Files to compile
+EL := $(sort $(wildcard iedit*.el))
+
+# Compiled files
+ELC := $(EL:.el=.elc)
+
+
+.PHONY: clean autoloads batch-compile install uninstall
+
+all: clean autoloads batch-compile
+
+$(ELC): %.elc: %.el
+ $(EMACS) $(LOADPATH) -f batch-byte-compile $<
+
+# Compile needed files
+compile: $(ELC)
+
+# Compile all files at once
+batch-compile:
+ $(EMACS) $(LOADPATH) -f batch-byte-compile $(EL)
+
+# Remove all generated files
+clean:
+ rm -f $(ELC)
+
+# Make autoloads file
+autoloads:
+ $(EVAL) "(progn (setq generated-autoload-file (expand-file-name
\"iedit-autoloads.el\" \"$(PKGDIR)\")) \
+(setq backup-inhibited t) (update-directory-autoloads \"$(PKGDIR)\"))"
+
+PREFIX=/usr/local/share/
+DESTDIR=${PREFIX}emacs/site-lisp/iedit/
+install:
+ test -d ${DESTDIR} || mkdir ${DESTDIR}
+ cp -vf *.el $(DESTDIR)
+ cp -vf *.elc $(DESTDIR)
+ cp -vf iedit-autoloads.el $(DESTDIR)
+
+uninstall:
+ rm -vf ${DESTDIR}*.elc
+ rm -vf ${DESTDIR}*.el
diff --git a/iedit-lib.el b/iedit-lib.el
index d5891da554..c2b41cae1e 100755
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -56,6 +56,8 @@
;; (eval-when-compile (require 'cl-lib))
+(declare-function c-before-change "cc-mode.el")
+
(defgroup iedit nil
"Edit multiple regions in the same way simultaneously.
The regions are usually the same, called 'occurrence' in the mode."
diff --git a/iedit-rect.el b/iedit-rect.el
index 25385c4184..c5e81b0c35 100644
--- a/iedit-rect.el
+++ b/iedit-rect.el
@@ -126,7 +126,7 @@ Commands:
(let ((beg-col (progn (goto-char beg) (current-column)))
(end-col (progn (goto-char end) (current-column))))
(when (< end-col beg-col)
- (rotatef beg-col end-col))
+ (cl-rotatef beg-col end-col))
(goto-char beg)
(while
(progn
diff --git a/iedit-tests.el b/iedit-tests.el
index 7ae4db0ea5..e38bb88053 100644
--- a/iedit-tests.el
+++ b/iedit-tests.el
@@ -33,6 +33,7 @@
(require 'ert)
(require 'iedit)
(require 'iedit-rect)
+(require 'elp)
(ert-deftest iedit-compile-test ()
(let ((byte-compile-error-on-warn t))
- [nongnu] elpa/iedit 6d2694356c 253/301: Move "declare-function" invocations outside of "when" statement., (continued)
- [nongnu] elpa/iedit 6d2694356c 253/301: Move "declare-function" invocations outside of "when" statement., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f6682186f0 242/301: Replace eval-after-load with require check, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 14376a97e0 223/301: Ignore error in `iedit-mark-sgml-pair', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9fd1b43170 229/301: Fix failed test cases for Emacs 25.1, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 658c10a249 244/301: fix issue of iedit-restrict-function doesn't update mode-line text correctly, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06f1f50939 224/301: Merge pull request #65 from pstray/master, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c11ecd9080 273/301: Update copyright notice, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e5b51ac0af 278/301: Move hooks setup to iedit-lib to reduce code duplication, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c00a8ba805 272/301: Add a new feature - preserve case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4ef9bf6323 287/301: prefix-arg for `iedit-next-occurrence` and `iedit-prev-occurrence`, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3d71392852 276/301: Fix as well issue #118,
ELPA Syncer <=
- [nongnu] elpa/iedit f7184f81d6 284/301: Clean up some lines of unnecessary code, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2e1fd5b1b2 295/301: fix a byte compile issue, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 012de2e8d8 293/301: A few rephase in doc, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6bb8d63a97 297/301: Fix several typo errors, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 345431294a 294/301: Unify prefix augument handling, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 61689f6ba4 057/301: Add arg handle for iedit-mode to exclude some occurrences., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7479d4c947 079/301: Merge branch 'topic/multi-interface', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6cc86d58e6 086/301: Merge pull request #6 from gorakhargosh/master, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4cf803d9cb 092/301: Skip the first occurrence for occur-edit-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c5ab2c593d 094/301: Avoid to restore Iedit mode when restoring desktop, ELPA Syncer, 2022/01/10