[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] feature/noverlay 7c0824a 1/4: Add test regarding overlay a
From: |
Andreas Politz |
Subject: |
[Emacs-diffs] feature/noverlay 7c0824a 1/4: Add test regarding overlay and buffer encoding |
Date: |
Thu, 5 Oct 2017 16:26:15 -0400 (EDT) |
branch: feature/noverlay
commit 7c0824a1d04d660c86c78143d5485af174ee0c6b
Author: Andreas Politz <address@hidden>
Commit: Andreas Politz <address@hidden>
Add test regarding overlay and buffer encoding
* test/src/buffer-tests.el (test-overlay-multibyte-transition-1):
New test exposing a bug regarding overlays when changing the
multibyteness of a buffer.
---
test/src/buffer-tests.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el
index 71f8705..e3bc2c5 100644
--- a/test/src/buffer-tests.el
+++ b/test/src/buffer-tests.el
@@ -1212,6 +1212,14 @@ with parameters from the *Messages* buffer modification."
(54 . 135)
(68 . 99))))))
+(ert-deftest test-overlay-multibyte-transition-1 ()
+ (with-temp-buffer
+ (set-buffer-multibyte t)
+ (insert "Ä")
+ (let ((ov (make-overlay (point-min) (point-max))))
+ (set-buffer-multibyte nil)
+ (should (eq (overlay-end ov) (point-max))))))
+
;;
+===================================================================================+
;; | Autogenerated insert/delete/narrow tests