]> git.eshelyaron.com Git - emacs.git/commitdiff
(ediff-defvar-local, ediff-with-current-buffer):
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 25 May 2007 16:41:25 +0000 (16:41 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 25 May 2007 16:41:25 +0000 (16:41 +0000)
Add indentation and debugging info.  Fix up comment convention.

lisp/ChangeLog
lisp/ediff-init.el

index 7aeed1d185b6da15928a61897b3bde53a4c959b6..e00e3593e463cd24f623bd9f98a6da4dcc44988c 100644 (file)
@@ -1,5 +1,8 @@
 2007-05-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * ediff-init.el (ediff-defvar-local, ediff-with-current-buffer):
+       Add indentation and debugging info.  Fix up comment convention.
+
        * cus-dep.el (custom-make-dependencies): Simplify.
 
        * composite.el (compose-region, decompose-region):
index 0ecc809797ffa8ee7a2d294f32b9bc18e2772328..d37096f9e89d4c7c93ee5dd867833d24d0e28597 100644 (file)
@@ -110,6 +110,7 @@ that Ediff doesn't know about.")
 ;;
 ;; Plagiarised from `emerge-defvar-local' for XEmacs.
 (defmacro ediff-defvar-local (var value doc)
+  (declare (indent defun))
   `(progn
      (defvar ,var ,value ,doc)
      (make-variable-buffer-local ',var)
@@ -258,6 +259,7 @@ It needs to be killed when we quit the session.")
 ;; Doesn't save the point and mark.
 ;; This is `with-current-buffer' with the added test for live buffers."
 (defmacro ediff-with-current-buffer (buffer &rest body)
+  (declare (indent 1) (debug (form body)))
   `(if (ediff-buffer-live-p ,buffer)
        (save-current-buffer
         (set-buffer ,buffer)
@@ -1873,11 +1875,11 @@ Unless optional argument INPLACE is non-nil, return a new string."
 
 
 
-;;; Local Variables:
-;;; eval: (put 'ediff-defvar-local 'lisp-indent-hook 'defun)
-;;; eval: (put 'ediff-with-current-buffer 'lisp-indent-hook 1)
-;;; eval: (put 'ediff-with-current-buffer 'edebug-form-spec '(form body))
-;;; End:
+;; Local Variables:
+;; eval: (put 'ediff-defvar-local 'lisp-indent-hook 'defun)
+;; eval: (put 'ediff-with-current-buffer 'lisp-indent-hook 1)
+;; eval: (put 'ediff-with-current-buffer 'edebug-form-spec '(form body))
+;; End:
 
-;;; arch-tag: fa31d384-1e70-4d4b-82a7-3e96307c46f5
+;; arch-tag: fa31d384-1e70-4d4b-82a7-3e96307c46f5
 ;;; ediff-init.el ends here