6 open file1
,"<$file1" or die;
8 if (m/^\s*\((defun|defsubst|defmacro|defcustom|defgroup|defface|defvar|defconst)\s+([-a-zA-Z0-9]+)/) {
11 } elsif ($1 eq "defsubst") {
13 } elsif ($1 eq "defmacro") {
15 } elsif ($1 eq "defgroup") {
17 } elsif ($1 eq "defcustom") {
19 } elsif ($1 eq "defface") {
21 } elsif ($1 eq "defvar") {
23 } elsif ($1 eq "defconst") {
30 open file2
,"<$file2" or die;
32 if (m/^\s*\((defun|defsubst|defmacro|defcustom|defgroup|defface|defvar|defconst)\s+([-a-zA-Z0-9]+)/) {
35 } elsif ($1 eq "defsubst") {
37 } elsif ($1 eq "defmacro") {
39 } elsif ($1 eq "defgroup") {
41 } elsif ($1 eq "defcustom") {
43 } elsif ($1 eq "defface") {
45 } elsif ($1 eq "defvar") {
47 } elsif ($1 eq "defconst") {
54 foreach $type ("fun","subst","macro","group","custom","face","var","const") {
55 $cmd1 = '%n1 = %' . $type . "1;";
56 $cmd2 = '%n2 = %' . $type . "2;";
60 print "$type added:\n";
62 unless (defined $n1{$_}) {
66 print "$type removed:\n";
68 unless (defined $n2{$_}) {