diff options
Diffstat (limited to 'perl-install/unused/migrate-ugtk2-to-mygtk2.el')
-rw-r--r-- | perl-install/unused/migrate-ugtk2-to-mygtk2.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/perl-install/unused/migrate-ugtk2-to-mygtk2.el b/perl-install/unused/migrate-ugtk2-to-mygtk2.el new file mode 100644 index 000000000..71137d13c --- /dev/null +++ b/perl-install/unused/migrate-ugtk2-to-mygtk2.el @@ -0,0 +1,13 @@ +(defun my-close-children () + (interactive) + (end-of-buffer) + (let ((p t)) + (while (setq p (search-backward-regexp "\\<children\\(\\|_tight\\|_loose\\) => \\[" nil t)) + (progn + (search-forward "[") + (backward-char) + (forward-sexp) + (backward-char) + (if (not (string-equal (buffer-substring (point) (1+ (point))) "]")) + (insert "]")) + (goto-char p))))) |