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

Version Path
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/debugger-1.6.8/emacs/test/test-indent.el
debugger-1.6.8 emacs/test/test-indent.el
debugger-1.6.7 emacs/test/test-indent.el
debugger-1.6.6 emacs/test/test-indent.el
debugger-1.6.5 emacs/test/test-indent.el
debugger-1.6.4 emacs/test/test-indent.el
debugger-1.6.3 emacs/test/test-indent.el
debugger-1.6.2 emacs/test/test-indent.el
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/debugger-1.6.1/emacs/test/test-indent.el
candlepin-api-0.4.0 bundle/ruby/gems/debugger-1.6.1/emacs/test/test-indent.el
debugger-1.6.1 emacs/test/test-indent.el
debugger-1.6.0 emacs/test/test-indent.el
debugger2-1.0.0.beta2 emacs/test/test-indent.el
debugger2-1.0.0.beta1 emacs/test/test-indent.el
debugger-1.5.0 emacs/test/test-indent.el
needy_debugger-1.4.0 emacs/test/test-indent.el
debugger-1.4.0 emacs/test/test-indent.el
debugger-1.3.3 emacs/test/test-indent.el
debugger-1.3.2 emacs/test/test-indent.el
debugger-1.3.1 emacs/test/test-indent.el