Sha256: 815e6dbb48ed26e2de598d032f844054fedfe9b912409c8f86587e4a1bd7e0c1
Contents?: true
Size: 1.56 KB
Versions: 35
Compression:
Stored size: 1.56 KB
Contents
;; -*- emacs-lisp -*- ;; This program has to be run from the directory it is currently in and ;; the rdebug code has to be in the parent directory (load-file "./elk-test.el") ;; ------------------------------------------------------------------- ;; Check source code indentation ;; (put 'rdebug-debug-enter 'lisp-indent-hook 1) (defun rdebug-test-reindent-one-file (file) (let ((buf (generate-new-buffer "testing")) (res nil)) (save-excursion (switch-to-buffer buf) (insert-file file) (emacs-lisp-mode) (set-buffer-modified-p nil) (undo-boundary) (indent-region (point-min) (point-max)) (if (buffer-modified-p) (setq res "Reindentation failed"))) (kill-buffer buf) res)) (deftest "rdebug-indent-files" (mapcar (lambda (lisp-file) (message lisp-file) (assert-nil (rdebug-test-reindent-one-file lisp-file))) '("../rdebug.el" "../rdebug-breaks.el" "../rdebug-cmd.el" "../rdebug-core.el" "../rdebug-dbg.el" "../rdebug-error.el" "../rdebug-frames.el" "../rdebug-fns.el" "../rdebug-gud.el" "../rdebug-help.el" "../rdebug-info.el" "../rdebug-layouts.el" "../rdebug-output.el" "../rdebug-regexp.el" "../rdebug-secondary.el" "../rdebug-source.el" "../rdebug-track.el" "../rdebug-varbuf.el" "../rdebug-vars.el" "../rdebug-watch.el" "./test-cmd.el" "./test-core.el" "./test-indent.el" "./test-regexp.el" ))) (run-elk-test "rdebug-indent-files" "test indentation of Lisp files")
Version data entries
35 entries across 34 versions & 5 rubygems