diff options
| author | Stefan Kangas | 2023-01-19 06:30:25 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2023-01-19 06:30:25 +0100 |
| commit | 9161a302c9f9fbfa1a8f33181bb332d2c5df3aa7 (patch) | |
| tree | 21de62aa23f4ad770ff8afe322c0223ea7e0af76 /test/src | |
| parent | efb9ec11bbee3871d77dc4e9217bd9293d525d5d (diff) | |
| parent | db727873803a974ba210c4942ae7cbcc3d6268ab (diff) | |
| download | emacs-9161a302c9f9fbfa1a8f33181bb332d2c5df3aa7.tar.gz emacs-9161a302c9f9fbfa1a8f33181bb332d2c5df3aa7.zip | |
Merge from origin/emacs-29
db727873803 ruby-ts-mode: Use font-lock-constant-face for true/false/nil
819719330ad (ruby-ts--indent-rules): Add a rule for continuation of a...
94b9cbf96fb (ruby-ts--parent-call-or-bol): Handle more cases with nes...
ba33b83ce4b (ruby-ts--statement-container-regexp): Remove "parenthesi...
f2bedf695c1 ruby-ts-mode: Handle indent in parenless calls much close...
758ac5eabbe Fix split-window-below for the case when split-window-kee...
8e9783b4ce4 Rebind in read-regexp-map ‘M-c’ to ‘M-s c’ compatible wit...
78f93d92b28 * lisp/vc/vc-dir.el: Make keys ‘% m’ and ‘* %’ compatible...
dc3f85fd4b0 Use proper types for Eshell warnings
6a8338a8bc8 ; Avoid byte-compiler warning in cc-fonts.el.
9186be20aeb ; Clarify doc strings of some functions in files.el
bd5ef3ef95e Improve the documentation of 'auto-mode-alist' search
1798ff5a663 ; Fix minor mistakes in documentation
faee7e1f1bd ; * lisp/treesit.el (treesit-font-lock-fontify-region): M...
24f0dfd3731 Revert "Revert "Add c-or-c++-ts-mode (bug#59613)""
ac3bc775b6f Make it harder to misactivate tree-sitter font-lock fast ...
bdd82fa7977 ; * src/treesit.c: Remove unused boilerplate.
343b9b3dfe3 ruby-ts-mode: Obey the option ruby-method-call-indent
045404d1aac ruby-ts-mode: Obey the option ruby-after-operator-indent
300ca6ac372 ruby-ts-mode: Fix indent after operator or conditional
ac5516bd7d5 ruby-ts-mode: Fix/change indentation of a continuation me...
5e2e68a0c2d ruby-ts-mode: Fix indent inside parenthesized_expr and el...
9ed9ff4690a ruby-ts-mode: Fix the rules for hanging arrays and hashes
c4f0b6ccea1 Add more detail about how to invoke Eshell commands
dbac923b9df CC Mode: On removal of "typedef", remove pertinent types ...
56d69c2fc47 ; Relax timeouts for failing ERC test
183e7492702 Don't preserve non-module minor modes in erc-open
7b8322f6285 Use correct buffer for local-module vars in erc-open
7b13422298a ; Avoid plist-get as generalized var in erc-compat
09e9d7c7496 Fix display of warnings on w32 console
bd094207c76 Fix buffer-list-update-hook for indirect buffers
9e7a5d58eea ; Fix tree-sitter indent anchor preset
7c61a304104 Fix treesit-node-first-child-for-pos (bug#60127)
b36cc7e7bbb ; * src/treesit.c (Ftreesit_induce_sparse_tree): Minor ch...
# Conflicts:
# etc/NEWS
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/buffer-tests.el | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el index e5de8f3464a..9d4bbf3e040 100644 --- a/test/src/buffer-tests.el +++ b/test/src/buffer-tests.el | |||
| @@ -8315,29 +8315,35 @@ dicta sunt, explicabo. ")) | |||
| 8315 | (remove-hook 'buffer-list-update-hook bluh)))) | 8315 | (remove-hook 'buffer-list-update-hook bluh)))) |
| 8316 | 8316 | ||
| 8317 | (ert-deftest buffer-tests-inhibit-buffer-hooks-indirect () | 8317 | (ert-deftest buffer-tests-inhibit-buffer-hooks-indirect () |
| 8318 | "Indirect buffers do not call `get-buffer-create'." | 8318 | "Test `make-indirect-buffer' argument INHIBIT-BUFFER-HOOKS." |
| 8319 | (dolist (inhibit '(nil t)) | 8319 | (let* ( base run-bluh run-kbh run-kbqf |
| 8320 | (let ((base (get-buffer-create "foo" inhibit))) | 8320 | (bluh (lambda () (setq run-bluh t))) |
| 8321 | (kbh (lambda () (setq run-kbh t))) | ||
| 8322 | (kbqf (lambda () (setq run-kbqf t)))) | ||
| 8323 | (dolist (inhibit-base '(nil t)) | ||
| 8321 | (unwind-protect | 8324 | (unwind-protect |
| 8322 | (dotimes (_i 11) | 8325 | (let (indirect) |
| 8323 | (let* (flag* | 8326 | (setq base (generate-new-buffer " base" inhibit-base)) |
| 8324 | (flag (lambda () (prog1 t (setq flag* t)))) | 8327 | (dolist (inhibit-indirect '(nil t)) |
| 8325 | (indirect (make-indirect-buffer base "foo[indirect]" nil | 8328 | (dotimes (_ 11) |
| 8326 | inhibit))) | 8329 | (unwind-protect |
| 8327 | (unwind-protect | 8330 | (let ((name (generate-new-buffer-name " indirect"))) |
| 8328 | (progn | 8331 | (setq run-bluh nil run-kbh nil run-kbqf nil) |
| 8329 | (with-current-buffer indirect | 8332 | (add-hook 'buffer-list-update-hook bluh) |
| 8330 | (add-hook 'kill-buffer-query-functions flag nil t)) | 8333 | (with-current-buffer |
| 8331 | (kill-buffer indirect) | 8334 | (setq indirect (make-indirect-buffer |
| 8332 | (if inhibit | 8335 | base name nil inhibit-indirect)) |
| 8333 | (should-not flag*) | 8336 | (add-hook 'kill-buffer-hook kbh nil t) |
| 8334 | (should flag*))) | 8337 | (add-hook 'kill-buffer-query-functions kbqf nil t) |
| 8335 | (let (kill-buffer-query-functions) | 8338 | (kill-buffer)) |
| 8339 | (should (xor inhibit-indirect run-bluh)) | ||
| 8340 | (should (xor inhibit-indirect run-kbh)) | ||
| 8341 | (should (xor inhibit-indirect run-kbqf))) | ||
| 8342 | (remove-hook 'buffer-list-update-hook bluh) | ||
| 8336 | (when (buffer-live-p indirect) | 8343 | (when (buffer-live-p indirect) |
| 8337 | (kill-buffer indirect)))))) | 8344 | (kill-buffer indirect)))))) |
| 8338 | (let (kill-buffer-query-functions) | 8345 | (when (buffer-live-p base) |
| 8339 | (when (buffer-live-p base) | 8346 | (kill-buffer base)))))) |
| 8340 | (kill-buffer base))))))) | ||
| 8341 | 8347 | ||
| 8342 | (ert-deftest zero-length-overlays-and-not () | 8348 | (ert-deftest zero-length-overlays-and-not () |
| 8343 | (with-temp-buffer | 8349 | (with-temp-buffer |