[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/el-search 4b934f1 238/332: * el-search/el-search.el: Sk
From: |
Stefan Monnier |
Subject: |
[elpa] externals/el-search 4b934f1 238/332: * el-search/el-search.el: Skip over #N read syntaxes |
Date: |
Tue, 1 Dec 2020 15:48:53 -0500 (EST) |
branch: externals/el-search
commit 4b934f1f3087d5deb2be6f0a3595a13934882fd1
Author: Michael Heerdegen <michael_heerdegen@web.de>
Commit: Michael Heerdegen <michael_heerdegen@web.de>
* el-search/el-search.el: Skip over #N read syntaxes
This fixes issues with el-searching being distracted by these
constructs.
(el-search--ensure-sexp-start): Skip over #N= and #N# read syntaxes.
Add a sentence to the docstring telling that parts of cyclic sexps may
be skipped.
---
el-search.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/el-search.el b/el-search.el
index 3ca3147..0f2c77b 100644
--- a/el-search.el
+++ b/el-search.el
@@ -7,7 +7,7 @@
;; Created: 29 Jul 2015
;; Keywords: lisp
;; Compatibility: GNU Emacs 25
-;; Version: 1.6.8
+;; Version: 1.6.9
;; Package-Requires: ((emacs "25") (stream "2.2.4") (cl-print "1.0"))
@@ -816,7 +816,9 @@ Point should be at a sexp beginning."
"Move point to the next sexp beginning position.
Do nothing if already at beginning of a sexp. `read' the
expression starting at that position and return it. Point must
-not be inside a string or comment."
+not be inside a string or comment.
+Subsexps of sexps containing shared parts may be skipped (when
+not `read'able without context)."
;; We don't catch end-of-buffer to keep the return value
;; non-ambiguous
(let ((not-done t) res)
@@ -841,6 +843,10 @@ not be inside a string or comment."
((or (and (looking-at "'") (funcall looking-at-from-back "#" 1))
(and (looking-at "@") (funcall looking-at-from-back "," 1)))
(forward-char))
+ (;; Skip over #N= and #N# read syntax
+ (or (looking-at "['#`,@]*#[0-9]+=")
+ (looking-at "['#`,@]*#[0-9]+#"))
+ (goto-char (match-end 0)))
(t (setq stop-here t)))))
(condition-case nil
(progn
- [elpa] externals/el-search 68fcfcd 286/332: [el-search] Include preceding comments in occur defun context, (continued)
- [elpa] externals/el-search 68fcfcd 286/332: [el-search] Include preceding comments in occur defun context, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 90062c5 290/332: Update copyrights of some packages, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 120c662 296/332: [el-search] Minibuffer pattern prompt hints part 2, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 668d049 302/332: [el-search] Add el-search-list-defined-patterns, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search bb978b2 306/332: [el-search] Fix behavior after completed single-buffer search, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 985ca3c 312/332: [el-search] Add "List patterns" menu item, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search f5e8235 321/332: [el-search] C-c C-c in edit-replacement means replace, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 9d8798f 140/332: Work around more manifestations of Emacs bug #24542, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 7d621de 216/332: * el-search/el-search.el: Some minor tweaks, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 29eeda2 228/332: Show progress of automatic el-search-query-replace, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 4b934f1 238/332: * el-search/el-search.el: Skip over #N read syntaxes,
Stefan Monnier <=
- [elpa] externals/el-search 01d4431 269/332: [el-search] Don't initially fold El Occur buffers, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 1169ef1 294/332: [el-search] Add accessible buffer area to a validity check, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search c0947c3 295/332: [el-search] Minibuffer pattern prompt hints part 1: preparations, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 749aa0c 300/332: [el-search] Improvements for 'change' and 'changed', Stefan Monnier, 2020/12/01
- [elpa] externals/el-search e522b71 305/332: [el-search] Enhance docstring of el-search-occur-mode, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search fdc4663 308/332: [el-search] Bump version to 1.11.1, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search e790747 309/332: [el-search] Fix quits in minibuffer in emacs -nw, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 39da179 313/332: [el-search] Minibuffer pattern prompt hints part 3, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 01c663b 315/332: [el-search] Make el-search-query-replace resumable, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search c95de2b 317/332: [el-search] Shorten el-search-query-replace prompt again, Stefan Monnier, 2020/12/01