aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTino Calancha2017-08-02 17:52:57 +0900
committerTino Calancha2017-08-02 17:53:14 +0900
commitae055834a99b26bf46180b6c78fe7ca24b7c8194 (patch)
tree139ac036b74e76b65076360a08ff455eb028c962 /test
parente82c4f56e6f9a6bce4098698b17fa45dcc5bbd25 (diff)
downloademacs-ae055834a99b26bf46180b6c78fe7ca24b7c8194.tar.gz
emacs-ae055834a99b26bf46180b6c78fe7ca24b7c8194.zip
dired-align-file: Inherit text properties in inserted spaces
* lisp/dired.el (dired-align-file): Inherit text properties in inserted spaces (Bug#27899). * test/lisp/dired-tests.el (dired-test-bug27899): Add test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/dired-tests.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 4ab6b37664b..c67f37953ca 100644
--- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -260,6 +260,21 @@
260 (delete-directory dir 'recursive) 260 (delete-directory dir 'recursive)
261 (when (buffer-live-p buf) (kill-buffer buf))))) 261 (when (buffer-live-p buf) (kill-buffer buf)))))
262 262
263(ert-deftest dired-test-bug27899 ()
264 "Test for http://debbugs.gnu.org/27899 ."
265 (let* ((dir (expand-file-name "src" source-directory))
266 (buf (dired (list dir "cygw32.c" "alloc.c" "w32xfns.c" "xdisp.c")))
267 (orig dired-hide-details-mode))
268 (dired-goto-file (expand-file-name "cygw32.c"))
269 (forward-line 0)
270 (unwind-protect
271 (progn
272 (let ((inhibit-read-only t))
273 (dired-align-file (point) (point-max)))
274 (dired-hide-details-mode t)
275 (dired-move-to-filename)
276 (should (eq 2 (current-column))))
277 (dired-hide-details-mode orig))))
263 278
264(provide 'dired-tests) 279(provide 'dired-tests)
265;; dired-tests.el ends here 280;; dired-tests.el ends here