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

Re: w3



Hello, 

Ok I've made some progress. W3 is compiled and installed on my
system. I had a look at the emacs wiki which Rob suggested. 

I now have this in .emacs:

;html tidy/emacspeak stuff
(add-hook 'w3-parse-hooks 'w3-tidy-page)

 (defvar w3-fast-parse-tidy-program "/usr/local/bin/tidy")
  (defun w3-tidy-page (&optional buff)
    "Use html tidy to clean up the HTML in the current buffer."
    (save-excursion
        (if buff
            (set-buffer buff)
          (setq buff (current-buffer)))
        (widen)
        (call-process-region (point-min) (point-max)
                             w3-fast-parse-tidy-program
                             t (list buff nil) nil ;nil nil nil;
                             "--show-warnings" "no" "--show-errors" "0" "--force-output" "yes"
                             "-quiet" "-clean" "-bare" "-omit"
                             "--drop-proprietary-attributes" "yes" "--hide-comments" "yes"
                           )))
I type m-x w3-fetch
It prompts me for the url, I enter www.google.com
It looks to download the page fine, but I can't read the page. There
  seems to be no w3 buffer as such for google. It says w3 mode down the
  bottom, but I'm left in the scratch buffer. I try c-x b to switch
  buffer, but I don't see any other buffers apart from the usual
  *messages* etc. 

Here is output from *messages* buffer after running w3-fetch 

Loading voice-setup...done
Loading replace...
ad-handle-definition: `occur-mode-goto-occurrence' got redefined
ad-handle-definition: `occur-next' got redefined
ad-handle-definition: `occur-prev' got redefined
Loading replace...done
Loading /home/daniel/svn/emacspeak/sounds/default-8k/define-theme.el (source)...done
Loading emacspeak-alsaplayer...done
Loading emacspeak-webmarks...done
Loading emacspeak-webspace...done
Loading /home/daniel/svn/emacspeak/lisp/emacspeak-setup.el (source)...done
Loading voice-setup...done
Loading emacspeak-keymap...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Invalid timer [2 times]
Emacspeak not found - speech will not work.
/home/daniel/.mosaic-hotlist-default does not exist!
Loading w3-speak-table...done
Contacting host: www.google.com:80
ad-handle-definition: `w3-parse-buffer' got redefined
Downloading of `http://www.google.com.au/' complete.
Drawing... done

I do have html tidy installed in /usr/local/bin. 

So what am I doing wrong? I'm just trying to get this working so I can
navigate html tables in local html files I have.

Thanks for any help! 

Cheers,
Dan

On Wed, Feb 24, 2010 at 02:38:09AM -0800, Zachary Kline wrote:
> Hi Dan,
> This is easy.  You need to install the emacs sources, which aren't
> included with Debian's package by default.  You want emacs23-el, I
> believe.
> Install them and try configuring and compiling again.
> Hope this helps,
> Zack.
> 
> On Wed, 24 Feb 2010, Daniel Dalton wrote:
> 
> >Hi guys,
> >
> >i need to be able to navigate data in tables. I've decided to use w3
> >under emacspeak to do this. Or does anyone have a better option for
> >table navigation? (html) (on the command line)
> >
> >Anyway I try and compile w3 these are the steps I take:
> >
> >1. check w3 out from git:
> >git clone git://git.sv.gnu.org/w3.git
> >
> >2. Configure:
> >./configure This looks to go ok, it informs me how to compile with make
> >after it has executed.
> >
> >3. make:
> >I get an error at this point:
> >
> >Generating autoloads for /home/daniel/git/w3/lisp/w3.el...done
> >Saving file /home/daniel/git/w3/lisp/auto-autoloads.el...
> >Wrote /home/daniel/git/w3/lisp/auto-autoloads.el
> >Saving file /home/daniel/git/w3/lisp/w3-auto.el...
> >Wrote /home/daniel/git/w3/lisp/w3-auto.el
> >GNUSDIR=/usr/share/emacs/23.1/lisp/gnus/
> >URLDIR=/usr/share/emacs/23.1/lisp/url/ W3SRCDIR=. emacs -batch -q
> >-no-site-file -l ./docomp.el -l
> >/usr/share/emacs/23.1/lisp/url//url-vars.el -l ./w3-vars.el -f
> >emacs-batch-build-custom-load .
> >Cannot open load file: /usr/share/emacs/23.1/lisp/url/url-vars.el
> >make[1]: *** [custom-load.el] Error 255
> >make[1]: Leaving directory `/home/daniel/git/w3/lisp'
> >make: *** [w3] Error 2
> >
> >If someone could point me to a solution I'd greatly appreciate it.
> >
> >Thanks,
> >Dan
> >
> >-----------------------------------------------------------------------------
> >To unsubscribe from the emacspeak list or change your address on the
> >emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
> >subject of "unsubscribe" or "help".
> >
> >
> 
> -----------------------------------------------------------------------------
> To unsubscribe from the emacspeak list or change your address on the
> emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
> subject of "unsubscribe" or "help".

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



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

priestdo@xxxxxxxxxxx No Soliciting!

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

Emacspeak Files | Emacspeak Blog