Dear List, i found on the emacswiki the following script written in Perl which is supposed to make emacsclient read from a pipe:
#! /usr/bin/perl # This script uses emacsclient, be sure to have a running server session. # A server-session can be started by "M-x server-start". my $status = system("emacsclient -n --eval '(progn (pop-to-buffer (get-buffer-create \"*piped*\")))'"); if($status!=0){ exit 1; } while(<STDIN>){ system("emacsclient -n --eval '(with-current-buffer \"*piped*\" (insert \"" . $_ . "\"))'"); } Now when this script reads a list of emailaddresses for example from mutt: From: John Test <john @test.org> From: "William Testtwo" <william test...@test.test.org> it gives the following output: #<buffer *piped*> *ERROR*: Symbol's value as variable is void: William everything works normaly if before feeding the output to emacspipe.pl, i run it through "sed s/\"//g", whereby deleting the double quotes. There must be something about the interpolation. Maybe somebody has an idea? I am not an expert at this. Gabriel -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/