[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/m-buffer 8d351bb5fd 054/115: m-buffer-with-current-mark
From: |
ELPA Syncer |
Subject: |
[elpa] externals/m-buffer 8d351bb5fd 054/115: m-buffer-with-current-marker added. |
Date: |
Tue, 19 Jul 2022 15:58:48 -0400 (EDT) |
branch: externals/m-buffer
commit 8d351bb5fd17ea0b2676d310b27e2298616730fa
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
m-buffer-with-current-marker added.
---
README.md | 13 +++++++++++++
m-buffer.el | 10 ++++++++++
2 files changed, 23 insertions(+)
diff --git a/README.md b/README.md
index 9c0945691b..eed3f8b1bd 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,19 @@ with the FSF.
## Change Log
+### 0.6
+
+ - All match functions now take a :numeric argument which forces the
+ return of numbers rather than markers.
+ - Two new functions for subtracting one set of matches from another:
+ `m-buffer-match-subtract` and `m-buffer-match-exact-subtract`
+ - `m-buffer-with-markers` is a `let*` like macro which autonils markers after
+ use.
+ - `m-buffer-with-current-location` is like `with-current-buffer` but
+ also takes a location.
+ - `m-buffer-with-current-marker` is like `with-current-buffer` but takes a
+ marker.
+
### 0.5
- Automated Testing with Cask
diff --git a/m-buffer.el b/m-buffer.el
index 90866a91ff..a505c40156 100644
--- a/m-buffer.el
+++ b/m-buffer.el
@@ -69,6 +69,16 @@ All markers are niled after BODY."
(list ,@marker-vars))
,rtn-var)))
+(defmacro m-buffer-with-current-marker
+ (marker &rest body)
+ "Run BODY at MARKER location."
+ (declare (indent 1) (debug t))
+ `(with-current-buffer
+ (marker-buffer ,marker)
+ (save-excursion
+ (goto-char ,marker)
+ ,@body)))
+
(defmacro m-buffer-with-current-location
(buffer location &rest body)
"Run BODY in BUFFER at LOCATION."
- [elpa] externals/m-buffer 1cc4d8cffb 015/115: Added functions: m-buffer-marker-tree-to-pos, m-buffer-match-nth-group., (continued)
- [elpa] externals/m-buffer 1cc4d8cffb 015/115: Added functions: m-buffer-marker-tree-to-pos, m-buffer-match-nth-group., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 27380daef5 018/115: Functions to add overlays and properties to buffers., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 41384768bc 024/115: Merge pull request #1 from syohex/fix-typo, ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer e4ec4daa87 027/115: replace-match now returns marker to the end of the replacements., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 41ca2908a3 032/115: Added documentation for four functions., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer b7c9738f31 037/115: Update readme for 0.4 release., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 93f64edf1b 046/115: Added support for case-fold-search, ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 761ba8e4b7 049/115: Equals and subtract functionality added., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer a8d5ce9755 050/115: Performance enhancements to subtract., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer fd9d92a0aa 052/115: Added marmalade for noflet., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 8d351bb5fd 054/115: m-buffer-with-current-marker added.,
ELPA Syncer <=
- [elpa] externals/m-buffer d6701d8ce2 044/115: Remove extraneous dash dependency to dash., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 25c2b37969 071/115: m-buffer-point renamed to m-buffer-at-point., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 5166d21792 081/115: Lentic documentation for m-buffer.el., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 22ef3ac985 005/115: Emacs 24 only!, ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer cbd9d12b3d 023/115: Functions for colourizing text. Improved documentation., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 6e8e29e12d 022/115: Fix some typos, ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 05846a92bc 035/115: Removed "-data" from m-buffer-match-data., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 11990bba65 045/115: Version 0.5 release., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer bc7dd63016 051/115: Emacs 24.4 Unit testing., ELPA Syncer, 2022/07/19
- [elpa] externals/m-buffer 115663a882 056/115: Updates for 0.6., ELPA Syncer, 2022/07/19