]> git.eshelyaron.com Git - emacs.git/commitdiff
add narrow-to-region + widen support
authorAndrea Corallo <andrea_corallo@yahoo.it>
Sun, 11 Aug 2019 10:37:21 +0000 (12:37 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:59 +0000 (11:33 +0100)
lisp/emacs-lisp/comp.el

index 6fa098e0eb47bdab9de184f9ab3234cb95cce788..357085ee479836f9ec54127b45c501210ab524b0 100644 (file)
@@ -611,8 +611,12 @@ the annotation emission."
       (byte-char-syntax auto)
       (byte-buffer-substring auto)
       (byte-delete-region auto)
-      (byte-narrow-to-region)
-      (byte-widen)
+      (byte-narrow-to-region
+       (comp-emit-set-call `(call Fnarrow_to_region
+                                  ,(comp-slot)
+                                  ,(comp-slot-next))))
+      (byte-widen
+       (comp-emit-set-call '(call Fwiden)))
       (byte-end-of-line auto)
       (byte-constant2)
       (byte-goto