[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem using emacspeak-websearch-dispatch with eww



I'm cutting over to emacs 24.4.50 to use eww.
I'm getting the single line
unmatched '.
(there's an apostrophe there) 
wen trying to use emacspeak-websearch-dispatch of google via ctrl-e ?
g
Here's what I'm trying to do

1) start emacs with
exec /usr/local/bin/emacs -nw -q  -l $HOME/packages/svn/emacspeak_24/lisp/emacspeak-setup.el
Which I hope starts emacs with none of my startup or customizations

2) set-variable browse-url-browser-function eww-browse-url

3) ctrl-e ? g lequere 2014 earth system data
which produces a buffer containing only
unmatched '.
followed by two blank lines.
The url it claims to be displaying (from the "k" key) is
https://www.google.com/search?source=hp&q=lequere+2014+earth+system+data&num=25
Next step is to load that url directly 
eww
https://www.google.com/search?source=hp&q=lequere+2014+earth+system+data&num=25
This works fine. 
Now copy some of the code from emacspeak-websearch.el
(let ((emacspeak-w3-tidy-html t))
  (emacspeak-webutils-with-xsl-environment
           (expand-file-name "default.xsl" emacspeak-xslt-directory)
           nil emacspeak-xslt-options
           (browse-url "http://www.google.com/search?source=hp&q=lequere+2014+earth+system+data&num=25";)))

Which produces something like:
-:107: HTML parser error : End tag : expected '>' a.slice.call(a,c,d)};td=/
[\x00&"']/;ud=/\x00/g;vd=/'/g;wd=/"/g;xd=/>/g;yd=/"']/;ud=/\x00/g;vd=/'/g;wd=/"/g;xd=/>/g;yd=/Please click 
About 12,100 results.net/5/165/2013/ ... C. Le Quéré1, R. J. Andres2, T. Boden, Version 2.4 differs from Version 1.3
in the following ways: 1) a ... (Earth System Science Data, 6:235-263. doi:10.5194/essd-6-235-Earth System Science
Data Discussions, 6:689-Earth System Data Discussions www.earth-syst-sci-data-Le Quere, Corinne; Bopp, Laurent;
Racault, Marie-Fanny; Beaugrand,20142014) Earth System Science Data 6(1): 235– Send feedback Privacy & ^ warning:
failed to load external entity "2" unable to parse 2 

This suggests I've broken my xsl machinery somewhere, is that right?
Can anyone follow these steps and see if they generate the same
behaviour?
thanks again
Peter



-- 
Peter Rayner
room 343 
School of Earth Sciences, University of Melbourne, 3010, Vic, Australia
tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 
mobile +61 402 752 379, skype: petermorag 
mail-to: prayner@unimelb.edu.au
google scholar profile <http://scholar.google.com.au/citations?user=H3up71wAAAAJ&hl=en>

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help".



If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive