diff options
| author | João Távora | 2023-04-03 00:33:03 +0100 |
|---|---|---|
| committer | João Távora | 2023-04-03 00:33:03 +0100 |
| commit | c108132d3bb69d0cc8d2e0222a781dff9abca087 (patch) | |
| tree | f2bd600bfcf0f9f06dd36b7f08bfcc605da352fe /test/src | |
| parent | f886ae5cf07bb40ad3fd0262942bdc74efca0277 (diff) | |
| parent | 3bdbb66efb9895b8ed55270075fa7d8329f8d36b (diff) | |
| download | emacs-c108132d3bb69d0cc8d2e0222a781dff9abca087.tar.gz emacs-c108132d3bb69d0cc8d2e0222a781dff9abca087.zip | |
Merge from origin/emacs-29
3bdbb66efb9 ; CONTRIBUTE: Minor stylistic changes.
d0eb12e8d3c Fix typo in section 14.1 of Emacs Manual
b2fbec37f39 ; * etc/EGLOT-NEWS: Clarify scope of topmost section
131ec049db0 Eglot: unbreak eglot-extend-to-xref on w32
0622e1f29f6 Eglot: ensure server shutdown turns off eglot-inlay-hints...
59f66ea3027 ; * lisp/emacs-lisp/package-vc.el: Remove completed item ...
d23dc3dd7e3 ; * lisp/emacs-lisp/package-vc.el (package-vc): Fix manua...
4508a024e81 ; Clarify documentation of 'cursor' text property
d2e82817a3f Add two typescript-ts-mode faces (bug#62429)
10918fc9d24 Fix scrolling window when point moves up
9b32bc134c4 Improve documentation of 'defcustom's :set keyword
ab4273056e0 Comp fix calls to redefined primtives with op-bytecode (b...
c98929c7e18 ; Fix last change
a14c3f62a67 ; Fix last change
09fece5722f Fix duplicate defcustom in eww.el
e45bd10a3d9 Fix indentation regression in 'C-h l'
46fd10a7600 * doc/misc/tramp.texi (Remote shell setup): Clarify use o...
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/comp-tests.el | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 926ba27e563..c5e5b346adb 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -446,7 +446,7 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." | |||
| 446 | (should (equal comp-test-primitive-advice '(3 4)))) | 446 | (should (equal comp-test-primitive-advice '(3 4)))) |
| 447 | (advice-remove #'+ f)))) | 447 | (advice-remove #'+ f)))) |
| 448 | 448 | ||
| 449 | (defvar comp-test-primitive-redefine-args) | 449 | (defvar comp-test-primitive-redefine-args nil) |
| 450 | (comp-deftest primitive-redefine () | 450 | (comp-deftest primitive-redefine () |
| 451 | "Test effectiveness of primitive redefinition." | 451 | "Test effectiveness of primitive redefinition." |
| 452 | (cl-letf ((comp-test-primitive-redefine-args nil) | 452 | (cl-letf ((comp-test-primitive-redefine-args nil) |
| @@ -532,6 +532,22 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." | |||
| 532 | (should (subr-native-elisp-p | 532 | (should (subr-native-elisp-p |
| 533 | (symbol-function 'comp-test-48029-nonascii-žžž-f)))) | 533 | (symbol-function 'comp-test-48029-nonascii-žžž-f)))) |
| 534 | 534 | ||
| 535 | (comp-deftest 61917-1 () | ||
| 536 | "Verify we can compile calls to redefined primitives with | ||
| 537 | dedicated byte-op code." | ||
| 538 | (let (x | ||
| 539 | (f (lambda (fn &rest args) | ||
| 540 | (setq comp-test-primitive-redefine-args args)))) | ||
| 541 | (advice-add #'delete-region :around f) | ||
| 542 | (unwind-protect | ||
| 543 | (setf x (native-compile | ||
| 544 | '(lambda () | ||
| 545 | (delete-region 1 2)))) | ||
| 546 | (should (subr-native-elisp-p x)) | ||
| 547 | (funcall x) | ||
| 548 | (advice-remove #'delete-region f) | ||
| 549 | (should (equal comp-test-primitive-redefine-args '(1 2)))))) | ||
| 550 | |||
| 535 | 551 | ||
| 536 | ;;;;;;;;;;;;;;;;;;;;; | 552 | ;;;;;;;;;;;;;;;;;;;;; |
| 537 | ;; Tromey's tests. ;; | 553 | ;; Tromey's tests. ;; |