W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

my attempt at integrating tidy with XEmacs

From: Philip J. Hollenback <philiph@pobox.com>
Date: Thu, 2 Aug 2001 00:24:53 -0400 (EDT)
To: html-tidy@w3.org
Message-id: <3B68D5FF.5060408@pobox.com>
This solution is ok, but suffers from a few glitches.  In particular I 
sometimes get asked 'tidy-errs buffer has changed on disk, reload?' 
 That's not right.

Also it would be really neat if you could select an error in the tidy 
buffer and go to that point in your html.


I welcome any suggestions for improvements.

; Function to run Tidy HTML parser on buffer
; NOTE: this requires external Tidy program
 (defun tidy-buffer ()
  "Run Tidy HTML parser on current buffer."
  (shell-command-on-region (point-min) (point-max)
    "tidy -f /tmp/tidy-errs -q -i -wrap 72 -c" t)
  (find-file-other-window "/tmp/tidy-errs")
  (other-window 1)
  (delete-file "/tmp/tidy-errs")
  (message "buffer tidy'ed")
 (global-set-key (kbd "C-x t") 'tidy-buffer)
Received on Sunday, 5 August 2001 20:14:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC