[mew-int 01102] Re: mew-summary-search

George Kahler george at example.com
Thu Oct 3 04:47:42 JST 2002


On Wed, 02 Oct 2002 14:51:20 -0400 (EDT), "David A. Panariti" <davep.mew at example.com> wrote:

OK, I think I got it now.
Yes, I did restart emacs. I actually byte-compiled mew-init.el with
the changes you guys were suggesting and then restarted emacs/mew.

David's note about the ``grep -i -l -e <your-regexp>'' clued me in.
				       ^^^^^^^^^^^^^
It is not grep that I need but egrep which does the regular
expressions; at least here on Solaris.

Thanks guys.
George




> 
> >>>>> "George" == George Kahler <george at example.com> writes:
> 
>    George> On Thu, 03 Oct 2002 02:54:38 +0900 (JST), Tatsuya Kinoshita
>    George> <tats at example.com> wrote:
>    >> On October 2, 2002, [mew-int 01095], George Kahler
>    >> <george at example.com> wrote:
>    >>
>    >> > After I type C-U ? I get "Grep pattern:" at which I type a
>    >> > string that I'm looking for. After I press 'enter' mew
>    >> > responds back with "No message to be marked". And yes, I did
>    >> > verify that the strings I'm looking for actually exists!
>    >>
>    >> If you want to ignore case distinctions, put the below in your
>    >> `~/.mew.el' file.
>    >>
>    >> ---- (setq mew-prog-grep "grep") (setq mew-prog-grep-opts '("-i"
>    >> "-l" "-e")) (setq mew-prog-vgrep "grep") (setq
>    >> mew-prog-vgrep-opts '("-i" "-l" "-e"))
>    >> ----
> 
>    George> This did not help, I still get 'no messages marked'.  To
>    George> answer Simon's query; yes grep is in the machine.
> 
>    George> This is a Sun Solaris 8: viper.ccs% which grep /bin/grep
>    George> viper.ccs% whereis grep
>    grep> /bin/grep /usr/bin/grep
> 
>    George> Any other ideas guys ?  Maybe I missed something during my
>    George> conversion from 1.95b3 ?
> 
>    George> George
> 
> Some obvious, but possibly overlooked things:
> 1) did you either restart [x]emacs or eval the setqs?
>    .mew.el is only loaded at mew's startup.
>    ^Hv mew-prog-grep-opts to check them.
> 
> 2) make sure the *exact* command ``grep -i -l -e <your-regexp>''
>    works as expected.  Not a grep with different args.
> 
> Some more involved things:
> 
> I do this when things like the above happen to me: 
> 
> Create a script in your bin dir like the one at the end of this
> message.  Then change `grep' in the above setqs to be the name of this
> script. eval them.  If you don't want to change the grep command, then
> name this script `grep' and make sure it is in your path before
> /bin/grep.  You'll need to (setenv PATH "blah") in emacs or restart it
> for the path changes to affect the exec done to run grep.  
> 
> I echo args separately in the loop to find invisible quoting errors,
> i.e. echo 1 2 looks exactly like echo "1 2" but are quite
> different. The loop make the difference visible.
> This allows you to see what mew is trying to do.
> If the log file is empty, then mew is not seeing your changes.
> NB: "I've only typed in the code, not tested it."
> (apologies to Knuth)
> 
> regards,
> davep
> 
> #!/bin/sh
> 
> log=/tmp/logit.log
> 
> echo "--" >> $log
> date >> $log
> for i in "$@"
> do
>     echo "\"$i\"" >> $log
> done
> 
> /bin/grep "$@"
> #cat >> $log
> 



More information about the Mew-int mailing list