diff options
author | Andreas Politz <politza@hochschule-trier.de> | 2017-10-05 19:24:55 +0200 |
---|---|---|
committer | Andreas Politz <politza@hochschule-trier.de> | 2017-10-05 19:24:55 +0200 |
commit | 7c0824a1d04d660c86c78143d5485af174ee0c6b (patch) | |
tree | b6fc720f1b3c15512a4e5de4c9b92734e73eddb7 | |
parent | 8d7bdfa3fca076b34aaf86548d3243bee11872ad (diff) | |
download | emacs-7c0824a1d04d660c86c78143d5485af174ee0c6b.tar.gz |
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.
-rw-r--r-- | test/src/buffer-tests.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el index 71f8705c6fd..e3bc2c5dfcb 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 |