diff options
| author | Glenn Morris | 2018-06-18 12:14:25 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-06-18 12:14:25 -0700 |
| commit | b455a1b2a8b927d3376e30814954a88f611a17c1 (patch) | |
| tree | 9a2ebfc3534cb5d0e54124c62abaa7b7075f3536 /test/src | |
| parent | 2c335777f78cac0f44df217a48762739533b32db (diff) | |
| parent | 63ba73a9f2bdf75363eea678a8c119ed0ffd9799 (diff) | |
| download | emacs-b455a1b2a8b927d3376e30814954a88f611a17c1.tar.gz emacs-b455a1b2a8b927d3376e30814954a88f611a17c1.zip | |
Merge from origin/emacs-26
63ba73a Fix documentation of ':propertize' in mode-line-format
22aa665 Reject invalid 5-byte sequences when detecting UTF-8 encoding
0d3c358 Fix 'replace-buffer-contents' in multibyte buffers
c79a627 Update etc/NEWS for mail-source-movemail-program change
63f1dc4 Improve movemail default
0b1a2ae Delete description of deleted Customize functions
fcd66d0 Keep vc-print-log from putting point at buffer end (Bug#31764)
Conflicts:
etc/NEWS
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/editfns-tests.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/editfns-tests.el b/test/src/editfns-tests.el index 2e20c9dd126..1ed0bd5bbaf 100644 --- a/test/src/editfns-tests.el +++ b/test/src/editfns-tests.el | |||
| @@ -288,6 +288,17 @@ | |||
| 288 | (buffer-string) | 288 | (buffer-string) |
| 289 | "foo bar baz qux")))))) | 289 | "foo bar baz qux")))))) |
| 290 | 290 | ||
| 291 | (ert-deftest replace-buffer-contents-bug31837 () | ||
| 292 | (switch-to-buffer "a") | ||
| 293 | (insert-char (char-from-name "SMILE")) | ||
| 294 | (insert "1234") | ||
| 295 | (switch-to-buffer "b") | ||
| 296 | (insert-char (char-from-name "SMILE")) | ||
| 297 | (insert "5678") | ||
| 298 | (replace-buffer-contents "a") | ||
| 299 | (should (equal (buffer-substring-no-properties (point-min) (point-max)) | ||
| 300 | (concat (string (char-from-name "SMILE")) "1234")))) | ||
| 301 | |||
| 291 | (ert-deftest delete-region-undo-markers-1 () | 302 | (ert-deftest delete-region-undo-markers-1 () |
| 292 | "Make sure we don't end up with freed markers reachable from Lisp." | 303 | "Make sure we don't end up with freed markers reachable from Lisp." |
| 293 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30931#40 | 304 | ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30931#40 |