[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/macrostep 2473a6f 094/110: Pass START and END args to sexp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/macrostep 2473a6f 094/110: Pass START and END args to sexp-at-point-function |
Date: |
Sat, 7 Aug 2021 09:18:10 -0400 (EDT) |
branch: elpa/macrostep
commit 2473a6f762ded3de4e7f281bd25eb055435e040c
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Pass START and END args to sexp-at-point-function
---
macrostep.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/macrostep.el b/macrostep.el
index 7efd4c1..38e8512 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -395,10 +395,10 @@ Emacs Lisp, and may be suitable for other Lisp-like
languages.")
#'macrostep-sexp-at-point
"Function to return the macro form at point for expansion.
-It will be called with no arguments, with point positioned at the
-START position returned by `macrostep-sexp-bounds-function', and
-should return a value suitable for passing as the first argument
-to `macrostep-expand-1-function'.
+It will be called with two arguments, the values of START and END
+returned by `macrostep-sexp-bounds-function', and with point
+positioned at START. It should return a value suitable for
+passing as the first argument to `macrostep-expand-1-function'.
The default value, `macrostep-sexp-at-point', implements this for
Emacs Lisp, and may be suitable for other Lisp-like languages.")
@@ -546,7 +546,7 @@ behaviors."
(cl-destructuring-bind (start . end)
(funcall macrostep-sexp-bounds-function)
(goto-char start)
- (let* ((sexp (funcall macrostep-sexp-at-point-function))
+ (let* ((sexp (funcall macrostep-sexp-at-point-function start end))
(end (copy-marker end))
(text (buffer-substring start end))
(env (funcall macrostep-environment-at-point-function))
@@ -743,7 +743,7 @@ Returns a cons of buffer positions, (START . END)."
(error "Text at point is not a macro form."))))))
(cons (point) (scan-sexps (point) 1))))
-(defun macrostep-sexp-at-point ()
+(defun macrostep-sexp-at-point (&rest ignore)
"Return the sexp near point for purposes of macro-stepper expansion.
If the sexp near point is part of a macro expansion, returns the
- [nongnu] elpa/macrostep 59972eb 071/110: Fix handling of subforms contained within other subforms, (continued)
- [nongnu] elpa/macrostep 59972eb 071/110: Fix handling of subforms contained within other subforms, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep a0ae61c 073/110: Properly handle forms not present in the expansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 817322b 074/110: Properly place the macrostep[-compiler]-macro-face, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep aa40d97 076/110: Test expansion within Elisp macro-defining macros, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 1edee85 080/110: Reorganise and comment, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep bbfb033 081/110: Reorganise and document generic interface, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 2bdc946 082/110: Remove dynamic binding of `macrostep-environment'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 31a23eb 085/110: Toggle separate-buffer expansion with prefix (#8), ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 47cbacb 087/110: Define `macrostep-propertize` before using it, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep a8e730e 089/110: Improve Makefile, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 2473a6f 094/110: Pass START and END args to sexp-at-point-function,
ELPA Syncer <=
- [nongnu] elpa/macrostep 03d4d7b 096/110: Add basic C macro expansion via cmacexp.el, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 9a6b04a 100/110: Restore Emacs 23 compatibility, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep d48e52b 101/110: Add tests for compiler-macro expansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep aa59895 103/110: Add .travis.yml, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 7b2c1f3 108/110: Load all autoloaded macros, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 4d75baf 003/110: Bump version number, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 8a85acc 022/110: Refactor backquote handling and text properties., ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 2d216ba 109/110: Merge pull request #19 from fice-t/autoload, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 83b2a0a 015/110: Tweak visible highlight, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 3f815fb 031/110: Test for normal defmacro expansion, ELPA Syncer, 2021/08/07