From 4b0c3c05471bde9e3899cb654da0e4f4ddd8db4b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 3 Dec 2004 10:36:41 +0000 Subject: be more automatic and less .emacs dependent --- perl-install/unused/migrate-ugtk2-to-mygtk2.el | 6 +++++- perl-install/unused/migrate-ugtk2-to-mygtk2.pl | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/perl-install/unused/migrate-ugtk2-to-mygtk2.el b/perl-install/unused/migrate-ugtk2-to-mygtk2.el index 71137d13c..62612053d 100644 --- a/perl-install/unused/migrate-ugtk2-to-mygtk2.el +++ b/perl-install/unused/migrate-ugtk2-to-mygtk2.el @@ -1,5 +1,6 @@ (defun my-close-children () (interactive) + (cperl-mode) (end-of-buffer) (let ((p t)) (while (setq p (search-backward-regexp "\\ \\[" nil t)) @@ -10,4 +11,7 @@ (backward-char) (if (not (string-equal (buffer-substring (point) (1+ (point))) "]")) (insert "]")) - (goto-char p))))) + (goto-char p)))) + (save-buffer) + (kill-emacs) + ) diff --git a/perl-install/unused/migrate-ugtk2-to-mygtk2.pl b/perl-install/unused/migrate-ugtk2-to-mygtk2.pl index ad98b61e2..10e82f555 100644 --- a/perl-install/unused/migrate-ugtk2-to-mygtk2.pl +++ b/perl-install/unused/migrate-ugtk2-to-mygtk2.pl @@ -210,7 +210,7 @@ END { if (defined $^I) { foreach (@args) { warn "$_: closing children using emacs\n"; - system('emacs', '-l', 'unused/migrate-ugtk2-to-mygtk2.el', $_, '-f', 'my-close-children') + system('emacs', '-q', '-l', 'unused/migrate-ugtk2-to-mygtk2.el', $_, '-f', 'my-close-children') } } } -- cgit v1.2.1